Home | History | Annotate | Download | only in bison
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for GNU Bison 2.7.
      4 #
      5 # Report bugs to <bug-bison (at] gnu.org>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      9 #
     10 #
     11 # This configure script is free software; the Free Software Foundation
     12 # gives unlimited permission to copy, distribute and modify it.
     13 ## -------------------- ##
     14 ## M4sh Initialization. ##
     15 ## -------------------- ##
     16 
     17 # Be more Bourne compatible
     18 DUALCASE=1; export DUALCASE # for MKS sh
     19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     20   emulate sh
     21   NULLCMD=:
     22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     23   # is contrary to our usage.  Disable this feature.
     24   alias -g '${1+"$@"}'='"$@"'
     25   setopt NO_GLOB_SUBST
     26 else
     27   case `(set -o) 2>/dev/null` in #(
     28   *posix*) :
     29     set -o posix ;; #(
     30   *) :
     31      ;;
     32 esac
     33 fi
     34 
     35 
     36 as_nl='
     37 '
     38 export as_nl
     39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43 # Prefer a ksh shell builtin over an external printf program on Solaris,
     44 # but without wasting forks for bash or zsh.
     45 if test -z "$BASH_VERSION$ZSH_VERSION" \
     46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47   as_echo='print -r --'
     48   as_echo_n='print -rn --'
     49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50   as_echo='printf %s\n'
     51   as_echo_n='printf %s'
     52 else
     53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55     as_echo_n='/usr/ucb/echo -n'
     56   else
     57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58     as_echo_n_body='eval
     59       arg=$1;
     60       case $arg in #(
     61       *"$as_nl"*)
     62 	expr "X$arg" : "X\\(.*\\)$as_nl";
     63 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64       esac;
     65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66     '
     67     export as_echo_n_body
     68     as_echo_n='sh -c $as_echo_n_body as_echo'
     69   fi
     70   export as_echo_body
     71   as_echo='sh -c $as_echo_body as_echo'
     72 fi
     73 
     74 # The user is always right.
     75 if test "${PATH_SEPARATOR+set}" != set; then
     76   PATH_SEPARATOR=:
     77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79       PATH_SEPARATOR=';'
     80   }
     81 fi
     82 
     83 
     84 # IFS
     85 # We need space, tab and new line, in precisely that order.  Quoting is
     86 # there to prevent editors from complaining about space-tab.
     87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88 # splitting by setting IFS to empty value.)
     89 IFS=" ""	$as_nl"
     90 
     91 # Find who we are.  Look in the path if we contain no directory separator.
     92 as_myself=
     93 case $0 in #((
     94   *[\\/]* ) as_myself=$0 ;;
     95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96 for as_dir in $PATH
     97 do
     98   IFS=$as_save_IFS
     99   test -z "$as_dir" && as_dir=.
    100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101   done
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    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.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 # Unset variables that we do not need and which cause bugs (e.g. in
    117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    118 # suppresses any "Segmentation fault" message there.  '((' could
    119 # trigger a bug in pdksh 5.2.14.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123 done
    124 PS1='$ '
    125 PS2='> '
    126 PS4='+ '
    127 
    128 # NLS nuisances.
    129 LC_ALL=C
    130 export LC_ALL
    131 LANGUAGE=C
    132 export LANGUAGE
    133 
    134 # CDPATH.
    135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136 
    137 # Use a proper internal environment variable to ensure we don't fall
    138   # into an infinite loop, continuously re-executing ourselves.
    139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140     _as_can_reexec=no; export _as_can_reexec;
    141     # We cannot yet assume a decent shell, so we have to provide a
    142 # neutralization value for shells without unset; and this also
    143 # works around shells that cannot unset nonexistent variables.
    144 # Preserve -v and -x to the replacement shell.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155 # Admittedly, this is quite paranoid, since all the known shells bail
    156 # out after a failed `exec'.
    157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if test "x$CONFIG_SHELL" = x; then
    163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164   emulate sh
    165   NULLCMD=:
    166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167   # is contrary to our usage.  Disable this feature.
    168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169   setopt NO_GLOB_SUBST
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -x / || exit 1"
    197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1"
    202   if (eval "$as_required") 2>/dev/null; then :
    203   as_have_required=yes
    204 else
    205   as_have_required=no
    206 fi
    207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    208 
    209 else
    210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    211 as_found=false
    212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    213 do
    214   IFS=$as_save_IFS
    215   test -z "$as_dir" && as_dir=.
    216   as_found=:
    217   case $as_dir in #(
    218 	 /*)
    219 	   for as_base in sh bash ksh sh5; do
    220 	     # Try only shells that exist, to save several forks.
    221 	     as_shell=$as_dir/$as_base
    222 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    223 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   CONFIG_SHELL=$as_shell as_have_required=yes
    225 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    226   break 2
    227 fi
    228 fi
    229 	   done;;
    230        esac
    231   as_found=false
    232 done
    233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    235   CONFIG_SHELL=$SHELL as_have_required=yes
    236 fi; }
    237 IFS=$as_save_IFS
    238 
    239 
    240       if test "x$CONFIG_SHELL" != x; then :
    241   export CONFIG_SHELL
    242              # We cannot yet assume a decent shell, so we have to provide a
    243 # neutralization value for shells without unset; and this also
    244 # works around shells that cannot unset nonexistent variables.
    245 # Preserve -v and -x to the replacement shell.
    246 BASH_ENV=/dev/null
    247 ENV=/dev/null
    248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    249 case $- in # ((((
    250   *v*x* | *x*v* ) as_opts=-vx ;;
    251   *v* ) as_opts=-v ;;
    252   *x* ) as_opts=-x ;;
    253   * ) as_opts= ;;
    254 esac
    255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    256 # Admittedly, this is quite paranoid, since all the known shells bail
    257 # out after a failed `exec'.
    258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    261 
    262     if test x$as_have_required = xno; then :
    263   $as_echo "$0: This script requires a shell more modern than all"
    264   $as_echo "$0: the shells that I found on your system."
    265   if test x${ZSH_VERSION+set} = xset ; then
    266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    268   else
    269     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and bug-bison (at] gnu.org
    270 $0: about your system, including any error possibly output
    271 $0: before this message. Then install a modern shell, or
    272 $0: manually run the script under such a shell if you do
    273 $0: have one."
    274   fi
    275   exit 1
    276 fi
    277 fi
    278 fi
    279 SHELL=${CONFIG_SHELL-/bin/sh}
    280 export SHELL
    281 # Unset more variables known to interfere with behavior of common tools.
    282 CLICOLOR_FORCE= GREP_OPTIONS=
    283 unset CLICOLOR_FORCE GREP_OPTIONS
    284 
    285 ## --------------------- ##
    286 ## M4sh Shell Functions. ##
    287 ## --------------------- ##
    288 # as_fn_unset VAR
    289 # ---------------
    290 # Portably unset VAR.
    291 as_fn_unset ()
    292 {
    293   { eval $1=; unset $1;}
    294 }
    295 as_unset=as_fn_unset
    296 
    297 # as_fn_set_status STATUS
    298 # -----------------------
    299 # Set $? to STATUS, without forking.
    300 as_fn_set_status ()
    301 {
    302   return $1
    303 } # as_fn_set_status
    304 
    305 # as_fn_exit STATUS
    306 # -----------------
    307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    308 as_fn_exit ()
    309 {
    310   set +e
    311   as_fn_set_status $1
    312   exit $1
    313 } # as_fn_exit
    314 
    315 # as_fn_mkdir_p
    316 # -------------
    317 # Create "$as_dir" as a directory, including parents if necessary.
    318 as_fn_mkdir_p ()
    319 {
    320 
    321   case $as_dir in #(
    322   -*) as_dir=./$as_dir;;
    323   esac
    324   test -d "$as_dir" || eval $as_mkdir_p || {
    325     as_dirs=
    326     while :; do
    327       case $as_dir in #(
    328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    329       *) as_qdir=$as_dir;;
    330       esac
    331       as_dirs="'$as_qdir' $as_dirs"
    332       as_dir=`$as_dirname -- "$as_dir" ||
    333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    334 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    335 	 X"$as_dir" : 'X\(//\)$' \| \
    336 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    337 $as_echo X"$as_dir" |
    338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    339 	    s//\1/
    340 	    q
    341 	  }
    342 	  /^X\(\/\/\)[^/].*/{
    343 	    s//\1/
    344 	    q
    345 	  }
    346 	  /^X\(\/\/\)$/{
    347 	    s//\1/
    348 	    q
    349 	  }
    350 	  /^X\(\/\).*/{
    351 	    s//\1/
    352 	    q
    353 	  }
    354 	  s/.*/./; q'`
    355       test -d "$as_dir" && break
    356     done
    357     test -z "$as_dirs" || eval "mkdir $as_dirs"
    358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    359 
    360 
    361 } # as_fn_mkdir_p
    362 
    363 # as_fn_executable_p FILE
    364 # -----------------------
    365 # Test if FILE is an executable regular file.
    366 as_fn_executable_p ()
    367 {
    368   test -f "$1" && test -x "$1"
    369 } # as_fn_executable_p
    370 # as_fn_append VAR VALUE
    371 # ----------------------
    372 # Append the text in VALUE to the end of the definition contained in VAR. Take
    373 # advantage of any shell optimizations that allow amortized linear growth over
    374 # repeated appends, instead of the typical quadratic growth present in naive
    375 # implementations.
    376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    377   eval 'as_fn_append ()
    378   {
    379     eval $1+=\$2
    380   }'
    381 else
    382   as_fn_append ()
    383   {
    384     eval $1=\$$1\$2
    385   }
    386 fi # as_fn_append
    387 
    388 # as_fn_arith ARG...
    389 # ------------------
    390 # Perform arithmetic evaluation on the ARGs, and store the result in the
    391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    392 # must be portable across $(()) and expr.
    393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    394   eval 'as_fn_arith ()
    395   {
    396     as_val=$(( $* ))
    397   }'
    398 else
    399   as_fn_arith ()
    400   {
    401     as_val=`expr "$@" || test $? -eq 1`
    402   }
    403 fi # as_fn_arith
    404 
    405 
    406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    407 # ----------------------------------------
    408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    410 # script with STATUS, using 1 if that was 0.
    411 as_fn_error ()
    412 {
    413   as_status=$1; test $as_status -eq 0 && as_status=1
    414   if test "$4"; then
    415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    417   fi
    418   $as_echo "$as_me: error: $2" >&2
    419   as_fn_exit $as_status
    420 } # as_fn_error
    421 
    422 if expr a : '\(a\)' >/dev/null 2>&1 &&
    423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    424   as_expr=expr
    425 else
    426   as_expr=false
    427 fi
    428 
    429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    430   as_basename=basename
    431 else
    432   as_basename=false
    433 fi
    434 
    435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    436   as_dirname=dirname
    437 else
    438   as_dirname=false
    439 fi
    440 
    441 as_me=`$as_basename -- "$0" ||
    442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    443 	 X"$0" : 'X\(//\)$' \| \
    444 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    445 $as_echo X/"$0" |
    446     sed '/^.*\/\([^/][^/]*\)\/*$/{
    447 	    s//\1/
    448 	    q
    449 	  }
    450 	  /^X\/\(\/\/\)$/{
    451 	    s//\1/
    452 	    q
    453 	  }
    454 	  /^X\/\(\/\).*/{
    455 	    s//\1/
    456 	    q
    457 	  }
    458 	  s/.*/./; q'`
    459 
    460 # Avoid depending upon Character Ranges.
    461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    464 as_cr_digits='0123456789'
    465 as_cr_alnum=$as_cr_Letters$as_cr_digits
    466 
    467 
    468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    473   sed -n '
    474     p
    475     /[$]LINENO/=
    476   ' <$as_myself |
    477     sed '
    478       s/[$]LINENO.*/&-/
    479       t lineno
    480       b
    481       :lineno
    482       N
    483       :loop
    484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    485       t loop
    486       s/-\n.*//
    487     ' >$as_me.lineno &&
    488   chmod +x "$as_me.lineno" ||
    489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    490 
    491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    492   # already done that, so ensure we don't try to do so again and fall
    493   # in an infinite loop.  This has already happened in practice.
    494   _as_can_reexec=no; export _as_can_reexec
    495   # Don't try to exec as it changes $[0], causing all sort of problems
    496   # (the dirname of $[0] is not the place where we might find the
    497   # original and so on.  Autoconf is especially sensitive to this).
    498   . "./$as_me.lineno"
    499   # Exit status is that of the last command.
    500   exit
    501 }
    502 
    503 ECHO_C= ECHO_N= ECHO_T=
    504 case `echo -n x` in #(((((
    505 -n*)
    506   case `echo 'xy\c'` in
    507   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    508   xy)  ECHO_C='\c';;
    509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    510        ECHO_T='	';;
    511   esac;;
    512 *)
    513   ECHO_N='-n';;
    514 esac
    515 
    516 rm -f conf$$ conf$$.exe conf$$.file
    517 if test -d conf$$.dir; then
    518   rm -f conf$$.dir/conf$$.file
    519 else
    520   rm -f conf$$.dir
    521   mkdir conf$$.dir 2>/dev/null
    522 fi
    523 if (echo >conf$$.file) 2>/dev/null; then
    524   if ln -s conf$$.file conf$$ 2>/dev/null; then
    525     as_ln_s='ln -s'
    526     # ... but there are two gotchas:
    527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    529     # In both cases, we have to default to `cp -pR'.
    530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    531       as_ln_s='cp -pR'
    532   elif ln conf$$.file conf$$ 2>/dev/null; then
    533     as_ln_s=ln
    534   else
    535     as_ln_s='cp -pR'
    536   fi
    537 else
    538   as_ln_s='cp -pR'
    539 fi
    540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    541 rmdir conf$$.dir 2>/dev/null
    542 
    543 if mkdir -p . 2>/dev/null; then
    544   as_mkdir_p='mkdir -p "$as_dir"'
    545 else
    546   test -d ./-p && rmdir ./-p
    547   as_mkdir_p=false
    548 fi
    549 
    550 as_test_x='test -x'
    551 as_executable_p=as_fn_executable_p
    552 
    553 # Sed expression to map a string onto a valid CPP name.
    554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 # Sed expression to map a string onto a valid variable name.
    557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    558 
    559 
    560 test -n "$DJDIR" || exec 7<&0 </dev/null
    561 exec 6>&1
    562 
    563 # Name of the host.
    564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    565 # so uname gets run too.
    566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    567 
    568 #
    569 # Initializations.
    570 #
    571 ac_default_prefix=/usr/local
    572 ac_clean_files=
    573 ac_config_libobj_dir=.
    574 LIBOBJS=
    575 cross_compiling=no
    576 subdirs=
    577 MFLAGS=
    578 MAKEFLAGS=
    579 
    580 # Identity of this package.
    581 PACKAGE_NAME='GNU Bison'
    582 PACKAGE_TARNAME='bison'
    583 PACKAGE_VERSION='2.7'
    584 PACKAGE_STRING='GNU Bison 2.7'
    585 PACKAGE_BUGREPORT='bug-bison (at] gnu.org'
    586 PACKAGE_URL='http://www.gnu.org/software/bison/'
    587 
    588 # Factoring default headers for most tests.
    589 ac_includes_default="\
    590 #include <stdio.h>
    591 #ifdef HAVE_SYS_TYPES_H
    592 # include <sys/types.h>
    593 #endif
    594 #ifdef HAVE_SYS_STAT_H
    595 # include <sys/stat.h>
    596 #endif
    597 #ifdef STDC_HEADERS
    598 # include <stdlib.h>
    599 # include <stddef.h>
    600 #else
    601 # ifdef HAVE_STDLIB_H
    602 #  include <stdlib.h>
    603 # endif
    604 #endif
    605 #ifdef HAVE_STRING_H
    606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    607 #  include <memory.h>
    608 # endif
    609 # include <string.h>
    610 #endif
    611 #ifdef HAVE_STRINGS_H
    612 # include <strings.h>
    613 #endif
    614 #ifdef HAVE_INTTYPES_H
    615 # include <inttypes.h>
    616 #endif
    617 #ifdef HAVE_STDINT_H
    618 # include <stdint.h>
    619 #endif
    620 #ifdef HAVE_UNISTD_H
    621 # include <unistd.h>
    622 #endif"
    623 
    624 gl_use_threads_default=
    625 ac_header_list=
    626 ac_func_list=
    627 gl_getopt_required=POSIX
    628 gl_getopt_required=POSIX
    629 gt_needs=
    630 ac_subst_vars='gltests_LTLIBOBJS
    631 gltests_LIBOBJS
    632 gl_LTLIBOBJS
    633 gl_LIBOBJS
    634 CONFIG_INCLUDE
    635 am__EXEEXT_FALSE
    636 am__EXEEXT_TRUE
    637 LTLIBOBJS
    638 LIBOBJS
    639 HAVE_JIKES
    640 HAVE_JAVAC
    641 HAVE_GCJ_C
    642 HAVE_JAVAC_ENVVAR
    643 CONF_JAVAC
    644 HAVE_JIKES_IN_PATH
    645 HAVE_JAVAC_IN_PATH
    646 HAVE_GCJ_IN_PATH
    647 HAVE_JVIEW
    648 HAVE_JRE
    649 HAVE_JAVA
    650 HAVE_GIJ
    651 HAVE_JAVA_ENVVAR
    652 CLASSPATH_SEPARATOR
    653 CLASSPATH
    654 CONF_JAVA
    655 HAVE_JVIEW_IN_PATH
    656 HAVE_JRE_IN_PATH
    657 HAVE_JAVA_IN_PATH
    658 HAVE_GIJ_IN_PATH
    659 GCC
    660 AUTOM4TE
    661 VALGRIND_PREBISON
    662 VALGRIND
    663 aclocaldir
    664 BISON_LOCALEDIR
    665 POSUB
    666 INTLLIBS
    667 LTLIBICONV
    668 LIBICONV
    669 INTL_MACOSX_LIBS
    670 XGETTEXT_EXTRA_OPTIONS
    671 MSGMERGE
    672 XGETTEXT_015
    673 XGETTEXT
    674 GMSGFMT_015
    675 MSGFMT_015
    676 GMSGFMT
    677 MSGFMT
    678 GETTEXT_MACRO_VERSION
    679 USE_NLS
    680 LIBBISON_LTLIBDEPS
    681 LIBBISON_LIBDEPS
    682 gltests_WITNESS
    683 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
    684 NEXT_WCHAR_H
    685 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
    686 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
    687 LIBUNISTRING_UNIWIDTH_H
    688 LIBUNISTRING_UNITYPES_H
    689 HAVE_UNISTD_H
    690 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
    691 NEXT_UNISTD_H
    692 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
    693 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
    694 TIME_H_DEFINES_STRUCT_TIMESPEC
    695 NEXT_AS_FIRST_DIRECTIVE_TIME_H
    696 NEXT_TIME_H
    697 REPLACE_TIMEGM
    698 REPLACE_NANOSLEEP
    699 REPLACE_MKTIME
    700 REPLACE_LOCALTIME_R
    701 HAVE_TIMEGM
    702 HAVE_STRPTIME
    703 HAVE_NANOSLEEP
    704 HAVE_DECL_LOCALTIME_R
    705 GNULIB_TIME_R
    706 GNULIB_TIMEGM
    707 GNULIB_STRPTIME
    708 GNULIB_NANOSLEEP
    709 GNULIB_MKTIME
    710 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
    711 NEXT_SYS_WAIT_H
    712 GNULIB_WAITPID
    713 WINDOWS_64_BIT_OFF_T
    714 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
    715 NEXT_SYS_TYPES_H
    716 NEXT_AS_FIRST_DIRECTIVE_STRING_H
    717 NEXT_STRING_H
    718 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
    719 NEXT_STDLIB_H
    720 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
    721 NEXT_STDIO_H
    722 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
    723 NEXT_STDDEF_H
    724 GL_GENERATE_STDDEF_H_FALSE
    725 GL_GENERATE_STDDEF_H_TRUE
    726 STDDEF_H
    727 HAVE_WCHAR_T
    728 REPLACE_NULL
    729 HAVE__BOOL
    730 GL_GENERATE_STDBOOL_H_FALSE
    731 GL_GENERATE_STDBOOL_H_TRUE
    732 STDBOOL_H
    733 HAVE_SPAWN_H
    734 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H
    735 NEXT_SPAWN_H
    736 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
    737 NEXT_SIGNAL_H
    738 GL_GENERATE_SCHED_H_FALSE
    739 GL_GENERATE_SCHED_H_TRUE
    740 SCHED_H
    741 HAVE_STRUCT_SCHED_PARAM
    742 HAVE_SCHED_H
    743 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
    744 NEXT_SCHED_H
    745 REPLACE_RAISE
    746 REPLACE_PTHREAD_SIGMASK
    747 HAVE_SIGHANDLER_T
    748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
    749 HAVE_STRUCT_SIGACTION_SA_SIGACTION
    750 HAVE_SIGACTION
    751 HAVE_SIGINFO_T
    752 HAVE_SIGSET_T
    753 HAVE_RAISE
    754 HAVE_PTHREAD_SIGMASK
    755 HAVE_POSIX_SIGNALBLOCKING
    756 GNULIB_SIGACTION
    757 GNULIB_SIGPROCMASK
    758 GNULIB_SIGNAL_H_SIGPIPE
    759 GNULIB_RAISE
    760 GNULIB_PTHREAD_SIGMASK
    761 ASM_SYMBOL_PREFIX
    762 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
    763 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
    764 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
    765 REPLACE_POSIX_SPAWN
    766 HAVE_POSIX_SPAWN_FILE_ACTIONS_T
    767 HAVE_POSIX_SPAWNATTR_T
    768 HAVE_POSIX_SPAWN
    769 GNULIB_POSIX_SPAWNATTR_DESTROY
    770 GNULIB_POSIX_SPAWNATTR_SETSIGMASK
    771 GNULIB_POSIX_SPAWNATTR_GETSIGMASK
    772 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT
    773 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT
    774 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY
    775 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY
    776 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM
    777 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM
    778 GNULIB_POSIX_SPAWNATTR_SETPGROUP
    779 GNULIB_POSIX_SPAWNATTR_GETPGROUP
    780 GNULIB_POSIX_SPAWNATTR_SETFLAGS
    781 GNULIB_POSIX_SPAWNATTR_GETFLAGS
    782 GNULIB_POSIX_SPAWNATTR_INIT
    783 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY
    784 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
    785 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
    786 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
    787 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT
    788 GNULIB_POSIX_SPAWNP
    789 GNULIB_POSIX_SPAWN
    790 UNDEFINE_STRTOK_R
    791 REPLACE_STRTOK_R
    792 REPLACE_STRSIGNAL
    793 REPLACE_STRNLEN
    794 REPLACE_STRNDUP
    795 REPLACE_STRNCAT
    796 REPLACE_STRERROR_R
    797 REPLACE_STRERROR
    798 REPLACE_STRCHRNUL
    799 REPLACE_STRCASESTR
    800 REPLACE_STRSTR
    801 REPLACE_STRDUP
    802 REPLACE_STPNCPY
    803 REPLACE_MEMMEM
    804 REPLACE_MEMCHR
    805 HAVE_STRVERSCMP
    806 HAVE_DECL_STRSIGNAL
    807 HAVE_DECL_STRERROR_R
    808 HAVE_DECL_STRTOK_R
    809 HAVE_STRCASESTR
    810 HAVE_STRSEP
    811 HAVE_STRPBRK
    812 HAVE_DECL_STRNLEN
    813 HAVE_DECL_STRNDUP
    814 HAVE_DECL_STRDUP
    815 HAVE_STRCHRNUL
    816 HAVE_STPNCPY
    817 HAVE_STPCPY
    818 HAVE_RAWMEMCHR
    819 HAVE_DECL_MEMRCHR
    820 HAVE_MEMPCPY
    821 HAVE_DECL_MEMMEM
    822 HAVE_MEMCHR
    823 HAVE_FFSLL
    824 HAVE_FFSL
    825 HAVE_MBSLEN
    826 GNULIB_STRVERSCMP
    827 GNULIB_STRSIGNAL
    828 GNULIB_STRERROR_R
    829 GNULIB_STRERROR
    830 GNULIB_MBSTOK_R
    831 GNULIB_MBSSEP
    832 GNULIB_MBSSPN
    833 GNULIB_MBSPBRK
    834 GNULIB_MBSCSPN
    835 GNULIB_MBSCASESTR
    836 GNULIB_MBSPCASECMP
    837 GNULIB_MBSNCASECMP
    838 GNULIB_MBSCASECMP
    839 GNULIB_MBSSTR
    840 GNULIB_MBSRCHR
    841 GNULIB_MBSCHR
    842 GNULIB_MBSNLEN
    843 GNULIB_MBSLEN
    844 GNULIB_STRTOK_R
    845 GNULIB_STRCASESTR
    846 GNULIB_STRSTR
    847 GNULIB_STRSEP
    848 GNULIB_STRPBRK
    849 GNULIB_STRNLEN
    850 GNULIB_STRNDUP
    851 GNULIB_STRNCAT
    852 GNULIB_STRDUP
    853 GNULIB_STRCHRNUL
    854 GNULIB_STPNCPY
    855 GNULIB_STPCPY
    856 GNULIB_RAWMEMCHR
    857 GNULIB_MEMRCHR
    858 GNULIB_MEMPCPY
    859 GNULIB_MEMMEM
    860 GNULIB_MEMCHR
    861 GNULIB_FFSLL
    862 GNULIB_FFSL
    863 LOCALE_FR_UTF8
    864 LOCALE_ZH_CN
    865 LOCALE_JA
    866 REPLACE_WCSWIDTH
    867 REPLACE_WCWIDTH
    868 REPLACE_WCSNRTOMBS
    869 REPLACE_WCSRTOMBS
    870 REPLACE_WCRTOMB
    871 REPLACE_MBSNRTOWCS
    872 REPLACE_MBSRTOWCS
    873 REPLACE_MBRLEN
    874 REPLACE_MBRTOWC
    875 REPLACE_MBSINIT
    876 REPLACE_WCTOB
    877 REPLACE_BTOWC
    878 REPLACE_MBSTATE_T
    879 HAVE_DECL_WCWIDTH
    880 HAVE_DECL_WCTOB
    881 HAVE_WCSWIDTH
    882 HAVE_WCSTOK
    883 HAVE_WCSSTR
    884 HAVE_WCSPBRK
    885 HAVE_WCSSPN
    886 HAVE_WCSCSPN
    887 HAVE_WCSRCHR
    888 HAVE_WCSCHR
    889 HAVE_WCSDUP
    890 HAVE_WCSXFRM
    891 HAVE_WCSCOLL
    892 HAVE_WCSNCASECMP
    893 HAVE_WCSCASECMP
    894 HAVE_WCSNCMP
    895 HAVE_WCSCMP
    896 HAVE_WCSNCAT
    897 HAVE_WCSCAT
    898 HAVE_WCPNCPY
    899 HAVE_WCSNCPY
    900 HAVE_WCPCPY
    901 HAVE_WCSCPY
    902 HAVE_WCSNLEN
    903 HAVE_WCSLEN
    904 HAVE_WMEMSET
    905 HAVE_WMEMMOVE
    906 HAVE_WMEMCPY
    907 HAVE_WMEMCMP
    908 HAVE_WMEMCHR
    909 HAVE_WCSNRTOMBS
    910 HAVE_WCSRTOMBS
    911 HAVE_WCRTOMB
    912 HAVE_MBSNRTOWCS
    913 HAVE_MBSRTOWCS
    914 HAVE_MBRLEN
    915 HAVE_MBRTOWC
    916 HAVE_MBSINIT
    917 HAVE_BTOWC
    918 GNULIB_WCSWIDTH
    919 GNULIB_WCSTOK
    920 GNULIB_WCSSTR
    921 GNULIB_WCSPBRK
    922 GNULIB_WCSSPN
    923 GNULIB_WCSCSPN
    924 GNULIB_WCSRCHR
    925 GNULIB_WCSCHR
    926 GNULIB_WCSDUP
    927 GNULIB_WCSXFRM
    928 GNULIB_WCSCOLL
    929 GNULIB_WCSNCASECMP
    930 GNULIB_WCSCASECMP
    931 GNULIB_WCSNCMP
    932 GNULIB_WCSCMP
    933 GNULIB_WCSNCAT
    934 GNULIB_WCSCAT
    935 GNULIB_WCPNCPY
    936 GNULIB_WCSNCPY
    937 GNULIB_WCPCPY
    938 GNULIB_WCSCPY
    939 GNULIB_WCSNLEN
    940 GNULIB_WCSLEN
    941 GNULIB_WMEMSET
    942 GNULIB_WMEMMOVE
    943 GNULIB_WMEMCPY
    944 GNULIB_WMEMCMP
    945 GNULIB_WMEMCHR
    946 GNULIB_WCWIDTH
    947 GNULIB_WCSNRTOMBS
    948 GNULIB_WCSRTOMBS
    949 GNULIB_WCRTOMB
    950 GNULIB_MBSNRTOWCS
    951 GNULIB_MBSRTOWCS
    952 GNULIB_MBRLEN
    953 GNULIB_MBRTOWC
    954 GNULIB_MBSINIT
    955 GNULIB_WCTOB
    956 GNULIB_BTOWC
    957 NEXT_AS_FIRST_DIRECTIVE_MATH_H
    958 NEXT_MATH_H
    959 LTLIBMULTITHREAD
    960 LIBMULTITHREAD
    961 LTLIBTHREAD
    962 LIBTHREAD
    963 LIBPTH_PREFIX
    964 LTLIBPTH
    965 LIBPTH
    966 LOCALCHARSET_TESTS_ENVIRONMENT
    967 GLIBC21
    968 LDEXPL_LIBM
    969 LDEXP_LIBM
    970 REPLACE_TOWLOWER
    971 REPLACE_ISWCNTRL
    972 HAVE_WCTYPE_H
    973 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
    974 NEXT_WCTYPE_H
    975 HAVE_WINT_T
    976 HAVE_ISWCNTRL
    977 REPLACE_ISWBLANK
    978 HAVE_WCTRANS_T
    979 HAVE_WCTYPE_T
    980 HAVE_ISWBLANK
    981 GNULIB_TOWCTRANS
    982 GNULIB_WCTRANS
    983 GNULIB_ISWCTYPE
    984 GNULIB_WCTYPE
    985 GNULIB_ISWBLANK
    986 ISNAN_LIBM
    987 ISNANL_LIBM
    988 ISNAND_LIBM
    989 ISNANF_LIBM
    990 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
    991 NEXT_INTTYPES_H
    992 UINT64_MAX_EQ_ULONG_MAX
    993 UINT32_MAX_LT_UINTMAX_MAX
    994 PRIPTR_PREFIX
    995 PRI_MACROS_BROKEN
    996 INT64_MAX_EQ_LONG_MAX
    997 INT32_MAX_LT_INTMAX_MAX
    998 REPLACE_STRTOIMAX
    999 HAVE_DECL_STRTOUMAX
   1000 HAVE_DECL_STRTOIMAX
   1001 HAVE_DECL_IMAXDIV
   1002 HAVE_DECL_IMAXABS
   1003 GNULIB_STRTOUMAX
   1004 GNULIB_STRTOIMAX
   1005 GNULIB_IMAXDIV
   1006 GNULIB_IMAXABS
   1007 GL_GENERATE_STDINT_H_FALSE
   1008 GL_GENERATE_STDINT_H_TRUE
   1009 STDINT_H
   1010 WINT_T_SUFFIX
   1011 WCHAR_T_SUFFIX
   1012 SIG_ATOMIC_T_SUFFIX
   1013 SIZE_T_SUFFIX
   1014 PTRDIFF_T_SUFFIX
   1015 HAVE_SIGNED_WINT_T
   1016 HAVE_SIGNED_WCHAR_T
   1017 HAVE_SIGNED_SIG_ATOMIC_T
   1018 BITSIZEOF_WINT_T
   1019 BITSIZEOF_WCHAR_T
   1020 BITSIZEOF_SIG_ATOMIC_T
   1021 BITSIZEOF_SIZE_T
   1022 BITSIZEOF_PTRDIFF_T
   1023 HAVE_SYS_BITYPES_H
   1024 HAVE_SYS_INTTYPES_H
   1025 HAVE_STDINT_H
   1026 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
   1027 NEXT_STDINT_H
   1028 HAVE_SYS_TYPES_H
   1029 HAVE_INTTYPES_H
   1030 HAVE_WCHAR_H
   1031 HAVE_UNSIGNED_LONG_LONG_INT
   1032 HAVE_LONG_LONG_INT
   1033 LTLIBINTL
   1034 LIBINTL
   1035 GNULIB_GL_UNISTD_H_GETOPT
   1036 GETOPT_H
   1037 HAVE_GETOPT_H
   1038 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
   1039 NEXT_GETOPT_H
   1040 WINDOWS_64_BIT_ST_SIZE
   1041 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
   1042 NEXT_SYS_STAT_H
   1043 REPLACE_UTIMENSAT
   1044 REPLACE_STAT
   1045 REPLACE_MKNOD
   1046 REPLACE_MKFIFO
   1047 REPLACE_MKDIR
   1048 REPLACE_LSTAT
   1049 REPLACE_FUTIMENS
   1050 REPLACE_FSTATAT
   1051 REPLACE_FSTAT
   1052 HAVE_UTIMENSAT
   1053 HAVE_MKNODAT
   1054 HAVE_MKNOD
   1055 HAVE_MKFIFOAT
   1056 HAVE_MKFIFO
   1057 HAVE_MKDIRAT
   1058 HAVE_LSTAT
   1059 HAVE_LCHMOD
   1060 HAVE_FUTIMENS
   1061 HAVE_FSTATAT
   1062 HAVE_FCHMODAT
   1063 GNULIB_UTIMENSAT
   1064 GNULIB_STAT
   1065 GNULIB_MKNODAT
   1066 GNULIB_MKNOD
   1067 GNULIB_MKFIFOAT
   1068 GNULIB_MKFIFO
   1069 GNULIB_MKDIRAT
   1070 GNULIB_LSTAT
   1071 GNULIB_LCHMOD
   1072 GNULIB_FUTIMENS
   1073 GNULIB_FSTATAT
   1074 GNULIB_FSTAT
   1075 GNULIB_FCHMODAT
   1076 REPLACE_TRUNCL
   1077 REPLACE_TRUNCF
   1078 REPLACE_TRUNC
   1079 REPLACE_SQRTL
   1080 REPLACE_SIGNBIT_USING_GCC
   1081 REPLACE_SIGNBIT
   1082 REPLACE_ROUNDL
   1083 REPLACE_ROUNDF
   1084 REPLACE_ROUND
   1085 REPLACE_REMAINDERL
   1086 REPLACE_REMAINDERF
   1087 REPLACE_REMAINDER
   1088 REPLACE_NAN
   1089 REPLACE_MODFL
   1090 REPLACE_MODFF
   1091 REPLACE_MODF
   1092 REPLACE_LOGBL
   1093 REPLACE_LOGBF
   1094 REPLACE_LOGB
   1095 REPLACE_LOG2L
   1096 REPLACE_LOG2F
   1097 REPLACE_LOG2
   1098 REPLACE_LOG1PL
   1099 REPLACE_LOG1PF
   1100 REPLACE_LOG1P
   1101 REPLACE_LOG10L
   1102 REPLACE_LOG10F
   1103 REPLACE_LOG10
   1104 REPLACE_LOGL
   1105 REPLACE_LOGF
   1106 REPLACE_LOG
   1107 REPLACE_LDEXPL
   1108 REPLACE_ISNAN
   1109 REPLACE_ISINF
   1110 REPLACE_ISFINITE
   1111 REPLACE_ILOGBF
   1112 REPLACE_ILOGB
   1113 REPLACE_HYPOTL
   1114 REPLACE_HYPOTF
   1115 REPLACE_HYPOT
   1116 REPLACE_HUGE_VAL
   1117 REPLACE_FREXPL
   1118 REPLACE_FREXP
   1119 REPLACE_FREXPF
   1120 REPLACE_FMODL
   1121 REPLACE_FMODF
   1122 REPLACE_FMOD
   1123 REPLACE_FMAL
   1124 REPLACE_FMAF
   1125 REPLACE_FMA
   1126 REPLACE_FLOORL
   1127 REPLACE_FLOORF
   1128 REPLACE_FLOOR
   1129 REPLACE_FABSL
   1130 REPLACE_EXP2L
   1131 REPLACE_EXP2
   1132 REPLACE_EXPM1F
   1133 REPLACE_EXPM1
   1134 REPLACE_CEILL
   1135 REPLACE_CEILF
   1136 REPLACE_CEIL
   1137 REPLACE_CBRTL
   1138 REPLACE_CBRTF
   1139 HAVE_DECL_TRUNCL
   1140 HAVE_DECL_TRUNCF
   1141 HAVE_DECL_TRUNC
   1142 HAVE_DECL_TANL
   1143 HAVE_DECL_SQRTL
   1144 HAVE_DECL_SINL
   1145 HAVE_DECL_ROUNDL
   1146 HAVE_DECL_ROUNDF
   1147 HAVE_DECL_ROUND
   1148 HAVE_DECL_RINTF
   1149 HAVE_DECL_REMAINDERL
   1150 HAVE_DECL_REMAINDER
   1151 HAVE_DECL_LOGB
   1152 HAVE_DECL_LOG2L
   1153 HAVE_DECL_LOG2F
   1154 HAVE_DECL_LOG2
   1155 HAVE_DECL_LOG10L
   1156 HAVE_DECL_LOGL
   1157 HAVE_DECL_LDEXPL
   1158 HAVE_DECL_FREXPL
   1159 HAVE_DECL_FLOORL
   1160 HAVE_DECL_FLOORF
   1161 HAVE_DECL_EXPM1L
   1162 HAVE_DECL_EXP2L
   1163 HAVE_DECL_EXP2F
   1164 HAVE_DECL_EXP2
   1165 HAVE_DECL_EXPL
   1166 HAVE_DECL_COSL
   1167 HAVE_DECL_COPYSIGNF
   1168 HAVE_DECL_CEILL
   1169 HAVE_DECL_CEILF
   1170 HAVE_DECL_CBRTL
   1171 HAVE_DECL_CBRTF
   1172 HAVE_DECL_ATANL
   1173 HAVE_DECL_ASINL
   1174 HAVE_DECL_ACOSL
   1175 HAVE_TANHF
   1176 HAVE_TANL
   1177 HAVE_TANF
   1178 HAVE_SQRTL
   1179 HAVE_SQRTF
   1180 HAVE_SINHF
   1181 HAVE_SINL
   1182 HAVE_SINF
   1183 HAVE_RINTL
   1184 HAVE_RINT
   1185 HAVE_REMAINDERF
   1186 HAVE_REMAINDER
   1187 HAVE_POWF
   1188 HAVE_MODFL
   1189 HAVE_MODFF
   1190 HAVE_LOGBL
   1191 HAVE_LOGBF
   1192 HAVE_LOG1PL
   1193 HAVE_LOG1PF
   1194 HAVE_LOG1P
   1195 HAVE_LOG10L
   1196 HAVE_LOG10F
   1197 HAVE_LOGL
   1198 HAVE_LOGF
   1199 HAVE_LDEXPF
   1200 HAVE_ISNANL
   1201 HAVE_ISNAND
   1202 HAVE_ISNANF
   1203 HAVE_ILOGBL
   1204 HAVE_ILOGBF
   1205 HAVE_ILOGB
   1206 HAVE_HYPOTL
   1207 HAVE_HYPOTF
   1208 HAVE_FREXPF
   1209 HAVE_FMODL
   1210 HAVE_FMODF
   1211 HAVE_FMAL
   1212 HAVE_FMAF
   1213 HAVE_FMA
   1214 HAVE_FABSL
   1215 HAVE_FABSF
   1216 HAVE_EXPM1F
   1217 HAVE_EXPM1
   1218 HAVE_EXPL
   1219 HAVE_EXPF
   1220 HAVE_COSHF
   1221 HAVE_COSL
   1222 HAVE_COSF
   1223 HAVE_COPYSIGNL
   1224 HAVE_COPYSIGN
   1225 HAVE_CBRTL
   1226 HAVE_CBRTF
   1227 HAVE_CBRT
   1228 HAVE_ATAN2F
   1229 HAVE_ATANL
   1230 HAVE_ATANF
   1231 HAVE_ASINL
   1232 HAVE_ASINF
   1233 HAVE_ACOSL
   1234 HAVE_ACOSF
   1235 GNULIB_TRUNCL
   1236 GNULIB_TRUNCF
   1237 GNULIB_TRUNC
   1238 GNULIB_TANHF
   1239 GNULIB_TANL
   1240 GNULIB_TANF
   1241 GNULIB_SQRTL
   1242 GNULIB_SQRTF
   1243 GNULIB_SINHF
   1244 GNULIB_SINL
   1245 GNULIB_SINF
   1246 GNULIB_SIGNBIT
   1247 GNULIB_ROUNDL
   1248 GNULIB_ROUNDF
   1249 GNULIB_ROUND
   1250 GNULIB_RINTL
   1251 GNULIB_RINTF
   1252 GNULIB_RINT
   1253 GNULIB_REMAINDERL
   1254 GNULIB_REMAINDERF
   1255 GNULIB_REMAINDER
   1256 GNULIB_POWF
   1257 GNULIB_MODFL
   1258 GNULIB_MODFF
   1259 GNULIB_MODF
   1260 GNULIB_LOGBL
   1261 GNULIB_LOGBF
   1262 GNULIB_LOGB
   1263 GNULIB_LOG2L
   1264 GNULIB_LOG2F
   1265 GNULIB_LOG2
   1266 GNULIB_LOG1PL
   1267 GNULIB_LOG1PF
   1268 GNULIB_LOG1P
   1269 GNULIB_LOG10L
   1270 GNULIB_LOG10F
   1271 GNULIB_LOG10
   1272 GNULIB_LOGL
   1273 GNULIB_LOGF
   1274 GNULIB_LOG
   1275 GNULIB_LDEXPL
   1276 GNULIB_LDEXPF
   1277 GNULIB_ISNANL
   1278 GNULIB_ISNAND
   1279 GNULIB_ISNANF
   1280 GNULIB_ISNAN
   1281 GNULIB_ISINF
   1282 GNULIB_ISFINITE
   1283 GNULIB_ILOGBL
   1284 GNULIB_ILOGBF
   1285 GNULIB_ILOGB
   1286 GNULIB_HYPOTL
   1287 GNULIB_HYPOTF
   1288 GNULIB_HYPOT
   1289 GNULIB_FREXPL
   1290 GNULIB_FREXP
   1291 GNULIB_FREXPF
   1292 GNULIB_FMODL
   1293 GNULIB_FMODF
   1294 GNULIB_FMOD
   1295 GNULIB_FMAL
   1296 GNULIB_FMAF
   1297 GNULIB_FMA
   1298 GNULIB_FLOORL
   1299 GNULIB_FLOORF
   1300 GNULIB_FLOOR
   1301 GNULIB_FABSL
   1302 GNULIB_FABSF
   1303 GNULIB_EXPM1L
   1304 GNULIB_EXPM1F
   1305 GNULIB_EXPM1
   1306 GNULIB_EXP2L
   1307 GNULIB_EXP2F
   1308 GNULIB_EXP2
   1309 GNULIB_EXPL
   1310 GNULIB_EXPF
   1311 GNULIB_COSHF
   1312 GNULIB_COSL
   1313 GNULIB_COSF
   1314 GNULIB_COPYSIGNL
   1315 GNULIB_COPYSIGNF
   1316 GNULIB_COPYSIGN
   1317 GNULIB_CEILL
   1318 GNULIB_CEILF
   1319 GNULIB_CEIL
   1320 GNULIB_CBRTL
   1321 GNULIB_CBRTF
   1322 GNULIB_CBRT
   1323 GNULIB_ATAN2F
   1324 GNULIB_ATANL
   1325 GNULIB_ATANF
   1326 GNULIB_ASINL
   1327 GNULIB_ASINF
   1328 GNULIB_ACOSL
   1329 GNULIB_ACOSF
   1330 HAVE_FEATURES_H
   1331 APPLE_UNIVERSAL_BUILD
   1332 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   1333 REPLACE_VSPRINTF
   1334 REPLACE_VSNPRINTF
   1335 REPLACE_VPRINTF
   1336 REPLACE_VFPRINTF
   1337 REPLACE_VDPRINTF
   1338 REPLACE_VASPRINTF
   1339 REPLACE_TMPFILE
   1340 REPLACE_STDIO_WRITE_FUNCS
   1341 REPLACE_STDIO_READ_FUNCS
   1342 REPLACE_SPRINTF
   1343 REPLACE_SNPRINTF
   1344 REPLACE_RENAMEAT
   1345 REPLACE_RENAME
   1346 REPLACE_REMOVE
   1347 REPLACE_PRINTF
   1348 REPLACE_POPEN
   1349 REPLACE_PERROR
   1350 REPLACE_OBSTACK_PRINTF
   1351 REPLACE_GETLINE
   1352 REPLACE_GETDELIM
   1353 REPLACE_FTELLO
   1354 REPLACE_FTELL
   1355 REPLACE_FSEEKO
   1356 REPLACE_FSEEK
   1357 REPLACE_FREOPEN
   1358 REPLACE_FPURGE
   1359 REPLACE_FPRINTF
   1360 REPLACE_FOPEN
   1361 REPLACE_FFLUSH
   1362 REPLACE_FDOPEN
   1363 REPLACE_FCLOSE
   1364 REPLACE_DPRINTF
   1365 HAVE_VDPRINTF
   1366 HAVE_VASPRINTF
   1367 HAVE_RENAMEAT
   1368 HAVE_POPEN
   1369 HAVE_PCLOSE
   1370 HAVE_FTELLO
   1371 HAVE_FSEEKO
   1372 HAVE_DPRINTF
   1373 HAVE_DECL_VSNPRINTF
   1374 HAVE_DECL_SNPRINTF
   1375 HAVE_DECL_OBSTACK_PRINTF
   1376 HAVE_DECL_GETLINE
   1377 HAVE_DECL_GETDELIM
   1378 HAVE_DECL_FTELLO
   1379 HAVE_DECL_FSEEKO
   1380 HAVE_DECL_FPURGE
   1381 GNULIB_VSPRINTF_POSIX
   1382 GNULIB_VSNPRINTF
   1383 GNULIB_VPRINTF_POSIX
   1384 GNULIB_VPRINTF
   1385 GNULIB_VFPRINTF_POSIX
   1386 GNULIB_VFPRINTF
   1387 GNULIB_VDPRINTF
   1388 GNULIB_VSCANF
   1389 GNULIB_VFSCANF
   1390 GNULIB_VASPRINTF
   1391 GNULIB_TMPFILE
   1392 GNULIB_STDIO_H_SIGPIPE
   1393 GNULIB_STDIO_H_NONBLOCKING
   1394 GNULIB_SPRINTF_POSIX
   1395 GNULIB_SNPRINTF
   1396 GNULIB_SCANF
   1397 GNULIB_RENAMEAT
   1398 GNULIB_RENAME
   1399 GNULIB_REMOVE
   1400 GNULIB_PUTS
   1401 GNULIB_PUTCHAR
   1402 GNULIB_PUTC
   1403 GNULIB_PRINTF_POSIX
   1404 GNULIB_PRINTF
   1405 GNULIB_POPEN
   1406 GNULIB_PERROR
   1407 GNULIB_PCLOSE
   1408 GNULIB_OBSTACK_PRINTF_POSIX
   1409 GNULIB_OBSTACK_PRINTF
   1410 GNULIB_GETLINE
   1411 GNULIB_GETDELIM
   1412 GNULIB_GETCHAR
   1413 GNULIB_GETC
   1414 GNULIB_FWRITE
   1415 GNULIB_FTELLO
   1416 GNULIB_FTELL
   1417 GNULIB_FSEEKO
   1418 GNULIB_FSEEK
   1419 GNULIB_FSCANF
   1420 GNULIB_FREOPEN
   1421 GNULIB_FREAD
   1422 GNULIB_FPUTS
   1423 GNULIB_FPUTC
   1424 GNULIB_FPURGE
   1425 GNULIB_FPRINTF_POSIX
   1426 GNULIB_FPRINTF
   1427 GNULIB_FOPEN
   1428 GNULIB_FGETS
   1429 GNULIB_FGETC
   1430 GNULIB_FFLUSH
   1431 GNULIB_FDOPEN
   1432 GNULIB_FCLOSE
   1433 GNULIB_DPRINTF
   1434 REPLACE_ITOLD
   1435 GL_GENERATE_FLOAT_H_FALSE
   1436 GL_GENERATE_FLOAT_H_TRUE
   1437 FLOAT_H
   1438 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
   1439 NEXT_FLOAT_H
   1440 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
   1441 NEXT_FCNTL_H
   1442 REPLACE_OPENAT
   1443 REPLACE_OPEN
   1444 REPLACE_FCNTL
   1445 HAVE_OPENAT
   1446 HAVE_FCNTL
   1447 GNULIB_OPENAT
   1448 GNULIB_OPEN
   1449 GNULIB_NONBLOCKING
   1450 GNULIB_FCNTL
   1451 EOVERFLOW_VALUE
   1452 EOVERFLOW_HIDDEN
   1453 ENOLINK_VALUE
   1454 ENOLINK_HIDDEN
   1455 EMULTIHOP_VALUE
   1456 EMULTIHOP_HIDDEN
   1457 GL_GENERATE_ERRNO_H_FALSE
   1458 GL_GENERATE_ERRNO_H_TRUE
   1459 ERRNO_H
   1460 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
   1461 NEXT_ERRNO_H
   1462 PRAGMA_COLUMNS
   1463 PRAGMA_SYSTEM_HEADER
   1464 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
   1465 INCLUDE_NEXT
   1466 pkglibexecdir
   1467 lispdir
   1468 HAVE_WINSOCK2_H
   1469 HAVE_MSVC_INVALID_PARAMETER_HANDLER
   1470 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
   1471 UNISTD_H_HAVE_WINSOCK2_H
   1472 REPLACE_WRITE
   1473 REPLACE_USLEEP
   1474 REPLACE_UNLINKAT
   1475 REPLACE_UNLINK
   1476 REPLACE_TTYNAME_R
   1477 REPLACE_SYMLINK
   1478 REPLACE_SLEEP
   1479 REPLACE_RMDIR
   1480 REPLACE_READLINK
   1481 REPLACE_READ
   1482 REPLACE_PWRITE
   1483 REPLACE_PREAD
   1484 REPLACE_LSEEK
   1485 REPLACE_LINKAT
   1486 REPLACE_LINK
   1487 REPLACE_LCHOWN
   1488 REPLACE_ISATTY
   1489 REPLACE_GETPAGESIZE
   1490 REPLACE_GETGROUPS
   1491 REPLACE_GETLOGIN_R
   1492 REPLACE_GETDOMAINNAME
   1493 REPLACE_GETCWD
   1494 REPLACE_FTRUNCATE
   1495 REPLACE_FCHOWNAT
   1496 REPLACE_DUP2
   1497 REPLACE_DUP
   1498 REPLACE_CLOSE
   1499 REPLACE_CHOWN
   1500 HAVE_SYS_PARAM_H
   1501 HAVE_OS_H
   1502 HAVE_DECL_TTYNAME_R
   1503 HAVE_DECL_SETHOSTNAME
   1504 HAVE_DECL_GETUSERSHELL
   1505 HAVE_DECL_GETPAGESIZE
   1506 HAVE_DECL_GETLOGIN_R
   1507 HAVE_DECL_GETDOMAINNAME
   1508 HAVE_DECL_FDATASYNC
   1509 HAVE_DECL_FCHDIR
   1510 HAVE_DECL_ENVIRON
   1511 HAVE_USLEEP
   1512 HAVE_UNLINKAT
   1513 HAVE_SYMLINKAT
   1514 HAVE_SYMLINK
   1515 HAVE_SLEEP
   1516 HAVE_SETHOSTNAME
   1517 HAVE_READLINKAT
   1518 HAVE_READLINK
   1519 HAVE_PWRITE
   1520 HAVE_PREAD
   1521 HAVE_PIPE2
   1522 HAVE_PIPE
   1523 HAVE_LINKAT
   1524 HAVE_LINK
   1525 HAVE_LCHOWN
   1526 HAVE_GROUP_MEMBER
   1527 HAVE_GETPAGESIZE
   1528 HAVE_GETLOGIN
   1529 HAVE_GETHOSTNAME
   1530 HAVE_GETGROUPS
   1531 HAVE_GETDTABLESIZE
   1532 HAVE_FTRUNCATE
   1533 HAVE_FSYNC
   1534 HAVE_FDATASYNC
   1535 HAVE_FCHOWNAT
   1536 HAVE_FCHDIR
   1537 HAVE_FACCESSAT
   1538 HAVE_EUIDACCESS
   1539 HAVE_DUP3
   1540 HAVE_DUP2
   1541 HAVE_CHOWN
   1542 GNULIB_WRITE
   1543 GNULIB_USLEEP
   1544 GNULIB_UNLINKAT
   1545 GNULIB_UNLINK
   1546 GNULIB_UNISTD_H_SIGPIPE
   1547 GNULIB_UNISTD_H_NONBLOCKING
   1548 GNULIB_TTYNAME_R
   1549 GNULIB_SYMLINKAT
   1550 GNULIB_SYMLINK
   1551 GNULIB_SLEEP
   1552 GNULIB_SETHOSTNAME
   1553 GNULIB_RMDIR
   1554 GNULIB_READLINKAT
   1555 GNULIB_READLINK
   1556 GNULIB_READ
   1557 GNULIB_PWRITE
   1558 GNULIB_PREAD
   1559 GNULIB_PIPE2
   1560 GNULIB_PIPE
   1561 GNULIB_LSEEK
   1562 GNULIB_LINKAT
   1563 GNULIB_LINK
   1564 GNULIB_LCHOWN
   1565 GNULIB_ISATTY
   1566 GNULIB_GROUP_MEMBER
   1567 GNULIB_GETUSERSHELL
   1568 GNULIB_GETPAGESIZE
   1569 GNULIB_GETLOGIN_R
   1570 GNULIB_GETLOGIN
   1571 GNULIB_GETHOSTNAME
   1572 GNULIB_GETGROUPS
   1573 GNULIB_GETDTABLESIZE
   1574 GNULIB_GETDOMAINNAME
   1575 GNULIB_GETCWD
   1576 GNULIB_FTRUNCATE
   1577 GNULIB_FSYNC
   1578 GNULIB_FDATASYNC
   1579 GNULIB_FCHOWNAT
   1580 GNULIB_FCHDIR
   1581 GNULIB_FACCESSAT
   1582 GNULIB_EUIDACCESS
   1583 GNULIB_ENVIRON
   1584 GNULIB_DUP3
   1585 GNULIB_DUP2
   1586 GNULIB_DUP
   1587 GNULIB_CLOSE
   1588 GNULIB_CHOWN
   1589 GNULIB_CHDIR
   1590 REPLACE_WCTOMB
   1591 REPLACE_UNSETENV
   1592 REPLACE_STRTOD
   1593 REPLACE_SETENV
   1594 REPLACE_REALPATH
   1595 REPLACE_REALLOC
   1596 REPLACE_RANDOM_R
   1597 REPLACE_PUTENV
   1598 REPLACE_PTSNAME_R
   1599 REPLACE_PTSNAME
   1600 REPLACE_MKSTEMP
   1601 REPLACE_MBTOWC
   1602 REPLACE_MALLOC
   1603 REPLACE_CANONICALIZE_FILE_NAME
   1604 REPLACE_CALLOC
   1605 HAVE_DECL_UNSETENV
   1606 HAVE_UNLOCKPT
   1607 HAVE_SYS_LOADAVG_H
   1608 HAVE_STRUCT_RANDOM_DATA
   1609 HAVE_STRTOULL
   1610 HAVE_STRTOLL
   1611 HAVE_STRTOD
   1612 HAVE_DECL_SETENV
   1613 HAVE_SETENV
   1614 HAVE_RPMATCH
   1615 HAVE_REALPATH
   1616 HAVE_RANDOM_R
   1617 HAVE_RANDOM_H
   1618 HAVE_RANDOM
   1619 HAVE_PTSNAME_R
   1620 HAVE_PTSNAME
   1621 HAVE_POSIX_OPENPT
   1622 HAVE_MKSTEMPS
   1623 HAVE_MKSTEMP
   1624 HAVE_MKOSTEMPS
   1625 HAVE_MKOSTEMP
   1626 HAVE_MKDTEMP
   1627 HAVE_GRANTPT
   1628 HAVE_GETSUBOPT
   1629 HAVE_DECL_GETLOADAVG
   1630 HAVE_CANONICALIZE_FILE_NAME
   1631 HAVE_ATOLL
   1632 HAVE__EXIT
   1633 GNULIB_WCTOMB
   1634 GNULIB_UNSETENV
   1635 GNULIB_UNLOCKPT
   1636 GNULIB_SYSTEM_POSIX
   1637 GNULIB_STRTOULL
   1638 GNULIB_STRTOLL
   1639 GNULIB_STRTOD
   1640 GNULIB_SETENV
   1641 GNULIB_RPMATCH
   1642 GNULIB_REALPATH
   1643 GNULIB_REALLOC_POSIX
   1644 GNULIB_RANDOM_R
   1645 GNULIB_RANDOM
   1646 GNULIB_PUTENV
   1647 GNULIB_PTSNAME_R
   1648 GNULIB_PTSNAME
   1649 GNULIB_POSIX_OPENPT
   1650 GNULIB_MKSTEMPS
   1651 GNULIB_MKSTEMP
   1652 GNULIB_MKOSTEMPS
   1653 GNULIB_MKOSTEMP
   1654 GNULIB_MKDTEMP
   1655 GNULIB_MBTOWC
   1656 GNULIB_MALLOC_POSIX
   1657 GNULIB_GRANTPT
   1658 GNULIB_GETSUBOPT
   1659 GNULIB_GETLOADAVG
   1660 GNULIB_CANONICALIZE_FILE_NAME
   1661 GNULIB_CALLOC_POSIX
   1662 GNULIB_ATOLL
   1663 GNULIB__EXIT
   1664 GL_GENERATE_ALLOCA_H_FALSE
   1665 GL_GENERATE_ALLOCA_H_TRUE
   1666 ALLOCA_H
   1667 ALLOCA
   1668 GL_COND_LIBTOOL_FALSE
   1669 GL_COND_LIBTOOL_TRUE
   1670 XSLTPROC
   1671 HELP2MAN
   1672 PERL
   1673 M4_DEBUGFILE
   1674 M4_GNU
   1675 M4
   1676 YFLAGS
   1677 YACC
   1678 LEXLIB
   1679 LEX_OUTPUT_ROOT
   1680 LEX_IS_FLEX
   1681 LEX
   1682 DOT
   1683 YACC_LIBRARY
   1684 YACC_SCRIPT
   1685 CXX_COMPILER_POSIXLY_CORRECT
   1686 BISON_CXX_WORKS_FALSE
   1687 BISON_CXX_WORKS_TRUE
   1688 BISON_CXX_WORKS
   1689 C_COMPILER_POSIXLY_CORRECT
   1690 BISON_C_WORKS
   1691 WARN_CXXFLAGS_TEST
   1692 WERROR_CXXFLAGS
   1693 WARN_CXXFLAGS
   1694 WARN_CFLAGS_TEST
   1695 WERROR_CFLAGS
   1696 WARN_CFLAGS
   1697 host_os
   1698 host_vendor
   1699 host_cpu
   1700 host
   1701 build_os
   1702 build_vendor
   1703 build_cpu
   1704 build
   1705 RANLIB
   1706 ARFLAGS
   1707 AR
   1708 EGREP
   1709 GREP
   1710 CPP
   1711 am__fastdepCXX_FALSE
   1712 am__fastdepCXX_TRUE
   1713 CXXDEPMODE
   1714 ac_ct_CXX
   1715 CXXFLAGS
   1716 CXX
   1717 am__fastdepCC_FALSE
   1718 am__fastdepCC_TRUE
   1719 CCDEPMODE
   1720 am__nodep
   1721 AMDEPBACKSLASH
   1722 AMDEP_FALSE
   1723 AMDEP_TRUE
   1724 am__quote
   1725 am__include
   1726 DEPDIR
   1727 OBJEXT
   1728 EXEEXT
   1729 ac_ct_CC
   1730 CPPFLAGS
   1731 LDFLAGS
   1732 CFLAGS
   1733 CC
   1734 AM_BACKSLASH
   1735 AM_DEFAULT_VERBOSITY
   1736 AM_DEFAULT_V
   1737 AM_V
   1738 am__untar
   1739 am__tar
   1740 AMTAR
   1741 am__leading_dot
   1742 SET_MAKE
   1743 AWK
   1744 mkdir_p
   1745 MKDIR_P
   1746 INSTALL_STRIP_PROGRAM
   1747 STRIP
   1748 install_sh
   1749 MAKEINFO
   1750 AUTOHEADER
   1751 AUTOMAKE
   1752 AUTOCONF
   1753 ACLOCAL
   1754 VERSION
   1755 PACKAGE
   1756 CYGPATH_W
   1757 am__isrc
   1758 INSTALL_DATA
   1759 INSTALL_SCRIPT
   1760 INSTALL_PROGRAM
   1761 PACKAGE_COPYRIGHT_YEAR
   1762 target_alias
   1763 host_alias
   1764 build_alias
   1765 LIBS
   1766 ECHO_T
   1767 ECHO_N
   1768 ECHO_C
   1769 DEFS
   1770 mandir
   1771 localedir
   1772 libdir
   1773 psdir
   1774 pdfdir
   1775 dvidir
   1776 htmldir
   1777 infodir
   1778 docdir
   1779 oldincludedir
   1780 includedir
   1781 localstatedir
   1782 sharedstatedir
   1783 sysconfdir
   1784 datadir
   1785 datarootdir
   1786 libexecdir
   1787 sbindir
   1788 bindir
   1789 program_transform_name
   1790 prefix
   1791 exec_prefix
   1792 PACKAGE_URL
   1793 PACKAGE_BUGREPORT
   1794 PACKAGE_STRING
   1795 PACKAGE_VERSION
   1796 PACKAGE_TARNAME
   1797 PACKAGE_NAME
   1798 PATH_SEPARATOR
   1799 SHELL'
   1800 ac_subst_files=''
   1801 ac_user_opts='
   1802 enable_option_checking
   1803 enable_silent_rules
   1804 enable_dependency_tracking
   1805 enable_largefile
   1806 enable_threads
   1807 enable_gcc_warnings
   1808 enable_yacc
   1809 enable_assert
   1810 with_gnu_ld
   1811 enable_rpath
   1812 with_libpth_prefix
   1813 with_dmalloc
   1814 enable_nls
   1815 with_libiconv_prefix
   1816 with_libintl_prefix
   1817 '
   1818       ac_precious_vars='build_alias
   1819 host_alias
   1820 target_alias
   1821 CC
   1822 CFLAGS
   1823 LDFLAGS
   1824 LIBS
   1825 CPPFLAGS
   1826 CXX
   1827 CXXFLAGS
   1828 CCC
   1829 CPP
   1830 YACC
   1831 YFLAGS
   1832 M4'
   1833 
   1834 
   1835 # Initialize some variables set by options.
   1836 ac_init_help=
   1837 ac_init_version=false
   1838 ac_unrecognized_opts=
   1839 ac_unrecognized_sep=
   1840 # The variables have the same names as the options, with
   1841 # dashes changed to underlines.
   1842 cache_file=/dev/null
   1843 exec_prefix=NONE
   1844 no_create=
   1845 no_recursion=
   1846 prefix=NONE
   1847 program_prefix=NONE
   1848 program_suffix=NONE
   1849 program_transform_name=s,x,x,
   1850 silent=
   1851 site=
   1852 srcdir=
   1853 verbose=
   1854 x_includes=NONE
   1855 x_libraries=NONE
   1856 
   1857 # Installation directory options.
   1858 # These are left unexpanded so users can "make install exec_prefix=/foo"
   1859 # and all the variables that are supposed to be based on exec_prefix
   1860 # by default will actually change.
   1861 # Use braces instead of parens because sh, perl, etc. also accept them.
   1862 # (The list follows the same order as the GNU Coding Standards.)
   1863 bindir='${exec_prefix}/bin'
   1864 sbindir='${exec_prefix}/sbin'
   1865 libexecdir='${exec_prefix}/libexec'
   1866 datarootdir='${prefix}/share'
   1867 datadir='${datarootdir}'
   1868 sysconfdir='${prefix}/etc'
   1869 sharedstatedir='${prefix}/com'
   1870 localstatedir='${prefix}/var'
   1871 includedir='${prefix}/include'
   1872 oldincludedir='/usr/include'
   1873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1874 infodir='${datarootdir}/info'
   1875 htmldir='${docdir}'
   1876 dvidir='${docdir}'
   1877 pdfdir='${docdir}'
   1878 psdir='${docdir}'
   1879 libdir='${exec_prefix}/lib'
   1880 localedir='${datarootdir}/locale'
   1881 mandir='${datarootdir}/man'
   1882 
   1883 ac_prev=
   1884 ac_dashdash=
   1885 for ac_option
   1886 do
   1887   # If the previous option needs an argument, assign it.
   1888   if test -n "$ac_prev"; then
   1889     eval $ac_prev=\$ac_option
   1890     ac_prev=
   1891     continue
   1892   fi
   1893 
   1894   case $ac_option in
   1895   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1896   *=)   ac_optarg= ;;
   1897   *)    ac_optarg=yes ;;
   1898   esac
   1899 
   1900   # Accept the important Cygnus configure options, so we can diagnose typos.
   1901 
   1902   case $ac_dashdash$ac_option in
   1903   --)
   1904     ac_dashdash=yes ;;
   1905 
   1906   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1907     ac_prev=bindir ;;
   1908   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1909     bindir=$ac_optarg ;;
   1910 
   1911   -build | --build | --buil | --bui | --bu)
   1912     ac_prev=build_alias ;;
   1913   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1914     build_alias=$ac_optarg ;;
   1915 
   1916   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1917   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1918     ac_prev=cache_file ;;
   1919   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1920   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1921     cache_file=$ac_optarg ;;
   1922 
   1923   --config-cache | -C)
   1924     cache_file=config.cache ;;
   1925 
   1926   -datadir | --datadir | --datadi | --datad)
   1927     ac_prev=datadir ;;
   1928   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1929     datadir=$ac_optarg ;;
   1930 
   1931   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1932   | --dataroo | --dataro | --datar)
   1933     ac_prev=datarootdir ;;
   1934   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1935   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1936     datarootdir=$ac_optarg ;;
   1937 
   1938   -disable-* | --disable-*)
   1939     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1940     # Reject names that are not valid shell variable names.
   1941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1942       as_fn_error $? "invalid feature name: $ac_useropt"
   1943     ac_useropt_orig=$ac_useropt
   1944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1945     case $ac_user_opts in
   1946       *"
   1947 "enable_$ac_useropt"
   1948 "*) ;;
   1949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1950 	 ac_unrecognized_sep=', ';;
   1951     esac
   1952     eval enable_$ac_useropt=no ;;
   1953 
   1954   -docdir | --docdir | --docdi | --doc | --do)
   1955     ac_prev=docdir ;;
   1956   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1957     docdir=$ac_optarg ;;
   1958 
   1959   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1960     ac_prev=dvidir ;;
   1961   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1962     dvidir=$ac_optarg ;;
   1963 
   1964   -enable-* | --enable-*)
   1965     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1966     # Reject names that are not valid shell variable names.
   1967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1968       as_fn_error $? "invalid feature name: $ac_useropt"
   1969     ac_useropt_orig=$ac_useropt
   1970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1971     case $ac_user_opts in
   1972       *"
   1973 "enable_$ac_useropt"
   1974 "*) ;;
   1975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1976 	 ac_unrecognized_sep=', ';;
   1977     esac
   1978     eval enable_$ac_useropt=\$ac_optarg ;;
   1979 
   1980   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1981   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1982   | --exec | --exe | --ex)
   1983     ac_prev=exec_prefix ;;
   1984   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1985   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1986   | --exec=* | --exe=* | --ex=*)
   1987     exec_prefix=$ac_optarg ;;
   1988 
   1989   -gas | --gas | --ga | --g)
   1990     # Obsolete; use --with-gas.
   1991     with_gas=yes ;;
   1992 
   1993   -help | --help | --hel | --he | -h)
   1994     ac_init_help=long ;;
   1995   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1996     ac_init_help=recursive ;;
   1997   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1998     ac_init_help=short ;;
   1999 
   2000   -host | --host | --hos | --ho)
   2001     ac_prev=host_alias ;;
   2002   -host=* | --host=* | --hos=* | --ho=*)
   2003     host_alias=$ac_optarg ;;
   2004 
   2005   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   2006     ac_prev=htmldir ;;
   2007   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   2008   | --ht=*)
   2009     htmldir=$ac_optarg ;;
   2010 
   2011   -includedir | --includedir | --includedi | --included | --include \
   2012   | --includ | --inclu | --incl | --inc)
   2013     ac_prev=includedir ;;
   2014   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   2015   | --includ=* | --inclu=* | --incl=* | --inc=*)
   2016     includedir=$ac_optarg ;;
   2017 
   2018   -infodir | --infodir | --infodi | --infod | --info | --inf)
   2019     ac_prev=infodir ;;
   2020   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   2021     infodir=$ac_optarg ;;
   2022 
   2023   -libdir | --libdir | --libdi | --libd)
   2024     ac_prev=libdir ;;
   2025   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   2026     libdir=$ac_optarg ;;
   2027 
   2028   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   2029   | --libexe | --libex | --libe)
   2030     ac_prev=libexecdir ;;
   2031   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   2032   | --libexe=* | --libex=* | --libe=*)
   2033     libexecdir=$ac_optarg ;;
   2034 
   2035   -localedir | --localedir | --localedi | --localed | --locale)
   2036     ac_prev=localedir ;;
   2037   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   2038     localedir=$ac_optarg ;;
   2039 
   2040   -localstatedir | --localstatedir | --localstatedi | --localstated \
   2041   | --localstate | --localstat | --localsta | --localst | --locals)
   2042     ac_prev=localstatedir ;;
   2043   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   2044   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   2045     localstatedir=$ac_optarg ;;
   2046 
   2047   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   2048     ac_prev=mandir ;;
   2049   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   2050     mandir=$ac_optarg ;;
   2051 
   2052   -nfp | --nfp | --nf)
   2053     # Obsolete; use --without-fp.
   2054     with_fp=no ;;
   2055 
   2056   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   2057   | --no-cr | --no-c | -n)
   2058     no_create=yes ;;
   2059 
   2060   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   2061   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   2062     no_recursion=yes ;;
   2063 
   2064   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   2065   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   2066   | --oldin | --oldi | --old | --ol | --o)
   2067     ac_prev=oldincludedir ;;
   2068   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   2069   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   2070   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   2071     oldincludedir=$ac_optarg ;;
   2072 
   2073   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   2074     ac_prev=prefix ;;
   2075   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   2076     prefix=$ac_optarg ;;
   2077 
   2078   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   2079   | --program-pre | --program-pr | --program-p)
   2080     ac_prev=program_prefix ;;
   2081   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   2082   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   2083     program_prefix=$ac_optarg ;;
   2084 
   2085   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   2086   | --program-suf | --program-su | --program-s)
   2087     ac_prev=program_suffix ;;
   2088   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   2089   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   2090     program_suffix=$ac_optarg ;;
   2091 
   2092   -program-transform-name | --program-transform-name \
   2093   | --program-transform-nam | --program-transform-na \
   2094   | --program-transform-n | --program-transform- \
   2095   | --program-transform | --program-transfor \
   2096   | --program-transfo | --program-transf \
   2097   | --program-trans | --program-tran \
   2098   | --progr-tra | --program-tr | --program-t)
   2099     ac_prev=program_transform_name ;;
   2100   -program-transform-name=* | --program-transform-name=* \
   2101   | --program-transform-nam=* | --program-transform-na=* \
   2102   | --program-transform-n=* | --program-transform-=* \
   2103   | --program-transform=* | --program-transfor=* \
   2104   | --program-transfo=* | --program-transf=* \
   2105   | --program-trans=* | --program-tran=* \
   2106   | --progr-tra=* | --program-tr=* | --program-t=*)
   2107     program_transform_name=$ac_optarg ;;
   2108 
   2109   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   2110     ac_prev=pdfdir ;;
   2111   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   2112     pdfdir=$ac_optarg ;;
   2113 
   2114   -psdir | --psdir | --psdi | --psd | --ps)
   2115     ac_prev=psdir ;;
   2116   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   2117     psdir=$ac_optarg ;;
   2118 
   2119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2120   | -silent | --silent | --silen | --sile | --sil)
   2121     silent=yes ;;
   2122 
   2123   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   2124     ac_prev=sbindir ;;
   2125   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   2126   | --sbi=* | --sb=*)
   2127     sbindir=$ac_optarg ;;
   2128 
   2129   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   2130   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   2131   | --sharedst | --shareds | --shared | --share | --shar \
   2132   | --sha | --sh)
   2133     ac_prev=sharedstatedir ;;
   2134   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   2135   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   2136   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   2137   | --sha=* | --sh=*)
   2138     sharedstatedir=$ac_optarg ;;
   2139 
   2140   -site | --site | --sit)
   2141     ac_prev=site ;;
   2142   -site=* | --site=* | --sit=*)
   2143     site=$ac_optarg ;;
   2144 
   2145   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   2146     ac_prev=srcdir ;;
   2147   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   2148     srcdir=$ac_optarg ;;
   2149 
   2150   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   2151   | --syscon | --sysco | --sysc | --sys | --sy)
   2152     ac_prev=sysconfdir ;;
   2153   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   2154   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   2155     sysconfdir=$ac_optarg ;;
   2156 
   2157   -target | --target | --targe | --targ | --tar | --ta | --t)
   2158     ac_prev=target_alias ;;
   2159   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   2160     target_alias=$ac_optarg ;;
   2161 
   2162   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   2163     verbose=yes ;;
   2164 
   2165   -version | --version | --versio | --versi | --vers | -V)
   2166     ac_init_version=: ;;
   2167 
   2168   -with-* | --with-*)
   2169     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   2170     # Reject names that are not valid shell variable names.
   2171     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   2172       as_fn_error $? "invalid package name: $ac_useropt"
   2173     ac_useropt_orig=$ac_useropt
   2174     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   2175     case $ac_user_opts in
   2176       *"
   2177 "with_$ac_useropt"
   2178 "*) ;;
   2179       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   2180 	 ac_unrecognized_sep=', ';;
   2181     esac
   2182     eval with_$ac_useropt=\$ac_optarg ;;
   2183 
   2184   -without-* | --without-*)
   2185     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   2186     # Reject names that are not valid shell variable names.
   2187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   2188       as_fn_error $? "invalid package name: $ac_useropt"
   2189     ac_useropt_orig=$ac_useropt
   2190     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   2191     case $ac_user_opts in
   2192       *"
   2193 "with_$ac_useropt"
   2194 "*) ;;
   2195       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   2196 	 ac_unrecognized_sep=', ';;
   2197     esac
   2198     eval with_$ac_useropt=no ;;
   2199 
   2200   --x)
   2201     # Obsolete; use --with-x.
   2202     with_x=yes ;;
   2203 
   2204   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   2205   | --x-incl | --x-inc | --x-in | --x-i)
   2206     ac_prev=x_includes ;;
   2207   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   2208   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   2209     x_includes=$ac_optarg ;;
   2210 
   2211   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   2212   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   2213     ac_prev=x_libraries ;;
   2214   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   2215   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   2216     x_libraries=$ac_optarg ;;
   2217 
   2218   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   2219 Try \`$0 --help' for more information"
   2220     ;;
   2221 
   2222   *=*)
   2223     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   2224     # Reject names that are not valid shell variable names.
   2225     case $ac_envvar in #(
   2226       '' | [0-9]* | *[!_$as_cr_alnum]* )
   2227       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   2228     esac
   2229     eval $ac_envvar=\$ac_optarg
   2230     export $ac_envvar ;;
   2231 
   2232   *)
   2233     # FIXME: should be removed in autoconf 3.0.
   2234     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   2235     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   2236       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   2237     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   2238     ;;
   2239 
   2240   esac
   2241 done
   2242 
   2243 if test -n "$ac_prev"; then
   2244   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   2245   as_fn_error $? "missing argument to $ac_option"
   2246 fi
   2247 
   2248 if test -n "$ac_unrecognized_opts"; then
   2249   case $enable_option_checking in
   2250     no) ;;
   2251     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   2252     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   2253   esac
   2254 fi
   2255 
   2256 # Check all directory arguments for consistency.
   2257 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   2258 		datadir sysconfdir sharedstatedir localstatedir includedir \
   2259 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   2260 		libdir localedir mandir
   2261 do
   2262   eval ac_val=\$$ac_var
   2263   # Remove trailing slashes.
   2264   case $ac_val in
   2265     */ )
   2266       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   2267       eval $ac_var=\$ac_val;;
   2268   esac
   2269   # Be sure to have absolute directory names.
   2270   case $ac_val in
   2271     [\\/$]* | ?:[\\/]* )  continue;;
   2272     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   2273   esac
   2274   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   2275 done
   2276 
   2277 # There might be people who depend on the old broken behavior: `$host'
   2278 # used to hold the argument of --host etc.
   2279 # FIXME: To remove some day.
   2280 build=$build_alias
   2281 host=$host_alias
   2282 target=$target_alias
   2283 
   2284 # FIXME: To remove some day.
   2285 if test "x$host_alias" != x; then
   2286   if test "x$build_alias" = x; then
   2287     cross_compiling=maybe
   2288   elif test "x$build_alias" != "x$host_alias"; then
   2289     cross_compiling=yes
   2290   fi
   2291 fi
   2292 
   2293 ac_tool_prefix=
   2294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   2295 
   2296 test "$silent" = yes && exec 6>/dev/null
   2297 
   2298 
   2299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   2300 ac_ls_di=`ls -di .` &&
   2301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   2302   as_fn_error $? "working directory cannot be determined"
   2303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   2304   as_fn_error $? "pwd does not report name of working directory"
   2305 
   2306 
   2307 # Find the source files, if location was not specified.
   2308 if test -z "$srcdir"; then
   2309   ac_srcdir_defaulted=yes
   2310   # Try the directory containing this script, then the parent directory.
   2311   ac_confdir=`$as_dirname -- "$as_myself" ||
   2312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   2313 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   2314 	 X"$as_myself" : 'X\(//\)$' \| \
   2315 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   2316 $as_echo X"$as_myself" |
   2317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   2318 	    s//\1/
   2319 	    q
   2320 	  }
   2321 	  /^X\(\/\/\)[^/].*/{
   2322 	    s//\1/
   2323 	    q
   2324 	  }
   2325 	  /^X\(\/\/\)$/{
   2326 	    s//\1/
   2327 	    q
   2328 	  }
   2329 	  /^X\(\/\).*/{
   2330 	    s//\1/
   2331 	    q
   2332 	  }
   2333 	  s/.*/./; q'`
   2334   srcdir=$ac_confdir
   2335   if test ! -r "$srcdir/$ac_unique_file"; then
   2336     srcdir=..
   2337   fi
   2338 else
   2339   ac_srcdir_defaulted=no
   2340 fi
   2341 if test ! -r "$srcdir/$ac_unique_file"; then
   2342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   2343   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   2344 fi
   2345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   2346 ac_abs_confdir=`(
   2347 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   2348 	pwd)`
   2349 # When building in place, set srcdir=.
   2350 if test "$ac_abs_confdir" = "$ac_pwd"; then
   2351   srcdir=.
   2352 fi
   2353 # Remove unnecessary trailing slashes from srcdir.
   2354 # Double slashes in file names in object file debugging info
   2355 # mess up M-x gdb in Emacs.
   2356 case $srcdir in
   2357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   2358 esac
   2359 for ac_var in $ac_precious_vars; do
   2360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   2361   eval ac_env_${ac_var}_value=\$${ac_var}
   2362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   2363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   2364 done
   2365 
   2366 #
   2367 # Report the --help message.
   2368 #
   2369 if test "$ac_init_help" = "long"; then
   2370   # Omit some internal or obsolete options to make the list less imposing.
   2371   # This message is too long to be a string in the A/UX 3.1 sh.
   2372   cat <<_ACEOF
   2373 \`configure' configures GNU Bison 2.7 to adapt to many kinds of systems.
   2374 
   2375 Usage: $0 [OPTION]... [VAR=VALUE]...
   2376 
   2377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   2378 VAR=VALUE.  See below for descriptions of some of the useful variables.
   2379 
   2380 Defaults for the options are specified in brackets.
   2381 
   2382 Configuration:
   2383   -h, --help              display this help and exit
   2384       --help=short        display options specific to this package
   2385       --help=recursive    display the short help of all the included packages
   2386   -V, --version           display version information and exit
   2387   -q, --quiet, --silent   do not print \`checking ...' messages
   2388       --cache-file=FILE   cache test results in FILE [disabled]
   2389   -C, --config-cache      alias for \`--cache-file=config.cache'
   2390   -n, --no-create         do not create output files
   2391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   2392 
   2393 Installation directories:
   2394   --prefix=PREFIX         install architecture-independent files in PREFIX
   2395                           [$ac_default_prefix]
   2396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   2397                           [PREFIX]
   2398 
   2399 By default, \`make install' will install all the files in
   2400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   2401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   2402 for instance \`--prefix=\$HOME'.
   2403 
   2404 For better control, use the options below.
   2405 
   2406 Fine tuning of the installation directories:
   2407   --bindir=DIR            user executables [EPREFIX/bin]
   2408   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   2409   --libexecdir=DIR        program executables [EPREFIX/libexec]
   2410   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   2411   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   2412   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   2413   --libdir=DIR            object code libraries [EPREFIX/lib]
   2414   --includedir=DIR        C header files [PREFIX/include]
   2415   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   2416   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   2417   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   2418   --infodir=DIR           info documentation [DATAROOTDIR/info]
   2419   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   2420   --mandir=DIR            man documentation [DATAROOTDIR/man]
   2421   --docdir=DIR            documentation root [DATAROOTDIR/doc/bison]
   2422   --htmldir=DIR           html documentation [DOCDIR]
   2423   --dvidir=DIR            dvi documentation [DOCDIR]
   2424   --pdfdir=DIR            pdf documentation [DOCDIR]
   2425   --psdir=DIR             ps documentation [DOCDIR]
   2426 _ACEOF
   2427 
   2428   cat <<\_ACEOF
   2429 
   2430 Program names:
   2431   --program-prefix=PREFIX            prepend PREFIX to installed program names
   2432   --program-suffix=SUFFIX            append SUFFIX to installed program names
   2433   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   2434 
   2435 System types:
   2436   --build=BUILD     configure for building on BUILD [guessed]
   2437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   2438 _ACEOF
   2439 fi
   2440 
   2441 if test -n "$ac_init_help"; then
   2442   case $ac_init_help in
   2443      short | recursive ) echo "Configuration of GNU Bison 2.7:";;
   2444    esac
   2445   cat <<\_ACEOF
   2446 
   2447 Optional Features:
   2448   --disable-option-checking  ignore unrecognized --enable/--with options
   2449   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   2450   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   2451   --enable-silent-rules   less verbose build output (undo: "make V=1")
   2452   --disable-silent-rules  verbose build output (undo: "make V=0")
   2453   --enable-dependency-tracking
   2454                           do not reject slow dependency extractors
   2455   --disable-dependency-tracking
   2456                           speeds up one-time build
   2457   --disable-largefile     omit support for large files
   2458   --enable-threads={posix|solaris|pth|windows}
   2459                           specify multithreading API
   2460   --disable-threads       build without multithread safety
   2461   --enable-gcc-warnings   turn on lots of GCC warnings (not recommended)
   2462   --disable-yacc          do not build a yacc command or an -ly library
   2463   --disable-assert        turn off assertions
   2464   --disable-rpath         do not hardcode runtime library paths
   2465   --disable-nls           do not use Native Language Support
   2466 
   2467 Optional Packages:
   2468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   2469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   2470   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   2471   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
   2472   --without-libpth-prefix     don't search for libpth in includedir and libdir
   2473   --with-dmalloc          use dmalloc, as in
   2474                           http://www.dmalloc.com/dmalloc.tar.gz
   2475   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   2476   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   2477   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
   2478   --without-libintl-prefix     don't search for libintl in includedir and libdir
   2479 
   2480 Some influential environment variables:
   2481   CC          C compiler command
   2482   CFLAGS      C compiler flags
   2483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   2484               nonstandard directory <lib dir>
   2485   LIBS        libraries to pass to the linker, e.g. -l<library>
   2486   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   2487               you have headers in a nonstandard directory <include dir>
   2488   CXX         C++ compiler command
   2489   CXXFLAGS    C++ compiler flags
   2490   CPP         C preprocessor
   2491   YACC        The `Yet Another Compiler Compiler' implementation to use.
   2492               Defaults to the first program found out of: `bison -y', `byacc',
   2493               `yacc'.
   2494   YFLAGS      The list of arguments that will be passed by default to $YACC.
   2495               This script will default YFLAGS to the empty string to avoid a
   2496               default value of `-d' given by some make applications.
   2497   M4          Location of GNU M4 1.4.6 or later. Defaults to the first program
   2498               of 'm4', 'gm4', or 'gnum4' on PATH that meets Autoconf needs.
   2499 
   2500 Use these variables to override the choices made by `configure' or to help
   2501 it to find libraries and programs with nonstandard names/locations.
   2502 
   2503 Report bugs to <bug-bison@gnu.org>.
   2504 GNU Bison home page: <http://www.gnu.org/software/bison/>.
   2505 General help using GNU software: <http://www.gnu.org/gethelp/>.
   2506 _ACEOF
   2507 ac_status=$?
   2508 fi
   2509 
   2510 if test "$ac_init_help" = "recursive"; then
   2511   # If there are subdirs, report their specific --help.
   2512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   2513     test -d "$ac_dir" ||
   2514       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   2515       continue
   2516     ac_builddir=.
   2517 
   2518 case "$ac_dir" in
   2519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   2520 *)
   2521   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   2522   # A ".." for each directory in $ac_dir_suffix.
   2523   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   2524   case $ac_top_builddir_sub in
   2525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   2526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   2527   esac ;;
   2528 esac
   2529 ac_abs_top_builddir=$ac_pwd
   2530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   2531 # for backward compatibility:
   2532 ac_top_builddir=$ac_top_build_prefix
   2533 
   2534 case $srcdir in
   2535   .)  # We are building in place.
   2536     ac_srcdir=.
   2537     ac_top_srcdir=$ac_top_builddir_sub
   2538     ac_abs_top_srcdir=$ac_pwd ;;
   2539   [\\/]* | ?:[\\/]* )  # Absolute name.
   2540     ac_srcdir=$srcdir$ac_dir_suffix;
   2541     ac_top_srcdir=$srcdir
   2542     ac_abs_top_srcdir=$srcdir ;;
   2543   *) # Relative name.
   2544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   2545     ac_top_srcdir=$ac_top_build_prefix$srcdir
   2546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   2547 esac
   2548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   2549 
   2550     cd "$ac_dir" || { ac_status=$?; continue; }
   2551     # Check for guested configure.
   2552     if test -f "$ac_srcdir/configure.gnu"; then
   2553       echo &&
   2554       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   2555     elif test -f "$ac_srcdir/configure"; then
   2556       echo &&
   2557       $SHELL "$ac_srcdir/configure" --help=recursive
   2558     else
   2559       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   2560     fi || ac_status=$?
   2561     cd "$ac_pwd" || { ac_status=$?; break; }
   2562   done
   2563 fi
   2564 
   2565 test -n "$ac_init_help" && exit $ac_status
   2566 if $ac_init_version; then
   2567   cat <<\_ACEOF
   2568 GNU Bison configure 2.7
   2569 generated by GNU Autoconf 2.69
   2570 
   2571 Copyright (C) 2012 Free Software Foundation, Inc.
   2572 This configure script is free software; the Free Software Foundation
   2573 gives unlimited permission to copy, distribute and modify it.
   2574 _ACEOF
   2575   exit
   2576 fi
   2577 
   2578 ## ------------------------ ##
   2579 ## Autoconf initialization. ##
   2580 ## ------------------------ ##
   2581 
   2582 # ac_fn_c_try_compile LINENO
   2583 # --------------------------
   2584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   2585 ac_fn_c_try_compile ()
   2586 {
   2587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2588   rm -f conftest.$ac_objext
   2589   if { { ac_try="$ac_compile"
   2590 case "(($ac_try" in
   2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2592   *) ac_try_echo=$ac_try;;
   2593 esac
   2594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2595 $as_echo "$ac_try_echo"; } >&5
   2596   (eval "$ac_compile") 2>conftest.err
   2597   ac_status=$?
   2598   if test -s conftest.err; then
   2599     grep -v '^ *+' conftest.err >conftest.er1
   2600     cat conftest.er1 >&5
   2601     mv -f conftest.er1 conftest.err
   2602   fi
   2603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2604   test $ac_status = 0; } && {
   2605 	 test -z "$ac_c_werror_flag" ||
   2606 	 test ! -s conftest.err
   2607        } && test -s conftest.$ac_objext; then :
   2608   ac_retval=0
   2609 else
   2610   $as_echo "$as_me: failed program was:" >&5
   2611 sed 's/^/| /' conftest.$ac_ext >&5
   2612 
   2613 	ac_retval=1
   2614 fi
   2615   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2616   as_fn_set_status $ac_retval
   2617 
   2618 } # ac_fn_c_try_compile
   2619 
   2620 # ac_fn_cxx_try_compile LINENO
   2621 # ----------------------------
   2622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   2623 ac_fn_cxx_try_compile ()
   2624 {
   2625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2626   rm -f conftest.$ac_objext
   2627   if { { ac_try="$ac_compile"
   2628 case "(($ac_try" in
   2629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2630   *) ac_try_echo=$ac_try;;
   2631 esac
   2632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2633 $as_echo "$ac_try_echo"; } >&5
   2634   (eval "$ac_compile") 2>conftest.err
   2635   ac_status=$?
   2636   if test -s conftest.err; then
   2637     grep -v '^ *+' conftest.err >conftest.er1
   2638     cat conftest.er1 >&5
   2639     mv -f conftest.er1 conftest.err
   2640   fi
   2641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2642   test $ac_status = 0; } && {
   2643 	 test -z "$ac_cxx_werror_flag" ||
   2644 	 test ! -s conftest.err
   2645        } && test -s conftest.$ac_objext; then :
   2646   ac_retval=0
   2647 else
   2648   $as_echo "$as_me: failed program was:" >&5
   2649 sed 's/^/| /' conftest.$ac_ext >&5
   2650 
   2651 	ac_retval=1
   2652 fi
   2653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2654   as_fn_set_status $ac_retval
   2655 
   2656 } # ac_fn_cxx_try_compile
   2657 
   2658 # ac_fn_c_try_cpp LINENO
   2659 # ----------------------
   2660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2661 ac_fn_c_try_cpp ()
   2662 {
   2663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2664   if { { ac_try="$ac_cpp conftest.$ac_ext"
   2665 case "(($ac_try" in
   2666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2667   *) ac_try_echo=$ac_try;;
   2668 esac
   2669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2670 $as_echo "$ac_try_echo"; } >&5
   2671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2672   ac_status=$?
   2673   if test -s conftest.err; then
   2674     grep -v '^ *+' conftest.err >conftest.er1
   2675     cat conftest.er1 >&5
   2676     mv -f conftest.er1 conftest.err
   2677   fi
   2678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2679   test $ac_status = 0; } > conftest.i && {
   2680 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2681 	 test ! -s conftest.err
   2682        }; then :
   2683   ac_retval=0
   2684 else
   2685   $as_echo "$as_me: failed program was:" >&5
   2686 sed 's/^/| /' conftest.$ac_ext >&5
   2687 
   2688     ac_retval=1
   2689 fi
   2690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2691   as_fn_set_status $ac_retval
   2692 
   2693 } # ac_fn_c_try_cpp
   2694 
   2695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   2696 # -------------------------------------------------------
   2697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   2698 # the include files in INCLUDES and setting the cache variable VAR
   2699 # accordingly.
   2700 ac_fn_c_check_header_mongrel ()
   2701 {
   2702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2703   if eval \${$3+:} false; then :
   2704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2705 $as_echo_n "checking for $2... " >&6; }
   2706 if eval \${$3+:} false; then :
   2707   $as_echo_n "(cached) " >&6
   2708 fi
   2709 eval ac_res=\$$3
   2710 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2711 $as_echo "$ac_res" >&6; }
   2712 else
   2713   # Is the header compilable?
   2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   2715 $as_echo_n "checking $2 usability... " >&6; }
   2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2717 /* end confdefs.h.  */
   2718 $4
   2719 #include <$2>
   2720 _ACEOF
   2721 if ac_fn_c_try_compile "$LINENO"; then :
   2722   ac_header_compiler=yes
   2723 else
   2724   ac_header_compiler=no
   2725 fi
   2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   2728 $as_echo "$ac_header_compiler" >&6; }
   2729 
   2730 # Is the header present?
   2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   2732 $as_echo_n "checking $2 presence... " >&6; }
   2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2734 /* end confdefs.h.  */
   2735 #include <$2>
   2736 _ACEOF
   2737 if ac_fn_c_try_cpp "$LINENO"; then :
   2738   ac_header_preproc=yes
   2739 else
   2740   ac_header_preproc=no
   2741 fi
   2742 rm -f conftest.err conftest.i conftest.$ac_ext
   2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   2744 $as_echo "$ac_header_preproc" >&6; }
   2745 
   2746 # So?  What about this header?
   2747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   2748   yes:no: )
   2749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   2750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   2751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2753     ;;
   2754   no:yes:* )
   2755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   2756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   2757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   2758 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   2759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   2760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   2761     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   2762 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   2763     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2765 ( $as_echo "## -------------------------------- ##
   2766 ## Report this to bug-bison (at] gnu.org ##
   2767 ## -------------------------------- ##"
   2768      ) | sed "s/^/$as_me: WARNING:     /" >&2
   2769     ;;
   2770 esac
   2771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2772 $as_echo_n "checking for $2... " >&6; }
   2773 if eval \${$3+:} false; then :
   2774   $as_echo_n "(cached) " >&6
   2775 else
   2776   eval "$3=\$ac_header_compiler"
   2777 fi
   2778 eval ac_res=\$$3
   2779 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2780 $as_echo "$ac_res" >&6; }
   2781 fi
   2782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2783 
   2784 } # ac_fn_c_check_header_mongrel
   2785 
   2786 # ac_fn_c_try_run LINENO
   2787 # ----------------------
   2788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   2789 # that executables *can* be run.
   2790 ac_fn_c_try_run ()
   2791 {
   2792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2793   if { { ac_try="$ac_link"
   2794 case "(($ac_try" in
   2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2796   *) ac_try_echo=$ac_try;;
   2797 esac
   2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2799 $as_echo "$ac_try_echo"; } >&5
   2800   (eval "$ac_link") 2>&5
   2801   ac_status=$?
   2802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2803   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2804   { { case "(($ac_try" in
   2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2806   *) ac_try_echo=$ac_try;;
   2807 esac
   2808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2809 $as_echo "$ac_try_echo"; } >&5
   2810   (eval "$ac_try") 2>&5
   2811   ac_status=$?
   2812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2813   test $ac_status = 0; }; }; then :
   2814   ac_retval=0
   2815 else
   2816   $as_echo "$as_me: program exited with status $ac_status" >&5
   2817        $as_echo "$as_me: failed program was:" >&5
   2818 sed 's/^/| /' conftest.$ac_ext >&5
   2819 
   2820        ac_retval=$ac_status
   2821 fi
   2822   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2824   as_fn_set_status $ac_retval
   2825 
   2826 } # ac_fn_c_try_run
   2827 
   2828 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2829 # -------------------------------------------------------
   2830 # Tests whether HEADER exists and can be compiled using the include files in
   2831 # INCLUDES, setting the cache variable VAR accordingly.
   2832 ac_fn_c_check_header_compile ()
   2833 {
   2834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2836 $as_echo_n "checking for $2... " >&6; }
   2837 if eval \${$3+:} false; then :
   2838   $as_echo_n "(cached) " >&6
   2839 else
   2840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2841 /* end confdefs.h.  */
   2842 $4
   2843 #include <$2>
   2844 _ACEOF
   2845 if ac_fn_c_try_compile "$LINENO"; then :
   2846   eval "$3=yes"
   2847 else
   2848   eval "$3=no"
   2849 fi
   2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2851 fi
   2852 eval ac_res=\$$3
   2853 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2854 $as_echo "$ac_res" >&6; }
   2855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2856 
   2857 } # ac_fn_c_check_header_compile
   2858 
   2859 # ac_fn_c_try_link LINENO
   2860 # -----------------------
   2861 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2862 ac_fn_c_try_link ()
   2863 {
   2864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2865   rm -f conftest.$ac_objext conftest$ac_exeext
   2866   if { { ac_try="$ac_link"
   2867 case "(($ac_try" in
   2868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2869   *) ac_try_echo=$ac_try;;
   2870 esac
   2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2872 $as_echo "$ac_try_echo"; } >&5
   2873   (eval "$ac_link") 2>conftest.err
   2874   ac_status=$?
   2875   if test -s conftest.err; then
   2876     grep -v '^ *+' conftest.err >conftest.er1
   2877     cat conftest.er1 >&5
   2878     mv -f conftest.er1 conftest.err
   2879   fi
   2880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2881   test $ac_status = 0; } && {
   2882 	 test -z "$ac_c_werror_flag" ||
   2883 	 test ! -s conftest.err
   2884        } && test -s conftest$ac_exeext && {
   2885 	 test "$cross_compiling" = yes ||
   2886 	 test -x conftest$ac_exeext
   2887        }; then :
   2888   ac_retval=0
   2889 else
   2890   $as_echo "$as_me: failed program was:" >&5
   2891 sed 's/^/| /' conftest.$ac_ext >&5
   2892 
   2893 	ac_retval=1
   2894 fi
   2895   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2896   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2897   # interfere with the next link command; also delete a directory that is
   2898   # left behind by Apple's compiler.  We do this before executing the actions.
   2899   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2901   as_fn_set_status $ac_retval
   2902 
   2903 } # ac_fn_c_try_link
   2904 
   2905 # ac_fn_cxx_try_link LINENO
   2906 # -------------------------
   2907 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2908 ac_fn_cxx_try_link ()
   2909 {
   2910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2911   rm -f conftest.$ac_objext conftest$ac_exeext
   2912   if { { ac_try="$ac_link"
   2913 case "(($ac_try" in
   2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2915   *) ac_try_echo=$ac_try;;
   2916 esac
   2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2918 $as_echo "$ac_try_echo"; } >&5
   2919   (eval "$ac_link") 2>conftest.err
   2920   ac_status=$?
   2921   if test -s conftest.err; then
   2922     grep -v '^ *+' conftest.err >conftest.er1
   2923     cat conftest.er1 >&5
   2924     mv -f conftest.er1 conftest.err
   2925   fi
   2926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2927   test $ac_status = 0; } && {
   2928 	 test -z "$ac_cxx_werror_flag" ||
   2929 	 test ! -s conftest.err
   2930        } && test -s conftest$ac_exeext && {
   2931 	 test "$cross_compiling" = yes ||
   2932 	 test -x conftest$ac_exeext
   2933        }; then :
   2934   ac_retval=0
   2935 else
   2936   $as_echo "$as_me: failed program was:" >&5
   2937 sed 's/^/| /' conftest.$ac_ext >&5
   2938 
   2939 	ac_retval=1
   2940 fi
   2941   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2942   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2943   # interfere with the next link command; also delete a directory that is
   2944   # left behind by Apple's compiler.  We do this before executing the actions.
   2945   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2947   as_fn_set_status $ac_retval
   2948 
   2949 } # ac_fn_cxx_try_link
   2950 
   2951 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2952 # -------------------------------------------
   2953 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2954 # variable VAR accordingly.
   2955 ac_fn_c_check_type ()
   2956 {
   2957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2959 $as_echo_n "checking for $2... " >&6; }
   2960 if eval \${$3+:} false; then :
   2961   $as_echo_n "(cached) " >&6
   2962 else
   2963   eval "$3=no"
   2964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2965 /* end confdefs.h.  */
   2966 $4
   2967 int
   2968 main ()
   2969 {
   2970 if (sizeof ($2))
   2971 	 return 0;
   2972   ;
   2973   return 0;
   2974 }
   2975 _ACEOF
   2976 if ac_fn_c_try_compile "$LINENO"; then :
   2977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2978 /* end confdefs.h.  */
   2979 $4
   2980 int
   2981 main ()
   2982 {
   2983 if (sizeof (($2)))
   2984 	    return 0;
   2985   ;
   2986   return 0;
   2987 }
   2988 _ACEOF
   2989 if ac_fn_c_try_compile "$LINENO"; then :
   2990 
   2991 else
   2992   eval "$3=yes"
   2993 fi
   2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2995 fi
   2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2997 fi
   2998 eval ac_res=\$$3
   2999 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3000 $as_echo "$ac_res" >&6; }
   3001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3002 
   3003 } # ac_fn_c_check_type
   3004 
   3005 # ac_fn_c_check_func LINENO FUNC VAR
   3006 # ----------------------------------
   3007 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   3008 ac_fn_c_check_func ()
   3009 {
   3010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   3012 $as_echo_n "checking for $2... " >&6; }
   3013 if eval \${$3+:} false; then :
   3014   $as_echo_n "(cached) " >&6
   3015 else
   3016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3017 /* end confdefs.h.  */
   3018 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   3019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   3020 #define $2 innocuous_$2
   3021 
   3022 /* System header to define __stub macros and hopefully few prototypes,
   3023     which can conflict with char $2 (); below.
   3024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3025     <limits.h> exists even on freestanding compilers.  */
   3026 
   3027 #ifdef __STDC__
   3028 # include <limits.h>
   3029 #else
   3030 # include <assert.h>
   3031 #endif
   3032 
   3033 #undef $2
   3034 
   3035 /* Override any GCC internal prototype to avoid an error.
   3036    Use char because int might match the return type of a GCC
   3037    builtin and then its argument prototype would still apply.  */
   3038 #ifdef __cplusplus
   3039 extern "C"
   3040 #endif
   3041 char $2 ();
   3042 /* The GNU C library defines this for functions which it implements
   3043     to always fail with ENOSYS.  Some functions are actually named
   3044     something starting with __ and the normal name is an alias.  */
   3045 #if defined __stub_$2 || defined __stub___$2
   3046 choke me
   3047 #endif
   3048 
   3049 int
   3050 main ()
   3051 {
   3052 return $2 ();
   3053   ;
   3054   return 0;
   3055 }
   3056 _ACEOF
   3057 if ac_fn_c_try_link "$LINENO"; then :
   3058   eval "$3=yes"
   3059 else
   3060   eval "$3=no"
   3061 fi
   3062 rm -f core conftest.err conftest.$ac_objext \
   3063     conftest$ac_exeext conftest.$ac_ext
   3064 fi
   3065 eval ac_res=\$$3
   3066 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3067 $as_echo "$ac_res" >&6; }
   3068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3069 
   3070 } # ac_fn_c_check_func
   3071 
   3072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   3073 # --------------------------------------------
   3074 # Tries to find the compile-time value of EXPR in a program that includes
   3075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   3076 # computed
   3077 ac_fn_c_compute_int ()
   3078 {
   3079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3080   if test "$cross_compiling" = yes; then
   3081     # Depending upon the size, compute the lo and hi bounds.
   3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3083 /* end confdefs.h.  */
   3084 $4
   3085 int
   3086 main ()
   3087 {
   3088 static int test_array [1 - 2 * !(($2) >= 0)];
   3089 test_array [0] = 0;
   3090 return test_array [0];
   3091 
   3092   ;
   3093   return 0;
   3094 }
   3095 _ACEOF
   3096 if ac_fn_c_try_compile "$LINENO"; then :
   3097   ac_lo=0 ac_mid=0
   3098   while :; do
   3099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3100 /* end confdefs.h.  */
   3101 $4
   3102 int
   3103 main ()
   3104 {
   3105 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   3106 test_array [0] = 0;
   3107 return test_array [0];
   3108 
   3109   ;
   3110   return 0;
   3111 }
   3112 _ACEOF
   3113 if ac_fn_c_try_compile "$LINENO"; then :
   3114   ac_hi=$ac_mid; break
   3115 else
   3116   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   3117 			if test $ac_lo -le $ac_mid; then
   3118 			  ac_lo= ac_hi=
   3119 			  break
   3120 			fi
   3121 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   3122 fi
   3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3124   done
   3125 else
   3126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3127 /* end confdefs.h.  */
   3128 $4
   3129 int
   3130 main ()
   3131 {
   3132 static int test_array [1 - 2 * !(($2) < 0)];
   3133 test_array [0] = 0;
   3134 return test_array [0];
   3135 
   3136   ;
   3137   return 0;
   3138 }
   3139 _ACEOF
   3140 if ac_fn_c_try_compile "$LINENO"; then :
   3141   ac_hi=-1 ac_mid=-1
   3142   while :; do
   3143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3144 /* end confdefs.h.  */
   3145 $4
   3146 int
   3147 main ()
   3148 {
   3149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   3150 test_array [0] = 0;
   3151 return test_array [0];
   3152 
   3153   ;
   3154   return 0;
   3155 }
   3156 _ACEOF
   3157 if ac_fn_c_try_compile "$LINENO"; then :
   3158   ac_lo=$ac_mid; break
   3159 else
   3160   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   3161 			if test $ac_mid -le $ac_hi; then
   3162 			  ac_lo= ac_hi=
   3163 			  break
   3164 			fi
   3165 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   3166 fi
   3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3168   done
   3169 else
   3170   ac_lo= ac_hi=
   3171 fi
   3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3173 fi
   3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3175 # Binary search between lo and hi bounds.
   3176 while test "x$ac_lo" != "x$ac_hi"; do
   3177   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   3178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3179 /* end confdefs.h.  */
   3180 $4
   3181 int
   3182 main ()
   3183 {
   3184 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   3185 test_array [0] = 0;
   3186 return test_array [0];
   3187 
   3188   ;
   3189   return 0;
   3190 }
   3191 _ACEOF
   3192 if ac_fn_c_try_compile "$LINENO"; then :
   3193   ac_hi=$ac_mid
   3194 else
   3195   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   3196 fi
   3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3198 done
   3199 case $ac_lo in #((
   3200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   3201 '') ac_retval=1 ;;
   3202 esac
   3203   else
   3204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3205 /* end confdefs.h.  */
   3206 $4
   3207 static long int longval () { return $2; }
   3208 static unsigned long int ulongval () { return $2; }
   3209 #include <stdio.h>
   3210 #include <stdlib.h>
   3211 int
   3212 main ()
   3213 {
   3214 
   3215   FILE *f = fopen ("conftest.val", "w");
   3216   if (! f)
   3217     return 1;
   3218   if (($2) < 0)
   3219     {
   3220       long int i = longval ();
   3221       if (i != ($2))
   3222 	return 1;
   3223       fprintf (f, "%ld", i);
   3224     }
   3225   else
   3226     {
   3227       unsigned long int i = ulongval ();
   3228       if (i != ($2))
   3229 	return 1;
   3230       fprintf (f, "%lu", i);
   3231     }
   3232   /* Do not output a trailing newline, as this causes \r\n confusion
   3233      on some platforms.  */
   3234   return ferror (f) || fclose (f) != 0;
   3235 
   3236   ;
   3237   return 0;
   3238 }
   3239 _ACEOF
   3240 if ac_fn_c_try_run "$LINENO"; then :
   3241   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   3242 else
   3243   ac_retval=1
   3244 fi
   3245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3246   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3247 rm -f conftest.val
   3248 
   3249   fi
   3250   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3251   as_fn_set_status $ac_retval
   3252 
   3253 } # ac_fn_c_compute_int
   3254 
   3255 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   3256 # ---------------------------------------------
   3257 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   3258 # accordingly.
   3259 ac_fn_c_check_decl ()
   3260 {
   3261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3262   as_decl_name=`echo $2|sed 's/ *(.*//'`
   3263   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   3264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   3265 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   3266 if eval \${$3+:} false; then :
   3267   $as_echo_n "(cached) " >&6
   3268 else
   3269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3270 /* end confdefs.h.  */
   3271 $4
   3272 int
   3273 main ()
   3274 {
   3275 #ifndef $as_decl_name
   3276 #ifdef __cplusplus
   3277   (void) $as_decl_use;
   3278 #else
   3279   (void) $as_decl_name;
   3280 #endif
   3281 #endif
   3282 
   3283   ;
   3284   return 0;
   3285 }
   3286 _ACEOF
   3287 if ac_fn_c_try_compile "$LINENO"; then :
   3288   eval "$3=yes"
   3289 else
   3290   eval "$3=no"
   3291 fi
   3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3293 fi
   3294 eval ac_res=\$$3
   3295 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3296 $as_echo "$ac_res" >&6; }
   3297   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3298 
   3299 } # ac_fn_c_check_decl
   3300 
   3301 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   3302 # ----------------------------------------------------
   3303 # Tries to find if the field MEMBER exists in type AGGR, after including
   3304 # INCLUDES, setting cache variable VAR accordingly.
   3305 ac_fn_c_check_member ()
   3306 {
   3307   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   3309 $as_echo_n "checking for $2.$3... " >&6; }
   3310 if eval \${$4+:} false; then :
   3311   $as_echo_n "(cached) " >&6
   3312 else
   3313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3314 /* end confdefs.h.  */
   3315 $5
   3316 int
   3317 main ()
   3318 {
   3319 static $2 ac_aggr;
   3320 if (ac_aggr.$3)
   3321 return 0;
   3322   ;
   3323   return 0;
   3324 }
   3325 _ACEOF
   3326 if ac_fn_c_try_compile "$LINENO"; then :
   3327   eval "$4=yes"
   3328 else
   3329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3330 /* end confdefs.h.  */
   3331 $5
   3332 int
   3333 main ()
   3334 {
   3335 static $2 ac_aggr;
   3336 if (sizeof ac_aggr.$3)
   3337 return 0;
   3338   ;
   3339   return 0;
   3340 }
   3341 _ACEOF
   3342 if ac_fn_c_try_compile "$LINENO"; then :
   3343   eval "$4=yes"
   3344 else
   3345   eval "$4=no"
   3346 fi
   3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3348 fi
   3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3350 fi
   3351 eval ac_res=\$$4
   3352 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3353 $as_echo "$ac_res" >&6; }
   3354   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3355 
   3356 } # ac_fn_c_check_member
   3357 cat >config.log <<_ACEOF
   3358 This file contains any messages produced by compilers while
   3359 running configure, to aid debugging if configure makes a mistake.
   3360 
   3361 It was created by GNU Bison $as_me 2.7, which was
   3362 generated by GNU Autoconf 2.69.  Invocation command line was
   3363 
   3364   $ $0 $@
   3365 
   3366 _ACEOF
   3367 exec 5>>config.log
   3368 {
   3369 cat <<_ASUNAME
   3370 ## --------- ##
   3371 ## Platform. ##
   3372 ## --------- ##
   3373 
   3374 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   3375 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   3376 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   3377 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   3378 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   3379 
   3380 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   3381 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   3382 
   3383 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   3384 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   3385 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   3386 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   3387 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   3388 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   3389 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   3390 
   3391 _ASUNAME
   3392 
   3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3394 for as_dir in $PATH
   3395 do
   3396   IFS=$as_save_IFS
   3397   test -z "$as_dir" && as_dir=.
   3398     $as_echo "PATH: $as_dir"
   3399   done
   3400 IFS=$as_save_IFS
   3401 
   3402 } >&5
   3403 
   3404 cat >&5 <<_ACEOF
   3405 
   3406 
   3407 ## ----------- ##
   3408 ## Core tests. ##
   3409 ## ----------- ##
   3410 
   3411 _ACEOF
   3412 
   3413 
   3414 # Keep a trace of the command line.
   3415 # Strip out --no-create and --no-recursion so they do not pile up.
   3416 # Strip out --silent because we don't want to record it for future runs.
   3417 # Also quote any args containing shell meta-characters.
   3418 # Make two passes to allow for proper duplicate-argument suppression.
   3419 ac_configure_args=
   3420 ac_configure_args0=
   3421 ac_configure_args1=
   3422 ac_must_keep_next=false
   3423 for ac_pass in 1 2
   3424 do
   3425   for ac_arg
   3426   do
   3427     case $ac_arg in
   3428     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   3429     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   3430     | -silent | --silent | --silen | --sile | --sil)
   3431       continue ;;
   3432     *\'*)
   3433       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   3434     esac
   3435     case $ac_pass in
   3436     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   3437     2)
   3438       as_fn_append ac_configure_args1 " '$ac_arg'"
   3439       if test $ac_must_keep_next = true; then
   3440 	ac_must_keep_next=false # Got value, back to normal.
   3441       else
   3442 	case $ac_arg in
   3443 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   3444 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   3445 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   3446 	  | -with-* | --with-* | -without-* | --without-* | --x)
   3447 	    case "$ac_configure_args0 " in
   3448 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   3449 	    esac
   3450 	    ;;
   3451 	  -* ) ac_must_keep_next=true ;;
   3452 	esac
   3453       fi
   3454       as_fn_append ac_configure_args " '$ac_arg'"
   3455       ;;
   3456     esac
   3457   done
   3458 done
   3459 { ac_configure_args0=; unset ac_configure_args0;}
   3460 { ac_configure_args1=; unset ac_configure_args1;}
   3461 
   3462 # When interrupted or exit'd, cleanup temporary files, and complete
   3463 # config.log.  We remove comments because anyway the quotes in there
   3464 # would cause problems or look ugly.
   3465 # WARNING: Use '\'' to represent an apostrophe within the trap.
   3466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   3467 trap 'exit_status=$?
   3468   # Save into config.log some information that might help in debugging.
   3469   {
   3470     echo
   3471 
   3472     $as_echo "## ---------------- ##
   3473 ## Cache variables. ##
   3474 ## ---------------- ##"
   3475     echo
   3476     # The following way of writing the cache mishandles newlines in values,
   3477 (
   3478   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   3479     eval ac_val=\$$ac_var
   3480     case $ac_val in #(
   3481     *${as_nl}*)
   3482       case $ac_var in #(
   3483       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   3484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   3485       esac
   3486       case $ac_var in #(
   3487       _ | IFS | as_nl) ;; #(
   3488       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   3489       *) { eval $ac_var=; unset $ac_var;} ;;
   3490       esac ;;
   3491     esac
   3492   done
   3493   (set) 2>&1 |
   3494     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   3495     *${as_nl}ac_space=\ *)
   3496       sed -n \
   3497 	"s/'\''/'\''\\\\'\'''\''/g;
   3498 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   3499       ;; #(
   3500     *)
   3501       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   3502       ;;
   3503     esac |
   3504     sort
   3505 )
   3506     echo
   3507 
   3508     $as_echo "## ----------------- ##
   3509 ## Output variables. ##
   3510 ## ----------------- ##"
   3511     echo
   3512     for ac_var in $ac_subst_vars
   3513     do
   3514       eval ac_val=\$$ac_var
   3515       case $ac_val in
   3516       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   3517       esac
   3518       $as_echo "$ac_var='\''$ac_val'\''"
   3519     done | sort
   3520     echo
   3521 
   3522     if test -n "$ac_subst_files"; then
   3523       $as_echo "## ------------------- ##
   3524 ## File substitutions. ##
   3525 ## ------------------- ##"
   3526       echo
   3527       for ac_var in $ac_subst_files
   3528       do
   3529 	eval ac_val=\$$ac_var
   3530 	case $ac_val in
   3531 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   3532 	esac
   3533 	$as_echo "$ac_var='\''$ac_val'\''"
   3534       done | sort
   3535       echo
   3536     fi
   3537 
   3538     if test -s confdefs.h; then
   3539       $as_echo "## ----------- ##
   3540 ## confdefs.h. ##
   3541 ## ----------- ##"
   3542       echo
   3543       cat confdefs.h
   3544       echo
   3545     fi
   3546     test "$ac_signal" != 0 &&
   3547       $as_echo "$as_me: caught signal $ac_signal"
   3548     $as_echo "$as_me: exit $exit_status"
   3549   } >&5
   3550   rm -f core *.core core.conftest.* &&
   3551     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   3552     exit $exit_status
   3553 ' 0
   3554 for ac_signal in 1 2 13 15; do
   3555   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   3556 done
   3557 ac_signal=0
   3558 
   3559 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   3560 rm -f -r conftest* confdefs.h
   3561 
   3562 $as_echo "/* confdefs.h */" > confdefs.h
   3563 
   3564 # Predefined preprocessor variables.
   3565 
   3566 cat >>confdefs.h <<_ACEOF
   3567 #define PACKAGE_NAME "$PACKAGE_NAME"
   3568 _ACEOF
   3569 
   3570 cat >>confdefs.h <<_ACEOF
   3571 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   3572 _ACEOF
   3573 
   3574 cat >>confdefs.h <<_ACEOF
   3575 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   3576 _ACEOF
   3577 
   3578 cat >>confdefs.h <<_ACEOF
   3579 #define PACKAGE_STRING "$PACKAGE_STRING"
   3580 _ACEOF
   3581 
   3582 cat >>confdefs.h <<_ACEOF
   3583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   3584 _ACEOF
   3585 
   3586 cat >>confdefs.h <<_ACEOF
   3587 #define PACKAGE_URL "$PACKAGE_URL"
   3588 _ACEOF
   3589 
   3590 
   3591 # Let the site file select an alternate cache file if it wants to.
   3592 # Prefer an explicitly selected file to automatically selected ones.
   3593 ac_site_file1=NONE
   3594 ac_site_file2=NONE
   3595 if test -n "$CONFIG_SITE"; then
   3596   # We do not want a PATH search for config.site.
   3597   case $CONFIG_SITE in #((
   3598     -*)  ac_site_file1=./$CONFIG_SITE;;
   3599     */*) ac_site_file1=$CONFIG_SITE;;
   3600     *)   ac_site_file1=./$CONFIG_SITE;;
   3601   esac
   3602 elif test "x$prefix" != xNONE; then
   3603   ac_site_file1=$prefix/share/config.site
   3604   ac_site_file2=$prefix/etc/config.site
   3605 else
   3606   ac_site_file1=$ac_default_prefix/share/config.site
   3607   ac_site_file2=$ac_default_prefix/etc/config.site
   3608 fi
   3609 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   3610 do
   3611   test "x$ac_site_file" = xNONE && continue
   3612   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   3613     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   3614 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   3615     sed 's/^/| /' "$ac_site_file" >&5
   3616     . "$ac_site_file" \
   3617       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3619 as_fn_error $? "failed to load site script $ac_site_file
   3620 See \`config.log' for more details" "$LINENO" 5; }
   3621   fi
   3622 done
   3623 
   3624 if test -r "$cache_file"; then
   3625   # Some versions of bash will fail to source /dev/null (special files
   3626   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   3627   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   3628     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   3629 $as_echo "$as_me: loading cache $cache_file" >&6;}
   3630     case $cache_file in
   3631       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   3632       *)                      . "./$cache_file";;
   3633     esac
   3634   fi
   3635 else
   3636   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   3637 $as_echo "$as_me: creating cache $cache_file" >&6;}
   3638   >$cache_file
   3639 fi
   3640 
   3641 as_fn_append ac_header_list " locale.h"
   3642 as_fn_append ac_func_list " _set_invalid_parameter_handler"
   3643 as_fn_append ac_header_list " sys/socket.h"
   3644 as_fn_append ac_header_list " unistd.h"
   3645 as_fn_append ac_func_list " fcntl"
   3646 as_fn_append ac_func_list " symlink"
   3647 as_fn_append ac_header_list " stdio_ext.h"
   3648 as_fn_append ac_func_list " __fpending"
   3649 as_fn_append ac_func_list " vasnprintf"
   3650 as_fn_append ac_header_list " features.h"
   3651 as_fn_append ac_func_list " snprintf"
   3652 as_fn_append ac_func_list " alarm"
   3653 as_fn_append ac_func_list " __fseterr"
   3654 as_fn_append ac_header_list " sys/stat.h"
   3655 as_fn_append ac_func_list " getdelim"
   3656 as_fn_append ac_func_list " getdtablesize"
   3657 gl_getopt_required=GNU
   3658 as_fn_append ac_header_list " getopt.h"
   3659 as_fn_append ac_header_list " wchar.h"
   3660 as_fn_append ac_header_list " stdint.h"
   3661 as_fn_append ac_header_list " inttypes.h"
   3662 as_fn_append ac_func_list " iswcntrl"
   3663 as_fn_append ac_header_list " wctype.h"
   3664 as_fn_append ac_func_list " iswblank"
   3665 as_fn_append ac_header_list " math.h"
   3666 as_fn_append ac_func_list " mbsinit"
   3667 as_fn_append ac_func_list " mbrtowc"
   3668 as_fn_append ac_func_list " isascii"
   3669 as_fn_append ac_header_list " sys/mman.h"
   3670 as_fn_append ac_func_list " mprotect"
   3671 as_fn_append ac_func_list " obstack_printf"
   3672 as_fn_append ac_func_list " lstat"
   3673 as_fn_append ac_header_list " sys/param.h"
   3674 as_fn_append ac_func_list " strerror_r"
   3675 as_fn_append ac_func_list " __xpg_strerror_r"
   3676 as_fn_append ac_func_list " pipe2"
   3677 as_fn_append ac_func_list " posix_spawn"
   3678 gl_printf_safe=yes
   3679 as_fn_append ac_header_list " sched.h"
   3680 as_fn_append ac_func_list " sigaction"
   3681 as_fn_append ac_func_list " sigaltstack"
   3682 as_fn_append ac_func_list " siginterrupt"
   3683 as_fn_append ac_header_list " spawn.h"
   3684 as_fn_append ac_func_list " strdup"
   3685 as_fn_append ac_func_list " catgets"
   3686 as_fn_append ac_func_list " strndup"
   3687 as_fn_append ac_header_list " sys/wait.h"
   3688 as_fn_append ac_header_list " sys/time.h"
   3689 as_fn_append ac_func_list " pipe"
   3690 as_fn_append ac_func_list " wcwidth"
   3691 as_fn_append ac_func_list " setlocale"
   3692 gt_needs="$gt_needs need-ngettext"
   3693 # Check that the precious variables saved in the cache have kept the same
   3694 # value.
   3695 ac_cache_corrupted=false
   3696 for ac_var in $ac_precious_vars; do
   3697   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   3698   eval ac_new_set=\$ac_env_${ac_var}_set
   3699   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   3700   eval ac_new_val=\$ac_env_${ac_var}_value
   3701   case $ac_old_set,$ac_new_set in
   3702     set,)
   3703       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   3704 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   3705       ac_cache_corrupted=: ;;
   3706     ,set)
   3707       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   3708 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   3709       ac_cache_corrupted=: ;;
   3710     ,);;
   3711     *)
   3712       if test "x$ac_old_val" != "x$ac_new_val"; then
   3713 	# differences in whitespace do not lead to failure.
   3714 	ac_old_val_w=`echo x $ac_old_val`
   3715 	ac_new_val_w=`echo x $ac_new_val`
   3716 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   3717 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   3718 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   3719 	  ac_cache_corrupted=:
   3720 	else
   3721 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   3722 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   3723 	  eval $ac_var=\$ac_old_val
   3724 	fi
   3725 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   3726 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   3727 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   3728 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   3729       fi;;
   3730   esac
   3731   # Pass precious variables to config.status.
   3732   if test "$ac_new_set" = set; then
   3733     case $ac_new_val in
   3734     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   3735     *) ac_arg=$ac_var=$ac_new_val ;;
   3736     esac
   3737     case " $ac_configure_args " in
   3738       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   3739       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   3740     esac
   3741   fi
   3742 done
   3743 if $ac_cache_corrupted; then
   3744   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3746   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   3747 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   3748   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   3749 fi
   3750 ## -------------------- ##
   3751 ## Main body of script. ##
   3752 ## -------------------- ##
   3753 
   3754 ac_ext=c
   3755 ac_cpp='$CPP $CPPFLAGS'
   3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3759 
   3760 
   3761 PACKAGE_COPYRIGHT_YEAR=2012
   3762 
   3763 
   3764 cat >>confdefs.h <<_ACEOF
   3765 #define PACKAGE_COPYRIGHT_YEAR $PACKAGE_COPYRIGHT_YEAR
   3766 _ACEOF
   3767 
   3768 
   3769 ac_aux_dir=
   3770 for ac_dir in build-aux "$srcdir"/build-aux; do
   3771   if test -f "$ac_dir/install-sh"; then
   3772     ac_aux_dir=$ac_dir
   3773     ac_install_sh="$ac_aux_dir/install-sh -c"
   3774     break
   3775   elif test -f "$ac_dir/install.sh"; then
   3776     ac_aux_dir=$ac_dir
   3777     ac_install_sh="$ac_aux_dir/install.sh -c"
   3778     break
   3779   elif test -f "$ac_dir/shtool"; then
   3780     ac_aux_dir=$ac_dir
   3781     ac_install_sh="$ac_aux_dir/shtool install -c"
   3782     break
   3783   fi
   3784 done
   3785 if test -z "$ac_aux_dir"; then
   3786   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
   3787 fi
   3788 
   3789 # These three variables are undocumented and unsupported,
   3790 # and are intended to be withdrawn in a future Autoconf release.
   3791 # They can cause serious problems if a builder's source tree is in a directory
   3792 # whose full name contains unusual characters.
   3793 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   3794 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   3795 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   3796 
   3797 
   3798 
   3799 
   3800 # Automake 1.10.3 and 1.11.1 fix a security flaw discussed here:
   3801 #
   3802 #   http://thread.gmane.org/gmane.comp.sysutils.autotools.announce/131
   3803 #
   3804 # To avoid 1.11, we make 1.11.1 the minimum version.
   3805 #
   3806 # We want gnits strictness only when rolling a stable release.  For
   3807 # release candidates, we use version strings like 2.4.3_rc1, but gnits
   3808 # doesn't like that, so we let the underscore disable gnits.  Between
   3809 # releases, we want to be able run make dist without being required to
   3810 # add a bogus NEWS entry.  In that case, the version string
   3811 # automatically contains a dash, which we also let disable gnits.
   3812 am__api_version='1.12'
   3813 
   3814 # Find a good install program.  We prefer a C program (faster),
   3815 # so one script is as good as another.  But avoid the broken or
   3816 # incompatible versions:
   3817 # SysV /etc/install, /usr/sbin/install
   3818 # SunOS /usr/etc/install
   3819 # IRIX /sbin/install
   3820 # AIX /bin/install
   3821 # AmigaOS /C/install, which installs bootblocks on floppy discs
   3822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   3823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   3824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   3825 # OS/2's system install, which has a completely different semantic
   3826 # ./install, which can be erroneously created by make from ./install.sh.
   3827 # Reject install programs that cannot install multiple files.
   3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   3829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   3830 if test -z "$INSTALL"; then
   3831 if ${ac_cv_path_install+:} false; then :
   3832   $as_echo_n "(cached) " >&6
   3833 else
   3834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3835 for as_dir in $PATH
   3836 do
   3837   IFS=$as_save_IFS
   3838   test -z "$as_dir" && as_dir=.
   3839     # Account for people who put trailing slashes in PATH elements.
   3840 case $as_dir/ in #((
   3841   ./ | .// | /[cC]/* | \
   3842   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   3843   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   3844   /usr/ucb/* ) ;;
   3845   *)
   3846     # OSF1 and SCO ODT 3.0 have their own names for install.
   3847     # Don't use installbsd from OSF since it installs stuff as root
   3848     # by default.
   3849     for ac_prog in ginstall scoinst install; do
   3850       for ac_exec_ext in '' $ac_executable_extensions; do
   3851 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   3852 	  if test $ac_prog = install &&
   3853 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3854 	    # AIX install.  It has an incompatible calling convention.
   3855 	    :
   3856 	  elif test $ac_prog = install &&
   3857 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3858 	    # program-specific install script used by HP pwplus--don't use.
   3859 	    :
   3860 	  else
   3861 	    rm -rf conftest.one conftest.two conftest.dir
   3862 	    echo one > conftest.one
   3863 	    echo two > conftest.two
   3864 	    mkdir conftest.dir
   3865 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   3866 	      test -s conftest.one && test -s conftest.two &&
   3867 	      test -s conftest.dir/conftest.one &&
   3868 	      test -s conftest.dir/conftest.two
   3869 	    then
   3870 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   3871 	      break 3
   3872 	    fi
   3873 	  fi
   3874 	fi
   3875       done
   3876     done
   3877     ;;
   3878 esac
   3879 
   3880   done
   3881 IFS=$as_save_IFS
   3882 
   3883 rm -rf conftest.one conftest.two conftest.dir
   3884 
   3885 fi
   3886   if test "${ac_cv_path_install+set}" = set; then
   3887     INSTALL=$ac_cv_path_install
   3888   else
   3889     # As a last resort, use the slow shell script.  Don't cache a
   3890     # value for INSTALL within a source directory, because that will
   3891     # break other packages using the cache if that directory is
   3892     # removed, or if the value is a relative name.
   3893     INSTALL=$ac_install_sh
   3894   fi
   3895 fi
   3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   3897 $as_echo "$INSTALL" >&6; }
   3898 
   3899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3900 # It thinks the first close brace ends the variable substitution.
   3901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3902 
   3903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3904 
   3905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3906 
   3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   3908 $as_echo_n "checking whether build environment is sane... " >&6; }
   3909 # Reject unsafe characters in $srcdir or the absolute working directory
   3910 # name.  Accept space and tab only in the latter.
   3911 am_lf='
   3912 '
   3913 case `pwd` in
   3914   *[\\\"\#\$\&\'\`$am_lf]*)
   3915     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   3916 esac
   3917 case $srcdir in
   3918   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   3919     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   3920 esac
   3921 
   3922 # Do 'set' in a subshell so we don't clobber the current shell's
   3923 # arguments.  Must try -L first in case configure is actually a
   3924 # symlink; some systems play weird games with the mod time of symlinks
   3925 # (eg FreeBSD returns the mod time of the symlink's containing
   3926 # directory).
   3927 if (
   3928    am_has_slept=no
   3929    for am_try in 1 2; do
   3930      echo "timestamp, slept: $am_has_slept" > conftest.file
   3931      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   3932      if test "$*" = "X"; then
   3933 	# -L didn't work.
   3934 	set X `ls -t "$srcdir/configure" conftest.file`
   3935      fi
   3936      if test "$*" != "X $srcdir/configure conftest.file" \
   3937 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   3938 
   3939 	# If neither matched, then we have a broken ls.  This can happen
   3940 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   3941 	# broken ls alias from the environment.  This has actually
   3942 	# happened.  Such a system could not be considered "sane".
   3943 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   3944   alias in your environment" "$LINENO" 5
   3945      fi
   3946      if test "$2" = conftest.file || test $am_try -eq 2; then
   3947        break
   3948      fi
   3949      # Just in case.
   3950      sleep 1
   3951      am_has_slept=yes
   3952    done
   3953    test "$2" = conftest.file
   3954    )
   3955 then
   3956    # Ok.
   3957    :
   3958 else
   3959    as_fn_error $? "newly created file is older than distributed files!
   3960 Check your system clock" "$LINENO" 5
   3961 fi
   3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3963 $as_echo "yes" >&6; }
   3964 # If we didn't sleep, we still need to ensure time stamps of config.status and
   3965 # generated files are strictly newer.
   3966 am_sleep_pid=
   3967 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   3968   ( sleep 1 ) &
   3969   am_sleep_pid=$!
   3970 fi
   3971 
   3972 rm -f conftest.file
   3973 
   3974 test "$program_prefix" != NONE &&
   3975   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   3976 # Use a double $ so make ignores it.
   3977 test "$program_suffix" != NONE &&
   3978   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   3979 # Double any \ or $.
   3980 # By default was `s,x,x', remove it if useless.
   3981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   3982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   3983 
   3984 # expand $ac_aux_dir to an absolute path
   3985 am_aux_dir=`cd $ac_aux_dir && pwd`
   3986 
   3987 if test x"${MISSING+set}" != xset; then
   3988   case $am_aux_dir in
   3989   *\ * | *\	*)
   3990     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   3991   *)
   3992     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   3993   esac
   3994 fi
   3995 # Use eval to expand $SHELL
   3996 if eval "$MISSING --run true"; then
   3997   am_missing_run="$MISSING --run "
   3998 else
   3999   am_missing_run=
   4000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   4001 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   4002 fi
   4003 
   4004 if test x"${install_sh}" != xset; then
   4005   case $am_aux_dir in
   4006   *\ * | *\	*)
   4007     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4008   *)
   4009     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4010   esac
   4011 fi
   4012 
   4013 # Installed binaries are usually stripped using 'strip' when the user
   4014 # run "make install-strip".  However 'strip' might not be the right
   4015 # tool to use in cross-compilation environments, therefore Automake
   4016 # will honor the 'STRIP' environment variable to overrule this program.
   4017 if test "$cross_compiling" != no; then
   4018   if test -n "$ac_tool_prefix"; then
   4019   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4020 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4022 $as_echo_n "checking for $ac_word... " >&6; }
   4023 if ${ac_cv_prog_STRIP+:} false; then :
   4024   $as_echo_n "(cached) " >&6
   4025 else
   4026   if test -n "$STRIP"; then
   4027   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4028 else
   4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4030 for as_dir in $PATH
   4031 do
   4032   IFS=$as_save_IFS
   4033   test -z "$as_dir" && as_dir=.
   4034     for ac_exec_ext in '' $ac_executable_extensions; do
   4035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4036     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4038     break 2
   4039   fi
   4040 done
   4041   done
   4042 IFS=$as_save_IFS
   4043 
   4044 fi
   4045 fi
   4046 STRIP=$ac_cv_prog_STRIP
   4047 if test -n "$STRIP"; then
   4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4049 $as_echo "$STRIP" >&6; }
   4050 else
   4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4052 $as_echo "no" >&6; }
   4053 fi
   4054 
   4055 
   4056 fi
   4057 if test -z "$ac_cv_prog_STRIP"; then
   4058   ac_ct_STRIP=$STRIP
   4059   # Extract the first word of "strip", so it can be a program name with args.
   4060 set dummy strip; ac_word=$2
   4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4062 $as_echo_n "checking for $ac_word... " >&6; }
   4063 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   4064   $as_echo_n "(cached) " >&6
   4065 else
   4066   if test -n "$ac_ct_STRIP"; then
   4067   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4068 else
   4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4070 for as_dir in $PATH
   4071 do
   4072   IFS=$as_save_IFS
   4073   test -z "$as_dir" && as_dir=.
   4074     for ac_exec_ext in '' $ac_executable_extensions; do
   4075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4076     ac_cv_prog_ac_ct_STRIP="strip"
   4077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4078     break 2
   4079   fi
   4080 done
   4081   done
   4082 IFS=$as_save_IFS
   4083 
   4084 fi
   4085 fi
   4086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4087 if test -n "$ac_ct_STRIP"; then
   4088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4089 $as_echo "$ac_ct_STRIP" >&6; }
   4090 else
   4091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4092 $as_echo "no" >&6; }
   4093 fi
   4094 
   4095   if test "x$ac_ct_STRIP" = x; then
   4096     STRIP=":"
   4097   else
   4098     case $cross_compiling:$ac_tool_warned in
   4099 yes:)
   4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4102 ac_tool_warned=yes ;;
   4103 esac
   4104     STRIP=$ac_ct_STRIP
   4105   fi
   4106 else
   4107   STRIP="$ac_cv_prog_STRIP"
   4108 fi
   4109 
   4110 fi
   4111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4112 
   4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   4114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   4115 if test -z "$MKDIR_P"; then
   4116   if ${ac_cv_path_mkdir+:} false; then :
   4117   $as_echo_n "(cached) " >&6
   4118 else
   4119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   4121 do
   4122   IFS=$as_save_IFS
   4123   test -z "$as_dir" && as_dir=.
   4124     for ac_prog in mkdir gmkdir; do
   4125 	 for ac_exec_ext in '' $ac_executable_extensions; do
   4126 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   4127 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   4128 	     'mkdir (GNU coreutils) '* | \
   4129 	     'mkdir (coreutils) '* | \
   4130 	     'mkdir (fileutils) '4.1*)
   4131 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   4132 	       break 3;;
   4133 	   esac
   4134 	 done
   4135        done
   4136   done
   4137 IFS=$as_save_IFS
   4138 
   4139 fi
   4140 
   4141   test -d ./--version && rmdir ./--version
   4142   if test "${ac_cv_path_mkdir+set}" = set; then
   4143     MKDIR_P="$ac_cv_path_mkdir -p"
   4144   else
   4145     # As a last resort, use the slow shell script.  Don't cache a
   4146     # value for MKDIR_P within a source directory, because that will
   4147     # break other packages using the cache if that directory is
   4148     # removed, or if the value is a relative name.
   4149     MKDIR_P="$ac_install_sh -d"
   4150   fi
   4151 fi
   4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   4153 $as_echo "$MKDIR_P" >&6; }
   4154 
   4155 
   4156 for ac_prog in gawk mawk nawk awk
   4157 do
   4158   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4159 set dummy $ac_prog; ac_word=$2
   4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4161 $as_echo_n "checking for $ac_word... " >&6; }
   4162 if ${ac_cv_prog_AWK+:} false; then :
   4163   $as_echo_n "(cached) " >&6
   4164 else
   4165   if test -n "$AWK"; then
   4166   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   4167 else
   4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4169 for as_dir in $PATH
   4170 do
   4171   IFS=$as_save_IFS
   4172   test -z "$as_dir" && as_dir=.
   4173     for ac_exec_ext in '' $ac_executable_extensions; do
   4174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4175     ac_cv_prog_AWK="$ac_prog"
   4176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4177     break 2
   4178   fi
   4179 done
   4180   done
   4181 IFS=$as_save_IFS
   4182 
   4183 fi
   4184 fi
   4185 AWK=$ac_cv_prog_AWK
   4186 if test -n "$AWK"; then
   4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   4188 $as_echo "$AWK" >&6; }
   4189 else
   4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4191 $as_echo "no" >&6; }
   4192 fi
   4193 
   4194 
   4195   test -n "$AWK" && break
   4196 done
   4197 
   4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4199 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4200 set x ${MAKE-make}
   4201 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4202 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   4203   $as_echo_n "(cached) " >&6
   4204 else
   4205   cat >conftest.make <<\_ACEOF
   4206 SHELL = /bin/sh
   4207 all:
   4208 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4209 _ACEOF
   4210 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4211 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4212   *@@@%%%=?*=@@@%%%*)
   4213     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4214   *)
   4215     eval ac_cv_prog_make_${ac_make}_set=no;;
   4216 esac
   4217 rm -f conftest.make
   4218 fi
   4219 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4221 $as_echo "yes" >&6; }
   4222   SET_MAKE=
   4223 else
   4224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4225 $as_echo "no" >&6; }
   4226   SET_MAKE="MAKE=${MAKE-make}"
   4227 fi
   4228 
   4229 rm -rf .tst 2>/dev/null
   4230 mkdir .tst 2>/dev/null
   4231 if test -d .tst; then
   4232   am__leading_dot=.
   4233 else
   4234   am__leading_dot=_
   4235 fi
   4236 rmdir .tst 2>/dev/null
   4237 
   4238 # Check whether --enable-silent-rules was given.
   4239 if test "${enable_silent_rules+set}" = set; then :
   4240   enableval=$enable_silent_rules;
   4241 fi
   4242 
   4243 case $enable_silent_rules in # (((
   4244   yes) AM_DEFAULT_VERBOSITY=0;;
   4245    no) AM_DEFAULT_VERBOSITY=1;;
   4246     *) AM_DEFAULT_VERBOSITY=1;;
   4247 esac
   4248 am_make=${MAKE-make}
   4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   4250 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   4251 if ${am_cv_make_support_nested_variables+:} false; then :
   4252   $as_echo_n "(cached) " >&6
   4253 else
   4254   if $as_echo 'TRUE=$(BAR$(V))
   4255 BAR0=false
   4256 BAR1=true
   4257 V=1
   4258 am__doit:
   4259 	@$(TRUE)
   4260 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   4261   am_cv_make_support_nested_variables=yes
   4262 else
   4263   am_cv_make_support_nested_variables=no
   4264 fi
   4265 fi
   4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   4267 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   4268 if test $am_cv_make_support_nested_variables = yes; then
   4269     AM_V='$(V)'
   4270   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   4271 else
   4272   AM_V=$AM_DEFAULT_VERBOSITY
   4273   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   4274 fi
   4275 AM_BACKSLASH='\'
   4276 
   4277 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   4278   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   4279   # is not polluted with repeated "-I."
   4280   am__isrc=' -I$(srcdir)'
   4281   # test to see if srcdir already configured
   4282   if test -f $srcdir/config.status; then
   4283     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   4284   fi
   4285 fi
   4286 
   4287 # test whether we have cygpath
   4288 if test -z "$CYGPATH_W"; then
   4289   if (cygpath --version) >/dev/null 2>/dev/null; then
   4290     CYGPATH_W='cygpath -w'
   4291   else
   4292     CYGPATH_W=echo
   4293   fi
   4294 fi
   4295 
   4296 
   4297 # Define the identity of the package.
   4298  PACKAGE='bison'
   4299  VERSION='2.7'
   4300 
   4301 
   4302 cat >>confdefs.h <<_ACEOF
   4303 #define PACKAGE "$PACKAGE"
   4304 _ACEOF
   4305 
   4306 
   4307 cat >>confdefs.h <<_ACEOF
   4308 #define VERSION "$VERSION"
   4309 _ACEOF
   4310 
   4311 # Some tools Automake needs.
   4312 
   4313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   4314 
   4315 
   4316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   4317 
   4318 
   4319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   4320 
   4321 
   4322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   4323 
   4324 
   4325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   4326 
   4327 # For better backward compatibility.  To be removed once Automake 1.9.x
   4328 # dies out for good.  For more background, see:
   4329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   4330 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   4331 mkdir_p='$(MKDIR_P)'
   4332 
   4333 # We need awk for the "check" target.  The system "awk" is bad on
   4334 # some platforms.
   4335 # Always define AMTAR for backward compatibility.  Yes, it's still used
   4336 # in the wild :-(  We should find a proper way to deprecate it ...
   4337 AMTAR='$${TAR-tar}'
   4338 
   4339 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   4340 
   4341 
   4342 
   4343 
   4344 
   4345 # Check whether --enable-silent-rules was given.
   4346 if test "${enable_silent_rules+set}" = set; then :
   4347   enableval=$enable_silent_rules;
   4348 fi
   4349 
   4350 case $enable_silent_rules in # (((
   4351   yes) AM_DEFAULT_VERBOSITY=0;;
   4352    no) AM_DEFAULT_VERBOSITY=1;;
   4353     *) AM_DEFAULT_VERBOSITY=0;;
   4354 esac
   4355 am_make=${MAKE-make}
   4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   4357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   4358 if ${am_cv_make_support_nested_variables+:} false; then :
   4359   $as_echo_n "(cached) " >&6
   4360 else
   4361   if $as_echo 'TRUE=$(BAR$(V))
   4362 BAR0=false
   4363 BAR1=true
   4364 V=1
   4365 am__doit:
   4366 	@$(TRUE)
   4367 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   4368   am_cv_make_support_nested_variables=yes
   4369 else
   4370   am_cv_make_support_nested_variables=no
   4371 fi
   4372 fi
   4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   4374 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   4375 if test $am_cv_make_support_nested_variables = yes; then
   4376     AM_V='$(V)'
   4377   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   4378 else
   4379   AM_V=$AM_DEFAULT_VERBOSITY
   4380   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   4381 fi
   4382 AM_BACKSLASH='\'
   4383 
   4384 ac_config_headers="$ac_config_headers lib/config.h:lib/config.in.h"
   4385 
   4386 
   4387 # Checks for the compiler.
   4388 DEPDIR="${am__leading_dot}deps"
   4389 
   4390 ac_config_commands="$ac_config_commands depfiles"
   4391 
   4392 
   4393 am_make=${MAKE-make}
   4394 cat > confinc << 'END'
   4395 am__doit:
   4396 	@echo this is the am__doit target
   4397 .PHONY: am__doit
   4398 END
   4399 # If we don't find an include directive, just comment out the code.
   4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   4401 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   4402 am__include="#"
   4403 am__quote=
   4404 _am_result=none
   4405 # First try GNU make style include.
   4406 echo "include confinc" > confmf
   4407 # Ignore all kinds of additional output from 'make'.
   4408 case `$am_make -s -f confmf 2> /dev/null` in #(
   4409 *the\ am__doit\ target*)
   4410   am__include=include
   4411   am__quote=
   4412   _am_result=GNU
   4413   ;;
   4414 esac
   4415 # Now try BSD make style include.
   4416 if test "$am__include" = "#"; then
   4417    echo '.include "confinc"' > confmf
   4418    case `$am_make -s -f confmf 2> /dev/null` in #(
   4419    *the\ am__doit\ target*)
   4420      am__include=.include
   4421      am__quote="\""
   4422      _am_result=BSD
   4423      ;;
   4424    esac
   4425 fi
   4426 
   4427 
   4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   4429 $as_echo "$_am_result" >&6; }
   4430 rm -f confinc confmf
   4431 
   4432 # Check whether --enable-dependency-tracking was given.
   4433 if test "${enable_dependency_tracking+set}" = set; then :
   4434   enableval=$enable_dependency_tracking;
   4435 fi
   4436 
   4437 if test "x$enable_dependency_tracking" != xno; then
   4438   am_depcomp="$ac_aux_dir/depcomp"
   4439   AMDEPBACKSLASH='\'
   4440   am__nodep='_no'
   4441 fi
   4442  if test "x$enable_dependency_tracking" != xno; then
   4443   AMDEP_TRUE=
   4444   AMDEP_FALSE='#'
   4445 else
   4446   AMDEP_TRUE='#'
   4447   AMDEP_FALSE=
   4448 fi
   4449 
   4450 
   4451 ac_ext=c
   4452 ac_cpp='$CPP $CPPFLAGS'
   4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4456 if test -n "$ac_tool_prefix"; then
   4457   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4460 $as_echo_n "checking for $ac_word... " >&6; }
   4461 if ${ac_cv_prog_CC+:} false; then :
   4462   $as_echo_n "(cached) " >&6
   4463 else
   4464   if test -n "$CC"; then
   4465   ac_cv_prog_CC="$CC" # Let the user override the test.
   4466 else
   4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4468 for as_dir in $PATH
   4469 do
   4470   IFS=$as_save_IFS
   4471   test -z "$as_dir" && as_dir=.
   4472     for ac_exec_ext in '' $ac_executable_extensions; do
   4473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4474     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4476     break 2
   4477   fi
   4478 done
   4479   done
   4480 IFS=$as_save_IFS
   4481 
   4482 fi
   4483 fi
   4484 CC=$ac_cv_prog_CC
   4485 if test -n "$CC"; then
   4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4487 $as_echo "$CC" >&6; }
   4488 else
   4489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4490 $as_echo "no" >&6; }
   4491 fi
   4492 
   4493 
   4494 fi
   4495 if test -z "$ac_cv_prog_CC"; then
   4496   ac_ct_CC=$CC
   4497   # Extract the first word of "gcc", so it can be a program name with args.
   4498 set dummy gcc; ac_word=$2
   4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4500 $as_echo_n "checking for $ac_word... " >&6; }
   4501 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4502   $as_echo_n "(cached) " >&6
   4503 else
   4504   if test -n "$ac_ct_CC"; then
   4505   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4506 else
   4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4508 for as_dir in $PATH
   4509 do
   4510   IFS=$as_save_IFS
   4511   test -z "$as_dir" && as_dir=.
   4512     for ac_exec_ext in '' $ac_executable_extensions; do
   4513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4514     ac_cv_prog_ac_ct_CC="gcc"
   4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4516     break 2
   4517   fi
   4518 done
   4519   done
   4520 IFS=$as_save_IFS
   4521 
   4522 fi
   4523 fi
   4524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4525 if test -n "$ac_ct_CC"; then
   4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4527 $as_echo "$ac_ct_CC" >&6; }
   4528 else
   4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4530 $as_echo "no" >&6; }
   4531 fi
   4532 
   4533   if test "x$ac_ct_CC" = x; then
   4534     CC=""
   4535   else
   4536     case $cross_compiling:$ac_tool_warned in
   4537 yes:)
   4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4540 ac_tool_warned=yes ;;
   4541 esac
   4542     CC=$ac_ct_CC
   4543   fi
   4544 else
   4545   CC="$ac_cv_prog_CC"
   4546 fi
   4547 
   4548 if test -z "$CC"; then
   4549           if test -n "$ac_tool_prefix"; then
   4550     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4551 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4553 $as_echo_n "checking for $ac_word... " >&6; }
   4554 if ${ac_cv_prog_CC+:} false; then :
   4555   $as_echo_n "(cached) " >&6
   4556 else
   4557   if test -n "$CC"; then
   4558   ac_cv_prog_CC="$CC" # Let the user override the test.
   4559 else
   4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4561 for as_dir in $PATH
   4562 do
   4563   IFS=$as_save_IFS
   4564   test -z "$as_dir" && as_dir=.
   4565     for ac_exec_ext in '' $ac_executable_extensions; do
   4566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4567     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4569     break 2
   4570   fi
   4571 done
   4572   done
   4573 IFS=$as_save_IFS
   4574 
   4575 fi
   4576 fi
   4577 CC=$ac_cv_prog_CC
   4578 if test -n "$CC"; then
   4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4580 $as_echo "$CC" >&6; }
   4581 else
   4582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4583 $as_echo "no" >&6; }
   4584 fi
   4585 
   4586 
   4587   fi
   4588 fi
   4589 if test -z "$CC"; then
   4590   # Extract the first word of "cc", so it can be a program name with args.
   4591 set dummy cc; ac_word=$2
   4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4593 $as_echo_n "checking for $ac_word... " >&6; }
   4594 if ${ac_cv_prog_CC+:} false; then :
   4595   $as_echo_n "(cached) " >&6
   4596 else
   4597   if test -n "$CC"; then
   4598   ac_cv_prog_CC="$CC" # Let the user override the test.
   4599 else
   4600   ac_prog_rejected=no
   4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4602 for as_dir in $PATH
   4603 do
   4604   IFS=$as_save_IFS
   4605   test -z "$as_dir" && as_dir=.
   4606     for ac_exec_ext in '' $ac_executable_extensions; do
   4607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4608     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4609        ac_prog_rejected=yes
   4610        continue
   4611      fi
   4612     ac_cv_prog_CC="cc"
   4613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4614     break 2
   4615   fi
   4616 done
   4617   done
   4618 IFS=$as_save_IFS
   4619 
   4620 if test $ac_prog_rejected = yes; then
   4621   # We found a bogon in the path, so make sure we never use it.
   4622   set dummy $ac_cv_prog_CC
   4623   shift
   4624   if test $# != 0; then
   4625     # We chose a different compiler from the bogus one.
   4626     # However, it has the same basename, so the bogon will be chosen
   4627     # first if we set CC to just the basename; use the full file name.
   4628     shift
   4629     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4630   fi
   4631 fi
   4632 fi
   4633 fi
   4634 CC=$ac_cv_prog_CC
   4635 if test -n "$CC"; then
   4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4637 $as_echo "$CC" >&6; }
   4638 else
   4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4640 $as_echo "no" >&6; }
   4641 fi
   4642 
   4643 
   4644 fi
   4645 if test -z "$CC"; then
   4646   if test -n "$ac_tool_prefix"; then
   4647   for ac_prog in cl.exe
   4648   do
   4649     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4652 $as_echo_n "checking for $ac_word... " >&6; }
   4653 if ${ac_cv_prog_CC+:} false; then :
   4654   $as_echo_n "(cached) " >&6
   4655 else
   4656   if test -n "$CC"; then
   4657   ac_cv_prog_CC="$CC" # Let the user override the test.
   4658 else
   4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4660 for as_dir in $PATH
   4661 do
   4662   IFS=$as_save_IFS
   4663   test -z "$as_dir" && as_dir=.
   4664     for ac_exec_ext in '' $ac_executable_extensions; do
   4665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4666     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4668     break 2
   4669   fi
   4670 done
   4671   done
   4672 IFS=$as_save_IFS
   4673 
   4674 fi
   4675 fi
   4676 CC=$ac_cv_prog_CC
   4677 if test -n "$CC"; then
   4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4679 $as_echo "$CC" >&6; }
   4680 else
   4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4682 $as_echo "no" >&6; }
   4683 fi
   4684 
   4685 
   4686     test -n "$CC" && break
   4687   done
   4688 fi
   4689 if test -z "$CC"; then
   4690   ac_ct_CC=$CC
   4691   for ac_prog in cl.exe
   4692 do
   4693   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4694 set dummy $ac_prog; ac_word=$2
   4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4696 $as_echo_n "checking for $ac_word... " >&6; }
   4697 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4698   $as_echo_n "(cached) " >&6
   4699 else
   4700   if test -n "$ac_ct_CC"; then
   4701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4702 else
   4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4704 for as_dir in $PATH
   4705 do
   4706   IFS=$as_save_IFS
   4707   test -z "$as_dir" && as_dir=.
   4708     for ac_exec_ext in '' $ac_executable_extensions; do
   4709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4710     ac_cv_prog_ac_ct_CC="$ac_prog"
   4711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4712     break 2
   4713   fi
   4714 done
   4715   done
   4716 IFS=$as_save_IFS
   4717 
   4718 fi
   4719 fi
   4720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4721 if test -n "$ac_ct_CC"; then
   4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4723 $as_echo "$ac_ct_CC" >&6; }
   4724 else
   4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4726 $as_echo "no" >&6; }
   4727 fi
   4728 
   4729 
   4730   test -n "$ac_ct_CC" && break
   4731 done
   4732 
   4733   if test "x$ac_ct_CC" = x; then
   4734     CC=""
   4735   else
   4736     case $cross_compiling:$ac_tool_warned in
   4737 yes:)
   4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4740 ac_tool_warned=yes ;;
   4741 esac
   4742     CC=$ac_ct_CC
   4743   fi
   4744 fi
   4745 
   4746 fi
   4747 
   4748 
   4749 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4751 as_fn_error $? "no acceptable C compiler found in \$PATH
   4752 See \`config.log' for more details" "$LINENO" 5; }
   4753 
   4754 # Provide some information about the compiler.
   4755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   4756 set X $ac_compile
   4757 ac_compiler=$2
   4758 for ac_option in --version -v -V -qversion; do
   4759   { { ac_try="$ac_compiler $ac_option >&5"
   4760 case "(($ac_try" in
   4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4762   *) ac_try_echo=$ac_try;;
   4763 esac
   4764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4765 $as_echo "$ac_try_echo"; } >&5
   4766   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4767   ac_status=$?
   4768   if test -s conftest.err; then
   4769     sed '10a\
   4770 ... rest of stderr output deleted ...
   4771          10q' conftest.err >conftest.er1
   4772     cat conftest.er1 >&5
   4773   fi
   4774   rm -f conftest.er1 conftest.err
   4775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4776   test $ac_status = 0; }
   4777 done
   4778 
   4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4780 /* end confdefs.h.  */
   4781 
   4782 int
   4783 main ()
   4784 {
   4785 
   4786   ;
   4787   return 0;
   4788 }
   4789 _ACEOF
   4790 ac_clean_files_save=$ac_clean_files
   4791 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   4792 # Try to create an executable without -o first, disregard a.out.
   4793 # It will help us diagnose broken compilers, and finding out an intuition
   4794 # of exeext.
   4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   4796 $as_echo_n "checking whether the C compiler works... " >&6; }
   4797 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   4798 
   4799 # The possible output files:
   4800 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   4801 
   4802 ac_rmfiles=
   4803 for ac_file in $ac_files
   4804 do
   4805   case $ac_file in
   4806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4807     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   4808   esac
   4809 done
   4810 rm -f $ac_rmfiles
   4811 
   4812 if { { ac_try="$ac_link_default"
   4813 case "(($ac_try" in
   4814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4815   *) ac_try_echo=$ac_try;;
   4816 esac
   4817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4818 $as_echo "$ac_try_echo"; } >&5
   4819   (eval "$ac_link_default") 2>&5
   4820   ac_status=$?
   4821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4822   test $ac_status = 0; }; then :
   4823   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   4824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   4825 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   4826 # so that the user can short-circuit this test for compilers unknown to
   4827 # Autoconf.
   4828 for ac_file in $ac_files ''
   4829 do
   4830   test -f "$ac_file" || continue
   4831   case $ac_file in
   4832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   4833 	;;
   4834     [ab].out )
   4835 	# We found the default executable, but exeext='' is most
   4836 	# certainly right.
   4837 	break;;
   4838     *.* )
   4839 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   4840 	then :; else
   4841 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4842 	fi
   4843 	# We set ac_cv_exeext here because the later test for it is not
   4844 	# safe: cross compilers may not add the suffix if given an `-o'
   4845 	# argument, so we may need to know it at that point already.
   4846 	# Even if this section looks crufty: it has the advantage of
   4847 	# actually working.
   4848 	break;;
   4849     * )
   4850 	break;;
   4851   esac
   4852 done
   4853 test "$ac_cv_exeext" = no && ac_cv_exeext=
   4854 
   4855 else
   4856   ac_file=''
   4857 fi
   4858 if test -z "$ac_file"; then :
   4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4860 $as_echo "no" >&6; }
   4861 $as_echo "$as_me: failed program was:" >&5
   4862 sed 's/^/| /' conftest.$ac_ext >&5
   4863 
   4864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4866 as_fn_error 77 "C compiler cannot create executables
   4867 See \`config.log' for more details" "$LINENO" 5; }
   4868 else
   4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4870 $as_echo "yes" >&6; }
   4871 fi
   4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4873 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4875 $as_echo "$ac_file" >&6; }
   4876 ac_exeext=$ac_cv_exeext
   4877 
   4878 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4879 ac_clean_files=$ac_clean_files_save
   4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4881 $as_echo_n "checking for suffix of executables... " >&6; }
   4882 if { { ac_try="$ac_link"
   4883 case "(($ac_try" in
   4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4885   *) ac_try_echo=$ac_try;;
   4886 esac
   4887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4888 $as_echo "$ac_try_echo"; } >&5
   4889   (eval "$ac_link") 2>&5
   4890   ac_status=$?
   4891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4892   test $ac_status = 0; }; then :
   4893   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4894 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4895 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4896 # `rm'.
   4897 for ac_file in conftest.exe conftest conftest.*; do
   4898   test -f "$ac_file" || continue
   4899   case $ac_file in
   4900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4901     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4902 	  break;;
   4903     * ) break;;
   4904   esac
   4905 done
   4906 else
   4907   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4909 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4910 See \`config.log' for more details" "$LINENO" 5; }
   4911 fi
   4912 rm -f conftest conftest$ac_cv_exeext
   4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4914 $as_echo "$ac_cv_exeext" >&6; }
   4915 
   4916 rm -f conftest.$ac_ext
   4917 EXEEXT=$ac_cv_exeext
   4918 ac_exeext=$EXEEXT
   4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4920 /* end confdefs.h.  */
   4921 #include <stdio.h>
   4922 int
   4923 main ()
   4924 {
   4925 FILE *f = fopen ("conftest.out", "w");
   4926  return ferror (f) || fclose (f) != 0;
   4927 
   4928   ;
   4929   return 0;
   4930 }
   4931 _ACEOF
   4932 ac_clean_files="$ac_clean_files conftest.out"
   4933 # Check that the compiler produces executables we can run.  If not, either
   4934 # the compiler is broken, or we cross compile.
   4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4936 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4937 if test "$cross_compiling" != yes; then
   4938   { { ac_try="$ac_link"
   4939 case "(($ac_try" in
   4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4941   *) ac_try_echo=$ac_try;;
   4942 esac
   4943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4944 $as_echo "$ac_try_echo"; } >&5
   4945   (eval "$ac_link") 2>&5
   4946   ac_status=$?
   4947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4948   test $ac_status = 0; }
   4949   if { ac_try='./conftest$ac_cv_exeext'
   4950   { { case "(($ac_try" in
   4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4952   *) ac_try_echo=$ac_try;;
   4953 esac
   4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4955 $as_echo "$ac_try_echo"; } >&5
   4956   (eval "$ac_try") 2>&5
   4957   ac_status=$?
   4958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4959   test $ac_status = 0; }; }; then
   4960     cross_compiling=no
   4961   else
   4962     if test "$cross_compiling" = maybe; then
   4963 	cross_compiling=yes
   4964     else
   4965 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4967 as_fn_error $? "cannot run C compiled programs.
   4968 If you meant to cross compile, use \`--host'.
   4969 See \`config.log' for more details" "$LINENO" 5; }
   4970     fi
   4971   fi
   4972 fi
   4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4974 $as_echo "$cross_compiling" >&6; }
   4975 
   4976 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4977 ac_clean_files=$ac_clean_files_save
   4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4979 $as_echo_n "checking for suffix of object files... " >&6; }
   4980 if ${ac_cv_objext+:} false; then :
   4981   $as_echo_n "(cached) " >&6
   4982 else
   4983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4984 /* end confdefs.h.  */
   4985 
   4986 int
   4987 main ()
   4988 {
   4989 
   4990   ;
   4991   return 0;
   4992 }
   4993 _ACEOF
   4994 rm -f conftest.o conftest.obj
   4995 if { { ac_try="$ac_compile"
   4996 case "(($ac_try" in
   4997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4998   *) ac_try_echo=$ac_try;;
   4999 esac
   5000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5001 $as_echo "$ac_try_echo"; } >&5
   5002   (eval "$ac_compile") 2>&5
   5003   ac_status=$?
   5004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5005   test $ac_status = 0; }; then :
   5006   for ac_file in conftest.o conftest.obj conftest.*; do
   5007   test -f "$ac_file" || continue;
   5008   case $ac_file in
   5009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   5010     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   5011        break;;
   5012   esac
   5013 done
   5014 else
   5015   $as_echo "$as_me: failed program was:" >&5
   5016 sed 's/^/| /' conftest.$ac_ext >&5
   5017 
   5018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5020 as_fn_error $? "cannot compute suffix of object files: cannot compile
   5021 See \`config.log' for more details" "$LINENO" 5; }
   5022 fi
   5023 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   5024 fi
   5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   5026 $as_echo "$ac_cv_objext" >&6; }
   5027 OBJEXT=$ac_cv_objext
   5028 ac_objext=$OBJEXT
   5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   5030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   5031 if ${ac_cv_c_compiler_gnu+:} false; then :
   5032   $as_echo_n "(cached) " >&6
   5033 else
   5034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5035 /* end confdefs.h.  */
   5036 
   5037 int
   5038 main ()
   5039 {
   5040 #ifndef __GNUC__
   5041        choke me
   5042 #endif
   5043 
   5044   ;
   5045   return 0;
   5046 }
   5047 _ACEOF
   5048 if ac_fn_c_try_compile "$LINENO"; then :
   5049   ac_compiler_gnu=yes
   5050 else
   5051   ac_compiler_gnu=no
   5052 fi
   5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   5055 
   5056 fi
   5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   5058 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   5059 if test $ac_compiler_gnu = yes; then
   5060   GCC=yes
   5061 else
   5062   GCC=
   5063 fi
   5064 ac_test_CFLAGS=${CFLAGS+set}
   5065 ac_save_CFLAGS=$CFLAGS
   5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   5067 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   5068 if ${ac_cv_prog_cc_g+:} false; then :
   5069   $as_echo_n "(cached) " >&6
   5070 else
   5071   ac_save_c_werror_flag=$ac_c_werror_flag
   5072    ac_c_werror_flag=yes
   5073    ac_cv_prog_cc_g=no
   5074    CFLAGS="-g"
   5075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5076 /* end confdefs.h.  */
   5077 
   5078 int
   5079 main ()
   5080 {
   5081 
   5082   ;
   5083   return 0;
   5084 }
   5085 _ACEOF
   5086 if ac_fn_c_try_compile "$LINENO"; then :
   5087   ac_cv_prog_cc_g=yes
   5088 else
   5089   CFLAGS=""
   5090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5091 /* end confdefs.h.  */
   5092 
   5093 int
   5094 main ()
   5095 {
   5096 
   5097   ;
   5098   return 0;
   5099 }
   5100 _ACEOF
   5101 if ac_fn_c_try_compile "$LINENO"; then :
   5102 
   5103 else
   5104   ac_c_werror_flag=$ac_save_c_werror_flag
   5105 	 CFLAGS="-g"
   5106 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5107 /* end confdefs.h.  */
   5108 
   5109 int
   5110 main ()
   5111 {
   5112 
   5113   ;
   5114   return 0;
   5115 }
   5116 _ACEOF
   5117 if ac_fn_c_try_compile "$LINENO"; then :
   5118   ac_cv_prog_cc_g=yes
   5119 fi
   5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5121 fi
   5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5123 fi
   5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5125    ac_c_werror_flag=$ac_save_c_werror_flag
   5126 fi
   5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   5128 $as_echo "$ac_cv_prog_cc_g" >&6; }
   5129 if test "$ac_test_CFLAGS" = set; then
   5130   CFLAGS=$ac_save_CFLAGS
   5131 elif test $ac_cv_prog_cc_g = yes; then
   5132   if test "$GCC" = yes; then
   5133     CFLAGS="-g -O2"
   5134   else
   5135     CFLAGS="-g"
   5136   fi
   5137 else
   5138   if test "$GCC" = yes; then
   5139     CFLAGS="-O2"
   5140   else
   5141     CFLAGS=
   5142   fi
   5143 fi
   5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   5145 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   5146 if ${ac_cv_prog_cc_c89+:} false; then :
   5147   $as_echo_n "(cached) " >&6
   5148 else
   5149   ac_cv_prog_cc_c89=no
   5150 ac_save_CC=$CC
   5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5152 /* end confdefs.h.  */
   5153 #include <stdarg.h>
   5154 #include <stdio.h>
   5155 struct stat;
   5156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   5157 struct buf { int x; };
   5158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   5159 static char *e (p, i)
   5160      char **p;
   5161      int i;
   5162 {
   5163   return p[i];
   5164 }
   5165 static char *f (char * (*g) (char **, int), char **p, ...)
   5166 {
   5167   char *s;
   5168   va_list v;
   5169   va_start (v,p);
   5170   s = g (p, va_arg (v,int));
   5171   va_end (v);
   5172   return s;
   5173 }
   5174 
   5175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   5176    function prototypes and stuff, but not '\xHH' hex character constants.
   5177    These don't provoke an error unfortunately, instead are silently treated
   5178    as 'x'.  The following induces an error, until -std is added to get
   5179    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   5180    array size at least.  It's necessary to write '\x00'==0 to get something
   5181    that's true only with -std.  */
   5182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   5183 
   5184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   5185    inside strings and character constants.  */
   5186 #define FOO(x) 'x'
   5187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   5188 
   5189 int test (int i, double x);
   5190 struct s1 {int (*f) (int a);};
   5191 struct s2 {int (*f) (double a);};
   5192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   5193 int argc;
   5194 char **argv;
   5195 int
   5196 main ()
   5197 {
   5198 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   5199   ;
   5200   return 0;
   5201 }
   5202 _ACEOF
   5203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   5204 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5205 do
   5206   CC="$ac_save_CC $ac_arg"
   5207   if ac_fn_c_try_compile "$LINENO"; then :
   5208   ac_cv_prog_cc_c89=$ac_arg
   5209 fi
   5210 rm -f core conftest.err conftest.$ac_objext
   5211   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5212 done
   5213 rm -f conftest.$ac_ext
   5214 CC=$ac_save_CC
   5215 
   5216 fi
   5217 # AC_CACHE_VAL
   5218 case "x$ac_cv_prog_cc_c89" in
   5219   x)
   5220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5221 $as_echo "none needed" >&6; } ;;
   5222   xno)
   5223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5224 $as_echo "unsupported" >&6; } ;;
   5225   *)
   5226     CC="$CC $ac_cv_prog_cc_c89"
   5227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   5229 esac
   5230 if test "x$ac_cv_prog_cc_c89" != xno; then :
   5231 
   5232 fi
   5233 
   5234 ac_ext=c
   5235 ac_cpp='$CPP $CPPFLAGS'
   5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5239 
   5240 depcc="$CC"   am_compiler_list=
   5241 
   5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   5243 $as_echo_n "checking dependency style of $depcc... " >&6; }
   5244 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   5245   $as_echo_n "(cached) " >&6
   5246 else
   5247   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   5248   # We make a subdir and do the tests there.  Otherwise we can end up
   5249   # making bogus files that we don't know about and never remove.  For
   5250   # instance it was reported that on HP-UX the gcc test will end up
   5251   # making a dummy file named 'D' -- because '-MD' means "put the output
   5252   # in D".
   5253   rm -rf conftest.dir
   5254   mkdir conftest.dir
   5255   # Copy depcomp to subdir because otherwise we won't find it if we're
   5256   # using a relative directory.
   5257   cp "$am_depcomp" conftest.dir
   5258   cd conftest.dir
   5259   # We will build objects and dependencies in a subdirectory because
   5260   # it helps to detect inapplicable dependency modes.  For instance
   5261   # both Tru64's cc and ICC support -MD to output dependencies as a
   5262   # side effect of compilation, but ICC will put the dependencies in
   5263   # the current directory while Tru64 will put them in the object
   5264   # directory.
   5265   mkdir sub
   5266 
   5267   am_cv_CC_dependencies_compiler_type=none
   5268   if test "$am_compiler_list" = ""; then
   5269      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   5270   fi
   5271   am__universal=false
   5272   case " $depcc " in #(
   5273      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   5274      esac
   5275 
   5276   for depmode in $am_compiler_list; do
   5277     # Setup a source with many dependencies, because some compilers
   5278     # like to wrap large dependency lists on column 80 (with \), and
   5279     # we should not choose a depcomp mode which is confused by this.
   5280     #
   5281     # We need to recreate these files for each test, as the compiler may
   5282     # overwrite some of them when testing with obscure command lines.
   5283     # This happens at least with the AIX C compiler.
   5284     : > sub/conftest.c
   5285     for i in 1 2 3 4 5 6; do
   5286       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   5287       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   5288       # Solaris 10 /bin/sh.
   5289       echo '/* dummy */' > sub/conftst$i.h
   5290     done
   5291     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   5292 
   5293     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   5294     # mode.  It turns out that the SunPro C++ compiler does not properly
   5295     # handle '-M -o', and we need to detect this.  Also, some Intel
   5296     # versions had trouble with output in subdirs.
   5297     am__obj=sub/conftest.${OBJEXT-o}
   5298     am__minus_obj="-o $am__obj"
   5299     case $depmode in
   5300     gcc)
   5301       # This depmode causes a compiler race in universal mode.
   5302       test "$am__universal" = false || continue
   5303       ;;
   5304     nosideeffect)
   5305       # After this tag, mechanisms are not by side-effect, so they'll
   5306       # only be used when explicitly requested.
   5307       if test "x$enable_dependency_tracking" = xyes; then
   5308 	continue
   5309       else
   5310 	break
   5311       fi
   5312       ;;
   5313     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   5314       # This compiler won't grok '-c -o', but also, the minuso test has
   5315       # not run yet.  These depmodes are late enough in the game, and
   5316       # so weak that their functioning should not be impacted.
   5317       am__obj=conftest.${OBJEXT-o}
   5318       am__minus_obj=
   5319       ;;
   5320     none) break ;;
   5321     esac
   5322     if depmode=$depmode \
   5323        source=sub/conftest.c object=$am__obj \
   5324        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   5325        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   5326          >/dev/null 2>conftest.err &&
   5327        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   5328        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   5329        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   5330        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   5331       # icc doesn't choke on unknown options, it will just issue warnings
   5332       # or remarks (even with -Werror).  So we grep stderr for any message
   5333       # that says an option was ignored or not supported.
   5334       # When given -MP, icc 7.0 and 7.1 complain thusly:
   5335       #   icc: Command line warning: ignoring option '-M'; no argument required
   5336       # The diagnosis changed in icc 8.0:
   5337       #   icc: Command line remark: option '-MP' not supported
   5338       if (grep 'ignoring option' conftest.err ||
   5339           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   5340         am_cv_CC_dependencies_compiler_type=$depmode
   5341         break
   5342       fi
   5343     fi
   5344   done
   5345 
   5346   cd ..
   5347   rm -rf conftest.dir
   5348 else
   5349   am_cv_CC_dependencies_compiler_type=none
   5350 fi
   5351 
   5352 fi
   5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   5354 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   5355 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   5356 
   5357  if
   5358   test "x$enable_dependency_tracking" != xno \
   5359   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   5360   am__fastdepCC_TRUE=
   5361   am__fastdepCC_FALSE='#'
   5362 else
   5363   am__fastdepCC_TRUE='#'
   5364   am__fastdepCC_FALSE=
   5365 fi
   5366 
   5367 
   5368    case $ac_cv_prog_cc_stdc in #(
   5369   no) :
   5370     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
   5371   *) :
   5372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   5373 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   5374 if ${ac_cv_prog_cc_c99+:} false; then :
   5375   $as_echo_n "(cached) " >&6
   5376 else
   5377   ac_cv_prog_cc_c99=no
   5378 ac_save_CC=$CC
   5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5380 /* end confdefs.h.  */
   5381 #include <stdarg.h>
   5382 #include <stdbool.h>
   5383 #include <stdlib.h>
   5384 #include <wchar.h>
   5385 #include <stdio.h>
   5386 
   5387 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   5388 #define debug(...) fprintf (stderr, __VA_ARGS__)
   5389 #define showlist(...) puts (#__VA_ARGS__)
   5390 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   5391 static void
   5392 test_varargs_macros (void)
   5393 {
   5394   int x = 1234;
   5395   int y = 5678;
   5396   debug ("Flag");
   5397   debug ("X = %d\n", x);
   5398   showlist (The first, second, and third items.);
   5399   report (x>y, "x is %d but y is %d", x, y);
   5400 }
   5401 
   5402 // Check long long types.
   5403 #define BIG64 18446744073709551615ull
   5404 #define BIG32 4294967295ul
   5405 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   5406 #if !BIG_OK
   5407   your preprocessor is broken;
   5408 #endif
   5409 #if BIG_OK
   5410 #else
   5411   your preprocessor is broken;
   5412 #endif
   5413 static long long int bignum = -9223372036854775807LL;
   5414 static unsigned long long int ubignum = BIG64;
   5415 
   5416 struct incomplete_array
   5417 {
   5418   int datasize;
   5419   double data[];
   5420 };
   5421 
   5422 struct named_init {
   5423   int number;
   5424   const wchar_t *name;
   5425   double average;
   5426 };
   5427 
   5428 typedef const char *ccp;
   5429 
   5430 static inline int
   5431 test_restrict (ccp restrict text)
   5432 {
   5433   // See if C++-style comments work.
   5434   // Iterate through items via the restricted pointer.
   5435   // Also check for declarations in for loops.
   5436   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   5437     continue;
   5438   return 0;
   5439 }
   5440 
   5441 // Check varargs and va_copy.
   5442 static void
   5443 test_varargs (const char *format, ...)
   5444 {
   5445   va_list args;
   5446   va_start (args, format);
   5447   va_list args_copy;
   5448   va_copy (args_copy, args);
   5449 
   5450   const char *str;
   5451   int number;
   5452   float fnumber;
   5453 
   5454   while (*format)
   5455     {
   5456       switch (*format++)
   5457 	{
   5458 	case 's': // string
   5459 	  str = va_arg (args_copy, const char *);
   5460 	  break;
   5461 	case 'd': // int
   5462 	  number = va_arg (args_copy, int);
   5463 	  break;
   5464 	case 'f': // float
   5465 	  fnumber = va_arg (args_copy, double);
   5466 	  break;
   5467 	default:
   5468 	  break;
   5469 	}
   5470     }
   5471   va_end (args_copy);
   5472   va_end (args);
   5473 }
   5474 
   5475 int
   5476 main ()
   5477 {
   5478 
   5479   // Check bool.
   5480   _Bool success = false;
   5481 
   5482   // Check restrict.
   5483   if (test_restrict ("String literal") == 0)
   5484     success = true;
   5485   char *restrict newvar = "Another string";
   5486 
   5487   // Check varargs.
   5488   test_varargs ("s, d' f .", "string", 65, 34.234);
   5489   test_varargs_macros ();
   5490 
   5491   // Check flexible array members.
   5492   struct incomplete_array *ia =
   5493     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   5494   ia->datasize = 10;
   5495   for (int i = 0; i < ia->datasize; ++i)
   5496     ia->data[i] = i * 1.234;
   5497 
   5498   // Check named initializers.
   5499   struct named_init ni = {
   5500     .number = 34,
   5501     .name = L"Test wide string",
   5502     .average = 543.34343,
   5503   };
   5504 
   5505   ni.number = 58;
   5506 
   5507   int dynamic_array[ni.number];
   5508   dynamic_array[ni.number - 1] = 543;
   5509 
   5510   // work around unused variable warnings
   5511   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   5512 	  || dynamic_array[ni.number - 1] != 543);
   5513 
   5514   ;
   5515   return 0;
   5516 }
   5517 _ACEOF
   5518 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   5519 do
   5520   CC="$ac_save_CC $ac_arg"
   5521   if ac_fn_c_try_compile "$LINENO"; then :
   5522   ac_cv_prog_cc_c99=$ac_arg
   5523 fi
   5524 rm -f core conftest.err conftest.$ac_objext
   5525   test "x$ac_cv_prog_cc_c99" != "xno" && break
   5526 done
   5527 rm -f conftest.$ac_ext
   5528 CC=$ac_save_CC
   5529 
   5530 fi
   5531 # AC_CACHE_VAL
   5532 case "x$ac_cv_prog_cc_c99" in
   5533   x)
   5534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5535 $as_echo "none needed" >&6; } ;;
   5536   xno)
   5537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5538 $as_echo "unsupported" >&6; } ;;
   5539   *)
   5540     CC="$CC $ac_cv_prog_cc_c99"
   5541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   5542 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   5543 esac
   5544 if test "x$ac_cv_prog_cc_c99" != xno; then :
   5545   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   5546 else
   5547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   5548 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   5549 if ${ac_cv_prog_cc_c89+:} false; then :
   5550   $as_echo_n "(cached) " >&6
   5551 else
   5552   ac_cv_prog_cc_c89=no
   5553 ac_save_CC=$CC
   5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5555 /* end confdefs.h.  */
   5556 #include <stdarg.h>
   5557 #include <stdio.h>
   5558 struct stat;
   5559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   5560 struct buf { int x; };
   5561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   5562 static char *e (p, i)
   5563      char **p;
   5564      int i;
   5565 {
   5566   return p[i];
   5567 }
   5568 static char *f (char * (*g) (char **, int), char **p, ...)
   5569 {
   5570   char *s;
   5571   va_list v;
   5572   va_start (v,p);
   5573   s = g (p, va_arg (v,int));
   5574   va_end (v);
   5575   return s;
   5576 }
   5577 
   5578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   5579    function prototypes and stuff, but not '\xHH' hex character constants.
   5580    These don't provoke an error unfortunately, instead are silently treated
   5581    as 'x'.  The following induces an error, until -std is added to get
   5582    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   5583    array size at least.  It's necessary to write '\x00'==0 to get something
   5584    that's true only with -std.  */
   5585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   5586 
   5587 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   5588    inside strings and character constants.  */
   5589 #define FOO(x) 'x'
   5590 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   5591 
   5592 int test (int i, double x);
   5593 struct s1 {int (*f) (int a);};
   5594 struct s2 {int (*f) (double a);};
   5595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   5596 int argc;
   5597 char **argv;
   5598 int
   5599 main ()
   5600 {
   5601 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   5602   ;
   5603   return 0;
   5604 }
   5605 _ACEOF
   5606 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   5607 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5608 do
   5609   CC="$ac_save_CC $ac_arg"
   5610   if ac_fn_c_try_compile "$LINENO"; then :
   5611   ac_cv_prog_cc_c89=$ac_arg
   5612 fi
   5613 rm -f core conftest.err conftest.$ac_objext
   5614   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5615 done
   5616 rm -f conftest.$ac_ext
   5617 CC=$ac_save_CC
   5618 
   5619 fi
   5620 # AC_CACHE_VAL
   5621 case "x$ac_cv_prog_cc_c89" in
   5622   x)
   5623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5624 $as_echo "none needed" >&6; } ;;
   5625   xno)
   5626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5627 $as_echo "unsupported" >&6; } ;;
   5628   *)
   5629     CC="$CC $ac_cv_prog_cc_c89"
   5630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5631 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   5632 esac
   5633 if test "x$ac_cv_prog_cc_c89" != xno; then :
   5634   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   5635 else
   5636   ac_cv_prog_cc_stdc=no
   5637 fi
   5638 
   5639 fi
   5640  ;;
   5641 esac
   5642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
   5643 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
   5644   if ${ac_cv_prog_cc_stdc+:} false; then :
   5645   $as_echo_n "(cached) " >&6
   5646 fi
   5647 
   5648   case $ac_cv_prog_cc_stdc in #(
   5649   no) :
   5650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5651 $as_echo "unsupported" >&6; } ;; #(
   5652   '') :
   5653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5654 $as_echo "none needed" >&6; } ;; #(
   5655   *) :
   5656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
   5657 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
   5658 esac
   5659 
   5660 ac_ext=cpp
   5661 ac_cpp='$CXXCPP $CPPFLAGS'
   5662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5665 if test -z "$CXX"; then
   5666   if test -n "$CCC"; then
   5667     CXX=$CCC
   5668   else
   5669     if test -n "$ac_tool_prefix"; then
   5670   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5671   do
   5672     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5675 $as_echo_n "checking for $ac_word... " >&6; }
   5676 if ${ac_cv_prog_CXX+:} false; then :
   5677   $as_echo_n "(cached) " >&6
   5678 else
   5679   if test -n "$CXX"; then
   5680   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   5681 else
   5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5683 for as_dir in $PATH
   5684 do
   5685   IFS=$as_save_IFS
   5686   test -z "$as_dir" && as_dir=.
   5687     for ac_exec_ext in '' $ac_executable_extensions; do
   5688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5689     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   5690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5691     break 2
   5692   fi
   5693 done
   5694   done
   5695 IFS=$as_save_IFS
   5696 
   5697 fi
   5698 fi
   5699 CXX=$ac_cv_prog_CXX
   5700 if test -n "$CXX"; then
   5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   5702 $as_echo "$CXX" >&6; }
   5703 else
   5704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5705 $as_echo "no" >&6; }
   5706 fi
   5707 
   5708 
   5709     test -n "$CXX" && break
   5710   done
   5711 fi
   5712 if test -z "$CXX"; then
   5713   ac_ct_CXX=$CXX
   5714   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5715 do
   5716   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5717 set dummy $ac_prog; ac_word=$2
   5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5719 $as_echo_n "checking for $ac_word... " >&6; }
   5720 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   5721   $as_echo_n "(cached) " >&6
   5722 else
   5723   if test -n "$ac_ct_CXX"; then
   5724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   5725 else
   5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5727 for as_dir in $PATH
   5728 do
   5729   IFS=$as_save_IFS
   5730   test -z "$as_dir" && as_dir=.
   5731     for ac_exec_ext in '' $ac_executable_extensions; do
   5732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5733     ac_cv_prog_ac_ct_CXX="$ac_prog"
   5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5735     break 2
   5736   fi
   5737 done
   5738   done
   5739 IFS=$as_save_IFS
   5740 
   5741 fi
   5742 fi
   5743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   5744 if test -n "$ac_ct_CXX"; then
   5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   5746 $as_echo "$ac_ct_CXX" >&6; }
   5747 else
   5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5749 $as_echo "no" >&6; }
   5750 fi
   5751 
   5752 
   5753   test -n "$ac_ct_CXX" && break
   5754 done
   5755 
   5756   if test "x$ac_ct_CXX" = x; then
   5757     CXX="g++"
   5758   else
   5759     case $cross_compiling:$ac_tool_warned in
   5760 yes:)
   5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5763 ac_tool_warned=yes ;;
   5764 esac
   5765     CXX=$ac_ct_CXX
   5766   fi
   5767 fi
   5768 
   5769   fi
   5770 fi
   5771 # Provide some information about the compiler.
   5772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   5773 set X $ac_compile
   5774 ac_compiler=$2
   5775 for ac_option in --version -v -V -qversion; do
   5776   { { ac_try="$ac_compiler $ac_option >&5"
   5777 case "(($ac_try" in
   5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5779   *) ac_try_echo=$ac_try;;
   5780 esac
   5781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5782 $as_echo "$ac_try_echo"; } >&5
   5783   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5784   ac_status=$?
   5785   if test -s conftest.err; then
   5786     sed '10a\
   5787 ... rest of stderr output deleted ...
   5788          10q' conftest.err >conftest.er1
   5789     cat conftest.er1 >&5
   5790   fi
   5791   rm -f conftest.er1 conftest.err
   5792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5793   test $ac_status = 0; }
   5794 done
   5795 
   5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   5797 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   5798 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   5799   $as_echo_n "(cached) " >&6
   5800 else
   5801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5802 /* end confdefs.h.  */
   5803 
   5804 int
   5805 main ()
   5806 {
   5807 #ifndef __GNUC__
   5808        choke me
   5809 #endif
   5810 
   5811   ;
   5812   return 0;
   5813 }
   5814 _ACEOF
   5815 if ac_fn_cxx_try_compile "$LINENO"; then :
   5816   ac_compiler_gnu=yes
   5817 else
   5818   ac_compiler_gnu=no
   5819 fi
   5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5821 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   5822 
   5823 fi
   5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   5825 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   5826 if test $ac_compiler_gnu = yes; then
   5827   GXX=yes
   5828 else
   5829   GXX=
   5830 fi
   5831 ac_test_CXXFLAGS=${CXXFLAGS+set}
   5832 ac_save_CXXFLAGS=$CXXFLAGS
   5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   5834 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   5835 if ${ac_cv_prog_cxx_g+:} false; then :
   5836   $as_echo_n "(cached) " >&6
   5837 else
   5838   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   5839    ac_cxx_werror_flag=yes
   5840    ac_cv_prog_cxx_g=no
   5841    CXXFLAGS="-g"
   5842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5843 /* end confdefs.h.  */
   5844 
   5845 int
   5846 main ()
   5847 {
   5848 
   5849   ;
   5850   return 0;
   5851 }
   5852 _ACEOF
   5853 if ac_fn_cxx_try_compile "$LINENO"; then :
   5854   ac_cv_prog_cxx_g=yes
   5855 else
   5856   CXXFLAGS=""
   5857       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5858 /* end confdefs.h.  */
   5859 
   5860 int
   5861 main ()
   5862 {
   5863 
   5864   ;
   5865   return 0;
   5866 }
   5867 _ACEOF
   5868 if ac_fn_cxx_try_compile "$LINENO"; then :
   5869 
   5870 else
   5871   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5872 	 CXXFLAGS="-g"
   5873 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5874 /* end confdefs.h.  */
   5875 
   5876 int
   5877 main ()
   5878 {
   5879 
   5880   ;
   5881   return 0;
   5882 }
   5883 _ACEOF
   5884 if ac_fn_cxx_try_compile "$LINENO"; then :
   5885   ac_cv_prog_cxx_g=yes
   5886 fi
   5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5888 fi
   5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5890 fi
   5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5892    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5893 fi
   5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   5895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   5896 if test "$ac_test_CXXFLAGS" = set; then
   5897   CXXFLAGS=$ac_save_CXXFLAGS
   5898 elif test $ac_cv_prog_cxx_g = yes; then
   5899   if test "$GXX" = yes; then
   5900     CXXFLAGS="-g -O2"
   5901   else
   5902     CXXFLAGS="-g"
   5903   fi
   5904 else
   5905   if test "$GXX" = yes; then
   5906     CXXFLAGS="-O2"
   5907   else
   5908     CXXFLAGS=
   5909   fi
   5910 fi
   5911 ac_ext=c
   5912 ac_cpp='$CPP $CPPFLAGS'
   5913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5916 
   5917 depcc="$CXX"  am_compiler_list=
   5918 
   5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   5920 $as_echo_n "checking dependency style of $depcc... " >&6; }
   5921 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
   5922   $as_echo_n "(cached) " >&6
   5923 else
   5924   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   5925   # We make a subdir and do the tests there.  Otherwise we can end up
   5926   # making bogus files that we don't know about and never remove.  For
   5927   # instance it was reported that on HP-UX the gcc test will end up
   5928   # making a dummy file named 'D' -- because '-MD' means "put the output
   5929   # in D".
   5930   rm -rf conftest.dir
   5931   mkdir conftest.dir
   5932   # Copy depcomp to subdir because otherwise we won't find it if we're
   5933   # using a relative directory.
   5934   cp "$am_depcomp" conftest.dir
   5935   cd conftest.dir
   5936   # We will build objects and dependencies in a subdirectory because
   5937   # it helps to detect inapplicable dependency modes.  For instance
   5938   # both Tru64's cc and ICC support -MD to output dependencies as a
   5939   # side effect of compilation, but ICC will put the dependencies in
   5940   # the current directory while Tru64 will put them in the object
   5941   # directory.
   5942   mkdir sub
   5943 
   5944   am_cv_CXX_dependencies_compiler_type=none
   5945   if test "$am_compiler_list" = ""; then
   5946      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   5947   fi
   5948   am__universal=false
   5949   case " $depcc " in #(
   5950      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   5951      esac
   5952 
   5953   for depmode in $am_compiler_list; do
   5954     # Setup a source with many dependencies, because some compilers
   5955     # like to wrap large dependency lists on column 80 (with \), and
   5956     # we should not choose a depcomp mode which is confused by this.
   5957     #
   5958     # We need to recreate these files for each test, as the compiler may
   5959     # overwrite some of them when testing with obscure command lines.
   5960     # This happens at least with the AIX C compiler.
   5961     : > sub/conftest.c
   5962     for i in 1 2 3 4 5 6; do
   5963       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   5964       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   5965       # Solaris 10 /bin/sh.
   5966       echo '/* dummy */' > sub/conftst$i.h
   5967     done
   5968     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   5969 
   5970     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   5971     # mode.  It turns out that the SunPro C++ compiler does not properly
   5972     # handle '-M -o', and we need to detect this.  Also, some Intel
   5973     # versions had trouble with output in subdirs.
   5974     am__obj=sub/conftest.${OBJEXT-o}
   5975     am__minus_obj="-o $am__obj"
   5976     case $depmode in
   5977     gcc)
   5978       # This depmode causes a compiler race in universal mode.
   5979       test "$am__universal" = false || continue
   5980       ;;
   5981     nosideeffect)
   5982       # After this tag, mechanisms are not by side-effect, so they'll
   5983       # only be used when explicitly requested.
   5984       if test "x$enable_dependency_tracking" = xyes; then
   5985 	continue
   5986       else
   5987 	break
   5988       fi
   5989       ;;
   5990     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   5991       # This compiler won't grok '-c -o', but also, the minuso test has
   5992       # not run yet.  These depmodes are late enough in the game, and
   5993       # so weak that their functioning should not be impacted.
   5994       am__obj=conftest.${OBJEXT-o}
   5995       am__minus_obj=
   5996       ;;
   5997     none) break ;;
   5998     esac
   5999     if depmode=$depmode \
   6000        source=sub/conftest.c object=$am__obj \
   6001        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   6002        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   6003          >/dev/null 2>conftest.err &&
   6004        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   6005        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   6006        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   6007        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   6008       # icc doesn't choke on unknown options, it will just issue warnings
   6009       # or remarks (even with -Werror).  So we grep stderr for any message
   6010       # that says an option was ignored or not supported.
   6011       # When given -MP, icc 7.0 and 7.1 complain thusly:
   6012       #   icc: Command line warning: ignoring option '-M'; no argument required
   6013       # The diagnosis changed in icc 8.0:
   6014       #   icc: Command line remark: option '-MP' not supported
   6015       if (grep 'ignoring option' conftest.err ||
   6016           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   6017         am_cv_CXX_dependencies_compiler_type=$depmode
   6018         break
   6019       fi
   6020     fi
   6021   done
   6022 
   6023   cd ..
   6024   rm -rf conftest.dir
   6025 else
   6026   am_cv_CXX_dependencies_compiler_type=none
   6027 fi
   6028 
   6029 fi
   6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
   6031 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
   6032 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
   6033 
   6034  if
   6035   test "x$enable_dependency_tracking" != xno \
   6036   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
   6037   am__fastdepCXX_TRUE=
   6038   am__fastdepCXX_FALSE='#'
   6039 else
   6040   am__fastdepCXX_TRUE='#'
   6041   am__fastdepCXX_FALSE=
   6042 fi
   6043 
   6044 
   6045 
   6046 # Gnulib (early checks).
   6047 
   6048 ac_ext=c
   6049 ac_cpp='$CPP $CPPFLAGS'
   6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   6054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   6055 # On Suns, sometimes $CPP names a directory.
   6056 if test -n "$CPP" && test -d "$CPP"; then
   6057   CPP=
   6058 fi
   6059 if test -z "$CPP"; then
   6060   if ${ac_cv_prog_CPP+:} false; then :
   6061   $as_echo_n "(cached) " >&6
   6062 else
   6063       # Double quotes because CPP needs to be expanded
   6064     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   6065     do
   6066       ac_preproc_ok=false
   6067 for ac_c_preproc_warn_flag in '' yes
   6068 do
   6069   # Use a header file that comes with gcc, so configuring glibc
   6070   # with a fresh cross-compiler works.
   6071   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6072   # <limits.h> exists even on freestanding compilers.
   6073   # On the NeXT, cc -E runs the code through the compiler's parser,
   6074   # not just through cpp. "Syntax error" is here to catch this case.
   6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6076 /* end confdefs.h.  */
   6077 #ifdef __STDC__
   6078 # include <limits.h>
   6079 #else
   6080 # include <assert.h>
   6081 #endif
   6082 		     Syntax error
   6083 _ACEOF
   6084 if ac_fn_c_try_cpp "$LINENO"; then :
   6085 
   6086 else
   6087   # Broken: fails on valid input.
   6088 continue
   6089 fi
   6090 rm -f conftest.err conftest.i conftest.$ac_ext
   6091 
   6092   # OK, works on sane cases.  Now check whether nonexistent headers
   6093   # can be detected and how.
   6094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6095 /* end confdefs.h.  */
   6096 #include <ac_nonexistent.h>
   6097 _ACEOF
   6098 if ac_fn_c_try_cpp "$LINENO"; then :
   6099   # Broken: success on invalid input.
   6100 continue
   6101 else
   6102   # Passes both tests.
   6103 ac_preproc_ok=:
   6104 break
   6105 fi
   6106 rm -f conftest.err conftest.i conftest.$ac_ext
   6107 
   6108 done
   6109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6110 rm -f conftest.i conftest.err conftest.$ac_ext
   6111 if $ac_preproc_ok; then :
   6112   break
   6113 fi
   6114 
   6115     done
   6116     ac_cv_prog_CPP=$CPP
   6117 
   6118 fi
   6119   CPP=$ac_cv_prog_CPP
   6120 else
   6121   ac_cv_prog_CPP=$CPP
   6122 fi
   6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   6124 $as_echo "$CPP" >&6; }
   6125 ac_preproc_ok=false
   6126 for ac_c_preproc_warn_flag in '' yes
   6127 do
   6128   # Use a header file that comes with gcc, so configuring glibc
   6129   # with a fresh cross-compiler works.
   6130   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6131   # <limits.h> exists even on freestanding compilers.
   6132   # On the NeXT, cc -E runs the code through the compiler's parser,
   6133   # not just through cpp. "Syntax error" is here to catch this case.
   6134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6135 /* end confdefs.h.  */
   6136 #ifdef __STDC__
   6137 # include <limits.h>
   6138 #else
   6139 # include <assert.h>
   6140 #endif
   6141 		     Syntax error
   6142 _ACEOF
   6143 if ac_fn_c_try_cpp "$LINENO"; then :
   6144 
   6145 else
   6146   # Broken: fails on valid input.
   6147 continue
   6148 fi
   6149 rm -f conftest.err conftest.i conftest.$ac_ext
   6150 
   6151   # OK, works on sane cases.  Now check whether nonexistent headers
   6152   # can be detected and how.
   6153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6154 /* end confdefs.h.  */
   6155 #include <ac_nonexistent.h>
   6156 _ACEOF
   6157 if ac_fn_c_try_cpp "$LINENO"; then :
   6158   # Broken: success on invalid input.
   6159 continue
   6160 else
   6161   # Passes both tests.
   6162 ac_preproc_ok=:
   6163 break
   6164 fi
   6165 rm -f conftest.err conftest.i conftest.$ac_ext
   6166 
   6167 done
   6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6169 rm -f conftest.i conftest.err conftest.$ac_ext
   6170 if $ac_preproc_ok; then :
   6171 
   6172 else
   6173   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   6176 See \`config.log' for more details" "$LINENO" 5; }
   6177 fi
   6178 
   6179 ac_ext=c
   6180 ac_cpp='$CPP $CPPFLAGS'
   6181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6184 
   6185 
   6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   6187 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   6188 if ${ac_cv_path_GREP+:} false; then :
   6189   $as_echo_n "(cached) " >&6
   6190 else
   6191   if test -z "$GREP"; then
   6192   ac_path_GREP_found=false
   6193   # Loop through the user's path and test for each of PROGNAME-LIST
   6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6196 do
   6197   IFS=$as_save_IFS
   6198   test -z "$as_dir" && as_dir=.
   6199     for ac_prog in grep ggrep; do
   6200     for ac_exec_ext in '' $ac_executable_extensions; do
   6201       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   6202       as_fn_executable_p "$ac_path_GREP" || continue
   6203 # Check for GNU ac_path_GREP and select it if it is found.
   6204   # Check for GNU $ac_path_GREP
   6205 case `"$ac_path_GREP" --version 2>&1` in
   6206 *GNU*)
   6207   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   6208 *)
   6209   ac_count=0
   6210   $as_echo_n 0123456789 >"conftest.in"
   6211   while :
   6212   do
   6213     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6214     mv "conftest.tmp" "conftest.in"
   6215     cp "conftest.in" "conftest.nl"
   6216     $as_echo 'GREP' >> "conftest.nl"
   6217     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6219     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6220     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   6221       # Best one so far, save it but keep looking for a better one
   6222       ac_cv_path_GREP="$ac_path_GREP"
   6223       ac_path_GREP_max=$ac_count
   6224     fi
   6225     # 10*(2^10) chars as input seems more than enough
   6226     test $ac_count -gt 10 && break
   6227   done
   6228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6229 esac
   6230 
   6231       $ac_path_GREP_found && break 3
   6232     done
   6233   done
   6234   done
   6235 IFS=$as_save_IFS
   6236   if test -z "$ac_cv_path_GREP"; then
   6237     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6238   fi
   6239 else
   6240   ac_cv_path_GREP=$GREP
   6241 fi
   6242 
   6243 fi
   6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   6245 $as_echo "$ac_cv_path_GREP" >&6; }
   6246  GREP="$ac_cv_path_GREP"
   6247 
   6248 
   6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   6250 $as_echo_n "checking for egrep... " >&6; }
   6251 if ${ac_cv_path_EGREP+:} false; then :
   6252   $as_echo_n "(cached) " >&6
   6253 else
   6254   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   6255    then ac_cv_path_EGREP="$GREP -E"
   6256    else
   6257      if test -z "$EGREP"; then
   6258   ac_path_EGREP_found=false
   6259   # Loop through the user's path and test for each of PROGNAME-LIST
   6260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6262 do
   6263   IFS=$as_save_IFS
   6264   test -z "$as_dir" && as_dir=.
   6265     for ac_prog in egrep; do
   6266     for ac_exec_ext in '' $ac_executable_extensions; do
   6267       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   6268       as_fn_executable_p "$ac_path_EGREP" || continue
   6269 # Check for GNU ac_path_EGREP and select it if it is found.
   6270   # Check for GNU $ac_path_EGREP
   6271 case `"$ac_path_EGREP" --version 2>&1` in
   6272 *GNU*)
   6273   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   6274 *)
   6275   ac_count=0
   6276   $as_echo_n 0123456789 >"conftest.in"
   6277   while :
   6278   do
   6279     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6280     mv "conftest.tmp" "conftest.in"
   6281     cp "conftest.in" "conftest.nl"
   6282     $as_echo 'EGREP' >> "conftest.nl"
   6283     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6284     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6285     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6286     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   6287       # Best one so far, save it but keep looking for a better one
   6288       ac_cv_path_EGREP="$ac_path_EGREP"
   6289       ac_path_EGREP_max=$ac_count
   6290     fi
   6291     # 10*(2^10) chars as input seems more than enough
   6292     test $ac_count -gt 10 && break
   6293   done
   6294   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6295 esac
   6296 
   6297       $ac_path_EGREP_found && break 3
   6298     done
   6299   done
   6300   done
   6301 IFS=$as_save_IFS
   6302   if test -z "$ac_cv_path_EGREP"; then
   6303     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6304   fi
   6305 else
   6306   ac_cv_path_EGREP=$EGREP
   6307 fi
   6308 
   6309    fi
   6310 fi
   6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   6312 $as_echo "$ac_cv_path_EGREP" >&6; }
   6313  EGREP="$ac_cv_path_EGREP"
   6314 
   6315 
   6316 
   6317 
   6318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
   6319 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
   6320 if ${gl_cv_c_amsterdam_compiler+:} false; then :
   6321   $as_echo_n "(cached) " >&6
   6322 else
   6323 
   6324       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6325 /* end confdefs.h.  */
   6326 
   6327 #ifdef __ACK__
   6328 Amsterdam
   6329 #endif
   6330 
   6331 _ACEOF
   6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6333   $EGREP "Amsterdam" >/dev/null 2>&1; then :
   6334   gl_cv_c_amsterdam_compiler=yes
   6335 else
   6336   gl_cv_c_amsterdam_compiler=no
   6337 fi
   6338 rm -f conftest*
   6339 
   6340 
   6341 fi
   6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
   6343 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
   6344   if test -z "$AR"; then
   6345     if test $gl_cv_c_amsterdam_compiler = yes; then
   6346       AR='cc -c.a'
   6347       if test -z "$ARFLAGS"; then
   6348         ARFLAGS='-o'
   6349       fi
   6350     else
   6351                   if test -n "$ac_tool_prefix"; then
   6352   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6353 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6355 $as_echo_n "checking for $ac_word... " >&6; }
   6356 if ${ac_cv_prog_AR+:} false; then :
   6357   $as_echo_n "(cached) " >&6
   6358 else
   6359   if test -n "$AR"; then
   6360   ac_cv_prog_AR="$AR" # Let the user override the test.
   6361 else
   6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6363 for as_dir in $PATH
   6364 do
   6365   IFS=$as_save_IFS
   6366   test -z "$as_dir" && as_dir=.
   6367     for ac_exec_ext in '' $ac_executable_extensions; do
   6368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6369     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6371     break 2
   6372   fi
   6373 done
   6374   done
   6375 IFS=$as_save_IFS
   6376 
   6377 fi
   6378 fi
   6379 AR=$ac_cv_prog_AR
   6380 if test -n "$AR"; then
   6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6382 $as_echo "$AR" >&6; }
   6383 else
   6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6385 $as_echo "no" >&6; }
   6386 fi
   6387 
   6388 
   6389 fi
   6390 if test -z "$ac_cv_prog_AR"; then
   6391   ac_ct_AR=$AR
   6392   # Extract the first word of "ar", so it can be a program name with args.
   6393 set dummy ar; ac_word=$2
   6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6395 $as_echo_n "checking for $ac_word... " >&6; }
   6396 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   6397   $as_echo_n "(cached) " >&6
   6398 else
   6399   if test -n "$ac_ct_AR"; then
   6400   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6401 else
   6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6403 for as_dir in $PATH
   6404 do
   6405   IFS=$as_save_IFS
   6406   test -z "$as_dir" && as_dir=.
   6407     for ac_exec_ext in '' $ac_executable_extensions; do
   6408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6409     ac_cv_prog_ac_ct_AR="ar"
   6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6411     break 2
   6412   fi
   6413 done
   6414   done
   6415 IFS=$as_save_IFS
   6416 
   6417 fi
   6418 fi
   6419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6420 if test -n "$ac_ct_AR"; then
   6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6422 $as_echo "$ac_ct_AR" >&6; }
   6423 else
   6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6425 $as_echo "no" >&6; }
   6426 fi
   6427 
   6428   if test "x$ac_ct_AR" = x; then
   6429     AR="ar"
   6430   else
   6431     case $cross_compiling:$ac_tool_warned in
   6432 yes:)
   6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6435 ac_tool_warned=yes ;;
   6436 esac
   6437     AR=$ac_ct_AR
   6438   fi
   6439 else
   6440   AR="$ac_cv_prog_AR"
   6441 fi
   6442 
   6443       if test -z "$ARFLAGS"; then
   6444         ARFLAGS='cru'
   6445       fi
   6446     fi
   6447   else
   6448     if test -z "$ARFLAGS"; then
   6449       ARFLAGS='cru'
   6450     fi
   6451   fi
   6452 
   6453 
   6454   if test -z "$RANLIB"; then
   6455     if test $gl_cv_c_amsterdam_compiler = yes; then
   6456       RANLIB=':'
   6457     else
   6458             if test -n "$ac_tool_prefix"; then
   6459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6462 $as_echo_n "checking for $ac_word... " >&6; }
   6463 if ${ac_cv_prog_RANLIB+:} false; then :
   6464   $as_echo_n "(cached) " >&6
   6465 else
   6466   if test -n "$RANLIB"; then
   6467   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6468 else
   6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6470 for as_dir in $PATH
   6471 do
   6472   IFS=$as_save_IFS
   6473   test -z "$as_dir" && as_dir=.
   6474     for ac_exec_ext in '' $ac_executable_extensions; do
   6475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6476     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6478     break 2
   6479   fi
   6480 done
   6481   done
   6482 IFS=$as_save_IFS
   6483 
   6484 fi
   6485 fi
   6486 RANLIB=$ac_cv_prog_RANLIB
   6487 if test -n "$RANLIB"; then
   6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6489 $as_echo "$RANLIB" >&6; }
   6490 else
   6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6492 $as_echo "no" >&6; }
   6493 fi
   6494 
   6495 
   6496 fi
   6497 if test -z "$ac_cv_prog_RANLIB"; then
   6498   ac_ct_RANLIB=$RANLIB
   6499   # Extract the first word of "ranlib", so it can be a program name with args.
   6500 set dummy ranlib; ac_word=$2
   6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6502 $as_echo_n "checking for $ac_word... " >&6; }
   6503 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   6504   $as_echo_n "(cached) " >&6
   6505 else
   6506   if test -n "$ac_ct_RANLIB"; then
   6507   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6508 else
   6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6510 for as_dir in $PATH
   6511 do
   6512   IFS=$as_save_IFS
   6513   test -z "$as_dir" && as_dir=.
   6514     for ac_exec_ext in '' $ac_executable_extensions; do
   6515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6516     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6518     break 2
   6519   fi
   6520 done
   6521   done
   6522 IFS=$as_save_IFS
   6523 
   6524 fi
   6525 fi
   6526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6527 if test -n "$ac_ct_RANLIB"; then
   6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6529 $as_echo "$ac_ct_RANLIB" >&6; }
   6530 else
   6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6532 $as_echo "no" >&6; }
   6533 fi
   6534 
   6535   if test "x$ac_ct_RANLIB" = x; then
   6536     RANLIB=":"
   6537   else
   6538     case $cross_compiling:$ac_tool_warned in
   6539 yes:)
   6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6542 ac_tool_warned=yes ;;
   6543 esac
   6544     RANLIB=$ac_ct_RANLIB
   6545   fi
   6546 else
   6547   RANLIB="$ac_cv_prog_RANLIB"
   6548 fi
   6549 
   6550     fi
   6551   fi
   6552 
   6553 
   6554 if test "x$CC" != xcc; then
   6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
   6556 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
   6557 else
   6558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
   6559 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
   6560 fi
   6561 set dummy $CC; ac_cc=`$as_echo "$2" |
   6562 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   6563 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
   6564   $as_echo_n "(cached) " >&6
   6565 else
   6566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6567 /* end confdefs.h.  */
   6568 
   6569 int
   6570 main ()
   6571 {
   6572 
   6573   ;
   6574   return 0;
   6575 }
   6576 _ACEOF
   6577 # Make sure it works both with $CC and with simple cc.
   6578 # We do the test twice because some compilers refuse to overwrite an
   6579 # existing .o file with -o, though they will create one.
   6580 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   6581 rm -f conftest2.*
   6582 if { { case "(($ac_try" in
   6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6584   *) ac_try_echo=$ac_try;;
   6585 esac
   6586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6587 $as_echo "$ac_try_echo"; } >&5
   6588   (eval "$ac_try") 2>&5
   6589   ac_status=$?
   6590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6591   test $ac_status = 0; } &&
   6592    test -f conftest2.$ac_objext && { { case "(($ac_try" in
   6593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6594   *) ac_try_echo=$ac_try;;
   6595 esac
   6596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6597 $as_echo "$ac_try_echo"; } >&5
   6598   (eval "$ac_try") 2>&5
   6599   ac_status=$?
   6600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6601   test $ac_status = 0; };
   6602 then
   6603   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   6604   if test "x$CC" != xcc; then
   6605     # Test first that cc exists at all.
   6606     if { ac_try='cc -c conftest.$ac_ext >&5'
   6607   { { case "(($ac_try" in
   6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6609   *) ac_try_echo=$ac_try;;
   6610 esac
   6611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6612 $as_echo "$ac_try_echo"; } >&5
   6613   (eval "$ac_try") 2>&5
   6614   ac_status=$?
   6615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6616   test $ac_status = 0; }; }; then
   6617       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   6618       rm -f conftest2.*
   6619       if { { case "(($ac_try" in
   6620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6621   *) ac_try_echo=$ac_try;;
   6622 esac
   6623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6624 $as_echo "$ac_try_echo"; } >&5
   6625   (eval "$ac_try") 2>&5
   6626   ac_status=$?
   6627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6628   test $ac_status = 0; } &&
   6629 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
   6630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6631   *) ac_try_echo=$ac_try;;
   6632 esac
   6633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6634 $as_echo "$ac_try_echo"; } >&5
   6635   (eval "$ac_try") 2>&5
   6636   ac_status=$?
   6637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6638   test $ac_status = 0; };
   6639       then
   6640 	# cc works too.
   6641 	:
   6642       else
   6643 	# cc exists but doesn't like -o.
   6644 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   6645       fi
   6646     fi
   6647   fi
   6648 else
   6649   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   6650 fi
   6651 rm -f core conftest*
   6652 
   6653 fi
   6654 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
   6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6656 $as_echo "yes" >&6; }
   6657 else
   6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6659 $as_echo "no" >&6; }
   6660 
   6661 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
   6662 
   6663 fi
   6664 
   6665 # FIXME: we rely on the cache variable name because
   6666 # there is no other way.
   6667 set dummy $CC
   6668 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   6669 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
   6670 if test "$am_t" != yes; then
   6671    # Losing compiler, so override with the script.
   6672    # FIXME: It is wrong to rewrite CC.
   6673    # But if we don't then we get into trouble of one sort or another.
   6674    # A longer-term fix would be to have automake use am__CC in this case,
   6675    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   6676    CC="$am_aux_dir/compile $CC"
   6677 fi
   6678 
   6679 
   6680 # Make sure we can run config.sub.
   6681 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   6682   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   6683 
   6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   6685 $as_echo_n "checking build system type... " >&6; }
   6686 if ${ac_cv_build+:} false; then :
   6687   $as_echo_n "(cached) " >&6
   6688 else
   6689   ac_build_alias=$build_alias
   6690 test "x$ac_build_alias" = x &&
   6691   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   6692 test "x$ac_build_alias" = x &&
   6693   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   6694 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   6695   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   6696 
   6697 fi
   6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   6699 $as_echo "$ac_cv_build" >&6; }
   6700 case $ac_cv_build in
   6701 *-*-*) ;;
   6702 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   6703 esac
   6704 build=$ac_cv_build
   6705 ac_save_IFS=$IFS; IFS='-'
   6706 set x $ac_cv_build
   6707 shift
   6708 build_cpu=$1
   6709 build_vendor=$2
   6710 shift; shift
   6711 # Remember, the first character of IFS is used to create $*,
   6712 # except with old shells:
   6713 build_os=$*
   6714 IFS=$ac_save_IFS
   6715 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   6716 
   6717 
   6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   6719 $as_echo_n "checking host system type... " >&6; }
   6720 if ${ac_cv_host+:} false; then :
   6721   $as_echo_n "(cached) " >&6
   6722 else
   6723   if test "x$host_alias" = x; then
   6724   ac_cv_host=$ac_cv_build
   6725 else
   6726   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   6727     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   6728 fi
   6729 
   6730 fi
   6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   6732 $as_echo "$ac_cv_host" >&6; }
   6733 case $ac_cv_host in
   6734 *-*-*) ;;
   6735 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   6736 esac
   6737 host=$ac_cv_host
   6738 ac_save_IFS=$IFS; IFS='-'
   6739 set x $ac_cv_host
   6740 shift
   6741 host_cpu=$1
   6742 host_vendor=$2
   6743 shift; shift
   6744 # Remember, the first character of IFS is used to create $*,
   6745 # except with old shells:
   6746 host_os=$*
   6747 IFS=$ac_save_IFS
   6748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   6749 
   6750 
   6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   6752 $as_echo_n "checking for ANSI C header files... " >&6; }
   6753 if ${ac_cv_header_stdc+:} false; then :
   6754   $as_echo_n "(cached) " >&6
   6755 else
   6756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6757 /* end confdefs.h.  */
   6758 #include <stdlib.h>
   6759 #include <stdarg.h>
   6760 #include <string.h>
   6761 #include <float.h>
   6762 
   6763 int
   6764 main ()
   6765 {
   6766 
   6767   ;
   6768   return 0;
   6769 }
   6770 _ACEOF
   6771 if ac_fn_c_try_compile "$LINENO"; then :
   6772   ac_cv_header_stdc=yes
   6773 else
   6774   ac_cv_header_stdc=no
   6775 fi
   6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6777 
   6778 if test $ac_cv_header_stdc = yes; then
   6779   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6781 /* end confdefs.h.  */
   6782 #include <string.h>
   6783 
   6784 _ACEOF
   6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6786   $EGREP "memchr" >/dev/null 2>&1; then :
   6787 
   6788 else
   6789   ac_cv_header_stdc=no
   6790 fi
   6791 rm -f conftest*
   6792 
   6793 fi
   6794 
   6795 if test $ac_cv_header_stdc = yes; then
   6796   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6798 /* end confdefs.h.  */
   6799 #include <stdlib.h>
   6800 
   6801 _ACEOF
   6802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6803   $EGREP "free" >/dev/null 2>&1; then :
   6804 
   6805 else
   6806   ac_cv_header_stdc=no
   6807 fi
   6808 rm -f conftest*
   6809 
   6810 fi
   6811 
   6812 if test $ac_cv_header_stdc = yes; then
   6813   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6814   if test "$cross_compiling" = yes; then :
   6815   :
   6816 else
   6817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6818 /* end confdefs.h.  */
   6819 #include <ctype.h>
   6820 #include <stdlib.h>
   6821 #if ((' ' & 0x0FF) == 0x020)
   6822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6824 #else
   6825 # define ISLOWER(c) \
   6826 		   (('a' <= (c) && (c) <= 'i') \
   6827 		     || ('j' <= (c) && (c) <= 'r') \
   6828 		     || ('s' <= (c) && (c) <= 'z'))
   6829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6830 #endif
   6831 
   6832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6833 int
   6834 main ()
   6835 {
   6836   int i;
   6837   for (i = 0; i < 256; i++)
   6838     if (XOR (islower (i), ISLOWER (i))
   6839 	|| toupper (i) != TOUPPER (i))
   6840       return 2;
   6841   return 0;
   6842 }
   6843 _ACEOF
   6844 if ac_fn_c_try_run "$LINENO"; then :
   6845 
   6846 else
   6847   ac_cv_header_stdc=no
   6848 fi
   6849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6850   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6851 fi
   6852 
   6853 fi
   6854 fi
   6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   6856 $as_echo "$ac_cv_header_stdc" >&6; }
   6857 if test $ac_cv_header_stdc = yes; then
   6858 
   6859 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   6860 
   6861 fi
   6862 
   6863 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6865 		  inttypes.h stdint.h unistd.h
   6866 do :
   6867   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6868 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   6869 "
   6870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   6871   cat >>confdefs.h <<_ACEOF
   6872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6873 _ACEOF
   6874 
   6875 fi
   6876 
   6877 done
   6878 
   6879 
   6880 
   6881 
   6882 
   6883   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   6884 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   6885   MINIX=yes
   6886 else
   6887   MINIX=
   6888 fi
   6889 
   6890 
   6891   if test "$MINIX" = yes; then
   6892 
   6893 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   6894 
   6895 
   6896 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   6897 
   6898 
   6899 $as_echo "#define _MINIX 1" >>confdefs.h
   6900 
   6901   fi
   6902 
   6903         case "$host_os" in
   6904     hpux*)
   6905 
   6906 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
   6907 
   6908       ;;
   6909   esac
   6910 
   6911 
   6912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   6913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   6914 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   6915   $as_echo_n "(cached) " >&6
   6916 else
   6917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6918 /* end confdefs.h.  */
   6919 
   6920 #         define __EXTENSIONS__ 1
   6921           $ac_includes_default
   6922 int
   6923 main ()
   6924 {
   6925 
   6926   ;
   6927   return 0;
   6928 }
   6929 _ACEOF
   6930 if ac_fn_c_try_compile "$LINENO"; then :
   6931   ac_cv_safe_to_define___extensions__=yes
   6932 else
   6933   ac_cv_safe_to_define___extensions__=no
   6934 fi
   6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6936 fi
   6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   6938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   6939   test $ac_cv_safe_to_define___extensions__ = yes &&
   6940     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   6941 
   6942   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   6943 
   6944   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   6945 
   6946   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   6947 
   6948   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   6949 
   6950   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   6951 
   6952 
   6953 
   6954 
   6955 
   6956 
   6957 
   6958 
   6959 
   6960 
   6961 
   6962   # IEEE behaviour is the default on all CPUs except Alpha and SH
   6963   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
   6964   # and the GCC 4.1.2 manual).
   6965   case "$host_cpu" in
   6966     alpha*)
   6967       # On Alpha systems, a compiler option provides the behaviour.
   6968       # See the ieee(3) manual page, also available at
   6969       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
   6970       if test -n "$GCC"; then
   6971         # GCC has the option -mieee.
   6972         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
   6973         CPPFLAGS="$CPPFLAGS -mieee"
   6974       else
   6975         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
   6976         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
   6977         CPPFLAGS="$CPPFLAGS -ieee"
   6978       fi
   6979       ;;
   6980     sh*)
   6981       if test -n "$GCC"; then
   6982         # GCC has the option -mieee.
   6983         CPPFLAGS="$CPPFLAGS -mieee"
   6984       fi
   6985       ;;
   6986   esac
   6987 
   6988 # Check whether --enable-largefile was given.
   6989 if test "${enable_largefile+set}" = set; then :
   6990   enableval=$enable_largefile;
   6991 fi
   6992 
   6993 if test "$enable_largefile" != no; then
   6994 
   6995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   6996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   6997 if ${ac_cv_sys_largefile_CC+:} false; then :
   6998   $as_echo_n "(cached) " >&6
   6999 else
   7000   ac_cv_sys_largefile_CC=no
   7001      if test "$GCC" != yes; then
   7002        ac_save_CC=$CC
   7003        while :; do
   7004 	 # IRIX 6.2 and later do not support large files by default,
   7005 	 # so use the C compiler's -n32 option if that helps.
   7006 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7007 /* end confdefs.h.  */
   7008 #include <sys/types.h>
   7009  /* Check that off_t can represent 2**63 - 1 correctly.
   7010     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   7011     since some C++ compilers masquerading as C compilers
   7012     incorrectly reject 9223372036854775807.  */
   7013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   7014   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   7015 		       && LARGE_OFF_T % 2147483647 == 1)
   7016 		      ? 1 : -1];
   7017 int
   7018 main ()
   7019 {
   7020 
   7021   ;
   7022   return 0;
   7023 }
   7024 _ACEOF
   7025 	 if ac_fn_c_try_compile "$LINENO"; then :
   7026   break
   7027 fi
   7028 rm -f core conftest.err conftest.$ac_objext
   7029 	 CC="$CC -n32"
   7030 	 if ac_fn_c_try_compile "$LINENO"; then :
   7031   ac_cv_sys_largefile_CC=' -n32'; break
   7032 fi
   7033 rm -f core conftest.err conftest.$ac_objext
   7034 	 break
   7035        done
   7036        CC=$ac_save_CC
   7037        rm -f conftest.$ac_ext
   7038     fi
   7039 fi
   7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   7041 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   7042   if test "$ac_cv_sys_largefile_CC" != no; then
   7043     CC=$CC$ac_cv_sys_largefile_CC
   7044   fi
   7045 
   7046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   7047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   7048 if ${ac_cv_sys_file_offset_bits+:} false; then :
   7049   $as_echo_n "(cached) " >&6
   7050 else
   7051   while :; do
   7052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7053 /* end confdefs.h.  */
   7054 #include <sys/types.h>
   7055  /* Check that off_t can represent 2**63 - 1 correctly.
   7056     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   7057     since some C++ compilers masquerading as C compilers
   7058     incorrectly reject 9223372036854775807.  */
   7059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   7060   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   7061 		       && LARGE_OFF_T % 2147483647 == 1)
   7062 		      ? 1 : -1];
   7063 int
   7064 main ()
   7065 {
   7066 
   7067   ;
   7068   return 0;
   7069 }
   7070 _ACEOF
   7071 if ac_fn_c_try_compile "$LINENO"; then :
   7072   ac_cv_sys_file_offset_bits=no; break
   7073 fi
   7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7076 /* end confdefs.h.  */
   7077 #define _FILE_OFFSET_BITS 64
   7078 #include <sys/types.h>
   7079  /* Check that off_t can represent 2**63 - 1 correctly.
   7080     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   7081     since some C++ compilers masquerading as C compilers
   7082     incorrectly reject 9223372036854775807.  */
   7083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   7084   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   7085 		       && LARGE_OFF_T % 2147483647 == 1)
   7086 		      ? 1 : -1];
   7087 int
   7088 main ()
   7089 {
   7090 
   7091   ;
   7092   return 0;
   7093 }
   7094 _ACEOF
   7095 if ac_fn_c_try_compile "$LINENO"; then :
   7096   ac_cv_sys_file_offset_bits=64; break
   7097 fi
   7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7099   ac_cv_sys_file_offset_bits=unknown
   7100   break
   7101 done
   7102 fi
   7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   7104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   7105 case $ac_cv_sys_file_offset_bits in #(
   7106   no | unknown) ;;
   7107   *)
   7108 cat >>confdefs.h <<_ACEOF
   7109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   7110 _ACEOF
   7111 ;;
   7112 esac
   7113 rm -rf conftest*
   7114   if test $ac_cv_sys_file_offset_bits = unknown; then
   7115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   7116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   7117 if ${ac_cv_sys_large_files+:} false; then :
   7118   $as_echo_n "(cached) " >&6
   7119 else
   7120   while :; do
   7121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7122 /* end confdefs.h.  */
   7123 #include <sys/types.h>
   7124  /* Check that off_t can represent 2**63 - 1 correctly.
   7125     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   7126     since some C++ compilers masquerading as C compilers
   7127     incorrectly reject 9223372036854775807.  */
   7128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   7129   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   7130 		       && LARGE_OFF_T % 2147483647 == 1)
   7131 		      ? 1 : -1];
   7132 int
   7133 main ()
   7134 {
   7135 
   7136   ;
   7137   return 0;
   7138 }
   7139 _ACEOF
   7140 if ac_fn_c_try_compile "$LINENO"; then :
   7141   ac_cv_sys_large_files=no; break
   7142 fi
   7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7145 /* end confdefs.h.  */
   7146 #define _LARGE_FILES 1
   7147 #include <sys/types.h>
   7148  /* Check that off_t can represent 2**63 - 1 correctly.
   7149     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   7150     since some C++ compilers masquerading as C compilers
   7151     incorrectly reject 9223372036854775807.  */
   7152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   7153   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   7154 		       && LARGE_OFF_T % 2147483647 == 1)
   7155 		      ? 1 : -1];
   7156 int
   7157 main ()
   7158 {
   7159 
   7160   ;
   7161   return 0;
   7162 }
   7163 _ACEOF
   7164 if ac_fn_c_try_compile "$LINENO"; then :
   7165   ac_cv_sys_large_files=1; break
   7166 fi
   7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7168   ac_cv_sys_large_files=unknown
   7169   break
   7170 done
   7171 fi
   7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   7173 $as_echo "$ac_cv_sys_large_files" >&6; }
   7174 case $ac_cv_sys_large_files in #(
   7175   no | unknown) ;;
   7176   *)
   7177 cat >>confdefs.h <<_ACEOF
   7178 #define _LARGE_FILES $ac_cv_sys_large_files
   7179 _ACEOF
   7180 ;;
   7181 esac
   7182 rm -rf conftest*
   7183   fi
   7184 
   7185 
   7186 fi
   7187 
   7188 
   7189 
   7190 
   7191 
   7192 
   7193   # Check whether --enable-threads was given.
   7194 if test "${enable_threads+set}" = set; then :
   7195   enableval=$enable_threads; gl_use_threads=$enableval
   7196 else
   7197   if test -n "$gl_use_threads_default"; then
   7198        gl_use_threads="$gl_use_threads_default"
   7199      else
   7200        case "$host_os" in
   7201                                                                osf*) gl_use_threads=no ;;
   7202          cygwin*)
   7203                case `uname -r` in
   7204                  1.[0-5].*) gl_use_threads=no ;;
   7205                  *)         gl_use_threads=yes ;;
   7206                esac
   7207                ;;
   7208          *)    gl_use_threads=yes ;;
   7209        esac
   7210      fi
   7211 
   7212 fi
   7213 
   7214   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
   7215     # For using <pthread.h>:
   7216     case "$host_os" in
   7217       osf*)
   7218         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
   7219         # groks <pthread.h>. cc also understands the flag -pthread, but
   7220         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
   7221         # 2. putting a flag into CPPFLAGS that has an effect on the linker
   7222         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
   7223         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
   7224         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
   7225         ;;
   7226     esac
   7227     # Some systems optimize for single-threaded programs by default, and
   7228     # need special flags to disable these optimizations. For example, the
   7229     # definition of 'errno' in <errno.h>.
   7230     case "$host_os" in
   7231       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
   7232       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
   7233     esac
   7234   fi
   7235 
   7236 
   7237 
   7238 
   7239   # Code from module alloca-opt:
   7240   # Code from module announce-gen:
   7241   # Code from module argmatch:
   7242   # Code from module assert:
   7243   # Code from module binary-io:
   7244   # Code from module bitrotate:
   7245   # Code from module c-ctype:
   7246   # Code from module c-strcase:
   7247   # Code from module c-strcaseeq:
   7248   # Code from module calloc-posix:
   7249   # Code from module cloexec:
   7250   # Code from module close:
   7251   # Code from module close-stream:
   7252   # Code from module closeout:
   7253   # Code from module config-h:
   7254   # Code from module configmake:
   7255   # Code from module dirname:
   7256   # Code from module dirname-lgpl:
   7257   # Code from module do-release-commit-and-tag:
   7258   # Code from module dosname:
   7259   # Code from module double-slash-root:
   7260   # Code from module dup2:
   7261   # Code from module environ:
   7262   # Code from module errno:
   7263   # Code from module error:
   7264   # Code from module exitfail:
   7265   # Code from module extensions:
   7266 
   7267   # Code from module extern-inline:
   7268   # Code from module fatal-signal:
   7269   # Code from module fcntl:
   7270   # Code from module fcntl-h:
   7271   # Code from module fd-hook:
   7272   # Code from module fd-safer-flag:
   7273   # Code from module fdl:
   7274   # Code from module float:
   7275   # Code from module fopen:
   7276   # Code from module fopen-safer:
   7277   # Code from module fpending:
   7278   # Code from module fpieee:
   7279 
   7280   # Code from module fprintf-posix:
   7281   # Code from module fpucw:
   7282   # Code from module frexp-nolibm:
   7283   # Code from module frexpl-nolibm:
   7284   # Code from module fseterr:
   7285   # Code from module fstat:
   7286   # Code from module gendocs:
   7287   # Code from module getdelim:
   7288   # Code from module getdtablesize:
   7289   # Code from module getline:
   7290   # Code from module getopt-gnu:
   7291   # Code from module getopt-posix:
   7292   # Code from module gettext:
   7293   # Code from module gettext-h:
   7294   # Code from module git-version-gen:
   7295   # Code from module gitlog-to-changelog:
   7296   # Code from module gnu-web-doc-update:
   7297   # Code from module gnumakefile:
   7298   # Code from module gnupload:
   7299   # Code from module gpl-3.0:
   7300   # Code from module hash:
   7301   # Code from module havelib:
   7302   # Code from module include_next:
   7303   # Code from module intprops:
   7304   # Code from module inttypes:
   7305   # Code from module inttypes-incomplete:
   7306   # Code from module isnan:
   7307   # Code from module isnand:
   7308   # Code from module isnand-nolibm:
   7309   # Code from module isnanf:
   7310   # Code from module isnanf-nolibm:
   7311   # Code from module isnanl:
   7312   # Code from module isnanl-nolibm:
   7313   # Code from module iswblank:
   7314   # Code from module javacomp-script:
   7315   # Code from module javaexec-script:
   7316   # Code from module largefile:
   7317 
   7318   # Code from module ldexp:
   7319   # Code from module ldexpl:
   7320   # Code from module localcharset:
   7321   # Code from module lock:
   7322   # Code from module maintainer-makefile:
   7323   # Code from module malloc-gnu:
   7324   # Code from module malloc-posix:
   7325   # Code from module math:
   7326   # Code from module mbchar:
   7327   # Code from module mbrtowc:
   7328   # Code from module mbschr:
   7329   # Code from module mbsinit:
   7330   # Code from module mbsrchr:
   7331   # Code from module mbswidth:
   7332   # Code from module mbuiter:
   7333   # Code from module memchr:
   7334   # Code from module msvc-inval:
   7335   # Code from module msvc-nothrow:
   7336   # Code from module multiarch:
   7337   # Code from module nocrash:
   7338   # Code from module obstack:
   7339   # Code from module obstack-printf:
   7340   # Code from module open:
   7341   # Code from module pathmax:
   7342   # Code from module perror:
   7343   # Code from module pipe2:
   7344   # Code from module pipe2-safer:
   7345   # Code from module posix_spawn-internal:
   7346   # Code from module posix_spawn_file_actions_addclose:
   7347   # Code from module posix_spawn_file_actions_adddup2:
   7348   # Code from module posix_spawn_file_actions_addopen:
   7349   # Code from module posix_spawn_file_actions_destroy:
   7350   # Code from module posix_spawn_file_actions_init:
   7351   # Code from module posix_spawnattr_destroy:
   7352   # Code from module posix_spawnattr_init:
   7353   # Code from module posix_spawnattr_setflags:
   7354   # Code from module posix_spawnattr_setsigmask:
   7355   # Code from module posix_spawnp:
   7356   # Code from module printf-frexp:
   7357   # Code from module printf-frexpl:
   7358   # Code from module printf-posix:
   7359   # Code from module printf-safe:
   7360   # Code from module progname:
   7361   # Code from module quote:
   7362   # Code from module quotearg:
   7363   # Code from module quotearg-simple:
   7364   # Code from module raise:
   7365   # Code from module rawmemchr:
   7366   # Code from module readme-release:
   7367   # Code from module realloc-posix:
   7368   # Code from module sched:
   7369   # Code from module sigaction:
   7370   # Code from module signal-h:
   7371   # Code from module signbit:
   7372   # Code from module sigprocmask:
   7373   # Code from module size_max:
   7374   # Code from module snippet/_Noreturn:
   7375   # Code from module snippet/arg-nonnull:
   7376   # Code from module snippet/c++defs:
   7377   # Code from module snippet/warn-on-use:
   7378   # Code from module snprintf:
   7379   # Code from module snprintf-posix:
   7380   # Code from module spawn:
   7381   # Code from module spawn-pipe:
   7382   # Code from module sprintf-posix:
   7383   # Code from module ssize_t:
   7384   # Code from module stat:
   7385   # Code from module stdbool:
   7386   # Code from module stddef:
   7387   # Code from module stdint:
   7388   # Code from module stdio:
   7389   # Code from module stdlib:
   7390   # Code from module stpcpy:
   7391   # Code from module strchrnul:
   7392   # Code from module strdup-posix:
   7393   # Code from module streq:
   7394   # Code from module strerror:
   7395   # Code from module strerror-override:
   7396   # Code from module strerror_r-posix:
   7397   # Code from module string:
   7398   # Code from module strndup:
   7399   # Code from module strnlen:
   7400   # Code from module strnlen1:
   7401   # Code from module strtoul:
   7402   # Code from module strverscmp:
   7403   # Code from module sys_stat:
   7404   # Code from module sys_types:
   7405   # Code from module sys_wait:
   7406   # Code from module threadlib:
   7407 
   7408 
   7409 
   7410   # Code from module time:
   7411   # Code from module unistd:
   7412   # Code from module unistd-safer:
   7413   # Code from module unitypes:
   7414   # Code from module uniwidth/base:
   7415   # Code from module uniwidth/width:
   7416   # Code from module unlocked-io:
   7417   # Code from module unsetenv:
   7418   # Code from module update-copyright:
   7419   # Code from module useless-if-before-free:
   7420   # Code from module vasnprintf:
   7421   # Code from module vc-list-files:
   7422   # Code from module verify:
   7423   # Code from module vfprintf-posix:
   7424   # Code from module vsnprintf:
   7425   # Code from module vsnprintf-posix:
   7426   # Code from module vsprintf-posix:
   7427   # Code from module wait-process:
   7428   # Code from module waitpid:
   7429   # Code from module warnings:
   7430   # Code from module wchar:
   7431   # Code from module wctype-h:
   7432   # Code from module wcwidth:
   7433   # Code from module xalloc:
   7434   # Code from module xalloc-die:
   7435   # Code from module xalloc-oversized:
   7436   # Code from module xmemdup0:
   7437   # Code from module xsize:
   7438   # Code from module xstrndup:
   7439 
   7440 
   7441 # Gnulib uses '#pragma GCC diagnostic push' to silence some
   7442 # warnings, but older gcc doesn't support this.
   7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma GCC diagnostic push works" >&5
   7444 $as_echo_n "checking whether pragma GCC diagnostic push works... " >&6; }
   7445 if ${lv_cv_gcc_pragma_push_works+:} false; then :
   7446   $as_echo_n "(cached) " >&6
   7447 else
   7448 
   7449   save_CFLAGS=$CFLAGS
   7450   CFLAGS='-Wunknown-pragmas -Werror'
   7451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7452 /* end confdefs.h.  */
   7453 
   7454     #pragma GCC diagnostic push
   7455     #pragma GCC diagnostic pop
   7456 
   7457 int
   7458 main ()
   7459 {
   7460 
   7461   ;
   7462   return 0;
   7463 }
   7464 _ACEOF
   7465 if ac_fn_c_try_compile "$LINENO"; then :
   7466   lv_cv_gcc_pragma_push_works=yes
   7467 else
   7468   lv_cv_gcc_pragma_push_works=no
   7469 fi
   7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7471   CFLAGS=$save_CFLAGS
   7472 fi
   7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lv_cv_gcc_pragma_push_works" >&5
   7474 $as_echo "$lv_cv_gcc_pragma_push_works" >&6; }
   7475 
   7476 # Check whether --enable-gcc-warnings was given.
   7477 if test "${enable_gcc_warnings+set}" = set; then :
   7478   enableval=$enable_gcc_warnings; case $enable_gcc_warnings in
   7479    yes|no) ;;
   7480    *)  as_fn_error $? "invalid value for --gcc-warnings: $enable_gcc_warnings" "$LINENO" 5;;
   7481  esac
   7482 else
   7483   enable_gcc_warnings=no
   7484 fi
   7485 
   7486 if test "$enable_gcc_warnings" = yes; then
   7487   warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align
   7488     -Wformat -Wpointer-arith -Wwrite-strings'
   7489   warn_c='-Wbad-function-cast -Wshadow -Wstrict-prototypes'
   7490   warn_cxx='-Wnoexcept'
   7491   ac_ext=c
   7492 ac_cpp='$CPP $CPPFLAGS'
   7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7496 
   7497   # Clang supports many of GCC's -W options, but only issues warnings
   7498   # on the ones it does not recognize.  In that case, gl_WARN_ADD
   7499   # thinks the option is supported, and unknown options are then added
   7500   # to CFLAGS.  But then, when -Werror is added in the test suite for
   7501   # instance, the warning about the unknown option turns into an
   7502   # error.
   7503   #
   7504   # This should be addressed by gnulib's gl_WARN_ADD, but in the
   7505   # meanwhile, turn warnings about unknown options into errors in
   7506   # CFLAGS, and restore CFLAGS after the tests.
   7507   save_CFLAGS=$CFLAGS
   7508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror=unknown-warning-option" >&5
   7509 $as_echo_n "checking whether C compiler handles -Werror=unknown-warning-option... " >&6; }
   7510 if ${gl_cv_warn_c__Werror_unknown_warning_option+:} false; then :
   7511   $as_echo_n "(cached) " >&6
   7512 else
   7513 
   7514   gl_save_compiler_FLAGS="$CFLAGS"
   7515   as_fn_append CFLAGS " -Werror=unknown-warning-option"
   7516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7517 /* end confdefs.h.  */
   7518 
   7519 int
   7520 main ()
   7521 {
   7522 
   7523   ;
   7524   return 0;
   7525 }
   7526 _ACEOF
   7527 if ac_fn_c_try_compile "$LINENO"; then :
   7528   gl_cv_warn_c__Werror_unknown_warning_option=yes
   7529 else
   7530   gl_cv_warn_c__Werror_unknown_warning_option=no
   7531 fi
   7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7533   CFLAGS="$gl_save_compiler_FLAGS"
   7534 
   7535 fi
   7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror_unknown_warning_option" >&5
   7537 $as_echo "$gl_cv_warn_c__Werror_unknown_warning_option" >&6; }
   7538 if test "x$gl_cv_warn_c__Werror_unknown_warning_option" = xyes; then :
   7539   as_fn_append CFLAGS " -Werror=unknown-warning-option"
   7540 fi
   7541 
   7542 
   7543   for i in $warn_common $warn_c;
   7544   do
   7545     as_gl_Warn=`$as_echo "gl_cv_warn_c_$i" | $as_tr_sh`
   7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $i" >&5
   7547 $as_echo_n "checking whether C compiler handles $i... " >&6; }
   7548 if eval \${$as_gl_Warn+:} false; then :
   7549   $as_echo_n "(cached) " >&6
   7550 else
   7551 
   7552   gl_save_compiler_FLAGS="$CFLAGS"
   7553   as_fn_append CFLAGS " $i"
   7554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7555 /* end confdefs.h.  */
   7556 
   7557 int
   7558 main ()
   7559 {
   7560 
   7561   ;
   7562   return 0;
   7563 }
   7564 _ACEOF
   7565 if ac_fn_c_try_compile "$LINENO"; then :
   7566   eval "$as_gl_Warn=yes"
   7567 else
   7568   eval "$as_gl_Warn=no"
   7569 fi
   7570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7571   CFLAGS="$gl_save_compiler_FLAGS"
   7572 
   7573 fi
   7574 eval ac_res=\$$as_gl_Warn
   7575 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7576 $as_echo "$ac_res" >&6; }
   7577 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
   7578   as_fn_append WARN_CFLAGS " $i"
   7579 fi
   7580 
   7581 
   7582   done
   7583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
   7584 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
   7585 if ${gl_cv_warn_c__Werror+:} false; then :
   7586   $as_echo_n "(cached) " >&6
   7587 else
   7588 
   7589   gl_save_compiler_FLAGS="$CFLAGS"
   7590   as_fn_append CFLAGS " -Werror"
   7591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7592 /* end confdefs.h.  */
   7593 
   7594 int
   7595 main ()
   7596 {
   7597 
   7598   ;
   7599   return 0;
   7600 }
   7601 _ACEOF
   7602 if ac_fn_c_try_compile "$LINENO"; then :
   7603   gl_cv_warn_c__Werror=yes
   7604 else
   7605   gl_cv_warn_c__Werror=no
   7606 fi
   7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7608   CFLAGS="$gl_save_compiler_FLAGS"
   7609 
   7610 fi
   7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
   7612 $as_echo "$gl_cv_warn_c__Werror" >&6; }
   7613 if test "x$gl_cv_warn_c__Werror" = xyes; then :
   7614   as_fn_append WERROR_CFLAGS " -Werror"
   7615 fi
   7616 
   7617 
   7618 
   7619   # Warnings for the test suite, and maybe for bison if GCC is modern
   7620   # enough.
   7621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wmissing-declarations" >&5
   7622 $as_echo_n "checking whether C compiler handles -Wmissing-declarations... " >&6; }
   7623 if ${gl_cv_warn_c__Wmissing_declarations+:} false; then :
   7624   $as_echo_n "(cached) " >&6
   7625 else
   7626 
   7627   gl_save_compiler_FLAGS="$CFLAGS"
   7628   as_fn_append CFLAGS " -Wmissing-declarations"
   7629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7630 /* end confdefs.h.  */
   7631 
   7632 int
   7633 main ()
   7634 {
   7635 
   7636   ;
   7637   return 0;
   7638 }
   7639 _ACEOF
   7640 if ac_fn_c_try_compile "$LINENO"; then :
   7641   gl_cv_warn_c__Wmissing_declarations=yes
   7642 else
   7643   gl_cv_warn_c__Wmissing_declarations=no
   7644 fi
   7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7646   CFLAGS="$gl_save_compiler_FLAGS"
   7647 
   7648 fi
   7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wmissing_declarations" >&5
   7650 $as_echo "$gl_cv_warn_c__Wmissing_declarations" >&6; }
   7651 if test "x$gl_cv_warn_c__Wmissing_declarations" = xyes; then :
   7652   as_fn_append WARN_CFLAGS_TEST " -Wmissing-declarations"
   7653 fi
   7654 
   7655 
   7656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wmissing-prototypes" >&5
   7657 $as_echo_n "checking whether C compiler handles -Wmissing-prototypes... " >&6; }
   7658 if ${gl_cv_warn_c__Wmissing_prototypes+:} false; then :
   7659   $as_echo_n "(cached) " >&6
   7660 else
   7661 
   7662   gl_save_compiler_FLAGS="$CFLAGS"
   7663   as_fn_append CFLAGS " -Wmissing-prototypes"
   7664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7665 /* end confdefs.h.  */
   7666 
   7667 int
   7668 main ()
   7669 {
   7670 
   7671   ;
   7672   return 0;
   7673 }
   7674 _ACEOF
   7675 if ac_fn_c_try_compile "$LINENO"; then :
   7676   gl_cv_warn_c__Wmissing_prototypes=yes
   7677 else
   7678   gl_cv_warn_c__Wmissing_prototypes=no
   7679 fi
   7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7681   CFLAGS="$gl_save_compiler_FLAGS"
   7682 
   7683 fi
   7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wmissing_prototypes" >&5
   7685 $as_echo "$gl_cv_warn_c__Wmissing_prototypes" >&6; }
   7686 if test "x$gl_cv_warn_c__Wmissing_prototypes" = xyes; then :
   7687   as_fn_append WARN_CFLAGS_TEST " -Wmissing-prototypes"
   7688 fi
   7689 
   7690 
   7691   test $lv_cv_gcc_pragma_push_works = yes &&
   7692     as_fn_append WARN_CFLAGS " $WARN_CFLAGS_TEST"
   7693 
   7694   # Warnings for the test suite only.
   7695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wundef" >&5
   7696 $as_echo_n "checking whether C compiler handles -Wundef... " >&6; }
   7697 if ${gl_cv_warn_c__Wundef+:} false; then :
   7698   $as_echo_n "(cached) " >&6
   7699 else
   7700 
   7701   gl_save_compiler_FLAGS="$CFLAGS"
   7702   as_fn_append CFLAGS " -Wundef"
   7703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7704 /* end confdefs.h.  */
   7705 
   7706 int
   7707 main ()
   7708 {
   7709 
   7710   ;
   7711   return 0;
   7712 }
   7713 _ACEOF
   7714 if ac_fn_c_try_compile "$LINENO"; then :
   7715   gl_cv_warn_c__Wundef=yes
   7716 else
   7717   gl_cv_warn_c__Wundef=no
   7718 fi
   7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7720   CFLAGS="$gl_save_compiler_FLAGS"
   7721 
   7722 fi
   7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wundef" >&5
   7724 $as_echo "$gl_cv_warn_c__Wundef" >&6; }
   7725 if test "x$gl_cv_warn_c__Wundef" = xyes; then :
   7726   as_fn_append WARN_CFLAGS_TEST " -Wundef"
   7727 fi
   7728 
   7729 
   7730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -pedantic" >&5
   7731 $as_echo_n "checking whether C compiler handles -pedantic... " >&6; }
   7732 if ${gl_cv_warn_c__pedantic+:} false; then :
   7733   $as_echo_n "(cached) " >&6
   7734 else
   7735 
   7736   gl_save_compiler_FLAGS="$CFLAGS"
   7737   as_fn_append CFLAGS " -pedantic"
   7738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7739 /* end confdefs.h.  */
   7740 
   7741 int
   7742 main ()
   7743 {
   7744 
   7745   ;
   7746   return 0;
   7747 }
   7748 _ACEOF
   7749 if ac_fn_c_try_compile "$LINENO"; then :
   7750   gl_cv_warn_c__pedantic=yes
   7751 else
   7752   gl_cv_warn_c__pedantic=no
   7753 fi
   7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7755   CFLAGS="$gl_save_compiler_FLAGS"
   7756 
   7757 fi
   7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__pedantic" >&5
   7759 $as_echo "$gl_cv_warn_c__pedantic" >&6; }
   7760 if test "x$gl_cv_warn_c__pedantic" = xyes; then :
   7761   as_fn_append WARN_CFLAGS_TEST " -pedantic"
   7762 fi
   7763 
   7764 
   7765   CFLAGS=$save_CFLAGS
   7766   ac_ext=c
   7767 ac_cpp='$CPP $CPPFLAGS'
   7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7771 
   7772 
   7773 
   7774   ac_ext=cpp
   7775 ac_cpp='$CXXCPP $CPPFLAGS'
   7776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7779 
   7780   save_CXXFLAGS=$CXXFLAGS
   7781 
   7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Werror=unknown-warning-option" >&5
   7783 $as_echo_n "checking whether C++ compiler handles -Werror=unknown-warning-option... " >&6; }
   7784 if ${gl_cv_warn_cxx__Werror_unknown_warning_option+:} false; then :
   7785   $as_echo_n "(cached) " >&6
   7786 else
   7787 
   7788   gl_save_compiler_FLAGS="$CXXFLAGS"
   7789   as_fn_append CXXFLAGS " -Werror=unknown-warning-option"
   7790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7791 /* end confdefs.h.  */
   7792 
   7793 int
   7794 main ()
   7795 {
   7796 
   7797   ;
   7798   return 0;
   7799 }
   7800 _ACEOF
   7801 if ac_fn_cxx_try_compile "$LINENO"; then :
   7802   gl_cv_warn_cxx__Werror_unknown_warning_option=yes
   7803 else
   7804   gl_cv_warn_cxx__Werror_unknown_warning_option=no
   7805 fi
   7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7807   CXXFLAGS="$gl_save_compiler_FLAGS"
   7808 
   7809 fi
   7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror_unknown_warning_option" >&5
   7811 $as_echo "$gl_cv_warn_cxx__Werror_unknown_warning_option" >&6; }
   7812 if test "x$gl_cv_warn_cxx__Werror_unknown_warning_option" = xyes; then :
   7813   as_fn_append CXXFLAGS " -Werror=unknown-warning-option"
   7814 fi
   7815 
   7816 
   7817   for i in $warn_common $warn_cxx;
   7818   do
   7819     as_gl_Warn=`$as_echo "gl_cv_warn_cxx_$i" | $as_tr_sh`
   7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles $i" >&5
   7821 $as_echo_n "checking whether C++ compiler handles $i... " >&6; }
   7822 if eval \${$as_gl_Warn+:} false; then :
   7823   $as_echo_n "(cached) " >&6
   7824 else
   7825 
   7826   gl_save_compiler_FLAGS="$CXXFLAGS"
   7827   as_fn_append CXXFLAGS " $i"
   7828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7829 /* end confdefs.h.  */
   7830 
   7831 int
   7832 main ()
   7833 {
   7834 
   7835   ;
   7836   return 0;
   7837 }
   7838 _ACEOF
   7839 if ac_fn_cxx_try_compile "$LINENO"; then :
   7840   eval "$as_gl_Warn=yes"
   7841 else
   7842   eval "$as_gl_Warn=no"
   7843 fi
   7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7845   CXXFLAGS="$gl_save_compiler_FLAGS"
   7846 
   7847 fi
   7848 eval ac_res=\$$as_gl_Warn
   7849 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7850 $as_echo "$ac_res" >&6; }
   7851 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
   7852   as_fn_append WARN_CXXFLAGS " $i"
   7853 fi
   7854 
   7855 
   7856   done
   7857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Wzero-as-null-pointer-constant" >&5
   7858 $as_echo_n "checking whether C++ compiler handles -Wzero-as-null-pointer-constant... " >&6; }
   7859 if ${gl_cv_warn_cxx__Wzero_as_null_pointer_constant+:} false; then :
   7860   $as_echo_n "(cached) " >&6
   7861 else
   7862 
   7863   gl_save_compiler_FLAGS="$CXXFLAGS"
   7864   as_fn_append CXXFLAGS " -Wzero-as-null-pointer-constant"
   7865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7866 /* end confdefs.h.  */
   7867 
   7868 int
   7869 main ()
   7870 {
   7871 nullptr
   7872   ;
   7873   return 0;
   7874 }
   7875 _ACEOF
   7876 if ac_fn_cxx_try_compile "$LINENO"; then :
   7877   gl_cv_warn_cxx__Wzero_as_null_pointer_constant=yes
   7878 else
   7879   gl_cv_warn_cxx__Wzero_as_null_pointer_constant=no
   7880 fi
   7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7882   CXXFLAGS="$gl_save_compiler_FLAGS"
   7883 
   7884 fi
   7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Wzero_as_null_pointer_constant" >&5
   7886 $as_echo "$gl_cv_warn_cxx__Wzero_as_null_pointer_constant" >&6; }
   7887 if test "x$gl_cv_warn_cxx__Wzero_as_null_pointer_constant" = xyes; then :
   7888   as_fn_append WARN_CXXFLAGS " -Wzero-as-null-pointer-constant"
   7889 fi
   7890 
   7891 
   7892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Werror" >&5
   7893 $as_echo_n "checking whether C++ compiler handles -Werror... " >&6; }
   7894 if ${gl_cv_warn_cxx__Werror+:} false; then :
   7895   $as_echo_n "(cached) " >&6
   7896 else
   7897 
   7898   gl_save_compiler_FLAGS="$CXXFLAGS"
   7899   as_fn_append CXXFLAGS " -Werror"
   7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7901 /* end confdefs.h.  */
   7902 
   7903 int
   7904 main ()
   7905 {
   7906 
   7907   ;
   7908   return 0;
   7909 }
   7910 _ACEOF
   7911 if ac_fn_cxx_try_compile "$LINENO"; then :
   7912   gl_cv_warn_cxx__Werror=yes
   7913 else
   7914   gl_cv_warn_cxx__Werror=no
   7915 fi
   7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7917   CXXFLAGS="$gl_save_compiler_FLAGS"
   7918 
   7919 fi
   7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror" >&5
   7921 $as_echo "$gl_cv_warn_cxx__Werror" >&6; }
   7922 if test "x$gl_cv_warn_cxx__Werror" = xyes; then :
   7923   as_fn_append WERROR_CXXFLAGS " -Werror"
   7924 fi
   7925 
   7926 
   7927   # Warnings for the test suite only.
   7928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Wundef" >&5
   7929 $as_echo_n "checking whether C++ compiler handles -Wundef... " >&6; }
   7930 if ${gl_cv_warn_cxx__Wundef+:} false; then :
   7931   $as_echo_n "(cached) " >&6
   7932 else
   7933 
   7934   gl_save_compiler_FLAGS="$CXXFLAGS"
   7935   as_fn_append CXXFLAGS " -Wundef"
   7936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7937 /* end confdefs.h.  */
   7938 
   7939 int
   7940 main ()
   7941 {
   7942 
   7943   ;
   7944   return 0;
   7945 }
   7946 _ACEOF
   7947 if ac_fn_cxx_try_compile "$LINENO"; then :
   7948   gl_cv_warn_cxx__Wundef=yes
   7949 else
   7950   gl_cv_warn_cxx__Wundef=no
   7951 fi
   7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7953   CXXFLAGS="$gl_save_compiler_FLAGS"
   7954 
   7955 fi
   7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Wundef" >&5
   7957 $as_echo "$gl_cv_warn_cxx__Wundef" >&6; }
   7958 if test "x$gl_cv_warn_cxx__Wundef" = xyes; then :
   7959   as_fn_append WARN_CXXFLAGS_TEST " -Wundef"
   7960 fi
   7961 
   7962 
   7963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -pedantic" >&5
   7964 $as_echo_n "checking whether C++ compiler handles -pedantic... " >&6; }
   7965 if ${gl_cv_warn_cxx__pedantic+:} false; then :
   7966   $as_echo_n "(cached) " >&6
   7967 else
   7968 
   7969   gl_save_compiler_FLAGS="$CXXFLAGS"
   7970   as_fn_append CXXFLAGS " -pedantic"
   7971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7972 /* end confdefs.h.  */
   7973 
   7974 int
   7975 main ()
   7976 {
   7977 
   7978   ;
   7979   return 0;
   7980 }
   7981 _ACEOF
   7982 if ac_fn_cxx_try_compile "$LINENO"; then :
   7983   gl_cv_warn_cxx__pedantic=yes
   7984 else
   7985   gl_cv_warn_cxx__pedantic=no
   7986 fi
   7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7988   CXXFLAGS="$gl_save_compiler_FLAGS"
   7989 
   7990 fi
   7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__pedantic" >&5
   7992 $as_echo "$gl_cv_warn_cxx__pedantic" >&6; }
   7993 if test "x$gl_cv_warn_cxx__pedantic" = xyes; then :
   7994   as_fn_append WARN_CXXFLAGS_TEST " -pedantic"
   7995 fi
   7996 
   7997 
   7998   CXXFLAGS=$save_CXXFLAGS
   7999   ac_ext=c
   8000 ac_cpp='$CPP $CPPFLAGS'
   8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8004 
   8005 fi
   8006 
   8007 
   8008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8009 /* end confdefs.h.  */
   8010 #include <limits.h>
   8011 	 int test_array[CHAR_BIT];
   8012 int
   8013 main ()
   8014 {
   8015 
   8016   ;
   8017   return 0;
   8018 }
   8019 _ACEOF
   8020 if ac_fn_c_try_compile "$LINENO"; then :
   8021 
   8022 else
   8023   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8025 as_fn_error $? "cannot compile a simple C program
   8026 See \`config.log' for more details" "$LINENO" 5; }
   8027 fi
   8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8029    BISON_C_WORKS=:
   8030 
   8031 
   8032 ac_ext=c
   8033 ac_cpp='$CPP $CPPFLAGS'
   8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8037 
   8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports POSIXLY_CORRECT=1" >&5
   8039 $as_echo_n "checking whether $CC supports POSIXLY_CORRECT=1... " >&6; }
   8040 if ${bison_cv_c_supports_posixly_correct+:} false; then :
   8041   $as_echo_n "(cached) " >&6
   8042 else
   8043   gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
   8044 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
   8045   xx) gl_had_POSIXLY_CORRECT=exported ;;
   8046   x)  gl_had_POSIXLY_CORRECT=yes      ;;
   8047   *)  gl_had_POSIXLY_CORRECT=         ;;
   8048 esac
   8049 POSIXLY_CORRECT=1
   8050 export POSIXLY_CORRECT
   8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8052 /* end confdefs.h.  */
   8053 
   8054 int
   8055 main ()
   8056 {
   8057 
   8058   ;
   8059   return 0;
   8060 }
   8061 _ACEOF
   8062 if ac_fn_c_try_link "$LINENO"; then :
   8063   bison_cv_c_supports_posixly_correct=yes
   8064 else
   8065   bison_cv_c_supports_posixly_correct=no
   8066 fi
   8067 rm -f core conftest.err conftest.$ac_objext \
   8068     conftest$ac_exeext conftest.$ac_ext
   8069 case $gl_had_POSIXLY_CORRECT in
   8070   exported) ;;
   8071   yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
   8072   *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
   8073 esac
   8074 
   8075 fi
   8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_cv_c_supports_posixly_correct" >&5
   8077 $as_echo "$bison_cv_c_supports_posixly_correct" >&6; }
   8078 case $bison_cv_c_supports_posixly_correct in
   8079   yes) C_COMPILER_POSIXLY_CORRECT=true
   8080  ;;
   8081   no)  C_COMPILER_POSIXLY_CORRECT=false
   8082 ;;
   8083 esac
   8084 
   8085 ac_ext=c
   8086 ac_cpp='$CPP $CPPFLAGS'
   8087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8090 
   8091 
   8092 
   8093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX builds executables that work" >&5
   8094 $as_echo_n "checking whether $CXX builds executables that work... " >&6; }
   8095 if ${bison_cv_cxx_works+:} false; then :
   8096   $as_echo_n "(cached) " >&6
   8097 else
   8098   ac_ext=cpp
   8099 ac_cpp='$CXXCPP $CPPFLAGS'
   8100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8103 
   8104     bison_cv_cxx_works=no
   8105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8106 /* end confdefs.h.  */
   8107 #include <cstdlib>
   8108 	  #include <iostream>
   8109 	  #include <map>
   8110 	  #include <string>
   8111 	  using namespace std;
   8112 int
   8113 main ()
   8114 {
   8115 std::cerr << "";
   8116           cout << "";
   8117 	  typedef std::pair<unsigned int, int> uipair;
   8118 	  std::map<unsigned int, int> m;
   8119 	  std::map<unsigned int, int>::iterator i;
   8120 	  m.insert (uipair (4, -4));
   8121 	  for (i = m.begin (); i != m.end (); ++i)
   8122 	    if (i->first != 4)
   8123 	      return 1;
   8124   ;
   8125   return 0;
   8126 }
   8127 _ACEOF
   8128 if ac_fn_cxx_try_compile "$LINENO"; then :
   8129   if { ac_try='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_objext $LIBS >&5'
   8130   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   8131   (eval $ac_try) 2>&5
   8132   ac_status=$?
   8133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8134   test $ac_status = 0; }; }; then :
   8135   if test "$cross_compiling" = yes; then :
   8136   bison_cv_cxx_works=cross
   8137 else
   8138   if { ac_try='./conftest$ac_exeext'
   8139   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   8140   (eval $ac_try) 2>&5
   8141   ac_status=$?
   8142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8143   test $ac_status = 0; }; }; then :
   8144   bison_cv_cxx_works=yes
   8145 fi
   8146 fi
   8147 fi
   8148        rm -f conftest$ac_exeext
   8149 fi
   8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8151     ac_ext=c
   8152 ac_cpp='$CPP $CPPFLAGS'
   8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8156 
   8157 fi
   8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_cv_cxx_works" >&5
   8159 $as_echo "$bison_cv_cxx_works" >&6; }
   8160 
   8161  case $bison_cv_cxx_works in
   8162  yes)
   8163     BISON_CXX_WORKS=':';;
   8164  no | cross)
   8165     BISON_CXX_WORKS='exit 77';;
   8166  esac
   8167 
   8168 
   8169   if test $bison_cv_cxx_works = yes; then
   8170   BISON_CXX_WORKS_TRUE=
   8171   BISON_CXX_WORKS_FALSE='#'
   8172 else
   8173   BISON_CXX_WORKS_TRUE='#'
   8174   BISON_CXX_WORKS_FALSE=
   8175 fi
   8176 
   8177 
   8178 ac_ext=cpp
   8179 ac_cpp='$CXXCPP $CPPFLAGS'
   8180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8183 
   8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports POSIXLY_CORRECT=1" >&5
   8185 $as_echo_n "checking whether $CXX supports POSIXLY_CORRECT=1... " >&6; }
   8186 if ${bison_cv_cxx_supports_posixly_correct+:} false; then :
   8187   $as_echo_n "(cached) " >&6
   8188 else
   8189   gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
   8190 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
   8191   xx) gl_had_POSIXLY_CORRECT=exported ;;
   8192   x)  gl_had_POSIXLY_CORRECT=yes      ;;
   8193   *)  gl_had_POSIXLY_CORRECT=         ;;
   8194 esac
   8195 POSIXLY_CORRECT=1
   8196 export POSIXLY_CORRECT
   8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8198 /* end confdefs.h.  */
   8199 
   8200 int
   8201 main ()
   8202 {
   8203 
   8204   ;
   8205   return 0;
   8206 }
   8207 _ACEOF
   8208 if ac_fn_cxx_try_link "$LINENO"; then :
   8209   bison_cv_cxx_supports_posixly_correct=yes
   8210 else
   8211   bison_cv_cxx_supports_posixly_correct=no
   8212 fi
   8213 rm -f core conftest.err conftest.$ac_objext \
   8214     conftest$ac_exeext conftest.$ac_ext
   8215 case $gl_had_POSIXLY_CORRECT in
   8216   exported) ;;
   8217   yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
   8218   *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
   8219 esac
   8220 
   8221 fi
   8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_cv_cxx_supports_posixly_correct" >&5
   8223 $as_echo "$bison_cv_cxx_supports_posixly_correct" >&6; }
   8224 case $bison_cv_cxx_supports_posixly_correct in
   8225   yes) CXX_COMPILER_POSIXLY_CORRECT=true
   8226  ;;
   8227   no)  CXX_COMPILER_POSIXLY_CORRECT=false
   8228 ;;
   8229 esac
   8230 
   8231 ac_ext=c
   8232 ac_cpp='$CPP $CPPFLAGS'
   8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8236 
   8237 
   8238 
   8239 # Check whether --enable-yacc was given.
   8240 if test "${enable_yacc+set}" = set; then :
   8241   enableval=$enable_yacc;
   8242 else
   8243   enable_yacc=yes
   8244 fi
   8245 
   8246 case $enable_yacc in
   8247 yes)
   8248   YACC_SCRIPT=yacc
   8249   YACC_LIBRARY=liby.a;;
   8250 *)
   8251   YACC_SCRIPT=
   8252   YACC_LIBRARY=;;
   8253 esac
   8254 
   8255 
   8256 
   8257 # Checks for programs.
   8258 
   8259 DOT=${DOT-"${am_missing_run}dot"}
   8260 
   8261 for ac_prog in flex lex
   8262 do
   8263   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8264 set dummy $ac_prog; ac_word=$2
   8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8266 $as_echo_n "checking for $ac_word... " >&6; }
   8267 if ${ac_cv_prog_LEX+:} false; then :
   8268   $as_echo_n "(cached) " >&6
   8269 else
   8270   if test -n "$LEX"; then
   8271   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   8272 else
   8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8274 for as_dir in $PATH
   8275 do
   8276   IFS=$as_save_IFS
   8277   test -z "$as_dir" && as_dir=.
   8278     for ac_exec_ext in '' $ac_executable_extensions; do
   8279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8280     ac_cv_prog_LEX="$ac_prog"
   8281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8282     break 2
   8283   fi
   8284 done
   8285   done
   8286 IFS=$as_save_IFS
   8287 
   8288 fi
   8289 fi
   8290 LEX=$ac_cv_prog_LEX
   8291 if test -n "$LEX"; then
   8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   8293 $as_echo "$LEX" >&6; }
   8294 else
   8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8296 $as_echo "no" >&6; }
   8297 fi
   8298 
   8299 
   8300   test -n "$LEX" && break
   8301 done
   8302 test -n "$LEX" || LEX=":"
   8303 
   8304 if test "x$LEX" != "x:"; then
   8305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is flex" >&5
   8306 $as_echo_n "checking whether lex is flex... " >&6; }
   8307 if ${ac_cv_prog_lex_is_flex+:} false; then :
   8308   $as_echo_n "(cached) " >&6
   8309 else
   8310   cat >conftest.l <<_ACEOF
   8311 %option debug nodefault noinput nounput noyywrap never-interactive
   8312 %x SC_CONF_TEST
   8313 %%
   8314 a { BEGIN SC_CONF_TEST; }
   8315 _ACEOF
   8316 if { { ac_try="$LEX conftest.l"
   8317 case "(($ac_try" in
   8318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8319   *) ac_try_echo=$ac_try;;
   8320 esac
   8321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   8322 $as_echo "$ac_try_echo"; } >&5
   8323   (eval "$LEX conftest.l") 2>&5
   8324   ac_status=$?
   8325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8326   test $ac_status = 0; }; then
   8327   ac_cv_prog_lex_is_flex=yes
   8328 else
   8329   ac_cv_prog_lex_is_flex=no
   8330 fi
   8331 
   8332 fi
   8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_is_flex" >&5
   8334 $as_echo "$ac_cv_prog_lex_is_flex" >&6; }
   8335 LEX_IS_FLEX=`test "$ac_cv_prog_lex_is_flex" = yes && echo true || echo false`
   8336 
   8337 cat >conftest.l <<_ACEOF
   8338 %%
   8339 a { ECHO; }
   8340 b { REJECT; }
   8341 c { yymore (); }
   8342 d { yyless (1); }
   8343 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
   8344     yyless ((input () != 0)); }
   8345 f { unput (yytext[0]); }
   8346 . { BEGIN INITIAL; }
   8347 %%
   8348 #ifdef YYTEXT_POINTER
   8349 extern char *yytext;
   8350 #endif
   8351 int
   8352 main (void)
   8353 {
   8354   return ! yylex () + ! yywrap ();
   8355 }
   8356 _ACEOF
   8357 { { ac_try="$LEX conftest.l"
   8358 case "(($ac_try" in
   8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8360   *) ac_try_echo=$ac_try;;
   8361 esac
   8362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   8363 $as_echo "$ac_try_echo"; } >&5
   8364   (eval "$LEX conftest.l") 2>&5
   8365   ac_status=$?
   8366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8367   test $ac_status = 0; }
   8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
   8369 $as_echo_n "checking lex output file root... " >&6; }
   8370 if ${ac_cv_prog_lex_root+:} false; then :
   8371   $as_echo_n "(cached) " >&6
   8372 else
   8373 
   8374 if test -f lex.yy.c; then
   8375   ac_cv_prog_lex_root=lex.yy
   8376 elif test -f lexyy.c; then
   8377   ac_cv_prog_lex_root=lexyy
   8378 else
   8379   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
   8380 fi
   8381 fi
   8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
   8383 $as_echo "$ac_cv_prog_lex_root" >&6; }
   8384 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
   8385 
   8386 if test -z "${LEXLIB+set}"; then
   8387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
   8388 $as_echo_n "checking lex library... " >&6; }
   8389 if ${ac_cv_lib_lex+:} false; then :
   8390   $as_echo_n "(cached) " >&6
   8391 else
   8392 
   8393     ac_save_LIBS=$LIBS
   8394     ac_cv_lib_lex='none needed'
   8395     for ac_lib in '' -lfl -ll; do
   8396       LIBS="$ac_lib $ac_save_LIBS"
   8397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8398 /* end confdefs.h.  */
   8399 `cat $LEX_OUTPUT_ROOT.c`
   8400 _ACEOF
   8401 if ac_fn_c_try_link "$LINENO"; then :
   8402   ac_cv_lib_lex=$ac_lib
   8403 fi
   8404 rm -f core conftest.err conftest.$ac_objext \
   8405     conftest$ac_exeext conftest.$ac_ext
   8406       test "$ac_cv_lib_lex" != 'none needed' && break
   8407     done
   8408     LIBS=$ac_save_LIBS
   8409 
   8410 fi
   8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
   8412 $as_echo "$ac_cv_lib_lex" >&6; }
   8413   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
   8414 fi
   8415 
   8416 
   8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
   8418 $as_echo_n "checking whether yytext is a pointer... " >&6; }
   8419 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
   8420   $as_echo_n "(cached) " >&6
   8421 else
   8422   # POSIX says lex can declare yytext either as a pointer or an array; the
   8423 # default is implementation-dependent.  Figure out which it is, since
   8424 # not all implementations provide the %pointer and %array declarations.
   8425 ac_cv_prog_lex_yytext_pointer=no
   8426 ac_save_LIBS=$LIBS
   8427 LIBS="$LEXLIB $ac_save_LIBS"
   8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8429 /* end confdefs.h.  */
   8430 
   8431   #define YYTEXT_POINTER 1
   8432 `cat $LEX_OUTPUT_ROOT.c`
   8433 _ACEOF
   8434 if ac_fn_c_try_link "$LINENO"; then :
   8435   ac_cv_prog_lex_yytext_pointer=yes
   8436 fi
   8437 rm -f core conftest.err conftest.$ac_objext \
   8438     conftest$ac_exeext conftest.$ac_ext
   8439 LIBS=$ac_save_LIBS
   8440 
   8441 fi
   8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
   8443 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
   8444 if test $ac_cv_prog_lex_yytext_pointer = yes; then
   8445 
   8446 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
   8447 
   8448 fi
   8449 rm -f conftest.l $LEX_OUTPUT_ROOT.c
   8450 
   8451 fi
   8452 $LEX_IS_FLEX || as_fn_error $? "Flex is required" "$LINENO" 5
   8453 for ac_prog in 'bison -y' byacc
   8454 do
   8455   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8456 set dummy $ac_prog; ac_word=$2
   8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8458 $as_echo_n "checking for $ac_word... " >&6; }
   8459 if ${ac_cv_prog_YACC+:} false; then :
   8460   $as_echo_n "(cached) " >&6
   8461 else
   8462   if test -n "$YACC"; then
   8463   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   8464 else
   8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8466 for as_dir in $PATH
   8467 do
   8468   IFS=$as_save_IFS
   8469   test -z "$as_dir" && as_dir=.
   8470     for ac_exec_ext in '' $ac_executable_extensions; do
   8471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8472     ac_cv_prog_YACC="$ac_prog"
   8473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8474     break 2
   8475   fi
   8476 done
   8477   done
   8478 IFS=$as_save_IFS
   8479 
   8480 fi
   8481 fi
   8482 YACC=$ac_cv_prog_YACC
   8483 if test -n "$YACC"; then
   8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   8485 $as_echo "$YACC" >&6; }
   8486 else
   8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8488 $as_echo "no" >&6; }
   8489 fi
   8490 
   8491 
   8492   test -n "$YACC" && break
   8493 done
   8494 test -n "$YACC" || YACC="yacc"
   8495 
   8496 if test -n "$ac_tool_prefix"; then
   8497   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8500 $as_echo_n "checking for $ac_word... " >&6; }
   8501 if ${ac_cv_prog_RANLIB+:} false; then :
   8502   $as_echo_n "(cached) " >&6
   8503 else
   8504   if test -n "$RANLIB"; then
   8505   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8506 else
   8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8508 for as_dir in $PATH
   8509 do
   8510   IFS=$as_save_IFS
   8511   test -z "$as_dir" && as_dir=.
   8512     for ac_exec_ext in '' $ac_executable_extensions; do
   8513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8514     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8516     break 2
   8517   fi
   8518 done
   8519   done
   8520 IFS=$as_save_IFS
   8521 
   8522 fi
   8523 fi
   8524 RANLIB=$ac_cv_prog_RANLIB
   8525 if test -n "$RANLIB"; then
   8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8527 $as_echo "$RANLIB" >&6; }
   8528 else
   8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8530 $as_echo "no" >&6; }
   8531 fi
   8532 
   8533 
   8534 fi
   8535 if test -z "$ac_cv_prog_RANLIB"; then
   8536   ac_ct_RANLIB=$RANLIB
   8537   # Extract the first word of "ranlib", so it can be a program name with args.
   8538 set dummy ranlib; ac_word=$2
   8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8540 $as_echo_n "checking for $ac_word... " >&6; }
   8541 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   8542   $as_echo_n "(cached) " >&6
   8543 else
   8544   if test -n "$ac_ct_RANLIB"; then
   8545   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8546 else
   8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8548 for as_dir in $PATH
   8549 do
   8550   IFS=$as_save_IFS
   8551   test -z "$as_dir" && as_dir=.
   8552     for ac_exec_ext in '' $ac_executable_extensions; do
   8553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8554     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8556     break 2
   8557   fi
   8558 done
   8559   done
   8560 IFS=$as_save_IFS
   8561 
   8562 fi
   8563 fi
   8564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8565 if test -n "$ac_ct_RANLIB"; then
   8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8567 $as_echo "$ac_ct_RANLIB" >&6; }
   8568 else
   8569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8570 $as_echo "no" >&6; }
   8571 fi
   8572 
   8573   if test "x$ac_ct_RANLIB" = x; then
   8574     RANLIB=":"
   8575   else
   8576     case $cross_compiling:$ac_tool_warned in
   8577 yes:)
   8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8580 ac_tool_warned=yes ;;
   8581 esac
   8582     RANLIB=$ac_ct_RANLIB
   8583   fi
   8584 else
   8585   RANLIB="$ac_cv_prog_RANLIB"
   8586 fi
   8587 
   8588 
   8589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU M4 that supports accurate traces" >&5
   8590 $as_echo_n "checking for GNU M4 that supports accurate traces... " >&6; }
   8591 if ${ac_cv_path_M4+:} false; then :
   8592   $as_echo_n "(cached) " >&6
   8593 else
   8594   rm -f conftest.m4f
   8595 ac_had_posixly_correct=${POSIXLY_CORRECT:+yes}
   8596 { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}
   8597 if test -z "$M4"; then
   8598   ac_path_M4_found=false
   8599   # Loop through the user's path and test for each of PROGNAME-LIST
   8600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8601 for as_dir in $PATH
   8602 do
   8603   IFS=$as_save_IFS
   8604   test -z "$as_dir" && as_dir=.
   8605     for ac_prog in m4 gm4 gnum4; do
   8606     for ac_exec_ext in '' $ac_executable_extensions; do
   8607       ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
   8608       as_fn_executable_p "$ac_path_M4" || continue
   8609       # Root out GNU M4 1.4.5, as well as non-GNU m4 that ignore -t, -F.
   8610       # Root out GNU M4 1.4.15 with buggy false negative replacement strstr.
   8611       # Root out Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 with buggy
   8612       # false positive strstr.
   8613       ac_snippet=change'quote(<,>)in''dir(<if''def>,mac,bug)'
   8614       ac_snippet=${ac_snippet}pat'subst(a,\(b\)\|\(a\),\1)d'nl
   8615       ac_snippet=${ac_snippet}${as_nl}if'else(in''dex(..wi.d.,.d.),-1,bug)'
   8616       ac_snippet=${ac_snippet}${as_nl}if'else(in''dex(;:11-:12-:12-:12-:12-:12-:12-:12-:12.:12.:12.:12.:12.:12.:12.:12.:12-,:12-:12-:12-:12-:12-:12-:12-:12-),-1,,strstr-bug2)'
   8617       test -z "`$ac_path_M4 -F conftest.m4f </dev/null 2>&1`" \
   8618       && test -z "`$as_echo $ac_snippet | $ac_path_M4 --trace=mac 2>&1`" \
   8619       && test -f conftest.m4f \
   8620       && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
   8621       rm -f conftest.m4f
   8622       $ac_path_M4_found && break 3
   8623     done
   8624   done
   8625   done
   8626 IFS=$as_save_IFS
   8627   if test -z "$ac_cv_path_M4"; then
   8628     as_fn_error $? "no acceptable m4 could be found in \$PATH.
   8629 GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
   8630 GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
   8631 Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug." "$LINENO" 5
   8632   fi
   8633 else
   8634   ac_cv_path_M4=$M4
   8635 fi
   8636 
   8637 fi
   8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
   8639 $as_echo "$ac_cv_path_M4" >&6; }
   8640   M4=$ac_cv_path_M4
   8641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_cv_path_M4 accepts --gnu" >&5
   8642 $as_echo_n "checking whether $ac_cv_path_M4 accepts --gnu... " >&6; }
   8643 if ${ac_cv_prog_gnu_m4_gnu+:} false; then :
   8644   $as_echo_n "(cached) " >&6
   8645 else
   8646   case `$M4 --help < /dev/null 2>&1` in
   8647       *--gnu*) ac_cv_prog_gnu_m4_gnu=yes ;;
   8648       *) ac_cv_prog_gnu_m4_gnu=no ;;
   8649     esac
   8650 fi
   8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_m4_gnu" >&5
   8652 $as_echo "$ac_cv_prog_gnu_m4_gnu" >&6; }
   8653   if test "$ac_cv_prog_gnu_m4_gnu" = yes; then
   8654     M4_GNU=--gnu
   8655   else
   8656     M4_GNU=
   8657   fi
   8658 
   8659   if test x$ac_had_posixly_correct = xyes; then
   8660     POSIXLY_CORRECT=:
   8661     if test $ac_cv_prog_gnu_m4_gnu = no; then
   8662       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the version of M4 that was found does not support -g" >&5
   8663 $as_echo "$as_me: WARNING: the version of M4 that was found does not support -g" >&2;}
   8664       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using it with POSIXLY_CORRECT set may cause problems" >&5
   8665 $as_echo "$as_me: WARNING: using it with POSIXLY_CORRECT set may cause problems" >&2;}
   8666     fi
   8667   fi
   8668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how m4 supports trace files" >&5
   8669 $as_echo_n "checking how m4 supports trace files... " >&6; }
   8670 if ${ac_cv_prog_gnu_m4_debugfile+:} false; then :
   8671   $as_echo_n "(cached) " >&6
   8672 else
   8673   case `$M4 --help < /dev/null 2>&1` in
   8674       *debugfile*) ac_cv_prog_gnu_m4_debugfile=--debugfile ;;
   8675       *) ac_cv_prog_gnu_m4_debugfile=--error-output ;;
   8676     esac
   8677 fi
   8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_m4_debugfile" >&5
   8679 $as_echo "$ac_cv_prog_gnu_m4_debugfile" >&6; }
   8680   M4_DEBUGFILE=$ac_cv_prog_gnu_m4_debugfile
   8681 
   8682 
   8683 
   8684 cat >>confdefs.h <<_ACEOF
   8685 #define M4 "$M4"
   8686 _ACEOF
   8687 
   8688 
   8689 cat >>confdefs.h <<_ACEOF
   8690 #define M4_GNU_OPTION "$M4_GNU"
   8691 _ACEOF
   8692 
   8693 # Extract the first word of "perl", so it can be a program name with args.
   8694 set dummy perl; ac_word=$2
   8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8696 $as_echo_n "checking for $ac_word... " >&6; }
   8697 if ${ac_cv_path_PERL+:} false; then :
   8698   $as_echo_n "(cached) " >&6
   8699 else
   8700   case $PERL in
   8701   [\\/]* | ?:[\\/]*)
   8702   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   8703   ;;
   8704   *)
   8705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8706 for as_dir in $PATH
   8707 do
   8708   IFS=$as_save_IFS
   8709   test -z "$as_dir" && as_dir=.
   8710     for ac_exec_ext in '' $ac_executable_extensions; do
   8711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8712     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   8713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8714     break 2
   8715   fi
   8716 done
   8717   done
   8718 IFS=$as_save_IFS
   8719 
   8720   ;;
   8721 esac
   8722 fi
   8723 PERL=$ac_cv_path_PERL
   8724 if test -n "$PERL"; then
   8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   8726 $as_echo "$PERL" >&6; }
   8727 else
   8728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8729 $as_echo "no" >&6; }
   8730 fi
   8731 
   8732 
   8733 if test -z "$PERL"; then
   8734    as_fn_error $? "perl not found" "$LINENO" 5
   8735 fi
   8736 
   8737 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
   8738 
   8739 # Extract the first word of "xsltproc", so it can be a program name with args.
   8740 set dummy xsltproc; ac_word=$2
   8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8742 $as_echo_n "checking for $ac_word... " >&6; }
   8743 if ${ac_cv_path_XSLTPROC+:} false; then :
   8744   $as_echo_n "(cached) " >&6
   8745 else
   8746   case $XSLTPROC in
   8747   [\\/]* | ?:[\\/]*)
   8748   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   8749   ;;
   8750   *)
   8751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8752 for as_dir in $PATH
   8753 do
   8754   IFS=$as_save_IFS
   8755   test -z "$as_dir" && as_dir=.
   8756     for ac_exec_ext in '' $ac_executable_extensions; do
   8757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8758     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   8759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8760     break 2
   8761   fi
   8762 done
   8763   done
   8764 IFS=$as_save_IFS
   8765 
   8766   ;;
   8767 esac
   8768 fi
   8769 XSLTPROC=$ac_cv_path_XSLTPROC
   8770 if test -n "$XSLTPROC"; then
   8771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   8772 $as_echo "$XSLTPROC" >&6; }
   8773 else
   8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8775 $as_echo "no" >&6; }
   8776 fi
   8777 
   8778 
   8779 
   8780 
   8781 # Checks for header files.
   8782 
   8783 
   8784 
   8785   for ac_header in $ac_header_list
   8786 do :
   8787   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8788 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   8789 "
   8790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   8791   cat >>confdefs.h <<_ACEOF
   8792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8793 _ACEOF
   8794 
   8795 fi
   8796 
   8797 done
   8798 
   8799 
   8800 
   8801 
   8802 
   8803 # Checks for compiler characteristics.
   8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   8805 $as_echo_n "checking for inline... " >&6; }
   8806 if ${ac_cv_c_inline+:} false; then :
   8807   $as_echo_n "(cached) " >&6
   8808 else
   8809   ac_cv_c_inline=no
   8810 for ac_kw in inline __inline__ __inline; do
   8811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8812 /* end confdefs.h.  */
   8813 #ifndef __cplusplus
   8814 typedef int foo_t;
   8815 static $ac_kw foo_t static_foo () {return 0; }
   8816 $ac_kw foo_t foo () {return 0; }
   8817 #endif
   8818 
   8819 _ACEOF
   8820 if ac_fn_c_try_compile "$LINENO"; then :
   8821   ac_cv_c_inline=$ac_kw
   8822 fi
   8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8824   test "$ac_cv_c_inline" != no && break
   8825 done
   8826 
   8827 fi
   8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   8829 $as_echo "$ac_cv_c_inline" >&6; }
   8830 
   8831 case $ac_cv_c_inline in
   8832   inline | yes) ;;
   8833   *)
   8834     case $ac_cv_c_inline in
   8835       no) ac_val=;;
   8836       *) ac_val=$ac_cv_c_inline;;
   8837     esac
   8838     cat >>confdefs.h <<_ACEOF
   8839 #ifndef __cplusplus
   8840 #define inline $ac_val
   8841 #endif
   8842 _ACEOF
   8843     ;;
   8844 esac
   8845 
   8846 
   8847 # Gnulib (later checks).  Putting them here rather than right after
   8848 # gl_EARLY avoids some redundant checks.
   8849 
   8850 
   8851 
   8852 
   8853 
   8854           LIBC_FATAL_STDERR_=1
   8855   export LIBC_FATAL_STDERR_
   8856 
   8857 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   8858 if test "x$ac_cv_type_size_t" = xyes; then :
   8859 
   8860 else
   8861 
   8862 cat >>confdefs.h <<_ACEOF
   8863 #define size_t unsigned int
   8864 _ACEOF
   8865 
   8866 fi
   8867 
   8868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   8869 # for constant arguments.  Useless!
   8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   8871 $as_echo_n "checking for working alloca.h... " >&6; }
   8872 if ${ac_cv_working_alloca_h+:} false; then :
   8873   $as_echo_n "(cached) " >&6
   8874 else
   8875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8876 /* end confdefs.h.  */
   8877 #include <alloca.h>
   8878 int
   8879 main ()
   8880 {
   8881 char *p = (char *) alloca (2 * sizeof (int));
   8882 			  if (p) return 0;
   8883   ;
   8884   return 0;
   8885 }
   8886 _ACEOF
   8887 if ac_fn_c_try_link "$LINENO"; then :
   8888   ac_cv_working_alloca_h=yes
   8889 else
   8890   ac_cv_working_alloca_h=no
   8891 fi
   8892 rm -f core conftest.err conftest.$ac_objext \
   8893     conftest$ac_exeext conftest.$ac_ext
   8894 fi
   8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   8896 $as_echo "$ac_cv_working_alloca_h" >&6; }
   8897 if test $ac_cv_working_alloca_h = yes; then
   8898 
   8899 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   8900 
   8901 fi
   8902 
   8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   8904 $as_echo_n "checking for alloca... " >&6; }
   8905 if ${ac_cv_func_alloca_works+:} false; then :
   8906   $as_echo_n "(cached) " >&6
   8907 else
   8908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8909 /* end confdefs.h.  */
   8910 #ifdef __GNUC__
   8911 # define alloca __builtin_alloca
   8912 #else
   8913 # ifdef _MSC_VER
   8914 #  include <malloc.h>
   8915 #  define alloca _alloca
   8916 # else
   8917 #  ifdef HAVE_ALLOCA_H
   8918 #   include <alloca.h>
   8919 #  else
   8920 #   ifdef _AIX
   8921  #pragma alloca
   8922 #   else
   8923 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   8924 void *alloca (size_t);
   8925 #    endif
   8926 #   endif
   8927 #  endif
   8928 # endif
   8929 #endif
   8930 
   8931 int
   8932 main ()
   8933 {
   8934 char *p = (char *) alloca (1);
   8935 				    if (p) return 0;
   8936   ;
   8937   return 0;
   8938 }
   8939 _ACEOF
   8940 if ac_fn_c_try_link "$LINENO"; then :
   8941   ac_cv_func_alloca_works=yes
   8942 else
   8943   ac_cv_func_alloca_works=no
   8944 fi
   8945 rm -f core conftest.err conftest.$ac_objext \
   8946     conftest$ac_exeext conftest.$ac_ext
   8947 fi
   8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   8949 $as_echo "$ac_cv_func_alloca_works" >&6; }
   8950 
   8951 if test $ac_cv_func_alloca_works = yes; then
   8952 
   8953 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   8954 
   8955 else
   8956   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   8957 # that cause trouble.  Some versions do not even contain alloca or
   8958 # contain a buggy version.  If you still want to use their alloca,
   8959 # use ar to extract alloca.o from them instead of compiling alloca.c.
   8960 
   8961 
   8962 
   8963 
   8964 
   8965 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   8966 
   8967 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   8968 
   8969 
   8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   8971 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   8972 if ${ac_cv_os_cray+:} false; then :
   8973   $as_echo_n "(cached) " >&6
   8974 else
   8975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8976 /* end confdefs.h.  */
   8977 #if defined CRAY && ! defined CRAY2
   8978 webecray
   8979 #else
   8980 wenotbecray
   8981 #endif
   8982 
   8983 _ACEOF
   8984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8985   $EGREP "webecray" >/dev/null 2>&1; then :
   8986   ac_cv_os_cray=yes
   8987 else
   8988   ac_cv_os_cray=no
   8989 fi
   8990 rm -f conftest*
   8991 
   8992 fi
   8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   8994 $as_echo "$ac_cv_os_cray" >&6; }
   8995 if test $ac_cv_os_cray = yes; then
   8996   for ac_func in _getb67 GETB67 getb67; do
   8997     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   8999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   9000 
   9001 cat >>confdefs.h <<_ACEOF
   9002 #define CRAY_STACKSEG_END $ac_func
   9003 _ACEOF
   9004 
   9005     break
   9006 fi
   9007 
   9008   done
   9009 fi
   9010 
   9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   9012 $as_echo_n "checking stack direction for C alloca... " >&6; }
   9013 if ${ac_cv_c_stack_direction+:} false; then :
   9014   $as_echo_n "(cached) " >&6
   9015 else
   9016   if test "$cross_compiling" = yes; then :
   9017   ac_cv_c_stack_direction=0
   9018 else
   9019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9020 /* end confdefs.h.  */
   9021 $ac_includes_default
   9022 int
   9023 find_stack_direction (int *addr, int depth)
   9024 {
   9025   int dir, dummy = 0;
   9026   if (! addr)
   9027     addr = &dummy;
   9028   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
   9029   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
   9030   return dir + dummy;
   9031 }
   9032 
   9033 int
   9034 main (int argc, char **argv)
   9035 {
   9036   return find_stack_direction (0, argc + !argv + 20) < 0;
   9037 }
   9038 _ACEOF
   9039 if ac_fn_c_try_run "$LINENO"; then :
   9040   ac_cv_c_stack_direction=1
   9041 else
   9042   ac_cv_c_stack_direction=-1
   9043 fi
   9044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9045   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9046 fi
   9047 
   9048 fi
   9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   9050 $as_echo "$ac_cv_c_stack_direction" >&6; }
   9051 cat >>confdefs.h <<_ACEOF
   9052 #define STACK_DIRECTION $ac_cv_c_stack_direction
   9053 _ACEOF
   9054 
   9055 
   9056 fi
   9057 
   9058 
   9059   GNULIB__EXIT=0;
   9060   GNULIB_ATOLL=0;
   9061   GNULIB_CALLOC_POSIX=0;
   9062   GNULIB_CANONICALIZE_FILE_NAME=0;
   9063   GNULIB_GETLOADAVG=0;
   9064   GNULIB_GETSUBOPT=0;
   9065   GNULIB_GRANTPT=0;
   9066   GNULIB_MALLOC_POSIX=0;
   9067   GNULIB_MBTOWC=0;
   9068   GNULIB_MKDTEMP=0;
   9069   GNULIB_MKOSTEMP=0;
   9070   GNULIB_MKOSTEMPS=0;
   9071   GNULIB_MKSTEMP=0;
   9072   GNULIB_MKSTEMPS=0;
   9073   GNULIB_POSIX_OPENPT=0;
   9074   GNULIB_PTSNAME=0;
   9075   GNULIB_PTSNAME_R=0;
   9076   GNULIB_PUTENV=0;
   9077   GNULIB_RANDOM=0;
   9078   GNULIB_RANDOM_R=0;
   9079   GNULIB_REALLOC_POSIX=0;
   9080   GNULIB_REALPATH=0;
   9081   GNULIB_RPMATCH=0;
   9082   GNULIB_SETENV=0;
   9083   GNULIB_STRTOD=0;
   9084   GNULIB_STRTOLL=0;
   9085   GNULIB_STRTOULL=0;
   9086   GNULIB_SYSTEM_POSIX=0;
   9087   GNULIB_UNLOCKPT=0;
   9088   GNULIB_UNSETENV=0;
   9089   GNULIB_WCTOMB=0;
   9090     HAVE__EXIT=1;
   9091   HAVE_ATOLL=1;
   9092   HAVE_CANONICALIZE_FILE_NAME=1;
   9093   HAVE_DECL_GETLOADAVG=1;
   9094   HAVE_GETSUBOPT=1;
   9095   HAVE_GRANTPT=1;
   9096   HAVE_MKDTEMP=1;
   9097   HAVE_MKOSTEMP=1;
   9098   HAVE_MKOSTEMPS=1;
   9099   HAVE_MKSTEMP=1;
   9100   HAVE_MKSTEMPS=1;
   9101   HAVE_POSIX_OPENPT=1;
   9102   HAVE_PTSNAME=1;
   9103   HAVE_PTSNAME_R=1;
   9104   HAVE_RANDOM=1;
   9105   HAVE_RANDOM_H=1;
   9106   HAVE_RANDOM_R=1;
   9107   HAVE_REALPATH=1;
   9108   HAVE_RPMATCH=1;
   9109   HAVE_SETENV=1;
   9110   HAVE_DECL_SETENV=1;
   9111   HAVE_STRTOD=1;
   9112   HAVE_STRTOLL=1;
   9113   HAVE_STRTOULL=1;
   9114   HAVE_STRUCT_RANDOM_DATA=1;
   9115   HAVE_SYS_LOADAVG_H=0;
   9116   HAVE_UNLOCKPT=1;
   9117   HAVE_DECL_UNSETENV=1;
   9118   REPLACE_CALLOC=0;
   9119   REPLACE_CANONICALIZE_FILE_NAME=0;
   9120   REPLACE_MALLOC=0;
   9121   REPLACE_MBTOWC=0;
   9122   REPLACE_MKSTEMP=0;
   9123   REPLACE_PTSNAME=0;
   9124   REPLACE_PTSNAME_R=0;
   9125   REPLACE_PUTENV=0;
   9126   REPLACE_RANDOM_R=0;
   9127   REPLACE_REALLOC=0;
   9128   REPLACE_REALPATH=0;
   9129   REPLACE_SETENV=0;
   9130   REPLACE_STRTOD=0;
   9131   REPLACE_UNSETENV=0;
   9132   REPLACE_WCTOMB=0;
   9133 
   9134 
   9135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
   9136 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
   9137 if ${gl_cv_func_malloc_posix+:} false; then :
   9138   $as_echo_n "(cached) " >&6
   9139 else
   9140 
   9141                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9142 /* end confdefs.h.  */
   9143 
   9144 int
   9145 main ()
   9146 {
   9147 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
   9148              choke me
   9149              #endif
   9150 
   9151   ;
   9152   return 0;
   9153 }
   9154 _ACEOF
   9155 if ac_fn_c_try_compile "$LINENO"; then :
   9156   gl_cv_func_malloc_posix=yes
   9157 else
   9158   gl_cv_func_malloc_posix=no
   9159 fi
   9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9161 
   9162 fi
   9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
   9164 $as_echo "$gl_cv_func_malloc_posix" >&6; }
   9165 
   9166 
   9167   GNULIB_CHDIR=0;
   9168   GNULIB_CHOWN=0;
   9169   GNULIB_CLOSE=0;
   9170   GNULIB_DUP=0;
   9171   GNULIB_DUP2=0;
   9172   GNULIB_DUP3=0;
   9173   GNULIB_ENVIRON=0;
   9174   GNULIB_EUIDACCESS=0;
   9175   GNULIB_FACCESSAT=0;
   9176   GNULIB_FCHDIR=0;
   9177   GNULIB_FCHOWNAT=0;
   9178   GNULIB_FDATASYNC=0;
   9179   GNULIB_FSYNC=0;
   9180   GNULIB_FTRUNCATE=0;
   9181   GNULIB_GETCWD=0;
   9182   GNULIB_GETDOMAINNAME=0;
   9183   GNULIB_GETDTABLESIZE=0;
   9184   GNULIB_GETGROUPS=0;
   9185   GNULIB_GETHOSTNAME=0;
   9186   GNULIB_GETLOGIN=0;
   9187   GNULIB_GETLOGIN_R=0;
   9188   GNULIB_GETPAGESIZE=0;
   9189   GNULIB_GETUSERSHELL=0;
   9190   GNULIB_GROUP_MEMBER=0;
   9191   GNULIB_ISATTY=0;
   9192   GNULIB_LCHOWN=0;
   9193   GNULIB_LINK=0;
   9194   GNULIB_LINKAT=0;
   9195   GNULIB_LSEEK=0;
   9196   GNULIB_PIPE=0;
   9197   GNULIB_PIPE2=0;
   9198   GNULIB_PREAD=0;
   9199   GNULIB_PWRITE=0;
   9200   GNULIB_READ=0;
   9201   GNULIB_READLINK=0;
   9202   GNULIB_READLINKAT=0;
   9203   GNULIB_RMDIR=0;
   9204   GNULIB_SETHOSTNAME=0;
   9205   GNULIB_SLEEP=0;
   9206   GNULIB_SYMLINK=0;
   9207   GNULIB_SYMLINKAT=0;
   9208   GNULIB_TTYNAME_R=0;
   9209   GNULIB_UNISTD_H_NONBLOCKING=0;
   9210   GNULIB_UNISTD_H_SIGPIPE=0;
   9211   GNULIB_UNLINK=0;
   9212   GNULIB_UNLINKAT=0;
   9213   GNULIB_USLEEP=0;
   9214   GNULIB_WRITE=0;
   9215     HAVE_CHOWN=1;
   9216   HAVE_DUP2=1;
   9217   HAVE_DUP3=1;
   9218   HAVE_EUIDACCESS=1;
   9219   HAVE_FACCESSAT=1;
   9220   HAVE_FCHDIR=1;
   9221   HAVE_FCHOWNAT=1;
   9222   HAVE_FDATASYNC=1;
   9223   HAVE_FSYNC=1;
   9224   HAVE_FTRUNCATE=1;
   9225   HAVE_GETDTABLESIZE=1;
   9226   HAVE_GETGROUPS=1;
   9227   HAVE_GETHOSTNAME=1;
   9228   HAVE_GETLOGIN=1;
   9229   HAVE_GETPAGESIZE=1;
   9230   HAVE_GROUP_MEMBER=1;
   9231   HAVE_LCHOWN=1;
   9232   HAVE_LINK=1;
   9233   HAVE_LINKAT=1;
   9234   HAVE_PIPE=1;
   9235   HAVE_PIPE2=1;
   9236   HAVE_PREAD=1;
   9237   HAVE_PWRITE=1;
   9238   HAVE_READLINK=1;
   9239   HAVE_READLINKAT=1;
   9240   HAVE_SETHOSTNAME=1;
   9241   HAVE_SLEEP=1;
   9242   HAVE_SYMLINK=1;
   9243   HAVE_SYMLINKAT=1;
   9244   HAVE_UNLINKAT=1;
   9245   HAVE_USLEEP=1;
   9246   HAVE_DECL_ENVIRON=1;
   9247   HAVE_DECL_FCHDIR=1;
   9248   HAVE_DECL_FDATASYNC=1;
   9249   HAVE_DECL_GETDOMAINNAME=1;
   9250   HAVE_DECL_GETLOGIN_R=1;
   9251   HAVE_DECL_GETPAGESIZE=1;
   9252   HAVE_DECL_GETUSERSHELL=1;
   9253   HAVE_DECL_SETHOSTNAME=1;
   9254   HAVE_DECL_TTYNAME_R=1;
   9255   HAVE_OS_H=0;
   9256   HAVE_SYS_PARAM_H=0;
   9257   REPLACE_CHOWN=0;
   9258   REPLACE_CLOSE=0;
   9259   REPLACE_DUP=0;
   9260   REPLACE_DUP2=0;
   9261   REPLACE_FCHOWNAT=0;
   9262   REPLACE_FTRUNCATE=0;
   9263   REPLACE_GETCWD=0;
   9264   REPLACE_GETDOMAINNAME=0;
   9265   REPLACE_GETLOGIN_R=0;
   9266   REPLACE_GETGROUPS=0;
   9267   REPLACE_GETPAGESIZE=0;
   9268   REPLACE_ISATTY=0;
   9269   REPLACE_LCHOWN=0;
   9270   REPLACE_LINK=0;
   9271   REPLACE_LINKAT=0;
   9272   REPLACE_LSEEK=0;
   9273   REPLACE_PREAD=0;
   9274   REPLACE_PWRITE=0;
   9275   REPLACE_READ=0;
   9276   REPLACE_READLINK=0;
   9277   REPLACE_RMDIR=0;
   9278   REPLACE_SLEEP=0;
   9279   REPLACE_SYMLINK=0;
   9280   REPLACE_TTYNAME_R=0;
   9281   REPLACE_UNLINK=0;
   9282   REPLACE_UNLINKAT=0;
   9283   REPLACE_USLEEP=0;
   9284   REPLACE_WRITE=0;
   9285   UNISTD_H_HAVE_WINSOCK2_H=0;
   9286   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
   9287 
   9288 
   9289 
   9290 
   9291 
   9292   for ac_func in $ac_func_list
   9293 do :
   9294   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   9296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   9297   cat >>confdefs.h <<_ACEOF
   9298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9299 _ACEOF
   9300 
   9301 fi
   9302 done
   9303 
   9304 
   9305 
   9306 
   9307 
   9308   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
   9309     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
   9310 
   9311 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
   9312 
   9313   else
   9314     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
   9315   fi
   9316 
   9317 
   9318 
   9319 
   9320 
   9321 
   9322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
   9323 $as_echo_n "checking whether // is distinct from /... " >&6; }
   9324 if ${gl_cv_double_slash_root+:} false; then :
   9325   $as_echo_n "(cached) " >&6
   9326 else
   9327    if test x"$cross_compiling" = xyes ; then
   9328         # When cross-compiling, there is no way to tell whether // is special
   9329         # short of a list of hosts.  However, the only known hosts to date
   9330         # that have a distinct // are Apollo DomainOS (too old to port to),
   9331         # Cygwin, and z/OS.  If anyone knows of another system for which // has
   9332         # special semantics and is distinct from /, please report it to
   9333         # <bug-gnulib (at] gnu.org>.
   9334         case $host in
   9335           *-cygwin | i370-ibm-openedition)
   9336             gl_cv_double_slash_root=yes ;;
   9337           *)
   9338             # Be optimistic and assume that / and // are the same when we
   9339             # don't know.
   9340             gl_cv_double_slash_root='unknown, assuming no' ;;
   9341         esac
   9342       else
   9343         set x `ls -di / // 2>/dev/null`
   9344         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
   9345           gl_cv_double_slash_root=no
   9346         else
   9347           gl_cv_double_slash_root=yes
   9348         fi
   9349       fi
   9350 fi
   9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
   9352 $as_echo "$gl_cv_double_slash_root" >&6; }
   9353   if test "$gl_cv_double_slash_root" = yes; then
   9354 
   9355 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
   9356 
   9357   fi
   9358 
   9359 
   9360 
   9361 
   9362 
   9363 
   9364 
   9365 
   9366 
   9367 
   9368 
   9369 
   9370 
   9371 
   9372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
   9373 $as_echo_n "checking if environ is properly declared... " >&6; }
   9374   if ${gt_cv_var_environ_declaration+:} false; then :
   9375   $as_echo_n "(cached) " >&6
   9376 else
   9377 
   9378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9379 /* end confdefs.h.  */
   9380 #if HAVE_UNISTD_H
   9381      #include <unistd.h>
   9382      #endif
   9383      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
   9384      #include <stdlib.h>
   9385 
   9386            extern struct { int foo; } environ;
   9387 int
   9388 main ()
   9389 {
   9390 environ.foo = 1;
   9391   ;
   9392   return 0;
   9393 }
   9394 _ACEOF
   9395 if ac_fn_c_try_compile "$LINENO"; then :
   9396   gt_cv_var_environ_declaration=no
   9397 else
   9398   gt_cv_var_environ_declaration=yes
   9399 fi
   9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9401 fi
   9402 
   9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
   9404 $as_echo "$gt_cv_var_environ_declaration" >&6; }
   9405   if test $gt_cv_var_environ_declaration = yes; then
   9406 
   9407 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
   9408 
   9409   fi
   9410 
   9411 
   9412   if test $gt_cv_var_environ_declaration != yes; then
   9413     HAVE_DECL_ENVIRON=0
   9414   fi
   9415 
   9416 
   9417 
   9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
   9419 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
   9420 if ${gl_cv_have_include_next+:} false; then :
   9421   $as_echo_n "(cached) " >&6
   9422 else
   9423   rm -rf conftestd1a conftestd1b conftestd2
   9424      mkdir conftestd1a conftestd1b conftestd2
   9425                                                   cat <<EOF > conftestd1a/conftest.h
   9426 #define DEFINED_IN_CONFTESTD1
   9427 #include_next <conftest.h>
   9428 #ifdef DEFINED_IN_CONFTESTD2
   9429 int foo;
   9430 #else
   9431 #error "include_next doesn't work"
   9432 #endif
   9433 EOF
   9434      cat <<EOF > conftestd1b/conftest.h
   9435 #define DEFINED_IN_CONFTESTD1
   9436 #include <stdio.h>
   9437 #include_next <conftest.h>
   9438 #ifdef DEFINED_IN_CONFTESTD2
   9439 int foo;
   9440 #else
   9441 #error "include_next doesn't work"
   9442 #endif
   9443 EOF
   9444      cat <<EOF > conftestd2/conftest.h
   9445 #ifndef DEFINED_IN_CONFTESTD1
   9446 #error "include_next test doesn't work"
   9447 #endif
   9448 #define DEFINED_IN_CONFTESTD2
   9449 EOF
   9450      gl_save_CPPFLAGS="$CPPFLAGS"
   9451      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
   9452      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9453 /* end confdefs.h.  */
   9454 #include <conftest.h>
   9455 _ACEOF
   9456 if ac_fn_c_try_compile "$LINENO"; then :
   9457   gl_cv_have_include_next=yes
   9458 else
   9459   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
   9460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9461 /* end confdefs.h.  */
   9462 #include <conftest.h>
   9463 _ACEOF
   9464 if ac_fn_c_try_compile "$LINENO"; then :
   9465   gl_cv_have_include_next=buggy
   9466 else
   9467   gl_cv_have_include_next=no
   9468 fi
   9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9470 
   9471 fi
   9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9473      CPPFLAGS="$gl_save_CPPFLAGS"
   9474      rm -rf conftestd1a conftestd1b conftestd2
   9475 
   9476 fi
   9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
   9478 $as_echo "$gl_cv_have_include_next" >&6; }
   9479   PRAGMA_SYSTEM_HEADER=
   9480   if test $gl_cv_have_include_next = yes; then
   9481     INCLUDE_NEXT=include_next
   9482     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
   9483     if test -n "$GCC"; then
   9484       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
   9485     fi
   9486   else
   9487     if test $gl_cv_have_include_next = buggy; then
   9488       INCLUDE_NEXT=include
   9489       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
   9490     else
   9491       INCLUDE_NEXT=include
   9492       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
   9493     fi
   9494   fi
   9495 
   9496 
   9497 
   9498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
   9499 $as_echo_n "checking whether system header files limit the line length... " >&6; }
   9500 if ${gl_cv_pragma_columns+:} false; then :
   9501   $as_echo_n "(cached) " >&6
   9502 else
   9503        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9504 /* end confdefs.h.  */
   9505 
   9506 #ifdef __TANDEM
   9507 choke me
   9508 #endif
   9509 
   9510 _ACEOF
   9511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9512   $EGREP "choke me" >/dev/null 2>&1; then :
   9513   gl_cv_pragma_columns=yes
   9514 else
   9515   gl_cv_pragma_columns=no
   9516 fi
   9517 rm -f conftest*
   9518 
   9519 
   9520 fi
   9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
   9522 $as_echo "$gl_cv_pragma_columns" >&6; }
   9523   if test $gl_cv_pragma_columns = yes; then
   9524     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
   9525   else
   9526     PRAGMA_COLUMNS=
   9527   fi
   9528 
   9529 
   9530 
   9531 
   9532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
   9533 $as_echo_n "checking for complete errno.h... " >&6; }
   9534 if ${gl_cv_header_errno_h_complete+:} false; then :
   9535   $as_echo_n "(cached) " >&6
   9536 else
   9537 
   9538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9539 /* end confdefs.h.  */
   9540 
   9541 #include <errno.h>
   9542 #if !defined ETXTBSY
   9543 booboo
   9544 #endif
   9545 #if !defined ENOMSG
   9546 booboo
   9547 #endif
   9548 #if !defined EIDRM
   9549 booboo
   9550 #endif
   9551 #if !defined ENOLINK
   9552 booboo
   9553 #endif
   9554 #if !defined EPROTO
   9555 booboo
   9556 #endif
   9557 #if !defined EMULTIHOP
   9558 booboo
   9559 #endif
   9560 #if !defined EBADMSG
   9561 booboo
   9562 #endif
   9563 #if !defined EOVERFLOW
   9564 booboo
   9565 #endif
   9566 #if !defined ENOTSUP
   9567 booboo
   9568 #endif
   9569 #if !defined ENETRESET
   9570 booboo
   9571 #endif
   9572 #if !defined ECONNABORTED
   9573 booboo
   9574 #endif
   9575 #if !defined ESTALE
   9576 booboo
   9577 #endif
   9578 #if !defined EDQUOT
   9579 booboo
   9580 #endif
   9581 #if !defined ECANCELED
   9582 booboo
   9583 #endif
   9584 #if !defined EOWNERDEAD
   9585 booboo
   9586 #endif
   9587 #if !defined ENOTRECOVERABLE
   9588 booboo
   9589 #endif
   9590 #if !defined EILSEQ
   9591 booboo
   9592 #endif
   9593 
   9594 _ACEOF
   9595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9596   $EGREP "booboo" >/dev/null 2>&1; then :
   9597   gl_cv_header_errno_h_complete=no
   9598 else
   9599   gl_cv_header_errno_h_complete=yes
   9600 fi
   9601 rm -f conftest*
   9602 
   9603 
   9604 fi
   9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
   9606 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
   9607   if test $gl_cv_header_errno_h_complete = yes; then
   9608     ERRNO_H=''
   9609   else
   9610 
   9611 
   9612 
   9613 
   9614 
   9615 
   9616 
   9617 
   9618      if test $gl_cv_have_include_next = yes; then
   9619        gl_cv_next_errno_h='<'errno.h'>'
   9620      else
   9621        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
   9622 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
   9623 if ${gl_cv_next_errno_h+:} false; then :
   9624   $as_echo_n "(cached) " >&6
   9625 else
   9626 
   9627                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9628 /* end confdefs.h.  */
   9629 #include <errno.h>
   9630 
   9631 _ACEOF
   9632                                                                                                                         case "$host_os" in
   9633                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   9634                  *)    gl_absname_cpp="$ac_cpp" ;;
   9635                esac
   9636 
   9637                case "$host_os" in
   9638                  mingw*)
   9639                                                                                                                                      gl_dirsep_regex='[/\\]'
   9640                    ;;
   9641                  *)
   9642                    gl_dirsep_regex='\/'
   9643                    ;;
   9644                esac
   9645                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   9646 
   9647                gl_header_literal_regex=`echo 'errno.h' \
   9648                                         | sed -e "$gl_make_literal_regex_sed"`
   9649                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   9650                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   9651                    s|^/[^/]|//&|
   9652                    p
   9653                    q
   9654                  }'
   9655                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   9656                       sed -n "$gl_absolute_header_sed"`'"'
   9657 
   9658 
   9659 fi
   9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
   9661 $as_echo "$gl_cv_next_errno_h" >&6; }
   9662      fi
   9663      NEXT_ERRNO_H=$gl_cv_next_errno_h
   9664 
   9665      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   9666        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   9667        gl_next_as_first_directive='<'errno.h'>'
   9668      else
   9669        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   9670        gl_next_as_first_directive=$gl_cv_next_errno_h
   9671      fi
   9672      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
   9673 
   9674 
   9675 
   9676 
   9677     ERRNO_H='errno.h'
   9678   fi
   9679 
   9680    if test -n "$ERRNO_H"; then
   9681   GL_GENERATE_ERRNO_H_TRUE=
   9682   GL_GENERATE_ERRNO_H_FALSE='#'
   9683 else
   9684   GL_GENERATE_ERRNO_H_TRUE='#'
   9685   GL_GENERATE_ERRNO_H_FALSE=
   9686 fi
   9687 
   9688 
   9689   if test -n "$ERRNO_H"; then
   9690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
   9691 $as_echo_n "checking for EMULTIHOP value... " >&6; }
   9692 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
   9693   $as_echo_n "(cached) " >&6
   9694 else
   9695 
   9696       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9697 /* end confdefs.h.  */
   9698 
   9699 #include <errno.h>
   9700 #ifdef EMULTIHOP
   9701 yes
   9702 #endif
   9703 
   9704 _ACEOF
   9705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9706   $EGREP "yes" >/dev/null 2>&1; then :
   9707   gl_cv_header_errno_h_EMULTIHOP=yes
   9708 else
   9709   gl_cv_header_errno_h_EMULTIHOP=no
   9710 fi
   9711 rm -f conftest*
   9712 
   9713       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
   9714         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9715 /* end confdefs.h.  */
   9716 
   9717 #define _XOPEN_SOURCE_EXTENDED 1
   9718 #include <errno.h>
   9719 #ifdef EMULTIHOP
   9720 yes
   9721 #endif
   9722 
   9723 _ACEOF
   9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9725   $EGREP "yes" >/dev/null 2>&1; then :
   9726   gl_cv_header_errno_h_EMULTIHOP=hidden
   9727 fi
   9728 rm -f conftest*
   9729 
   9730         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
   9731                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
   9732 #define _XOPEN_SOURCE_EXTENDED 1
   9733 #include <errno.h>
   9734 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   9735 #include <stdio.h>
   9736 #include <stdlib.h>
   9737 "; then :
   9738 
   9739 fi
   9740 
   9741         fi
   9742       fi
   9743 
   9744 fi
   9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
   9746 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
   9747     case $gl_cv_header_errno_h_EMULTIHOP in
   9748       yes | no)
   9749         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
   9750         ;;
   9751       *)
   9752         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
   9753         ;;
   9754     esac
   9755 
   9756 
   9757   fi
   9758 
   9759 
   9760   if test -n "$ERRNO_H"; then
   9761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
   9762 $as_echo_n "checking for ENOLINK value... " >&6; }
   9763 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
   9764   $as_echo_n "(cached) " >&6
   9765 else
   9766 
   9767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9768 /* end confdefs.h.  */
   9769 
   9770 #include <errno.h>
   9771 #ifdef ENOLINK
   9772 yes
   9773 #endif
   9774 
   9775 _ACEOF
   9776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9777   $EGREP "yes" >/dev/null 2>&1; then :
   9778   gl_cv_header_errno_h_ENOLINK=yes
   9779 else
   9780   gl_cv_header_errno_h_ENOLINK=no
   9781 fi
   9782 rm -f conftest*
   9783 
   9784       if test $gl_cv_header_errno_h_ENOLINK = no; then
   9785         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9786 /* end confdefs.h.  */
   9787 
   9788 #define _XOPEN_SOURCE_EXTENDED 1
   9789 #include <errno.h>
   9790 #ifdef ENOLINK
   9791 yes
   9792 #endif
   9793 
   9794 _ACEOF
   9795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9796   $EGREP "yes" >/dev/null 2>&1; then :
   9797   gl_cv_header_errno_h_ENOLINK=hidden
   9798 fi
   9799 rm -f conftest*
   9800 
   9801         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
   9802                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
   9803 #define _XOPEN_SOURCE_EXTENDED 1
   9804 #include <errno.h>
   9805 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   9806 #include <stdio.h>
   9807 #include <stdlib.h>
   9808 "; then :
   9809 
   9810 fi
   9811 
   9812         fi
   9813       fi
   9814 
   9815 fi
   9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
   9817 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
   9818     case $gl_cv_header_errno_h_ENOLINK in
   9819       yes | no)
   9820         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
   9821         ;;
   9822       *)
   9823         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
   9824         ;;
   9825     esac
   9826 
   9827 
   9828   fi
   9829 
   9830 
   9831   if test -n "$ERRNO_H"; then
   9832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
   9833 $as_echo_n "checking for EOVERFLOW value... " >&6; }
   9834 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
   9835   $as_echo_n "(cached) " >&6
   9836 else
   9837 
   9838       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9839 /* end confdefs.h.  */
   9840 
   9841 #include <errno.h>
   9842 #ifdef EOVERFLOW
   9843 yes
   9844 #endif
   9845 
   9846 _ACEOF
   9847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9848   $EGREP "yes" >/dev/null 2>&1; then :
   9849   gl_cv_header_errno_h_EOVERFLOW=yes
   9850 else
   9851   gl_cv_header_errno_h_EOVERFLOW=no
   9852 fi
   9853 rm -f conftest*
   9854 
   9855       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
   9856         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9857 /* end confdefs.h.  */
   9858 
   9859 #define _XOPEN_SOURCE_EXTENDED 1
   9860 #include <errno.h>
   9861 #ifdef EOVERFLOW
   9862 yes
   9863 #endif
   9864 
   9865 _ACEOF
   9866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9867   $EGREP "yes" >/dev/null 2>&1; then :
   9868   gl_cv_header_errno_h_EOVERFLOW=hidden
   9869 fi
   9870 rm -f conftest*
   9871 
   9872         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
   9873                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
   9874 #define _XOPEN_SOURCE_EXTENDED 1
   9875 #include <errno.h>
   9876 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   9877 #include <stdio.h>
   9878 #include <stdlib.h>
   9879 "; then :
   9880 
   9881 fi
   9882 
   9883         fi
   9884       fi
   9885 
   9886 fi
   9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
   9888 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
   9889     case $gl_cv_header_errno_h_EOVERFLOW in
   9890       yes | no)
   9891         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
   9892         ;;
   9893       *)
   9894         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
   9895         ;;
   9896     esac
   9897 
   9898 
   9899   fi
   9900 
   9901 
   9902 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
   9903 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
   9904   ac_have_decl=1
   9905 else
   9906   ac_have_decl=0
   9907 fi
   9908 
   9909 cat >>confdefs.h <<_ACEOF
   9910 #define HAVE_DECL_STRERROR_R $ac_have_decl
   9911 _ACEOF
   9912 
   9913 for ac_func in strerror_r
   9914 do :
   9915   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
   9916 if test "x$ac_cv_func_strerror_r" = xyes; then :
   9917   cat >>confdefs.h <<_ACEOF
   9918 #define HAVE_STRERROR_R 1
   9919 _ACEOF
   9920 
   9921 fi
   9922 done
   9923 
   9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
   9925 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
   9926 if ${ac_cv_func_strerror_r_char_p+:} false; then :
   9927   $as_echo_n "(cached) " >&6
   9928 else
   9929 
   9930     ac_cv_func_strerror_r_char_p=no
   9931     if test $ac_cv_have_decl_strerror_r = yes; then
   9932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9933 /* end confdefs.h.  */
   9934 $ac_includes_default
   9935 int
   9936 main ()
   9937 {
   9938 
   9939 	  char buf[100];
   9940 	  char x = *strerror_r (0, buf, sizeof buf);
   9941 	  char *p = strerror_r (0, buf, sizeof buf);
   9942 	  return !p || x;
   9943 
   9944   ;
   9945   return 0;
   9946 }
   9947 _ACEOF
   9948 if ac_fn_c_try_compile "$LINENO"; then :
   9949   ac_cv_func_strerror_r_char_p=yes
   9950 fi
   9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9952     else
   9953       # strerror_r is not declared.  Choose between
   9954       # systems that have relatively inaccessible declarations for the
   9955       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
   9956       # former has a strerror_r that returns char*, while the latter
   9957       # has a strerror_r that returns `int'.
   9958       # This test should segfault on the DEC system.
   9959       if test "$cross_compiling" = yes; then :
   9960   :
   9961 else
   9962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9963 /* end confdefs.h.  */
   9964 $ac_includes_default
   9965 	extern char *strerror_r ();
   9966 int
   9967 main ()
   9968 {
   9969 char buf[100];
   9970 	  char x = *strerror_r (0, buf, sizeof buf);
   9971 	  return ! isalpha (x);
   9972   ;
   9973   return 0;
   9974 }
   9975 _ACEOF
   9976 if ac_fn_c_try_run "$LINENO"; then :
   9977   ac_cv_func_strerror_r_char_p=yes
   9978 fi
   9979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9980   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9981 fi
   9982 
   9983     fi
   9984 
   9985 fi
   9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
   9987 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
   9988 if test $ac_cv_func_strerror_r_char_p = yes; then
   9989 
   9990 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
   9991 
   9992 fi
   9993 
   9994 
   9995   XGETTEXT_EXTRA_OPTIONS=
   9996 
   9997 
   9998 
   9999 
   10000 
   10001   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
   10002 "
   10003 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
   10004 
   10005 cat >>confdefs.h <<_ACEOF
   10006 #define HAVE_SIG_ATOMIC_T 1
   10007 _ACEOF
   10008 
   10009 
   10010 else
   10011 
   10012 $as_echo "#define sig_atomic_t int" >>confdefs.h
   10013 
   10014 fi
   10015 
   10016 
   10017 
   10018   GNULIB_FCNTL=0;
   10019   GNULIB_NONBLOCKING=0;
   10020   GNULIB_OPEN=0;
   10021   GNULIB_OPENAT=0;
   10022     HAVE_FCNTL=1;
   10023   HAVE_OPENAT=1;
   10024   REPLACE_FCNTL=0;
   10025   REPLACE_OPEN=0;
   10026   REPLACE_OPENAT=0;
   10027 
   10028 
   10029 
   10030 
   10031 
   10032 
   10033 
   10034 
   10035 
   10036 
   10037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
   10038 $as_echo_n "checking for working fcntl.h... " >&6; }
   10039 if ${gl_cv_header_working_fcntl_h+:} false; then :
   10040   $as_echo_n "(cached) " >&6
   10041 else
   10042   if test "$cross_compiling" = yes; then :
   10043   gl_cv_header_working_fcntl_h=cross-compiling
   10044 else
   10045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10046 /* end confdefs.h.  */
   10047 #include <sys/types.h>
   10048            #include <sys/stat.h>
   10049            #if HAVE_UNISTD_H
   10050            # include <unistd.h>
   10051            #else /* on Windows with MSVC */
   10052            # include <io.h>
   10053            # include <stdlib.h>
   10054            # defined sleep(n) _sleep ((n) * 1000)
   10055            #endif
   10056            #include <fcntl.h>
   10057            #ifndef O_NOATIME
   10058             #define O_NOATIME 0
   10059            #endif
   10060            #ifndef O_NOFOLLOW
   10061             #define O_NOFOLLOW 0
   10062            #endif
   10063            static int const constants[] =
   10064             {
   10065               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
   10066               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
   10067             };
   10068 
   10069 int
   10070 main ()
   10071 {
   10072 
   10073             int result = !constants;
   10074             #if HAVE_SYMLINK
   10075             {
   10076               static char const sym[] = "conftest.sym";
   10077               if (symlink ("/dev/null", sym) != 0)
   10078                 result |= 2;
   10079               else
   10080                 {
   10081                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
   10082                   if (fd >= 0)
   10083                     {
   10084                       close (fd);
   10085                       result |= 4;
   10086                     }
   10087                 }
   10088               if (unlink (sym) != 0 || symlink (".", sym) != 0)
   10089                 result |= 2;
   10090               else
   10091                 {
   10092                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
   10093                   if (fd >= 0)
   10094                     {
   10095                       close (fd);
   10096                       result |= 4;
   10097                     }
   10098                 }
   10099               unlink (sym);
   10100             }
   10101             #endif
   10102             {
   10103               static char const file[] = "confdefs.h";
   10104               int fd = open (file, O_RDONLY | O_NOATIME);
   10105               if (fd < 0)
   10106                 result |= 8;
   10107               else
   10108                 {
   10109                   struct stat st0;
   10110                   if (fstat (fd, &st0) != 0)
   10111                     result |= 16;
   10112                   else
   10113                     {
   10114                       char c;
   10115                       sleep (1);
   10116                       if (read (fd, &c, 1) != 1)
   10117                         result |= 24;
   10118                       else
   10119                         {
   10120                           if (close (fd) != 0)
   10121                             result |= 32;
   10122                           else
   10123                             {
   10124                               struct stat st1;
   10125                               if (stat (file, &st1) != 0)
   10126                                 result |= 40;
   10127                               else
   10128                                 if (st0.st_atime != st1.st_atime)
   10129                                   result |= 64;
   10130                             }
   10131                         }
   10132                     }
   10133                 }
   10134             }
   10135             return result;
   10136   ;
   10137   return 0;
   10138 }
   10139 _ACEOF
   10140 if ac_fn_c_try_run "$LINENO"; then :
   10141   gl_cv_header_working_fcntl_h=yes
   10142 else
   10143   case $? in #(
   10144         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
   10145         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
   10146         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
   10147          *) gl_cv_header_working_fcntl_h='no';;
   10148         esac
   10149 fi
   10150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10151   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10152 fi
   10153 
   10154 fi
   10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
   10156 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
   10157 
   10158   case $gl_cv_header_working_fcntl_h in #(
   10159   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
   10160   *) ac_val=1;;
   10161   esac
   10162 
   10163 cat >>confdefs.h <<_ACEOF
   10164 #define HAVE_WORKING_O_NOATIME $ac_val
   10165 _ACEOF
   10166 
   10167 
   10168   case $gl_cv_header_working_fcntl_h in #(
   10169   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
   10170   *) ac_val=1;;
   10171   esac
   10172 
   10173 cat >>confdefs.h <<_ACEOF
   10174 #define HAVE_WORKING_O_NOFOLLOW $ac_val
   10175 _ACEOF
   10176 
   10177 
   10178 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   10179 if test "x$ac_cv_type_pid_t" = xyes; then :
   10180 
   10181 else
   10182 
   10183 cat >>confdefs.h <<_ACEOF
   10184 #define pid_t int
   10185 _ACEOF
   10186 
   10187 fi
   10188 
   10189 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
   10190 if test "x$ac_cv_type_mode_t" = xyes; then :
   10191 
   10192 else
   10193 
   10194 cat >>confdefs.h <<_ACEOF
   10195 #define mode_t int
   10196 _ACEOF
   10197 
   10198 fi
   10199 
   10200 
   10201   GNULIB_DPRINTF=0;
   10202   GNULIB_FCLOSE=0;
   10203   GNULIB_FDOPEN=0;
   10204   GNULIB_FFLUSH=0;
   10205   GNULIB_FGETC=0;
   10206   GNULIB_FGETS=0;
   10207   GNULIB_FOPEN=0;
   10208   GNULIB_FPRINTF=0;
   10209   GNULIB_FPRINTF_POSIX=0;
   10210   GNULIB_FPURGE=0;
   10211   GNULIB_FPUTC=0;
   10212   GNULIB_FPUTS=0;
   10213   GNULIB_FREAD=0;
   10214   GNULIB_FREOPEN=0;
   10215   GNULIB_FSCANF=0;
   10216   GNULIB_FSEEK=0;
   10217   GNULIB_FSEEKO=0;
   10218   GNULIB_FTELL=0;
   10219   GNULIB_FTELLO=0;
   10220   GNULIB_FWRITE=0;
   10221   GNULIB_GETC=0;
   10222   GNULIB_GETCHAR=0;
   10223   GNULIB_GETDELIM=0;
   10224   GNULIB_GETLINE=0;
   10225   GNULIB_OBSTACK_PRINTF=0;
   10226   GNULIB_OBSTACK_PRINTF_POSIX=0;
   10227   GNULIB_PCLOSE=0;
   10228   GNULIB_PERROR=0;
   10229   GNULIB_POPEN=0;
   10230   GNULIB_PRINTF=0;
   10231   GNULIB_PRINTF_POSIX=0;
   10232   GNULIB_PUTC=0;
   10233   GNULIB_PUTCHAR=0;
   10234   GNULIB_PUTS=0;
   10235   GNULIB_REMOVE=0;
   10236   GNULIB_RENAME=0;
   10237   GNULIB_RENAMEAT=0;
   10238   GNULIB_SCANF=0;
   10239   GNULIB_SNPRINTF=0;
   10240   GNULIB_SPRINTF_POSIX=0;
   10241   GNULIB_STDIO_H_NONBLOCKING=0;
   10242   GNULIB_STDIO_H_SIGPIPE=0;
   10243   GNULIB_TMPFILE=0;
   10244   GNULIB_VASPRINTF=0;
   10245   GNULIB_VFSCANF=0;
   10246   GNULIB_VSCANF=0;
   10247   GNULIB_VDPRINTF=0;
   10248   GNULIB_VFPRINTF=0;
   10249   GNULIB_VFPRINTF_POSIX=0;
   10250   GNULIB_VPRINTF=0;
   10251   GNULIB_VPRINTF_POSIX=0;
   10252   GNULIB_VSNPRINTF=0;
   10253   GNULIB_VSPRINTF_POSIX=0;
   10254     HAVE_DECL_FPURGE=1;
   10255   HAVE_DECL_FSEEKO=1;
   10256   HAVE_DECL_FTELLO=1;
   10257   HAVE_DECL_GETDELIM=1;
   10258   HAVE_DECL_GETLINE=1;
   10259   HAVE_DECL_OBSTACK_PRINTF=1;
   10260   HAVE_DECL_SNPRINTF=1;
   10261   HAVE_DECL_VSNPRINTF=1;
   10262   HAVE_DPRINTF=1;
   10263   HAVE_FSEEKO=1;
   10264   HAVE_FTELLO=1;
   10265   HAVE_PCLOSE=1;
   10266   HAVE_POPEN=1;
   10267   HAVE_RENAMEAT=1;
   10268   HAVE_VASPRINTF=1;
   10269   HAVE_VDPRINTF=1;
   10270   REPLACE_DPRINTF=0;
   10271   REPLACE_FCLOSE=0;
   10272   REPLACE_FDOPEN=0;
   10273   REPLACE_FFLUSH=0;
   10274   REPLACE_FOPEN=0;
   10275   REPLACE_FPRINTF=0;
   10276   REPLACE_FPURGE=0;
   10277   REPLACE_FREOPEN=0;
   10278   REPLACE_FSEEK=0;
   10279   REPLACE_FSEEKO=0;
   10280   REPLACE_FTELL=0;
   10281   REPLACE_FTELLO=0;
   10282   REPLACE_GETDELIM=0;
   10283   REPLACE_GETLINE=0;
   10284   REPLACE_OBSTACK_PRINTF=0;
   10285   REPLACE_PERROR=0;
   10286   REPLACE_POPEN=0;
   10287   REPLACE_PRINTF=0;
   10288   REPLACE_REMOVE=0;
   10289   REPLACE_RENAME=0;
   10290   REPLACE_RENAMEAT=0;
   10291   REPLACE_SNPRINTF=0;
   10292   REPLACE_SPRINTF=0;
   10293   REPLACE_STDIO_READ_FUNCS=0;
   10294   REPLACE_STDIO_WRITE_FUNCS=0;
   10295   REPLACE_TMPFILE=0;
   10296   REPLACE_VASPRINTF=0;
   10297   REPLACE_VDPRINTF=0;
   10298   REPLACE_VFPRINTF=0;
   10299   REPLACE_VPRINTF=0;
   10300   REPLACE_VSNPRINTF=0;
   10301   REPLACE_VSPRINTF=0;
   10302 
   10303 
   10304 
   10305 
   10306 
   10307 
   10308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
   10309 $as_echo_n "checking for stdint.h... " >&6; }
   10310 if ${gl_cv_header_stdint_h+:} false; then :
   10311   $as_echo_n "(cached) " >&6
   10312 else
   10313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10314 /* end confdefs.h.  */
   10315 #include <sys/types.h>
   10316             #include <stdint.h>
   10317 int
   10318 main ()
   10319 {
   10320 uintmax_t i = (uintmax_t) -1; return !i;
   10321   ;
   10322   return 0;
   10323 }
   10324 _ACEOF
   10325 if ac_fn_c_try_compile "$LINENO"; then :
   10326   gl_cv_header_stdint_h=yes
   10327 else
   10328   gl_cv_header_stdint_h=no
   10329 fi
   10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10331 fi
   10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
   10333 $as_echo "$gl_cv_header_stdint_h" >&6; }
   10334   if test $gl_cv_header_stdint_h = yes; then
   10335 
   10336 cat >>confdefs.h <<_ACEOF
   10337 #define HAVE_STDINT_H_WITH_UINTMAX 1
   10338 _ACEOF
   10339 
   10340   fi
   10341 
   10342 
   10343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
   10344 $as_echo_n "checking for inttypes.h... " >&6; }
   10345 if ${gl_cv_header_inttypes_h+:} false; then :
   10346   $as_echo_n "(cached) " >&6
   10347 else
   10348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10349 /* end confdefs.h.  */
   10350 
   10351 #include <sys/types.h>
   10352 #include <inttypes.h>
   10353 
   10354 int
   10355 main ()
   10356 {
   10357 uintmax_t i = (uintmax_t) -1; return !i;
   10358   ;
   10359   return 0;
   10360 }
   10361 _ACEOF
   10362 if ac_fn_c_try_compile "$LINENO"; then :
   10363   gl_cv_header_inttypes_h=yes
   10364 else
   10365   gl_cv_header_inttypes_h=no
   10366 fi
   10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10368 fi
   10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
   10370 $as_echo "$gl_cv_header_inttypes_h" >&6; }
   10371   if test $gl_cv_header_inttypes_h = yes; then
   10372 
   10373 cat >>confdefs.h <<_ACEOF
   10374 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
   10375 _ACEOF
   10376 
   10377   fi
   10378 
   10379 
   10380 
   10381 
   10382 
   10383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
   10384 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
   10385 if ${gl_cv_func_printf_sizes_c99+:} false; then :
   10386   $as_echo_n "(cached) " >&6
   10387 else
   10388 
   10389       if test "$cross_compiling" = yes; then :
   10390 
   10391          case "$host_os" in
   10392                                  # Guess yes on glibc systems.
   10393            *-gnu*)               gl_cv_func_printf_sizes_c99="guessing yes";;
   10394                                  # Guess yes on FreeBSD >= 5.
   10395            freebsd[1-4]*)        gl_cv_func_printf_sizes_c99="guessing no";;
   10396            freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
   10397                                  # Guess yes on Mac OS X >= 10.3.
   10398            darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
   10399            darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
   10400                                  # Guess yes on OpenBSD >= 3.9.
   10401            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
   10402                                  gl_cv_func_printf_sizes_c99="guessing no";;
   10403            openbsd*)             gl_cv_func_printf_sizes_c99="guessing yes";;
   10404                                  # Guess yes on Solaris >= 2.10.
   10405            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
   10406            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
   10407                                  # Guess yes on NetBSD >= 3.
   10408            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   10409                                  gl_cv_func_printf_sizes_c99="guessing no";;
   10410            netbsd*)              gl_cv_func_printf_sizes_c99="guessing yes";;
   10411                                  # If we don't know, assume the worst.
   10412            *)                    gl_cv_func_printf_sizes_c99="guessing no";;
   10413          esac
   10414 
   10415 else
   10416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10417 /* end confdefs.h.  */
   10418 
   10419 #include <stddef.h>
   10420 #include <stdio.h>
   10421 #include <string.h>
   10422 #include <sys/types.h>
   10423 #if HAVE_STDINT_H_WITH_UINTMAX
   10424 # include <stdint.h>
   10425 #endif
   10426 #if HAVE_INTTYPES_H_WITH_UINTMAX
   10427 # include <inttypes.h>
   10428 #endif
   10429 static char buf[100];
   10430 int main ()
   10431 {
   10432   int result = 0;
   10433 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
   10434   buf[0] = '\0';
   10435   if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
   10436       || strcmp (buf, "12345671 33") != 0)
   10437     result |= 1;
   10438 #endif
   10439   buf[0] = '\0';
   10440   if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
   10441       || strcmp (buf, "12345672 33") != 0)
   10442     result |= 2;
   10443   buf[0] = '\0';
   10444   if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
   10445       || strcmp (buf, "12345673 33") != 0)
   10446     result |= 4;
   10447   buf[0] = '\0';
   10448   if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
   10449       || strcmp (buf, "1.5 33") != 0)
   10450     result |= 8;
   10451   return result;
   10452 }
   10453 _ACEOF
   10454 if ac_fn_c_try_run "$LINENO"; then :
   10455   gl_cv_func_printf_sizes_c99=yes
   10456 else
   10457   gl_cv_func_printf_sizes_c99=no
   10458 fi
   10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10460   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10461 fi
   10462 
   10463 
   10464 fi
   10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
   10466 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
   10467 
   10468 
   10469 
   10470      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
   10471 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
   10472 if ${gl_cv_func_printf_long_double+:} false; then :
   10473   $as_echo_n "(cached) " >&6
   10474 else
   10475 
   10476       if test "$cross_compiling" = yes; then :
   10477 
   10478          case "$host_os" in
   10479            beos*)        gl_cv_func_printf_long_double="guessing no";;
   10480            mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
   10481            *)            gl_cv_func_printf_long_double="guessing yes";;
   10482          esac
   10483 
   10484 else
   10485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10486 /* end confdefs.h.  */
   10487 
   10488 #include <stdio.h>
   10489 #include <string.h>
   10490 static char buf[10000];
   10491 int main ()
   10492 {
   10493   int result = 0;
   10494   buf[0] = '\0';
   10495   if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
   10496       || strcmp (buf, "1.750000 33") != 0)
   10497     result |= 1;
   10498   buf[0] = '\0';
   10499   if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
   10500       || strcmp (buf, "1.750000e+00 33") != 0)
   10501     result |= 2;
   10502   buf[0] = '\0';
   10503   if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
   10504       || strcmp (buf, "1.75 33") != 0)
   10505     result |= 4;
   10506   return result;
   10507 }
   10508 _ACEOF
   10509 if ac_fn_c_try_run "$LINENO"; then :
   10510   gl_cv_func_printf_long_double=yes
   10511 else
   10512   gl_cv_func_printf_long_double=no
   10513 fi
   10514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10515   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10516 fi
   10517 
   10518 
   10519 fi
   10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
   10521 $as_echo "$gl_cv_func_printf_long_double" >&6; }
   10522 
   10523 
   10524 
   10525      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
   10526 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
   10527 if ${gl_cv_func_printf_infinite+:} false; then :
   10528   $as_echo_n "(cached) " >&6
   10529 else
   10530 
   10531       if test "$cross_compiling" = yes; then :
   10532 
   10533          case "$host_os" in
   10534                                  # Guess yes on glibc systems.
   10535            *-gnu*)               gl_cv_func_printf_infinite="guessing yes";;
   10536                                  # Guess yes on FreeBSD >= 6.
   10537            freebsd[1-5]*)        gl_cv_func_printf_infinite="guessing no";;
   10538            freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
   10539                                  # Guess yes on Mac OS X >= 10.3.
   10540            darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
   10541            darwin*)              gl_cv_func_printf_infinite="guessing yes";;
   10542                                  # Guess yes on HP-UX >= 11.
   10543            hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
   10544            hpux*)                gl_cv_func_printf_infinite="guessing yes";;
   10545                                  # Guess yes on NetBSD >= 3.
   10546            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   10547                                  gl_cv_func_printf_infinite="guessing no";;
   10548            netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
   10549                                  # Guess yes on BeOS.
   10550            beos*)                gl_cv_func_printf_infinite="guessing yes";;
   10551                                  # If we don't know, assume the worst.
   10552            *)                    gl_cv_func_printf_infinite="guessing no";;
   10553          esac
   10554 
   10555 else
   10556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10557 /* end confdefs.h.  */
   10558 
   10559 #include <stdio.h>
   10560 #include <string.h>
   10561 static int
   10562 strisnan (const char *string, size_t start_index, size_t end_index)
   10563 {
   10564   if (start_index < end_index)
   10565     {
   10566       if (string[start_index] == '-')
   10567         start_index++;
   10568       if (start_index + 3 <= end_index
   10569           && memcmp (string + start_index, "nan", 3) == 0)
   10570         {
   10571           start_index += 3;
   10572           if (start_index == end_index
   10573               || (string[start_index] == '(' && string[end_index - 1] == ')'))
   10574             return 1;
   10575         }
   10576     }
   10577   return 0;
   10578 }
   10579 static int
   10580 have_minus_zero ()
   10581 {
   10582   static double plus_zero = 0.0;
   10583   double minus_zero = - plus_zero;
   10584   return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
   10585 }
   10586 static char buf[10000];
   10587 static double zero = 0.0;
   10588 int main ()
   10589 {
   10590   int result = 0;
   10591   if (sprintf (buf, "%f", 1.0 / zero) < 0
   10592       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
   10593     result |= 1;
   10594   if (sprintf (buf, "%f", -1.0 / zero) < 0
   10595       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
   10596     result |= 1;
   10597   if (sprintf (buf, "%f", zero / zero) < 0
   10598       || !strisnan (buf, 0, strlen (buf)))
   10599     result |= 2;
   10600   if (sprintf (buf, "%e", 1.0 / zero) < 0
   10601       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
   10602     result |= 4;
   10603   if (sprintf (buf, "%e", -1.0 / zero) < 0
   10604       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
   10605     result |= 4;
   10606   if (sprintf (buf, "%e", zero / zero) < 0
   10607       || !strisnan (buf, 0, strlen (buf)))
   10608     result |= 8;
   10609   if (sprintf (buf, "%g", 1.0 / zero) < 0
   10610       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
   10611     result |= 16;
   10612   if (sprintf (buf, "%g", -1.0 / zero) < 0
   10613       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
   10614     result |= 16;
   10615   if (sprintf (buf, "%g", zero / zero) < 0
   10616       || !strisnan (buf, 0, strlen (buf)))
   10617     result |= 32;
   10618   /* This test fails on HP-UX 10.20.  */
   10619   if (have_minus_zero ())
   10620     if (sprintf (buf, "%g", - zero) < 0
   10621         || strcmp (buf, "-0") != 0)
   10622     result |= 64;
   10623   return result;
   10624 }
   10625 _ACEOF
   10626 if ac_fn_c_try_run "$LINENO"; then :
   10627   gl_cv_func_printf_infinite=yes
   10628 else
   10629   gl_cv_func_printf_infinite=no
   10630 fi
   10631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10632   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10633 fi
   10634 
   10635 
   10636 fi
   10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
   10638 $as_echo "$gl_cv_func_printf_infinite" >&6; }
   10639 
   10640 
   10641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   10642 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   10643 if ${ac_cv_c_bigendian+:} false; then :
   10644   $as_echo_n "(cached) " >&6
   10645 else
   10646   ac_cv_c_bigendian=unknown
   10647     # See if we're dealing with a universal compiler.
   10648     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10649 /* end confdefs.h.  */
   10650 #ifndef __APPLE_CC__
   10651 	       not a universal capable compiler
   10652 	     #endif
   10653 	     typedef int dummy;
   10654 
   10655 _ACEOF
   10656 if ac_fn_c_try_compile "$LINENO"; then :
   10657 
   10658 	# Check for potential -arch flags.  It is not universal unless
   10659 	# there are at least two -arch flags with different values.
   10660 	ac_arch=
   10661 	ac_prev=
   10662 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   10663 	 if test -n "$ac_prev"; then
   10664 	   case $ac_word in
   10665 	     i?86 | x86_64 | ppc | ppc64)
   10666 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   10667 		 ac_arch=$ac_word
   10668 	       else
   10669 		 ac_cv_c_bigendian=universal
   10670 		 break
   10671 	       fi
   10672 	       ;;
   10673 	   esac
   10674 	   ac_prev=
   10675 	 elif test "x$ac_word" = "x-arch"; then
   10676 	   ac_prev=arch
   10677 	 fi
   10678        done
   10679 fi
   10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10681     if test $ac_cv_c_bigendian = unknown; then
   10682       # See if sys/param.h defines the BYTE_ORDER macro.
   10683       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10684 /* end confdefs.h.  */
   10685 #include <sys/types.h>
   10686 	     #include <sys/param.h>
   10687 
   10688 int
   10689 main ()
   10690 {
   10691 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   10692 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   10693 		     && LITTLE_ENDIAN)
   10694 	      bogus endian macros
   10695 	     #endif
   10696 
   10697   ;
   10698   return 0;
   10699 }
   10700 _ACEOF
   10701 if ac_fn_c_try_compile "$LINENO"; then :
   10702   # It does; now see whether it defined to BIG_ENDIAN or not.
   10703 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10704 /* end confdefs.h.  */
   10705 #include <sys/types.h>
   10706 		#include <sys/param.h>
   10707 
   10708 int
   10709 main ()
   10710 {
   10711 #if BYTE_ORDER != BIG_ENDIAN
   10712 		 not big endian
   10713 		#endif
   10714 
   10715   ;
   10716   return 0;
   10717 }
   10718 _ACEOF
   10719 if ac_fn_c_try_compile "$LINENO"; then :
   10720   ac_cv_c_bigendian=yes
   10721 else
   10722   ac_cv_c_bigendian=no
   10723 fi
   10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10725 fi
   10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10727     fi
   10728     if test $ac_cv_c_bigendian = unknown; then
   10729       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   10730       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10731 /* end confdefs.h.  */
   10732 #include <limits.h>
   10733 
   10734 int
   10735 main ()
   10736 {
   10737 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   10738 	      bogus endian macros
   10739 	     #endif
   10740 
   10741   ;
   10742   return 0;
   10743 }
   10744 _ACEOF
   10745 if ac_fn_c_try_compile "$LINENO"; then :
   10746   # It does; now see whether it defined to _BIG_ENDIAN or not.
   10747 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10748 /* end confdefs.h.  */
   10749 #include <limits.h>
   10750 
   10751 int
   10752 main ()
   10753 {
   10754 #ifndef _BIG_ENDIAN
   10755 		 not big endian
   10756 		#endif
   10757 
   10758   ;
   10759   return 0;
   10760 }
   10761 _ACEOF
   10762 if ac_fn_c_try_compile "$LINENO"; then :
   10763   ac_cv_c_bigendian=yes
   10764 else
   10765   ac_cv_c_bigendian=no
   10766 fi
   10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10768 fi
   10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10770     fi
   10771     if test $ac_cv_c_bigendian = unknown; then
   10772       # Compile a test program.
   10773       if test "$cross_compiling" = yes; then :
   10774   # Try to guess by grepping values from an object file.
   10775 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10776 /* end confdefs.h.  */
   10777 short int ascii_mm[] =
   10778 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   10779 		short int ascii_ii[] =
   10780 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   10781 		int use_ascii (int i) {
   10782 		  return ascii_mm[i] + ascii_ii[i];
   10783 		}
   10784 		short int ebcdic_ii[] =
   10785 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   10786 		short int ebcdic_mm[] =
   10787 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   10788 		int use_ebcdic (int i) {
   10789 		  return ebcdic_mm[i] + ebcdic_ii[i];
   10790 		}
   10791 		extern int foo;
   10792 
   10793 int
   10794 main ()
   10795 {
   10796 return use_ascii (foo) == use_ebcdic (foo);
   10797   ;
   10798   return 0;
   10799 }
   10800 _ACEOF
   10801 if ac_fn_c_try_compile "$LINENO"; then :
   10802   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   10803 	      ac_cv_c_bigendian=yes
   10804 	    fi
   10805 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   10806 	      if test "$ac_cv_c_bigendian" = unknown; then
   10807 		ac_cv_c_bigendian=no
   10808 	      else
   10809 		# finding both strings is unlikely to happen, but who knows?
   10810 		ac_cv_c_bigendian=unknown
   10811 	      fi
   10812 	    fi
   10813 fi
   10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10815 else
   10816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10817 /* end confdefs.h.  */
   10818 $ac_includes_default
   10819 int
   10820 main ()
   10821 {
   10822 
   10823 	     /* Are we little or big endian?  From Harbison&Steele.  */
   10824 	     union
   10825 	     {
   10826 	       long int l;
   10827 	       char c[sizeof (long int)];
   10828 	     } u;
   10829 	     u.l = 1;
   10830 	     return u.c[sizeof (long int) - 1] == 1;
   10831 
   10832   ;
   10833   return 0;
   10834 }
   10835 _ACEOF
   10836 if ac_fn_c_try_run "$LINENO"; then :
   10837   ac_cv_c_bigendian=no
   10838 else
   10839   ac_cv_c_bigendian=yes
   10840 fi
   10841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10842   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10843 fi
   10844 
   10845     fi
   10846 fi
   10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   10848 $as_echo "$ac_cv_c_bigendian" >&6; }
   10849  case $ac_cv_c_bigendian in #(
   10850    yes)
   10851      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   10852 ;; #(
   10853    no)
   10854       ;; #(
   10855    universal)
   10856 
   10857 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   10858 
   10859      ;; #(
   10860    *)
   10861      as_fn_error $? "unknown endianness
   10862  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   10863  esac
   10864 
   10865 
   10866 
   10867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
   10868 $as_echo_n "checking whether long double and double are the same... " >&6; }
   10869 if ${gl_cv_long_double_equals_double+:} false; then :
   10870   $as_echo_n "(cached) " >&6
   10871 else
   10872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10873 /* end confdefs.h.  */
   10874 #include <float.h>
   10875 int
   10876 main ()
   10877 {
   10878 typedef int check[sizeof (long double) == sizeof (double)
   10879                               && LDBL_MANT_DIG == DBL_MANT_DIG
   10880                               && LDBL_MAX_EXP == DBL_MAX_EXP
   10881                               && LDBL_MIN_EXP == DBL_MIN_EXP
   10882                               ? 1 : -1];
   10883 
   10884   ;
   10885   return 0;
   10886 }
   10887 _ACEOF
   10888 if ac_fn_c_try_compile "$LINENO"; then :
   10889   gl_cv_long_double_equals_double=yes
   10890 else
   10891   gl_cv_long_double_equals_double=no
   10892 fi
   10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10894 
   10895 fi
   10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
   10897 $as_echo "$gl_cv_long_double_equals_double" >&6; }
   10898   if test $gl_cv_long_double_equals_double = yes; then
   10899 
   10900 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
   10901 
   10902     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
   10903   else
   10904     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
   10905   fi
   10906 
   10907 
   10908 
   10909 
   10910 
   10911 
   10912 
   10913          if test -n "$gl_printf_safe"; then
   10914 
   10915 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
   10916 
   10917   fi
   10918   case "$gl_cv_func_printf_long_double" in
   10919     *yes)
   10920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
   10921 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
   10922 if ${gl_cv_func_printf_infinite_long_double+:} false; then :
   10923   $as_echo_n "(cached) " >&6
   10924 else
   10925 
   10926           if test "$cross_compiling" = yes; then :
   10927 
   10928              case "$host_cpu" in
   10929                                      # Guess no on ia64, x86_64, i386.
   10930                ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
   10931                *)
   10932                  case "$host_os" in
   10933                                          # Guess yes on glibc systems.
   10934                    *-gnu*)               gl_cv_func_printf_infinite_long_double="guessing yes";;
   10935                                          # Guess yes on FreeBSD >= 6.
   10936                    freebsd[1-5]*)        gl_cv_func_printf_infinite_long_double="guessing no";;
   10937                    freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
   10938                                          # Guess yes on HP-UX >= 11.
   10939                    hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
   10940                    hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
   10941                                          # If we don't know, assume the worst.
   10942                    *)                    gl_cv_func_printf_infinite_long_double="guessing no";;
   10943                  esac
   10944                  ;;
   10945              esac
   10946 
   10947 else
   10948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10949 /* end confdefs.h.  */
   10950 
   10951 
   10952 #include <stdlib.h>
   10953 #if defined __MACH__ && defined __APPLE__
   10954 /* Avoid a crash on Mac OS X.  */
   10955 #include <mach/mach.h>
   10956 #include <mach/mach_error.h>
   10957 #include <mach/thread_status.h>
   10958 #include <mach/exception.h>
   10959 #include <mach/task.h>
   10960 #include <pthread.h>
   10961 /* The exception port on which our thread listens.  */
   10962 static mach_port_t our_exception_port;
   10963 /* The main function of the thread listening for exceptions of type
   10964    EXC_BAD_ACCESS.  */
   10965 static void *
   10966 mach_exception_thread (void *arg)
   10967 {
   10968   /* Buffer for a message to be received.  */
   10969   struct {
   10970     mach_msg_header_t head;
   10971     mach_msg_body_t msgh_body;
   10972     char data[1024];
   10973   } msg;
   10974   mach_msg_return_t retval;
   10975   /* Wait for a message on the exception port.  */
   10976   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
   10977                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
   10978   if (retval != MACH_MSG_SUCCESS)
   10979     abort ();
   10980   exit (1);
   10981 }
   10982 static void
   10983 nocrash_init (void)
   10984 {
   10985   mach_port_t self = mach_task_self ();
   10986   /* Allocate a port on which the thread shall listen for exceptions.  */
   10987   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
   10988       == KERN_SUCCESS) {
   10989     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
   10990     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
   10991                                 MACH_MSG_TYPE_MAKE_SEND)
   10992         == KERN_SUCCESS) {
   10993       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
   10994          for us.  */
   10995       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
   10996       /* Create the thread listening on the exception port.  */
   10997       pthread_attr_t attr;
   10998       pthread_t thread;
   10999       if (pthread_attr_init (&attr) == 0
   11000           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
   11001           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
   11002         pthread_attr_destroy (&attr);
   11003         /* Replace the exception port info for these exceptions with our own.
   11004            Note that we replace the exception port for the entire task, not only
   11005            for a particular thread.  This has the effect that when our exception
   11006            port gets the message, the thread specific exception port has already
   11007            been asked, and we don't need to bother about it.
   11008            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
   11009         task_set_exception_ports (self, mask, our_exception_port,
   11010                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
   11011       }
   11012     }
   11013   }
   11014 }
   11015 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
   11016 /* Avoid a crash on native Windows.  */
   11017 #define WIN32_LEAN_AND_MEAN
   11018 #include <windows.h>
   11019 #include <winerror.h>
   11020 static LONG WINAPI
   11021 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
   11022 {
   11023   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
   11024     {
   11025     case EXCEPTION_ACCESS_VIOLATION:
   11026     case EXCEPTION_IN_PAGE_ERROR:
   11027     case EXCEPTION_STACK_OVERFLOW:
   11028     case EXCEPTION_GUARD_PAGE:
   11029     case EXCEPTION_PRIV_INSTRUCTION:
   11030     case EXCEPTION_ILLEGAL_INSTRUCTION:
   11031     case EXCEPTION_DATATYPE_MISALIGNMENT:
   11032     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
   11033     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
   11034       exit (1);
   11035     }
   11036   return EXCEPTION_CONTINUE_SEARCH;
   11037 }
   11038 static void
   11039 nocrash_init (void)
   11040 {
   11041   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
   11042 }
   11043 #else
   11044 /* Avoid a crash on POSIX systems.  */
   11045 #include <signal.h>
   11046 /* A POSIX signal handler.  */
   11047 static void
   11048 exception_handler (int sig)
   11049 {
   11050   exit (1);
   11051 }
   11052 static void
   11053 nocrash_init (void)
   11054 {
   11055 #ifdef SIGSEGV
   11056   signal (SIGSEGV, exception_handler);
   11057 #endif
   11058 #ifdef SIGBUS
   11059   signal (SIGBUS, exception_handler);
   11060 #endif
   11061 }
   11062 #endif
   11063 
   11064 #include <float.h>
   11065 #include <stdio.h>
   11066 #include <string.h>
   11067 static int
   11068 strisnan (const char *string, size_t start_index, size_t end_index)
   11069 {
   11070   if (start_index < end_index)
   11071     {
   11072       if (string[start_index] == '-')
   11073         start_index++;
   11074       if (start_index + 3 <= end_index
   11075           && memcmp (string + start_index, "nan", 3) == 0)
   11076         {
   11077           start_index += 3;
   11078           if (start_index == end_index
   11079               || (string[start_index] == '(' && string[end_index - 1] == ')'))
   11080             return 1;
   11081         }
   11082     }
   11083   return 0;
   11084 }
   11085 static char buf[10000];
   11086 static long double zeroL = 0.0L;
   11087 int main ()
   11088 {
   11089   int result = 0;
   11090   nocrash_init();
   11091   if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
   11092       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
   11093     result |= 1;
   11094   if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
   11095       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
   11096     result |= 1;
   11097   if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
   11098       || !strisnan (buf, 0, strlen (buf)))
   11099     result |= 1;
   11100   if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
   11101       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
   11102     result |= 1;
   11103   if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
   11104       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
   11105     result |= 1;
   11106   if (sprintf (buf, "%Le", zeroL / zeroL) < 0
   11107       || !strisnan (buf, 0, strlen (buf)))
   11108     result |= 1;
   11109   if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
   11110       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
   11111     result |= 1;
   11112   if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
   11113       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
   11114     result |= 1;
   11115   if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
   11116       || !strisnan (buf, 0, strlen (buf)))
   11117     result |= 1;
   11118 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   11119 /* Representation of an 80-bit 'long double' as an initializer for a sequence
   11120    of 'unsigned int' words.  */
   11121 # ifdef WORDS_BIGENDIAN
   11122 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   11123      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
   11124        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
   11125        (unsigned int) (mantlo) << 16                                        \
   11126      }
   11127 # else
   11128 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   11129      { mantlo, manthi, exponent }
   11130 # endif
   11131   { /* Quiet NaN.  */
   11132     static union { unsigned int word[4]; long double value; } x =
   11133       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
   11134     if (sprintf (buf, "%Lf", x.value) < 0
   11135         || !strisnan (buf, 0, strlen (buf)))
   11136       result |= 2;
   11137     if (sprintf (buf, "%Le", x.value) < 0
   11138         || !strisnan (buf, 0, strlen (buf)))
   11139       result |= 2;
   11140     if (sprintf (buf, "%Lg", x.value) < 0
   11141         || !strisnan (buf, 0, strlen (buf)))
   11142       result |= 2;
   11143   }
   11144   {
   11145     /* Signalling NaN.  */
   11146     static union { unsigned int word[4]; long double value; } x =
   11147       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
   11148     if (sprintf (buf, "%Lf", x.value) < 0
   11149         || !strisnan (buf, 0, strlen (buf)))
   11150       result |= 2;
   11151     if (sprintf (buf, "%Le", x.value) < 0
   11152         || !strisnan (buf, 0, strlen (buf)))
   11153       result |= 2;
   11154     if (sprintf (buf, "%Lg", x.value) < 0
   11155         || !strisnan (buf, 0, strlen (buf)))
   11156       result |= 2;
   11157   }
   11158   { /* Pseudo-NaN.  */
   11159     static union { unsigned int word[4]; long double value; } x =
   11160       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
   11161     if (sprintf (buf, "%Lf", x.value) < 0
   11162         || !strisnan (buf, 0, strlen (buf)))
   11163       result |= 4;
   11164     if (sprintf (buf, "%Le", x.value) < 0
   11165         || !strisnan (buf, 0, strlen (buf)))
   11166       result |= 4;
   11167     if (sprintf (buf, "%Lg", x.value) < 0
   11168         || !strisnan (buf, 0, strlen (buf)))
   11169       result |= 4;
   11170   }
   11171   { /* Pseudo-Infinity.  */
   11172     static union { unsigned int word[4]; long double value; } x =
   11173       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
   11174     if (sprintf (buf, "%Lf", x.value) < 0
   11175         || !strisnan (buf, 0, strlen (buf)))
   11176       result |= 8;
   11177     if (sprintf (buf, "%Le", x.value) < 0
   11178         || !strisnan (buf, 0, strlen (buf)))
   11179       result |= 8;
   11180     if (sprintf (buf, "%Lg", x.value) < 0
   11181         || !strisnan (buf, 0, strlen (buf)))
   11182       result |= 8;
   11183   }
   11184   { /* Pseudo-Zero.  */
   11185     static union { unsigned int word[4]; long double value; } x =
   11186       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
   11187     if (sprintf (buf, "%Lf", x.value) < 0
   11188         || !strisnan (buf, 0, strlen (buf)))
   11189       result |= 16;
   11190     if (sprintf (buf, "%Le", x.value) < 0
   11191         || !strisnan (buf, 0, strlen (buf)))
   11192       result |= 16;
   11193     if (sprintf (buf, "%Lg", x.value) < 0
   11194         || !strisnan (buf, 0, strlen (buf)))
   11195       result |= 16;
   11196   }
   11197   { /* Unnormalized number.  */
   11198     static union { unsigned int word[4]; long double value; } x =
   11199       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
   11200     if (sprintf (buf, "%Lf", x.value) < 0
   11201         || !strisnan (buf, 0, strlen (buf)))
   11202       result |= 32;
   11203     if (sprintf (buf, "%Le", x.value) < 0
   11204         || !strisnan (buf, 0, strlen (buf)))
   11205       result |= 32;
   11206     if (sprintf (buf, "%Lg", x.value) < 0
   11207         || !strisnan (buf, 0, strlen (buf)))
   11208       result |= 32;
   11209   }
   11210   { /* Pseudo-Denormal.  */
   11211     static union { unsigned int word[4]; long double value; } x =
   11212       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
   11213     if (sprintf (buf, "%Lf", x.value) < 0
   11214         || !strisnan (buf, 0, strlen (buf)))
   11215       result |= 64;
   11216     if (sprintf (buf, "%Le", x.value) < 0
   11217         || !strisnan (buf, 0, strlen (buf)))
   11218       result |= 64;
   11219     if (sprintf (buf, "%Lg", x.value) < 0
   11220         || !strisnan (buf, 0, strlen (buf)))
   11221       result |= 64;
   11222   }
   11223 #endif
   11224   return result;
   11225 }
   11226 _ACEOF
   11227 if ac_fn_c_try_run "$LINENO"; then :
   11228   gl_cv_func_printf_infinite_long_double=yes
   11229 else
   11230   gl_cv_func_printf_infinite_long_double=no
   11231 fi
   11232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11233   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11234 fi
   11235 
   11236 
   11237 fi
   11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
   11239 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
   11240       ;;
   11241     *)
   11242       gl_cv_func_printf_infinite_long_double="irrelevant"
   11243       ;;
   11244   esac
   11245 
   11246 
   11247 
   11248      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
   11249 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
   11250 if ${gl_cv_func_printf_directive_a+:} false; then :
   11251   $as_echo_n "(cached) " >&6
   11252 else
   11253 
   11254       if test "$cross_compiling" = yes; then :
   11255 
   11256          case "$host_os" in
   11257                                  # Guess yes on glibc >= 2.5 systems.
   11258            *-gnu*)
   11259              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11260 /* end confdefs.h.  */
   11261 
   11262                #include <features.h>
   11263                #ifdef __GNU_LIBRARY__
   11264                 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
   11265                  BZ2908
   11266                 #endif
   11267                #endif
   11268 
   11269 _ACEOF
   11270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11271   $EGREP "BZ2908" >/dev/null 2>&1; then :
   11272   gl_cv_func_printf_directive_a="guessing yes"
   11273 else
   11274   gl_cv_func_printf_directive_a="guessing no"
   11275 fi
   11276 rm -f conftest*
   11277 
   11278              ;;
   11279                                  # If we don't know, assume the worst.
   11280            *)                    gl_cv_func_printf_directive_a="guessing no";;
   11281          esac
   11282 
   11283 else
   11284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11285 /* end confdefs.h.  */
   11286 
   11287 #include <stdio.h>
   11288 #include <string.h>
   11289 static char buf[100];
   11290 static double zero = 0.0;
   11291 int main ()
   11292 {
   11293   int result = 0;
   11294   if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
   11295       || (strcmp (buf, "0x1.922p+1 33") != 0
   11296           && strcmp (buf, "0x3.244p+0 33") != 0
   11297           && strcmp (buf, "0x6.488p-1 33") != 0
   11298           && strcmp (buf, "0xc.91p-2 33") != 0))
   11299     result |= 1;
   11300   if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
   11301       || (strcmp (buf, "-0X1.922P+1 33") != 0
   11302           && strcmp (buf, "-0X3.244P+0 33") != 0
   11303           && strcmp (buf, "-0X6.488P-1 33") != 0
   11304           && strcmp (buf, "-0XC.91P-2 33") != 0))
   11305     result |= 2;
   11306   /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
   11307   if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
   11308       || (strcmp (buf, "0x1.83p+0 33") != 0
   11309           && strcmp (buf, "0x3.05p-1 33") != 0
   11310           && strcmp (buf, "0x6.0ap-2 33") != 0
   11311           && strcmp (buf, "0xc.14p-3 33") != 0))
   11312     result |= 4;
   11313   /* This catches a FreeBSD 6.1 bug.  See
   11314      <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
   11315   if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
   11316       || buf[0] == '0')
   11317     result |= 8;
   11318   /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug.  */
   11319   if (sprintf (buf, "%.1a", 1.999) < 0
   11320       || (strcmp (buf, "0x1.0p+1") != 0
   11321           && strcmp (buf, "0x2.0p+0") != 0
   11322           && strcmp (buf, "0x4.0p-1") != 0
   11323           && strcmp (buf, "0x8.0p-2") != 0))
   11324     result |= 16;
   11325   /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
   11326      glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
   11327   if (sprintf (buf, "%.1La", 1.999L) < 0
   11328       || (strcmp (buf, "0x1.0p+1") != 0
   11329           && strcmp (buf, "0x2.0p+0") != 0
   11330           && strcmp (buf, "0x4.0p-1") != 0
   11331           && strcmp (buf, "0x8.0p-2") != 0))
   11332     result |= 32;
   11333   return result;
   11334 }
   11335 _ACEOF
   11336 if ac_fn_c_try_run "$LINENO"; then :
   11337   gl_cv_func_printf_directive_a=yes
   11338 else
   11339   gl_cv_func_printf_directive_a=no
   11340 fi
   11341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11342   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11343 fi
   11344 
   11345 
   11346 fi
   11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
   11348 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
   11349 
   11350 
   11351 
   11352      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
   11353 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
   11354 if ${gl_cv_func_printf_directive_f+:} false; then :
   11355   $as_echo_n "(cached) " >&6
   11356 else
   11357 
   11358       if test "$cross_compiling" = yes; then :
   11359 
   11360          case "$host_os" in
   11361                                  # Guess yes on glibc systems.
   11362            *-gnu*)               gl_cv_func_printf_directive_f="guessing yes";;
   11363                                  # Guess yes on FreeBSD >= 6.
   11364            freebsd[1-5]*)        gl_cv_func_printf_directive_f="guessing no";;
   11365            freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
   11366                                  # Guess yes on Mac OS X >= 10.3.
   11367            darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
   11368            darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
   11369                                  # Guess yes on Solaris >= 2.10.
   11370            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
   11371            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
   11372                                  # If we don't know, assume the worst.
   11373            *)                    gl_cv_func_printf_directive_f="guessing no";;
   11374          esac
   11375 
   11376 else
   11377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11378 /* end confdefs.h.  */
   11379 
   11380 #include <stdio.h>
   11381 #include <string.h>
   11382 static char buf[100];
   11383 static double zero = 0.0;
   11384 int main ()
   11385 {
   11386   int result = 0;
   11387   if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
   11388       || strcmp (buf, "1234567.000000 33") != 0)
   11389     result |= 1;
   11390   if (sprintf (buf, "%F", 1.0 / zero) < 0
   11391       || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
   11392     result |= 2;
   11393   /* This catches a Cygwin 1.5.x bug.  */
   11394   if (sprintf (buf, "%.F", 1234.0) < 0
   11395       || strcmp (buf, "1234") != 0)
   11396     result |= 4;
   11397   return result;
   11398 }
   11399 _ACEOF
   11400 if ac_fn_c_try_run "$LINENO"; then :
   11401   gl_cv_func_printf_directive_f=yes
   11402 else
   11403   gl_cv_func_printf_directive_f=no
   11404 fi
   11405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11406   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11407 fi
   11408 
   11409 
   11410 fi
   11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
   11412 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
   11413 
   11414 
   11415 
   11416      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
   11417 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
   11418 if ${gl_cv_func_printf_directive_n+:} false; then :
   11419   $as_echo_n "(cached) " >&6
   11420 else
   11421 
   11422       if test "$cross_compiling" = yes; then :
   11423 
   11424          case "$host_os" in
   11425            mingw*) gl_cv_func_printf_directive_n="guessing no";;
   11426            *)      gl_cv_func_printf_directive_n="guessing yes";;
   11427          esac
   11428 
   11429 else
   11430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11431 /* end confdefs.h.  */
   11432 
   11433 #include <stdio.h>
   11434 #include <stdlib.h>
   11435 #include <string.h>
   11436 #ifdef _MSC_VER
   11437 /* See page about "Parameter Validation" on msdn.microsoft.com.  */
   11438 static void cdecl
   11439 invalid_parameter_handler (const wchar_t *expression,
   11440                            const wchar_t *function,
   11441                            const wchar_t *file, unsigned int line,
   11442                            uintptr_t dummy)
   11443 {
   11444   exit (1);
   11445 }
   11446 #endif
   11447 static char fmtstring[10];
   11448 static char buf[100];
   11449 int main ()
   11450 {
   11451   int count = -1;
   11452 #ifdef _MSC_VER
   11453   _set_invalid_parameter_handler (invalid_parameter_handler);
   11454 #endif
   11455   /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
   11456      support %n in format strings in read-only memory but not in writable
   11457      memory.  */
   11458   strcpy (fmtstring, "%d %n");
   11459   if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
   11460       || strcmp (buf, "123 ") != 0
   11461       || count != 4)
   11462     return 1;
   11463   return 0;
   11464 }
   11465 _ACEOF
   11466 if ac_fn_c_try_run "$LINENO"; then :
   11467   gl_cv_func_printf_directive_n=yes
   11468 else
   11469   gl_cv_func_printf_directive_n=no
   11470 fi
   11471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11472   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11473 fi
   11474 
   11475 
   11476 fi
   11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
   11478 $as_echo "$gl_cv_func_printf_directive_n" >&6; }
   11479 
   11480 
   11481 
   11482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
   11483 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
   11484 if ${gl_cv_func_printf_directive_ls+:} false; then :
   11485   $as_echo_n "(cached) " >&6
   11486 else
   11487 
   11488       if test "$cross_compiling" = yes; then :
   11489 
   11490          case "$host_os" in
   11491            openbsd*)        gl_cv_func_printf_directive_ls="guessing no";;
   11492            irix*)           gl_cv_func_printf_directive_ls="guessing no";;
   11493            solaris*)        gl_cv_func_printf_directive_ls="guessing no";;
   11494            cygwin*)         gl_cv_func_printf_directive_ls="guessing no";;
   11495            beos* | haiku*)  gl_cv_func_printf_directive_ls="guessing no";;
   11496            *)               gl_cv_func_printf_directive_ls="guessing yes";;
   11497          esac
   11498 
   11499 else
   11500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11501 /* end confdefs.h.  */
   11502 
   11503 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   11504    <wchar.h>.
   11505    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   11506    included before <wchar.h>.  */
   11507 #include <stddef.h>
   11508 #include <stdio.h>
   11509 #include <time.h>
   11510 #include <wchar.h>
   11511 #include <string.h>
   11512 int main ()
   11513 {
   11514   int result = 0;
   11515   char buf[100];
   11516   /* Test whether %ls works at all.
   11517      This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
   11518      Cygwin 1.5.  */
   11519   {
   11520     static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
   11521     buf[0] = '\0';
   11522     if (sprintf (buf, "%ls", wstring) < 0
   11523         || strcmp (buf, "abc") != 0)
   11524       result |= 1;
   11525   }
   11526   /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
   11527      assertion failure inside libc), but not on OpenBSD 4.0.  */
   11528   {
   11529     static const wchar_t wstring[] = { 'a', 0 };
   11530     buf[0] = '\0';
   11531     if (sprintf (buf, "%ls", wstring) < 0
   11532         || strcmp (buf, "a") != 0)
   11533       result |= 2;
   11534   }
   11535   /* Test whether precisions in %ls are supported as specified in ISO C 99
   11536      section 7.19.6.1:
   11537        "If a precision is specified, no more than that many bytes are written
   11538         (including shift sequences, if any), and the array shall contain a
   11539         null wide character if, to equal the multibyte character sequence
   11540         length given by the precision, the function would need to access a
   11541         wide character one past the end of the array."
   11542      This test fails on Solaris 10.  */
   11543   {
   11544     static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
   11545     buf[0] = '\0';
   11546     if (sprintf (buf, "%.2ls", wstring) < 0
   11547         || strcmp (buf, "ab") != 0)
   11548       result |= 8;
   11549   }
   11550   return result;
   11551 }
   11552 _ACEOF
   11553 if ac_fn_c_try_run "$LINENO"; then :
   11554   gl_cv_func_printf_directive_ls=yes
   11555 else
   11556   gl_cv_func_printf_directive_ls=no
   11557 fi
   11558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11559   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11560 fi
   11561 
   11562 
   11563 fi
   11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
   11565 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
   11566 
   11567 
   11568 
   11569      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
   11570 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
   11571 if ${gl_cv_func_printf_positions+:} false; then :
   11572   $as_echo_n "(cached) " >&6
   11573 else
   11574 
   11575       if test "$cross_compiling" = yes; then :
   11576 
   11577          case "$host_os" in
   11578            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
   11579                          gl_cv_func_printf_positions="guessing no";;
   11580            beos*)        gl_cv_func_printf_positions="guessing no";;
   11581            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
   11582            *)            gl_cv_func_printf_positions="guessing yes";;
   11583          esac
   11584 
   11585 else
   11586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11587 /* end confdefs.h.  */
   11588 
   11589 #include <stdio.h>
   11590 #include <string.h>
   11591 /* The string "%2$d %1$d", with dollar characters protected from the shell's
   11592    dollar expansion (possibly an autoconf bug).  */
   11593 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
   11594 static char buf[100];
   11595 int main ()
   11596 {
   11597   sprintf (buf, format, 33, 55);
   11598   return (strcmp (buf, "55 33") != 0);
   11599 }
   11600 _ACEOF
   11601 if ac_fn_c_try_run "$LINENO"; then :
   11602   gl_cv_func_printf_positions=yes
   11603 else
   11604   gl_cv_func_printf_positions=no
   11605 fi
   11606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11607   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11608 fi
   11609 
   11610 
   11611 fi
   11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
   11613 $as_echo "$gl_cv_func_printf_positions" >&6; }
   11614 
   11615 
   11616 
   11617      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
   11618 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
   11619 if ${gl_cv_func_printf_flag_grouping+:} false; then :
   11620   $as_echo_n "(cached) " >&6
   11621 else
   11622 
   11623       if test "$cross_compiling" = yes; then :
   11624 
   11625          case "$host_os" in
   11626            cygwin*)      gl_cv_func_printf_flag_grouping="guessing no";;
   11627            netbsd*)      gl_cv_func_printf_flag_grouping="guessing no";;
   11628            mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
   11629            *)            gl_cv_func_printf_flag_grouping="guessing yes";;
   11630          esac
   11631 
   11632 else
   11633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11634 /* end confdefs.h.  */
   11635 
   11636 #include <stdio.h>
   11637 #include <string.h>
   11638 static char buf[100];
   11639 int main ()
   11640 {
   11641   if (sprintf (buf, "%'d %d", 1234567, 99) < 0
   11642       || buf[strlen (buf) - 1] != '9')
   11643     return 1;
   11644   return 0;
   11645 }
   11646 _ACEOF
   11647 if ac_fn_c_try_run "$LINENO"; then :
   11648   gl_cv_func_printf_flag_grouping=yes
   11649 else
   11650   gl_cv_func_printf_flag_grouping=no
   11651 fi
   11652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11653   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11654 fi
   11655 
   11656 
   11657 fi
   11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
   11659 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
   11660 
   11661 
   11662 
   11663      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
   11664 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
   11665 if ${gl_cv_func_printf_flag_leftadjust+:} false; then :
   11666   $as_echo_n "(cached) " >&6
   11667 else
   11668 
   11669       if test "$cross_compiling" = yes; then :
   11670 
   11671          case "$host_os" in
   11672                     # Guess yes on HP-UX 11.
   11673            hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
   11674                     # Guess no on HP-UX 10 and older.
   11675            hpux*)   gl_cv_func_printf_flag_leftadjust="guessing no";;
   11676                     # Guess yes otherwise.
   11677            *)       gl_cv_func_printf_flag_leftadjust="guessing yes";;
   11678          esac
   11679 
   11680 else
   11681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11682 /* end confdefs.h.  */
   11683 
   11684 #include <stdio.h>
   11685 #include <string.h>
   11686 static char buf[100];
   11687 int main ()
   11688 {
   11689   /* Check that a '-' flag is not annihilated by a negative width.  */
   11690   if (sprintf (buf, "a%-*sc", -3, "b") < 0
   11691       || strcmp (buf, "ab  c") != 0)
   11692     return 1;
   11693   return 0;
   11694 }
   11695 _ACEOF
   11696 if ac_fn_c_try_run "$LINENO"; then :
   11697   gl_cv_func_printf_flag_leftadjust=yes
   11698 else
   11699   gl_cv_func_printf_flag_leftadjust=no
   11700 fi
   11701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11702   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11703 fi
   11704 
   11705 
   11706 fi
   11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
   11708 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
   11709 
   11710 
   11711 
   11712      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
   11713 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
   11714 if ${gl_cv_func_printf_flag_zero+:} false; then :
   11715   $as_echo_n "(cached) " >&6
   11716 else
   11717 
   11718       if test "$cross_compiling" = yes; then :
   11719 
   11720          case "$host_os" in
   11721                    # Guess yes on glibc systems.
   11722            *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
   11723                    # Guess yes on BeOS.
   11724            beos*)  gl_cv_func_printf_flag_zero="guessing yes";;
   11725                    # If we don't know, assume the worst.
   11726            *)      gl_cv_func_printf_flag_zero="guessing no";;
   11727          esac
   11728 
   11729 else
   11730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11731 /* end confdefs.h.  */
   11732 
   11733 #include <stdio.h>
   11734 #include <string.h>
   11735 static char buf[100];
   11736 static double zero = 0.0;
   11737 int main ()
   11738 {
   11739   if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
   11740       || (strcmp (buf, "       inf") != 0
   11741           && strcmp (buf, "  infinity") != 0))
   11742     return 1;
   11743   return 0;
   11744 }
   11745 _ACEOF
   11746 if ac_fn_c_try_run "$LINENO"; then :
   11747   gl_cv_func_printf_flag_zero=yes
   11748 else
   11749   gl_cv_func_printf_flag_zero=no
   11750 fi
   11751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11752   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11753 fi
   11754 
   11755 
   11756 fi
   11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
   11758 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
   11759 
   11760 
   11761 
   11762      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
   11763 $as_echo_n "checking whether printf supports large precisions... " >&6; }
   11764 if ${gl_cv_func_printf_precision+:} false; then :
   11765   $as_echo_n "(cached) " >&6
   11766 else
   11767 
   11768       if test "$cross_compiling" = yes; then :
   11769 
   11770          case "$host_os" in
   11771            # Guess no only on Solaris, native Windows, and BeOS systems.
   11772            solaris*)     gl_cv_func_printf_precision="guessing no" ;;
   11773            mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
   11774            beos*)        gl_cv_func_printf_precision="guessing no" ;;
   11775            *)            gl_cv_func_printf_precision="guessing yes" ;;
   11776          esac
   11777 
   11778 else
   11779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11780 /* end confdefs.h.  */
   11781 
   11782 #include <stdio.h>
   11783 #include <string.h>
   11784 static char buf[5000];
   11785 int main ()
   11786 {
   11787   int result = 0;
   11788 #ifdef __BEOS__
   11789   /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
   11790   return 1;
   11791 #endif
   11792   if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
   11793     result |= 1;
   11794   if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
   11795     result |= 2;
   11796   if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
   11797       || buf[0] != '1')
   11798     result |= 4;
   11799   if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
   11800       || buf[0] != '1')
   11801     result |= 4;
   11802   return result;
   11803 }
   11804 _ACEOF
   11805 if ac_fn_c_try_run "$LINENO"; then :
   11806   gl_cv_func_printf_precision=yes
   11807 else
   11808   gl_cv_func_printf_precision=no
   11809 fi
   11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11811   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11812 fi
   11813 
   11814 
   11815 fi
   11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
   11817 $as_echo "$gl_cv_func_printf_precision" >&6; }
   11818 
   11819 
   11820     gl_cv_c_multiarch=no
   11821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11822 /* end confdefs.h.  */
   11823 #ifndef __APPLE_CC__
   11824          not a universal capable compiler
   11825         #endif
   11826         typedef int dummy;
   11827 
   11828 _ACEOF
   11829 if ac_fn_c_try_compile "$LINENO"; then :
   11830 
   11831                arch=
   11832      prev=
   11833      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
   11834        if test -n "$prev"; then
   11835          case $word in
   11836            i?86 | x86_64 | ppc | ppc64)
   11837              if test -z "$arch" || test "$arch" = "$word"; then
   11838                arch="$word"
   11839              else
   11840                gl_cv_c_multiarch=yes
   11841              fi
   11842              ;;
   11843          esac
   11844          prev=
   11845        else
   11846          if test "x$word" = "x-arch"; then
   11847            prev=arch
   11848          fi
   11849        fi
   11850      done
   11851 
   11852 fi
   11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11854   if test $gl_cv_c_multiarch = yes; then
   11855     APPLE_UNIVERSAL_BUILD=1
   11856   else
   11857     APPLE_UNIVERSAL_BUILD=0
   11858   fi
   11859 
   11860 
   11861 
   11862 
   11863 
   11864      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
   11865 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
   11866 if ${gl_cv_func_printf_enomem+:} false; then :
   11867   $as_echo_n "(cached) " >&6
   11868 else
   11869 
   11870       gl_cv_func_printf_enomem="guessing no"
   11871       if test "$cross_compiling" = no; then
   11872         if test $APPLE_UNIVERSAL_BUILD = 0; then
   11873           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11874 /* end confdefs.h.  */
   11875 
   11876 
   11877 #include <stdlib.h>
   11878 #if defined __MACH__ && defined __APPLE__
   11879 /* Avoid a crash on Mac OS X.  */
   11880 #include <mach/mach.h>
   11881 #include <mach/mach_error.h>
   11882 #include <mach/thread_status.h>
   11883 #include <mach/exception.h>
   11884 #include <mach/task.h>
   11885 #include <pthread.h>
   11886 /* The exception port on which our thread listens.  */
   11887 static mach_port_t our_exception_port;
   11888 /* The main function of the thread listening for exceptions of type
   11889    EXC_BAD_ACCESS.  */
   11890 static void *
   11891 mach_exception_thread (void *arg)
   11892 {
   11893   /* Buffer for a message to be received.  */
   11894   struct {
   11895     mach_msg_header_t head;
   11896     mach_msg_body_t msgh_body;
   11897     char data1024;
   11898   } msg;
   11899   mach_msg_return_t retval;
   11900   /* Wait for a message on the exception port.  */
   11901   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
   11902                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
   11903   if (retval != MACH_MSG_SUCCESS)
   11904     abort ();
   11905   exit (1);
   11906 }
   11907 static void
   11908 nocrash_init (void)
   11909 {
   11910   mach_port_t self = mach_task_self ();
   11911   /* Allocate a port on which the thread shall listen for exceptions.  */
   11912   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
   11913       == KERN_SUCCESS) {
   11914     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
   11915     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
   11916                                 MACH_MSG_TYPE_MAKE_SEND)
   11917         == KERN_SUCCESS) {
   11918       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
   11919          for us.  */
   11920       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
   11921       /* Create the thread listening on the exception port.  */
   11922       pthread_attr_t attr;
   11923       pthread_t thread;
   11924       if (pthread_attr_init (&attr) == 0
   11925           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
   11926           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
   11927         pthread_attr_destroy (&attr);
   11928         /* Replace the exception port info for these exceptions with our own.
   11929            Note that we replace the exception port for the entire task, not only
   11930            for a particular thread.  This has the effect that when our exception
   11931            port gets the message, the thread specific exception port has already
   11932            been asked, and we don't need to bother about it.
   11933            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
   11934         task_set_exception_ports (self, mask, our_exception_port,
   11935                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
   11936       }
   11937     }
   11938   }
   11939 }
   11940 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
   11941 /* Avoid a crash on native Windows.  */
   11942 #define WIN32_LEAN_AND_MEAN
   11943 #include <windows.h>
   11944 #include <winerror.h>
   11945 static LONG WINAPI
   11946 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
   11947 {
   11948   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
   11949     {
   11950     case EXCEPTION_ACCESS_VIOLATION:
   11951     case EXCEPTION_IN_PAGE_ERROR:
   11952     case EXCEPTION_STACK_OVERFLOW:
   11953     case EXCEPTION_GUARD_PAGE:
   11954     case EXCEPTION_PRIV_INSTRUCTION:
   11955     case EXCEPTION_ILLEGAL_INSTRUCTION:
   11956     case EXCEPTION_DATATYPE_MISALIGNMENT:
   11957     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
   11958     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
   11959       exit (1);
   11960     }
   11961   return EXCEPTION_CONTINUE_SEARCH;
   11962 }
   11963 static void
   11964 nocrash_init (void)
   11965 {
   11966   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
   11967 }
   11968 #else
   11969 /* Avoid a crash on POSIX systems.  */
   11970 #include <signal.h>
   11971 /* A POSIX signal handler.  */
   11972 static void
   11973 exception_handler (int sig)
   11974 {
   11975   exit (1);
   11976 }
   11977 static void
   11978 nocrash_init (void)
   11979 {
   11980 #ifdef SIGSEGV
   11981   signal (SIGSEGV, exception_handler);
   11982 #endif
   11983 #ifdef SIGBUS
   11984   signal (SIGBUS, exception_handler);
   11985 #endif
   11986 }
   11987 #endif
   11988 
   11989 #include <stdio.h>
   11990 #include <sys/types.h>
   11991 #include <sys/time.h>
   11992 #include <sys/resource.h>
   11993 #include <errno.h>
   11994 int main()
   11995 {
   11996   struct rlimit limit;
   11997   int ret;
   11998   nocrash_init ();
   11999   /* Some printf implementations allocate temporary space with malloc.  */
   12000   /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
   12001 #ifdef RLIMIT_DATA
   12002   if (getrlimit (RLIMIT_DATA, &limit) < 0)
   12003     return 77;
   12004   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
   12005     limit.rlim_max = 5000000;
   12006   limit.rlim_cur = limit.rlim_max;
   12007   if (setrlimit (RLIMIT_DATA, &limit) < 0)
   12008     return 77;
   12009 #endif
   12010   /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
   12011 #ifdef RLIMIT_AS
   12012   if (getrlimit (RLIMIT_AS, &limit) < 0)
   12013     return 77;
   12014   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
   12015     limit.rlim_max = 5000000;
   12016   limit.rlim_cur = limit.rlim_max;
   12017   if (setrlimit (RLIMIT_AS, &limit) < 0)
   12018     return 77;
   12019 #endif
   12020   /* Some printf implementations allocate temporary space on the stack.  */
   12021 #ifdef RLIMIT_STACK
   12022   if (getrlimit (RLIMIT_STACK, &limit) < 0)
   12023     return 77;
   12024   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
   12025     limit.rlim_max = 5000000;
   12026   limit.rlim_cur = limit.rlim_max;
   12027   if (setrlimit (RLIMIT_STACK, &limit) < 0)
   12028     return 77;
   12029 #endif
   12030   ret = printf ("%.5000000f", 1.0);
   12031   return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
   12032 }
   12033 
   12034 _ACEOF
   12035           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   12036   (eval $ac_link) 2>&5
   12037   ac_status=$?
   12038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12039   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   12040             (./conftest 2>&5
   12041              result=$?
   12042              $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
   12043              if test $result != 0 && test $result != 77; then result=1; fi
   12044              exit $result
   12045             ) >/dev/null 2>/dev/null
   12046             case $? in
   12047               0) gl_cv_func_printf_enomem="yes" ;;
   12048               77) gl_cv_func_printf_enomem="guessing no" ;;
   12049               *) gl_cv_func_printf_enomem="no" ;;
   12050             esac
   12051           else
   12052             gl_cv_func_printf_enomem="guessing no"
   12053           fi
   12054           rm -fr conftest*
   12055         else
   12056                                         gl_cv_func_printf_enomem="guessing no"
   12057         fi
   12058       fi
   12059       if test "$gl_cv_func_printf_enomem" = "guessing no"; then
   12060         case "$host_os" in
   12061                     # Guess yes on glibc systems.
   12062           *-gnu*)   gl_cv_func_printf_enomem="guessing yes";;
   12063                     # Guess yes on Solaris.
   12064           solaris*) gl_cv_func_printf_enomem="guessing yes";;
   12065                     # Guess yes on AIX.
   12066           aix*)     gl_cv_func_printf_enomem="guessing yes";;
   12067                     # Guess yes on HP-UX/hppa.
   12068           hpux*)    case "$host_cpu" in
   12069                       hppa*) gl_cv_func_printf_enomem="guessing yes";;
   12070                       *)     gl_cv_func_printf_enomem="guessing no";;
   12071                     esac
   12072                     ;;
   12073                     # Guess yes on IRIX.
   12074           irix*)    gl_cv_func_printf_enomem="guessing yes";;
   12075                     # Guess yes on OSF/1.
   12076           osf*)     gl_cv_func_printf_enomem="guessing yes";;
   12077                     # Guess yes on BeOS.
   12078           beos*)    gl_cv_func_printf_enomem="guessing yes";;
   12079                     # Guess yes on Haiku.
   12080           haiku*)   gl_cv_func_printf_enomem="guessing yes";;
   12081                     # If we don't know, assume the worst.
   12082           *)        gl_cv_func_printf_enomem="guessing no";;
   12083         esac
   12084       fi
   12085 
   12086 fi
   12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
   12088 $as_echo "$gl_cv_func_printf_enomem" >&6; }
   12089 
   12090 
   12091 
   12092   case "$gl_cv_func_printf_long_double" in
   12093     *yes)
   12094       ;;
   12095     *)
   12096 
   12097 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   12098 
   12099       ;;
   12100   esac
   12101 
   12102 
   12103 
   12104 
   12105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
   12106 $as_echo_n "checking for unsigned long long int... " >&6; }
   12107 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
   12108   $as_echo_n "(cached) " >&6
   12109 else
   12110   ac_cv_type_unsigned_long_long_int=yes
   12111      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
   12112        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12113 /* end confdefs.h.  */
   12114 
   12115   /* For now, do not test the preprocessor; as of 2007 there are too many
   12116          implementations with broken preprocessors.  Perhaps this can
   12117          be revisited in 2012.  In the meantime, code should not expect
   12118          #if to work with literals wider than 32 bits.  */
   12119       /* Test literals.  */
   12120       long long int ll = 9223372036854775807ll;
   12121       long long int nll = -9223372036854775807LL;
   12122       unsigned long long int ull = 18446744073709551615ULL;
   12123       /* Test constant expressions.   */
   12124       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
   12125                      ? 1 : -1)];
   12126       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
   12127                      ? 1 : -1)];
   12128       int i = 63;
   12129 int
   12130 main ()
   12131 {
   12132 /* Test availability of runtime routines for shift and division.  */
   12133       long long int llmax = 9223372036854775807ll;
   12134       unsigned long long int ullmax = 18446744073709551615ull;
   12135       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
   12136               | (llmax / ll) | (llmax % ll)
   12137               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
   12138               | (ullmax / ull) | (ullmax % ull));
   12139   ;
   12140   return 0;
   12141 }
   12142 
   12143 _ACEOF
   12144 if ac_fn_c_try_link "$LINENO"; then :
   12145 
   12146 else
   12147   ac_cv_type_unsigned_long_long_int=no
   12148 fi
   12149 rm -f core conftest.err conftest.$ac_objext \
   12150     conftest$ac_exeext conftest.$ac_ext
   12151      fi
   12152 fi
   12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
   12154 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
   12155   if test $ac_cv_type_unsigned_long_long_int = yes; then
   12156 
   12157 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
   12158 
   12159   fi
   12160 
   12161 
   12162 
   12163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
   12164 $as_echo_n "checking for long long int... " >&6; }
   12165 if ${ac_cv_type_long_long_int+:} false; then :
   12166   $as_echo_n "(cached) " >&6
   12167 else
   12168   ac_cv_type_long_long_int=yes
   12169       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
   12170         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
   12171         if test $ac_cv_type_long_long_int = yes; then
   12172                                         if test "$cross_compiling" = yes; then :
   12173   :
   12174 else
   12175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12176 /* end confdefs.h.  */
   12177 #include <limits.h>
   12178                  #ifndef LLONG_MAX
   12179                  # define HALF \
   12180                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
   12181                  # define LLONG_MAX (HALF - 1 + HALF)
   12182                  #endif
   12183 int
   12184 main ()
   12185 {
   12186 long long int n = 1;
   12187                  int i;
   12188                  for (i = 0; ; i++)
   12189                    {
   12190                      long long int m = n << i;
   12191                      if (m >> i != n)
   12192                        return 1;
   12193                      if (LLONG_MAX / 2 < m)
   12194                        break;
   12195                    }
   12196                  return 0;
   12197   ;
   12198   return 0;
   12199 }
   12200 _ACEOF
   12201 if ac_fn_c_try_run "$LINENO"; then :
   12202 
   12203 else
   12204   ac_cv_type_long_long_int=no
   12205 fi
   12206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12207   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12208 fi
   12209 
   12210         fi
   12211       fi
   12212 fi
   12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
   12214 $as_echo "$ac_cv_type_long_long_int" >&6; }
   12215   if test $ac_cv_type_long_long_int = yes; then
   12216 
   12217 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
   12218 
   12219   fi
   12220 
   12221 
   12222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
   12223 $as_echo_n "checking for wchar_t... " >&6; }
   12224 if ${gt_cv_c_wchar_t+:} false; then :
   12225   $as_echo_n "(cached) " >&6
   12226 else
   12227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12228 /* end confdefs.h.  */
   12229 #include <stddef.h>
   12230             wchar_t foo = (wchar_t)'\0';
   12231 int
   12232 main ()
   12233 {
   12234 
   12235   ;
   12236   return 0;
   12237 }
   12238 _ACEOF
   12239 if ac_fn_c_try_compile "$LINENO"; then :
   12240   gt_cv_c_wchar_t=yes
   12241 else
   12242   gt_cv_c_wchar_t=no
   12243 fi
   12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12245 fi
   12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
   12247 $as_echo "$gt_cv_c_wchar_t" >&6; }
   12248   if test $gt_cv_c_wchar_t = yes; then
   12249 
   12250 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
   12251 
   12252   fi
   12253 
   12254 
   12255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
   12256 $as_echo_n "checking for wint_t... " >&6; }
   12257 if ${gt_cv_c_wint_t+:} false; then :
   12258   $as_echo_n "(cached) " >&6
   12259 else
   12260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12261 /* end confdefs.h.  */
   12262 
   12263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   12264    <wchar.h>.
   12265    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   12266    before <wchar.h>.  */
   12267 #include <stddef.h>
   12268 #include <stdio.h>
   12269 #include <time.h>
   12270 #include <wchar.h>
   12271             wint_t foo = (wchar_t)'\0';
   12272 int
   12273 main ()
   12274 {
   12275 
   12276   ;
   12277   return 0;
   12278 }
   12279 _ACEOF
   12280 if ac_fn_c_try_compile "$LINENO"; then :
   12281   gt_cv_c_wint_t=yes
   12282 else
   12283   gt_cv_c_wint_t=no
   12284 fi
   12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12286 fi
   12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
   12288 $as_echo "$gt_cv_c_wint_t" >&6; }
   12289   if test $gt_cv_c_wint_t = yes; then
   12290 
   12291 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
   12292 
   12293   fi
   12294 
   12295 
   12296 
   12297 
   12298 
   12299   if test $ac_cv_header_features_h = yes; then
   12300     HAVE_FEATURES_H=1
   12301   else
   12302     HAVE_FEATURES_H=0
   12303   fi
   12304 
   12305 
   12306 
   12307 
   12308 
   12309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
   12310 $as_echo_n "checking for intmax_t... " >&6; }
   12311 if ${gt_cv_c_intmax_t+:} false; then :
   12312   $as_echo_n "(cached) " >&6
   12313 else
   12314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12315 /* end confdefs.h.  */
   12316 
   12317 #include <stddef.h>
   12318 #include <stdlib.h>
   12319 #if HAVE_STDINT_H_WITH_UINTMAX
   12320 #include <stdint.h>
   12321 #endif
   12322 #if HAVE_INTTYPES_H_WITH_UINTMAX
   12323 #include <inttypes.h>
   12324 #endif
   12325 
   12326 int
   12327 main ()
   12328 {
   12329 intmax_t x = -1; return !x;
   12330   ;
   12331   return 0;
   12332 }
   12333 _ACEOF
   12334 if ac_fn_c_try_compile "$LINENO"; then :
   12335   gt_cv_c_intmax_t=yes
   12336 else
   12337   gt_cv_c_intmax_t=no
   12338 fi
   12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12340 fi
   12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
   12342 $as_echo "$gt_cv_c_intmax_t" >&6; }
   12343   if test $gt_cv_c_intmax_t = yes; then
   12344 
   12345 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
   12346 
   12347   else
   12348 
   12349     test $ac_cv_type_long_long_int = yes \
   12350       && ac_type='long long' \
   12351       || ac_type='long'
   12352 
   12353 cat >>confdefs.h <<_ACEOF
   12354 #define intmax_t $ac_type
   12355 _ACEOF
   12356 
   12357   fi
   12358 
   12359 
   12360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
   12361 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
   12362 if ${gl_cv_cc_double_expbit0+:} false; then :
   12363   $as_echo_n "(cached) " >&6
   12364 else
   12365 
   12366       if test "$cross_compiling" = yes; then :
   12367 
   12368                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12369 /* end confdefs.h.  */
   12370 
   12371 #if defined arm || defined __arm || defined __arm__
   12372   mixed_endianness
   12373 #endif
   12374 
   12375 _ACEOF
   12376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12377   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
   12378   gl_cv_cc_double_expbit0="unknown"
   12379 else
   12380 
   12381                                                          :
   12382 if ${ac_cv_c_bigendian+:} false; then :
   12383   $as_echo_n "(cached) " >&6
   12384 else
   12385   ac_cv_c_bigendian=unknown
   12386     # See if we're dealing with a universal compiler.
   12387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12388 /* end confdefs.h.  */
   12389 #ifndef __APPLE_CC__
   12390 	       not a universal capable compiler
   12391 	     #endif
   12392 	     typedef int dummy;
   12393 
   12394 _ACEOF
   12395 if ac_fn_c_try_compile "$LINENO"; then :
   12396 
   12397 	# Check for potential -arch flags.  It is not universal unless
   12398 	# there are at least two -arch flags with different values.
   12399 	ac_arch=
   12400 	ac_prev=
   12401 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   12402 	 if test -n "$ac_prev"; then
   12403 	   case $ac_word in
   12404 	     i?86 | x86_64 | ppc | ppc64)
   12405 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   12406 		 ac_arch=$ac_word
   12407 	       else
   12408 		 ac_cv_c_bigendian=universal
   12409 		 break
   12410 	       fi
   12411 	       ;;
   12412 	   esac
   12413 	   ac_prev=
   12414 	 elif test "x$ac_word" = "x-arch"; then
   12415 	   ac_prev=arch
   12416 	 fi
   12417        done
   12418 fi
   12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12420     if test $ac_cv_c_bigendian = unknown; then
   12421       # See if sys/param.h defines the BYTE_ORDER macro.
   12422       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12423 /* end confdefs.h.  */
   12424 #include <sys/types.h>
   12425 	     #include <sys/param.h>
   12426 
   12427 int
   12428 main ()
   12429 {
   12430 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   12431 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   12432 		     && LITTLE_ENDIAN)
   12433 	      bogus endian macros
   12434 	     #endif
   12435 
   12436   ;
   12437   return 0;
   12438 }
   12439 _ACEOF
   12440 if ac_fn_c_try_compile "$LINENO"; then :
   12441   # It does; now see whether it defined to BIG_ENDIAN or not.
   12442 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12443 /* end confdefs.h.  */
   12444 #include <sys/types.h>
   12445 		#include <sys/param.h>
   12446 
   12447 int
   12448 main ()
   12449 {
   12450 #if BYTE_ORDER != BIG_ENDIAN
   12451 		 not big endian
   12452 		#endif
   12453 
   12454   ;
   12455   return 0;
   12456 }
   12457 _ACEOF
   12458 if ac_fn_c_try_compile "$LINENO"; then :
   12459   ac_cv_c_bigendian=yes
   12460 else
   12461   ac_cv_c_bigendian=no
   12462 fi
   12463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12464 fi
   12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12466     fi
   12467     if test $ac_cv_c_bigendian = unknown; then
   12468       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   12469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12470 /* end confdefs.h.  */
   12471 #include <limits.h>
   12472 
   12473 int
   12474 main ()
   12475 {
   12476 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   12477 	      bogus endian macros
   12478 	     #endif
   12479 
   12480   ;
   12481   return 0;
   12482 }
   12483 _ACEOF
   12484 if ac_fn_c_try_compile "$LINENO"; then :
   12485   # It does; now see whether it defined to _BIG_ENDIAN or not.
   12486 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12487 /* end confdefs.h.  */
   12488 #include <limits.h>
   12489 
   12490 int
   12491 main ()
   12492 {
   12493 #ifndef _BIG_ENDIAN
   12494 		 not big endian
   12495 		#endif
   12496 
   12497   ;
   12498   return 0;
   12499 }
   12500 _ACEOF
   12501 if ac_fn_c_try_compile "$LINENO"; then :
   12502   ac_cv_c_bigendian=yes
   12503 else
   12504   ac_cv_c_bigendian=no
   12505 fi
   12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12507 fi
   12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12509     fi
   12510     if test $ac_cv_c_bigendian = unknown; then
   12511       # Compile a test program.
   12512       if test "$cross_compiling" = yes; then :
   12513   # Try to guess by grepping values from an object file.
   12514 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12515 /* end confdefs.h.  */
   12516 short int ascii_mm[] =
   12517 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   12518 		short int ascii_ii[] =
   12519 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   12520 		int use_ascii (int i) {
   12521 		  return ascii_mm[i] + ascii_ii[i];
   12522 		}
   12523 		short int ebcdic_ii[] =
   12524 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   12525 		short int ebcdic_mm[] =
   12526 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   12527 		int use_ebcdic (int i) {
   12528 		  return ebcdic_mm[i] + ebcdic_ii[i];
   12529 		}
   12530 		extern int foo;
   12531 
   12532 int
   12533 main ()
   12534 {
   12535 return use_ascii (foo) == use_ebcdic (foo);
   12536   ;
   12537   return 0;
   12538 }
   12539 _ACEOF
   12540 if ac_fn_c_try_compile "$LINENO"; then :
   12541   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   12542 	      ac_cv_c_bigendian=yes
   12543 	    fi
   12544 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   12545 	      if test "$ac_cv_c_bigendian" = unknown; then
   12546 		ac_cv_c_bigendian=no
   12547 	      else
   12548 		# finding both strings is unlikely to happen, but who knows?
   12549 		ac_cv_c_bigendian=unknown
   12550 	      fi
   12551 	    fi
   12552 fi
   12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12554 else
   12555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12556 /* end confdefs.h.  */
   12557 $ac_includes_default
   12558 int
   12559 main ()
   12560 {
   12561 
   12562 	     /* Are we little or big endian?  From Harbison&Steele.  */
   12563 	     union
   12564 	     {
   12565 	       long int l;
   12566 	       char c[sizeof (long int)];
   12567 	     } u;
   12568 	     u.l = 1;
   12569 	     return u.c[sizeof (long int) - 1] == 1;
   12570 
   12571   ;
   12572   return 0;
   12573 }
   12574 _ACEOF
   12575 if ac_fn_c_try_run "$LINENO"; then :
   12576   ac_cv_c_bigendian=no
   12577 else
   12578   ac_cv_c_bigendian=yes
   12579 fi
   12580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12581   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12582 fi
   12583 
   12584     fi
   12585 fi
   12586 :
   12587  case $ac_cv_c_bigendian in #(
   12588    yes)
   12589      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
   12590    no)
   12591      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
   12592    universal)
   12593 
   12594 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   12595 
   12596      ;; #(
   12597    *)
   12598      gl_cv_cc_double_expbit0="unknown" ;;
   12599  esac
   12600 
   12601 
   12602 fi
   12603 rm -f conftest*
   12604 
   12605 
   12606 else
   12607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12608 /* end confdefs.h.  */
   12609 
   12610 #include <float.h>
   12611 #include <stddef.h>
   12612 #include <stdio.h>
   12613 #include <string.h>
   12614 #define NWORDS \
   12615   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   12616 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
   12617 static unsigned int ored_words[NWORDS];
   12618 static unsigned int anded_words[NWORDS];
   12619 static void add_to_ored_words (double x)
   12620 {
   12621   memory_double m;
   12622   size_t i;
   12623   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
   12624   memset (&m, 0, sizeof (memory_double));
   12625   m.value = x;
   12626   for (i = 0; i < NWORDS; i++)
   12627     {
   12628       ored_words[i] |= m.word[i];
   12629       anded_words[i] &= m.word[i];
   12630     }
   12631 }
   12632 int main ()
   12633 {
   12634   size_t j;
   12635   FILE *fp = fopen ("conftest.out", "w");
   12636   if (fp == NULL)
   12637     return 1;
   12638   for (j = 0; j < NWORDS; j++)
   12639     anded_words[j] = ~ (unsigned int) 0;
   12640   add_to_ored_words (0.25);
   12641   add_to_ored_words (0.5);
   12642   add_to_ored_words (1.0);
   12643   add_to_ored_words (2.0);
   12644   add_to_ored_words (4.0);
   12645   /* Remove bits that are common (e.g. if representation of the first mantissa
   12646      bit is explicit).  */
   12647   for (j = 0; j < NWORDS; j++)
   12648     ored_words[j] &= ~anded_words[j];
   12649   /* Now find the nonzero word.  */
   12650   for (j = 0; j < NWORDS; j++)
   12651     if (ored_words[j] != 0)
   12652       break;
   12653   if (j < NWORDS)
   12654     {
   12655       size_t i;
   12656       for (i = j + 1; i < NWORDS; i++)
   12657         if (ored_words[i] != 0)
   12658           {
   12659             fprintf (fp, "unknown");
   12660             return (fclose (fp) != 0);
   12661           }
   12662       for (i = 0; ; i++)
   12663         if ((ored_words[j] >> i) & 1)
   12664           {
   12665             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   12666             return (fclose (fp) != 0);
   12667           }
   12668     }
   12669   fprintf (fp, "unknown");
   12670   return (fclose (fp) != 0);
   12671 }
   12672 
   12673 _ACEOF
   12674 if ac_fn_c_try_run "$LINENO"; then :
   12675   gl_cv_cc_double_expbit0=`cat conftest.out`
   12676 else
   12677   gl_cv_cc_double_expbit0="unknown"
   12678 fi
   12679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12680   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12681 fi
   12682 
   12683       rm -f conftest.out
   12684 
   12685 fi
   12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
   12687 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
   12688   case "$gl_cv_cc_double_expbit0" in
   12689     word*bit*)
   12690       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   12691       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
   12692 
   12693 cat >>confdefs.h <<_ACEOF
   12694 #define DBL_EXPBIT0_WORD $word
   12695 _ACEOF
   12696 
   12697 
   12698 cat >>confdefs.h <<_ACEOF
   12699 #define DBL_EXPBIT0_BIT $bit
   12700 _ACEOF
   12701 
   12702       ;;
   12703   esac
   12704 
   12705 
   12706 
   12707 
   12708 
   12709 
   12710 
   12711 
   12712 
   12713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
   12714 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
   12715 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
   12716   $as_echo_n "(cached) " >&6
   12717 else
   12718 
   12719       if test "$cross_compiling" = yes; then :
   12720 
   12721          case "$host_os" in
   12722                                  # Guess yes on glibc systems.
   12723            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
   12724                                  # Guess yes on FreeBSD >= 5.
   12725            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
   12726            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
   12727                                  # Guess yes on Mac OS X >= 10.3.
   12728            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
   12729            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
   12730                                  # Guess yes on OpenBSD >= 3.9.
   12731            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
   12732                                  gl_cv_func_snprintf_retval_c99="guessing no";;
   12733            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
   12734                                  # Guess yes on Solaris >= 2.10.
   12735            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
   12736            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
   12737                                  # Guess yes on AIX >= 4.
   12738            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
   12739            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
   12740                                  # Guess yes on NetBSD >= 3.
   12741            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   12742                                  gl_cv_func_snprintf_retval_c99="guessing no";;
   12743            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
   12744                                  # Guess yes on BeOS.
   12745            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
   12746                                  # If we don't know, assume the worst.
   12747            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
   12748          esac
   12749 
   12750 else
   12751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12752 /* end confdefs.h.  */
   12753 
   12754 #include <stdio.h>
   12755 #include <string.h>
   12756 #if HAVE_SNPRINTF
   12757 # define my_snprintf snprintf
   12758 #else
   12759 # include <stdarg.h>
   12760 static int my_snprintf (char *buf, int size, const char *format, ...)
   12761 {
   12762   va_list args;
   12763   int ret;
   12764   va_start (args, format);
   12765   ret = vsnprintf (buf, size, format, args);
   12766   va_end (args);
   12767   return ret;
   12768 }
   12769 #endif
   12770 static char buf[100];
   12771 int main ()
   12772 {
   12773   strcpy (buf, "ABCDEF");
   12774   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
   12775     return 1;
   12776   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
   12777     return 2;
   12778   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
   12779     return 3;
   12780   return 0;
   12781 }
   12782 _ACEOF
   12783 if ac_fn_c_try_run "$LINENO"; then :
   12784   gl_cv_func_snprintf_retval_c99=yes
   12785 else
   12786   gl_cv_func_snprintf_retval_c99=no
   12787 fi
   12788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12789   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12790 fi
   12791 
   12792 
   12793 fi
   12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
   12795 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
   12796 
   12797 
   12798 
   12799 
   12800 
   12801 
   12802   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
   12803 do :
   12804   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   12807   cat >>confdefs.h <<_ACEOF
   12808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12809 _ACEOF
   12810 
   12811 fi
   12812 done
   12813 
   12814       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
   12815 "
   12816 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
   12817   ac_have_decl=1
   12818 else
   12819   ac_have_decl=0
   12820 fi
   12821 
   12822 cat >>confdefs.h <<_ACEOF
   12823 #define HAVE_DECL__SNPRINTF $ac_have_decl
   12824 _ACEOF
   12825 
   12826 
   12827 
   12828   case "$gl_cv_func_snprintf_retval_c99" in
   12829     *yes)
   12830 
   12831 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
   12832 
   12833       ;;
   12834   esac
   12835 
   12836 
   12837   GNULIB_ACOSF=0;
   12838   GNULIB_ACOSL=0;
   12839   GNULIB_ASINF=0;
   12840   GNULIB_ASINL=0;
   12841   GNULIB_ATANF=0;
   12842   GNULIB_ATANL=0;
   12843   GNULIB_ATAN2F=0;
   12844   GNULIB_CBRT=0;
   12845   GNULIB_CBRTF=0;
   12846   GNULIB_CBRTL=0;
   12847   GNULIB_CEIL=0;
   12848   GNULIB_CEILF=0;
   12849   GNULIB_CEILL=0;
   12850   GNULIB_COPYSIGN=0;
   12851   GNULIB_COPYSIGNF=0;
   12852   GNULIB_COPYSIGNL=0;
   12853   GNULIB_COSF=0;
   12854   GNULIB_COSL=0;
   12855   GNULIB_COSHF=0;
   12856   GNULIB_EXPF=0;
   12857   GNULIB_EXPL=0;
   12858   GNULIB_EXP2=0;
   12859   GNULIB_EXP2F=0;
   12860   GNULIB_EXP2L=0;
   12861   GNULIB_EXPM1=0;
   12862   GNULIB_EXPM1F=0;
   12863   GNULIB_EXPM1L=0;
   12864   GNULIB_FABSF=0;
   12865   GNULIB_FABSL=0;
   12866   GNULIB_FLOOR=0;
   12867   GNULIB_FLOORF=0;
   12868   GNULIB_FLOORL=0;
   12869   GNULIB_FMA=0;
   12870   GNULIB_FMAF=0;
   12871   GNULIB_FMAL=0;
   12872   GNULIB_FMOD=0;
   12873   GNULIB_FMODF=0;
   12874   GNULIB_FMODL=0;
   12875   GNULIB_FREXPF=0;
   12876   GNULIB_FREXP=0;
   12877   GNULIB_FREXPL=0;
   12878   GNULIB_HYPOT=0;
   12879   GNULIB_HYPOTF=0;
   12880   GNULIB_HYPOTL=0;
   12881   GNULIB_ILOGB=0;
   12882   GNULIB_ILOGBF=0;
   12883   GNULIB_ILOGBL=0;
   12884   GNULIB_ISFINITE=0;
   12885   GNULIB_ISINF=0;
   12886   GNULIB_ISNAN=0;
   12887   GNULIB_ISNANF=0;
   12888   GNULIB_ISNAND=0;
   12889   GNULIB_ISNANL=0;
   12890   GNULIB_LDEXPF=0;
   12891   GNULIB_LDEXPL=0;
   12892   GNULIB_LOG=0;
   12893   GNULIB_LOGF=0;
   12894   GNULIB_LOGL=0;
   12895   GNULIB_LOG10=0;
   12896   GNULIB_LOG10F=0;
   12897   GNULIB_LOG10L=0;
   12898   GNULIB_LOG1P=0;
   12899   GNULIB_LOG1PF=0;
   12900   GNULIB_LOG1PL=0;
   12901   GNULIB_LOG2=0;
   12902   GNULIB_LOG2F=0;
   12903   GNULIB_LOG2L=0;
   12904   GNULIB_LOGB=0;
   12905   GNULIB_LOGBF=0;
   12906   GNULIB_LOGBL=0;
   12907   GNULIB_MODF=0;
   12908   GNULIB_MODFF=0;
   12909   GNULIB_MODFL=0;
   12910   GNULIB_POWF=0;
   12911   GNULIB_REMAINDER=0;
   12912   GNULIB_REMAINDERF=0;
   12913   GNULIB_REMAINDERL=0;
   12914   GNULIB_RINT=0;
   12915   GNULIB_RINTF=0;
   12916   GNULIB_RINTL=0;
   12917   GNULIB_ROUND=0;
   12918   GNULIB_ROUNDF=0;
   12919   GNULIB_ROUNDL=0;
   12920   GNULIB_SIGNBIT=0;
   12921   GNULIB_SINF=0;
   12922   GNULIB_SINL=0;
   12923   GNULIB_SINHF=0;
   12924   GNULIB_SQRTF=0;
   12925   GNULIB_SQRTL=0;
   12926   GNULIB_TANF=0;
   12927   GNULIB_TANL=0;
   12928   GNULIB_TANHF=0;
   12929   GNULIB_TRUNC=0;
   12930   GNULIB_TRUNCF=0;
   12931   GNULIB_TRUNCL=0;
   12932     HAVE_ACOSF=1;
   12933   HAVE_ACOSL=1;
   12934   HAVE_ASINF=1;
   12935   HAVE_ASINL=1;
   12936   HAVE_ATANF=1;
   12937   HAVE_ATANL=1;
   12938   HAVE_ATAN2F=1;
   12939   HAVE_CBRT=1;
   12940   HAVE_CBRTF=1;
   12941   HAVE_CBRTL=1;
   12942   HAVE_COPYSIGN=1;
   12943   HAVE_COPYSIGNL=1;
   12944   HAVE_COSF=1;
   12945   HAVE_COSL=1;
   12946   HAVE_COSHF=1;
   12947   HAVE_EXPF=1;
   12948   HAVE_EXPL=1;
   12949   HAVE_EXPM1=1;
   12950   HAVE_EXPM1F=1;
   12951   HAVE_FABSF=1;
   12952   HAVE_FABSL=1;
   12953   HAVE_FMA=1;
   12954   HAVE_FMAF=1;
   12955   HAVE_FMAL=1;
   12956   HAVE_FMODF=1;
   12957   HAVE_FMODL=1;
   12958   HAVE_FREXPF=1;
   12959   HAVE_HYPOTF=1;
   12960   HAVE_HYPOTL=1;
   12961   HAVE_ILOGB=1;
   12962   HAVE_ILOGBF=1;
   12963   HAVE_ILOGBL=1;
   12964   HAVE_ISNANF=1;
   12965   HAVE_ISNAND=1;
   12966   HAVE_ISNANL=1;
   12967   HAVE_LDEXPF=1;
   12968   HAVE_LOGF=1;
   12969   HAVE_LOGL=1;
   12970   HAVE_LOG10F=1;
   12971   HAVE_LOG10L=1;
   12972   HAVE_LOG1P=1;
   12973   HAVE_LOG1PF=1;
   12974   HAVE_LOG1PL=1;
   12975   HAVE_LOGBF=1;
   12976   HAVE_LOGBL=1;
   12977   HAVE_MODFF=1;
   12978   HAVE_MODFL=1;
   12979   HAVE_POWF=1;
   12980   HAVE_REMAINDER=1;
   12981   HAVE_REMAINDERF=1;
   12982   HAVE_RINT=1;
   12983   HAVE_RINTL=1;
   12984   HAVE_SINF=1;
   12985   HAVE_SINL=1;
   12986   HAVE_SINHF=1;
   12987   HAVE_SQRTF=1;
   12988   HAVE_SQRTL=1;
   12989   HAVE_TANF=1;
   12990   HAVE_TANL=1;
   12991   HAVE_TANHF=1;
   12992   HAVE_DECL_ACOSL=1;
   12993   HAVE_DECL_ASINL=1;
   12994   HAVE_DECL_ATANL=1;
   12995   HAVE_DECL_CBRTF=1;
   12996   HAVE_DECL_CBRTL=1;
   12997   HAVE_DECL_CEILF=1;
   12998   HAVE_DECL_CEILL=1;
   12999   HAVE_DECL_COPYSIGNF=1;
   13000   HAVE_DECL_COSL=1;
   13001   HAVE_DECL_EXPL=1;
   13002   HAVE_DECL_EXP2=1;
   13003   HAVE_DECL_EXP2F=1;
   13004   HAVE_DECL_EXP2L=1;
   13005   HAVE_DECL_EXPM1L=1;
   13006   HAVE_DECL_FLOORF=1;
   13007   HAVE_DECL_FLOORL=1;
   13008   HAVE_DECL_FREXPL=1;
   13009   HAVE_DECL_LDEXPL=1;
   13010   HAVE_DECL_LOGL=1;
   13011   HAVE_DECL_LOG10L=1;
   13012   HAVE_DECL_LOG2=1;
   13013   HAVE_DECL_LOG2F=1;
   13014   HAVE_DECL_LOG2L=1;
   13015   HAVE_DECL_LOGB=1;
   13016   HAVE_DECL_REMAINDER=1;
   13017   HAVE_DECL_REMAINDERL=1;
   13018   HAVE_DECL_RINTF=1;
   13019   HAVE_DECL_ROUND=1;
   13020   HAVE_DECL_ROUNDF=1;
   13021   HAVE_DECL_ROUNDL=1;
   13022   HAVE_DECL_SINL=1;
   13023   HAVE_DECL_SQRTL=1;
   13024   HAVE_DECL_TANL=1;
   13025   HAVE_DECL_TRUNC=1;
   13026   HAVE_DECL_TRUNCF=1;
   13027   HAVE_DECL_TRUNCL=1;
   13028   REPLACE_CBRTF=0;
   13029   REPLACE_CBRTL=0;
   13030   REPLACE_CEIL=0;
   13031   REPLACE_CEILF=0;
   13032   REPLACE_CEILL=0;
   13033   REPLACE_EXPM1=0;
   13034   REPLACE_EXPM1F=0;
   13035   REPLACE_EXP2=0;
   13036   REPLACE_EXP2L=0;
   13037   REPLACE_FABSL=0;
   13038   REPLACE_FLOOR=0;
   13039   REPLACE_FLOORF=0;
   13040   REPLACE_FLOORL=0;
   13041   REPLACE_FMA=0;
   13042   REPLACE_FMAF=0;
   13043   REPLACE_FMAL=0;
   13044   REPLACE_FMOD=0;
   13045   REPLACE_FMODF=0;
   13046   REPLACE_FMODL=0;
   13047   REPLACE_FREXPF=0;
   13048   REPLACE_FREXP=0;
   13049   REPLACE_FREXPL=0;
   13050   REPLACE_HUGE_VAL=0;
   13051   REPLACE_HYPOT=0;
   13052   REPLACE_HYPOTF=0;
   13053   REPLACE_HYPOTL=0;
   13054   REPLACE_ILOGB=0;
   13055   REPLACE_ILOGBF=0;
   13056   REPLACE_ISFINITE=0;
   13057   REPLACE_ISINF=0;
   13058   REPLACE_ISNAN=0;
   13059   REPLACE_LDEXPL=0;
   13060   REPLACE_LOG=0;
   13061   REPLACE_LOGF=0;
   13062   REPLACE_LOGL=0;
   13063   REPLACE_LOG10=0;
   13064   REPLACE_LOG10F=0;
   13065   REPLACE_LOG10L=0;
   13066   REPLACE_LOG1P=0;
   13067   REPLACE_LOG1PF=0;
   13068   REPLACE_LOG1PL=0;
   13069   REPLACE_LOG2=0;
   13070   REPLACE_LOG2F=0;
   13071   REPLACE_LOG2L=0;
   13072   REPLACE_LOGB=0;
   13073   REPLACE_LOGBF=0;
   13074   REPLACE_LOGBL=0;
   13075   REPLACE_MODF=0;
   13076   REPLACE_MODFF=0;
   13077   REPLACE_MODFL=0;
   13078   REPLACE_NAN=0;
   13079   REPLACE_REMAINDER=0;
   13080   REPLACE_REMAINDERF=0;
   13081   REPLACE_REMAINDERL=0;
   13082   REPLACE_ROUND=0;
   13083   REPLACE_ROUNDF=0;
   13084   REPLACE_ROUNDL=0;
   13085   REPLACE_SIGNBIT=0;
   13086   REPLACE_SIGNBIT_USING_GCC=0;
   13087   REPLACE_SQRTL=0;
   13088   REPLACE_TRUNC=0;
   13089   REPLACE_TRUNCF=0;
   13090   REPLACE_TRUNCL=0;
   13091 
   13092 
   13093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
   13094 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
   13095 if ${gl_cv_func_frexp_no_libm+:} false; then :
   13096   $as_echo_n "(cached) " >&6
   13097 else
   13098 
   13099       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13100 /* end confdefs.h.  */
   13101 #include <math.h>
   13102              double x;
   13103 int
   13104 main ()
   13105 {
   13106 int e; return frexp (x, &e) > 0;
   13107   ;
   13108   return 0;
   13109 }
   13110 _ACEOF
   13111 if ac_fn_c_try_link "$LINENO"; then :
   13112   gl_cv_func_frexp_no_libm=yes
   13113 else
   13114   gl_cv_func_frexp_no_libm=no
   13115 fi
   13116 rm -f core conftest.err conftest.$ac_objext \
   13117     conftest$ac_exeext conftest.$ac_ext
   13118 
   13119 fi
   13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
   13121 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
   13122 
   13123 
   13124 
   13125 
   13126 
   13127 
   13128      GNULIB_FCHMODAT=0;
   13129   GNULIB_FSTAT=0;
   13130   GNULIB_FSTATAT=0;
   13131   GNULIB_FUTIMENS=0;
   13132   GNULIB_LCHMOD=0;
   13133   GNULIB_LSTAT=0;
   13134   GNULIB_MKDIRAT=0;
   13135   GNULIB_MKFIFO=0;
   13136   GNULIB_MKFIFOAT=0;
   13137   GNULIB_MKNOD=0;
   13138   GNULIB_MKNODAT=0;
   13139   GNULIB_STAT=0;
   13140   GNULIB_UTIMENSAT=0;
   13141     HAVE_FCHMODAT=1;
   13142   HAVE_FSTATAT=1;
   13143   HAVE_FUTIMENS=1;
   13144   HAVE_LCHMOD=1;
   13145   HAVE_LSTAT=1;
   13146   HAVE_MKDIRAT=1;
   13147   HAVE_MKFIFO=1;
   13148   HAVE_MKFIFOAT=1;
   13149   HAVE_MKNOD=1;
   13150   HAVE_MKNODAT=1;
   13151   HAVE_UTIMENSAT=1;
   13152   REPLACE_FSTAT=0;
   13153   REPLACE_FSTATAT=0;
   13154   REPLACE_FUTIMENS=0;
   13155   REPLACE_LSTAT=0;
   13156   REPLACE_MKDIR=0;
   13157   REPLACE_MKFIFO=0;
   13158   REPLACE_MKNOD=0;
   13159   REPLACE_STAT=0;
   13160   REPLACE_UTIMENSAT=0;
   13161 
   13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
   13163 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
   13164 if ${ac_cv_header_stat_broken+:} false; then :
   13165   $as_echo_n "(cached) " >&6
   13166 else
   13167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13168 /* end confdefs.h.  */
   13169 #include <sys/types.h>
   13170 #include <sys/stat.h>
   13171 
   13172 #if defined S_ISBLK && defined S_IFDIR
   13173 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
   13174 #endif
   13175 
   13176 #if defined S_ISBLK && defined S_IFCHR
   13177 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
   13178 #endif
   13179 
   13180 #if defined S_ISLNK && defined S_IFREG
   13181 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
   13182 #endif
   13183 
   13184 #if defined S_ISSOCK && defined S_IFREG
   13185 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
   13186 #endif
   13187 
   13188 _ACEOF
   13189 if ac_fn_c_try_compile "$LINENO"; then :
   13190   ac_cv_header_stat_broken=no
   13191 else
   13192   ac_cv_header_stat_broken=yes
   13193 fi
   13194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13195 fi
   13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
   13197 $as_echo "$ac_cv_header_stat_broken" >&6; }
   13198 if test $ac_cv_header_stat_broken = yes; then
   13199 
   13200 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
   13201 
   13202 fi
   13203 
   13204 
   13205 
   13206 
   13207 
   13208   case "$host_os" in
   13209     mingw*)
   13210                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
   13211 $as_echo_n "checking for 64-bit off_t... " >&6; }
   13212 if ${gl_cv_type_off_t_64+:} false; then :
   13213   $as_echo_n "(cached) " >&6
   13214 else
   13215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13216 /* end confdefs.h.  */
   13217 #include <sys/types.h>
   13218                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
   13219 
   13220 int
   13221 main ()
   13222 {
   13223 
   13224   ;
   13225   return 0;
   13226 }
   13227 _ACEOF
   13228 if ac_fn_c_try_compile "$LINENO"; then :
   13229   gl_cv_type_off_t_64=yes
   13230 else
   13231   gl_cv_type_off_t_64=no
   13232 fi
   13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13234 
   13235 fi
   13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
   13237 $as_echo "$gl_cv_type_off_t_64" >&6; }
   13238       if test $gl_cv_type_off_t_64 = no; then
   13239         WINDOWS_64_BIT_OFF_T=1
   13240       else
   13241         WINDOWS_64_BIT_OFF_T=0
   13242       fi
   13243                   WINDOWS_64_BIT_ST_SIZE=1
   13244       ;;
   13245     *)
   13246                                                       WINDOWS_64_BIT_OFF_T=0
   13247       WINDOWS_64_BIT_ST_SIZE=0
   13248       ;;
   13249   esac
   13250 
   13251 
   13252 
   13253 
   13254 
   13255 
   13256 
   13257 
   13258 
   13259 
   13260 
   13261 
   13262 
   13263 
   13264 
   13265      if test $gl_cv_have_include_next = yes; then
   13266        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   13267      else
   13268        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
   13269 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
   13270 if ${gl_cv_next_sys_stat_h+:} false; then :
   13271   $as_echo_n "(cached) " >&6
   13272 else
   13273 
   13274              if test $ac_cv_header_sys_stat_h = yes; then
   13275 
   13276 
   13277                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13278 /* end confdefs.h.  */
   13279 #include <sys/stat.h>
   13280 
   13281 _ACEOF
   13282                                                                                                                         case "$host_os" in
   13283                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   13284                  *)    gl_absname_cpp="$ac_cpp" ;;
   13285                esac
   13286 
   13287                case "$host_os" in
   13288                  mingw*)
   13289                                                                                                                                      gl_dirsep_regex='[/\\]'
   13290                    ;;
   13291                  *)
   13292                    gl_dirsep_regex='\/'
   13293                    ;;
   13294                esac
   13295                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   13296 
   13297                gl_header_literal_regex=`echo 'sys/stat.h' \
   13298                                         | sed -e "$gl_make_literal_regex_sed"`
   13299                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   13300                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   13301                    s|^/[^/]|//&|
   13302                    p
   13303                    q
   13304                  }'
   13305                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   13306                       sed -n "$gl_absolute_header_sed"`'"'
   13307           else
   13308                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   13309              fi
   13310 
   13311 
   13312 fi
   13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
   13314 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
   13315      fi
   13316      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
   13317 
   13318      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   13319        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   13320        gl_next_as_first_directive='<'sys/stat.h'>'
   13321      else
   13322        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   13323        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
   13324      fi
   13325      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
   13326 
   13327 
   13328 
   13329 
   13330 
   13331 
   13332 
   13333 
   13334 
   13335 
   13336 
   13337   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
   13338 
   13339 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
   13340 
   13341   fi
   13342 
   13343       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
   13344      #include <sys/stat.h>
   13345 "
   13346 if test "x$ac_cv_type_nlink_t" = xyes; then :
   13347 
   13348 else
   13349 
   13350 $as_echo "#define nlink_t int" >>confdefs.h
   13351 
   13352 fi
   13353 
   13354 
   13355 
   13356     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
   13357     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   13358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   13359 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   13360 if eval \${$as_gl_Symbol+:} false; then :
   13361   $as_echo_n "(cached) " >&6
   13362 else
   13363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13364 /* end confdefs.h.  */
   13365 #include <sys/stat.h>
   13366 
   13367 int
   13368 main ()
   13369 {
   13370 #undef $gl_func
   13371   (void) $gl_func;
   13372   ;
   13373   return 0;
   13374 }
   13375 _ACEOF
   13376 if ac_fn_c_try_compile "$LINENO"; then :
   13377   eval "$as_gl_Symbol=yes"
   13378 else
   13379   eval "$as_gl_Symbol=no"
   13380 fi
   13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13382 fi
   13383 eval ac_res=\$$as_gl_Symbol
   13384 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   13385 $as_echo "$ac_res" >&6; }
   13386     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   13387   cat >>confdefs.h <<_ACEOF
   13388 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   13389 _ACEOF
   13390 
   13391                      eval ac_cv_have_decl_$gl_func=yes
   13392 fi
   13393       done
   13394 
   13395 
   13396 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
   13397 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
   13398   ac_have_decl=1
   13399 else
   13400   ac_have_decl=0
   13401 fi
   13402 
   13403 cat >>confdefs.h <<_ACEOF
   13404 #define HAVE_DECL_GETDELIM $ac_have_decl
   13405 _ACEOF
   13406 
   13407 
   13408 
   13409 
   13410 
   13411 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
   13412 if test "x$ac_cv_have_decl_getline" = xyes; then :
   13413   ac_have_decl=1
   13414 else
   13415   ac_have_decl=0
   13416 fi
   13417 
   13418 cat >>confdefs.h <<_ACEOF
   13419 #define HAVE_DECL_GETLINE $ac_have_decl
   13420 _ACEOF
   13421 
   13422 
   13423 
   13424 
   13425 
   13426 
   13427 
   13428 
   13429 
   13430 
   13431 
   13432 
   13433 
   13434 
   13435 
   13436 
   13437      if test $gl_cv_have_include_next = yes; then
   13438        gl_cv_next_getopt_h='<'getopt.h'>'
   13439      else
   13440        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
   13441 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
   13442 if ${gl_cv_next_getopt_h+:} false; then :
   13443   $as_echo_n "(cached) " >&6
   13444 else
   13445 
   13446              if test $ac_cv_header_getopt_h = yes; then
   13447 
   13448 
   13449                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13450 /* end confdefs.h.  */
   13451 #include <getopt.h>
   13452 
   13453 _ACEOF
   13454                                                                                                                         case "$host_os" in
   13455                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   13456                  *)    gl_absname_cpp="$ac_cpp" ;;
   13457                esac
   13458 
   13459                case "$host_os" in
   13460                  mingw*)
   13461                                                                                                                                      gl_dirsep_regex='[/\\]'
   13462                    ;;
   13463                  *)
   13464                    gl_dirsep_regex='\/'
   13465                    ;;
   13466                esac
   13467                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   13468 
   13469                gl_header_literal_regex=`echo 'getopt.h' \
   13470                                         | sed -e "$gl_make_literal_regex_sed"`
   13471                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   13472                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   13473                    s|^/[^/]|//&|
   13474                    p
   13475                    q
   13476                  }'
   13477                                                             gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   13478                       sed -n "$gl_absolute_header_sed"`'"'
   13479           else
   13480                gl_cv_next_getopt_h='<'getopt.h'>'
   13481              fi
   13482 
   13483 
   13484 fi
   13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
   13486 $as_echo "$gl_cv_next_getopt_h" >&6; }
   13487      fi
   13488      NEXT_GETOPT_H=$gl_cv_next_getopt_h
   13489 
   13490      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   13491        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   13492        gl_next_as_first_directive='<'getopt.h'>'
   13493      else
   13494        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   13495        gl_next_as_first_directive=$gl_cv_next_getopt_h
   13496      fi
   13497      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
   13498 
   13499 
   13500 
   13501 
   13502   if test $ac_cv_header_getopt_h = yes; then
   13503     HAVE_GETOPT_H=1
   13504   else
   13505     HAVE_GETOPT_H=0
   13506   fi
   13507 
   13508 
   13509   gl_replace_getopt=
   13510 
   13511     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
   13512     for ac_header in getopt.h
   13513 do :
   13514   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
   13515 if test "x$ac_cv_header_getopt_h" = xyes; then :
   13516   cat >>confdefs.h <<_ACEOF
   13517 #define HAVE_GETOPT_H 1
   13518 _ACEOF
   13519 
   13520 else
   13521   gl_replace_getopt=yes
   13522 fi
   13523 
   13524 done
   13525 
   13526   fi
   13527 
   13528     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
   13529     for ac_func in getopt_long_only
   13530 do :
   13531   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
   13532 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
   13533   cat >>confdefs.h <<_ACEOF
   13534 #define HAVE_GETOPT_LONG_ONLY 1
   13535 _ACEOF
   13536 
   13537 else
   13538   gl_replace_getopt=yes
   13539 fi
   13540 done
   13541 
   13542   fi
   13543 
   13544           if test -z "$gl_replace_getopt"; then
   13545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
   13546 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
   13547 if ${gl_cv_func_getopt_posix+:} false; then :
   13548   $as_echo_n "(cached) " >&6
   13549 else
   13550 
   13551                                                 if test $cross_compiling = no; then
   13552                               if test "$cross_compiling" = yes; then :
   13553   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13555 as_fn_error $? "cannot run test program while cross compiling
   13556 See \`config.log' for more details" "$LINENO" 5; }
   13557 else
   13558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13559 /* end confdefs.h.  */
   13560 
   13561 #include <unistd.h>
   13562 #include <stdlib.h>
   13563 #include <string.h>
   13564 
   13565 int
   13566 main ()
   13567 {
   13568   static char program[] = "program";
   13569   static char a[] = "-a";
   13570   static char foo[] = "foo";
   13571   static char bar[] = "bar";
   13572   char *argv[] = { program, a, foo, bar, NULL };
   13573   int c;
   13574 
   13575   c = getopt (4, argv, "ab");
   13576   if (!(c == 'a'))
   13577     return 1;
   13578   c = getopt (4, argv, "ab");
   13579   if (!(c == -1))
   13580     return 2;
   13581   if (!(optind == 2))
   13582     return 3;
   13583   return 0;
   13584 }
   13585 
   13586 _ACEOF
   13587 if ac_fn_c_try_run "$LINENO"; then :
   13588   gl_cv_func_getopt_posix=maybe
   13589 else
   13590   gl_cv_func_getopt_posix=no
   13591 fi
   13592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13593   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13594 fi
   13595 
   13596           if test $gl_cv_func_getopt_posix = maybe; then
   13597                                     if test "$cross_compiling" = yes; then :
   13598   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13600 as_fn_error $? "cannot run test program while cross compiling
   13601 See \`config.log' for more details" "$LINENO" 5; }
   13602 else
   13603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13604 /* end confdefs.h.  */
   13605 
   13606 #include <unistd.h>
   13607 #include <stdlib.h>
   13608 #include <string.h>
   13609 
   13610 int
   13611 main ()
   13612 {
   13613   static char program[] = "program";
   13614   static char donald[] = "donald";
   13615   static char p[] = "-p";
   13616   static char billy[] = "billy";
   13617   static char duck[] = "duck";
   13618   static char a[] = "-a";
   13619   static char bar[] = "bar";
   13620   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
   13621   int c;
   13622 
   13623   c = getopt (7, argv, "+abp:q:");
   13624   if (!(c == -1))
   13625     return 4;
   13626   if (!(strcmp (argv[0], "program") == 0))
   13627     return 5;
   13628   if (!(strcmp (argv[1], "donald") == 0))
   13629     return 6;
   13630   if (!(strcmp (argv[2], "-p") == 0))
   13631     return 7;
   13632   if (!(strcmp (argv[3], "billy") == 0))
   13633     return 8;
   13634   if (!(strcmp (argv[4], "duck") == 0))
   13635     return 9;
   13636   if (!(strcmp (argv[5], "-a") == 0))
   13637     return 10;
   13638   if (!(strcmp (argv[6], "bar") == 0))
   13639     return 11;
   13640   if (!(optind == 1))
   13641     return 12;
   13642   return 0;
   13643 }
   13644 
   13645 _ACEOF
   13646 if ac_fn_c_try_run "$LINENO"; then :
   13647   gl_cv_func_getopt_posix=maybe
   13648 else
   13649   gl_cv_func_getopt_posix=no
   13650 fi
   13651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13652   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13653 fi
   13654 
   13655           fi
   13656           if test $gl_cv_func_getopt_posix = maybe; then
   13657                         if test "$cross_compiling" = yes; then :
   13658   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13660 as_fn_error $? "cannot run test program while cross compiling
   13661 See \`config.log' for more details" "$LINENO" 5; }
   13662 else
   13663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13664 /* end confdefs.h.  */
   13665 
   13666 #include <unistd.h>
   13667 #include <stdlib.h>
   13668 #include <string.h>
   13669 
   13670 int
   13671 main ()
   13672 {
   13673   static char program[] = "program";
   13674   static char ab[] = "-ab";
   13675   char *argv[3] = { program, ab, NULL };
   13676   if (getopt (2, argv, "ab:") != 'a')
   13677     return 13;
   13678   if (getopt (2, argv, "ab:") != '?')
   13679     return 14;
   13680   if (optopt != 'b')
   13681     return 15;
   13682   if (optind != 2)
   13683     return 16;
   13684   return 0;
   13685 }
   13686 
   13687 _ACEOF
   13688 if ac_fn_c_try_run "$LINENO"; then :
   13689   gl_cv_func_getopt_posix=yes
   13690 else
   13691   gl_cv_func_getopt_posix=no
   13692 fi
   13693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13694   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13695 fi
   13696 
   13697           fi
   13698         else
   13699           case "$host_os" in
   13700             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
   13701             *)                       gl_cv_func_getopt_posix="guessing yes";;
   13702           esac
   13703         fi
   13704 
   13705 fi
   13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
   13707 $as_echo "$gl_cv_func_getopt_posix" >&6; }
   13708     case "$gl_cv_func_getopt_posix" in
   13709       *no) gl_replace_getopt=yes ;;
   13710     esac
   13711   fi
   13712 
   13713   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
   13714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
   13715 $as_echo_n "checking for working GNU getopt function... " >&6; }
   13716 if ${gl_cv_func_getopt_gnu+:} false; then :
   13717   $as_echo_n "(cached) " >&6
   13718 else
   13719   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
   13720        # optstring is necessary for programs like m4 that have POSIX-mandated
   13721        # semantics for supporting options interspersed with files.
   13722        # Also, since getopt_long is a GNU extension, we require optind=0.
   13723        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
   13724        # so take care to revert to the correct (non-)export state.
   13725        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
   13726        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
   13727          xx) gl_had_POSIXLY_CORRECT=exported ;;
   13728          x)  gl_had_POSIXLY_CORRECT=yes      ;;
   13729          *)  gl_had_POSIXLY_CORRECT=         ;;
   13730        esac
   13731        POSIXLY_CORRECT=1
   13732        export POSIXLY_CORRECT
   13733        if test "$cross_compiling" = yes; then :
   13734            gl_cv_func_getopt_gnu="guessing no"
   13735 
   13736 else
   13737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13738 /* end confdefs.h.  */
   13739 #include <getopt.h>
   13740                            #include <stddef.h>
   13741                            #include <string.h>
   13742 
   13743 #include <stdlib.h>
   13744 #if defined __MACH__ && defined __APPLE__
   13745 /* Avoid a crash on Mac OS X.  */
   13746 #include <mach/mach.h>
   13747 #include <mach/mach_error.h>
   13748 #include <mach/thread_status.h>
   13749 #include <mach/exception.h>
   13750 #include <mach/task.h>
   13751 #include <pthread.h>
   13752 /* The exception port on which our thread listens.  */
   13753 static mach_port_t our_exception_port;
   13754 /* The main function of the thread listening for exceptions of type
   13755    EXC_BAD_ACCESS.  */
   13756 static void *
   13757 mach_exception_thread (void *arg)
   13758 {
   13759   /* Buffer for a message to be received.  */
   13760   struct {
   13761     mach_msg_header_t head;
   13762     mach_msg_body_t msgh_body;
   13763     char data[1024];
   13764   } msg;
   13765   mach_msg_return_t retval;
   13766   /* Wait for a message on the exception port.  */
   13767   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
   13768                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
   13769   if (retval != MACH_MSG_SUCCESS)
   13770     abort ();
   13771   exit (1);
   13772 }
   13773 static void
   13774 nocrash_init (void)
   13775 {
   13776   mach_port_t self = mach_task_self ();
   13777   /* Allocate a port on which the thread shall listen for exceptions.  */
   13778   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
   13779       == KERN_SUCCESS) {
   13780     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
   13781     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
   13782                                 MACH_MSG_TYPE_MAKE_SEND)
   13783         == KERN_SUCCESS) {
   13784       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
   13785          for us.  */
   13786       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
   13787       /* Create the thread listening on the exception port.  */
   13788       pthread_attr_t attr;
   13789       pthread_t thread;
   13790       if (pthread_attr_init (&attr) == 0
   13791           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
   13792           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
   13793         pthread_attr_destroy (&attr);
   13794         /* Replace the exception port info for these exceptions with our own.
   13795            Note that we replace the exception port for the entire task, not only
   13796            for a particular thread.  This has the effect that when our exception
   13797            port gets the message, the thread specific exception port has already
   13798            been asked, and we don't need to bother about it.
   13799            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
   13800         task_set_exception_ports (self, mask, our_exception_port,
   13801                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
   13802       }
   13803     }
   13804   }
   13805 }
   13806 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
   13807 /* Avoid a crash on native Windows.  */
   13808 #define WIN32_LEAN_AND_MEAN
   13809 #include <windows.h>
   13810 #include <winerror.h>
   13811 static LONG WINAPI
   13812 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
   13813 {
   13814   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
   13815     {
   13816     case EXCEPTION_ACCESS_VIOLATION:
   13817     case EXCEPTION_IN_PAGE_ERROR:
   13818     case EXCEPTION_STACK_OVERFLOW:
   13819     case EXCEPTION_GUARD_PAGE:
   13820     case EXCEPTION_PRIV_INSTRUCTION:
   13821     case EXCEPTION_ILLEGAL_INSTRUCTION:
   13822     case EXCEPTION_DATATYPE_MISALIGNMENT:
   13823     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
   13824     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
   13825       exit (1);
   13826     }
   13827   return EXCEPTION_CONTINUE_SEARCH;
   13828 }
   13829 static void
   13830 nocrash_init (void)
   13831 {
   13832   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
   13833 }
   13834 #else
   13835 /* Avoid a crash on POSIX systems.  */
   13836 #include <signal.h>
   13837 /* A POSIX signal handler.  */
   13838 static void
   13839 exception_handler (int sig)
   13840 {
   13841   exit (1);
   13842 }
   13843 static void
   13844 nocrash_init (void)
   13845 {
   13846 #ifdef SIGSEGV
   13847   signal (SIGSEGV, exception_handler);
   13848 #endif
   13849 #ifdef SIGBUS
   13850   signal (SIGBUS, exception_handler);
   13851 #endif
   13852 }
   13853 #endif
   13854 
   13855 
   13856 int
   13857 main ()
   13858 {
   13859 
   13860              int result = 0;
   13861 
   13862              nocrash_init();
   13863 
   13864              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
   13865                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
   13866                 OSF/1 5.1, Solaris 10.  */
   13867              {
   13868                static char conftest[] = "conftest";
   13869                static char plus[] = "-+";
   13870                char *argv[3] = { conftest, plus, NULL };
   13871                opterr = 0;
   13872                if (getopt (2, argv, "+a") != '?')
   13873                  result |= 1;
   13874              }
   13875              /* This code succeeds on glibc 2.8, mingw,
   13876                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
   13877                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
   13878              {
   13879                static char program[] = "program";
   13880                static char p[] = "-p";
   13881                static char foo[] = "foo";
   13882                static char bar[] = "bar";
   13883                char *argv[] = { program, p, foo, bar, NULL };
   13884 
   13885                optind = 1;
   13886                if (getopt (4, argv, "p::") != 'p')
   13887                  result |= 2;
   13888                else if (optarg != NULL)
   13889                  result |= 4;
   13890                else if (getopt (4, argv, "p::") != -1)
   13891                  result |= 6;
   13892                else if (optind != 2)
   13893                  result |= 8;
   13894              }
   13895              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
   13896              {
   13897                static char program[] = "program";
   13898                static char foo[] = "foo";
   13899                static char p[] = "-p";
   13900                char *argv[] = { program, foo, p, NULL };
   13901                optind = 0;
   13902                if (getopt (3, argv, "-p") != 1)
   13903                  result |= 16;
   13904                else if (getopt (3, argv, "-p") != 'p')
   13905                  result |= 16;
   13906              }
   13907              /* This code fails on glibc 2.11.  */
   13908              {
   13909                static char program[] = "program";
   13910                static char b[] = "-b";
   13911                static char a[] = "-a";
   13912                char *argv[] = { program, b, a, NULL };
   13913                optind = opterr = 0;
   13914                if (getopt (3, argv, "+:a:b") != 'b')
   13915                  result |= 32;
   13916                else if (getopt (3, argv, "+:a:b") != ':')
   13917                  result |= 32;
   13918              }
   13919              /* This code dumps core on glibc 2.14.  */
   13920              {
   13921                static char program[] = "program";
   13922                static char w[] = "-W";
   13923                static char dummy[] = "dummy";
   13924                char *argv[] = { program, w, dummy, NULL };
   13925                optind = opterr = 1;
   13926                if (getopt (3, argv, "W;") != 'W')
   13927                  result |= 64;
   13928              }
   13929              return result;
   13930 
   13931   ;
   13932   return 0;
   13933 }
   13934 _ACEOF
   13935 if ac_fn_c_try_run "$LINENO"; then :
   13936   gl_cv_func_getopt_gnu=yes
   13937 else
   13938   gl_cv_func_getopt_gnu=no
   13939 fi
   13940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13941   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13942 fi
   13943 
   13944        case $gl_had_POSIXLY_CORRECT in
   13945          exported) ;;
   13946          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
   13947          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
   13948        esac
   13949 
   13950 fi
   13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
   13952 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
   13953     if test "$gl_cv_func_getopt_gnu" != yes; then
   13954       gl_replace_getopt=yes
   13955     else
   13956       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
   13957 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
   13958 if ${gl_cv_func_getopt_long_gnu+:} false; then :
   13959   $as_echo_n "(cached) " >&6
   13960 else
   13961   if test "$cross_compiling" = yes; then :
   13962               case "$host_os" in
   13963               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
   13964               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
   13965             esac
   13966 
   13967 else
   13968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13969 /* end confdefs.h.  */
   13970 #include <getopt.h>
   13971                 #include <stddef.h>
   13972                 #include <string.h>
   13973 
   13974 int
   13975 main ()
   13976 {
   13977 static const struct option long_options[] =
   13978                   {
   13979                     { "xtremely-",no_argument,       NULL, 1003 },
   13980                     { "xtra",     no_argument,       NULL, 1001 },
   13981                     { "xtreme",   no_argument,       NULL, 1002 },
   13982                     { "xtremely", no_argument,       NULL, 1003 },
   13983                     { NULL,       0,                 NULL, 0 }
   13984                   };
   13985                 /* This code fails on OpenBSD 5.0.  */
   13986                 {
   13987                   static char program[] = "program";
   13988                   static char xtremel[] = "--xtremel";
   13989                   char *argv[] = { program, xtremel, NULL };
   13990                   int option_index;
   13991                   optind = 1; opterr = 0;
   13992                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
   13993                     return 1;
   13994                 }
   13995                 return 0;
   13996 
   13997   ;
   13998   return 0;
   13999 }
   14000 _ACEOF
   14001 if ac_fn_c_try_run "$LINENO"; then :
   14002   gl_cv_func_getopt_long_gnu=yes
   14003 else
   14004   gl_cv_func_getopt_long_gnu=no
   14005 fi
   14006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14007   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14008 fi
   14009 
   14010 
   14011 fi
   14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
   14013 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
   14014       case "$gl_cv_func_getopt_long_gnu" in
   14015         *yes) ;;
   14016         *) gl_replace_getopt=yes ;;
   14017       esac
   14018     fi
   14019   fi
   14020 
   14021 
   14022 
   14023 
   14024 
   14025 
   14026     REPLACE_GETOPT=0
   14027     if test -n "$gl_replace_getopt"; then
   14028       REPLACE_GETOPT=1
   14029     fi
   14030 
   14031   if test $REPLACE_GETOPT = 1; then
   14032 
   14033   GETOPT_H=getopt.h
   14034 
   14035 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
   14036 
   14037 
   14038 
   14039   fi
   14040 
   14041 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
   14042 if test "x$ac_cv_have_decl_getenv" = xyes; then :
   14043   ac_have_decl=1
   14044 else
   14045   ac_have_decl=0
   14046 fi
   14047 
   14048 cat >>confdefs.h <<_ACEOF
   14049 #define HAVE_DECL_GETENV $ac_have_decl
   14050 _ACEOF
   14051 
   14052 
   14053 
   14054 
   14055 
   14056 
   14057 
   14058 
   14059   if test $ac_cv_type_long_long_int = yes; then
   14060     HAVE_LONG_LONG_INT=1
   14061   else
   14062     HAVE_LONG_LONG_INT=0
   14063   fi
   14064 
   14065 
   14066   if test $ac_cv_type_unsigned_long_long_int = yes; then
   14067     HAVE_UNSIGNED_LONG_LONG_INT=1
   14068   else
   14069     HAVE_UNSIGNED_LONG_LONG_INT=0
   14070   fi
   14071 
   14072 
   14073 
   14074   if test $ac_cv_header_wchar_h = yes; then
   14075     HAVE_WCHAR_H=1
   14076   else
   14077     HAVE_WCHAR_H=0
   14078   fi
   14079 
   14080 
   14081       if test $ac_cv_header_inttypes_h = yes; then
   14082     HAVE_INTTYPES_H=1
   14083   else
   14084     HAVE_INTTYPES_H=0
   14085   fi
   14086 
   14087 
   14088       if test $ac_cv_header_sys_types_h = yes; then
   14089     HAVE_SYS_TYPES_H=1
   14090   else
   14091     HAVE_SYS_TYPES_H=0
   14092   fi
   14093 
   14094 
   14095 
   14096 
   14097 
   14098 
   14099 
   14100 
   14101 
   14102 
   14103 
   14104      if test $gl_cv_have_include_next = yes; then
   14105        gl_cv_next_stdint_h='<'stdint.h'>'
   14106      else
   14107        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
   14108 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
   14109 if ${gl_cv_next_stdint_h+:} false; then :
   14110   $as_echo_n "(cached) " >&6
   14111 else
   14112 
   14113              if test $ac_cv_header_stdint_h = yes; then
   14114 
   14115 
   14116                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14117 /* end confdefs.h.  */
   14118 #include <stdint.h>
   14119 
   14120 _ACEOF
   14121                                                                                                                         case "$host_os" in
   14122                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   14123                  *)    gl_absname_cpp="$ac_cpp" ;;
   14124                esac
   14125 
   14126                case "$host_os" in
   14127                  mingw*)
   14128                                                                                                                                      gl_dirsep_regex='[/\\]'
   14129                    ;;
   14130                  *)
   14131                    gl_dirsep_regex='\/'
   14132                    ;;
   14133                esac
   14134                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   14135 
   14136                gl_header_literal_regex=`echo 'stdint.h' \
   14137                                         | sed -e "$gl_make_literal_regex_sed"`
   14138                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   14139                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   14140                    s|^/[^/]|//&|
   14141                    p
   14142                    q
   14143                  }'
   14144                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   14145                       sed -n "$gl_absolute_header_sed"`'"'
   14146           else
   14147                gl_cv_next_stdint_h='<'stdint.h'>'
   14148              fi
   14149 
   14150 
   14151 fi
   14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
   14153 $as_echo "$gl_cv_next_stdint_h" >&6; }
   14154      fi
   14155      NEXT_STDINT_H=$gl_cv_next_stdint_h
   14156 
   14157      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   14158        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   14159        gl_next_as_first_directive='<'stdint.h'>'
   14160      else
   14161        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   14162        gl_next_as_first_directive=$gl_cv_next_stdint_h
   14163      fi
   14164      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
   14165 
   14166 
   14167 
   14168 
   14169   if test $ac_cv_header_stdint_h = yes; then
   14170     HAVE_STDINT_H=1
   14171   else
   14172     HAVE_STDINT_H=0
   14173   fi
   14174 
   14175 
   14176     if test $ac_cv_header_stdint_h = yes; then
   14177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
   14178 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
   14179 if ${gl_cv_header_working_stdint_h+:} false; then :
   14180   $as_echo_n "(cached) " >&6
   14181 else
   14182   gl_cv_header_working_stdint_h=no
   14183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14184 /* end confdefs.h.  */
   14185 
   14186 
   14187 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   14188 #include <stdint.h>
   14189 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
   14190 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
   14191 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
   14192 #endif
   14193 
   14194 
   14195   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14196      included before <wchar.h>.  */
   14197   #include <stddef.h>
   14198   #include <signal.h>
   14199   #if HAVE_WCHAR_H
   14200   # include <stdio.h>
   14201   # include <time.h>
   14202   # include <wchar.h>
   14203   #endif
   14204 
   14205 
   14206 #ifdef INT8_MAX
   14207 int8_t a1 = INT8_MAX;
   14208 int8_t a1min = INT8_MIN;
   14209 #endif
   14210 #ifdef INT16_MAX
   14211 int16_t a2 = INT16_MAX;
   14212 int16_t a2min = INT16_MIN;
   14213 #endif
   14214 #ifdef INT32_MAX
   14215 int32_t a3 = INT32_MAX;
   14216 int32_t a3min = INT32_MIN;
   14217 #endif
   14218 #ifdef INT64_MAX
   14219 int64_t a4 = INT64_MAX;
   14220 int64_t a4min = INT64_MIN;
   14221 #endif
   14222 #ifdef UINT8_MAX
   14223 uint8_t b1 = UINT8_MAX;
   14224 #else
   14225 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
   14226 #endif
   14227 #ifdef UINT16_MAX
   14228 uint16_t b2 = UINT16_MAX;
   14229 #endif
   14230 #ifdef UINT32_MAX
   14231 uint32_t b3 = UINT32_MAX;
   14232 #endif
   14233 #ifdef UINT64_MAX
   14234 uint64_t b4 = UINT64_MAX;
   14235 #endif
   14236 int_least8_t c1 = INT8_C (0x7f);
   14237 int_least8_t c1max = INT_LEAST8_MAX;
   14238 int_least8_t c1min = INT_LEAST8_MIN;
   14239 int_least16_t c2 = INT16_C (0x7fff);
   14240 int_least16_t c2max = INT_LEAST16_MAX;
   14241 int_least16_t c2min = INT_LEAST16_MIN;
   14242 int_least32_t c3 = INT32_C (0x7fffffff);
   14243 int_least32_t c3max = INT_LEAST32_MAX;
   14244 int_least32_t c3min = INT_LEAST32_MIN;
   14245 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
   14246 int_least64_t c4max = INT_LEAST64_MAX;
   14247 int_least64_t c4min = INT_LEAST64_MIN;
   14248 uint_least8_t d1 = UINT8_C (0xff);
   14249 uint_least8_t d1max = UINT_LEAST8_MAX;
   14250 uint_least16_t d2 = UINT16_C (0xffff);
   14251 uint_least16_t d2max = UINT_LEAST16_MAX;
   14252 uint_least32_t d3 = UINT32_C (0xffffffff);
   14253 uint_least32_t d3max = UINT_LEAST32_MAX;
   14254 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
   14255 uint_least64_t d4max = UINT_LEAST64_MAX;
   14256 int_fast8_t e1 = INT_FAST8_MAX;
   14257 int_fast8_t e1min = INT_FAST8_MIN;
   14258 int_fast16_t e2 = INT_FAST16_MAX;
   14259 int_fast16_t e2min = INT_FAST16_MIN;
   14260 int_fast32_t e3 = INT_FAST32_MAX;
   14261 int_fast32_t e3min = INT_FAST32_MIN;
   14262 int_fast64_t e4 = INT_FAST64_MAX;
   14263 int_fast64_t e4min = INT_FAST64_MIN;
   14264 uint_fast8_t f1 = UINT_FAST8_MAX;
   14265 uint_fast16_t f2 = UINT_FAST16_MAX;
   14266 uint_fast32_t f3 = UINT_FAST32_MAX;
   14267 uint_fast64_t f4 = UINT_FAST64_MAX;
   14268 #ifdef INTPTR_MAX
   14269 intptr_t g = INTPTR_MAX;
   14270 intptr_t gmin = INTPTR_MIN;
   14271 #endif
   14272 #ifdef UINTPTR_MAX
   14273 uintptr_t h = UINTPTR_MAX;
   14274 #endif
   14275 intmax_t i = INTMAX_MAX;
   14276 uintmax_t j = UINTMAX_MAX;
   14277 
   14278 #include <limits.h> /* for CHAR_BIT */
   14279 #define TYPE_MINIMUM(t) \
   14280   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
   14281 #define TYPE_MAXIMUM(t) \
   14282   ((t) ((t) 0 < (t) -1 \
   14283         ? (t) -1 \
   14284         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
   14285 struct s {
   14286   int check_PTRDIFF:
   14287       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
   14288       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
   14289       ? 1 : -1;
   14290   /* Detect bug in FreeBSD 6.0 / ia64.  */
   14291   int check_SIG_ATOMIC:
   14292       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
   14293       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
   14294       ? 1 : -1;
   14295   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
   14296   int check_WCHAR:
   14297       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
   14298       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
   14299       ? 1 : -1;
   14300   /* Detect bug in mingw.  */
   14301   int check_WINT:
   14302       WINT_MIN == TYPE_MINIMUM (wint_t)
   14303       && WINT_MAX == TYPE_MAXIMUM (wint_t)
   14304       ? 1 : -1;
   14305 
   14306   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
   14307   int check_UINT8_C:
   14308         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
   14309   int check_UINT16_C:
   14310         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
   14311 
   14312   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
   14313 #ifdef UINT8_MAX
   14314   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
   14315 #endif
   14316 #ifdef UINT16_MAX
   14317   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
   14318 #endif
   14319 #ifdef UINT32_MAX
   14320   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
   14321 #endif
   14322 #ifdef UINT64_MAX
   14323   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
   14324 #endif
   14325   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
   14326   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
   14327   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
   14328   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
   14329   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
   14330   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
   14331   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
   14332   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
   14333   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
   14334   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
   14335   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
   14336 };
   14337 
   14338 int
   14339 main ()
   14340 {
   14341 
   14342   ;
   14343   return 0;
   14344 }
   14345 _ACEOF
   14346 if ac_fn_c_try_compile "$LINENO"; then :
   14347                                                     if test "$cross_compiling" = yes; then :
   14348                  gl_cv_header_working_stdint_h=yes
   14349 
   14350 else
   14351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14352 /* end confdefs.h.  */
   14353 
   14354 
   14355 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   14356 #include <stdint.h>
   14357 
   14358 
   14359   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14360      included before <wchar.h>.  */
   14361   #include <stddef.h>
   14362   #include <signal.h>
   14363   #if HAVE_WCHAR_H
   14364   # include <stdio.h>
   14365   # include <time.h>
   14366   # include <wchar.h>
   14367   #endif
   14368 
   14369 
   14370 #include <stdio.h>
   14371 #include <string.h>
   14372 #define MVAL(macro) MVAL1(macro)
   14373 #define MVAL1(expression) #expression
   14374 static const char *macro_values[] =
   14375   {
   14376 #ifdef INT8_MAX
   14377     MVAL (INT8_MAX),
   14378 #endif
   14379 #ifdef INT16_MAX
   14380     MVAL (INT16_MAX),
   14381 #endif
   14382 #ifdef INT32_MAX
   14383     MVAL (INT32_MAX),
   14384 #endif
   14385 #ifdef INT64_MAX
   14386     MVAL (INT64_MAX),
   14387 #endif
   14388 #ifdef UINT8_MAX
   14389     MVAL (UINT8_MAX),
   14390 #endif
   14391 #ifdef UINT16_MAX
   14392     MVAL (UINT16_MAX),
   14393 #endif
   14394 #ifdef UINT32_MAX
   14395     MVAL (UINT32_MAX),
   14396 #endif
   14397 #ifdef UINT64_MAX
   14398     MVAL (UINT64_MAX),
   14399 #endif
   14400     NULL
   14401   };
   14402 
   14403 int
   14404 main ()
   14405 {
   14406 
   14407   const char **mv;
   14408   for (mv = macro_values; *mv != NULL; mv++)
   14409     {
   14410       const char *value = *mv;
   14411       /* Test whether it looks like a cast expression.  */
   14412       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
   14413           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
   14414           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
   14415           || strncmp (value, "((int)"/*)*/, 6) == 0
   14416           || strncmp (value, "((signed short)"/*)*/, 15) == 0
   14417           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
   14418         return mv - macro_values + 1;
   14419     }
   14420   return 0;
   14421 
   14422   ;
   14423   return 0;
   14424 }
   14425 _ACEOF
   14426 if ac_fn_c_try_run "$LINENO"; then :
   14427   gl_cv_header_working_stdint_h=yes
   14428 fi
   14429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14430   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14431 fi
   14432 
   14433 
   14434 fi
   14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14436 
   14437 fi
   14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
   14439 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
   14440   fi
   14441   if test "$gl_cv_header_working_stdint_h" = yes; then
   14442     STDINT_H=
   14443   else
   14444             for ac_header in sys/inttypes.h sys/bitypes.h
   14445 do :
   14446   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14447 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   14448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14449   cat >>confdefs.h <<_ACEOF
   14450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14451 _ACEOF
   14452 
   14453 fi
   14454 
   14455 done
   14456 
   14457     if test $ac_cv_header_sys_inttypes_h = yes; then
   14458       HAVE_SYS_INTTYPES_H=1
   14459     else
   14460       HAVE_SYS_INTTYPES_H=0
   14461     fi
   14462 
   14463     if test $ac_cv_header_sys_bitypes_h = yes; then
   14464       HAVE_SYS_BITYPES_H=1
   14465     else
   14466       HAVE_SYS_BITYPES_H=0
   14467     fi
   14468 
   14469 
   14470 
   14471 
   14472   if test $APPLE_UNIVERSAL_BUILD = 0; then
   14473 
   14474 
   14475   for gltype in ptrdiff_t size_t ; do
   14476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
   14477 $as_echo_n "checking for bit size of $gltype... " >&6; }
   14478 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
   14479   $as_echo_n "(cached) " >&6
   14480 else
   14481   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
   14482   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14483      included before <wchar.h>.  */
   14484   #include <stddef.h>
   14485   #include <signal.h>
   14486   #if HAVE_WCHAR_H
   14487   # include <stdio.h>
   14488   # include <time.h>
   14489   # include <wchar.h>
   14490   #endif
   14491 
   14492 #include <limits.h>"; then :
   14493 
   14494 else
   14495   result=unknown
   14496 fi
   14497 
   14498        eval gl_cv_bitsizeof_${gltype}=\$result
   14499 
   14500 fi
   14501 eval ac_res=\$gl_cv_bitsizeof_${gltype}
   14502 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   14503 $as_echo "$ac_res" >&6; }
   14504     eval result=\$gl_cv_bitsizeof_${gltype}
   14505     if test $result = unknown; then
   14506                                                 result=0
   14507     fi
   14508     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   14509     cat >>confdefs.h <<_ACEOF
   14510 #define BITSIZEOF_${GLTYPE} $result
   14511 _ACEOF
   14512 
   14513     eval BITSIZEOF_${GLTYPE}=\$result
   14514   done
   14515 
   14516 
   14517   fi
   14518 
   14519 
   14520   for gltype in sig_atomic_t wchar_t wint_t ; do
   14521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
   14522 $as_echo_n "checking for bit size of $gltype... " >&6; }
   14523 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
   14524   $as_echo_n "(cached) " >&6
   14525 else
   14526   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
   14527   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14528      included before <wchar.h>.  */
   14529   #include <stddef.h>
   14530   #include <signal.h>
   14531   #if HAVE_WCHAR_H
   14532   # include <stdio.h>
   14533   # include <time.h>
   14534   # include <wchar.h>
   14535   #endif
   14536 
   14537 #include <limits.h>"; then :
   14538 
   14539 else
   14540   result=unknown
   14541 fi
   14542 
   14543        eval gl_cv_bitsizeof_${gltype}=\$result
   14544 
   14545 fi
   14546 eval ac_res=\$gl_cv_bitsizeof_${gltype}
   14547 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   14548 $as_echo "$ac_res" >&6; }
   14549     eval result=\$gl_cv_bitsizeof_${gltype}
   14550     if test $result = unknown; then
   14551                                                 result=0
   14552     fi
   14553     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   14554     cat >>confdefs.h <<_ACEOF
   14555 #define BITSIZEOF_${GLTYPE} $result
   14556 _ACEOF
   14557 
   14558     eval BITSIZEOF_${GLTYPE}=\$result
   14559   done
   14560 
   14561 
   14562 
   14563 
   14564   for gltype in sig_atomic_t wchar_t wint_t ; do
   14565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
   14566 $as_echo_n "checking whether $gltype is signed... " >&6; }
   14567 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
   14568   $as_echo_n "(cached) " >&6
   14569 else
   14570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14571 /* end confdefs.h.  */
   14572 
   14573   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14574      included before <wchar.h>.  */
   14575   #include <stddef.h>
   14576   #include <signal.h>
   14577   #if HAVE_WCHAR_H
   14578   # include <stdio.h>
   14579   # include <time.h>
   14580   # include <wchar.h>
   14581   #endif
   14582 
   14583             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
   14584 int
   14585 main ()
   14586 {
   14587 
   14588   ;
   14589   return 0;
   14590 }
   14591 _ACEOF
   14592 if ac_fn_c_try_compile "$LINENO"; then :
   14593   result=yes
   14594 else
   14595   result=no
   14596 fi
   14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14598        eval gl_cv_type_${gltype}_signed=\$result
   14599 
   14600 fi
   14601 eval ac_res=\$gl_cv_type_${gltype}_signed
   14602 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   14603 $as_echo "$ac_res" >&6; }
   14604     eval result=\$gl_cv_type_${gltype}_signed
   14605     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   14606     if test "$result" = yes; then
   14607       cat >>confdefs.h <<_ACEOF
   14608 #define HAVE_SIGNED_${GLTYPE} 1
   14609 _ACEOF
   14610 
   14611       eval HAVE_SIGNED_${GLTYPE}=1
   14612     else
   14613       eval HAVE_SIGNED_${GLTYPE}=0
   14614     fi
   14615   done
   14616 
   14617 
   14618   gl_cv_type_ptrdiff_t_signed=yes
   14619   gl_cv_type_size_t_signed=no
   14620   if test $APPLE_UNIVERSAL_BUILD = 0; then
   14621 
   14622 
   14623   for gltype in ptrdiff_t size_t ; do
   14624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
   14625 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
   14626 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
   14627   $as_echo_n "(cached) " >&6
   14628 else
   14629   eval gl_cv_type_${gltype}_suffix=no
   14630        eval result=\$gl_cv_type_${gltype}_signed
   14631        if test "$result" = yes; then
   14632          glsufu=
   14633        else
   14634          glsufu=u
   14635        fi
   14636        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
   14637          case $glsuf in
   14638            '')  gltype1='int';;
   14639            l)   gltype1='long int';;
   14640            ll)  gltype1='long long int';;
   14641            i64) gltype1='__int64';;
   14642            u)   gltype1='unsigned int';;
   14643            ul)  gltype1='unsigned long int';;
   14644            ull) gltype1='unsigned long long int';;
   14645            ui64)gltype1='unsigned __int64';;
   14646          esac
   14647          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14648 /* end confdefs.h.  */
   14649 
   14650   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14651      included before <wchar.h>.  */
   14652   #include <stddef.h>
   14653   #include <signal.h>
   14654   #if HAVE_WCHAR_H
   14655   # include <stdio.h>
   14656   # include <time.h>
   14657   # include <wchar.h>
   14658   #endif
   14659 
   14660               extern $gltype foo;
   14661               extern $gltype1 foo;
   14662 int
   14663 main ()
   14664 {
   14665 
   14666   ;
   14667   return 0;
   14668 }
   14669 _ACEOF
   14670 if ac_fn_c_try_compile "$LINENO"; then :
   14671   eval gl_cv_type_${gltype}_suffix=\$glsuf
   14672 fi
   14673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14674          eval result=\$gl_cv_type_${gltype}_suffix
   14675          test "$result" != no && break
   14676        done
   14677 fi
   14678 eval ac_res=\$gl_cv_type_${gltype}_suffix
   14679 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   14680 $as_echo "$ac_res" >&6; }
   14681     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   14682     eval result=\$gl_cv_type_${gltype}_suffix
   14683     test "$result" = no && result=
   14684     eval ${GLTYPE}_SUFFIX=\$result
   14685     cat >>confdefs.h <<_ACEOF
   14686 #define ${GLTYPE}_SUFFIX $result
   14687 _ACEOF
   14688 
   14689   done
   14690 
   14691 
   14692   fi
   14693 
   14694 
   14695   for gltype in sig_atomic_t wchar_t wint_t ; do
   14696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
   14697 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
   14698 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
   14699   $as_echo_n "(cached) " >&6
   14700 else
   14701   eval gl_cv_type_${gltype}_suffix=no
   14702        eval result=\$gl_cv_type_${gltype}_signed
   14703        if test "$result" = yes; then
   14704          glsufu=
   14705        else
   14706          glsufu=u
   14707        fi
   14708        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
   14709          case $glsuf in
   14710            '')  gltype1='int';;
   14711            l)   gltype1='long int';;
   14712            ll)  gltype1='long long int';;
   14713            i64) gltype1='__int64';;
   14714            u)   gltype1='unsigned int';;
   14715            ul)  gltype1='unsigned long int';;
   14716            ull) gltype1='unsigned long long int';;
   14717            ui64)gltype1='unsigned __int64';;
   14718          esac
   14719          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14720 /* end confdefs.h.  */
   14721 
   14722   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   14723      included before <wchar.h>.  */
   14724   #include <stddef.h>
   14725   #include <signal.h>
   14726   #if HAVE_WCHAR_H
   14727   # include <stdio.h>
   14728   # include <time.h>
   14729   # include <wchar.h>
   14730   #endif
   14731 
   14732               extern $gltype foo;
   14733               extern $gltype1 foo;
   14734 int
   14735 main ()
   14736 {
   14737 
   14738   ;
   14739   return 0;
   14740 }
   14741 _ACEOF
   14742 if ac_fn_c_try_compile "$LINENO"; then :
   14743   eval gl_cv_type_${gltype}_suffix=\$glsuf
   14744 fi
   14745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14746          eval result=\$gl_cv_type_${gltype}_suffix
   14747          test "$result" != no && break
   14748        done
   14749 fi
   14750 eval ac_res=\$gl_cv_type_${gltype}_suffix
   14751 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   14752 $as_echo "$ac_res" >&6; }
   14753     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   14754     eval result=\$gl_cv_type_${gltype}_suffix
   14755     test "$result" = no && result=
   14756     eval ${GLTYPE}_SUFFIX=\$result
   14757     cat >>confdefs.h <<_ACEOF
   14758 #define ${GLTYPE}_SUFFIX $result
   14759 _ACEOF
   14760 
   14761   done
   14762 
   14763 
   14764 
   14765           if test $BITSIZEOF_WINT_T -lt 32; then
   14766     BITSIZEOF_WINT_T=32
   14767   fi
   14768 
   14769     STDINT_H=stdint.h
   14770   fi
   14771 
   14772    if test -n "$STDINT_H"; then
   14773   GL_GENERATE_STDINT_H_TRUE=
   14774   GL_GENERATE_STDINT_H_FALSE='#'
   14775 else
   14776   GL_GENERATE_STDINT_H_TRUE='#'
   14777   GL_GENERATE_STDINT_H_FALSE=
   14778 fi
   14779 
   14780 
   14781 
   14782 
   14783 
   14784   GNULIB_IMAXABS=0;
   14785   GNULIB_IMAXDIV=0;
   14786   GNULIB_STRTOIMAX=0;
   14787   GNULIB_STRTOUMAX=0;
   14788     HAVE_DECL_IMAXABS=1;
   14789   HAVE_DECL_IMAXDIV=1;
   14790   HAVE_DECL_STRTOIMAX=1;
   14791   HAVE_DECL_STRTOUMAX=1;
   14792   REPLACE_STRTOIMAX=0;
   14793   INT32_MAX_LT_INTMAX_MAX=1;
   14794   INT64_MAX_EQ_LONG_MAX='defined _LP64';
   14795   PRI_MACROS_BROKEN=0;
   14796   PRIPTR_PREFIX=__PRIPTR_PREFIX;
   14797   UINT32_MAX_LT_UINTMAX_MAX=1;
   14798   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
   14799 
   14800 
   14801 
   14802 
   14803 
   14804 
   14805 
   14806 
   14807 
   14808 
   14809 
   14810 
   14811 
   14812 
   14813 
   14814      if test $gl_cv_have_include_next = yes; then
   14815        gl_cv_next_inttypes_h='<'inttypes.h'>'
   14816      else
   14817        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
   14818 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
   14819 if ${gl_cv_next_inttypes_h+:} false; then :
   14820   $as_echo_n "(cached) " >&6
   14821 else
   14822 
   14823              if test $ac_cv_header_inttypes_h = yes; then
   14824 
   14825 
   14826                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14827 /* end confdefs.h.  */
   14828 #include <inttypes.h>
   14829 
   14830 _ACEOF
   14831                                                                                                                         case "$host_os" in
   14832                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   14833                  *)    gl_absname_cpp="$ac_cpp" ;;
   14834                esac
   14835 
   14836                case "$host_os" in
   14837                  mingw*)
   14838                                                                                                                                      gl_dirsep_regex='[/\\]'
   14839                    ;;
   14840                  *)
   14841                    gl_dirsep_regex='\/'
   14842                    ;;
   14843                esac
   14844                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   14845 
   14846                gl_header_literal_regex=`echo 'inttypes.h' \
   14847                                         | sed -e "$gl_make_literal_regex_sed"`
   14848                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   14849                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   14850                    s|^/[^/]|//&|
   14851                    p
   14852                    q
   14853                  }'
   14854                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   14855                       sed -n "$gl_absolute_header_sed"`'"'
   14856           else
   14857                gl_cv_next_inttypes_h='<'inttypes.h'>'
   14858              fi
   14859 
   14860 
   14861 fi
   14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
   14863 $as_echo "$gl_cv_next_inttypes_h" >&6; }
   14864      fi
   14865      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
   14866 
   14867      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   14868        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   14869        gl_next_as_first_directive='<'inttypes.h'>'
   14870      else
   14871        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   14872        gl_next_as_first_directive=$gl_cv_next_inttypes_h
   14873      fi
   14874      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
   14875 
   14876 
   14877 
   14878 
   14879 
   14880 
   14881 
   14882 
   14883     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
   14884     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   14885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   14886 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   14887 if eval \${$as_gl_Symbol+:} false; then :
   14888   $as_echo_n "(cached) " >&6
   14889 else
   14890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14891 /* end confdefs.h.  */
   14892 #include <inttypes.h>
   14893 
   14894 int
   14895 main ()
   14896 {
   14897 #undef $gl_func
   14898   (void) $gl_func;
   14899   ;
   14900   return 0;
   14901 }
   14902 _ACEOF
   14903 if ac_fn_c_try_compile "$LINENO"; then :
   14904   eval "$as_gl_Symbol=yes"
   14905 else
   14906   eval "$as_gl_Symbol=no"
   14907 fi
   14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14909 fi
   14910 eval ac_res=\$$as_gl_Symbol
   14911 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   14912 $as_echo "$ac_res" >&6; }
   14913     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   14914   cat >>confdefs.h <<_ACEOF
   14915 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   14916 _ACEOF
   14917 
   14918                      eval ac_cv_have_decl_$gl_func=yes
   14919 fi
   14920       done
   14921 
   14922 
   14923 
   14924   for ac_header in inttypes.h
   14925 do :
   14926   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
   14927 if test "x$ac_cv_header_inttypes_h" = xyes; then :
   14928   cat >>confdefs.h <<_ACEOF
   14929 #define HAVE_INTTYPES_H 1
   14930 _ACEOF
   14931 
   14932 fi
   14933 
   14934 done
   14935 
   14936   if test $ac_cv_header_inttypes_h = yes; then
   14937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
   14938 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
   14939 if ${gt_cv_inttypes_pri_broken+:} false; then :
   14940   $as_echo_n "(cached) " >&6
   14941 else
   14942 
   14943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14944 /* end confdefs.h.  */
   14945 
   14946 #include <inttypes.h>
   14947 #ifdef PRId32
   14948 char *p = PRId32;
   14949 #endif
   14950 
   14951 int
   14952 main ()
   14953 {
   14954 
   14955   ;
   14956   return 0;
   14957 }
   14958 _ACEOF
   14959 if ac_fn_c_try_compile "$LINENO"; then :
   14960   gt_cv_inttypes_pri_broken=no
   14961 else
   14962   gt_cv_inttypes_pri_broken=yes
   14963 fi
   14964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14965 
   14966 fi
   14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
   14968 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
   14969   fi
   14970   if test "$gt_cv_inttypes_pri_broken" = yes; then
   14971 
   14972 cat >>confdefs.h <<_ACEOF
   14973 #define PRI_MACROS_BROKEN 1
   14974 _ACEOF
   14975 
   14976     PRI_MACROS_BROKEN=1
   14977   else
   14978     PRI_MACROS_BROKEN=0
   14979   fi
   14980 
   14981 
   14982 
   14983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
   14984 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
   14985 if ${gl_cv_cc_float_expbit0+:} false; then :
   14986   $as_echo_n "(cached) " >&6
   14987 else
   14988 
   14989       if test "$cross_compiling" = yes; then :
   14990   gl_cv_cc_float_expbit0="word 0 bit 23"
   14991 else
   14992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14993 /* end confdefs.h.  */
   14994 
   14995 #include <float.h>
   14996 #include <stddef.h>
   14997 #include <stdio.h>
   14998 #include <string.h>
   14999 #define NWORDS \
   15000   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   15001 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
   15002 static unsigned int ored_words[NWORDS];
   15003 static unsigned int anded_words[NWORDS];
   15004 static void add_to_ored_words (float x)
   15005 {
   15006   memory_float m;
   15007   size_t i;
   15008   /* Clear it first, in case
   15009      sizeof (float) < sizeof (memory_float).  */
   15010   memset (&m, 0, sizeof (memory_float));
   15011   m.value = x;
   15012   for (i = 0; i < NWORDS; i++)
   15013     {
   15014       ored_words[i] |= m.word[i];
   15015       anded_words[i] &= m.word[i];
   15016     }
   15017 }
   15018 int main ()
   15019 {
   15020   size_t j;
   15021   FILE *fp = fopen ("conftest.out", "w");
   15022   if (fp == NULL)
   15023     return 1;
   15024   for (j = 0; j < NWORDS; j++)
   15025     anded_words[j] = ~ (unsigned int) 0;
   15026   add_to_ored_words (0.25f);
   15027   add_to_ored_words (0.5f);
   15028   add_to_ored_words (1.0f);
   15029   add_to_ored_words (2.0f);
   15030   add_to_ored_words (4.0f);
   15031   /* Remove bits that are common (e.g. if representation of the first mantissa
   15032      bit is explicit).  */
   15033   for (j = 0; j < NWORDS; j++)
   15034     ored_words[j] &= ~anded_words[j];
   15035   /* Now find the nonzero word.  */
   15036   for (j = 0; j < NWORDS; j++)
   15037     if (ored_words[j] != 0)
   15038       break;
   15039   if (j < NWORDS)
   15040     {
   15041       size_t i;
   15042       for (i = j + 1; i < NWORDS; i++)
   15043         if (ored_words[i] != 0)
   15044           {
   15045             fprintf (fp, "unknown");
   15046             return (fclose (fp) != 0);
   15047           }
   15048       for (i = 0; ; i++)
   15049         if ((ored_words[j] >> i) & 1)
   15050           {
   15051             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   15052             return (fclose (fp) != 0);
   15053           }
   15054     }
   15055   fprintf (fp, "unknown");
   15056   return (fclose (fp) != 0);
   15057 }
   15058 
   15059 _ACEOF
   15060 if ac_fn_c_try_run "$LINENO"; then :
   15061   gl_cv_cc_float_expbit0=`cat conftest.out`
   15062 else
   15063   gl_cv_cc_float_expbit0="unknown"
   15064 fi
   15065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15066   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15067 fi
   15068 
   15069       rm -f conftest.out
   15070 
   15071 fi
   15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
   15073 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
   15074   case "$gl_cv_cc_float_expbit0" in
   15075     word*bit*)
   15076       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   15077       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
   15078 
   15079 cat >>confdefs.h <<_ACEOF
   15080 #define FLT_EXPBIT0_WORD $word
   15081 _ACEOF
   15082 
   15083 
   15084 cat >>confdefs.h <<_ACEOF
   15085 #define FLT_EXPBIT0_BIT $bit
   15086 _ACEOF
   15087 
   15088       ;;
   15089   esac
   15090 
   15091 
   15092 
   15093   ISNANF_LIBM=
   15094 
   15095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
   15096 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
   15097 if ${gl_cv_func_isnanf_no_libm+:} false; then :
   15098   $as_echo_n "(cached) " >&6
   15099 else
   15100 
   15101       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15102 /* end confdefs.h.  */
   15103 #include <math.h>
   15104              #if __GNUC__ >= 4
   15105              # undef isnanf
   15106              # define isnanf(x) __builtin_isnanf ((float)(x))
   15107              #elif defined isnan
   15108              # undef isnanf
   15109              # define isnanf(x) isnan ((float)(x))
   15110              #endif
   15111              float x;
   15112 int
   15113 main ()
   15114 {
   15115 return isnanf (x);
   15116   ;
   15117   return 0;
   15118 }
   15119 _ACEOF
   15120 if ac_fn_c_try_link "$LINENO"; then :
   15121   gl_cv_func_isnanf_no_libm=yes
   15122 else
   15123   gl_cv_func_isnanf_no_libm=no
   15124 fi
   15125 rm -f core conftest.err conftest.$ac_objext \
   15126     conftest$ac_exeext conftest.$ac_ext
   15127 
   15128 fi
   15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
   15130 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
   15131 
   15132   if test $gl_cv_func_isnanf_no_libm = no; then
   15133 
   15134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
   15135 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
   15136 if ${gl_cv_func_isnanf_in_libm+:} false; then :
   15137   $as_echo_n "(cached) " >&6
   15138 else
   15139 
   15140       save_LIBS="$LIBS"
   15141       LIBS="$LIBS -lm"
   15142       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15143 /* end confdefs.h.  */
   15144 #include <math.h>
   15145              #if __GNUC__ >= 4
   15146              # undef isnanf
   15147              # define isnanf(x) __builtin_isnanf ((float)(x))
   15148              #elif defined isnan
   15149              # undef isnanf
   15150              # define isnanf(x) isnan ((float)(x))
   15151              #endif
   15152              float x;
   15153 int
   15154 main ()
   15155 {
   15156 return isnanf (x);
   15157   ;
   15158   return 0;
   15159 }
   15160 _ACEOF
   15161 if ac_fn_c_try_link "$LINENO"; then :
   15162   gl_cv_func_isnanf_in_libm=yes
   15163 else
   15164   gl_cv_func_isnanf_in_libm=no
   15165 fi
   15166 rm -f core conftest.err conftest.$ac_objext \
   15167     conftest$ac_exeext conftest.$ac_ext
   15168       LIBS="$save_LIBS"
   15169 
   15170 fi
   15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
   15172 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
   15173 
   15174     if test $gl_cv_func_isnanf_in_libm = yes; then
   15175       ISNANF_LIBM=-lm
   15176     fi
   15177   fi
   15178     if test $gl_cv_func_isnanf_no_libm = yes \
   15179      || test $gl_cv_func_isnanf_in_libm = yes; then
   15180     save_LIBS="$LIBS"
   15181     LIBS="$LIBS $ISNANF_LIBM"
   15182 
   15183 
   15184 
   15185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
   15186 $as_echo_n "checking whether isnan(float) works... " >&6; }
   15187 if ${gl_cv_func_isnanf_works+:} false; then :
   15188   $as_echo_n "(cached) " >&6
   15189 else
   15190 
   15191       if test "$cross_compiling" = yes; then :
   15192   case "$host_os" in
   15193            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
   15194            *)                gl_cv_func_isnanf_works="guessing yes";;
   15195          esac
   15196 
   15197 else
   15198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15199 /* end confdefs.h.  */
   15200 
   15201 #include <math.h>
   15202 #if __GNUC__ >= 4
   15203 # undef isnanf
   15204 # define isnanf(x) __builtin_isnanf ((float)(x))
   15205 #elif defined isnan
   15206 # undef isnanf
   15207 # define isnanf(x) isnan ((float)(x))
   15208 #endif
   15209 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
   15210 #ifdef __DECC
   15211 static float
   15212 NaN ()
   15213 {
   15214   static float zero = 0.0f;
   15215   return zero / zero;
   15216 }
   15217 #else
   15218 # define NaN() (0.0f / 0.0f)
   15219 #endif
   15220 #define NWORDS \
   15221   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   15222 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
   15223 int main()
   15224 {
   15225   int result = 0;
   15226 
   15227   if (isnanf (1.0f / 0.0f))
   15228     result |= 1;
   15229 
   15230   if (!isnanf (NaN ()))
   15231     result |= 2;
   15232 
   15233 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
   15234   /* The isnanf function should be immune against changes in the sign bit and
   15235      in the mantissa bits.  The xor operation twiddles a bit that can only be
   15236      a sign bit or a mantissa bit.  */
   15237   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
   15238     {
   15239       memory_float m;
   15240 
   15241       m.value = NaN ();
   15242       /* Set the bits below the exponent to 01111...111.  */
   15243       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
   15244       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
   15245       if (!isnanf (m.value))
   15246         result |= 4;
   15247     }
   15248 #endif
   15249 
   15250   return result;
   15251 }
   15252 _ACEOF
   15253 if ac_fn_c_try_run "$LINENO"; then :
   15254   gl_cv_func_isnanf_works=yes
   15255 else
   15256   gl_cv_func_isnanf_works=no
   15257 fi
   15258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15259   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15260 fi
   15261 
   15262 
   15263 fi
   15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
   15265 $as_echo "$gl_cv_func_isnanf_works" >&6; }
   15266 
   15267     LIBS="$save_LIBS"
   15268     case "$gl_cv_func_isnanf_works" in
   15269       *yes) gl_func_isnanf=yes ;;
   15270       *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
   15271     esac
   15272   else
   15273     gl_func_isnanf=no
   15274   fi
   15275   if test $gl_func_isnanf != yes; then
   15276     HAVE_ISNANF=0
   15277   fi
   15278 
   15279 
   15280 
   15281 
   15282   ISNAND_LIBM=
   15283 
   15284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
   15285 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
   15286 if ${gl_cv_func_isnand_no_libm+:} false; then :
   15287   $as_echo_n "(cached) " >&6
   15288 else
   15289 
   15290       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15291 /* end confdefs.h.  */
   15292 #include <math.h>
   15293              #if __GNUC__ >= 4
   15294              # undef isnand
   15295              # define isnand(x) __builtin_isnan ((double)(x))
   15296              #else
   15297              # undef isnand
   15298              # define isnand(x) isnan ((double)(x))
   15299              #endif
   15300              double x;
   15301 int
   15302 main ()
   15303 {
   15304 return isnand (x);
   15305   ;
   15306   return 0;
   15307 }
   15308 _ACEOF
   15309 if ac_fn_c_try_link "$LINENO"; then :
   15310   gl_cv_func_isnand_no_libm=yes
   15311 else
   15312   gl_cv_func_isnand_no_libm=no
   15313 fi
   15314 rm -f core conftest.err conftest.$ac_objext \
   15315     conftest$ac_exeext conftest.$ac_ext
   15316 
   15317 fi
   15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
   15319 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
   15320 
   15321   if test $gl_cv_func_isnand_no_libm = no; then
   15322 
   15323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
   15324 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
   15325 if ${gl_cv_func_isnand_in_libm+:} false; then :
   15326   $as_echo_n "(cached) " >&6
   15327 else
   15328 
   15329       save_LIBS="$LIBS"
   15330       LIBS="$LIBS -lm"
   15331       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15332 /* end confdefs.h.  */
   15333 #include <math.h>
   15334              #if __GNUC__ >= 4
   15335              # undef isnand
   15336              # define isnand(x) __builtin_isnan ((double)(x))
   15337              #elif defined isnan
   15338              # undef isnand
   15339              # define isnand(x) isnan ((double)(x))
   15340              #endif
   15341              double x;
   15342 int
   15343 main ()
   15344 {
   15345 return isnand (x);
   15346   ;
   15347   return 0;
   15348 }
   15349 _ACEOF
   15350 if ac_fn_c_try_link "$LINENO"; then :
   15351   gl_cv_func_isnand_in_libm=yes
   15352 else
   15353   gl_cv_func_isnand_in_libm=no
   15354 fi
   15355 rm -f core conftest.err conftest.$ac_objext \
   15356     conftest$ac_exeext conftest.$ac_ext
   15357       LIBS="$save_LIBS"
   15358 
   15359 fi
   15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
   15361 $as_echo "$gl_cv_func_isnand_in_libm" >&6; }
   15362 
   15363     if test $gl_cv_func_isnand_in_libm = yes; then
   15364       ISNAND_LIBM=-lm
   15365     fi
   15366   fi
   15367     if test $gl_cv_func_isnand_no_libm = yes \
   15368      || test $gl_cv_func_isnand_in_libm = yes; then
   15369     gl_func_isnand=yes
   15370   else
   15371     gl_func_isnand=no
   15372     HAVE_ISNAND=0
   15373   fi
   15374 
   15375 
   15376 
   15377 
   15378   ISNANL_LIBM=
   15379 
   15380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
   15381 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
   15382 if ${gl_cv_func_isnanl_no_libm+:} false; then :
   15383   $as_echo_n "(cached) " >&6
   15384 else
   15385 
   15386       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15387 /* end confdefs.h.  */
   15388 #include <math.h>
   15389              #if __GNUC__ >= 4
   15390              # undef isnanl
   15391              # define isnanl(x) __builtin_isnanl ((long double)(x))
   15392              #elif defined isnan
   15393              # undef isnanl
   15394              # define isnanl(x) isnan ((long double)(x))
   15395              #endif
   15396              long double x;
   15397 int
   15398 main ()
   15399 {
   15400 return isnanl (x);
   15401   ;
   15402   return 0;
   15403 }
   15404 _ACEOF
   15405 if ac_fn_c_try_link "$LINENO"; then :
   15406   gl_cv_func_isnanl_no_libm=yes
   15407 else
   15408   gl_cv_func_isnanl_no_libm=no
   15409 fi
   15410 rm -f core conftest.err conftest.$ac_objext \
   15411     conftest$ac_exeext conftest.$ac_ext
   15412 
   15413 fi
   15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
   15415 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
   15416 
   15417   if test $gl_cv_func_isnanl_no_libm = no; then
   15418 
   15419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
   15420 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
   15421 if ${gl_cv_func_isnanl_in_libm+:} false; then :
   15422   $as_echo_n "(cached) " >&6
   15423 else
   15424 
   15425       save_LIBS="$LIBS"
   15426       LIBS="$LIBS -lm"
   15427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15428 /* end confdefs.h.  */
   15429 #include <math.h>
   15430              #if __GNUC__ >= 4
   15431              # undef isnanl
   15432              # define isnanl(x) __builtin_isnanl ((long double)(x))
   15433              #elif defined isnan
   15434              # undef isnanl
   15435              # define isnanl(x) isnan ((long double)(x))
   15436              #endif
   15437              long double x;
   15438 int
   15439 main ()
   15440 {
   15441 return isnanl (x);
   15442   ;
   15443   return 0;
   15444 }
   15445 _ACEOF
   15446 if ac_fn_c_try_link "$LINENO"; then :
   15447   gl_cv_func_isnanl_in_libm=yes
   15448 else
   15449   gl_cv_func_isnanl_in_libm=no
   15450 fi
   15451 rm -f core conftest.err conftest.$ac_objext \
   15452     conftest$ac_exeext conftest.$ac_ext
   15453       LIBS="$save_LIBS"
   15454 
   15455 fi
   15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
   15457 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
   15458 
   15459     if test $gl_cv_func_isnanl_in_libm = yes; then
   15460       ISNANL_LIBM=-lm
   15461     fi
   15462   fi
   15463     if test $gl_cv_func_isnanl_no_libm = yes \
   15464      || test $gl_cv_func_isnanl_in_libm = yes; then
   15465     save_LIBS="$LIBS"
   15466     LIBS="$LIBS $ISNANL_LIBM"
   15467 
   15468 
   15469 
   15470 
   15471      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
   15472 $as_echo_n "checking whether isnanl works... " >&6; }
   15473 if ${gl_cv_func_isnanl_works+:} false; then :
   15474   $as_echo_n "(cached) " >&6
   15475 else
   15476 
   15477       if test "$cross_compiling" = yes; then :
   15478   case "$host_cpu" in
   15479                                  # Guess no on ia64, x86_64, i386.
   15480            ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
   15481            *)
   15482              case "$host_os" in
   15483                netbsd*) gl_cv_func_isnanl_works="guessing no";;
   15484                *)       gl_cv_func_isnanl_works="guessing yes";;
   15485              esac
   15486              ;;
   15487          esac
   15488 
   15489 else
   15490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15491 /* end confdefs.h.  */
   15492 
   15493 #include <float.h>
   15494 #include <limits.h>
   15495 #include <math.h>
   15496 #if __GNUC__ >= 4
   15497 # undef isnanl
   15498 # define isnanl(x) __builtin_isnanl ((long double)(x))
   15499 #elif defined isnan
   15500 # undef isnanl
   15501 # define isnanl(x) isnan ((long double)(x))
   15502 #endif
   15503 #define NWORDS \
   15504   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   15505 typedef union { unsigned int word[NWORDS]; long double value; }
   15506         memory_long_double;
   15507 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
   15508    runtime type conversion.  */
   15509 #ifdef __sgi
   15510 static long double NaNl ()
   15511 {
   15512   double zero = 0.0;
   15513   return zero / zero;
   15514 }
   15515 #else
   15516 # define NaNl() (0.0L / 0.0L)
   15517 #endif
   15518 int main ()
   15519 {
   15520   int result = 0;
   15521 
   15522   if (!isnanl (NaNl ()))
   15523     result |= 1;
   15524 
   15525   {
   15526     memory_long_double m;
   15527     unsigned int i;
   15528 
   15529     /* The isnanl function should be immune against changes in the sign bit and
   15530        in the mantissa bits.  The xor operation twiddles a bit that can only be
   15531        a sign bit or a mantissa bit (since the exponent never extends to
   15532        bit 31).  */
   15533     m.value = NaNl ();
   15534     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
   15535     for (i = 0; i < NWORDS; i++)
   15536       m.word[i] |= 1;
   15537     if (!isnanl (m.value))
   15538       result |= 1;
   15539   }
   15540 
   15541 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   15542 /* Representation of an 80-bit 'long double' as an initializer for a sequence
   15543    of 'unsigned int' words.  */
   15544 # ifdef WORDS_BIGENDIAN
   15545 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   15546      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
   15547        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
   15548        (unsigned int) (mantlo) << 16                                        \
   15549      }
   15550 # else
   15551 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   15552      { mantlo, manthi, exponent }
   15553 # endif
   15554   { /* Quiet NaN.  */
   15555     static memory_long_double x =
   15556       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
   15557     if (!isnanl (x.value))
   15558       result |= 2;
   15559   }
   15560   {
   15561     /* Signalling NaN.  */
   15562     static memory_long_double x =
   15563       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
   15564     if (!isnanl (x.value))
   15565       result |= 2;
   15566   }
   15567   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
   15568      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
   15569        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
   15570        Application Architecture.
   15571        Table 5-2 "Floating-Point Register Encodings"
   15572        Figure 5-6 "Memory to Floating-Point Register Data Translation"
   15573    */
   15574   { /* Pseudo-NaN.  */
   15575     static memory_long_double x =
   15576       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
   15577     if (!isnanl (x.value))
   15578       result |= 4;
   15579   }
   15580   { /* Pseudo-Infinity.  */
   15581     static memory_long_double x =
   15582       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
   15583     if (!isnanl (x.value))
   15584       result |= 8;
   15585   }
   15586   { /* Pseudo-Zero.  */
   15587     static memory_long_double x =
   15588       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
   15589     if (!isnanl (x.value))
   15590       result |= 16;
   15591   }
   15592   { /* Unnormalized number.  */
   15593     static memory_long_double x =
   15594       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
   15595     if (!isnanl (x.value))
   15596       result |= 32;
   15597   }
   15598   { /* Pseudo-Denormal.  */
   15599     static memory_long_double x =
   15600       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
   15601     if (!isnanl (x.value))
   15602       result |= 64;
   15603   }
   15604 #endif
   15605 
   15606   return result;
   15607 }
   15608 _ACEOF
   15609 if ac_fn_c_try_run "$LINENO"; then :
   15610   gl_cv_func_isnanl_works=yes
   15611 else
   15612   gl_cv_func_isnanl_works=no
   15613 fi
   15614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15615   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15616 fi
   15617 
   15618 
   15619 fi
   15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
   15621 $as_echo "$gl_cv_func_isnanl_works" >&6; }
   15622 
   15623     LIBS="$save_LIBS"
   15624     case "$gl_cv_func_isnanl_works" in
   15625       *yes) gl_func_isnanl=yes ;;
   15626       *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
   15627     esac
   15628   else
   15629     gl_func_isnanl=no
   15630   fi
   15631   if test $gl_func_isnanl != yes; then
   15632     HAVE_ISNANL=0
   15633   fi
   15634 
   15635 
   15636 
   15637   GNULIB_ISWBLANK=0;
   15638   GNULIB_WCTYPE=0;
   15639   GNULIB_ISWCTYPE=0;
   15640   GNULIB_WCTRANS=0;
   15641   GNULIB_TOWCTRANS=0;
   15642     HAVE_ISWBLANK=1;
   15643   HAVE_WCTYPE_T=1;
   15644   HAVE_WCTRANS_T=1;
   15645   REPLACE_ISWBLANK=0;
   15646 
   15647 
   15648 
   15649 
   15650 
   15651 
   15652 
   15653 
   15654 
   15655 
   15656   if test $ac_cv_func_iswcntrl = yes; then
   15657     HAVE_ISWCNTRL=1
   15658   else
   15659     HAVE_ISWCNTRL=0
   15660   fi
   15661 
   15662 
   15663 
   15664   if test $gt_cv_c_wint_t = yes; then
   15665     HAVE_WINT_T=1
   15666   else
   15667     HAVE_WINT_T=0
   15668   fi
   15669 
   15670 
   15671 
   15672 
   15673 
   15674 
   15675 
   15676 
   15677 
   15678 
   15679 
   15680      if test $gl_cv_have_include_next = yes; then
   15681        gl_cv_next_wctype_h='<'wctype.h'>'
   15682      else
   15683        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
   15684 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
   15685 if ${gl_cv_next_wctype_h+:} false; then :
   15686   $as_echo_n "(cached) " >&6
   15687 else
   15688 
   15689              if test $ac_cv_header_wctype_h = yes; then
   15690 
   15691 
   15692                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15693 /* end confdefs.h.  */
   15694 #include <wctype.h>
   15695 
   15696 _ACEOF
   15697                                                                                                                         case "$host_os" in
   15698                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   15699                  *)    gl_absname_cpp="$ac_cpp" ;;
   15700                esac
   15701 
   15702                case "$host_os" in
   15703                  mingw*)
   15704                                                                                                                                      gl_dirsep_regex='[/\\]'
   15705                    ;;
   15706                  *)
   15707                    gl_dirsep_regex='\/'
   15708                    ;;
   15709                esac
   15710                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   15711 
   15712                gl_header_literal_regex=`echo 'wctype.h' \
   15713                                         | sed -e "$gl_make_literal_regex_sed"`
   15714                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   15715                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   15716                    s|^/[^/]|//&|
   15717                    p
   15718                    q
   15719                  }'
   15720                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   15721                       sed -n "$gl_absolute_header_sed"`'"'
   15722           else
   15723                gl_cv_next_wctype_h='<'wctype.h'>'
   15724              fi
   15725 
   15726 
   15727 fi
   15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
   15729 $as_echo "$gl_cv_next_wctype_h" >&6; }
   15730      fi
   15731      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
   15732 
   15733      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   15734        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   15735        gl_next_as_first_directive='<'wctype.h'>'
   15736      else
   15737        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   15738        gl_next_as_first_directive=$gl_cv_next_wctype_h
   15739      fi
   15740      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
   15741 
   15742 
   15743 
   15744 
   15745   if test $ac_cv_header_wctype_h = yes; then
   15746     if test $ac_cv_func_iswcntrl = yes; then
   15747                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
   15748 $as_echo_n "checking whether iswcntrl works... " >&6; }
   15749 if ${gl_cv_func_iswcntrl_works+:} false; then :
   15750   $as_echo_n "(cached) " >&6
   15751 else
   15752 
   15753           if test "$cross_compiling" = yes; then :
   15754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15755 /* end confdefs.h.  */
   15756 #include <stdlib.h>
   15757                           #if __GNU_LIBRARY__ == 1
   15758                           Linux libc5 i18n is broken.
   15759                           #endif
   15760 int
   15761 main ()
   15762 {
   15763 
   15764   ;
   15765   return 0;
   15766 }
   15767 _ACEOF
   15768 if ac_fn_c_try_compile "$LINENO"; then :
   15769   gl_cv_func_iswcntrl_works="guessing yes"
   15770 else
   15771   gl_cv_func_iswcntrl_works="guessing no"
   15772 fi
   15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15774 
   15775 else
   15776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15777 /* end confdefs.h.  */
   15778 
   15779                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   15780                   included before <wchar.h>.
   15781                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   15782                   must be included before <wchar.h>.  */
   15783                #include <stddef.h>
   15784                #include <stdio.h>
   15785                #include <time.h>
   15786                #include <wchar.h>
   15787                #include <wctype.h>
   15788                int main () { return iswprint ('x') == 0; }
   15789 
   15790 _ACEOF
   15791 if ac_fn_c_try_run "$LINENO"; then :
   15792   gl_cv_func_iswcntrl_works=yes
   15793 else
   15794   gl_cv_func_iswcntrl_works=no
   15795 fi
   15796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15797   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15798 fi
   15799 
   15800 
   15801 fi
   15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
   15803 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
   15804     fi
   15805     HAVE_WCTYPE_H=1
   15806   else
   15807     HAVE_WCTYPE_H=0
   15808   fi
   15809 
   15810 
   15811   case "$gl_cv_func_iswcntrl_works" in
   15812     *yes) REPLACE_ISWCNTRL=0 ;;
   15813     *)    REPLACE_ISWCNTRL=1 ;;
   15814   esac
   15815 
   15816 
   15817   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
   15818         :
   15819   fi
   15820 
   15821   if test $REPLACE_ISWCNTRL = 1; then
   15822     REPLACE_TOWLOWER=1
   15823   else
   15824     for ac_func in towlower
   15825 do :
   15826   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
   15827 if test "x$ac_cv_func_towlower" = xyes; then :
   15828   cat >>confdefs.h <<_ACEOF
   15829 #define HAVE_TOWLOWER 1
   15830 _ACEOF
   15831 
   15832 fi
   15833 done
   15834 
   15835     if test $ac_cv_func_towlower = yes; then
   15836       REPLACE_TOWLOWER=0
   15837     else
   15838       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   15839              included before <wchar.h>.
   15840              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   15841              must be included before <wchar.h>.  */
   15842           #include <stddef.h>
   15843           #include <stdio.h>
   15844           #include <time.h>
   15845           #include <wchar.h>
   15846           #if HAVE_WCTYPE_H
   15847           # include <wctype.h>
   15848           #endif
   15849 
   15850 "
   15851 if test "x$ac_cv_have_decl_towlower" = xyes; then :
   15852   ac_have_decl=1
   15853 else
   15854   ac_have_decl=0
   15855 fi
   15856 
   15857 cat >>confdefs.h <<_ACEOF
   15858 #define HAVE_DECL_TOWLOWER $ac_have_decl
   15859 _ACEOF
   15860 
   15861       if test $ac_cv_have_decl_towlower = yes; then
   15862                                 REPLACE_TOWLOWER=1
   15863       else
   15864         REPLACE_TOWLOWER=0
   15865       fi
   15866     fi
   15867   fi
   15868 
   15869 
   15870   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
   15871         :
   15872   fi
   15873 
   15874           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
   15875 $as_echo_n "checking for wctype_t... " >&6; }
   15876 if ${gl_cv_type_wctype_t+:} false; then :
   15877   $as_echo_n "(cached) " >&6
   15878 else
   15879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15880 /* end confdefs.h.  */
   15881 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   15882                included before <wchar.h>.
   15883                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   15884                must be included before <wchar.h>.  */
   15885             #include <stddef.h>
   15886             #include <stdio.h>
   15887             #include <time.h>
   15888             #include <wchar.h>
   15889             #if HAVE_WCTYPE_H
   15890             # include <wctype.h>
   15891             #endif
   15892             wctype_t a;
   15893 
   15894 int
   15895 main ()
   15896 {
   15897 
   15898   ;
   15899   return 0;
   15900 }
   15901 _ACEOF
   15902 if ac_fn_c_try_compile "$LINENO"; then :
   15903   gl_cv_type_wctype_t=yes
   15904 else
   15905   gl_cv_type_wctype_t=no
   15906 fi
   15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15908 
   15909 fi
   15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
   15911 $as_echo "$gl_cv_type_wctype_t" >&6; }
   15912   if test $gl_cv_type_wctype_t = no; then
   15913     HAVE_WCTYPE_T=0
   15914   fi
   15915 
   15916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
   15917 $as_echo_n "checking for wctrans_t... " >&6; }
   15918 if ${gl_cv_type_wctrans_t+:} false; then :
   15919   $as_echo_n "(cached) " >&6
   15920 else
   15921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15922 /* end confdefs.h.  */
   15923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   15924                included before <wchar.h>.
   15925                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   15926                must be included before <wchar.h>.  */
   15927             #include <stddef.h>
   15928             #include <stdio.h>
   15929             #include <time.h>
   15930             #include <wchar.h>
   15931             #include <wctype.h>
   15932             wctrans_t a;
   15933 
   15934 int
   15935 main ()
   15936 {
   15937 
   15938   ;
   15939   return 0;
   15940 }
   15941 _ACEOF
   15942 if ac_fn_c_try_compile "$LINENO"; then :
   15943   gl_cv_type_wctrans_t=yes
   15944 else
   15945   gl_cv_type_wctrans_t=no
   15946 fi
   15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15948 
   15949 fi
   15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
   15951 $as_echo "$gl_cv_type_wctrans_t" >&6; }
   15952   if test $gl_cv_type_wctrans_t = no; then
   15953     HAVE_WCTRANS_T=0
   15954   fi
   15955 
   15956 
   15957     for gl_func in wctype iswctype wctrans towctrans     ; do
   15958     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   15959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   15960 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   15961 if eval \${$as_gl_Symbol+:} false; then :
   15962   $as_echo_n "(cached) " >&6
   15963 else
   15964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15965 /* end confdefs.h.  */
   15966 
   15967 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   15968    <wchar.h>.
   15969    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   15970    included before <wchar.h>.  */
   15971 #if !(defined __GLIBC__ && !defined __UCLIBC__)
   15972 # include <stddef.h>
   15973 # include <stdio.h>
   15974 # include <time.h>
   15975 # include <wchar.h>
   15976 #endif
   15977 #include <wctype.h>
   15978 
   15979 int
   15980 main ()
   15981 {
   15982 #undef $gl_func
   15983   (void) $gl_func;
   15984   ;
   15985   return 0;
   15986 }
   15987 _ACEOF
   15988 if ac_fn_c_try_compile "$LINENO"; then :
   15989   eval "$as_gl_Symbol=yes"
   15990 else
   15991   eval "$as_gl_Symbol=no"
   15992 fi
   15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15994 fi
   15995 eval ac_res=\$$as_gl_Symbol
   15996 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15997 $as_echo "$ac_res" >&6; }
   15998     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   15999   cat >>confdefs.h <<_ACEOF
   16000 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   16001 _ACEOF
   16002 
   16003                      eval ac_cv_have_decl_$gl_func=yes
   16004 fi
   16005       done
   16006 
   16007 
   16008 
   16009 
   16010 
   16011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp() can be used without linking with libm" >&5
   16012 $as_echo_n "checking whether ldexp() can be used without linking with libm... " >&6; }
   16013 if ${gl_cv_func_ldexp_no_libm+:} false; then :
   16014   $as_echo_n "(cached) " >&6
   16015 else
   16016 
   16017       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16018 /* end confdefs.h.  */
   16019 #ifndef __NO_MATH_INLINES
   16020                            # define __NO_MATH_INLINES 1 /* for glibc */
   16021                            #endif
   16022                            #include <math.h>
   16023                            double (*funcptr) (double, int) = ldexp;
   16024                            double x;
   16025 int
   16026 main ()
   16027 {
   16028 return ldexp (x, -1) > 0;
   16029   ;
   16030   return 0;
   16031 }
   16032 _ACEOF
   16033 if ac_fn_c_try_link "$LINENO"; then :
   16034   gl_cv_func_ldexp_no_libm=yes
   16035 else
   16036   gl_cv_func_ldexp_no_libm=no
   16037 fi
   16038 rm -f core conftest.err conftest.$ac_objext \
   16039     conftest$ac_exeext conftest.$ac_ext
   16040 
   16041 fi
   16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
   16043 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
   16044 
   16045 
   16046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   16047 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   16048 if ${am_cv_langinfo_codeset+:} false; then :
   16049   $as_echo_n "(cached) " >&6
   16050 else
   16051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16052 /* end confdefs.h.  */
   16053 #include <langinfo.h>
   16054 int
   16055 main ()
   16056 {
   16057 char* cs = nl_langinfo(CODESET); return !cs;
   16058   ;
   16059   return 0;
   16060 }
   16061 _ACEOF
   16062 if ac_fn_c_try_link "$LINENO"; then :
   16063   am_cv_langinfo_codeset=yes
   16064 else
   16065   am_cv_langinfo_codeset=no
   16066 fi
   16067 rm -f core conftest.err conftest.$ac_objext \
   16068     conftest$ac_exeext conftest.$ac_ext
   16069 
   16070 fi
   16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   16072 $as_echo "$am_cv_langinfo_codeset" >&6; }
   16073   if test $am_cv_langinfo_codeset = yes; then
   16074 
   16075 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   16076 
   16077   fi
   16078 
   16079 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
   16080 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
   16081   ac_have_decl=1
   16082 else
   16083   ac_have_decl=0
   16084 fi
   16085 
   16086 cat >>confdefs.h <<_ACEOF
   16087 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
   16088 _ACEOF
   16089 
   16090 
   16091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
   16092 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
   16093 if ${ac_cv_gnu_library_2_1+:} false; then :
   16094   $as_echo_n "(cached) " >&6
   16095 else
   16096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16097 /* end confdefs.h.  */
   16098 
   16099 #include <features.h>
   16100 #ifdef __GNU_LIBRARY__
   16101  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
   16102   Lucky GNU user
   16103  #endif
   16104 #endif
   16105 #ifdef __UCLIBC__
   16106  Lucky user
   16107 #endif
   16108 
   16109 _ACEOF
   16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16111   $EGREP "Lucky" >/dev/null 2>&1; then :
   16112   ac_cv_gnu_library_2_1=yes
   16113 else
   16114   ac_cv_gnu_library_2_1=no
   16115 fi
   16116 rm -f conftest*
   16117 
   16118 
   16119 
   16120 fi
   16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
   16122 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
   16123 
   16124     GLIBC21="$ac_cv_gnu_library_2_1"
   16125 
   16126 
   16127 
   16128       if test "X$prefix" = "XNONE"; then
   16129     acl_final_prefix="$ac_default_prefix"
   16130   else
   16131     acl_final_prefix="$prefix"
   16132   fi
   16133   if test "X$exec_prefix" = "XNONE"; then
   16134     acl_final_exec_prefix='${prefix}'
   16135   else
   16136     acl_final_exec_prefix="$exec_prefix"
   16137   fi
   16138   acl_save_prefix="$prefix"
   16139   prefix="$acl_final_prefix"
   16140   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   16141   prefix="$acl_save_prefix"
   16142 
   16143 
   16144 
   16145 # Check whether --with-gnu-ld was given.
   16146 if test "${with_gnu_ld+set}" = set; then :
   16147   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   16148 else
   16149   with_gnu_ld=no
   16150 fi
   16151 
   16152 # Prepare PATH_SEPARATOR.
   16153 # The user is always right.
   16154 if test "${PATH_SEPARATOR+set}" != set; then
   16155   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
   16156   # contains only /bin. Note that ksh looks also at the FPATH variable,
   16157   # so we have to set that as well for the test.
   16158   PATH_SEPARATOR=:
   16159   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   16160     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   16161            || PATH_SEPARATOR=';'
   16162        }
   16163 fi
   16164 
   16165 ac_prog=ld
   16166 if test "$GCC" = yes; then
   16167   # Check if gcc -print-prog-name=ld gives a path.
   16168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   16169 $as_echo_n "checking for ld used by $CC... " >&6; }
   16170   case $host in
   16171   *-*-mingw*)
   16172     # gcc leaves a trailing carriage return which upsets mingw
   16173     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   16174   *)
   16175     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   16176   esac
   16177   case $ac_prog in
   16178     # Accept absolute paths.
   16179     [\\/]* | ?:[\\/]*)
   16180       re_direlt='/[^/][^/]*/\.\./'
   16181       # Canonicalize the pathname of ld
   16182       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
   16183       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
   16184         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   16185       done
   16186       test -z "$LD" && LD="$ac_prog"
   16187       ;;
   16188   "")
   16189     # If it fails, then pretend we aren't using GCC.
   16190     ac_prog=ld
   16191     ;;
   16192   *)
   16193     # If it is relative, then search for the first ld in PATH.
   16194     with_gnu_ld=unknown
   16195     ;;
   16196   esac
   16197 elif test "$with_gnu_ld" = yes; then
   16198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   16199 $as_echo_n "checking for GNU ld... " >&6; }
   16200 else
   16201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   16202 $as_echo_n "checking for non-GNU ld... " >&6; }
   16203 fi
   16204 if ${acl_cv_path_LD+:} false; then :
   16205   $as_echo_n "(cached) " >&6
   16206 else
   16207   if test -z "$LD"; then
   16208   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   16209   for ac_dir in $PATH; do
   16210     IFS="$acl_save_ifs"
   16211     test -z "$ac_dir" && ac_dir=.
   16212     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   16213       acl_cv_path_LD="$ac_dir/$ac_prog"
   16214       # Check to see if the program is GNU ld.  I'd rather use --version,
   16215       # but apparently some variants of GNU ld only accept -v.
   16216       # Break only if it was the GNU/non-GNU ld that we prefer.
   16217       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
   16218       *GNU* | *'with BFD'*)
   16219         test "$with_gnu_ld" != no && break
   16220         ;;
   16221       *)
   16222         test "$with_gnu_ld" != yes && break
   16223         ;;
   16224       esac
   16225     fi
   16226   done
   16227   IFS="$acl_save_ifs"
   16228 else
   16229   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   16230 fi
   16231 fi
   16232 
   16233 LD="$acl_cv_path_LD"
   16234 if test -n "$LD"; then
   16235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   16236 $as_echo "$LD" >&6; }
   16237 else
   16238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16239 $as_echo "no" >&6; }
   16240 fi
   16241 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   16243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   16244 if ${acl_cv_prog_gnu_ld+:} false; then :
   16245   $as_echo_n "(cached) " >&6
   16246 else
   16247   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   16248 case `$LD -v 2>&1 </dev/null` in
   16249 *GNU* | *'with BFD'*)
   16250   acl_cv_prog_gnu_ld=yes
   16251   ;;
   16252 *)
   16253   acl_cv_prog_gnu_ld=no
   16254   ;;
   16255 esac
   16256 fi
   16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   16258 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   16259 with_gnu_ld=$acl_cv_prog_gnu_ld
   16260 
   16261 
   16262 
   16263 
   16264                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   16265 $as_echo_n "checking for shared library run path origin... " >&6; }
   16266 if ${acl_cv_rpath+:} false; then :
   16267   $as_echo_n "(cached) " >&6
   16268 else
   16269 
   16270     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   16271     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   16272     . ./conftest.sh
   16273     rm -f ./conftest.sh
   16274     acl_cv_rpath=done
   16275 
   16276 fi
   16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   16278 $as_echo "$acl_cv_rpath" >&6; }
   16279   wl="$acl_cv_wl"
   16280   acl_libext="$acl_cv_libext"
   16281   acl_shlibext="$acl_cv_shlibext"
   16282   acl_libname_spec="$acl_cv_libname_spec"
   16283   acl_library_names_spec="$acl_cv_library_names_spec"
   16284   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   16285   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   16286   acl_hardcode_direct="$acl_cv_hardcode_direct"
   16287   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
   16288     # Check whether --enable-rpath was given.
   16289 if test "${enable_rpath+set}" = set; then :
   16290   enableval=$enable_rpath; :
   16291 else
   16292   enable_rpath=yes
   16293 fi
   16294 
   16295 
   16296 
   16297 
   16298   acl_libdirstem=lib
   16299   acl_libdirstem2=
   16300   case "$host_os" in
   16301     solaris*)
   16302                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
   16303 $as_echo_n "checking for 64-bit host... " >&6; }
   16304 if ${gl_cv_solaris_64bit+:} false; then :
   16305   $as_echo_n "(cached) " >&6
   16306 else
   16307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16308 /* end confdefs.h.  */
   16309 
   16310 #ifdef _LP64
   16311 sixtyfour bits
   16312 #endif
   16313 
   16314 _ACEOF
   16315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16316   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
   16317   gl_cv_solaris_64bit=yes
   16318 else
   16319   gl_cv_solaris_64bit=no
   16320 fi
   16321 rm -f conftest*
   16322 
   16323 
   16324 fi
   16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
   16326 $as_echo "$gl_cv_solaris_64bit" >&6; }
   16327       if test $gl_cv_solaris_64bit = yes; then
   16328         acl_libdirstem=lib/64
   16329         case "$host_cpu" in
   16330           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
   16331           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
   16332         esac
   16333       fi
   16334       ;;
   16335     *)
   16336       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
   16337       if test -n "$searchpath"; then
   16338         acl_save_IFS="${IFS= 	}"; IFS=":"
   16339         for searchdir in $searchpath; do
   16340           if test -d "$searchdir"; then
   16341             case "$searchdir" in
   16342               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
   16343               */../ | */.. )
   16344                 # Better ignore directories of this form. They are misleading.
   16345                 ;;
   16346               *) searchdir=`cd "$searchdir" && pwd`
   16347                  case "$searchdir" in
   16348                    */lib64 ) acl_libdirstem=lib64 ;;
   16349                  esac ;;
   16350             esac
   16351           fi
   16352         done
   16353         IFS="$acl_save_IFS"
   16354       fi
   16355       ;;
   16356   esac
   16357   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
   16358 
   16359 
   16360 
   16361   gl_threads_api=none
   16362   LIBTHREAD=
   16363   LTLIBTHREAD=
   16364   LIBMULTITHREAD=
   16365   LTLIBMULTITHREAD=
   16366   if test "$gl_use_threads" != no; then
   16367         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
   16368 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
   16369 if ${gl_cv_have_weak+:} false; then :
   16370   $as_echo_n "(cached) " >&6
   16371 else
   16372   gl_cv_have_weak=no
   16373               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16374 /* end confdefs.h.  */
   16375 extern void xyzzy ();
   16376 #pragma weak xyzzy
   16377 int
   16378 main ()
   16379 {
   16380 xyzzy();
   16381   ;
   16382   return 0;
   16383 }
   16384 _ACEOF
   16385 if ac_fn_c_try_link "$LINENO"; then :
   16386   gl_cv_have_weak=maybe
   16387 fi
   16388 rm -f core conftest.err conftest.$ac_objext \
   16389     conftest$ac_exeext conftest.$ac_ext
   16390        if test $gl_cv_have_weak = maybe; then
   16391                            if test "$cross_compiling" = yes; then :
   16392                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16393 /* end confdefs.h.  */
   16394 #ifdef __ELF__
   16395                Extensible Linking Format
   16396                #endif
   16397 
   16398 _ACEOF
   16399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16400   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
   16401   gl_cv_have_weak="guessing yes"
   16402 else
   16403   gl_cv_have_weak="guessing no"
   16404 fi
   16405 rm -f conftest*
   16406 
   16407 
   16408 else
   16409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16410 /* end confdefs.h.  */
   16411 
   16412 #include <stdio.h>
   16413 #pragma weak fputs
   16414 int main ()
   16415 {
   16416   return (fputs == NULL);
   16417 }
   16418 _ACEOF
   16419 if ac_fn_c_try_run "$LINENO"; then :
   16420   gl_cv_have_weak=yes
   16421 else
   16422   gl_cv_have_weak=no
   16423 fi
   16424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16425   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16426 fi
   16427 
   16428        fi
   16429 
   16430 fi
   16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
   16432 $as_echo "$gl_cv_have_weak" >&6; }
   16433     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
   16434       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
   16435       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
   16436       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   16437 if test "x$ac_cv_header_pthread_h" = xyes; then :
   16438   gl_have_pthread_h=yes
   16439 else
   16440   gl_have_pthread_h=no
   16441 fi
   16442 
   16443 
   16444       if test "$gl_have_pthread_h" = yes; then
   16445         # Other possible tests:
   16446         #   -lpthreads (FSU threads, PCthreads)
   16447         #   -lgthreads
   16448         gl_have_pthread=
   16449         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
   16450         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
   16451         # the second one only in libpthread, and lock.c needs it.
   16452         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16453 /* end confdefs.h.  */
   16454 #include <pthread.h>
   16455 int
   16456 main ()
   16457 {
   16458 pthread_mutex_lock((pthread_mutex_t*)0);
   16459                pthread_mutexattr_init((pthread_mutexattr_t*)0);
   16460   ;
   16461   return 0;
   16462 }
   16463 _ACEOF
   16464 if ac_fn_c_try_link "$LINENO"; then :
   16465   gl_have_pthread=yes
   16466 fi
   16467 rm -f core conftest.err conftest.$ac_objext \
   16468     conftest$ac_exeext conftest.$ac_ext
   16469         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
   16470         # since it is defined as a macro on OSF/1.)
   16471         if test -n "$gl_have_pthread"; then
   16472           # The program links fine without libpthread. But it may actually
   16473           # need to link with libpthread in order to create multiple threads.
   16474           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   16475 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   16476 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   16477   $as_echo_n "(cached) " >&6
   16478 else
   16479   ac_check_lib_save_LIBS=$LIBS
   16480 LIBS="-lpthread  $LIBS"
   16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16482 /* end confdefs.h.  */
   16483 
   16484 /* Override any GCC internal prototype to avoid an error.
   16485    Use char because int might match the return type of a GCC
   16486    builtin and then its argument prototype would still apply.  */
   16487 #ifdef __cplusplus
   16488 extern "C"
   16489 #endif
   16490 char pthread_kill ();
   16491 int
   16492 main ()
   16493 {
   16494 return pthread_kill ();
   16495   ;
   16496   return 0;
   16497 }
   16498 _ACEOF
   16499 if ac_fn_c_try_link "$LINENO"; then :
   16500   ac_cv_lib_pthread_pthread_kill=yes
   16501 else
   16502   ac_cv_lib_pthread_pthread_kill=no
   16503 fi
   16504 rm -f core conftest.err conftest.$ac_objext \
   16505     conftest$ac_exeext conftest.$ac_ext
   16506 LIBS=$ac_check_lib_save_LIBS
   16507 fi
   16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   16509 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   16510 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   16511   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
   16512              # On Solaris and HP-UX, most pthread functions exist also in libc.
   16513              # Therefore pthread_in_use() needs to actually try to create a
   16514              # thread: pthread_create from libc will fail, whereas
   16515              # pthread_create will actually create a thread.
   16516              case "$host_os" in
   16517                solaris* | hpux*)
   16518 
   16519 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
   16520 
   16521              esac
   16522 
   16523 fi
   16524 
   16525         else
   16526           # Some library is needed. Try libpthread and libc_r.
   16527           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   16528 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   16529 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   16530   $as_echo_n "(cached) " >&6
   16531 else
   16532   ac_check_lib_save_LIBS=$LIBS
   16533 LIBS="-lpthread  $LIBS"
   16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16535 /* end confdefs.h.  */
   16536 
   16537 /* Override any GCC internal prototype to avoid an error.
   16538    Use char because int might match the return type of a GCC
   16539    builtin and then its argument prototype would still apply.  */
   16540 #ifdef __cplusplus
   16541 extern "C"
   16542 #endif
   16543 char pthread_kill ();
   16544 int
   16545 main ()
   16546 {
   16547 return pthread_kill ();
   16548   ;
   16549   return 0;
   16550 }
   16551 _ACEOF
   16552 if ac_fn_c_try_link "$LINENO"; then :
   16553   ac_cv_lib_pthread_pthread_kill=yes
   16554 else
   16555   ac_cv_lib_pthread_pthread_kill=no
   16556 fi
   16557 rm -f core conftest.err conftest.$ac_objext \
   16558     conftest$ac_exeext conftest.$ac_ext
   16559 LIBS=$ac_check_lib_save_LIBS
   16560 fi
   16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   16562 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   16563 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   16564   gl_have_pthread=yes
   16565              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
   16566              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
   16567 fi
   16568 
   16569           if test -z "$gl_have_pthread"; then
   16570             # For FreeBSD 4.
   16571             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
   16572 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
   16573 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
   16574   $as_echo_n "(cached) " >&6
   16575 else
   16576   ac_check_lib_save_LIBS=$LIBS
   16577 LIBS="-lc_r  $LIBS"
   16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16579 /* end confdefs.h.  */
   16580 
   16581 /* Override any GCC internal prototype to avoid an error.
   16582    Use char because int might match the return type of a GCC
   16583    builtin and then its argument prototype would still apply.  */
   16584 #ifdef __cplusplus
   16585 extern "C"
   16586 #endif
   16587 char pthread_kill ();
   16588 int
   16589 main ()
   16590 {
   16591 return pthread_kill ();
   16592   ;
   16593   return 0;
   16594 }
   16595 _ACEOF
   16596 if ac_fn_c_try_link "$LINENO"; then :
   16597   ac_cv_lib_c_r_pthread_kill=yes
   16598 else
   16599   ac_cv_lib_c_r_pthread_kill=no
   16600 fi
   16601 rm -f core conftest.err conftest.$ac_objext \
   16602     conftest$ac_exeext conftest.$ac_ext
   16603 LIBS=$ac_check_lib_save_LIBS
   16604 fi
   16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
   16606 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
   16607 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
   16608   gl_have_pthread=yes
   16609                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
   16610                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
   16611 fi
   16612 
   16613           fi
   16614         fi
   16615         if test -n "$gl_have_pthread"; then
   16616           gl_threads_api=posix
   16617 
   16618 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
   16619 
   16620           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
   16621             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
   16622 
   16623 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
   16624 
   16625               LIBTHREAD=
   16626               LTLIBTHREAD=
   16627             fi
   16628           fi
   16629         fi
   16630       fi
   16631     fi
   16632     if test -z "$gl_have_pthread"; then
   16633       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
   16634         gl_have_solaristhread=
   16635         gl_save_LIBS="$LIBS"
   16636         LIBS="$LIBS -lthread"
   16637         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16638 /* end confdefs.h.  */
   16639 
   16640 #include <thread.h>
   16641 #include <synch.h>
   16642 
   16643 int
   16644 main ()
   16645 {
   16646 thr_self();
   16647   ;
   16648   return 0;
   16649 }
   16650 _ACEOF
   16651 if ac_fn_c_try_link "$LINENO"; then :
   16652   gl_have_solaristhread=yes
   16653 fi
   16654 rm -f core conftest.err conftest.$ac_objext \
   16655     conftest$ac_exeext conftest.$ac_ext
   16656         LIBS="$gl_save_LIBS"
   16657         if test -n "$gl_have_solaristhread"; then
   16658           gl_threads_api=solaris
   16659           LIBTHREAD=-lthread
   16660           LTLIBTHREAD=-lthread
   16661           LIBMULTITHREAD="$LIBTHREAD"
   16662           LTLIBMULTITHREAD="$LTLIBTHREAD"
   16663 
   16664 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
   16665 
   16666           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
   16667 
   16668 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
   16669 
   16670             LIBTHREAD=
   16671             LTLIBTHREAD=
   16672           fi
   16673         fi
   16674       fi
   16675     fi
   16676     if test "$gl_use_threads" = pth; then
   16677       gl_save_CPPFLAGS="$CPPFLAGS"
   16678 
   16679 
   16680 
   16681 
   16682 
   16683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
   16684 $as_echo_n "checking how to link with libpth... " >&6; }
   16685 if ${ac_cv_libpth_libs+:} false; then :
   16686   $as_echo_n "(cached) " >&6
   16687 else
   16688 
   16689 
   16690 
   16691 
   16692 
   16693 
   16694 
   16695 
   16696     use_additional=yes
   16697 
   16698   acl_save_prefix="$prefix"
   16699   prefix="$acl_final_prefix"
   16700   acl_save_exec_prefix="$exec_prefix"
   16701   exec_prefix="$acl_final_exec_prefix"
   16702 
   16703     eval additional_includedir=\"$includedir\"
   16704     eval additional_libdir=\"$libdir\"
   16705 
   16706   exec_prefix="$acl_save_exec_prefix"
   16707   prefix="$acl_save_prefix"
   16708 
   16709 
   16710 # Check whether --with-libpth-prefix was given.
   16711 if test "${with_libpth_prefix+set}" = set; then :
   16712   withval=$with_libpth_prefix;
   16713     if test "X$withval" = "Xno"; then
   16714       use_additional=no
   16715     else
   16716       if test "X$withval" = "X"; then
   16717 
   16718   acl_save_prefix="$prefix"
   16719   prefix="$acl_final_prefix"
   16720   acl_save_exec_prefix="$exec_prefix"
   16721   exec_prefix="$acl_final_exec_prefix"
   16722 
   16723           eval additional_includedir=\"$includedir\"
   16724           eval additional_libdir=\"$libdir\"
   16725 
   16726   exec_prefix="$acl_save_exec_prefix"
   16727   prefix="$acl_save_prefix"
   16728 
   16729       else
   16730         additional_includedir="$withval/include"
   16731         additional_libdir="$withval/$acl_libdirstem"
   16732         if test "$acl_libdirstem2" != "$acl_libdirstem" \
   16733            && ! test -d "$withval/$acl_libdirstem"; then
   16734           additional_libdir="$withval/$acl_libdirstem2"
   16735         fi
   16736       fi
   16737     fi
   16738 
   16739 fi
   16740 
   16741       LIBPTH=
   16742   LTLIBPTH=
   16743   INCPTH=
   16744   LIBPTH_PREFIX=
   16745       HAVE_LIBPTH=
   16746   rpathdirs=
   16747   ltrpathdirs=
   16748   names_already_handled=
   16749   names_next_round='pth '
   16750   while test -n "$names_next_round"; do
   16751     names_this_round="$names_next_round"
   16752     names_next_round=
   16753     for name in $names_this_round; do
   16754       already_handled=
   16755       for n in $names_already_handled; do
   16756         if test "$n" = "$name"; then
   16757           already_handled=yes
   16758           break
   16759         fi
   16760       done
   16761       if test -z "$already_handled"; then
   16762         names_already_handled="$names_already_handled $name"
   16763                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
   16764         eval value=\"\$HAVE_LIB$uppername\"
   16765         if test -n "$value"; then
   16766           if test "$value" = yes; then
   16767             eval value=\"\$LIB$uppername\"
   16768             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
   16769             eval value=\"\$LTLIB$uppername\"
   16770             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
   16771           else
   16772                                     :
   16773           fi
   16774         else
   16775                               found_dir=
   16776           found_la=
   16777           found_so=
   16778           found_a=
   16779           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
   16780           if test -n "$acl_shlibext"; then
   16781             shrext=".$acl_shlibext"             # typically: shrext=.so
   16782           else
   16783             shrext=
   16784           fi
   16785           if test $use_additional = yes; then
   16786             dir="$additional_libdir"
   16787                                     if test -n "$acl_shlibext"; then
   16788               if test -f "$dir/$libname$shrext"; then
   16789                 found_dir="$dir"
   16790                 found_so="$dir/$libname$shrext"
   16791               else
   16792                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   16793                   ver=`(cd "$dir" && \
   16794                         for f in "$libname$shrext".*; do echo "$f"; done \
   16795                         | sed -e "s,^$libname$shrext\\\\.,," \
   16796                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   16797                         | sed 1q ) 2>/dev/null`
   16798                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   16799                     found_dir="$dir"
   16800                     found_so="$dir/$libname$shrext.$ver"
   16801                   fi
   16802                 else
   16803                   eval library_names=\"$acl_library_names_spec\"
   16804                   for f in $library_names; do
   16805                     if test -f "$dir/$f"; then
   16806                       found_dir="$dir"
   16807                       found_so="$dir/$f"
   16808                       break
   16809                     fi
   16810                   done
   16811                 fi
   16812               fi
   16813             fi
   16814                         if test "X$found_dir" = "X"; then
   16815               if test -f "$dir/$libname.$acl_libext"; then
   16816                 found_dir="$dir"
   16817                 found_a="$dir/$libname.$acl_libext"
   16818               fi
   16819             fi
   16820             if test "X$found_dir" != "X"; then
   16821               if test -f "$dir/$libname.la"; then
   16822                 found_la="$dir/$libname.la"
   16823               fi
   16824             fi
   16825           fi
   16826           if test "X$found_dir" = "X"; then
   16827             for x in $LDFLAGS $LTLIBPTH; do
   16828 
   16829   acl_save_prefix="$prefix"
   16830   prefix="$acl_final_prefix"
   16831   acl_save_exec_prefix="$exec_prefix"
   16832   exec_prefix="$acl_final_exec_prefix"
   16833   eval x=\"$x\"
   16834   exec_prefix="$acl_save_exec_prefix"
   16835   prefix="$acl_save_prefix"
   16836 
   16837               case "$x" in
   16838                 -L*)
   16839                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   16840                                     if test -n "$acl_shlibext"; then
   16841                     if test -f "$dir/$libname$shrext"; then
   16842                       found_dir="$dir"
   16843                       found_so="$dir/$libname$shrext"
   16844                     else
   16845                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   16846                         ver=`(cd "$dir" && \
   16847                               for f in "$libname$shrext".*; do echo "$f"; done \
   16848                               | sed -e "s,^$libname$shrext\\\\.,," \
   16849                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   16850                               | sed 1q ) 2>/dev/null`
   16851                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   16852                           found_dir="$dir"
   16853                           found_so="$dir/$libname$shrext.$ver"
   16854                         fi
   16855                       else
   16856                         eval library_names=\"$acl_library_names_spec\"
   16857                         for f in $library_names; do
   16858                           if test -f "$dir/$f"; then
   16859                             found_dir="$dir"
   16860                             found_so="$dir/$f"
   16861                             break
   16862                           fi
   16863                         done
   16864                       fi
   16865                     fi
   16866                   fi
   16867                                     if test "X$found_dir" = "X"; then
   16868                     if test -f "$dir/$libname.$acl_libext"; then
   16869                       found_dir="$dir"
   16870                       found_a="$dir/$libname.$acl_libext"
   16871                     fi
   16872                   fi
   16873                   if test "X$found_dir" != "X"; then
   16874                     if test -f "$dir/$libname.la"; then
   16875                       found_la="$dir/$libname.la"
   16876                     fi
   16877                   fi
   16878                   ;;
   16879               esac
   16880               if test "X$found_dir" != "X"; then
   16881                 break
   16882               fi
   16883             done
   16884           fi
   16885           if test "X$found_dir" != "X"; then
   16886                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
   16887             if test "X$found_so" != "X"; then
   16888                                                         if test "$enable_rpath" = no \
   16889                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
   16890                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
   16891                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
   16892               else
   16893                                                                                 haveit=
   16894                 for x in $ltrpathdirs; do
   16895                   if test "X$x" = "X$found_dir"; then
   16896                     haveit=yes
   16897                     break
   16898                   fi
   16899                 done
   16900                 if test -z "$haveit"; then
   16901                   ltrpathdirs="$ltrpathdirs $found_dir"
   16902                 fi
   16903                                 if test "$acl_hardcode_direct" = yes; then
   16904                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
   16905                 else
   16906                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
   16907                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
   16908                                                             haveit=
   16909                     for x in $rpathdirs; do
   16910                       if test "X$x" = "X$found_dir"; then
   16911                         haveit=yes
   16912                         break
   16913                       fi
   16914                     done
   16915                     if test -z "$haveit"; then
   16916                       rpathdirs="$rpathdirs $found_dir"
   16917                     fi
   16918                   else
   16919                                                                                 haveit=
   16920                     for x in $LDFLAGS $LIBPTH; do
   16921 
   16922   acl_save_prefix="$prefix"
   16923   prefix="$acl_final_prefix"
   16924   acl_save_exec_prefix="$exec_prefix"
   16925   exec_prefix="$acl_final_exec_prefix"
   16926   eval x=\"$x\"
   16927   exec_prefix="$acl_save_exec_prefix"
   16928   prefix="$acl_save_prefix"
   16929 
   16930                       if test "X$x" = "X-L$found_dir"; then
   16931                         haveit=yes
   16932                         break
   16933                       fi
   16934                     done
   16935                     if test -z "$haveit"; then
   16936                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
   16937                     fi
   16938                     if test "$acl_hardcode_minus_L" != no; then
   16939                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
   16940                     else
   16941                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
   16942                     fi
   16943                   fi
   16944                 fi
   16945               fi
   16946             else
   16947               if test "X$found_a" != "X"; then
   16948                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
   16949               else
   16950                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
   16951               fi
   16952             fi
   16953                         additional_includedir=
   16954             case "$found_dir" in
   16955               */$acl_libdirstem | */$acl_libdirstem/)
   16956                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
   16957                 if test "$name" = 'pth'; then
   16958                   LIBPTH_PREFIX="$basedir"
   16959                 fi
   16960                 additional_includedir="$basedir/include"
   16961                 ;;
   16962               */$acl_libdirstem2 | */$acl_libdirstem2/)
   16963                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
   16964                 if test "$name" = 'pth'; then
   16965                   LIBPTH_PREFIX="$basedir"
   16966                 fi
   16967                 additional_includedir="$basedir/include"
   16968                 ;;
   16969             esac
   16970             if test "X$additional_includedir" != "X"; then
   16971                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   16972                 haveit=
   16973                 if test "X$additional_includedir" = "X/usr/local/include"; then
   16974                   if test -n "$GCC"; then
   16975                     case $host_os in
   16976                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   16977                     esac
   16978                   fi
   16979                 fi
   16980                 if test -z "$haveit"; then
   16981                   for x in $CPPFLAGS $INCPTH; do
   16982 
   16983   acl_save_prefix="$prefix"
   16984   prefix="$acl_final_prefix"
   16985   acl_save_exec_prefix="$exec_prefix"
   16986   exec_prefix="$acl_final_exec_prefix"
   16987   eval x=\"$x\"
   16988   exec_prefix="$acl_save_exec_prefix"
   16989   prefix="$acl_save_prefix"
   16990 
   16991                     if test "X$x" = "X-I$additional_includedir"; then
   16992                       haveit=yes
   16993                       break
   16994                     fi
   16995                   done
   16996                   if test -z "$haveit"; then
   16997                     if test -d "$additional_includedir"; then
   16998                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
   16999                     fi
   17000                   fi
   17001                 fi
   17002               fi
   17003             fi
   17004                         if test -n "$found_la"; then
   17005                                                         save_libdir="$libdir"
   17006               case "$found_la" in
   17007                 */* | *\\*) . "$found_la" ;;
   17008                 *) . "./$found_la" ;;
   17009               esac
   17010               libdir="$save_libdir"
   17011                             for dep in $dependency_libs; do
   17012                 case "$dep" in
   17013                   -L*)
   17014                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   17015                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
   17016                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
   17017                       haveit=
   17018                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
   17019                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
   17020                         if test -n "$GCC"; then
   17021                           case $host_os in
   17022                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   17023                           esac
   17024                         fi
   17025                       fi
   17026                       if test -z "$haveit"; then
   17027                         haveit=
   17028                         for x in $LDFLAGS $LIBPTH; do
   17029 
   17030   acl_save_prefix="$prefix"
   17031   prefix="$acl_final_prefix"
   17032   acl_save_exec_prefix="$exec_prefix"
   17033   exec_prefix="$acl_final_exec_prefix"
   17034   eval x=\"$x\"
   17035   exec_prefix="$acl_save_exec_prefix"
   17036   prefix="$acl_save_prefix"
   17037 
   17038                           if test "X$x" = "X-L$additional_libdir"; then
   17039                             haveit=yes
   17040                             break
   17041                           fi
   17042                         done
   17043                         if test -z "$haveit"; then
   17044                           if test -d "$additional_libdir"; then
   17045                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
   17046                           fi
   17047                         fi
   17048                         haveit=
   17049                         for x in $LDFLAGS $LTLIBPTH; do
   17050 
   17051   acl_save_prefix="$prefix"
   17052   prefix="$acl_final_prefix"
   17053   acl_save_exec_prefix="$exec_prefix"
   17054   exec_prefix="$acl_final_exec_prefix"
   17055   eval x=\"$x\"
   17056   exec_prefix="$acl_save_exec_prefix"
   17057   prefix="$acl_save_prefix"
   17058 
   17059                           if test "X$x" = "X-L$additional_libdir"; then
   17060                             haveit=yes
   17061                             break
   17062                           fi
   17063                         done
   17064                         if test -z "$haveit"; then
   17065                           if test -d "$additional_libdir"; then
   17066                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
   17067                           fi
   17068                         fi
   17069                       fi
   17070                     fi
   17071                     ;;
   17072                   -R*)
   17073                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   17074                     if test "$enable_rpath" != no; then
   17075                                                                   haveit=
   17076                       for x in $rpathdirs; do
   17077                         if test "X$x" = "X$dir"; then
   17078                           haveit=yes
   17079                           break
   17080                         fi
   17081                       done
   17082                       if test -z "$haveit"; then
   17083                         rpathdirs="$rpathdirs $dir"
   17084                       fi
   17085                                                                   haveit=
   17086                       for x in $ltrpathdirs; do
   17087                         if test "X$x" = "X$dir"; then
   17088                           haveit=yes
   17089                           break
   17090                         fi
   17091                       done
   17092                       if test -z "$haveit"; then
   17093                         ltrpathdirs="$ltrpathdirs $dir"
   17094                       fi
   17095                     fi
   17096                     ;;
   17097                   -l*)
   17098                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   17099                     ;;
   17100                   *.la)
   17101                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   17102                     ;;
   17103                   *)
   17104                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
   17105                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
   17106                     ;;
   17107                 esac
   17108               done
   17109             fi
   17110           else
   17111                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
   17112             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
   17113           fi
   17114         fi
   17115       fi
   17116     done
   17117   done
   17118   if test "X$rpathdirs" != "X"; then
   17119     if test -n "$acl_hardcode_libdir_separator"; then
   17120                         alldirs=
   17121       for found_dir in $rpathdirs; do
   17122         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
   17123       done
   17124             acl_save_libdir="$libdir"
   17125       libdir="$alldirs"
   17126       eval flag=\"$acl_hardcode_libdir_flag_spec\"
   17127       libdir="$acl_save_libdir"
   17128       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
   17129     else
   17130             for found_dir in $rpathdirs; do
   17131         acl_save_libdir="$libdir"
   17132         libdir="$found_dir"
   17133         eval flag=\"$acl_hardcode_libdir_flag_spec\"
   17134         libdir="$acl_save_libdir"
   17135         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
   17136       done
   17137     fi
   17138   fi
   17139   if test "X$ltrpathdirs" != "X"; then
   17140             for found_dir in $ltrpathdirs; do
   17141       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
   17142     done
   17143   fi
   17144 
   17145 
   17146 
   17147 
   17148 
   17149 
   17150     ac_cv_libpth_libs="$LIBPTH"
   17151     ac_cv_libpth_ltlibs="$LTLIBPTH"
   17152     ac_cv_libpth_cppflags="$INCPTH"
   17153     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
   17154 
   17155 fi
   17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
   17157 $as_echo "$ac_cv_libpth_libs" >&6; }
   17158   LIBPTH="$ac_cv_libpth_libs"
   17159   LTLIBPTH="$ac_cv_libpth_ltlibs"
   17160   INCPTH="$ac_cv_libpth_cppflags"
   17161   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
   17162 
   17163   for element in $INCPTH; do
   17164     haveit=
   17165     for x in $CPPFLAGS; do
   17166 
   17167   acl_save_prefix="$prefix"
   17168   prefix="$acl_final_prefix"
   17169   acl_save_exec_prefix="$exec_prefix"
   17170   exec_prefix="$acl_final_exec_prefix"
   17171   eval x=\"$x\"
   17172   exec_prefix="$acl_save_exec_prefix"
   17173   prefix="$acl_save_prefix"
   17174 
   17175       if test "X$x" = "X$element"; then
   17176         haveit=yes
   17177         break
   17178       fi
   17179     done
   17180     if test -z "$haveit"; then
   17181       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   17182     fi
   17183   done
   17184 
   17185 
   17186 
   17187 
   17188       HAVE_LIBPTH=yes
   17189 
   17190 
   17191 
   17192       gl_have_pth=
   17193       gl_save_LIBS="$LIBS"
   17194       LIBS="$LIBS $LIBPTH"
   17195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17196 /* end confdefs.h.  */
   17197 #include <pth.h>
   17198 int
   17199 main ()
   17200 {
   17201 pth_self();
   17202   ;
   17203   return 0;
   17204 }
   17205 _ACEOF
   17206 if ac_fn_c_try_link "$LINENO"; then :
   17207   gl_have_pth=yes
   17208 fi
   17209 rm -f core conftest.err conftest.$ac_objext \
   17210     conftest$ac_exeext conftest.$ac_ext
   17211       LIBS="$gl_save_LIBS"
   17212       if test -n "$gl_have_pth"; then
   17213         gl_threads_api=pth
   17214         LIBTHREAD="$LIBPTH"
   17215         LTLIBTHREAD="$LTLIBPTH"
   17216         LIBMULTITHREAD="$LIBTHREAD"
   17217         LTLIBMULTITHREAD="$LTLIBTHREAD"
   17218 
   17219 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
   17220 
   17221         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
   17222           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
   17223 
   17224 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
   17225 
   17226             LIBTHREAD=
   17227             LTLIBTHREAD=
   17228           fi
   17229         fi
   17230       else
   17231         CPPFLAGS="$gl_save_CPPFLAGS"
   17232       fi
   17233     fi
   17234     if test -z "$gl_have_pthread"; then
   17235       case "$gl_use_threads" in
   17236         yes | windows | win32) # The 'win32' is for backward compatibility.
   17237           if { case "$host_os" in
   17238                  mingw*) true;;
   17239                  *) false;;
   17240                esac
   17241              }; then
   17242             gl_threads_api=windows
   17243 
   17244 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
   17245 
   17246           fi
   17247           ;;
   17248       esac
   17249     fi
   17250   fi
   17251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
   17252 $as_echo_n "checking for multithread API to use... " >&6; }
   17253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
   17254 $as_echo "$gl_threads_api" >&6; }
   17255 
   17256 
   17257 
   17258 
   17259 
   17260 
   17261 
   17262 
   17263 
   17264 
   17265 
   17266 
   17267   GNULIB_BTOWC=0;
   17268   GNULIB_WCTOB=0;
   17269   GNULIB_MBSINIT=0;
   17270   GNULIB_MBRTOWC=0;
   17271   GNULIB_MBRLEN=0;
   17272   GNULIB_MBSRTOWCS=0;
   17273   GNULIB_MBSNRTOWCS=0;
   17274   GNULIB_WCRTOMB=0;
   17275   GNULIB_WCSRTOMBS=0;
   17276   GNULIB_WCSNRTOMBS=0;
   17277   GNULIB_WCWIDTH=0;
   17278   GNULIB_WMEMCHR=0;
   17279   GNULIB_WMEMCMP=0;
   17280   GNULIB_WMEMCPY=0;
   17281   GNULIB_WMEMMOVE=0;
   17282   GNULIB_WMEMSET=0;
   17283   GNULIB_WCSLEN=0;
   17284   GNULIB_WCSNLEN=0;
   17285   GNULIB_WCSCPY=0;
   17286   GNULIB_WCPCPY=0;
   17287   GNULIB_WCSNCPY=0;
   17288   GNULIB_WCPNCPY=0;
   17289   GNULIB_WCSCAT=0;
   17290   GNULIB_WCSNCAT=0;
   17291   GNULIB_WCSCMP=0;
   17292   GNULIB_WCSNCMP=0;
   17293   GNULIB_WCSCASECMP=0;
   17294   GNULIB_WCSNCASECMP=0;
   17295   GNULIB_WCSCOLL=0;
   17296   GNULIB_WCSXFRM=0;
   17297   GNULIB_WCSDUP=0;
   17298   GNULIB_WCSCHR=0;
   17299   GNULIB_WCSRCHR=0;
   17300   GNULIB_WCSCSPN=0;
   17301   GNULIB_WCSSPN=0;
   17302   GNULIB_WCSPBRK=0;
   17303   GNULIB_WCSSTR=0;
   17304   GNULIB_WCSTOK=0;
   17305   GNULIB_WCSWIDTH=0;
   17306     HAVE_BTOWC=1;
   17307   HAVE_MBSINIT=1;
   17308   HAVE_MBRTOWC=1;
   17309   HAVE_MBRLEN=1;
   17310   HAVE_MBSRTOWCS=1;
   17311   HAVE_MBSNRTOWCS=1;
   17312   HAVE_WCRTOMB=1;
   17313   HAVE_WCSRTOMBS=1;
   17314   HAVE_WCSNRTOMBS=1;
   17315   HAVE_WMEMCHR=1;
   17316   HAVE_WMEMCMP=1;
   17317   HAVE_WMEMCPY=1;
   17318   HAVE_WMEMMOVE=1;
   17319   HAVE_WMEMSET=1;
   17320   HAVE_WCSLEN=1;
   17321   HAVE_WCSNLEN=1;
   17322   HAVE_WCSCPY=1;
   17323   HAVE_WCPCPY=1;
   17324   HAVE_WCSNCPY=1;
   17325   HAVE_WCPNCPY=1;
   17326   HAVE_WCSCAT=1;
   17327   HAVE_WCSNCAT=1;
   17328   HAVE_WCSCMP=1;
   17329   HAVE_WCSNCMP=1;
   17330   HAVE_WCSCASECMP=1;
   17331   HAVE_WCSNCASECMP=1;
   17332   HAVE_WCSCOLL=1;
   17333   HAVE_WCSXFRM=1;
   17334   HAVE_WCSDUP=1;
   17335   HAVE_WCSCHR=1;
   17336   HAVE_WCSRCHR=1;
   17337   HAVE_WCSCSPN=1;
   17338   HAVE_WCSSPN=1;
   17339   HAVE_WCSPBRK=1;
   17340   HAVE_WCSSTR=1;
   17341   HAVE_WCSTOK=1;
   17342   HAVE_WCSWIDTH=1;
   17343   HAVE_DECL_WCTOB=1;
   17344   HAVE_DECL_WCWIDTH=1;
   17345   REPLACE_MBSTATE_T=0;
   17346   REPLACE_BTOWC=0;
   17347   REPLACE_WCTOB=0;
   17348   REPLACE_MBSINIT=0;
   17349   REPLACE_MBRTOWC=0;
   17350   REPLACE_MBRLEN=0;
   17351   REPLACE_MBSRTOWCS=0;
   17352   REPLACE_MBSNRTOWCS=0;
   17353   REPLACE_WCRTOMB=0;
   17354   REPLACE_WCSRTOMBS=0;
   17355   REPLACE_WCSNRTOMBS=0;
   17356   REPLACE_WCWIDTH=0;
   17357   REPLACE_WCSWIDTH=0;
   17358 
   17359 
   17360 
   17361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
   17362 $as_echo_n "checking for mbstate_t... " >&6; }
   17363 if ${ac_cv_type_mbstate_t+:} false; then :
   17364   $as_echo_n "(cached) " >&6
   17365 else
   17366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17367 /* end confdefs.h.  */
   17368 $ac_includes_default
   17369 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   17370    <wchar.h>.
   17371    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   17372    included before <wchar.h>.  */
   17373 #include <stddef.h>
   17374 #include <stdio.h>
   17375 #include <time.h>
   17376 #include <wchar.h>
   17377 int
   17378 main ()
   17379 {
   17380 mbstate_t x; return sizeof x;
   17381   ;
   17382   return 0;
   17383 }
   17384 _ACEOF
   17385 if ac_fn_c_try_compile "$LINENO"; then :
   17386   ac_cv_type_mbstate_t=yes
   17387 else
   17388   ac_cv_type_mbstate_t=no
   17389 fi
   17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17391 fi
   17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
   17393 $as_echo "$ac_cv_type_mbstate_t" >&6; }
   17394    if test $ac_cv_type_mbstate_t = yes; then
   17395 
   17396 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
   17397 
   17398    else
   17399 
   17400 $as_echo "#define mbstate_t int" >>confdefs.h
   17401 
   17402    fi
   17403 
   17404 
   17405 
   17406 
   17407 
   17408 
   17409 
   17410 
   17411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
   17412 $as_echo_n "checking for a traditional japanese locale... " >&6; }
   17413 if ${gt_cv_locale_ja+:} false; then :
   17414   $as_echo_n "(cached) " >&6
   17415 else
   17416 
   17417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17418 /* end confdefs.h.  */
   17419 
   17420 #include <locale.h>
   17421 #include <time.h>
   17422 #if HAVE_LANGINFO_CODESET
   17423 # include <langinfo.h>
   17424 #endif
   17425 #include <stdlib.h>
   17426 #include <string.h>
   17427 struct tm t;
   17428 char buf[16];
   17429 int main ()
   17430 {
   17431   const char *p;
   17432   /* Check whether the given locale name is recognized by the system.  */
   17433 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
   17434   /* On native Windows, setlocale(category, "") looks at the system settings,
   17435      not at the environment variables.  Also, when an encoding suffix such
   17436      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   17437      category of the locale to "C".  */
   17438   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   17439       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   17440     return 1;
   17441 #else
   17442   if (setlocale (LC_ALL, "") == NULL) return 1;
   17443 #endif
   17444   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   17445      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   17446      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   17447      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   17448      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   17449      some unit tests fail.
   17450      On MirBSD 10, when an unsupported locale is specified, setlocale()
   17451      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
   17452 #if HAVE_LANGINFO_CODESET
   17453   {
   17454     const char *cs = nl_langinfo (CODESET);
   17455     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
   17456         || strcmp (cs, "UTF-8") == 0)
   17457       return 1;
   17458   }
   17459 #endif
   17460 #ifdef __CYGWIN__
   17461   /* On Cygwin, avoid locale names without encoding suffix, because the
   17462      locale_charset() function relies on the encoding suffix.  Note that
   17463      LC_ALL is set on the command line.  */
   17464   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   17465 #endif
   17466   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
   17467      on Cygwin 1.5.x.  */
   17468   if (MB_CUR_MAX == 1)
   17469     return 1;
   17470   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
   17471      This excludes the UTF-8 encoding (except on MirBSD).  */
   17472   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   17473   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
   17474   for (p = buf; *p != '\0'; p++)
   17475     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
   17476       return 1;
   17477   return 0;
   17478 }
   17479 
   17480 _ACEOF
   17481     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   17482   (eval $ac_link) 2>&5
   17483   ac_status=$?
   17484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17485   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   17486       case "$host_os" in
   17487         # Handle native Windows specially, because there setlocale() interprets
   17488         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   17489         # "fr" or "fra" as "French" or "French_France.1252",
   17490         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   17491         # "ja" as "Japanese" or "Japanese_Japan.932",
   17492         # and similar.
   17493         mingw*)
   17494           # Note that on native Windows, the Japanese locale is
   17495           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
   17496           # cannot use it here.
   17497           gt_cv_locale_ja=none
   17498           ;;
   17499         *)
   17500           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   17501           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   17502           # configure script would override the LC_ALL setting. Likewise for
   17503           # LC_CTYPE, which is also set at the beginning of the configure script.
   17504           # Test for the AIX locale name.
   17505           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17506             gt_cv_locale_ja=ja_JP
   17507           else
   17508             # Test for the locale name with explicit encoding suffix.
   17509             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17510               gt_cv_locale_ja=ja_JP.EUC-JP
   17511             else
   17512               # Test for the HP-UX, OSF/1, NetBSD locale name.
   17513               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17514                 gt_cv_locale_ja=ja_JP.eucJP
   17515               else
   17516                 # Test for the IRIX, FreeBSD locale name.
   17517                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17518                   gt_cv_locale_ja=ja_JP.EUC
   17519                 else
   17520                   # Test for the Solaris 7 locale name.
   17521                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17522                     gt_cv_locale_ja=ja
   17523                   else
   17524                     # Special test for NetBSD 1.6.
   17525                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
   17526                       gt_cv_locale_ja=ja_JP.eucJP
   17527                     else
   17528                       # None found.
   17529                       gt_cv_locale_ja=none
   17530                     fi
   17531                   fi
   17532                 fi
   17533               fi
   17534             fi
   17535           fi
   17536           ;;
   17537       esac
   17538     fi
   17539     rm -fr conftest*
   17540 
   17541 fi
   17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
   17543 $as_echo "$gt_cv_locale_ja" >&6; }
   17544   LOCALE_JA=$gt_cv_locale_ja
   17545 
   17546 
   17547 
   17548 
   17549 
   17550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
   17551 $as_echo_n "checking for a transitional chinese locale... " >&6; }
   17552 if ${gt_cv_locale_zh_CN+:} false; then :
   17553   $as_echo_n "(cached) " >&6
   17554 else
   17555 
   17556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17557 /* end confdefs.h.  */
   17558 
   17559 #include <locale.h>
   17560 #include <stdlib.h>
   17561 #include <time.h>
   17562 #if HAVE_LANGINFO_CODESET
   17563 # include <langinfo.h>
   17564 #endif
   17565 #include <stdlib.h>
   17566 #include <string.h>
   17567 struct tm t;
   17568 char buf[16];
   17569 int main ()
   17570 {
   17571   const char *p;
   17572   /* Check whether the given locale name is recognized by the system.  */
   17573 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
   17574   /* On native Windows, setlocale(category, "") looks at the system settings,
   17575      not at the environment variables.  Also, when an encoding suffix such
   17576      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   17577      category of the locale to "C".  */
   17578   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   17579       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   17580     return 1;
   17581 #else
   17582   if (setlocale (LC_ALL, "") == NULL) return 1;
   17583 #endif
   17584   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   17585      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   17586      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   17587      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   17588      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   17589      some unit tests fail.
   17590      On MirBSD 10, when an unsupported locale is specified, setlocale()
   17591      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
   17592 #if HAVE_LANGINFO_CODESET
   17593   {
   17594     const char *cs = nl_langinfo (CODESET);
   17595     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
   17596         || strcmp (cs, "UTF-8") == 0)
   17597       return 1;
   17598   }
   17599 #endif
   17600 #ifdef __CYGWIN__
   17601   /* On Cygwin, avoid locale names without encoding suffix, because the
   17602      locale_charset() function relies on the encoding suffix.  Note that
   17603      LC_ALL is set on the command line.  */
   17604   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   17605 #endif
   17606   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
   17607      This excludes the UTF-8 encoding (except on MirBSD).  */
   17608   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   17609   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
   17610   for (p = buf; *p != '\0'; p++)
   17611     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
   17612       return 1;
   17613   /* Check whether a typical GB18030 multibyte sequence is recognized as a
   17614      single wide character.  This excludes the GB2312 and GBK encodings.  */
   17615   if (mblen ("\203\062\332\066", 5) != 4)
   17616     return 1;
   17617   return 0;
   17618 }
   17619 
   17620 _ACEOF
   17621     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   17622   (eval $ac_link) 2>&5
   17623   ac_status=$?
   17624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17625   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   17626       case "$host_os" in
   17627         # Handle native Windows specially, because there setlocale() interprets
   17628         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   17629         # "fr" or "fra" as "French" or "French_France.1252",
   17630         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   17631         # "ja" as "Japanese" or "Japanese_Japan.932",
   17632         # and similar.
   17633         mingw*)
   17634           # Test for the hypothetical native Windows locale name.
   17635           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17636             gt_cv_locale_zh_CN=Chinese_China.54936
   17637           else
   17638             # None found.
   17639             gt_cv_locale_zh_CN=none
   17640           fi
   17641           ;;
   17642         solaris2.8)
   17643           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
   17644           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
   17645           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
   17646           gt_cv_locale_zh_CN=none
   17647           ;;
   17648         *)
   17649           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   17650           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   17651           # configure script would override the LC_ALL setting. Likewise for
   17652           # LC_CTYPE, which is also set at the beginning of the configure script.
   17653           # Test for the locale name without encoding suffix.
   17654           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17655             gt_cv_locale_zh_CN=zh_CN
   17656           else
   17657             # Test for the locale name with explicit encoding suffix.
   17658             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17659               gt_cv_locale_zh_CN=zh_CN.GB18030
   17660             else
   17661               # None found.
   17662               gt_cv_locale_zh_CN=none
   17663             fi
   17664           fi
   17665           ;;
   17666       esac
   17667     else
   17668       # If there was a link error, due to mblen(), the system is so old that
   17669       # it certainly doesn't have a chinese locale.
   17670       gt_cv_locale_zh_CN=none
   17671     fi
   17672     rm -fr conftest*
   17673 
   17674 fi
   17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
   17676 $as_echo "$gt_cv_locale_zh_CN" >&6; }
   17677   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
   17678 
   17679 
   17680 
   17681 
   17682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
   17683 $as_echo_n "checking for a french Unicode locale... " >&6; }
   17684 if ${gt_cv_locale_fr_utf8+:} false; then :
   17685   $as_echo_n "(cached) " >&6
   17686 else
   17687 
   17688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17689 /* end confdefs.h.  */
   17690 
   17691 #include <locale.h>
   17692 #include <time.h>
   17693 #if HAVE_LANGINFO_CODESET
   17694 # include <langinfo.h>
   17695 #endif
   17696 #include <stdlib.h>
   17697 #include <string.h>
   17698 struct tm t;
   17699 char buf[16];
   17700 int main () {
   17701   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
   17702      imitates locale dependent behaviour by looking at the environment
   17703      variables, and all locales use the UTF-8 encoding.  */
   17704 #if !(defined __BEOS__ || defined __HAIKU__)
   17705   /* Check whether the given locale name is recognized by the system.  */
   17706 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
   17707   /* On native Windows, setlocale(category, "") looks at the system settings,
   17708      not at the environment variables.  Also, when an encoding suffix such
   17709      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   17710      category of the locale to "C".  */
   17711   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   17712       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   17713     return 1;
   17714 # else
   17715   if (setlocale (LC_ALL, "") == NULL) return 1;
   17716 # endif
   17717   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   17718      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   17719      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   17720      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   17721      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   17722      some unit tests fail.  */
   17723 # if HAVE_LANGINFO_CODESET
   17724   {
   17725     const char *cs = nl_langinfo (CODESET);
   17726     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
   17727       return 1;
   17728   }
   17729 # endif
   17730 # ifdef __CYGWIN__
   17731   /* On Cygwin, avoid locale names without encoding suffix, because the
   17732      locale_charset() function relies on the encoding suffix.  Note that
   17733      LC_ALL is set on the command line.  */
   17734   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   17735 # endif
   17736   /* Check whether in the abbreviation of the second month, the second
   17737      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
   17738      two bytes long, with UTF-8 encoding.  */
   17739   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   17740   if (strftime (buf, sizeof (buf), "%b", &t) < 4
   17741       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
   17742     return 1;
   17743 #endif
   17744 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
   17745   /* Check whether the decimal separator is a comma.
   17746      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
   17747      are nl_langinfo(RADIXCHAR) are both ".".  */
   17748   if (localeconv () ->decimal_point[0] != ',') return 1;
   17749 #endif
   17750   return 0;
   17751 }
   17752 
   17753 _ACEOF
   17754     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   17755   (eval $ac_link) 2>&5
   17756   ac_status=$?
   17757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17758   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   17759       case "$host_os" in
   17760         # Handle native Windows specially, because there setlocale() interprets
   17761         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   17762         # "fr" or "fra" as "French" or "French_France.1252",
   17763         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   17764         # "ja" as "Japanese" or "Japanese_Japan.932",
   17765         # and similar.
   17766         mingw*)
   17767           # Test for the hypothetical native Windows locale name.
   17768           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17769             gt_cv_locale_fr_utf8=French_France.65001
   17770           else
   17771             # None found.
   17772             gt_cv_locale_fr_utf8=none
   17773           fi
   17774           ;;
   17775         *)
   17776           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   17777           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   17778           # configure script would override the LC_ALL setting. Likewise for
   17779           # LC_CTYPE, which is also set at the beginning of the configure script.
   17780           # Test for the usual locale name.
   17781           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17782             gt_cv_locale_fr_utf8=fr_FR
   17783           else
   17784             # Test for the locale name with explicit encoding suffix.
   17785             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17786               gt_cv_locale_fr_utf8=fr_FR.UTF-8
   17787             else
   17788               # Test for the Solaris 7 locale name.
   17789               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   17790                 gt_cv_locale_fr_utf8=fr.UTF-8
   17791               else
   17792                 # None found.
   17793                 gt_cv_locale_fr_utf8=none
   17794               fi
   17795             fi
   17796           fi
   17797           ;;
   17798       esac
   17799     fi
   17800     rm -fr conftest*
   17801 
   17802 fi
   17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
   17804 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
   17805   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
   17806 
   17807 
   17808 
   17809   GNULIB_FFSL=0;
   17810   GNULIB_FFSLL=0;
   17811   GNULIB_MEMCHR=0;
   17812   GNULIB_MEMMEM=0;
   17813   GNULIB_MEMPCPY=0;
   17814   GNULIB_MEMRCHR=0;
   17815   GNULIB_RAWMEMCHR=0;
   17816   GNULIB_STPCPY=0;
   17817   GNULIB_STPNCPY=0;
   17818   GNULIB_STRCHRNUL=0;
   17819   GNULIB_STRDUP=0;
   17820   GNULIB_STRNCAT=0;
   17821   GNULIB_STRNDUP=0;
   17822   GNULIB_STRNLEN=0;
   17823   GNULIB_STRPBRK=0;
   17824   GNULIB_STRSEP=0;
   17825   GNULIB_STRSTR=0;
   17826   GNULIB_STRCASESTR=0;
   17827   GNULIB_STRTOK_R=0;
   17828   GNULIB_MBSLEN=0;
   17829   GNULIB_MBSNLEN=0;
   17830   GNULIB_MBSCHR=0;
   17831   GNULIB_MBSRCHR=0;
   17832   GNULIB_MBSSTR=0;
   17833   GNULIB_MBSCASECMP=0;
   17834   GNULIB_MBSNCASECMP=0;
   17835   GNULIB_MBSPCASECMP=0;
   17836   GNULIB_MBSCASESTR=0;
   17837   GNULIB_MBSCSPN=0;
   17838   GNULIB_MBSPBRK=0;
   17839   GNULIB_MBSSPN=0;
   17840   GNULIB_MBSSEP=0;
   17841   GNULIB_MBSTOK_R=0;
   17842   GNULIB_STRERROR=0;
   17843   GNULIB_STRERROR_R=0;
   17844   GNULIB_STRSIGNAL=0;
   17845   GNULIB_STRVERSCMP=0;
   17846   HAVE_MBSLEN=0;
   17847     HAVE_FFSL=1;
   17848   HAVE_FFSLL=1;
   17849   HAVE_MEMCHR=1;
   17850   HAVE_DECL_MEMMEM=1;
   17851   HAVE_MEMPCPY=1;
   17852   HAVE_DECL_MEMRCHR=1;
   17853   HAVE_RAWMEMCHR=1;
   17854   HAVE_STPCPY=1;
   17855   HAVE_STPNCPY=1;
   17856   HAVE_STRCHRNUL=1;
   17857   HAVE_DECL_STRDUP=1;
   17858   HAVE_DECL_STRNDUP=1;
   17859   HAVE_DECL_STRNLEN=1;
   17860   HAVE_STRPBRK=1;
   17861   HAVE_STRSEP=1;
   17862   HAVE_STRCASESTR=1;
   17863   HAVE_DECL_STRTOK_R=1;
   17864   HAVE_DECL_STRERROR_R=1;
   17865   HAVE_DECL_STRSIGNAL=1;
   17866   HAVE_STRVERSCMP=1;
   17867   REPLACE_MEMCHR=0;
   17868   REPLACE_MEMMEM=0;
   17869   REPLACE_STPNCPY=0;
   17870   REPLACE_STRDUP=0;
   17871   REPLACE_STRSTR=0;
   17872   REPLACE_STRCASESTR=0;
   17873   REPLACE_STRCHRNUL=0;
   17874   REPLACE_STRERROR=0;
   17875   REPLACE_STRERROR_R=0;
   17876   REPLACE_STRNCAT=0;
   17877   REPLACE_STRNDUP=0;
   17878   REPLACE_STRNLEN=0;
   17879   REPLACE_STRSIGNAL=0;
   17880   REPLACE_STRTOK_R=0;
   17881   UNDEFINE_STRTOK_R=0;
   17882 
   17883 
   17884 
   17885 
   17886 
   17887 
   17888 
   17889 
   17890 
   17891 
   17892 
   17893   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
   17894   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
   17895   # irrelevant for anonymous mappings.
   17896   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   17897 if test "x$ac_cv_func_mmap" = xyes; then :
   17898   gl_have_mmap=yes
   17899 else
   17900   gl_have_mmap=no
   17901 fi
   17902 
   17903 
   17904   # Try to allow MAP_ANONYMOUS.
   17905   gl_have_mmap_anonymous=no
   17906   if test $gl_have_mmap = yes; then
   17907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
   17908 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
   17909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17910 /* end confdefs.h.  */
   17911 
   17912 #include <sys/mman.h>
   17913 #ifdef MAP_ANONYMOUS
   17914     I cannot identify this map
   17915 #endif
   17916 
   17917 _ACEOF
   17918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17919   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
   17920   gl_have_mmap_anonymous=yes
   17921 fi
   17922 rm -f conftest*
   17923 
   17924     if test $gl_have_mmap_anonymous != yes; then
   17925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17926 /* end confdefs.h.  */
   17927 
   17928 #include <sys/mman.h>
   17929 #ifdef MAP_ANON
   17930     I cannot identify this map
   17931 #endif
   17932 
   17933 _ACEOF
   17934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17935   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
   17936 
   17937 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
   17938 
   17939          gl_have_mmap_anonymous=yes
   17940 fi
   17941 rm -f conftest*
   17942 
   17943     fi
   17944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
   17945 $as_echo "$gl_have_mmap_anonymous" >&6; }
   17946     if test $gl_have_mmap_anonymous = yes; then
   17947 
   17948 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
   17949 
   17950     fi
   17951   fi
   17952 
   17953 
   17954 
   17955 
   17956 
   17957 
   17958   if test $HAVE_MEMCHR = 1; then
   17959     # Detect platform-specific bugs in some versions of glibc:
   17960     # memchr should not dereference anything with length 0
   17961     #   http://bugzilla.redhat.com/499689
   17962     # memchr should not dereference overestimated length after a match
   17963     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
   17964     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
   17965     # Assume that memchr works on platforms that lack mprotect.
   17966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
   17967 $as_echo_n "checking whether memchr works... " >&6; }
   17968 if ${gl_cv_func_memchr_works+:} false; then :
   17969   $as_echo_n "(cached) " >&6
   17970 else
   17971   if test "$cross_compiling" = yes; then :
   17972          gl_cv_func_memchr_works="guessing no"
   17973 else
   17974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17975 /* end confdefs.h.  */
   17976 
   17977 #include <string.h>
   17978 #if HAVE_SYS_MMAN_H
   17979 # include <fcntl.h>
   17980 # include <unistd.h>
   17981 # include <sys/types.h>
   17982 # include <sys/mman.h>
   17983 # ifndef MAP_FILE
   17984 #  define MAP_FILE 0
   17985 # endif
   17986 #endif
   17987 
   17988 int
   17989 main ()
   17990 {
   17991 
   17992   int result = 0;
   17993   char *fence = NULL;
   17994 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
   17995 # if HAVE_MAP_ANONYMOUS
   17996   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
   17997   const int fd = -1;
   17998 # else /* !HAVE_MAP_ANONYMOUS */
   17999   const int flags = MAP_FILE | MAP_PRIVATE;
   18000   int fd = open ("/dev/zero", O_RDONLY, 0666);
   18001   if (fd >= 0)
   18002 # endif
   18003     {
   18004       int pagesize = getpagesize ();
   18005       char *two_pages =
   18006         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
   18007                        flags, fd, 0);
   18008       if (two_pages != (char *)(-1)
   18009           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
   18010         fence = two_pages + pagesize;
   18011     }
   18012 #endif
   18013   if (fence)
   18014     {
   18015       if (memchr (fence, 0, 0))
   18016         result |= 1;
   18017       strcpy (fence - 9, "12345678");
   18018       if (memchr (fence - 9, 0, 79) != fence - 1)
   18019         result |= 2;
   18020       if (memchr (fence - 1, 0, 3) != fence - 1)
   18021         result |= 4;
   18022     }
   18023   return result;
   18024 
   18025   ;
   18026   return 0;
   18027 }
   18028 _ACEOF
   18029 if ac_fn_c_try_run "$LINENO"; then :
   18030   gl_cv_func_memchr_works=yes
   18031 else
   18032   gl_cv_func_memchr_works=no
   18033 fi
   18034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18035   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18036 fi
   18037 
   18038 fi
   18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
   18040 $as_echo "$gl_cv_func_memchr_works" >&6; }
   18041     if test "$gl_cv_func_memchr_works" != yes; then
   18042       REPLACE_MEMCHR=1
   18043     fi
   18044   fi
   18045 
   18046 
   18047 
   18048 ac_fn_c_check_decl "$LINENO" "obstack_printf" "ac_cv_have_decl_obstack_printf" "$ac_includes_default"
   18049 if test "x$ac_cv_have_decl_obstack_printf" = xyes; then :
   18050   ac_have_decl=1
   18051 else
   18052   ac_have_decl=0
   18053 fi
   18054 
   18055 cat >>confdefs.h <<_ACEOF
   18056 #define HAVE_DECL_OBSTACK_PRINTF $ac_have_decl
   18057 _ACEOF
   18058 
   18059 
   18060 
   18061 
   18062 
   18063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
   18064 $as_echo_n "checking for promoted mode_t type... " >&6; }
   18065 if ${gl_cv_promoted_mode_t+:} false; then :
   18066   $as_echo_n "(cached) " >&6
   18067 else
   18068 
   18069                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18070 /* end confdefs.h.  */
   18071 #include <sys/types.h>
   18072 int
   18073 main ()
   18074 {
   18075 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
   18076   ;
   18077   return 0;
   18078 }
   18079 _ACEOF
   18080 if ac_fn_c_try_compile "$LINENO"; then :
   18081   gl_cv_promoted_mode_t='int'
   18082 else
   18083   gl_cv_promoted_mode_t='mode_t'
   18084 fi
   18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18086 
   18087 fi
   18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
   18089 $as_echo "$gl_cv_promoted_mode_t" >&6; }
   18090 
   18091 cat >>confdefs.h <<_ACEOF
   18092 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
   18093 _ACEOF
   18094 
   18095 
   18096 
   18097 
   18098 
   18099      REPLACE_STRERROR_0=0
   18100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
   18101 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
   18102 if ${gl_cv_func_strerror_0_works+:} false; then :
   18103   $as_echo_n "(cached) " >&6
   18104 else
   18105   if test "$cross_compiling" = yes; then :
   18106   case "$host_os" in
   18107                  # Guess yes on glibc systems.
   18108          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
   18109                  # If we don't know, assume the worst.
   18110          *)      gl_cv_func_strerror_0_works="guessing no" ;;
   18111        esac
   18112 
   18113 else
   18114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18115 /* end confdefs.h.  */
   18116 #include <string.h>
   18117            #include <errno.h>
   18118 
   18119 int
   18120 main ()
   18121 {
   18122 int result = 0;
   18123            char *str;
   18124            errno = 0;
   18125            str = strerror (0);
   18126            if (!*str) result |= 1;
   18127            if (errno) result |= 2;
   18128            if (strstr (str, "nknown") || strstr (str, "ndefined"))
   18129              result |= 4;
   18130            return result;
   18131   ;
   18132   return 0;
   18133 }
   18134 _ACEOF
   18135 if ac_fn_c_try_run "$LINENO"; then :
   18136   gl_cv_func_strerror_0_works=yes
   18137 else
   18138   gl_cv_func_strerror_0_works=no
   18139 fi
   18140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18141   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18142 fi
   18143 
   18144 
   18145 fi
   18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
   18147 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
   18148   case "$gl_cv_func_strerror_0_works" in
   18149     *yes) ;;
   18150     *)
   18151       REPLACE_STRERROR_0=1
   18152 
   18153 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
   18154 
   18155       ;;
   18156   esac
   18157 
   18158 
   18159 
   18160 
   18161 
   18162 
   18163 
   18164 
   18165 
   18166 
   18167   if test $ac_cv_func_strerror_r = yes; then
   18168     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
   18169                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
   18170 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
   18171 if ${gl_cv_func_strerror_r_posix_signature+:} false; then :
   18172   $as_echo_n "(cached) " >&6
   18173 else
   18174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18175 /* end confdefs.h.  */
   18176 #include <string.h>
   18177                 int strerror_r (int, char *, size_t);
   18178 
   18179 int
   18180 main ()
   18181 {
   18182 
   18183   ;
   18184   return 0;
   18185 }
   18186 _ACEOF
   18187 if ac_fn_c_try_compile "$LINENO"; then :
   18188   gl_cv_func_strerror_r_posix_signature=yes
   18189 else
   18190   gl_cv_func_strerror_r_posix_signature=no
   18191 fi
   18192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18193 
   18194 fi
   18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
   18196 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
   18197       if test $gl_cv_func_strerror_r_posix_signature = yes; then
   18198                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
   18199 $as_echo_n "checking whether strerror_r works... " >&6; }
   18200 if ${gl_cv_func_strerror_r_works+:} false; then :
   18201   $as_echo_n "(cached) " >&6
   18202 else
   18203   if test "$cross_compiling" = yes; then :
   18204 
   18205               case "$host_os" in
   18206                        # Guess no on AIX.
   18207                 aix*)  gl_cv_func_strerror_r_works="guessing no";;
   18208                        # Guess no on HP-UX.
   18209                 hpux*) gl_cv_func_strerror_r_works="guessing no";;
   18210                        # Guess no on BSD variants.
   18211                 *bsd*)  gl_cv_func_strerror_r_works="guessing no";;
   18212                        # Guess yes otherwise.
   18213                 *)     gl_cv_func_strerror_r_works="guessing yes";;
   18214               esac
   18215 
   18216 else
   18217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18218 /* end confdefs.h.  */
   18219 #include <errno.h>
   18220                   #include <string.h>
   18221 
   18222 int
   18223 main ()
   18224 {
   18225 int result = 0;
   18226                   char buf[79];
   18227                   if (strerror_r (EACCES, buf, 0) < 0)
   18228                     result |= 1;
   18229                   errno = 0;
   18230                   if (strerror_r (EACCES, buf, sizeof buf) != 0)
   18231                     result |= 2;
   18232                   strcpy (buf, "Unknown");
   18233                   if (strerror_r (0, buf, sizeof buf) != 0)
   18234                     result |= 4;
   18235                   if (errno)
   18236                     result |= 8;
   18237                   if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
   18238                     result |= 0x10;
   18239                   errno = 0;
   18240                   *buf = 0;
   18241                   if (strerror_r (-3, buf, sizeof buf) < 0)
   18242                     result |= 0x20;
   18243                   if (errno)
   18244                     result |= 0x40;
   18245                   if (!*buf)
   18246                     result |= 0x80;
   18247                   return result;
   18248 
   18249   ;
   18250   return 0;
   18251 }
   18252 _ACEOF
   18253 if ac_fn_c_try_run "$LINENO"; then :
   18254   gl_cv_func_strerror_r_works=yes
   18255 else
   18256   gl_cv_func_strerror_r_works=no
   18257 fi
   18258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18259   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18260 fi
   18261 
   18262 
   18263 fi
   18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
   18265 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
   18266       else
   18267 
   18268                         if test $ac_cv_func___xpg_strerror_r = yes; then
   18269           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
   18270 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
   18271 if ${gl_cv_func_strerror_r_works+:} false; then :
   18272   $as_echo_n "(cached) " >&6
   18273 else
   18274   if test "$cross_compiling" = yes; then :
   18275                                   gl_cv_func_strerror_r_works="guessing no"
   18276 
   18277 else
   18278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18279 /* end confdefs.h.  */
   18280 #include <errno.h>
   18281                     #include <string.h>
   18282                     extern
   18283                     #ifdef __cplusplus
   18284                     "C"
   18285                     #endif
   18286                     int __xpg_strerror_r(int, char *, size_t);
   18287 
   18288 int
   18289 main ()
   18290 {
   18291 int result = 0;
   18292                     char buf[256] = "^";
   18293                     char copy[256];
   18294                     char *str = strerror (-1);
   18295                     strcpy (copy, str);
   18296                     if (__xpg_strerror_r (-2, buf, 1) == 0)
   18297                       result |= 1;
   18298                     if (*buf)
   18299                       result |= 2;
   18300                     __xpg_strerror_r (-2, buf, 256);
   18301                     if (strcmp (str, copy))
   18302                       result |= 4;
   18303                     return result;
   18304 
   18305   ;
   18306   return 0;
   18307 }
   18308 _ACEOF
   18309 if ac_fn_c_try_run "$LINENO"; then :
   18310   gl_cv_func_strerror_r_works=yes
   18311 else
   18312   gl_cv_func_strerror_r_works=no
   18313 fi
   18314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18315   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18316 fi
   18317 
   18318 
   18319 fi
   18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
   18321 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
   18322         fi
   18323       fi
   18324     fi
   18325   fi
   18326 
   18327 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
   18328 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
   18329   ac_have_decl=1
   18330 else
   18331   ac_have_decl=0
   18332 fi
   18333 
   18334 cat >>confdefs.h <<_ACEOF
   18335 #define HAVE_DECL_STRERROR_R $ac_have_decl
   18336 _ACEOF
   18337 
   18338 
   18339 
   18340 
   18341 
   18342 
   18343 
   18344 
   18345   if test $ac_cv_have_decl_strerror_r = no; then
   18346     HAVE_DECL_STRERROR_R=0
   18347   fi
   18348 
   18349   if test $ac_cv_func_strerror_r = yes; then
   18350     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
   18351       if test $gl_cv_func_strerror_r_posix_signature = yes; then
   18352         case "$gl_cv_func_strerror_r_works" in
   18353                     *no) REPLACE_STRERROR_R=1 ;;
   18354         esac
   18355       else
   18356                 REPLACE_STRERROR_R=1
   18357       fi
   18358     else
   18359                   REPLACE_STRERROR_R=1
   18360     fi
   18361   fi
   18362 
   18363 
   18364 
   18365 
   18366   GNULIB_POSIX_SPAWN=0;
   18367   GNULIB_POSIX_SPAWNP=0;
   18368   GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;
   18369   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
   18370   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
   18371   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
   18372   GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;
   18373   GNULIB_POSIX_SPAWNATTR_INIT=0;
   18374   GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;
   18375   GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;
   18376   GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;
   18377   GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;
   18378   GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;
   18379   GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;
   18380   GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;
   18381   GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;
   18382   GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;
   18383   GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;
   18384   GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;
   18385   GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;
   18386   GNULIB_POSIX_SPAWNATTR_DESTROY=0;
   18387     HAVE_POSIX_SPAWN=1;
   18388   HAVE_POSIX_SPAWNATTR_T=1;
   18389   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
   18390 
   18391   REPLACE_POSIX_SPAWN=0;
   18392   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
   18393 
   18394   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
   18395 
   18396   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
   18397 
   18398 
   18399 
   18400 
   18401 
   18402 
   18403 
   18404 
   18405   if test $ac_cv_func_posix_spawn != yes; then
   18406     HAVE_POSIX_SPAWN=0
   18407   fi
   18408 
   18409 
   18410 
   18411 
   18412                                       if test $ac_cv_func_posix_spawn = yes; then
   18413 
   18414 
   18415      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5
   18416 $as_echo_n "checking whether posix_spawn works... " >&6; }
   18417 if ${gl_cv_func_posix_spawn_works+:} false; then :
   18418   $as_echo_n "(cached) " >&6
   18419 else
   18420   if test $cross_compiling = no; then
   18421        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18422 /* end confdefs.h.  */
   18423 
   18424 #include <errno.h>
   18425 #include <fcntl.h>
   18426 #include <signal.h>
   18427 #include <spawn.h>
   18428 #include <stdbool.h>
   18429 #include <stdio.h>
   18430 #include <stdlib.h>
   18431 #include <string.h>
   18432 #include <unistd.h>
   18433 #include <sys/types.h>
   18434 #include <sys/wait.h>
   18435 
   18436 extern char **environ;
   18437 
   18438 #ifndef STDIN_FILENO
   18439 # define STDIN_FILENO 0
   18440 #endif
   18441 #ifndef STDOUT_FILENO
   18442 # define STDOUT_FILENO 1
   18443 #endif
   18444 #ifndef STDERR_FILENO
   18445 # define STDERR_FILENO 2
   18446 #endif
   18447 
   18448 #ifndef WTERMSIG
   18449 # define WTERMSIG(x) ((x) & 0x7f)
   18450 #endif
   18451 #ifndef WIFEXITED
   18452 # define WIFEXITED(x) (WTERMSIG (x) == 0)
   18453 #endif
   18454 #ifndef WEXITSTATUS
   18455 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
   18456 #endif
   18457 
   18458 #define CHILD_PROGRAM_FILENAME "/non/exist/ent"
   18459 
   18460 static int
   18461 fd_safer (int fd)
   18462 {
   18463   if (0 <= fd && fd <= 2)
   18464     {
   18465       int f = fd_safer (dup (fd));
   18466       int e = errno;
   18467       close (fd);
   18468       errno = e;
   18469       fd = f;
   18470     }
   18471 
   18472   return fd;
   18473 }
   18474 
   18475 int
   18476 main ()
   18477 {
   18478   char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL };
   18479   int ofd[2];
   18480   sigset_t blocked_signals;
   18481   sigset_t fatal_signal_set;
   18482   posix_spawn_file_actions_t actions;
   18483   bool actions_allocated;
   18484   posix_spawnattr_t attrs;
   18485   bool attrs_allocated;
   18486   int err;
   18487   pid_t child;
   18488   int status;
   18489   int exitstatus;
   18490 
   18491   setvbuf (stdout, NULL, _IOFBF, 0);
   18492   puts ("This should be seen only once.");
   18493   if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
   18494     {
   18495       perror ("cannot create pipe");
   18496       exit (1);
   18497     }
   18498   sigprocmask (SIG_SETMASK, NULL, &blocked_signals);
   18499   sigemptyset (&fatal_signal_set);
   18500   sigaddset (&fatal_signal_set, SIGINT);
   18501   sigaddset (&fatal_signal_set, SIGTERM);
   18502   sigaddset (&fatal_signal_set, SIGHUP);
   18503   sigaddset (&fatal_signal_set, SIGPIPE);
   18504   sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL);
   18505   actions_allocated = false;
   18506   attrs_allocated = false;
   18507   if ((err = posix_spawn_file_actions_init (&actions)) != 0
   18508       || (actions_allocated = true,
   18509           (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
   18510           || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
   18511           || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
   18512           || (err = posix_spawnattr_init (&attrs)) != 0
   18513           || (attrs_allocated = true,
   18514               (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0
   18515               || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0)
   18516           || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
   18517     {
   18518       if (actions_allocated)
   18519         posix_spawn_file_actions_destroy (&actions);
   18520       if (attrs_allocated)
   18521         posix_spawnattr_destroy (&attrs);
   18522       sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
   18523       if (err == ENOENT)
   18524         return 0;
   18525       else
   18526         {
   18527           errno = err;
   18528           perror ("subprocess failed");
   18529           exit (1);
   18530         }
   18531     }
   18532   posix_spawn_file_actions_destroy (&actions);
   18533   posix_spawnattr_destroy (&attrs);
   18534   sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
   18535   close (ofd[0]);
   18536   close (ofd[1]);
   18537   status = 0;
   18538   while (waitpid (child, &status, 0) != child)
   18539     ;
   18540   if (!WIFEXITED (status))
   18541     {
   18542       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
   18543       exit (1);
   18544     }
   18545   exitstatus = WEXITSTATUS (status);
   18546   if (exitstatus != 127)
   18547     {
   18548       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
   18549       exit (1);
   18550     }
   18551   return 0;
   18552 }
   18553 
   18554 _ACEOF
   18555 if ac_fn_c_try_link "$LINENO"; then :
   18556   if test -s conftest$ac_exeext \
   18557              && ./conftest$ac_exeext > conftest.out \
   18558              && echo 'This should be seen only once.' > conftest.ok \
   18559              && cmp conftest.out conftest.ok > /dev/null; then
   18560             gl_cv_func_posix_spawn_works=yes
   18561           else
   18562             gl_cv_func_posix_spawn_works=no
   18563           fi
   18564 else
   18565   gl_cv_func_posix_spawn_works=no
   18566 fi
   18567 rm -f core conftest.err conftest.$ac_objext \
   18568     conftest$ac_exeext conftest.$ac_ext
   18569        if test $gl_cv_func_posix_spawn_works = yes; then
   18570          if test "$cross_compiling" = yes; then :
   18571   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18573 as_fn_error $? "cannot run test program while cross compiling
   18574 See \`config.log' for more details" "$LINENO" 5; }
   18575 else
   18576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18577 /* end confdefs.h.  */
   18578 
   18579 /* Test whether posix_spawn_file_actions_addopen supports filename arguments
   18580    that contain special characters such as '*'.  */
   18581 
   18582 #include <errno.h>
   18583 #include <fcntl.h>
   18584 #include <signal.h>
   18585 #include <spawn.h>
   18586 #include <stdbool.h>
   18587 #include <stdio.h>
   18588 #include <string.h>
   18589 #include <unistd.h>
   18590 #include <sys/types.h>
   18591 #include <sys/wait.h>
   18592 
   18593 extern char **environ;
   18594 
   18595 #ifndef STDIN_FILENO
   18596 # define STDIN_FILENO 0
   18597 #endif
   18598 #ifndef STDOUT_FILENO
   18599 # define STDOUT_FILENO 1
   18600 #endif
   18601 #ifndef STDERR_FILENO
   18602 # define STDERR_FILENO 2
   18603 #endif
   18604 
   18605 #ifndef WTERMSIG
   18606 # define WTERMSIG(x) ((x) & 0x7f)
   18607 #endif
   18608 #ifndef WIFEXITED
   18609 # define WIFEXITED(x) (WTERMSIG (x) == 0)
   18610 #endif
   18611 #ifndef WEXITSTATUS
   18612 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
   18613 #endif
   18614 
   18615 #define CHILD_PROGRAM_FILENAME "conftest"
   18616 #define DATA_FILENAME "conftest%=*#?"
   18617 
   18618 static int
   18619 parent_main (void)
   18620 {
   18621   FILE *fp;
   18622   char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL };
   18623   posix_spawn_file_actions_t actions;
   18624   bool actions_allocated;
   18625   int err;
   18626   pid_t child;
   18627   int status;
   18628   int exitstatus;
   18629 
   18630   /* Create a data file with specific contents.  */
   18631   fp = fopen (DATA_FILENAME, "wb");
   18632   if (fp == NULL)
   18633     {
   18634       perror ("cannot create data file");
   18635       return 1;
   18636     }
   18637   fwrite ("Halle Potta", 1, 11, fp);
   18638   if (fflush (fp) || fclose (fp))
   18639     {
   18640       perror ("cannot prepare data file");
   18641       return 2;
   18642     }
   18643 
   18644   /* Avoid reading from our stdin, as it could block.  */
   18645   freopen ("/dev/null", "rb", stdin);
   18646 
   18647   /* Test whether posix_spawn_file_actions_addopen with this file name
   18648      actually works, but spawning a child that reads from this file.  */
   18649   actions_allocated = false;
   18650   if ((err = posix_spawn_file_actions_init (&actions)) != 0
   18651       || (actions_allocated = true,
   18652           (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
   18653           || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
   18654     {
   18655       if (actions_allocated)
   18656         posix_spawn_file_actions_destroy (&actions);
   18657       errno = err;
   18658       perror ("subprocess failed");
   18659       return 3;
   18660     }
   18661   posix_spawn_file_actions_destroy (&actions);
   18662   status = 0;
   18663   while (waitpid (child, &status, 0) != child)
   18664     ;
   18665   if (!WIFEXITED (status))
   18666     {
   18667       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
   18668       return 4;
   18669     }
   18670   exitstatus = WEXITSTATUS (status);
   18671   if (exitstatus != 0)
   18672     {
   18673       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
   18674       return 5;
   18675     }
   18676   return 0;
   18677 }
   18678 
   18679 static int
   18680 child_main (void)
   18681 {
   18682   char buf[1024];
   18683 
   18684   /* See if reading from STDIN_FILENO yields the expected contents.  */
   18685   if (fread (buf, 1, sizeof (buf), stdin) == 11
   18686       && memcmp (buf, "Halle Potta", 11) == 0)
   18687     return 0;
   18688   else
   18689     return 8;
   18690 }
   18691 
   18692 static void
   18693 cleanup_then_die (int sig)
   18694 {
   18695   /* Clean up data file.  */
   18696   unlink (DATA_FILENAME);
   18697 
   18698   /* Re-raise the signal and die from it.  */
   18699   signal (sig, SIG_DFL);
   18700   raise (sig);
   18701 }
   18702 
   18703 int
   18704 main (int argc, char *argv[])
   18705 {
   18706   int exitstatus;
   18707 
   18708   if (!(argc > 1 && strcmp (argv[1], "-child") == 0))
   18709     {
   18710       /* This is the parent process.  */
   18711       signal (SIGINT, cleanup_then_die);
   18712       signal (SIGTERM, cleanup_then_die);
   18713       #ifdef SIGHUP
   18714       signal (SIGHUP, cleanup_then_die);
   18715       #endif
   18716 
   18717       exitstatus = parent_main ();
   18718     }
   18719   else
   18720     {
   18721       /* This is the child process.  */
   18722 
   18723       exitstatus = child_main ();
   18724     }
   18725   unlink (DATA_FILENAME);
   18726   return exitstatus;
   18727 }
   18728 
   18729 _ACEOF
   18730 if ac_fn_c_try_run "$LINENO"; then :
   18731 
   18732 else
   18733   gl_cv_func_posix_spawn_works=no
   18734 fi
   18735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18736   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18737 fi
   18738 
   18739        fi
   18740      else
   18741        case "$host_os" in
   18742          aix*) gl_cv_func_posix_spawn_works="guessing no";;
   18743          *)    gl_cv_func_posix_spawn_works="guessing yes";;
   18744        esac
   18745      fi
   18746 
   18747 fi
   18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5
   18749 $as_echo "$gl_cv_func_posix_spawn_works" >&6; }
   18750 
   18751     case "$gl_cv_func_posix_spawn_works" in
   18752       *yes)
   18753 
   18754 $as_echo "#define HAVE_WORKING_POSIX_SPAWN 1" >>confdefs.h
   18755 
   18756                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5
   18757 $as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; }
   18758 if ${gl_cv_func_spawnattr_setschedpolicy+:} false; then :
   18759   $as_echo_n "(cached) " >&6
   18760 else
   18761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18762 /* end confdefs.h.  */
   18763 
   18764 #include <spawn.h>
   18765 #if POSIX_SPAWN_SETSCHEDULER
   18766  POSIX scheduling supported
   18767 #endif
   18768 
   18769 _ACEOF
   18770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18771   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
   18772   gl_cv_func_spawnattr_setschedpolicy=yes
   18773 else
   18774   gl_cv_func_spawnattr_setschedpolicy=no
   18775 fi
   18776 rm -f conftest*
   18777 
   18778 
   18779 fi
   18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5
   18781 $as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; }
   18782                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5
   18783 $as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; }
   18784 if ${gl_cv_func_spawnattr_setschedparam+:} false; then :
   18785   $as_echo_n "(cached) " >&6
   18786 else
   18787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18788 /* end confdefs.h.  */
   18789 
   18790 #include <spawn.h>
   18791 #if POSIX_SPAWN_SETSCHEDPARAM
   18792  POSIX scheduling supported
   18793 #endif
   18794 
   18795 _ACEOF
   18796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18797   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
   18798   gl_cv_func_spawnattr_setschedparam=yes
   18799 else
   18800   gl_cv_func_spawnattr_setschedparam=no
   18801 fi
   18802 rm -f conftest*
   18803 
   18804 
   18805 fi
   18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5
   18807 $as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; }
   18808         ;;
   18809       *) REPLACE_POSIX_SPAWN=1 ;;
   18810     esac
   18811   fi
   18812 
   18813 
   18814 
   18815 
   18816 
   18817 
   18818 
   18819 
   18820 
   18821 
   18822 
   18823 
   18824 
   18825 
   18826 
   18827 
   18828   gl_cv_func_vfprintf_posix=no
   18829   case "$gl_cv_func_printf_sizes_c99" in
   18830     *yes)
   18831       case "$gl_cv_func_printf_long_double" in
   18832         *yes)
   18833           case "$gl_cv_func_printf_infinite" in
   18834             *yes)
   18835               case "$gl_cv_func_printf_infinite_long_double" in
   18836                 *yes)
   18837                   case "$gl_cv_func_printf_directive_a" in
   18838                     *yes)
   18839                       case "$gl_cv_func_printf_directive_f" in
   18840                         *yes)
   18841                           case "$gl_cv_func_printf_directive_n" in
   18842                             *yes)
   18843                               case "$gl_cv_func_printf_directive_ls" in
   18844                                 *yes)
   18845                                   case "$gl_cv_func_printf_positions" in
   18846                                     *yes)
   18847                                       case "$gl_cv_func_printf_flag_grouping" in
   18848                                         *yes)
   18849                                           case "$gl_cv_func_printf_flag_leftadjust" in
   18850                                             *yes)
   18851                                               case "$gl_cv_func_printf_flag_zero" in
   18852                                                 *yes)
   18853                                                   case "$gl_cv_func_printf_precision" in
   18854                                                     *yes)
   18855                                                       case "$gl_cv_func_printf_enomem" in
   18856                                                         *yes)
   18857                                                           # vfprintf exists and is
   18858                                                           # already POSIX compliant.
   18859                                                           gl_cv_func_vfprintf_posix=yes
   18860                                                           ;;
   18861                                                       esac
   18862                                                       ;;
   18863                                                   esac
   18864                                                   ;;
   18865                                               esac
   18866                                               ;;
   18867                                           esac
   18868                                           ;;
   18869                                       esac
   18870                                       ;;
   18871                                   esac
   18872                                   ;;
   18873                               esac
   18874                               ;;
   18875                           esac
   18876                           ;;
   18877                       esac
   18878                       ;;
   18879                   esac
   18880                   ;;
   18881               esac
   18882               ;;
   18883           esac
   18884           ;;
   18885       esac
   18886       ;;
   18887   esac
   18888   if test $gl_cv_func_vfprintf_posix = no; then
   18889 
   18890 
   18891 
   18892   case "$gl_cv_func_printf_infinite" in
   18893     *yes)
   18894       ;;
   18895     *)
   18896 
   18897 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   18898 
   18899       ;;
   18900   esac
   18901 
   18902 
   18903 
   18904 
   18905   case "$gl_cv_func_printf_long_double" in
   18906     *yes)
   18907       case "$gl_cv_func_printf_infinite_long_double" in
   18908         *yes)
   18909           ;;
   18910         *)
   18911 
   18912 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   18913 
   18914           ;;
   18915       esac
   18916       ;;
   18917   esac
   18918 
   18919 
   18920 
   18921   case "$gl_cv_func_printf_directive_a" in
   18922     *yes)
   18923       ;;
   18924     *)
   18925 
   18926 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   18927 
   18928       for ac_func in nl_langinfo
   18929 do :
   18930   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   18931 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   18932   cat >>confdefs.h <<_ACEOF
   18933 #define HAVE_NL_LANGINFO 1
   18934 _ACEOF
   18935 
   18936 fi
   18937 done
   18938 
   18939       ;;
   18940   esac
   18941 
   18942 
   18943 
   18944   case "$gl_cv_func_printf_directive_f" in
   18945     *yes)
   18946       ;;
   18947     *)
   18948 
   18949 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   18950 
   18951       ;;
   18952   esac
   18953 
   18954 
   18955 
   18956   case "$gl_cv_func_printf_directive_ls" in
   18957     *yes)
   18958       ;;
   18959     *)
   18960 
   18961 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   18962 
   18963       ;;
   18964   esac
   18965 
   18966 
   18967 
   18968   case "$gl_cv_func_printf_flag_grouping" in
   18969     *yes)
   18970       ;;
   18971     *)
   18972 
   18973 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   18974 
   18975       ;;
   18976   esac
   18977 
   18978 
   18979 
   18980   case "$gl_cv_func_printf_flag_leftadjust" in
   18981     *yes)
   18982       ;;
   18983     *)
   18984 
   18985 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   18986 
   18987       ;;
   18988   esac
   18989 
   18990 
   18991 
   18992   case "$gl_cv_func_printf_flag_zero" in
   18993     *yes)
   18994       ;;
   18995     *)
   18996 
   18997 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   18998 
   18999       ;;
   19000   esac
   19001 
   19002 
   19003 
   19004   case "$gl_cv_func_printf_precision" in
   19005     *yes)
   19006       ;;
   19007     *)
   19008 
   19009 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   19010 
   19011 
   19012 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   19013 
   19014 
   19015 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   19016 
   19017       ;;
   19018   esac
   19019 
   19020 
   19021 
   19022   case "$gl_cv_func_printf_enomem" in
   19023     *yes)
   19024       ;;
   19025     *)
   19026 
   19027 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   19028 
   19029 
   19030 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   19031 
   19032 
   19033 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   19034 
   19035       ;;
   19036   esac
   19037 
   19038 
   19039 
   19040 
   19041 
   19042 
   19043 
   19044 
   19045 
   19046 
   19047 
   19048   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   19049 
   19050 
   19051 
   19052 
   19053 
   19054 
   19055 
   19056 
   19057 
   19058   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   19059 
   19060 
   19061 
   19062 
   19063 
   19064 
   19065 
   19066 
   19067 
   19068   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   19069 
   19070 
   19071 
   19072 
   19073 
   19074 
   19075 
   19076 
   19077 
   19078   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   19079 
   19080   if test $ac_cv_func_vasnprintf = yes; then
   19081 
   19082 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   19083 
   19084   fi
   19085 
   19086 
   19087 
   19088 
   19089 
   19090 
   19091 
   19092 
   19093 
   19094 
   19095 
   19096   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   19097 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   19098 
   19099 else
   19100 
   19101 $as_echo "#define ptrdiff_t long" >>confdefs.h
   19102 
   19103 
   19104 fi
   19105 
   19106 
   19107 
   19108 
   19109 
   19110 
   19111 
   19112 
   19113 
   19114 
   19115 
   19116 
   19117 
   19118 
   19119 
   19120 
   19121 
   19122   gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
   19123 
   19124   REPLACE_VFPRINTF=1
   19125 
   19126 $as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
   19127 
   19128   :
   19129 
   19130   fi
   19131 
   19132 
   19133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19134 /* end confdefs.h.  */
   19135 
   19136 #ifdef _MSC_VER
   19137 MicrosoftCompiler
   19138 #endif
   19139 
   19140 _ACEOF
   19141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19142   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
   19143   gl_asmext='asm'
   19144      gl_c_asm_opt='-c -Fa'
   19145 
   19146 else
   19147   gl_asmext='s'
   19148      gl_c_asm_opt='-S'
   19149 
   19150 fi
   19151 rm -f conftest*
   19152 
   19153 
   19154 
   19155 
   19156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
   19157 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
   19158 if ${gl_cv_prog_as_underscore+:} false; then :
   19159   $as_echo_n "(cached) " >&6
   19160 else
   19161   cat > conftest.c <<EOF
   19162 #ifdef __cplusplus
   19163 extern "C" int foo (void);
   19164 #endif
   19165 int foo(void) { return 0; }
   19166 EOF
   19167      # Look for the assembly language name in the .s file.
   19168      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
   19169   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   19170   (eval $ac_try) 2>&5
   19171   ac_status=$?
   19172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19173   test $ac_status = 0; }; } >/dev/null 2>&1
   19174      if grep _foo conftest.$gl_asmext >/dev/null ; then
   19175        gl_cv_prog_as_underscore=yes
   19176      else
   19177        gl_cv_prog_as_underscore=no
   19178      fi
   19179      rm -f conftest*
   19180 
   19181 fi
   19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
   19183 $as_echo "$gl_cv_prog_as_underscore" >&6; }
   19184   if test $gl_cv_prog_as_underscore = yes; then
   19185     USER_LABEL_PREFIX=_
   19186   else
   19187     USER_LABEL_PREFIX=
   19188   fi
   19189 
   19190 cat >>confdefs.h <<_ACEOF
   19191 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
   19192 _ACEOF
   19193 
   19194   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
   19195 
   19196 
   19197 
   19198   GNULIB_PTHREAD_SIGMASK=0;
   19199   GNULIB_RAISE=0;
   19200   GNULIB_SIGNAL_H_SIGPIPE=0;
   19201   GNULIB_SIGPROCMASK=0;
   19202   GNULIB_SIGACTION=0;
   19203     HAVE_POSIX_SIGNALBLOCKING=1;
   19204   HAVE_PTHREAD_SIGMASK=1;
   19205   HAVE_RAISE=1;
   19206   HAVE_SIGSET_T=1;
   19207   HAVE_SIGINFO_T=1;
   19208   HAVE_SIGACTION=1;
   19209   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
   19210 
   19211   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
   19212 
   19213   HAVE_SIGHANDLER_T=1;
   19214   REPLACE_PTHREAD_SIGMASK=0;
   19215   REPLACE_RAISE=0;
   19216 
   19217 
   19218   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
   19219       #include <signal.h>
   19220       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
   19221       #include <sys/types.h>
   19222 
   19223 "
   19224 if test "x$ac_cv_type_sigset_t" = xyes; then :
   19225 
   19226 cat >>confdefs.h <<_ACEOF
   19227 #define HAVE_SIGSET_T 1
   19228 _ACEOF
   19229 
   19230 gl_cv_type_sigset_t=yes
   19231 else
   19232   gl_cv_type_sigset_t=no
   19233 fi
   19234 
   19235   if test $gl_cv_type_sigset_t != yes; then
   19236     HAVE_SIGSET_T=0
   19237   fi
   19238 
   19239 
   19240 
   19241 
   19242 
   19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
   19244 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
   19245 if ${ac_cv_c_restrict+:} false; then :
   19246   $as_echo_n "(cached) " >&6
   19247 else
   19248   ac_cv_c_restrict=no
   19249    # The order here caters to the fact that C++ does not require restrict.
   19250    for ac_kw in __restrict __restrict__ _Restrict restrict; do
   19251      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19252 /* end confdefs.h.  */
   19253 typedef int * int_ptr;
   19254 	int foo (int_ptr $ac_kw ip) {
   19255 	return ip[0];
   19256        }
   19257 int
   19258 main ()
   19259 {
   19260 int s[1];
   19261 	int * $ac_kw t = s;
   19262 	t[0] = 0;
   19263 	return foo(t)
   19264   ;
   19265   return 0;
   19266 }
   19267 _ACEOF
   19268 if ac_fn_c_try_compile "$LINENO"; then :
   19269   ac_cv_c_restrict=$ac_kw
   19270 fi
   19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19272      test "$ac_cv_c_restrict" != no && break
   19273    done
   19274 
   19275 fi
   19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
   19277 $as_echo "$ac_cv_c_restrict" >&6; }
   19278 
   19279  case $ac_cv_c_restrict in
   19280    restrict) ;;
   19281    no) $as_echo "#define restrict /**/" >>confdefs.h
   19282  ;;
   19283    *)  cat >>confdefs.h <<_ACEOF
   19284 #define restrict $ac_cv_c_restrict
   19285 _ACEOF
   19286  ;;
   19287  esac
   19288 
   19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   19290 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   19291 if ${ac_cv_type_uid_t+:} false; then :
   19292   $as_echo_n "(cached) " >&6
   19293 else
   19294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19295 /* end confdefs.h.  */
   19296 #include <sys/types.h>
   19297 
   19298 _ACEOF
   19299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19300   $EGREP "uid_t" >/dev/null 2>&1; then :
   19301   ac_cv_type_uid_t=yes
   19302 else
   19303   ac_cv_type_uid_t=no
   19304 fi
   19305 rm -f conftest*
   19306 
   19307 fi
   19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   19309 $as_echo "$ac_cv_type_uid_t" >&6; }
   19310 if test $ac_cv_type_uid_t = no; then
   19311 
   19312 $as_echo "#define uid_t int" >>confdefs.h
   19313 
   19314 
   19315 $as_echo "#define gid_t int" >>confdefs.h
   19316 
   19317 fi
   19318 
   19319 
   19320 
   19321 
   19322 
   19323 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   19324 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
   19325   ac_have_decl=1
   19326 else
   19327   ac_have_decl=0
   19328 fi
   19329 
   19330 cat >>confdefs.h <<_ACEOF
   19331 #define HAVE_DECL_SNPRINTF $ac_have_decl
   19332 _ACEOF
   19333 
   19334 
   19335 
   19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
   19337 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
   19338 if ${ac_cv_header_stdbool_h+:} false; then :
   19339   $as_echo_n "(cached) " >&6
   19340 else
   19341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19342 /* end confdefs.h.  */
   19343 
   19344              #include <stdbool.h>
   19345              #ifndef bool
   19346               "error: bool is not defined"
   19347              #endif
   19348              #ifndef false
   19349               "error: false is not defined"
   19350              #endif
   19351              #if false
   19352               "error: false is not 0"
   19353              #endif
   19354              #ifndef true
   19355               "error: true is not defined"
   19356              #endif
   19357              #if true != 1
   19358               "error: true is not 1"
   19359              #endif
   19360              #ifndef __bool_true_false_are_defined
   19361               "error: __bool_true_false_are_defined is not defined"
   19362              #endif
   19363 
   19364              struct s { _Bool s: 1; _Bool t; } s;
   19365 
   19366              char a[true == 1 ? 1 : -1];
   19367              char b[false == 0 ? 1 : -1];
   19368              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   19369              char d[(bool) 0.5 == true ? 1 : -1];
   19370              /* See body of main program for 'e'.  */
   19371              char f[(_Bool) 0.0 == false ? 1 : -1];
   19372              char g[true];
   19373              char h[sizeof (_Bool)];
   19374              char i[sizeof s.t];
   19375              enum { j = false, k = true, l = false * true, m = true * 256 };
   19376              /* The following fails for
   19377                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
   19378              _Bool n[m];
   19379              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
   19380              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
   19381              /* Catch a bug in an HP-UX C compiler.  See
   19382                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
   19383                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
   19384               */
   19385              _Bool q = true;
   19386              _Bool *pq = &q;
   19387 
   19388 int
   19389 main ()
   19390 {
   19391 
   19392              bool e = &s;
   19393              *pq |= q;
   19394              *pq |= ! q;
   19395              /* Refer to every declared value, to avoid compiler optimizations.  */
   19396              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
   19397                      + !m + !n + !o + !p + !q + !pq);
   19398 
   19399   ;
   19400   return 0;
   19401 }
   19402 _ACEOF
   19403 if ac_fn_c_try_compile "$LINENO"; then :
   19404   ac_cv_header_stdbool_h=yes
   19405 else
   19406   ac_cv_header_stdbool_h=no
   19407 fi
   19408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19409 fi
   19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
   19411 $as_echo "$ac_cv_header_stdbool_h" >&6; }
   19412    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
   19413 if test "x$ac_cv_type__Bool" = xyes; then :
   19414 
   19415 cat >>confdefs.h <<_ACEOF
   19416 #define HAVE__BOOL 1
   19417 _ACEOF
   19418 
   19419 
   19420 fi
   19421 
   19422 
   19423 
   19424     REPLACE_NULL=0;
   19425   HAVE_WCHAR_T=1;
   19426 
   19427 
   19428 
   19429 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
   19430 if test "x$ac_cv_have_decl_strdup" = xyes; then :
   19431   ac_have_decl=1
   19432 else
   19433   ac_have_decl=0
   19434 fi
   19435 
   19436 cat >>confdefs.h <<_ACEOF
   19437 #define HAVE_DECL_STRDUP $ac_have_decl
   19438 _ACEOF
   19439 
   19440 
   19441 
   19442 
   19443 
   19444 
   19445 
   19446 
   19447 
   19448 
   19449 
   19450 
   19451 
   19452 
   19453      if test $gl_cv_have_include_next = yes; then
   19454        gl_cv_next_string_h='<'string.h'>'
   19455      else
   19456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
   19457 $as_echo_n "checking absolute name of <string.h>... " >&6; }
   19458 if ${gl_cv_next_string_h+:} false; then :
   19459   $as_echo_n "(cached) " >&6
   19460 else
   19461 
   19462                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19463 /* end confdefs.h.  */
   19464 #include <string.h>
   19465 
   19466 _ACEOF
   19467                                                                                                                         case "$host_os" in
   19468                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   19469                  *)    gl_absname_cpp="$ac_cpp" ;;
   19470                esac
   19471 
   19472                case "$host_os" in
   19473                  mingw*)
   19474                                                                                                                                      gl_dirsep_regex='[/\\]'
   19475                    ;;
   19476                  *)
   19477                    gl_dirsep_regex='\/'
   19478                    ;;
   19479                esac
   19480                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   19481 
   19482                gl_header_literal_regex=`echo 'string.h' \
   19483                                         | sed -e "$gl_make_literal_regex_sed"`
   19484                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   19485                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   19486                    s|^/[^/]|//&|
   19487                    p
   19488                    q
   19489                  }'
   19490                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   19491                       sed -n "$gl_absolute_header_sed"`'"'
   19492 
   19493 
   19494 fi
   19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
   19496 $as_echo "$gl_cv_next_string_h" >&6; }
   19497      fi
   19498      NEXT_STRING_H=$gl_cv_next_string_h
   19499 
   19500      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   19501        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   19502        gl_next_as_first_directive='<'string.h'>'
   19503      else
   19504        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   19505        gl_next_as_first_directive=$gl_cv_next_string_h
   19506      fi
   19507      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
   19508 
   19509 
   19510 
   19511 
   19512 
   19513 
   19514     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
   19515     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   19516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   19517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   19518 if eval \${$as_gl_Symbol+:} false; then :
   19519   $as_echo_n "(cached) " >&6
   19520 else
   19521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19522 /* end confdefs.h.  */
   19523 #include <string.h>
   19524 
   19525 int
   19526 main ()
   19527 {
   19528 #undef $gl_func
   19529   (void) $gl_func;
   19530   ;
   19531   return 0;
   19532 }
   19533 _ACEOF
   19534 if ac_fn_c_try_compile "$LINENO"; then :
   19535   eval "$as_gl_Symbol=yes"
   19536 else
   19537   eval "$as_gl_Symbol=no"
   19538 fi
   19539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19540 fi
   19541 eval ac_res=\$$as_gl_Symbol
   19542 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   19543 $as_echo "$ac_res" >&6; }
   19544     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   19545   cat >>confdefs.h <<_ACEOF
   19546 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   19547 _ACEOF
   19548 
   19549                      eval ac_cv_have_decl_$gl_func=yes
   19550 fi
   19551       done
   19552 
   19553 
   19554 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
   19555 if test "x$ac_cv_have_decl_strndup" = xyes; then :
   19556   ac_have_decl=1
   19557 else
   19558   ac_have_decl=0
   19559 fi
   19560 
   19561 cat >>confdefs.h <<_ACEOF
   19562 #define HAVE_DECL_STRNDUP $ac_have_decl
   19563 _ACEOF
   19564 
   19565 
   19566 
   19567 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
   19568 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
   19569   ac_have_decl=1
   19570 else
   19571   ac_have_decl=0
   19572 fi
   19573 
   19574 cat >>confdefs.h <<_ACEOF
   19575 #define HAVE_DECL_STRNLEN $ac_have_decl
   19576 _ACEOF
   19577 
   19578 
   19579 
   19580 
   19581 
   19582 
   19583 
   19584 
   19585 
   19586 
   19587   GNULIB_WAITPID=0;
   19588 
   19589 
   19590 
   19591 
   19592   GNULIB_MKTIME=0;
   19593   GNULIB_NANOSLEEP=0;
   19594   GNULIB_STRPTIME=0;
   19595   GNULIB_TIMEGM=0;
   19596   GNULIB_TIME_R=0;
   19597     HAVE_DECL_LOCALTIME_R=1;
   19598   HAVE_NANOSLEEP=1;
   19599   HAVE_STRPTIME=1;
   19600   HAVE_TIMEGM=1;
   19601         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
   19602   REPLACE_MKTIME=GNULIB_PORTCHECK;
   19603   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
   19604   REPLACE_TIMEGM=GNULIB_PORTCHECK;
   19605 
   19606 
   19607 
   19608 
   19609 
   19610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
   19611 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
   19612 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
   19613   $as_echo_n "(cached) " >&6
   19614 else
   19615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19616 /* end confdefs.h.  */
   19617 #include <time.h>
   19618 
   19619 int
   19620 main ()
   19621 {
   19622 static struct timespec x; x.tv_sec = x.tv_nsec;
   19623   ;
   19624   return 0;
   19625 }
   19626 _ACEOF
   19627 if ac_fn_c_try_compile "$LINENO"; then :
   19628   gl_cv_sys_struct_timespec_in_time_h=yes
   19629 else
   19630   gl_cv_sys_struct_timespec_in_time_h=no
   19631 fi
   19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19633 fi
   19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
   19635 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
   19636 
   19637   TIME_H_DEFINES_STRUCT_TIMESPEC=0
   19638   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
   19639   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
   19640   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
   19641     TIME_H_DEFINES_STRUCT_TIMESPEC=1
   19642   else
   19643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
   19644 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
   19645 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
   19646   $as_echo_n "(cached) " >&6
   19647 else
   19648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19649 /* end confdefs.h.  */
   19650 #include <sys/time.h>
   19651 
   19652 int
   19653 main ()
   19654 {
   19655 static struct timespec x; x.tv_sec = x.tv_nsec;
   19656   ;
   19657   return 0;
   19658 }
   19659 _ACEOF
   19660 if ac_fn_c_try_compile "$LINENO"; then :
   19661   gl_cv_sys_struct_timespec_in_sys_time_h=yes
   19662 else
   19663   gl_cv_sys_struct_timespec_in_sys_time_h=no
   19664 fi
   19665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19666 fi
   19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
   19668 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
   19669     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
   19670       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
   19671     else
   19672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
   19673 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
   19674 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
   19675   $as_echo_n "(cached) " >&6
   19676 else
   19677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19678 /* end confdefs.h.  */
   19679 #include <pthread.h>
   19680 
   19681 int
   19682 main ()
   19683 {
   19684 static struct timespec x; x.tv_sec = x.tv_nsec;
   19685   ;
   19686   return 0;
   19687 }
   19688 _ACEOF
   19689 if ac_fn_c_try_compile "$LINENO"; then :
   19690   gl_cv_sys_struct_timespec_in_pthread_h=yes
   19691 else
   19692   gl_cv_sys_struct_timespec_in_pthread_h=no
   19693 fi
   19694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19695 fi
   19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
   19697 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
   19698       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
   19699         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
   19700       fi
   19701     fi
   19702   fi
   19703 
   19704 
   19705 
   19706 
   19707 
   19708 
   19709 
   19710 
   19711 
   19712 
   19713 
   19714 
   19715 
   19716 
   19717 
   19718      if test $gl_cv_have_include_next = yes; then
   19719        gl_cv_next_time_h='<'time.h'>'
   19720      else
   19721        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
   19722 $as_echo_n "checking absolute name of <time.h>... " >&6; }
   19723 if ${gl_cv_next_time_h+:} false; then :
   19724   $as_echo_n "(cached) " >&6
   19725 else
   19726 
   19727                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19728 /* end confdefs.h.  */
   19729 #include <time.h>
   19730 
   19731 _ACEOF
   19732                                                                                                                         case "$host_os" in
   19733                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   19734                  *)    gl_absname_cpp="$ac_cpp" ;;
   19735                esac
   19736 
   19737                case "$host_os" in
   19738                  mingw*)
   19739                                                                                                                                      gl_dirsep_regex='[/\\]'
   19740                    ;;
   19741                  *)
   19742                    gl_dirsep_regex='\/'
   19743                    ;;
   19744                esac
   19745                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   19746 
   19747                gl_header_literal_regex=`echo 'time.h' \
   19748                                         | sed -e "$gl_make_literal_regex_sed"`
   19749                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   19750                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   19751                    s|^/[^/]|//&|
   19752                    p
   19753                    q
   19754                  }'
   19755                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   19756                       sed -n "$gl_absolute_header_sed"`'"'
   19757 
   19758 
   19759 fi
   19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
   19761 $as_echo "$gl_cv_next_time_h" >&6; }
   19762      fi
   19763      NEXT_TIME_H=$gl_cv_next_time_h
   19764 
   19765      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   19766        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   19767        gl_next_as_first_directive='<'time.h'>'
   19768      else
   19769        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   19770        gl_next_as_first_directive=$gl_cv_next_time_h
   19771      fi
   19772      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
   19773 
   19774 
   19775 
   19776 
   19777 
   19778 
   19779 
   19780 
   19781 
   19782 
   19783 
   19784 
   19785 
   19786 
   19787 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
   19788 i\
   19789 0
   19790 q
   19791 '
   19792 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
   19793 i\
   19794 0
   19795 q
   19796 '
   19797 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
   19798 i\
   19799 0
   19800 q
   19801 '
   19802 
   19803 
   19804   if test "$HAVE_LIBUNISTRING" = yes; then
   19805     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
   19806     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
   19807     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
   19808   fi
   19809 
   19810 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
   19811 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
   19812   ac_have_decl=1
   19813 else
   19814   ac_have_decl=0
   19815 fi
   19816 
   19817 cat >>confdefs.h <<_ACEOF
   19818 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
   19819 _ACEOF
   19820 
   19821 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
   19822 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
   19823   ac_have_decl=1
   19824 else
   19825   ac_have_decl=0
   19826 fi
   19827 
   19828 cat >>confdefs.h <<_ACEOF
   19829 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
   19830 _ACEOF
   19831 
   19832 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
   19833 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
   19834   ac_have_decl=1
   19835 else
   19836   ac_have_decl=0
   19837 fi
   19838 
   19839 cat >>confdefs.h <<_ACEOF
   19840 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
   19841 _ACEOF
   19842 
   19843 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
   19844 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
   19845   ac_have_decl=1
   19846 else
   19847   ac_have_decl=0
   19848 fi
   19849 
   19850 cat >>confdefs.h <<_ACEOF
   19851 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
   19852 _ACEOF
   19853 
   19854 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
   19855 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
   19856   ac_have_decl=1
   19857 else
   19858   ac_have_decl=0
   19859 fi
   19860 
   19861 cat >>confdefs.h <<_ACEOF
   19862 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
   19863 _ACEOF
   19864 
   19865 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
   19866 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
   19867   ac_have_decl=1
   19868 else
   19869   ac_have_decl=0
   19870 fi
   19871 
   19872 cat >>confdefs.h <<_ACEOF
   19873 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
   19874 _ACEOF
   19875 
   19876 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
   19877 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
   19878   ac_have_decl=1
   19879 else
   19880   ac_have_decl=0
   19881 fi
   19882 
   19883 cat >>confdefs.h <<_ACEOF
   19884 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
   19885 _ACEOF
   19886 
   19887 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
   19888 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
   19889   ac_have_decl=1
   19890 else
   19891   ac_have_decl=0
   19892 fi
   19893 
   19894 cat >>confdefs.h <<_ACEOF
   19895 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
   19896 _ACEOF
   19897 
   19898 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
   19899 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
   19900   ac_have_decl=1
   19901 else
   19902   ac_have_decl=0
   19903 fi
   19904 
   19905 cat >>confdefs.h <<_ACEOF
   19906 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
   19907 _ACEOF
   19908 
   19909 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
   19910 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
   19911   ac_have_decl=1
   19912 else
   19913   ac_have_decl=0
   19914 fi
   19915 
   19916 cat >>confdefs.h <<_ACEOF
   19917 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
   19918 _ACEOF
   19919 
   19920 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
   19921 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
   19922   ac_have_decl=1
   19923 else
   19924   ac_have_decl=0
   19925 fi
   19926 
   19927 cat >>confdefs.h <<_ACEOF
   19928 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
   19929 _ACEOF
   19930 
   19931 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
   19932 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
   19933   ac_have_decl=1
   19934 else
   19935   ac_have_decl=0
   19936 fi
   19937 
   19938 cat >>confdefs.h <<_ACEOF
   19939 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
   19940 _ACEOF
   19941 
   19942 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
   19943 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
   19944   ac_have_decl=1
   19945 else
   19946   ac_have_decl=0
   19947 fi
   19948 
   19949 cat >>confdefs.h <<_ACEOF
   19950 #define HAVE_DECL_UNSETENV $ac_have_decl
   19951 _ACEOF
   19952 
   19953 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   19954 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
   19955   ac_have_decl=1
   19956 else
   19957   ac_have_decl=0
   19958 fi
   19959 
   19960 cat >>confdefs.h <<_ACEOF
   19961 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   19962 _ACEOF
   19963 
   19964 
   19965             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
   19966 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
   19967 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
   19968   $as_echo_n "(cached) " >&6
   19969 else
   19970   gl_cv_header_wchar_h_correct_inline=yes
   19971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19972 /* end confdefs.h.  */
   19973 
   19974        #define wcstod renamed_wcstod
   19975 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   19976    <wchar.h>.
   19977    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   19978    included before <wchar.h>.  */
   19979 #include <stddef.h>
   19980 #include <stdio.h>
   19981 #include <time.h>
   19982 #include <wchar.h>
   19983 extern int zero (void);
   19984 int main () { return zero(); }
   19985 
   19986 _ACEOF
   19987      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   19988   (eval $ac_compile) 2>&5
   19989   ac_status=$?
   19990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19991   test $ac_status = 0; }; then
   19992        mv conftest.$ac_objext conftest1.$ac_objext
   19993        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19994 /* end confdefs.h.  */
   19995 
   19996          #define wcstod renamed_wcstod
   19997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   19998    <wchar.h>.
   19999    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20000    included before <wchar.h>.  */
   20001 #include <stddef.h>
   20002 #include <stdio.h>
   20003 #include <time.h>
   20004 #include <wchar.h>
   20005 int zero (void) { return 0; }
   20006 
   20007 _ACEOF
   20008        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   20009   (eval $ac_compile) 2>&5
   20010   ac_status=$?
   20011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   20012   test $ac_status = 0; }; then
   20013          mv conftest.$ac_objext conftest2.$ac_objext
   20014          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
   20015            :
   20016          else
   20017            gl_cv_header_wchar_h_correct_inline=no
   20018          fi
   20019        fi
   20020      fi
   20021      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
   20022 
   20023 fi
   20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
   20025 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
   20026   if test $gl_cv_header_wchar_h_correct_inline = no; then
   20027     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
   20028 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
   20029 C99 mode. You have four options:
   20030   - Add the flag -fgnu89-inline to CC and reconfigure, or
   20031   - Fix your include files, using parts of
   20032     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
   20033   - Use a gcc version older than 4.3, or
   20034   - Don't use the flags -std=c99 or -std=gnu99.
   20035 Configuration aborted." "$LINENO" 5
   20036   fi
   20037 
   20038 
   20039 
   20040 
   20041    if false; then
   20042   GL_COND_LIBTOOL_TRUE=
   20043   GL_COND_LIBTOOL_FALSE='#'
   20044 else
   20045   GL_COND_LIBTOOL_TRUE='#'
   20046   GL_COND_LIBTOOL_FALSE=
   20047 fi
   20048 
   20049   gl_cond_libtool=false
   20050   gl_libdeps=
   20051   gl_ltlibdeps=
   20052   gl_m4_base='m4'
   20053 
   20054 
   20055 
   20056 
   20057 
   20058 
   20059 
   20060 
   20061 
   20062   gl_source_base='lib'
   20063 
   20064 
   20065   if test $ac_cv_func_alloca_works = no; then
   20066     :
   20067   fi
   20068 
   20069   # Define an additional variable used in the Makefile substitution.
   20070   if test $ac_cv_working_alloca_h = yes; then
   20071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
   20072 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
   20073 if ${gl_cv_rpl_alloca+:} false; then :
   20074   $as_echo_n "(cached) " >&6
   20075 else
   20076 
   20077       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20078 /* end confdefs.h.  */
   20079 
   20080 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
   20081         Need own alloca
   20082 #endif
   20083 
   20084 _ACEOF
   20085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20086   $EGREP "Need own alloca" >/dev/null 2>&1; then :
   20087   gl_cv_rpl_alloca=yes
   20088 else
   20089   gl_cv_rpl_alloca=no
   20090 fi
   20091 rm -f conftest*
   20092 
   20093 
   20094 fi
   20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
   20096 $as_echo "$gl_cv_rpl_alloca" >&6; }
   20097     if test $gl_cv_rpl_alloca = yes; then
   20098 
   20099 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   20100 
   20101       ALLOCA_H=alloca.h
   20102     else
   20103                   ALLOCA_H=
   20104     fi
   20105   else
   20106     ALLOCA_H=alloca.h
   20107   fi
   20108 
   20109    if test -n "$ALLOCA_H"; then
   20110   GL_GENERATE_ALLOCA_H_TRUE=
   20111   GL_GENERATE_ALLOCA_H_FALSE='#'
   20112 else
   20113   GL_GENERATE_ALLOCA_H_TRUE='#'
   20114   GL_GENERATE_ALLOCA_H_FALSE=
   20115 fi
   20116 
   20117 
   20118 
   20119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
   20120 $as_echo_n "checking whether to enable assertions... " >&6; }
   20121   # Check whether --enable-assert was given.
   20122 if test "${enable_assert+set}" = set; then :
   20123   enableval=$enable_assert; if test "x$enableval" = xno; then :
   20124 
   20125 $as_echo "#define NDEBUG 1" >>confdefs.h
   20126 
   20127 elif test "x$enableval" != xyes; then :
   20128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
   20129 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
   20130       enable_assert=yes
   20131 fi
   20132 else
   20133   enable_assert=yes
   20134 fi
   20135 
   20136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_assert" >&5
   20137 $as_echo "$enable_assert" >&6; }
   20138 
   20139 
   20140 
   20141 
   20142   if test $gl_cv_func_malloc_posix = yes; then
   20143 
   20144 $as_echo "#define HAVE_CALLOC_POSIX 1" >>confdefs.h
   20145 
   20146   else
   20147     REPLACE_CALLOC=1
   20148   fi
   20149 
   20150   if test $REPLACE_CALLOC = 1; then
   20151 
   20152 
   20153 
   20154 
   20155 
   20156 
   20157 
   20158 
   20159   gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
   20160 
   20161   fi
   20162 
   20163 
   20164 
   20165 
   20166 
   20167           GNULIB_CALLOC_POSIX=1
   20168 
   20169 
   20170 
   20171 
   20172 
   20173 $as_echo "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
   20174 
   20175 
   20176 
   20177 
   20178 
   20179 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
   20180 
   20181 
   20182 
   20183 
   20184 
   20185   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   20186     REPLACE_CLOSE=1
   20187   fi
   20188 
   20189 
   20190 
   20191 
   20192 
   20193   if test $ac_cv_header_sys_socket_h != yes; then
   20194                     for ac_header in winsock2.h
   20195 do :
   20196   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   20197 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   20198   cat >>confdefs.h <<_ACEOF
   20199 #define HAVE_WINSOCK2_H 1
   20200 _ACEOF
   20201 
   20202 fi
   20203 
   20204 done
   20205 
   20206   fi
   20207   if test "$ac_cv_header_winsock2_h" = yes; then
   20208     HAVE_WINSOCK2_H=1
   20209     UNISTD_H_HAVE_WINSOCK2_H=1
   20210     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   20211   else
   20212     HAVE_WINSOCK2_H=0
   20213   fi
   20214 
   20215 
   20216     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
   20217                         REPLACE_CLOSE=1
   20218     fi
   20219 
   20220 
   20221 
   20222   if test $REPLACE_CLOSE = 1; then
   20223 
   20224 
   20225 
   20226 
   20227 
   20228 
   20229 
   20230 
   20231   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
   20232 
   20233   fi
   20234 
   20235 
   20236 
   20237 
   20238 
   20239           GNULIB_CLOSE=1
   20240 
   20241 
   20242 
   20243 
   20244 
   20245 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
   20246 
   20247 
   20248 
   20249 
   20250   :
   20251 
   20252 
   20253 
   20254 cat >>confdefs.h <<_ACEOF
   20255 #define GNULIB_CLOSE_STREAM 1
   20256 _ACEOF
   20257 
   20258 
   20259 
   20260   :
   20261 
   20262 
   20263 
   20264           if test "x$datarootdir" = x; then
   20265     datarootdir='${datadir}'
   20266 
   20267   fi
   20268     if test "x$docdir" = x; then
   20269     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   20270 
   20271   fi
   20272     if test "x$htmldir" = x; then
   20273     htmldir='${docdir}'
   20274 
   20275   fi
   20276   if test "x$dvidir" = x; then
   20277     dvidir='${docdir}'
   20278 
   20279   fi
   20280   if test "x$pdfdir" = x; then
   20281     pdfdir='${docdir}'
   20282 
   20283   fi
   20284   if test "x$psdir" = x; then
   20285     psdir='${docdir}'
   20286 
   20287   fi
   20288   if test "x$lispdir" = x; then
   20289     lispdir='${datarootdir}/emacs/site-lisp'
   20290 
   20291   fi
   20292   if test "x$localedir" = x; then
   20293     localedir='${datarootdir}/locale'
   20294 
   20295   fi
   20296 
   20297       pkglibexecdir='${libexecdir}/${PACKAGE}'
   20298 
   20299 
   20300 
   20301 
   20302 
   20303 
   20304 
   20305 cat >>confdefs.h <<_ACEOF
   20306 #define GNULIB_DIRNAME 1
   20307 _ACEOF
   20308 
   20309 
   20310 
   20311 
   20312 
   20313 
   20314 
   20315 
   20316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
   20317 $as_echo_n "checking whether // is distinct from /... " >&6; }
   20318 if ${gl_cv_double_slash_root+:} false; then :
   20319   $as_echo_n "(cached) " >&6
   20320 else
   20321    if test x"$cross_compiling" = xyes ; then
   20322         # When cross-compiling, there is no way to tell whether // is special
   20323         # short of a list of hosts.  However, the only known hosts to date
   20324         # that have a distinct // are Apollo DomainOS (too old to port to),
   20325         # Cygwin, and z/OS.  If anyone knows of another system for which // has
   20326         # special semantics and is distinct from /, please report it to
   20327         # <bug-gnulib (at] gnu.org>.
   20328         case $host in
   20329           *-cygwin | i370-ibm-openedition)
   20330             gl_cv_double_slash_root=yes ;;
   20331           *)
   20332             # Be optimistic and assume that / and // are the same when we
   20333             # don't know.
   20334             gl_cv_double_slash_root='unknown, assuming no' ;;
   20335         esac
   20336       else
   20337         set x `ls -di / // 2>/dev/null`
   20338         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
   20339           gl_cv_double_slash_root=no
   20340         else
   20341           gl_cv_double_slash_root=yes
   20342         fi
   20343       fi
   20344 fi
   20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
   20346 $as_echo "$gl_cv_double_slash_root" >&6; }
   20347   if test "$gl_cv_double_slash_root" = yes; then
   20348 
   20349 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
   20350 
   20351   fi
   20352 
   20353 
   20354 
   20355 
   20356 
   20357 
   20358 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
   20359 
   20360 
   20361   if test $HAVE_DUP2 = 1; then
   20362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
   20363 $as_echo_n "checking whether dup2 works... " >&6; }
   20364 if ${gl_cv_func_dup2_works+:} false; then :
   20365   $as_echo_n "(cached) " >&6
   20366 else
   20367   if test "$cross_compiling" = yes; then :
   20368   case "$host_os" in
   20369            mingw*) # on this platform, dup2 always returns 0 for success
   20370              gl_cv_func_dup2_works="guessing no" ;;
   20371            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
   20372              gl_cv_func_dup2_works="guessing no" ;;
   20373            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
   20374                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
   20375              gl_cv_func_dup2_works="guessing no" ;;
   20376            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
   20377              gl_cv_func_dup2_works="guessing no" ;;
   20378            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
   20379              gl_cv_func_dup2_works="guessing no" ;;
   20380            *) gl_cv_func_dup2_works="guessing yes" ;;
   20381          esac
   20382 else
   20383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20384 /* end confdefs.h.  */
   20385 
   20386          #include <unistd.h>
   20387 #include <fcntl.h>
   20388 #include <errno.h>
   20389 int
   20390 main ()
   20391 {
   20392 int result = 0;
   20393 #ifdef FD_CLOEXEC
   20394             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
   20395               result |= 1;
   20396 #endif
   20397             if (dup2 (1, 1) == 0)
   20398               result |= 2;
   20399 #ifdef FD_CLOEXEC
   20400             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
   20401               result |= 4;
   20402 #endif
   20403             close (0);
   20404             if (dup2 (0, 0) != -1)
   20405               result |= 8;
   20406             /* Many gnulib modules require POSIX conformance of EBADF.  */
   20407             if (dup2 (2, 1000000) == -1 && errno != EBADF)
   20408               result |= 16;
   20409             return result;
   20410 
   20411   ;
   20412   return 0;
   20413 }
   20414 
   20415 _ACEOF
   20416 if ac_fn_c_try_run "$LINENO"; then :
   20417   gl_cv_func_dup2_works=yes
   20418 else
   20419   gl_cv_func_dup2_works=no
   20420 fi
   20421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20422   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20423 fi
   20424 
   20425 
   20426 fi
   20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
   20428 $as_echo "$gl_cv_func_dup2_works" >&6; }
   20429     case "$gl_cv_func_dup2_works" in
   20430       *yes) ;;
   20431       *)
   20432         REPLACE_DUP2=1
   20433         ;;
   20434     esac
   20435   fi
   20436 
   20437 
   20438   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
   20439 
   20440 
   20441 
   20442 
   20443 
   20444 
   20445 
   20446 
   20447   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
   20448 
   20449 
   20450   fi
   20451 
   20452 
   20453 
   20454 
   20455 
   20456           GNULIB_DUP2=1
   20457 
   20458 
   20459 
   20460 
   20461 
   20462 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
   20463 
   20464 
   20465 
   20466 
   20467 
   20468 
   20469 
   20470 
   20471 
   20472           GNULIB_ENVIRON=1
   20473 
   20474 
   20475 
   20476 
   20477 
   20478 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
   20479 
   20480 
   20481 
   20482 
   20483 
   20484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
   20485 $as_echo_n "checking for error_at_line... " >&6; }
   20486 if ${ac_cv_lib_error_at_line+:} false; then :
   20487   $as_echo_n "(cached) " >&6
   20488 else
   20489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20490 /* end confdefs.h.  */
   20491 #include <error.h>
   20492 int
   20493 main ()
   20494 {
   20495 error_at_line (0, 0, "", 0, "an error occurred");
   20496   ;
   20497   return 0;
   20498 }
   20499 _ACEOF
   20500 if ac_fn_c_try_link "$LINENO"; then :
   20501   ac_cv_lib_error_at_line=yes
   20502 else
   20503   ac_cv_lib_error_at_line=no
   20504 fi
   20505 rm -f core conftest.err conftest.$ac_objext \
   20506     conftest$ac_exeext conftest.$ac_ext
   20507 fi
   20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
   20509 $as_echo "$ac_cv_lib_error_at_line" >&6; }
   20510 
   20511   if test $ac_cv_lib_error_at_line = no; then
   20512 
   20513 
   20514 
   20515 
   20516 
   20517 
   20518 
   20519 
   20520   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
   20521 
   20522 
   20523 
   20524   :
   20525 
   20526   fi
   20527 
   20528 
   20529   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
   20530 
   20531 
   20532 
   20533   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
   20534 
   20535 
   20536 
   20537 
   20538 
   20539   :
   20540 
   20541 
   20542 
   20543 
   20544 
   20545 
   20546   if test $ac_cv_func_fcntl = no; then
   20547 
   20548 
   20549 
   20550   if test $ac_cv_func_fcntl = no; then
   20551     HAVE_FCNTL=0
   20552   else
   20553     REPLACE_FCNTL=1
   20554   fi
   20555 
   20556   else
   20557             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
   20558 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
   20559 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
   20560   $as_echo_n "(cached) " >&6
   20561 else
   20562   if test "$cross_compiling" = yes; then :
   20563   # Guess that it works on glibc systems
   20564           case $host_os in #((
   20565             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
   20566             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
   20567           esac
   20568 else
   20569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20570 /* end confdefs.h.  */
   20571 
   20572 #include <fcntl.h>
   20573 #include <errno.h>
   20574 
   20575 int
   20576 main ()
   20577 {
   20578 int result = 0;
   20579       if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
   20580       if (errno != EINVAL) result |= 2;
   20581       return result;
   20582 
   20583   ;
   20584   return 0;
   20585 }
   20586 _ACEOF
   20587 if ac_fn_c_try_run "$LINENO"; then :
   20588   gl_cv_func_fcntl_f_dupfd_works=yes
   20589 else
   20590   gl_cv_func_fcntl_f_dupfd_works=no
   20591 fi
   20592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20593   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20594 fi
   20595 
   20596 fi
   20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
   20598 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
   20599     case $gl_cv_func_fcntl_f_dupfd_works in
   20600       *yes) ;;
   20601       *)
   20602 
   20603 
   20604   if test $ac_cv_func_fcntl = no; then
   20605     HAVE_FCNTL=0
   20606   else
   20607     REPLACE_FCNTL=1
   20608   fi
   20609 
   20610 
   20611 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
   20612  ;;
   20613     esac
   20614 
   20615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
   20616 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
   20617 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
   20618   $as_echo_n "(cached) " >&6
   20619 else
   20620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20621 /* end confdefs.h.  */
   20622 
   20623 #include <fcntl.h>
   20624 #ifndef F_DUPFD_CLOEXEC
   20625 choke me
   20626 #endif
   20627 
   20628 int
   20629 main ()
   20630 {
   20631 
   20632   ;
   20633   return 0;
   20634 }
   20635 _ACEOF
   20636 if ac_fn_c_try_compile "$LINENO"; then :
   20637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20638 /* end confdefs.h.  */
   20639 
   20640 #ifdef __linux__
   20641 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
   20642    it to support the semantics on older kernels that failed with EINVAL.  */
   20643 choke me
   20644 #endif
   20645 
   20646 int
   20647 main ()
   20648 {
   20649 
   20650   ;
   20651   return 0;
   20652 }
   20653 _ACEOF
   20654 if ac_fn_c_try_compile "$LINENO"; then :
   20655   gl_cv_func_fcntl_f_dupfd_cloexec=yes
   20656 else
   20657   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
   20658 fi
   20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20660 else
   20661   gl_cv_func_fcntl_f_dupfd_cloexec=no
   20662 fi
   20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20664 fi
   20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
   20666 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
   20667     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
   20668 
   20669 
   20670 
   20671   if test $ac_cv_func_fcntl = no; then
   20672     HAVE_FCNTL=0
   20673   else
   20674     REPLACE_FCNTL=1
   20675   fi
   20676 
   20677           fi
   20678   fi
   20679 
   20680 
   20681   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
   20682 
   20683 
   20684 
   20685 
   20686 
   20687 
   20688 
   20689 
   20690   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
   20691 
   20692   fi
   20693 
   20694 
   20695 
   20696 
   20697 
   20698           GNULIB_FCNTL=1
   20699 
   20700 
   20701 
   20702 
   20703 
   20704 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
   20705 
   20706 
   20707 
   20708 
   20709 
   20710 
   20711 
   20712 
   20713 
   20714 
   20715 
   20716 
   20717 
   20718 
   20719      if test $gl_cv_have_include_next = yes; then
   20720        gl_cv_next_fcntl_h='<'fcntl.h'>'
   20721      else
   20722        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
   20723 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
   20724 if ${gl_cv_next_fcntl_h+:} false; then :
   20725   $as_echo_n "(cached) " >&6
   20726 else
   20727 
   20728                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20729 /* end confdefs.h.  */
   20730 #include <fcntl.h>
   20731 
   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 
   20748                gl_header_literal_regex=`echo 'fcntl.h' \
   20749                                         | sed -e "$gl_make_literal_regex_sed"`
   20750                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   20751                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   20752                    s|^/[^/]|//&|
   20753                    p
   20754                    q
   20755                  }'
   20756                                                             gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20757                       sed -n "$gl_absolute_header_sed"`'"'
   20758 
   20759 
   20760 fi
   20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
   20762 $as_echo "$gl_cv_next_fcntl_h" >&6; }
   20763      fi
   20764      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
   20765 
   20766      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20767        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20768        gl_next_as_first_directive='<'fcntl.h'>'
   20769      else
   20770        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20771        gl_next_as_first_directive=$gl_cv_next_fcntl_h
   20772      fi
   20773      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
   20774 
   20775 
   20776 
   20777 
   20778 
   20779 
   20780 
   20781 
   20782 
   20783 
   20784     for gl_func in fcntl openat; do
   20785     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   20786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   20787 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   20788 if eval \${$as_gl_Symbol+:} false; then :
   20789   $as_echo_n "(cached) " >&6
   20790 else
   20791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20792 /* end confdefs.h.  */
   20793 #include <fcntl.h>
   20794 
   20795 int
   20796 main ()
   20797 {
   20798 #undef $gl_func
   20799   (void) $gl_func;
   20800   ;
   20801   return 0;
   20802 }
   20803 _ACEOF
   20804 if ac_fn_c_try_compile "$LINENO"; then :
   20805   eval "$as_gl_Symbol=yes"
   20806 else
   20807   eval "$as_gl_Symbol=no"
   20808 fi
   20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20810 fi
   20811 eval ac_res=\$$as_gl_Symbol
   20812 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   20813 $as_echo "$ac_res" >&6; }
   20814     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   20815   cat >>confdefs.h <<_ACEOF
   20816 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   20817 _ACEOF
   20818 
   20819                      eval ac_cv_have_decl_$gl_func=yes
   20820 fi
   20821       done
   20822 
   20823 
   20824 
   20825 
   20826 cat >>confdefs.h <<_ACEOF
   20827 #define GNULIB_FD_SAFER_FLAG 1
   20828 _ACEOF
   20829 
   20830 
   20831 
   20832 
   20833 
   20834   FLOAT_H=
   20835   REPLACE_FLOAT_LDBL=0
   20836   case "$host_os" in
   20837     aix* | beos* | openbsd* | mirbsd* | irix*)
   20838       FLOAT_H=float.h
   20839       ;;
   20840     freebsd*)
   20841       case "$host_cpu" in
   20842         i[34567]86 )
   20843           FLOAT_H=float.h
   20844           ;;
   20845         x86_64 )
   20846           # On x86_64 systems, the C compiler may still be generating
   20847           # 32-bit code.
   20848           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20849 /* end confdefs.h.  */
   20850 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
   20851              yes
   20852              #endif
   20853 _ACEOF
   20854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20855   $EGREP "yes" >/dev/null 2>&1; then :
   20856 
   20857 else
   20858   FLOAT_H=float.h
   20859 fi
   20860 rm -f conftest*
   20861 
   20862           ;;
   20863       esac
   20864       ;;
   20865     linux*)
   20866       case "$host_cpu" in
   20867         powerpc*)
   20868           FLOAT_H=float.h
   20869           ;;
   20870       esac
   20871       ;;
   20872   esac
   20873   case "$host_os" in
   20874     aix* | freebsd* | linux*)
   20875       if test -n "$FLOAT_H"; then
   20876         REPLACE_FLOAT_LDBL=1
   20877       fi
   20878       ;;
   20879   esac
   20880 
   20881     REPLACE_ITOLD=0
   20882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
   20883 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
   20884 if ${gl_cv_func_itold_works+:} false; then :
   20885   $as_echo_n "(cached) " >&6
   20886 else
   20887 
   20888       if test "$cross_compiling" = yes; then :
   20889   case "$host" in
   20890            sparc*-*-linux*)
   20891              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20892 /* end confdefs.h.  */
   20893 #if defined __LP64__ || defined __arch64__
   20894                 yes
   20895                 #endif
   20896 _ACEOF
   20897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20898   $EGREP "yes" >/dev/null 2>&1; then :
   20899   gl_cv_func_itold_works="guessing no"
   20900 else
   20901   gl_cv_func_itold_works="guessing yes"
   20902 fi
   20903 rm -f conftest*
   20904 
   20905              ;;
   20906            *) gl_cv_func_itold_works="guessing yes" ;;
   20907          esac
   20908 
   20909 else
   20910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20911 /* end confdefs.h.  */
   20912 
   20913 int i = -1;
   20914 volatile long double ld;
   20915 int main ()
   20916 {
   20917   ld += i * 1.0L;
   20918   if (ld > 0)
   20919     return 1;
   20920   return 0;
   20921 }
   20922 _ACEOF
   20923 if ac_fn_c_try_run "$LINENO"; then :
   20924   gl_cv_func_itold_works=yes
   20925 else
   20926   gl_cv_func_itold_works=no
   20927 fi
   20928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20929   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20930 fi
   20931 
   20932 
   20933 fi
   20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
   20935 $as_echo "$gl_cv_func_itold_works" >&6; }
   20936   case "$gl_cv_func_itold_works" in
   20937     *no)
   20938       REPLACE_ITOLD=1
   20939                   FLOAT_H=float.h
   20940       ;;
   20941   esac
   20942 
   20943   if test -n "$FLOAT_H"; then
   20944 
   20945 
   20946 
   20947 
   20948 
   20949 
   20950 
   20951 
   20952      if test $gl_cv_have_include_next = yes; then
   20953        gl_cv_next_float_h='<'float.h'>'
   20954      else
   20955        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
   20956 $as_echo_n "checking absolute name of <float.h>... " >&6; }
   20957 if ${gl_cv_next_float_h+:} false; then :
   20958   $as_echo_n "(cached) " >&6
   20959 else
   20960 
   20961                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20962 /* end confdefs.h.  */
   20963 #include <float.h>
   20964 
   20965 _ACEOF
   20966                                                                                                                         case "$host_os" in
   20967                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   20968                  *)    gl_absname_cpp="$ac_cpp" ;;
   20969                esac
   20970 
   20971                case "$host_os" in
   20972                  mingw*)
   20973                                                                                                                                      gl_dirsep_regex='[/\\]'
   20974                    ;;
   20975                  *)
   20976                    gl_dirsep_regex='\/'
   20977                    ;;
   20978                esac
   20979                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   20980 
   20981                gl_header_literal_regex=`echo 'float.h' \
   20982                                         | sed -e "$gl_make_literal_regex_sed"`
   20983                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   20984                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   20985                    s|^/[^/]|//&|
   20986                    p
   20987                    q
   20988                  }'
   20989                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20990                       sed -n "$gl_absolute_header_sed"`'"'
   20991 
   20992 
   20993 fi
   20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
   20995 $as_echo "$gl_cv_next_float_h" >&6; }
   20996      fi
   20997      NEXT_FLOAT_H=$gl_cv_next_float_h
   20998 
   20999      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21000        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21001        gl_next_as_first_directive='<'float.h'>'
   21002      else
   21003        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21004        gl_next_as_first_directive=$gl_cv_next_float_h
   21005      fi
   21006      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
   21007 
   21008 
   21009 
   21010 
   21011   fi
   21012 
   21013    if test -n "$FLOAT_H"; then
   21014   GL_GENERATE_FLOAT_H_TRUE=
   21015   GL_GENERATE_FLOAT_H_FALSE='#'
   21016 else
   21017   GL_GENERATE_FLOAT_H_TRUE='#'
   21018   GL_GENERATE_FLOAT_H_FALSE=
   21019 fi
   21020 
   21021 
   21022 
   21023   if test $REPLACE_FLOAT_LDBL = 1; then
   21024 
   21025 
   21026 
   21027 
   21028 
   21029 
   21030 
   21031 
   21032   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
   21033 
   21034   fi
   21035   if test $REPLACE_ITOLD = 1; then
   21036 
   21037 
   21038 
   21039 
   21040 
   21041 
   21042 
   21043 
   21044   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
   21045 
   21046   fi
   21047 
   21048 
   21049 
   21050   case "$host_os" in
   21051     mingw* | pw*)
   21052             REPLACE_FOPEN=1
   21053             gl_cv_func_fopen_slash="guessing no"
   21054       ;;
   21055     *)
   21056                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
   21057 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
   21058 if ${gl_cv_func_fopen_slash+:} false; then :
   21059   $as_echo_n "(cached) " >&6
   21060 else
   21061 
   21062           if test "$cross_compiling" = yes; then :
   21063 
   21064              case "$host_os" in
   21065                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
   21066                  gl_cv_func_fopen_slash="guessing no" ;;
   21067                *)
   21068                  gl_cv_func_fopen_slash="guessing yes" ;;
   21069              esac
   21070 
   21071 else
   21072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21073 /* end confdefs.h.  */
   21074 
   21075 #include <stddef.h>
   21076 #include <stdio.h>
   21077 int main ()
   21078 {
   21079   return fopen ("conftest.sl/", "w") != NULL;
   21080 }
   21081 _ACEOF
   21082 if ac_fn_c_try_run "$LINENO"; then :
   21083   gl_cv_func_fopen_slash=yes
   21084 else
   21085   gl_cv_func_fopen_slash=no
   21086 fi
   21087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21088   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21089 fi
   21090 
   21091           rm -f conftest.sl
   21092 
   21093 fi
   21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
   21095 $as_echo "$gl_cv_func_fopen_slash" >&6; }
   21096       ;;
   21097   esac
   21098   case "$gl_cv_func_fopen_slash" in
   21099     *no)
   21100 
   21101 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
   21102 
   21103       REPLACE_FOPEN=1
   21104       ;;
   21105   esac
   21106 
   21107   if test $REPLACE_FOPEN = 1; then
   21108 
   21109 
   21110 
   21111 
   21112 
   21113 
   21114 
   21115 
   21116   gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
   21117 
   21118     :
   21119   fi
   21120 
   21121 
   21122 
   21123 
   21124 
   21125           GNULIB_FOPEN=1
   21126 
   21127 
   21128 
   21129 
   21130 
   21131 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
   21132 
   21133 
   21134 
   21135 
   21136 
   21137 cat >>confdefs.h <<_ACEOF
   21138 #define GNULIB_FOPEN_SAFER 1
   21139 _ACEOF
   21140 
   21141 
   21142 
   21143 
   21144 
   21145   fp_headers='
   21146 #     include <stdio.h>
   21147 #     if HAVE_STDIO_EXT_H
   21148 #      include <stdio_ext.h>
   21149 #     endif
   21150 '
   21151   ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
   21152 "
   21153 if test "x$ac_cv_have_decl___fpending" = xyes; then :
   21154   ac_have_decl=1
   21155 else
   21156   ac_have_decl=0
   21157 fi
   21158 
   21159 cat >>confdefs.h <<_ACEOF
   21160 #define HAVE_DECL___FPENDING $ac_have_decl
   21161 _ACEOF
   21162 
   21163 
   21164   if test $ac_cv_func___fpending = no; then
   21165 
   21166 
   21167 
   21168 
   21169 
   21170 
   21171 
   21172 
   21173   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
   21174 
   21175 
   21176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
   21177 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
   21178 if ${ac_cv_sys_pending_output_n_bytes+:} false; then :
   21179   $as_echo_n "(cached) " >&6
   21180 else
   21181 
   21182       for ac_expr in                                                    \
   21183                                                                         \
   21184           '# glibc2'                                                    \
   21185           'fp->_IO_write_ptr - fp->_IO_write_base'                      \
   21186                                                                         \
   21187           '# traditional Unix'                                          \
   21188           'fp->_ptr - fp->_base'                                        \
   21189                                                                         \
   21190           '# BSD'                                                       \
   21191           'fp->_p - fp->_bf._base'                                      \
   21192                                                                         \
   21193           '# SCO, Unixware'                                             \
   21194           '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
   21195                                                                         \
   21196           '# QNX'                                                       \
   21197           '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
   21198                                                                         \
   21199           '# old glibc?'                                                \
   21200           'fp->__bufp - fp->__buffer'                                   \
   21201                                                                         \
   21202           '# old glibc iostream?'                                       \
   21203           'fp->_pptr - fp->_pbase'                                      \
   21204                                                                         \
   21205           '# emx+gcc'                                                   \
   21206           'fp->_ptr - fp->_buffer'                                      \
   21207                                                                         \
   21208           '# Minix'                                                     \
   21209           'fp->_ptr - fp->_buf'                                         \
   21210                                                                         \
   21211           '# Plan9'                                                     \
   21212           'fp->wp - fp->buf'                                            \
   21213                                                                         \
   21214           '# VMS'                                                       \
   21215           '(*fp)->_ptr - (*fp)->_base'                                  \
   21216                                                                         \
   21217           '# e.g., DGUX R4.11; the info is not available'               \
   21218           1                                                             \
   21219           ; do
   21220 
   21221         # Skip each embedded comment.
   21222         case "$ac_expr" in '#'*) continue;; esac
   21223 
   21224         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21225 /* end confdefs.h.  */
   21226 #include <stdio.h>
   21227 int
   21228 main ()
   21229 {
   21230 FILE *fp = stdin; (void) ($ac_expr);
   21231   ;
   21232   return 0;
   21233 }
   21234 _ACEOF
   21235 if ac_fn_c_try_compile "$LINENO"; then :
   21236   fp_done=yes
   21237 
   21238 fi
   21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21240         test "$fp_done" = yes && break
   21241       done
   21242 
   21243       ac_cv_sys_pending_output_n_bytes=$ac_expr
   21244 
   21245 
   21246 fi
   21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
   21248 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
   21249 
   21250 cat >>confdefs.h <<_ACEOF
   21251 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
   21252 _ACEOF
   21253 
   21254 
   21255   fi
   21256 
   21257 
   21258 
   21259 
   21260 
   21261 
   21262 
   21263 
   21264 
   21265 
   21266 
   21267 
   21268 
   21269 
   21270 
   21271   gl_cv_func_fprintf_posix=no
   21272   case "$gl_cv_func_printf_sizes_c99" in
   21273     *yes)
   21274       case "$gl_cv_func_printf_long_double" in
   21275         *yes)
   21276           case "$gl_cv_func_printf_infinite" in
   21277             *yes)
   21278               case "$gl_cv_func_printf_infinite_long_double" in
   21279                 *yes)
   21280                   case "$gl_cv_func_printf_directive_a" in
   21281                     *yes)
   21282                       case "$gl_cv_func_printf_directive_f" in
   21283                         *yes)
   21284                           case "$gl_cv_func_printf_directive_n" in
   21285                             *yes)
   21286                               case "$gl_cv_func_printf_directive_ls" in
   21287                                 *yes)
   21288                                   case "$gl_cv_func_printf_positions" in
   21289                                     *yes)
   21290                                       case "$gl_cv_func_printf_flag_grouping" in
   21291                                         *yes)
   21292                                           case "$gl_cv_func_printf_flag_leftadjust" in
   21293                                             *yes)
   21294                                               case "$gl_cv_func_printf_flag_zero" in
   21295                                                 *yes)
   21296                                                   case "$gl_cv_func_printf_precision" in
   21297                                                     *yes)
   21298                                                       case "$gl_cv_func_printf_enomem" in
   21299                                                         *yes)
   21300                                                           # fprintf exists and is
   21301                                                           # already POSIX compliant.
   21302                                                           gl_cv_func_fprintf_posix=yes
   21303                                                           ;;
   21304                                                       esac
   21305                                                       ;;
   21306                                                   esac
   21307                                                   ;;
   21308                                               esac
   21309                                               ;;
   21310                                           esac
   21311                                           ;;
   21312                                       esac
   21313                                       ;;
   21314                                   esac
   21315                                   ;;
   21316                               esac
   21317                               ;;
   21318                           esac
   21319                           ;;
   21320                       esac
   21321                       ;;
   21322                   esac
   21323                   ;;
   21324               esac
   21325               ;;
   21326           esac
   21327           ;;
   21328       esac
   21329       ;;
   21330   esac
   21331   if test $gl_cv_func_fprintf_posix = no; then
   21332 
   21333 
   21334 
   21335   case "$gl_cv_func_printf_infinite" in
   21336     *yes)
   21337       ;;
   21338     *)
   21339 
   21340 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   21341 
   21342       ;;
   21343   esac
   21344 
   21345 
   21346 
   21347 
   21348   case "$gl_cv_func_printf_long_double" in
   21349     *yes)
   21350       case "$gl_cv_func_printf_infinite_long_double" in
   21351         *yes)
   21352           ;;
   21353         *)
   21354 
   21355 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   21356 
   21357           ;;
   21358       esac
   21359       ;;
   21360   esac
   21361 
   21362 
   21363 
   21364   case "$gl_cv_func_printf_directive_a" in
   21365     *yes)
   21366       ;;
   21367     *)
   21368 
   21369 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   21370 
   21371       for ac_func in nl_langinfo
   21372 do :
   21373   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   21374 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   21375   cat >>confdefs.h <<_ACEOF
   21376 #define HAVE_NL_LANGINFO 1
   21377 _ACEOF
   21378 
   21379 fi
   21380 done
   21381 
   21382       ;;
   21383   esac
   21384 
   21385 
   21386 
   21387   case "$gl_cv_func_printf_directive_f" in
   21388     *yes)
   21389       ;;
   21390     *)
   21391 
   21392 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   21393 
   21394       ;;
   21395   esac
   21396 
   21397 
   21398 
   21399   case "$gl_cv_func_printf_directive_ls" in
   21400     *yes)
   21401       ;;
   21402     *)
   21403 
   21404 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   21405 
   21406       ;;
   21407   esac
   21408 
   21409 
   21410 
   21411   case "$gl_cv_func_printf_flag_grouping" in
   21412     *yes)
   21413       ;;
   21414     *)
   21415 
   21416 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   21417 
   21418       ;;
   21419   esac
   21420 
   21421 
   21422 
   21423   case "$gl_cv_func_printf_flag_leftadjust" in
   21424     *yes)
   21425       ;;
   21426     *)
   21427 
   21428 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   21429 
   21430       ;;
   21431   esac
   21432 
   21433 
   21434 
   21435   case "$gl_cv_func_printf_flag_zero" in
   21436     *yes)
   21437       ;;
   21438     *)
   21439 
   21440 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   21441 
   21442       ;;
   21443   esac
   21444 
   21445 
   21446 
   21447   case "$gl_cv_func_printf_precision" in
   21448     *yes)
   21449       ;;
   21450     *)
   21451 
   21452 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   21453 
   21454 
   21455 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   21456 
   21457 
   21458 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   21459 
   21460       ;;
   21461   esac
   21462 
   21463 
   21464 
   21465   case "$gl_cv_func_printf_enomem" in
   21466     *yes)
   21467       ;;
   21468     *)
   21469 
   21470 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   21471 
   21472 
   21473 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   21474 
   21475 
   21476 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   21477 
   21478       ;;
   21479   esac
   21480 
   21481 
   21482 
   21483 
   21484 
   21485 
   21486 
   21487 
   21488 
   21489 
   21490 
   21491   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   21492 
   21493 
   21494 
   21495 
   21496 
   21497 
   21498 
   21499 
   21500 
   21501   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   21502 
   21503 
   21504 
   21505 
   21506 
   21507 
   21508 
   21509 
   21510 
   21511   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   21512 
   21513 
   21514 
   21515 
   21516 
   21517 
   21518 
   21519 
   21520 
   21521   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   21522 
   21523   if test $ac_cv_func_vasnprintf = yes; then
   21524 
   21525 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   21526 
   21527   fi
   21528 
   21529 
   21530 
   21531 
   21532 
   21533 
   21534 
   21535 
   21536 
   21537 
   21538 
   21539   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   21540 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   21541 
   21542 else
   21543 
   21544 $as_echo "#define ptrdiff_t long" >>confdefs.h
   21545 
   21546 
   21547 fi
   21548 
   21549 
   21550 
   21551 
   21552 
   21553 
   21554 
   21555 
   21556 
   21557 
   21558 
   21559 
   21560 
   21561 
   21562 
   21563 
   21564 
   21565   gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
   21566 
   21567   REPLACE_FPRINTF=1
   21568 
   21569 $as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
   21570 
   21571   :
   21572 
   21573   fi
   21574 
   21575 
   21576 
   21577 
   21578 
   21579 
   21580           GNULIB_FPRINTF_POSIX=1
   21581 
   21582 
   21583 
   21584 
   21585 
   21586 $as_echo "#define GNULIB_TEST_FPRINTF_POSIX 1" >>confdefs.h
   21587 
   21588 
   21589 
   21590 
   21591 
   21592 
   21593   if test $gl_cv_func_frexp_no_libm = yes; then
   21594 
   21595 
   21596 
   21597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
   21598 $as_echo_n "checking whether frexp works... " >&6; }
   21599 if ${gl_cv_func_frexp_works+:} false; then :
   21600   $as_echo_n "(cached) " >&6
   21601 else
   21602 
   21603       if test "$cross_compiling" = yes; then :
   21604   case "$host_os" in
   21605            netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
   21606            *)                        gl_cv_func_frexp_works="guessing yes";;
   21607          esac
   21608 
   21609 else
   21610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21611 /* end confdefs.h.  */
   21612 
   21613 #include <float.h>
   21614 #include <math.h>
   21615 #include <string.h>
   21616 #if HAVE_ALARM
   21617 # include <unistd.h>
   21618 #endif
   21619 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
   21620    ICC 10.0 has a bug when optimizing the expression -zero.
   21621    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
   21622    to PowerPC on Mac OS X 10.5.  */
   21623 #if defined __hpux || defined __sgi || defined __ICC
   21624 static double
   21625 compute_minus_zero (void)
   21626 {
   21627   return -DBL_MIN * DBL_MIN;
   21628 }
   21629 # define minus_zero compute_minus_zero ()
   21630 #else
   21631 double minus_zero = -0.0;
   21632 #endif
   21633 int main()
   21634 {
   21635   int result = 0;
   21636   int i;
   21637   volatile double x;
   21638   double zero = 0.0;
   21639 #if HAVE_ALARM
   21640   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
   21641      number.  Let the test fail in this case.  */
   21642   alarm (5);
   21643 #endif
   21644   /* Test on denormalized numbers.  */
   21645   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
   21646     ;
   21647   if (x > 0.0)
   21648     {
   21649       int exp;
   21650       double y = frexp (x, &exp);
   21651       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
   21652          On NetBSD: y = 0.75. Correct: y = 0.5.  */
   21653       if (y != 0.5)
   21654         result |= 1;
   21655     }
   21656   /* Test on infinite numbers.  */
   21657   x = 1.0 / zero;
   21658   {
   21659     int exp;
   21660     double y = frexp (x, &exp);
   21661     if (y != x)
   21662       result |= 2;
   21663   }
   21664   /* Test on negative zero.  */
   21665   x = minus_zero;
   21666   {
   21667     int exp;
   21668     double y = frexp (x, &exp);
   21669     if (memcmp (&y, &x, sizeof x))
   21670       result |= 4;
   21671   }
   21672   return result;
   21673 }
   21674 _ACEOF
   21675 if ac_fn_c_try_run "$LINENO"; then :
   21676   gl_cv_func_frexp_works=yes
   21677 else
   21678   gl_cv_func_frexp_works=no
   21679 fi
   21680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21681   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21682 fi
   21683 
   21684 
   21685 fi
   21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
   21687 $as_echo "$gl_cv_func_frexp_works" >&6; }
   21688 
   21689     case "$gl_cv_func_frexp_works" in
   21690       *yes) gl_func_frexp_no_libm=yes ;;
   21691       *)    gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
   21692     esac
   21693   else
   21694     gl_func_frexp_no_libm=no
   21695         REPLACE_FREXP=1
   21696   fi
   21697   if test $gl_func_frexp_no_libm = yes; then
   21698 
   21699 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
   21700 
   21701   fi
   21702 
   21703   if test $gl_func_frexp_no_libm != yes; then
   21704 
   21705 
   21706 
   21707 
   21708 
   21709 
   21710 
   21711 
   21712   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
   21713 
   21714   fi
   21715 
   21716 
   21717 
   21718 
   21719 
   21720           GNULIB_FREXP=1
   21721 
   21722 
   21723 
   21724 
   21725 
   21726 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
   21727 
   21728 
   21729 
   21730 
   21731 
   21732 
   21733       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
   21734 "
   21735 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
   21736 
   21737 else
   21738   HAVE_DECL_FREXPL=0
   21739 fi
   21740 
   21741   if test $HAVE_DECL_FREXPL = 1; then
   21742 
   21743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
   21744 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
   21745 if ${gl_cv_func_frexpl_no_libm+:} false; then :
   21746   $as_echo_n "(cached) " >&6
   21747 else
   21748 
   21749       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21750 /* end confdefs.h.  */
   21751 #include <math.h>
   21752              long double x;
   21753 int
   21754 main ()
   21755 {
   21756 int e; return frexpl (x, &e) > 0;
   21757   ;
   21758   return 0;
   21759 }
   21760 _ACEOF
   21761 if ac_fn_c_try_link "$LINENO"; then :
   21762   gl_cv_func_frexpl_no_libm=yes
   21763 else
   21764   gl_cv_func_frexpl_no_libm=no
   21765 fi
   21766 rm -f core conftest.err conftest.$ac_objext \
   21767     conftest$ac_exeext conftest.$ac_ext
   21768 
   21769 fi
   21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
   21771 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
   21772 
   21773     if test $gl_cv_func_frexpl_no_libm = yes; then
   21774 
   21775 
   21776      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
   21777 $as_echo_n "checking whether frexpl works... " >&6; }
   21778 if ${gl_cv_func_frexpl_works+:} false; then :
   21779   $as_echo_n "(cached) " >&6
   21780 else
   21781 
   21782       if test "$cross_compiling" = yes; then :
   21783 
   21784          case "$host_os" in
   21785            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
   21786               gl_cv_func_frexpl_works="guessing no";;
   21787            *) gl_cv_func_frexpl_works="guessing yes";;
   21788          esac
   21789 
   21790 else
   21791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21792 /* end confdefs.h.  */
   21793 
   21794 #include <float.h>
   21795 #include <math.h>
   21796 /* Override the values of <float.h>, like done in float.in.h.  */
   21797 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
   21798 # undef LDBL_MIN_EXP
   21799 # define LDBL_MIN_EXP    (-16381)
   21800 #endif
   21801 #if defined __i386__ && defined __FreeBSD__
   21802 # undef LDBL_MIN_EXP
   21803 # define LDBL_MIN_EXP    (-16381)
   21804 #endif
   21805 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
   21806 # undef LDBL_MIN_EXP
   21807 # define LDBL_MIN_EXP DBL_MIN_EXP
   21808 #endif
   21809 #if defined __sgi && (LDBL_MANT_DIG >= 106)
   21810 # if defined __GNUC__
   21811 #  undef LDBL_MIN_EXP
   21812 #  define LDBL_MIN_EXP DBL_MIN_EXP
   21813 # endif
   21814 #endif
   21815 extern
   21816 #ifdef __cplusplus
   21817 "C"
   21818 #endif
   21819 long double frexpl (long double, int *);
   21820 int main()
   21821 {
   21822   int result = 0;
   21823   volatile long double x;
   21824   /* Test on finite numbers that fails on AIX 5.1.  */
   21825   x = 16.0L;
   21826   {
   21827     int exp = -9999;
   21828     frexpl (x, &exp);
   21829     if (exp != 5)
   21830       result |= 1;
   21831   }
   21832   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
   21833      function returns an invalid (incorrectly normalized) value: it returns
   21834                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
   21835      but the correct result is
   21836           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
   21837   x = 1.01L;
   21838   {
   21839     int exp = -9999;
   21840     long double y = frexpl (x, &exp);
   21841     if (!(exp == 1 && y == 0.505L))
   21842       result |= 2;
   21843   }
   21844   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
   21845      LDBL_MAX_EXP = 16384.
   21846      In the loop end test, we test x against Infinity, rather than comparing
   21847      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
   21848   {
   21849     int i;
   21850     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
   21851       {
   21852         int exp = -9999;
   21853         frexpl (x, &exp);
   21854         if (exp != i)
   21855           {
   21856             result |= 4;
   21857             break;
   21858           }
   21859       }
   21860   }
   21861   /* Test on denormalized numbers.  */
   21862   {
   21863     int i;
   21864     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
   21865       ;
   21866     if (x > 0.0L)
   21867       {
   21868         int exp;
   21869         long double y = frexpl (x, &exp);
   21870         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
   21871            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
   21872         if (exp != LDBL_MIN_EXP - 1)
   21873           result |= 8;
   21874       }
   21875   }
   21876   /* Test on infinite numbers.  */
   21877   x = 1.0L / 0.0L;
   21878   {
   21879     int exp;
   21880     long double y = frexpl (x, &exp);
   21881     if (y != x)
   21882       result |= 16;
   21883   }
   21884   return result;
   21885 }
   21886 _ACEOF
   21887 if ac_fn_c_try_run "$LINENO"; then :
   21888   gl_cv_func_frexpl_works=yes
   21889 else
   21890   gl_cv_func_frexpl_works=no
   21891 fi
   21892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21893   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21894 fi
   21895 
   21896 
   21897 fi
   21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
   21899 $as_echo "$gl_cv_func_frexpl_works" >&6; }
   21900 
   21901       case "$gl_cv_func_frexpl_works" in
   21902         *yes) gl_func_frexpl_no_libm=yes ;;
   21903         *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
   21904       esac
   21905     else
   21906       gl_func_frexpl_no_libm=no
   21907             REPLACE_FREXPL=1
   21908     fi
   21909     if test $gl_func_frexpl_no_libm = yes; then
   21910 
   21911 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
   21912 
   21913     fi
   21914   fi
   21915 
   21916   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
   21917 
   21918 
   21919 
   21920 
   21921 
   21922 
   21923 
   21924 
   21925   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
   21926 
   21927   fi
   21928 
   21929 
   21930 
   21931 
   21932 
   21933           GNULIB_FREXPL=1
   21934 
   21935 
   21936 
   21937 
   21938 
   21939 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
   21940 
   21941 
   21942 
   21943 
   21944 
   21945 
   21946   if test $ac_cv_func___fseterr = no; then
   21947 
   21948 
   21949 
   21950 
   21951 
   21952 
   21953 
   21954 
   21955   gl_LIBOBJS="$gl_LIBOBJS fseterr.$ac_objext"
   21956 
   21957   fi
   21958 
   21959 
   21960 
   21961 
   21962   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   21963     REPLACE_FSTAT=1
   21964   fi
   21965 
   21966 
   21967   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
   21968     REPLACE_FSTAT=1
   21969   fi
   21970 
   21971 
   21972 
   21973   if test $REPLACE_FSTAT = 1; then
   21974 
   21975 
   21976 
   21977 
   21978 
   21979 
   21980 
   21981 
   21982   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
   21983 
   21984     :
   21985   fi
   21986 
   21987 
   21988 
   21989 
   21990 
   21991           GNULIB_FSTAT=1
   21992 
   21993 
   21994 
   21995 
   21996 
   21997 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
   21998 
   21999 
   22000 
   22001 
   22002 
   22003 
   22004 
   22005 
   22006 
   22007 
   22008 
   22009   if test $ac_cv_func_getdelim = yes; then
   22010     HAVE_GETDELIM=1
   22011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
   22012 $as_echo_n "checking for working getdelim function... " >&6; }
   22013 if ${gl_cv_func_working_getdelim+:} false; then :
   22014   $as_echo_n "(cached) " >&6
   22015 else
   22016   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
   22017     if test "$cross_compiling" = yes; then :
   22018         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22019 /* end confdefs.h.  */
   22020 
   22021 #include <features.h>
   22022 #ifdef __GNU_LIBRARY__
   22023  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
   22024   Lucky GNU user
   22025  #endif
   22026 #endif
   22027 
   22028 _ACEOF
   22029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22030   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
   22031   gl_cv_func_working_getdelim="guessing yes"
   22032 else
   22033   gl_cv_func_working_getdelim="guessing no"
   22034 fi
   22035 rm -f conftest*
   22036 
   22037 
   22038 else
   22039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22040 /* end confdefs.h.  */
   22041 
   22042 #    include <stdio.h>
   22043 #    include <stdlib.h>
   22044 #    include <string.h>
   22045     int main ()
   22046     {
   22047       FILE *in = fopen ("./conftest.data", "r");
   22048       if (!in)
   22049         return 1;
   22050       {
   22051         /* Test result for a NULL buffer and a zero size.
   22052            Based on a test program from Karl Heuer.  */
   22053         char *line = NULL;
   22054         size_t siz = 0;
   22055         int len = getdelim (&line, &siz, '\n', in);
   22056         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
   22057           return 2;
   22058       }
   22059       {
   22060         /* Test result for a NULL buffer and a non-zero size.
   22061            This crashes on FreeBSD 8.0.  */
   22062         char *line = NULL;
   22063         size_t siz = (size_t)(~0) / 4;
   22064         if (getdelim (&line, &siz, '\n', in) == -1)
   22065           return 3;
   22066       }
   22067       return 0;
   22068     }
   22069 
   22070 _ACEOF
   22071 if ac_fn_c_try_run "$LINENO"; then :
   22072   gl_cv_func_working_getdelim=yes
   22073 else
   22074   gl_cv_func_working_getdelim=no
   22075 fi
   22076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22077   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22078 fi
   22079 
   22080 fi
   22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
   22082 $as_echo "$gl_cv_func_working_getdelim" >&6; }
   22083     case "$gl_cv_func_working_getdelim" in
   22084       *no)
   22085         REPLACE_GETDELIM=1
   22086         ;;
   22087     esac
   22088   else
   22089     HAVE_GETDELIM=0
   22090   fi
   22091 
   22092   if test $ac_cv_have_decl_getdelim = no; then
   22093     HAVE_DECL_GETDELIM=0
   22094   fi
   22095 
   22096   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
   22097 
   22098 
   22099 
   22100 
   22101 
   22102 
   22103 
   22104 
   22105   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
   22106 
   22107 
   22108   for ac_func in flockfile funlockfile
   22109 do :
   22110   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22111 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   22112 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   22113   cat >>confdefs.h <<_ACEOF
   22114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22115 _ACEOF
   22116 
   22117 fi
   22118 done
   22119 
   22120   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
   22121 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
   22122   ac_have_decl=1
   22123 else
   22124   ac_have_decl=0
   22125 fi
   22126 
   22127 cat >>confdefs.h <<_ACEOF
   22128 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
   22129 _ACEOF
   22130 
   22131 
   22132   fi
   22133 
   22134 
   22135 
   22136 
   22137 
   22138           GNULIB_GETDELIM=1
   22139 
   22140 
   22141 
   22142 
   22143 
   22144 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
   22145 
   22146 
   22147 
   22148 
   22149 
   22150 
   22151   if test $ac_cv_func_getdtablesize != yes; then
   22152     HAVE_GETDTABLESIZE=0
   22153   fi
   22154 
   22155   if test $HAVE_GETDTABLESIZE = 0; then
   22156 
   22157 
   22158 
   22159 
   22160 
   22161 
   22162 
   22163 
   22164   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
   22165 
   22166     :
   22167   fi
   22168 
   22169 
   22170 
   22171 
   22172 
   22173           GNULIB_GETDTABLESIZE=1
   22174 
   22175 
   22176 
   22177 
   22178 
   22179 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
   22180 
   22181 
   22182 
   22183 
   22184 
   22185 
   22186 
   22187 
   22188 
   22189 
   22190   gl_getline_needs_run_time_check=no
   22191   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
   22192 if test "x$ac_cv_func_getline" = xyes; then :
   22193                    gl_getline_needs_run_time_check=yes
   22194 else
   22195   am_cv_func_working_getline=no
   22196 fi
   22197 
   22198   if test $gl_getline_needs_run_time_check = yes; then
   22199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
   22200 $as_echo_n "checking for working getline function... " >&6; }
   22201 if ${am_cv_func_working_getline+:} false; then :
   22202   $as_echo_n "(cached) " >&6
   22203 else
   22204   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
   22205     if test "$cross_compiling" = yes; then :
   22206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22207 /* end confdefs.h.  */
   22208 
   22209 #include <features.h>
   22210 #ifdef __GNU_LIBRARY__
   22211  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
   22212   Lucky GNU user
   22213  #endif
   22214 #endif
   22215 
   22216 _ACEOF
   22217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22218   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
   22219   am_cv_func_working_getline="guessing yes"
   22220 else
   22221   am_cv_func_working_getline="guessing no"
   22222 fi
   22223 rm -f conftest*
   22224 
   22225 
   22226 else
   22227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22228 /* end confdefs.h.  */
   22229 
   22230 #    include <stdio.h>
   22231 #    include <stdlib.h>
   22232 #    include <string.h>
   22233     int main ()
   22234     {
   22235       FILE *in = fopen ("./conftest.data", "r");
   22236       if (!in)
   22237         return 1;
   22238       {
   22239         /* Test result for a NULL buffer and a zero size.
   22240            Based on a test program from Karl Heuer.  */
   22241         char *line = NULL;
   22242         size_t siz = 0;
   22243         int len = getline (&line, &siz, in);
   22244         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
   22245           return 2;
   22246       }
   22247       {
   22248         /* Test result for a NULL buffer and a non-zero size.
   22249            This crashes on FreeBSD 8.0.  */
   22250         char *line = NULL;
   22251         size_t siz = (size_t)(~0) / 4;
   22252         if (getline (&line, &siz, in) == -1)
   22253           return 3;
   22254       }
   22255       return 0;
   22256     }
   22257 
   22258 _ACEOF
   22259 if ac_fn_c_try_run "$LINENO"; then :
   22260   am_cv_func_working_getline=yes
   22261 else
   22262   am_cv_func_working_getline=no
   22263 fi
   22264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22265   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22266 fi
   22267 
   22268 fi
   22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
   22270 $as_echo "$am_cv_func_working_getline" >&6; }
   22271   fi
   22272 
   22273   if test $ac_cv_have_decl_getline = no; then
   22274     HAVE_DECL_GETLINE=0
   22275   fi
   22276 
   22277   case "$am_cv_func_working_getline" in
   22278     *no)
   22279                         REPLACE_GETLINE=1
   22280       ;;
   22281   esac
   22282 
   22283   if test $REPLACE_GETLINE = 1; then
   22284 
   22285 
   22286 
   22287 
   22288 
   22289 
   22290 
   22291 
   22292   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
   22293 
   22294 
   22295   :
   22296 
   22297   fi
   22298 
   22299 
   22300 
   22301 
   22302 
   22303           GNULIB_GETLINE=1
   22304 
   22305 
   22306 
   22307 
   22308 
   22309 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
   22310 
   22311 
   22312 
   22313 
   22314 
   22315 
   22316 
   22317 
   22318   if test $REPLACE_GETOPT = 1; then
   22319 
   22320 
   22321 
   22322 
   22323 
   22324 
   22325 
   22326 
   22327   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
   22328 
   22329 
   22330 
   22331 
   22332 
   22333 
   22334 
   22335 
   22336 
   22337   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
   22338 
   22339 
   22340 
   22341 
   22342         GNULIB_GL_UNISTD_H_GETOPT=1
   22343   fi
   22344 
   22345 
   22346 
   22347 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
   22348 
   22349 
   22350 
   22351 
   22352 
   22353 
   22354 
   22355     REPLACE_GETOPT=0
   22356     if test -n "$gl_replace_getopt"; then
   22357       REPLACE_GETOPT=1
   22358     fi
   22359 
   22360   if test $REPLACE_GETOPT = 1; then
   22361 
   22362   GETOPT_H=getopt.h
   22363 
   22364 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
   22365 
   22366 
   22367 
   22368   fi
   22369 
   22370   if test $REPLACE_GETOPT = 1; then
   22371 
   22372 
   22373 
   22374 
   22375 
   22376 
   22377 
   22378 
   22379   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
   22380 
   22381 
   22382 
   22383 
   22384 
   22385 
   22386 
   22387 
   22388 
   22389   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
   22390 
   22391 
   22392 
   22393 
   22394         GNULIB_GL_UNISTD_H_GETOPT=1
   22395   fi
   22396 
   22397 
   22398 
   22399 
   22400   # Autoconf 2.61a.99 and earlier don't support linking a file only
   22401   # in VPATH builds.  But since GNUmakefile is for maintainer use
   22402   # only, it does not matter if we skip the link with older autoconf.
   22403   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
   22404   # builds, so use a shell variable to bypass this.
   22405   GNUmakefile=GNUmakefile
   22406   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
   22407 
   22408 
   22409 
   22410 
   22411 
   22412 
   22413   PRIPTR_PREFIX=
   22414   if test -n "$STDINT_H"; then
   22415         PRIPTR_PREFIX='"l"'
   22416   else
   22417         for glpfx in '' l ll I64; do
   22418       case $glpfx in
   22419         '')  gltype1='int';;
   22420         l)   gltype1='long int';;
   22421         ll)  gltype1='long long int';;
   22422         I64) gltype1='__int64';;
   22423       esac
   22424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22425 /* end confdefs.h.  */
   22426 #include <stdint.h>
   22427            extern intptr_t foo;
   22428            extern $gltype1 foo;
   22429 int
   22430 main ()
   22431 {
   22432 
   22433   ;
   22434   return 0;
   22435 }
   22436 _ACEOF
   22437 if ac_fn_c_try_compile "$LINENO"; then :
   22438   PRIPTR_PREFIX='"'$glpfx'"'
   22439 fi
   22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22441       test -n "$PRIPTR_PREFIX" && break
   22442     done
   22443   fi
   22444 
   22445 
   22446 
   22447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
   22448 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
   22449 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
   22450   $as_echo_n "(cached) " >&6
   22451 else
   22452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22453 /* end confdefs.h.  */
   22454 /* Work also in C++ mode.  */
   22455             #define __STDC_LIMIT_MACROS 1
   22456 
   22457             /* Work if build is not clean.  */
   22458             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   22459 
   22460             #include <limits.h>
   22461             #if HAVE_STDINT_H
   22462              #include <stdint.h>
   22463             #endif
   22464 
   22465             #if defined INT32_MAX && defined INTMAX_MAX
   22466              #define CONDITION (INT32_MAX < INTMAX_MAX)
   22467             #elif HAVE_LONG_LONG_INT
   22468              #define CONDITION (sizeof (int) < sizeof (long long int))
   22469             #else
   22470              #define CONDITION 0
   22471             #endif
   22472             int test[CONDITION ? 1 : -1];
   22473 int
   22474 main ()
   22475 {
   22476 
   22477   ;
   22478   return 0;
   22479 }
   22480 _ACEOF
   22481 if ac_fn_c_try_compile "$LINENO"; then :
   22482   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
   22483 else
   22484   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
   22485 fi
   22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22487 fi
   22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
   22489 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
   22490   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
   22491     INT32_MAX_LT_INTMAX_MAX=1;
   22492   else
   22493     INT32_MAX_LT_INTMAX_MAX=0;
   22494   fi
   22495 
   22496 
   22497   if test $APPLE_UNIVERSAL_BUILD = 0; then
   22498 
   22499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
   22500 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
   22501 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
   22502   $as_echo_n "(cached) " >&6
   22503 else
   22504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22505 /* end confdefs.h.  */
   22506 /* Work also in C++ mode.  */
   22507             #define __STDC_LIMIT_MACROS 1
   22508 
   22509             /* Work if build is not clean.  */
   22510             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   22511 
   22512             #include <limits.h>
   22513             #if HAVE_STDINT_H
   22514              #include <stdint.h>
   22515             #endif
   22516 
   22517             #if defined INT64_MAX
   22518              #define CONDITION (INT64_MAX == LONG_MAX)
   22519             #elif HAVE_LONG_LONG_INT
   22520              #define CONDITION (sizeof (long long int) == sizeof (long int))
   22521             #else
   22522              #define CONDITION 0
   22523             #endif
   22524             int test[CONDITION ? 1 : -1];
   22525 int
   22526 main ()
   22527 {
   22528 
   22529   ;
   22530   return 0;
   22531 }
   22532 _ACEOF
   22533 if ac_fn_c_try_compile "$LINENO"; then :
   22534   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
   22535 else
   22536   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
   22537 fi
   22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22539 fi
   22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
   22541 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
   22542   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
   22543     INT64_MAX_EQ_LONG_MAX=1;
   22544   else
   22545     INT64_MAX_EQ_LONG_MAX=0;
   22546   fi
   22547 
   22548 
   22549   else
   22550     INT64_MAX_EQ_LONG_MAX=-1
   22551   fi
   22552 
   22553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
   22554 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
   22555 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
   22556   $as_echo_n "(cached) " >&6
   22557 else
   22558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22559 /* end confdefs.h.  */
   22560 /* Work also in C++ mode.  */
   22561             #define __STDC_LIMIT_MACROS 1
   22562 
   22563             /* Work if build is not clean.  */
   22564             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   22565 
   22566             #include <limits.h>
   22567             #if HAVE_STDINT_H
   22568              #include <stdint.h>
   22569             #endif
   22570 
   22571             #if defined UINT32_MAX && defined UINTMAX_MAX
   22572              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
   22573             #elif HAVE_LONG_LONG_INT
   22574              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
   22575             #else
   22576              #define CONDITION 0
   22577             #endif
   22578             int test[CONDITION ? 1 : -1];
   22579 int
   22580 main ()
   22581 {
   22582 
   22583   ;
   22584   return 0;
   22585 }
   22586 _ACEOF
   22587 if ac_fn_c_try_compile "$LINENO"; then :
   22588   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
   22589 else
   22590   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
   22591 fi
   22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22593 fi
   22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
   22595 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
   22596   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
   22597     UINT32_MAX_LT_UINTMAX_MAX=1;
   22598   else
   22599     UINT32_MAX_LT_UINTMAX_MAX=0;
   22600   fi
   22601 
   22602 
   22603   if test $APPLE_UNIVERSAL_BUILD = 0; then
   22604 
   22605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
   22606 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
   22607 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
   22608   $as_echo_n "(cached) " >&6
   22609 else
   22610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22611 /* end confdefs.h.  */
   22612 /* Work also in C++ mode.  */
   22613             #define __STDC_LIMIT_MACROS 1
   22614 
   22615             /* Work if build is not clean.  */
   22616             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   22617 
   22618             #include <limits.h>
   22619             #if HAVE_STDINT_H
   22620              #include <stdint.h>
   22621             #endif
   22622 
   22623             #if defined UINT64_MAX
   22624              #define CONDITION (UINT64_MAX == ULONG_MAX)
   22625             #elif HAVE_LONG_LONG_INT
   22626              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
   22627             #else
   22628              #define CONDITION 0
   22629             #endif
   22630             int test[CONDITION ? 1 : -1];
   22631 int
   22632 main ()
   22633 {
   22634 
   22635   ;
   22636   return 0;
   22637 }
   22638 _ACEOF
   22639 if ac_fn_c_try_compile "$LINENO"; then :
   22640   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
   22641 else
   22642   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
   22643 fi
   22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22645 fi
   22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
   22647 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
   22648   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
   22649     UINT64_MAX_EQ_ULONG_MAX=1;
   22650   else
   22651     UINT64_MAX_EQ_ULONG_MAX=0;
   22652   fi
   22653 
   22654 
   22655   else
   22656     UINT64_MAX_EQ_ULONG_MAX=-1
   22657   fi
   22658 
   22659 
   22660 
   22661 
   22662 
   22663 
   22664 
   22665 
   22666 
   22667   # If we replaced any of the underlying isnan* functions, replace
   22668   # the isnan macro; it undoubtedly suffers from the same flaws.
   22669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan macro works" >&5
   22670 $as_echo_n "checking whether isnan macro works... " >&6; }
   22671   if test $gl_func_isnanf = yes \
   22672      && test $gl_func_isnand = yes \
   22673      && test $gl_func_isnanl = yes; then
   22674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22675 $as_echo "yes" >&6; }
   22676     ISNAN_LIBM=
   22677         case " $ISNAN_LIBM " in
   22678       *" $ISNANF_LIBM "*) ;;
   22679       *) ISNAN_LIBM="$ISNAN_LIBM $ISNANF_LIBM" ;;
   22680     esac
   22681         case " $ISNAN_LIBM " in
   22682       *" $ISNAND_LIBM "*) ;;
   22683       *) ISNAN_LIBM="$ISNAN_LIBM $ISNAND_LIBM" ;;
   22684     esac
   22685         case " $ISNAN_LIBM " in
   22686       *" $ISNANL_LIBM "*) ;;
   22687       *) ISNAN_LIBM="$ISNAN_LIBM $ISNANL_LIBM" ;;
   22688     esac
   22689   else
   22690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22691 $as_echo "no" >&6; }
   22692         REPLACE_ISNAN=1
   22693     ISNAN_LIBM=
   22694   fi
   22695 
   22696 
   22697 
   22698 
   22699 
   22700 
   22701 
   22702           GNULIB_ISNAN=1
   22703 
   22704 
   22705 
   22706 
   22707 
   22708 $as_echo "#define GNULIB_TEST_ISNAN 1" >>confdefs.h
   22709 
   22710 
   22711 
   22712 
   22713 
   22714   ISNAND_LIBM=
   22715 
   22716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
   22717 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
   22718 if ${gl_cv_func_isnand_no_libm+:} false; then :
   22719   $as_echo_n "(cached) " >&6
   22720 else
   22721 
   22722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22723 /* end confdefs.h.  */
   22724 #include <math.h>
   22725              #if __GNUC__ >= 4
   22726              # undef isnand
   22727              # define isnand(x) __builtin_isnan ((double)(x))
   22728              #else
   22729              # undef isnand
   22730              # define isnand(x) isnan ((double)(x))
   22731              #endif
   22732              double x;
   22733 int
   22734 main ()
   22735 {
   22736 return isnand (x);
   22737   ;
   22738   return 0;
   22739 }
   22740 _ACEOF
   22741 if ac_fn_c_try_link "$LINENO"; then :
   22742   gl_cv_func_isnand_no_libm=yes
   22743 else
   22744   gl_cv_func_isnand_no_libm=no
   22745 fi
   22746 rm -f core conftest.err conftest.$ac_objext \
   22747     conftest$ac_exeext conftest.$ac_ext
   22748 
   22749 fi
   22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
   22751 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
   22752 
   22753   if test $gl_cv_func_isnand_no_libm = no; then
   22754 
   22755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
   22756 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
   22757 if ${gl_cv_func_isnand_in_libm+:} false; then :
   22758   $as_echo_n "(cached) " >&6
   22759 else
   22760 
   22761       save_LIBS="$LIBS"
   22762       LIBS="$LIBS -lm"
   22763       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22764 /* end confdefs.h.  */
   22765 #include <math.h>
   22766              #if __GNUC__ >= 4
   22767              # undef isnand
   22768              # define isnand(x) __builtin_isnan ((double)(x))
   22769              #elif defined isnan
   22770              # undef isnand
   22771              # define isnand(x) isnan ((double)(x))
   22772              #endif
   22773              double x;
   22774 int
   22775 main ()
   22776 {
   22777 return isnand (x);
   22778   ;
   22779   return 0;
   22780 }
   22781 _ACEOF
   22782 if ac_fn_c_try_link "$LINENO"; then :
   22783   gl_cv_func_isnand_in_libm=yes
   22784 else
   22785   gl_cv_func_isnand_in_libm=no
   22786 fi
   22787 rm -f core conftest.err conftest.$ac_objext \
   22788     conftest$ac_exeext conftest.$ac_ext
   22789       LIBS="$save_LIBS"
   22790 
   22791 fi
   22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
   22793 $as_echo "$gl_cv_func_isnand_in_libm" >&6; }
   22794 
   22795     if test $gl_cv_func_isnand_in_libm = yes; then
   22796       ISNAND_LIBM=-lm
   22797     fi
   22798   fi
   22799     if test $gl_cv_func_isnand_no_libm = yes \
   22800      || test $gl_cv_func_isnand_in_libm = yes; then
   22801     gl_func_isnand=yes
   22802   else
   22803     gl_func_isnand=no
   22804     HAVE_ISNAND=0
   22805   fi
   22806 
   22807 
   22808 
   22809 
   22810 
   22811   if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
   22812 
   22813 
   22814 
   22815 
   22816 
   22817 
   22818 
   22819 
   22820   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
   22821 
   22822 
   22823 
   22824 
   22825   fi
   22826 
   22827 
   22828 
   22829 
   22830 
   22831           GNULIB_ISNAND=1
   22832 
   22833 
   22834 
   22835 
   22836 
   22837 $as_echo "#define GNULIB_TEST_ISNAND 1" >>confdefs.h
   22838 
   22839 
   22840 
   22841 
   22842 
   22843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
   22844 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
   22845 if ${gl_cv_func_isnand_no_libm+:} false; then :
   22846   $as_echo_n "(cached) " >&6
   22847 else
   22848 
   22849       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22850 /* end confdefs.h.  */
   22851 #include <math.h>
   22852              #if __GNUC__ >= 4
   22853              # undef isnand
   22854              # define isnand(x) __builtin_isnan ((double)(x))
   22855              #else
   22856              # undef isnand
   22857              # define isnand(x) isnan ((double)(x))
   22858              #endif
   22859              double x;
   22860 int
   22861 main ()
   22862 {
   22863 return isnand (x);
   22864   ;
   22865   return 0;
   22866 }
   22867 _ACEOF
   22868 if ac_fn_c_try_link "$LINENO"; then :
   22869   gl_cv_func_isnand_no_libm=yes
   22870 else
   22871   gl_cv_func_isnand_no_libm=no
   22872 fi
   22873 rm -f core conftest.err conftest.$ac_objext \
   22874     conftest$ac_exeext conftest.$ac_ext
   22875 
   22876 fi
   22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
   22878 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
   22879 
   22880   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
   22881   if test $gl_cv_func_isnand_no_libm = yes; then
   22882 
   22883 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
   22884 
   22885   fi
   22886 
   22887   if test $gl_func_isnand_no_libm != yes; then
   22888 
   22889 
   22890 
   22891 
   22892 
   22893 
   22894 
   22895 
   22896   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
   22897 
   22898 
   22899 
   22900 
   22901   fi
   22902 
   22903 
   22904   ISNANF_LIBM=
   22905 
   22906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
   22907 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
   22908 if ${gl_cv_func_isnanf_no_libm+:} false; then :
   22909   $as_echo_n "(cached) " >&6
   22910 else
   22911 
   22912       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22913 /* end confdefs.h.  */
   22914 #include <math.h>
   22915              #if __GNUC__ >= 4
   22916              # undef isnanf
   22917              # define isnanf(x) __builtin_isnanf ((float)(x))
   22918              #elif defined isnan
   22919              # undef isnanf
   22920              # define isnanf(x) isnan ((float)(x))
   22921              #endif
   22922              float x;
   22923 int
   22924 main ()
   22925 {
   22926 return isnanf (x);
   22927   ;
   22928   return 0;
   22929 }
   22930 _ACEOF
   22931 if ac_fn_c_try_link "$LINENO"; then :
   22932   gl_cv_func_isnanf_no_libm=yes
   22933 else
   22934   gl_cv_func_isnanf_no_libm=no
   22935 fi
   22936 rm -f core conftest.err conftest.$ac_objext \
   22937     conftest$ac_exeext conftest.$ac_ext
   22938 
   22939 fi
   22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
   22941 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
   22942 
   22943   if test $gl_cv_func_isnanf_no_libm = no; then
   22944 
   22945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
   22946 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
   22947 if ${gl_cv_func_isnanf_in_libm+:} false; then :
   22948   $as_echo_n "(cached) " >&6
   22949 else
   22950 
   22951       save_LIBS="$LIBS"
   22952       LIBS="$LIBS -lm"
   22953       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22954 /* end confdefs.h.  */
   22955 #include <math.h>
   22956              #if __GNUC__ >= 4
   22957              # undef isnanf
   22958              # define isnanf(x) __builtin_isnanf ((float)(x))
   22959              #elif defined isnan
   22960              # undef isnanf
   22961              # define isnanf(x) isnan ((float)(x))
   22962              #endif
   22963              float x;
   22964 int
   22965 main ()
   22966 {
   22967 return isnanf (x);
   22968   ;
   22969   return 0;
   22970 }
   22971 _ACEOF
   22972 if ac_fn_c_try_link "$LINENO"; then :
   22973   gl_cv_func_isnanf_in_libm=yes
   22974 else
   22975   gl_cv_func_isnanf_in_libm=no
   22976 fi
   22977 rm -f core conftest.err conftest.$ac_objext \
   22978     conftest$ac_exeext conftest.$ac_ext
   22979       LIBS="$save_LIBS"
   22980 
   22981 fi
   22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
   22983 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
   22984 
   22985     if test $gl_cv_func_isnanf_in_libm = yes; then
   22986       ISNANF_LIBM=-lm
   22987     fi
   22988   fi
   22989     if test $gl_cv_func_isnanf_no_libm = yes \
   22990      || test $gl_cv_func_isnanf_in_libm = yes; then
   22991     save_LIBS="$LIBS"
   22992     LIBS="$LIBS $ISNANF_LIBM"
   22993 
   22994 
   22995 
   22996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
   22997 $as_echo_n "checking whether isnan(float) works... " >&6; }
   22998 if ${gl_cv_func_isnanf_works+:} false; then :
   22999   $as_echo_n "(cached) " >&6
   23000 else
   23001 
   23002       if test "$cross_compiling" = yes; then :
   23003   case "$host_os" in
   23004            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
   23005            *)                gl_cv_func_isnanf_works="guessing yes";;
   23006          esac
   23007 
   23008 else
   23009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23010 /* end confdefs.h.  */
   23011 
   23012 #include <math.h>
   23013 #if __GNUC__ >= 4
   23014 # undef isnanf
   23015 # define isnanf(x) __builtin_isnanf ((float)(x))
   23016 #elif defined isnan
   23017 # undef isnanf
   23018 # define isnanf(x) isnan ((float)(x))
   23019 #endif
   23020 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
   23021 #ifdef __DECC
   23022 static float
   23023 NaN ()
   23024 {
   23025   static float zero = 0.0f;
   23026   return zero / zero;
   23027 }
   23028 #else
   23029 # define NaN() (0.0f / 0.0f)
   23030 #endif
   23031 #define NWORDS \
   23032   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23033 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
   23034 int main()
   23035 {
   23036   int result = 0;
   23037 
   23038   if (isnanf (1.0f / 0.0f))
   23039     result |= 1;
   23040 
   23041   if (!isnanf (NaN ()))
   23042     result |= 2;
   23043 
   23044 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
   23045   /* The isnanf function should be immune against changes in the sign bit and
   23046      in the mantissa bits.  The xor operation twiddles a bit that can only be
   23047      a sign bit or a mantissa bit.  */
   23048   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
   23049     {
   23050       memory_float m;
   23051 
   23052       m.value = NaN ();
   23053       /* Set the bits below the exponent to 01111...111.  */
   23054       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
   23055       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
   23056       if (!isnanf (m.value))
   23057         result |= 4;
   23058     }
   23059 #endif
   23060 
   23061   return result;
   23062 }
   23063 _ACEOF
   23064 if ac_fn_c_try_run "$LINENO"; then :
   23065   gl_cv_func_isnanf_works=yes
   23066 else
   23067   gl_cv_func_isnanf_works=no
   23068 fi
   23069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23070   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23071 fi
   23072 
   23073 
   23074 fi
   23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
   23076 $as_echo "$gl_cv_func_isnanf_works" >&6; }
   23077 
   23078     LIBS="$save_LIBS"
   23079     case "$gl_cv_func_isnanf_works" in
   23080       *yes) gl_func_isnanf=yes ;;
   23081       *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
   23082     esac
   23083   else
   23084     gl_func_isnanf=no
   23085   fi
   23086   if test $gl_func_isnanf != yes; then
   23087     HAVE_ISNANF=0
   23088   fi
   23089 
   23090 
   23091 
   23092 
   23093 
   23094   if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
   23095 
   23096 
   23097 
   23098 
   23099 
   23100 
   23101 
   23102 
   23103   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
   23104 
   23105 
   23106 
   23107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
   23108 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
   23109 if ${gl_cv_cc_float_expbit0+:} false; then :
   23110   $as_echo_n "(cached) " >&6
   23111 else
   23112 
   23113       if test "$cross_compiling" = yes; then :
   23114   gl_cv_cc_float_expbit0="word 0 bit 23"
   23115 else
   23116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23117 /* end confdefs.h.  */
   23118 
   23119 #include <float.h>
   23120 #include <stddef.h>
   23121 #include <stdio.h>
   23122 #include <string.h>
   23123 #define NWORDS \
   23124   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23125 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
   23126 static unsigned int ored_words[NWORDS];
   23127 static unsigned int anded_words[NWORDS];
   23128 static void add_to_ored_words (float x)
   23129 {
   23130   memory_float m;
   23131   size_t i;
   23132   /* Clear it first, in case
   23133      sizeof (float) < sizeof (memory_float).  */
   23134   memset (&m, 0, sizeof (memory_float));
   23135   m.value = x;
   23136   for (i = 0; i < NWORDS; i++)
   23137     {
   23138       ored_words[i] |= m.word[i];
   23139       anded_words[i] &= m.word[i];
   23140     }
   23141 }
   23142 int main ()
   23143 {
   23144   size_t j;
   23145   FILE *fp = fopen ("conftest.out", "w");
   23146   if (fp == NULL)
   23147     return 1;
   23148   for (j = 0; j < NWORDS; j++)
   23149     anded_words[j] = ~ (unsigned int) 0;
   23150   add_to_ored_words (0.25f);
   23151   add_to_ored_words (0.5f);
   23152   add_to_ored_words (1.0f);
   23153   add_to_ored_words (2.0f);
   23154   add_to_ored_words (4.0f);
   23155   /* Remove bits that are common (e.g. if representation of the first mantissa
   23156      bit is explicit).  */
   23157   for (j = 0; j < NWORDS; j++)
   23158     ored_words[j] &= ~anded_words[j];
   23159   /* Now find the nonzero word.  */
   23160   for (j = 0; j < NWORDS; j++)
   23161     if (ored_words[j] != 0)
   23162       break;
   23163   if (j < NWORDS)
   23164     {
   23165       size_t i;
   23166       for (i = j + 1; i < NWORDS; i++)
   23167         if (ored_words[i] != 0)
   23168           {
   23169             fprintf (fp, "unknown");
   23170             return (fclose (fp) != 0);
   23171           }
   23172       for (i = 0; ; i++)
   23173         if ((ored_words[j] >> i) & 1)
   23174           {
   23175             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   23176             return (fclose (fp) != 0);
   23177           }
   23178     }
   23179   fprintf (fp, "unknown");
   23180   return (fclose (fp) != 0);
   23181 }
   23182 
   23183 _ACEOF
   23184 if ac_fn_c_try_run "$LINENO"; then :
   23185   gl_cv_cc_float_expbit0=`cat conftest.out`
   23186 else
   23187   gl_cv_cc_float_expbit0="unknown"
   23188 fi
   23189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23190   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23191 fi
   23192 
   23193       rm -f conftest.out
   23194 
   23195 fi
   23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
   23197 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
   23198   case "$gl_cv_cc_float_expbit0" in
   23199     word*bit*)
   23200       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   23201       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
   23202 
   23203 cat >>confdefs.h <<_ACEOF
   23204 #define FLT_EXPBIT0_WORD $word
   23205 _ACEOF
   23206 
   23207 
   23208 cat >>confdefs.h <<_ACEOF
   23209 #define FLT_EXPBIT0_BIT $bit
   23210 _ACEOF
   23211 
   23212       ;;
   23213   esac
   23214 
   23215 
   23216   fi
   23217 
   23218 
   23219 
   23220 
   23221 
   23222           GNULIB_ISNANF=1
   23223 
   23224 
   23225 
   23226 
   23227 
   23228 $as_echo "#define GNULIB_TEST_ISNANF 1" >>confdefs.h
   23229 
   23230 
   23231 
   23232 
   23233 
   23234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
   23235 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
   23236 if ${gl_cv_func_isnanf_no_libm+:} false; then :
   23237   $as_echo_n "(cached) " >&6
   23238 else
   23239 
   23240       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23241 /* end confdefs.h.  */
   23242 #include <math.h>
   23243              #if __GNUC__ >= 4
   23244              # undef isnanf
   23245              # define isnanf(x) __builtin_isnanf ((float)(x))
   23246              #elif defined isnan
   23247              # undef isnanf
   23248              # define isnanf(x) isnan ((float)(x))
   23249              #endif
   23250              float x;
   23251 int
   23252 main ()
   23253 {
   23254 return isnanf (x);
   23255   ;
   23256   return 0;
   23257 }
   23258 _ACEOF
   23259 if ac_fn_c_try_link "$LINENO"; then :
   23260   gl_cv_func_isnanf_no_libm=yes
   23261 else
   23262   gl_cv_func_isnanf_no_libm=no
   23263 fi
   23264 rm -f core conftest.err conftest.$ac_objext \
   23265     conftest$ac_exeext conftest.$ac_ext
   23266 
   23267 fi
   23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
   23269 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
   23270 
   23271   if test $gl_cv_func_isnanf_no_libm = yes; then
   23272 
   23273 
   23274 
   23275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
   23276 $as_echo_n "checking whether isnan(float) works... " >&6; }
   23277 if ${gl_cv_func_isnanf_works+:} false; then :
   23278   $as_echo_n "(cached) " >&6
   23279 else
   23280 
   23281       if test "$cross_compiling" = yes; then :
   23282   case "$host_os" in
   23283            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
   23284            *)                gl_cv_func_isnanf_works="guessing yes";;
   23285          esac
   23286 
   23287 else
   23288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23289 /* end confdefs.h.  */
   23290 
   23291 #include <math.h>
   23292 #if __GNUC__ >= 4
   23293 # undef isnanf
   23294 # define isnanf(x) __builtin_isnanf ((float)(x))
   23295 #elif defined isnan
   23296 # undef isnanf
   23297 # define isnanf(x) isnan ((float)(x))
   23298 #endif
   23299 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
   23300 #ifdef __DECC
   23301 static float
   23302 NaN ()
   23303 {
   23304   static float zero = 0.0f;
   23305   return zero / zero;
   23306 }
   23307 #else
   23308 # define NaN() (0.0f / 0.0f)
   23309 #endif
   23310 #define NWORDS \
   23311   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23312 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
   23313 int main()
   23314 {
   23315   int result = 0;
   23316 
   23317   if (isnanf (1.0f / 0.0f))
   23318     result |= 1;
   23319 
   23320   if (!isnanf (NaN ()))
   23321     result |= 2;
   23322 
   23323 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
   23324   /* The isnanf function should be immune against changes in the sign bit and
   23325      in the mantissa bits.  The xor operation twiddles a bit that can only be
   23326      a sign bit or a mantissa bit.  */
   23327   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
   23328     {
   23329       memory_float m;
   23330 
   23331       m.value = NaN ();
   23332       /* Set the bits below the exponent to 01111...111.  */
   23333       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
   23334       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
   23335       if (!isnanf (m.value))
   23336         result |= 4;
   23337     }
   23338 #endif
   23339 
   23340   return result;
   23341 }
   23342 _ACEOF
   23343 if ac_fn_c_try_run "$LINENO"; then :
   23344   gl_cv_func_isnanf_works=yes
   23345 else
   23346   gl_cv_func_isnanf_works=no
   23347 fi
   23348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23349   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23350 fi
   23351 
   23352 
   23353 fi
   23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
   23355 $as_echo "$gl_cv_func_isnanf_works" >&6; }
   23356 
   23357   fi
   23358   if test $gl_cv_func_isnanf_no_libm = yes \
   23359      && { case "$gl_cv_func_isnanf_works" in
   23360             *yes) true;;
   23361             *) false;;
   23362           esac
   23363         }; then
   23364     gl_func_isnanf_no_libm=yes
   23365 
   23366 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
   23367 
   23368   else
   23369     gl_func_isnanf_no_libm=no
   23370   fi
   23371 
   23372   if test $gl_func_isnanf_no_libm != yes; then
   23373 
   23374 
   23375 
   23376 
   23377 
   23378 
   23379 
   23380 
   23381   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
   23382 
   23383 
   23384 
   23385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
   23386 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
   23387 if ${gl_cv_cc_float_expbit0+:} false; then :
   23388   $as_echo_n "(cached) " >&6
   23389 else
   23390 
   23391       if test "$cross_compiling" = yes; then :
   23392   gl_cv_cc_float_expbit0="word 0 bit 23"
   23393 else
   23394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23395 /* end confdefs.h.  */
   23396 
   23397 #include <float.h>
   23398 #include <stddef.h>
   23399 #include <stdio.h>
   23400 #include <string.h>
   23401 #define NWORDS \
   23402   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23403 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
   23404 static unsigned int ored_words[NWORDS];
   23405 static unsigned int anded_words[NWORDS];
   23406 static void add_to_ored_words (float x)
   23407 {
   23408   memory_float m;
   23409   size_t i;
   23410   /* Clear it first, in case
   23411      sizeof (float) < sizeof (memory_float).  */
   23412   memset (&m, 0, sizeof (memory_float));
   23413   m.value = x;
   23414   for (i = 0; i < NWORDS; i++)
   23415     {
   23416       ored_words[i] |= m.word[i];
   23417       anded_words[i] &= m.word[i];
   23418     }
   23419 }
   23420 int main ()
   23421 {
   23422   size_t j;
   23423   FILE *fp = fopen ("conftest.out", "w");
   23424   if (fp == NULL)
   23425     return 1;
   23426   for (j = 0; j < NWORDS; j++)
   23427     anded_words[j] = ~ (unsigned int) 0;
   23428   add_to_ored_words (0.25f);
   23429   add_to_ored_words (0.5f);
   23430   add_to_ored_words (1.0f);
   23431   add_to_ored_words (2.0f);
   23432   add_to_ored_words (4.0f);
   23433   /* Remove bits that are common (e.g. if representation of the first mantissa
   23434      bit is explicit).  */
   23435   for (j = 0; j < NWORDS; j++)
   23436     ored_words[j] &= ~anded_words[j];
   23437   /* Now find the nonzero word.  */
   23438   for (j = 0; j < NWORDS; j++)
   23439     if (ored_words[j] != 0)
   23440       break;
   23441   if (j < NWORDS)
   23442     {
   23443       size_t i;
   23444       for (i = j + 1; i < NWORDS; i++)
   23445         if (ored_words[i] != 0)
   23446           {
   23447             fprintf (fp, "unknown");
   23448             return (fclose (fp) != 0);
   23449           }
   23450       for (i = 0; ; i++)
   23451         if ((ored_words[j] >> i) & 1)
   23452           {
   23453             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   23454             return (fclose (fp) != 0);
   23455           }
   23456     }
   23457   fprintf (fp, "unknown");
   23458   return (fclose (fp) != 0);
   23459 }
   23460 
   23461 _ACEOF
   23462 if ac_fn_c_try_run "$LINENO"; then :
   23463   gl_cv_cc_float_expbit0=`cat conftest.out`
   23464 else
   23465   gl_cv_cc_float_expbit0="unknown"
   23466 fi
   23467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23468   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23469 fi
   23470 
   23471       rm -f conftest.out
   23472 
   23473 fi
   23474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
   23475 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
   23476   case "$gl_cv_cc_float_expbit0" in
   23477     word*bit*)
   23478       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   23479       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
   23480 
   23481 cat >>confdefs.h <<_ACEOF
   23482 #define FLT_EXPBIT0_WORD $word
   23483 _ACEOF
   23484 
   23485 
   23486 cat >>confdefs.h <<_ACEOF
   23487 #define FLT_EXPBIT0_BIT $bit
   23488 _ACEOF
   23489 
   23490       ;;
   23491   esac
   23492 
   23493 
   23494   fi
   23495 
   23496 
   23497   ISNANL_LIBM=
   23498 
   23499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
   23500 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
   23501 if ${gl_cv_func_isnanl_no_libm+:} false; then :
   23502   $as_echo_n "(cached) " >&6
   23503 else
   23504 
   23505       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23506 /* end confdefs.h.  */
   23507 #include <math.h>
   23508              #if __GNUC__ >= 4
   23509              # undef isnanl
   23510              # define isnanl(x) __builtin_isnanl ((long double)(x))
   23511              #elif defined isnan
   23512              # undef isnanl
   23513              # define isnanl(x) isnan ((long double)(x))
   23514              #endif
   23515              long double x;
   23516 int
   23517 main ()
   23518 {
   23519 return isnanl (x);
   23520   ;
   23521   return 0;
   23522 }
   23523 _ACEOF
   23524 if ac_fn_c_try_link "$LINENO"; then :
   23525   gl_cv_func_isnanl_no_libm=yes
   23526 else
   23527   gl_cv_func_isnanl_no_libm=no
   23528 fi
   23529 rm -f core conftest.err conftest.$ac_objext \
   23530     conftest$ac_exeext conftest.$ac_ext
   23531 
   23532 fi
   23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
   23534 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
   23535 
   23536   if test $gl_cv_func_isnanl_no_libm = no; then
   23537 
   23538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
   23539 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
   23540 if ${gl_cv_func_isnanl_in_libm+:} false; then :
   23541   $as_echo_n "(cached) " >&6
   23542 else
   23543 
   23544       save_LIBS="$LIBS"
   23545       LIBS="$LIBS -lm"
   23546       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23547 /* end confdefs.h.  */
   23548 #include <math.h>
   23549              #if __GNUC__ >= 4
   23550              # undef isnanl
   23551              # define isnanl(x) __builtin_isnanl ((long double)(x))
   23552              #elif defined isnan
   23553              # undef isnanl
   23554              # define isnanl(x) isnan ((long double)(x))
   23555              #endif
   23556              long double x;
   23557 int
   23558 main ()
   23559 {
   23560 return isnanl (x);
   23561   ;
   23562   return 0;
   23563 }
   23564 _ACEOF
   23565 if ac_fn_c_try_link "$LINENO"; then :
   23566   gl_cv_func_isnanl_in_libm=yes
   23567 else
   23568   gl_cv_func_isnanl_in_libm=no
   23569 fi
   23570 rm -f core conftest.err conftest.$ac_objext \
   23571     conftest$ac_exeext conftest.$ac_ext
   23572       LIBS="$save_LIBS"
   23573 
   23574 fi
   23575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
   23576 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
   23577 
   23578     if test $gl_cv_func_isnanl_in_libm = yes; then
   23579       ISNANL_LIBM=-lm
   23580     fi
   23581   fi
   23582     if test $gl_cv_func_isnanl_no_libm = yes \
   23583      || test $gl_cv_func_isnanl_in_libm = yes; then
   23584     save_LIBS="$LIBS"
   23585     LIBS="$LIBS $ISNANL_LIBM"
   23586 
   23587 
   23588 
   23589 
   23590      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
   23591 $as_echo_n "checking whether isnanl works... " >&6; }
   23592 if ${gl_cv_func_isnanl_works+:} false; then :
   23593   $as_echo_n "(cached) " >&6
   23594 else
   23595 
   23596       if test "$cross_compiling" = yes; then :
   23597   case "$host_cpu" in
   23598                                  # Guess no on ia64, x86_64, i386.
   23599            ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
   23600            *)
   23601              case "$host_os" in
   23602                netbsd*) gl_cv_func_isnanl_works="guessing no";;
   23603                *)       gl_cv_func_isnanl_works="guessing yes";;
   23604              esac
   23605              ;;
   23606          esac
   23607 
   23608 else
   23609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23610 /* end confdefs.h.  */
   23611 
   23612 #include <float.h>
   23613 #include <limits.h>
   23614 #include <math.h>
   23615 #if __GNUC__ >= 4
   23616 # undef isnanl
   23617 # define isnanl(x) __builtin_isnanl ((long double)(x))
   23618 #elif defined isnan
   23619 # undef isnanl
   23620 # define isnanl(x) isnan ((long double)(x))
   23621 #endif
   23622 #define NWORDS \
   23623   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23624 typedef union { unsigned int word[NWORDS]; long double value; }
   23625         memory_long_double;
   23626 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
   23627    runtime type conversion.  */
   23628 #ifdef __sgi
   23629 static long double NaNl ()
   23630 {
   23631   double zero = 0.0;
   23632   return zero / zero;
   23633 }
   23634 #else
   23635 # define NaNl() (0.0L / 0.0L)
   23636 #endif
   23637 int main ()
   23638 {
   23639   int result = 0;
   23640 
   23641   if (!isnanl (NaNl ()))
   23642     result |= 1;
   23643 
   23644   {
   23645     memory_long_double m;
   23646     unsigned int i;
   23647 
   23648     /* The isnanl function should be immune against changes in the sign bit and
   23649        in the mantissa bits.  The xor operation twiddles a bit that can only be
   23650        a sign bit or a mantissa bit (since the exponent never extends to
   23651        bit 31).  */
   23652     m.value = NaNl ();
   23653     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
   23654     for (i = 0; i < NWORDS; i++)
   23655       m.word[i] |= 1;
   23656     if (!isnanl (m.value))
   23657       result |= 1;
   23658   }
   23659 
   23660 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   23661 /* Representation of an 80-bit 'long double' as an initializer for a sequence
   23662    of 'unsigned int' words.  */
   23663 # ifdef WORDS_BIGENDIAN
   23664 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   23665      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
   23666        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
   23667        (unsigned int) (mantlo) << 16                                        \
   23668      }
   23669 # else
   23670 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   23671      { mantlo, manthi, exponent }
   23672 # endif
   23673   { /* Quiet NaN.  */
   23674     static memory_long_double x =
   23675       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
   23676     if (!isnanl (x.value))
   23677       result |= 2;
   23678   }
   23679   {
   23680     /* Signalling NaN.  */
   23681     static memory_long_double x =
   23682       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
   23683     if (!isnanl (x.value))
   23684       result |= 2;
   23685   }
   23686   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
   23687      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
   23688        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
   23689        Application Architecture.
   23690        Table 5-2 "Floating-Point Register Encodings"
   23691        Figure 5-6 "Memory to Floating-Point Register Data Translation"
   23692    */
   23693   { /* Pseudo-NaN.  */
   23694     static memory_long_double x =
   23695       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
   23696     if (!isnanl (x.value))
   23697       result |= 4;
   23698   }
   23699   { /* Pseudo-Infinity.  */
   23700     static memory_long_double x =
   23701       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
   23702     if (!isnanl (x.value))
   23703       result |= 8;
   23704   }
   23705   { /* Pseudo-Zero.  */
   23706     static memory_long_double x =
   23707       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
   23708     if (!isnanl (x.value))
   23709       result |= 16;
   23710   }
   23711   { /* Unnormalized number.  */
   23712     static memory_long_double x =
   23713       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
   23714     if (!isnanl (x.value))
   23715       result |= 32;
   23716   }
   23717   { /* Pseudo-Denormal.  */
   23718     static memory_long_double x =
   23719       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
   23720     if (!isnanl (x.value))
   23721       result |= 64;
   23722   }
   23723 #endif
   23724 
   23725   return result;
   23726 }
   23727 _ACEOF
   23728 if ac_fn_c_try_run "$LINENO"; then :
   23729   gl_cv_func_isnanl_works=yes
   23730 else
   23731   gl_cv_func_isnanl_works=no
   23732 fi
   23733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23734   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23735 fi
   23736 
   23737 
   23738 fi
   23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
   23740 $as_echo "$gl_cv_func_isnanl_works" >&6; }
   23741 
   23742     LIBS="$save_LIBS"
   23743     case "$gl_cv_func_isnanl_works" in
   23744       *yes) gl_func_isnanl=yes ;;
   23745       *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
   23746     esac
   23747   else
   23748     gl_func_isnanl=no
   23749   fi
   23750   if test $gl_func_isnanl != yes; then
   23751     HAVE_ISNANL=0
   23752   fi
   23753 
   23754 
   23755 
   23756 
   23757 
   23758   if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
   23759 
   23760 
   23761 
   23762 
   23763 
   23764 
   23765 
   23766 
   23767   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
   23768 
   23769 
   23770 
   23771 
   23772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
   23773 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
   23774 if ${gl_cv_cc_long_double_expbit0+:} false; then :
   23775   $as_echo_n "(cached) " >&6
   23776 else
   23777 
   23778       if test "$cross_compiling" = yes; then :
   23779 
   23780                               gl_cv_cc_long_double_expbit0="unknown"
   23781 
   23782 else
   23783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23784 /* end confdefs.h.  */
   23785 
   23786 #include <float.h>
   23787 #include <stddef.h>
   23788 #include <stdio.h>
   23789 #include <string.h>
   23790 #define NWORDS \
   23791   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23792 typedef union { long double value; unsigned int word[NWORDS]; }
   23793         memory_long_double;
   23794 static unsigned int ored_words[NWORDS];
   23795 static unsigned int anded_words[NWORDS];
   23796 static void add_to_ored_words (long double x)
   23797 {
   23798   memory_long_double m;
   23799   size_t i;
   23800   /* Clear it first, in case
   23801      sizeof (long double) < sizeof (memory_long_double).  */
   23802   memset (&m, 0, sizeof (memory_long_double));
   23803   m.value = x;
   23804   for (i = 0; i < NWORDS; i++)
   23805     {
   23806       ored_words[i] |= m.word[i];
   23807       anded_words[i] &= m.word[i];
   23808     }
   23809 }
   23810 int main ()
   23811 {
   23812   size_t j;
   23813   FILE *fp = fopen ("conftest.out", "w");
   23814   if (fp == NULL)
   23815     return 1;
   23816   for (j = 0; j < NWORDS; j++)
   23817     anded_words[j] = ~ (unsigned int) 0;
   23818   add_to_ored_words (0.25L);
   23819   add_to_ored_words (0.5L);
   23820   add_to_ored_words (1.0L);
   23821   add_to_ored_words (2.0L);
   23822   add_to_ored_words (4.0L);
   23823   /* Remove bits that are common (e.g. if representation of the first mantissa
   23824      bit is explicit).  */
   23825   for (j = 0; j < NWORDS; j++)
   23826     ored_words[j] &= ~anded_words[j];
   23827   /* Now find the nonzero word.  */
   23828   for (j = 0; j < NWORDS; j++)
   23829     if (ored_words[j] != 0)
   23830       break;
   23831   if (j < NWORDS)
   23832     {
   23833       size_t i;
   23834       for (i = j + 1; i < NWORDS; i++)
   23835         if (ored_words[i] != 0)
   23836           {
   23837             fprintf (fp, "unknown");
   23838             return (fclose (fp) != 0);
   23839           }
   23840       for (i = 0; ; i++)
   23841         if ((ored_words[j] >> i) & 1)
   23842           {
   23843             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   23844             return (fclose (fp) != 0);
   23845           }
   23846     }
   23847   fprintf (fp, "unknown");
   23848   return (fclose (fp) != 0);
   23849 }
   23850 
   23851 _ACEOF
   23852 if ac_fn_c_try_run "$LINENO"; then :
   23853   gl_cv_cc_long_double_expbit0=`cat conftest.out`
   23854 else
   23855   gl_cv_cc_long_double_expbit0="unknown"
   23856 fi
   23857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23858   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23859 fi
   23860 
   23861       rm -f conftest.out
   23862 
   23863 fi
   23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
   23865 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
   23866   case "$gl_cv_cc_long_double_expbit0" in
   23867     word*bit*)
   23868       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   23869       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
   23870 
   23871 cat >>confdefs.h <<_ACEOF
   23872 #define LDBL_EXPBIT0_WORD $word
   23873 _ACEOF
   23874 
   23875 
   23876 cat >>confdefs.h <<_ACEOF
   23877 #define LDBL_EXPBIT0_BIT $bit
   23878 _ACEOF
   23879 
   23880       ;;
   23881   esac
   23882 
   23883 
   23884 
   23885   fi
   23886 
   23887 
   23888 
   23889 
   23890 
   23891           GNULIB_ISNANL=1
   23892 
   23893 
   23894 
   23895 
   23896 
   23897 $as_echo "#define GNULIB_TEST_ISNANL 1" >>confdefs.h
   23898 
   23899 
   23900 
   23901 
   23902 
   23903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
   23904 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
   23905 if ${gl_cv_func_isnanl_no_libm+:} false; then :
   23906   $as_echo_n "(cached) " >&6
   23907 else
   23908 
   23909       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23910 /* end confdefs.h.  */
   23911 #include <math.h>
   23912              #if __GNUC__ >= 4
   23913              # undef isnanl
   23914              # define isnanl(x) __builtin_isnanl ((long double)(x))
   23915              #elif defined isnan
   23916              # undef isnanl
   23917              # define isnanl(x) isnan ((long double)(x))
   23918              #endif
   23919              long double x;
   23920 int
   23921 main ()
   23922 {
   23923 return isnanl (x);
   23924   ;
   23925   return 0;
   23926 }
   23927 _ACEOF
   23928 if ac_fn_c_try_link "$LINENO"; then :
   23929   gl_cv_func_isnanl_no_libm=yes
   23930 else
   23931   gl_cv_func_isnanl_no_libm=no
   23932 fi
   23933 rm -f core conftest.err conftest.$ac_objext \
   23934     conftest$ac_exeext conftest.$ac_ext
   23935 
   23936 fi
   23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
   23938 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
   23939 
   23940   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
   23941   if test $gl_func_isnanl_no_libm = yes; then
   23942 
   23943 
   23944 
   23945 
   23946      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
   23947 $as_echo_n "checking whether isnanl works... " >&6; }
   23948 if ${gl_cv_func_isnanl_works+:} false; then :
   23949   $as_echo_n "(cached) " >&6
   23950 else
   23951 
   23952       if test "$cross_compiling" = yes; then :
   23953   case "$host_cpu" in
   23954                                  # Guess no on ia64, x86_64, i386.
   23955            ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
   23956            *)
   23957              case "$host_os" in
   23958                netbsd*) gl_cv_func_isnanl_works="guessing no";;
   23959                *)       gl_cv_func_isnanl_works="guessing yes";;
   23960              esac
   23961              ;;
   23962          esac
   23963 
   23964 else
   23965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23966 /* end confdefs.h.  */
   23967 
   23968 #include <float.h>
   23969 #include <limits.h>
   23970 #include <math.h>
   23971 #if __GNUC__ >= 4
   23972 # undef isnanl
   23973 # define isnanl(x) __builtin_isnanl ((long double)(x))
   23974 #elif defined isnan
   23975 # undef isnanl
   23976 # define isnanl(x) isnan ((long double)(x))
   23977 #endif
   23978 #define NWORDS \
   23979   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   23980 typedef union { unsigned int word[NWORDS]; long double value; }
   23981         memory_long_double;
   23982 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
   23983    runtime type conversion.  */
   23984 #ifdef __sgi
   23985 static long double NaNl ()
   23986 {
   23987   double zero = 0.0;
   23988   return zero / zero;
   23989 }
   23990 #else
   23991 # define NaNl() (0.0L / 0.0L)
   23992 #endif
   23993 int main ()
   23994 {
   23995   int result = 0;
   23996 
   23997   if (!isnanl (NaNl ()))
   23998     result |= 1;
   23999 
   24000   {
   24001     memory_long_double m;
   24002     unsigned int i;
   24003 
   24004     /* The isnanl function should be immune against changes in the sign bit and
   24005        in the mantissa bits.  The xor operation twiddles a bit that can only be
   24006        a sign bit or a mantissa bit (since the exponent never extends to
   24007        bit 31).  */
   24008     m.value = NaNl ();
   24009     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
   24010     for (i = 0; i < NWORDS; i++)
   24011       m.word[i] |= 1;
   24012     if (!isnanl (m.value))
   24013       result |= 1;
   24014   }
   24015 
   24016 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   24017 /* Representation of an 80-bit 'long double' as an initializer for a sequence
   24018    of 'unsigned int' words.  */
   24019 # ifdef WORDS_BIGENDIAN
   24020 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   24021      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
   24022        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
   24023        (unsigned int) (mantlo) << 16                                        \
   24024      }
   24025 # else
   24026 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   24027      { mantlo, manthi, exponent }
   24028 # endif
   24029   { /* Quiet NaN.  */
   24030     static memory_long_double x =
   24031       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
   24032     if (!isnanl (x.value))
   24033       result |= 2;
   24034   }
   24035   {
   24036     /* Signalling NaN.  */
   24037     static memory_long_double x =
   24038       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
   24039     if (!isnanl (x.value))
   24040       result |= 2;
   24041   }
   24042   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
   24043      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
   24044        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
   24045        Application Architecture.
   24046        Table 5-2 "Floating-Point Register Encodings"
   24047        Figure 5-6 "Memory to Floating-Point Register Data Translation"
   24048    */
   24049   { /* Pseudo-NaN.  */
   24050     static memory_long_double x =
   24051       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
   24052     if (!isnanl (x.value))
   24053       result |= 4;
   24054   }
   24055   { /* Pseudo-Infinity.  */
   24056     static memory_long_double x =
   24057       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
   24058     if (!isnanl (x.value))
   24059       result |= 8;
   24060   }
   24061   { /* Pseudo-Zero.  */
   24062     static memory_long_double x =
   24063       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
   24064     if (!isnanl (x.value))
   24065       result |= 16;
   24066   }
   24067   { /* Unnormalized number.  */
   24068     static memory_long_double x =
   24069       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
   24070     if (!isnanl (x.value))
   24071       result |= 32;
   24072   }
   24073   { /* Pseudo-Denormal.  */
   24074     static memory_long_double x =
   24075       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
   24076     if (!isnanl (x.value))
   24077       result |= 64;
   24078   }
   24079 #endif
   24080 
   24081   return result;
   24082 }
   24083 _ACEOF
   24084 if ac_fn_c_try_run "$LINENO"; then :
   24085   gl_cv_func_isnanl_works=yes
   24086 else
   24087   gl_cv_func_isnanl_works=no
   24088 fi
   24089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24090   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24091 fi
   24092 
   24093 
   24094 fi
   24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
   24096 $as_echo "$gl_cv_func_isnanl_works" >&6; }
   24097 
   24098     case "$gl_cv_func_isnanl_works" in
   24099       *yes) ;;
   24100       *)    gl_func_isnanl_no_libm=no ;;
   24101     esac
   24102   fi
   24103   if test $gl_func_isnanl_no_libm = yes; then
   24104 
   24105 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
   24106 
   24107   fi
   24108 
   24109   if test $gl_func_isnanl_no_libm != yes; then
   24110 
   24111 
   24112 
   24113 
   24114 
   24115 
   24116 
   24117 
   24118   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
   24119 
   24120 
   24121 
   24122 
   24123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
   24124 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
   24125 if ${gl_cv_cc_long_double_expbit0+:} false; then :
   24126   $as_echo_n "(cached) " >&6
   24127 else
   24128 
   24129       if test "$cross_compiling" = yes; then :
   24130 
   24131                               gl_cv_cc_long_double_expbit0="unknown"
   24132 
   24133 else
   24134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24135 /* end confdefs.h.  */
   24136 
   24137 #include <float.h>
   24138 #include <stddef.h>
   24139 #include <stdio.h>
   24140 #include <string.h>
   24141 #define NWORDS \
   24142   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   24143 typedef union { long double value; unsigned int word[NWORDS]; }
   24144         memory_long_double;
   24145 static unsigned int ored_words[NWORDS];
   24146 static unsigned int anded_words[NWORDS];
   24147 static void add_to_ored_words (long double x)
   24148 {
   24149   memory_long_double m;
   24150   size_t i;
   24151   /* Clear it first, in case
   24152      sizeof (long double) < sizeof (memory_long_double).  */
   24153   memset (&m, 0, sizeof (memory_long_double));
   24154   m.value = x;
   24155   for (i = 0; i < NWORDS; i++)
   24156     {
   24157       ored_words[i] |= m.word[i];
   24158       anded_words[i] &= m.word[i];
   24159     }
   24160 }
   24161 int main ()
   24162 {
   24163   size_t j;
   24164   FILE *fp = fopen ("conftest.out", "w");
   24165   if (fp == NULL)
   24166     return 1;
   24167   for (j = 0; j < NWORDS; j++)
   24168     anded_words[j] = ~ (unsigned int) 0;
   24169   add_to_ored_words (0.25L);
   24170   add_to_ored_words (0.5L);
   24171   add_to_ored_words (1.0L);
   24172   add_to_ored_words (2.0L);
   24173   add_to_ored_words (4.0L);
   24174   /* Remove bits that are common (e.g. if representation of the first mantissa
   24175      bit is explicit).  */
   24176   for (j = 0; j < NWORDS; j++)
   24177     ored_words[j] &= ~anded_words[j];
   24178   /* Now find the nonzero word.  */
   24179   for (j = 0; j < NWORDS; j++)
   24180     if (ored_words[j] != 0)
   24181       break;
   24182   if (j < NWORDS)
   24183     {
   24184       size_t i;
   24185       for (i = j + 1; i < NWORDS; i++)
   24186         if (ored_words[i] != 0)
   24187           {
   24188             fprintf (fp, "unknown");
   24189             return (fclose (fp) != 0);
   24190           }
   24191       for (i = 0; ; i++)
   24192         if ((ored_words[j] >> i) & 1)
   24193           {
   24194             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   24195             return (fclose (fp) != 0);
   24196           }
   24197     }
   24198   fprintf (fp, "unknown");
   24199   return (fclose (fp) != 0);
   24200 }
   24201 
   24202 _ACEOF
   24203 if ac_fn_c_try_run "$LINENO"; then :
   24204   gl_cv_cc_long_double_expbit0=`cat conftest.out`
   24205 else
   24206   gl_cv_cc_long_double_expbit0="unknown"
   24207 fi
   24208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24209   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24210 fi
   24211 
   24212       rm -f conftest.out
   24213 
   24214 fi
   24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
   24216 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
   24217   case "$gl_cv_cc_long_double_expbit0" in
   24218     word*bit*)
   24219       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   24220       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
   24221 
   24222 cat >>confdefs.h <<_ACEOF
   24223 #define LDBL_EXPBIT0_WORD $word
   24224 _ACEOF
   24225 
   24226 
   24227 cat >>confdefs.h <<_ACEOF
   24228 #define LDBL_EXPBIT0_BIT $bit
   24229 _ACEOF
   24230 
   24231       ;;
   24232   esac
   24233 
   24234 
   24235 
   24236   fi
   24237 
   24238 
   24239 
   24240 
   24241 
   24242   ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
   24243 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   24244    <wchar.h>.
   24245    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   24246    before <wchar.h>.  */
   24247 #include <stddef.h>
   24248 #include <stdio.h>
   24249 #include <time.h>
   24250 #include <wchar.h>
   24251 #include <wctype.h>
   24252 
   24253 "
   24254 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
   24255   ac_have_decl=1
   24256 else
   24257   ac_have_decl=0
   24258 fi
   24259 
   24260 cat >>confdefs.h <<_ACEOF
   24261 #define HAVE_DECL_ISWBLANK $ac_have_decl
   24262 _ACEOF
   24263 
   24264   if test $ac_cv_func_iswblank = no; then
   24265     HAVE_ISWBLANK=0
   24266     if test $ac_cv_have_decl_iswblank = yes; then
   24267       REPLACE_ISWBLANK=1
   24268     fi
   24269   fi
   24270   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
   24271         :
   24272   else
   24273     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
   24274             :
   24275     fi
   24276   fi
   24277 
   24278 
   24279   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
   24280     :
   24281   else
   24282     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
   24283 
   24284 
   24285 
   24286 
   24287 
   24288 
   24289 
   24290 
   24291   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
   24292 
   24293     fi
   24294   fi
   24295 
   24296 
   24297 
   24298 
   24299 
   24300           GNULIB_ISWBLANK=1
   24301 
   24302 
   24303 
   24304 
   24305 
   24306 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
   24307 
   24308 
   24309 
   24310   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
   24311   ac_config_files="$ac_config_files javacomp.sh:build-aux/javacomp.sh.in"
   24312 
   24313   # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
   24314   ac_config_files="$ac_config_files javaexec.sh:build-aux/javaexec.sh.in"
   24315 
   24316 
   24317 
   24318 
   24319   LDEXP_LIBM=
   24320   if test $gl_cv_func_ldexp_no_libm = no; then
   24321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp() can be used with libm" >&5
   24322 $as_echo_n "checking whether ldexp() can be used with libm... " >&6; }
   24323 if ${gl_cv_func_ldexp_in_libm+:} false; then :
   24324   $as_echo_n "(cached) " >&6
   24325 else
   24326 
   24327         save_LIBS="$LIBS"
   24328         LIBS="$LIBS -lm"
   24329         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24330 /* end confdefs.h.  */
   24331 #ifndef __NO_MATH_INLINES
   24332                              # define __NO_MATH_INLINES 1 /* for glibc */
   24333                              #endif
   24334                              #include <math.h>
   24335                              double (*funcptr) (double, int) = ldexp;
   24336                              double x;
   24337 int
   24338 main ()
   24339 {
   24340 return ldexp (x, -1) > 0;
   24341   ;
   24342   return 0;
   24343 }
   24344 _ACEOF
   24345 if ac_fn_c_try_link "$LINENO"; then :
   24346   gl_cv_func_ldexp_in_libm=yes
   24347 else
   24348   gl_cv_func_ldexp_in_libm=no
   24349 fi
   24350 rm -f core conftest.err conftest.$ac_objext \
   24351     conftest$ac_exeext conftest.$ac_ext
   24352         LIBS="$save_LIBS"
   24353 
   24354 fi
   24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_in_libm" >&5
   24356 $as_echo "$gl_cv_func_ldexp_in_libm" >&6; }
   24357     if test $gl_cv_func_ldexp_in_libm = yes; then
   24358       LDEXP_LIBM=-lm
   24359     fi
   24360   fi
   24361 
   24362 
   24363 
   24364 
   24365 
   24366 
   24367 
   24368 
   24369       ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
   24370 "
   24371 if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
   24372 
   24373 else
   24374   HAVE_DECL_LDEXPL=0
   24375 fi
   24376 
   24377 
   24378   LDEXPL_LIBM=
   24379   if test $HAVE_DECL_LDEXPL = 1; then
   24380 
   24381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
   24382 $as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
   24383 if ${gl_cv_func_ldexpl_no_libm+:} false; then :
   24384   $as_echo_n "(cached) " >&6
   24385 else
   24386 
   24387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24388 /* end confdefs.h.  */
   24389 #include <math.h>
   24390              long double x;
   24391 int
   24392 main ()
   24393 {
   24394 return ldexpl (x, -1) > 0;
   24395   ;
   24396   return 0;
   24397 }
   24398 _ACEOF
   24399 if ac_fn_c_try_link "$LINENO"; then :
   24400   gl_cv_func_ldexpl_no_libm=yes
   24401 else
   24402   gl_cv_func_ldexpl_no_libm=no
   24403 fi
   24404 rm -f core conftest.err conftest.$ac_objext \
   24405     conftest$ac_exeext conftest.$ac_ext
   24406 
   24407 fi
   24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
   24409 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
   24410 
   24411     if test $gl_cv_func_ldexpl_no_libm = no; then
   24412       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used with libm" >&5
   24413 $as_echo_n "checking whether ldexpl() can be used with libm... " >&6; }
   24414 if ${gl_cv_func_ldexpl_in_libm+:} false; then :
   24415   $as_echo_n "(cached) " >&6
   24416 else
   24417 
   24418           save_LIBS="$LIBS"
   24419           LIBS="$LIBS -lm"
   24420           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24421 /* end confdefs.h.  */
   24422 #include <math.h>
   24423                  long double x;
   24424 int
   24425 main ()
   24426 {
   24427 return ldexpl (x, -1) > 0;
   24428   ;
   24429   return 0;
   24430 }
   24431 _ACEOF
   24432 if ac_fn_c_try_link "$LINENO"; then :
   24433   gl_cv_func_ldexpl_in_libm=yes
   24434 else
   24435   gl_cv_func_ldexpl_in_libm=no
   24436 fi
   24437 rm -f core conftest.err conftest.$ac_objext \
   24438     conftest$ac_exeext conftest.$ac_ext
   24439           LIBS="$save_LIBS"
   24440 
   24441 fi
   24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_in_libm" >&5
   24443 $as_echo "$gl_cv_func_ldexpl_in_libm" >&6; }
   24444       if test $gl_cv_func_ldexpl_in_libm = yes; then
   24445         LDEXPL_LIBM=-lm
   24446       fi
   24447     fi
   24448     if test $gl_cv_func_ldexpl_no_libm = yes \
   24449        || test $gl_cv_func_ldexpl_in_libm = yes; then
   24450       save_LIBS="$LIBS"
   24451       LIBS="$LIBS $LDEXPL_LIBM"
   24452 
   24453 
   24454      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
   24455 $as_echo_n "checking whether ldexpl works... " >&6; }
   24456 if ${gl_cv_func_ldexpl_works+:} false; then :
   24457   $as_echo_n "(cached) " >&6
   24458 else
   24459 
   24460       if test "$cross_compiling" = yes; then :
   24461 
   24462          case "$host_os" in
   24463            aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no";;
   24464            *)               gl_cv_func_ldexpl_works="guessing yes";;
   24465          esac
   24466 
   24467 else
   24468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24469 /* end confdefs.h.  */
   24470 
   24471 #include <math.h>
   24472 extern
   24473 #ifdef __cplusplus
   24474 "C"
   24475 #endif
   24476 long double ldexpl (long double, int);
   24477 int main()
   24478 {
   24479   int result = 0;
   24480   {
   24481     volatile long double x = 1.0;
   24482     volatile long double y = ldexpl (x, -1);
   24483     if (y != 0.5L)
   24484       result |= 1;
   24485   }
   24486   {
   24487     volatile long double x = 1.73205L;
   24488     volatile long double y = ldexpl (x, 0);
   24489     if (y != x)
   24490       result |= 2;
   24491   }
   24492   return result;
   24493 }
   24494 _ACEOF
   24495 if ac_fn_c_try_run "$LINENO"; then :
   24496   gl_cv_func_ldexpl_works=yes
   24497 else
   24498   gl_cv_func_ldexpl_works=no
   24499 fi
   24500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24501   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24502 fi
   24503 
   24504 
   24505 fi
   24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
   24507 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
   24508 
   24509       LIBS="$save_LIBS"
   24510       case "$gl_cv_func_ldexpl_works" in
   24511         *yes) gl_func_ldexpl=yes ;;
   24512         *)    gl_func_ldexpl=no; REPLACE_LDEXPL=1 ;;
   24513       esac
   24514     else
   24515       gl_func_ldexpl=no
   24516     fi
   24517     if test $gl_func_ldexpl = yes; then
   24518 
   24519 $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
   24520 
   24521     fi
   24522   fi
   24523   if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
   24524         if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
   24525 
   24526       LDEXPL_LIBM="$LDEXP_LIBM"
   24527     else
   24528       LDEXPL_LIBM="$ISNANL_LIBM"
   24529     fi
   24530   fi
   24531 
   24532 
   24533   if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
   24534 
   24535 
   24536 
   24537 
   24538 
   24539 
   24540 
   24541 
   24542   gl_LIBOBJS="$gl_LIBOBJS ldexpl.$ac_objext"
   24543 
   24544   fi
   24545 
   24546 
   24547 
   24548 
   24549 
   24550           GNULIB_LDEXPL=1
   24551 
   24552 
   24553 
   24554 
   24555 
   24556 $as_echo "#define GNULIB_TEST_LDEXPL 1" >>confdefs.h
   24557 
   24558 
   24559 
   24560 
   24561 
   24562 
   24563 
   24564 
   24565 
   24566 
   24567 
   24568   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
   24569 
   24570 
   24571 
   24572   if test "$gl_threads_api" = posix; then
   24573     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
   24574     # pthread_rwlock_* functions.
   24575     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
   24576 "
   24577 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
   24578 
   24579 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
   24580 
   24581 fi
   24582 
   24583     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
   24584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24585 /* end confdefs.h.  */
   24586 
   24587       #include <pthread.h>
   24588 int
   24589 main ()
   24590 {
   24591 
   24592 #if __FreeBSD__ == 4
   24593 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
   24594 #else
   24595 int x = (int)PTHREAD_MUTEX_RECURSIVE;
   24596 return !x;
   24597 #endif
   24598 
   24599   ;
   24600   return 0;
   24601 }
   24602 _ACEOF
   24603 if ac_fn_c_try_compile "$LINENO"; then :
   24604 
   24605 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
   24606 
   24607 fi
   24608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24609   fi
   24610   :
   24611 
   24612 
   24613 
   24614 
   24615 
   24616       for ac_header in stdlib.h
   24617 do :
   24618   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
   24619 if test "x$ac_cv_header_stdlib_h" = xyes; then :
   24620   cat >>confdefs.h <<_ACEOF
   24621 #define HAVE_STDLIB_H 1
   24622 _ACEOF
   24623 
   24624 fi
   24625 
   24626 done
   24627 
   24628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   24629 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
   24630 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
   24631   $as_echo_n "(cached) " >&6
   24632 else
   24633   if test "$cross_compiling" = yes; then :
   24634   case "$host_os" in
   24635           # Guess yes on platforms where we know the result.
   24636           *-gnu* | freebsd* | netbsd* | openbsd* \
   24637           | hpux* | solaris* | cygwin* | mingw*)
   24638             ac_cv_func_malloc_0_nonnull=yes ;;
   24639           # If we don't know, assume the worst.
   24640           *) ac_cv_func_malloc_0_nonnull=no ;;
   24641         esac
   24642 
   24643 else
   24644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24645 /* end confdefs.h.  */
   24646 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   24647             # include <stdlib.h>
   24648             #else
   24649             char *malloc ();
   24650             #endif
   24651 
   24652 int
   24653 main ()
   24654 {
   24655 return ! malloc (0);
   24656   ;
   24657   return 0;
   24658 }
   24659 
   24660 _ACEOF
   24661 if ac_fn_c_try_run "$LINENO"; then :
   24662   ac_cv_func_malloc_0_nonnull=yes
   24663 else
   24664   ac_cv_func_malloc_0_nonnull=no
   24665 fi
   24666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24667   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24668 fi
   24669 
   24670 
   24671 fi
   24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
   24673 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
   24674   if test $ac_cv_func_malloc_0_nonnull = yes; then :
   24675 
   24676 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
   24677 
   24678 else
   24679   $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
   24680 
   24681      REPLACE_MALLOC=1
   24682 
   24683 fi
   24684 
   24685 
   24686   if test $REPLACE_MALLOC = 1; then
   24687 
   24688 
   24689 
   24690 
   24691 
   24692 
   24693 
   24694 
   24695   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
   24696 
   24697   fi
   24698 
   24699 
   24700 cat >>confdefs.h <<_ACEOF
   24701 #define GNULIB_MALLOC_GNU 1
   24702 _ACEOF
   24703 
   24704 
   24705 
   24706 
   24707 
   24708   if test $gl_cv_func_malloc_posix = yes; then
   24709 
   24710 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
   24711 
   24712   else
   24713     REPLACE_MALLOC=1
   24714   fi
   24715 
   24716   if test $REPLACE_MALLOC = 1; then
   24717 
   24718 
   24719 
   24720 
   24721 
   24722 
   24723 
   24724 
   24725   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
   24726 
   24727   fi
   24728 
   24729 
   24730 
   24731 
   24732 
   24733           GNULIB_MALLOC_POSIX=1
   24734 
   24735 
   24736 
   24737 
   24738 
   24739 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
   24740 
   24741 
   24742 
   24743 
   24744 
   24745 
   24746 
   24747 
   24748 
   24749 
   24750 
   24751 
   24752 
   24753 
   24754      if test $gl_cv_have_include_next = yes; then
   24755        gl_cv_next_math_h='<'math.h'>'
   24756      else
   24757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
   24758 $as_echo_n "checking absolute name of <math.h>... " >&6; }
   24759 if ${gl_cv_next_math_h+:} false; then :
   24760   $as_echo_n "(cached) " >&6
   24761 else
   24762 
   24763              if test $ac_cv_header_math_h = yes; then
   24764 
   24765 
   24766                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24767 /* end confdefs.h.  */
   24768 #include <math.h>
   24769 
   24770 _ACEOF
   24771                                                                                                                         case "$host_os" in
   24772                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   24773                  *)    gl_absname_cpp="$ac_cpp" ;;
   24774                esac
   24775 
   24776                case "$host_os" in
   24777                  mingw*)
   24778                                                                                                                                      gl_dirsep_regex='[/\\]'
   24779                    ;;
   24780                  *)
   24781                    gl_dirsep_regex='\/'
   24782                    ;;
   24783                esac
   24784                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   24785 
   24786                gl_header_literal_regex=`echo 'math.h' \
   24787                                         | sed -e "$gl_make_literal_regex_sed"`
   24788                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   24789                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   24790                    s|^/[^/]|//&|
   24791                    p
   24792                    q
   24793                  }'
   24794                                                             gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   24795                       sed -n "$gl_absolute_header_sed"`'"'
   24796           else
   24797                gl_cv_next_math_h='<'math.h'>'
   24798              fi
   24799 
   24800 
   24801 fi
   24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
   24803 $as_echo "$gl_cv_next_math_h" >&6; }
   24804      fi
   24805      NEXT_MATH_H=$gl_cv_next_math_h
   24806 
   24807      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   24808        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   24809        gl_next_as_first_directive='<'math.h'>'
   24810      else
   24811        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   24812        gl_next_as_first_directive=$gl_cv_next_math_h
   24813      fi
   24814      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
   24815 
   24816 
   24817 
   24818 
   24819 
   24820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
   24821 $as_echo_n "checking whether NAN macro works... " >&6; }
   24822 if ${gl_cv_header_math_nan_works+:} false; then :
   24823   $as_echo_n "(cached) " >&6
   24824 else
   24825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24826 /* end confdefs.h.  */
   24827 #include <math.h>
   24828 int
   24829 main ()
   24830 {
   24831 /* Solaris 10 has a broken definition of NAN.  Other platforms
   24832         fail to provide NAN, or provide it only in C99 mode; this
   24833         test only needs to fail when NAN is provided but wrong.  */
   24834          float f = 1.0f;
   24835 #ifdef NAN
   24836          f = NAN;
   24837 #endif
   24838          return f == 0;
   24839   ;
   24840   return 0;
   24841 }
   24842 _ACEOF
   24843 if ac_fn_c_try_compile "$LINENO"; then :
   24844   gl_cv_header_math_nan_works=yes
   24845 else
   24846   gl_cv_header_math_nan_works=no
   24847 fi
   24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24849 fi
   24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
   24851 $as_echo "$gl_cv_header_math_nan_works" >&6; }
   24852   if test $gl_cv_header_math_nan_works = no; then
   24853     REPLACE_NAN=1
   24854   fi
   24855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
   24856 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
   24857 if ${gl_cv_header_math_huge_val_works+:} false; then :
   24858   $as_echo_n "(cached) " >&6
   24859 else
   24860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24861 /* end confdefs.h.  */
   24862 #include <math.h>
   24863 int
   24864 main ()
   24865 {
   24866 /* Solaris 10 has a broken definition of HUGE_VAL.  */
   24867          double d = HUGE_VAL;
   24868          return d == 0;
   24869   ;
   24870   return 0;
   24871 }
   24872 _ACEOF
   24873 if ac_fn_c_try_compile "$LINENO"; then :
   24874   gl_cv_header_math_huge_val_works=yes
   24875 else
   24876   gl_cv_header_math_huge_val_works=no
   24877 fi
   24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24879 fi
   24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
   24881 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
   24882   if test $gl_cv_header_math_huge_val_works = no; then
   24883     REPLACE_HUGE_VAL=1
   24884   fi
   24885 
   24886 
   24887     for gl_func in acosf acosl asinf asinl atanf atanl      cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf      expf expl exp2 exp2f exp2l expm1 expm1f expm1l      fabsf fabsl floorf floorl fma fmaf fmal      fmod fmodf fmodl frexpf frexpl hypotf hypotl      ilogb ilogbf ilogbl      ldexpf ldexpl      log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l      logb logbf logbl      modf modff modfl powf      remainder remainderf remainderl      rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl      tanf tanl tanhf trunc truncf truncl; do
   24888     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   24889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   24890 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   24891 if eval \${$as_gl_Symbol+:} false; then :
   24892   $as_echo_n "(cached) " >&6
   24893 else
   24894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24895 /* end confdefs.h.  */
   24896 #include <math.h>
   24897 int
   24898 main ()
   24899 {
   24900 #undef $gl_func
   24901   (void) $gl_func;
   24902   ;
   24903   return 0;
   24904 }
   24905 _ACEOF
   24906 if ac_fn_c_try_compile "$LINENO"; then :
   24907   eval "$as_gl_Symbol=yes"
   24908 else
   24909   eval "$as_gl_Symbol=no"
   24910 fi
   24911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24912 fi
   24913 eval ac_res=\$$as_gl_Symbol
   24914 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   24915 $as_echo "$ac_res" >&6; }
   24916     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   24917   cat >>confdefs.h <<_ACEOF
   24918 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   24919 _ACEOF
   24920 
   24921                      eval ac_cv_have_decl_$gl_func=yes
   24922 fi
   24923       done
   24924 
   24925 
   24926 
   24927 
   24928 
   24929 
   24930 
   24931 
   24932 
   24933 
   24934 
   24935 
   24936 
   24937 
   24938 
   24939   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
   24940 
   24941 
   24942 
   24943      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
   24944 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   24945 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
   24946   $as_echo_n "(cached) " >&6
   24947 else
   24948 
   24949                   case "$host_os" in
   24950                      # Guess no on AIX and OSF/1.
   24951         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   24952                      # Guess yes otherwise.
   24953         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   24954       esac
   24955       if test $LOCALE_JA != none; then
   24956         if test "$cross_compiling" = yes; then :
   24957   :
   24958 else
   24959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24960 /* end confdefs.h.  */
   24961 
   24962 #include <locale.h>
   24963 #include <string.h>
   24964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   24965    <wchar.h>.
   24966    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   24967    included before <wchar.h>.  */
   24968 #include <stddef.h>
   24969 #include <stdio.h>
   24970 #include <time.h>
   24971 #include <wchar.h>
   24972 int main ()
   24973 {
   24974   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   24975     {
   24976       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   24977       mbstate_t state;
   24978       wchar_t wc;
   24979 
   24980       memset (&state, '\0', sizeof (mbstate_t));
   24981       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   24982         if (mbsinit (&state))
   24983           return 1;
   24984     }
   24985   return 0;
   24986 }
   24987 _ACEOF
   24988 if ac_fn_c_try_run "$LINENO"; then :
   24989   gl_cv_func_mbrtowc_incomplete_state=yes
   24990 else
   24991   gl_cv_func_mbrtowc_incomplete_state=no
   24992 fi
   24993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24994   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24995 fi
   24996 
   24997       fi
   24998 
   24999 fi
   25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   25001 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   25002 
   25003 
   25004 
   25005 
   25006      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
   25007 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   25008 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
   25009   $as_echo_n "(cached) " >&6
   25010 else
   25011 
   25012                   case "$host_os" in
   25013                     # Guess no on Solaris 8.
   25014         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   25015                     # Guess yes otherwise.
   25016         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   25017       esac
   25018       if test $LOCALE_ZH_CN != none; then
   25019         if test "$cross_compiling" = yes; then :
   25020   :
   25021 else
   25022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25023 /* end confdefs.h.  */
   25024 
   25025 #include <locale.h>
   25026 #include <stdlib.h>
   25027 #include <string.h>
   25028 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25029    <wchar.h>.
   25030    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25031    included before <wchar.h>.  */
   25032 #include <stddef.h>
   25033 #include <stdio.h>
   25034 #include <time.h>
   25035 #include <wchar.h>
   25036 int main ()
   25037 {
   25038   /* This fails on Solaris 8:
   25039      mbrtowc returns 2, and sets wc to 0x00F0.
   25040      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   25041   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   25042     {
   25043       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   25044       mbstate_t state;
   25045       wchar_t wc;
   25046 
   25047       memset (&state, '\0', sizeof (mbstate_t));
   25048       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   25049           && mbtowc (&wc, input + 3, 6) == 4)
   25050         return 1;
   25051     }
   25052   return 0;
   25053 }
   25054 _ACEOF
   25055 if ac_fn_c_try_run "$LINENO"; then :
   25056   gl_cv_func_mbrtowc_sanitycheck=yes
   25057 else
   25058   gl_cv_func_mbrtowc_sanitycheck=no
   25059 fi
   25060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25061   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25062 fi
   25063 
   25064       fi
   25065 
   25066 fi
   25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   25068 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   25069 
   25070     REPLACE_MBSTATE_T=0
   25071     case "$gl_cv_func_mbrtowc_incomplete_state" in
   25072       *yes) ;;
   25073       *) REPLACE_MBSTATE_T=1 ;;
   25074     esac
   25075     case "$gl_cv_func_mbrtowc_sanitycheck" in
   25076       *yes) ;;
   25077       *) REPLACE_MBSTATE_T=1 ;;
   25078     esac
   25079   else
   25080     REPLACE_MBSTATE_T=1
   25081   fi
   25082 
   25083 
   25084 
   25085   if test $ac_cv_func_mbrtowc = no; then
   25086     HAVE_MBRTOWC=0
   25087     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
   25088 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25089    <wchar.h>.
   25090    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25091    included before <wchar.h>.  */
   25092 #include <stddef.h>
   25093 #include <stdio.h>
   25094 #include <time.h>
   25095 #include <wchar.h>
   25096 
   25097 "
   25098 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
   25099   ac_have_decl=1
   25100 else
   25101   ac_have_decl=0
   25102 fi
   25103 
   25104 cat >>confdefs.h <<_ACEOF
   25105 #define HAVE_DECL_MBRTOWC $ac_have_decl
   25106 _ACEOF
   25107 
   25108     if test $ac_cv_have_decl_mbrtowc = yes; then
   25109                         REPLACE_MBRTOWC=1
   25110     fi
   25111   else
   25112     if test $REPLACE_MBSTATE_T = 1; then
   25113       REPLACE_MBRTOWC=1
   25114     else
   25115 
   25116 
   25117 
   25118      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
   25119 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
   25120 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
   25121   $as_echo_n "(cached) " >&6
   25122 else
   25123 
   25124                   case "$host_os" in
   25125                   # Guess no on Solaris.
   25126         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
   25127                   # Guess yes otherwise.
   25128         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
   25129       esac
   25130       if test $LOCALE_FR_UTF8 != none; then
   25131         if test "$cross_compiling" = yes; then :
   25132   :
   25133 else
   25134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25135 /* end confdefs.h.  */
   25136 
   25137 #include <locale.h>
   25138 #include <stdlib.h>
   25139 #include <string.h>
   25140 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25141    <wchar.h>.
   25142    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25143    included before <wchar.h>.  */
   25144 #include <stddef.h>
   25145 #include <stdio.h>
   25146 #include <time.h>
   25147 #include <wchar.h>
   25148 int main ()
   25149 {
   25150   int result = 0;
   25151 
   25152   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   25153     {
   25154       char input[] = "\303\237er";
   25155       mbstate_t state;
   25156       wchar_t wc;
   25157       size_t ret;
   25158 
   25159       memset (&state, '\0', sizeof (mbstate_t));
   25160       wc = (wchar_t) 0xBADFACE;
   25161       ret = mbrtowc (&wc, input, 5, &state);
   25162       if (ret != 2)
   25163         result |= 1;
   25164       if (!mbsinit (&state))
   25165         result |= 2;
   25166 
   25167       memset (&state, '\0', sizeof (mbstate_t));
   25168       ret = mbrtowc (NULL, input, 5, &state);
   25169       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
   25170         result |= 4;
   25171       if (!mbsinit (&state))
   25172         result |= 8;
   25173     }
   25174   return result;
   25175 }
   25176 _ACEOF
   25177 if ac_fn_c_try_run "$LINENO"; then :
   25178   gl_cv_func_mbrtowc_null_arg1=yes
   25179 else
   25180   gl_cv_func_mbrtowc_null_arg1=no
   25181 fi
   25182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25183   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25184 fi
   25185 
   25186       fi
   25187 
   25188 fi
   25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
   25190 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
   25191 
   25192 
   25193 
   25194 
   25195      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
   25196 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
   25197 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
   25198   $as_echo_n "(cached) " >&6
   25199 else
   25200 
   25201                   case "$host_os" in
   25202               # Guess no on OSF/1.
   25203         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
   25204               # Guess yes otherwise.
   25205         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
   25206       esac
   25207       if test $LOCALE_FR_UTF8 != none; then
   25208         if test "$cross_compiling" = yes; then :
   25209   :
   25210 else
   25211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25212 /* end confdefs.h.  */
   25213 
   25214 #include <locale.h>
   25215 #include <string.h>
   25216 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25217    <wchar.h>.
   25218    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25219    included before <wchar.h>.  */
   25220 #include <stddef.h>
   25221 #include <stdio.h>
   25222 #include <time.h>
   25223 #include <wchar.h>
   25224 int main ()
   25225 {
   25226   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   25227     {
   25228       mbstate_t state;
   25229       wchar_t wc;
   25230       int ret;
   25231 
   25232       memset (&state, '\0', sizeof (mbstate_t));
   25233       wc = (wchar_t) 0xBADFACE;
   25234       mbrtowc (&wc, NULL, 5, &state);
   25235       /* Check that wc was not modified.  */
   25236       if (wc != (wchar_t) 0xBADFACE)
   25237         return 1;
   25238     }
   25239   return 0;
   25240 }
   25241 _ACEOF
   25242 if ac_fn_c_try_run "$LINENO"; then :
   25243   gl_cv_func_mbrtowc_null_arg2=yes
   25244 else
   25245   gl_cv_func_mbrtowc_null_arg2=no
   25246 fi
   25247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25248   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25249 fi
   25250 
   25251       fi
   25252 
   25253 fi
   25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
   25255 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
   25256 
   25257 
   25258 
   25259 
   25260 
   25261 
   25262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
   25263 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
   25264 if ${gl_cv_func_mbrtowc_retval+:} false; then :
   25265   $as_echo_n "(cached) " >&6
   25266 else
   25267 
   25268                   case "$host_os" in
   25269                                    # Guess no on HP-UX, Solaris, native Windows.
   25270         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
   25271                                    # Guess yes otherwise.
   25272         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
   25273       esac
   25274       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
   25275          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
   25276         if test "$cross_compiling" = yes; then :
   25277   :
   25278 else
   25279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25280 /* end confdefs.h.  */
   25281 
   25282 #include <locale.h>
   25283 #include <string.h>
   25284 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25285    <wchar.h>.
   25286    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25287    included before <wchar.h>.  */
   25288 #include <stddef.h>
   25289 #include <stdio.h>
   25290 #include <time.h>
   25291 #include <wchar.h>
   25292 int main ()
   25293 {
   25294   int result = 0;
   25295   int found_some_locale = 0;
   25296   /* This fails on Solaris.  */
   25297   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   25298     {
   25299       char input[] = "B\303\274\303\237er"; /* "Ber" */
   25300       mbstate_t state;
   25301       wchar_t wc;
   25302 
   25303       memset (&state, '\0', sizeof (mbstate_t));
   25304       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   25305         {
   25306           input[1] = '\0';
   25307           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
   25308             result |= 1;
   25309         }
   25310       found_some_locale = 1;
   25311     }
   25312   /* This fails on HP-UX 11.11.  */
   25313   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   25314     {
   25315       char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   25316       mbstate_t state;
   25317       wchar_t wc;
   25318 
   25319       memset (&state, '\0', sizeof (mbstate_t));
   25320       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   25321         {
   25322           input[1] = '\0';
   25323           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
   25324             result |= 2;
   25325         }
   25326       found_some_locale = 1;
   25327     }
   25328   /* This fails on native Windows.  */
   25329   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
   25330     {
   25331       char input[] = "<\223\372\226\173\214\352>"; /* "<>" */
   25332       mbstate_t state;
   25333       wchar_t wc;
   25334 
   25335       memset (&state, '\0', sizeof (mbstate_t));
   25336       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
   25337         {
   25338           input[3] = '\0';
   25339           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
   25340             result |= 4;
   25341         }
   25342       found_some_locale = 1;
   25343     }
   25344   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
   25345     {
   25346       char input[] = "<\244\351\245\273\273\171>"; /* "<>" */
   25347       mbstate_t state;
   25348       wchar_t wc;
   25349 
   25350       memset (&state, '\0', sizeof (mbstate_t));
   25351       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
   25352         {
   25353           input[3] = '\0';
   25354           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
   25355             result |= 8;
   25356         }
   25357       found_some_locale = 1;
   25358     }
   25359   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
   25360     {
   25361       char input[] = "<\310\325\261\276\325\132>"; /* "<>" */
   25362       mbstate_t state;
   25363       wchar_t wc;
   25364 
   25365       memset (&state, '\0', sizeof (mbstate_t));
   25366       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
   25367         {
   25368           input[3] = '\0';
   25369           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
   25370             result |= 16;
   25371         }
   25372       found_some_locale = 1;
   25373     }
   25374   return (found_some_locale ? result : 77);
   25375 }
   25376 _ACEOF
   25377 if ac_fn_c_try_run "$LINENO"; then :
   25378   gl_cv_func_mbrtowc_retval=yes
   25379 else
   25380   if test $? != 77; then
   25381              gl_cv_func_mbrtowc_retval=no
   25382            fi
   25383 
   25384 fi
   25385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25386   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25387 fi
   25388 
   25389       fi
   25390 
   25391 fi
   25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
   25393 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
   25394 
   25395 
   25396 
   25397 
   25398      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
   25399 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
   25400 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
   25401   $as_echo_n "(cached) " >&6
   25402 else
   25403 
   25404                   case "$host_os" in
   25405                        # Guess no on Solaris 8 and 9.
   25406         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
   25407                        # Guess yes otherwise.
   25408         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
   25409       esac
   25410       if test $LOCALE_ZH_CN != none; then
   25411         if test "$cross_compiling" = yes; then :
   25412   :
   25413 else
   25414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25415 /* end confdefs.h.  */
   25416 
   25417 #include <locale.h>
   25418 #include <string.h>
   25419 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25420    <wchar.h>.
   25421    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25422    included before <wchar.h>.  */
   25423 #include <stddef.h>
   25424 #include <stdio.h>
   25425 #include <time.h>
   25426 #include <wchar.h>
   25427 int main ()
   25428 {
   25429   /* This fails on Solaris 8 and 9.  */
   25430   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   25431     {
   25432       mbstate_t state;
   25433       wchar_t wc;
   25434 
   25435       memset (&state, '\0', sizeof (mbstate_t));
   25436       if (mbrtowc (&wc, "", 1, &state) != 0)
   25437         return 1;
   25438     }
   25439   return 0;
   25440 }
   25441 _ACEOF
   25442 if ac_fn_c_try_run "$LINENO"; then :
   25443   gl_cv_func_mbrtowc_nul_retval=yes
   25444 else
   25445   gl_cv_func_mbrtowc_nul_retval=no
   25446 fi
   25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25448   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25449 fi
   25450 
   25451       fi
   25452 
   25453 fi
   25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
   25455 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
   25456 
   25457       case "$gl_cv_func_mbrtowc_null_arg1" in
   25458         *yes) ;;
   25459         *)
   25460 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
   25461 
   25462            REPLACE_MBRTOWC=1
   25463            ;;
   25464       esac
   25465       case "$gl_cv_func_mbrtowc_null_arg2" in
   25466         *yes) ;;
   25467         *)
   25468 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
   25469 
   25470            REPLACE_MBRTOWC=1
   25471            ;;
   25472       esac
   25473       case "$gl_cv_func_mbrtowc_retval" in
   25474         *yes) ;;
   25475         *)
   25476 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
   25477 
   25478            REPLACE_MBRTOWC=1
   25479            ;;
   25480       esac
   25481       case "$gl_cv_func_mbrtowc_nul_retval" in
   25482         *yes) ;;
   25483         *)
   25484 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
   25485 
   25486            REPLACE_MBRTOWC=1
   25487            ;;
   25488       esac
   25489     fi
   25490   fi
   25491 
   25492   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
   25493 
   25494 
   25495 
   25496 
   25497 
   25498 
   25499 
   25500 
   25501   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
   25502 
   25503 
   25504   :
   25505 
   25506   fi
   25507 
   25508 
   25509 
   25510 
   25511 
   25512           GNULIB_MBRTOWC=1
   25513 
   25514 
   25515 
   25516 
   25517 
   25518 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
   25519 
   25520 
   25521 
   25522 
   25523 
   25524 
   25525 
   25526 
   25527           GNULIB_MBSCHR=1
   25528 
   25529 
   25530 
   25531 
   25532 
   25533 $as_echo "#define GNULIB_TEST_MBSCHR 1" >>confdefs.h
   25534 
   25535 
   25536 
   25537 
   25538 
   25539 
   25540 
   25541 
   25542 
   25543 
   25544 
   25545 
   25546 
   25547 
   25548   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
   25549 
   25550 
   25551 
   25552      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
   25553 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   25554 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
   25555   $as_echo_n "(cached) " >&6
   25556 else
   25557 
   25558                   case "$host_os" in
   25559                      # Guess no on AIX and OSF/1.
   25560         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   25561                      # Guess yes otherwise.
   25562         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   25563       esac
   25564       if test $LOCALE_JA != none; then
   25565         if test "$cross_compiling" = yes; then :
   25566   :
   25567 else
   25568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25569 /* end confdefs.h.  */
   25570 
   25571 #include <locale.h>
   25572 #include <string.h>
   25573 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25574    <wchar.h>.
   25575    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25576    included before <wchar.h>.  */
   25577 #include <stddef.h>
   25578 #include <stdio.h>
   25579 #include <time.h>
   25580 #include <wchar.h>
   25581 int main ()
   25582 {
   25583   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   25584     {
   25585       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   25586       mbstate_t state;
   25587       wchar_t wc;
   25588 
   25589       memset (&state, '\0', sizeof (mbstate_t));
   25590       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   25591         if (mbsinit (&state))
   25592           return 1;
   25593     }
   25594   return 0;
   25595 }
   25596 _ACEOF
   25597 if ac_fn_c_try_run "$LINENO"; then :
   25598   gl_cv_func_mbrtowc_incomplete_state=yes
   25599 else
   25600   gl_cv_func_mbrtowc_incomplete_state=no
   25601 fi
   25602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25603   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25604 fi
   25605 
   25606       fi
   25607 
   25608 fi
   25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   25610 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   25611 
   25612 
   25613 
   25614 
   25615      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
   25616 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   25617 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
   25618   $as_echo_n "(cached) " >&6
   25619 else
   25620 
   25621                   case "$host_os" in
   25622                     # Guess no on Solaris 8.
   25623         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   25624                     # Guess yes otherwise.
   25625         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   25626       esac
   25627       if test $LOCALE_ZH_CN != none; then
   25628         if test "$cross_compiling" = yes; then :
   25629   :
   25630 else
   25631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25632 /* end confdefs.h.  */
   25633 
   25634 #include <locale.h>
   25635 #include <stdlib.h>
   25636 #include <string.h>
   25637 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25638    <wchar.h>.
   25639    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25640    included before <wchar.h>.  */
   25641 #include <stddef.h>
   25642 #include <stdio.h>
   25643 #include <time.h>
   25644 #include <wchar.h>
   25645 int main ()
   25646 {
   25647   /* This fails on Solaris 8:
   25648      mbrtowc returns 2, and sets wc to 0x00F0.
   25649      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   25650   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   25651     {
   25652       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   25653       mbstate_t state;
   25654       wchar_t wc;
   25655 
   25656       memset (&state, '\0', sizeof (mbstate_t));
   25657       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   25658           && mbtowc (&wc, input + 3, 6) == 4)
   25659         return 1;
   25660     }
   25661   return 0;
   25662 }
   25663 _ACEOF
   25664 if ac_fn_c_try_run "$LINENO"; then :
   25665   gl_cv_func_mbrtowc_sanitycheck=yes
   25666 else
   25667   gl_cv_func_mbrtowc_sanitycheck=no
   25668 fi
   25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25670   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25671 fi
   25672 
   25673       fi
   25674 
   25675 fi
   25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   25677 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   25678 
   25679     REPLACE_MBSTATE_T=0
   25680     case "$gl_cv_func_mbrtowc_incomplete_state" in
   25681       *yes) ;;
   25682       *) REPLACE_MBSTATE_T=1 ;;
   25683     esac
   25684     case "$gl_cv_func_mbrtowc_sanitycheck" in
   25685       *yes) ;;
   25686       *) REPLACE_MBSTATE_T=1 ;;
   25687     esac
   25688   else
   25689     REPLACE_MBSTATE_T=1
   25690   fi
   25691 
   25692 
   25693 
   25694   if test $ac_cv_func_mbsinit = no; then
   25695     HAVE_MBSINIT=0
   25696     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
   25697 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25698    <wchar.h>.
   25699    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25700    included before <wchar.h>.  */
   25701 #include <stddef.h>
   25702 #include <stdio.h>
   25703 #include <time.h>
   25704 #include <wchar.h>
   25705 
   25706 "
   25707 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
   25708   ac_have_decl=1
   25709 else
   25710   ac_have_decl=0
   25711 fi
   25712 
   25713 cat >>confdefs.h <<_ACEOF
   25714 #define HAVE_DECL_MBSINIT $ac_have_decl
   25715 _ACEOF
   25716 
   25717     if test $ac_cv_have_decl_mbsinit = yes; then
   25718                         REPLACE_MBSINIT=1
   25719     fi
   25720   else
   25721     if test $REPLACE_MBSTATE_T = 1; then
   25722       REPLACE_MBSINIT=1
   25723     else
   25724                         case "$host_os" in
   25725         mingw*) REPLACE_MBSINIT=1 ;;
   25726       esac
   25727     fi
   25728   fi
   25729 
   25730   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
   25731 
   25732 
   25733 
   25734 
   25735 
   25736 
   25737 
   25738 
   25739   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
   25740 
   25741 
   25742   :
   25743 
   25744   fi
   25745 
   25746 
   25747 
   25748 
   25749 
   25750           GNULIB_MBSINIT=1
   25751 
   25752 
   25753 
   25754 
   25755 
   25756 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
   25757 
   25758 
   25759 
   25760 
   25761 
   25762 
   25763 
   25764 
   25765           GNULIB_MBSRCHR=1
   25766 
   25767 
   25768 
   25769 
   25770 
   25771 $as_echo "#define GNULIB_TEST_MBSRCHR 1" >>confdefs.h
   25772 
   25773 
   25774 
   25775 
   25776 
   25777 
   25778 
   25779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
   25780 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
   25781 if ${ac_cv_have_decl_mbswidth+:} false; then :
   25782   $as_echo_n "(cached) " >&6
   25783 else
   25784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25785 /* end confdefs.h.  */
   25786 
   25787 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25788    <wchar.h>.
   25789    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   25790    before <wchar.h>.  */
   25791 #include <stddef.h>
   25792 #include <stdio.h>
   25793 #include <time.h>
   25794 #include <wchar.h>
   25795 
   25796 int
   25797 main ()
   25798 {
   25799 
   25800   char *p = (char *) mbswidth;
   25801   return !p;
   25802 
   25803   ;
   25804   return 0;
   25805 }
   25806 _ACEOF
   25807 if ac_fn_c_try_compile "$LINENO"; then :
   25808   ac_cv_have_decl_mbswidth=yes
   25809 else
   25810   ac_cv_have_decl_mbswidth=no
   25811 fi
   25812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25813 fi
   25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
   25815 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
   25816   if test $ac_cv_have_decl_mbswidth = yes; then
   25817     ac_val=1
   25818   else
   25819     ac_val=0
   25820   fi
   25821 
   25822 cat >>confdefs.h <<_ACEOF
   25823 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
   25824 _ACEOF
   25825 
   25826 
   25827 
   25828 
   25829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
   25830 $as_echo_n "checking for mbstate_t... " >&6; }
   25831 if ${ac_cv_type_mbstate_t+:} false; then :
   25832   $as_echo_n "(cached) " >&6
   25833 else
   25834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25835 /* end confdefs.h.  */
   25836 $ac_includes_default
   25837 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   25838    <wchar.h>.
   25839    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   25840    included before <wchar.h>.  */
   25841 #include <stddef.h>
   25842 #include <stdio.h>
   25843 #include <time.h>
   25844 #include <wchar.h>
   25845 int
   25846 main ()
   25847 {
   25848 mbstate_t x; return sizeof x;
   25849   ;
   25850   return 0;
   25851 }
   25852 _ACEOF
   25853 if ac_fn_c_try_compile "$LINENO"; then :
   25854   ac_cv_type_mbstate_t=yes
   25855 else
   25856   ac_cv_type_mbstate_t=no
   25857 fi
   25858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25859 fi
   25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
   25861 $as_echo "$ac_cv_type_mbstate_t" >&6; }
   25862    if test $ac_cv_type_mbstate_t = yes; then
   25863 
   25864 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
   25865 
   25866    else
   25867 
   25868 $as_echo "#define mbstate_t int" >>confdefs.h
   25869 
   25870    fi
   25871 
   25872 
   25873 
   25874 
   25875   :
   25876 
   25877 
   25878   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
   25879 
   25880 
   25881 
   25882 
   25883 
   25884 
   25885 
   25886 
   25887   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
   25888 
   25889 
   25890   for ac_header in bp-sym.h
   25891 do :
   25892   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
   25893 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
   25894   cat >>confdefs.h <<_ACEOF
   25895 #define HAVE_BP_SYM_H 1
   25896 _ACEOF
   25897 
   25898 fi
   25899 
   25900 done
   25901 
   25902 
   25903   fi
   25904 
   25905 
   25906 
   25907 
   25908 
   25909           GNULIB_MEMCHR=1
   25910 
   25911 
   25912 
   25913 
   25914 
   25915 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
   25916 
   25917 
   25918 
   25919 
   25920 
   25921   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
   25922     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
   25923 
   25924 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
   25925 
   25926   else
   25927     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
   25928   fi
   25929 
   25930 
   25931   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   25932 
   25933 
   25934 
   25935 
   25936 
   25937 
   25938 
   25939 
   25940   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
   25941 
   25942   fi
   25943 
   25944 
   25945 
   25946   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   25947 
   25948 
   25949 
   25950 
   25951 
   25952 
   25953 
   25954 
   25955   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
   25956 
   25957   fi
   25958 
   25959 
   25960 
   25961 
   25962 
   25963 
   25964 
   25965 
   25966 
   25967 
   25968 
   25969 
   25970 
   25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
   25972 $as_echo_n "checking for obstacks... " >&6; }
   25973 if ${ac_cv_func_obstack+:} false; then :
   25974   $as_echo_n "(cached) " >&6
   25975 else
   25976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25977 /* end confdefs.h.  */
   25978 $ac_includes_default
   25979 		      #include "obstack.h"
   25980 int
   25981 main ()
   25982 {
   25983 struct obstack mem;
   25984 		       #define obstack_chunk_alloc malloc
   25985 		       #define obstack_chunk_free free
   25986 		       obstack_init (&mem);
   25987 		       obstack_free (&mem, 0);
   25988   ;
   25989   return 0;
   25990 }
   25991 _ACEOF
   25992 if ac_fn_c_try_link "$LINENO"; then :
   25993   ac_cv_func_obstack=yes
   25994 else
   25995   ac_cv_func_obstack=no
   25996 fi
   25997 rm -f core conftest.err conftest.$ac_objext \
   25998     conftest$ac_exeext conftest.$ac_ext
   25999 fi
   26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
   26001 $as_echo "$ac_cv_func_obstack" >&6; }
   26002 if test $ac_cv_func_obstack = yes; then
   26003 
   26004 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
   26005 
   26006 else
   26007 
   26008 
   26009 
   26010 
   26011 
   26012 
   26013 
   26014 
   26015   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
   26016 
   26017 fi
   26018 
   26019 
   26020 
   26021 
   26022 
   26023 
   26024   if test $ac_cv_func_obstack_printf = no ; then
   26025 
   26026 
   26027   if test $ac_cv_func_obstack_printf = yes; then
   26028     REPLACE_OBSTACK_PRINTF=1
   26029   fi
   26030 
   26031   fi
   26032 
   26033 
   26034 
   26035   if test $ac_cv_have_decl_obstack_printf = no; then
   26036     HAVE_DECL_OBSTACK_PRINTF=0
   26037   fi
   26038 
   26039 
   26040   if test $ac_cv_func_obstack_printf = no || test $REPLACE_OBSTACK_PRINTF = 1; then
   26041 
   26042 
   26043 
   26044 
   26045 
   26046 
   26047 
   26048 
   26049   gl_LIBOBJS="$gl_LIBOBJS obstack_printf.$ac_objext"
   26050 
   26051   fi
   26052 
   26053 
   26054 
   26055 
   26056 
   26057           GNULIB_OBSTACK_PRINTF=1
   26058 
   26059 
   26060 
   26061 
   26062 
   26063 $as_echo "#define GNULIB_TEST_OBSTACK_PRINTF 1" >>confdefs.h
   26064 
   26065 
   26066 
   26067 
   26068 
   26069   case "$host_os" in
   26070     mingw* | pw*)
   26071       REPLACE_OPEN=1
   26072       ;;
   26073     *)
   26074 
   26075       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
   26076 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
   26077 if ${gl_cv_func_open_slash+:} false; then :
   26078   $as_echo_n "(cached) " >&6
   26079 else
   26080   # Assume that if we have lstat, we can also check symlinks.
   26081           if test $ac_cv_func_lstat = yes; then
   26082             touch conftest.tmp
   26083             ln -s conftest.tmp conftest.lnk
   26084           fi
   26085           if test "$cross_compiling" = yes; then :
   26086 
   26087              case "$host_os" in
   26088                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
   26089                  gl_cv_func_open_slash="guessing no" ;;
   26090                *)
   26091                  gl_cv_func_open_slash="guessing yes" ;;
   26092              esac
   26093 
   26094 else
   26095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26096 /* end confdefs.h.  */
   26097 
   26098 #include <fcntl.h>
   26099 #if HAVE_UNISTD_H
   26100 # include <unistd.h>
   26101 #endif
   26102 int main ()
   26103 {
   26104   int result = 0;
   26105 #if HAVE_LSTAT
   26106   if (open ("conftest.lnk/", O_RDONLY) != -1)
   26107     result |= 1;
   26108 #endif
   26109   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
   26110     result |= 2;
   26111   return result;
   26112 }
   26113 _ACEOF
   26114 if ac_fn_c_try_run "$LINENO"; then :
   26115   gl_cv_func_open_slash=yes
   26116 else
   26117   gl_cv_func_open_slash=no
   26118 fi
   26119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26120   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26121 fi
   26122 
   26123           rm -f conftest.sl conftest.tmp conftest.lnk
   26124 
   26125 fi
   26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
   26127 $as_echo "$gl_cv_func_open_slash" >&6; }
   26128       case "$gl_cv_func_open_slash" in
   26129         *no)
   26130 
   26131 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
   26132 
   26133           REPLACE_OPEN=1
   26134           ;;
   26135       esac
   26136       ;;
   26137   esac
   26138 
   26139 
   26140 
   26141   if test $REPLACE_OPEN = 1; then
   26142 
   26143 
   26144 
   26145 
   26146 
   26147 
   26148 
   26149 
   26150   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
   26151 
   26152 
   26153 
   26154   :
   26155 
   26156   fi
   26157 
   26158 
   26159 
   26160 
   26161 
   26162           GNULIB_OPEN=1
   26163 
   26164 
   26165 
   26166 
   26167 
   26168 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
   26169 
   26170 
   26171 
   26172 
   26173 
   26174 
   26175 
   26176 
   26177 
   26178 
   26179 
   26180           if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
   26181             REPLACE_PERROR=1
   26182   fi
   26183   case ${gl_cv_func_strerror_r_works-unset} in
   26184     unset|*yes)
   26185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
   26186 $as_echo_n "checking whether perror matches strerror... " >&6; }
   26187 if ${gl_cv_func_perror_works+:} false; then :
   26188   $as_echo_n "(cached) " >&6
   26189 else
   26190   if test "$cross_compiling" = yes; then :
   26191               gl_cv_func_perror_works="guessing no"
   26192 
   26193 else
   26194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26195 /* end confdefs.h.  */
   26196 #include <errno.h>
   26197                 #include <stdio.h>
   26198                 #include <stdlib.h>
   26199                 #include <string.h>
   26200 
   26201 int
   26202 main ()
   26203 {
   26204 char *str = strerror (-1);
   26205                 if (!getenv("CONFTEST_OUTPUT")) return 0;
   26206                 if (!str) str = "";
   26207                 puts (str);
   26208                 errno = -1;
   26209                 perror ("");
   26210                 return 0;
   26211 
   26212   ;
   26213   return 0;
   26214 }
   26215 _ACEOF
   26216 if ac_fn_c_try_run "$LINENO"; then :
   26217   if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
   26218                && cmp conftest.txt1 conftest.txt2 >/dev/null; then
   26219               gl_cv_func_perror_works=yes
   26220             else
   26221               gl_cv_func_perror_works=no
   26222             fi
   26223             rm -rf conftest.txt1 conftest.txt2
   26224 else
   26225   gl_cv_func_perror_works=no
   26226 fi
   26227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26228   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26229 fi
   26230 
   26231 
   26232 fi
   26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
   26234 $as_echo "$gl_cv_func_perror_works" >&6; }
   26235       if test "$gl_cv_func_perror_works" != yes; then
   26236         REPLACE_PERROR=1
   26237       fi
   26238       ;;
   26239     *)
   26240                   REPLACE_PERROR=1
   26241       ;;
   26242   esac
   26243 
   26244   if test $REPLACE_PERROR = 1; then
   26245 
   26246 
   26247 
   26248 
   26249 
   26250 
   26251 
   26252 
   26253   gl_LIBOBJS="$gl_LIBOBJS perror.$ac_objext"
   26254 
   26255   fi
   26256 
   26257 
   26258 
   26259 
   26260 
   26261           GNULIB_PERROR=1
   26262 
   26263 
   26264 
   26265 
   26266 
   26267 $as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h
   26268 
   26269 
   26270 
   26271 
   26272 
   26273 
   26274 
   26275 
   26276 
   26277   if test $ac_cv_func_pipe2 != yes; then
   26278     HAVE_PIPE2=0
   26279   fi
   26280 
   26281 
   26282 
   26283 
   26284 
   26285 
   26286           GNULIB_PIPE2=1
   26287 
   26288 
   26289 
   26290 
   26291 
   26292 $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
   26293 
   26294 
   26295 
   26296 
   26297 
   26298 cat >>confdefs.h <<_ACEOF
   26299 #define GNULIB_PIPE2_SAFER 1
   26300 _ACEOF
   26301 
   26302 
   26303 
   26304 
   26305 
   26306 
   26307 
   26308 
   26309   if test $REPLACE_POSIX_SPAWN = 1; then
   26310     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
   26311   else
   26312             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addclose works" >&5
   26313 $as_echo_n "checking whether posix_spawn_file_actions_addclose works... " >&6; }
   26314 if ${gl_cv_func_posix_spawn_file_actions_addclose_works+:} false; then :
   26315   $as_echo_n "(cached) " >&6
   26316 else
   26317   if test "$cross_compiling" = yes; then :
   26318   # Guess no on Solaris, yes otherwise.
   26319           case "$host_os" in
   26320             solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no";;
   26321             *)        gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes";;
   26322           esac
   26323 
   26324 else
   26325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26326 /* end confdefs.h.  */
   26327 
   26328 #include <spawn.h>
   26329 int main ()
   26330 {
   26331   posix_spawn_file_actions_t actions;
   26332   if (posix_spawn_file_actions_init (&actions) != 0)
   26333     return 1;
   26334   if (posix_spawn_file_actions_addclose (&actions, 10000000) == 0)
   26335     return 2;
   26336   return 0;
   26337 }
   26338 _ACEOF
   26339 if ac_fn_c_try_run "$LINENO"; then :
   26340   gl_cv_func_posix_spawn_file_actions_addclose_works=yes
   26341 else
   26342   gl_cv_func_posix_spawn_file_actions_addclose_works=no
   26343 fi
   26344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26345   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26346 fi
   26347 
   26348 
   26349 fi
   26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addclose_works" >&5
   26351 $as_echo "$gl_cv_func_posix_spawn_file_actions_addclose_works" >&6; }
   26352     case "$gl_cv_func_posix_spawn_file_actions_addclose_works" in
   26353       *yes) ;;
   26354       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1 ;;
   26355     esac
   26356   fi
   26357 
   26358   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
   26359 
   26360 
   26361 
   26362 
   26363 
   26364 
   26365 
   26366 
   26367   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext"
   26368 
   26369   fi
   26370 
   26371 
   26372 
   26373 
   26374 
   26375           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
   26376 
   26377 
   26378 
   26379 
   26380 
   26381 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h
   26382 
   26383 
   26384 
   26385 
   26386 
   26387 
   26388 
   26389 
   26390 
   26391   if test $REPLACE_POSIX_SPAWN = 1; then
   26392     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
   26393   else
   26394             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_adddup2 works" >&5
   26395 $as_echo_n "checking whether posix_spawn_file_actions_adddup2 works... " >&6; }
   26396 if ${gl_cv_func_posix_spawn_file_actions_adddup2_works+:} false; then :
   26397   $as_echo_n "(cached) " >&6
   26398 else
   26399   if test "$cross_compiling" = yes; then :
   26400   # Guess no on Solaris, yes otherwise.
   26401           case "$host_os" in
   26402             solaris*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
   26403             *)        gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing yes";;
   26404           esac
   26405 
   26406 else
   26407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26408 /* end confdefs.h.  */
   26409 
   26410 #include <spawn.h>
   26411 int main ()
   26412 {
   26413   posix_spawn_file_actions_t actions;
   26414   if (posix_spawn_file_actions_init (&actions) != 0)
   26415     return 1;
   26416   if (posix_spawn_file_actions_adddup2 (&actions, 10000000, 2) == 0)
   26417     return 2;
   26418   return 0;
   26419 }
   26420 _ACEOF
   26421 if ac_fn_c_try_run "$LINENO"; then :
   26422   gl_cv_func_posix_spawn_file_actions_adddup2_works=yes
   26423 else
   26424   gl_cv_func_posix_spawn_file_actions_adddup2_works=no
   26425 fi
   26426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26427   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26428 fi
   26429 
   26430 
   26431 fi
   26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_adddup2_works" >&5
   26433 $as_echo "$gl_cv_func_posix_spawn_file_actions_adddup2_works" >&6; }
   26434     case "$gl_cv_func_posix_spawn_file_actions_adddup2_works" in
   26435       *yes) ;;
   26436       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1 ;;
   26437     esac
   26438   fi
   26439 
   26440   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
   26441 
   26442 
   26443 
   26444 
   26445 
   26446 
   26447 
   26448 
   26449   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext"
   26450 
   26451   fi
   26452 
   26453 
   26454 
   26455 
   26456 
   26457           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
   26458 
   26459 
   26460 
   26461 
   26462 
   26463 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h
   26464 
   26465 
   26466 
   26467 
   26468 
   26469 
   26470 
   26471 
   26472 
   26473   if test $REPLACE_POSIX_SPAWN = 1; then
   26474     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
   26475   else
   26476             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addopen works" >&5
   26477 $as_echo_n "checking whether posix_spawn_file_actions_addopen works... " >&6; }
   26478 if ${gl_cv_func_posix_spawn_file_actions_addopen_works+:} false; then :
   26479   $as_echo_n "(cached) " >&6
   26480 else
   26481   if test "$cross_compiling" = yes; then :
   26482   # Guess no on Solaris, yes otherwise.
   26483           case "$host_os" in
   26484             solaris*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
   26485             *)        gl_cv_func_posix_spawn_file_actions_addopen_works="guessing yes";;
   26486           esac
   26487 
   26488 else
   26489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26490 /* end confdefs.h.  */
   26491 
   26492 #include <spawn.h>
   26493 #include <fcntl.h>
   26494 int main ()
   26495 {
   26496   posix_spawn_file_actions_t actions;
   26497   if (posix_spawn_file_actions_init (&actions) != 0)
   26498     return 1;
   26499   if (posix_spawn_file_actions_addopen (&actions, 10000000, "foo", 0, O_RDONLY)
   26500       == 0)
   26501     return 2;
   26502   return 0;
   26503 }
   26504 _ACEOF
   26505 if ac_fn_c_try_run "$LINENO"; then :
   26506   gl_cv_func_posix_spawn_file_actions_addopen_works=yes
   26507 else
   26508   gl_cv_func_posix_spawn_file_actions_addopen_works=no
   26509 fi
   26510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26511   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26512 fi
   26513 
   26514 
   26515 fi
   26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addopen_works" >&5
   26517 $as_echo "$gl_cv_func_posix_spawn_file_actions_addopen_works" >&6; }
   26518     case "$gl_cv_func_posix_spawn_file_actions_addopen_works" in
   26519       *yes) ;;
   26520       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1 ;;
   26521     esac
   26522   fi
   26523 
   26524   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
   26525 
   26526 
   26527 
   26528 
   26529 
   26530 
   26531 
   26532 
   26533   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext"
   26534 
   26535   fi
   26536 
   26537 
   26538 
   26539 
   26540 
   26541           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
   26542 
   26543 
   26544 
   26545 
   26546 
   26547 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h
   26548 
   26549 
   26550 
   26551 
   26552 
   26553 
   26554   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26555 
   26556 
   26557 
   26558 
   26559 
   26560 
   26561 
   26562 
   26563   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext"
   26564 
   26565   fi
   26566 
   26567 
   26568 
   26569 
   26570 
   26571           GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1
   26572 
   26573 
   26574 
   26575 
   26576 
   26577 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h
   26578 
   26579 
   26580 
   26581 
   26582 
   26583 
   26584   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26585 
   26586 
   26587 
   26588 
   26589 
   26590 
   26591 
   26592 
   26593   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext"
   26594 
   26595   fi
   26596 
   26597 
   26598 
   26599 
   26600 
   26601           GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1
   26602 
   26603 
   26604 
   26605 
   26606 
   26607 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h
   26608 
   26609 
   26610 
   26611 
   26612 
   26613 
   26614   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26615 
   26616 
   26617 
   26618 
   26619 
   26620 
   26621 
   26622 
   26623   gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext"
   26624 
   26625   fi
   26626 
   26627 
   26628 
   26629 
   26630 
   26631           GNULIB_POSIX_SPAWNATTR_DESTROY=1
   26632 
   26633 
   26634 
   26635 
   26636 
   26637 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h
   26638 
   26639 
   26640 
   26641 
   26642 
   26643 
   26644   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26645 
   26646 
   26647 
   26648 
   26649 
   26650 
   26651 
   26652 
   26653   gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext"
   26654 
   26655   fi
   26656 
   26657 
   26658 
   26659 
   26660 
   26661           GNULIB_POSIX_SPAWNATTR_INIT=1
   26662 
   26663 
   26664 
   26665 
   26666 
   26667 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h
   26668 
   26669 
   26670 
   26671 
   26672 
   26673 
   26674   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26675 
   26676 
   26677 
   26678 
   26679 
   26680 
   26681 
   26682 
   26683   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext"
   26684 
   26685   fi
   26686 
   26687 
   26688 
   26689 
   26690 
   26691           GNULIB_POSIX_SPAWNATTR_SETFLAGS=1
   26692 
   26693 
   26694 
   26695 
   26696 
   26697 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h
   26698 
   26699 
   26700 
   26701 
   26702 
   26703 
   26704   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26705 
   26706 
   26707 
   26708 
   26709 
   26710 
   26711 
   26712 
   26713   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext"
   26714 
   26715   fi
   26716 
   26717 
   26718 
   26719 
   26720 
   26721           GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1
   26722 
   26723 
   26724 
   26725 
   26726 
   26727 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
   26728 
   26729 
   26730 
   26731 
   26732 
   26733 
   26734   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   26735 
   26736 
   26737 
   26738 
   26739 
   26740 
   26741 
   26742 
   26743   gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext"
   26744 
   26745 
   26746 
   26747 
   26748 
   26749 
   26750 
   26751 
   26752 
   26753   gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext"
   26754 
   26755 
   26756   for ac_header in paths.h
   26757 do :
   26758   ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
   26759 if test "x$ac_cv_header_paths_h" = xyes; then :
   26760   cat >>confdefs.h <<_ACEOF
   26761 #define HAVE_PATHS_H 1
   26762 _ACEOF
   26763 
   26764 fi
   26765 
   26766 done
   26767 
   26768   for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork
   26769 do :
   26770   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   26772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   26773   cat >>confdefs.h <<_ACEOF
   26774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26775 _ACEOF
   26776 
   26777 fi
   26778 done
   26779 
   26780 
   26781   fi
   26782 
   26783 
   26784 
   26785 
   26786 
   26787           GNULIB_POSIX_SPAWNP=1
   26788 
   26789 
   26790 
   26791 
   26792 
   26793 $as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h
   26794 
   26795 
   26796 
   26797 
   26798 
   26799   if test $gl_cv_func_frexp_no_libm = yes; then
   26800 
   26801 
   26802 
   26803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
   26804 $as_echo_n "checking whether frexp works... " >&6; }
   26805 if ${gl_cv_func_frexp_works+:} false; then :
   26806   $as_echo_n "(cached) " >&6
   26807 else
   26808 
   26809       if test "$cross_compiling" = yes; then :
   26810   case "$host_os" in
   26811            netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
   26812            *)                        gl_cv_func_frexp_works="guessing yes";;
   26813          esac
   26814 
   26815 else
   26816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26817 /* end confdefs.h.  */
   26818 
   26819 #include <float.h>
   26820 #include <math.h>
   26821 #include <string.h>
   26822 #if HAVE_ALARM
   26823 # include <unistd.h>
   26824 #endif
   26825 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
   26826    ICC 10.0 has a bug when optimizing the expression -zero.
   26827    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
   26828    to PowerPC on Mac OS X 10.5.  */
   26829 #if defined __hpux || defined __sgi || defined __ICC
   26830 static double
   26831 compute_minus_zero (void)
   26832 {
   26833   return -DBL_MIN * DBL_MIN;
   26834 }
   26835 # define minus_zero compute_minus_zero ()
   26836 #else
   26837 double minus_zero = -0.0;
   26838 #endif
   26839 int main()
   26840 {
   26841   int result = 0;
   26842   int i;
   26843   volatile double x;
   26844   double zero = 0.0;
   26845 #if HAVE_ALARM
   26846   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
   26847      number.  Let the test fail in this case.  */
   26848   alarm (5);
   26849 #endif
   26850   /* Test on denormalized numbers.  */
   26851   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
   26852     ;
   26853   if (x > 0.0)
   26854     {
   26855       int exp;
   26856       double y = frexp (x, &exp);
   26857       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
   26858          On NetBSD: y = 0.75. Correct: y = 0.5.  */
   26859       if (y != 0.5)
   26860         result |= 1;
   26861     }
   26862   /* Test on infinite numbers.  */
   26863   x = 1.0 / zero;
   26864   {
   26865     int exp;
   26866     double y = frexp (x, &exp);
   26867     if (y != x)
   26868       result |= 2;
   26869   }
   26870   /* Test on negative zero.  */
   26871   x = minus_zero;
   26872   {
   26873     int exp;
   26874     double y = frexp (x, &exp);
   26875     if (memcmp (&y, &x, sizeof x))
   26876       result |= 4;
   26877   }
   26878   return result;
   26879 }
   26880 _ACEOF
   26881 if ac_fn_c_try_run "$LINENO"; then :
   26882   gl_cv_func_frexp_works=yes
   26883 else
   26884   gl_cv_func_frexp_works=no
   26885 fi
   26886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26887   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26888 fi
   26889 
   26890 
   26891 fi
   26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
   26893 $as_echo "$gl_cv_func_frexp_works" >&6; }
   26894 
   26895     case "$gl_cv_func_frexp_works" in
   26896       *yes)
   26897 
   26898 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
   26899 
   26900         ;;
   26901     esac
   26902   fi
   26903 
   26904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
   26905 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
   26906 if ${gl_cv_func_ldexp_no_libm+:} false; then :
   26907   $as_echo_n "(cached) " >&6
   26908 else
   26909 
   26910       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26911 /* end confdefs.h.  */
   26912 #include <math.h>
   26913              double x;
   26914              int y;
   26915 int
   26916 main ()
   26917 {
   26918 return ldexp (x, y) < 1;
   26919   ;
   26920   return 0;
   26921 }
   26922 _ACEOF
   26923 if ac_fn_c_try_link "$LINENO"; then :
   26924   gl_cv_func_ldexp_no_libm=yes
   26925 else
   26926   gl_cv_func_ldexp_no_libm=no
   26927 fi
   26928 rm -f core conftest.err conftest.$ac_objext \
   26929     conftest$ac_exeext conftest.$ac_ext
   26930 
   26931 fi
   26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
   26933 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
   26934   if test $gl_cv_func_ldexp_no_libm = yes; then
   26935 
   26936 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
   26937 
   26938   fi
   26939 
   26940 
   26941 
   26942 
   26943 
   26944 
   26945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
   26946 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
   26947 if ${gl_cv_func_frexpl_no_libm+:} false; then :
   26948   $as_echo_n "(cached) " >&6
   26949 else
   26950 
   26951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26952 /* end confdefs.h.  */
   26953 #include <math.h>
   26954              long double x;
   26955 int
   26956 main ()
   26957 {
   26958 int e; return frexpl (x, &e) > 0;
   26959   ;
   26960   return 0;
   26961 }
   26962 _ACEOF
   26963 if ac_fn_c_try_link "$LINENO"; then :
   26964   gl_cv_func_frexpl_no_libm=yes
   26965 else
   26966   gl_cv_func_frexpl_no_libm=no
   26967 fi
   26968 rm -f core conftest.err conftest.$ac_objext \
   26969     conftest$ac_exeext conftest.$ac_ext
   26970 
   26971 fi
   26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
   26973 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
   26974 
   26975   if test $gl_cv_func_frexpl_no_libm = yes; then
   26976 
   26977 
   26978      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
   26979 $as_echo_n "checking whether frexpl works... " >&6; }
   26980 if ${gl_cv_func_frexpl_works+:} false; then :
   26981   $as_echo_n "(cached) " >&6
   26982 else
   26983 
   26984       if test "$cross_compiling" = yes; then :
   26985 
   26986          case "$host_os" in
   26987            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
   26988               gl_cv_func_frexpl_works="guessing no";;
   26989            *) gl_cv_func_frexpl_works="guessing yes";;
   26990          esac
   26991 
   26992 else
   26993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26994 /* end confdefs.h.  */
   26995 
   26996 #include <float.h>
   26997 #include <math.h>
   26998 /* Override the values of <float.h>, like done in float.in.h.  */
   26999 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
   27000 # undef LDBL_MIN_EXP
   27001 # define LDBL_MIN_EXP    (-16381)
   27002 #endif
   27003 #if defined __i386__ && defined __FreeBSD__
   27004 # undef LDBL_MIN_EXP
   27005 # define LDBL_MIN_EXP    (-16381)
   27006 #endif
   27007 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
   27008 # undef LDBL_MIN_EXP
   27009 # define LDBL_MIN_EXP DBL_MIN_EXP
   27010 #endif
   27011 #if defined __sgi && (LDBL_MANT_DIG >= 106)
   27012 # if defined __GNUC__
   27013 #  undef LDBL_MIN_EXP
   27014 #  define LDBL_MIN_EXP DBL_MIN_EXP
   27015 # endif
   27016 #endif
   27017 extern
   27018 #ifdef __cplusplus
   27019 "C"
   27020 #endif
   27021 long double frexpl (long double, int *);
   27022 int main()
   27023 {
   27024   int result = 0;
   27025   volatile long double x;
   27026   /* Test on finite numbers that fails on AIX 5.1.  */
   27027   x = 16.0L;
   27028   {
   27029     int exp = -9999;
   27030     frexpl (x, &exp);
   27031     if (exp != 5)
   27032       result |= 1;
   27033   }
   27034   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
   27035      function returns an invalid (incorrectly normalized) value: it returns
   27036                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
   27037      but the correct result is
   27038           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
   27039   x = 1.01L;
   27040   {
   27041     int exp = -9999;
   27042     long double y = frexpl (x, &exp);
   27043     if (!(exp == 1 && y == 0.505L))
   27044       result |= 2;
   27045   }
   27046   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
   27047      LDBL_MAX_EXP = 16384.
   27048      In the loop end test, we test x against Infinity, rather than comparing
   27049      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
   27050   {
   27051     int i;
   27052     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
   27053       {
   27054         int exp = -9999;
   27055         frexpl (x, &exp);
   27056         if (exp != i)
   27057           {
   27058             result |= 4;
   27059             break;
   27060           }
   27061       }
   27062   }
   27063   /* Test on denormalized numbers.  */
   27064   {
   27065     int i;
   27066     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
   27067       ;
   27068     if (x > 0.0L)
   27069       {
   27070         int exp;
   27071         long double y = frexpl (x, &exp);
   27072         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
   27073            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
   27074         if (exp != LDBL_MIN_EXP - 1)
   27075           result |= 8;
   27076       }
   27077   }
   27078   /* Test on infinite numbers.  */
   27079   x = 1.0L / 0.0L;
   27080   {
   27081     int exp;
   27082     long double y = frexpl (x, &exp);
   27083     if (y != x)
   27084       result |= 16;
   27085   }
   27086   return result;
   27087 }
   27088 _ACEOF
   27089 if ac_fn_c_try_run "$LINENO"; then :
   27090   gl_cv_func_frexpl_works=yes
   27091 else
   27092   gl_cv_func_frexpl_works=no
   27093 fi
   27094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27095   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27096 fi
   27097 
   27098 
   27099 fi
   27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
   27101 $as_echo "$gl_cv_func_frexpl_works" >&6; }
   27102 
   27103     case "$gl_cv_func_frexpl_works" in
   27104       *yes) gl_func_frexpl_no_libm=yes ;;
   27105       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
   27106     esac
   27107   else
   27108     gl_func_frexpl_no_libm=no
   27109         REPLACE_FREXPL=1
   27110   fi
   27111   if test $gl_func_frexpl_no_libm = yes; then
   27112 
   27113 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
   27114 
   27115             ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
   27116 "
   27117 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
   27118 
   27119 else
   27120   HAVE_DECL_FREXPL=0
   27121 fi
   27122 
   27123   fi
   27124 
   27125 
   27126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
   27127 $as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
   27128 if ${gl_cv_func_ldexpl_no_libm+:} false; then :
   27129   $as_echo_n "(cached) " >&6
   27130 else
   27131 
   27132       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27133 /* end confdefs.h.  */
   27134 #include <math.h>
   27135              long double x;
   27136 int
   27137 main ()
   27138 {
   27139 return ldexpl (x, -1) > 0;
   27140   ;
   27141   return 0;
   27142 }
   27143 _ACEOF
   27144 if ac_fn_c_try_link "$LINENO"; then :
   27145   gl_cv_func_ldexpl_no_libm=yes
   27146 else
   27147   gl_cv_func_ldexpl_no_libm=no
   27148 fi
   27149 rm -f core conftest.err conftest.$ac_objext \
   27150     conftest$ac_exeext conftest.$ac_ext
   27151 
   27152 fi
   27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
   27154 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
   27155 
   27156   if test $gl_cv_func_ldexpl_no_libm = yes; then
   27157 
   27158 
   27159      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
   27160 $as_echo_n "checking whether ldexpl works... " >&6; }
   27161 if ${gl_cv_func_ldexpl_works+:} false; then :
   27162   $as_echo_n "(cached) " >&6
   27163 else
   27164 
   27165       if test "$cross_compiling" = yes; then :
   27166 
   27167          case "$host_os" in
   27168            aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no";;
   27169            *)               gl_cv_func_ldexpl_works="guessing yes";;
   27170          esac
   27171 
   27172 else
   27173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27174 /* end confdefs.h.  */
   27175 
   27176 #include <math.h>
   27177 extern
   27178 #ifdef __cplusplus
   27179 "C"
   27180 #endif
   27181 long double ldexpl (long double, int);
   27182 int main()
   27183 {
   27184   int result = 0;
   27185   {
   27186     volatile long double x = 1.0;
   27187     volatile long double y = ldexpl (x, -1);
   27188     if (y != 0.5L)
   27189       result |= 1;
   27190   }
   27191   {
   27192     volatile long double x = 1.73205L;
   27193     volatile long double y = ldexpl (x, 0);
   27194     if (y != x)
   27195       result |= 2;
   27196   }
   27197   return result;
   27198 }
   27199 _ACEOF
   27200 if ac_fn_c_try_run "$LINENO"; then :
   27201   gl_cv_func_ldexpl_works=yes
   27202 else
   27203   gl_cv_func_ldexpl_works=no
   27204 fi
   27205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27206   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27207 fi
   27208 
   27209 
   27210 fi
   27211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
   27212 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
   27213 
   27214     case "$gl_cv_func_ldexpl_works" in
   27215       *yes)
   27216 
   27217 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
   27218 
   27219                         ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
   27220 "
   27221 if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
   27222 
   27223 else
   27224   HAVE_DECL_LDEXPL=0
   27225 fi
   27226 
   27227         ;;
   27228     esac
   27229   fi
   27230 
   27231 
   27232 
   27233   if test $gl_cv_func_vfprintf_posix = no; then
   27234 
   27235 
   27236 
   27237 
   27238 
   27239 
   27240 
   27241 
   27242 
   27243 
   27244 
   27245   gl_LIBOBJS="$gl_LIBOBJS printf.$ac_objext"
   27246 
   27247   REPLACE_PRINTF=1
   27248 
   27249 $as_echo "#define REPLACE_PRINTF_POSIX 1" >>confdefs.h
   27250 
   27251   :
   27252 
   27253   fi
   27254 
   27255 
   27256 
   27257 
   27258 
   27259 
   27260           GNULIB_PRINTF_POSIX=1
   27261 
   27262 
   27263 
   27264 
   27265 
   27266 $as_echo "#define GNULIB_TEST_PRINTF_POSIX 1" >>confdefs.h
   27267 
   27268 
   27269 
   27270 
   27271   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
   27272 "
   27273 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
   27274   ac_have_decl=1
   27275 else
   27276   ac_have_decl=0
   27277 fi
   27278 
   27279 cat >>confdefs.h <<_ACEOF
   27280 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
   27281 _ACEOF
   27282 
   27283   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
   27284 "
   27285 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
   27286   ac_have_decl=1
   27287 else
   27288   ac_have_decl=0
   27289 fi
   27290 
   27291 cat >>confdefs.h <<_ACEOF
   27292 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
   27293 _ACEOF
   27294 
   27295 
   27296       :
   27297 
   27298 
   27299   :
   27300 
   27301 
   27302 
   27303 
   27304 
   27305   for ac_func in raise
   27306 do :
   27307   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
   27308 if test "x$ac_cv_func_raise" = xyes; then :
   27309   cat >>confdefs.h <<_ACEOF
   27310 #define HAVE_RAISE 1
   27311 _ACEOF
   27312 
   27313 fi
   27314 done
   27315 
   27316   if test $ac_cv_func_raise = no; then
   27317     HAVE_RAISE=0
   27318   else
   27319     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   27320       REPLACE_RAISE=1
   27321     fi
   27322 
   27323 
   27324 
   27325 
   27326   if test $gl_cv_type_sigset_t = yes; then
   27327     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
   27328 if test "x$ac_cv_func_sigprocmask" = xyes; then :
   27329   gl_cv_func_sigprocmask=1
   27330 fi
   27331 
   27332   fi
   27333   if test -z "$gl_cv_func_sigprocmask"; then
   27334     HAVE_POSIX_SIGNALBLOCKING=0
   27335   fi
   27336 
   27337       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
   27338         :
   27339       fi
   27340 
   27341   fi
   27342 
   27343   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
   27344 
   27345 
   27346 
   27347 
   27348 
   27349 
   27350 
   27351 
   27352   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
   27353 
   27354     :
   27355   fi
   27356 
   27357 
   27358 
   27359 
   27360 
   27361           GNULIB_RAISE=1
   27362 
   27363 
   27364 
   27365 
   27366 
   27367 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
   27368 
   27369 
   27370 
   27371 
   27372 
   27373 
   27374 
   27375   for ac_func in rawmemchr
   27376 do :
   27377   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
   27378 if test "x$ac_cv_func_rawmemchr" = xyes; then :
   27379   cat >>confdefs.h <<_ACEOF
   27380 #define HAVE_RAWMEMCHR 1
   27381 _ACEOF
   27382 
   27383 fi
   27384 done
   27385 
   27386   if test $ac_cv_func_rawmemchr = no; then
   27387     HAVE_RAWMEMCHR=0
   27388   fi
   27389 
   27390   if test $HAVE_RAWMEMCHR = 0; then
   27391 
   27392 
   27393 
   27394 
   27395 
   27396 
   27397 
   27398 
   27399   gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
   27400 
   27401     :
   27402   fi
   27403 
   27404 
   27405 
   27406 
   27407 
   27408           GNULIB_RAWMEMCHR=1
   27409 
   27410 
   27411 
   27412 
   27413 
   27414 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
   27415 
   27416 
   27417 
   27418 
   27419 
   27420 
   27421   if test $gl_cv_func_malloc_posix = yes; then
   27422 
   27423 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
   27424 
   27425   else
   27426     REPLACE_REALLOC=1
   27427   fi
   27428 
   27429   if test $REPLACE_REALLOC = 1; then
   27430 
   27431 
   27432 
   27433 
   27434 
   27435 
   27436 
   27437 
   27438   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
   27439 
   27440   fi
   27441 
   27442 
   27443 
   27444 
   27445 
   27446           GNULIB_REALLOC_POSIX=1
   27447 
   27448 
   27449 
   27450 
   27451 
   27452 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
   27453 
   27454 
   27455 
   27456 
   27457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27458 /* end confdefs.h.  */
   27459 
   27460        #include <sched.h>
   27461        struct sched_param a;
   27462        int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
   27463        pid_t t1;
   27464 
   27465 int
   27466 main ()
   27467 {
   27468 
   27469   ;
   27470   return 0;
   27471 }
   27472 _ACEOF
   27473 if ac_fn_c_try_compile "$LINENO"; then :
   27474   SCHED_H=''
   27475 else
   27476   SCHED_H='sched.h'
   27477 
   27478 
   27479 
   27480 
   27481 
   27482 
   27483 
   27484 
   27485 
   27486 
   27487      if test $gl_cv_have_include_next = yes; then
   27488        gl_cv_next_sched_h='<'sched.h'>'
   27489      else
   27490        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
   27491 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
   27492 if ${gl_cv_next_sched_h+:} false; then :
   27493   $as_echo_n "(cached) " >&6
   27494 else
   27495 
   27496              if test $ac_cv_header_sched_h = yes; then
   27497 
   27498 
   27499                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27500 /* end confdefs.h.  */
   27501 #include <sched.h>
   27502 
   27503 _ACEOF
   27504                                                                                                                         case "$host_os" in
   27505                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   27506                  *)    gl_absname_cpp="$ac_cpp" ;;
   27507                esac
   27508 
   27509                case "$host_os" in
   27510                  mingw*)
   27511                                                                                                                                      gl_dirsep_regex='[/\\]'
   27512                    ;;
   27513                  *)
   27514                    gl_dirsep_regex='\/'
   27515                    ;;
   27516                esac
   27517                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   27518 
   27519                gl_header_literal_regex=`echo 'sched.h' \
   27520                                         | sed -e "$gl_make_literal_regex_sed"`
   27521                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   27522                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   27523                    s|^/[^/]|//&|
   27524                    p
   27525                    q
   27526                  }'
   27527                                                             gl_cv_next_sched_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   27528                       sed -n "$gl_absolute_header_sed"`'"'
   27529           else
   27530                gl_cv_next_sched_h='<'sched.h'>'
   27531              fi
   27532 
   27533 
   27534 fi
   27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
   27536 $as_echo "$gl_cv_next_sched_h" >&6; }
   27537      fi
   27538      NEXT_SCHED_H=$gl_cv_next_sched_h
   27539 
   27540      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   27541        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   27542        gl_next_as_first_directive='<'sched.h'>'
   27543      else
   27544        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   27545        gl_next_as_first_directive=$gl_cv_next_sched_h
   27546      fi
   27547      NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
   27548 
   27549 
   27550 
   27551 
   27552 
   27553      if test $ac_cv_header_sched_h = yes; then
   27554        HAVE_SCHED_H=1
   27555      else
   27556        HAVE_SCHED_H=0
   27557      fi
   27558 
   27559 
   27560      ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
   27561 "
   27562 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
   27563   HAVE_STRUCT_SCHED_PARAM=1
   27564 else
   27565   HAVE_STRUCT_SCHED_PARAM=0
   27566 fi
   27567 
   27568 
   27569 
   27570 
   27571 
   27572 fi
   27573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27574 
   27575    if test -n "$SCHED_H"; then
   27576   GL_GENERATE_SCHED_H_TRUE=
   27577   GL_GENERATE_SCHED_H_FALSE='#'
   27578 else
   27579   GL_GENERATE_SCHED_H_TRUE='#'
   27580   GL_GENERATE_SCHED_H_FALSE=
   27581 fi
   27582 
   27583 
   27584 
   27585 
   27586 
   27587   if test $ac_cv_func_sigaction = yes; then
   27588     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
   27589 "
   27590 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
   27591 
   27592 cat >>confdefs.h <<_ACEOF
   27593 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
   27594 _ACEOF
   27595 
   27596 
   27597 fi
   27598 
   27599     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
   27600       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
   27601     fi
   27602   else
   27603     HAVE_SIGACTION=0
   27604   fi
   27605 
   27606   if test $HAVE_SIGACTION = 0; then
   27607 
   27608 
   27609 
   27610 
   27611 
   27612 
   27613 
   27614 
   27615   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
   27616 
   27617 
   27618 
   27619 
   27620 
   27621 
   27622 
   27623   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
   27624 #include <signal.h>
   27625 
   27626 "
   27627 if test "x$ac_cv_type_siginfo_t" = xyes; then :
   27628 
   27629 cat >>confdefs.h <<_ACEOF
   27630 #define HAVE_SIGINFO_T 1
   27631 _ACEOF
   27632 
   27633 
   27634 fi
   27635 
   27636   if test $ac_cv_type_siginfo_t = no; then
   27637     HAVE_SIGINFO_T=0
   27638   fi
   27639 
   27640   fi
   27641 
   27642 
   27643 
   27644 
   27645 
   27646           GNULIB_SIGACTION=1
   27647 
   27648 
   27649 
   27650 
   27651 
   27652 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
   27653 
   27654 
   27655 
   27656 
   27657 
   27658 
   27659 
   27660 
   27661 
   27662 
   27663 
   27664 
   27665 
   27666 
   27667      if test $gl_cv_have_include_next = yes; then
   27668        gl_cv_next_signal_h='<'signal.h'>'
   27669      else
   27670        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
   27671 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
   27672 if ${gl_cv_next_signal_h+:} false; then :
   27673   $as_echo_n "(cached) " >&6
   27674 else
   27675 
   27676                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27677 /* end confdefs.h.  */
   27678 #include <signal.h>
   27679 
   27680 _ACEOF
   27681                                                                                                                         case "$host_os" in
   27682                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   27683                  *)    gl_absname_cpp="$ac_cpp" ;;
   27684                esac
   27685 
   27686                case "$host_os" in
   27687                  mingw*)
   27688                                                                                                                                      gl_dirsep_regex='[/\\]'
   27689                    ;;
   27690                  *)
   27691                    gl_dirsep_regex='\/'
   27692                    ;;
   27693                esac
   27694                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   27695 
   27696                gl_header_literal_regex=`echo 'signal.h' \
   27697                                         | sed -e "$gl_make_literal_regex_sed"`
   27698                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   27699                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   27700                    s|^/[^/]|//&|
   27701                    p
   27702                    q
   27703                  }'
   27704                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   27705                       sed -n "$gl_absolute_header_sed"`'"'
   27706 
   27707 
   27708 fi
   27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
   27710 $as_echo "$gl_cv_next_signal_h" >&6; }
   27711      fi
   27712      NEXT_SIGNAL_H=$gl_cv_next_signal_h
   27713 
   27714      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   27715        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   27716        gl_next_as_first_directive='<'signal.h'>'
   27717      else
   27718        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   27719        gl_next_as_first_directive=$gl_cv_next_signal_h
   27720      fi
   27721      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
   27722 
   27723 
   27724 
   27725 
   27726 
   27727 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
   27728 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
   27729   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
   27730 #include <signal.h>
   27731 
   27732 "
   27733 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
   27734 
   27735 else
   27736   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
   27737 fi
   27738 
   27739 
   27740 
   27741 
   27742 
   27743 
   27744 
   27745   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
   27746 #include <signal.h>
   27747 
   27748 "
   27749 if test "x$ac_cv_type_sighandler_t" = xyes; then :
   27750 
   27751 else
   27752   HAVE_SIGHANDLER_T=0
   27753 fi
   27754 
   27755 
   27756 
   27757     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
   27758     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   27759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   27760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   27761 if eval \${$as_gl_Symbol+:} false; then :
   27762   $as_echo_n "(cached) " >&6
   27763 else
   27764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27765 /* end confdefs.h.  */
   27766 #include <signal.h>
   27767 
   27768 int
   27769 main ()
   27770 {
   27771 #undef $gl_func
   27772   (void) $gl_func;
   27773   ;
   27774   return 0;
   27775 }
   27776 _ACEOF
   27777 if ac_fn_c_try_compile "$LINENO"; then :
   27778   eval "$as_gl_Symbol=yes"
   27779 else
   27780   eval "$as_gl_Symbol=no"
   27781 fi
   27782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27783 fi
   27784 eval ac_res=\$$as_gl_Symbol
   27785 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   27786 $as_echo "$ac_res" >&6; }
   27787     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   27788   cat >>confdefs.h <<_ACEOF
   27789 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   27790 _ACEOF
   27791 
   27792                      eval ac_cv_have_decl_$gl_func=yes
   27793 fi
   27794       done
   27795 
   27796 
   27797 
   27798 
   27799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
   27800 $as_echo_n "checking for signbit macro... " >&6; }
   27801 if ${gl_cv_func_signbit+:} false; then :
   27802   $as_echo_n "(cached) " >&6
   27803 else
   27804 
   27805       if test "$cross_compiling" = yes; then :
   27806   case "$host_os" in
   27807                    # Guess yes on glibc systems.
   27808            *-gnu*) gl_cv_func_signbit="guessing yes" ;;
   27809                    # If we don't know, assume the worst.
   27810            *)      gl_cv_func_signbit="guessing no" ;;
   27811          esac
   27812 
   27813 else
   27814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27815 /* end confdefs.h.  */
   27816 
   27817 #include <math.h>
   27818 /* If signbit is defined as a function, don't use it, since calling it for
   27819    'float' or 'long double' arguments would involve conversions.
   27820    If signbit is not declared at all but exists as a library function, don't
   27821    use it, since the prototype may not match.
   27822    If signbit is not declared at all but exists as a compiler built-in, don't
   27823    use it, since it's preferable to use __builtin_signbit* (no warnings,
   27824    no conversions).  */
   27825 #ifndef signbit
   27826 # error "signbit should be a macro"
   27827 #endif
   27828 #include <string.h>
   27829 
   27830 /* Global variables.
   27831    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
   27832    but cannot constant-fold            __builtin_signbitl (variable).  */
   27833 float vf;
   27834 double vd;
   27835 long double vl;
   27836 int main ()
   27837 {
   27838 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
   27839    So we use -p0f and -p0d instead.  */
   27840 float p0f = 0.0f;
   27841 float m0f = -p0f;
   27842 double p0d = 0.0;
   27843 double m0d = -p0d;
   27844 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
   27845    So we use another constant expression instead.
   27846    But that expression does not work on other platforms, such as when
   27847    cross-compiling to PowerPC on Mac OS X 10.5.  */
   27848 long double p0l = 0.0L;
   27849 #if defined __hpux || defined __sgi
   27850 long double m0l = -LDBL_MIN * LDBL_MIN;
   27851 #else
   27852 long double m0l = -p0l;
   27853 #endif
   27854   int result = 0;
   27855   if (signbit (vf)) /* link check */
   27856     vf++;
   27857   {
   27858     float plus_inf = 1.0f / p0f;
   27859     float minus_inf = -1.0f / p0f;
   27860     if (!(!signbit (255.0f)
   27861           && signbit (-255.0f)
   27862           && !signbit (p0f)
   27863           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
   27864           && !signbit (plus_inf)
   27865           && signbit (minus_inf)))
   27866       result |= 1;
   27867   }
   27868   if (signbit (vd)) /* link check */
   27869     vd++;
   27870   {
   27871     double plus_inf = 1.0 / p0d;
   27872     double minus_inf = -1.0 / p0d;
   27873     if (!(!signbit (255.0)
   27874           && signbit (-255.0)
   27875           && !signbit (p0d)
   27876           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
   27877           && !signbit (plus_inf)
   27878           && signbit (minus_inf)))
   27879       result |= 2;
   27880   }
   27881   if (signbit (vl)) /* link check */
   27882     vl++;
   27883   {
   27884     long double plus_inf = 1.0L / p0l;
   27885     long double minus_inf = -1.0L / p0l;
   27886     if (signbit (255.0L))
   27887       result |= 4;
   27888     if (!signbit (-255.0L))
   27889       result |= 4;
   27890     if (signbit (p0l))
   27891       result |= 8;
   27892     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
   27893       result |= 16;
   27894     if (signbit (plus_inf))
   27895       result |= 32;
   27896     if (!signbit (minus_inf))
   27897       result |= 64;
   27898   }
   27899   return result;
   27900 }
   27901 
   27902 
   27903 _ACEOF
   27904 if ac_fn_c_try_run "$LINENO"; then :
   27905   gl_cv_func_signbit=yes
   27906 else
   27907   gl_cv_func_signbit=no
   27908 fi
   27909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27910   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27911 fi
   27912 
   27913 
   27914 fi
   27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
   27916 $as_echo "$gl_cv_func_signbit" >&6; }
   27917           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
   27918 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
   27919 if ${gl_cv_func_signbit_gcc+:} false; then :
   27920   $as_echo_n "(cached) " >&6
   27921 else
   27922 
   27923       if test "$cross_compiling" = yes; then :
   27924   case "$host_os" in
   27925                    # Guess yes on glibc systems.
   27926            *-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
   27927                    # If we don't know, assume the worst.
   27928            *)      gl_cv_func_signbit_gcc="guessing no" ;;
   27929          esac
   27930 
   27931 else
   27932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27933 /* end confdefs.h.  */
   27934 
   27935 #if __GNUC__ >= 4
   27936 # define signbit(x) \
   27937    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
   27938     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
   27939     __builtin_signbitf (x))
   27940 #else
   27941 # error "signbit should be three compiler built-ins"
   27942 #endif
   27943 #include <string.h>
   27944 
   27945 /* Global variables.
   27946    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
   27947    but cannot constant-fold            __builtin_signbitl (variable).  */
   27948 float vf;
   27949 double vd;
   27950 long double vl;
   27951 int main ()
   27952 {
   27953 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
   27954    So we use -p0f and -p0d instead.  */
   27955 float p0f = 0.0f;
   27956 float m0f = -p0f;
   27957 double p0d = 0.0;
   27958 double m0d = -p0d;
   27959 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
   27960    So we use another constant expression instead.
   27961    But that expression does not work on other platforms, such as when
   27962    cross-compiling to PowerPC on Mac OS X 10.5.  */
   27963 long double p0l = 0.0L;
   27964 #if defined __hpux || defined __sgi
   27965 long double m0l = -LDBL_MIN * LDBL_MIN;
   27966 #else
   27967 long double m0l = -p0l;
   27968 #endif
   27969   int result = 0;
   27970   if (signbit (vf)) /* link check */
   27971     vf++;
   27972   {
   27973     float plus_inf = 1.0f / p0f;
   27974     float minus_inf = -1.0f / p0f;
   27975     if (!(!signbit (255.0f)
   27976           && signbit (-255.0f)
   27977           && !signbit (p0f)
   27978           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
   27979           && !signbit (plus_inf)
   27980           && signbit (minus_inf)))
   27981       result |= 1;
   27982   }
   27983   if (signbit (vd)) /* link check */
   27984     vd++;
   27985   {
   27986     double plus_inf = 1.0 / p0d;
   27987     double minus_inf = -1.0 / p0d;
   27988     if (!(!signbit (255.0)
   27989           && signbit (-255.0)
   27990           && !signbit (p0d)
   27991           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
   27992           && !signbit (plus_inf)
   27993           && signbit (minus_inf)))
   27994       result |= 2;
   27995   }
   27996   if (signbit (vl)) /* link check */
   27997     vl++;
   27998   {
   27999     long double plus_inf = 1.0L / p0l;
   28000     long double minus_inf = -1.0L / p0l;
   28001     if (signbit (255.0L))
   28002       result |= 4;
   28003     if (!signbit (-255.0L))
   28004       result |= 4;
   28005     if (signbit (p0l))
   28006       result |= 8;
   28007     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
   28008       result |= 16;
   28009     if (signbit (plus_inf))
   28010       result |= 32;
   28011     if (!signbit (minus_inf))
   28012       result |= 64;
   28013   }
   28014   return result;
   28015 }
   28016 
   28017 
   28018 _ACEOF
   28019 if ac_fn_c_try_run "$LINENO"; then :
   28020   gl_cv_func_signbit_gcc=yes
   28021 else
   28022   gl_cv_func_signbit_gcc=no
   28023 fi
   28024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28025   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28026 fi
   28027 
   28028 
   28029 fi
   28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
   28031 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
   28032       case "$gl_cv_func_signbit_gcc" in
   28033     *yes)
   28034       REPLACE_SIGNBIT_USING_GCC=1
   28035       ;;
   28036     *)
   28037       case "$gl_cv_func_signbit" in
   28038         *yes) ;;
   28039         *)
   28040                     REPLACE_SIGNBIT=1
   28041 
   28042 
   28043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
   28044 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
   28045 if ${gl_cv_cc_float_signbit+:} false; then :
   28046   $as_echo_n "(cached) " >&6
   28047 else
   28048 
   28049       if test "$cross_compiling" = yes; then :
   28050 
   28051                               gl_cv_cc_float_signbit="unknown"
   28052 
   28053 else
   28054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28055 /* end confdefs.h.  */
   28056 
   28057 #include <stddef.h>
   28058 #include <stdio.h>
   28059 #define NWORDS \
   28060   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   28061 typedef union { float value; unsigned int word[NWORDS]; }
   28062         memory_float;
   28063 static memory_float plus = { 1.0f };
   28064 static memory_float minus = { -1.0f };
   28065 int main ()
   28066 {
   28067   size_t j, k, i;
   28068   unsigned int m;
   28069   FILE *fp = fopen ("conftest.out", "w");
   28070   if (fp == NULL)
   28071     return 1;
   28072   /* Find the different bit.  */
   28073   k = 0; m = 0;
   28074   for (j = 0; j < NWORDS; j++)
   28075     {
   28076       unsigned int x = plus.word[j] ^ minus.word[j];
   28077       if ((x & (x - 1)) || (x && m))
   28078         {
   28079           /* More than one bit difference.  */
   28080           fprintf (fp, "unknown");
   28081           return 2;
   28082         }
   28083       if (x)
   28084         {
   28085           k = j;
   28086           m = x;
   28087         }
   28088     }
   28089   if (m == 0)
   28090     {
   28091       /* No difference.  */
   28092       fprintf (fp, "unknown");
   28093       return 3;
   28094     }
   28095   /* Now m = plus.word[k] ^ ~minus.word[k].  */
   28096   if (plus.word[k] & ~minus.word[k])
   28097     {
   28098       /* Oh? The sign bit is set in the positive and cleared in the negative
   28099          numbers?  */
   28100       fprintf (fp, "unknown");
   28101       return 4;
   28102     }
   28103   for (i = 0; ; i++)
   28104     if ((m >> i) & 1)
   28105       break;
   28106   fprintf (fp, "word %d bit %d", (int) k, (int) i);
   28107   if (fclose (fp) != 0)
   28108     return 5;
   28109   return 0;
   28110 }
   28111 
   28112 _ACEOF
   28113 if ac_fn_c_try_run "$LINENO"; then :
   28114   gl_cv_cc_float_signbit=`cat conftest.out`
   28115 else
   28116   gl_cv_cc_float_signbit="unknown"
   28117 fi
   28118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28119   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28120 fi
   28121 
   28122       rm -f conftest.out
   28123 
   28124 fi
   28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
   28126 $as_echo "$gl_cv_cc_float_signbit" >&6; }
   28127   case "$gl_cv_cc_float_signbit" in
   28128     word*bit*)
   28129       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
   28130       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
   28131 
   28132 cat >>confdefs.h <<_ACEOF
   28133 #define FLT_SIGNBIT_WORD $word
   28134 _ACEOF
   28135 
   28136 
   28137 cat >>confdefs.h <<_ACEOF
   28138 #define FLT_SIGNBIT_BIT $bit
   28139 _ACEOF
   28140 
   28141       ;;
   28142   esac
   28143 
   28144 
   28145 
   28146 
   28147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
   28148 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
   28149 if ${gl_cv_cc_double_signbit+:} false; then :
   28150   $as_echo_n "(cached) " >&6
   28151 else
   28152 
   28153       if test "$cross_compiling" = yes; then :
   28154 
   28155                               gl_cv_cc_double_signbit="unknown"
   28156 
   28157 else
   28158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28159 /* end confdefs.h.  */
   28160 
   28161 #include <stddef.h>
   28162 #include <stdio.h>
   28163 #define NWORDS \
   28164   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   28165 typedef union { double value; unsigned int word[NWORDS]; }
   28166         memory_float;
   28167 static memory_float plus = { 1.0 };
   28168 static memory_float minus = { -1.0 };
   28169 int main ()
   28170 {
   28171   size_t j, k, i;
   28172   unsigned int m;
   28173   FILE *fp = fopen ("conftest.out", "w");
   28174   if (fp == NULL)
   28175     return 1;
   28176   /* Find the different bit.  */
   28177   k = 0; m = 0;
   28178   for (j = 0; j < NWORDS; j++)
   28179     {
   28180       unsigned int x = plus.word[j] ^ minus.word[j];
   28181       if ((x & (x - 1)) || (x && m))
   28182         {
   28183           /* More than one bit difference.  */
   28184           fprintf (fp, "unknown");
   28185           return 2;
   28186         }
   28187       if (x)
   28188         {
   28189           k = j;
   28190           m = x;
   28191         }
   28192     }
   28193   if (m == 0)
   28194     {
   28195       /* No difference.  */
   28196       fprintf (fp, "unknown");
   28197       return 3;
   28198     }
   28199   /* Now m = plus.word[k] ^ ~minus.word[k].  */
   28200   if (plus.word[k] & ~minus.word[k])
   28201     {
   28202       /* Oh? The sign bit is set in the positive and cleared in the negative
   28203          numbers?  */
   28204       fprintf (fp, "unknown");
   28205       return 4;
   28206     }
   28207   for (i = 0; ; i++)
   28208     if ((m >> i) & 1)
   28209       break;
   28210   fprintf (fp, "word %d bit %d", (int) k, (int) i);
   28211   if (fclose (fp) != 0)
   28212     return 5;
   28213   return 0;
   28214 }
   28215 
   28216 _ACEOF
   28217 if ac_fn_c_try_run "$LINENO"; then :
   28218   gl_cv_cc_double_signbit=`cat conftest.out`
   28219 else
   28220   gl_cv_cc_double_signbit="unknown"
   28221 fi
   28222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28223   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28224 fi
   28225 
   28226       rm -f conftest.out
   28227 
   28228 fi
   28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
   28230 $as_echo "$gl_cv_cc_double_signbit" >&6; }
   28231   case "$gl_cv_cc_double_signbit" in
   28232     word*bit*)
   28233       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
   28234       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
   28235 
   28236 cat >>confdefs.h <<_ACEOF
   28237 #define DBL_SIGNBIT_WORD $word
   28238 _ACEOF
   28239 
   28240 
   28241 cat >>confdefs.h <<_ACEOF
   28242 #define DBL_SIGNBIT_BIT $bit
   28243 _ACEOF
   28244 
   28245       ;;
   28246   esac
   28247 
   28248 
   28249 
   28250 
   28251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
   28252 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
   28253 if ${gl_cv_cc_long_double_signbit+:} false; then :
   28254   $as_echo_n "(cached) " >&6
   28255 else
   28256 
   28257       if test "$cross_compiling" = yes; then :
   28258 
   28259                               gl_cv_cc_long_double_signbit="unknown"
   28260 
   28261 else
   28262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28263 /* end confdefs.h.  */
   28264 
   28265 #include <stddef.h>
   28266 #include <stdio.h>
   28267 #define NWORDS \
   28268   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   28269 typedef union { long double value; unsigned int word[NWORDS]; }
   28270         memory_float;
   28271 static memory_float plus = { 1.0L };
   28272 static memory_float minus = { -1.0L };
   28273 int main ()
   28274 {
   28275   size_t j, k, i;
   28276   unsigned int m;
   28277   FILE *fp = fopen ("conftest.out", "w");
   28278   if (fp == NULL)
   28279     return 1;
   28280   /* Find the different bit.  */
   28281   k = 0; m = 0;
   28282   for (j = 0; j < NWORDS; j++)
   28283     {
   28284       unsigned int x = plus.word[j] ^ minus.word[j];
   28285       if ((x & (x - 1)) || (x && m))
   28286         {
   28287           /* More than one bit difference.  */
   28288           fprintf (fp, "unknown");
   28289           return 2;
   28290         }
   28291       if (x)
   28292         {
   28293           k = j;
   28294           m = x;
   28295         }
   28296     }
   28297   if (m == 0)
   28298     {
   28299       /* No difference.  */
   28300       fprintf (fp, "unknown");
   28301       return 3;
   28302     }
   28303   /* Now m = plus.word[k] ^ ~minus.word[k].  */
   28304   if (plus.word[k] & ~minus.word[k])
   28305     {
   28306       /* Oh? The sign bit is set in the positive and cleared in the negative
   28307          numbers?  */
   28308       fprintf (fp, "unknown");
   28309       return 4;
   28310     }
   28311   for (i = 0; ; i++)
   28312     if ((m >> i) & 1)
   28313       break;
   28314   fprintf (fp, "word %d bit %d", (int) k, (int) i);
   28315   if (fclose (fp) != 0)
   28316     return 5;
   28317   return 0;
   28318 }
   28319 
   28320 _ACEOF
   28321 if ac_fn_c_try_run "$LINENO"; then :
   28322   gl_cv_cc_long_double_signbit=`cat conftest.out`
   28323 else
   28324   gl_cv_cc_long_double_signbit="unknown"
   28325 fi
   28326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28327   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28328 fi
   28329 
   28330       rm -f conftest.out
   28331 
   28332 fi
   28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
   28334 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
   28335   case "$gl_cv_cc_long_double_signbit" in
   28336     word*bit*)
   28337       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
   28338       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
   28339 
   28340 cat >>confdefs.h <<_ACEOF
   28341 #define LDBL_SIGNBIT_WORD $word
   28342 _ACEOF
   28343 
   28344 
   28345 cat >>confdefs.h <<_ACEOF
   28346 #define LDBL_SIGNBIT_BIT $bit
   28347 _ACEOF
   28348 
   28349       ;;
   28350   esac
   28351 
   28352 
   28353           if test "$gl_cv_cc_float_signbit" = unknown; then
   28354                         ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
   28355 "
   28356 if test "x$ac_cv_have_decl_copysignf" = xyes; then :
   28357   ac_have_decl=1
   28358 else
   28359   ac_have_decl=0
   28360 fi
   28361 
   28362 cat >>confdefs.h <<_ACEOF
   28363 #define HAVE_DECL_COPYSIGNF $ac_have_decl
   28364 _ACEOF
   28365 
   28366             if test "$ac_cv_have_decl_copysignf" = yes; then
   28367                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
   28368 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
   28369 if ${gl_cv_func_copysignf_no_libm+:} false; then :
   28370   $as_echo_n "(cached) " >&6
   28371 else
   28372 
   28373                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28374 /* end confdefs.h.  */
   28375 #include <math.h>
   28376                          float x, y;
   28377 int
   28378 main ()
   28379 {
   28380 return copysignf (x, y) < 0;
   28381   ;
   28382   return 0;
   28383 }
   28384 _ACEOF
   28385 if ac_fn_c_try_link "$LINENO"; then :
   28386   gl_cv_func_copysignf_no_libm=yes
   28387 else
   28388   gl_cv_func_copysignf_no_libm=no
   28389 fi
   28390 rm -f core conftest.err conftest.$ac_objext \
   28391     conftest$ac_exeext conftest.$ac_ext
   28392 
   28393 fi
   28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
   28395 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
   28396               if test $gl_cv_func_copysignf_no_libm = yes; then
   28397 
   28398 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
   28399 
   28400               fi
   28401             fi
   28402           fi
   28403           if test "$gl_cv_cc_double_signbit" = unknown; then
   28404                         ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
   28405 "
   28406 if test "x$ac_cv_have_decl_copysign" = xyes; then :
   28407   ac_have_decl=1
   28408 else
   28409   ac_have_decl=0
   28410 fi
   28411 
   28412 cat >>confdefs.h <<_ACEOF
   28413 #define HAVE_DECL_COPYSIGN $ac_have_decl
   28414 _ACEOF
   28415 
   28416             if test "$ac_cv_have_decl_copysign" = yes; then
   28417                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
   28418 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
   28419 if ${gl_cv_func_copysign_no_libm+:} false; then :
   28420   $as_echo_n "(cached) " >&6
   28421 else
   28422 
   28423                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28424 /* end confdefs.h.  */
   28425 #include <math.h>
   28426                          double x, y;
   28427 int
   28428 main ()
   28429 {
   28430 return copysign (x, y) < 0;
   28431   ;
   28432   return 0;
   28433 }
   28434 _ACEOF
   28435 if ac_fn_c_try_link "$LINENO"; then :
   28436   gl_cv_func_copysign_no_libm=yes
   28437 else
   28438   gl_cv_func_copysign_no_libm=no
   28439 fi
   28440 rm -f core conftest.err conftest.$ac_objext \
   28441     conftest$ac_exeext conftest.$ac_ext
   28442 
   28443 fi
   28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
   28445 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
   28446               if test $gl_cv_func_copysign_no_libm = yes; then
   28447 
   28448 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
   28449 
   28450               fi
   28451             fi
   28452           fi
   28453           if test "$gl_cv_cc_long_double_signbit" = unknown; then
   28454                         ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
   28455 "
   28456 if test "x$ac_cv_have_decl_copysignl" = xyes; then :
   28457   ac_have_decl=1
   28458 else
   28459   ac_have_decl=0
   28460 fi
   28461 
   28462 cat >>confdefs.h <<_ACEOF
   28463 #define HAVE_DECL_COPYSIGNL $ac_have_decl
   28464 _ACEOF
   28465 
   28466             if test "$ac_cv_have_decl_copysignl" = yes; then
   28467                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
   28468 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
   28469 if ${gl_cv_func_copysignl_no_libm+:} false; then :
   28470   $as_echo_n "(cached) " >&6
   28471 else
   28472 
   28473                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28474 /* end confdefs.h.  */
   28475 #include <math.h>
   28476                          long double x, y;
   28477 int
   28478 main ()
   28479 {
   28480 return copysignl (x, y) < 0;
   28481   ;
   28482   return 0;
   28483 }
   28484 _ACEOF
   28485 if ac_fn_c_try_link "$LINENO"; then :
   28486   gl_cv_func_copysignl_no_libm=yes
   28487 else
   28488   gl_cv_func_copysignl_no_libm=no
   28489 fi
   28490 rm -f core conftest.err conftest.$ac_objext \
   28491     conftest$ac_exeext conftest.$ac_ext
   28492 
   28493 fi
   28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
   28495 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
   28496               if test $gl_cv_func_copysignl_no_libm = yes; then
   28497 
   28498 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
   28499 
   28500               fi
   28501             fi
   28502           fi
   28503           ;;
   28504       esac
   28505       ;;
   28506   esac
   28507 
   28508   if test $REPLACE_SIGNBIT = 1; then
   28509 
   28510 
   28511 
   28512 
   28513 
   28514 
   28515 
   28516 
   28517   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
   28518 
   28519 
   28520 
   28521 
   28522 
   28523 
   28524 
   28525 
   28526 
   28527   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
   28528 
   28529 
   28530 
   28531 
   28532 
   28533 
   28534 
   28535 
   28536 
   28537   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
   28538 
   28539   fi
   28540 
   28541 
   28542 
   28543 
   28544 
   28545           GNULIB_SIGNBIT=1
   28546 
   28547 
   28548 
   28549 
   28550 
   28551 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
   28552 
   28553 
   28554 
   28555 
   28556 
   28557 
   28558   if test $gl_cv_type_sigset_t = yes; then
   28559     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
   28560 if test "x$ac_cv_func_sigprocmask" = xyes; then :
   28561   gl_cv_func_sigprocmask=1
   28562 fi
   28563 
   28564   fi
   28565   if test -z "$gl_cv_func_sigprocmask"; then
   28566     HAVE_POSIX_SIGNALBLOCKING=0
   28567   fi
   28568 
   28569   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
   28570 
   28571 
   28572 
   28573 
   28574 
   28575 
   28576 
   28577 
   28578   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
   28579 
   28580     :
   28581   fi
   28582 
   28583 
   28584 
   28585 
   28586 
   28587           GNULIB_SIGPROCMASK=1
   28588 
   28589 
   28590 
   28591 
   28592 
   28593 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
   28594 
   28595 
   28596 
   28597 
   28598   for ac_header in stdint.h
   28599 do :
   28600   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
   28601 if test "x$ac_cv_header_stdint_h" = xyes; then :
   28602   cat >>confdefs.h <<_ACEOF
   28603 #define HAVE_STDINT_H 1
   28604 _ACEOF
   28605 
   28606 fi
   28607 
   28608 done
   28609 
   28610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
   28611 $as_echo_n "checking for SIZE_MAX... " >&6; }
   28612 if ${gl_cv_size_max+:} false; then :
   28613   $as_echo_n "(cached) " >&6
   28614 else
   28615 
   28616     gl_cv_size_max=
   28617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28618 /* end confdefs.h.  */
   28619 
   28620 #include <limits.h>
   28621 #if HAVE_STDINT_H
   28622 #include <stdint.h>
   28623 #endif
   28624 #ifdef SIZE_MAX
   28625 Found it
   28626 #endif
   28627 
   28628 _ACEOF
   28629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28630   $EGREP "Found it" >/dev/null 2>&1; then :
   28631   gl_cv_size_max=yes
   28632 fi
   28633 rm -f conftest*
   28634 
   28635     if test -z "$gl_cv_size_max"; then
   28636                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
   28637 #include <limits.h>"; then :
   28638 
   28639 else
   28640   size_t_bits_minus_1=
   28641 fi
   28642 
   28643       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
   28644 
   28645 else
   28646   fits_in_uint=
   28647 fi
   28648 
   28649       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
   28650         if test $fits_in_uint = 1; then
   28651                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28652 /* end confdefs.h.  */
   28653 #include <stddef.h>
   28654                  extern size_t foo;
   28655                  extern unsigned long foo;
   28656 
   28657 int
   28658 main ()
   28659 {
   28660 
   28661   ;
   28662   return 0;
   28663 }
   28664 _ACEOF
   28665 if ac_fn_c_try_compile "$LINENO"; then :
   28666   fits_in_uint=0
   28667 fi
   28668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28669         fi
   28670                                 if test $fits_in_uint = 1; then
   28671           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
   28672         else
   28673           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
   28674         fi
   28675       else
   28676                 gl_cv_size_max='((size_t)~(size_t)0)'
   28677       fi
   28678     fi
   28679 
   28680 fi
   28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
   28682 $as_echo "$gl_cv_size_max" >&6; }
   28683   if test "$gl_cv_size_max" != yes; then
   28684 
   28685 cat >>confdefs.h <<_ACEOF
   28686 #define SIZE_MAX $gl_cv_size_max
   28687 _ACEOF
   28688 
   28689   fi
   28690 
   28691 
   28692 
   28693 
   28694   gl_cv_func_snprintf_usable=no
   28695   for ac_func in snprintf
   28696 do :
   28697   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   28698 if test "x$ac_cv_func_snprintf" = xyes; then :
   28699   cat >>confdefs.h <<_ACEOF
   28700 #define HAVE_SNPRINTF 1
   28701 _ACEOF
   28702 
   28703 fi
   28704 done
   28705 
   28706   if test $ac_cv_func_snprintf = yes; then
   28707 
   28708 
   28709 
   28710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
   28711 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
   28712 if ${gl_cv_func_snprintf_size1+:} false; then :
   28713   $as_echo_n "(cached) " >&6
   28714 else
   28715 
   28716       if test "$cross_compiling" = yes; then :
   28717   gl_cv_func_snprintf_size1="guessing yes"
   28718 else
   28719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28720 /* end confdefs.h.  */
   28721 
   28722 #include <stdio.h>
   28723 #if HAVE_SNPRINTF
   28724 # define my_snprintf snprintf
   28725 #else
   28726 # include <stdarg.h>
   28727 static int my_snprintf (char *buf, int size, const char *format, ...)
   28728 {
   28729   va_list args;
   28730   int ret;
   28731   va_start (args, format);
   28732   ret = vsnprintf (buf, size, format, args);
   28733   va_end (args);
   28734   return ret;
   28735 }
   28736 #endif
   28737 int main()
   28738 {
   28739   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
   28740   my_snprintf (buf, 1, "%d", 12345);
   28741   return buf[1] != 'E';
   28742 }
   28743 _ACEOF
   28744 if ac_fn_c_try_run "$LINENO"; then :
   28745   gl_cv_func_snprintf_size1=yes
   28746 else
   28747   gl_cv_func_snprintf_size1=no
   28748 fi
   28749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28750   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28751 fi
   28752 
   28753 
   28754 fi
   28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
   28756 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
   28757 
   28758     case "$gl_cv_func_snprintf_size1" in
   28759       *yes)
   28760 
   28761         case "$gl_cv_func_snprintf_retval_c99" in
   28762           *yes)
   28763 
   28764 
   28765      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
   28766 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
   28767 if ${gl_cv_func_printf_positions+:} false; then :
   28768   $as_echo_n "(cached) " >&6
   28769 else
   28770 
   28771       if test "$cross_compiling" = yes; then :
   28772 
   28773          case "$host_os" in
   28774            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
   28775                          gl_cv_func_printf_positions="guessing no";;
   28776            beos*)        gl_cv_func_printf_positions="guessing no";;
   28777            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
   28778            *)            gl_cv_func_printf_positions="guessing yes";;
   28779          esac
   28780 
   28781 else
   28782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28783 /* end confdefs.h.  */
   28784 
   28785 #include <stdio.h>
   28786 #include <string.h>
   28787 /* The string "%2$d %1$d", with dollar characters protected from the shell's
   28788    dollar expansion (possibly an autoconf bug).  */
   28789 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
   28790 static char buf[100];
   28791 int main ()
   28792 {
   28793   sprintf (buf, format, 33, 55);
   28794   return (strcmp (buf, "55 33") != 0);
   28795 }
   28796 _ACEOF
   28797 if ac_fn_c_try_run "$LINENO"; then :
   28798   gl_cv_func_printf_positions=yes
   28799 else
   28800   gl_cv_func_printf_positions=no
   28801 fi
   28802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28803   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28804 fi
   28805 
   28806 
   28807 fi
   28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
   28809 $as_echo "$gl_cv_func_printf_positions" >&6; }
   28810 
   28811             case "$gl_cv_func_printf_positions" in
   28812               *yes)
   28813                 gl_cv_func_snprintf_usable=yes
   28814                 ;;
   28815             esac
   28816             ;;
   28817         esac
   28818         ;;
   28819     esac
   28820   fi
   28821   if test $gl_cv_func_snprintf_usable = no; then
   28822 
   28823 
   28824 
   28825 
   28826 
   28827 
   28828 
   28829 
   28830 
   28831 
   28832   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
   28833 
   28834   if test $ac_cv_func_snprintf = yes; then
   28835     REPLACE_SNPRINTF=1
   28836   fi
   28837   :
   28838 
   28839   fi
   28840 
   28841   if test $ac_cv_have_decl_snprintf = no; then
   28842     HAVE_DECL_SNPRINTF=0
   28843   fi
   28844 
   28845 
   28846 
   28847 
   28848 
   28849 
   28850           GNULIB_SNPRINTF=1
   28851 
   28852 
   28853 
   28854 
   28855 
   28856 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
   28857 
   28858 
   28859 
   28860 
   28861 
   28862 cat >>confdefs.h <<_ACEOF
   28863 #define GNULIB_SNPRINTF 1
   28864 _ACEOF
   28865 
   28866 
   28867 
   28868 
   28869 
   28870 
   28871 
   28872 
   28873 
   28874 
   28875 
   28876 
   28877 
   28878 
   28879 
   28880 
   28881 
   28882   gl_cv_func_snprintf_posix=no
   28883   for ac_func in snprintf
   28884 do :
   28885   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   28886 if test "x$ac_cv_func_snprintf" = xyes; then :
   28887   cat >>confdefs.h <<_ACEOF
   28888 #define HAVE_SNPRINTF 1
   28889 _ACEOF
   28890 
   28891 fi
   28892 done
   28893 
   28894   if test $ac_cv_func_snprintf = yes; then
   28895 
   28896 
   28897 
   28898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
   28899 $as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; }
   28900 if ${gl_cv_func_snprintf_truncation_c99+:} false; then :
   28901   $as_echo_n "(cached) " >&6
   28902 else
   28903 
   28904       if test "$cross_compiling" = yes; then :
   28905 
   28906          case "$host_os" in
   28907                                  # Guess yes on glibc systems.
   28908            *-gnu*)               gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28909                                  # Guess yes on FreeBSD >= 5.
   28910            freebsd[1-4]*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
   28911            freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28912                                  # Guess yes on Mac OS X >= 10.3.
   28913            darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
   28914            darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28915                                  # Guess yes on OpenBSD >= 3.9.
   28916            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
   28917                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
   28918            openbsd*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28919                                  # Guess yes on Solaris >= 2.6.
   28920            solaris2.[0-5] | solaris2.[0-5].*)
   28921                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
   28922            solaris*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28923                                  # Guess yes on AIX >= 4.
   28924            aix[1-3]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
   28925            aix*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28926                                  # Guess yes on HP-UX >= 11.
   28927            hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
   28928            hpux*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28929                                  # Guess yes on IRIX >= 6.5.
   28930            irix6.5)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28931                                  # Guess yes on OSF/1 >= 5.
   28932            osf[3-4]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
   28933            osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28934                                  # Guess yes on NetBSD >= 3.
   28935            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   28936                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
   28937            netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28938                                  # Guess yes on BeOS.
   28939            beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
   28940                                  # If we don't know, assume the worst.
   28941            *)                    gl_cv_func_snprintf_truncation_c99="guessing no";;
   28942          esac
   28943 
   28944 else
   28945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28946 /* end confdefs.h.  */
   28947 
   28948 #include <stdio.h>
   28949 #include <string.h>
   28950 #if HAVE_SNPRINTF
   28951 # define my_snprintf snprintf
   28952 #else
   28953 # include <stdarg.h>
   28954 static int my_snprintf (char *buf, int size, const char *format, ...)
   28955 {
   28956   va_list args;
   28957   int ret;
   28958   va_start (args, format);
   28959   ret = vsnprintf (buf, size, format, args);
   28960   va_end (args);
   28961   return ret;
   28962 }
   28963 #endif
   28964 static char buf[100];
   28965 int main ()
   28966 {
   28967   strcpy (buf, "ABCDEF");
   28968   my_snprintf (buf, 3, "%d %d", 4567, 89);
   28969   if (memcmp (buf, "45\0DEF", 6) != 0)
   28970     return 1;
   28971   return 0;
   28972 }
   28973 _ACEOF
   28974 if ac_fn_c_try_run "$LINENO"; then :
   28975   gl_cv_func_snprintf_truncation_c99=yes
   28976 else
   28977   gl_cv_func_snprintf_truncation_c99=no
   28978 fi
   28979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28980   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28981 fi
   28982 
   28983 
   28984 fi
   28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
   28986 $as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; }
   28987 
   28988 
   28989 
   28990 
   28991 
   28992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf fully supports the 'n' directive" >&5
   28993 $as_echo_n "checking whether snprintf fully supports the 'n' directive... " >&6; }
   28994 if ${gl_cv_func_snprintf_directive_n+:} false; then :
   28995   $as_echo_n "(cached) " >&6
   28996 else
   28997 
   28998       if test "$cross_compiling" = yes; then :
   28999 
   29000          case "$host_os" in
   29001                                  # Guess yes on glibc systems.
   29002            *-gnu*)               gl_cv_func_snprintf_directive_n="guessing yes";;
   29003                                  # Guess yes on FreeBSD >= 5.
   29004            freebsd[1-4]*)        gl_cv_func_snprintf_directive_n="guessing no";;
   29005            freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
   29006                                  # Guess yes on Mac OS X >= 10.3.
   29007            darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
   29008            darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
   29009                                  # Guess yes on Solaris >= 2.6.
   29010            solaris2.[0-5] | solaris2.[0-5].*)
   29011                                  gl_cv_func_snprintf_directive_n="guessing no";;
   29012            solaris*)             gl_cv_func_snprintf_directive_n="guessing yes";;
   29013                                  # Guess yes on AIX >= 4.
   29014            aix[1-3]*)            gl_cv_func_snprintf_directive_n="guessing no";;
   29015            aix*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
   29016                                  # Guess yes on IRIX >= 6.5.
   29017            irix6.5)              gl_cv_func_snprintf_directive_n="guessing yes";;
   29018                                  # Guess yes on OSF/1 >= 5.
   29019            osf[3-4]*)            gl_cv_func_snprintf_directive_n="guessing no";;
   29020            osf*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
   29021                                  # Guess yes on NetBSD >= 3.
   29022            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   29023                                  gl_cv_func_snprintf_directive_n="guessing no";;
   29024            netbsd*)              gl_cv_func_snprintf_directive_n="guessing yes";;
   29025                                  # Guess yes on BeOS.
   29026            beos*)                gl_cv_func_snprintf_directive_n="guessing yes";;
   29027                                  # If we don't know, assume the worst.
   29028            *)                    gl_cv_func_snprintf_directive_n="guessing no";;
   29029          esac
   29030 
   29031 else
   29032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29033 /* end confdefs.h.  */
   29034 
   29035 #include <stdio.h>
   29036 #include <string.h>
   29037 #if HAVE_SNPRINTF
   29038 # define my_snprintf snprintf
   29039 #else
   29040 # include <stdarg.h>
   29041 static int my_snprintf (char *buf, int size, const char *format, ...)
   29042 {
   29043   va_list args;
   29044   int ret;
   29045   va_start (args, format);
   29046   ret = vsnprintf (buf, size, format, args);
   29047   va_end (args);
   29048   return ret;
   29049 }
   29050 #endif
   29051 static char fmtstring[10];
   29052 static char buf[100];
   29053 int main ()
   29054 {
   29055   int count = -1;
   29056   /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
   29057      support %n in format strings in read-only memory but not in writable
   29058      memory.  */
   29059   strcpy (fmtstring, "%d %n");
   29060   my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
   29061   if (count != 6)
   29062     return 1;
   29063   return 0;
   29064 }
   29065 _ACEOF
   29066 if ac_fn_c_try_run "$LINENO"; then :
   29067   gl_cv_func_snprintf_directive_n=yes
   29068 else
   29069   gl_cv_func_snprintf_directive_n=no
   29070 fi
   29071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29072   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29073 fi
   29074 
   29075 
   29076 fi
   29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_directive_n" >&5
   29078 $as_echo "$gl_cv_func_snprintf_directive_n" >&6; }
   29079 
   29080 
   29081 
   29082 
   29083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
   29084 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
   29085 if ${gl_cv_func_snprintf_size1+:} false; then :
   29086   $as_echo_n "(cached) " >&6
   29087 else
   29088 
   29089       if test "$cross_compiling" = yes; then :
   29090   gl_cv_func_snprintf_size1="guessing yes"
   29091 else
   29092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29093 /* end confdefs.h.  */
   29094 
   29095 #include <stdio.h>
   29096 #if HAVE_SNPRINTF
   29097 # define my_snprintf snprintf
   29098 #else
   29099 # include <stdarg.h>
   29100 static int my_snprintf (char *buf, int size, const char *format, ...)
   29101 {
   29102   va_list args;
   29103   int ret;
   29104   va_start (args, format);
   29105   ret = vsnprintf (buf, size, format, args);
   29106   va_end (args);
   29107   return ret;
   29108 }
   29109 #endif
   29110 int main()
   29111 {
   29112   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
   29113   my_snprintf (buf, 1, "%d", 12345);
   29114   return buf[1] != 'E';
   29115 }
   29116 _ACEOF
   29117 if ac_fn_c_try_run "$LINENO"; then :
   29118   gl_cv_func_snprintf_size1=yes
   29119 else
   29120   gl_cv_func_snprintf_size1=no
   29121 fi
   29122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29123   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29124 fi
   29125 
   29126 
   29127 fi
   29128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
   29129 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
   29130 
   29131 
   29132 
   29133      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf respects a zero size as in C99" >&5
   29134 $as_echo_n "checking whether vsnprintf respects a zero size as in C99... " >&6; }
   29135 if ${gl_cv_func_vsnprintf_zerosize_c99+:} false; then :
   29136   $as_echo_n "(cached) " >&6
   29137 else
   29138 
   29139       if test "$cross_compiling" = yes; then :
   29140 
   29141          case "$host_os" in
   29142                                  # Guess yes on glibc systems.
   29143            *-gnu*)               gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29144                                  # Guess yes on FreeBSD >= 5.
   29145            freebsd[1-4]*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   29146            freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29147                                  # Guess yes on Mac OS X >= 10.3.
   29148            darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   29149            darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29150                                  # Guess yes on Cygwin.
   29151            cygwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29152                                  # Guess yes on Solaris >= 2.6.
   29153            solaris2.[0-5] | solaris2.[0-5].*)
   29154                                  gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   29155            solaris*)             gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29156                                  # Guess yes on AIX >= 4.
   29157            aix[1-3]*)            gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   29158            aix*)                 gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29159                                  # Guess yes on IRIX >= 6.5.
   29160            irix6.5)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29161                                  # Guess yes on NetBSD >= 3.
   29162            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   29163                                  gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   29164            netbsd*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29165                                  # Guess yes on BeOS.
   29166            beos*)                gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29167                                  # Guess yes on mingw.
   29168            mingw* | pw*)         gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   29169                                  # If we don't know, assume the worst.
   29170            *)                    gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   29171          esac
   29172 
   29173 else
   29174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29175 /* end confdefs.h.  */
   29176 
   29177 #include <stdarg.h>
   29178 #include <stdio.h>
   29179 static int my_snprintf (char *buf, int size, const char *format, ...)
   29180 {
   29181   va_list args;
   29182   int ret;
   29183   va_start (args, format);
   29184   ret = vsnprintf (buf, size, format, args);
   29185   va_end (args);
   29186   return ret;
   29187 }
   29188 int main()
   29189 {
   29190   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
   29191   my_snprintf (buf, 0, "%d", 12345);
   29192   return buf[0] != 'D';
   29193 }
   29194 _ACEOF
   29195 if ac_fn_c_try_run "$LINENO"; then :
   29196   gl_cv_func_vsnprintf_zerosize_c99=yes
   29197 else
   29198   gl_cv_func_vsnprintf_zerosize_c99=no
   29199 fi
   29200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29201   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29202 fi
   29203 
   29204 
   29205 fi
   29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_vsnprintf_zerosize_c99" >&5
   29207 $as_echo "$gl_cv_func_vsnprintf_zerosize_c99" >&6; }
   29208 
   29209     case "$gl_cv_func_printf_sizes_c99" in
   29210       *yes)
   29211         case "$gl_cv_func_printf_long_double" in
   29212           *yes)
   29213             case "$gl_cv_func_printf_infinite" in
   29214               *yes)
   29215                 case "$gl_cv_func_printf_infinite_long_double" in
   29216                   *yes)
   29217                     case "$gl_cv_func_printf_directive_a" in
   29218                       *yes)
   29219                         case "$gl_cv_func_printf_directive_f" in
   29220                           *yes)
   29221                             case "$gl_cv_func_printf_directive_n" in
   29222                               *yes)
   29223                                 case "$gl_cv_func_printf_directive_ls" in
   29224                                   *yes)
   29225                                     case "$gl_cv_func_printf_positions" in
   29226                                       *yes)
   29227                                         case "$gl_cv_func_printf_flag_grouping" in
   29228                                           *yes)
   29229                                             case "$gl_cv_func_printf_flag_leftadjust" in
   29230                                               *yes)
   29231                                                 case "$gl_cv_func_printf_flag_zero" in
   29232                                                   *yes)
   29233                                                     case "$gl_cv_func_printf_precision" in
   29234                                                       *yes)
   29235                                                         case "$gl_cv_func_printf_enomem" in
   29236                                                           *yes)
   29237                                                             case "$gl_cv_func_snprintf_truncation_c99" in
   29238                                                               *yes)
   29239                                                                 case "$gl_cv_func_snprintf_retval_c99" in
   29240                                                                   *yes)
   29241                                                                     case "$gl_cv_func_snprintf_directive_n" in
   29242                                                                       *yes)
   29243                                                                         case "$gl_cv_func_snprintf_size1" in
   29244                                                                           *yes)
   29245                                                                             case "$gl_cv_func_vsnprintf_zerosize_c99" in
   29246                                                                               *yes)
   29247                                                                                 # snprintf exists and is
   29248                                                                                 # already POSIX compliant.
   29249                                                                                 gl_cv_func_snprintf_posix=yes
   29250                                                                                 ;;
   29251                                                                             esac
   29252                                                                             ;;
   29253                                                                         esac
   29254                                                                         ;;
   29255                                                                     esac
   29256                                                                     ;;
   29257                                                                 esac
   29258                                                                 ;;
   29259                                                             esac
   29260                                                             ;;
   29261                                                         esac
   29262                                                         ;;
   29263                                                     esac
   29264                                                     ;;
   29265                                                 esac
   29266                                                 ;;
   29267                                             esac
   29268                                             ;;
   29269                                         esac
   29270                                         ;;
   29271                                     esac
   29272                                     ;;
   29273                                 esac
   29274                                 ;;
   29275                             esac
   29276                             ;;
   29277                         esac
   29278                         ;;
   29279                     esac
   29280                     ;;
   29281                 esac
   29282                 ;;
   29283             esac
   29284             ;;
   29285         esac
   29286         ;;
   29287     esac
   29288   fi
   29289   if test $gl_cv_func_snprintf_posix = no; then
   29290 
   29291 
   29292 
   29293   case "$gl_cv_func_printf_infinite" in
   29294     *yes)
   29295       ;;
   29296     *)
   29297 
   29298 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   29299 
   29300       ;;
   29301   esac
   29302 
   29303 
   29304 
   29305 
   29306   case "$gl_cv_func_printf_long_double" in
   29307     *yes)
   29308       case "$gl_cv_func_printf_infinite_long_double" in
   29309         *yes)
   29310           ;;
   29311         *)
   29312 
   29313 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   29314 
   29315           ;;
   29316       esac
   29317       ;;
   29318   esac
   29319 
   29320 
   29321 
   29322   case "$gl_cv_func_printf_directive_a" in
   29323     *yes)
   29324       ;;
   29325     *)
   29326 
   29327 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   29328 
   29329       for ac_func in nl_langinfo
   29330 do :
   29331   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   29332 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   29333   cat >>confdefs.h <<_ACEOF
   29334 #define HAVE_NL_LANGINFO 1
   29335 _ACEOF
   29336 
   29337 fi
   29338 done
   29339 
   29340       ;;
   29341   esac
   29342 
   29343 
   29344 
   29345   case "$gl_cv_func_printf_directive_f" in
   29346     *yes)
   29347       ;;
   29348     *)
   29349 
   29350 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   29351 
   29352       ;;
   29353   esac
   29354 
   29355 
   29356 
   29357   case "$gl_cv_func_printf_directive_ls" in
   29358     *yes)
   29359       ;;
   29360     *)
   29361 
   29362 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   29363 
   29364       ;;
   29365   esac
   29366 
   29367 
   29368 
   29369   case "$gl_cv_func_printf_flag_grouping" in
   29370     *yes)
   29371       ;;
   29372     *)
   29373 
   29374 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   29375 
   29376       ;;
   29377   esac
   29378 
   29379 
   29380 
   29381   case "$gl_cv_func_printf_flag_leftadjust" in
   29382     *yes)
   29383       ;;
   29384     *)
   29385 
   29386 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   29387 
   29388       ;;
   29389   esac
   29390 
   29391 
   29392 
   29393   case "$gl_cv_func_printf_flag_zero" in
   29394     *yes)
   29395       ;;
   29396     *)
   29397 
   29398 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   29399 
   29400       ;;
   29401   esac
   29402 
   29403 
   29404 
   29405   case "$gl_cv_func_printf_precision" in
   29406     *yes)
   29407       ;;
   29408     *)
   29409 
   29410 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   29411 
   29412 
   29413 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   29414 
   29415 
   29416 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   29417 
   29418       ;;
   29419   esac
   29420 
   29421 
   29422 
   29423   case "$gl_cv_func_printf_enomem" in
   29424     *yes)
   29425       ;;
   29426     *)
   29427 
   29428 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   29429 
   29430 
   29431 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   29432 
   29433 
   29434 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   29435 
   29436       ;;
   29437   esac
   29438 
   29439 
   29440 
   29441 
   29442 
   29443 
   29444 
   29445 
   29446 
   29447 
   29448 
   29449   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   29450 
   29451 
   29452 
   29453 
   29454 
   29455 
   29456 
   29457 
   29458 
   29459   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   29460 
   29461 
   29462 
   29463 
   29464 
   29465 
   29466 
   29467 
   29468 
   29469   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   29470 
   29471 
   29472 
   29473 
   29474 
   29475 
   29476 
   29477 
   29478 
   29479   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   29480 
   29481   if test $ac_cv_func_vasnprintf = yes; then
   29482 
   29483 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   29484 
   29485   fi
   29486 
   29487 
   29488 
   29489 
   29490 
   29491 
   29492 
   29493 
   29494 
   29495 
   29496 
   29497   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   29498 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   29499 
   29500 else
   29501 
   29502 $as_echo "#define ptrdiff_t long" >>confdefs.h
   29503 
   29504 
   29505 fi
   29506 
   29507 
   29508 
   29509 
   29510 
   29511 
   29512 
   29513 
   29514 
   29515 
   29516 
   29517 
   29518 
   29519 
   29520 
   29521 
   29522 
   29523   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
   29524 
   29525   if test $ac_cv_func_snprintf = yes; then
   29526     REPLACE_SNPRINTF=1
   29527   fi
   29528   :
   29529 
   29530   fi
   29531 
   29532 
   29533 
   29534 
   29535 
   29536 
   29537 
   29538 
   29539 
   29540 
   29541 
   29542 
   29543 
   29544      if test $gl_cv_have_include_next = yes; then
   29545        gl_cv_next_spawn_h='<'spawn.h'>'
   29546      else
   29547        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <spawn.h>" >&5
   29548 $as_echo_n "checking absolute name of <spawn.h>... " >&6; }
   29549 if ${gl_cv_next_spawn_h+:} false; then :
   29550   $as_echo_n "(cached) " >&6
   29551 else
   29552 
   29553              if test $ac_cv_header_spawn_h = yes; then
   29554 
   29555 
   29556                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29557 /* end confdefs.h.  */
   29558 #include <spawn.h>
   29559 
   29560 _ACEOF
   29561                                                                                                                         case "$host_os" in
   29562                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   29563                  *)    gl_absname_cpp="$ac_cpp" ;;
   29564                esac
   29565 
   29566                case "$host_os" in
   29567                  mingw*)
   29568                                                                                                                                      gl_dirsep_regex='[/\\]'
   29569                    ;;
   29570                  *)
   29571                    gl_dirsep_regex='\/'
   29572                    ;;
   29573                esac
   29574                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   29575 
   29576                gl_header_literal_regex=`echo 'spawn.h' \
   29577                                         | sed -e "$gl_make_literal_regex_sed"`
   29578                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   29579                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   29580                    s|^/[^/]|//&|
   29581                    p
   29582                    q
   29583                  }'
   29584                                                             gl_cv_next_spawn_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   29585                       sed -n "$gl_absolute_header_sed"`'"'
   29586           else
   29587                gl_cv_next_spawn_h='<'spawn.h'>'
   29588              fi
   29589 
   29590 
   29591 fi
   29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5
   29593 $as_echo "$gl_cv_next_spawn_h" >&6; }
   29594      fi
   29595      NEXT_SPAWN_H=$gl_cv_next_spawn_h
   29596 
   29597      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   29598        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   29599        gl_next_as_first_directive='<'spawn.h'>'
   29600      else
   29601        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   29602        gl_next_as_first_directive=$gl_cv_next_spawn_h
   29603      fi
   29604      NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive
   29605 
   29606 
   29607 
   29608 
   29609 
   29610   if test $ac_cv_header_spawn_h = yes; then
   29611     HAVE_SPAWN_H=1
   29612     ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" "
   29613 #include <spawn.h>
   29614 
   29615 "
   29616 if test "x$ac_cv_type_posix_spawnattr_t" = xyes; then :
   29617 
   29618 cat >>confdefs.h <<_ACEOF
   29619 #define HAVE_POSIX_SPAWNATTR_T 1
   29620 _ACEOF
   29621 
   29622 
   29623 else
   29624   HAVE_POSIX_SPAWNATTR_T=0
   29625 fi
   29626 
   29627     ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" "
   29628 #include <spawn.h>
   29629 
   29630 "
   29631 if test "x$ac_cv_type_posix_spawn_file_actions_t" = xyes; then :
   29632 
   29633 cat >>confdefs.h <<_ACEOF
   29634 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1
   29635 _ACEOF
   29636 
   29637 
   29638 else
   29639   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
   29640 fi
   29641 
   29642   else
   29643     HAVE_SPAWN_H=0
   29644     HAVE_POSIX_SPAWNATTR_T=0
   29645     HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
   29646   fi
   29647 
   29648 
   29649 
   29650 
   29651 
   29652 
   29653 
   29654 
   29655 
   29656 
   29657 
   29658     for gl_func in posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy     posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault     posix_spawnattr_getsigmask posix_spawnattr_setsigmask     posix_spawnattr_getflags posix_spawnattr_setflags     posix_spawnattr_getpgroup posix_spawnattr_setpgroup     posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy     posix_spawnattr_getschedparam posix_spawnattr_setschedparam     posix_spawn_file_actions_init posix_spawn_file_actions_destroy     posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose     posix_spawn_file_actions_adddup2; do
   29659     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   29660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   29661 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   29662 if eval \${$as_gl_Symbol+:} false; then :
   29663   $as_echo_n "(cached) " >&6
   29664 else
   29665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29666 /* end confdefs.h.  */
   29667 #include <spawn.h>
   29668 
   29669 int
   29670 main ()
   29671 {
   29672 #undef $gl_func
   29673   (void) $gl_func;
   29674   ;
   29675   return 0;
   29676 }
   29677 _ACEOF
   29678 if ac_fn_c_try_compile "$LINENO"; then :
   29679   eval "$as_gl_Symbol=yes"
   29680 else
   29681   eval "$as_gl_Symbol=no"
   29682 fi
   29683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29684 fi
   29685 eval ac_res=\$$as_gl_Symbol
   29686 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   29687 $as_echo "$ac_res" >&6; }
   29688     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   29689   cat >>confdefs.h <<_ACEOF
   29690 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   29691 _ACEOF
   29692 
   29693                      eval ac_cv_have_decl_$gl_func=yes
   29694 fi
   29695       done
   29696 
   29697 
   29698 
   29699 
   29700 
   29701 
   29702 
   29703 
   29704 
   29705 
   29706 
   29707 
   29708 
   29709 
   29710 
   29711 
   29712 
   29713 
   29714 
   29715 
   29716   gl_cv_func_sprintf_posix=no
   29717   case "$gl_cv_func_printf_sizes_c99" in
   29718     *yes)
   29719       case "$gl_cv_func_printf_long_double" in
   29720         *yes)
   29721           case "$gl_cv_func_printf_infinite" in
   29722             *yes)
   29723               case "$gl_cv_func_printf_infinite_long_double" in
   29724                 *yes)
   29725                   case "$gl_cv_func_printf_directive_a" in
   29726                     *yes)
   29727                       case "$gl_cv_func_printf_directive_f" in
   29728                         *yes)
   29729                           case "$gl_cv_func_printf_directive_n" in
   29730                             *yes)
   29731                               case "$gl_cv_func_printf_directive_ls" in
   29732                                 *yes)
   29733                                   case "$gl_cv_func_printf_positions" in
   29734                                     *yes)
   29735                                       case "$gl_cv_func_printf_flag_grouping" in
   29736                                         *yes)
   29737                                           case "$gl_cv_func_printf_flag_leftadjust" in
   29738                                             *yes)
   29739                                               case "$gl_cv_func_printf_flag_zero" in
   29740                                                 *yes)
   29741                                                   case "$gl_cv_func_printf_precision" in
   29742                                                     *yes)
   29743                                                       case "$gl_cv_func_printf_enomem" in
   29744                                                         *yes)
   29745                                                           # sprintf exists and is
   29746                                                           # already POSIX compliant.
   29747                                                           gl_cv_func_sprintf_posix=yes
   29748                                                           ;;
   29749                                                       esac
   29750                                                       ;;
   29751                                                   esac
   29752                                                   ;;
   29753                                               esac
   29754                                               ;;
   29755                                           esac
   29756                                           ;;
   29757                                       esac
   29758                                       ;;
   29759                                   esac
   29760                                   ;;
   29761                               esac
   29762                               ;;
   29763                           esac
   29764                           ;;
   29765                       esac
   29766                       ;;
   29767                   esac
   29768                   ;;
   29769               esac
   29770               ;;
   29771           esac
   29772           ;;
   29773       esac
   29774       ;;
   29775   esac
   29776   if test $gl_cv_func_sprintf_posix = no; then
   29777 
   29778 
   29779 
   29780   case "$gl_cv_func_printf_infinite" in
   29781     *yes)
   29782       ;;
   29783     *)
   29784 
   29785 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   29786 
   29787       ;;
   29788   esac
   29789 
   29790 
   29791 
   29792 
   29793   case "$gl_cv_func_printf_long_double" in
   29794     *yes)
   29795       case "$gl_cv_func_printf_infinite_long_double" in
   29796         *yes)
   29797           ;;
   29798         *)
   29799 
   29800 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   29801 
   29802           ;;
   29803       esac
   29804       ;;
   29805   esac
   29806 
   29807 
   29808 
   29809   case "$gl_cv_func_printf_directive_a" in
   29810     *yes)
   29811       ;;
   29812     *)
   29813 
   29814 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   29815 
   29816       for ac_func in nl_langinfo
   29817 do :
   29818   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   29819 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   29820   cat >>confdefs.h <<_ACEOF
   29821 #define HAVE_NL_LANGINFO 1
   29822 _ACEOF
   29823 
   29824 fi
   29825 done
   29826 
   29827       ;;
   29828   esac
   29829 
   29830 
   29831 
   29832   case "$gl_cv_func_printf_directive_f" in
   29833     *yes)
   29834       ;;
   29835     *)
   29836 
   29837 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   29838 
   29839       ;;
   29840   esac
   29841 
   29842 
   29843 
   29844   case "$gl_cv_func_printf_directive_ls" in
   29845     *yes)
   29846       ;;
   29847     *)
   29848 
   29849 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   29850 
   29851       ;;
   29852   esac
   29853 
   29854 
   29855 
   29856   case "$gl_cv_func_printf_flag_grouping" in
   29857     *yes)
   29858       ;;
   29859     *)
   29860 
   29861 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   29862 
   29863       ;;
   29864   esac
   29865 
   29866 
   29867 
   29868   case "$gl_cv_func_printf_flag_leftadjust" in
   29869     *yes)
   29870       ;;
   29871     *)
   29872 
   29873 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   29874 
   29875       ;;
   29876   esac
   29877 
   29878 
   29879 
   29880   case "$gl_cv_func_printf_flag_zero" in
   29881     *yes)
   29882       ;;
   29883     *)
   29884 
   29885 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   29886 
   29887       ;;
   29888   esac
   29889 
   29890 
   29891 
   29892   case "$gl_cv_func_printf_precision" in
   29893     *yes)
   29894       ;;
   29895     *)
   29896 
   29897 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   29898 
   29899 
   29900 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   29901 
   29902 
   29903 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   29904 
   29905       ;;
   29906   esac
   29907 
   29908 
   29909 
   29910   case "$gl_cv_func_printf_enomem" in
   29911     *yes)
   29912       ;;
   29913     *)
   29914 
   29915 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   29916 
   29917 
   29918 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   29919 
   29920 
   29921 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   29922 
   29923       ;;
   29924   esac
   29925 
   29926 
   29927 
   29928 
   29929 
   29930 
   29931 
   29932 
   29933 
   29934 
   29935 
   29936   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   29937 
   29938 
   29939 
   29940 
   29941 
   29942 
   29943 
   29944 
   29945 
   29946   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   29947 
   29948 
   29949 
   29950 
   29951 
   29952 
   29953 
   29954 
   29955 
   29956   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   29957 
   29958 
   29959 
   29960 
   29961 
   29962 
   29963 
   29964 
   29965 
   29966   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   29967 
   29968   if test $ac_cv_func_vasnprintf = yes; then
   29969 
   29970 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   29971 
   29972   fi
   29973 
   29974 
   29975 
   29976 
   29977 
   29978 
   29979 
   29980 
   29981 
   29982 
   29983 
   29984   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   29985 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   29986 
   29987 else
   29988 
   29989 $as_echo "#define ptrdiff_t long" >>confdefs.h
   29990 
   29991 
   29992 fi
   29993 
   29994 
   29995 
   29996 
   29997 
   29998 
   29999 
   30000 
   30001 
   30002 
   30003 
   30004 
   30005 
   30006 
   30007 
   30008 
   30009 
   30010   gl_LIBOBJS="$gl_LIBOBJS sprintf.$ac_objext"
   30011 
   30012   REPLACE_SPRINTF=1
   30013   :
   30014 
   30015   fi
   30016 
   30017 
   30018 
   30019 
   30020 
   30021 
   30022           GNULIB_SPRINTF_POSIX=1
   30023 
   30024 
   30025 
   30026 
   30027 
   30028 $as_echo "#define GNULIB_TEST_SPRINTF_POSIX 1" >>confdefs.h
   30029 
   30030 
   30031 
   30032 
   30033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
   30034 $as_echo_n "checking for ssize_t... " >&6; }
   30035 if ${gt_cv_ssize_t+:} false; then :
   30036   $as_echo_n "(cached) " >&6
   30037 else
   30038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30039 /* end confdefs.h.  */
   30040 #include <sys/types.h>
   30041 int
   30042 main ()
   30043 {
   30044 int x = sizeof (ssize_t *) + sizeof (ssize_t);
   30045             return !x;
   30046   ;
   30047   return 0;
   30048 }
   30049 _ACEOF
   30050 if ac_fn_c_try_compile "$LINENO"; then :
   30051   gt_cv_ssize_t=yes
   30052 else
   30053   gt_cv_ssize_t=no
   30054 fi
   30055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30056 fi
   30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
   30058 $as_echo "$gt_cv_ssize_t" >&6; }
   30059   if test $gt_cv_ssize_t = no; then
   30060 
   30061 $as_echo "#define ssize_t int" >>confdefs.h
   30062 
   30063   fi
   30064 
   30065 
   30066 
   30067 
   30068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
   30069 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
   30070 if ${gl_cv_func_stat_dir_slash+:} false; then :
   30071   $as_echo_n "(cached) " >&6
   30072 else
   30073   if test "$cross_compiling" = yes; then :
   30074   case $host_os in
   30075             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
   30076             *) gl_cv_func_stat_dir_slash="guessing yes";;
   30077           esac
   30078 else
   30079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30080 /* end confdefs.h.  */
   30081 #include <sys/stat.h>
   30082 
   30083 int
   30084 main ()
   30085 {
   30086 struct stat st; return stat (".", &st) != stat ("./", &st);
   30087   ;
   30088   return 0;
   30089 }
   30090 _ACEOF
   30091 if ac_fn_c_try_run "$LINENO"; then :
   30092   gl_cv_func_stat_dir_slash=yes
   30093 else
   30094   gl_cv_func_stat_dir_slash=no
   30095 fi
   30096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30097   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30098 fi
   30099 
   30100 fi
   30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
   30102 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
   30103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
   30104 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
   30105 if ${gl_cv_func_stat_file_slash+:} false; then :
   30106   $as_echo_n "(cached) " >&6
   30107 else
   30108   touch conftest.tmp
   30109        # Assume that if we have lstat, we can also check symlinks.
   30110        if test $ac_cv_func_lstat = yes; then
   30111          ln -s conftest.tmp conftest.lnk
   30112        fi
   30113        if test "$cross_compiling" = yes; then :
   30114   case "$host_os" in
   30115                     # Guess yes on glibc systems.
   30116             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
   30117                     # If we don't know, assume the worst.
   30118             *)      gl_cv_func_stat_file_slash="guessing no" ;;
   30119           esac
   30120 
   30121 else
   30122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30123 /* end confdefs.h.  */
   30124 #include <sys/stat.h>
   30125 
   30126 int
   30127 main ()
   30128 {
   30129 int result = 0;
   30130       struct stat st;
   30131       if (!stat ("conftest.tmp/", &st))
   30132         result |= 1;
   30133 #if HAVE_LSTAT
   30134       if (!stat ("conftest.lnk/", &st))
   30135         result |= 2;
   30136 #endif
   30137       return result;
   30138 
   30139   ;
   30140   return 0;
   30141 }
   30142 _ACEOF
   30143 if ac_fn_c_try_run "$LINENO"; then :
   30144   gl_cv_func_stat_file_slash=yes
   30145 else
   30146   gl_cv_func_stat_file_slash=no
   30147 fi
   30148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30149   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30150 fi
   30151 
   30152        rm -f conftest.tmp conftest.lnk
   30153 fi
   30154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
   30155 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
   30156   case $gl_cv_func_stat_dir_slash in
   30157     *no) REPLACE_STAT=1
   30158 
   30159 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
   30160 ;;
   30161   esac
   30162   case $gl_cv_func_stat_file_slash in
   30163     *no) REPLACE_STAT=1
   30164 
   30165 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
   30166 ;;
   30167   esac
   30168 
   30169   if test $REPLACE_STAT = 1; then
   30170 
   30171 
   30172 
   30173 
   30174 
   30175 
   30176 
   30177 
   30178   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
   30179 
   30180     :
   30181   fi
   30182 
   30183 
   30184 
   30185 
   30186 
   30187           GNULIB_STAT=1
   30188 
   30189 
   30190 
   30191 
   30192 
   30193 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
   30194 
   30195 
   30196 
   30197 
   30198 
   30199 
   30200   # Define two additional variables used in the Makefile substitution.
   30201 
   30202   if test "$ac_cv_header_stdbool_h" = yes; then
   30203     STDBOOL_H=''
   30204   else
   30205     STDBOOL_H='stdbool.h'
   30206   fi
   30207 
   30208    if test -n "$STDBOOL_H"; then
   30209   GL_GENERATE_STDBOOL_H_TRUE=
   30210   GL_GENERATE_STDBOOL_H_FALSE='#'
   30211 else
   30212   GL_GENERATE_STDBOOL_H_TRUE='#'
   30213   GL_GENERATE_STDBOOL_H_FALSE=
   30214 fi
   30215 
   30216 
   30217   if test "$ac_cv_type__Bool" = yes; then
   30218     HAVE__BOOL=1
   30219   else
   30220     HAVE__BOOL=0
   30221   fi
   30222 
   30223 
   30224 
   30225 
   30226 
   30227   STDDEF_H=
   30228   if test $gt_cv_c_wchar_t = no; then
   30229     HAVE_WCHAR_T=0
   30230     STDDEF_H=stddef.h
   30231   fi
   30232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
   30233 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
   30234 if ${gl_cv_decl_null_works+:} false; then :
   30235   $as_echo_n "(cached) " >&6
   30236 else
   30237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30238 /* end confdefs.h.  */
   30239 #include <stddef.h>
   30240       int test[2 * (sizeof NULL == sizeof (void *)) -1];
   30241 
   30242 int
   30243 main ()
   30244 {
   30245 
   30246   ;
   30247   return 0;
   30248 }
   30249 _ACEOF
   30250 if ac_fn_c_try_compile "$LINENO"; then :
   30251   gl_cv_decl_null_works=yes
   30252 else
   30253   gl_cv_decl_null_works=no
   30254 fi
   30255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30256 fi
   30257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
   30258 $as_echo "$gl_cv_decl_null_works" >&6; }
   30259   if test $gl_cv_decl_null_works = no; then
   30260     REPLACE_NULL=1
   30261     STDDEF_H=stddef.h
   30262   fi
   30263 
   30264    if test -n "$STDDEF_H"; then
   30265   GL_GENERATE_STDDEF_H_TRUE=
   30266   GL_GENERATE_STDDEF_H_FALSE='#'
   30267 else
   30268   GL_GENERATE_STDDEF_H_TRUE='#'
   30269   GL_GENERATE_STDDEF_H_FALSE=
   30270 fi
   30271 
   30272   if test -n "$STDDEF_H"; then
   30273 
   30274 
   30275 
   30276 
   30277 
   30278 
   30279 
   30280 
   30281      if test $gl_cv_have_include_next = yes; then
   30282        gl_cv_next_stddef_h='<'stddef.h'>'
   30283      else
   30284        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
   30285 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
   30286 if ${gl_cv_next_stddef_h+:} false; then :
   30287   $as_echo_n "(cached) " >&6
   30288 else
   30289 
   30290                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30291 /* end confdefs.h.  */
   30292 #include <stddef.h>
   30293 
   30294 _ACEOF
   30295                                                                                                                         case "$host_os" in
   30296                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   30297                  *)    gl_absname_cpp="$ac_cpp" ;;
   30298                esac
   30299 
   30300                case "$host_os" in
   30301                  mingw*)
   30302                                                                                                                                      gl_dirsep_regex='[/\\]'
   30303                    ;;
   30304                  *)
   30305                    gl_dirsep_regex='\/'
   30306                    ;;
   30307                esac
   30308                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   30309 
   30310                gl_header_literal_regex=`echo 'stddef.h' \
   30311                                         | sed -e "$gl_make_literal_regex_sed"`
   30312                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   30313                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   30314                    s|^/[^/]|//&|
   30315                    p
   30316                    q
   30317                  }'
   30318                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   30319                       sed -n "$gl_absolute_header_sed"`'"'
   30320 
   30321 
   30322 fi
   30323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
   30324 $as_echo "$gl_cv_next_stddef_h" >&6; }
   30325      fi
   30326      NEXT_STDDEF_H=$gl_cv_next_stddef_h
   30327 
   30328      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   30329        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   30330        gl_next_as_first_directive='<'stddef.h'>'
   30331      else
   30332        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   30333        gl_next_as_first_directive=$gl_cv_next_stddef_h
   30334      fi
   30335      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
   30336 
   30337 
   30338 
   30339 
   30340   fi
   30341 
   30342 
   30343 
   30344 
   30345 
   30346 
   30347 
   30348 
   30349 
   30350 
   30351 
   30352 
   30353      if test $gl_cv_have_include_next = yes; then
   30354        gl_cv_next_stdio_h='<'stdio.h'>'
   30355      else
   30356        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
   30357 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
   30358 if ${gl_cv_next_stdio_h+:} false; then :
   30359   $as_echo_n "(cached) " >&6
   30360 else
   30361 
   30362                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30363 /* end confdefs.h.  */
   30364 #include <stdio.h>
   30365 
   30366 _ACEOF
   30367                                                                                                                         case "$host_os" in
   30368                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   30369                  *)    gl_absname_cpp="$ac_cpp" ;;
   30370                esac
   30371 
   30372                case "$host_os" in
   30373                  mingw*)
   30374                                                                                                                                      gl_dirsep_regex='[/\\]'
   30375                    ;;
   30376                  *)
   30377                    gl_dirsep_regex='\/'
   30378                    ;;
   30379                esac
   30380                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   30381 
   30382                gl_header_literal_regex=`echo 'stdio.h' \
   30383                                         | sed -e "$gl_make_literal_regex_sed"`
   30384                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   30385                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   30386                    s|^/[^/]|//&|
   30387                    p
   30388                    q
   30389                  }'
   30390                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   30391                       sed -n "$gl_absolute_header_sed"`'"'
   30392 
   30393 
   30394 fi
   30395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
   30396 $as_echo "$gl_cv_next_stdio_h" >&6; }
   30397      fi
   30398      NEXT_STDIO_H=$gl_cv_next_stdio_h
   30399 
   30400      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   30401        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   30402        gl_next_as_first_directive='<'stdio.h'>'
   30403      else
   30404        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   30405        gl_next_as_first_directive=$gl_cv_next_stdio_h
   30406      fi
   30407      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
   30408 
   30409 
   30410 
   30411 
   30412 
   30413       GNULIB_FSCANF=1
   30414 
   30415 
   30416 cat >>confdefs.h <<_ACEOF
   30417 #define GNULIB_FSCANF 1
   30418 _ACEOF
   30419 
   30420 
   30421   GNULIB_SCANF=1
   30422 
   30423 
   30424 cat >>confdefs.h <<_ACEOF
   30425 #define GNULIB_SCANF 1
   30426 _ACEOF
   30427 
   30428 
   30429   GNULIB_FGETC=1
   30430   GNULIB_GETC=1
   30431   GNULIB_GETCHAR=1
   30432   GNULIB_FGETS=1
   30433   GNULIB_FREAD=1
   30434 
   30435 
   30436       GNULIB_FPRINTF=1
   30437   GNULIB_PRINTF=1
   30438   GNULIB_VFPRINTF=1
   30439   GNULIB_VPRINTF=1
   30440   GNULIB_FPUTC=1
   30441   GNULIB_PUTC=1
   30442   GNULIB_PUTCHAR=1
   30443   GNULIB_FPUTS=1
   30444   GNULIB_PUTS=1
   30445   GNULIB_FWRITE=1
   30446 
   30447 
   30448 
   30449 
   30450     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
   30451     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   30452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   30453 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   30454 if eval \${$as_gl_Symbol+:} false; then :
   30455   $as_echo_n "(cached) " >&6
   30456 else
   30457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30458 /* end confdefs.h.  */
   30459 #include <stdio.h>
   30460 
   30461 int
   30462 main ()
   30463 {
   30464 #undef $gl_func
   30465   (void) $gl_func;
   30466   ;
   30467   return 0;
   30468 }
   30469 _ACEOF
   30470 if ac_fn_c_try_compile "$LINENO"; then :
   30471   eval "$as_gl_Symbol=yes"
   30472 else
   30473   eval "$as_gl_Symbol=no"
   30474 fi
   30475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30476 fi
   30477 eval ac_res=\$$as_gl_Symbol
   30478 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   30479 $as_echo "$ac_res" >&6; }
   30480     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   30481   cat >>confdefs.h <<_ACEOF
   30482 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   30483 _ACEOF
   30484 
   30485                      eval ac_cv_have_decl_$gl_func=yes
   30486 fi
   30487       done
   30488 
   30489 
   30490 
   30491 
   30492 
   30493 
   30494 
   30495 
   30496 
   30497 
   30498 
   30499 
   30500      if test $gl_cv_have_include_next = yes; then
   30501        gl_cv_next_stdlib_h='<'stdlib.h'>'
   30502      else
   30503        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
   30504 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
   30505 if ${gl_cv_next_stdlib_h+:} false; then :
   30506   $as_echo_n "(cached) " >&6
   30507 else
   30508 
   30509                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30510 /* end confdefs.h.  */
   30511 #include <stdlib.h>
   30512 
   30513 _ACEOF
   30514                                                                                                                         case "$host_os" in
   30515                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   30516                  *)    gl_absname_cpp="$ac_cpp" ;;
   30517                esac
   30518 
   30519                case "$host_os" in
   30520                  mingw*)
   30521                                                                                                                                      gl_dirsep_regex='[/\\]'
   30522                    ;;
   30523                  *)
   30524                    gl_dirsep_regex='\/'
   30525                    ;;
   30526                esac
   30527                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   30528 
   30529                gl_header_literal_regex=`echo 'stdlib.h' \
   30530                                         | sed -e "$gl_make_literal_regex_sed"`
   30531                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   30532                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   30533                    s|^/[^/]|//&|
   30534                    p
   30535                    q
   30536                  }'
   30537                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   30538                       sed -n "$gl_absolute_header_sed"`'"'
   30539 
   30540 
   30541 fi
   30542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
   30543 $as_echo "$gl_cv_next_stdlib_h" >&6; }
   30544      fi
   30545      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
   30546 
   30547      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   30548        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   30549        gl_next_as_first_directive='<'stdlib.h'>'
   30550      else
   30551        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   30552        gl_next_as_first_directive=$gl_cv_next_stdlib_h
   30553      fi
   30554      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
   30555 
   30556 
   30557 
   30558 
   30559 
   30560 
   30561     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
   30562     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   30563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   30564 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   30565 if eval \${$as_gl_Symbol+:} false; then :
   30566   $as_echo_n "(cached) " >&6
   30567 else
   30568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30569 /* end confdefs.h.  */
   30570 #include <stdlib.h>
   30571 #if HAVE_SYS_LOADAVG_H
   30572 # include <sys/loadavg.h>
   30573 #endif
   30574 #if HAVE_RANDOM_H
   30575 # include <random.h>
   30576 #endif
   30577 
   30578 int
   30579 main ()
   30580 {
   30581 #undef $gl_func
   30582   (void) $gl_func;
   30583   ;
   30584   return 0;
   30585 }
   30586 _ACEOF
   30587 if ac_fn_c_try_compile "$LINENO"; then :
   30588   eval "$as_gl_Symbol=yes"
   30589 else
   30590   eval "$as_gl_Symbol=no"
   30591 fi
   30592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30593 fi
   30594 eval ac_res=\$$as_gl_Symbol
   30595 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   30596 $as_echo "$ac_res" >&6; }
   30597     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   30598   cat >>confdefs.h <<_ACEOF
   30599 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   30600 _ACEOF
   30601 
   30602                      eval ac_cv_have_decl_$gl_func=yes
   30603 fi
   30604       done
   30605 
   30606 
   30607 
   30608 
   30609 
   30610 
   30611 
   30612 
   30613   for ac_func in stpcpy
   30614 do :
   30615   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
   30616 if test "x$ac_cv_func_stpcpy" = xyes; then :
   30617   cat >>confdefs.h <<_ACEOF
   30618 #define HAVE_STPCPY 1
   30619 _ACEOF
   30620 
   30621 fi
   30622 done
   30623 
   30624   if test $ac_cv_func_stpcpy = no; then
   30625     HAVE_STPCPY=0
   30626   fi
   30627 
   30628   if test $HAVE_STPCPY = 0; then
   30629 
   30630 
   30631 
   30632 
   30633 
   30634 
   30635 
   30636 
   30637   gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
   30638 
   30639 
   30640   :
   30641 
   30642   fi
   30643 
   30644 
   30645 
   30646 
   30647 
   30648           GNULIB_STPCPY=1
   30649 
   30650 
   30651 
   30652 
   30653 
   30654 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
   30655 
   30656 
   30657 
   30658 
   30659 
   30660 
   30661 
   30662   for ac_func in strchrnul
   30663 do :
   30664   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
   30665 if test "x$ac_cv_func_strchrnul" = xyes; then :
   30666   cat >>confdefs.h <<_ACEOF
   30667 #define HAVE_STRCHRNUL 1
   30668 _ACEOF
   30669 
   30670 fi
   30671 done
   30672 
   30673   if test $ac_cv_func_strchrnul = no; then
   30674     HAVE_STRCHRNUL=0
   30675   else
   30676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
   30677 $as_echo_n "checking whether strchrnul works... " >&6; }
   30678 if ${gl_cv_func_strchrnul_works+:} false; then :
   30679   $as_echo_n "(cached) " >&6
   30680 else
   30681   if test "$cross_compiling" = yes; then :
   30682            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30683 /* end confdefs.h.  */
   30684 
   30685 #if defined __CYGWIN__
   30686  #include <cygwin/version.h>
   30687  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
   30688   Lucky user
   30689  #endif
   30690 #else
   30691   Lucky user
   30692 #endif
   30693 
   30694 _ACEOF
   30695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   30696   $EGREP "Lucky user" >/dev/null 2>&1; then :
   30697   gl_cv_func_strchrnul_works="guessing yes"
   30698 else
   30699   gl_cv_func_strchrnul_works="guessing no"
   30700 fi
   30701 rm -f conftest*
   30702 
   30703 
   30704 else
   30705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30706 /* end confdefs.h.  */
   30707 
   30708 #include <string.h> /* for strchrnul */
   30709 
   30710 int
   30711 main ()
   30712 {
   30713 const char *buf = "a";
   30714       return strchrnul (buf, 'b') != buf + 1;
   30715 
   30716   ;
   30717   return 0;
   30718 }
   30719 _ACEOF
   30720 if ac_fn_c_try_run "$LINENO"; then :
   30721   gl_cv_func_strchrnul_works=yes
   30722 else
   30723   gl_cv_func_strchrnul_works=no
   30724 fi
   30725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30726   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30727 fi
   30728 
   30729 
   30730 fi
   30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
   30732 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
   30733     case "$gl_cv_func_strchrnul_works" in
   30734       *yes) ;;
   30735       *) REPLACE_STRCHRNUL=1 ;;
   30736     esac
   30737   fi
   30738 
   30739   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
   30740 
   30741 
   30742 
   30743 
   30744 
   30745 
   30746 
   30747 
   30748   gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
   30749 
   30750     :
   30751   fi
   30752 
   30753 
   30754 
   30755 
   30756 
   30757           GNULIB_STRCHRNUL=1
   30758 
   30759 
   30760 
   30761 
   30762 
   30763 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
   30764 
   30765 
   30766 
   30767 
   30768 
   30769 
   30770 
   30771   if test $ac_cv_func_strdup = yes; then
   30772     if test $gl_cv_func_malloc_posix != yes; then
   30773       REPLACE_STRDUP=1
   30774     fi
   30775   fi
   30776 
   30777   if test $ac_cv_have_decl_strdup = no; then
   30778     HAVE_DECL_STRDUP=0
   30779   fi
   30780 
   30781   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
   30782 
   30783 
   30784 
   30785 
   30786 
   30787 
   30788 
   30789 
   30790   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
   30791 
   30792     :
   30793   fi
   30794 
   30795 
   30796 
   30797 
   30798 
   30799           GNULIB_STRDUP=1
   30800 
   30801 
   30802 
   30803 
   30804 
   30805 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
   30806 
   30807 
   30808 
   30809 
   30810 
   30811 
   30812 
   30813 
   30814 
   30815 
   30816   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
   30817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
   30818 $as_echo_n "checking for working strerror function... " >&6; }
   30819 if ${gl_cv_func_working_strerror+:} false; then :
   30820   $as_echo_n "(cached) " >&6
   30821 else
   30822   if test "$cross_compiling" = yes; then :
   30823   case "$host_os" in
   30824                    # Guess yes on glibc systems.
   30825            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
   30826                    # If we don't know, assume the worst.
   30827            *)      gl_cv_func_working_strerror="guessing no" ;;
   30828          esac
   30829 
   30830 else
   30831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30832 /* end confdefs.h.  */
   30833 #include <string.h>
   30834 
   30835 int
   30836 main ()
   30837 {
   30838 if (!*strerror (-2)) return 1;
   30839   ;
   30840   return 0;
   30841 }
   30842 _ACEOF
   30843 if ac_fn_c_try_run "$LINENO"; then :
   30844   gl_cv_func_working_strerror=yes
   30845 else
   30846   gl_cv_func_working_strerror=no
   30847 fi
   30848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30849   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30850 fi
   30851 
   30852 
   30853 fi
   30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
   30855 $as_echo "$gl_cv_func_working_strerror" >&6; }
   30856     case "$gl_cv_func_working_strerror" in
   30857       *yes) ;;
   30858       *)
   30859                         REPLACE_STRERROR=1
   30860         ;;
   30861     esac
   30862 
   30863                   case "$gl_cv_func_strerror_r_works" in
   30864         *no) REPLACE_STRERROR=1 ;;
   30865       esac
   30866 
   30867   else
   30868             REPLACE_STRERROR=1
   30869   fi
   30870 
   30871   if test $REPLACE_STRERROR = 1; then
   30872 
   30873 
   30874 
   30875 
   30876 
   30877 
   30878 
   30879 
   30880   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
   30881 
   30882   fi
   30883 
   30884 
   30885 cat >>confdefs.h <<_ACEOF
   30886 #define GNULIB_STRERROR 1
   30887 _ACEOF
   30888 
   30889 
   30890 
   30891 
   30892 
   30893 
   30894 
   30895           GNULIB_STRERROR=1
   30896 
   30897 
   30898 
   30899 
   30900 
   30901 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
   30902 
   30903 
   30904 
   30905 
   30906 
   30907   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
   30908 
   30909 
   30910 
   30911 
   30912 
   30913 
   30914 
   30915 
   30916   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
   30917 
   30918 
   30919 
   30920 
   30921 
   30922   if test $ac_cv_header_sys_socket_h != yes; then
   30923                     for ac_header in winsock2.h
   30924 do :
   30925   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   30926 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   30927   cat >>confdefs.h <<_ACEOF
   30928 #define HAVE_WINSOCK2_H 1
   30929 _ACEOF
   30930 
   30931 fi
   30932 
   30933 done
   30934 
   30935   fi
   30936   if test "$ac_cv_header_winsock2_h" = yes; then
   30937     HAVE_WINSOCK2_H=1
   30938     UNISTD_H_HAVE_WINSOCK2_H=1
   30939     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   30940   else
   30941     HAVE_WINSOCK2_H=0
   30942   fi
   30943 
   30944 
   30945   fi
   30946 
   30947 
   30948 
   30949 
   30950 
   30951 
   30952 
   30953   if test $ac_cv_have_decl_strerror_r = no; then
   30954     HAVE_DECL_STRERROR_R=0
   30955   fi
   30956 
   30957   if test $ac_cv_func_strerror_r = yes; then
   30958     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
   30959       if test $gl_cv_func_strerror_r_posix_signature = yes; then
   30960         case "$gl_cv_func_strerror_r_works" in
   30961                     *no) REPLACE_STRERROR_R=1 ;;
   30962         esac
   30963       else
   30964                 REPLACE_STRERROR_R=1
   30965       fi
   30966     else
   30967                   REPLACE_STRERROR_R=1
   30968     fi
   30969   fi
   30970 
   30971   if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
   30972 
   30973 
   30974 
   30975 
   30976 
   30977 
   30978 
   30979 
   30980   gl_LIBOBJS="$gl_LIBOBJS strerror_r.$ac_objext"
   30981 
   30982 
   30983 
   30984 
   30985 
   30986 
   30987   fi
   30988 
   30989 
   30990 
   30991 
   30992 
   30993           GNULIB_STRERROR_R=1
   30994 
   30995 
   30996 
   30997 
   30998 
   30999 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
   31000 
   31001 
   31002 
   31003 
   31004 
   31005 
   31006 
   31007 
   31008 
   31009 
   31010 
   31011 
   31012   if test $ac_cv_have_decl_strndup = no; then
   31013     HAVE_DECL_STRNDUP=0
   31014   fi
   31015 
   31016   if test $ac_cv_func_strndup = yes; then
   31017     HAVE_STRNDUP=1
   31018     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
   31019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
   31020 $as_echo_n "checking for working strndup... " >&6; }
   31021 if ${gl_cv_func_strndup_works+:} false; then :
   31022   $as_echo_n "(cached) " >&6
   31023 else
   31024   if test "$cross_compiling" = yes; then :
   31025 
   31026           case $host_os in
   31027             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
   31028             *)               gl_cv_func_strndup_works="guessing yes";;
   31029           esac
   31030 
   31031 else
   31032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31033 /* end confdefs.h.  */
   31034 
   31035          #include <string.h>
   31036                            #include <stdlib.h>
   31037 int
   31038 main ()
   31039 {
   31040 
   31041 #if !HAVE_DECL_STRNDUP
   31042   extern
   31043   #ifdef __cplusplus
   31044   "C"
   31045   #endif
   31046   char *strndup (const char *, size_t);
   31047 #endif
   31048   char *s;
   31049   s = strndup ("some longer string", 15);
   31050   free (s);
   31051   s = strndup ("shorter string", 13);
   31052   return s[13] != '\0';
   31053   ;
   31054   return 0;
   31055 }
   31056 _ACEOF
   31057 if ac_fn_c_try_run "$LINENO"; then :
   31058   gl_cv_func_strndup_works=yes
   31059 else
   31060   gl_cv_func_strndup_works=no
   31061 fi
   31062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31063   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31064 fi
   31065 
   31066 fi
   31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
   31068 $as_echo "$gl_cv_func_strndup_works" >&6; }
   31069     case $gl_cv_func_strndup_works in
   31070       *no) REPLACE_STRNDUP=1 ;;
   31071     esac
   31072   else
   31073     HAVE_STRNDUP=0
   31074   fi
   31075 
   31076   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
   31077 
   31078 
   31079 
   31080 
   31081 
   31082 
   31083 
   31084 
   31085   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
   31086 
   31087   fi
   31088 
   31089 
   31090 
   31091 
   31092 
   31093           GNULIB_STRNDUP=1
   31094 
   31095 
   31096 
   31097 
   31098 
   31099 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
   31100 
   31101 
   31102 
   31103 
   31104 
   31105 
   31106 
   31107 
   31108 
   31109   if test $ac_cv_have_decl_strnlen = no; then
   31110     HAVE_DECL_STRNLEN=0
   31111   else
   31112 
   31113          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
   31114 $as_echo_n "checking for working strnlen... " >&6; }
   31115 if ${ac_cv_func_strnlen_working+:} false; then :
   31116   $as_echo_n "(cached) " >&6
   31117 else
   31118   if test "$cross_compiling" = yes; then :
   31119   # Guess no on AIX systems, yes otherwise.
   31120 		case "$host_os" in
   31121 		  aix*) ac_cv_func_strnlen_working=no;;
   31122 		  *)    ac_cv_func_strnlen_working=yes;;
   31123 		esac
   31124 else
   31125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31126 /* end confdefs.h.  */
   31127 $ac_includes_default
   31128 int
   31129 main ()
   31130 {
   31131 
   31132 #define S "foobar"
   31133 #define S_LEN (sizeof S - 1)
   31134 
   31135   /* At least one implementation is buggy: that of AIX 4.3 would
   31136      give strnlen (S, 1) == 3.  */
   31137 
   31138   int i;
   31139   for (i = 0; i < S_LEN + 1; ++i)
   31140     {
   31141       int expected = i <= S_LEN ? i : S_LEN;
   31142       if (strnlen (S, i) != expected)
   31143 	return 1;
   31144     }
   31145   return 0;
   31146 
   31147   ;
   31148   return 0;
   31149 }
   31150 _ACEOF
   31151 if ac_fn_c_try_run "$LINENO"; then :
   31152   ac_cv_func_strnlen_working=yes
   31153 else
   31154   ac_cv_func_strnlen_working=no
   31155 fi
   31156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31157   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31158 fi
   31159 
   31160 fi
   31161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
   31162 $as_echo "$ac_cv_func_strnlen_working" >&6; }
   31163 test $ac_cv_func_strnlen_working = no && :
   31164 
   31165 
   31166     if test $ac_cv_func_strnlen_working = no; then
   31167       REPLACE_STRNLEN=1
   31168     fi
   31169   fi
   31170 
   31171   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
   31172 
   31173 
   31174 
   31175 
   31176 
   31177 
   31178 
   31179 
   31180   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
   31181 
   31182     :
   31183   fi
   31184 
   31185 
   31186 
   31187 
   31188 
   31189           GNULIB_STRNLEN=1
   31190 
   31191 
   31192 
   31193 
   31194 
   31195 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
   31196 
   31197 
   31198 
   31199 
   31200   for ac_func in strtoul
   31201 do :
   31202   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
   31203 if test "x$ac_cv_func_strtoul" = xyes; then :
   31204   cat >>confdefs.h <<_ACEOF
   31205 #define HAVE_STRTOUL 1
   31206 _ACEOF
   31207 
   31208 fi
   31209 done
   31210 
   31211 
   31212   if test $ac_cv_func_strtoul = no; then
   31213 
   31214 
   31215 
   31216 
   31217 
   31218 
   31219 
   31220 
   31221   gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
   31222 
   31223   fi
   31224 
   31225 
   31226 
   31227 
   31228   for ac_func in strverscmp
   31229 do :
   31230   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
   31231 if test "x$ac_cv_func_strverscmp" = xyes; then :
   31232   cat >>confdefs.h <<_ACEOF
   31233 #define HAVE_STRVERSCMP 1
   31234 _ACEOF
   31235 
   31236 fi
   31237 done
   31238 
   31239   if test $ac_cv_func_strverscmp = no; then
   31240     HAVE_STRVERSCMP=0
   31241   fi
   31242 
   31243   if test $HAVE_STRVERSCMP = 0; then
   31244 
   31245 
   31246 
   31247 
   31248 
   31249 
   31250 
   31251 
   31252   gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
   31253 
   31254 
   31255   :
   31256 
   31257   fi
   31258 
   31259 
   31260 
   31261 
   31262 
   31263           GNULIB_STRVERSCMP=1
   31264 
   31265 
   31266 
   31267 
   31268 
   31269 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
   31270 
   31271 
   31272 
   31273 
   31274 
   31275 
   31276 
   31277 
   31278 
   31279 
   31280 
   31281 
   31282 
   31283 
   31284 
   31285 
   31286 
   31287      if test $gl_cv_have_include_next = yes; then
   31288        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   31289      else
   31290        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
   31291 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
   31292 if ${gl_cv_next_sys_stat_h+:} false; then :
   31293   $as_echo_n "(cached) " >&6
   31294 else
   31295 
   31296              if test $ac_cv_header_sys_stat_h = yes; then
   31297 
   31298 
   31299                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31300 /* end confdefs.h.  */
   31301 #include <sys/stat.h>
   31302 
   31303 _ACEOF
   31304                                                                                                                         case "$host_os" in
   31305                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   31306                  *)    gl_absname_cpp="$ac_cpp" ;;
   31307                esac
   31308 
   31309                case "$host_os" in
   31310                  mingw*)
   31311                                                                                                                                      gl_dirsep_regex='[/\\]'
   31312                    ;;
   31313                  *)
   31314                    gl_dirsep_regex='\/'
   31315                    ;;
   31316                esac
   31317                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   31318 
   31319                gl_header_literal_regex=`echo 'sys/stat.h' \
   31320                                         | sed -e "$gl_make_literal_regex_sed"`
   31321                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   31322                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   31323                    s|^/[^/]|//&|
   31324                    p
   31325                    q
   31326                  }'
   31327                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   31328                       sed -n "$gl_absolute_header_sed"`'"'
   31329           else
   31330                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   31331              fi
   31332 
   31333 
   31334 fi
   31335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
   31336 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
   31337      fi
   31338      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
   31339 
   31340      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   31341        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   31342        gl_next_as_first_directive='<'sys/stat.h'>'
   31343      else
   31344        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   31345        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
   31346      fi
   31347      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
   31348 
   31349 
   31350 
   31351 
   31352 
   31353 
   31354 
   31355 
   31356 
   31357 
   31358 
   31359   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
   31360 
   31361 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
   31362 
   31363   fi
   31364 
   31365       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
   31366      #include <sys/stat.h>
   31367 "
   31368 if test "x$ac_cv_type_nlink_t" = xyes; then :
   31369 
   31370 else
   31371 
   31372 $as_echo "#define nlink_t int" >>confdefs.h
   31373 
   31374 fi
   31375 
   31376 
   31377 
   31378     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
   31379     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   31380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   31381 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   31382 if eval \${$as_gl_Symbol+:} false; then :
   31383   $as_echo_n "(cached) " >&6
   31384 else
   31385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31386 /* end confdefs.h.  */
   31387 #include <sys/stat.h>
   31388 
   31389 int
   31390 main ()
   31391 {
   31392 #undef $gl_func
   31393   (void) $gl_func;
   31394   ;
   31395   return 0;
   31396 }
   31397 _ACEOF
   31398 if ac_fn_c_try_compile "$LINENO"; then :
   31399   eval "$as_gl_Symbol=yes"
   31400 else
   31401   eval "$as_gl_Symbol=no"
   31402 fi
   31403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31404 fi
   31405 eval ac_res=\$$as_gl_Symbol
   31406 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   31407 $as_echo "$ac_res" >&6; }
   31408     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   31409   cat >>confdefs.h <<_ACEOF
   31410 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   31411 _ACEOF
   31412 
   31413                      eval ac_cv_have_decl_$gl_func=yes
   31414 fi
   31415       done
   31416 
   31417 
   31418 
   31419 
   31420 
   31421 
   31422 
   31423 
   31424 
   31425 
   31426 
   31427 
   31428 
   31429      if test $gl_cv_have_include_next = yes; then
   31430        gl_cv_next_sys_types_h='<'sys/types.h'>'
   31431      else
   31432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
   31433 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
   31434 if ${gl_cv_next_sys_types_h+:} false; then :
   31435   $as_echo_n "(cached) " >&6
   31436 else
   31437 
   31438                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31439 /* end confdefs.h.  */
   31440 #include <sys/types.h>
   31441 
   31442 _ACEOF
   31443                                                                                                                         case "$host_os" in
   31444                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   31445                  *)    gl_absname_cpp="$ac_cpp" ;;
   31446                esac
   31447 
   31448                case "$host_os" in
   31449                  mingw*)
   31450                                                                                                                                      gl_dirsep_regex='[/\\]'
   31451                    ;;
   31452                  *)
   31453                    gl_dirsep_regex='\/'
   31454                    ;;
   31455                esac
   31456                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   31457 
   31458                gl_header_literal_regex=`echo 'sys/types.h' \
   31459                                         | sed -e "$gl_make_literal_regex_sed"`
   31460                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   31461                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   31462                    s|^/[^/]|//&|
   31463                    p
   31464                    q
   31465                  }'
   31466                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   31467                       sed -n "$gl_absolute_header_sed"`'"'
   31468 
   31469 
   31470 fi
   31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
   31472 $as_echo "$gl_cv_next_sys_types_h" >&6; }
   31473      fi
   31474      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
   31475 
   31476      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   31477        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   31478        gl_next_as_first_directive='<'sys/types.h'>'
   31479      else
   31480        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   31481        gl_next_as_first_directive=$gl_cv_next_sys_types_h
   31482      fi
   31483      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
   31484 
   31485 
   31486 
   31487 
   31488 
   31489 
   31490 
   31491 
   31492 
   31493 
   31494 
   31495 
   31496 
   31497 
   31498 
   31499 
   31500 
   31501 
   31502 
   31503 
   31504 
   31505 
   31506 
   31507 
   31508      if test $gl_cv_have_include_next = yes; then
   31509        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
   31510      else
   31511        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
   31512 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
   31513 if ${gl_cv_next_sys_wait_h+:} false; then :
   31514   $as_echo_n "(cached) " >&6
   31515 else
   31516 
   31517              if test $ac_cv_header_sys_wait_h = yes; then
   31518 
   31519 
   31520                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31521 /* end confdefs.h.  */
   31522 #include <sys/wait.h>
   31523 
   31524 _ACEOF
   31525                                                                                                                         case "$host_os" in
   31526                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   31527                  *)    gl_absname_cpp="$ac_cpp" ;;
   31528                esac
   31529 
   31530                case "$host_os" in
   31531                  mingw*)
   31532                                                                                                                                      gl_dirsep_regex='[/\\]'
   31533                    ;;
   31534                  *)
   31535                    gl_dirsep_regex='\/'
   31536                    ;;
   31537                esac
   31538                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   31539 
   31540                gl_header_literal_regex=`echo 'sys/wait.h' \
   31541                                         | sed -e "$gl_make_literal_regex_sed"`
   31542                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   31543                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   31544                    s|^/[^/]|//&|
   31545                    p
   31546                    q
   31547                  }'
   31548                                                             gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   31549                       sed -n "$gl_absolute_header_sed"`'"'
   31550           else
   31551                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
   31552              fi
   31553 
   31554 
   31555 fi
   31556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
   31557 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
   31558      fi
   31559      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
   31560 
   31561      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   31562        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   31563        gl_next_as_first_directive='<'sys/wait.h'>'
   31564      else
   31565        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   31566        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
   31567      fi
   31568      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
   31569 
   31570 
   31571 
   31572 
   31573 
   31574 
   31575 
   31576 
   31577     for gl_func in waitpid; do
   31578     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   31579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   31580 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   31581 if eval \${$as_gl_Symbol+:} false; then :
   31582   $as_echo_n "(cached) " >&6
   31583 else
   31584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31585 /* end confdefs.h.  */
   31586 #include <sys/wait.h>
   31587 int
   31588 main ()
   31589 {
   31590 #undef $gl_func
   31591   (void) $gl_func;
   31592   ;
   31593   return 0;
   31594 }
   31595 _ACEOF
   31596 if ac_fn_c_try_compile "$LINENO"; then :
   31597   eval "$as_gl_Symbol=yes"
   31598 else
   31599   eval "$as_gl_Symbol=no"
   31600 fi
   31601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31602 fi
   31603 eval ac_res=\$$as_gl_Symbol
   31604 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   31605 $as_echo "$ac_res" >&6; }
   31606     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   31607   cat >>confdefs.h <<_ACEOF
   31608 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   31609 _ACEOF
   31610 
   31611                      eval ac_cv_have_decl_$gl_func=yes
   31612 fi
   31613       done
   31614 
   31615 
   31616 
   31617 
   31618 
   31619 
   31620 
   31621 
   31622 
   31623 
   31624 
   31625 
   31626 
   31627 
   31628 
   31629 
   31630 
   31631 
   31632 
   31633 
   31634 
   31635 
   31636      if test $gl_cv_have_include_next = yes; then
   31637        gl_cv_next_unistd_h='<'unistd.h'>'
   31638      else
   31639        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
   31640 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
   31641 if ${gl_cv_next_unistd_h+:} false; then :
   31642   $as_echo_n "(cached) " >&6
   31643 else
   31644 
   31645              if test $ac_cv_header_unistd_h = yes; then
   31646 
   31647 
   31648                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31649 /* end confdefs.h.  */
   31650 #include <unistd.h>
   31651 
   31652 _ACEOF
   31653                                                                                                                         case "$host_os" in
   31654                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   31655                  *)    gl_absname_cpp="$ac_cpp" ;;
   31656                esac
   31657 
   31658                case "$host_os" in
   31659                  mingw*)
   31660                                                                                                                                      gl_dirsep_regex='[/\\]'
   31661                    ;;
   31662                  *)
   31663                    gl_dirsep_regex='\/'
   31664                    ;;
   31665                esac
   31666                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   31667 
   31668                gl_header_literal_regex=`echo 'unistd.h' \
   31669                                         | sed -e "$gl_make_literal_regex_sed"`
   31670                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   31671                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   31672                    s|^/[^/]|//&|
   31673                    p
   31674                    q
   31675                  }'
   31676                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   31677                       sed -n "$gl_absolute_header_sed"`'"'
   31678           else
   31679                gl_cv_next_unistd_h='<'unistd.h'>'
   31680              fi
   31681 
   31682 
   31683 fi
   31684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
   31685 $as_echo "$gl_cv_next_unistd_h" >&6; }
   31686      fi
   31687      NEXT_UNISTD_H=$gl_cv_next_unistd_h
   31688 
   31689      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   31690        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   31691        gl_next_as_first_directive='<'unistd.h'>'
   31692      else
   31693        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   31694        gl_next_as_first_directive=$gl_cv_next_unistd_h
   31695      fi
   31696      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
   31697 
   31698 
   31699 
   31700 
   31701   if test $ac_cv_header_unistd_h = yes; then
   31702     HAVE_UNISTD_H=1
   31703   else
   31704     HAVE_UNISTD_H=0
   31705   fi
   31706 
   31707 
   31708 
   31709 
   31710 
   31711 
   31712 
   31713     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
   31714     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   31715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   31716 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   31717 if eval \${$as_gl_Symbol+:} false; then :
   31718   $as_echo_n "(cached) " >&6
   31719 else
   31720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31721 /* end confdefs.h.  */
   31722 
   31723 #if HAVE_UNISTD_H
   31724 # include <unistd.h>
   31725 #endif
   31726 /* Some systems declare various items in the wrong headers.  */
   31727 #if !(defined __GLIBC__ && !defined __UCLIBC__)
   31728 # include <fcntl.h>
   31729 # include <stdio.h>
   31730 # include <stdlib.h>
   31731 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
   31732 #  include <io.h>
   31733 # endif
   31734 #endif
   31735 
   31736 int
   31737 main ()
   31738 {
   31739 #undef $gl_func
   31740   (void) $gl_func;
   31741   ;
   31742   return 0;
   31743 }
   31744 _ACEOF
   31745 if ac_fn_c_try_compile "$LINENO"; then :
   31746   eval "$as_gl_Symbol=yes"
   31747 else
   31748   eval "$as_gl_Symbol=no"
   31749 fi
   31750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31751 fi
   31752 eval ac_res=\$$as_gl_Symbol
   31753 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   31754 $as_echo "$ac_res" >&6; }
   31755     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   31756   cat >>confdefs.h <<_ACEOF
   31757 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   31758 _ACEOF
   31759 
   31760                      eval ac_cv_have_decl_$gl_func=yes
   31761 fi
   31762       done
   31763 
   31764 
   31765 
   31766 
   31767 
   31768 
   31769 
   31770       if  { test "$HAVE_LIBUNISTRING" != yes \
   31771     || {
   31772 
   31773 
   31774 
   31775             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
   31776             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
   31777                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
   31778                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
   31779                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
   31780                          }
   31781                     }
   31782                }
   31783 
   31784 
   31785 
   31786 
   31787        }
   31788   }; then
   31789     LIBUNISTRING_UNITYPES_H='unitypes.h'
   31790   else
   31791     LIBUNISTRING_UNITYPES_H=
   31792   fi
   31793 
   31794 
   31795 
   31796 
   31797       if  { test "$HAVE_LIBUNISTRING" != yes \
   31798     || {
   31799 
   31800 
   31801 
   31802             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
   31803             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
   31804                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
   31805                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
   31806                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
   31807                          }
   31808                     }
   31809                }
   31810 
   31811 
   31812 
   31813 
   31814        }
   31815   }; then
   31816     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
   31817   else
   31818     LIBUNISTRING_UNIWIDTH_H=
   31819   fi
   31820 
   31821 
   31822 
   31823 
   31824        if  { test "$HAVE_LIBUNISTRING" != yes \
   31825     || {
   31826 
   31827 
   31828 
   31829             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
   31830             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
   31831                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
   31832                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
   31833                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
   31834                          }
   31835                     }
   31836                }
   31837 
   31838 
   31839 
   31840 
   31841        }
   31842   }; then
   31843   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
   31844   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
   31845 else
   31846   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
   31847   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
   31848 fi
   31849 
   31850 
   31851 
   31852 
   31853 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
   31854 
   31855 
   31856 
   31857 
   31858 
   31859 
   31860 
   31861 
   31862 
   31863 
   31864 
   31865 
   31866 
   31867 
   31868 
   31869 
   31870 
   31871 
   31872 
   31873 
   31874 
   31875   if test $ac_cv_have_decl_unsetenv = no; then
   31876     HAVE_DECL_UNSETENV=0
   31877   fi
   31878   for ac_func in unsetenv
   31879 do :
   31880   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
   31881 if test "x$ac_cv_func_unsetenv" = xyes; then :
   31882   cat >>confdefs.h <<_ACEOF
   31883 #define HAVE_UNSETENV 1
   31884 _ACEOF
   31885 
   31886 fi
   31887 done
   31888 
   31889   if test $ac_cv_func_unsetenv = no; then
   31890     HAVE_UNSETENV=0
   31891   else
   31892     HAVE_UNSETENV=1
   31893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
   31894 $as_echo_n "checking for unsetenv() return type... " >&6; }
   31895 if ${gt_cv_func_unsetenv_ret+:} false; then :
   31896   $as_echo_n "(cached) " >&6
   31897 else
   31898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31899 /* end confdefs.h.  */
   31900 
   31901 #undef _BSD
   31902 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
   31903 #include <stdlib.h>
   31904 extern
   31905 #ifdef __cplusplus
   31906 "C"
   31907 #endif
   31908 int unsetenv (const char *name);
   31909 
   31910 int
   31911 main ()
   31912 {
   31913 
   31914   ;
   31915   return 0;
   31916 }
   31917 _ACEOF
   31918 if ac_fn_c_try_compile "$LINENO"; then :
   31919   gt_cv_func_unsetenv_ret='int'
   31920 else
   31921   gt_cv_func_unsetenv_ret='void'
   31922 fi
   31923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31924 fi
   31925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
   31926 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
   31927     if test $gt_cv_func_unsetenv_ret = 'void'; then
   31928 
   31929 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
   31930 
   31931       REPLACE_UNSETENV=1
   31932     fi
   31933 
   31934                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
   31935 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
   31936 if ${gl_cv_func_unsetenv_works+:} false; then :
   31937   $as_echo_n "(cached) " >&6
   31938 else
   31939   if test "$cross_compiling" = yes; then :
   31940   case "$host_os" in
   31941                  # Guess yes on glibc systems.
   31942          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
   31943                  # If we don't know, assume the worst.
   31944          *)      gl_cv_func_unsetenv_works="guessing no" ;;
   31945        esac
   31946 
   31947 else
   31948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31949 /* end confdefs.h.  */
   31950 
   31951        #include <stdlib.h>
   31952        #include <errno.h>
   31953        extern char **environ;
   31954 
   31955 int
   31956 main ()
   31957 {
   31958 
   31959        char entry1[] = "a=1";
   31960        char entry2[] = "b=2";
   31961        char *env[] = { entry1, entry2, NULL };
   31962        if (putenv ((char *) "a=1")) return 1;
   31963        if (putenv (entry2)) return 2;
   31964        entry2[0] = 'a';
   31965        unsetenv ("a");
   31966        if (getenv ("a")) return 3;
   31967        if (!unsetenv ("") || errno != EINVAL) return 4;
   31968        entry2[0] = 'b';
   31969        environ = env;
   31970        if (!getenv ("a")) return 5;
   31971        entry2[0] = 'a';
   31972        unsetenv ("a");
   31973        if (getenv ("a")) return 6;
   31974 
   31975   ;
   31976   return 0;
   31977 }
   31978 _ACEOF
   31979 if ac_fn_c_try_run "$LINENO"; then :
   31980   gl_cv_func_unsetenv_works=yes
   31981 else
   31982   gl_cv_func_unsetenv_works=no
   31983 fi
   31984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31985   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31986 fi
   31987 
   31988 fi
   31989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
   31990 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
   31991     case "$gl_cv_func_unsetenv_works" in
   31992       *yes) ;;
   31993       *)
   31994         REPLACE_UNSETENV=1
   31995         ;;
   31996     esac
   31997   fi
   31998 
   31999   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
   32000 
   32001 
   32002 
   32003 
   32004 
   32005 
   32006 
   32007 
   32008   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
   32009 
   32010 
   32011 
   32012 
   32013 
   32014   fi
   32015 
   32016 
   32017 
   32018 
   32019 
   32020           GNULIB_UNSETENV=1
   32021 
   32022 
   32023 
   32024 
   32025 
   32026 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
   32027 
   32028 
   32029 
   32030 
   32031 
   32032   if test $ac_cv_func_vasnprintf = no; then
   32033 
   32034 
   32035 
   32036 
   32037 
   32038 
   32039 
   32040 
   32041 
   32042 
   32043   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   32044 
   32045 
   32046 
   32047 
   32048 
   32049 
   32050 
   32051 
   32052 
   32053   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   32054 
   32055 
   32056 
   32057 
   32058 
   32059 
   32060 
   32061 
   32062 
   32063   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   32064 
   32065 
   32066 
   32067 
   32068 
   32069 
   32070 
   32071 
   32072 
   32073   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   32074 
   32075   if test $ac_cv_func_vasnprintf = yes; then
   32076 
   32077 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   32078 
   32079   fi
   32080 
   32081 
   32082 
   32083 
   32084 
   32085 
   32086 
   32087 
   32088 
   32089 
   32090 
   32091   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   32092 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   32093 
   32094 else
   32095 
   32096 $as_echo "#define ptrdiff_t long" >>confdefs.h
   32097 
   32098 
   32099 fi
   32100 
   32101 
   32102 
   32103 
   32104 
   32105 
   32106 
   32107   fi
   32108 
   32109 
   32110 
   32111 
   32112 
   32113 
   32114 
   32115 
   32116 
   32117 
   32118 
   32119 
   32120 
   32121 
   32122 
   32123 
   32124   gl_cv_func_vfprintf_posix=no
   32125   case "$gl_cv_func_printf_sizes_c99" in
   32126     *yes)
   32127       case "$gl_cv_func_printf_long_double" in
   32128         *yes)
   32129           case "$gl_cv_func_printf_infinite" in
   32130             *yes)
   32131               case "$gl_cv_func_printf_infinite_long_double" in
   32132                 *yes)
   32133                   case "$gl_cv_func_printf_directive_a" in
   32134                     *yes)
   32135                       case "$gl_cv_func_printf_directive_f" in
   32136                         *yes)
   32137                           case "$gl_cv_func_printf_directive_n" in
   32138                             *yes)
   32139                               case "$gl_cv_func_printf_directive_ls" in
   32140                                 *yes)
   32141                                   case "$gl_cv_func_printf_positions" in
   32142                                     *yes)
   32143                                       case "$gl_cv_func_printf_flag_grouping" in
   32144                                         *yes)
   32145                                           case "$gl_cv_func_printf_flag_leftadjust" in
   32146                                             *yes)
   32147                                               case "$gl_cv_func_printf_flag_zero" in
   32148                                                 *yes)
   32149                                                   case "$gl_cv_func_printf_precision" in
   32150                                                     *yes)
   32151                                                       case "$gl_cv_func_printf_enomem" in
   32152                                                         *yes)
   32153                                                           # vfprintf exists and is
   32154                                                           # already POSIX compliant.
   32155                                                           gl_cv_func_vfprintf_posix=yes
   32156                                                           ;;
   32157                                                       esac
   32158                                                       ;;
   32159                                                   esac
   32160                                                   ;;
   32161                                               esac
   32162                                               ;;
   32163                                           esac
   32164                                           ;;
   32165                                       esac
   32166                                       ;;
   32167                                   esac
   32168                                   ;;
   32169                               esac
   32170                               ;;
   32171                           esac
   32172                           ;;
   32173                       esac
   32174                       ;;
   32175                   esac
   32176                   ;;
   32177               esac
   32178               ;;
   32179           esac
   32180           ;;
   32181       esac
   32182       ;;
   32183   esac
   32184   if test $gl_cv_func_vfprintf_posix = no; then
   32185 
   32186 
   32187 
   32188   case "$gl_cv_func_printf_infinite" in
   32189     *yes)
   32190       ;;
   32191     *)
   32192 
   32193 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   32194 
   32195       ;;
   32196   esac
   32197 
   32198 
   32199 
   32200 
   32201   case "$gl_cv_func_printf_long_double" in
   32202     *yes)
   32203       case "$gl_cv_func_printf_infinite_long_double" in
   32204         *yes)
   32205           ;;
   32206         *)
   32207 
   32208 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   32209 
   32210           ;;
   32211       esac
   32212       ;;
   32213   esac
   32214 
   32215 
   32216 
   32217   case "$gl_cv_func_printf_directive_a" in
   32218     *yes)
   32219       ;;
   32220     *)
   32221 
   32222 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   32223 
   32224       for ac_func in nl_langinfo
   32225 do :
   32226   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   32227 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   32228   cat >>confdefs.h <<_ACEOF
   32229 #define HAVE_NL_LANGINFO 1
   32230 _ACEOF
   32231 
   32232 fi
   32233 done
   32234 
   32235       ;;
   32236   esac
   32237 
   32238 
   32239 
   32240   case "$gl_cv_func_printf_directive_f" in
   32241     *yes)
   32242       ;;
   32243     *)
   32244 
   32245 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   32246 
   32247       ;;
   32248   esac
   32249 
   32250 
   32251 
   32252   case "$gl_cv_func_printf_directive_ls" in
   32253     *yes)
   32254       ;;
   32255     *)
   32256 
   32257 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   32258 
   32259       ;;
   32260   esac
   32261 
   32262 
   32263 
   32264   case "$gl_cv_func_printf_flag_grouping" in
   32265     *yes)
   32266       ;;
   32267     *)
   32268 
   32269 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   32270 
   32271       ;;
   32272   esac
   32273 
   32274 
   32275 
   32276   case "$gl_cv_func_printf_flag_leftadjust" in
   32277     *yes)
   32278       ;;
   32279     *)
   32280 
   32281 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   32282 
   32283       ;;
   32284   esac
   32285 
   32286 
   32287 
   32288   case "$gl_cv_func_printf_flag_zero" in
   32289     *yes)
   32290       ;;
   32291     *)
   32292 
   32293 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   32294 
   32295       ;;
   32296   esac
   32297 
   32298 
   32299 
   32300   case "$gl_cv_func_printf_precision" in
   32301     *yes)
   32302       ;;
   32303     *)
   32304 
   32305 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   32306 
   32307 
   32308 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   32309 
   32310 
   32311 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   32312 
   32313       ;;
   32314   esac
   32315 
   32316 
   32317 
   32318   case "$gl_cv_func_printf_enomem" in
   32319     *yes)
   32320       ;;
   32321     *)
   32322 
   32323 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   32324 
   32325 
   32326 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   32327 
   32328 
   32329 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   32330 
   32331       ;;
   32332   esac
   32333 
   32334 
   32335 
   32336 
   32337 
   32338 
   32339 
   32340 
   32341 
   32342 
   32343 
   32344   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   32345 
   32346 
   32347 
   32348 
   32349 
   32350 
   32351 
   32352 
   32353 
   32354   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   32355 
   32356 
   32357 
   32358 
   32359 
   32360 
   32361 
   32362 
   32363 
   32364   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   32365 
   32366 
   32367 
   32368 
   32369 
   32370 
   32371 
   32372 
   32373 
   32374   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   32375 
   32376   if test $ac_cv_func_vasnprintf = yes; then
   32377 
   32378 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   32379 
   32380   fi
   32381 
   32382 
   32383 
   32384 
   32385 
   32386 
   32387 
   32388 
   32389 
   32390 
   32391 
   32392   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   32393 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   32394 
   32395 else
   32396 
   32397 $as_echo "#define ptrdiff_t long" >>confdefs.h
   32398 
   32399 
   32400 fi
   32401 
   32402 
   32403 
   32404 
   32405 
   32406 
   32407 
   32408 
   32409 
   32410 
   32411 
   32412 
   32413 
   32414 
   32415 
   32416 
   32417 
   32418   gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
   32419 
   32420   REPLACE_VFPRINTF=1
   32421 
   32422 $as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
   32423 
   32424   :
   32425 
   32426   fi
   32427 
   32428 
   32429 
   32430 
   32431 
   32432 
   32433           GNULIB_VFPRINTF_POSIX=1
   32434 
   32435 
   32436 
   32437 
   32438 
   32439 $as_echo "#define GNULIB_TEST_VFPRINTF_POSIX 1" >>confdefs.h
   32440 
   32441 
   32442 
   32443 
   32444 
   32445   gl_cv_func_vsnprintf_usable=no
   32446   for ac_func in vsnprintf
   32447 do :
   32448   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
   32449 if test "x$ac_cv_func_vsnprintf" = xyes; then :
   32450   cat >>confdefs.h <<_ACEOF
   32451 #define HAVE_VSNPRINTF 1
   32452 _ACEOF
   32453 
   32454 fi
   32455 done
   32456 
   32457   if test $ac_cv_func_vsnprintf = yes; then
   32458 
   32459 
   32460 
   32461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
   32462 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
   32463 if ${gl_cv_func_snprintf_size1+:} false; then :
   32464   $as_echo_n "(cached) " >&6
   32465 else
   32466 
   32467       if test "$cross_compiling" = yes; then :
   32468   gl_cv_func_snprintf_size1="guessing yes"
   32469 else
   32470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32471 /* end confdefs.h.  */
   32472 
   32473 #include <stdio.h>
   32474 #if HAVE_SNPRINTF
   32475 # define my_snprintf snprintf
   32476 #else
   32477 # include <stdarg.h>
   32478 static int my_snprintf (char *buf, int size, const char *format, ...)
   32479 {
   32480   va_list args;
   32481   int ret;
   32482   va_start (args, format);
   32483   ret = vsnprintf (buf, size, format, args);
   32484   va_end (args);
   32485   return ret;
   32486 }
   32487 #endif
   32488 int main()
   32489 {
   32490   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
   32491   my_snprintf (buf, 1, "%d", 12345);
   32492   return buf[1] != 'E';
   32493 }
   32494 _ACEOF
   32495 if ac_fn_c_try_run "$LINENO"; then :
   32496   gl_cv_func_snprintf_size1=yes
   32497 else
   32498   gl_cv_func_snprintf_size1=no
   32499 fi
   32500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32501   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32502 fi
   32503 
   32504 
   32505 fi
   32506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
   32507 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
   32508 
   32509     case "$gl_cv_func_snprintf_size1" in
   32510       *yes)
   32511 
   32512         case "$gl_cv_func_snprintf_retval_c99" in
   32513           *yes)
   32514 
   32515 
   32516      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
   32517 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
   32518 if ${gl_cv_func_printf_positions+:} false; then :
   32519   $as_echo_n "(cached) " >&6
   32520 else
   32521 
   32522       if test "$cross_compiling" = yes; then :
   32523 
   32524          case "$host_os" in
   32525            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
   32526                          gl_cv_func_printf_positions="guessing no";;
   32527            beos*)        gl_cv_func_printf_positions="guessing no";;
   32528            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
   32529            *)            gl_cv_func_printf_positions="guessing yes";;
   32530          esac
   32531 
   32532 else
   32533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32534 /* end confdefs.h.  */
   32535 
   32536 #include <stdio.h>
   32537 #include <string.h>
   32538 /* The string "%2$d %1$d", with dollar characters protected from the shell's
   32539    dollar expansion (possibly an autoconf bug).  */
   32540 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
   32541 static char buf[100];
   32542 int main ()
   32543 {
   32544   sprintf (buf, format, 33, 55);
   32545   return (strcmp (buf, "55 33") != 0);
   32546 }
   32547 _ACEOF
   32548 if ac_fn_c_try_run "$LINENO"; then :
   32549   gl_cv_func_printf_positions=yes
   32550 else
   32551   gl_cv_func_printf_positions=no
   32552 fi
   32553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32554   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32555 fi
   32556 
   32557 
   32558 fi
   32559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
   32560 $as_echo "$gl_cv_func_printf_positions" >&6; }
   32561 
   32562             case "$gl_cv_func_printf_positions" in
   32563               *yes)
   32564                 gl_cv_func_vsnprintf_usable=yes
   32565                 ;;
   32566             esac
   32567             ;;
   32568         esac
   32569         ;;
   32570     esac
   32571   fi
   32572   if test $gl_cv_func_vsnprintf_usable = no; then
   32573 
   32574 
   32575 
   32576 
   32577 
   32578 
   32579 
   32580 
   32581 
   32582 
   32583   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
   32584 
   32585   if test $ac_cv_func_vsnprintf = yes; then
   32586     REPLACE_VSNPRINTF=1
   32587   fi
   32588   :
   32589 
   32590   fi
   32591 
   32592   if test $ac_cv_have_decl_vsnprintf = no; then
   32593     HAVE_DECL_VSNPRINTF=0
   32594   fi
   32595 
   32596 
   32597 
   32598 
   32599 
   32600 
   32601           GNULIB_VSNPRINTF=1
   32602 
   32603 
   32604 
   32605 
   32606 
   32607 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
   32608 
   32609 
   32610 
   32611 
   32612 
   32613 
   32614 
   32615 
   32616 
   32617 
   32618 
   32619 
   32620 
   32621 
   32622 
   32623 
   32624 
   32625 
   32626   gl_cv_func_vsnprintf_posix=no
   32627   for ac_func in vsnprintf
   32628 do :
   32629   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
   32630 if test "x$ac_cv_func_vsnprintf" = xyes; then :
   32631   cat >>confdefs.h <<_ACEOF
   32632 #define HAVE_VSNPRINTF 1
   32633 _ACEOF
   32634 
   32635 fi
   32636 done
   32637 
   32638   if test $ac_cv_func_vsnprintf = yes; then
   32639 
   32640 
   32641 
   32642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
   32643 $as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; }
   32644 if ${gl_cv_func_snprintf_truncation_c99+:} false; then :
   32645   $as_echo_n "(cached) " >&6
   32646 else
   32647 
   32648       if test "$cross_compiling" = yes; then :
   32649 
   32650          case "$host_os" in
   32651                                  # Guess yes on glibc systems.
   32652            *-gnu*)               gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32653                                  # Guess yes on FreeBSD >= 5.
   32654            freebsd[1-4]*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
   32655            freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32656                                  # Guess yes on Mac OS X >= 10.3.
   32657            darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
   32658            darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32659                                  # Guess yes on OpenBSD >= 3.9.
   32660            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
   32661                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
   32662            openbsd*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32663                                  # Guess yes on Solaris >= 2.6.
   32664            solaris2.[0-5] | solaris2.[0-5].*)
   32665                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
   32666            solaris*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32667                                  # Guess yes on AIX >= 4.
   32668            aix[1-3]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
   32669            aix*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32670                                  # Guess yes on HP-UX >= 11.
   32671            hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
   32672            hpux*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32673                                  # Guess yes on IRIX >= 6.5.
   32674            irix6.5)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32675                                  # Guess yes on OSF/1 >= 5.
   32676            osf[3-4]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
   32677            osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32678                                  # Guess yes on NetBSD >= 3.
   32679            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   32680                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
   32681            netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32682                                  # Guess yes on BeOS.
   32683            beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
   32684                                  # If we don't know, assume the worst.
   32685            *)                    gl_cv_func_snprintf_truncation_c99="guessing no";;
   32686          esac
   32687 
   32688 else
   32689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32690 /* end confdefs.h.  */
   32691 
   32692 #include <stdio.h>
   32693 #include <string.h>
   32694 #if HAVE_SNPRINTF
   32695 # define my_snprintf snprintf
   32696 #else
   32697 # include <stdarg.h>
   32698 static int my_snprintf (char *buf, int size, const char *format, ...)
   32699 {
   32700   va_list args;
   32701   int ret;
   32702   va_start (args, format);
   32703   ret = vsnprintf (buf, size, format, args);
   32704   va_end (args);
   32705   return ret;
   32706 }
   32707 #endif
   32708 static char buf[100];
   32709 int main ()
   32710 {
   32711   strcpy (buf, "ABCDEF");
   32712   my_snprintf (buf, 3, "%d %d", 4567, 89);
   32713   if (memcmp (buf, "45\0DEF", 6) != 0)
   32714     return 1;
   32715   return 0;
   32716 }
   32717 _ACEOF
   32718 if ac_fn_c_try_run "$LINENO"; then :
   32719   gl_cv_func_snprintf_truncation_c99=yes
   32720 else
   32721   gl_cv_func_snprintf_truncation_c99=no
   32722 fi
   32723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32724   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32725 fi
   32726 
   32727 
   32728 fi
   32729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
   32730 $as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; }
   32731 
   32732 
   32733 
   32734 
   32735 
   32736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf fully supports the 'n' directive" >&5
   32737 $as_echo_n "checking whether snprintf fully supports the 'n' directive... " >&6; }
   32738 if ${gl_cv_func_snprintf_directive_n+:} false; then :
   32739   $as_echo_n "(cached) " >&6
   32740 else
   32741 
   32742       if test "$cross_compiling" = yes; then :
   32743 
   32744          case "$host_os" in
   32745                                  # Guess yes on glibc systems.
   32746            *-gnu*)               gl_cv_func_snprintf_directive_n="guessing yes";;
   32747                                  # Guess yes on FreeBSD >= 5.
   32748            freebsd[1-4]*)        gl_cv_func_snprintf_directive_n="guessing no";;
   32749            freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
   32750                                  # Guess yes on Mac OS X >= 10.3.
   32751            darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
   32752            darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
   32753                                  # Guess yes on Solaris >= 2.6.
   32754            solaris2.[0-5] | solaris2.[0-5].*)
   32755                                  gl_cv_func_snprintf_directive_n="guessing no";;
   32756            solaris*)             gl_cv_func_snprintf_directive_n="guessing yes";;
   32757                                  # Guess yes on AIX >= 4.
   32758            aix[1-3]*)            gl_cv_func_snprintf_directive_n="guessing no";;
   32759            aix*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
   32760                                  # Guess yes on IRIX >= 6.5.
   32761            irix6.5)              gl_cv_func_snprintf_directive_n="guessing yes";;
   32762                                  # Guess yes on OSF/1 >= 5.
   32763            osf[3-4]*)            gl_cv_func_snprintf_directive_n="guessing no";;
   32764            osf*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
   32765                                  # Guess yes on NetBSD >= 3.
   32766            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   32767                                  gl_cv_func_snprintf_directive_n="guessing no";;
   32768            netbsd*)              gl_cv_func_snprintf_directive_n="guessing yes";;
   32769                                  # Guess yes on BeOS.
   32770            beos*)                gl_cv_func_snprintf_directive_n="guessing yes";;
   32771                                  # If we don't know, assume the worst.
   32772            *)                    gl_cv_func_snprintf_directive_n="guessing no";;
   32773          esac
   32774 
   32775 else
   32776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32777 /* end confdefs.h.  */
   32778 
   32779 #include <stdio.h>
   32780 #include <string.h>
   32781 #if HAVE_SNPRINTF
   32782 # define my_snprintf snprintf
   32783 #else
   32784 # include <stdarg.h>
   32785 static int my_snprintf (char *buf, int size, const char *format, ...)
   32786 {
   32787   va_list args;
   32788   int ret;
   32789   va_start (args, format);
   32790   ret = vsnprintf (buf, size, format, args);
   32791   va_end (args);
   32792   return ret;
   32793 }
   32794 #endif
   32795 static char fmtstring[10];
   32796 static char buf[100];
   32797 int main ()
   32798 {
   32799   int count = -1;
   32800   /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
   32801      support %n in format strings in read-only memory but not in writable
   32802      memory.  */
   32803   strcpy (fmtstring, "%d %n");
   32804   my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
   32805   if (count != 6)
   32806     return 1;
   32807   return 0;
   32808 }
   32809 _ACEOF
   32810 if ac_fn_c_try_run "$LINENO"; then :
   32811   gl_cv_func_snprintf_directive_n=yes
   32812 else
   32813   gl_cv_func_snprintf_directive_n=no
   32814 fi
   32815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32816   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32817 fi
   32818 
   32819 
   32820 fi
   32821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_directive_n" >&5
   32822 $as_echo "$gl_cv_func_snprintf_directive_n" >&6; }
   32823 
   32824 
   32825 
   32826 
   32827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
   32828 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
   32829 if ${gl_cv_func_snprintf_size1+:} false; then :
   32830   $as_echo_n "(cached) " >&6
   32831 else
   32832 
   32833       if test "$cross_compiling" = yes; then :
   32834   gl_cv_func_snprintf_size1="guessing yes"
   32835 else
   32836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32837 /* end confdefs.h.  */
   32838 
   32839 #include <stdio.h>
   32840 #if HAVE_SNPRINTF
   32841 # define my_snprintf snprintf
   32842 #else
   32843 # include <stdarg.h>
   32844 static int my_snprintf (char *buf, int size, const char *format, ...)
   32845 {
   32846   va_list args;
   32847   int ret;
   32848   va_start (args, format);
   32849   ret = vsnprintf (buf, size, format, args);
   32850   va_end (args);
   32851   return ret;
   32852 }
   32853 #endif
   32854 int main()
   32855 {
   32856   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
   32857   my_snprintf (buf, 1, "%d", 12345);
   32858   return buf[1] != 'E';
   32859 }
   32860 _ACEOF
   32861 if ac_fn_c_try_run "$LINENO"; then :
   32862   gl_cv_func_snprintf_size1=yes
   32863 else
   32864   gl_cv_func_snprintf_size1=no
   32865 fi
   32866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32867   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32868 fi
   32869 
   32870 
   32871 fi
   32872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
   32873 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
   32874 
   32875 
   32876 
   32877      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf respects a zero size as in C99" >&5
   32878 $as_echo_n "checking whether vsnprintf respects a zero size as in C99... " >&6; }
   32879 if ${gl_cv_func_vsnprintf_zerosize_c99+:} false; then :
   32880   $as_echo_n "(cached) " >&6
   32881 else
   32882 
   32883       if test "$cross_compiling" = yes; then :
   32884 
   32885          case "$host_os" in
   32886                                  # Guess yes on glibc systems.
   32887            *-gnu*)               gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32888                                  # Guess yes on FreeBSD >= 5.
   32889            freebsd[1-4]*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   32890            freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32891                                  # Guess yes on Mac OS X >= 10.3.
   32892            darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   32893            darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32894                                  # Guess yes on Cygwin.
   32895            cygwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32896                                  # Guess yes on Solaris >= 2.6.
   32897            solaris2.[0-5] | solaris2.[0-5].*)
   32898                                  gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   32899            solaris*)             gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32900                                  # Guess yes on AIX >= 4.
   32901            aix[1-3]*)            gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   32902            aix*)                 gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32903                                  # Guess yes on IRIX >= 6.5.
   32904            irix6.5)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32905                                  # Guess yes on NetBSD >= 3.
   32906            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
   32907                                  gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   32908            netbsd*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32909                                  # Guess yes on BeOS.
   32910            beos*)                gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32911                                  # Guess yes on mingw.
   32912            mingw* | pw*)         gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
   32913                                  # If we don't know, assume the worst.
   32914            *)                    gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
   32915          esac
   32916 
   32917 else
   32918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32919 /* end confdefs.h.  */
   32920 
   32921 #include <stdarg.h>
   32922 #include <stdio.h>
   32923 static int my_snprintf (char *buf, int size, const char *format, ...)
   32924 {
   32925   va_list args;
   32926   int ret;
   32927   va_start (args, format);
   32928   ret = vsnprintf (buf, size, format, args);
   32929   va_end (args);
   32930   return ret;
   32931 }
   32932 int main()
   32933 {
   32934   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
   32935   my_snprintf (buf, 0, "%d", 12345);
   32936   return buf[0] != 'D';
   32937 }
   32938 _ACEOF
   32939 if ac_fn_c_try_run "$LINENO"; then :
   32940   gl_cv_func_vsnprintf_zerosize_c99=yes
   32941 else
   32942   gl_cv_func_vsnprintf_zerosize_c99=no
   32943 fi
   32944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32945   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32946 fi
   32947 
   32948 
   32949 fi
   32950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_vsnprintf_zerosize_c99" >&5
   32951 $as_echo "$gl_cv_func_vsnprintf_zerosize_c99" >&6; }
   32952 
   32953     case "$gl_cv_func_printf_sizes_c99" in
   32954       *yes)
   32955         case "$gl_cv_func_printf_long_double" in
   32956           *yes)
   32957             case "$gl_cv_func_printf_infinite" in
   32958               *yes)
   32959                 case "$gl_cv_func_printf_infinite_long_double" in
   32960                   *yes)
   32961                     case "$gl_cv_func_printf_directive_a" in
   32962                       *yes)
   32963                         case "$gl_cv_func_printf_directive_f" in
   32964                           *yes)
   32965                             case "$gl_cv_func_printf_directive_n" in
   32966                               *yes)
   32967                                 case "$gl_cv_func_printf_directive_ls" in
   32968                                   *yes)
   32969                                     case "$gl_cv_func_printf_positions" in
   32970                                       *yes)
   32971                                         case "$gl_cv_func_printf_flag_grouping" in
   32972                                           *yes)
   32973                                             case "$gl_cv_func_printf_flag_leftadjust" in
   32974                                               *yes)
   32975                                                 case "$gl_cv_func_printf_flag_zero" in
   32976                                                   *yes)
   32977                                                     case "$gl_cv_func_printf_precision" in
   32978                                                       *yes)
   32979                                                         case "$gl_cv_func_printf_enomem" in
   32980                                                           *yes)
   32981                                                             case "$gl_cv_func_snprintf_truncation_c99" in
   32982                                                               *yes)
   32983                                                                 case "$gl_cv_func_snprintf_retval_c99" in
   32984                                                                   *yes)
   32985                                                                     case "$gl_cv_func_snprintf_directive_n" in
   32986                                                                       *yes)
   32987                                                                         case "$gl_cv_func_snprintf_size1" in
   32988                                                                           *yes)
   32989                                                                             case "$gl_cv_func_vsnprintf_zerosize_c99" in
   32990                                                                               *yes)
   32991                                                                                 # vsnprintf exists and is
   32992                                                                                 # already POSIX compliant.
   32993                                                                                 gl_cv_func_vsnprintf_posix=yes
   32994                                                                                 ;;
   32995                                                                             esac
   32996                                                                             ;;
   32997                                                                         esac
   32998                                                                         ;;
   32999                                                                     esac
   33000                                                                     ;;
   33001                                                                 esac
   33002                                                                 ;;
   33003                                                             esac
   33004                                                             ;;
   33005                                                         esac
   33006                                                         ;;
   33007                                                     esac
   33008                                                     ;;
   33009                                                 esac
   33010                                                 ;;
   33011                                             esac
   33012                                             ;;
   33013                                         esac
   33014                                         ;;
   33015                                     esac
   33016                                     ;;
   33017                                 esac
   33018                                 ;;
   33019                             esac
   33020                             ;;
   33021                         esac
   33022                         ;;
   33023                     esac
   33024                     ;;
   33025                 esac
   33026                 ;;
   33027             esac
   33028             ;;
   33029         esac
   33030         ;;
   33031     esac
   33032   fi
   33033   if test $gl_cv_func_vsnprintf_posix = no; then
   33034 
   33035 
   33036 
   33037   case "$gl_cv_func_printf_infinite" in
   33038     *yes)
   33039       ;;
   33040     *)
   33041 
   33042 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   33043 
   33044       ;;
   33045   esac
   33046 
   33047 
   33048 
   33049 
   33050   case "$gl_cv_func_printf_long_double" in
   33051     *yes)
   33052       case "$gl_cv_func_printf_infinite_long_double" in
   33053         *yes)
   33054           ;;
   33055         *)
   33056 
   33057 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   33058 
   33059           ;;
   33060       esac
   33061       ;;
   33062   esac
   33063 
   33064 
   33065 
   33066   case "$gl_cv_func_printf_directive_a" in
   33067     *yes)
   33068       ;;
   33069     *)
   33070 
   33071 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   33072 
   33073       for ac_func in nl_langinfo
   33074 do :
   33075   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   33076 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   33077   cat >>confdefs.h <<_ACEOF
   33078 #define HAVE_NL_LANGINFO 1
   33079 _ACEOF
   33080 
   33081 fi
   33082 done
   33083 
   33084       ;;
   33085   esac
   33086 
   33087 
   33088 
   33089   case "$gl_cv_func_printf_directive_f" in
   33090     *yes)
   33091       ;;
   33092     *)
   33093 
   33094 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   33095 
   33096       ;;
   33097   esac
   33098 
   33099 
   33100 
   33101   case "$gl_cv_func_printf_directive_ls" in
   33102     *yes)
   33103       ;;
   33104     *)
   33105 
   33106 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   33107 
   33108       ;;
   33109   esac
   33110 
   33111 
   33112 
   33113   case "$gl_cv_func_printf_flag_grouping" in
   33114     *yes)
   33115       ;;
   33116     *)
   33117 
   33118 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   33119 
   33120       ;;
   33121   esac
   33122 
   33123 
   33124 
   33125   case "$gl_cv_func_printf_flag_leftadjust" in
   33126     *yes)
   33127       ;;
   33128     *)
   33129 
   33130 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   33131 
   33132       ;;
   33133   esac
   33134 
   33135 
   33136 
   33137   case "$gl_cv_func_printf_flag_zero" in
   33138     *yes)
   33139       ;;
   33140     *)
   33141 
   33142 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   33143 
   33144       ;;
   33145   esac
   33146 
   33147 
   33148 
   33149   case "$gl_cv_func_printf_precision" in
   33150     *yes)
   33151       ;;
   33152     *)
   33153 
   33154 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   33155 
   33156 
   33157 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   33158 
   33159 
   33160 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   33161 
   33162       ;;
   33163   esac
   33164 
   33165 
   33166 
   33167   case "$gl_cv_func_printf_enomem" in
   33168     *yes)
   33169       ;;
   33170     *)
   33171 
   33172 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   33173 
   33174 
   33175 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   33176 
   33177 
   33178 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   33179 
   33180       ;;
   33181   esac
   33182 
   33183 
   33184 
   33185 
   33186 
   33187 
   33188 
   33189 
   33190 
   33191 
   33192 
   33193   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   33194 
   33195 
   33196 
   33197 
   33198 
   33199 
   33200 
   33201 
   33202 
   33203   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   33204 
   33205 
   33206 
   33207 
   33208 
   33209 
   33210 
   33211 
   33212 
   33213   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   33214 
   33215 
   33216 
   33217 
   33218 
   33219 
   33220 
   33221 
   33222 
   33223   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   33224 
   33225   if test $ac_cv_func_vasnprintf = yes; then
   33226 
   33227 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   33228 
   33229   fi
   33230 
   33231 
   33232 
   33233 
   33234 
   33235 
   33236 
   33237 
   33238 
   33239 
   33240 
   33241   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   33242 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   33243 
   33244 else
   33245 
   33246 $as_echo "#define ptrdiff_t long" >>confdefs.h
   33247 
   33248 
   33249 fi
   33250 
   33251 
   33252 
   33253 
   33254 
   33255 
   33256 
   33257 
   33258 
   33259 
   33260 
   33261 
   33262 
   33263 
   33264 
   33265 
   33266 
   33267   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
   33268 
   33269   if test $ac_cv_func_vsnprintf = yes; then
   33270     REPLACE_VSNPRINTF=1
   33271   fi
   33272   :
   33273 
   33274   fi
   33275 
   33276 
   33277 
   33278 
   33279 
   33280 
   33281 
   33282 
   33283 
   33284 
   33285 
   33286 
   33287 
   33288 
   33289 
   33290 
   33291   gl_cv_func_vsprintf_posix=no
   33292   case "$gl_cv_func_printf_sizes_c99" in
   33293     *yes)
   33294       case "$gl_cv_func_printf_long_double" in
   33295         *yes)
   33296           case "$gl_cv_func_printf_infinite" in
   33297             *yes)
   33298               case "$gl_cv_func_printf_infinite_long_double" in
   33299                 *yes)
   33300                   case "$gl_cv_func_printf_directive_a" in
   33301                     *yes)
   33302                       case "$gl_cv_func_printf_directive_f" in
   33303                         *yes)
   33304                           case "$gl_cv_func_printf_directive_n" in
   33305                             *yes)
   33306                               case "$gl_cv_func_printf_directive_ls" in
   33307                                 *yes)
   33308                                   case "$gl_cv_func_printf_positions" in
   33309                                     *yes)
   33310                                       case "$gl_cv_func_printf_flag_grouping" in
   33311                                         *yes)
   33312                                           case "$gl_cv_func_printf_flag_leftadjust" in
   33313                                             *yes)
   33314                                               case "$gl_cv_func_printf_flag_zero" in
   33315                                                 *yes)
   33316                                                   case "$gl_cv_func_printf_precision" in
   33317                                                     *yes)
   33318                                                       case "$gl_cv_func_printf_enomem" in
   33319                                                         *yes)
   33320                                                           # vsprintf exists and is
   33321                                                           # already POSIX compliant.
   33322                                                           gl_cv_func_vsprintf_posix=yes
   33323                                                           ;;
   33324                                                       esac
   33325                                                       ;;
   33326                                                   esac
   33327                                                   ;;
   33328                                               esac
   33329                                               ;;
   33330                                           esac
   33331                                           ;;
   33332                                       esac
   33333                                       ;;
   33334                                   esac
   33335                                   ;;
   33336                               esac
   33337                               ;;
   33338                           esac
   33339                           ;;
   33340                       esac
   33341                       ;;
   33342                   esac
   33343                   ;;
   33344               esac
   33345               ;;
   33346           esac
   33347           ;;
   33348       esac
   33349       ;;
   33350   esac
   33351   if test $gl_cv_func_vsprintf_posix = no; then
   33352 
   33353 
   33354 
   33355   case "$gl_cv_func_printf_infinite" in
   33356     *yes)
   33357       ;;
   33358     *)
   33359 
   33360 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
   33361 
   33362       ;;
   33363   esac
   33364 
   33365 
   33366 
   33367 
   33368   case "$gl_cv_func_printf_long_double" in
   33369     *yes)
   33370       case "$gl_cv_func_printf_infinite_long_double" in
   33371         *yes)
   33372           ;;
   33373         *)
   33374 
   33375 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
   33376 
   33377           ;;
   33378       esac
   33379       ;;
   33380   esac
   33381 
   33382 
   33383 
   33384   case "$gl_cv_func_printf_directive_a" in
   33385     *yes)
   33386       ;;
   33387     *)
   33388 
   33389 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
   33390 
   33391       for ac_func in nl_langinfo
   33392 do :
   33393   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   33394 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
   33395   cat >>confdefs.h <<_ACEOF
   33396 #define HAVE_NL_LANGINFO 1
   33397 _ACEOF
   33398 
   33399 fi
   33400 done
   33401 
   33402       ;;
   33403   esac
   33404 
   33405 
   33406 
   33407   case "$gl_cv_func_printf_directive_f" in
   33408     *yes)
   33409       ;;
   33410     *)
   33411 
   33412 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
   33413 
   33414       ;;
   33415   esac
   33416 
   33417 
   33418 
   33419   case "$gl_cv_func_printf_directive_ls" in
   33420     *yes)
   33421       ;;
   33422     *)
   33423 
   33424 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
   33425 
   33426       ;;
   33427   esac
   33428 
   33429 
   33430 
   33431   case "$gl_cv_func_printf_flag_grouping" in
   33432     *yes)
   33433       ;;
   33434     *)
   33435 
   33436 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
   33437 
   33438       ;;
   33439   esac
   33440 
   33441 
   33442 
   33443   case "$gl_cv_func_printf_flag_leftadjust" in
   33444     *yes)
   33445       ;;
   33446     *)
   33447 
   33448 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
   33449 
   33450       ;;
   33451   esac
   33452 
   33453 
   33454 
   33455   case "$gl_cv_func_printf_flag_zero" in
   33456     *yes)
   33457       ;;
   33458     *)
   33459 
   33460 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
   33461 
   33462       ;;
   33463   esac
   33464 
   33465 
   33466 
   33467   case "$gl_cv_func_printf_precision" in
   33468     *yes)
   33469       ;;
   33470     *)
   33471 
   33472 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
   33473 
   33474 
   33475 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   33476 
   33477 
   33478 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   33479 
   33480       ;;
   33481   esac
   33482 
   33483 
   33484 
   33485   case "$gl_cv_func_printf_enomem" in
   33486     *yes)
   33487       ;;
   33488     *)
   33489 
   33490 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
   33491 
   33492 
   33493 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
   33494 
   33495 
   33496 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
   33497 
   33498       ;;
   33499   esac
   33500 
   33501 
   33502 
   33503 
   33504 
   33505 
   33506 
   33507 
   33508 
   33509 
   33510 
   33511   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
   33512 
   33513 
   33514 
   33515 
   33516 
   33517 
   33518 
   33519 
   33520 
   33521   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
   33522 
   33523 
   33524 
   33525 
   33526 
   33527 
   33528 
   33529 
   33530 
   33531   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
   33532 
   33533 
   33534 
   33535 
   33536 
   33537 
   33538 
   33539 
   33540 
   33541   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
   33542 
   33543   if test $ac_cv_func_vasnprintf = yes; then
   33544 
   33545 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
   33546 
   33547   fi
   33548 
   33549 
   33550 
   33551 
   33552 
   33553 
   33554 
   33555 
   33556 
   33557 
   33558 
   33559   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   33560 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
   33561 
   33562 else
   33563 
   33564 $as_echo "#define ptrdiff_t long" >>confdefs.h
   33565 
   33566 
   33567 fi
   33568 
   33569 
   33570 
   33571 
   33572 
   33573 
   33574 
   33575 
   33576 
   33577 
   33578 
   33579 
   33580 
   33581 
   33582 
   33583 
   33584 
   33585   gl_LIBOBJS="$gl_LIBOBJS vsprintf.$ac_objext"
   33586 
   33587   REPLACE_VSPRINTF=1
   33588   :
   33589 
   33590   fi
   33591 
   33592 
   33593 
   33594 
   33595 
   33596 
   33597           GNULIB_VSPRINTF_POSIX=1
   33598 
   33599 
   33600 
   33601 
   33602 
   33603 $as_echo "#define GNULIB_TEST_VSPRINTF_POSIX 1" >>confdefs.h
   33604 
   33605 
   33606 
   33607 
   33608 
   33609   for ac_func in waitid
   33610 do :
   33611   ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
   33612 if test "x$ac_cv_func_waitid" = xyes; then :
   33613   cat >>confdefs.h <<_ACEOF
   33614 #define HAVE_WAITID 1
   33615 _ACEOF
   33616 
   33617 fi
   33618 done
   33619 
   33620 
   33621 
   33622 
   33623   HAVE_WAITPID=1
   33624   case $host_os in
   33625     mingw*) HAVE_WAITPID=0 ;;
   33626   esac
   33627 
   33628   if test $HAVE_WAITPID = 0; then
   33629 
   33630 
   33631 
   33632 
   33633 
   33634 
   33635 
   33636 
   33637   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
   33638 
   33639   fi
   33640 
   33641 
   33642 
   33643 
   33644 
   33645           GNULIB_WAITPID=1
   33646 
   33647 
   33648 
   33649 
   33650 
   33651 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
   33652 
   33653 
   33654 
   33655 
   33656 
   33657 
   33658 
   33659 
   33660 
   33661 
   33662 
   33663 
   33664 
   33665 
   33666 
   33667      if test $gl_cv_have_include_next = yes; then
   33668        gl_cv_next_wchar_h='<'wchar.h'>'
   33669      else
   33670        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
   33671 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
   33672 if ${gl_cv_next_wchar_h+:} false; then :
   33673   $as_echo_n "(cached) " >&6
   33674 else
   33675 
   33676              if test $ac_cv_header_wchar_h = yes; then
   33677 
   33678 
   33679                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33680 /* end confdefs.h.  */
   33681 #include <wchar.h>
   33682 
   33683 _ACEOF
   33684                                                                                                                         case "$host_os" in
   33685                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   33686                  *)    gl_absname_cpp="$ac_cpp" ;;
   33687                esac
   33688 
   33689                case "$host_os" in
   33690                  mingw*)
   33691                                                                                                                                      gl_dirsep_regex='[/\\]'
   33692                    ;;
   33693                  *)
   33694                    gl_dirsep_regex='\/'
   33695                    ;;
   33696                esac
   33697                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   33698 
   33699                gl_header_literal_regex=`echo 'wchar.h' \
   33700                                         | sed -e "$gl_make_literal_regex_sed"`
   33701                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   33702                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   33703                    s|^/[^/]|//&|
   33704                    p
   33705                    q
   33706                  }'
   33707                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   33708                       sed -n "$gl_absolute_header_sed"`'"'
   33709           else
   33710                gl_cv_next_wchar_h='<'wchar.h'>'
   33711              fi
   33712 
   33713 
   33714 fi
   33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
   33716 $as_echo "$gl_cv_next_wchar_h" >&6; }
   33717      fi
   33718      NEXT_WCHAR_H=$gl_cv_next_wchar_h
   33719 
   33720      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   33721        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   33722        gl_next_as_first_directive='<'wchar.h'>'
   33723      else
   33724        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   33725        gl_next_as_first_directive=$gl_cv_next_wchar_h
   33726      fi
   33727      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
   33728 
   33729 
   33730 
   33731 
   33732   if test $ac_cv_header_wchar_h = yes; then
   33733     HAVE_WCHAR_H=1
   33734   else
   33735     HAVE_WCHAR_H=0
   33736   fi
   33737 
   33738 
   33739 
   33740 
   33741 
   33742   if test $gt_cv_c_wint_t = yes; then
   33743     HAVE_WINT_T=1
   33744   else
   33745     HAVE_WINT_T=0
   33746   fi
   33747 
   33748 
   33749 
   33750     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
   33751     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   33752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   33753 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   33754 if eval \${$as_gl_Symbol+:} false; then :
   33755   $as_echo_n "(cached) " >&6
   33756 else
   33757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33758 /* end confdefs.h.  */
   33759 
   33760 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   33761    <wchar.h>.
   33762    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   33763    included before <wchar.h>.  */
   33764 #if !(defined __GLIBC__ && !defined __UCLIBC__)
   33765 # include <stddef.h>
   33766 # include <stdio.h>
   33767 # include <time.h>
   33768 #endif
   33769 #include <wchar.h>
   33770 
   33771 int
   33772 main ()
   33773 {
   33774 #undef $gl_func
   33775   (void) $gl_func;
   33776   ;
   33777   return 0;
   33778 }
   33779 _ACEOF
   33780 if ac_fn_c_try_compile "$LINENO"; then :
   33781   eval "$as_gl_Symbol=yes"
   33782 else
   33783   eval "$as_gl_Symbol=no"
   33784 fi
   33785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33786 fi
   33787 eval ac_res=\$$as_gl_Symbol
   33788 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   33789 $as_echo "$ac_res" >&6; }
   33790     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   33791   cat >>confdefs.h <<_ACEOF
   33792 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   33793 _ACEOF
   33794 
   33795                      eval ac_cv_have_decl_$gl_func=yes
   33796 fi
   33797       done
   33798 
   33799 
   33800 
   33801 
   33802 
   33803 
   33804 
   33805   if test $ac_cv_func_iswcntrl = yes; then
   33806     HAVE_ISWCNTRL=1
   33807   else
   33808     HAVE_ISWCNTRL=0
   33809   fi
   33810 
   33811 
   33812 
   33813   if test $gt_cv_c_wint_t = yes; then
   33814     HAVE_WINT_T=1
   33815   else
   33816     HAVE_WINT_T=0
   33817   fi
   33818 
   33819 
   33820 
   33821 
   33822 
   33823 
   33824 
   33825 
   33826 
   33827 
   33828 
   33829      if test $gl_cv_have_include_next = yes; then
   33830        gl_cv_next_wctype_h='<'wctype.h'>'
   33831      else
   33832        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
   33833 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
   33834 if ${gl_cv_next_wctype_h+:} false; then :
   33835   $as_echo_n "(cached) " >&6
   33836 else
   33837 
   33838              if test $ac_cv_header_wctype_h = yes; then
   33839 
   33840 
   33841                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33842 /* end confdefs.h.  */
   33843 #include <wctype.h>
   33844 
   33845 _ACEOF
   33846                                                                                                                         case "$host_os" in
   33847                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
   33848                  *)    gl_absname_cpp="$ac_cpp" ;;
   33849                esac
   33850 
   33851                case "$host_os" in
   33852                  mingw*)
   33853                                                                                                                                      gl_dirsep_regex='[/\\]'
   33854                    ;;
   33855                  *)
   33856                    gl_dirsep_regex='\/'
   33857                    ;;
   33858                esac
   33859                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   33860 
   33861                gl_header_literal_regex=`echo 'wctype.h' \
   33862                                         | sed -e "$gl_make_literal_regex_sed"`
   33863                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   33864                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   33865                    s|^/[^/]|//&|
   33866                    p
   33867                    q
   33868                  }'
   33869                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   33870                       sed -n "$gl_absolute_header_sed"`'"'
   33871           else
   33872                gl_cv_next_wctype_h='<'wctype.h'>'
   33873              fi
   33874 
   33875 
   33876 fi
   33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
   33878 $as_echo "$gl_cv_next_wctype_h" >&6; }
   33879      fi
   33880      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
   33881 
   33882      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   33883        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   33884        gl_next_as_first_directive='<'wctype.h'>'
   33885      else
   33886        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   33887        gl_next_as_first_directive=$gl_cv_next_wctype_h
   33888      fi
   33889      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
   33890 
   33891 
   33892 
   33893 
   33894   if test $ac_cv_header_wctype_h = yes; then
   33895     if test $ac_cv_func_iswcntrl = yes; then
   33896                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
   33897 $as_echo_n "checking whether iswcntrl works... " >&6; }
   33898 if ${gl_cv_func_iswcntrl_works+:} false; then :
   33899   $as_echo_n "(cached) " >&6
   33900 else
   33901 
   33902           if test "$cross_compiling" = yes; then :
   33903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33904 /* end confdefs.h.  */
   33905 #include <stdlib.h>
   33906                           #if __GNU_LIBRARY__ == 1
   33907                           Linux libc5 i18n is broken.
   33908                           #endif
   33909 int
   33910 main ()
   33911 {
   33912 
   33913   ;
   33914   return 0;
   33915 }
   33916 _ACEOF
   33917 if ac_fn_c_try_compile "$LINENO"; then :
   33918   gl_cv_func_iswcntrl_works="guessing yes"
   33919 else
   33920   gl_cv_func_iswcntrl_works="guessing no"
   33921 fi
   33922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33923 
   33924 else
   33925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33926 /* end confdefs.h.  */
   33927 
   33928                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   33929                   included before <wchar.h>.
   33930                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   33931                   must be included before <wchar.h>.  */
   33932                #include <stddef.h>
   33933                #include <stdio.h>
   33934                #include <time.h>
   33935                #include <wchar.h>
   33936                #include <wctype.h>
   33937                int main () { return iswprint ('x') == 0; }
   33938 
   33939 _ACEOF
   33940 if ac_fn_c_try_run "$LINENO"; then :
   33941   gl_cv_func_iswcntrl_works=yes
   33942 else
   33943   gl_cv_func_iswcntrl_works=no
   33944 fi
   33945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   33946   conftest.$ac_objext conftest.beam conftest.$ac_ext
   33947 fi
   33948 
   33949 
   33950 fi
   33951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
   33952 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
   33953     fi
   33954     HAVE_WCTYPE_H=1
   33955   else
   33956     HAVE_WCTYPE_H=0
   33957   fi
   33958 
   33959 
   33960   case "$gl_cv_func_iswcntrl_works" in
   33961     *yes) REPLACE_ISWCNTRL=0 ;;
   33962     *)    REPLACE_ISWCNTRL=1 ;;
   33963   esac
   33964 
   33965 
   33966   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
   33967         :
   33968   fi
   33969 
   33970   if test $REPLACE_ISWCNTRL = 1; then
   33971     REPLACE_TOWLOWER=1
   33972   else
   33973     for ac_func in towlower
   33974 do :
   33975   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
   33976 if test "x$ac_cv_func_towlower" = xyes; then :
   33977   cat >>confdefs.h <<_ACEOF
   33978 #define HAVE_TOWLOWER 1
   33979 _ACEOF
   33980 
   33981 fi
   33982 done
   33983 
   33984     if test $ac_cv_func_towlower = yes; then
   33985       REPLACE_TOWLOWER=0
   33986     else
   33987       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   33988              included before <wchar.h>.
   33989              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   33990              must be included before <wchar.h>.  */
   33991           #include <stddef.h>
   33992           #include <stdio.h>
   33993           #include <time.h>
   33994           #include <wchar.h>
   33995           #if HAVE_WCTYPE_H
   33996           # include <wctype.h>
   33997           #endif
   33998 
   33999 "
   34000 if test "x$ac_cv_have_decl_towlower" = xyes; then :
   34001   ac_have_decl=1
   34002 else
   34003   ac_have_decl=0
   34004 fi
   34005 
   34006 cat >>confdefs.h <<_ACEOF
   34007 #define HAVE_DECL_TOWLOWER $ac_have_decl
   34008 _ACEOF
   34009 
   34010       if test $ac_cv_have_decl_towlower = yes; then
   34011                                 REPLACE_TOWLOWER=1
   34012       else
   34013         REPLACE_TOWLOWER=0
   34014       fi
   34015     fi
   34016   fi
   34017 
   34018 
   34019   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
   34020         :
   34021   fi
   34022 
   34023           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
   34024 $as_echo_n "checking for wctype_t... " >&6; }
   34025 if ${gl_cv_type_wctype_t+:} false; then :
   34026   $as_echo_n "(cached) " >&6
   34027 else
   34028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34029 /* end confdefs.h.  */
   34030 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   34031                included before <wchar.h>.
   34032                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   34033                must be included before <wchar.h>.  */
   34034             #include <stddef.h>
   34035             #include <stdio.h>
   34036             #include <time.h>
   34037             #include <wchar.h>
   34038             #if HAVE_WCTYPE_H
   34039             # include <wctype.h>
   34040             #endif
   34041             wctype_t a;
   34042 
   34043 int
   34044 main ()
   34045 {
   34046 
   34047   ;
   34048   return 0;
   34049 }
   34050 _ACEOF
   34051 if ac_fn_c_try_compile "$LINENO"; then :
   34052   gl_cv_type_wctype_t=yes
   34053 else
   34054   gl_cv_type_wctype_t=no
   34055 fi
   34056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34057 
   34058 fi
   34059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
   34060 $as_echo "$gl_cv_type_wctype_t" >&6; }
   34061   if test $gl_cv_type_wctype_t = no; then
   34062     HAVE_WCTYPE_T=0
   34063   fi
   34064 
   34065       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
   34066 $as_echo_n "checking for wctrans_t... " >&6; }
   34067 if ${gl_cv_type_wctrans_t+:} false; then :
   34068   $as_echo_n "(cached) " >&6
   34069 else
   34070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34071 /* end confdefs.h.  */
   34072 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
   34073                included before <wchar.h>.
   34074                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
   34075                must be included before <wchar.h>.  */
   34076             #include <stddef.h>
   34077             #include <stdio.h>
   34078             #include <time.h>
   34079             #include <wchar.h>
   34080             #include <wctype.h>
   34081             wctrans_t a;
   34082 
   34083 int
   34084 main ()
   34085 {
   34086 
   34087   ;
   34088   return 0;
   34089 }
   34090 _ACEOF
   34091 if ac_fn_c_try_compile "$LINENO"; then :
   34092   gl_cv_type_wctrans_t=yes
   34093 else
   34094   gl_cv_type_wctrans_t=no
   34095 fi
   34096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34097 
   34098 fi
   34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
   34100 $as_echo "$gl_cv_type_wctrans_t" >&6; }
   34101   if test $gl_cv_type_wctrans_t = no; then
   34102     HAVE_WCTRANS_T=0
   34103   fi
   34104 
   34105 
   34106     for gl_func in wctype iswctype wctrans towctrans     ; do
   34107     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
   34108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
   34109 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
   34110 if eval \${$as_gl_Symbol+:} false; then :
   34111   $as_echo_n "(cached) " >&6
   34112 else
   34113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34114 /* end confdefs.h.  */
   34115 
   34116 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   34117    <wchar.h>.
   34118    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   34119    included before <wchar.h>.  */
   34120 #if !(defined __GLIBC__ && !defined __UCLIBC__)
   34121 # include <stddef.h>
   34122 # include <stdio.h>
   34123 # include <time.h>
   34124 # include <wchar.h>
   34125 #endif
   34126 #include <wctype.h>
   34127 
   34128 int
   34129 main ()
   34130 {
   34131 #undef $gl_func
   34132   (void) $gl_func;
   34133   ;
   34134   return 0;
   34135 }
   34136 _ACEOF
   34137 if ac_fn_c_try_compile "$LINENO"; then :
   34138   eval "$as_gl_Symbol=yes"
   34139 else
   34140   eval "$as_gl_Symbol=no"
   34141 fi
   34142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34143 fi
   34144 eval ac_res=\$$as_gl_Symbol
   34145 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   34146 $as_echo "$ac_res" >&6; }
   34147     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
   34148   cat >>confdefs.h <<_ACEOF
   34149 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
   34150 _ACEOF
   34151 
   34152                      eval ac_cv_have_decl_$gl_func=yes
   34153 fi
   34154       done
   34155 
   34156 
   34157 
   34158 
   34159 
   34160 
   34161 
   34162 
   34163 
   34164 
   34165 
   34166 
   34167 
   34168   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
   34169 /* AIX 3.2.5 declares wcwidth in <string.h>. */
   34170 #include <string.h>
   34171 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   34172    <wchar.h>.
   34173    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   34174    before <wchar.h>.  */
   34175 #include <stddef.h>
   34176 #include <stdio.h>
   34177 #include <time.h>
   34178 #include <wchar.h>
   34179 
   34180 "
   34181 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
   34182   ac_have_decl=1
   34183 else
   34184   ac_have_decl=0
   34185 fi
   34186 
   34187 cat >>confdefs.h <<_ACEOF
   34188 #define HAVE_DECL_WCWIDTH $ac_have_decl
   34189 _ACEOF
   34190 
   34191   if test $ac_cv_have_decl_wcwidth != yes; then
   34192     HAVE_DECL_WCWIDTH=0
   34193   fi
   34194 
   34195   if test $ac_cv_func_wcwidth = yes; then
   34196     HAVE_WCWIDTH=1
   34197                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
   34198 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
   34199 if ${gl_cv_func_wcwidth_works+:} false; then :
   34200   $as_echo_n "(cached) " >&6
   34201 else
   34202 
   34203         if test "$cross_compiling" = yes; then :
   34204 
   34205            case "$host_os" in
   34206                      # Guess yes on glibc and AIX 7 systems.
   34207              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
   34208              *)                  gl_cv_func_wcwidth_works="guessing no";;
   34209            esac
   34210 
   34211 else
   34212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34213 /* end confdefs.h.  */
   34214 
   34215 #include <locale.h>
   34216 /* AIX 3.2.5 declares wcwidth in <string.h>. */
   34217 #include <string.h>
   34218 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   34219    <wchar.h>.
   34220    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   34221    before <wchar.h>.  */
   34222 #include <stddef.h>
   34223 #include <stdio.h>
   34224 #include <time.h>
   34225 #include <wchar.h>
   34226 #if !HAVE_DECL_WCWIDTH
   34227 extern
   34228 # ifdef __cplusplus
   34229 "C"
   34230 # endif
   34231 int wcwidth (int);
   34232 #endif
   34233 int main ()
   34234 {
   34235   int result = 0;
   34236   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
   34237     {
   34238       if (wcwidth (0x0301) > 0)
   34239         result |= 1;
   34240       if (wcwidth (0x05B0) > 0)
   34241         result |= 2;
   34242       if (wcwidth (0x200B) > 0)
   34243         result |= 4;
   34244     }
   34245   return result;
   34246 }
   34247 _ACEOF
   34248 if ac_fn_c_try_run "$LINENO"; then :
   34249   gl_cv_func_wcwidth_works=yes
   34250 else
   34251   gl_cv_func_wcwidth_works=no
   34252 fi
   34253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34254   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34255 fi
   34256 
   34257 
   34258 fi
   34259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
   34260 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
   34261     case "$gl_cv_func_wcwidth_works" in
   34262       *yes) ;;
   34263       *no) REPLACE_WCWIDTH=1 ;;
   34264     esac
   34265   else
   34266     HAVE_WCWIDTH=0
   34267   fi
   34268 
   34269   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
   34270 
   34271 
   34272 
   34273 
   34274 
   34275 
   34276 
   34277 
   34278   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
   34279 
   34280   fi
   34281 
   34282 
   34283 
   34284 
   34285 
   34286           GNULIB_WCWIDTH=1
   34287 
   34288 
   34289 
   34290 
   34291 
   34292 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
   34293 
   34294 
   34295 
   34296   :
   34297 
   34298 
   34299 
   34300 
   34301 
   34302 
   34303 
   34304 
   34305   gl_LIBOBJS="$gl_LIBOBJS xmemdup0.$ac_objext"
   34306 
   34307 
   34308 
   34309   for ac_header in stdint.h
   34310 do :
   34311   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
   34312 if test "x$ac_cv_header_stdint_h" = xyes; then :
   34313   cat >>confdefs.h <<_ACEOF
   34314 #define HAVE_STDINT_H 1
   34315 _ACEOF
   34316 
   34317 fi
   34318 
   34319 done
   34320 
   34321 
   34322 
   34323 
   34324   :
   34325 
   34326 
   34327   # End of code from modules
   34328 
   34329 
   34330 
   34331 
   34332 
   34333 
   34334 
   34335 
   34336 
   34337   gltests_libdeps=
   34338   gltests_ltlibdeps=
   34339 
   34340 
   34341 
   34342 
   34343 
   34344 
   34345 
   34346 
   34347 
   34348   gl_source_base='tests'
   34349   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
   34350 
   34351   gl_module_indicator_condition=$gltests_WITNESS
   34352 
   34353 
   34354 
   34355 
   34356 
   34357 
   34358 
   34359 
   34360 
   34361   LIBBISON_LIBDEPS="$gl_libdeps"
   34362 
   34363   LIBBISON_LTLIBDEPS="$gl_ltlibdeps"
   34364 
   34365 
   34366 
   34367 # Checks for library functions.
   34368 
   34369 
   34370 
   34371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
   34372 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
   34373 
   34374 # Check whether --with-dmalloc was given.
   34375 if test "${with_dmalloc+set}" = set; then :
   34376   withval=$with_dmalloc; if test "$withval" = yes; then
   34377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   34378 $as_echo "yes" >&6; }
   34379 
   34380 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
   34381 
   34382   LIBS="$LIBS -ldmalloc"
   34383   LDFLAGS="$LDFLAGS -g"
   34384 else
   34385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   34386 $as_echo "no" >&6; }
   34387 fi
   34388 else
   34389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   34390 $as_echo "no" >&6; }
   34391 fi
   34392 
   34393 
   34394 for ac_header in sys/time.h sys/times.h
   34395 do :
   34396   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   34397 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   34398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   34399   cat >>confdefs.h <<_ACEOF
   34400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   34401 _ACEOF
   34402 
   34403 fi
   34404 
   34405 done
   34406 
   34407  for ac_header in sys/resource.h
   34408 do :
   34409   ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default
   34410 #if HAVE_SYS_TIME_H
   34411 # include <sys/time.h>
   34412 #endif
   34413 #ifdef HAVE_SYS_TIMES_H
   34414 # include <sys/times.h>
   34415 #endif
   34416 
   34417 "
   34418 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
   34419   cat >>confdefs.h <<_ACEOF
   34420 #define HAVE_SYS_RESOURCE_H 1
   34421 _ACEOF
   34422 
   34423 fi
   34424 
   34425 done
   34426 
   34427 for ac_func in times
   34428 do :
   34429   ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
   34430 if test "x$ac_cv_func_times" = xyes; then :
   34431   cat >>confdefs.h <<_ACEOF
   34432 #define HAVE_TIMES 1
   34433 _ACEOF
   34434 
   34435 fi
   34436 done
   34437 
   34438 
   34439 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default
   34440 #if HAVE_SYS_TIME_H
   34441 # include <sys/time.h>
   34442 #endif
   34443 #if HAVE_SYS_TIMES_H
   34444 # include <sys/times.h>
   34445 #endif
   34446 #if HAVE_SYS_RESOURCE_H
   34447 # include <sys/resource.h>
   34448 #endif
   34449 
   34450 "
   34451 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
   34452   ac_have_decl=1
   34453 else
   34454   ac_have_decl=0
   34455 fi
   34456 
   34457 cat >>confdefs.h <<_ACEOF
   34458 #define HAVE_DECL_GETRUSAGE $ac_have_decl
   34459 _ACEOF
   34460 ac_fn_c_check_decl "$LINENO" "times" "ac_cv_have_decl_times" "$ac_includes_default
   34461 #if HAVE_SYS_TIME_H
   34462 # include <sys/time.h>
   34463 #endif
   34464 #if HAVE_SYS_TIMES_H
   34465 # include <sys/times.h>
   34466 #endif
   34467 #if HAVE_SYS_RESOURCE_H
   34468 # include <sys/resource.h>
   34469 #endif
   34470 
   34471 "
   34472 if test "x$ac_cv_have_decl_times" = xyes; then :
   34473   ac_have_decl=1
   34474 else
   34475   ac_have_decl=0
   34476 fi
   34477 
   34478 cat >>confdefs.h <<_ACEOF
   34479 #define HAVE_DECL_TIMES $ac_have_decl
   34480 _ACEOF
   34481 ac_fn_c_check_decl "$LINENO" "clock" "ac_cv_have_decl_clock" "$ac_includes_default
   34482 #if HAVE_SYS_TIME_H
   34483 # include <sys/time.h>
   34484 #endif
   34485 #if HAVE_SYS_TIMES_H
   34486 # include <sys/times.h>
   34487 #endif
   34488 #if HAVE_SYS_RESOURCE_H
   34489 # include <sys/resource.h>
   34490 #endif
   34491 
   34492 "
   34493 if test "x$ac_cv_have_decl_clock" = xyes; then :
   34494   ac_have_decl=1
   34495 else
   34496   ac_have_decl=0
   34497 fi
   34498 
   34499 cat >>confdefs.h <<_ACEOF
   34500 #define HAVE_DECL_CLOCK $ac_have_decl
   34501 _ACEOF
   34502 ac_fn_c_check_decl "$LINENO" "sysconf" "ac_cv_have_decl_sysconf" "$ac_includes_default
   34503 #if HAVE_SYS_TIME_H
   34504 # include <sys/time.h>
   34505 #endif
   34506 #if HAVE_SYS_TIMES_H
   34507 # include <sys/times.h>
   34508 #endif
   34509 #if HAVE_SYS_RESOURCE_H
   34510 # include <sys/resource.h>
   34511 #endif
   34512 
   34513 "
   34514 if test "x$ac_cv_have_decl_sysconf" = xyes; then :
   34515   ac_have_decl=1
   34516 else
   34517   ac_have_decl=0
   34518 fi
   34519 
   34520 cat >>confdefs.h <<_ACEOF
   34521 #define HAVE_DECL_SYSCONF $ac_have_decl
   34522 _ACEOF
   34523 
   34524 
   34525 ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "$ac_includes_default
   34526 #if HAVE_SYS_TIME_H
   34527 # include <sys/time.h>
   34528 #endif
   34529 #if HAVE_SYS_TIMES_H
   34530 # include <sys/times.h>
   34531 #endif
   34532 #if HAVE_SYS_RESOURCE_H
   34533 # include <sys/resource.h>
   34534 #endif
   34535 
   34536 "
   34537 if test "x$ac_cv_type_clock_t" = xyes; then :
   34538 
   34539 cat >>confdefs.h <<_ACEOF
   34540 #define HAVE_CLOCK_T 1
   34541 _ACEOF
   34542 
   34543 
   34544 fi
   34545 ac_fn_c_check_type "$LINENO" "struct tms" "ac_cv_type_struct_tms" "$ac_includes_default
   34546 #if HAVE_SYS_TIME_H
   34547 # include <sys/time.h>
   34548 #endif
   34549 #if HAVE_SYS_TIMES_H
   34550 # include <sys/times.h>
   34551 #endif
   34552 #if HAVE_SYS_RESOURCE_H
   34553 # include <sys/resource.h>
   34554 #endif
   34555 
   34556 "
   34557 if test "x$ac_cv_type_struct_tms" = xyes; then :
   34558 
   34559 cat >>confdefs.h <<_ACEOF
   34560 #define HAVE_STRUCT_TMS 1
   34561 _ACEOF
   34562 
   34563 
   34564 fi
   34565 
   34566 
   34567 
   34568 # Gettext.
   34569 # We use gnulib, which is only guaranteed to work properly with the
   34570 # latest Gettext.
   34571 
   34572 mkdir_p="$MKDIR_P"
   34573 case $mkdir_p in
   34574   [\\/$]* | ?:[\\/]*) ;;
   34575   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
   34576 esac
   34577 
   34578 
   34579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   34580 $as_echo_n "checking whether NLS is requested... " >&6; }
   34581     # Check whether --enable-nls was given.
   34582 if test "${enable_nls+set}" = set; then :
   34583   enableval=$enable_nls; USE_NLS=$enableval
   34584 else
   34585   USE_NLS=yes
   34586 fi
   34587 
   34588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
   34589 $as_echo "$USE_NLS" >&6; }
   34590 
   34591 
   34592 
   34593 
   34594       GETTEXT_MACRO_VERSION=0.18
   34595 
   34596 
   34597 
   34598 
   34599 # Prepare PATH_SEPARATOR.
   34600 # The user is always right.
   34601 if test "${PATH_SEPARATOR+set}" != set; then
   34602   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
   34603   # contains only /bin. Note that ksh looks also at the FPATH variable,
   34604   # so we have to set that as well for the test.
   34605   PATH_SEPARATOR=:
   34606   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   34607     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   34608            || PATH_SEPARATOR=';'
   34609        }
   34610 fi
   34611 
   34612 # Find out how to test for executable files. Don't use a zero-byte file,
   34613 # as systems may use methods other than mode bits to determine executability.
   34614 cat >conf$$.file <<_ASEOF
   34615 #! /bin/sh
   34616 exit 0
   34617 _ASEOF
   34618 chmod +x conf$$.file
   34619 if test -x conf$$.file >/dev/null 2>&1; then
   34620   ac_executable_p="test -x"
   34621 else
   34622   ac_executable_p="test -f"
   34623 fi
   34624 rm -f conf$$.file
   34625 
   34626 # Extract the first word of "msgfmt", so it can be a program name with args.
   34627 set dummy msgfmt; ac_word=$2
   34628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   34629 $as_echo_n "checking for $ac_word... " >&6; }
   34630 if ${ac_cv_path_MSGFMT+:} false; then :
   34631   $as_echo_n "(cached) " >&6
   34632 else
   34633   case "$MSGFMT" in
   34634   [\\/]* | ?:[\\/]*)
   34635     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
   34636     ;;
   34637   *)
   34638     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   34639     for ac_dir in $PATH; do
   34640       IFS="$ac_save_IFS"
   34641       test -z "$ac_dir" && ac_dir=.
   34642       for ac_exec_ext in '' $ac_executable_extensions; do
   34643         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   34644           echo "$as_me: trying $ac_dir/$ac_word..." >&5
   34645           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
   34646      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   34647             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
   34648             break 2
   34649           fi
   34650         fi
   34651       done
   34652     done
   34653     IFS="$ac_save_IFS"
   34654   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
   34655     ;;
   34656 esac
   34657 fi
   34658 MSGFMT="$ac_cv_path_MSGFMT"
   34659 if test "$MSGFMT" != ":"; then
   34660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
   34661 $as_echo "$MSGFMT" >&6; }
   34662 else
   34663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   34664 $as_echo "no" >&6; }
   34665 fi
   34666 
   34667   # Extract the first word of "gmsgfmt", so it can be a program name with args.
   34668 set dummy gmsgfmt; ac_word=$2
   34669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   34670 $as_echo_n "checking for $ac_word... " >&6; }
   34671 if ${ac_cv_path_GMSGFMT+:} false; then :
   34672   $as_echo_n "(cached) " >&6
   34673 else
   34674   case $GMSGFMT in
   34675   [\\/]* | ?:[\\/]*)
   34676   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
   34677   ;;
   34678   *)
   34679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   34680 for as_dir in $PATH
   34681 do
   34682   IFS=$as_save_IFS
   34683   test -z "$as_dir" && as_dir=.
   34684     for ac_exec_ext in '' $ac_executable_extensions; do
   34685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   34686     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
   34687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   34688     break 2
   34689   fi
   34690 done
   34691   done
   34692 IFS=$as_save_IFS
   34693 
   34694   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
   34695   ;;
   34696 esac
   34697 fi
   34698 GMSGFMT=$ac_cv_path_GMSGFMT
   34699 if test -n "$GMSGFMT"; then
   34700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
   34701 $as_echo "$GMSGFMT" >&6; }
   34702 else
   34703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   34704 $as_echo "no" >&6; }
   34705 fi
   34706 
   34707 
   34708 
   34709     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
   34710     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
   34711     *) MSGFMT_015=$MSGFMT ;;
   34712   esac
   34713 
   34714   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
   34715     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
   34716     *) GMSGFMT_015=$GMSGFMT ;;
   34717   esac
   34718 
   34719 
   34720 
   34721 # Prepare PATH_SEPARATOR.
   34722 # The user is always right.
   34723 if test "${PATH_SEPARATOR+set}" != set; then
   34724   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
   34725   # contains only /bin. Note that ksh looks also at the FPATH variable,
   34726   # so we have to set that as well for the test.
   34727   PATH_SEPARATOR=:
   34728   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   34729     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   34730            || PATH_SEPARATOR=';'
   34731        }
   34732 fi
   34733 
   34734 # Find out how to test for executable files. Don't use a zero-byte file,
   34735 # as systems may use methods other than mode bits to determine executability.
   34736 cat >conf$$.file <<_ASEOF
   34737 #! /bin/sh
   34738 exit 0
   34739 _ASEOF
   34740 chmod +x conf$$.file
   34741 if test -x conf$$.file >/dev/null 2>&1; then
   34742   ac_executable_p="test -x"
   34743 else
   34744   ac_executable_p="test -f"
   34745 fi
   34746 rm -f conf$$.file
   34747 
   34748 # Extract the first word of "xgettext", so it can be a program name with args.
   34749 set dummy xgettext; ac_word=$2
   34750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   34751 $as_echo_n "checking for $ac_word... " >&6; }
   34752 if ${ac_cv_path_XGETTEXT+:} false; then :
   34753   $as_echo_n "(cached) " >&6
   34754 else
   34755   case "$XGETTEXT" in
   34756   [\\/]* | ?:[\\/]*)
   34757     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
   34758     ;;
   34759   *)
   34760     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   34761     for ac_dir in $PATH; do
   34762       IFS="$ac_save_IFS"
   34763       test -z "$ac_dir" && ac_dir=.
   34764       for ac_exec_ext in '' $ac_executable_extensions; do
   34765         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   34766           echo "$as_me: trying $ac_dir/$ac_word..." >&5
   34767           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
   34768      (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
   34769             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
   34770             break 2
   34771           fi
   34772         fi
   34773       done
   34774     done
   34775     IFS="$ac_save_IFS"
   34776   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
   34777     ;;
   34778 esac
   34779 fi
   34780 XGETTEXT="$ac_cv_path_XGETTEXT"
   34781 if test "$XGETTEXT" != ":"; then
   34782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
   34783 $as_echo "$XGETTEXT" >&6; }
   34784 else
   34785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   34786 $as_echo "no" >&6; }
   34787 fi
   34788 
   34789     rm -f messages.po
   34790 
   34791     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
   34792     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
   34793     *) XGETTEXT_015=$XGETTEXT ;;
   34794   esac
   34795 
   34796 
   34797 
   34798 # Prepare PATH_SEPARATOR.
   34799 # The user is always right.
   34800 if test "${PATH_SEPARATOR+set}" != set; then
   34801   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
   34802   # contains only /bin. Note that ksh looks also at the FPATH variable,
   34803   # so we have to set that as well for the test.
   34804   PATH_SEPARATOR=:
   34805   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   34806     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
   34807            || PATH_SEPARATOR=';'
   34808        }
   34809 fi
   34810 
   34811 # Find out how to test for executable files. Don't use a zero-byte file,
   34812 # as systems may use methods other than mode bits to determine executability.
   34813 cat >conf$$.file <<_ASEOF
   34814 #! /bin/sh
   34815 exit 0
   34816 _ASEOF
   34817 chmod +x conf$$.file
   34818 if test -x conf$$.file >/dev/null 2>&1; then
   34819   ac_executable_p="test -x"
   34820 else
   34821   ac_executable_p="test -f"
   34822 fi
   34823 rm -f conf$$.file
   34824 
   34825 # Extract the first word of "msgmerge", so it can be a program name with args.
   34826 set dummy msgmerge; ac_word=$2
   34827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   34828 $as_echo_n "checking for $ac_word... " >&6; }
   34829 if ${ac_cv_path_MSGMERGE+:} false; then :
   34830   $as_echo_n "(cached) " >&6
   34831 else
   34832   case "$MSGMERGE" in
   34833   [\\/]* | ?:[\\/]*)
   34834     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
   34835     ;;
   34836   *)
   34837     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   34838     for ac_dir in $PATH; do
   34839       IFS="$ac_save_IFS"
   34840       test -z "$ac_dir" && ac_dir=.
   34841       for ac_exec_ext in '' $ac_executable_extensions; do
   34842         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   34843           echo "$as_me: trying $ac_dir/$ac_word..." >&5
   34844           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
   34845             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
   34846             break 2
   34847           fi
   34848         fi
   34849       done
   34850     done
   34851     IFS="$ac_save_IFS"
   34852   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
   34853     ;;
   34854 esac
   34855 fi
   34856 MSGMERGE="$ac_cv_path_MSGMERGE"
   34857 if test "$MSGMERGE" != ":"; then
   34858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
   34859 $as_echo "$MSGMERGE" >&6; }
   34860 else
   34861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   34862 $as_echo "no" >&6; }
   34863 fi
   34864 
   34865 
   34866         test -n "$localedir" || localedir='${datadir}/locale'
   34867 
   34868 
   34869     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
   34870 
   34871 
   34872   ac_config_commands="$ac_config_commands po-directories"
   34873 
   34874 
   34875 
   34876 
   34877 
   34878 
   34879 
   34880 
   34881 
   34882 
   34883 
   34884 
   34885 
   34886     use_additional=yes
   34887 
   34888   acl_save_prefix="$prefix"
   34889   prefix="$acl_final_prefix"
   34890   acl_save_exec_prefix="$exec_prefix"
   34891   exec_prefix="$acl_final_exec_prefix"
   34892 
   34893     eval additional_includedir=\"$includedir\"
   34894     eval additional_libdir=\"$libdir\"
   34895 
   34896   exec_prefix="$acl_save_exec_prefix"
   34897   prefix="$acl_save_prefix"
   34898 
   34899 
   34900 # Check whether --with-libiconv-prefix was given.
   34901 if test "${with_libiconv_prefix+set}" = set; then :
   34902   withval=$with_libiconv_prefix;
   34903     if test "X$withval" = "Xno"; then
   34904       use_additional=no
   34905     else
   34906       if test "X$withval" = "X"; then
   34907 
   34908   acl_save_prefix="$prefix"
   34909   prefix="$acl_final_prefix"
   34910   acl_save_exec_prefix="$exec_prefix"
   34911   exec_prefix="$acl_final_exec_prefix"
   34912 
   34913           eval additional_includedir=\"$includedir\"
   34914           eval additional_libdir=\"$libdir\"
   34915 
   34916   exec_prefix="$acl_save_exec_prefix"
   34917   prefix="$acl_save_prefix"
   34918 
   34919       else
   34920         additional_includedir="$withval/include"
   34921         additional_libdir="$withval/$acl_libdirstem"
   34922         if test "$acl_libdirstem2" != "$acl_libdirstem" \
   34923            && ! test -d "$withval/$acl_libdirstem"; then
   34924           additional_libdir="$withval/$acl_libdirstem2"
   34925         fi
   34926       fi
   34927     fi
   34928 
   34929 fi
   34930 
   34931       LIBICONV=
   34932   LTLIBICONV=
   34933   INCICONV=
   34934   LIBICONV_PREFIX=
   34935       HAVE_LIBICONV=
   34936   rpathdirs=
   34937   ltrpathdirs=
   34938   names_already_handled=
   34939   names_next_round='iconv '
   34940   while test -n "$names_next_round"; do
   34941     names_this_round="$names_next_round"
   34942     names_next_round=
   34943     for name in $names_this_round; do
   34944       already_handled=
   34945       for n in $names_already_handled; do
   34946         if test "$n" = "$name"; then
   34947           already_handled=yes
   34948           break
   34949         fi
   34950       done
   34951       if test -z "$already_handled"; then
   34952         names_already_handled="$names_already_handled $name"
   34953                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
   34954         eval value=\"\$HAVE_LIB$uppername\"
   34955         if test -n "$value"; then
   34956           if test "$value" = yes; then
   34957             eval value=\"\$LIB$uppername\"
   34958             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   34959             eval value=\"\$LTLIB$uppername\"
   34960             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   34961           else
   34962                                     :
   34963           fi
   34964         else
   34965                               found_dir=
   34966           found_la=
   34967           found_so=
   34968           found_a=
   34969           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
   34970           if test -n "$acl_shlibext"; then
   34971             shrext=".$acl_shlibext"             # typically: shrext=.so
   34972           else
   34973             shrext=
   34974           fi
   34975           if test $use_additional = yes; then
   34976             dir="$additional_libdir"
   34977                                     if test -n "$acl_shlibext"; then
   34978               if test -f "$dir/$libname$shrext"; then
   34979                 found_dir="$dir"
   34980                 found_so="$dir/$libname$shrext"
   34981               else
   34982                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   34983                   ver=`(cd "$dir" && \
   34984                         for f in "$libname$shrext".*; do echo "$f"; done \
   34985                         | sed -e "s,^$libname$shrext\\\\.,," \
   34986                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   34987                         | sed 1q ) 2>/dev/null`
   34988                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   34989                     found_dir="$dir"
   34990                     found_so="$dir/$libname$shrext.$ver"
   34991                   fi
   34992                 else
   34993                   eval library_names=\"$acl_library_names_spec\"
   34994                   for f in $library_names; do
   34995                     if test -f "$dir/$f"; then
   34996                       found_dir="$dir"
   34997                       found_so="$dir/$f"
   34998                       break
   34999                     fi
   35000                   done
   35001                 fi
   35002               fi
   35003             fi
   35004                         if test "X$found_dir" = "X"; then
   35005               if test -f "$dir/$libname.$acl_libext"; then
   35006                 found_dir="$dir"
   35007                 found_a="$dir/$libname.$acl_libext"
   35008               fi
   35009             fi
   35010             if test "X$found_dir" != "X"; then
   35011               if test -f "$dir/$libname.la"; then
   35012                 found_la="$dir/$libname.la"
   35013               fi
   35014             fi
   35015           fi
   35016           if test "X$found_dir" = "X"; then
   35017             for x in $LDFLAGS $LTLIBICONV; do
   35018 
   35019   acl_save_prefix="$prefix"
   35020   prefix="$acl_final_prefix"
   35021   acl_save_exec_prefix="$exec_prefix"
   35022   exec_prefix="$acl_final_exec_prefix"
   35023   eval x=\"$x\"
   35024   exec_prefix="$acl_save_exec_prefix"
   35025   prefix="$acl_save_prefix"
   35026 
   35027               case "$x" in
   35028                 -L*)
   35029                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   35030                                     if test -n "$acl_shlibext"; then
   35031                     if test -f "$dir/$libname$shrext"; then
   35032                       found_dir="$dir"
   35033                       found_so="$dir/$libname$shrext"
   35034                     else
   35035                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   35036                         ver=`(cd "$dir" && \
   35037                               for f in "$libname$shrext".*; do echo "$f"; done \
   35038                               | sed -e "s,^$libname$shrext\\\\.,," \
   35039                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   35040                               | sed 1q ) 2>/dev/null`
   35041                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   35042                           found_dir="$dir"
   35043                           found_so="$dir/$libname$shrext.$ver"
   35044                         fi
   35045                       else
   35046                         eval library_names=\"$acl_library_names_spec\"
   35047                         for f in $library_names; do
   35048                           if test -f "$dir/$f"; then
   35049                             found_dir="$dir"
   35050                             found_so="$dir/$f"
   35051                             break
   35052                           fi
   35053                         done
   35054                       fi
   35055                     fi
   35056                   fi
   35057                                     if test "X$found_dir" = "X"; then
   35058                     if test -f "$dir/$libname.$acl_libext"; then
   35059                       found_dir="$dir"
   35060                       found_a="$dir/$libname.$acl_libext"
   35061                     fi
   35062                   fi
   35063                   if test "X$found_dir" != "X"; then
   35064                     if test -f "$dir/$libname.la"; then
   35065                       found_la="$dir/$libname.la"
   35066                     fi
   35067                   fi
   35068                   ;;
   35069               esac
   35070               if test "X$found_dir" != "X"; then
   35071                 break
   35072               fi
   35073             done
   35074           fi
   35075           if test "X$found_dir" != "X"; then
   35076                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   35077             if test "X$found_so" != "X"; then
   35078                                                         if test "$enable_rpath" = no \
   35079                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
   35080                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
   35081                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   35082               else
   35083                                                                                 haveit=
   35084                 for x in $ltrpathdirs; do
   35085                   if test "X$x" = "X$found_dir"; then
   35086                     haveit=yes
   35087                     break
   35088                   fi
   35089                 done
   35090                 if test -z "$haveit"; then
   35091                   ltrpathdirs="$ltrpathdirs $found_dir"
   35092                 fi
   35093                                 if test "$acl_hardcode_direct" = yes; then
   35094                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   35095                 else
   35096                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
   35097                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   35098                                                             haveit=
   35099                     for x in $rpathdirs; do
   35100                       if test "X$x" = "X$found_dir"; then
   35101                         haveit=yes
   35102                         break
   35103                       fi
   35104                     done
   35105                     if test -z "$haveit"; then
   35106                       rpathdirs="$rpathdirs $found_dir"
   35107                     fi
   35108                   else
   35109                                                                                 haveit=
   35110                     for x in $LDFLAGS $LIBICONV; do
   35111 
   35112   acl_save_prefix="$prefix"
   35113   prefix="$acl_final_prefix"
   35114   acl_save_exec_prefix="$exec_prefix"
   35115   exec_prefix="$acl_final_exec_prefix"
   35116   eval x=\"$x\"
   35117   exec_prefix="$acl_save_exec_prefix"
   35118   prefix="$acl_save_prefix"
   35119 
   35120                       if test "X$x" = "X-L$found_dir"; then
   35121                         haveit=yes
   35122                         break
   35123                       fi
   35124                     done
   35125                     if test -z "$haveit"; then
   35126                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   35127                     fi
   35128                     if test "$acl_hardcode_minus_L" != no; then
   35129                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   35130                     else
   35131                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   35132                     fi
   35133                   fi
   35134                 fi
   35135               fi
   35136             else
   35137               if test "X$found_a" != "X"; then
   35138                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   35139               else
   35140                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   35141               fi
   35142             fi
   35143                         additional_includedir=
   35144             case "$found_dir" in
   35145               */$acl_libdirstem | */$acl_libdirstem/)
   35146                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
   35147                 if test "$name" = 'iconv'; then
   35148                   LIBICONV_PREFIX="$basedir"
   35149                 fi
   35150                 additional_includedir="$basedir/include"
   35151                 ;;
   35152               */$acl_libdirstem2 | */$acl_libdirstem2/)
   35153                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
   35154                 if test "$name" = 'iconv'; then
   35155                   LIBICONV_PREFIX="$basedir"
   35156                 fi
   35157                 additional_includedir="$basedir/include"
   35158                 ;;
   35159             esac
   35160             if test "X$additional_includedir" != "X"; then
   35161                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   35162                 haveit=
   35163                 if test "X$additional_includedir" = "X/usr/local/include"; then
   35164                   if test -n "$GCC"; then
   35165                     case $host_os in
   35166                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   35167                     esac
   35168                   fi
   35169                 fi
   35170                 if test -z "$haveit"; then
   35171                   for x in $CPPFLAGS $INCICONV; do
   35172 
   35173   acl_save_prefix="$prefix"
   35174   prefix="$acl_final_prefix"
   35175   acl_save_exec_prefix="$exec_prefix"
   35176   exec_prefix="$acl_final_exec_prefix"
   35177   eval x=\"$x\"
   35178   exec_prefix="$acl_save_exec_prefix"
   35179   prefix="$acl_save_prefix"
   35180 
   35181                     if test "X$x" = "X-I$additional_includedir"; then
   35182                       haveit=yes
   35183                       break
   35184                     fi
   35185                   done
   35186                   if test -z "$haveit"; then
   35187                     if test -d "$additional_includedir"; then
   35188                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   35189                     fi
   35190                   fi
   35191                 fi
   35192               fi
   35193             fi
   35194                         if test -n "$found_la"; then
   35195                                                         save_libdir="$libdir"
   35196               case "$found_la" in
   35197                 */* | *\\*) . "$found_la" ;;
   35198                 *) . "./$found_la" ;;
   35199               esac
   35200               libdir="$save_libdir"
   35201                             for dep in $dependency_libs; do
   35202                 case "$dep" in
   35203                   -L*)
   35204                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   35205                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
   35206                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
   35207                       haveit=
   35208                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
   35209                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
   35210                         if test -n "$GCC"; then
   35211                           case $host_os in
   35212                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   35213                           esac
   35214                         fi
   35215                       fi
   35216                       if test -z "$haveit"; then
   35217                         haveit=
   35218                         for x in $LDFLAGS $LIBICONV; do
   35219 
   35220   acl_save_prefix="$prefix"
   35221   prefix="$acl_final_prefix"
   35222   acl_save_exec_prefix="$exec_prefix"
   35223   exec_prefix="$acl_final_exec_prefix"
   35224   eval x=\"$x\"
   35225   exec_prefix="$acl_save_exec_prefix"
   35226   prefix="$acl_save_prefix"
   35227 
   35228                           if test "X$x" = "X-L$additional_libdir"; then
   35229                             haveit=yes
   35230                             break
   35231                           fi
   35232                         done
   35233                         if test -z "$haveit"; then
   35234                           if test -d "$additional_libdir"; then
   35235                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   35236                           fi
   35237                         fi
   35238                         haveit=
   35239                         for x in $LDFLAGS $LTLIBICONV; do
   35240 
   35241   acl_save_prefix="$prefix"
   35242   prefix="$acl_final_prefix"
   35243   acl_save_exec_prefix="$exec_prefix"
   35244   exec_prefix="$acl_final_exec_prefix"
   35245   eval x=\"$x\"
   35246   exec_prefix="$acl_save_exec_prefix"
   35247   prefix="$acl_save_prefix"
   35248 
   35249                           if test "X$x" = "X-L$additional_libdir"; then
   35250                             haveit=yes
   35251                             break
   35252                           fi
   35253                         done
   35254                         if test -z "$haveit"; then
   35255                           if test -d "$additional_libdir"; then
   35256                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   35257                           fi
   35258                         fi
   35259                       fi
   35260                     fi
   35261                     ;;
   35262                   -R*)
   35263                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   35264                     if test "$enable_rpath" != no; then
   35265                                                                   haveit=
   35266                       for x in $rpathdirs; do
   35267                         if test "X$x" = "X$dir"; then
   35268                           haveit=yes
   35269                           break
   35270                         fi
   35271                       done
   35272                       if test -z "$haveit"; then
   35273                         rpathdirs="$rpathdirs $dir"
   35274                       fi
   35275                                                                   haveit=
   35276                       for x in $ltrpathdirs; do
   35277                         if test "X$x" = "X$dir"; then
   35278                           haveit=yes
   35279                           break
   35280                         fi
   35281                       done
   35282                       if test -z "$haveit"; then
   35283                         ltrpathdirs="$ltrpathdirs $dir"
   35284                       fi
   35285                     fi
   35286                     ;;
   35287                   -l*)
   35288                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   35289                     ;;
   35290                   *.la)
   35291                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   35292                     ;;
   35293                   *)
   35294                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   35295                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   35296                     ;;
   35297                 esac
   35298               done
   35299             fi
   35300           else
   35301                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   35302             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   35303           fi
   35304         fi
   35305       fi
   35306     done
   35307   done
   35308   if test "X$rpathdirs" != "X"; then
   35309     if test -n "$acl_hardcode_libdir_separator"; then
   35310                         alldirs=
   35311       for found_dir in $rpathdirs; do
   35312         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
   35313       done
   35314             acl_save_libdir="$libdir"
   35315       libdir="$alldirs"
   35316       eval flag=\"$acl_hardcode_libdir_flag_spec\"
   35317       libdir="$acl_save_libdir"
   35318       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   35319     else
   35320             for found_dir in $rpathdirs; do
   35321         acl_save_libdir="$libdir"
   35322         libdir="$found_dir"
   35323         eval flag=\"$acl_hardcode_libdir_flag_spec\"
   35324         libdir="$acl_save_libdir"
   35325         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   35326       done
   35327     fi
   35328   fi
   35329   if test "X$ltrpathdirs" != "X"; then
   35330             for found_dir in $ltrpathdirs; do
   35331       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   35332     done
   35333   fi
   35334 
   35335 
   35336 
   35337 
   35338 
   35339 
   35340 
   35341 
   35342 
   35343 
   35344 
   35345 
   35346 
   35347 
   35348 
   35349 
   35350 
   35351 
   35352 
   35353 
   35354 
   35355 
   35356 
   35357 
   35358 
   35359 
   35360 
   35361 
   35362 
   35363 
   35364 
   35365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
   35366 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
   35367 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
   35368   $as_echo_n "(cached) " >&6
   35369 else
   35370   gt_save_LIBS="$LIBS"
   35371      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
   35372      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35373 /* end confdefs.h.  */
   35374 #include <CoreFoundation/CFPreferences.h>
   35375 int
   35376 main ()
   35377 {
   35378 CFPreferencesCopyAppValue(NULL, NULL)
   35379   ;
   35380   return 0;
   35381 }
   35382 _ACEOF
   35383 if ac_fn_c_try_link "$LINENO"; then :
   35384   gt_cv_func_CFPreferencesCopyAppValue=yes
   35385 else
   35386   gt_cv_func_CFPreferencesCopyAppValue=no
   35387 fi
   35388 rm -f core conftest.err conftest.$ac_objext \
   35389     conftest$ac_exeext conftest.$ac_ext
   35390      LIBS="$gt_save_LIBS"
   35391 fi
   35392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
   35393 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
   35394   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
   35395 
   35396 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
   35397 
   35398   fi
   35399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
   35400 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
   35401 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
   35402   $as_echo_n "(cached) " >&6
   35403 else
   35404   gt_save_LIBS="$LIBS"
   35405      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
   35406      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35407 /* end confdefs.h.  */
   35408 #include <CoreFoundation/CFLocale.h>
   35409 int
   35410 main ()
   35411 {
   35412 CFLocaleCopyCurrent();
   35413   ;
   35414   return 0;
   35415 }
   35416 _ACEOF
   35417 if ac_fn_c_try_link "$LINENO"; then :
   35418   gt_cv_func_CFLocaleCopyCurrent=yes
   35419 else
   35420   gt_cv_func_CFLocaleCopyCurrent=no
   35421 fi
   35422 rm -f core conftest.err conftest.$ac_objext \
   35423     conftest$ac_exeext conftest.$ac_ext
   35424      LIBS="$gt_save_LIBS"
   35425 fi
   35426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
   35427 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
   35428   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
   35429 
   35430 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
   35431 
   35432   fi
   35433   INTL_MACOSX_LIBS=
   35434   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
   35435     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
   35436   fi
   35437 
   35438 
   35439 
   35440 
   35441 
   35442 
   35443   LIBINTL=
   35444   LTLIBINTL=
   35445   POSUB=
   35446 
   35447     case " $gt_needs " in
   35448     *" need-formatstring-macros "*) gt_api_version=3 ;;
   35449     *" need-ngettext "*) gt_api_version=2 ;;
   35450     *) gt_api_version=1 ;;
   35451   esac
   35452   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
   35453   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
   35454 
   35455     if test "$USE_NLS" = "yes"; then
   35456     gt_use_preinstalled_gnugettext=no
   35457 
   35458 
   35459         if test $gt_api_version -ge 3; then
   35460           gt_revision_test_code='
   35461 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
   35462 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
   35463 #endif
   35464 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
   35465 '
   35466         else
   35467           gt_revision_test_code=
   35468         fi
   35469         if test $gt_api_version -ge 2; then
   35470           gt_expression_test_code=' + * ngettext ("", "", 0)'
   35471         else
   35472           gt_expression_test_code=
   35473         fi
   35474 
   35475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
   35476 $as_echo_n "checking for GNU gettext in libc... " >&6; }
   35477 if eval \${$gt_func_gnugettext_libc+:} false; then :
   35478   $as_echo_n "(cached) " >&6
   35479 else
   35480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35481 /* end confdefs.h.  */
   35482 
   35483 #include <libintl.h>
   35484 $gt_revision_test_code
   35485 extern int _nl_msg_cat_cntr;
   35486 extern int *_nl_domain_bindings;
   35487 
   35488 int
   35489 main ()
   35490 {
   35491 
   35492 bindtextdomain ("", "");
   35493 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
   35494 
   35495   ;
   35496   return 0;
   35497 }
   35498 _ACEOF
   35499 if ac_fn_c_try_link "$LINENO"; then :
   35500   eval "$gt_func_gnugettext_libc=yes"
   35501 else
   35502   eval "$gt_func_gnugettext_libc=no"
   35503 fi
   35504 rm -f core conftest.err conftest.$ac_objext \
   35505     conftest$ac_exeext conftest.$ac_ext
   35506 fi
   35507 eval ac_res=\$$gt_func_gnugettext_libc
   35508 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   35509 $as_echo "$ac_res" >&6; }
   35510 
   35511         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
   35512 
   35513 
   35514 
   35515 
   35516 
   35517           am_save_CPPFLAGS="$CPPFLAGS"
   35518 
   35519   for element in $INCICONV; do
   35520     haveit=
   35521     for x in $CPPFLAGS; do
   35522 
   35523   acl_save_prefix="$prefix"
   35524   prefix="$acl_final_prefix"
   35525   acl_save_exec_prefix="$exec_prefix"
   35526   exec_prefix="$acl_final_exec_prefix"
   35527   eval x=\"$x\"
   35528   exec_prefix="$acl_save_exec_prefix"
   35529   prefix="$acl_save_prefix"
   35530 
   35531       if test "X$x" = "X$element"; then
   35532         haveit=yes
   35533         break
   35534       fi
   35535     done
   35536     if test -z "$haveit"; then
   35537       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   35538     fi
   35539   done
   35540 
   35541 
   35542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   35543 $as_echo_n "checking for iconv... " >&6; }
   35544 if ${am_cv_func_iconv+:} false; then :
   35545   $as_echo_n "(cached) " >&6
   35546 else
   35547 
   35548     am_cv_func_iconv="no, consider installing GNU libiconv"
   35549     am_cv_lib_iconv=no
   35550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35551 /* end confdefs.h.  */
   35552 
   35553 #include <stdlib.h>
   35554 #include <iconv.h>
   35555 
   35556 int
   35557 main ()
   35558 {
   35559 iconv_t cd = iconv_open("","");
   35560            iconv(cd,NULL,NULL,NULL,NULL);
   35561            iconv_close(cd);
   35562   ;
   35563   return 0;
   35564 }
   35565 _ACEOF
   35566 if ac_fn_c_try_link "$LINENO"; then :
   35567   am_cv_func_iconv=yes
   35568 fi
   35569 rm -f core conftest.err conftest.$ac_objext \
   35570     conftest$ac_exeext conftest.$ac_ext
   35571     if test "$am_cv_func_iconv" != yes; then
   35572       am_save_LIBS="$LIBS"
   35573       LIBS="$LIBS $LIBICONV"
   35574       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35575 /* end confdefs.h.  */
   35576 
   35577 #include <stdlib.h>
   35578 #include <iconv.h>
   35579 
   35580 int
   35581 main ()
   35582 {
   35583 iconv_t cd = iconv_open("","");
   35584              iconv(cd,NULL,NULL,NULL,NULL);
   35585              iconv_close(cd);
   35586   ;
   35587   return 0;
   35588 }
   35589 _ACEOF
   35590 if ac_fn_c_try_link "$LINENO"; then :
   35591   am_cv_lib_iconv=yes
   35592         am_cv_func_iconv=yes
   35593 fi
   35594 rm -f core conftest.err conftest.$ac_objext \
   35595     conftest$ac_exeext conftest.$ac_ext
   35596       LIBS="$am_save_LIBS"
   35597     fi
   35598 
   35599 fi
   35600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   35601 $as_echo "$am_cv_func_iconv" >&6; }
   35602   if test "$am_cv_func_iconv" = yes; then
   35603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
   35604 $as_echo_n "checking for working iconv... " >&6; }
   35605 if ${am_cv_func_iconv_works+:} false; then :
   35606   $as_echo_n "(cached) " >&6
   35607 else
   35608 
   35609                   am_save_LIBS="$LIBS"
   35610       if test $am_cv_lib_iconv = yes; then
   35611         LIBS="$LIBS $LIBICONV"
   35612       fi
   35613       if test "$cross_compiling" = yes; then :
   35614 
   35615          case "$host_os" in
   35616            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
   35617            *)            am_cv_func_iconv_works="guessing yes" ;;
   35618          esac
   35619 
   35620 else
   35621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35622 /* end confdefs.h.  */
   35623 
   35624 #include <iconv.h>
   35625 #include <string.h>
   35626 int main ()
   35627 {
   35628   int result = 0;
   35629   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
   35630      returns.  */
   35631   {
   35632     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
   35633     if (cd_utf8_to_88591 != (iconv_t)(-1))
   35634       {
   35635         static const char input[] = "\342\202\254"; /* EURO SIGN */
   35636         char buf[10];
   35637         const char *inptr = input;
   35638         size_t inbytesleft = strlen (input);
   35639         char *outptr = buf;
   35640         size_t outbytesleft = sizeof (buf);
   35641         size_t res = iconv (cd_utf8_to_88591,
   35642                             (char **) &inptr, &inbytesleft,
   35643                             &outptr, &outbytesleft);
   35644         if (res == 0)
   35645           result |= 1;
   35646         iconv_close (cd_utf8_to_88591);
   35647       }
   35648   }
   35649   /* Test against Solaris 10 bug: Failures are not distinguishable from
   35650      successful returns.  */
   35651   {
   35652     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
   35653     if (cd_ascii_to_88591 != (iconv_t)(-1))
   35654       {
   35655         static const char input[] = "\263";
   35656         char buf[10];
   35657         const char *inptr = input;
   35658         size_t inbytesleft = strlen (input);
   35659         char *outptr = buf;
   35660         size_t outbytesleft = sizeof (buf);
   35661         size_t res = iconv (cd_ascii_to_88591,
   35662                             (char **) &inptr, &inbytesleft,
   35663                             &outptr, &outbytesleft);
   35664         if (res == 0)
   35665           result |= 2;
   35666         iconv_close (cd_ascii_to_88591);
   35667       }
   35668   }
   35669   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
   35670   {
   35671     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
   35672     if (cd_88591_to_utf8 != (iconv_t)(-1))
   35673       {
   35674         static const char input[] = "\304";
   35675         static char buf[2] = { (char)0xDE, (char)0xAD };
   35676         const char *inptr = input;
   35677         size_t inbytesleft = 1;
   35678         char *outptr = buf;
   35679         size_t outbytesleft = 1;
   35680         size_t res = iconv (cd_88591_to_utf8,
   35681                             (char **) &inptr, &inbytesleft,
   35682                             &outptr, &outbytesleft);
   35683         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
   35684           result |= 4;
   35685         iconv_close (cd_88591_to_utf8);
   35686       }
   35687   }
   35688 #if 0 /* This bug could be worked around by the caller.  */
   35689   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
   35690   {
   35691     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
   35692     if (cd_88591_to_utf8 != (iconv_t)(-1))
   35693       {
   35694         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
   35695         char buf[50];
   35696         const char *inptr = input;
   35697         size_t inbytesleft = strlen (input);
   35698         char *outptr = buf;
   35699         size_t outbytesleft = sizeof (buf);
   35700         size_t res = iconv (cd_88591_to_utf8,
   35701                             (char **) &inptr, &inbytesleft,
   35702                             &outptr, &outbytesleft);
   35703         if ((int)res > 0)
   35704           result |= 8;
   35705         iconv_close (cd_88591_to_utf8);
   35706       }
   35707   }
   35708 #endif
   35709   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
   35710      provided.  */
   35711   if (/* Try standardized names.  */
   35712       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
   35713       /* Try IRIX, OSF/1 names.  */
   35714       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
   35715       /* Try AIX names.  */
   35716       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
   35717       /* Try HP-UX names.  */
   35718       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
   35719     result |= 16;
   35720   return result;
   35721 }
   35722 _ACEOF
   35723 if ac_fn_c_try_run "$LINENO"; then :
   35724   am_cv_func_iconv_works=yes
   35725 else
   35726   am_cv_func_iconv_works=no
   35727 fi
   35728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   35729   conftest.$ac_objext conftest.beam conftest.$ac_ext
   35730 fi
   35731 
   35732       LIBS="$am_save_LIBS"
   35733 
   35734 fi
   35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
   35736 $as_echo "$am_cv_func_iconv_works" >&6; }
   35737     case "$am_cv_func_iconv_works" in
   35738       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
   35739       *)   am_func_iconv=yes ;;
   35740     esac
   35741   else
   35742     am_func_iconv=no am_cv_lib_iconv=no
   35743   fi
   35744   if test "$am_func_iconv" = yes; then
   35745 
   35746 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   35747 
   35748   fi
   35749   if test "$am_cv_lib_iconv" = yes; then
   35750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   35751 $as_echo_n "checking how to link with libiconv... " >&6; }
   35752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   35753 $as_echo "$LIBICONV" >&6; }
   35754   else
   35755             CPPFLAGS="$am_save_CPPFLAGS"
   35756     LIBICONV=
   35757     LTLIBICONV=
   35758   fi
   35759 
   35760 
   35761 
   35762 
   35763 
   35764 
   35765 
   35766 
   35767 
   35768 
   35769 
   35770     use_additional=yes
   35771 
   35772   acl_save_prefix="$prefix"
   35773   prefix="$acl_final_prefix"
   35774   acl_save_exec_prefix="$exec_prefix"
   35775   exec_prefix="$acl_final_exec_prefix"
   35776 
   35777     eval additional_includedir=\"$includedir\"
   35778     eval additional_libdir=\"$libdir\"
   35779 
   35780   exec_prefix="$acl_save_exec_prefix"
   35781   prefix="$acl_save_prefix"
   35782 
   35783 
   35784 # Check whether --with-libintl-prefix was given.
   35785 if test "${with_libintl_prefix+set}" = set; then :
   35786   withval=$with_libintl_prefix;
   35787     if test "X$withval" = "Xno"; then
   35788       use_additional=no
   35789     else
   35790       if test "X$withval" = "X"; then
   35791 
   35792   acl_save_prefix="$prefix"
   35793   prefix="$acl_final_prefix"
   35794   acl_save_exec_prefix="$exec_prefix"
   35795   exec_prefix="$acl_final_exec_prefix"
   35796 
   35797           eval additional_includedir=\"$includedir\"
   35798           eval additional_libdir=\"$libdir\"
   35799 
   35800   exec_prefix="$acl_save_exec_prefix"
   35801   prefix="$acl_save_prefix"
   35802 
   35803       else
   35804         additional_includedir="$withval/include"
   35805         additional_libdir="$withval/$acl_libdirstem"
   35806         if test "$acl_libdirstem2" != "$acl_libdirstem" \
   35807            && ! test -d "$withval/$acl_libdirstem"; then
   35808           additional_libdir="$withval/$acl_libdirstem2"
   35809         fi
   35810       fi
   35811     fi
   35812 
   35813 fi
   35814 
   35815       LIBINTL=
   35816   LTLIBINTL=
   35817   INCINTL=
   35818   LIBINTL_PREFIX=
   35819       HAVE_LIBINTL=
   35820   rpathdirs=
   35821   ltrpathdirs=
   35822   names_already_handled=
   35823   names_next_round='intl '
   35824   while test -n "$names_next_round"; do
   35825     names_this_round="$names_next_round"
   35826     names_next_round=
   35827     for name in $names_this_round; do
   35828       already_handled=
   35829       for n in $names_already_handled; do
   35830         if test "$n" = "$name"; then
   35831           already_handled=yes
   35832           break
   35833         fi
   35834       done
   35835       if test -z "$already_handled"; then
   35836         names_already_handled="$names_already_handled $name"
   35837                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
   35838         eval value=\"\$HAVE_LIB$uppername\"
   35839         if test -n "$value"; then
   35840           if test "$value" = yes; then
   35841             eval value=\"\$LIB$uppername\"
   35842             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
   35843             eval value=\"\$LTLIB$uppername\"
   35844             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
   35845           else
   35846                                     :
   35847           fi
   35848         else
   35849                               found_dir=
   35850           found_la=
   35851           found_so=
   35852           found_a=
   35853           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
   35854           if test -n "$acl_shlibext"; then
   35855             shrext=".$acl_shlibext"             # typically: shrext=.so
   35856           else
   35857             shrext=
   35858           fi
   35859           if test $use_additional = yes; then
   35860             dir="$additional_libdir"
   35861                                     if test -n "$acl_shlibext"; then
   35862               if test -f "$dir/$libname$shrext"; then
   35863                 found_dir="$dir"
   35864                 found_so="$dir/$libname$shrext"
   35865               else
   35866                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   35867                   ver=`(cd "$dir" && \
   35868                         for f in "$libname$shrext".*; do echo "$f"; done \
   35869                         | sed -e "s,^$libname$shrext\\\\.,," \
   35870                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   35871                         | sed 1q ) 2>/dev/null`
   35872                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   35873                     found_dir="$dir"
   35874                     found_so="$dir/$libname$shrext.$ver"
   35875                   fi
   35876                 else
   35877                   eval library_names=\"$acl_library_names_spec\"
   35878                   for f in $library_names; do
   35879                     if test -f "$dir/$f"; then
   35880                       found_dir="$dir"
   35881                       found_so="$dir/$f"
   35882                       break
   35883                     fi
   35884                   done
   35885                 fi
   35886               fi
   35887             fi
   35888                         if test "X$found_dir" = "X"; then
   35889               if test -f "$dir/$libname.$acl_libext"; then
   35890                 found_dir="$dir"
   35891                 found_a="$dir/$libname.$acl_libext"
   35892               fi
   35893             fi
   35894             if test "X$found_dir" != "X"; then
   35895               if test -f "$dir/$libname.la"; then
   35896                 found_la="$dir/$libname.la"
   35897               fi
   35898             fi
   35899           fi
   35900           if test "X$found_dir" = "X"; then
   35901             for x in $LDFLAGS $LTLIBINTL; do
   35902 
   35903   acl_save_prefix="$prefix"
   35904   prefix="$acl_final_prefix"
   35905   acl_save_exec_prefix="$exec_prefix"
   35906   exec_prefix="$acl_final_exec_prefix"
   35907   eval x=\"$x\"
   35908   exec_prefix="$acl_save_exec_prefix"
   35909   prefix="$acl_save_prefix"
   35910 
   35911               case "$x" in
   35912                 -L*)
   35913                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   35914                                     if test -n "$acl_shlibext"; then
   35915                     if test -f "$dir/$libname$shrext"; then
   35916                       found_dir="$dir"
   35917                       found_so="$dir/$libname$shrext"
   35918                     else
   35919                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   35920                         ver=`(cd "$dir" && \
   35921                               for f in "$libname$shrext".*; do echo "$f"; done \
   35922                               | sed -e "s,^$libname$shrext\\\\.,," \
   35923                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   35924                               | sed 1q ) 2>/dev/null`
   35925                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   35926                           found_dir="$dir"
   35927                           found_so="$dir/$libname$shrext.$ver"
   35928                         fi
   35929                       else
   35930                         eval library_names=\"$acl_library_names_spec\"
   35931                         for f in $library_names; do
   35932                           if test -f "$dir/$f"; then
   35933                             found_dir="$dir"
   35934                             found_so="$dir/$f"
   35935                             break
   35936                           fi
   35937                         done
   35938                       fi
   35939                     fi
   35940                   fi
   35941                                     if test "X$found_dir" = "X"; then
   35942                     if test -f "$dir/$libname.$acl_libext"; then
   35943                       found_dir="$dir"
   35944                       found_a="$dir/$libname.$acl_libext"
   35945                     fi
   35946                   fi
   35947                   if test "X$found_dir" != "X"; then
   35948                     if test -f "$dir/$libname.la"; then
   35949                       found_la="$dir/$libname.la"
   35950                     fi
   35951                   fi
   35952                   ;;
   35953               esac
   35954               if test "X$found_dir" != "X"; then
   35955                 break
   35956               fi
   35957             done
   35958           fi
   35959           if test "X$found_dir" != "X"; then
   35960                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
   35961             if test "X$found_so" != "X"; then
   35962                                                         if test "$enable_rpath" = no \
   35963                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
   35964                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
   35965                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   35966               else
   35967                                                                                 haveit=
   35968                 for x in $ltrpathdirs; do
   35969                   if test "X$x" = "X$found_dir"; then
   35970                     haveit=yes
   35971                     break
   35972                   fi
   35973                 done
   35974                 if test -z "$haveit"; then
   35975                   ltrpathdirs="$ltrpathdirs $found_dir"
   35976                 fi
   35977                                 if test "$acl_hardcode_direct" = yes; then
   35978                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   35979                 else
   35980                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
   35981                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   35982                                                             haveit=
   35983                     for x in $rpathdirs; do
   35984                       if test "X$x" = "X$found_dir"; then
   35985                         haveit=yes
   35986                         break
   35987                       fi
   35988                     done
   35989                     if test -z "$haveit"; then
   35990                       rpathdirs="$rpathdirs $found_dir"
   35991                     fi
   35992                   else
   35993                                                                                 haveit=
   35994                     for x in $LDFLAGS $LIBINTL; do
   35995 
   35996   acl_save_prefix="$prefix"
   35997   prefix="$acl_final_prefix"
   35998   acl_save_exec_prefix="$exec_prefix"
   35999   exec_prefix="$acl_final_exec_prefix"
   36000   eval x=\"$x\"
   36001   exec_prefix="$acl_save_exec_prefix"
   36002   prefix="$acl_save_prefix"
   36003 
   36004                       if test "X$x" = "X-L$found_dir"; then
   36005                         haveit=yes
   36006                         break
   36007                       fi
   36008                     done
   36009                     if test -z "$haveit"; then
   36010                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
   36011                     fi
   36012                     if test "$acl_hardcode_minus_L" != no; then
   36013                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   36014                     else
   36015                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   36016                     fi
   36017                   fi
   36018                 fi
   36019               fi
   36020             else
   36021               if test "X$found_a" != "X"; then
   36022                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
   36023               else
   36024                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
   36025               fi
   36026             fi
   36027                         additional_includedir=
   36028             case "$found_dir" in
   36029               */$acl_libdirstem | */$acl_libdirstem/)
   36030                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
   36031                 if test "$name" = 'intl'; then
   36032                   LIBINTL_PREFIX="$basedir"
   36033                 fi
   36034                 additional_includedir="$basedir/include"
   36035                 ;;
   36036               */$acl_libdirstem2 | */$acl_libdirstem2/)
   36037                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
   36038                 if test "$name" = 'intl'; then
   36039                   LIBINTL_PREFIX="$basedir"
   36040                 fi
   36041                 additional_includedir="$basedir/include"
   36042                 ;;
   36043             esac
   36044             if test "X$additional_includedir" != "X"; then
   36045                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   36046                 haveit=
   36047                 if test "X$additional_includedir" = "X/usr/local/include"; then
   36048                   if test -n "$GCC"; then
   36049                     case $host_os in
   36050                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   36051                     esac
   36052                   fi
   36053                 fi
   36054                 if test -z "$haveit"; then
   36055                   for x in $CPPFLAGS $INCINTL; do
   36056 
   36057   acl_save_prefix="$prefix"
   36058   prefix="$acl_final_prefix"
   36059   acl_save_exec_prefix="$exec_prefix"
   36060   exec_prefix="$acl_final_exec_prefix"
   36061   eval x=\"$x\"
   36062   exec_prefix="$acl_save_exec_prefix"
   36063   prefix="$acl_save_prefix"
   36064 
   36065                     if test "X$x" = "X-I$additional_includedir"; then
   36066                       haveit=yes
   36067                       break
   36068                     fi
   36069                   done
   36070                   if test -z "$haveit"; then
   36071                     if test -d "$additional_includedir"; then
   36072                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
   36073                     fi
   36074                   fi
   36075                 fi
   36076               fi
   36077             fi
   36078                         if test -n "$found_la"; then
   36079                                                         save_libdir="$libdir"
   36080               case "$found_la" in
   36081                 */* | *\\*) . "$found_la" ;;
   36082                 *) . "./$found_la" ;;
   36083               esac
   36084               libdir="$save_libdir"
   36085                             for dep in $dependency_libs; do
   36086                 case "$dep" in
   36087                   -L*)
   36088                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   36089                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
   36090                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
   36091                       haveit=
   36092                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
   36093                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
   36094                         if test -n "$GCC"; then
   36095                           case $host_os in
   36096                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   36097                           esac
   36098                         fi
   36099                       fi
   36100                       if test -z "$haveit"; then
   36101                         haveit=
   36102                         for x in $LDFLAGS $LIBINTL; do
   36103 
   36104   acl_save_prefix="$prefix"
   36105   prefix="$acl_final_prefix"
   36106   acl_save_exec_prefix="$exec_prefix"
   36107   exec_prefix="$acl_final_exec_prefix"
   36108   eval x=\"$x\"
   36109   exec_prefix="$acl_save_exec_prefix"
   36110   prefix="$acl_save_prefix"
   36111 
   36112                           if test "X$x" = "X-L$additional_libdir"; then
   36113                             haveit=yes
   36114                             break
   36115                           fi
   36116                         done
   36117                         if test -z "$haveit"; then
   36118                           if test -d "$additional_libdir"; then
   36119                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
   36120                           fi
   36121                         fi
   36122                         haveit=
   36123                         for x in $LDFLAGS $LTLIBINTL; do
   36124 
   36125   acl_save_prefix="$prefix"
   36126   prefix="$acl_final_prefix"
   36127   acl_save_exec_prefix="$exec_prefix"
   36128   exec_prefix="$acl_final_exec_prefix"
   36129   eval x=\"$x\"
   36130   exec_prefix="$acl_save_exec_prefix"
   36131   prefix="$acl_save_prefix"
   36132 
   36133                           if test "X$x" = "X-L$additional_libdir"; then
   36134                             haveit=yes
   36135                             break
   36136                           fi
   36137                         done
   36138                         if test -z "$haveit"; then
   36139                           if test -d "$additional_libdir"; then
   36140                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
   36141                           fi
   36142                         fi
   36143                       fi
   36144                     fi
   36145                     ;;
   36146                   -R*)
   36147                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   36148                     if test "$enable_rpath" != no; then
   36149                                                                   haveit=
   36150                       for x in $rpathdirs; do
   36151                         if test "X$x" = "X$dir"; then
   36152                           haveit=yes
   36153                           break
   36154                         fi
   36155                       done
   36156                       if test -z "$haveit"; then
   36157                         rpathdirs="$rpathdirs $dir"
   36158                       fi
   36159                                                                   haveit=
   36160                       for x in $ltrpathdirs; do
   36161                         if test "X$x" = "X$dir"; then
   36162                           haveit=yes
   36163                           break
   36164                         fi
   36165                       done
   36166                       if test -z "$haveit"; then
   36167                         ltrpathdirs="$ltrpathdirs $dir"
   36168                       fi
   36169                     fi
   36170                     ;;
   36171                   -l*)
   36172                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   36173                     ;;
   36174                   *.la)
   36175                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   36176                     ;;
   36177                   *)
   36178                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
   36179                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
   36180                     ;;
   36181                 esac
   36182               done
   36183             fi
   36184           else
   36185                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   36186             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
   36187           fi
   36188         fi
   36189       fi
   36190     done
   36191   done
   36192   if test "X$rpathdirs" != "X"; then
   36193     if test -n "$acl_hardcode_libdir_separator"; then
   36194                         alldirs=
   36195       for found_dir in $rpathdirs; do
   36196         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
   36197       done
   36198             acl_save_libdir="$libdir"
   36199       libdir="$alldirs"
   36200       eval flag=\"$acl_hardcode_libdir_flag_spec\"
   36201       libdir="$acl_save_libdir"
   36202       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   36203     else
   36204             for found_dir in $rpathdirs; do
   36205         acl_save_libdir="$libdir"
   36206         libdir="$found_dir"
   36207         eval flag=\"$acl_hardcode_libdir_flag_spec\"
   36208         libdir="$acl_save_libdir"
   36209         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   36210       done
   36211     fi
   36212   fi
   36213   if test "X$ltrpathdirs" != "X"; then
   36214             for found_dir in $ltrpathdirs; do
   36215       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
   36216     done
   36217   fi
   36218 
   36219 
   36220 
   36221 
   36222 
   36223 
   36224           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
   36225 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
   36226 if eval \${$gt_func_gnugettext_libintl+:} false; then :
   36227   $as_echo_n "(cached) " >&6
   36228 else
   36229   gt_save_CPPFLAGS="$CPPFLAGS"
   36230             CPPFLAGS="$CPPFLAGS $INCINTL"
   36231             gt_save_LIBS="$LIBS"
   36232             LIBS="$LIBS $LIBINTL"
   36233                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   36234 /* end confdefs.h.  */
   36235 
   36236 #include <libintl.h>
   36237 $gt_revision_test_code
   36238 extern int _nl_msg_cat_cntr;
   36239 extern
   36240 #ifdef __cplusplus
   36241 "C"
   36242 #endif
   36243 const char *_nl_expand_alias (const char *);
   36244 
   36245 int
   36246 main ()
   36247 {
   36248 
   36249 bindtextdomain ("", "");
   36250 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
   36251 
   36252   ;
   36253   return 0;
   36254 }
   36255 _ACEOF
   36256 if ac_fn_c_try_link "$LINENO"; then :
   36257   eval "$gt_func_gnugettext_libintl=yes"
   36258 else
   36259   eval "$gt_func_gnugettext_libintl=no"
   36260 fi
   36261 rm -f core conftest.err conftest.$ac_objext \
   36262     conftest$ac_exeext conftest.$ac_ext
   36263                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
   36264               LIBS="$LIBS $LIBICONV"
   36265               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   36266 /* end confdefs.h.  */
   36267 
   36268 #include <libintl.h>
   36269 $gt_revision_test_code
   36270 extern int _nl_msg_cat_cntr;
   36271 extern
   36272 #ifdef __cplusplus
   36273 "C"
   36274 #endif
   36275 const char *_nl_expand_alias (const char *);
   36276 
   36277 int
   36278 main ()
   36279 {
   36280 
   36281 bindtextdomain ("", "");
   36282 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
   36283 
   36284   ;
   36285   return 0;
   36286 }
   36287 _ACEOF
   36288 if ac_fn_c_try_link "$LINENO"; then :
   36289   LIBINTL="$LIBINTL $LIBICONV"
   36290                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
   36291                  eval "$gt_func_gnugettext_libintl=yes"
   36292 
   36293 fi
   36294 rm -f core conftest.err conftest.$ac_objext \
   36295     conftest$ac_exeext conftest.$ac_ext
   36296             fi
   36297             CPPFLAGS="$gt_save_CPPFLAGS"
   36298             LIBS="$gt_save_LIBS"
   36299 fi
   36300 eval ac_res=\$$gt_func_gnugettext_libintl
   36301 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   36302 $as_echo "$ac_res" >&6; }
   36303         fi
   36304 
   36305                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
   36306            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
   36307                 && test "$PACKAGE" != gettext-runtime \
   36308                 && test "$PACKAGE" != gettext-tools; }; then
   36309           gt_use_preinstalled_gnugettext=yes
   36310         else
   36311                     LIBINTL=
   36312           LTLIBINTL=
   36313           INCINTL=
   36314         fi
   36315 
   36316 
   36317 
   36318     if test -n "$INTL_MACOSX_LIBS"; then
   36319       if test "$gt_use_preinstalled_gnugettext" = "yes" \
   36320          || test "$nls_cv_use_gnu_gettext" = "yes"; then
   36321                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
   36322         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
   36323       fi
   36324     fi
   36325 
   36326     if test "$gt_use_preinstalled_gnugettext" = "yes" \
   36327        || test "$nls_cv_use_gnu_gettext" = "yes"; then
   36328 
   36329 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   36330 
   36331     else
   36332       USE_NLS=no
   36333     fi
   36334   fi
   36335 
   36336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
   36337 $as_echo_n "checking whether to use NLS... " >&6; }
   36338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
   36339 $as_echo "$USE_NLS" >&6; }
   36340   if test "$USE_NLS" = "yes"; then
   36341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
   36342 $as_echo_n "checking where the gettext function comes from... " >&6; }
   36343     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   36344       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
   36345         gt_source="external libintl"
   36346       else
   36347         gt_source="libc"
   36348       fi
   36349     else
   36350       gt_source="included intl directory"
   36351     fi
   36352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
   36353 $as_echo "$gt_source" >&6; }
   36354   fi
   36355 
   36356   if test "$USE_NLS" = "yes"; then
   36357 
   36358     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   36359       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
   36360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
   36361 $as_echo_n "checking how to link with libintl... " >&6; }
   36362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
   36363 $as_echo "$LIBINTL" >&6; }
   36364 
   36365   for element in $INCINTL; do
   36366     haveit=
   36367     for x in $CPPFLAGS; do
   36368 
   36369   acl_save_prefix="$prefix"
   36370   prefix="$acl_final_prefix"
   36371   acl_save_exec_prefix="$exec_prefix"
   36372   exec_prefix="$acl_final_exec_prefix"
   36373   eval x=\"$x\"
   36374   exec_prefix="$acl_save_exec_prefix"
   36375   prefix="$acl_save_prefix"
   36376 
   36377       if test "X$x" = "X$element"; then
   36378         haveit=yes
   36379         break
   36380       fi
   36381     done
   36382     if test -z "$haveit"; then
   36383       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   36384     fi
   36385   done
   36386 
   36387       fi
   36388 
   36389 
   36390 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
   36391 
   36392 
   36393 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
   36394 
   36395     fi
   36396 
   36397         POSUB=po
   36398   fi
   36399 
   36400 
   36401 
   36402     INTLLIBS="$LIBINTL"
   36403 
   36404 
   36405 
   36406 
   36407 
   36408 
   36409 
   36410 
   36411   if test -z "$USE_NLS"; then
   36412     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
   36413     exit 1
   36414   fi
   36415   BISON_LOCALEDIR=
   36416   BISON_USE_NLS=no
   36417   if test "$USE_NLS" = yes; then
   36418                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
   36419       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
   36420     fi
   36421 
   36422     if test -n "$BISON_LOCALEDIR"; then
   36423                               USER_LINGUAS="${LINGUAS-%UNSET%}"
   36424       if test -n "$USER_LINGUAS"; then
   36425         BISON_USE_NLS=yes
   36426       fi
   36427     fi
   36428   fi
   36429   if test $BISON_USE_NLS = yes; then
   36430 
   36431 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
   36432 
   36433   fi
   36434 
   36435 
   36436 # Internationalized parsers.
   36437 ac_config_files="$ac_config_files runtime-po/Makefile.in"
   36438 
   36439 # Autoconf macros for packages using internationalized parsers.
   36440 aclocaldir='${datadir}/aclocal'
   36441 
   36442 
   36443 # Create the benchmark script.
   36444 ac_config_files="$ac_config_files etc/bench.pl"
   36445 
   36446 
   36447 # Initialize the test suite.
   36448 ac_config_commands="$ac_config_commands tests/atconfig"
   36449 
   36450 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
   36451 
   36452 ac_config_files="$ac_config_files tests/bison"
   36453 
   36454 for ac_prog in valgrind
   36455 do
   36456   # Extract the first word of "$ac_prog", so it can be a program name with args.
   36457 set dummy $ac_prog; ac_word=$2
   36458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   36459 $as_echo_n "checking for $ac_word... " >&6; }
   36460 if ${ac_cv_prog_VALGRIND+:} false; then :
   36461   $as_echo_n "(cached) " >&6
   36462 else
   36463   if test -n "$VALGRIND"; then
   36464   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
   36465 else
   36466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36467 for as_dir in $PATH
   36468 do
   36469   IFS=$as_save_IFS
   36470   test -z "$as_dir" && as_dir=.
   36471     for ac_exec_ext in '' $ac_executable_extensions; do
   36472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36473     ac_cv_prog_VALGRIND="$ac_prog"
   36474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36475     break 2
   36476   fi
   36477 done
   36478   done
   36479 IFS=$as_save_IFS
   36480 
   36481 fi
   36482 fi
   36483 VALGRIND=$ac_cv_prog_VALGRIND
   36484 if test -n "$VALGRIND"; then
   36485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
   36486 $as_echo "$VALGRIND" >&6; }
   36487 else
   36488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   36489 $as_echo "no" >&6; }
   36490 fi
   36491 
   36492 
   36493   test -n "$VALGRIND" && break
   36494 done
   36495 
   36496 case $VALGRIND:$host_os in
   36497   '':*) ;;
   36498   *:darwin*)
   36499     # See README-hacking.
   36500     # VALGRIND+=' --suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind'
   36501     VALGRIND=;;
   36502   *:*)
   36503     VALGRIND_PREBISON="$VALGRIND -q"
   36504 ;;
   36505 esac
   36506 
   36507 
   36508 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
   36509 
   36510 # Needed by tests/atlocal.in.
   36511 
   36512 
   36513 
   36514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
   36515 $as_echo_n "checking for Java virtual machine... " >&6; }
   36516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   36517 /* end confdefs.h.  */
   36518 
   36519 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   36520   yes
   36521 #endif
   36522 
   36523 _ACEOF
   36524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   36525   $EGREP "yes" >/dev/null 2>&1; then :
   36526   CLASSPATH_SEPARATOR=';'
   36527 else
   36528   CLASSPATH_SEPARATOR=':'
   36529 fi
   36530 rm -f conftest*
   36531 
   36532   CONF_JAVA=
   36533   HAVE_JAVA_ENVVAR=
   36534   HAVE_GIJ=
   36535   HAVE_JAVA=
   36536   HAVE_JRE=
   36537   HAVE_JVIEW=
   36538   HAVE_JAVAEXEC=1
   36539   if test -n "$JAVA"; then
   36540     HAVE_JAVA_ENVVAR=1
   36541     CONF_JAVA="$JAVA"
   36542   else
   36543                 # Extract the first word of "gij", so it can be a program name with args.
   36544 set dummy gij; ac_word=$2
   36545 :
   36546 if ${ac_cv_prog_HAVE_GIJ_IN_PATH+:} false; then :
   36547   $as_echo_n "(cached) " >&6
   36548 else
   36549   if test -n "$HAVE_GIJ_IN_PATH"; then
   36550   ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
   36551 else
   36552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36553 for as_dir in $PATH
   36554 do
   36555   IFS=$as_save_IFS
   36556   test -z "$as_dir" && as_dir=.
   36557     for ac_exec_ext in '' $ac_executable_extensions; do
   36558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36559     ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
   36560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36561     break 2
   36562   fi
   36563 done
   36564   done
   36565 IFS=$as_save_IFS
   36566 
   36567 fi
   36568 fi
   36569 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
   36570 if test -n "$HAVE_GIJ_IN_PATH"; then
   36571   :
   36572 else
   36573   :
   36574 fi
   36575 
   36576 
   36577     # Extract the first word of "java", so it can be a program name with args.
   36578 set dummy java; ac_word=$2
   36579 :
   36580 if ${ac_cv_prog_HAVE_JAVA_IN_PATH+:} false; then :
   36581   $as_echo_n "(cached) " >&6
   36582 else
   36583   if test -n "$HAVE_JAVA_IN_PATH"; then
   36584   ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
   36585 else
   36586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36587 for as_dir in $PATH
   36588 do
   36589   IFS=$as_save_IFS
   36590   test -z "$as_dir" && as_dir=.
   36591     for ac_exec_ext in '' $ac_executable_extensions; do
   36592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36593     ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
   36594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36595     break 2
   36596   fi
   36597 done
   36598   done
   36599 IFS=$as_save_IFS
   36600 
   36601 fi
   36602 fi
   36603 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
   36604 if test -n "$HAVE_JAVA_IN_PATH"; then
   36605   :
   36606 else
   36607   :
   36608 fi
   36609 
   36610 
   36611     # Extract the first word of "jre", so it can be a program name with args.
   36612 set dummy jre; ac_word=$2
   36613 :
   36614 if ${ac_cv_prog_HAVE_JRE_IN_PATH+:} false; then :
   36615   $as_echo_n "(cached) " >&6
   36616 else
   36617   if test -n "$HAVE_JRE_IN_PATH"; then
   36618   ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
   36619 else
   36620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36621 for as_dir in $PATH
   36622 do
   36623   IFS=$as_save_IFS
   36624   test -z "$as_dir" && as_dir=.
   36625     for ac_exec_ext in '' $ac_executable_extensions; do
   36626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36627     ac_cv_prog_HAVE_JRE_IN_PATH="yes"
   36628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36629     break 2
   36630   fi
   36631 done
   36632   done
   36633 IFS=$as_save_IFS
   36634 
   36635 fi
   36636 fi
   36637 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
   36638 if test -n "$HAVE_JRE_IN_PATH"; then
   36639   :
   36640 else
   36641   :
   36642 fi
   36643 
   36644 
   36645     # Extract the first word of "jview", so it can be a program name with args.
   36646 set dummy jview; ac_word=$2
   36647 :
   36648 if ${ac_cv_prog_HAVE_JVIEW_IN_PATH+:} false; then :
   36649   $as_echo_n "(cached) " >&6
   36650 else
   36651   if test -n "$HAVE_JVIEW_IN_PATH"; then
   36652   ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
   36653 else
   36654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36655 for as_dir in $PATH
   36656 do
   36657   IFS=$as_save_IFS
   36658   test -z "$as_dir" && as_dir=.
   36659     for ac_exec_ext in '' $ac_executable_extensions; do
   36660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36661     ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
   36662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36663     break 2
   36664   fi
   36665 done
   36666   done
   36667 IFS=$as_save_IFS
   36668 
   36669 fi
   36670 fi
   36671 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
   36672 if test -n "$HAVE_JVIEW_IN_PATH"; then
   36673   :
   36674 else
   36675   :
   36676 fi
   36677 
   36678 
   36679 
   36680     export CLASSPATH
   36681     if test -n "$HAVE_GIJ_IN_PATH" \
   36682        && gij --version >/dev/null 2>/dev/null \
   36683        ; then
   36684       HAVE_GIJ=1
   36685       CONF_JAVA="gij"
   36686     else
   36687       if test -n "$HAVE_JAVA_IN_PATH" \
   36688          && java -version >/dev/null 2>/dev/null \
   36689          ; then
   36690         HAVE_JAVA=1
   36691         CONF_JAVA="java"
   36692       else
   36693         if test -n "$HAVE_JRE_IN_PATH" \
   36694            && (jre >/dev/null 2>/dev/null || test $? = 1) \
   36695            ; then
   36696           HAVE_JRE=1
   36697           CONF_JAVA="jre"
   36698         else
   36699           if test -n "$HAVE_JVIEW_IN_PATH" \
   36700              && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
   36701              ; then
   36702             HAVE_JVIEW=1
   36703             CONF_JAVA="jview"
   36704           else
   36705             HAVE_JAVAEXEC=
   36706           fi
   36707         fi
   36708       fi
   36709     fi
   36710 
   36711   fi
   36712   if test -n "$HAVE_JAVAEXEC"; then
   36713     ac_result="$CONF_JAVA"
   36714   else
   36715     ac_result="no"
   36716   fi
   36717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
   36718 $as_echo "$ac_result" >&6; }
   36719 
   36720 
   36721 
   36722 
   36723 
   36724 
   36725 
   36726 
   36727 
   36728 
   36729 
   36730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   36731 /* end confdefs.h.  */
   36732 
   36733 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   36734   yes
   36735 #endif
   36736 
   36737 _ACEOF
   36738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   36739   $EGREP "yes" >/dev/null 2>&1; then :
   36740   CLASSPATH_SEPARATOR=';'
   36741 else
   36742   CLASSPATH_SEPARATOR=':'
   36743 fi
   36744 rm -f conftest*
   36745 
   36746   source_version=1.3
   36747   test -n "$source_version" || {
   36748     as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
   36749   }
   36750   if test -n "$HAVE_JAVAEXEC"; then
   36751               cat > conftestver.java <<EOF
   36752 public class conftestver {
   36753   public static void main (String[] args) {
   36754     System.out.println(System.getProperty("java.specification.version"));
   36755   }
   36756 }
   36757 EOF
   36758                                                                       echo 'yzwx!$!I!D,!)!3+!4!5*!6,!4!7,!8!9)!:)!;"!(MeienN"!$FGW"!%Ojab"!2QeibRohZblVYZgb"!%hYei"!9FXQfYpYKgYidKUnleidLGW"!,Ujol_bPegb"!3_jicnbmnpblJfYpY/!*!+)!</!=!>"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \
   36759          | tr -d '\012\015' \
   36760          | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \
   36761          > conftestver.class
   36762        target_version=`{
   36763          unset JAVA_HOME
   36764          echo "$as_me:36764: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
   36765          CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
   36766        }`
   36767        case "$target_version" in
   36768          1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
   36769          null)
   36770                       target_version=1.1 ;;
   36771          *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
   36772 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
   36773             target_version=1.1 ;;
   36774        esac
   36775      else
   36776        target_version="1.1"
   36777      fi
   36778 
   36779   case "$source_version" in
   36780     1.3) goodcode='class conftest {}'
   36781          failcode='class conftestfail { static { assert(true); } }' ;;
   36782     1.4) goodcode='class conftest     { static { assert(true); } }'
   36783          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
   36784     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
   36785          failcode='class conftestfail syntax error' ;;
   36786     *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
   36787   esac
   36788   case "$target_version" in
   36789     1.1) cfversion=45 ;;
   36790     1.2) cfversion=46 ;;
   36791     1.3) cfversion=47 ;;
   36792     1.4) cfversion=48 ;;
   36793     1.5) cfversion=49 ;;
   36794     1.6) cfversion=50 ;;
   36795     *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
   36796   esac
   36797   # Function to output the classfile version of a file (8th byte) in decimal.
   36798   if od -A x < /dev/null >/dev/null 2>/dev/null; then
   36799     # Use POSIX od.
   36800     func_classfile_version ()
   36801     {
   36802       od -A n -t d1 -j 7 -N 1 "$1"
   36803     }
   36804   else
   36805     # Use BSD hexdump.
   36806     func_classfile_version ()
   36807     {
   36808       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
   36809       echo
   36810     }
   36811   fi
   36812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
   36813 $as_echo_n "checking for Java compiler... " >&6; }
   36814                                                                                         CONF_JAVAC=
   36815   HAVE_JAVAC_ENVVAR=
   36816   HAVE_GCJ_C=
   36817   HAVE_JAVAC=
   36818   HAVE_JIKES=
   36819   HAVE_JAVACOMP=
   36820   cat > conftestlib.java <<EOF
   36821 public class conftestlib {
   36822   public static void main (String[] args) {
   36823   }
   36824 }
   36825 EOF
   36826   echo "$goodcode" > conftest.java
   36827   echo "$failcode" > conftestfail.java
   36828         if test -n "$JAVAC"; then
   36829         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
   36830             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
   36831                         rm -f conftest.class
   36832         if { echo "$as_me:36832: $JAVAC -d . conftest.java" >&5
   36833              $JAVAC -d . conftest.java >&5 2>&1
   36834            } \
   36835            && test -f conftest.class \
   36836            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   36837                     rm -f conftest.class
   36838           rm -f conftestfail.class
   36839           if { echo "$as_me:36839: $JAVAC -fsource=$source_version -d . conftest.java" >&5
   36840                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
   36841              } \
   36842              && test -f conftest.class \
   36843              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
   36844              && { echo "$as_me:36844: $JAVAC -d . conftestfail.java" >&5
   36845                   $JAVAC -d . conftestfail.java >&5 2>&1
   36846                 } \
   36847              && test -f conftestfail.class \
   36848              && ! { echo "$as_me:36848: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
   36849                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
   36850                   }; then
   36851             CONF_JAVAC="$JAVAC -fsource=$source_version"
   36852             HAVE_JAVAC_ENVVAR=1
   36853             HAVE_JAVACOMP=1
   36854           else
   36855             CONF_JAVAC="$JAVAC"
   36856             HAVE_JAVAC_ENVVAR=1
   36857             HAVE_JAVACOMP=1
   36858           fi
   36859         else
   36860                     rm -f conftest.class
   36861           rm -f conftestfail.class
   36862           if { echo "$as_me:36862: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
   36863                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
   36864              } \
   36865              && test -f conftest.class \
   36866              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   36867             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
   36868             HAVE_JAVAC_ENVVAR=1
   36869             HAVE_JAVACOMP=1
   36870           fi
   36871         fi
   36872       else
   36873                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
   36874                     rm -f conftest.class
   36875           if { echo "$as_me:36875: $JAVAC -d . conftest.java" >&5
   36876                $JAVAC -d . conftest.java >&5 2>&1
   36877              } \
   36878              && test -f conftest.class; then
   36879             CONF_JAVAC="$JAVAC"
   36880             HAVE_JAVAC_ENVVAR=1
   36881             HAVE_JAVACOMP=1
   36882           fi
   36883         else
   36884           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
   36885                                     javac_works=
   36886             rm -f conftest.class
   36887             if { echo "$as_me:36887: $JAVAC -d . conftest.java" >&5
   36888                  $JAVAC -d . conftest.java >&5 2>&1
   36889                } \
   36890                && test -f conftest.class; then
   36891               javac_works=1
   36892             fi
   36893             javac_noassert_works=
   36894             rm -f conftest.class
   36895             if { echo "$as_me:36895: $JAVAC -fno-assert -d . conftest.java" >&5
   36896                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
   36897                } \
   36898                && test -f conftest.class; then
   36899               javac_noassert_works=1
   36900             fi
   36901             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
   36902               rm -f conftestfail.class
   36903               if { echo "$as_me:36903: $JAVAC -d . conftestfail.java" >&5
   36904                    $JAVAC -d . conftestfail.java >&5 2>&1
   36905                  } \
   36906                  && test -f conftestfail.class \
   36907                  && ! { echo "$as_me:36907: $JAVAC -fno-assert -d . conftestfail.java" >&5
   36908                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
   36909                       }; then
   36910                                 javac_works=
   36911               fi
   36912             fi
   36913             if test -n "$javac_works"; then
   36914               CONF_JAVAC="$JAVAC"
   36915               HAVE_JAVAC_ENVVAR=1
   36916               HAVE_JAVACOMP=1
   36917             else
   36918               if test -n "$javac_noassert_works"; then
   36919                 CONF_JAVAC="$JAVAC -fno-assert"
   36920                 HAVE_JAVAC_ENVVAR=1
   36921                 HAVE_JAVACOMP=1
   36922               fi
   36923             fi
   36924           fi
   36925         fi
   36926       fi
   36927     else
   36928                   rm -f conftest.class
   36929       if { echo "$as_me:36929: $JAVAC -d . conftest.java" >&5
   36930            $JAVAC -d . conftest.java >&5 2>&1
   36931          } \
   36932          && test -f conftest.class \
   36933          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   36934                 rm -f conftest.class
   36935         rm -f conftestfail.class
   36936         if { echo "$as_me:36936: $JAVAC -source $source_version -d . conftest.java" >&5
   36937              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
   36938            } \
   36939            && test -f conftest.class \
   36940            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
   36941            && { echo "$as_me:36941: $JAVAC -d . conftestfail.java" >&5
   36942                 $JAVAC -d . conftestfail.java >&5 2>&1
   36943               } \
   36944            && test -f conftestfail.class \
   36945            && ! { echo "$as_me:36945: $JAVAC -source $source_version -d . conftestfail.java" >&5
   36946                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
   36947                 }; then
   36948           CONF_JAVAC="$JAVAC -source $source_version"
   36949           HAVE_JAVAC_ENVVAR=1
   36950           HAVE_JAVACOMP=1
   36951         else
   36952           CONF_JAVAC="$JAVAC"
   36953           HAVE_JAVAC_ENVVAR=1
   36954           HAVE_JAVACOMP=1
   36955         fi
   36956       else
   36957                         rm -f conftest.class
   36958         if { echo "$as_me:36958: $JAVAC -target $target_version -d . conftest.java" >&5
   36959              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
   36960            } \
   36961            && test -f conftest.class \
   36962            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   36963                     rm -f conftest.class
   36964           rm -f conftestfail.class
   36965           if { echo "$as_me:36965: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
   36966                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
   36967              } \
   36968              && test -f conftest.class \
   36969              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
   36970              && { echo "$as_me:36970: $JAVAC -target $target_version -d . conftestfail.java" >&5
   36971                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
   36972                 } \
   36973              && test -f conftestfail.class \
   36974              && ! { echo "$as_me:36974: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
   36975                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
   36976                   }; then
   36977             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
   36978             HAVE_JAVAC_ENVVAR=1
   36979             HAVE_JAVACOMP=1
   36980           else
   36981             CONF_JAVAC="$JAVAC -target $target_version"
   36982             HAVE_JAVAC_ENVVAR=1
   36983             HAVE_JAVACOMP=1
   36984           fi
   36985         else
   36986                                         rm -f conftest.class
   36987           if { echo "$as_me:36987: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
   36988                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
   36989              } \
   36990              && test -f conftest.class \
   36991              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   36992             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
   36993             HAVE_JAVAC_ENVVAR=1
   36994             HAVE_JAVACOMP=1
   36995           fi
   36996         fi
   36997       fi
   36998     fi
   36999   fi
   37000   if test -z "$HAVE_JAVACOMP"; then
   37001                 # Extract the first word of "gcj", so it can be a program name with args.
   37002 set dummy gcj; ac_word=$2
   37003 :
   37004 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
   37005   $as_echo_n "(cached) " >&6
   37006 else
   37007   if test -n "$HAVE_GCJ_IN_PATH"; then
   37008   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
   37009 else
   37010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37011 for as_dir in $PATH
   37012 do
   37013   IFS=$as_save_IFS
   37014   test -z "$as_dir" && as_dir=.
   37015     for ac_exec_ext in '' $ac_executable_extensions; do
   37016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37017     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
   37018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37019     break 2
   37020   fi
   37021 done
   37022   done
   37023 IFS=$as_save_IFS
   37024 
   37025 fi
   37026 fi
   37027 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
   37028 if test -n "$HAVE_GCJ_IN_PATH"; then
   37029   :
   37030 else
   37031   :
   37032 fi
   37033 
   37034 
   37035     # Extract the first word of "javac", so it can be a program name with args.
   37036 set dummy javac; ac_word=$2
   37037 :
   37038 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
   37039   $as_echo_n "(cached) " >&6
   37040 else
   37041   if test -n "$HAVE_JAVAC_IN_PATH"; then
   37042   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
   37043 else
   37044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37045 for as_dir in $PATH
   37046 do
   37047   IFS=$as_save_IFS
   37048   test -z "$as_dir" && as_dir=.
   37049     for ac_exec_ext in '' $ac_executable_extensions; do
   37050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37051     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
   37052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37053     break 2
   37054   fi
   37055 done
   37056   done
   37057 IFS=$as_save_IFS
   37058 
   37059 fi
   37060 fi
   37061 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
   37062 if test -n "$HAVE_JAVAC_IN_PATH"; then
   37063   :
   37064 else
   37065   :
   37066 fi
   37067 
   37068 
   37069     # Extract the first word of "jikes", so it can be a program name with args.
   37070 set dummy jikes; ac_word=$2
   37071 :
   37072 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
   37073   $as_echo_n "(cached) " >&6
   37074 else
   37075   if test -n "$HAVE_JIKES_IN_PATH"; then
   37076   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
   37077 else
   37078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37079 for as_dir in $PATH
   37080 do
   37081   IFS=$as_save_IFS
   37082   test -z "$as_dir" && as_dir=.
   37083     for ac_exec_ext in '' $ac_executable_extensions; do
   37084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37085     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
   37086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37087     break 2
   37088   fi
   37089 done
   37090   done
   37091 IFS=$as_save_IFS
   37092 
   37093 fi
   37094 fi
   37095 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
   37096 if test -n "$HAVE_JIKES_IN_PATH"; then
   37097   :
   37098 else
   37099   :
   37100 fi
   37101 
   37102 
   37103                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
   37104             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
   37105                 if { echo "$as_me:37105: gcj -C -d . conftestlib.java" >&5
   37106              gcj -C -d . conftestlib.java >&5 2>&1
   37107            }; then
   37108                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
   37109                                     rm -f conftest.class
   37110             if { echo "$as_me:37110: gcj -C -d . conftest.java" >&5
   37111                  gcj -C -d . conftest.java >&5 2>&1
   37112                } \
   37113                && test -f conftest.class \
   37114                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   37115                             rm -f conftest.class
   37116               rm -f conftestfail.class
   37117               if { echo "$as_me:37117: gcj -C -fsource=$source_version -d . conftest.java" >&5
   37118                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
   37119                  } \
   37120                  && test -f conftest.class \
   37121                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
   37122                  && { echo "$as_me:37122: gcj -C -d . conftestfail.java" >&5
   37123                       gcj -C -d . conftestfail.java >&5 2>&1
   37124                     } \
   37125                  && test -f conftestfail.class \
   37126                  && ! { echo "$as_me:37126: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
   37127                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
   37128                       }; then
   37129                 CONF_JAVAC="gcj -C -fsource=$source_version"
   37130                 HAVE_JAVAC_ENVVAR=1
   37131                 HAVE_JAVACOMP=1
   37132               else
   37133                 CONF_JAVAC="gcj -C"
   37134                 HAVE_JAVAC_ENVVAR=1
   37135                 HAVE_JAVACOMP=1
   37136               fi
   37137             else
   37138                             rm -f conftest.class
   37139               rm -f conftestfail.class
   37140               if { echo "$as_me:37140: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
   37141                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
   37142                  } \
   37143                  && test -f conftest.class \
   37144                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   37145                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
   37146                 HAVE_JAVAC_ENVVAR=1
   37147                 HAVE_JAVACOMP=1
   37148               fi
   37149             fi
   37150           else
   37151                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
   37152               rm -f conftest.class
   37153               if { echo "$as_me:37153: gcj -C -d . conftest.java" >&5
   37154                    gcj -C -d . conftest.java >&5 2>&1
   37155                  } \
   37156                  && test -f conftest.class; then
   37157                 CONF_JAVAC="gcj -C"
   37158                 HAVE_GCJ_C=1
   37159                 HAVE_JAVACOMP=1
   37160               fi
   37161             else
   37162               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
   37163                                                 rm -f conftest.class
   37164                 if { echo "$as_me:37164: gcj -C -fno-assert -d . conftest.java" >&5
   37165                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
   37166                    } \
   37167                    && test -f conftest.class; then
   37168                   CONF_JAVAC="gcj -C -fno-assert"
   37169                   HAVE_GCJ_C=1
   37170                   HAVE_JAVACOMP=1
   37171                 else
   37172                   rm -f conftest.class
   37173                   if { echo "$as_me:37173: gcj -C -d . conftest.java" >&5
   37174                        gcj -C -d . conftest.java >&5 2>&1
   37175                      } \
   37176                      && test -f conftest.class; then
   37177                     CONF_JAVAC="gcj -C"
   37178                     HAVE_GCJ_C=1
   37179                     HAVE_JAVACOMP=1
   37180                   fi
   37181                 fi
   37182               fi
   37183             fi
   37184           fi
   37185         fi
   37186       fi
   37187     fi
   37188     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
   37189             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
   37190          && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
   37191                                 rm -f conftest.class
   37192         if { echo "$as_me:37192: javac -d . conftest.java" >&5
   37193              javac -d . conftest.java >&5 2>&1
   37194            } \
   37195            && test -f conftest.class \
   37196            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   37197                     rm -f conftest.class
   37198           rm -f conftestfail.class
   37199           if { echo "$as_me:37199: javac -source $source_version -d . conftest.java" >&5
   37200                javac -source "$source_version" -d . conftest.java >&5 2>&1
   37201              } \
   37202              && test -f conftest.class \
   37203              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
   37204              && { echo "$as_me:37204: javac -d . conftestfail.java" >&5
   37205                   javac -d . conftestfail.java >&5 2>&1
   37206                 } \
   37207              && test -f conftestfail.class \
   37208              && ! { echo "$as_me:37208: javac -source $source_version -d . conftestfail.java" >&5
   37209                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
   37210                   }; then
   37211             CONF_JAVAC="javac -source $source_version"
   37212             HAVE_JAVAC=1
   37213             HAVE_JAVACOMP=1
   37214           else
   37215             CONF_JAVAC="javac"
   37216             HAVE_JAVAC=1
   37217             HAVE_JAVACOMP=1
   37218           fi
   37219         else
   37220                               rm -f conftest.class
   37221           if { echo "$as_me:37221: javac -target $target_version -d . conftest.java" >&5
   37222                javac -target "$target_version" -d . conftest.java >&5 2>&1
   37223              } \
   37224              && test -f conftest.class \
   37225              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   37226                         rm -f conftest.class
   37227             rm -f conftestfail.class
   37228             if { echo "$as_me:37228: javac -target $target_version -source $source_version -d . conftest.java" >&5
   37229                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
   37230                } \
   37231                && test -f conftest.class \
   37232                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
   37233                && { echo "$as_me:37233: javac -target $target_version -d . conftestfail.java" >&5
   37234                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
   37235                   } \
   37236                && test -f conftestfail.class \
   37237                && ! { echo "$as_me:37237: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
   37238                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
   37239                     }; then
   37240               CONF_JAVAC="javac -target $target_version -source $source_version"
   37241               HAVE_JAVAC=1
   37242               HAVE_JAVACOMP=1
   37243             else
   37244               CONF_JAVAC="javac -target $target_version"
   37245               HAVE_JAVAC=1
   37246               HAVE_JAVACOMP=1
   37247             fi
   37248           else
   37249                                                 rm -f conftest.class
   37250             if { echo "$as_me:37250: javac -target $target_version -source $source_version -d . conftest.java" >&5
   37251                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
   37252                } \
   37253                && test -f conftest.class \
   37254                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
   37255               CONF_JAVAC="javac -target $target_version -source $source_version"
   37256               HAVE_JAVAC=1
   37257               HAVE_JAVACOMP=1
   37258             fi
   37259           fi
   37260         fi
   37261       fi
   37262     fi
   37263     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
   37264             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
   37265          && (
   37266               # See if the existing CLASSPATH is sufficient to make jikes work.
   37267               unset JAVA_HOME
   37268               jikes conftestlib.java >&5 2>&1
   37269               error=$?
   37270               rm -f conftestlib.class
   37271               exit $error
   37272             ); then
   37273                                 if test "$source_version" = 1.3; then
   37274           CONF_JAVAC="jikes"
   37275           HAVE_JIKES=1
   37276           HAVE_JAVACOMP=1
   37277         fi
   37278       fi
   37279     fi
   37280   fi
   37281   rm -f conftest*.java conftest*.class
   37282   if test -n "$HAVE_JAVACOMP"; then
   37283     ac_result="$CONF_JAVAC"
   37284   else
   37285     ac_result="no"
   37286   fi
   37287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
   37288 $as_echo "$ac_result" >&6; }
   37289 
   37290 
   37291 
   37292 
   37293 
   37294 
   37295 
   37296 
   37297 
   37298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
   37299 $as_echo_n "checking for Java virtual machine... " >&6; }
   37300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   37301 /* end confdefs.h.  */
   37302 
   37303 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   37304   yes
   37305 #endif
   37306 
   37307 _ACEOF
   37308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   37309   $EGREP "yes" >/dev/null 2>&1; then :
   37310   CLASSPATH_SEPARATOR=';'
   37311 else
   37312   CLASSPATH_SEPARATOR=':'
   37313 fi
   37314 rm -f conftest*
   37315 
   37316   CONF_JAVA=
   37317   HAVE_JAVA_ENVVAR=
   37318   HAVE_GIJ=
   37319   HAVE_JAVA=
   37320   HAVE_JRE=
   37321   HAVE_JVIEW=
   37322   HAVE_JAVAEXEC=1
   37323   if test -n "$JAVA"; then
   37324     HAVE_JAVA_ENVVAR=1
   37325     CONF_JAVA="$JAVA"
   37326   else
   37327                 # Extract the first word of "gij", so it can be a program name with args.
   37328 set dummy gij; ac_word=$2
   37329 :
   37330 if ${ac_cv_prog_HAVE_GIJ_IN_PATH+:} false; then :
   37331   $as_echo_n "(cached) " >&6
   37332 else
   37333   if test -n "$HAVE_GIJ_IN_PATH"; then
   37334   ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
   37335 else
   37336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37337 for as_dir in $PATH
   37338 do
   37339   IFS=$as_save_IFS
   37340   test -z "$as_dir" && as_dir=.
   37341     for ac_exec_ext in '' $ac_executable_extensions; do
   37342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37343     ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
   37344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37345     break 2
   37346   fi
   37347 done
   37348   done
   37349 IFS=$as_save_IFS
   37350 
   37351 fi
   37352 fi
   37353 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
   37354 if test -n "$HAVE_GIJ_IN_PATH"; then
   37355   :
   37356 else
   37357   :
   37358 fi
   37359 
   37360 
   37361     # Extract the first word of "java", so it can be a program name with args.
   37362 set dummy java; ac_word=$2
   37363 :
   37364 if ${ac_cv_prog_HAVE_JAVA_IN_PATH+:} false; then :
   37365   $as_echo_n "(cached) " >&6
   37366 else
   37367   if test -n "$HAVE_JAVA_IN_PATH"; then
   37368   ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
   37369 else
   37370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37371 for as_dir in $PATH
   37372 do
   37373   IFS=$as_save_IFS
   37374   test -z "$as_dir" && as_dir=.
   37375     for ac_exec_ext in '' $ac_executable_extensions; do
   37376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37377     ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
   37378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37379     break 2
   37380   fi
   37381 done
   37382   done
   37383 IFS=$as_save_IFS
   37384 
   37385 fi
   37386 fi
   37387 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
   37388 if test -n "$HAVE_JAVA_IN_PATH"; then
   37389   :
   37390 else
   37391   :
   37392 fi
   37393 
   37394 
   37395     # Extract the first word of "jre", so it can be a program name with args.
   37396 set dummy jre; ac_word=$2
   37397 :
   37398 if ${ac_cv_prog_HAVE_JRE_IN_PATH+:} false; then :
   37399   $as_echo_n "(cached) " >&6
   37400 else
   37401   if test -n "$HAVE_JRE_IN_PATH"; then
   37402   ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
   37403 else
   37404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37405 for as_dir in $PATH
   37406 do
   37407   IFS=$as_save_IFS
   37408   test -z "$as_dir" && as_dir=.
   37409     for ac_exec_ext in '' $ac_executable_extensions; do
   37410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37411     ac_cv_prog_HAVE_JRE_IN_PATH="yes"
   37412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37413     break 2
   37414   fi
   37415 done
   37416   done
   37417 IFS=$as_save_IFS
   37418 
   37419 fi
   37420 fi
   37421 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
   37422 if test -n "$HAVE_JRE_IN_PATH"; then
   37423   :
   37424 else
   37425   :
   37426 fi
   37427 
   37428 
   37429     # Extract the first word of "jview", so it can be a program name with args.
   37430 set dummy jview; ac_word=$2
   37431 :
   37432 if ${ac_cv_prog_HAVE_JVIEW_IN_PATH+:} false; then :
   37433   $as_echo_n "(cached) " >&6
   37434 else
   37435   if test -n "$HAVE_JVIEW_IN_PATH"; then
   37436   ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
   37437 else
   37438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37439 for as_dir in $PATH
   37440 do
   37441   IFS=$as_save_IFS
   37442   test -z "$as_dir" && as_dir=.
   37443     for ac_exec_ext in '' $ac_executable_extensions; do
   37444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   37445     ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
   37446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   37447     break 2
   37448   fi
   37449 done
   37450   done
   37451 IFS=$as_save_IFS
   37452 
   37453 fi
   37454 fi
   37455 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
   37456 if test -n "$HAVE_JVIEW_IN_PATH"; then
   37457   :
   37458 else
   37459   :
   37460 fi
   37461 
   37462 
   37463 
   37464     export CLASSPATH
   37465     if test -n "$HAVE_GIJ_IN_PATH" \
   37466        && gij --version >/dev/null 2>/dev/null \
   37467        ; then
   37468       HAVE_GIJ=1
   37469       CONF_JAVA="gij"
   37470     else
   37471       if test -n "$HAVE_JAVA_IN_PATH" \
   37472          && java -version >/dev/null 2>/dev/null \
   37473          ; then
   37474         HAVE_JAVA=1
   37475         CONF_JAVA="java"
   37476       else
   37477         if test -n "$HAVE_JRE_IN_PATH" \
   37478            && (jre >/dev/null 2>/dev/null || test $? = 1) \
   37479            ; then
   37480           HAVE_JRE=1
   37481           CONF_JAVA="jre"
   37482         else
   37483           if test -n "$HAVE_JVIEW_IN_PATH" \
   37484              && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
   37485              ; then
   37486             HAVE_JVIEW=1
   37487             CONF_JAVA="jview"
   37488           else
   37489             HAVE_JAVAEXEC=
   37490           fi
   37491         fi
   37492       fi
   37493     fi
   37494 
   37495   fi
   37496   if test -n "$HAVE_JAVAEXEC"; then
   37497     ac_result="$CONF_JAVA"
   37498   else
   37499     ac_result="no"
   37500   fi
   37501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
   37502 $as_echo "$ac_result" >&6; }
   37503 
   37504 
   37505 
   37506 
   37507 
   37508 
   37509 
   37510 
   37511 
   37512 
   37513 ac_config_files="$ac_config_files Makefile build-aux/Makefile po/Makefile.in data/Makefile etc/Makefile examples/Makefile examples/calc++/Makefile lib/Makefile src/Makefile doc/Makefile doc/yacc.1"
   37514 
   37515 cat >confcache <<\_ACEOF
   37516 # This file is a shell script that caches the results of configure
   37517 # tests run on this system so they can be shared between configure
   37518 # scripts and configure runs, see configure's option --config-cache.
   37519 # It is not useful on other systems.  If it contains results you don't
   37520 # want to keep, you may remove or edit it.
   37521 #
   37522 # config.status only pays attention to the cache file if you give it
   37523 # the --recheck option to rerun configure.
   37524 #
   37525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   37526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   37527 # following values.
   37528 
   37529 _ACEOF
   37530 
   37531 # The following way of writing the cache mishandles newlines in values,
   37532 # but we know of no workaround that is simple, portable, and efficient.
   37533 # So, we kill variables containing newlines.
   37534 # Ultrix sh set writes to stderr and can't be redirected directly,
   37535 # and sets the high bit in the cache file unless we assign to the vars.
   37536 (
   37537   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   37538     eval ac_val=\$$ac_var
   37539     case $ac_val in #(
   37540     *${as_nl}*)
   37541       case $ac_var in #(
   37542       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   37543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   37544       esac
   37545       case $ac_var in #(
   37546       _ | IFS | as_nl) ;; #(
   37547       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   37548       *) { eval $ac_var=; unset $ac_var;} ;;
   37549       esac ;;
   37550     esac
   37551   done
   37552 
   37553   (set) 2>&1 |
   37554     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   37555     *${as_nl}ac_space=\ *)
   37556       # `set' does not quote correctly, so add quotes: double-quote
   37557       # substitution turns \\\\ into \\, and sed turns \\ into \.
   37558       sed -n \
   37559 	"s/'/'\\\\''/g;
   37560 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   37561       ;; #(
   37562     *)
   37563       # `set' quotes correctly as required by POSIX, so do not add quotes.
   37564       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   37565       ;;
   37566     esac |
   37567     sort
   37568 ) |
   37569   sed '
   37570      /^ac_cv_env_/b end
   37571      t clear
   37572      :clear
   37573      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   37574      t end
   37575      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   37576      :end' >>confcache
   37577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   37578   if test -w "$cache_file"; then
   37579     if test "x$cache_file" != "x/dev/null"; then
   37580       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   37581 $as_echo "$as_me: updating cache $cache_file" >&6;}
   37582       if test ! -f "$cache_file" || test -h "$cache_file"; then
   37583 	cat confcache >"$cache_file"
   37584       else
   37585         case $cache_file in #(
   37586         */* | ?:*)
   37587 	  mv -f confcache "$cache_file"$$ &&
   37588 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   37589         *)
   37590 	  mv -f confcache "$cache_file" ;;
   37591 	esac
   37592       fi
   37593     fi
   37594   else
   37595     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   37596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   37597   fi
   37598 fi
   37599 rm -f confcache
   37600 
   37601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   37602 # Let make expand exec_prefix.
   37603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   37604 
   37605 DEFS=-DHAVE_CONFIG_H
   37606 
   37607 ac_libobjs=
   37608 ac_ltlibobjs=
   37609 U=
   37610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   37611   # 1. Remove the extension, and $U if already installed.
   37612   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   37613   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   37614   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   37615   #    will be set to the directory where LIBOBJS objects are built.
   37616   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   37617   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   37618 done
   37619 LIBOBJS=$ac_libobjs
   37620 
   37621 LTLIBOBJS=$ac_ltlibobjs
   37622 
   37623 
   37624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   37625 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   37626    if test -n "$am_sleep_pid"; then
   37627      # Hide warnings about reused PIDs.
   37628      wait $am_sleep_pid 2>/dev/null
   37629    fi
   37630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   37631 $as_echo "done" >&6; }
   37632  if test -n "$EXEEXT"; then
   37633   am__EXEEXT_TRUE=
   37634   am__EXEEXT_FALSE='#'
   37635 else
   37636   am__EXEEXT_TRUE='#'
   37637   am__EXEEXT_FALSE=
   37638 fi
   37639 
   37640 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   37641   as_fn_error $? "conditional \"AMDEP\" was never defined.
   37642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37643 fi
   37644 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   37645   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   37646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37647 fi
   37648 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
   37649   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
   37650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37651 fi
   37652 if test -z "${BISON_CXX_WORKS_TRUE}" && test -z "${BISON_CXX_WORKS_FALSE}"; then
   37653   as_fn_error $? "conditional \"BISON_CXX_WORKS\" was never defined.
   37654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37655 fi
   37656 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
   37657   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
   37658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37659 fi
   37660 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
   37661   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
   37662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37663 fi
   37664 test "X$DEFS" = X-DHAVE_CONFIG_H && DEFS=
   37665 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
   37666   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
   37667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37668 fi
   37669 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
   37670   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
   37671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37672 fi
   37673 
   37674 
   37675 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
   37676   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
   37677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37678 fi
   37679 CONFIG_INCLUDE=lib/config.h
   37680 
   37681 if test -z "${GL_GENERATE_SCHED_H_TRUE}" && test -z "${GL_GENERATE_SCHED_H_FALSE}"; then
   37682   as_fn_error $? "conditional \"GL_GENERATE_SCHED_H\" was never defined.
   37683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37684 fi
   37685 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
   37686   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
   37687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37688 fi
   37689 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
   37690   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
   37691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37692 fi
   37693 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
   37694   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
   37695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   37696 fi
   37697 
   37698     gl_libobjs=
   37699     gl_ltlibobjs=
   37700     if test -n "$gl_LIBOBJS"; then
   37701       # Remove the extension.
   37702       sed_drop_objext='s/\.o$//;s/\.obj$//'
   37703       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
   37704         gl_libobjs="$gl_libobjs $i.$ac_objext"
   37705         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
   37706       done
   37707     fi
   37708     gl_LIBOBJS=$gl_libobjs
   37709 
   37710     gl_LTLIBOBJS=$gl_ltlibobjs
   37711 
   37712 
   37713 
   37714     gltests_libobjs=
   37715     gltests_ltlibobjs=
   37716     if test -n "$gltests_LIBOBJS"; then
   37717       # Remove the extension.
   37718       sed_drop_objext='s/\.o$//;s/\.obj$//'
   37719       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
   37720         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
   37721         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
   37722       done
   37723     fi
   37724     gltests_LIBOBJS=$gltests_libobjs
   37725 
   37726     gltests_LTLIBOBJS=$gltests_ltlibobjs
   37727 
   37728 
   37729 
   37730 : "${CONFIG_STATUS=./config.status}"
   37731 ac_write_fail=0
   37732 ac_clean_files_save=$ac_clean_files
   37733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   37734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   37735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   37736 as_write_fail=0
   37737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   37738 #! $SHELL
   37739 # Generated by $as_me.
   37740 # Run this file to recreate the current configuration.
   37741 # Compiler output produced by configure, useful for debugging
   37742 # configure, is in config.log if it exists.
   37743 
   37744 debug=false
   37745 ac_cs_recheck=false
   37746 ac_cs_silent=false
   37747 
   37748 SHELL=\${CONFIG_SHELL-$SHELL}
   37749 export SHELL
   37750 _ASEOF
   37751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   37752 ## -------------------- ##
   37753 ## M4sh Initialization. ##
   37754 ## -------------------- ##
   37755 
   37756 # Be more Bourne compatible
   37757 DUALCASE=1; export DUALCASE # for MKS sh
   37758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   37759   emulate sh
   37760   NULLCMD=:
   37761   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   37762   # is contrary to our usage.  Disable this feature.
   37763   alias -g '${1+"$@"}'='"$@"'
   37764   setopt NO_GLOB_SUBST
   37765 else
   37766   case `(set -o) 2>/dev/null` in #(
   37767   *posix*) :
   37768     set -o posix ;; #(
   37769   *) :
   37770      ;;
   37771 esac
   37772 fi
   37773 
   37774 
   37775 as_nl='
   37776 '
   37777 export as_nl
   37778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   37779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   37780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   37781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   37782 # Prefer a ksh shell builtin over an external printf program on Solaris,
   37783 # but without wasting forks for bash or zsh.
   37784 if test -z "$BASH_VERSION$ZSH_VERSION" \
   37785     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   37786   as_echo='print -r --'
   37787   as_echo_n='print -rn --'
   37788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   37789   as_echo='printf %s\n'
   37790   as_echo_n='printf %s'
   37791 else
   37792   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   37793     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   37794     as_echo_n='/usr/ucb/echo -n'
   37795   else
   37796     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   37797     as_echo_n_body='eval
   37798       arg=$1;
   37799       case $arg in #(
   37800       *"$as_nl"*)
   37801 	expr "X$arg" : "X\\(.*\\)$as_nl";
   37802 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   37803       esac;
   37804       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   37805     '
   37806     export as_echo_n_body
   37807     as_echo_n='sh -c $as_echo_n_body as_echo'
   37808   fi
   37809   export as_echo_body
   37810   as_echo='sh -c $as_echo_body as_echo'
   37811 fi
   37812 
   37813 # The user is always right.
   37814 if test "${PATH_SEPARATOR+set}" != set; then
   37815   PATH_SEPARATOR=:
   37816   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   37817     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   37818       PATH_SEPARATOR=';'
   37819   }
   37820 fi
   37821 
   37822 
   37823 # IFS
   37824 # We need space, tab and new line, in precisely that order.  Quoting is
   37825 # there to prevent editors from complaining about space-tab.
   37826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   37827 # splitting by setting IFS to empty value.)
   37828 IFS=" ""	$as_nl"
   37829 
   37830 # Find who we are.  Look in the path if we contain no directory separator.
   37831 as_myself=
   37832 case $0 in #((
   37833   *[\\/]* ) as_myself=$0 ;;
   37834   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37835 for as_dir in $PATH
   37836 do
   37837   IFS=$as_save_IFS
   37838   test -z "$as_dir" && as_dir=.
   37839     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   37840   done
   37841 IFS=$as_save_IFS
   37842 
   37843      ;;
   37844 esac
   37845 # We did not find ourselves, most probably we were run as `sh COMMAND'
   37846 # in which case we are not to be found in the path.
   37847 if test "x$as_myself" = x; then
   37848   as_myself=$0
   37849 fi
   37850 if test ! -f "$as_myself"; then
   37851   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   37852   exit 1
   37853 fi
   37854 
   37855 # Unset variables that we do not need and which cause bugs (e.g. in
   37856 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   37857 # suppresses any "Segmentation fault" message there.  '((' could
   37858 # trigger a bug in pdksh 5.2.14.
   37859 for as_var in BASH_ENV ENV MAIL MAILPATH
   37860 do eval test x\${$as_var+set} = xset \
   37861   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   37862 done
   37863 PS1='$ '
   37864 PS2='> '
   37865 PS4='+ '
   37866 
   37867 # NLS nuisances.
   37868 LC_ALL=C
   37869 export LC_ALL
   37870 LANGUAGE=C
   37871 export LANGUAGE
   37872 
   37873 # CDPATH.
   37874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   37875 
   37876 
   37877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   37878 # ----------------------------------------
   37879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   37880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   37881 # script with STATUS, using 1 if that was 0.
   37882 as_fn_error ()
   37883 {
   37884   as_status=$1; test $as_status -eq 0 && as_status=1
   37885   if test "$4"; then
   37886     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   37887     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   37888   fi
   37889   $as_echo "$as_me: error: $2" >&2
   37890   as_fn_exit $as_status
   37891 } # as_fn_error
   37892 
   37893 
   37894 # as_fn_set_status STATUS
   37895 # -----------------------
   37896 # Set $? to STATUS, without forking.
   37897 as_fn_set_status ()
   37898 {
   37899   return $1
   37900 } # as_fn_set_status
   37901 
   37902 # as_fn_exit STATUS
   37903 # -----------------
   37904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   37905 as_fn_exit ()
   37906 {
   37907   set +e
   37908   as_fn_set_status $1
   37909   exit $1
   37910 } # as_fn_exit
   37911 
   37912 # as_fn_unset VAR
   37913 # ---------------
   37914 # Portably unset VAR.
   37915 as_fn_unset ()
   37916 {
   37917   { eval $1=; unset $1;}
   37918 }
   37919 as_unset=as_fn_unset
   37920 # as_fn_append VAR VALUE
   37921 # ----------------------
   37922 # Append the text in VALUE to the end of the definition contained in VAR. Take
   37923 # advantage of any shell optimizations that allow amortized linear growth over
   37924 # repeated appends, instead of the typical quadratic growth present in naive
   37925 # implementations.
   37926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   37927   eval 'as_fn_append ()
   37928   {
   37929     eval $1+=\$2
   37930   }'
   37931 else
   37932   as_fn_append ()
   37933   {
   37934     eval $1=\$$1\$2
   37935   }
   37936 fi # as_fn_append
   37937 
   37938 # as_fn_arith ARG...
   37939 # ------------------
   37940 # Perform arithmetic evaluation on the ARGs, and store the result in the
   37941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   37942 # must be portable across $(()) and expr.
   37943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   37944   eval 'as_fn_arith ()
   37945   {
   37946     as_val=$(( $* ))
   37947   }'
   37948 else
   37949   as_fn_arith ()
   37950   {
   37951     as_val=`expr "$@" || test $? -eq 1`
   37952   }
   37953 fi # as_fn_arith
   37954 
   37955 
   37956 if expr a : '\(a\)' >/dev/null 2>&1 &&
   37957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   37958   as_expr=expr
   37959 else
   37960   as_expr=false
   37961 fi
   37962 
   37963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   37964   as_basename=basename
   37965 else
   37966   as_basename=false
   37967 fi
   37968 
   37969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   37970   as_dirname=dirname
   37971 else
   37972   as_dirname=false
   37973 fi
   37974 
   37975 as_me=`$as_basename -- "$0" ||
   37976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   37977 	 X"$0" : 'X\(//\)$' \| \
   37978 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   37979 $as_echo X/"$0" |
   37980     sed '/^.*\/\([^/][^/]*\)\/*$/{
   37981 	    s//\1/
   37982 	    q
   37983 	  }
   37984 	  /^X\/\(\/\/\)$/{
   37985 	    s//\1/
   37986 	    q
   37987 	  }
   37988 	  /^X\/\(\/\).*/{
   37989 	    s//\1/
   37990 	    q
   37991 	  }
   37992 	  s/.*/./; q'`
   37993 
   37994 # Avoid depending upon Character Ranges.
   37995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   37996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   37997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   37998 as_cr_digits='0123456789'
   37999 as_cr_alnum=$as_cr_Letters$as_cr_digits
   38000 
   38001 ECHO_C= ECHO_N= ECHO_T=
   38002 case `echo -n x` in #(((((
   38003 -n*)
   38004   case `echo 'xy\c'` in
   38005   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   38006   xy)  ECHO_C='\c';;
   38007   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   38008        ECHO_T='	';;
   38009   esac;;
   38010 *)
   38011   ECHO_N='-n';;
   38012 esac
   38013 
   38014 rm -f conf$$ conf$$.exe conf$$.file
   38015 if test -d conf$$.dir; then
   38016   rm -f conf$$.dir/conf$$.file
   38017 else
   38018   rm -f conf$$.dir
   38019   mkdir conf$$.dir 2>/dev/null
   38020 fi
   38021 if (echo >conf$$.file) 2>/dev/null; then
   38022   if ln -s conf$$.file conf$$ 2>/dev/null; then
   38023     as_ln_s='ln -s'
   38024     # ... but there are two gotchas:
   38025     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   38026     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   38027     # In both cases, we have to default to `cp -pR'.
   38028     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   38029       as_ln_s='cp -pR'
   38030   elif ln conf$$.file conf$$ 2>/dev/null; then
   38031     as_ln_s=ln
   38032   else
   38033     as_ln_s='cp -pR'
   38034   fi
   38035 else
   38036   as_ln_s='cp -pR'
   38037 fi
   38038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   38039 rmdir conf$$.dir 2>/dev/null
   38040 
   38041 
   38042 # as_fn_mkdir_p
   38043 # -------------
   38044 # Create "$as_dir" as a directory, including parents if necessary.
   38045 as_fn_mkdir_p ()
   38046 {
   38047 
   38048   case $as_dir in #(
   38049   -*) as_dir=./$as_dir;;
   38050   esac
   38051   test -d "$as_dir" || eval $as_mkdir_p || {
   38052     as_dirs=
   38053     while :; do
   38054       case $as_dir in #(
   38055       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   38056       *) as_qdir=$as_dir;;
   38057       esac
   38058       as_dirs="'$as_qdir' $as_dirs"
   38059       as_dir=`$as_dirname -- "$as_dir" ||
   38060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   38061 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   38062 	 X"$as_dir" : 'X\(//\)$' \| \
   38063 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   38064 $as_echo X"$as_dir" |
   38065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   38066 	    s//\1/
   38067 	    q
   38068 	  }
   38069 	  /^X\(\/\/\)[^/].*/{
   38070 	    s//\1/
   38071 	    q
   38072 	  }
   38073 	  /^X\(\/\/\)$/{
   38074 	    s//\1/
   38075 	    q
   38076 	  }
   38077 	  /^X\(\/\).*/{
   38078 	    s//\1/
   38079 	    q
   38080 	  }
   38081 	  s/.*/./; q'`
   38082       test -d "$as_dir" && break
   38083     done
   38084     test -z "$as_dirs" || eval "mkdir $as_dirs"
   38085   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   38086 
   38087 
   38088 } # as_fn_mkdir_p
   38089 if mkdir -p . 2>/dev/null; then
   38090   as_mkdir_p='mkdir -p "$as_dir"'
   38091 else
   38092   test -d ./-p && rmdir ./-p
   38093   as_mkdir_p=false
   38094 fi
   38095 
   38096 
   38097 # as_fn_executable_p FILE
   38098 # -----------------------
   38099 # Test if FILE is an executable regular file.
   38100 as_fn_executable_p ()
   38101 {
   38102   test -f "$1" && test -x "$1"
   38103 } # as_fn_executable_p
   38104 as_test_x='test -x'
   38105 as_executable_p=as_fn_executable_p
   38106 
   38107 # Sed expression to map a string onto a valid CPP name.
   38108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   38109 
   38110 # Sed expression to map a string onto a valid variable name.
   38111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   38112 
   38113 
   38114 exec 6>&1
   38115 ## ----------------------------------- ##
   38116 ## Main body of $CONFIG_STATUS script. ##
   38117 ## ----------------------------------- ##
   38118 _ASEOF
   38119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   38120 
   38121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38122 # Save the log message, to keep $0 and so on meaningful, and to
   38123 # report actual input values of CONFIG_FILES etc. instead of their
   38124 # values after options handling.
   38125 ac_log="
   38126 This file was extended by GNU Bison $as_me 2.7, which was
   38127 generated by GNU Autoconf 2.69.  Invocation command line was
   38128 
   38129   CONFIG_FILES    = $CONFIG_FILES
   38130   CONFIG_HEADERS  = $CONFIG_HEADERS
   38131   CONFIG_LINKS    = $CONFIG_LINKS
   38132   CONFIG_COMMANDS = $CONFIG_COMMANDS
   38133   $ $0 $@
   38134 
   38135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   38136 "
   38137 
   38138 _ACEOF
   38139 
   38140 case $ac_config_files in *"
   38141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   38142 esac
   38143 
   38144 case $ac_config_headers in *"
   38145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   38146 esac
   38147 
   38148 
   38149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38150 # Files that config.status was made for.
   38151 config_files="$ac_config_files"
   38152 config_headers="$ac_config_headers"
   38153 config_links="$ac_config_links"
   38154 config_commands="$ac_config_commands"
   38155 
   38156 _ACEOF
   38157 
   38158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38159 ac_cs_usage="\
   38160 \`$as_me' instantiates files and other configuration actions
   38161 from templates according to the current configuration.  Unless the files
   38162 and actions are specified as TAGs, all are instantiated by default.
   38163 
   38164 Usage: $0 [OPTION]... [TAG]...
   38165 
   38166   -h, --help       print this help, then exit
   38167   -V, --version    print version number and configuration settings, then exit
   38168       --config     print configuration, then exit
   38169   -q, --quiet, --silent
   38170                    do not print progress messages
   38171   -d, --debug      don't remove temporary files
   38172       --recheck    update $as_me by reconfiguring in the same conditions
   38173       --file=FILE[:TEMPLATE]
   38174                    instantiate the configuration file FILE
   38175       --header=FILE[:TEMPLATE]
   38176                    instantiate the configuration header FILE
   38177 
   38178 Configuration files:
   38179 $config_files
   38180 
   38181 Configuration headers:
   38182 $config_headers
   38183 
   38184 Configuration links:
   38185 $config_links
   38186 
   38187 Configuration commands:
   38188 $config_commands
   38189 
   38190 Report bugs to <bug-bison@gnu.org>.
   38191 GNU Bison home page: <http://www.gnu.org/software/bison/>.
   38192 General help using GNU software: <http://www.gnu.org/gethelp/>."
   38193 
   38194 _ACEOF
   38195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38196 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   38197 ac_cs_version="\\
   38198 GNU Bison config.status 2.7
   38199 configured by $0, generated by GNU Autoconf 2.69,
   38200   with options \\"\$ac_cs_config\\"
   38201 
   38202 Copyright (C) 2012 Free Software Foundation, Inc.
   38203 This config.status script is free software; the Free Software Foundation
   38204 gives unlimited permission to copy, distribute and modify it."
   38205 
   38206 ac_pwd='$ac_pwd'
   38207 srcdir='$srcdir'
   38208 INSTALL='$INSTALL'
   38209 MKDIR_P='$MKDIR_P'
   38210 AWK='$AWK'
   38211 test -n "\$AWK" || AWK=awk
   38212 _ACEOF
   38213 
   38214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38215 # The default lists apply if the user does not specify any file.
   38216 ac_need_defaults=:
   38217 while test $# != 0
   38218 do
   38219   case $1 in
   38220   --*=?*)
   38221     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   38222     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   38223     ac_shift=:
   38224     ;;
   38225   --*=)
   38226     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   38227     ac_optarg=
   38228     ac_shift=:
   38229     ;;
   38230   *)
   38231     ac_option=$1
   38232     ac_optarg=$2
   38233     ac_shift=shift
   38234     ;;
   38235   esac
   38236 
   38237   case $ac_option in
   38238   # Handling of the options.
   38239   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   38240     ac_cs_recheck=: ;;
   38241   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   38242     $as_echo "$ac_cs_version"; exit ;;
   38243   --config | --confi | --conf | --con | --co | --c )
   38244     $as_echo "$ac_cs_config"; exit ;;
   38245   --debug | --debu | --deb | --de | --d | -d )
   38246     debug=: ;;
   38247   --file | --fil | --fi | --f )
   38248     $ac_shift
   38249     case $ac_optarg in
   38250     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   38251     '') as_fn_error $? "missing file argument" ;;
   38252     esac
   38253     as_fn_append CONFIG_FILES " '$ac_optarg'"
   38254     ac_need_defaults=false;;
   38255   --header | --heade | --head | --hea )
   38256     $ac_shift
   38257     case $ac_optarg in
   38258     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   38259     esac
   38260     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   38261     ac_need_defaults=false;;
   38262   --he | --h)
   38263     # Conflict between --help and --header
   38264     as_fn_error $? "ambiguous option: \`$1'
   38265 Try \`$0 --help' for more information.";;
   38266   --help | --hel | -h )
   38267     $as_echo "$ac_cs_usage"; exit ;;
   38268   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   38269   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   38270     ac_cs_silent=: ;;
   38271 
   38272   # This is an error.
   38273   -*) as_fn_error $? "unrecognized option: \`$1'
   38274 Try \`$0 --help' for more information." ;;
   38275 
   38276   *) as_fn_append ac_config_targets " $1"
   38277      ac_need_defaults=false ;;
   38278 
   38279   esac
   38280   shift
   38281 done
   38282 
   38283 ac_configure_extra_args=
   38284 
   38285 if $ac_cs_silent; then
   38286   exec 6>/dev/null
   38287   ac_configure_extra_args="$ac_configure_extra_args --silent"
   38288 fi
   38289 
   38290 _ACEOF
   38291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38292 if \$ac_cs_recheck; then
   38293   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   38294   shift
   38295   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   38296   CONFIG_SHELL='$SHELL'
   38297   export CONFIG_SHELL
   38298   exec "\$@"
   38299 fi
   38300 
   38301 _ACEOF
   38302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38303 exec 5>>config.log
   38304 {
   38305   echo
   38306   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   38307 ## Running $as_me. ##
   38308 _ASBOX
   38309   $as_echo "$ac_log"
   38310 } >&5
   38311 
   38312 _ACEOF
   38313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38314 #
   38315 # INIT-COMMANDS
   38316 #
   38317 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   38318 GNUmakefile=$GNUmakefile
   38319 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
   38320     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
   38321     # from automake < 1.5.
   38322     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
   38323     # Capture the value of LINGUAS because we need it to compute CATALOGS.
   38324     LINGUAS="${LINGUAS-%UNSET%}"
   38325 
   38326 
   38327 
   38328 _ACEOF
   38329 
   38330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38331 
   38332 # Handling of arguments.
   38333 for ac_config_target in $ac_config_targets
   38334 do
   38335   case $ac_config_target in
   38336     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.in.h" ;;
   38337     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   38338     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
   38339     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:build-aux/javacomp.sh.in" ;;
   38340     "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:build-aux/javaexec.sh.in" ;;
   38341     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
   38342     "runtime-po/Makefile.in") CONFIG_FILES="$CONFIG_FILES runtime-po/Makefile.in" ;;
   38343     "etc/bench.pl") CONFIG_FILES="$CONFIG_FILES etc/bench.pl" ;;
   38344     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
   38345     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
   38346     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
   38347     "tests/bison") CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
   38348     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   38349     "build-aux/Makefile") CONFIG_FILES="$CONFIG_FILES build-aux/Makefile" ;;
   38350     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
   38351     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
   38352     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
   38353     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
   38354     "examples/calc++/Makefile") CONFIG_FILES="$CONFIG_FILES examples/calc++/Makefile" ;;
   38355     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   38356     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
   38357     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   38358     "doc/yacc.1") CONFIG_FILES="$CONFIG_FILES doc/yacc.1" ;;
   38359 
   38360   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   38361   esac
   38362 done
   38363 
   38364 
   38365 # If the user did not use the arguments to specify the items to instantiate,
   38366 # then the envvar interface is used.  Set only those that are not.
   38367 # We use the long form for the default assignment because of an extremely
   38368 # bizarre bug on SunOS 4.1.3.
   38369 if $ac_need_defaults; then
   38370   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   38371   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   38372   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   38373   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   38374 fi
   38375 
   38376 # Have a temporary directory for convenience.  Make it in the build tree
   38377 # simply because there is no reason against having it here, and in addition,
   38378 # creating and moving files from /tmp can sometimes cause problems.
   38379 # Hook for its removal unless debugging.
   38380 # Note that there is a small window in which the directory will not be cleaned:
   38381 # after its creation but before its name has been assigned to `$tmp'.
   38382 $debug ||
   38383 {
   38384   tmp= ac_tmp=
   38385   trap 'exit_status=$?
   38386   : "${ac_tmp:=$tmp}"
   38387   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   38388 ' 0
   38389   trap 'as_fn_exit 1' 1 2 13 15
   38390 }
   38391 # Create a (secure) tmp directory for tmp files.
   38392 
   38393 {
   38394   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   38395   test -d "$tmp"
   38396 }  ||
   38397 {
   38398   tmp=./conf$$-$RANDOM
   38399   (umask 077 && mkdir "$tmp")
   38400 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   38401 ac_tmp=$tmp
   38402 
   38403 # Set up the scripts for CONFIG_FILES section.
   38404 # No need to generate them if there are no CONFIG_FILES.
   38405 # This happens for instance with `./config.status config.h'.
   38406 if test -n "$CONFIG_FILES"; then
   38407 
   38408 
   38409 ac_cr=`echo X | tr X '\015'`
   38410 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   38411 # But we know of no other shell where ac_cr would be empty at this
   38412 # point, so we can use a bashism as a fallback.
   38413 if test "x$ac_cr" = x; then
   38414   eval ac_cr=\$\'\\r\'
   38415 fi
   38416 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   38417 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   38418   ac_cs_awk_cr='\\r'
   38419 else
   38420   ac_cs_awk_cr=$ac_cr
   38421 fi
   38422 
   38423 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   38424 _ACEOF
   38425 
   38426 
   38427 {
   38428   echo "cat >conf$$subs.awk <<_ACEOF" &&
   38429   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   38430   echo "_ACEOF"
   38431 } >conf$$subs.sh ||
   38432   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   38433 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   38434 ac_delim='%!_!# '
   38435 for ac_last_try in false false false false false :; do
   38436   . ./conf$$subs.sh ||
   38437     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   38438 
   38439   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   38440   if test $ac_delim_n = $ac_delim_num; then
   38441     break
   38442   elif $ac_last_try; then
   38443     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   38444   else
   38445     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   38446   fi
   38447 done
   38448 rm -f conf$$subs.sh
   38449 
   38450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38451 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   38452 _ACEOF
   38453 sed -n '
   38454 h
   38455 s/^/S["/; s/!.*/"]=/
   38456 p
   38457 g
   38458 s/^[^!]*!//
   38459 :repl
   38460 t repl
   38461 s/'"$ac_delim"'$//
   38462 t delim
   38463 :nl
   38464 h
   38465 s/\(.\{148\}\)..*/\1/
   38466 t more1
   38467 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   38468 p
   38469 n
   38470 b repl
   38471 :more1
   38472 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   38473 p
   38474 g
   38475 s/.\{148\}//
   38476 t nl
   38477 :delim
   38478 h
   38479 s/\(.\{148\}\)..*/\1/
   38480 t more2
   38481 s/["\\]/\\&/g; s/^/"/; s/$/"/
   38482 p
   38483 b
   38484 :more2
   38485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   38486 p
   38487 g
   38488 s/.\{148\}//
   38489 t delim
   38490 ' <conf$$subs.awk | sed '
   38491 /^[^""]/{
   38492   N
   38493   s/\n//
   38494 }
   38495 ' >>$CONFIG_STATUS || ac_write_fail=1
   38496 rm -f conf$$subs.awk
   38497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38498 _ACAWK
   38499 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   38500   for (key in S) S_is_set[key] = 1
   38501   FS = ""
   38502 
   38503 }
   38504 {
   38505   line = $ 0
   38506   nfields = split(line, field, "@")
   38507   substed = 0
   38508   len = length(field[1])
   38509   for (i = 2; i < nfields; i++) {
   38510     key = field[i]
   38511     keylen = length(key)
   38512     if (S_is_set[key]) {
   38513       value = S[key]
   38514       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   38515       len += length(value) + length(field[++i])
   38516       substed = 1
   38517     } else
   38518       len += 1 + keylen
   38519   }
   38520 
   38521   print line
   38522 }
   38523 
   38524 _ACAWK
   38525 _ACEOF
   38526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38527 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   38528   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   38529 else
   38530   cat
   38531 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   38532   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   38533 _ACEOF
   38534 
   38535 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   38536 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   38537 # trailing colons and then remove the whole line if VPATH becomes empty
   38538 # (actually we leave an empty line to preserve line numbers).
   38539 if test "x$srcdir" = x.; then
   38540   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   38541 h
   38542 s///
   38543 s/^/:/
   38544 s/[	 ]*$/:/
   38545 s/:\$(srcdir):/:/g
   38546 s/:\${srcdir}:/:/g
   38547 s/:@srcdir@:/:/g
   38548 s/^:*//
   38549 s/:*$//
   38550 x
   38551 s/\(=[	 ]*\).*/\1/
   38552 G
   38553 s/\n//
   38554 s/^[^=]*=[	 ]*$//
   38555 }'
   38556 fi
   38557 
   38558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38559 fi # test -n "$CONFIG_FILES"
   38560 
   38561 # Set up the scripts for CONFIG_HEADERS section.
   38562 # No need to generate them if there are no CONFIG_HEADERS.
   38563 # This happens for instance with `./config.status Makefile'.
   38564 if test -n "$CONFIG_HEADERS"; then
   38565 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   38566 BEGIN {
   38567 _ACEOF
   38568 
   38569 # Transform confdefs.h into an awk script `defines.awk', embedded as
   38570 # here-document in config.status, that substitutes the proper values into
   38571 # config.h.in to produce config.h.
   38572 
   38573 # Create a delimiter string that does not exist in confdefs.h, to ease
   38574 # handling of long lines.
   38575 ac_delim='%!_!# '
   38576 for ac_last_try in false false :; do
   38577   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   38578   if test -z "$ac_tt"; then
   38579     break
   38580   elif $ac_last_try; then
   38581     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   38582   else
   38583     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   38584   fi
   38585 done
   38586 
   38587 # For the awk script, D is an array of macro values keyed by name,
   38588 # likewise P contains macro parameters if any.  Preserve backslash
   38589 # newline sequences.
   38590 
   38591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   38592 sed -n '
   38593 s/.\{148\}/&'"$ac_delim"'/g
   38594 t rset
   38595 :rset
   38596 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   38597 t def
   38598 d
   38599 :def
   38600 s/\\$//
   38601 t bsnl
   38602 s/["\\]/\\&/g
   38603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   38604 D["\1"]=" \3"/p
   38605 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   38606 d
   38607 :bsnl
   38608 s/["\\]/\\&/g
   38609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   38610 D["\1"]=" \3\\\\\\n"\\/p
   38611 t cont
   38612 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   38613 t cont
   38614 d
   38615 :cont
   38616 n
   38617 s/.\{148\}/&'"$ac_delim"'/g
   38618 t clear
   38619 :clear
   38620 s/\\$//
   38621 t bsnlc
   38622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   38623 d
   38624 :bsnlc
   38625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   38626 b cont
   38627 ' <confdefs.h | sed '
   38628 s/'"$ac_delim"'/"\\\
   38629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   38630 
   38631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38632   for (key in D) D_is_set[key] = 1
   38633   FS = ""
   38634 }
   38635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   38636   line = \$ 0
   38637   split(line, arg, " ")
   38638   if (arg[1] == "#") {
   38639     defundef = arg[2]
   38640     mac1 = arg[3]
   38641   } else {
   38642     defundef = substr(arg[1], 2)
   38643     mac1 = arg[2]
   38644   }
   38645   split(mac1, mac2, "(") #)
   38646   macro = mac2[1]
   38647   prefix = substr(line, 1, index(line, defundef) - 1)
   38648   if (D_is_set[macro]) {
   38649     # Preserve the white space surrounding the "#".
   38650     print prefix "define", macro P[macro] D[macro]
   38651     next
   38652   } else {
   38653     # Replace #undef with comments.  This is necessary, for example,
   38654     # in the case of _POSIX_SOURCE, which is predefined and required
   38655     # on some systems where configure will not decide to define it.
   38656     if (defundef == "undef") {
   38657       print "/*", prefix defundef, macro, "*/"
   38658       next
   38659     }
   38660   }
   38661 }
   38662 { print }
   38663 _ACAWK
   38664 _ACEOF
   38665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38666   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   38667 fi # test -n "$CONFIG_HEADERS"
   38668 
   38669 
   38670 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   38671 shift
   38672 for ac_tag
   38673 do
   38674   case $ac_tag in
   38675   :[FHLC]) ac_mode=$ac_tag; continue;;
   38676   esac
   38677   case $ac_mode$ac_tag in
   38678   :[FHL]*:*);;
   38679   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   38680   :[FH]-) ac_tag=-:-;;
   38681   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   38682   esac
   38683   ac_save_IFS=$IFS
   38684   IFS=:
   38685   set x $ac_tag
   38686   IFS=$ac_save_IFS
   38687   shift
   38688   ac_file=$1
   38689   shift
   38690 
   38691   case $ac_mode in
   38692   :L) ac_source=$1;;
   38693   :[FH])
   38694     ac_file_inputs=
   38695     for ac_f
   38696     do
   38697       case $ac_f in
   38698       -) ac_f="$ac_tmp/stdin";;
   38699       *) # Look for the file first in the build tree, then in the source tree
   38700 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   38701 	 # because $ac_f cannot contain `:'.
   38702 	 test -f "$ac_f" ||
   38703 	   case $ac_f in
   38704 	   [\\/$]*) false;;
   38705 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   38706 	   esac ||
   38707 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   38708       esac
   38709       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   38710       as_fn_append ac_file_inputs " '$ac_f'"
   38711     done
   38712 
   38713     # Let's still pretend it is `configure' which instantiates (i.e., don't
   38714     # use $as_me), people would be surprised to read:
   38715     #    /* config.h.  Generated by config.status.  */
   38716     configure_input='Generated from '`
   38717 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   38718 	`' by configure.'
   38719     if test x"$ac_file" != x-; then
   38720       configure_input="$ac_file.  $configure_input"
   38721       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   38722 $as_echo "$as_me: creating $ac_file" >&6;}
   38723     fi
   38724     # Neutralize special characters interpreted by sed in replacement strings.
   38725     case $configure_input in #(
   38726     *\&* | *\|* | *\\* )
   38727        ac_sed_conf_input=`$as_echo "$configure_input" |
   38728        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   38729     *) ac_sed_conf_input=$configure_input;;
   38730     esac
   38731 
   38732     case $ac_tag in
   38733     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   38734       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   38735     esac
   38736     ;;
   38737   esac
   38738 
   38739   ac_dir=`$as_dirname -- "$ac_file" ||
   38740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   38741 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   38742 	 X"$ac_file" : 'X\(//\)$' \| \
   38743 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   38744 $as_echo X"$ac_file" |
   38745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   38746 	    s//\1/
   38747 	    q
   38748 	  }
   38749 	  /^X\(\/\/\)[^/].*/{
   38750 	    s//\1/
   38751 	    q
   38752 	  }
   38753 	  /^X\(\/\/\)$/{
   38754 	    s//\1/
   38755 	    q
   38756 	  }
   38757 	  /^X\(\/\).*/{
   38758 	    s//\1/
   38759 	    q
   38760 	  }
   38761 	  s/.*/./; q'`
   38762   as_dir="$ac_dir"; as_fn_mkdir_p
   38763   ac_builddir=.
   38764 
   38765 case "$ac_dir" in
   38766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   38767 *)
   38768   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   38769   # A ".." for each directory in $ac_dir_suffix.
   38770   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   38771   case $ac_top_builddir_sub in
   38772   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   38773   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   38774   esac ;;
   38775 esac
   38776 ac_abs_top_builddir=$ac_pwd
   38777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   38778 # for backward compatibility:
   38779 ac_top_builddir=$ac_top_build_prefix
   38780 
   38781 case $srcdir in
   38782   .)  # We are building in place.
   38783     ac_srcdir=.
   38784     ac_top_srcdir=$ac_top_builddir_sub
   38785     ac_abs_top_srcdir=$ac_pwd ;;
   38786   [\\/]* | ?:[\\/]* )  # Absolute name.
   38787     ac_srcdir=$srcdir$ac_dir_suffix;
   38788     ac_top_srcdir=$srcdir
   38789     ac_abs_top_srcdir=$srcdir ;;
   38790   *) # Relative name.
   38791     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   38792     ac_top_srcdir=$ac_top_build_prefix$srcdir
   38793     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   38794 esac
   38795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   38796 
   38797 
   38798   case $ac_mode in
   38799   :F)
   38800   #
   38801   # CONFIG_FILE
   38802   #
   38803 
   38804   case $INSTALL in
   38805   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   38806   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   38807   esac
   38808   ac_MKDIR_P=$MKDIR_P
   38809   case $MKDIR_P in
   38810   [\\/$]* | ?:[\\/]* ) ;;
   38811   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   38812   esac
   38813 _ACEOF
   38814 
   38815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38816 # If the template does not know about datarootdir, expand it.
   38817 # FIXME: This hack should be removed a few years after 2.60.
   38818 ac_datarootdir_hack=; ac_datarootdir_seen=
   38819 ac_sed_dataroot='
   38820 /datarootdir/ {
   38821   p
   38822   q
   38823 }
   38824 /@datadir@/p
   38825 /@docdir@/p
   38826 /@infodir@/p
   38827 /@localedir@/p
   38828 /@mandir@/p'
   38829 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   38830 *datarootdir*) ac_datarootdir_seen=yes;;
   38831 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   38832   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   38833 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   38834 _ACEOF
   38835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38836   ac_datarootdir_hack='
   38837   s&@datadir@&$datadir&g
   38838   s&@docdir@&$docdir&g
   38839   s&@infodir@&$infodir&g
   38840   s&@localedir@&$localedir&g
   38841   s&@mandir@&$mandir&g
   38842   s&\\\${datarootdir}&$datarootdir&g' ;;
   38843 esac
   38844 _ACEOF
   38845 
   38846 # Neutralize VPATH when `$srcdir' = `.'.
   38847 # Shell code in configure.ac might set extrasub.
   38848 # FIXME: do we really want to maintain this feature?
   38849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   38850 ac_sed_extra="$ac_vpsub
   38851 $extrasub
   38852 _ACEOF
   38853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   38854 :t
   38855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   38856 s|@configure_input@|$ac_sed_conf_input|;t t
   38857 s&@top_builddir@&$ac_top_builddir_sub&;t t
   38858 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   38859 s&@srcdir@&$ac_srcdir&;t t
   38860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   38861 s&@top_srcdir@&$ac_top_srcdir&;t t
   38862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   38863 s&@builddir@&$ac_builddir&;t t
   38864 s&@abs_builddir@&$ac_abs_builddir&;t t
   38865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   38866 s&@INSTALL@&$ac_INSTALL&;t t
   38867 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   38868 $ac_datarootdir_hack
   38869 "
   38870 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   38871   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   38872 
   38873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   38874   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   38875   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   38876       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   38877   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   38878 which seems to be undefined.  Please make sure it is defined" >&5
   38879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   38880 which seems to be undefined.  Please