1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GNU PSPP 1.4.1.
4#
5# Report bugs to <bug-gnu-pspp@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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: bug-gnu-pspp@gnu.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='GNU PSPP'
592PACKAGE_TARNAME='pspp'
593PACKAGE_VERSION='1.4.1'
594PACKAGE_STRING='GNU PSPP 1.4.1'
595PACKAGE_BUGREPORT='bug-gnu-pspp@gnu.org'
596PACKAGE_URL='http://www.gnu.org/software/pspp/'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634gl_use_threads_default=
635gl_use_winpthreads_default=
636gt_needs=
637ac_header_list=
638ac_func_list=
639gl_floor_required=plain
640gl_getopt_required=POSIX
641gl_round_required=plain
642gl_trunc_required=plain
643ac_subst_vars='gltests_LTLIBOBJS
644gltests_LIBOBJS
645gl_LTLIBOBJS
646gl_LIBOBJS
647am__EXEEXT_FALSE
648am__EXEEXT_TRUE
649LTLIBOBJS
650LIBOBJS
651gltests_WITNESS
652NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
653NEXT_WCHAR_H
654LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
655LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
656LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_FALSE
657LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_TRUE
658LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_FALSE
659LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_TRUE
660LIBUNISTRING_UNIWIDTH_H
661LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_FALSE
662LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_TRUE
663LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_FALSE
664LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_TRUE
665LIBUNISTRING_UNIWBRK_H
666LIBUNISTRING_UNITYPES_H
667LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
668LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
669LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_FALSE
670LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_TRUE
671LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE
672LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE
673LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE
674LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE
675LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
676LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
677LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
678LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
679LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE
680LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE
681LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE
682LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE
683LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE
684LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE
685LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_FALSE
686LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_TRUE
687LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE
688LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE
689LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
690LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
691LIBUNISTRING_UNISTR_H
692HAVE_UNISTD_H
693NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694NEXT_UNISTD_H
695LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE
696LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE
697LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE
698LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE
699LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE
700LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE
701LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE
702LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE
703LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_FALSE
704LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_TRUE
705LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE
706LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE
707LIBUNISTRING_UNINORM_H
708LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE
709LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE
710LIBUNISTRING_UNILBRK_H
711LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_FALSE
712LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_TRUE
713LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_FALSE
714LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_TRUE
715LIBUNISTRING_UNIGBRK_H
716LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_FALSE
717LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_TRUE
718LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_FALSE
719LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_TRUE
720LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE
721LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE
722LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE
723LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE
724LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE
725LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE
726LIBUNISTRING_UNICTYPE_H
727LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_FALSE
728LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_TRUE
729LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_FALSE
730LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_TRUE
731LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_FALSE
732LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_TRUE
733LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_FALSE
734LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_TRUE
735LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_FALSE
736LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_TRUE
737LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_FALSE
738LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_TRUE
739LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_FALSE
740LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_TRUE
741LIBUNISTRING_COMPILE_UNICASE_TOUPPER_FALSE
742LIBUNISTRING_COMPILE_UNICASE_TOUPPER_TRUE
743LIBUNISTRING_COMPILE_UNICASE_TOTITLE_FALSE
744LIBUNISTRING_COMPILE_UNICASE_TOTITLE_TRUE
745LIBUNISTRING_COMPILE_UNICASE_TOLOWER_FALSE
746LIBUNISTRING_COMPILE_UNICASE_TOLOWER_TRUE
747LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_FALSE
748LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_TRUE
749LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_FALSE
750LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_TRUE
751LIBUNISTRING_UNICASE_H
752TRUNC_LIBM
753UNISTD_H_DEFINES_STRUCT_TIMESPEC
754PTHREAD_H_DEFINES_STRUCT_TIMESPEC
755SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
756TIME_H_DEFINES_STRUCT_TIMESPEC
757NEXT_AS_FIRST_DIRECTIVE_TIME_H
758NEXT_TIME_H
759NEXT_AS_FIRST_DIRECTIVE_TERMIOS_H
760NEXT_TERMIOS_H
761HAVE_TERMIOS_H
762HAVE_DECL_TCGETSID
763GNULIB_TCGETSID
764HAVE_SYS_UIO_H
765NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
766NEXT_SYS_UIO_H
767HAVE_WS2TCPIP_H
768HAVE_SYS_SOCKET_H
769NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
770NEXT_SYS_SOCKET_H
771HAVE_ACCEPT4
772HAVE_SA_FAMILY_T
773HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
774HAVE_STRUCT_SOCKADDR_STORAGE
775GNULIB_ACCEPT4
776GNULIB_SHUTDOWN
777GNULIB_SETSOCKOPT
778GNULIB_SENDTO
779GNULIB_RECVFROM
780GNULIB_SEND
781GNULIB_RECV
782GNULIB_LISTEN
783GNULIB_GETSOCKOPT
784GNULIB_GETSOCKNAME
785GNULIB_GETPEERNAME
786GNULIB_BIND
787GNULIB_ACCEPT
788GNULIB_CONNECT
789GNULIB_SOCKET
790HAVE_SYS_RANDOM_H
791NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
792NEXT_SYS_RANDOM_H
793HAVE_STRINGS_H
794NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
795NEXT_STRINGS_H
796NEXT_AS_FIRST_DIRECTIVE_STRING_H
797NEXT_STRING_H
798HAVE_DECL_STRNCASECMP
799HAVE_STRCASECMP
800HAVE_FFS
801GNULIB_FFS
802NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
803NEXT_STDLIB_H
804NEXT_AS_FIRST_DIRECTIVE_STDIO_H
805NEXT_STDIO_H
806HAVE__BOOL
807GL_GENERATE_STDBOOL_H_FALSE
808GL_GENERATE_STDBOOL_H_TRUE
809STDBOOL_H
810GL_GENERATE_STDARG_H_FALSE
811GL_GENERATE_STDARG_H_TRUE
812STDARG_H
813NEXT_AS_FIRST_DIRECTIVE_STDARG_H
814NEXT_STDARG_H
815GL_GENERATE_STDALIGN_H_FALSE
816GL_GENERATE_STDALIGN_H_TRUE
817STDALIGN_H
818NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
819NEXT_SIGNAL_H
820LIB_SELECT
821LIBSOCKET
822HAVE_SYS_SELECT_H
823NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
824NEXT_SYS_SELECT_H
825REPLACE_SELECT
826REPLACE_PSELECT
827HAVE_PSELECT
828GNULIB_SELECT
829GNULIB_PSELECT
830ROUND_LIBM
831RELOCATABLE_STRIP
832RELOCATABLE_BUILD_DIR
833RELOCATABLE_SRC_DIR
834RELOCATABLE_CONFIG_H_DIR
835RELOCATABLE_LIBRARY_PATH
836RELOCATABLE_VIA_WRAPPER_FALSE
837RELOCATABLE_VIA_WRAPPER_TRUE
838RELOCATABLE_VIA_LD_FALSE
839RELOCATABLE_VIA_LD_TRUE
840INSTALL_PROGRAM_ENV
841RELOCATABLE_LDFLAGS
842RELOCATABLE
843GLIBC21
844REPLACE_RAISE
845REPLACE_PTHREAD_SIGMASK
846HAVE_SIGHANDLER_T
847HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
848HAVE_STRUCT_SIGACTION_SA_SIGACTION
849HAVE_SIGACTION
850HAVE_SIGINFO_T
851HAVE_SIGSET_T
852HAVE_RAISE
853HAVE_PTHREAD_SIGMASK
854HAVE_POSIX_SIGNALBLOCKING
855GNULIB_SIGACTION
856GNULIB_SIGPROCMASK
857GNULIB_SIGNAL_H_SIGPIPE
858GNULIB_RAISE
859GNULIB_PTHREAD_SIGMASK
860ASM_SYMBOL_PREFIX
861LIB_NL_LANGINFO
862REPLACE_LOCALTIME
863REPLACE_GMTIME
864REPLACE_TZSET
865REPLACE_TIMEGM
866REPLACE_STRFTIME
867REPLACE_NANOSLEEP
868REPLACE_MKTIME
869REPLACE_LOCALTIME_R
870REPLACE_CTIME
871HAVE_TIMEZONE_T
872HAVE_TZSET
873HAVE_TIMEGM
874HAVE_STRPTIME
875HAVE_NANOSLEEP
876HAVE_DECL_LOCALTIME_R
877GNULIB_TZSET
878GNULIB_TIME_RZ
879GNULIB_TIME_R
880GNULIB_TIMEGM
881GNULIB_STRPTIME
882GNULIB_STRFTIME
883GNULIB_NANOSLEEP
884GNULIB_LOCALTIME
885GNULIB_MKTIME
886GNULIB_CTIME
887HAVE_VISIBILITY
888CFLAG_VISIBILITY
889LIB_MBRTOWC
890NEXT_AS_FIRST_DIRECTIVE_MATH_H
891NEXT_MATH_H
892LTLIBMULTITHREAD
893LIBMULTITHREAD
894LTLIBTHREAD
895LIBTHREAD
896LIBSTDTHREAD
897NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
898NEXT_LOCALE_H
899HAVE_XLOCALE_H
900NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
901NEXT_STDDEF_H
902GL_GENERATE_STDDEF_H_FALSE
903GL_GENERATE_STDDEF_H_TRUE
904STDDEF_H
905HAVE_WCHAR_T
906HAVE_MAX_ALIGN_T
907REPLACE_NULL
908REPLACE_STRUCT_LCONV
909REPLACE_FREELOCALE
910REPLACE_DUPLOCALE
911REPLACE_NEWLOCALE
912REPLACE_SETLOCALE
913REPLACE_LOCALECONV
914HAVE_FREELOCALE
915HAVE_DUPLOCALE
916HAVE_NEWLOCALE
917GNULIB_LOCALENAME
918GNULIB_DUPLOCALE
919GNULIB_SETLOCALE_NULL
920GNULIB_SETLOCALE
921GNULIB_LOCALECONV
922LOCALCHARSET_TESTS_ENVIRONMENT
923HAVE_LANGINFO_YESEXPR
924HAVE_LANGINFO_ERA
925HAVE_LANGINFO_ALTMON
926HAVE_LANGINFO_T_FMT_AMPM
927HAVE_LANGINFO_CODESET
928HAVE_LANGINFO_H
929NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
930NEXT_LANGINFO_H
931REPLACE_NL_LANGINFO
932HAVE_NL_LANGINFO
933GNULIB_NL_LANGINFO
934LOCALE_ZH_CN
935LOCALE_FR_UTF8
936LOCALE_JA
937REPLACE_TOWLOWER
938REPLACE_ISWCNTRL
939HAVE_WCTYPE_H
940NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
941NEXT_WCTYPE_H
942HAVE_CRTDEFS_H
943HAVE_WINT_T
944HAVE_ISWCNTRL
945REPLACE_ISWXDIGIT
946REPLACE_ISWDIGIT
947REPLACE_ISWBLANK
948HAVE_WCTRANS_T
949HAVE_WCTYPE_T
950HAVE_ISWBLANK
951GNULIB_TOWCTRANS
952GNULIB_WCTRANS
953GNULIB_ISWCTYPE
954GNULIB_WCTYPE
955GNULIB_ISWXDIGIT
956GNULIB_ISWDIGIT
957GNULIB_ISWBLANK
958ISNAN_LIBM
959ISNANL_LIBM
960ISNAND_LIBM
961ISNANF_LIBM
962ISINF_LIBM
963ISFINITE_LIBM
964NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
965NEXT_INTTYPES_H
966UINT64_MAX_EQ_ULONG_MAX
967UINT32_MAX_LT_UINTMAX_MAX
968PRIPTR_PREFIX
969INT64_MAX_EQ_LONG_MAX
970INT32_MAX_LT_INTMAX_MAX
971REPLACE_STRTOUMAX
972REPLACE_STRTOIMAX
973HAVE_IMAXDIV_T
974HAVE_DECL_STRTOUMAX
975HAVE_DECL_STRTOIMAX
976HAVE_DECL_IMAXDIV
977HAVE_DECL_IMAXABS
978GNULIB_STRTOUMAX
979GNULIB_STRTOIMAX
980GNULIB_IMAXDIV
981GNULIB_IMAXABS
982GL_GENERATE_STDINT_H_FALSE
983GL_GENERATE_STDINT_H_TRUE
984STDINT_H
985HAVE_SYS_INTTYPES_H
986HAVE_SYS_BITYPES_H
987HAVE_C99_STDINT_H
988WINT_T_SUFFIX
989WCHAR_T_SUFFIX
990SIG_ATOMIC_T_SUFFIX
991SIZE_T_SUFFIX
992PTRDIFF_T_SUFFIX
993HAVE_SIGNED_WINT_T
994HAVE_SIGNED_WCHAR_T
995HAVE_SIGNED_SIG_ATOMIC_T
996BITSIZEOF_WINT_T
997BITSIZEOF_WCHAR_T
998BITSIZEOF_SIG_ATOMIC_T
999BITSIZEOF_SIZE_T
1000BITSIZEOF_PTRDIFF_T
1001HAVE_STDINT_H
1002NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1003NEXT_STDINT_H
1004HAVE_SYS_TYPES_H
1005HAVE_INTTYPES_H
1006HAVE_WCHAR_H
1007GL_GENERATE_LIMITS_H_FALSE
1008GL_GENERATE_LIMITS_H_TRUE
1009LIMITS_H
1010NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1011NEXT_LIMITS_H
1012LIB_HARD_LOCALE
1013LIB_SETLOCALE_NULL
1014LIB_SCHED_YIELD
1015LIBPMULTITHREAD
1016LIBPTHREAD
1017NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1018NEXT_SYS_TIME_H
1019REPLACE_STRUCT_TIMEVAL
1020REPLACE_GETTIMEOFDAY
1021HAVE_SYS_TIME_H
1022HAVE_STRUCT_TIMEVAL
1023HAVE_GETTIMEOFDAY
1024GNULIB_GETTIMEOFDAY
1025LIB_GETRANDOM
1026REPLACE_GETRANDOM
1027HAVE_GETRANDOM
1028GNULIB_GETRANDOM
1029GNULIB_GL_UNISTD_H_GETOPT
1030GETOPT_CDEFS_H
1031GETOPT_H
1032HAVE_SYS_CDEFS_H
1033HAVE_GETOPT_H
1034NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1035NEXT_GETOPT_H
1036WINDOWS_64_BIT_ST_SIZE
1037WINDOWS_STAT_TIMESPEC
1038NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1039NEXT_SYS_STAT_H
1040REPLACE_UTIMENSAT
1041REPLACE_STAT
1042REPLACE_MKNOD
1043REPLACE_MKFIFO
1044REPLACE_MKDIR
1045REPLACE_LSTAT
1046REPLACE_FUTIMENS
1047REPLACE_FSTATAT
1048REPLACE_FSTAT
1049REPLACE_FCHMODAT
1050HAVE_UTIMENSAT
1051HAVE_MKNODAT
1052HAVE_MKNOD
1053HAVE_MKFIFOAT
1054HAVE_MKFIFO
1055HAVE_MKDIRAT
1056HAVE_LSTAT
1057HAVE_LCHMOD
1058HAVE_GETUMASK
1059HAVE_FUTIMENS
1060HAVE_FSTATAT
1061HAVE_FCHMODAT
1062GNULIB_OVERRIDES_STRUCT_STAT
1063GNULIB_UTIMENSAT
1064GNULIB_STAT
1065GNULIB_MKNODAT
1066GNULIB_MKNOD
1067GNULIB_MKFIFOAT
1068GNULIB_MKFIFO
1069GNULIB_MKDIRAT
1070GNULIB_LSTAT
1071GNULIB_LCHMOD
1072GNULIB_GETUMASK
1073GNULIB_FUTIMENS
1074GNULIB_FSTATAT
1075GNULIB_FSTAT
1076GNULIB_FCHMODAT
1077WINDOWS_STAT_INODES
1078WINDOWS_64_BIT_OFF_T
1079NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1080NEXT_SYS_TYPES_H
1081HAVE_FEATURES_H
1082REPLACE_VSPRINTF
1083REPLACE_VSNPRINTF
1084REPLACE_VPRINTF
1085REPLACE_VFPRINTF
1086REPLACE_VDPRINTF
1087REPLACE_VASPRINTF
1088REPLACE_TMPFILE
1089REPLACE_STDIO_WRITE_FUNCS
1090REPLACE_STDIO_READ_FUNCS
1091REPLACE_SPRINTF
1092REPLACE_SNPRINTF
1093REPLACE_RENAMEAT
1094REPLACE_RENAME
1095REPLACE_REMOVE
1096REPLACE_PRINTF
1097REPLACE_POPEN
1098REPLACE_PERROR
1099REPLACE_OBSTACK_PRINTF
1100REPLACE_GETLINE
1101REPLACE_GETDELIM
1102REPLACE_FTELLO
1103REPLACE_FTELL
1104REPLACE_FSEEKO
1105REPLACE_FSEEK
1106REPLACE_FREOPEN
1107REPLACE_FPURGE
1108REPLACE_FPRINTF
1109REPLACE_FOPEN
1110REPLACE_FFLUSH
1111REPLACE_FDOPEN
1112REPLACE_FCLOSE
1113REPLACE_DPRINTF
1114HAVE_VDPRINTF
1115HAVE_VASPRINTF
1116HAVE_RENAMEAT
1117HAVE_POPEN
1118HAVE_PCLOSE
1119HAVE_FTELLO
1120HAVE_FSEEKO
1121HAVE_DPRINTF
1122HAVE_DECL_VSNPRINTF
1123HAVE_DECL_SNPRINTF
1124HAVE_DECL_OBSTACK_PRINTF
1125HAVE_DECL_GETLINE
1126HAVE_DECL_GETDELIM
1127HAVE_DECL_FTELLO
1128HAVE_DECL_FSEEKO
1129HAVE_DECL_FPURGE
1130GNULIB_VSPRINTF_POSIX
1131GNULIB_VSNPRINTF
1132GNULIB_VPRINTF_POSIX
1133GNULIB_VPRINTF
1134GNULIB_VFPRINTF_POSIX
1135GNULIB_VFPRINTF
1136GNULIB_VDPRINTF
1137GNULIB_VSCANF
1138GNULIB_VFSCANF
1139GNULIB_VASPRINTF
1140GNULIB_TMPFILE
1141GNULIB_STDIO_H_SIGPIPE
1142GNULIB_STDIO_H_NONBLOCKING
1143GNULIB_SPRINTF_POSIX
1144GNULIB_SNPRINTF
1145GNULIB_SCANF
1146GNULIB_RENAMEAT
1147GNULIB_RENAME
1148GNULIB_REMOVE
1149GNULIB_PUTS
1150GNULIB_PUTCHAR
1151GNULIB_PUTC
1152GNULIB_PRINTF_POSIX
1153GNULIB_PRINTF
1154GNULIB_POPEN
1155GNULIB_PERROR
1156GNULIB_PCLOSE
1157GNULIB_OBSTACK_PRINTF_POSIX
1158GNULIB_OBSTACK_PRINTF
1159GNULIB_GETLINE
1160GNULIB_GETDELIM
1161GNULIB_GETCHAR
1162GNULIB_GETC
1163GNULIB_FWRITE
1164GNULIB_FTELLO
1165GNULIB_FTELL
1166GNULIB_FSEEKO
1167GNULIB_FSEEK
1168GNULIB_FSCANF
1169GNULIB_FREOPEN
1170GNULIB_FREAD
1171GNULIB_FPUTS
1172GNULIB_FPUTC
1173GNULIB_FPURGE
1174GNULIB_FPRINTF_POSIX
1175GNULIB_FPRINTF
1176GNULIB_FOPEN
1177GNULIB_FGETS
1178GNULIB_FGETC
1179GNULIB_FFLUSH
1180GNULIB_FDOPEN
1181GNULIB_FCLOSE
1182GNULIB_DPRINTF
1183FLOOR_LIBM
1184REPLACE_TRUNCL
1185REPLACE_TRUNCF
1186REPLACE_TRUNC
1187REPLACE_TANHF
1188REPLACE_TANF
1189REPLACE_SQRTL
1190REPLACE_SQRTF
1191REPLACE_SINHF
1192REPLACE_SINF
1193REPLACE_SIGNBIT_USING_BUILTINS
1194REPLACE_SIGNBIT
1195REPLACE_ROUNDL
1196REPLACE_ROUNDF
1197REPLACE_ROUND
1198REPLACE_RINTL
1199REPLACE_REMAINDERL
1200REPLACE_REMAINDERF
1201REPLACE_REMAINDER
1202REPLACE_NAN
1203REPLACE_MODFL
1204REPLACE_MODFF
1205REPLACE_MODF
1206REPLACE_LOGBL
1207REPLACE_LOGBF
1208REPLACE_LOGB
1209REPLACE_LOG2L
1210REPLACE_LOG2F
1211REPLACE_LOG2
1212REPLACE_LOG1PL
1213REPLACE_LOG1PF
1214REPLACE_LOG1P
1215REPLACE_LOG10L
1216REPLACE_LOG10F
1217REPLACE_LOG10
1218REPLACE_LOGL
1219REPLACE_LOGF
1220REPLACE_LOG
1221REPLACE_LDEXPL
1222REPLACE_ISNAN
1223REPLACE_ISINF
1224REPLACE_ISFINITE
1225REPLACE_ILOGBL
1226REPLACE_ILOGBF
1227REPLACE_ILOGB
1228REPLACE_HYPOTL
1229REPLACE_HYPOTF
1230REPLACE_HYPOT
1231REPLACE_HUGE_VAL
1232REPLACE_FREXPL
1233REPLACE_FREXP
1234REPLACE_FREXPF
1235REPLACE_FMODL
1236REPLACE_FMODF
1237REPLACE_FMOD
1238REPLACE_FMAL
1239REPLACE_FMAF
1240REPLACE_FMA
1241REPLACE_FLOORL
1242REPLACE_FLOORF
1243REPLACE_FLOOR
1244REPLACE_FABSL
1245REPLACE_EXP2L
1246REPLACE_EXP2
1247REPLACE_EXPM1L
1248REPLACE_EXPM1F
1249REPLACE_EXPM1
1250REPLACE_EXPL
1251REPLACE_EXPF
1252REPLACE_COSHF
1253REPLACE_COSF
1254REPLACE_CEILL
1255REPLACE_CEILF
1256REPLACE_CEIL
1257REPLACE_CBRTL
1258REPLACE_CBRTF
1259REPLACE_ATAN2F
1260REPLACE_ATANF
1261REPLACE_ASINF
1262REPLACE_ACOSF
1263HAVE_DECL_TRUNCL
1264HAVE_DECL_TRUNCF
1265HAVE_DECL_TRUNC
1266HAVE_DECL_TANL
1267HAVE_DECL_SQRTL
1268HAVE_DECL_SINL
1269HAVE_DECL_ROUNDL
1270HAVE_DECL_ROUNDF
1271HAVE_DECL_ROUND
1272HAVE_DECL_RINTF
1273HAVE_DECL_REMAINDERL
1274HAVE_DECL_REMAINDER
1275HAVE_DECL_LOGB
1276HAVE_DECL_LOG2L
1277HAVE_DECL_LOG2F
1278HAVE_DECL_LOG2
1279HAVE_DECL_LOG10L
1280HAVE_DECL_LOGL
1281HAVE_DECL_LDEXPL
1282HAVE_DECL_FREXPL
1283HAVE_DECL_FLOORL
1284HAVE_DECL_FLOORF
1285HAVE_DECL_EXPM1L
1286HAVE_DECL_EXP2L
1287HAVE_DECL_EXP2F
1288HAVE_DECL_EXP2
1289HAVE_DECL_EXPL
1290HAVE_DECL_COSL
1291HAVE_DECL_COPYSIGNF
1292HAVE_DECL_CEILL
1293HAVE_DECL_CEILF
1294HAVE_DECL_CBRTL
1295HAVE_DECL_CBRTF
1296HAVE_DECL_ATANL
1297HAVE_DECL_ASINL
1298HAVE_DECL_ACOSL
1299HAVE_TANHF
1300HAVE_TANL
1301HAVE_TANF
1302HAVE_SQRTL
1303HAVE_SQRTF
1304HAVE_SINHF
1305HAVE_SINL
1306HAVE_SINF
1307HAVE_RINTL
1308HAVE_RINT
1309HAVE_REMAINDERF
1310HAVE_REMAINDER
1311HAVE_POWF
1312HAVE_MODFL
1313HAVE_MODFF
1314HAVE_LOGBL
1315HAVE_LOGBF
1316HAVE_LOG1PL
1317HAVE_LOG1PF
1318HAVE_LOG1P
1319HAVE_LOG10L
1320HAVE_LOG10F
1321HAVE_LOGL
1322HAVE_LOGF
1323HAVE_LDEXPF
1324HAVE_ISNANL
1325HAVE_ISNAND
1326HAVE_ISNANF
1327HAVE_ILOGBL
1328HAVE_ILOGBF
1329HAVE_ILOGB
1330HAVE_HYPOTL
1331HAVE_HYPOTF
1332HAVE_FREXPF
1333HAVE_FMODL
1334HAVE_FMODF
1335HAVE_FMAL
1336HAVE_FMAF
1337HAVE_FMA
1338HAVE_FABSL
1339HAVE_FABSF
1340HAVE_EXPM1F
1341HAVE_EXPM1
1342HAVE_EXPL
1343HAVE_EXPF
1344HAVE_COSHF
1345HAVE_COSL
1346HAVE_COSF
1347HAVE_COPYSIGNL
1348HAVE_COPYSIGN
1349HAVE_CBRTL
1350HAVE_CBRTF
1351HAVE_CBRT
1352HAVE_ATAN2F
1353HAVE_ATANL
1354HAVE_ATANF
1355HAVE_ASINL
1356HAVE_ASINF
1357HAVE_ACOSL
1358HAVE_ACOSF
1359GNULIB_TRUNCL
1360GNULIB_TRUNCF
1361GNULIB_TRUNC
1362GNULIB_TANHF
1363GNULIB_TANL
1364GNULIB_TANF
1365GNULIB_SQRTL
1366GNULIB_SQRTF
1367GNULIB_SINHF
1368GNULIB_SINL
1369GNULIB_SINF
1370GNULIB_SIGNBIT
1371GNULIB_ROUNDL
1372GNULIB_ROUNDF
1373GNULIB_ROUND
1374GNULIB_RINTL
1375GNULIB_RINTF
1376GNULIB_RINT
1377GNULIB_REMAINDERL
1378GNULIB_REMAINDERF
1379GNULIB_REMAINDER
1380GNULIB_POWF
1381GNULIB_MODFL
1382GNULIB_MODFF
1383GNULIB_MODF
1384GNULIB_LOGBL
1385GNULIB_LOGBF
1386GNULIB_LOGB
1387GNULIB_LOG2L
1388GNULIB_LOG2F
1389GNULIB_LOG2
1390GNULIB_LOG1PL
1391GNULIB_LOG1PF
1392GNULIB_LOG1P
1393GNULIB_LOG10L
1394GNULIB_LOG10F
1395GNULIB_LOG10
1396GNULIB_LOGL
1397GNULIB_LOGF
1398GNULIB_LOG
1399GNULIB_LDEXPL
1400GNULIB_LDEXPF
1401GNULIB_ISNANL
1402GNULIB_ISNAND
1403GNULIB_ISNANF
1404GNULIB_ISNAN
1405GNULIB_ISINF
1406GNULIB_ISFINITE
1407GNULIB_ILOGBL
1408GNULIB_ILOGBF
1409GNULIB_ILOGB
1410GNULIB_HYPOTL
1411GNULIB_HYPOTF
1412GNULIB_HYPOT
1413GNULIB_FREXPL
1414GNULIB_FREXP
1415GNULIB_FREXPF
1416GNULIB_FMODL
1417GNULIB_FMODF
1418GNULIB_FMOD
1419GNULIB_FMAL
1420GNULIB_FMAF
1421GNULIB_FMA
1422GNULIB_FLOORL
1423GNULIB_FLOORF
1424GNULIB_FLOOR
1425GNULIB_FABSL
1426GNULIB_FABSF
1427GNULIB_EXPM1L
1428GNULIB_EXPM1F
1429GNULIB_EXPM1
1430GNULIB_EXP2L
1431GNULIB_EXP2F
1432GNULIB_EXP2
1433GNULIB_EXPL
1434GNULIB_EXPF
1435GNULIB_COSHF
1436GNULIB_COSL
1437GNULIB_COSF
1438GNULIB_COPYSIGNL
1439GNULIB_COPYSIGNF
1440GNULIB_COPYSIGN
1441GNULIB_CEILL
1442GNULIB_CEILF
1443GNULIB_CEIL
1444GNULIB_CBRTL
1445GNULIB_CBRTF
1446GNULIB_CBRT
1447GNULIB_ATAN2F
1448GNULIB_ATANL
1449GNULIB_ATANF
1450GNULIB_ASINL
1451GNULIB_ASINF
1452GNULIB_ACOSL
1453GNULIB_ACOSF
1454REPLACE_ITOLD
1455GL_GENERATE_FLOAT_H_FALSE
1456GL_GENERATE_FLOAT_H_TRUE
1457FLOAT_H
1458NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1459NEXT_FLOAT_H
1460NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1461NEXT_FCNTL_H
1462REPLACE_OPENAT
1463REPLACE_OPEN
1464REPLACE_FCNTL
1465REPLACE_CREAT
1466HAVE_OPENAT
1467HAVE_FCNTL
1468GNULIB_OPENAT
1469GNULIB_OPEN
1470GNULIB_NONBLOCKING
1471GNULIB_FCNTL
1472GNULIB_CREAT
1473UNDEFINE_STRTOK_R
1474REPLACE_STRSIGNAL
1475REPLACE_STRERROR_R
1476REPLACE_STRERROR
1477REPLACE_STRTOK_R
1478REPLACE_STRCASESTR
1479REPLACE_STRSTR
1480REPLACE_STRNLEN
1481REPLACE_STRNDUP
1482REPLACE_STRNCAT
1483REPLACE_STRDUP
1484REPLACE_STRCHRNUL
1485REPLACE_STPNCPY
1486REPLACE_MEMMEM
1487REPLACE_MEMCHR
1488HAVE_STRVERSCMP
1489HAVE_DECL_STRSIGNAL
1490HAVE_DECL_STRERROR_R
1491HAVE_DECL_STRTOK_R
1492HAVE_STRCASESTR
1493HAVE_STRSEP
1494HAVE_STRPBRK
1495HAVE_DECL_STRNLEN
1496HAVE_DECL_STRNDUP
1497HAVE_DECL_STRDUP
1498HAVE_STRCHRNUL
1499HAVE_STPNCPY
1500HAVE_STPCPY
1501HAVE_RAWMEMCHR
1502HAVE_DECL_MEMRCHR
1503HAVE_MEMPCPY
1504HAVE_DECL_MEMMEM
1505HAVE_FFSLL
1506HAVE_FFSL
1507HAVE_EXPLICIT_BZERO
1508HAVE_MBSLEN
1509GNULIB_STRVERSCMP
1510GNULIB_STRSIGNAL
1511GNULIB_STRERROR_R
1512GNULIB_STRERROR
1513GNULIB_MBSTOK_R
1514GNULIB_MBSSEP
1515GNULIB_MBSSPN
1516GNULIB_MBSPBRK
1517GNULIB_MBSCSPN
1518GNULIB_MBSCASESTR
1519GNULIB_MBSPCASECMP
1520GNULIB_MBSNCASECMP
1521GNULIB_MBSCASECMP
1522GNULIB_MBSSTR
1523GNULIB_MBSRCHR
1524GNULIB_MBSCHR
1525GNULIB_MBSNLEN
1526GNULIB_MBSLEN
1527GNULIB_STRTOK_R
1528GNULIB_STRCASESTR
1529GNULIB_STRSTR
1530GNULIB_STRSEP
1531GNULIB_STRPBRK
1532GNULIB_STRNLEN
1533GNULIB_STRNDUP
1534GNULIB_STRNCAT
1535GNULIB_STRDUP
1536GNULIB_STRCHRNUL
1537GNULIB_STPNCPY
1538GNULIB_STPCPY
1539GNULIB_RAWMEMCHR
1540GNULIB_MEMRCHR
1541GNULIB_MEMPCPY
1542GNULIB_MEMMEM
1543GNULIB_MEMCHR
1544GNULIB_FFSLL
1545GNULIB_FFSL
1546GNULIB_EXPLICIT_BZERO
1547EOVERFLOW_VALUE
1548EOVERFLOW_HIDDEN
1549ENOLINK_VALUE
1550ENOLINK_HIDDEN
1551EMULTIHOP_VALUE
1552EMULTIHOP_HIDDEN
1553GL_GENERATE_ERRNO_H_FALSE
1554GL_GENERATE_ERRNO_H_TRUE
1555ERRNO_H
1556NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1557NEXT_ERRNO_H
1558pkglibexecdir
1559lispdir
1560HAVE_WINSOCK2_H
1561HAVE_MSVC_INVALID_PARAMETER_HANDLER
1562LIB_CLOCK_GETTIME
1563UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1564UNISTD_H_HAVE_WINSOCK2_H
1565UNISTD_H_HAVE_SYS_RANDOM_H
1566REPLACE_WRITE
1567REPLACE_USLEEP
1568REPLACE_UNLINKAT
1569REPLACE_UNLINK
1570REPLACE_TTYNAME_R
1571REPLACE_TRUNCATE
1572REPLACE_SYMLINKAT
1573REPLACE_SYMLINK
1574REPLACE_SLEEP
1575REPLACE_RMDIR
1576REPLACE_READLINKAT
1577REPLACE_READLINK
1578REPLACE_READ
1579REPLACE_PWRITE
1580REPLACE_PREAD
1581REPLACE_LSEEK
1582REPLACE_LINKAT
1583REPLACE_LINK
1584REPLACE_LCHOWN
1585REPLACE_ISATTY
1586REPLACE_GETPASS
1587REPLACE_GETPAGESIZE
1588REPLACE_GETGROUPS
1589REPLACE_GETLOGIN_R
1590REPLACE_GETDTABLESIZE
1591REPLACE_GETDOMAINNAME
1592REPLACE_GETCWD
1593REPLACE_FTRUNCATE
1594REPLACE_FCHOWNAT
1595REPLACE_FACCESSAT
1596REPLACE_DUP2
1597REPLACE_DUP
1598REPLACE_CLOSE
1599REPLACE_CHOWN
1600REPLACE_ACCESS
1601HAVE_SYS_PARAM_H
1602HAVE_OS_H
1603HAVE_DECL_TTYNAME_R
1604HAVE_DECL_TRUNCATE
1605HAVE_DECL_SETHOSTNAME
1606HAVE_DECL_GETUSERSHELL
1607HAVE_DECL_GETPAGESIZE
1608HAVE_DECL_GETLOGIN_R
1609HAVE_DECL_GETLOGIN
1610HAVE_DECL_GETDOMAINNAME
1611HAVE_DECL_FDATASYNC
1612HAVE_DECL_FCHDIR
1613HAVE_DECL_ENVIRON
1614HAVE_USLEEP
1615HAVE_UNLINKAT
1616HAVE_SYMLINKAT
1617HAVE_SYMLINK
1618HAVE_SLEEP
1619HAVE_SETHOSTNAME
1620HAVE_READLINKAT
1621HAVE_READLINK
1622HAVE_PWRITE
1623HAVE_PREAD
1624HAVE_PIPE2
1625HAVE_PIPE
1626HAVE_LINKAT
1627HAVE_LINK
1628HAVE_LCHOWN
1629HAVE_GROUP_MEMBER
1630HAVE_GETPASS
1631HAVE_GETPAGESIZE
1632HAVE_GETLOGIN
1633HAVE_GETHOSTNAME
1634HAVE_GETGROUPS
1635HAVE_GETENTROPY
1636HAVE_GETDTABLESIZE
1637HAVE_FTRUNCATE
1638HAVE_FSYNC
1639HAVE_FDATASYNC
1640HAVE_FCHOWNAT
1641HAVE_FCHDIR
1642HAVE_FACCESSAT
1643HAVE_EUIDACCESS
1644HAVE_DUP3
1645HAVE_COPY_FILE_RANGE
1646HAVE_CHOWN
1647GNULIB_WRITE
1648GNULIB_USLEEP
1649GNULIB_UNLINKAT
1650GNULIB_UNLINK
1651GNULIB_UNISTD_H_SIGPIPE
1652GNULIB_UNISTD_H_NONBLOCKING
1653GNULIB_TTYNAME_R
1654GNULIB_TRUNCATE
1655GNULIB_SYMLINKAT
1656GNULIB_SYMLINK
1657GNULIB_SLEEP
1658GNULIB_SETHOSTNAME
1659GNULIB_RMDIR
1660GNULIB_READLINKAT
1661GNULIB_READLINK
1662GNULIB_READ
1663GNULIB_PWRITE
1664GNULIB_PREAD
1665GNULIB_PIPE2
1666GNULIB_PIPE
1667GNULIB_LSEEK
1668GNULIB_LINKAT
1669GNULIB_LINK
1670GNULIB_LCHOWN
1671GNULIB_ISATTY
1672GNULIB_GROUP_MEMBER
1673GNULIB_GETUSERSHELL
1674GNULIB_GETPASS
1675GNULIB_GETPAGESIZE
1676GNULIB_GETOPT_POSIX
1677GNULIB_GETLOGIN_R
1678GNULIB_GETLOGIN
1679GNULIB_GETHOSTNAME
1680GNULIB_GETGROUPS
1681GNULIB_GETENTROPY
1682GNULIB_GETDTABLESIZE
1683GNULIB_GETDOMAINNAME
1684GNULIB_GETCWD
1685GNULIB_FTRUNCATE
1686GNULIB_FSYNC
1687GNULIB_FDATASYNC
1688GNULIB_FCHOWNAT
1689GNULIB_FCHDIR
1690GNULIB_FACCESSAT
1691GNULIB_EUIDACCESS
1692GNULIB_ENVIRON
1693GNULIB_DUP3
1694GNULIB_DUP2
1695GNULIB_DUP
1696GNULIB_COPY_FILE_RANGE
1697GNULIB_CLOSE
1698GNULIB_CHOWN
1699GNULIB_CHDIR
1700GNULIB_ACCESS
1701REPLACE_WCTOMB
1702REPLACE_UNSETENV
1703REPLACE_STRTOLD
1704REPLACE_STRTOD
1705REPLACE_SETSTATE
1706REPLACE_SETENV
1707REPLACE_REALPATH
1708REPLACE_REALLOC
1709REPLACE_RANDOM_R
1710REPLACE_RANDOM
1711REPLACE_QSORT_R
1712REPLACE_PUTENV
1713REPLACE_PTSNAME_R
1714REPLACE_PTSNAME
1715REPLACE_MKSTEMP
1716REPLACE_MBTOWC
1717REPLACE_MALLOC
1718REPLACE_INITSTATE
1719REPLACE_CANONICALIZE_FILE_NAME
1720REPLACE_CALLOC
1721HAVE_DECL_UNSETENV
1722HAVE_UNLOCKPT
1723HAVE_SYS_LOADAVG_H
1724HAVE_STRUCT_RANDOM_DATA
1725HAVE_STRTOULL
1726HAVE_STRTOLL
1727HAVE_STRTOLD
1728HAVE_STRTOD
1729HAVE_DECL_SETSTATE
1730HAVE_SETSTATE
1731HAVE_DECL_SETENV
1732HAVE_SETENV
1733HAVE_SECURE_GETENV
1734HAVE_RPMATCH
1735HAVE_REALPATH
1736HAVE_REALLOCARRAY
1737HAVE_RANDOM_R
1738HAVE_RANDOM_H
1739HAVE_RANDOM
1740HAVE_QSORT_R
1741HAVE_PTSNAME_R
1742HAVE_PTSNAME
1743HAVE_POSIX_OPENPT
1744HAVE_MKSTEMPS
1745HAVE_MKSTEMP
1746HAVE_MKOSTEMPS
1747HAVE_MKOSTEMP
1748HAVE_MKDTEMP
1749HAVE_MBTOWC
1750HAVE_DECL_INITSTATE
1751HAVE_INITSTATE
1752HAVE_GRANTPT
1753HAVE_GETSUBOPT
1754HAVE_DECL_GETLOADAVG
1755HAVE_CANONICALIZE_FILE_NAME
1756HAVE_ATOLL
1757HAVE__EXIT
1758GNULIB_WCTOMB
1759GNULIB_UNSETENV
1760GNULIB_UNLOCKPT
1761GNULIB_SYSTEM_POSIX
1762GNULIB_STRTOULL
1763GNULIB_STRTOLL
1764GNULIB_STRTOLD
1765GNULIB_STRTOD
1766GNULIB_SETENV
1767GNULIB_SECURE_GETENV
1768GNULIB_RPMATCH
1769GNULIB_REALPATH
1770GNULIB_REALLOC_POSIX
1771GNULIB_REALLOCARRAY
1772GNULIB_RANDOM_R
1773GNULIB_RANDOM
1774GNULIB_QSORT_R
1775GNULIB_PUTENV
1776GNULIB_PTSNAME_R
1777GNULIB_PTSNAME
1778GNULIB_POSIX_OPENPT
1779GNULIB_MKSTEMPS
1780GNULIB_MKSTEMP
1781GNULIB_MKOSTEMPS
1782GNULIB_MKOSTEMP
1783GNULIB_MKDTEMP
1784GNULIB_MBTOWC
1785GNULIB_MALLOC_POSIX
1786GNULIB_GRANTPT
1787GNULIB_GETSUBOPT
1788GNULIB_GETLOADAVG
1789GNULIB_CANONICALIZE_FILE_NAME
1790GNULIB_CALLOC_POSIX
1791GNULIB_ATOLL
1792GNULIB__EXIT
1793APPLE_UNIVERSAL_BUILD
1794HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1795GNULIB_OVERRIDES_WINT_T
1796GL_GENERATE_BYTESWAP_H_FALSE
1797GL_GENERATE_BYTESWAP_H_TRUE
1798BYTESWAP_H
1799LOCALE_FR
1800REPLACE_WCSTOK
1801REPLACE_WCSFTIME
1802REPLACE_WCSWIDTH
1803REPLACE_WCWIDTH
1804REPLACE_WCSNRTOMBS
1805REPLACE_WCSRTOMBS
1806REPLACE_WCRTOMB
1807REPLACE_MBSNRTOWCS
1808REPLACE_MBSRTOWCS
1809REPLACE_MBRLEN
1810REPLACE_MBRTOWC
1811REPLACE_MBSINIT
1812REPLACE_WCTOB
1813REPLACE_BTOWC
1814REPLACE_MBSTATE_T
1815HAVE_DECL_WCWIDTH
1816HAVE_DECL_WCTOB
1817HAVE_WCSFTIME
1818HAVE_WCSWIDTH
1819HAVE_WCSTOK
1820HAVE_WCSSTR
1821HAVE_WCSPBRK
1822HAVE_WCSSPN
1823HAVE_WCSCSPN
1824HAVE_WCSRCHR
1825HAVE_WCSCHR
1826HAVE_WCSDUP
1827HAVE_WCSXFRM
1828HAVE_WCSCOLL
1829HAVE_WCSNCASECMP
1830HAVE_WCSCASECMP
1831HAVE_WCSNCMP
1832HAVE_WCSCMP
1833HAVE_WCSNCAT
1834HAVE_WCSCAT
1835HAVE_WCPNCPY
1836HAVE_WCSNCPY
1837HAVE_WCPCPY
1838HAVE_WCSCPY
1839HAVE_WCSNLEN
1840HAVE_WCSLEN
1841HAVE_WMEMSET
1842HAVE_WMEMPCPY
1843HAVE_WMEMMOVE
1844HAVE_WMEMCPY
1845HAVE_WMEMCMP
1846HAVE_WMEMCHR
1847HAVE_WCSNRTOMBS
1848HAVE_WCSRTOMBS
1849HAVE_WCRTOMB
1850HAVE_MBSNRTOWCS
1851HAVE_MBSRTOWCS
1852HAVE_MBRLEN
1853HAVE_MBRTOWC
1854HAVE_MBSINIT
1855HAVE_BTOWC
1856GNULIB_WCSFTIME
1857GNULIB_WCSWIDTH
1858GNULIB_WCSTOK
1859GNULIB_WCSSTR
1860GNULIB_WCSPBRK
1861GNULIB_WCSSPN
1862GNULIB_WCSCSPN
1863GNULIB_WCSRCHR
1864GNULIB_WCSCHR
1865GNULIB_WCSDUP
1866GNULIB_WCSXFRM
1867GNULIB_WCSCOLL
1868GNULIB_WCSNCASECMP
1869GNULIB_WCSCASECMP
1870GNULIB_WCSNCMP
1871GNULIB_WCSCMP
1872GNULIB_WCSNCAT
1873GNULIB_WCSCAT
1874GNULIB_WCPNCPY
1875GNULIB_WCSNCPY
1876GNULIB_WCPCPY
1877GNULIB_WCSCPY
1878GNULIB_WCSNLEN
1879GNULIB_WCSLEN
1880GNULIB_WMEMSET
1881GNULIB_WMEMPCPY
1882GNULIB_WMEMMOVE
1883GNULIB_WMEMCPY
1884GNULIB_WMEMCMP
1885GNULIB_WMEMCHR
1886GNULIB_WCWIDTH
1887GNULIB_WCSNRTOMBS
1888GNULIB_WCSRTOMBS
1889GNULIB_WCRTOMB
1890GNULIB_MBSNRTOWCS
1891GNULIB_MBSRTOWCS
1892GNULIB_MBRLEN
1893GNULIB_MBRTOWC
1894GNULIB_MBSINIT
1895GNULIB_WCTOB
1896GNULIB_BTOWC
1897HAVE_ALLOCA_H
1898GL_GENERATE_ALLOCA_H_FALSE
1899GL_GENERATE_ALLOCA_H_TRUE
1900ALLOCA_H
1901ALLOCA
1902LTALLOCA
1903GL_COND_LIBTOOL_FALSE
1904GL_COND_LIBTOOL_TRUE
1905LTLIBREADLINE
1906LIBREADLINE
1907GSL_LIBS
1908GSL_CFLAGS
1909WITH_PERL_MODULE_FALSE
1910WITH_PERL_MODULE_TRUE
1911WITH_PERL_MODULE
1912LIBXML2_LIBS
1913LIBXML2_CFLAGS
1914PSQL_SUPPORT
1915PG_LIBS
1916PG_LDFLAGS
1917PG_CFLAGS
1918PG_CONFIG
1919NEXT_AS_FIRST_DIRECTIVE_GTK_GTK_H
1920NEXT_GTK_GTK_H
1921PRAGMA_COLUMNS
1922PRAGMA_SYSTEM_HEADER
1923INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1924INCLUDE_NEXT
1925GLIB_COMPILE_RESOURCES
1926GLIB_GENMARSHAL
1927SPREAD_SHEET_WIDGET_LIBS
1928SPREAD_SHEET_WIDGET_CFLAGS
1929GLIB_LIBS
1930GLIB_CFLAGS
1931GTKSOURCEVIEW_LIBS
1932GTKSOURCEVIEW_CFLAGS
1933GTK_LIBS
1934GTK_CFLAGS
1935GTHREAD_LIBS
1936GTHREAD_CFLAGS
1937HAVE_GUI_FALSE
1938HAVE_GUI_TRUE
1939XMLLINT
1940CAIRO_LIBS
1941CAIRO_CFLAGS
1942HAVE_CAIRO_FALSE
1943HAVE_CAIRO_TRUE
1944PSPPIRE_LDFLAGS
1945PSPP_LDFLAGS
1946XGETTEXT
1947MSGFMT
1948POSUB
1949LTLIBINTL
1950LIBINTL
1951INTLLIBS
1952LTLIBICONV
1953LIBICONV
1954USE_NLS
1955INTL_MACOSX_LIBS
1956PYTHON
1957VERSION_FOR_PERL
1958PERL
1959EXEEXT_FOR_BUILD
1960CC_FOR_BUILD
1961cc_is_gcc_FALSE
1962cc_is_gcc_TRUE
1963HAVE_DOT_FALSE
1964HAVE_DOT_TRUE
1965BROKEN_DOCBOOK_XML_FALSE
1966BROKEN_DOCBOOK_XML_TRUE
1967AM_MAKEINFOFLAGS
1968PKG_CONFIG_LIBDIR
1969PKG_CONFIG_PATH
1970PKG_CONFIG
1971LT_SYS_LIBRARY_PATH
1972OTOOL64
1973OTOOL
1974LIPO
1975NMEDIT
1976DSYMUTIL
1977MANIFEST_TOOL
1978ac_ct_AR
1979LN_S
1980NM
1981ac_ct_DUMPBIN
1982DUMPBIN
1983LD
1984FGREP
1985SED
1986LIBTOOL
1987OBJDUMP
1988DLLTOOL
1989AS
1990host_os
1991host_vendor
1992host_cpu
1993host
1994build_os
1995build_vendor
1996build_cpu
1997build
1998RANLIB
1999ARFLAGS
2000AR
2001EGREP
2002GREP
2003CPP
2004am__fastdepCC_FALSE
2005am__fastdepCC_TRUE
2006CCDEPMODE
2007am__nodep
2008AMDEPBACKSLASH
2009AMDEP_FALSE
2010AMDEP_TRUE
2011am__include
2012DEPDIR
2013OBJEXT
2014EXEEXT
2015ac_ct_CC
2016CPPFLAGS
2017LDFLAGS
2018CFLAGS
2019CC
2020AM_BACKSLASH
2021AM_DEFAULT_VERBOSITY
2022AM_DEFAULT_V
2023AM_V
2024am__untar
2025am__tar
2026AMTAR
2027am__leading_dot
2028SET_MAKE
2029AWK
2030mkdir_p
2031MKDIR_P
2032INSTALL_STRIP_PROGRAM
2033STRIP
2034install_sh
2035MAKEINFO
2036AUTOHEADER
2037AUTOMAKE
2038AUTOCONF
2039ACLOCAL
2040VERSION
2041PACKAGE
2042CYGPATH_W
2043am__isrc
2044INSTALL_DATA
2045INSTALL_SCRIPT
2046INSTALL_PROGRAM
2047target_alias
2048host_alias
2049build_alias
2050LIBS
2051ECHO_T
2052ECHO_N
2053ECHO_C
2054DEFS
2055mandir
2056localedir
2057libdir
2058psdir
2059pdfdir
2060dvidir
2061htmldir
2062infodir
2063docdir
2064oldincludedir
2065includedir
2066runstatedir
2067localstatedir
2068sharedstatedir
2069sysconfdir
2070datadir
2071datarootdir
2072libexecdir
2073sbindir
2074bindir
2075program_transform_name
2076prefix
2077exec_prefix
2078PACKAGE_URL
2079PACKAGE_BUGREPORT
2080PACKAGE_STRING
2081PACKAGE_VERSION
2082PACKAGE_TARNAME
2083PACKAGE_NAME
2084PATH_SEPARATOR
2085SHELL
2086am__quote'
2087ac_subst_files=''
2088ac_user_opts='
2089enable_option_checking
2090enable_silent_rules
2091enable_dependency_tracking
2092enable_largefile
2093enable_threads
2094enable_shared
2095enable_static
2096with_pic
2097enable_fast_install
2098with_aix_soname
2099with_gnu_ld
2100with_sysroot
2101enable_libtool_lock
2102enable_Werror
2103enable_rpath
2104with_libiconv_prefix
2105enable_nls
2106with_libintl_prefix
2107with_cairo
2108with_gui
2109with_libpq
2110with_perl_module
2111with_libreadline_prefix
2112with_libhistory_prefix
2113enable_cross_guesses
2114enable_assert
2115with_included_regex
2116enable_relocatable
2117with_packager
2118with_packager_version
2119with_packager_bug_reports
2120'
2121      ac_precious_vars='build_alias
2122host_alias
2123target_alias
2124CC
2125CFLAGS
2126LDFLAGS
2127LIBS
2128CPPFLAGS
2129CPP
2130LT_SYS_LIBRARY_PATH
2131PKG_CONFIG
2132PKG_CONFIG_PATH
2133PKG_CONFIG_LIBDIR
2134PYTHON
2135PSPP_LDFLAGS
2136PSPPIRE_LDFLAGS
2137CAIRO_CFLAGS
2138CAIRO_LIBS
2139GTHREAD_CFLAGS
2140GTHREAD_LIBS
2141GTK_CFLAGS
2142GTK_LIBS
2143GTKSOURCEVIEW_CFLAGS
2144GTKSOURCEVIEW_LIBS
2145GLIB_CFLAGS
2146GLIB_LIBS
2147SPREAD_SHEET_WIDGET_CFLAGS
2148SPREAD_SHEET_WIDGET_LIBS
2149GLIB_GENMARSHAL
2150PG_CONFIG
2151LIBXML2_CFLAGS
2152LIBXML2_LIBS
2153GSL_CFLAGS
2154GSL_LIBS'
2155
2156
2157# Initialize some variables set by options.
2158ac_init_help=
2159ac_init_version=false
2160ac_unrecognized_opts=
2161ac_unrecognized_sep=
2162# The variables have the same names as the options, with
2163# dashes changed to underlines.
2164cache_file=/dev/null
2165exec_prefix=NONE
2166no_create=
2167no_recursion=
2168prefix=NONE
2169program_prefix=NONE
2170program_suffix=NONE
2171program_transform_name=s,x,x,
2172silent=
2173site=
2174srcdir=
2175verbose=
2176x_includes=NONE
2177x_libraries=NONE
2178
2179# Installation directory options.
2180# These are left unexpanded so users can "make install exec_prefix=/foo"
2181# and all the variables that are supposed to be based on exec_prefix
2182# by default will actually change.
2183# Use braces instead of parens because sh, perl, etc. also accept them.
2184# (The list follows the same order as the GNU Coding Standards.)
2185bindir='${exec_prefix}/bin'
2186sbindir='${exec_prefix}/sbin'
2187libexecdir='${exec_prefix}/libexec'
2188datarootdir='${prefix}/share'
2189datadir='${datarootdir}'
2190sysconfdir='${prefix}/etc'
2191sharedstatedir='${prefix}/com'
2192localstatedir='${prefix}/var'
2193runstatedir='${localstatedir}/run'
2194includedir='${prefix}/include'
2195oldincludedir='/usr/include'
2196docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2197infodir='${datarootdir}/info'
2198htmldir='${docdir}'
2199dvidir='${docdir}'
2200pdfdir='${docdir}'
2201psdir='${docdir}'
2202libdir='${exec_prefix}/lib'
2203localedir='${datarootdir}/locale'
2204mandir='${datarootdir}/man'
2205
2206ac_prev=
2207ac_dashdash=
2208for ac_option
2209do
2210  # If the previous option needs an argument, assign it.
2211  if test -n "$ac_prev"; then
2212    eval $ac_prev=\$ac_option
2213    ac_prev=
2214    continue
2215  fi
2216
2217  case $ac_option in
2218  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2219  *=)   ac_optarg= ;;
2220  *)    ac_optarg=yes ;;
2221  esac
2222
2223  # Accept the important Cygnus configure options, so we can diagnose typos.
2224
2225  case $ac_dashdash$ac_option in
2226  --)
2227    ac_dashdash=yes ;;
2228
2229  -bindir | --bindir | --bindi | --bind | --bin | --bi)
2230    ac_prev=bindir ;;
2231  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2232    bindir=$ac_optarg ;;
2233
2234  -build | --build | --buil | --bui | --bu)
2235    ac_prev=build_alias ;;
2236  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2237    build_alias=$ac_optarg ;;
2238
2239  -cache-file | --cache-file | --cache-fil | --cache-fi \
2240  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2241    ac_prev=cache_file ;;
2242  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2243  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2244    cache_file=$ac_optarg ;;
2245
2246  --config-cache | -C)
2247    cache_file=config.cache ;;
2248
2249  -datadir | --datadir | --datadi | --datad)
2250    ac_prev=datadir ;;
2251  -datadir=* | --datadir=* | --datadi=* | --datad=*)
2252    datadir=$ac_optarg ;;
2253
2254  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2255  | --dataroo | --dataro | --datar)
2256    ac_prev=datarootdir ;;
2257  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2258  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2259    datarootdir=$ac_optarg ;;
2260
2261  -disable-* | --disable-*)
2262    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2263    # Reject names that are not valid shell variable names.
2264    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2265      as_fn_error $? "invalid feature name: $ac_useropt"
2266    ac_useropt_orig=$ac_useropt
2267    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2268    case $ac_user_opts in
2269      *"
2270"enable_$ac_useropt"
2271"*) ;;
2272      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2273	 ac_unrecognized_sep=', ';;
2274    esac
2275    eval enable_$ac_useropt=no ;;
2276
2277  -docdir | --docdir | --docdi | --doc | --do)
2278    ac_prev=docdir ;;
2279  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2280    docdir=$ac_optarg ;;
2281
2282  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2283    ac_prev=dvidir ;;
2284  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2285    dvidir=$ac_optarg ;;
2286
2287  -enable-* | --enable-*)
2288    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2289    # Reject names that are not valid shell variable names.
2290    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2291      as_fn_error $? "invalid feature name: $ac_useropt"
2292    ac_useropt_orig=$ac_useropt
2293    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2294    case $ac_user_opts in
2295      *"
2296"enable_$ac_useropt"
2297"*) ;;
2298      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2299	 ac_unrecognized_sep=', ';;
2300    esac
2301    eval enable_$ac_useropt=\$ac_optarg ;;
2302
2303  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2304  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2305  | --exec | --exe | --ex)
2306    ac_prev=exec_prefix ;;
2307  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2308  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2309  | --exec=* | --exe=* | --ex=*)
2310    exec_prefix=$ac_optarg ;;
2311
2312  -gas | --gas | --ga | --g)
2313    # Obsolete; use --with-gas.
2314    with_gas=yes ;;
2315
2316  -help | --help | --hel | --he | -h)
2317    ac_init_help=long ;;
2318  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2319    ac_init_help=recursive ;;
2320  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2321    ac_init_help=short ;;
2322
2323  -host | --host | --hos | --ho)
2324    ac_prev=host_alias ;;
2325  -host=* | --host=* | --hos=* | --ho=*)
2326    host_alias=$ac_optarg ;;
2327
2328  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2329    ac_prev=htmldir ;;
2330  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2331  | --ht=*)
2332    htmldir=$ac_optarg ;;
2333
2334  -includedir | --includedir | --includedi | --included | --include \
2335  | --includ | --inclu | --incl | --inc)
2336    ac_prev=includedir ;;
2337  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2338  | --includ=* | --inclu=* | --incl=* | --inc=*)
2339    includedir=$ac_optarg ;;
2340
2341  -infodir | --infodir | --infodi | --infod | --info | --inf)
2342    ac_prev=infodir ;;
2343  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2344    infodir=$ac_optarg ;;
2345
2346  -libdir | --libdir | --libdi | --libd)
2347    ac_prev=libdir ;;
2348  -libdir=* | --libdir=* | --libdi=* | --libd=*)
2349    libdir=$ac_optarg ;;
2350
2351  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2352  | --libexe | --libex | --libe)
2353    ac_prev=libexecdir ;;
2354  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2355  | --libexe=* | --libex=* | --libe=*)
2356    libexecdir=$ac_optarg ;;
2357
2358  -localedir | --localedir | --localedi | --localed | --locale)
2359    ac_prev=localedir ;;
2360  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2361    localedir=$ac_optarg ;;
2362
2363  -localstatedir | --localstatedir | --localstatedi | --localstated \
2364  | --localstate | --localstat | --localsta | --localst | --locals)
2365    ac_prev=localstatedir ;;
2366  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2367  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2368    localstatedir=$ac_optarg ;;
2369
2370  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2371    ac_prev=mandir ;;
2372  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2373    mandir=$ac_optarg ;;
2374
2375  -nfp | --nfp | --nf)
2376    # Obsolete; use --without-fp.
2377    with_fp=no ;;
2378
2379  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2380  | --no-cr | --no-c | -n)
2381    no_create=yes ;;
2382
2383  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2384  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2385    no_recursion=yes ;;
2386
2387  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2388  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2389  | --oldin | --oldi | --old | --ol | --o)
2390    ac_prev=oldincludedir ;;
2391  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2392  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2393  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2394    oldincludedir=$ac_optarg ;;
2395
2396  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2397    ac_prev=prefix ;;
2398  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2399    prefix=$ac_optarg ;;
2400
2401  -program-prefix | --program-prefix | --program-prefi | --program-pref \
2402  | --program-pre | --program-pr | --program-p)
2403    ac_prev=program_prefix ;;
2404  -program-prefix=* | --program-prefix=* | --program-prefi=* \
2405  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2406    program_prefix=$ac_optarg ;;
2407
2408  -program-suffix | --program-suffix | --program-suffi | --program-suff \
2409  | --program-suf | --program-su | --program-s)
2410    ac_prev=program_suffix ;;
2411  -program-suffix=* | --program-suffix=* | --program-suffi=* \
2412  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2413    program_suffix=$ac_optarg ;;
2414
2415  -program-transform-name | --program-transform-name \
2416  | --program-transform-nam | --program-transform-na \
2417  | --program-transform-n | --program-transform- \
2418  | --program-transform | --program-transfor \
2419  | --program-transfo | --program-transf \
2420  | --program-trans | --program-tran \
2421  | --progr-tra | --program-tr | --program-t)
2422    ac_prev=program_transform_name ;;
2423  -program-transform-name=* | --program-transform-name=* \
2424  | --program-transform-nam=* | --program-transform-na=* \
2425  | --program-transform-n=* | --program-transform-=* \
2426  | --program-transform=* | --program-transfor=* \
2427  | --program-transfo=* | --program-transf=* \
2428  | --program-trans=* | --program-tran=* \
2429  | --progr-tra=* | --program-tr=* | --program-t=*)
2430    program_transform_name=$ac_optarg ;;
2431
2432  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2433    ac_prev=pdfdir ;;
2434  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2435    pdfdir=$ac_optarg ;;
2436
2437  -psdir | --psdir | --psdi | --psd | --ps)
2438    ac_prev=psdir ;;
2439  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2440    psdir=$ac_optarg ;;
2441
2442  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2443  | -silent | --silent | --silen | --sile | --sil)
2444    silent=yes ;;
2445
2446  -runstatedir | --runstatedir | --runstatedi | --runstated \
2447  | --runstate | --runstat | --runsta | --runst | --runs \
2448  | --run | --ru | --r)
2449    ac_prev=runstatedir ;;
2450  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2451  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2452  | --run=* | --ru=* | --r=*)
2453    runstatedir=$ac_optarg ;;
2454
2455  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2456    ac_prev=sbindir ;;
2457  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2458  | --sbi=* | --sb=*)
2459    sbindir=$ac_optarg ;;
2460
2461  -sharedstatedir | --sharedstatedir | --sharedstatedi \
2462  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2463  | --sharedst | --shareds | --shared | --share | --shar \
2464  | --sha | --sh)
2465    ac_prev=sharedstatedir ;;
2466  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2467  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2468  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2469  | --sha=* | --sh=*)
2470    sharedstatedir=$ac_optarg ;;
2471
2472  -site | --site | --sit)
2473    ac_prev=site ;;
2474  -site=* | --site=* | --sit=*)
2475    site=$ac_optarg ;;
2476
2477  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2478    ac_prev=srcdir ;;
2479  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2480    srcdir=$ac_optarg ;;
2481
2482  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2483  | --syscon | --sysco | --sysc | --sys | --sy)
2484    ac_prev=sysconfdir ;;
2485  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2486  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2487    sysconfdir=$ac_optarg ;;
2488
2489  -target | --target | --targe | --targ | --tar | --ta | --t)
2490    ac_prev=target_alias ;;
2491  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2492    target_alias=$ac_optarg ;;
2493
2494  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2495    verbose=yes ;;
2496
2497  -version | --version | --versio | --versi | --vers | -V)
2498    ac_init_version=: ;;
2499
2500  -with-* | --with-*)
2501    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2502    # Reject names that are not valid shell variable names.
2503    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2504      as_fn_error $? "invalid package name: $ac_useropt"
2505    ac_useropt_orig=$ac_useropt
2506    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2507    case $ac_user_opts in
2508      *"
2509"with_$ac_useropt"
2510"*) ;;
2511      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2512	 ac_unrecognized_sep=', ';;
2513    esac
2514    eval with_$ac_useropt=\$ac_optarg ;;
2515
2516  -without-* | --without-*)
2517    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2518    # Reject names that are not valid shell variable names.
2519    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2520      as_fn_error $? "invalid package name: $ac_useropt"
2521    ac_useropt_orig=$ac_useropt
2522    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2523    case $ac_user_opts in
2524      *"
2525"with_$ac_useropt"
2526"*) ;;
2527      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2528	 ac_unrecognized_sep=', ';;
2529    esac
2530    eval with_$ac_useropt=no ;;
2531
2532  --x)
2533    # Obsolete; use --with-x.
2534    with_x=yes ;;
2535
2536  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2537  | --x-incl | --x-inc | --x-in | --x-i)
2538    ac_prev=x_includes ;;
2539  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2540  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2541    x_includes=$ac_optarg ;;
2542
2543  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2544  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2545    ac_prev=x_libraries ;;
2546  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2547  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2548    x_libraries=$ac_optarg ;;
2549
2550  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2551Try \`$0 --help' for more information"
2552    ;;
2553
2554  *=*)
2555    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2556    # Reject names that are not valid shell variable names.
2557    case $ac_envvar in #(
2558      '' | [0-9]* | *[!_$as_cr_alnum]* )
2559      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2560    esac
2561    eval $ac_envvar=\$ac_optarg
2562    export $ac_envvar ;;
2563
2564  *)
2565    # FIXME: should be removed in autoconf 3.0.
2566    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2567    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2568      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2569    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2570    ;;
2571
2572  esac
2573done
2574
2575if test -n "$ac_prev"; then
2576  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2577  as_fn_error $? "missing argument to $ac_option"
2578fi
2579
2580if test -n "$ac_unrecognized_opts"; then
2581  case $enable_option_checking in
2582    no) ;;
2583    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2584    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2585  esac
2586fi
2587
2588# Check all directory arguments for consistency.
2589for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2590		datadir sysconfdir sharedstatedir localstatedir includedir \
2591		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2592		libdir localedir mandir runstatedir
2593do
2594  eval ac_val=\$$ac_var
2595  # Remove trailing slashes.
2596  case $ac_val in
2597    */ )
2598      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2599      eval $ac_var=\$ac_val;;
2600  esac
2601  # Be sure to have absolute directory names.
2602  case $ac_val in
2603    [\\/$]* | ?:[\\/]* )  continue;;
2604    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2605  esac
2606  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2607done
2608
2609# There might be people who depend on the old broken behavior: `$host'
2610# used to hold the argument of --host etc.
2611# FIXME: To remove some day.
2612build=$build_alias
2613host=$host_alias
2614target=$target_alias
2615
2616# FIXME: To remove some day.
2617if test "x$host_alias" != x; then
2618  if test "x$build_alias" = x; then
2619    cross_compiling=maybe
2620  elif test "x$build_alias" != "x$host_alias"; then
2621    cross_compiling=yes
2622  fi
2623fi
2624
2625ac_tool_prefix=
2626test -n "$host_alias" && ac_tool_prefix=$host_alias-
2627
2628test "$silent" = yes && exec 6>/dev/null
2629
2630
2631ac_pwd=`pwd` && test -n "$ac_pwd" &&
2632ac_ls_di=`ls -di .` &&
2633ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2634  as_fn_error $? "working directory cannot be determined"
2635test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2636  as_fn_error $? "pwd does not report name of working directory"
2637
2638
2639# Find the source files, if location was not specified.
2640if test -z "$srcdir"; then
2641  ac_srcdir_defaulted=yes
2642  # Try the directory containing this script, then the parent directory.
2643  ac_confdir=`$as_dirname -- "$as_myself" ||
2644$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2645	 X"$as_myself" : 'X\(//\)[^/]' \| \
2646	 X"$as_myself" : 'X\(//\)$' \| \
2647	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2648$as_echo X"$as_myself" |
2649    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2650	    s//\1/
2651	    q
2652	  }
2653	  /^X\(\/\/\)[^/].*/{
2654	    s//\1/
2655	    q
2656	  }
2657	  /^X\(\/\/\)$/{
2658	    s//\1/
2659	    q
2660	  }
2661	  /^X\(\/\).*/{
2662	    s//\1/
2663	    q
2664	  }
2665	  s/.*/./; q'`
2666  srcdir=$ac_confdir
2667  if test ! -r "$srcdir/$ac_unique_file"; then
2668    srcdir=..
2669  fi
2670else
2671  ac_srcdir_defaulted=no
2672fi
2673if test ! -r "$srcdir/$ac_unique_file"; then
2674  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2675  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2676fi
2677ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2678ac_abs_confdir=`(
2679	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2680	pwd)`
2681# When building in place, set srcdir=.
2682if test "$ac_abs_confdir" = "$ac_pwd"; then
2683  srcdir=.
2684fi
2685# Remove unnecessary trailing slashes from srcdir.
2686# Double slashes in file names in object file debugging info
2687# mess up M-x gdb in Emacs.
2688case $srcdir in
2689*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2690esac
2691for ac_var in $ac_precious_vars; do
2692  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2693  eval ac_env_${ac_var}_value=\$${ac_var}
2694  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2695  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2696done
2697
2698#
2699# Report the --help message.
2700#
2701if test "$ac_init_help" = "long"; then
2702  # Omit some internal or obsolete options to make the list less imposing.
2703  # This message is too long to be a string in the A/UX 3.1 sh.
2704  cat <<_ACEOF
2705\`configure' configures GNU PSPP 1.4.1 to adapt to many kinds of systems.
2706
2707Usage: $0 [OPTION]... [VAR=VALUE]...
2708
2709To assign environment variables (e.g., CC, CFLAGS...), specify them as
2710VAR=VALUE.  See below for descriptions of some of the useful variables.
2711
2712Defaults for the options are specified in brackets.
2713
2714Configuration:
2715  -h, --help              display this help and exit
2716      --help=short        display options specific to this package
2717      --help=recursive    display the short help of all the included packages
2718  -V, --version           display version information and exit
2719  -q, --quiet, --silent   do not print \`checking ...' messages
2720      --cache-file=FILE   cache test results in FILE [disabled]
2721  -C, --config-cache      alias for \`--cache-file=config.cache'
2722  -n, --no-create         do not create output files
2723      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2724
2725Installation directories:
2726  --prefix=PREFIX         install architecture-independent files in PREFIX
2727                          [$ac_default_prefix]
2728  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2729                          [PREFIX]
2730
2731By default, \`make install' will install all the files in
2732\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2733an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2734for instance \`--prefix=\$HOME'.
2735
2736For better control, use the options below.
2737
2738Fine tuning of the installation directories:
2739  --bindir=DIR            user executables [EPREFIX/bin]
2740  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2741  --libexecdir=DIR        program executables [EPREFIX/libexec]
2742  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2743  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2744  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2745  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2746  --libdir=DIR            object code libraries [EPREFIX/lib]
2747  --includedir=DIR        C header files [PREFIX/include]
2748  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2749  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2750  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2751  --infodir=DIR           info documentation [DATAROOTDIR/info]
2752  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2753  --mandir=DIR            man documentation [DATAROOTDIR/man]
2754  --docdir=DIR            documentation root [DATAROOTDIR/doc/pspp]
2755  --htmldir=DIR           html documentation [DOCDIR]
2756  --dvidir=DIR            dvi documentation [DOCDIR]
2757  --pdfdir=DIR            pdf documentation [DOCDIR]
2758  --psdir=DIR             ps documentation [DOCDIR]
2759_ACEOF
2760
2761  cat <<\_ACEOF
2762
2763Program names:
2764  --program-prefix=PREFIX            prepend PREFIX to installed program names
2765  --program-suffix=SUFFIX            append SUFFIX to installed program names
2766  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2767
2768System types:
2769  --build=BUILD     configure for building on BUILD [guessed]
2770  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2771_ACEOF
2772fi
2773
2774if test -n "$ac_init_help"; then
2775  case $ac_init_help in
2776     short | recursive ) echo "Configuration of GNU PSPP 1.4.1:";;
2777   esac
2778  cat <<\_ACEOF
2779
2780Optional Features:
2781  --disable-option-checking  ignore unrecognized --enable/--with options
2782  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2783  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2784  --enable-silent-rules   less verbose build output (undo: "make V=1")
2785  --disable-silent-rules  verbose build output (undo: "make V=0")
2786  --enable-dependency-tracking
2787                          do not reject slow dependency extractors
2788  --disable-dependency-tracking
2789                          speeds up one-time build
2790  --disable-largefile     omit support for large files
2791  --enable-threads={isoc|posix|isoc+posix|windows}
2792                          specify multithreading API
2793  --disable-threads       build without multithread safety
2794  --enable-shared[=PKGS]  build shared libraries [default=yes]
2795  --enable-static[=PKGS]  build static libraries [default=yes]
2796  --enable-fast-install[=PKGS]
2797                          optimize for fast installation [default=yes]
2798  --disable-libtool-lock  avoid locking (might break parallel builds)
2799  --enable-Werror         Add -Werror to CFLAGS
2800  --disable-rpath         do not hardcode runtime library paths
2801  --disable-nls           do not use Native Language Support
2802  --enable-cross-guesses={conservative|risky}
2803                          specify policy for cross-compilation guesses
2804  --disable-assert        turn off assertions
2805  --enable-relocatable    install a package that can be moved in the file
2806                          system
2807
2808Optional Packages:
2809  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2810  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2811  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2812                          both]
2813  --with-aix-soname=aix|svr4|both
2814                          shared library versioning (aka "SONAME") variant to
2815                          provide on AIX, [default=aix].
2816  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2817  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2818                          compiler's sysroot if not specified).
2819  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2820  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2821  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2822  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2823  --without-libintl-prefix     don't search for libintl in includedir and libdir
2824  --without-cairo         Don't build support for charts (using Cairo and
2825                          Pango); implies --without-gui
2826  --without-gui           Don't build the PSPPIRE GUI (using GTK+)
2827  --without-libpq         don't compile in Postgres capability
2828  --without-perl-module   do not build the Perl module
2829  --with-libreadline-prefix[=DIR]  search for libreadline in DIR/include and DIR/lib
2830  --without-libreadline-prefix     don't search for libreadline in includedir and libdir
2831  --with-libhistory-prefix[=DIR]  search for libhistory in DIR/include and DIR/lib
2832  --without-libhistory-prefix     don't search for libhistory in includedir and libdir
2833  --without-included-regex
2834                          don't compile regex; this is the default on systems
2835                          with recent-enough versions of the GNU C Library
2836                          (use with caution on other systems).
2837  --with-packager         String identifying the packager of this software
2838  --with-packager-version Packager-specific version information
2839  --with-packager-bug-reports
2840                          Packager info for bug reports (URL/e-mail/...)
2841
2842Some influential environment variables:
2843  CC          C compiler command
2844  CFLAGS      C compiler flags
2845  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2846              nonstandard directory <lib dir>
2847  LIBS        libraries to pass to the linker, e.g. -l<library>
2848  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2849              you have headers in a nonstandard directory <include dir>
2850  CPP         C preprocessor
2851  LT_SYS_LIBRARY_PATH
2852              User-defined run-time library search path.
2853  PKG_CONFIG  path to pkg-config utility
2854  PKG_CONFIG_PATH
2855              directories to add to pkg-config's search path
2856  PKG_CONFIG_LIBDIR
2857              path overriding pkg-config's built-in search path
2858  PYTHON      Python 2 or 3 interpreter
2859  PSPP_LDFLAGS
2860              linker flags to be used for linking the pspp binary only
2861  PSPPIRE_LDFLAGS
2862              linker flags to be used for linking the psppire binary only
2863  CAIRO_CFLAGS
2864              C compiler flags for CAIRO, overriding pkg-config
2865  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2866  GTHREAD_CFLAGS
2867              C compiler flags for GTHREAD, overriding pkg-config
2868  GTHREAD_LIBS
2869              linker flags for GTHREAD, overriding pkg-config
2870  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
2871  GTK_LIBS    linker flags for GTK, overriding pkg-config
2872  GTKSOURCEVIEW_CFLAGS
2873              C compiler flags for GTKSOURCEVIEW, overriding pkg-config
2874  GTKSOURCEVIEW_LIBS
2875              linker flags for GTKSOURCEVIEW, overriding pkg-config
2876  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2877  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2878  SPREAD_SHEET_WIDGET_CFLAGS
2879              C compiler flags for SPREAD_SHEET_WIDGET, overriding pkg-config
2880  SPREAD_SHEET_WIDGET_LIBS
2881              linker flags for SPREAD_SHEET_WIDGET, overriding pkg-config
2882  GLIB_GENMARSHAL
2883
2884  PG_CONFIG   Full pathname of the pg_config program shipped with Postgresql
2885  LIBXML2_CFLAGS
2886              C compiler flags for LIBXML2, overriding pkg-config
2887  LIBXML2_LIBS
2888              linker flags for LIBXML2, overriding pkg-config
2889  GSL_CFLAGS  C compiler flags for GSL, overriding pkg-config
2890  GSL_LIBS    linker flags for GSL, overriding pkg-config
2891
2892Use these variables to override the choices made by `configure' or to help
2893it to find libraries and programs with nonstandard names/locations.
2894
2895Report bugs to <bug-gnu-pspp@gnu.org>.
2896GNU PSPP home page: <http://www.gnu.org/software/pspp/>.
2897General help using GNU software: <http://www.gnu.org/gethelp/>.
2898_ACEOF
2899ac_status=$?
2900fi
2901
2902if test "$ac_init_help" = "recursive"; then
2903  # If there are subdirs, report their specific --help.
2904  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2905    test -d "$ac_dir" ||
2906      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2907      continue
2908    ac_builddir=.
2909
2910case "$ac_dir" in
2911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2912*)
2913  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2914  # A ".." for each directory in $ac_dir_suffix.
2915  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2916  case $ac_top_builddir_sub in
2917  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2918  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2919  esac ;;
2920esac
2921ac_abs_top_builddir=$ac_pwd
2922ac_abs_builddir=$ac_pwd$ac_dir_suffix
2923# for backward compatibility:
2924ac_top_builddir=$ac_top_build_prefix
2925
2926case $srcdir in
2927  .)  # We are building in place.
2928    ac_srcdir=.
2929    ac_top_srcdir=$ac_top_builddir_sub
2930    ac_abs_top_srcdir=$ac_pwd ;;
2931  [\\/]* | ?:[\\/]* )  # Absolute name.
2932    ac_srcdir=$srcdir$ac_dir_suffix;
2933    ac_top_srcdir=$srcdir
2934    ac_abs_top_srcdir=$srcdir ;;
2935  *) # Relative name.
2936    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2937    ac_top_srcdir=$ac_top_build_prefix$srcdir
2938    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2939esac
2940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2941
2942    cd "$ac_dir" || { ac_status=$?; continue; }
2943    # Check for guested configure.
2944    if test -f "$ac_srcdir/configure.gnu"; then
2945      echo &&
2946      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2947    elif test -f "$ac_srcdir/configure"; then
2948      echo &&
2949      $SHELL "$ac_srcdir/configure" --help=recursive
2950    else
2951      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2952    fi || ac_status=$?
2953    cd "$ac_pwd" || { ac_status=$?; break; }
2954  done
2955fi
2956
2957test -n "$ac_init_help" && exit $ac_status
2958if $ac_init_version; then
2959  cat <<\_ACEOF
2960GNU PSPP configure 1.4.1
2961generated by GNU Autoconf 2.69
2962
2963Copyright (C) 2012 Free Software Foundation, Inc.
2964This configure script is free software; the Free Software Foundation
2965gives unlimited permission to copy, distribute and modify it.
2966_ACEOF
2967  exit
2968fi
2969
2970## ------------------------ ##
2971## Autoconf initialization. ##
2972## ------------------------ ##
2973
2974# ac_fn_c_try_compile LINENO
2975# --------------------------
2976# Try to compile conftest.$ac_ext, and return whether this succeeded.
2977ac_fn_c_try_compile ()
2978{
2979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2980  rm -f conftest.$ac_objext
2981  if { { ac_try="$ac_compile"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987$as_echo "$ac_try_echo"; } >&5
2988  (eval "$ac_compile") 2>conftest.err
2989  ac_status=$?
2990  if test -s conftest.err; then
2991    grep -v '^ *+' conftest.err >conftest.er1
2992    cat conftest.er1 >&5
2993    mv -f conftest.er1 conftest.err
2994  fi
2995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996  test $ac_status = 0; } && {
2997	 test -z "$ac_c_werror_flag" ||
2998	 test ! -s conftest.err
2999       } && test -s conftest.$ac_objext; then :
3000  ac_retval=0
3001else
3002  $as_echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005	ac_retval=1
3006fi
3007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3008  as_fn_set_status $ac_retval
3009
3010} # ac_fn_c_try_compile
3011
3012# ac_fn_c_try_cpp LINENO
3013# ----------------------
3014# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3015ac_fn_c_try_cpp ()
3016{
3017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3018  if { { ac_try="$ac_cpp conftest.$ac_ext"
3019case "(($ac_try" in
3020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021  *) ac_try_echo=$ac_try;;
3022esac
3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024$as_echo "$ac_try_echo"; } >&5
3025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3026  ac_status=$?
3027  if test -s conftest.err; then
3028    grep -v '^ *+' conftest.err >conftest.er1
3029    cat conftest.er1 >&5
3030    mv -f conftest.er1 conftest.err
3031  fi
3032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033  test $ac_status = 0; } > conftest.i && {
3034	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3035	 test ! -s conftest.err
3036       }; then :
3037  ac_retval=0
3038else
3039  $as_echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042    ac_retval=1
3043fi
3044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3045  as_fn_set_status $ac_retval
3046
3047} # ac_fn_c_try_cpp
3048
3049# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3050# -------------------------------------------------------
3051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3052# the include files in INCLUDES and setting the cache variable VAR
3053# accordingly.
3054ac_fn_c_check_header_mongrel ()
3055{
3056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3057  if eval \${$3+:} false; then :
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059$as_echo_n "checking for $2... " >&6; }
3060if eval \${$3+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062fi
3063eval ac_res=\$$3
3064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065$as_echo "$ac_res" >&6; }
3066else
3067  # Is the header compilable?
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3069$as_echo_n "checking $2 usability... " >&6; }
3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072$4
3073#include <$2>
3074_ACEOF
3075if ac_fn_c_try_compile "$LINENO"; then :
3076  ac_header_compiler=yes
3077else
3078  ac_header_compiler=no
3079fi
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3082$as_echo "$ac_header_compiler" >&6; }
3083
3084# Is the header present?
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3086$as_echo_n "checking $2 presence... " >&6; }
3087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089#include <$2>
3090_ACEOF
3091if ac_fn_c_try_cpp "$LINENO"; then :
3092  ac_header_preproc=yes
3093else
3094  ac_header_preproc=no
3095fi
3096rm -f conftest.err conftest.i conftest.$ac_ext
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3098$as_echo "$ac_header_preproc" >&6; }
3099
3100# So?  What about this header?
3101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3102  yes:no: )
3103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3107    ;;
3108  no:yes:* )
3109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3112$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3116$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3117    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3119( $as_echo "## ----------------------------------- ##
3120## Report this to bug-gnu-pspp@gnu.org ##
3121## ----------------------------------- ##"
3122     ) | sed "s/^/$as_me: WARNING:     /" >&2
3123    ;;
3124esac
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3126$as_echo_n "checking for $2... " >&6; }
3127if eval \${$3+:} false; then :
3128  $as_echo_n "(cached) " >&6
3129else
3130  eval "$3=\$ac_header_compiler"
3131fi
3132eval ac_res=\$$3
3133	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134$as_echo "$ac_res" >&6; }
3135fi
3136  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137
3138} # ac_fn_c_check_header_mongrel
3139
3140# ac_fn_c_try_run LINENO
3141# ----------------------
3142# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3143# that executables *can* be run.
3144ac_fn_c_try_run ()
3145{
3146  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3147  if { { ac_try="$ac_link"
3148case "(($ac_try" in
3149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150  *) ac_try_echo=$ac_try;;
3151esac
3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153$as_echo "$ac_try_echo"; } >&5
3154  (eval "$ac_link") 2>&5
3155  ac_status=$?
3156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3158  { { case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164  (eval "$ac_try") 2>&5
3165  ac_status=$?
3166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167  test $ac_status = 0; }; }; then :
3168  ac_retval=0
3169else
3170  $as_echo "$as_me: program exited with status $ac_status" >&5
3171       $as_echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174       ac_retval=$ac_status
3175fi
3176  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3177  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3178  as_fn_set_status $ac_retval
3179
3180} # ac_fn_c_try_run
3181
3182# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3183# -------------------------------------------------------
3184# Tests whether HEADER exists and can be compiled using the include files in
3185# INCLUDES, setting the cache variable VAR accordingly.
3186ac_fn_c_check_header_compile ()
3187{
3188  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3190$as_echo_n "checking for $2... " >&6; }
3191if eval \${$3+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h.  */
3196$4
3197#include <$2>
3198_ACEOF
3199if ac_fn_c_try_compile "$LINENO"; then :
3200  eval "$3=yes"
3201else
3202  eval "$3=no"
3203fi
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205fi
3206eval ac_res=\$$3
3207	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3208$as_echo "$ac_res" >&6; }
3209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3210
3211} # ac_fn_c_check_header_compile
3212
3213# ac_fn_c_try_link LINENO
3214# -----------------------
3215# Try to link conftest.$ac_ext, and return whether this succeeded.
3216ac_fn_c_try_link ()
3217{
3218  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3219  rm -f conftest.$ac_objext conftest$ac_exeext
3220  if { { ac_try="$ac_link"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_link") 2>conftest.err
3228  ac_status=$?
3229  if test -s conftest.err; then
3230    grep -v '^ *+' conftest.err >conftest.er1
3231    cat conftest.er1 >&5
3232    mv -f conftest.er1 conftest.err
3233  fi
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; } && {
3236	 test -z "$ac_c_werror_flag" ||
3237	 test ! -s conftest.err
3238       } && test -s conftest$ac_exeext && {
3239	 test "$cross_compiling" = yes ||
3240	 test -x conftest$ac_exeext
3241       }; then :
3242  ac_retval=0
3243else
3244  $as_echo "$as_me: failed program was:" >&5
3245sed 's/^/| /' conftest.$ac_ext >&5
3246
3247	ac_retval=1
3248fi
3249  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3250  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3251  # interfere with the next link command; also delete a directory that is
3252  # left behind by Apple's compiler.  We do this before executing the actions.
3253  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3254  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3255  as_fn_set_status $ac_retval
3256
3257} # ac_fn_c_try_link
3258
3259# ac_fn_c_check_func LINENO FUNC VAR
3260# ----------------------------------
3261# Tests whether FUNC exists, setting the cache variable VAR accordingly
3262ac_fn_c_check_func ()
3263{
3264  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3266$as_echo_n "checking for $2... " >&6; }
3267if eval \${$3+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3273   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3274#define $2 innocuous_$2
3275
3276/* System header to define __stub macros and hopefully few prototypes,
3277    which can conflict with char $2 (); below.
3278    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279    <limits.h> exists even on freestanding compilers.  */
3280
3281#ifdef __STDC__
3282# include <limits.h>
3283#else
3284# include <assert.h>
3285#endif
3286
3287#undef $2
3288
3289/* Override any GCC internal prototype to avoid an error.
3290   Use char because int might match the return type of a GCC
3291   builtin and then its argument prototype would still apply.  */
3292#ifdef __cplusplus
3293extern "C"
3294#endif
3295char $2 ();
3296/* The GNU C library defines this for functions which it implements
3297    to always fail with ENOSYS.  Some functions are actually named
3298    something starting with __ and the normal name is an alias.  */
3299#if defined __stub_$2 || defined __stub___$2
3300choke me
3301#endif
3302
3303int
3304main ()
3305{
3306return $2 ();
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_link "$LINENO"; then :
3312  eval "$3=yes"
3313else
3314  eval "$3=no"
3315fi
3316rm -f core conftest.err conftest.$ac_objext \
3317    conftest$ac_exeext conftest.$ac_ext
3318fi
3319eval ac_res=\$$3
3320	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3321$as_echo "$ac_res" >&6; }
3322  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3323
3324} # ac_fn_c_check_func
3325
3326# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3327# ---------------------------------------------
3328# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3329# accordingly.
3330ac_fn_c_check_decl ()
3331{
3332  ac_save_ac_compile="$ac_compile"
3333  if test -n "$ac_compile_for_check_decl"; then
3334    ac_compile="$ac_compile_for_check_decl"
3335  fi
3336  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3337  as_decl_name=`echo $2|sed 's/ *(.*//'`
3338  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3340$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3341if eval \${$3+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346$4
3347int
3348main ()
3349{
3350#ifndef $as_decl_name
3351#ifdef __cplusplus
3352  (void) $as_decl_use;
3353#else
3354  (void) $as_decl_name;
3355#endif
3356#endif
3357
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362if ac_fn_c_try_compile "$LINENO"; then :
3363  eval "$3=yes"
3364else
3365  eval "$3=no"
3366fi
3367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368fi
3369eval ac_res=\$$3
3370	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3371$as_echo "$ac_res" >&6; }
3372  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3373  ac_compile="$ac_save_ac_compile"
3374
3375} # ac_fn_c_check_decl
3376
3377# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3378# -------------------------------------------
3379# Tests whether TYPE exists after having included INCLUDES, setting cache
3380# variable VAR accordingly.
3381ac_fn_c_check_type ()
3382{
3383  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3385$as_echo_n "checking for $2... " >&6; }
3386if eval \${$3+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  eval "$3=no"
3390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h.  */
3392$4
3393int
3394main ()
3395{
3396if (sizeof ($2))
3397	 return 0;
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402if ac_fn_c_try_compile "$LINENO"; then :
3403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405$4
3406int
3407main ()
3408{
3409if (sizeof (($2)))
3410	    return 0;
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415if ac_fn_c_try_compile "$LINENO"; then :
3416
3417else
3418  eval "$3=yes"
3419fi
3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421fi
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423fi
3424eval ac_res=\$$3
3425	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3426$as_echo "$ac_res" >&6; }
3427  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3428
3429} # ac_fn_c_check_type
3430
3431# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3432# --------------------------------------------
3433# Tries to find the compile-time value of EXPR in a program that includes
3434# INCLUDES, setting VAR accordingly. Returns whether the value could be
3435# computed
3436ac_fn_c_compute_int ()
3437{
3438  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3439  if test "$cross_compiling" = yes; then
3440    # Depending upon the size, compute the lo and hi bounds.
3441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h.  */
3443$4
3444int
3445main ()
3446{
3447static int test_array [1 - 2 * !(($2) >= 0)];
3448test_array [0] = 0;
3449return test_array [0];
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455if ac_fn_c_try_compile "$LINENO"; then :
3456  ac_lo=0 ac_mid=0
3457  while :; do
3458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h.  */
3460$4
3461int
3462main ()
3463{
3464static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3465test_array [0] = 0;
3466return test_array [0];
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472if ac_fn_c_try_compile "$LINENO"; then :
3473  ac_hi=$ac_mid; break
3474else
3475  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3476			if test $ac_lo -le $ac_mid; then
3477			  ac_lo= ac_hi=
3478			  break
3479			fi
3480			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3481fi
3482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483  done
3484else
3485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487$4
3488int
3489main ()
3490{
3491static int test_array [1 - 2 * !(($2) < 0)];
3492test_array [0] = 0;
3493return test_array [0];
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"; then :
3500  ac_hi=-1 ac_mid=-1
3501  while :; do
3502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504$4
3505int
3506main ()
3507{
3508static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3509test_array [0] = 0;
3510return test_array [0];
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516if ac_fn_c_try_compile "$LINENO"; then :
3517  ac_lo=$ac_mid; break
3518else
3519  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3520			if test $ac_mid -le $ac_hi; then
3521			  ac_lo= ac_hi=
3522			  break
3523			fi
3524			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3525fi
3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527  done
3528else
3529  ac_lo= ac_hi=
3530fi
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532fi
3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534# Binary search between lo and hi bounds.
3535while test "x$ac_lo" != "x$ac_hi"; do
3536  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538/* end confdefs.h.  */
3539$4
3540int
3541main ()
3542{
3543static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3544test_array [0] = 0;
3545return test_array [0];
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_hi=$ac_mid
3553else
3554  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557done
3558case $ac_lo in #((
3559?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3560'') ac_retval=1 ;;
3561esac
3562  else
3563    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565$4
3566static long int longval () { return $2; }
3567static unsigned long int ulongval () { return $2; }
3568#include <stdio.h>
3569#include <stdlib.h>
3570int
3571main ()
3572{
3573
3574  FILE *f = fopen ("conftest.val", "w");
3575  if (! f)
3576    return 1;
3577  if (($2) < 0)
3578    {
3579      long int i = longval ();
3580      if (i != ($2))
3581	return 1;
3582      fprintf (f, "%ld", i);
3583    }
3584  else
3585    {
3586      unsigned long int i = ulongval ();
3587      if (i != ($2))
3588	return 1;
3589      fprintf (f, "%lu", i);
3590    }
3591  /* Do not output a trailing newline, as this causes \r\n confusion
3592     on some platforms.  */
3593  return ferror (f) || fclose (f) != 0;
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_run "$LINENO"; then :
3600  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3601else
3602  ac_retval=1
3603fi
3604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3605  conftest.$ac_objext conftest.beam conftest.$ac_ext
3606rm -f conftest.val
3607
3608  fi
3609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3610  as_fn_set_status $ac_retval
3611
3612} # ac_fn_c_compute_int
3613
3614# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3615# ----------------------------------------------------
3616# Tries to find if the field MEMBER exists in type AGGR, after including
3617# INCLUDES, setting cache variable VAR accordingly.
3618ac_fn_c_check_member ()
3619{
3620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3622$as_echo_n "checking for $2.$3... " >&6; }
3623if eval \${$4+:} false; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h.  */
3628$5
3629int
3630main ()
3631{
3632static $2 ac_aggr;
3633if (ac_aggr.$3)
3634return 0;
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"; then :
3640  eval "$4=yes"
3641else
3642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644$5
3645int
3646main ()
3647{
3648static $2 ac_aggr;
3649if (sizeof ac_aggr.$3)
3650return 0;
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"; then :
3656  eval "$4=yes"
3657else
3658  eval "$4=no"
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661fi
3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663fi
3664eval ac_res=\$$4
3665	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3666$as_echo "$ac_res" >&6; }
3667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3668
3669} # ac_fn_c_check_member
3670cat >config.log <<_ACEOF
3671This file contains any messages produced by compilers while
3672running configure, to aid debugging if configure makes a mistake.
3673
3674It was created by GNU PSPP $as_me 1.4.1, which was
3675generated by GNU Autoconf 2.69.  Invocation command line was
3676
3677  $ $0 $@
3678
3679_ACEOF
3680exec 5>>config.log
3681{
3682cat <<_ASUNAME
3683## --------- ##
3684## Platform. ##
3685## --------- ##
3686
3687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3688uname -m = `(uname -m) 2>/dev/null || echo unknown`
3689uname -r = `(uname -r) 2>/dev/null || echo unknown`
3690uname -s = `(uname -s) 2>/dev/null || echo unknown`
3691uname -v = `(uname -v) 2>/dev/null || echo unknown`
3692
3693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3694/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3695
3696/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3697/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3699/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3700/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3701/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3702/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3703
3704_ASUNAME
3705
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709  IFS=$as_save_IFS
3710  test -z "$as_dir" && as_dir=.
3711    $as_echo "PATH: $as_dir"
3712  done
3713IFS=$as_save_IFS
3714
3715} >&5
3716
3717cat >&5 <<_ACEOF
3718
3719
3720## ----------- ##
3721## Core tests. ##
3722## ----------- ##
3723
3724_ACEOF
3725
3726
3727# Keep a trace of the command line.
3728# Strip out --no-create and --no-recursion so they do not pile up.
3729# Strip out --silent because we don't want to record it for future runs.
3730# Also quote any args containing shell meta-characters.
3731# Make two passes to allow for proper duplicate-argument suppression.
3732ac_configure_args=
3733ac_configure_args0=
3734ac_configure_args1=
3735ac_must_keep_next=false
3736for ac_pass in 1 2
3737do
3738  for ac_arg
3739  do
3740    case $ac_arg in
3741    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3742    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3743    | -silent | --silent | --silen | --sile | --sil)
3744      continue ;;
3745    *\'*)
3746      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3747    esac
3748    case $ac_pass in
3749    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3750    2)
3751      as_fn_append ac_configure_args1 " '$ac_arg'"
3752      if test $ac_must_keep_next = true; then
3753	ac_must_keep_next=false # Got value, back to normal.
3754      else
3755	case $ac_arg in
3756	  *=* | --config-cache | -C | -disable-* | --disable-* \
3757	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3758	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3759	  | -with-* | --with-* | -without-* | --without-* | --x)
3760	    case "$ac_configure_args0 " in
3761	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3762	    esac
3763	    ;;
3764	  -* ) ac_must_keep_next=true ;;
3765	esac
3766      fi
3767      as_fn_append ac_configure_args " '$ac_arg'"
3768      ;;
3769    esac
3770  done
3771done
3772{ ac_configure_args0=; unset ac_configure_args0;}
3773{ ac_configure_args1=; unset ac_configure_args1;}
3774
3775# When interrupted or exit'd, cleanup temporary files, and complete
3776# config.log.  We remove comments because anyway the quotes in there
3777# would cause problems or look ugly.
3778# WARNING: Use '\'' to represent an apostrophe within the trap.
3779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3780trap 'exit_status=$?
3781  # Save into config.log some information that might help in debugging.
3782  {
3783    echo
3784
3785    $as_echo "## ---------------- ##
3786## Cache variables. ##
3787## ---------------- ##"
3788    echo
3789    # The following way of writing the cache mishandles newlines in values,
3790(
3791  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3792    eval ac_val=\$$ac_var
3793    case $ac_val in #(
3794    *${as_nl}*)
3795      case $ac_var in #(
3796      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3798      esac
3799      case $ac_var in #(
3800      _ | IFS | as_nl) ;; #(
3801      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3802      *) { eval $ac_var=; unset $ac_var;} ;;
3803      esac ;;
3804    esac
3805  done
3806  (set) 2>&1 |
3807    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3808    *${as_nl}ac_space=\ *)
3809      sed -n \
3810	"s/'\''/'\''\\\\'\'''\''/g;
3811	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3812      ;; #(
3813    *)
3814      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3815      ;;
3816    esac |
3817    sort
3818)
3819    echo
3820
3821    $as_echo "## ----------------- ##
3822## Output variables. ##
3823## ----------------- ##"
3824    echo
3825    for ac_var in $ac_subst_vars
3826    do
3827      eval ac_val=\$$ac_var
3828      case $ac_val in
3829      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3830      esac
3831      $as_echo "$ac_var='\''$ac_val'\''"
3832    done | sort
3833    echo
3834
3835    if test -n "$ac_subst_files"; then
3836      $as_echo "## ------------------- ##
3837## File substitutions. ##
3838## ------------------- ##"
3839      echo
3840      for ac_var in $ac_subst_files
3841      do
3842	eval ac_val=\$$ac_var
3843	case $ac_val in
3844	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3845	esac
3846	$as_echo "$ac_var='\''$ac_val'\''"
3847      done | sort
3848      echo
3849    fi
3850
3851    if test -s confdefs.h; then
3852      $as_echo "## ----------- ##
3853## confdefs.h. ##
3854## ----------- ##"
3855      echo
3856      cat confdefs.h
3857      echo
3858    fi
3859    test "$ac_signal" != 0 &&
3860      $as_echo "$as_me: caught signal $ac_signal"
3861    $as_echo "$as_me: exit $exit_status"
3862  } >&5
3863  rm -f core *.core core.conftest.* &&
3864    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3865    exit $exit_status
3866' 0
3867for ac_signal in 1 2 13 15; do
3868  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3869done
3870ac_signal=0
3871
3872# confdefs.h avoids OS command line length limits that DEFS can exceed.
3873rm -f -r conftest* confdefs.h
3874
3875$as_echo "/* confdefs.h */" > confdefs.h
3876
3877# Predefined preprocessor variables.
3878
3879cat >>confdefs.h <<_ACEOF
3880#define PACKAGE_NAME "$PACKAGE_NAME"
3881_ACEOF
3882
3883cat >>confdefs.h <<_ACEOF
3884#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3885_ACEOF
3886
3887cat >>confdefs.h <<_ACEOF
3888#define PACKAGE_VERSION "$PACKAGE_VERSION"
3889_ACEOF
3890
3891cat >>confdefs.h <<_ACEOF
3892#define PACKAGE_STRING "$PACKAGE_STRING"
3893_ACEOF
3894
3895cat >>confdefs.h <<_ACEOF
3896#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3897_ACEOF
3898
3899cat >>confdefs.h <<_ACEOF
3900#define PACKAGE_URL "$PACKAGE_URL"
3901_ACEOF
3902
3903
3904# Let the site file select an alternate cache file if it wants to.
3905# Prefer an explicitly selected file to automatically selected ones.
3906ac_site_file1=NONE
3907ac_site_file2=NONE
3908if test -n "$CONFIG_SITE"; then
3909  # We do not want a PATH search for config.site.
3910  case $CONFIG_SITE in #((
3911    -*)  ac_site_file1=./$CONFIG_SITE;;
3912    */*) ac_site_file1=$CONFIG_SITE;;
3913    *)   ac_site_file1=./$CONFIG_SITE;;
3914  esac
3915elif test "x$prefix" != xNONE; then
3916  ac_site_file1=$prefix/share/config.site
3917  ac_site_file2=$prefix/etc/config.site
3918else
3919  ac_site_file1=$ac_default_prefix/share/config.site
3920  ac_site_file2=$ac_default_prefix/etc/config.site
3921fi
3922for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3923do
3924  test "x$ac_site_file" = xNONE && continue
3925  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3926    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3927$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3928    sed 's/^/| /' "$ac_site_file" >&5
3929    . "$ac_site_file" \
3930      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932as_fn_error $? "failed to load site script $ac_site_file
3933See \`config.log' for more details" "$LINENO" 5; }
3934  fi
3935done
3936
3937if test -r "$cache_file"; then
3938  # Some versions of bash will fail to source /dev/null (special files
3939  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3940  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3941    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3942$as_echo "$as_me: loading cache $cache_file" >&6;}
3943    case $cache_file in
3944      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3945      *)                      . "./$cache_file";;
3946    esac
3947  fi
3948else
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3950$as_echo "$as_me: creating cache $cache_file" >&6;}
3951  >$cache_file
3952fi
3953
3954gt_needs="$gt_needs need-ngettext"
3955as_fn_append ac_header_list " pthread.h"
3956as_fn_append ac_func_list " btowc"
3957as_fn_append ac_func_list " uselocale"
3958as_fn_append ac_header_list " xlocale.h"
3959as_fn_append ac_func_list " snprintf"
3960as_fn_append ac_func_list " canonicalize_file_name"
3961as_fn_append ac_func_list " getcwd"
3962as_fn_append ac_func_list " readlink"
3963as_fn_append ac_func_list " realpath"
3964as_fn_append ac_header_list " sys/param.h"
3965as_fn_append ac_func_list " readlinkat"
3966as_fn_append ac_func_list " _set_invalid_parameter_handler"
3967as_fn_append ac_header_list " sys/socket.h"
3968as_fn_append ac_header_list " unistd.h"
3969as_fn_append ac_func_list " explicit_bzero"
3970as_fn_append ac_func_list " memset_s"
3971as_fn_append ac_func_list " fcntl"
3972as_fn_append ac_func_list " symlink"
3973as_fn_append ac_func_list " vasnprintf"
3974as_fn_append ac_header_list " features.h"
3975as_fn_append ac_func_list " __fseterr"
3976as_fn_append ac_header_list " sys/stat.h"
3977as_fn_append ac_func_list " getdelim"
3978as_fn_append ac_func_list " getdtablesize"
3979gl_getopt_required=GNU
3980as_fn_append ac_header_list " getopt.h"
3981as_fn_append ac_header_list " sys/cdefs.h"
3982as_fn_append ac_func_list " getpass"
3983as_fn_append ac_header_list " stdio_ext.h"
3984as_fn_append ac_header_list " termios.h"
3985as_fn_append ac_func_list " __fsetlocking"
3986as_fn_append ac_func_list " getprogname"
3987as_fn_append ac_func_list " getexecname"
3988as_fn_append ac_func_list " getrandom"
3989as_fn_append ac_func_list " gettimeofday"
3990as_fn_append ac_header_list " sys/time.h"
3991as_fn_append ac_header_list " threads.h"
3992as_fn_append ac_header_list " limits.h"
3993as_fn_append ac_header_list " wchar.h"
3994as_fn_append ac_header_list " stdint.h"
3995as_fn_append ac_header_list " inttypes.h"
3996as_fn_append ac_func_list " iswcntrl"
3997as_fn_append ac_header_list " crtdefs.h"
3998as_fn_append ac_header_list " wctype.h"
3999as_fn_append ac_func_list " iswblank"
4000as_fn_append ac_header_list " langinfo.h"
4001as_fn_append ac_func_list " newlocale"
4002as_fn_append ac_func_list " duplocale"
4003as_fn_append ac_func_list " freelocale"
4004as_fn_append ac_func_list " lstat"
4005as_fn_append ac_header_list " math.h"
4006as_fn_append ac_func_list " mbsinit"
4007as_fn_append ac_func_list " mbrtowc"
4008as_fn_append ac_header_list " sys/mman.h"
4009as_fn_append ac_func_list " mprotect"
4010as_fn_append ac_func_list " mkstemp"
4011as_fn_append ac_func_list " tzset"
4012as_fn_append ac_func_list " nl_langinfo"
4013as_fn_append ac_func_list " pipe2"
4014gl_printf_safe=yes
4015as_fn_append ac_header_list " malloc.h"
4016as_fn_append ac_func_list " isblank"
4017as_fn_append ac_func_list " iswctype"
4018as_fn_append ac_func_list " setenv"
4019as_fn_append ac_func_list " link"
4020as_fn_append ac_func_list " secure_getenv"
4021as_fn_append ac_func_list " getuid"
4022as_fn_append ac_func_list " geteuid"
4023as_fn_append ac_func_list " getgid"
4024as_fn_append ac_func_list " getegid"
4025as_fn_append ac_header_list " sys/select.h"
4026as_fn_append ac_func_list " sigaction"
4027as_fn_append ac_func_list " sigaltstack"
4028as_fn_append ac_func_list " siginterrupt"
4029as_fn_append ac_func_list " strdup"
4030as_fn_append ac_header_list " strings.h"
4031as_fn_append ac_func_list " strndup"
4032as_fn_append ac_header_list " sys/random.h"
4033as_fn_append ac_header_list " sys/uio.h"
4034as_fn_append ac_func_list " localtime_r"
4035as_fn_append ac_func_list " timegm"
4036as_fn_append ac_func_list " wcrtomb"
4037as_fn_append ac_func_list " wcwidth"
4038# Check that the precious variables saved in the cache have kept the same
4039# value.
4040ac_cache_corrupted=false
4041for ac_var in $ac_precious_vars; do
4042  eval ac_old_set=\$ac_cv_env_${ac_var}_set
4043  eval ac_new_set=\$ac_env_${ac_var}_set
4044  eval ac_old_val=\$ac_cv_env_${ac_var}_value
4045  eval ac_new_val=\$ac_env_${ac_var}_value
4046  case $ac_old_set,$ac_new_set in
4047    set,)
4048      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4049$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4050      ac_cache_corrupted=: ;;
4051    ,set)
4052      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4053$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4054      ac_cache_corrupted=: ;;
4055    ,);;
4056    *)
4057      if test "x$ac_old_val" != "x$ac_new_val"; then
4058	# differences in whitespace do not lead to failure.
4059	ac_old_val_w=`echo x $ac_old_val`
4060	ac_new_val_w=`echo x $ac_new_val`
4061	if test "$ac_old_val_w" != "$ac_new_val_w"; then
4062	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4063$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4064	  ac_cache_corrupted=:
4065	else
4066	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4067$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4068	  eval $ac_var=\$ac_old_val
4069	fi
4070	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4071$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
4072	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4073$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
4074      fi;;
4075  esac
4076  # Pass precious variables to config.status.
4077  if test "$ac_new_set" = set; then
4078    case $ac_new_val in
4079    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4080    *) ac_arg=$ac_var=$ac_new_val ;;
4081    esac
4082    case " $ac_configure_args " in
4083      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4084      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4085    esac
4086  fi
4087done
4088if $ac_cache_corrupted; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4092$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4093  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4094fi
4095## -------------------- ##
4096## Main body of script. ##
4097## -------------------- ##
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105
4106ac_aux_dir=
4107for ac_dir in build-aux "$srcdir"/build-aux; do
4108  if test -f "$ac_dir/install-sh"; then
4109    ac_aux_dir=$ac_dir
4110    ac_install_sh="$ac_aux_dir/install-sh -c"
4111    break
4112  elif test -f "$ac_dir/install.sh"; then
4113    ac_aux_dir=$ac_dir
4114    ac_install_sh="$ac_aux_dir/install.sh -c"
4115    break
4116  elif test -f "$ac_dir/shtool"; then
4117    ac_aux_dir=$ac_dir
4118    ac_install_sh="$ac_aux_dir/shtool install -c"
4119    break
4120  fi
4121done
4122if test -z "$ac_aux_dir"; then
4123  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
4124fi
4125
4126# These three variables are undocumented and unsupported,
4127# and are intended to be withdrawn in a future Autoconf release.
4128# They can cause serious problems if a builder's source tree is in a directory
4129# whose full name contains unusual characters.
4130ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4131ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4132ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4133
4134
4135ac_config_headers="$ac_config_headers config.h"
4136
4137ac_config_commands="$ac_config_commands tests/atconfig"
4138
4139am__api_version='1.16'
4140
4141# Find a good install program.  We prefer a C program (faster),
4142# so one script is as good as another.  But avoid the broken or
4143# incompatible versions:
4144# SysV /etc/install, /usr/sbin/install
4145# SunOS /usr/etc/install
4146# IRIX /sbin/install
4147# AIX /bin/install
4148# AmigaOS /C/install, which installs bootblocks on floppy discs
4149# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4150# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4151# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4152# OS/2's system install, which has a completely different semantic
4153# ./install, which can be erroneously created by make from ./install.sh.
4154# Reject install programs that cannot install multiple files.
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4156$as_echo_n "checking for a BSD-compatible install... " >&6; }
4157if test -z "$INSTALL"; then
4158if ${ac_cv_path_install+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166    # Account for people who put trailing slashes in PATH elements.
4167case $as_dir/ in #((
4168  ./ | .// | /[cC]/* | \
4169  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4170  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4171  /usr/ucb/* ) ;;
4172  *)
4173    # OSF1 and SCO ODT 3.0 have their own names for install.
4174    # Don't use installbsd from OSF since it installs stuff as root
4175    # by default.
4176    for ac_prog in ginstall scoinst install; do
4177      for ac_exec_ext in '' $ac_executable_extensions; do
4178	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4179	  if test $ac_prog = install &&
4180	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4181	    # AIX install.  It has an incompatible calling convention.
4182	    :
4183	  elif test $ac_prog = install &&
4184	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4185	    # program-specific install script used by HP pwplus--don't use.
4186	    :
4187	  else
4188	    rm -rf conftest.one conftest.two conftest.dir
4189	    echo one > conftest.one
4190	    echo two > conftest.two
4191	    mkdir conftest.dir
4192	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4193	      test -s conftest.one && test -s conftest.two &&
4194	      test -s conftest.dir/conftest.one &&
4195	      test -s conftest.dir/conftest.two
4196	    then
4197	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4198	      break 3
4199	    fi
4200	  fi
4201	fi
4202      done
4203    done
4204    ;;
4205esac
4206
4207  done
4208IFS=$as_save_IFS
4209
4210rm -rf conftest.one conftest.two conftest.dir
4211
4212fi
4213  if test "${ac_cv_path_install+set}" = set; then
4214    INSTALL=$ac_cv_path_install
4215  else
4216    # As a last resort, use the slow shell script.  Don't cache a
4217    # value for INSTALL within a source directory, because that will
4218    # break other packages using the cache if that directory is
4219    # removed, or if the value is a relative name.
4220    INSTALL=$ac_install_sh
4221  fi
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4224$as_echo "$INSTALL" >&6; }
4225
4226# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4227# It thinks the first close brace ends the variable substitution.
4228test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4229
4230test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4231
4232test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4235$as_echo_n "checking whether build environment is sane... " >&6; }
4236# Reject unsafe characters in $srcdir or the absolute working directory
4237# name.  Accept space and tab only in the latter.
4238am_lf='
4239'
4240case `pwd` in
4241  *[\\\"\#\$\&\'\`$am_lf]*)
4242    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4243esac
4244case $srcdir in
4245  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4246    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4247esac
4248
4249# Do 'set' in a subshell so we don't clobber the current shell's
4250# arguments.  Must try -L first in case configure is actually a
4251# symlink; some systems play weird games with the mod time of symlinks
4252# (eg FreeBSD returns the mod time of the symlink's containing
4253# directory).
4254if (
4255   am_has_slept=no
4256   for am_try in 1 2; do
4257     echo "timestamp, slept: $am_has_slept" > conftest.file
4258     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4259     if test "$*" = "X"; then
4260	# -L didn't work.
4261	set X `ls -t "$srcdir/configure" conftest.file`
4262     fi
4263     if test "$*" != "X $srcdir/configure conftest.file" \
4264	&& test "$*" != "X conftest.file $srcdir/configure"; then
4265
4266	# If neither matched, then we have a broken ls.  This can happen
4267	# if, for instance, CONFIG_SHELL is bash and it inherits a
4268	# broken ls alias from the environment.  This has actually
4269	# happened.  Such a system could not be considered "sane".
4270	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4271  alias in your environment" "$LINENO" 5
4272     fi
4273     if test "$2" = conftest.file || test $am_try -eq 2; then
4274       break
4275     fi
4276     # Just in case.
4277     sleep 1
4278     am_has_slept=yes
4279   done
4280   test "$2" = conftest.file
4281   )
4282then
4283   # Ok.
4284   :
4285else
4286   as_fn_error $? "newly created file is older than distributed files!
4287Check your system clock" "$LINENO" 5
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290$as_echo "yes" >&6; }
4291# If we didn't sleep, we still need to ensure time stamps of config.status and
4292# generated files are strictly newer.
4293am_sleep_pid=
4294if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4295  ( sleep 1 ) &
4296  am_sleep_pid=$!
4297fi
4298
4299rm -f conftest.file
4300
4301test "$program_prefix" != NONE &&
4302  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4303# Use a double $ so make ignores it.
4304test "$program_suffix" != NONE &&
4305  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4306# Double any \ or $.
4307# By default was `s,x,x', remove it if useless.
4308ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4309program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4310
4311# Expand $ac_aux_dir to an absolute path.
4312am_aux_dir=`cd "$ac_aux_dir" && pwd`
4313
4314if test x"${MISSING+set}" != xset; then
4315  case $am_aux_dir in
4316  *\ * | *\	*)
4317    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4318  *)
4319    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4320  esac
4321fi
4322# Use eval to expand $SHELL
4323if eval "$MISSING --is-lightweight"; then
4324  am_missing_run="$MISSING "
4325else
4326  am_missing_run=
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4328$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4329fi
4330
4331if test x"${install_sh+set}" != xset; then
4332  case $am_aux_dir in
4333  *\ * | *\	*)
4334    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4335  *)
4336    install_sh="\${SHELL} $am_aux_dir/install-sh"
4337  esac
4338fi
4339
4340# Installed binaries are usually stripped using 'strip' when the user
4341# run "make install-strip".  However 'strip' might not be the right
4342# tool to use in cross-compilation environments, therefore Automake
4343# will honor the 'STRIP' environment variable to overrule this program.
4344if test "$cross_compiling" != no; then
4345  if test -n "$ac_tool_prefix"; then
4346  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4347set dummy ${ac_tool_prefix}strip; ac_word=$2
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349$as_echo_n "checking for $ac_word... " >&6; }
4350if ${ac_cv_prog_STRIP+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353  if test -n "$STRIP"; then
4354  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361    for ac_exec_ext in '' $ac_executable_extensions; do
4362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365    break 2
4366  fi
4367done
4368  done
4369IFS=$as_save_IFS
4370
4371fi
4372fi
4373STRIP=$ac_cv_prog_STRIP
4374if test -n "$STRIP"; then
4375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4376$as_echo "$STRIP" >&6; }
4377else
4378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379$as_echo "no" >&6; }
4380fi
4381
4382
4383fi
4384if test -z "$ac_cv_prog_STRIP"; then
4385  ac_ct_STRIP=$STRIP
4386  # Extract the first word of "strip", so it can be a program name with args.
4387set dummy strip; ac_word=$2
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389$as_echo_n "checking for $ac_word... " >&6; }
4390if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if test -n "$ac_ct_STRIP"; then
4394  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4395else
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403    ac_cv_prog_ac_ct_STRIP="strip"
4404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405    break 2
4406  fi
4407done
4408  done
4409IFS=$as_save_IFS
4410
4411fi
4412fi
4413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4414if test -n "$ac_ct_STRIP"; then
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4416$as_echo "$ac_ct_STRIP" >&6; }
4417else
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419$as_echo "no" >&6; }
4420fi
4421
4422  if test "x$ac_ct_STRIP" = x; then
4423    STRIP=":"
4424  else
4425    case $cross_compiling:$ac_tool_warned in
4426yes:)
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429ac_tool_warned=yes ;;
4430esac
4431    STRIP=$ac_ct_STRIP
4432  fi
4433else
4434  STRIP="$ac_cv_prog_STRIP"
4435fi
4436
4437fi
4438INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4441$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4442if test -z "$MKDIR_P"; then
4443  if ${ac_cv_path_mkdir+:} false; then :
4444  $as_echo_n "(cached) " >&6
4445else
4446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451    for ac_prog in mkdir gmkdir; do
4452	 for ac_exec_ext in '' $ac_executable_extensions; do
4453	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4454	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4455	     'mkdir (GNU coreutils) '* | \
4456	     'mkdir (coreutils) '* | \
4457	     'mkdir (fileutils) '4.1*)
4458	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4459	       break 3;;
4460	   esac
4461	 done
4462       done
4463  done
4464IFS=$as_save_IFS
4465
4466fi
4467
4468  test -d ./--version && rmdir ./--version
4469  if test "${ac_cv_path_mkdir+set}" = set; then
4470    MKDIR_P="$ac_cv_path_mkdir -p"
4471  else
4472    # As a last resort, use the slow shell script.  Don't cache a
4473    # value for MKDIR_P within a source directory, because that will
4474    # break other packages using the cache if that directory is
4475    # removed, or if the value is a relative name.
4476    MKDIR_P="$ac_install_sh -d"
4477  fi
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4480$as_echo "$MKDIR_P" >&6; }
4481
4482for ac_prog in gawk mawk nawk awk
4483do
4484  # Extract the first word of "$ac_prog", so it can be a program name with args.
4485set dummy $ac_prog; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
4488if ${ac_cv_prog_AWK+:} false; then :
4489  $as_echo_n "(cached) " >&6
4490else
4491  if test -n "$AWK"; then
4492  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497  IFS=$as_save_IFS
4498  test -z "$as_dir" && as_dir=.
4499    for ac_exec_ext in '' $ac_executable_extensions; do
4500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501    ac_cv_prog_AWK="$ac_prog"
4502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503    break 2
4504  fi
4505done
4506  done
4507IFS=$as_save_IFS
4508
4509fi
4510fi
4511AWK=$ac_cv_prog_AWK
4512if test -n "$AWK"; then
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4514$as_echo "$AWK" >&6; }
4515else
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518fi
4519
4520
4521  test -n "$AWK" && break
4522done
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4525$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4526set x ${MAKE-make}
4527ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4528if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4529  $as_echo_n "(cached) " >&6
4530else
4531  cat >conftest.make <<\_ACEOF
4532SHELL = /bin/sh
4533all:
4534	@echo '@@@%%%=$(MAKE)=@@@%%%'
4535_ACEOF
4536# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4537case `${MAKE-make} -f conftest.make 2>/dev/null` in
4538  *@@@%%%=?*=@@@%%%*)
4539    eval ac_cv_prog_make_${ac_make}_set=yes;;
4540  *)
4541    eval ac_cv_prog_make_${ac_make}_set=no;;
4542esac
4543rm -f conftest.make
4544fi
4545if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547$as_echo "yes" >&6; }
4548  SET_MAKE=
4549else
4550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552  SET_MAKE="MAKE=${MAKE-make}"
4553fi
4554
4555rm -rf .tst 2>/dev/null
4556mkdir .tst 2>/dev/null
4557if test -d .tst; then
4558  am__leading_dot=.
4559else
4560  am__leading_dot=_
4561fi
4562rmdir .tst 2>/dev/null
4563
4564# Check whether --enable-silent-rules was given.
4565if test "${enable_silent_rules+set}" = set; then :
4566  enableval=$enable_silent_rules;
4567fi
4568
4569case $enable_silent_rules in # (((
4570  yes) AM_DEFAULT_VERBOSITY=0;;
4571   no) AM_DEFAULT_VERBOSITY=1;;
4572    *) AM_DEFAULT_VERBOSITY=1;;
4573esac
4574am_make=${MAKE-make}
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4576$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4577if ${am_cv_make_support_nested_variables+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  if $as_echo 'TRUE=$(BAR$(V))
4581BAR0=false
4582BAR1=true
4583V=1
4584am__doit:
4585	@$(TRUE)
4586.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4587  am_cv_make_support_nested_variables=yes
4588else
4589  am_cv_make_support_nested_variables=no
4590fi
4591fi
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4593$as_echo "$am_cv_make_support_nested_variables" >&6; }
4594if test $am_cv_make_support_nested_variables = yes; then
4595    AM_V='$(V)'
4596  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4597else
4598  AM_V=$AM_DEFAULT_VERBOSITY
4599  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4600fi
4601AM_BACKSLASH='\'
4602
4603if test "`cd $srcdir && pwd`" != "`pwd`"; then
4604  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4605  # is not polluted with repeated "-I."
4606  am__isrc=' -I$(srcdir)'
4607  # test to see if srcdir already configured
4608  if test -f $srcdir/config.status; then
4609    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4610  fi
4611fi
4612
4613# test whether we have cygpath
4614if test -z "$CYGPATH_W"; then
4615  if (cygpath --version) >/dev/null 2>/dev/null; then
4616    CYGPATH_W='cygpath -w'
4617  else
4618    CYGPATH_W=echo
4619  fi
4620fi
4621
4622
4623# Define the identity of the package.
4624 PACKAGE='pspp'
4625 VERSION='1.4.1'
4626
4627
4628cat >>confdefs.h <<_ACEOF
4629#define PACKAGE "$PACKAGE"
4630_ACEOF
4631
4632
4633cat >>confdefs.h <<_ACEOF
4634#define VERSION "$VERSION"
4635_ACEOF
4636
4637# Some tools Automake needs.
4638
4639ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4640
4641
4642AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4643
4644
4645AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4646
4647
4648AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4649
4650
4651MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4652
4653# For better backward compatibility.  To be removed once Automake 1.9.x
4654# dies out for good.  For more background, see:
4655# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4656# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4657mkdir_p='$(MKDIR_P)'
4658
4659# We need awk for the "check" target (and possibly the TAP driver).  The
4660# system "awk" is bad on some platforms.
4661# Always define AMTAR for backward compatibility.  Yes, it's still used
4662# in the wild :-(  We should find a proper way to deprecate it ...
4663AMTAR='$${TAR-tar}'
4664
4665
4666# We'll loop over all known methods to create a tar archive until one works.
4667_am_tools='gnutar plaintar pax cpio none'
4668
4669# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4670      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4671      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4672      # and bug#13588).
4673      am_max_uid=2097151 # 2^21 - 1
4674      am_max_gid=$am_max_uid
4675      # The $UID and $GID variables are not portable, so we need to resort
4676      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4677      # below are definitely unexpected, so allow the users to see them
4678      # (that is, avoid stderr redirection).
4679      am_uid=`id -u || echo unknown`
4680      am_gid=`id -g || echo unknown`
4681      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4682$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4683      if test $am_uid -le $am_max_uid; then
4684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685$as_echo "yes" >&6; }
4686      else
4687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689         _am_tools=none
4690      fi
4691      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4692$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4693      if test $am_gid -le $am_max_gid; then
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695$as_echo "yes" >&6; }
4696      else
4697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699        _am_tools=none
4700      fi
4701
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4703$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4704
4705  # Go ahead even if we have the value already cached.  We do so because we
4706  # need to set the values for the 'am__tar' and 'am__untar' variables.
4707  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4708
4709  for _am_tool in $_am_tools; do
4710    case $_am_tool in
4711    gnutar)
4712      for _am_tar in tar gnutar gtar; do
4713        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4714   ($_am_tar --version) >&5 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } && break
4718      done
4719      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4720      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4721      am__untar="$_am_tar -xf -"
4722      ;;
4723    plaintar)
4724      # Must skip GNU tar: if it does not support --format= it doesn't create
4725      # ustar tarball either.
4726      (tar --version) >/dev/null 2>&1 && continue
4727      am__tar='tar chf - "$$tardir"'
4728      am__tar_='tar chf - "$tardir"'
4729      am__untar='tar xf -'
4730      ;;
4731    pax)
4732      am__tar='pax -L -x ustar -w "$$tardir"'
4733      am__tar_='pax -L -x ustar -w "$tardir"'
4734      am__untar='pax -r'
4735      ;;
4736    cpio)
4737      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4738      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4739      am__untar='cpio -i -H ustar -d'
4740      ;;
4741    none)
4742      am__tar=false
4743      am__tar_=false
4744      am__untar=false
4745      ;;
4746    esac
4747
4748    # If the value was cached, stop now.  We just wanted to have am__tar
4749    # and am__untar set.
4750    test -n "${am_cv_prog_tar_ustar}" && break
4751
4752    # tar/untar a dummy directory, and stop if the command works.
4753    rm -rf conftest.dir
4754    mkdir conftest.dir
4755    echo GrepMe > conftest.dir/file
4756    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4757   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }
4761    rm -rf conftest.dir
4762    if test -s conftest.tar; then
4763      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4764   ($am__untar <conftest.tar) >&5 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }
4768      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4769   (cat conftest.dir/file) >&5 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }
4773      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4774    fi
4775  done
4776  rm -rf conftest.dir
4777
4778  if ${am_cv_prog_tar_ustar+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  am_cv_prog_tar_ustar=$_am_tool
4782fi
4783
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4785$as_echo "$am_cv_prog_tar_ustar" >&6; }
4786
4787
4788
4789
4790
4791
4792# POSIX will say in a future version that running "rm -f" with no argument
4793# is OK; and we want to be able to make that assumption in our Makefile
4794# recipes.  So use an aggressive probe to check that the usage we want is
4795# actually supported "in the wild" to an acceptable degree.
4796# See automake bug#10828.
4797# To make any issue more visible, cause the running configure to be aborted
4798# by default if the 'rm' program in use doesn't match our expectations; the
4799# user can still override this though.
4800if rm -f && rm -fr && rm -rf; then : OK; else
4801  cat >&2 <<'END'
4802Oops!
4803
4804Your 'rm' program seems unable to run without file operands specified
4805on the command line, even when the '-f' option is present.  This is contrary
4806to the behaviour of most rm programs out there, and not conforming with
4807the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4808
4809Please tell bug-automake@gnu.org about your system, including the value
4810of your $PATH and any error possibly output before this message.  This
4811can help us improve future automake versions.
4812
4813END
4814  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4815    echo 'Configuration will proceed anyway, since you have set the' >&2
4816    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4817    echo >&2
4818  else
4819    cat >&2 <<'END'
4820Aborting the configuration process, to ensure you take notice of the issue.
4821
4822You can download and install GNU coreutils to get an 'rm' implementation
4823that behaves properly: <https://www.gnu.org/software/coreutils/>.
4824
4825If you want to complete the configuration process using your problematic
4826'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4827to "yes", and re-run configure.
4828
4829END
4830    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4831  fi
4832fi
4833
4834
4835DEPDIR="${am__leading_dot}deps"
4836
4837ac_config_commands="$ac_config_commands depfiles"
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4840$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4841cat > confinc.mk << 'END'
4842am__doit:
4843	@echo this is the am__doit target >confinc.out
4844.PHONY: am__doit
4845END
4846am__include="#"
4847am__quote=
4848# BSD make does it like this.
4849echo '.include "confinc.mk" # ignored' > confmf.BSD
4850# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4851echo 'include confinc.mk # ignored' > confmf.GNU
4852_am_result=no
4853for s in GNU BSD; do
4854  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4855   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }
4859  case $?:`cat confinc.out 2>/dev/null` in #(
4860  '0:this is the am__doit target') :
4861    case $s in #(
4862  BSD) :
4863    am__include='.include' am__quote='"' ;; #(
4864  *) :
4865    am__include='include' am__quote='' ;;
4866esac ;; #(
4867  *) :
4868     ;;
4869esac
4870  if test "$am__include" != "#"; then
4871    _am_result="yes ($s style)"
4872    break
4873  fi
4874done
4875rm -f confinc.* confmf.*
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4877$as_echo "${_am_result}" >&6; }
4878
4879# Check whether --enable-dependency-tracking was given.
4880if test "${enable_dependency_tracking+set}" = set; then :
4881  enableval=$enable_dependency_tracking;
4882fi
4883
4884if test "x$enable_dependency_tracking" != xno; then
4885  am_depcomp="$ac_aux_dir/depcomp"
4886  AMDEPBACKSLASH='\'
4887  am__nodep='_no'
4888fi
4889 if test "x$enable_dependency_tracking" != xno; then
4890  AMDEP_TRUE=
4891  AMDEP_FALSE='#'
4892else
4893  AMDEP_TRUE='#'
4894  AMDEP_FALSE=
4895fi
4896
4897
4898ac_ext=c
4899ac_cpp='$CPP $CPPFLAGS'
4900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903if test -n "$ac_tool_prefix"; then
4904  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4905set dummy ${ac_tool_prefix}gcc; ac_word=$2
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907$as_echo_n "checking for $ac_word... " >&6; }
4908if ${ac_cv_prog_CC+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  if test -n "$CC"; then
4912  ac_cv_prog_CC="$CC" # Let the user override the test.
4913else
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917  IFS=$as_save_IFS
4918  test -z "$as_dir" && as_dir=.
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923    break 2
4924  fi
4925done
4926  done
4927IFS=$as_save_IFS
4928
4929fi
4930fi
4931CC=$ac_cv_prog_CC
4932if test -n "$CC"; then
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4934$as_echo "$CC" >&6; }
4935else
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937$as_echo "no" >&6; }
4938fi
4939
4940
4941fi
4942if test -z "$ac_cv_prog_CC"; then
4943  ac_ct_CC=$CC
4944  # Extract the first word of "gcc", so it can be a program name with args.
4945set dummy gcc; ac_word=$2
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if ${ac_cv_prog_ac_ct_CC+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  if test -n "$ac_ct_CC"; then
4952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_prog_ac_ct_CC="gcc"
4962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966  done
4967IFS=$as_save_IFS
4968
4969fi
4970fi
4971ac_ct_CC=$ac_cv_prog_ac_ct_CC
4972if test -n "$ac_ct_CC"; then
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4974$as_echo "$ac_ct_CC" >&6; }
4975else
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979
4980  if test "x$ac_ct_CC" = x; then
4981    CC=""
4982  else
4983    case $cross_compiling:$ac_tool_warned in
4984yes:)
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987ac_tool_warned=yes ;;
4988esac
4989    CC=$ac_ct_CC
4990  fi
4991else
4992  CC="$ac_cv_prog_CC"
4993fi
4994
4995if test -z "$CC"; then
4996          if test -n "$ac_tool_prefix"; then
4997    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4998set dummy ${ac_tool_prefix}cc; ac_word=$2
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000$as_echo_n "checking for $ac_word... " >&6; }
5001if ${ac_cv_prog_CC+:} false; then :
5002  $as_echo_n "(cached) " >&6
5003else
5004  if test -n "$CC"; then
5005  ac_cv_prog_CC="$CC" # Let the user override the test.
5006else
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010  IFS=$as_save_IFS
5011  test -z "$as_dir" && as_dir=.
5012    for ac_exec_ext in '' $ac_executable_extensions; do
5013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014    ac_cv_prog_CC="${ac_tool_prefix}cc"
5015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016    break 2
5017  fi
5018done
5019  done
5020IFS=$as_save_IFS
5021
5022fi
5023fi
5024CC=$ac_cv_prog_CC
5025if test -n "$CC"; then
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5027$as_echo "$CC" >&6; }
5028else
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031fi
5032
5033
5034  fi
5035fi
5036if test -z "$CC"; then
5037  # Extract the first word of "cc", so it can be a program name with args.
5038set dummy cc; ac_word=$2
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040$as_echo_n "checking for $ac_word... " >&6; }
5041if ${ac_cv_prog_CC+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  if test -n "$CC"; then
5045  ac_cv_prog_CC="$CC" # Let the user override the test.
5046else
5047  ac_prog_rejected=no
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051  IFS=$as_save_IFS
5052  test -z "$as_dir" && as_dir=.
5053    for ac_exec_ext in '' $ac_executable_extensions; do
5054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5056       ac_prog_rejected=yes
5057       continue
5058     fi
5059    ac_cv_prog_CC="cc"
5060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064  done
5065IFS=$as_save_IFS
5066
5067if test $ac_prog_rejected = yes; then
5068  # We found a bogon in the path, so make sure we never use it.
5069  set dummy $ac_cv_prog_CC
5070  shift
5071  if test $# != 0; then
5072    # We chose a different compiler from the bogus one.
5073    # However, it has the same basename, so the bogon will be chosen
5074    # first if we set CC to just the basename; use the full file name.
5075    shift
5076    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5077  fi
5078fi
5079fi
5080fi
5081CC=$ac_cv_prog_CC
5082if test -n "$CC"; then
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5084$as_echo "$CC" >&6; }
5085else
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091fi
5092if test -z "$CC"; then
5093  if test -n "$ac_tool_prefix"; then
5094  for ac_prog in cl.exe
5095  do
5096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
5100if ${ac_cv_prog_CC+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  if test -n "$CC"; then
5104  ac_cv_prog_CC="$CC" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111    for ac_exec_ext in '' $ac_executable_extensions; do
5112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118  done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123CC=$ac_cv_prog_CC
5124if test -n "$CC"; then
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5126$as_echo "$CC" >&6; }
5127else
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132
5133    test -n "$CC" && break
5134  done
5135fi
5136if test -z "$CC"; then
5137  ac_ct_CC=$CC
5138  for ac_prog in cl.exe
5139do
5140  # Extract the first word of "$ac_prog", so it can be a program name with args.
5141set dummy $ac_prog; ac_word=$2
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
5144if ${ac_cv_prog_ac_ct_CC+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  if test -n "$ac_ct_CC"; then
5148  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155    for ac_exec_ext in '' $ac_executable_extensions; do
5156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157    ac_cv_prog_ac_ct_CC="$ac_prog"
5158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159    break 2
5160  fi
5161done
5162  done
5163IFS=$as_save_IFS
5164
5165fi
5166fi
5167ac_ct_CC=$ac_cv_prog_ac_ct_CC
5168if test -n "$ac_ct_CC"; then
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5170$as_echo "$ac_ct_CC" >&6; }
5171else
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
5175
5176
5177  test -n "$ac_ct_CC" && break
5178done
5179
5180  if test "x$ac_ct_CC" = x; then
5181    CC=""
5182  else
5183    case $cross_compiling:$ac_tool_warned in
5184yes:)
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187ac_tool_warned=yes ;;
5188esac
5189    CC=$ac_ct_CC
5190  fi
5191fi
5192
5193fi
5194if test -z "$CC"; then
5195  if test -n "$ac_tool_prefix"; then
5196  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5197set dummy ${ac_tool_prefix}clang; ac_word=$2
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199$as_echo_n "checking for $ac_word... " >&6; }
5200if ${ac_cv_prog_CC+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203  if test -n "$CC"; then
5204  ac_cv_prog_CC="$CC" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209  IFS=$as_save_IFS
5210  test -z "$as_dir" && as_dir=.
5211    for ac_exec_ext in '' $ac_executable_extensions; do
5212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213    ac_cv_prog_CC="${ac_tool_prefix}clang"
5214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215    break 2
5216  fi
5217done
5218  done
5219IFS=$as_save_IFS
5220
5221fi
5222fi
5223CC=$ac_cv_prog_CC
5224if test -n "$CC"; then
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5226$as_echo "$CC" >&6; }
5227else
5228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
5230fi
5231
5232
5233fi
5234if test -z "$ac_cv_prog_CC"; then
5235  ac_ct_CC=$CC
5236  # Extract the first word of "clang", so it can be a program name with args.
5237set dummy clang; ac_word=$2
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239$as_echo_n "checking for $ac_word... " >&6; }
5240if ${ac_cv_prog_ac_ct_CC+:} false; then :
5241  $as_echo_n "(cached) " >&6
5242else
5243  if test -n "$ac_ct_CC"; then
5244  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5245else
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249  IFS=$as_save_IFS
5250  test -z "$as_dir" && as_dir=.
5251    for ac_exec_ext in '' $ac_executable_extensions; do
5252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253    ac_cv_prog_ac_ct_CC="clang"
5254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255    break 2
5256  fi
5257done
5258  done
5259IFS=$as_save_IFS
5260
5261fi
5262fi
5263ac_ct_CC=$ac_cv_prog_ac_ct_CC
5264if test -n "$ac_ct_CC"; then
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5266$as_echo "$ac_ct_CC" >&6; }
5267else
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5270fi
5271
5272  if test "x$ac_ct_CC" = x; then
5273    CC=""
5274  else
5275    case $cross_compiling:$ac_tool_warned in
5276yes:)
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279ac_tool_warned=yes ;;
5280esac
5281    CC=$ac_ct_CC
5282  fi
5283else
5284  CC="$ac_cv_prog_CC"
5285fi
5286
5287fi
5288
5289
5290test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5292as_fn_error $? "no acceptable C compiler found in \$PATH
5293See \`config.log' for more details" "$LINENO" 5; }
5294
5295# Provide some information about the compiler.
5296$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5297set X $ac_compile
5298ac_compiler=$2
5299for ac_option in --version -v -V -qversion -version; do
5300  { { ac_try="$ac_compiler $ac_option >&5"
5301case "(($ac_try" in
5302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303  *) ac_try_echo=$ac_try;;
5304esac
5305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5306$as_echo "$ac_try_echo"; } >&5
5307  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5308  ac_status=$?
5309  if test -s conftest.err; then
5310    sed '10a\
5311... rest of stderr output deleted ...
5312         10q' conftest.err >conftest.er1
5313    cat conftest.er1 >&5
5314  fi
5315  rm -f conftest.er1 conftest.err
5316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317  test $ac_status = 0; }
5318done
5319
5320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h.  */
5322
5323int
5324main ()
5325{
5326
5327  ;
5328  return 0;
5329}
5330_ACEOF
5331ac_clean_files_save=$ac_clean_files
5332ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5333# Try to create an executable without -o first, disregard a.out.
5334# It will help us diagnose broken compilers, and finding out an intuition
5335# of exeext.
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5337$as_echo_n "checking whether the C compiler works... " >&6; }
5338ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5339
5340# The possible output files:
5341ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5342
5343ac_rmfiles=
5344for ac_file in $ac_files
5345do
5346  case $ac_file in
5347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5348    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5349  esac
5350done
5351rm -f $ac_rmfiles
5352
5353if { { ac_try="$ac_link_default"
5354case "(($ac_try" in
5355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356  *) ac_try_echo=$ac_try;;
5357esac
5358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5359$as_echo "$ac_try_echo"; } >&5
5360  (eval "$ac_link_default") 2>&5
5361  ac_status=$?
5362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5363  test $ac_status = 0; }; then :
5364  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5365# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5366# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5367# so that the user can short-circuit this test for compilers unknown to
5368# Autoconf.
5369for ac_file in $ac_files ''
5370do
5371  test -f "$ac_file" || continue
5372  case $ac_file in
5373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5374	;;
5375    [ab].out )
5376	# We found the default executable, but exeext='' is most
5377	# certainly right.
5378	break;;
5379    *.* )
5380	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5381	then :; else
5382	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5383	fi
5384	# We set ac_cv_exeext here because the later test for it is not
5385	# safe: cross compilers may not add the suffix if given an `-o'
5386	# argument, so we may need to know it at that point already.
5387	# Even if this section looks crufty: it has the advantage of
5388	# actually working.
5389	break;;
5390    * )
5391	break;;
5392  esac
5393done
5394test "$ac_cv_exeext" = no && ac_cv_exeext=
5395
5396else
5397  ac_file=''
5398fi
5399if test -z "$ac_file"; then :
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5402$as_echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407as_fn_error 77 "C compiler cannot create executables
5408See \`config.log' for more details" "$LINENO" 5; }
5409else
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411$as_echo "yes" >&6; }
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5414$as_echo_n "checking for C compiler default output file name... " >&6; }
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5416$as_echo "$ac_file" >&6; }
5417ac_exeext=$ac_cv_exeext
5418
5419rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5420ac_clean_files=$ac_clean_files_save
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5422$as_echo_n "checking for suffix of executables... " >&6; }
5423if { { ac_try="$ac_link"
5424case "(($ac_try" in
5425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426  *) ac_try_echo=$ac_try;;
5427esac
5428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5429$as_echo "$ac_try_echo"; } >&5
5430  (eval "$ac_link") 2>&5
5431  ac_status=$?
5432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5433  test $ac_status = 0; }; then :
5434  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5435# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5436# work properly (i.e., refer to `conftest.exe'), while it won't with
5437# `rm'.
5438for ac_file in conftest.exe conftest conftest.*; do
5439  test -f "$ac_file" || continue
5440  case $ac_file in
5441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5442    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5443	  break;;
5444    * ) break;;
5445  esac
5446done
5447else
5448  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5451See \`config.log' for more details" "$LINENO" 5; }
5452fi
5453rm -f conftest conftest$ac_cv_exeext
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5455$as_echo "$ac_cv_exeext" >&6; }
5456
5457rm -f conftest.$ac_ext
5458EXEEXT=$ac_cv_exeext
5459ac_exeext=$EXEEXT
5460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h.  */
5462#include <stdio.h>
5463int
5464main ()
5465{
5466FILE *f = fopen ("conftest.out", "w");
5467 return ferror (f) || fclose (f) != 0;
5468
5469  ;
5470  return 0;
5471}
5472_ACEOF
5473ac_clean_files="$ac_clean_files conftest.out"
5474# Check that the compiler produces executables we can run.  If not, either
5475# the compiler is broken, or we cross compile.
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5477$as_echo_n "checking whether we are cross compiling... " >&6; }
5478if test "$cross_compiling" != yes; then
5479  { { ac_try="$ac_link"
5480case "(($ac_try" in
5481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482  *) ac_try_echo=$ac_try;;
5483esac
5484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5485$as_echo "$ac_try_echo"; } >&5
5486  (eval "$ac_link") 2>&5
5487  ac_status=$?
5488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489  test $ac_status = 0; }
5490  if { ac_try='./conftest$ac_cv_exeext'
5491  { { case "(($ac_try" in
5492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493  *) ac_try_echo=$ac_try;;
5494esac
5495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5496$as_echo "$ac_try_echo"; } >&5
5497  (eval "$ac_try") 2>&5
5498  ac_status=$?
5499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500  test $ac_status = 0; }; }; then
5501    cross_compiling=no
5502  else
5503    if test "$cross_compiling" = maybe; then
5504	cross_compiling=yes
5505    else
5506	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5508as_fn_error $? "cannot run C compiled programs.
5509If you meant to cross compile, use \`--host'.
5510See \`config.log' for more details" "$LINENO" 5; }
5511    fi
5512  fi
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5515$as_echo "$cross_compiling" >&6; }
5516
5517rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5518ac_clean_files=$ac_clean_files_save
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5520$as_echo_n "checking for suffix of object files... " >&6; }
5521if ${ac_cv_objext+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526
5527int
5528main ()
5529{
5530
5531  ;
5532  return 0;
5533}
5534_ACEOF
5535rm -f conftest.o conftest.obj
5536if { { ac_try="$ac_compile"
5537case "(($ac_try" in
5538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539  *) ac_try_echo=$ac_try;;
5540esac
5541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5542$as_echo "$ac_try_echo"; } >&5
5543  (eval "$ac_compile") 2>&5
5544  ac_status=$?
5545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5546  test $ac_status = 0; }; then :
5547  for ac_file in conftest.o conftest.obj conftest.*; do
5548  test -f "$ac_file" || continue;
5549  case $ac_file in
5550    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5551    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5552       break;;
5553  esac
5554done
5555else
5556  $as_echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
5559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5561as_fn_error $? "cannot compute suffix of object files: cannot compile
5562See \`config.log' for more details" "$LINENO" 5; }
5563fi
5564rm -f conftest.$ac_cv_objext conftest.$ac_ext
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5567$as_echo "$ac_cv_objext" >&6; }
5568OBJEXT=$ac_cv_objext
5569ac_objext=$OBJEXT
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5571$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5572if ${ac_cv_c_compiler_gnu+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577
5578int
5579main ()
5580{
5581#ifndef __GNUC__
5582       choke me
5583#endif
5584
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589if ac_fn_c_try_compile "$LINENO"; then :
5590  ac_compiler_gnu=yes
5591else
5592  ac_compiler_gnu=no
5593fi
5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595ac_cv_c_compiler_gnu=$ac_compiler_gnu
5596
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5599$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5600if test $ac_compiler_gnu = yes; then
5601  GCC=yes
5602else
5603  GCC=
5604fi
5605ac_test_CFLAGS=${CFLAGS+set}
5606ac_save_CFLAGS=$CFLAGS
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5608$as_echo_n "checking whether $CC accepts -g... " >&6; }
5609if ${ac_cv_prog_cc_g+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  ac_save_c_werror_flag=$ac_c_werror_flag
5613   ac_c_werror_flag=yes
5614   ac_cv_prog_cc_g=no
5615   CFLAGS="-g"
5616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h.  */
5618
5619int
5620main ()
5621{
5622
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628  ac_cv_prog_cc_g=yes
5629else
5630  CFLAGS=""
5631      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h.  */
5633
5634int
5635main ()
5636{
5637
5638  ;
5639  return 0;
5640}
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"; then :
5643
5644else
5645  ac_c_werror_flag=$ac_save_c_werror_flag
5646	 CFLAGS="-g"
5647	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h.  */
5649
5650int
5651main ()
5652{
5653
5654  ;
5655  return 0;
5656}
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"; then :
5659  ac_cv_prog_cc_g=yes
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666   ac_c_werror_flag=$ac_save_c_werror_flag
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5669$as_echo "$ac_cv_prog_cc_g" >&6; }
5670if test "$ac_test_CFLAGS" = set; then
5671  CFLAGS=$ac_save_CFLAGS
5672elif test $ac_cv_prog_cc_g = yes; then
5673  if test "$GCC" = yes; then
5674    CFLAGS="-g -O2"
5675  else
5676    CFLAGS="-g"
5677  fi
5678else
5679  if test "$GCC" = yes; then
5680    CFLAGS="-O2"
5681  else
5682    CFLAGS=
5683  fi
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5686$as_echo_n "checking for $CC option to enable C11 features... " >&6; }
5687if ${ac_cv_prog_cc_c11+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  ac_cv_prog_cc_c11=no
5691ac_save_CC=$CC
5692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694#include <stdarg.h>
5695#include <stdbool.h>
5696#include <stddef.h>
5697#include <stdlib.h>
5698#include <wchar.h>
5699#include <stdio.h>
5700
5701// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5702#define debug(...) fprintf (stderr, __VA_ARGS__)
5703#define showlist(...) puts (#__VA_ARGS__)
5704#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5705static void
5706test_varargs_macros (void)
5707{
5708  int x = 1234;
5709  int y = 5678;
5710  debug ("Flag");
5711  debug ("X = %d\n", x);
5712  showlist (The first, second, and third items.);
5713  report (x>y, "x is %d but y is %d", x, y);
5714}
5715
5716// Check long long types.
5717#define BIG64 18446744073709551615ull
5718#define BIG32 4294967295ul
5719#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5720#if !BIG_OK
5721  your preprocessor is broken;
5722#endif
5723#if BIG_OK
5724#else
5725  your preprocessor is broken;
5726#endif
5727static long long int bignum = -9223372036854775807LL;
5728static unsigned long long int ubignum = BIG64;
5729
5730struct incomplete_array
5731{
5732  int datasize;
5733  double data[];
5734};
5735
5736struct named_init {
5737  int number;
5738  const wchar_t *name;
5739  double average;
5740};
5741
5742typedef const char *ccp;
5743
5744static inline int
5745test_restrict (ccp restrict text)
5746{
5747  // See if C++-style comments work.
5748  // Iterate through items via the restricted pointer.
5749  // Also check for declarations in for loops.
5750  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5751    continue;
5752  return 0;
5753}
5754
5755// Check varargs and va_copy.
5756static bool
5757test_varargs (const char *format, ...)
5758{
5759  va_list args;
5760  va_start (args, format);
5761  va_list args_copy;
5762  va_copy (args_copy, args);
5763
5764  const char *str = "";
5765  int number = 0;
5766  float fnumber = 0;
5767
5768  while (*format)
5769    {
5770      switch (*format++)
5771	{
5772	case 's': // string
5773	  str = va_arg (args_copy, const char *);
5774	  break;
5775	case 'd': // int
5776	  number = va_arg (args_copy, int);
5777	  break;
5778	case 'f': // float
5779	  fnumber = va_arg (args_copy, double);
5780	  break;
5781	default:
5782	  break;
5783	}
5784    }
5785  va_end (args_copy);
5786  va_end (args);
5787
5788  return *str && number && fnumber;
5789}
5790// Check _Alignas.
5791char _Alignas (double) aligned_as_double;
5792char _Alignas (0) no_special_alignment;
5793extern char aligned_as_int;
5794char _Alignas (0) _Alignas (int) aligned_as_int;
5795
5796// Check _Alignof.
5797enum
5798{
5799  int_alignment = _Alignof (int),
5800  int_array_alignment = _Alignof (int[100]),
5801  char_alignment = _Alignof (char)
5802};
5803_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5804
5805// Check _Noreturn.
5806int _Noreturn does_not_return (void) { for (;;) continue; }
5807
5808// Check _Static_assert.
5809struct test_static_assert
5810{
5811  int x;
5812  _Static_assert (sizeof (int) <= sizeof (long int),
5813                  "_Static_assert does not work in struct");
5814  long int y;
5815};
5816
5817// Check UTF-8 literals.
5818#define u8 syntax error!
5819char const utf8_literal[] = u8"happens to be ASCII" "another string";
5820
5821// Check duplicate typedefs.
5822typedef long *long_ptr;
5823typedef long int *long_ptr;
5824typedef long_ptr long_ptr;
5825
5826// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5827struct anonymous
5828{
5829  union {
5830    struct { int i; int j; };
5831    struct { int k; long int l; } w;
5832  };
5833  int m;
5834} v1;
5835
5836int
5837main ()
5838{
5839
5840  // Check bool.
5841  _Bool success = false;
5842
5843  // Check restrict.
5844  if (test_restrict ("String literal") == 0)
5845    success = true;
5846  char *restrict newvar = "Another string";
5847
5848  // Check varargs.
5849  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5850  test_varargs_macros ();
5851
5852  // Check flexible array members.
5853  struct incomplete_array *ia =
5854    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5855  ia->datasize = 10;
5856  for (int i = 0; i < ia->datasize; ++i)
5857    ia->data[i] = i * 1.234;
5858
5859  // Check named initializers.
5860  struct named_init ni = {
5861    .number = 34,
5862    .name = L"Test wide string",
5863    .average = 543.34343,
5864  };
5865
5866  ni.number = 58;
5867
5868  int dynamic_array[ni.number];
5869  dynamic_array[ni.number - 1] = 543;
5870
5871  // work around unused variable warnings
5872  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5873	  || dynamic_array[ni.number - 1] != 543);
5874
5875  v1.i = 2;
5876  v1.w.k = 5;
5877  _Static_assert ((offsetof (struct anonymous, i)
5878		   == offsetof (struct anonymous, w.k)),
5879		  "Anonymous union alignment botch");
5880
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885for ac_arg in '' -std=gnu11
5886do
5887  CC="$ac_save_CC $ac_arg"
5888  if ac_fn_c_try_compile "$LINENO"; then :
5889  ac_cv_prog_cc_c11=$ac_arg
5890fi
5891rm -f core conftest.err conftest.$ac_objext
5892  test "x$ac_cv_prog_cc_c11" != "xno" && break
5893done
5894rm -f conftest.$ac_ext
5895CC=$ac_save_CC
5896
5897fi
5898# AC_CACHE_VAL
5899ac_prog_cc_stdc_options=
5900case "x$ac_cv_prog_cc_c11" in
5901  x)
5902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5903$as_echo "none needed" >&6; } ;;
5904  xno)
5905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5906$as_echo "unsupported" >&6; } ;;
5907  *)
5908    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5909    CC=$CC$ac_prog_cc_stdc_options
5910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5911$as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
5912esac
5913if test "x$ac_cv_prog_cc_c11" != xno; then :
5914  ac_prog_cc_stdc=c11
5915		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5916else
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5918$as_echo_n "checking for $CC option to enable C99 features... " >&6; }
5919if ${ac_cv_prog_cc_c99+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  ac_cv_prog_cc_c99=no
5923ac_save_CC=$CC
5924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926#include <stdarg.h>
5927#include <stdbool.h>
5928#include <stddef.h>
5929#include <stdlib.h>
5930#include <wchar.h>
5931#include <stdio.h>
5932
5933// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5934#define debug(...) fprintf (stderr, __VA_ARGS__)
5935#define showlist(...) puts (#__VA_ARGS__)
5936#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5937static void
5938test_varargs_macros (void)
5939{
5940  int x = 1234;
5941  int y = 5678;
5942  debug ("Flag");
5943  debug ("X = %d\n", x);
5944  showlist (The first, second, and third items.);
5945  report (x>y, "x is %d but y is %d", x, y);
5946}
5947
5948// Check long long types.
5949#define BIG64 18446744073709551615ull
5950#define BIG32 4294967295ul
5951#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5952#if !BIG_OK
5953  your preprocessor is broken;
5954#endif
5955#if BIG_OK
5956#else
5957  your preprocessor is broken;
5958#endif
5959static long long int bignum = -9223372036854775807LL;
5960static unsigned long long int ubignum = BIG64;
5961
5962struct incomplete_array
5963{
5964  int datasize;
5965  double data[];
5966};
5967
5968struct named_init {
5969  int number;
5970  const wchar_t *name;
5971  double average;
5972};
5973
5974typedef const char *ccp;
5975
5976static inline int
5977test_restrict (ccp restrict text)
5978{
5979  // See if C++-style comments work.
5980  // Iterate through items via the restricted pointer.
5981  // Also check for declarations in for loops.
5982  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5983    continue;
5984  return 0;
5985}
5986
5987// Check varargs and va_copy.
5988static bool
5989test_varargs (const char *format, ...)
5990{
5991  va_list args;
5992  va_start (args, format);
5993  va_list args_copy;
5994  va_copy (args_copy, args);
5995
5996  const char *str = "";
5997  int number = 0;
5998  float fnumber = 0;
5999
6000  while (*format)
6001    {
6002      switch (*format++)
6003	{
6004	case 's': // string
6005	  str = va_arg (args_copy, const char *);
6006	  break;
6007	case 'd': // int
6008	  number = va_arg (args_copy, int);
6009	  break;
6010	case 'f': // float
6011	  fnumber = va_arg (args_copy, double);
6012	  break;
6013	default:
6014	  break;
6015	}
6016    }
6017  va_end (args_copy);
6018  va_end (args);
6019
6020  return *str && number && fnumber;
6021}
6022int
6023main ()
6024{
6025
6026  // Check bool.
6027  _Bool success = false;
6028
6029  // Check restrict.
6030  if (test_restrict ("String literal") == 0)
6031    success = true;
6032  char *restrict newvar = "Another string";
6033
6034  // Check varargs.
6035  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
6036  test_varargs_macros ();
6037
6038  // Check flexible array members.
6039  struct incomplete_array *ia =
6040    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6041  ia->datasize = 10;
6042  for (int i = 0; i < ia->datasize; ++i)
6043    ia->data[i] = i * 1.234;
6044
6045  // Check named initializers.
6046  struct named_init ni = {
6047    .number = 34,
6048    .name = L"Test wide string",
6049    .average = 543.34343,
6050  };
6051
6052  ni.number = 58;
6053
6054  int dynamic_array[ni.number];
6055  dynamic_array[ni.number - 1] = 543;
6056
6057  // work around unused variable warnings
6058  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6059	  || dynamic_array[ni.number - 1] != 543);
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
6066do
6067  CC="$ac_save_CC $ac_arg"
6068  if ac_fn_c_try_compile "$LINENO"; then :
6069  ac_cv_prog_cc_c99=$ac_arg
6070fi
6071rm -f core conftest.err conftest.$ac_objext
6072  test "x$ac_cv_prog_cc_c99" != "xno" && break
6073done
6074rm -f conftest.$ac_ext
6075CC=$ac_save_CC
6076
6077fi
6078# AC_CACHE_VAL
6079ac_prog_cc_stdc_options=
6080case "x$ac_cv_prog_cc_c99" in
6081  x)
6082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6083$as_echo "none needed" >&6; } ;;
6084  xno)
6085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6086$as_echo "unsupported" >&6; } ;;
6087  *)
6088    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
6089    CC=$CC$ac_prog_cc_stdc_options
6090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6091$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6092esac
6093if test "x$ac_cv_prog_cc_c99" != xno; then :
6094  ac_prog_cc_stdc=c99
6095		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6096else
6097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6098$as_echo_n "checking for $CC option to enable C89 features... " >&6; }
6099if ${ac_cv_prog_cc_c89+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  ac_cv_prog_cc_c89=no
6103ac_save_CC=$CC
6104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106#include <stdarg.h>
6107#include <stdio.h>
6108struct stat;
6109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6110struct buf { int x; };
6111FILE * (*rcsopen) (struct buf *, struct stat *, int);
6112static char *e (p, i)
6113     char **p;
6114     int i;
6115{
6116  return p[i];
6117}
6118static char *f (char * (*g) (char **, int), char **p, ...)
6119{
6120  char *s;
6121  va_list v;
6122  va_start (v,p);
6123  s = g (p, va_arg (v,int));
6124  va_end (v);
6125  return s;
6126}
6127
6128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6129   function prototypes and stuff, but not '\xHH' hex character constants.
6130   These don't provoke an error unfortunately, instead are silently treated
6131   as 'x'.  The following induces an error, until -std is added to get
6132   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6133   array size at least.  It's necessary to write '\x00'==0 to get something
6134   that's true only with -std.  */
6135int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6136
6137/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6138   inside strings and character constants.  */
6139#define FOO(x) 'x'
6140int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6141
6142int test (int i, double x);
6143struct s1 {int (*f) (int a);};
6144struct s2 {int (*f) (double a);};
6145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6146int argc;
6147char **argv;
6148int
6149main ()
6150{
6151return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6152  ;
6153  return 0;
6154}
6155_ACEOF
6156for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6157	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6158do
6159  CC="$ac_save_CC $ac_arg"
6160  if ac_fn_c_try_compile "$LINENO"; then :
6161  ac_cv_prog_cc_c89=$ac_arg
6162fi
6163rm -f core conftest.err conftest.$ac_objext
6164  test "x$ac_cv_prog_cc_c89" != "xno" && break
6165done
6166rm -f conftest.$ac_ext
6167CC=$ac_save_CC
6168
6169fi
6170# AC_CACHE_VAL
6171ac_prog_cc_stdc_options=
6172case "x$ac_cv_prog_cc_c89" in
6173  x)
6174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6175$as_echo "none needed" >&6; } ;;
6176  xno)
6177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6178$as_echo "unsupported" >&6; } ;;
6179  *)
6180    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
6181    CC=$CC$ac_prog_cc_stdc_options
6182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6183$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6184esac
6185if test "x$ac_cv_prog_cc_c89" != xno; then :
6186  ac_prog_cc_stdc=c89
6187		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6188else
6189  ac_prog_cc_stdc=no
6190		       ac_cv_prog_cc_stdc=no
6191fi
6192
6193fi
6194
6195fi
6196
6197ac_ext=c
6198ac_cpp='$CPP $CPPFLAGS'
6199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202
6203
6204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6205$as_echo_n "checking whether the compiler is clang... " >&6; }
6206if ${gl_cv_compiler_clang+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211
6212           #ifdef __clang__
6213           barfbarf
6214           #endif
6215
6216int
6217main ()
6218{
6219
6220  ;
6221  return 0;
6222}
6223
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"; then :
6226  gl_cv_compiler_clang=no
6227else
6228  gl_cv_compiler_clang=yes
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231
6232fi
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6234$as_echo "$gl_cv_compiler_clang" >&6; }
6235
6236
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6238$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
6239if ${gl_cv_compiler_check_decl_option+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  if test $gl_cv_compiler_clang = yes; then
6243                     save_ac_compile="$ac_compile"
6244       ac_compile="$ac_compile -Werror=implicit-function-declaration"
6245                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247
6248int
6249main ()
6250{
6251
6252  ;
6253  return 0;
6254}
6255_ACEOF
6256if ac_fn_c_try_compile "$LINENO"; then :
6257  gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6258else
6259  gl_cv_compiler_check_decl_option=none
6260fi
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262       ac_compile="$save_ac_compile"
6263     else
6264       gl_cv_compiler_check_decl_option=none
6265     fi
6266
6267fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6269$as_echo "$gl_cv_compiler_check_decl_option" >&6; }
6270  if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6271    ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6272  else
6273    ac_compile_for_check_decl="$ac_compile"
6274  fi
6275
6276
6277depcc="$CC"   am_compiler_list=
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6280$as_echo_n "checking dependency style of $depcc... " >&6; }
6281if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6285  # We make a subdir and do the tests there.  Otherwise we can end up
6286  # making bogus files that we don't know about and never remove.  For
6287  # instance it was reported that on HP-UX the gcc test will end up
6288  # making a dummy file named 'D' -- because '-MD' means "put the output
6289  # in D".
6290  rm -rf conftest.dir
6291  mkdir conftest.dir
6292  # Copy depcomp to subdir because otherwise we won't find it if we're
6293  # using a relative directory.
6294  cp "$am_depcomp" conftest.dir
6295  cd conftest.dir
6296  # We will build objects and dependencies in a subdirectory because
6297  # it helps to detect inapplicable dependency modes.  For instance
6298  # both Tru64's cc and ICC support -MD to output dependencies as a
6299  # side effect of compilation, but ICC will put the dependencies in
6300  # the current directory while Tru64 will put them in the object
6301  # directory.
6302  mkdir sub
6303
6304  am_cv_CC_dependencies_compiler_type=none
6305  if test "$am_compiler_list" = ""; then
6306     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6307  fi
6308  am__universal=false
6309  case " $depcc " in #(
6310     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6311     esac
6312
6313  for depmode in $am_compiler_list; do
6314    # Setup a source with many dependencies, because some compilers
6315    # like to wrap large dependency lists on column 80 (with \), and
6316    # we should not choose a depcomp mode which is confused by this.
6317    #
6318    # We need to recreate these files for each test, as the compiler may
6319    # overwrite some of them when testing with obscure command lines.
6320    # This happens at least with the AIX C compiler.
6321    : > sub/conftest.c
6322    for i in 1 2 3 4 5 6; do
6323      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6324      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6325      # Solaris 10 /bin/sh.
6326      echo '/* dummy */' > sub/conftst$i.h
6327    done
6328    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6329
6330    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6331    # mode.  It turns out that the SunPro C++ compiler does not properly
6332    # handle '-M -o', and we need to detect this.  Also, some Intel
6333    # versions had trouble with output in subdirs.
6334    am__obj=sub/conftest.${OBJEXT-o}
6335    am__minus_obj="-o $am__obj"
6336    case $depmode in
6337    gcc)
6338      # This depmode causes a compiler race in universal mode.
6339      test "$am__universal" = false || continue
6340      ;;
6341    nosideeffect)
6342      # After this tag, mechanisms are not by side-effect, so they'll
6343      # only be used when explicitly requested.
6344      if test "x$enable_dependency_tracking" = xyes; then
6345	continue
6346      else
6347	break
6348      fi
6349      ;;
6350    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6351      # This compiler won't grok '-c -o', but also, the minuso test has
6352      # not run yet.  These depmodes are late enough in the game, and
6353      # so weak that their functioning should not be impacted.
6354      am__obj=conftest.${OBJEXT-o}
6355      am__minus_obj=
6356      ;;
6357    none) break ;;
6358    esac
6359    if depmode=$depmode \
6360       source=sub/conftest.c object=$am__obj \
6361       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6362       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6363         >/dev/null 2>conftest.err &&
6364       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6365       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6366       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6367       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6368      # icc doesn't choke on unknown options, it will just issue warnings
6369      # or remarks (even with -Werror).  So we grep stderr for any message
6370      # that says an option was ignored or not supported.
6371      # When given -MP, icc 7.0 and 7.1 complain thusly:
6372      #   icc: Command line warning: ignoring option '-M'; no argument required
6373      # The diagnosis changed in icc 8.0:
6374      #   icc: Command line remark: option '-MP' not supported
6375      if (grep 'ignoring option' conftest.err ||
6376          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6377        am_cv_CC_dependencies_compiler_type=$depmode
6378        break
6379      fi
6380    fi
6381  done
6382
6383  cd ..
6384  rm -rf conftest.dir
6385else
6386  am_cv_CC_dependencies_compiler_type=none
6387fi
6388
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6391$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6392CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6393
6394 if
6395  test "x$enable_dependency_tracking" != xno \
6396  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6397  am__fastdepCC_TRUE=
6398  am__fastdepCC_FALSE='#'
6399else
6400  am__fastdepCC_TRUE='#'
6401  am__fastdepCC_FALSE=
6402fi
6403
6404
6405
6406ac_ext=c
6407ac_cpp='$CPP $CPPFLAGS'
6408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6412$as_echo_n "checking how to run the C preprocessor... " >&6; }
6413# On Suns, sometimes $CPP names a directory.
6414if test -n "$CPP" && test -d "$CPP"; then
6415  CPP=
6416fi
6417if test -z "$CPP"; then
6418  if ${ac_cv_prog_CPP+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421      # Double quotes because CPP needs to be expanded
6422    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6423    do
6424      ac_preproc_ok=false
6425for ac_c_preproc_warn_flag in '' yes
6426do
6427  # Use a header file that comes with gcc, so configuring glibc
6428  # with a fresh cross-compiler works.
6429  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6430  # <limits.h> exists even on freestanding compilers.
6431  # On the NeXT, cc -E runs the code through the compiler's parser,
6432  # not just through cpp. "Syntax error" is here to catch this case.
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435#ifdef __STDC__
6436# include <limits.h>
6437#else
6438# include <assert.h>
6439#endif
6440		     Syntax error
6441_ACEOF
6442if ac_fn_c_try_cpp "$LINENO"; then :
6443
6444else
6445  # Broken: fails on valid input.
6446continue
6447fi
6448rm -f conftest.err conftest.i conftest.$ac_ext
6449
6450  # OK, works on sane cases.  Now check whether nonexistent headers
6451  # can be detected and how.
6452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454#include <ac_nonexistent.h>
6455_ACEOF
6456if ac_fn_c_try_cpp "$LINENO"; then :
6457  # Broken: success on invalid input.
6458continue
6459else
6460  # Passes both tests.
6461ac_preproc_ok=:
6462break
6463fi
6464rm -f conftest.err conftest.i conftest.$ac_ext
6465
6466done
6467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6468rm -f conftest.i conftest.err conftest.$ac_ext
6469if $ac_preproc_ok; then :
6470  break
6471fi
6472
6473    done
6474    ac_cv_prog_CPP=$CPP
6475
6476fi
6477  CPP=$ac_cv_prog_CPP
6478else
6479  ac_cv_prog_CPP=$CPP
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6482$as_echo "$CPP" >&6; }
6483ac_preproc_ok=false
6484for ac_c_preproc_warn_flag in '' yes
6485do
6486  # Use a header file that comes with gcc, so configuring glibc
6487  # with a fresh cross-compiler works.
6488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6489  # <limits.h> exists even on freestanding compilers.
6490  # On the NeXT, cc -E runs the code through the compiler's parser,
6491  # not just through cpp. "Syntax error" is here to catch this case.
6492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494#ifdef __STDC__
6495# include <limits.h>
6496#else
6497# include <assert.h>
6498#endif
6499		     Syntax error
6500_ACEOF
6501if ac_fn_c_try_cpp "$LINENO"; then :
6502
6503else
6504  # Broken: fails on valid input.
6505continue
6506fi
6507rm -f conftest.err conftest.i conftest.$ac_ext
6508
6509  # OK, works on sane cases.  Now check whether nonexistent headers
6510  # can be detected and how.
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513#include <ac_nonexistent.h>
6514_ACEOF
6515if ac_fn_c_try_cpp "$LINENO"; then :
6516  # Broken: success on invalid input.
6517continue
6518else
6519  # Passes both tests.
6520ac_preproc_ok=:
6521break
6522fi
6523rm -f conftest.err conftest.i conftest.$ac_ext
6524
6525done
6526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6527rm -f conftest.i conftest.err conftest.$ac_ext
6528if $ac_preproc_ok; then :
6529
6530else
6531  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6533as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6534See \`config.log' for more details" "$LINENO" 5; }
6535fi
6536
6537ac_ext=c
6538ac_cpp='$CPP $CPPFLAGS'
6539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
6543
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6545$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6546if ${ac_cv_path_GREP+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  if test -z "$GREP"; then
6550  ac_path_GREP_found=false
6551  # Loop through the user's path and test for each of PROGNAME-LIST
6552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6554do
6555  IFS=$as_save_IFS
6556  test -z "$as_dir" && as_dir=.
6557    for ac_prog in grep ggrep; do
6558    for ac_exec_ext in '' $ac_executable_extensions; do
6559      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6560      as_fn_executable_p "$ac_path_GREP" || continue
6561# Check for GNU ac_path_GREP and select it if it is found.
6562  # Check for GNU $ac_path_GREP
6563case `"$ac_path_GREP" --version 2>&1` in
6564*GNU*)
6565  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6566*)
6567  ac_count=0
6568  $as_echo_n 0123456789 >"conftest.in"
6569  while :
6570  do
6571    cat "conftest.in" "conftest.in" >"conftest.tmp"
6572    mv "conftest.tmp" "conftest.in"
6573    cp "conftest.in" "conftest.nl"
6574    $as_echo 'GREP' >> "conftest.nl"
6575    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6576    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6577    as_fn_arith $ac_count + 1 && ac_count=$as_val
6578    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6579      # Best one so far, save it but keep looking for a better one
6580      ac_cv_path_GREP="$ac_path_GREP"
6581      ac_path_GREP_max=$ac_count
6582    fi
6583    # 10*(2^10) chars as input seems more than enough
6584    test $ac_count -gt 10 && break
6585  done
6586  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6587esac
6588
6589      $ac_path_GREP_found && break 3
6590    done
6591  done
6592  done
6593IFS=$as_save_IFS
6594  if test -z "$ac_cv_path_GREP"; then
6595    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6596  fi
6597else
6598  ac_cv_path_GREP=$GREP
6599fi
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6603$as_echo "$ac_cv_path_GREP" >&6; }
6604 GREP="$ac_cv_path_GREP"
6605
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6608$as_echo_n "checking for egrep... " >&6; }
6609if ${ac_cv_path_EGREP+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6613   then ac_cv_path_EGREP="$GREP -E"
6614   else
6615     if test -z "$EGREP"; then
6616  ac_path_EGREP_found=false
6617  # Loop through the user's path and test for each of PROGNAME-LIST
6618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6620do
6621  IFS=$as_save_IFS
6622  test -z "$as_dir" && as_dir=.
6623    for ac_prog in egrep; do
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6626      as_fn_executable_p "$ac_path_EGREP" || continue
6627# Check for GNU ac_path_EGREP and select it if it is found.
6628  # Check for GNU $ac_path_EGREP
6629case `"$ac_path_EGREP" --version 2>&1` in
6630*GNU*)
6631  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6632*)
6633  ac_count=0
6634  $as_echo_n 0123456789 >"conftest.in"
6635  while :
6636  do
6637    cat "conftest.in" "conftest.in" >"conftest.tmp"
6638    mv "conftest.tmp" "conftest.in"
6639    cp "conftest.in" "conftest.nl"
6640    $as_echo 'EGREP' >> "conftest.nl"
6641    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6642    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6643    as_fn_arith $ac_count + 1 && ac_count=$as_val
6644    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6645      # Best one so far, save it but keep looking for a better one
6646      ac_cv_path_EGREP="$ac_path_EGREP"
6647      ac_path_EGREP_max=$ac_count
6648    fi
6649    # 10*(2^10) chars as input seems more than enough
6650    test $ac_count -gt 10 && break
6651  done
6652  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6653esac
6654
6655      $ac_path_EGREP_found && break 3
6656    done
6657  done
6658  done
6659IFS=$as_save_IFS
6660  if test -z "$ac_cv_path_EGREP"; then
6661    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6662  fi
6663else
6664  ac_cv_path_EGREP=$EGREP
6665fi
6666
6667   fi
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6670$as_echo "$ac_cv_path_EGREP" >&6; }
6671 EGREP="$ac_cv_path_EGREP"
6672
6673
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6675$as_echo_n "checking for ANSI C header files... " >&6; }
6676if ${ac_cv_header_stdc+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681#include <stdlib.h>
6682#include <stdarg.h>
6683#include <string.h>
6684#include <float.h>
6685
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  ac_cv_header_stdc=yes
6696else
6697  ac_cv_header_stdc=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700
6701if test $ac_cv_header_stdc = yes; then
6702  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h.  */
6705#include <string.h>
6706
6707_ACEOF
6708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6709  $EGREP "memchr" >/dev/null 2>&1; then :
6710
6711else
6712  ac_cv_header_stdc=no
6713fi
6714rm -f conftest*
6715
6716fi
6717
6718if test $ac_cv_header_stdc = yes; then
6719  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h.  */
6722#include <stdlib.h>
6723
6724_ACEOF
6725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6726  $EGREP "free" >/dev/null 2>&1; then :
6727
6728else
6729  ac_cv_header_stdc=no
6730fi
6731rm -f conftest*
6732
6733fi
6734
6735if test $ac_cv_header_stdc = yes; then
6736  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6737  if test "$cross_compiling" = yes; then :
6738  :
6739else
6740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h.  */
6742#include <ctype.h>
6743#include <stdlib.h>
6744#if ((' ' & 0x0FF) == 0x020)
6745# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6746# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6747#else
6748# define ISLOWER(c) \
6749		   (('a' <= (c) && (c) <= 'i') \
6750		     || ('j' <= (c) && (c) <= 'r') \
6751		     || ('s' <= (c) && (c) <= 'z'))
6752# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6753#endif
6754
6755#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6756int
6757main ()
6758{
6759  int i;
6760  for (i = 0; i < 256; i++)
6761    if (XOR (islower (i), ISLOWER (i))
6762	|| toupper (i) != TOUPPER (i))
6763      return 2;
6764  return 0;
6765}
6766_ACEOF
6767if ac_fn_c_try_run "$LINENO"; then :
6768
6769else
6770  ac_cv_header_stdc=no
6771fi
6772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6773  conftest.$ac_objext conftest.beam conftest.$ac_ext
6774fi
6775
6776fi
6777fi
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6779$as_echo "$ac_cv_header_stdc" >&6; }
6780if test $ac_cv_header_stdc = yes; then
6781
6782$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6783
6784fi
6785
6786# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6788		  inttypes.h stdint.h unistd.h
6789do :
6790  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6791ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6792"
6793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6794  cat >>confdefs.h <<_ACEOF
6795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6796_ACEOF
6797
6798fi
6799
6800done
6801
6802
6803
6804  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6805if test "x$ac_cv_header_minix_config_h" = xyes; then :
6806  MINIX=yes
6807else
6808  MINIX=
6809fi
6810
6811
6812  if test "$MINIX" = yes; then
6813
6814$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6815
6816
6817$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6818
6819
6820$as_echo "#define _MINIX 1" >>confdefs.h
6821
6822
6823$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6824
6825  fi
6826
6827
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6829$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6830if ${ac_cv_safe_to_define___extensions__+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834/* end confdefs.h.  */
6835
6836#         define __EXTENSIONS__ 1
6837          $ac_includes_default
6838int
6839main ()
6840{
6841
6842  ;
6843  return 0;
6844}
6845_ACEOF
6846if ac_fn_c_try_compile "$LINENO"; then :
6847  ac_cv_safe_to_define___extensions__=yes
6848else
6849  ac_cv_safe_to_define___extensions__=no
6850fi
6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6854$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6855  test $ac_cv_safe_to_define___extensions__ = yes &&
6856    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6857
6858  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6859
6860  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6861
6862  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6863
6864  $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6865
6866  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
6867
6868  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6869
6870  $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6871
6872  $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6873
6874  $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6875
6876  $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6877
6878  $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6879
6880  $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6881
6882  $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6883
6884  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6885
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6887$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6888if ${ac_cv_should_define__xopen_source+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  ac_cv_should_define__xopen_source=no
6892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894
6895          #include <wchar.h>
6896          mbstate_t x;
6897int
6898main ()
6899{
6900
6901  ;
6902  return 0;
6903}
6904_ACEOF
6905if ac_fn_c_try_compile "$LINENO"; then :
6906
6907else
6908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909/* end confdefs.h.  */
6910
6911             #define _XOPEN_SOURCE 500
6912             #include <wchar.h>
6913             mbstate_t x;
6914int
6915main ()
6916{
6917
6918  ;
6919  return 0;
6920}
6921_ACEOF
6922if ac_fn_c_try_compile "$LINENO"; then :
6923  ac_cv_should_define__xopen_source=yes
6924fi
6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926fi
6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6930$as_echo "$ac_cv_should_define__xopen_source" >&6; }
6931  test $ac_cv_should_define__xopen_source = yes &&
6932    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6933
6934  $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6948$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6949if ${gl_cv_c_amsterdam_compiler+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952
6953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955
6956#ifdef __ACK__
6957Amsterdam
6958#endif
6959
6960_ACEOF
6961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962  $EGREP "Amsterdam" >/dev/null 2>&1; then :
6963  gl_cv_c_amsterdam_compiler=yes
6964else
6965  gl_cv_c_amsterdam_compiler=no
6966fi
6967rm -f conftest*
6968
6969
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6972$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6973
6974      if test $gl_cv_c_amsterdam_compiler = yes; then
6975    if test -z "$AR"; then
6976      AR='cc -c.a'
6977    fi
6978    if test -z "$ARFLAGS"; then
6979      ARFLAGS='-o'
6980    fi
6981  else
6982                                                :
6983  fi
6984
6985        if test -n "$ac_tool_prefix"; then
6986  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}ar; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if ${ac_cv_prog_AR+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -n "$AR"; then
6994  ac_cv_prog_AR="$AR" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_AR="${ac_tool_prefix}ar"
7004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013AR=$ac_cv_prog_AR
7014if test -n "$AR"; then
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7016$as_echo "$AR" >&6; }
7017else
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_AR"; then
7025  ac_ct_AR=$AR
7026  # Extract the first word of "ar", so it can be a program name with args.
7027set dummy ar; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_ac_ct_AR+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$ac_ct_AR"; then
7034  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_ac_ct_AR="ar"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_AR=$ac_cv_prog_ac_ct_AR
7054if test -n "$ac_ct_AR"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7056$as_echo "$ac_ct_AR" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062  if test "x$ac_ct_AR" = x; then
7063    AR="ar"
7064  else
7065    case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071    AR=$ac_ct_AR
7072  fi
7073else
7074  AR="$ac_cv_prog_AR"
7075fi
7076
7077  if test -z "$ARFLAGS"; then
7078    ARFLAGS='cr'
7079  fi
7080
7081
7082
7083  if test -z "$RANLIB"; then
7084    if test $gl_cv_c_amsterdam_compiler = yes; then
7085      RANLIB=':'
7086    else
7087            if test -n "$ac_tool_prefix"; then
7088  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7089set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_RANLIB+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -n "$RANLIB"; then
7096  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115RANLIB=$ac_cv_prog_RANLIB
7116if test -n "$RANLIB"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7118$as_echo "$RANLIB" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124
7125fi
7126if test -z "$ac_cv_prog_RANLIB"; then
7127  ac_ct_RANLIB=$RANLIB
7128  # Extract the first word of "ranlib", so it can be a program name with args.
7129set dummy ranlib; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
7132if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  if test -n "$ac_ct_RANLIB"; then
7136  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145    ac_cv_prog_ac_ct_RANLIB="ranlib"
7146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150  done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7156if test -n "$ac_ct_RANLIB"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7158$as_echo "$ac_ct_RANLIB" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164  if test "x$ac_ct_RANLIB" = x; then
7165    RANLIB=":"
7166  else
7167    case $cross_compiling:$ac_tool_warned in
7168yes:)
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171ac_tool_warned=yes ;;
7172esac
7173    RANLIB=$ac_ct_RANLIB
7174  fi
7175else
7176  RANLIB="$ac_cv_prog_RANLIB"
7177fi
7178
7179    fi
7180  fi
7181
7182
7183
7184# Make sure we can run config.sub.
7185$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7186  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7187
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7189$as_echo_n "checking build system type... " >&6; }
7190if ${ac_cv_build+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  ac_build_alias=$build_alias
7194test "x$ac_build_alias" = x &&
7195  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7196test "x$ac_build_alias" = x &&
7197  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7198ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7199  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7200
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7203$as_echo "$ac_cv_build" >&6; }
7204case $ac_cv_build in
7205*-*-*) ;;
7206*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7207esac
7208build=$ac_cv_build
7209ac_save_IFS=$IFS; IFS='-'
7210set x $ac_cv_build
7211shift
7212build_cpu=$1
7213build_vendor=$2
7214shift; shift
7215# Remember, the first character of IFS is used to create $*,
7216# except with old shells:
7217build_os=$*
7218IFS=$ac_save_IFS
7219case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7220
7221
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7223$as_echo_n "checking host system type... " >&6; }
7224if ${ac_cv_host+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  if test "x$host_alias" = x; then
7228  ac_cv_host=$ac_cv_build
7229else
7230  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7231    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7232fi
7233
7234fi
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7236$as_echo "$ac_cv_host" >&6; }
7237case $ac_cv_host in
7238*-*-*) ;;
7239*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7240esac
7241host=$ac_cv_host
7242ac_save_IFS=$IFS; IFS='-'
7243set x $ac_cv_host
7244shift
7245host_cpu=$1
7246host_vendor=$2
7247shift; shift
7248# Remember, the first character of IFS is used to create $*,
7249# except with old shells:
7250host_os=$*
7251IFS=$ac_save_IFS
7252case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7253
7254
7255
7256
7257
7258  # IEEE behaviour is the default on all CPUs except Alpha and SH
7259  # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
7260  # and the GCC 4.1.2 manual).
7261  case "$host_cpu" in
7262    alpha*)
7263      # On Alpha systems, a compiler option provides the behaviour.
7264      # See the ieee(3) manual page, also available at
7265      # <https://backdrift.org/man/tru64/man3/ieee.3.html>
7266      if test -n "$GCC"; then
7267        # GCC has the option -mieee.
7268        # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
7269        CPPFLAGS="$CPPFLAGS -mieee"
7270      else
7271        # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
7272        # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
7273        CPPFLAGS="$CPPFLAGS -ieee"
7274      fi
7275      ;;
7276    sh*)
7277      if test -n "$GCC"; then
7278        # GCC has the option -mieee.
7279        CPPFLAGS="$CPPFLAGS -mieee"
7280      fi
7281      ;;
7282  esac
7283
7284
7285
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7287$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7288if ${ac_cv_sys_largefile_source+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  while :; do
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294#include <sys/types.h> /* for off_t */
7295     #include <stdio.h>
7296int
7297main ()
7298{
7299int (*fp) (FILE *, off_t, int) = fseeko;
7300     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7301  ;
7302  return 0;
7303}
7304_ACEOF
7305if ac_fn_c_try_link "$LINENO"; then :
7306  ac_cv_sys_largefile_source=no; break
7307fi
7308rm -f core conftest.err conftest.$ac_objext \
7309    conftest$ac_exeext conftest.$ac_ext
7310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312#define _LARGEFILE_SOURCE 1
7313#include <sys/types.h> /* for off_t */
7314     #include <stdio.h>
7315int
7316main ()
7317{
7318int (*fp) (FILE *, off_t, int) = fseeko;
7319     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_link "$LINENO"; then :
7325  ac_cv_sys_largefile_source=1; break
7326fi
7327rm -f core conftest.err conftest.$ac_objext \
7328    conftest$ac_exeext conftest.$ac_ext
7329  ac_cv_sys_largefile_source=unknown
7330  break
7331done
7332fi
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7334$as_echo "$ac_cv_sys_largefile_source" >&6; }
7335case $ac_cv_sys_largefile_source in #(
7336  no | unknown) ;;
7337  *)
7338cat >>confdefs.h <<_ACEOF
7339#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7340_ACEOF
7341;;
7342esac
7343rm -rf conftest*
7344
7345# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7346# in glibc 2.1.3, but that breaks too many other things.
7347# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7348if test $ac_cv_sys_largefile_source != unknown; then
7349
7350$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7351
7352fi
7353
7354  case "$host_os" in
7355    hpux*)
7356
7357$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7358
7359      ;;
7360  esac
7361
7362# Check whether --enable-largefile was given.
7363if test "${enable_largefile+set}" = set; then :
7364  enableval=$enable_largefile;
7365fi
7366
7367if test "$enable_largefile" != no; then
7368
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7370$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7371if ${ac_cv_sys_largefile_CC+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  ac_cv_sys_largefile_CC=no
7375     if test "$GCC" != yes; then
7376       ac_save_CC=$CC
7377       while :; do
7378         # IRIX 6.2 and later do not support large files by default,
7379         # so use the C compiler's -n32 option if that helps.
7380         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h.  */
7382#include <sys/types.h>
7383 /* Check that off_t can represent 2**63 - 1 correctly.
7384    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7385    since some C++ compilers masquerading as C compilers
7386    incorrectly reject 9223372036854775807.  */
7387#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7388  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7389                       && LARGE_OFF_T % 2147483647 == 1)
7390                      ? 1 : -1];
7391int
7392main ()
7393{
7394
7395  ;
7396  return 0;
7397}
7398_ACEOF
7399         if ac_fn_c_try_compile "$LINENO"; then :
7400  break
7401fi
7402rm -f core conftest.err conftest.$ac_objext
7403         CC="$CC -n32"
7404         if ac_fn_c_try_compile "$LINENO"; then :
7405  ac_cv_sys_largefile_CC=' -n32'; break
7406fi
7407rm -f core conftest.err conftest.$ac_objext
7408         break
7409       done
7410       CC=$ac_save_CC
7411       rm -f conftest.$ac_ext
7412    fi
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7415$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7416  if test "$ac_cv_sys_largefile_CC" != no; then
7417    CC=$CC$ac_cv_sys_largefile_CC
7418  fi
7419
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7421$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7422if ${ac_cv_sys_file_offset_bits+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  while :; do
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428#include <sys/types.h>
7429 /* Check that off_t can represent 2**63 - 1 correctly.
7430    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7431    since some C++ compilers masquerading as C compilers
7432    incorrectly reject 9223372036854775807.  */
7433#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7434  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7435                       && LARGE_OFF_T % 2147483647 == 1)
7436                      ? 1 : -1];
7437int
7438main ()
7439{
7440
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_compile "$LINENO"; then :
7446  ac_cv_sys_file_offset_bits=no; break
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451#define _FILE_OFFSET_BITS 64
7452#include <sys/types.h>
7453 /* Check that off_t can represent 2**63 - 1 correctly.
7454    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7455    since some C++ compilers masquerading as C compilers
7456    incorrectly reject 9223372036854775807.  */
7457#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7458  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7459                       && LARGE_OFF_T % 2147483647 == 1)
7460                      ? 1 : -1];
7461int
7462main ()
7463{
7464
7465  ;
7466  return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470  ac_cv_sys_file_offset_bits=64; break
7471fi
7472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473  ac_cv_sys_file_offset_bits=unknown
7474  break
7475done
7476fi
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7478$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7479case $ac_cv_sys_file_offset_bits in #(
7480  no | unknown) ;;
7481  *)
7482cat >>confdefs.h <<_ACEOF
7483#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7484_ACEOF
7485;;
7486esac
7487rm -rf conftest*
7488  if test $ac_cv_sys_file_offset_bits = unknown; then
7489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7490$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7491if ${ac_cv_sys_large_files+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494  while :; do
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497#include <sys/types.h>
7498 /* Check that off_t can represent 2**63 - 1 correctly.
7499    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7500    since some C++ compilers masquerading as C compilers
7501    incorrectly reject 9223372036854775807.  */
7502#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7503  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7504                       && LARGE_OFF_T % 2147483647 == 1)
7505                      ? 1 : -1];
7506int
7507main ()
7508{
7509
7510  ;
7511  return 0;
7512}
7513_ACEOF
7514if ac_fn_c_try_compile "$LINENO"; then :
7515  ac_cv_sys_large_files=no; break
7516fi
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520#define _LARGE_FILES 1
7521#include <sys/types.h>
7522 /* Check that off_t can represent 2**63 - 1 correctly.
7523    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7524    since some C++ compilers masquerading as C compilers
7525    incorrectly reject 9223372036854775807.  */
7526#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7527  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7528                       && LARGE_OFF_T % 2147483647 == 1)
7529                      ? 1 : -1];
7530int
7531main ()
7532{
7533
7534  ;
7535  return 0;
7536}
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539  ac_cv_sys_large_files=1; break
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542  ac_cv_sys_large_files=unknown
7543  break
7544done
7545fi
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7547$as_echo "$ac_cv_sys_large_files" >&6; }
7548case $ac_cv_sys_large_files in #(
7549  no | unknown) ;;
7550  *)
7551cat >>confdefs.h <<_ACEOF
7552#define _LARGE_FILES $ac_cv_sys_large_files
7553_ACEOF
7554;;
7555esac
7556rm -rf conftest*
7557  fi
7558fi
7559
7560
7561
7562
7563
7564
7565
7566
7567  # Check whether --enable-threads was given.
7568if test "${enable_threads+set}" = set; then :
7569  enableval=$enable_threads; gl_use_threads=$enableval
7570else
7571  if test -n "$gl_use_threads_default"; then
7572       gl_use_threads="$gl_use_threads_default"
7573     else
7574       case "$host_os" in
7575                                    osf*) gl_use_threads=no ;;
7576                                    cygwin*)
7577               case `uname -r` in
7578                 1.[0-5].*) gl_use_threads=no ;;
7579                 *)         gl_use_threads=yes ;;
7580               esac
7581               ;;
7582                  mingw*)
7583               case "$gl_use_winpthreads_default" in
7584                 yes) gl_use_threads=posix ;;
7585                 no)  gl_use_threads=windows ;;
7586                 *)   gl_use_threads=yes ;;
7587               esac
7588               ;;
7589         *)    gl_use_threads=yes ;;
7590       esac
7591     fi
7592
7593fi
7594
7595  if test "$gl_use_threads" = yes \
7596     || test "$gl_use_threads" = isoc \
7597     || test "$gl_use_threads" = posix \
7598     || test "$gl_use_threads" = isoc+posix; then
7599    # For using <threads.h> or <pthread.h>:
7600
7601
7602  if test -z "$gl_anythreadlib_early_done"; then
7603    case "$host_os" in
7604      osf*)
7605        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7606        # groks <pthread.h>. cc also understands the flag -pthread, but
7607        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7608        # 2. putting a flag into CPPFLAGS that has an effect on the linker
7609        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7610        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7611        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7612        ;;
7613    esac
7614    # Some systems optimize for single-threaded programs by default, and
7615    # need special flags to disable these optimizations. For example, the
7616    # definition of 'errno' in <errno.h>.
7617    case "$host_os" in
7618      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7619      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7620    esac
7621    gl_anythreadlib_early_done=done
7622  fi
7623
7624  fi
7625
7626
7627
7628  # Pre-early section.
7629
7630
7631
7632
7633  # Code from module absolute-header:
7634  # Code from module alloca:
7635  # Code from module alloca-opt:
7636  # Code from module allocator:
7637  # Code from module areadlink:
7638  # Code from module array-mergesort:
7639  # Code from module assert:
7640  # Code from module asyncsafe-spin:
7641  # Code from module attribute:
7642  # Code from module basename-lgpl:
7643  # Code from module binary-io:
7644  # Code from module btowc:
7645  # Code from module builtin-expect:
7646  # Code from module byteswap:
7647  # Code from module c-ctype:
7648  # Code from module c-snprintf:
7649  # Code from module c-strcase:
7650  # Code from module c-strcasestr:
7651  # Code from module c-strtod:
7652  # Code from module c-vasnprintf:
7653  # Code from module c-vasprintf:
7654  # Code from module c-xvasprintf:
7655  # Code from module c99:
7656  # Code from module canonicalize-lgpl:
7657  # Code from module careadlinkat:
7658  # Code from module chdir:
7659  # Code from module clean-temp:
7660  # Code from module clock-time:
7661  # Code from module cloexec:
7662  # Code from module close:
7663  # Code from module configmake:
7664  # Code from module count-leading-zeros:
7665  # Code from module count-one-bits:
7666  # Code from module crc:
7667  # Code from module crypto/md4:
7668  # Code from module crypto/rijndael:
7669  # Code from module dirname:
7670  # Code from module dirname-lgpl:
7671  # Code from module double-slash-root:
7672  # Code from module dtoastr:
7673  # Code from module dtotimespec:
7674  # Code from module dup2:
7675  # Code from module environ:
7676  # Code from module errno:
7677  # Code from module error:
7678  # Code from module exitfail:
7679  # Code from module explicit_bzero:
7680  # Code from module extensions:
7681  # Code from module extern-inline:
7682  # Code from module fatal-signal:
7683  # Code from module fcntl:
7684  # Code from module fcntl-h:
7685  # Code from module fd-hook:
7686  # Code from module filename:
7687  # Code from module flexmember:
7688  # Code from module float:
7689  # Code from module floor:
7690  # Code from module fopen:
7691  # Code from module fopen-gnu:
7692  # Code from module fpieee:
7693
7694  # Code from module fprintf-posix:
7695  # Code from module fpucw:
7696  # Code from module frexp-nolibm:
7697  # Code from module frexpl-nolibm:
7698  # Code from module fseek:
7699  # Code from module fseeko:
7700
7701  # Code from module fseterr:
7702  # Code from module fstat:
7703  # Code from module ftell:
7704  # Code from module ftello:
7705
7706  # Code from module full-read:
7707  # Code from module full-write:
7708  # Code from module fwriteerror:
7709  # Code from module getdelim:
7710  # Code from module getdtablesize:
7711  # Code from module getline:
7712  # Code from module getopt-gnu:
7713  # Code from module getopt-posix:
7714  # Code from module getpass:
7715  # Code from module getprogname:
7716  # Code from module getrandom:
7717  # Code from module gettext-h:
7718  # Code from module gettime:
7719  # Code from module gettimeofday:
7720  # Code from module gitlog-to-changelog:
7721  # Code from module gperf:
7722  # Code from module hard-locale:
7723  # Code from module include_next:
7724  # Code from module inline:
7725  # Code from module intprops:
7726  # Code from module inttostr:
7727  # Code from module inttypes-incomplete:
7728  # Code from module isfinite:
7729  # Code from module isinf:
7730  # Code from module isnan:
7731  # Code from module isnand:
7732  # Code from module isnand-nolibm:
7733  # Code from module isnanf:
7734  # Code from module isnanf-nolibm:
7735  # Code from module isnanl:
7736  # Code from module isnanl-nolibm:
7737  # Code from module iswblank:
7738  # Code from module iswdigit:
7739  # Code from module iswxdigit:
7740  # Code from module langinfo:
7741  # Code from module largefile:
7742
7743  # Code from module libc-config:
7744  # Code from module limits-h:
7745  # Code from module linked-list:
7746  # Code from module linkedhash-list:
7747  # Code from module list:
7748  # Code from module localcharset:
7749  # Code from module locale:
7750  # Code from module localeconv:
7751  # Code from module localename:
7752  # Code from module lock:
7753  # Code from module lseek:
7754  # Code from module lstat:
7755  # Code from module malloc-posix:
7756  # Code from module malloca:
7757  # Code from module math:
7758  # Code from module mbchar:
7759  # Code from module mbiter:
7760  # Code from module mbrtowc:
7761  # Code from module mbsinit:
7762  # Code from module mbtowc:
7763  # Code from module memcasecmp:
7764  # Code from module memchr:
7765  # Code from module memchr2:
7766  # Code from module memmem:
7767  # Code from module memmem-simple:
7768  # Code from module mempcpy:
7769  # Code from module memrchr:
7770  # Code from module minmax:
7771  # Code from module mkdir:
7772  # Code from module mkdtemp:
7773  # Code from module mkstemp:
7774  # Code from module mktime:
7775  # Code from module mktime-internal:
7776  # Code from module msvc-inval:
7777  # Code from module msvc-nothrow:
7778  # Code from module multiarch:
7779  # Code from module nl_langinfo:
7780  # Code from module nocrash:
7781  # Code from module nstrftime:
7782  # Code from module open:
7783  # Code from module pathmax:
7784  # Code from module pipe2:
7785  # Code from module printf-frexp:
7786  # Code from module printf-frexpl:
7787  # Code from module printf-posix:
7788  # Code from module printf-safe:
7789  # Code from module progname:
7790  # Code from module raise:
7791  # Code from module rawmemchr:
7792  # Code from module read:
7793  # Code from module read-file:
7794  # Code from module readlink:
7795  # Code from module realloc-posix:
7796  # Code from module regex:
7797  # Code from module relocatable-prog:
7798  # Code from module relocatable-prog-wrapper:
7799
7800  # Code from module rename:
7801  # Code from module rmdir:
7802  # Code from module round:
7803  # Code from module safe-read:
7804  # Code from module safe-write:
7805  # Code from module same-inode:
7806  # Code from module secure_getenv:
7807  # Code from module select:
7808  # Code from module setenv:
7809  # Code from module setlocale-null:
7810  # Code from module sigaction:
7811  # Code from module signal-h:
7812  # Code from module signbit:
7813  # Code from module sigprocmask:
7814  # Code from module size_max:
7815  # Code from module snippet/_Noreturn:
7816  # Code from module snippet/arg-nonnull:
7817  # Code from module snippet/c++defs:
7818  # Code from module snippet/unused-parameter:
7819  # Code from module snippet/warn-on-use:
7820  # Code from module snprintf:
7821  # Code from module snprintf-posix:
7822  # Code from module socketlib:
7823  # Code from module sockets:
7824  # Code from module socklen:
7825  # Code from module sprintf-posix:
7826  # Code from module ssize_t:
7827  # Code from module stat:
7828  # Code from module stat-time:
7829  # Code from module std-gnu11:
7830  # Code from module stdalign:
7831  # Code from module stdarg:
7832
7833
7834
7835  # Code from module stdbool:
7836  # Code from module stddef:
7837  # Code from module stdint:
7838  # Code from module stdio:
7839  # Code from module stdlib:
7840  # Code from module stpcpy:
7841  # Code from module strcase:
7842  # Code from module strcasestr:
7843  # Code from module strcasestr-simple:
7844  # Code from module strdup-posix:
7845  # Code from module streq:
7846  # Code from module strerror:
7847  # Code from module strerror-override:
7848  # Code from module string:
7849  # Code from module strings:
7850  # Code from module strncat:
7851  # Code from module strndup:
7852  # Code from module strnlen:
7853  # Code from module strsep:
7854  # Code from module strtod:
7855  # Code from module strtok_r:
7856  # Code from module sys_random:
7857  # Code from module sys_select:
7858  # Code from module sys_socket:
7859  # Code from module sys_stat:
7860  # Code from module sys_time:
7861  # Code from module sys_types:
7862  # Code from module sys_uio:
7863  # Code from module tempname:
7864  # Code from module termios:
7865  # Code from module thread-optim:
7866  # Code from module threadlib:
7867
7868
7869
7870  # Code from module time:
7871  # Code from module time_r:
7872  # Code from module time_rz:
7873  # Code from module timegm:
7874  # Code from module timespec:
7875  # Code from module timespec-add:
7876  # Code from module timespec-sub:
7877  # Code from module tmpdir:
7878  # Code from module trunc:
7879  # Code from module tzset:
7880  # Code from module unicase/base:
7881  # Code from module unicase/cased:
7882  # Code from module unicase/empty-prefix-context:
7883  # Code from module unicase/empty-suffix-context:
7884  # Code from module unicase/ignorable:
7885  # Code from module unicase/special-casing:
7886  # Code from module unicase/tocasefold:
7887  # Code from module unicase/tolower:
7888  # Code from module unicase/totitle:
7889  # Code from module unicase/toupper:
7890  # Code from module unicase/u8-casecmp:
7891  # Code from module unicase/u8-casefold:
7892  # Code from module unicase/u8-casemap:
7893  # Code from module unicase/u8-ct-casefold:
7894  # Code from module unicase/u8-ct-totitle:
7895  # Code from module unicase/u8-tolower:
7896  # Code from module unicase/u8-totitle:
7897  # Code from module unicase/u8-toupper:
7898  # Code from module unictype/base:
7899  # Code from module unictype/category-none:
7900  # Code from module unictype/category-of:
7901  # Code from module unictype/combining-class:
7902  # Code from module unictype/ctype-print:
7903  # Code from module unictype/property-soft-dotted:
7904  # Code from module unigbrk/base:
7905  # Code from module unigbrk/uc-gbrk-prop:
7906  # Code from module unigbrk/uc-is-grapheme-break:
7907  # Code from module unilbrk/base:
7908  # Code from module unilbrk/tables:
7909  # Code from module unilbrk/u8-possible-linebreaks:
7910  # Code from module uninorm/base:
7911  # Code from module uninorm/canonical-decomposition:
7912  # Code from module uninorm/compat-decomposition:
7913  # Code from module uninorm/decompose-internal:
7914  # Code from module uninorm/decomposing-form:
7915  # Code from module uninorm/decomposition:
7916  # Code from module uninorm/decomposition-table:
7917  # Code from module uninorm/nfd:
7918  # Code from module uninorm/nfkd:
7919  # Code from module uninorm/u8-normalize:
7920  # Code from module unistd:
7921  # Code from module unistr/base:
7922  # Code from module unistr/u8-check:
7923  # Code from module unistr/u8-cmp:
7924  # Code from module unistr/u8-cmp2:
7925  # Code from module unistr/u8-cpy:
7926  # Code from module unistr/u8-mblen:
7927  # Code from module unistr/u8-mbtouc:
7928  # Code from module unistr/u8-mbtouc-unsafe:
7929  # Code from module unistr/u8-mbtoucr:
7930  # Code from module unistr/u8-strlen:
7931  # Code from module unistr/u8-strmbtouc:
7932  # Code from module unistr/u8-strncat:
7933  # Code from module unistr/u8-uctomb:
7934  # Code from module unitypes:
7935  # Code from module uniwbrk/base:
7936  # Code from module uniwbrk/table:
7937  # Code from module uniwbrk/u8-wordbreaks:
7938  # Code from module uniwbrk/wordbreak-property:
7939  # Code from module uniwidth/base:
7940  # Code from module uniwidth/u8-strwidth:
7941  # Code from module uniwidth/u8-width:
7942  # Code from module uniwidth/width:
7943  # Code from module unlocked-io:
7944  # Code from module unsetenv:
7945  # Code from module vasnprintf:
7946  # Code from module vasprintf:
7947  # Code from module vasprintf-posix:
7948  # Code from module verify:
7949  # Code from module version-etc:
7950  # Code from module version-etc-fsf:
7951  # Code from module vfprintf-posix:
7952  # Code from module vprintf-posix:
7953  # Code from module vsnprintf:
7954  # Code from module vsnprintf-posix:
7955  # Code from module vsprintf-posix:
7956  # Code from module wchar:
7957  # Code from module wcrtomb:
7958  # Code from module wctype-h:
7959  # Code from module wcwidth:
7960  # Code from module windows-mutex:
7961  # Code from module windows-once:
7962  # Code from module windows-recmutex:
7963  # Code from module windows-rwlock:
7964  # Code from module windows-spin:
7965  # Code from module write:
7966  # Code from module xalloc:
7967  # Code from module xalloc-die:
7968  # Code from module xalloc-oversized:
7969  # Code from module xbinary-io:
7970  # Code from module xlist:
7971  # Code from module xmalloca:
7972  # Code from module xmemdup0:
7973  # Code from module xreadlink:
7974  # Code from module xsize:
7975  # Code from module xstrndup:
7976  # Code from module xvasprintf:
7977
7978
7979enable_win32_dll=yes
7980
7981case $host in
7982*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7983  if test -n "$ac_tool_prefix"; then
7984  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7985set dummy ${ac_tool_prefix}as; ac_word=$2
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987$as_echo_n "checking for $ac_word... " >&6; }
7988if ${ac_cv_prog_AS+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  if test -n "$AS"; then
7992  ac_cv_prog_AS="$AS" # Let the user override the test.
7993else
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997  IFS=$as_save_IFS
7998  test -z "$as_dir" && as_dir=.
7999    for ac_exec_ext in '' $ac_executable_extensions; do
8000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001    ac_cv_prog_AS="${ac_tool_prefix}as"
8002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003    break 2
8004  fi
8005done
8006  done
8007IFS=$as_save_IFS
8008
8009fi
8010fi
8011AS=$ac_cv_prog_AS
8012if test -n "$AS"; then
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8014$as_echo "$AS" >&6; }
8015else
8016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
8018fi
8019
8020
8021fi
8022if test -z "$ac_cv_prog_AS"; then
8023  ac_ct_AS=$AS
8024  # Extract the first word of "as", so it can be a program name with args.
8025set dummy as; ac_word=$2
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027$as_echo_n "checking for $ac_word... " >&6; }
8028if ${ac_cv_prog_ac_ct_AS+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  if test -n "$ac_ct_AS"; then
8032  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037  IFS=$as_save_IFS
8038  test -z "$as_dir" && as_dir=.
8039    for ac_exec_ext in '' $ac_executable_extensions; do
8040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041    ac_cv_prog_ac_ct_AS="as"
8042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043    break 2
8044  fi
8045done
8046  done
8047IFS=$as_save_IFS
8048
8049fi
8050fi
8051ac_ct_AS=$ac_cv_prog_ac_ct_AS
8052if test -n "$ac_ct_AS"; then
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8054$as_echo "$ac_ct_AS" >&6; }
8055else
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
8058fi
8059
8060  if test "x$ac_ct_AS" = x; then
8061    AS="false"
8062  else
8063    case $cross_compiling:$ac_tool_warned in
8064yes:)
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067ac_tool_warned=yes ;;
8068esac
8069    AS=$ac_ct_AS
8070  fi
8071else
8072  AS="$ac_cv_prog_AS"
8073fi
8074
8075  if test -n "$ac_tool_prefix"; then
8076  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8077set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079$as_echo_n "checking for $ac_word... " >&6; }
8080if ${ac_cv_prog_DLLTOOL+:} false; then :
8081  $as_echo_n "(cached) " >&6
8082else
8083  if test -n "$DLLTOOL"; then
8084  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8085else
8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087for as_dir in $PATH
8088do
8089  IFS=$as_save_IFS
8090  test -z "$as_dir" && as_dir=.
8091    for ac_exec_ext in '' $ac_executable_extensions; do
8092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095    break 2
8096  fi
8097done
8098  done
8099IFS=$as_save_IFS
8100
8101fi
8102fi
8103DLLTOOL=$ac_cv_prog_DLLTOOL
8104if test -n "$DLLTOOL"; then
8105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8106$as_echo "$DLLTOOL" >&6; }
8107else
8108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109$as_echo "no" >&6; }
8110fi
8111
8112
8113fi
8114if test -z "$ac_cv_prog_DLLTOOL"; then
8115  ac_ct_DLLTOOL=$DLLTOOL
8116  # Extract the first word of "dlltool", so it can be a program name with args.
8117set dummy dlltool; ac_word=$2
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; }
8120if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8121  $as_echo_n "(cached) " >&6
8122else
8123  if test -n "$ac_ct_DLLTOOL"; then
8124  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8125else
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129  IFS=$as_save_IFS
8130  test -z "$as_dir" && as_dir=.
8131    for ac_exec_ext in '' $ac_executable_extensions; do
8132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135    break 2
8136  fi
8137done
8138  done
8139IFS=$as_save_IFS
8140
8141fi
8142fi
8143ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8144if test -n "$ac_ct_DLLTOOL"; then
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8146$as_echo "$ac_ct_DLLTOOL" >&6; }
8147else
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
8150fi
8151
8152  if test "x$ac_ct_DLLTOOL" = x; then
8153    DLLTOOL="false"
8154  else
8155    case $cross_compiling:$ac_tool_warned in
8156yes:)
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159ac_tool_warned=yes ;;
8160esac
8161    DLLTOOL=$ac_ct_DLLTOOL
8162  fi
8163else
8164  DLLTOOL="$ac_cv_prog_DLLTOOL"
8165fi
8166
8167  if test -n "$ac_tool_prefix"; then
8168  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8169set dummy ${ac_tool_prefix}objdump; ac_word=$2
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if ${ac_cv_prog_OBJDUMP+:} false; then :
8173  $as_echo_n "(cached) " >&6
8174else
8175  if test -n "$OBJDUMP"; then
8176  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8177else
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181  IFS=$as_save_IFS
8182  test -z "$as_dir" && as_dir=.
8183    for ac_exec_ext in '' $ac_executable_extensions; do
8184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187    break 2
8188  fi
8189done
8190  done
8191IFS=$as_save_IFS
8192
8193fi
8194fi
8195OBJDUMP=$ac_cv_prog_OBJDUMP
8196if test -n "$OBJDUMP"; then
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8198$as_echo "$OBJDUMP" >&6; }
8199else
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
8202fi
8203
8204
8205fi
8206if test -z "$ac_cv_prog_OBJDUMP"; then
8207  ac_ct_OBJDUMP=$OBJDUMP
8208  # Extract the first word of "objdump", so it can be a program name with args.
8209set dummy objdump; ac_word=$2
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
8212if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8213  $as_echo_n "(cached) " >&6
8214else
8215  if test -n "$ac_ct_OBJDUMP"; then
8216  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8217else
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221  IFS=$as_save_IFS
8222  test -z "$as_dir" && as_dir=.
8223    for ac_exec_ext in '' $ac_executable_extensions; do
8224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227    break 2
8228  fi
8229done
8230  done
8231IFS=$as_save_IFS
8232
8233fi
8234fi
8235ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8236if test -n "$ac_ct_OBJDUMP"; then
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8238$as_echo "$ac_ct_OBJDUMP" >&6; }
8239else
8240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
8242fi
8243
8244  if test "x$ac_ct_OBJDUMP" = x; then
8245    OBJDUMP="false"
8246  else
8247    case $cross_compiling:$ac_tool_warned in
8248yes:)
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251ac_tool_warned=yes ;;
8252esac
8253    OBJDUMP=$ac_ct_OBJDUMP
8254  fi
8255else
8256  OBJDUMP="$ac_cv_prog_OBJDUMP"
8257fi
8258
8259  ;;
8260esac
8261
8262test -z "$AS" && AS=as
8263
8264
8265
8266
8267
8268test -z "$DLLTOOL" && DLLTOOL=dlltool
8269
8270
8271
8272
8273
8274test -z "$OBJDUMP" && OBJDUMP=objdump
8275
8276
8277
8278
8279
8280
8281
8282enable_dlopen=yes
8283
8284
8285
8286case `pwd` in
8287  *\ * | *\	*)
8288    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8289$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8290esac
8291
8292
8293
8294macro_version='2.4.6'
8295macro_revision='2.4.6'
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309ltmain=$ac_aux_dir/ltmain.sh
8310
8311# Backslashify metacharacters that are still active within
8312# double-quoted strings.
8313sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8314
8315# Same as above, but do not quote variable references.
8316double_quote_subst='s/\(["`\\]\)/\\\1/g'
8317
8318# Sed substitution to delay expansion of an escaped shell variable in a
8319# double_quote_subst'ed string.
8320delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8321
8322# Sed substitution to delay expansion of an escaped single quote.
8323delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8324
8325# Sed substitution to avoid accidental globbing in evaled expressions
8326no_glob_subst='s/\*/\\\*/g'
8327
8328ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8330ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8331
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8333$as_echo_n "checking how to print strings... " >&6; }
8334# Test print first, because it will be a builtin if present.
8335if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8336   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8337  ECHO='print -r --'
8338elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8339  ECHO='printf %s\n'
8340else
8341  # Use this function as a fallback that always works.
8342  func_fallback_echo ()
8343  {
8344    eval 'cat <<_LTECHO_EOF
8345$1
8346_LTECHO_EOF'
8347  }
8348  ECHO='func_fallback_echo'
8349fi
8350
8351# func_echo_all arg...
8352# Invoke $ECHO with all args, space-separated.
8353func_echo_all ()
8354{
8355    $ECHO ""
8356}
8357
8358case $ECHO in
8359  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8360$as_echo "printf" >&6; } ;;
8361  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8362$as_echo "print -r" >&6; } ;;
8363  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8364$as_echo "cat" >&6; } ;;
8365esac
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8381$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8382if ${ac_cv_path_SED+:} false; then :
8383  $as_echo_n "(cached) " >&6
8384else
8385            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8386     for ac_i in 1 2 3 4 5 6 7; do
8387       ac_script="$ac_script$as_nl$ac_script"
8388     done
8389     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8390     { ac_script=; unset ac_script;}
8391     if test -z "$SED"; then
8392  ac_path_SED_found=false
8393  # Loop through the user's path and test for each of PROGNAME-LIST
8394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397  IFS=$as_save_IFS
8398  test -z "$as_dir" && as_dir=.
8399    for ac_prog in sed gsed; do
8400    for ac_exec_ext in '' $ac_executable_extensions; do
8401      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8402      as_fn_executable_p "$ac_path_SED" || continue
8403# Check for GNU ac_path_SED and select it if it is found.
8404  # Check for GNU $ac_path_SED
8405case `"$ac_path_SED" --version 2>&1` in
8406*GNU*)
8407  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8408*)
8409  ac_count=0
8410  $as_echo_n 0123456789 >"conftest.in"
8411  while :
8412  do
8413    cat "conftest.in" "conftest.in" >"conftest.tmp"
8414    mv "conftest.tmp" "conftest.in"
8415    cp "conftest.in" "conftest.nl"
8416    $as_echo '' >> "conftest.nl"
8417    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8418    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8419    as_fn_arith $ac_count + 1 && ac_count=$as_val
8420    if test $ac_count -gt ${ac_path_SED_max-0}; then
8421      # Best one so far, save it but keep looking for a better one
8422      ac_cv_path_SED="$ac_path_SED"
8423      ac_path_SED_max=$ac_count
8424    fi
8425    # 10*(2^10) chars as input seems more than enough
8426    test $ac_count -gt 10 && break
8427  done
8428  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8429esac
8430
8431      $ac_path_SED_found && break 3
8432    done
8433  done
8434  done
8435IFS=$as_save_IFS
8436  if test -z "$ac_cv_path_SED"; then
8437    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8438  fi
8439else
8440  ac_cv_path_SED=$SED
8441fi
8442
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8445$as_echo "$ac_cv_path_SED" >&6; }
8446 SED="$ac_cv_path_SED"
8447  rm -f conftest.sed
8448
8449test -z "$SED" && SED=sed
8450Xsed="$SED -e 1s/^X//"
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8463$as_echo_n "checking for fgrep... " >&6; }
8464if ${ac_cv_path_FGREP+:} false; then :
8465  $as_echo_n "(cached) " >&6
8466else
8467  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8468   then ac_cv_path_FGREP="$GREP -F"
8469   else
8470     if test -z "$FGREP"; then
8471  ac_path_FGREP_found=false
8472  # Loop through the user's path and test for each of PROGNAME-LIST
8473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8475do
8476  IFS=$as_save_IFS
8477  test -z "$as_dir" && as_dir=.
8478    for ac_prog in fgrep; do
8479    for ac_exec_ext in '' $ac_executable_extensions; do
8480      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8481      as_fn_executable_p "$ac_path_FGREP" || continue
8482# Check for GNU ac_path_FGREP and select it if it is found.
8483  # Check for GNU $ac_path_FGREP
8484case `"$ac_path_FGREP" --version 2>&1` in
8485*GNU*)
8486  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8487*)
8488  ac_count=0
8489  $as_echo_n 0123456789 >"conftest.in"
8490  while :
8491  do
8492    cat "conftest.in" "conftest.in" >"conftest.tmp"
8493    mv "conftest.tmp" "conftest.in"
8494    cp "conftest.in" "conftest.nl"
8495    $as_echo 'FGREP' >> "conftest.nl"
8496    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8497    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8498    as_fn_arith $ac_count + 1 && ac_count=$as_val
8499    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8500      # Best one so far, save it but keep looking for a better one
8501      ac_cv_path_FGREP="$ac_path_FGREP"
8502      ac_path_FGREP_max=$ac_count
8503    fi
8504    # 10*(2^10) chars as input seems more than enough
8505    test $ac_count -gt 10 && break
8506  done
8507  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8508esac
8509
8510      $ac_path_FGREP_found && break 3
8511    done
8512  done
8513  done
8514IFS=$as_save_IFS
8515  if test -z "$ac_cv_path_FGREP"; then
8516    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8517  fi
8518else
8519  ac_cv_path_FGREP=$FGREP
8520fi
8521
8522   fi
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8525$as_echo "$ac_cv_path_FGREP" >&6; }
8526 FGREP="$ac_cv_path_FGREP"
8527
8528
8529test -z "$GREP" && GREP=grep
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549# Check whether --with-gnu-ld was given.
8550if test "${with_gnu_ld+set}" = set; then :
8551  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8552else
8553  with_gnu_ld=no
8554fi
8555
8556ac_prog=ld
8557if test yes = "$GCC"; then
8558  # Check if gcc -print-prog-name=ld gives a path.
8559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8560$as_echo_n "checking for ld used by $CC... " >&6; }
8561  case $host in
8562  *-*-mingw*)
8563    # gcc leaves a trailing carriage return, which upsets mingw
8564    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8565  *)
8566    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8567  esac
8568  case $ac_prog in
8569    # Accept absolute paths.
8570    [\\/]* | ?:[\\/]*)
8571      re_direlt='/[^/][^/]*/\.\./'
8572      # Canonicalize the pathname of ld
8573      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8574      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8575	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8576      done
8577      test -z "$LD" && LD=$ac_prog
8578      ;;
8579  "")
8580    # If it fails, then pretend we aren't using GCC.
8581    ac_prog=ld
8582    ;;
8583  *)
8584    # If it is relative, then search for the first ld in PATH.
8585    with_gnu_ld=unknown
8586    ;;
8587  esac
8588elif test yes = "$with_gnu_ld"; then
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8590$as_echo_n "checking for GNU ld... " >&6; }
8591else
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8593$as_echo_n "checking for non-GNU ld... " >&6; }
8594fi
8595if ${lt_cv_path_LD+:} false; then :
8596  $as_echo_n "(cached) " >&6
8597else
8598  if test -z "$LD"; then
8599  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8600  for ac_dir in $PATH; do
8601    IFS=$lt_save_ifs
8602    test -z "$ac_dir" && ac_dir=.
8603    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8604      lt_cv_path_LD=$ac_dir/$ac_prog
8605      # Check to see if the program is GNU ld.  I'd rather use --version,
8606      # but apparently some variants of GNU ld only accept -v.
8607      # Break only if it was the GNU/non-GNU ld that we prefer.
8608      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8609      *GNU* | *'with BFD'*)
8610	test no != "$with_gnu_ld" && break
8611	;;
8612      *)
8613	test yes != "$with_gnu_ld" && break
8614	;;
8615      esac
8616    fi
8617  done
8618  IFS=$lt_save_ifs
8619else
8620  lt_cv_path_LD=$LD # Let the user override the test with a path.
8621fi
8622fi
8623
8624LD=$lt_cv_path_LD
8625if test -n "$LD"; then
8626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8627$as_echo "$LD" >&6; }
8628else
8629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630$as_echo "no" >&6; }
8631fi
8632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8635if ${lt_cv_prog_gnu_ld+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8639case `$LD -v 2>&1 </dev/null` in
8640*GNU* | *'with BFD'*)
8641  lt_cv_prog_gnu_ld=yes
8642  ;;
8643*)
8644  lt_cv_prog_gnu_ld=no
8645  ;;
8646esac
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8649$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8650with_gnu_ld=$lt_cv_prog_gnu_ld
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8661$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8662if ${lt_cv_path_NM+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  if test -n "$NM"; then
8666  # Let the user override the test.
8667  lt_cv_path_NM=$NM
8668else
8669  lt_nm_to_check=${ac_tool_prefix}nm
8670  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8671    lt_nm_to_check="$lt_nm_to_check nm"
8672  fi
8673  for lt_tmp_nm in $lt_nm_to_check; do
8674    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8675    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8676      IFS=$lt_save_ifs
8677      test -z "$ac_dir" && ac_dir=.
8678      tmp_nm=$ac_dir/$lt_tmp_nm
8679      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8680	# Check to see if the nm accepts a BSD-compat flag.
8681	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8682	#   nm: unknown option "B" ignored
8683	# Tru64's nm complains that /dev/null is an invalid object file
8684	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8685	case $build_os in
8686	mingw*) lt_bad_file=conftest.nm/nofile ;;
8687	*) lt_bad_file=/dev/null ;;
8688	esac
8689	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8690	*$lt_bad_file* | *'Invalid file or object type'*)
8691	  lt_cv_path_NM="$tmp_nm -B"
8692	  break 2
8693	  ;;
8694	*)
8695	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8696	  */dev/null*)
8697	    lt_cv_path_NM="$tmp_nm -p"
8698	    break 2
8699	    ;;
8700	  *)
8701	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8702	    continue # so that we can try to find one that supports BSD flags
8703	    ;;
8704	  esac
8705	  ;;
8706	esac
8707      fi
8708    done
8709    IFS=$lt_save_ifs
8710  done
8711  : ${lt_cv_path_NM=no}
8712fi
8713fi
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8715$as_echo "$lt_cv_path_NM" >&6; }
8716if test no != "$lt_cv_path_NM"; then
8717  NM=$lt_cv_path_NM
8718else
8719  # Didn't find any BSD compatible name lister, look for dumpbin.
8720  if test -n "$DUMPBIN"; then :
8721    # Let the user override the test.
8722  else
8723    if test -n "$ac_tool_prefix"; then
8724  for ac_prog in dumpbin "link -dump"
8725  do
8726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729$as_echo_n "checking for $ac_word... " >&6; }
8730if ${ac_cv_prog_DUMPBIN+:} false; then :
8731  $as_echo_n "(cached) " >&6
8732else
8733  if test -n "$DUMPBIN"; then
8734  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8735else
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739  IFS=$as_save_IFS
8740  test -z "$as_dir" && as_dir=.
8741    for ac_exec_ext in '' $ac_executable_extensions; do
8742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745    break 2
8746  fi
8747done
8748  done
8749IFS=$as_save_IFS
8750
8751fi
8752fi
8753DUMPBIN=$ac_cv_prog_DUMPBIN
8754if test -n "$DUMPBIN"; then
8755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8756$as_echo "$DUMPBIN" >&6; }
8757else
8758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
8760fi
8761
8762
8763    test -n "$DUMPBIN" && break
8764  done
8765fi
8766if test -z "$DUMPBIN"; then
8767  ac_ct_DUMPBIN=$DUMPBIN
8768  for ac_prog in dumpbin "link -dump"
8769do
8770  # Extract the first word of "$ac_prog", so it can be a program name with args.
8771set dummy $ac_prog; ac_word=$2
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773$as_echo_n "checking for $ac_word... " >&6; }
8774if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  if test -n "$ac_ct_DUMPBIN"; then
8778  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8779else
8780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783  IFS=$as_save_IFS
8784  test -z "$as_dir" && as_dir=.
8785    for ac_exec_ext in '' $ac_executable_extensions; do
8786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792  done
8793IFS=$as_save_IFS
8794
8795fi
8796fi
8797ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8798if test -n "$ac_ct_DUMPBIN"; then
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8800$as_echo "$ac_ct_DUMPBIN" >&6; }
8801else
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
8804fi
8805
8806
8807  test -n "$ac_ct_DUMPBIN" && break
8808done
8809
8810  if test "x$ac_ct_DUMPBIN" = x; then
8811    DUMPBIN=":"
8812  else
8813    case $cross_compiling:$ac_tool_warned in
8814yes:)
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817ac_tool_warned=yes ;;
8818esac
8819    DUMPBIN=$ac_ct_DUMPBIN
8820  fi
8821fi
8822
8823    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8824    *COFF*)
8825      DUMPBIN="$DUMPBIN -symbols -headers"
8826      ;;
8827    *)
8828      DUMPBIN=:
8829      ;;
8830    esac
8831  fi
8832
8833  if test : != "$DUMPBIN"; then
8834    NM=$DUMPBIN
8835  fi
8836fi
8837test -z "$NM" && NM=nm
8838
8839
8840
8841
8842
8843
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8845$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8846if ${lt_cv_nm_interface+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  lt_cv_nm_interface="BSD nm"
8850  echo "int some_variable = 0;" > conftest.$ac_ext
8851  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8852  (eval "$ac_compile" 2>conftest.err)
8853  cat conftest.err >&5
8854  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8855  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8856  cat conftest.err >&5
8857  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8858  cat conftest.out >&5
8859  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8860    lt_cv_nm_interface="MS dumpbin"
8861  fi
8862  rm -f conftest*
8863fi
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8865$as_echo "$lt_cv_nm_interface" >&6; }
8866
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8868$as_echo_n "checking whether ln -s works... " >&6; }
8869LN_S=$as_ln_s
8870if test "$LN_S" = "ln -s"; then
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872$as_echo "yes" >&6; }
8873else
8874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8875$as_echo "no, using $LN_S" >&6; }
8876fi
8877
8878# find the maximum length of command line arguments
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8880$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8881if ${lt_cv_sys_max_cmd_len+:} false; then :
8882  $as_echo_n "(cached) " >&6
8883else
8884    i=0
8885  teststring=ABCD
8886
8887  case $build_os in
8888  msdosdjgpp*)
8889    # On DJGPP, this test can blow up pretty badly due to problems in libc
8890    # (any single argument exceeding 2000 bytes causes a buffer overrun
8891    # during glob expansion).  Even if it were fixed, the result of this
8892    # check would be larger than it should be.
8893    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8894    ;;
8895
8896  gnu*)
8897    # Under GNU Hurd, this test is not required because there is
8898    # no limit to the length of command line arguments.
8899    # Libtool will interpret -1 as no limit whatsoever
8900    lt_cv_sys_max_cmd_len=-1;
8901    ;;
8902
8903  cygwin* | mingw* | cegcc*)
8904    # On Win9x/ME, this test blows up -- it succeeds, but takes
8905    # about 5 minutes as the teststring grows exponentially.
8906    # Worse, since 9x/ME are not pre-emptively multitasking,
8907    # you end up with a "frozen" computer, even though with patience
8908    # the test eventually succeeds (with a max line length of 256k).
8909    # Instead, let's just punt: use the minimum linelength reported by
8910    # all of the supported platforms: 8192 (on NT/2K/XP).
8911    lt_cv_sys_max_cmd_len=8192;
8912    ;;
8913
8914  mint*)
8915    # On MiNT this can take a long time and run out of memory.
8916    lt_cv_sys_max_cmd_len=8192;
8917    ;;
8918
8919  amigaos*)
8920    # On AmigaOS with pdksh, this test takes hours, literally.
8921    # So we just punt and use a minimum line length of 8192.
8922    lt_cv_sys_max_cmd_len=8192;
8923    ;;
8924
8925  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8926    # This has been around since 386BSD, at least.  Likely further.
8927    if test -x /sbin/sysctl; then
8928      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8929    elif test -x /usr/sbin/sysctl; then
8930      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8931    else
8932      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8933    fi
8934    # And add a safety zone
8935    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8936    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8937    ;;
8938
8939  interix*)
8940    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8941    lt_cv_sys_max_cmd_len=196608
8942    ;;
8943
8944  os2*)
8945    # The test takes a long time on OS/2.
8946    lt_cv_sys_max_cmd_len=8192
8947    ;;
8948
8949  osf*)
8950    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8951    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8952    # nice to cause kernel panics so lets avoid the loop below.
8953    # First set a reasonable default.
8954    lt_cv_sys_max_cmd_len=16384
8955    #
8956    if test -x /sbin/sysconfig; then
8957      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8958        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8959      esac
8960    fi
8961    ;;
8962  sco3.2v5*)
8963    lt_cv_sys_max_cmd_len=102400
8964    ;;
8965  sysv5* | sco5v6* | sysv4.2uw2*)
8966    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8967    if test -n "$kargmax"; then
8968      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8969    else
8970      lt_cv_sys_max_cmd_len=32768
8971    fi
8972    ;;
8973  *)
8974    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8975    if test -n "$lt_cv_sys_max_cmd_len" && \
8976       test undefined != "$lt_cv_sys_max_cmd_len"; then
8977      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8978      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8979    else
8980      # Make teststring a little bigger before we do anything with it.
8981      # a 1K string should be a reasonable start.
8982      for i in 1 2 3 4 5 6 7 8; do
8983        teststring=$teststring$teststring
8984      done
8985      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8986      # If test is not a shell built-in, we'll probably end up computing a
8987      # maximum length that is only half of the actual maximum length, but
8988      # we can't tell.
8989      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8990	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8991	      test 17 != "$i" # 1/2 MB should be enough
8992      do
8993        i=`expr $i + 1`
8994        teststring=$teststring$teststring
8995      done
8996      # Only check the string length outside the loop.
8997      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8998      teststring=
8999      # Add a significant safety factor because C++ compilers can tack on
9000      # massive amounts of additional arguments before passing them to the
9001      # linker.  It appears as though 1/2 is a usable value.
9002      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9003    fi
9004    ;;
9005  esac
9006
9007fi
9008
9009if test -n "$lt_cv_sys_max_cmd_len"; then
9010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9011$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9012else
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9014$as_echo "none" >&6; }
9015fi
9016max_cmd_len=$lt_cv_sys_max_cmd_len
9017
9018
9019
9020
9021
9022
9023: ${CP="cp -f"}
9024: ${MV="mv -f"}
9025: ${RM="rm -f"}
9026
9027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9028  lt_unset=unset
9029else
9030  lt_unset=false
9031fi
9032
9033
9034
9035
9036
9037# test EBCDIC or ASCII
9038case `echo X|tr X '\101'` in
9039 A) # ASCII based system
9040    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9041  lt_SP2NL='tr \040 \012'
9042  lt_NL2SP='tr \015\012 \040\040'
9043  ;;
9044 *) # EBCDIC based system
9045  lt_SP2NL='tr \100 \n'
9046  lt_NL2SP='tr \r\n \100\100'
9047  ;;
9048esac
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9059$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9060if ${lt_cv_to_host_file_cmd+:} false; then :
9061  $as_echo_n "(cached) " >&6
9062else
9063  case $host in
9064  *-*-mingw* )
9065    case $build in
9066      *-*-mingw* ) # actually msys
9067        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9068        ;;
9069      *-*-cygwin* )
9070        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9071        ;;
9072      * ) # otherwise, assume *nix
9073        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9074        ;;
9075    esac
9076    ;;
9077  *-*-cygwin* )
9078    case $build in
9079      *-*-mingw* ) # actually msys
9080        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9081        ;;
9082      *-*-cygwin* )
9083        lt_cv_to_host_file_cmd=func_convert_file_noop
9084        ;;
9085      * ) # otherwise, assume *nix
9086        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9087        ;;
9088    esac
9089    ;;
9090  * ) # unhandled hosts (and "normal" native builds)
9091    lt_cv_to_host_file_cmd=func_convert_file_noop
9092    ;;
9093esac
9094
9095fi
9096
9097to_host_file_cmd=$lt_cv_to_host_file_cmd
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9099$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9100
9101
9102
9103
9104
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9106$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9107if ${lt_cv_to_tool_file_cmd+:} false; then :
9108  $as_echo_n "(cached) " >&6
9109else
9110  #assume ordinary cross tools, or native build.
9111lt_cv_to_tool_file_cmd=func_convert_file_noop
9112case $host in
9113  *-*-mingw* )
9114    case $build in
9115      *-*-mingw* ) # actually msys
9116        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9117        ;;
9118    esac
9119    ;;
9120esac
9121
9122fi
9123
9124to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9126$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9127
9128
9129
9130
9131
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9133$as_echo_n "checking for $LD option to reload object files... " >&6; }
9134if ${lt_cv_ld_reload_flag+:} false; then :
9135  $as_echo_n "(cached) " >&6
9136else
9137  lt_cv_ld_reload_flag='-r'
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9140$as_echo "$lt_cv_ld_reload_flag" >&6; }
9141reload_flag=$lt_cv_ld_reload_flag
9142case $reload_flag in
9143"" | " "*) ;;
9144*) reload_flag=" $reload_flag" ;;
9145esac
9146reload_cmds='$LD$reload_flag -o $output$reload_objs'
9147case $host_os in
9148  cygwin* | mingw* | pw32* | cegcc*)
9149    if test yes != "$GCC"; then
9150      reload_cmds=false
9151    fi
9152    ;;
9153  darwin*)
9154    if test yes = "$GCC"; then
9155      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9156    else
9157      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9158    fi
9159    ;;
9160esac
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170if test -n "$ac_tool_prefix"; then
9171  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9172set dummy ${ac_tool_prefix}objdump; ac_word=$2
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174$as_echo_n "checking for $ac_word... " >&6; }
9175if ${ac_cv_prog_OBJDUMP+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  if test -n "$OBJDUMP"; then
9179  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9180else
9181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182for as_dir in $PATH
9183do
9184  IFS=$as_save_IFS
9185  test -z "$as_dir" && as_dir=.
9186    for ac_exec_ext in '' $ac_executable_extensions; do
9187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9188    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190    break 2
9191  fi
9192done
9193  done
9194IFS=$as_save_IFS
9195
9196fi
9197fi
9198OBJDUMP=$ac_cv_prog_OBJDUMP
9199if test -n "$OBJDUMP"; then
9200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9201$as_echo "$OBJDUMP" >&6; }
9202else
9203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204$as_echo "no" >&6; }
9205fi
9206
9207
9208fi
9209if test -z "$ac_cv_prog_OBJDUMP"; then
9210  ac_ct_OBJDUMP=$OBJDUMP
9211  # Extract the first word of "objdump", so it can be a program name with args.
9212set dummy objdump; ac_word=$2
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  if test -n "$ac_ct_OBJDUMP"; then
9219  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9220else
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224  IFS=$as_save_IFS
9225  test -z "$as_dir" && as_dir=.
9226    for ac_exec_ext in '' $ac_executable_extensions; do
9227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9228    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230    break 2
9231  fi
9232done
9233  done
9234IFS=$as_save_IFS
9235
9236fi
9237fi
9238ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9239if test -n "$ac_ct_OBJDUMP"; then
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9241$as_echo "$ac_ct_OBJDUMP" >&6; }
9242else
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247  if test "x$ac_ct_OBJDUMP" = x; then
9248    OBJDUMP="false"
9249  else
9250    case $cross_compiling:$ac_tool_warned in
9251yes:)
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254ac_tool_warned=yes ;;
9255esac
9256    OBJDUMP=$ac_ct_OBJDUMP
9257  fi
9258else
9259  OBJDUMP="$ac_cv_prog_OBJDUMP"
9260fi
9261
9262test -z "$OBJDUMP" && OBJDUMP=objdump
9263
9264
9265
9266
9267
9268
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9270$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9271if ${lt_cv_deplibs_check_method+:} false; then :
9272  $as_echo_n "(cached) " >&6
9273else
9274  lt_cv_file_magic_cmd='$MAGIC_CMD'
9275lt_cv_file_magic_test_file=
9276lt_cv_deplibs_check_method='unknown'
9277# Need to set the preceding variable on all platforms that support
9278# interlibrary dependencies.
9279# 'none' -- dependencies not supported.
9280# 'unknown' -- same as none, but documents that we really don't know.
9281# 'pass_all' -- all dependencies passed with no checks.
9282# 'test_compile' -- check by making test program.
9283# 'file_magic [[regex]]' -- check by looking for files in library path
9284# that responds to the $file_magic_cmd with a given extended regex.
9285# If you have 'file' or equivalent on your system and you're not sure
9286# whether 'pass_all' will *always* work, you probably want this one.
9287
9288case $host_os in
9289aix[4-9]*)
9290  lt_cv_deplibs_check_method=pass_all
9291  ;;
9292
9293beos*)
9294  lt_cv_deplibs_check_method=pass_all
9295  ;;
9296
9297bsdi[45]*)
9298  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9299  lt_cv_file_magic_cmd='/usr/bin/file -L'
9300  lt_cv_file_magic_test_file=/shlib/libc.so
9301  ;;
9302
9303cygwin*)
9304  # func_win32_libid is a shell function defined in ltmain.sh
9305  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9306  lt_cv_file_magic_cmd='func_win32_libid'
9307  ;;
9308
9309mingw* | pw32*)
9310  # Base MSYS/MinGW do not provide the 'file' command needed by
9311  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9312  # unless we find 'file', for example because we are cross-compiling.
9313  if ( file / ) >/dev/null 2>&1; then
9314    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9315    lt_cv_file_magic_cmd='func_win32_libid'
9316  else
9317    # Keep this pattern in sync with the one in func_win32_libid.
9318    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9319    lt_cv_file_magic_cmd='$OBJDUMP -f'
9320  fi
9321  ;;
9322
9323cegcc*)
9324  # use the weaker test based on 'objdump'. See mingw*.
9325  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9326  lt_cv_file_magic_cmd='$OBJDUMP -f'
9327  ;;
9328
9329darwin* | rhapsody*)
9330  lt_cv_deplibs_check_method=pass_all
9331  ;;
9332
9333freebsd* | dragonfly*)
9334  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9335    case $host_cpu in
9336    i*86 )
9337      # Not sure whether the presence of OpenBSD here was a mistake.
9338      # Let's accept both of them until this is cleared up.
9339      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9340      lt_cv_file_magic_cmd=/usr/bin/file
9341      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9342      ;;
9343    esac
9344  else
9345    lt_cv_deplibs_check_method=pass_all
9346  fi
9347  ;;
9348
9349haiku*)
9350  lt_cv_deplibs_check_method=pass_all
9351  ;;
9352
9353hpux10.20* | hpux11*)
9354  lt_cv_file_magic_cmd=/usr/bin/file
9355  case $host_cpu in
9356  ia64*)
9357    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9358    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9359    ;;
9360  hppa*64*)
9361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
9362    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9363    ;;
9364  *)
9365    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9366    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9367    ;;
9368  esac
9369  ;;
9370
9371interix[3-9]*)
9372  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9373  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9374  ;;
9375
9376irix5* | irix6* | nonstopux*)
9377  case $LD in
9378  *-32|*"-32 ") libmagic=32-bit;;
9379  *-n32|*"-n32 ") libmagic=N32;;
9380  *-64|*"-64 ") libmagic=64-bit;;
9381  *) libmagic=never-match;;
9382  esac
9383  lt_cv_deplibs_check_method=pass_all
9384  ;;
9385
9386# This must be glibc/ELF.
9387linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9388  lt_cv_deplibs_check_method=pass_all
9389  ;;
9390
9391netbsd* | netbsdelf*-gnu)
9392  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9394  else
9395    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9396  fi
9397  ;;
9398
9399newos6*)
9400  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9401  lt_cv_file_magic_cmd=/usr/bin/file
9402  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9403  ;;
9404
9405*nto* | *qnx*)
9406  lt_cv_deplibs_check_method=pass_all
9407  ;;
9408
9409openbsd* | bitrig*)
9410  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9412  else
9413    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9414  fi
9415  ;;
9416
9417osf3* | osf4* | osf5*)
9418  lt_cv_deplibs_check_method=pass_all
9419  ;;
9420
9421rdos*)
9422  lt_cv_deplibs_check_method=pass_all
9423  ;;
9424
9425solaris*)
9426  lt_cv_deplibs_check_method=pass_all
9427  ;;
9428
9429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430  lt_cv_deplibs_check_method=pass_all
9431  ;;
9432
9433sysv4 | sysv4.3*)
9434  case $host_vendor in
9435  motorola)
9436    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9437    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9438    ;;
9439  ncr)
9440    lt_cv_deplibs_check_method=pass_all
9441    ;;
9442  sequent)
9443    lt_cv_file_magic_cmd='/bin/file'
9444    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9445    ;;
9446  sni)
9447    lt_cv_file_magic_cmd='/bin/file'
9448    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9449    lt_cv_file_magic_test_file=/lib/libc.so
9450    ;;
9451  siemens)
9452    lt_cv_deplibs_check_method=pass_all
9453    ;;
9454  pc)
9455    lt_cv_deplibs_check_method=pass_all
9456    ;;
9457  esac
9458  ;;
9459
9460tpf*)
9461  lt_cv_deplibs_check_method=pass_all
9462  ;;
9463os2*)
9464  lt_cv_deplibs_check_method=pass_all
9465  ;;
9466esac
9467
9468fi
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9470$as_echo "$lt_cv_deplibs_check_method" >&6; }
9471
9472file_magic_glob=
9473want_nocaseglob=no
9474if test "$build" = "$host"; then
9475  case $host_os in
9476  mingw* | pw32*)
9477    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9478      want_nocaseglob=yes
9479    else
9480      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9481    fi
9482    ;;
9483  esac
9484fi
9485
9486file_magic_cmd=$lt_cv_file_magic_cmd
9487deplibs_check_method=$lt_cv_deplibs_check_method
9488test -z "$deplibs_check_method" && deplibs_check_method=unknown
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511if test -n "$ac_tool_prefix"; then
9512  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9513set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515$as_echo_n "checking for $ac_word... " >&6; }
9516if ${ac_cv_prog_DLLTOOL+:} false; then :
9517  $as_echo_n "(cached) " >&6
9518else
9519  if test -n "$DLLTOOL"; then
9520  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9521else
9522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523for as_dir in $PATH
9524do
9525  IFS=$as_save_IFS
9526  test -z "$as_dir" && as_dir=.
9527    for ac_exec_ext in '' $ac_executable_extensions; do
9528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9529    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531    break 2
9532  fi
9533done
9534  done
9535IFS=$as_save_IFS
9536
9537fi
9538fi
9539DLLTOOL=$ac_cv_prog_DLLTOOL
9540if test -n "$DLLTOOL"; then
9541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9542$as_echo "$DLLTOOL" >&6; }
9543else
9544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545$as_echo "no" >&6; }
9546fi
9547
9548
9549fi
9550if test -z "$ac_cv_prog_DLLTOOL"; then
9551  ac_ct_DLLTOOL=$DLLTOOL
9552  # Extract the first word of "dlltool", so it can be a program name with args.
9553set dummy dlltool; ac_word=$2
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555$as_echo_n "checking for $ac_word... " >&6; }
9556if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  if test -n "$ac_ct_DLLTOOL"; then
9560  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9561else
9562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563for as_dir in $PATH
9564do
9565  IFS=$as_save_IFS
9566  test -z "$as_dir" && as_dir=.
9567    for ac_exec_ext in '' $ac_executable_extensions; do
9568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571    break 2
9572  fi
9573done
9574  done
9575IFS=$as_save_IFS
9576
9577fi
9578fi
9579ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9580if test -n "$ac_ct_DLLTOOL"; then
9581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9582$as_echo "$ac_ct_DLLTOOL" >&6; }
9583else
9584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585$as_echo "no" >&6; }
9586fi
9587
9588  if test "x$ac_ct_DLLTOOL" = x; then
9589    DLLTOOL="false"
9590  else
9591    case $cross_compiling:$ac_tool_warned in
9592yes:)
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9595ac_tool_warned=yes ;;
9596esac
9597    DLLTOOL=$ac_ct_DLLTOOL
9598  fi
9599else
9600  DLLTOOL="$ac_cv_prog_DLLTOOL"
9601fi
9602
9603test -z "$DLLTOOL" && DLLTOOL=dlltool
9604
9605
9606
9607
9608
9609
9610
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9612$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9613if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  lt_cv_sharedlib_from_linklib_cmd='unknown'
9617
9618case $host_os in
9619cygwin* | mingw* | pw32* | cegcc*)
9620  # two different shell functions defined in ltmain.sh;
9621  # decide which one to use based on capabilities of $DLLTOOL
9622  case `$DLLTOOL --help 2>&1` in
9623  *--identify-strict*)
9624    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9625    ;;
9626  *)
9627    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9628    ;;
9629  esac
9630  ;;
9631*)
9632  # fallback: assume linklib IS sharedlib
9633  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9634  ;;
9635esac
9636
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9639$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9640sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9641test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9642
9643
9644
9645
9646
9647
9648
9649if test -n "$ac_tool_prefix"; then
9650  for ac_prog in ar
9651  do
9652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if ${ac_cv_prog_AR+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  if test -n "$AR"; then
9660  ac_cv_prog_AR="$AR" # Let the user override the test.
9661else
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665  IFS=$as_save_IFS
9666  test -z "$as_dir" && as_dir=.
9667    for ac_exec_ext in '' $ac_executable_extensions; do
9668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671    break 2
9672  fi
9673done
9674  done
9675IFS=$as_save_IFS
9676
9677fi
9678fi
9679AR=$ac_cv_prog_AR
9680if test -n "$AR"; then
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9682$as_echo "$AR" >&6; }
9683else
9684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685$as_echo "no" >&6; }
9686fi
9687
9688
9689    test -n "$AR" && break
9690  done
9691fi
9692if test -z "$AR"; then
9693  ac_ct_AR=$AR
9694  for ac_prog in ar
9695do
9696  # Extract the first word of "$ac_prog", so it can be a program name with args.
9697set dummy $ac_prog; ac_word=$2
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699$as_echo_n "checking for $ac_word... " >&6; }
9700if ${ac_cv_prog_ac_ct_AR+:} false; then :
9701  $as_echo_n "(cached) " >&6
9702else
9703  if test -n "$ac_ct_AR"; then
9704  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9705else
9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709  IFS=$as_save_IFS
9710  test -z "$as_dir" && as_dir=.
9711    for ac_exec_ext in '' $ac_executable_extensions; do
9712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713    ac_cv_prog_ac_ct_AR="$ac_prog"
9714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715    break 2
9716  fi
9717done
9718  done
9719IFS=$as_save_IFS
9720
9721fi
9722fi
9723ac_ct_AR=$ac_cv_prog_ac_ct_AR
9724if test -n "$ac_ct_AR"; then
9725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9726$as_echo "$ac_ct_AR" >&6; }
9727else
9728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
9730fi
9731
9732
9733  test -n "$ac_ct_AR" && break
9734done
9735
9736  if test "x$ac_ct_AR" = x; then
9737    AR="false"
9738  else
9739    case $cross_compiling:$ac_tool_warned in
9740yes:)
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9743ac_tool_warned=yes ;;
9744esac
9745    AR=$ac_ct_AR
9746  fi
9747fi
9748
9749: ${AR=ar}
9750: ${AR_FLAGS=cr}
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9763$as_echo_n "checking for archiver @FILE support... " >&6; }
9764if ${lt_cv_ar_at_file+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  lt_cv_ar_at_file=no
9768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770
9771int
9772main ()
9773{
9774
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779if ac_fn_c_try_compile "$LINENO"; then :
9780  echo conftest.$ac_objext > conftest.lst
9781      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9782      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9783  (eval $lt_ar_try) 2>&5
9784  ac_status=$?
9785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786  test $ac_status = 0; }
9787      if test 0 -eq "$ac_status"; then
9788	# Ensure the archiver fails upon bogus file names.
9789	rm -f conftest.$ac_objext libconftest.a
9790	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9791  (eval $lt_ar_try) 2>&5
9792  ac_status=$?
9793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794  test $ac_status = 0; }
9795	if test 0 -ne "$ac_status"; then
9796          lt_cv_ar_at_file=@
9797        fi
9798      fi
9799      rm -f conftest.* libconftest.a
9800
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803
9804fi
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9806$as_echo "$lt_cv_ar_at_file" >&6; }
9807
9808if test no = "$lt_cv_ar_at_file"; then
9809  archiver_list_spec=
9810else
9811  archiver_list_spec=$lt_cv_ar_at_file
9812fi
9813
9814
9815
9816
9817
9818
9819
9820if test -n "$ac_tool_prefix"; then
9821  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9822set dummy ${ac_tool_prefix}strip; ac_word=$2
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824$as_echo_n "checking for $ac_word... " >&6; }
9825if ${ac_cv_prog_STRIP+:} false; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828  if test -n "$STRIP"; then
9829  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9830else
9831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834  IFS=$as_save_IFS
9835  test -z "$as_dir" && as_dir=.
9836    for ac_exec_ext in '' $ac_executable_extensions; do
9837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9838    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840    break 2
9841  fi
9842done
9843  done
9844IFS=$as_save_IFS
9845
9846fi
9847fi
9848STRIP=$ac_cv_prog_STRIP
9849if test -n "$STRIP"; then
9850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9851$as_echo "$STRIP" >&6; }
9852else
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854$as_echo "no" >&6; }
9855fi
9856
9857
9858fi
9859if test -z "$ac_cv_prog_STRIP"; then
9860  ac_ct_STRIP=$STRIP
9861  # Extract the first word of "strip", so it can be a program name with args.
9862set dummy strip; ac_word=$2
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  if test -n "$ac_ct_STRIP"; then
9869  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9870else
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874  IFS=$as_save_IFS
9875  test -z "$as_dir" && as_dir=.
9876    for ac_exec_ext in '' $ac_executable_extensions; do
9877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878    ac_cv_prog_ac_ct_STRIP="strip"
9879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880    break 2
9881  fi
9882done
9883  done
9884IFS=$as_save_IFS
9885
9886fi
9887fi
9888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9889if test -n "$ac_ct_STRIP"; then
9890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9891$as_echo "$ac_ct_STRIP" >&6; }
9892else
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
9895fi
9896
9897  if test "x$ac_ct_STRIP" = x; then
9898    STRIP=":"
9899  else
9900    case $cross_compiling:$ac_tool_warned in
9901yes:)
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9904ac_tool_warned=yes ;;
9905esac
9906    STRIP=$ac_ct_STRIP
9907  fi
9908else
9909  STRIP="$ac_cv_prog_STRIP"
9910fi
9911
9912test -z "$STRIP" && STRIP=:
9913
9914
9915
9916
9917
9918
9919if test -n "$ac_tool_prefix"; then
9920  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9921set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923$as_echo_n "checking for $ac_word... " >&6; }
9924if ${ac_cv_prog_RANLIB+:} false; then :
9925  $as_echo_n "(cached) " >&6
9926else
9927  if test -n "$RANLIB"; then
9928  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9929else
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933  IFS=$as_save_IFS
9934  test -z "$as_dir" && as_dir=.
9935    for ac_exec_ext in '' $ac_executable_extensions; do
9936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9937    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939    break 2
9940  fi
9941done
9942  done
9943IFS=$as_save_IFS
9944
9945fi
9946fi
9947RANLIB=$ac_cv_prog_RANLIB
9948if test -n "$RANLIB"; then
9949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9950$as_echo "$RANLIB" >&6; }
9951else
9952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953$as_echo "no" >&6; }
9954fi
9955
9956
9957fi
9958if test -z "$ac_cv_prog_RANLIB"; then
9959  ac_ct_RANLIB=$RANLIB
9960  # Extract the first word of "ranlib", so it can be a program name with args.
9961set dummy ranlib; ac_word=$2
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963$as_echo_n "checking for $ac_word... " >&6; }
9964if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  if test -n "$ac_ct_RANLIB"; then
9968  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9969else
9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971for as_dir in $PATH
9972do
9973  IFS=$as_save_IFS
9974  test -z "$as_dir" && as_dir=.
9975    for ac_exec_ext in '' $ac_executable_extensions; do
9976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977    ac_cv_prog_ac_ct_RANLIB="ranlib"
9978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979    break 2
9980  fi
9981done
9982  done
9983IFS=$as_save_IFS
9984
9985fi
9986fi
9987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9988if test -n "$ac_ct_RANLIB"; then
9989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9990$as_echo "$ac_ct_RANLIB" >&6; }
9991else
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993$as_echo "no" >&6; }
9994fi
9995
9996  if test "x$ac_ct_RANLIB" = x; then
9997    RANLIB=":"
9998  else
9999    case $cross_compiling:$ac_tool_warned in
10000yes:)
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10003ac_tool_warned=yes ;;
10004esac
10005    RANLIB=$ac_ct_RANLIB
10006  fi
10007else
10008  RANLIB="$ac_cv_prog_RANLIB"
10009fi
10010
10011test -z "$RANLIB" && RANLIB=:
10012
10013
10014
10015
10016
10017
10018# Determine commands to create old-style static archives.
10019old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10020old_postinstall_cmds='chmod 644 $oldlib'
10021old_postuninstall_cmds=
10022
10023if test -n "$RANLIB"; then
10024  case $host_os in
10025  bitrig* | openbsd*)
10026    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10027    ;;
10028  *)
10029    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10030    ;;
10031  esac
10032  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10033fi
10034
10035case $host_os in
10036  darwin*)
10037    lock_old_archive_extraction=yes ;;
10038  *)
10039    lock_old_archive_extraction=no ;;
10040esac
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080# If no C compiler was specified, use CC.
10081LTCC=${LTCC-"$CC"}
10082
10083# If no C compiler flags were specified, use CFLAGS.
10084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10085
10086# Allow CC to be a program name with arguments.
10087compiler=$CC
10088
10089
10090# Check for command to grab the raw symbol name followed by C symbol from nm.
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10092$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10093if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10094  $as_echo_n "(cached) " >&6
10095else
10096
10097# These are sane defaults that work on at least a few old systems.
10098# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10099
10100# Character class describing NM global symbol codes.
10101symcode='[BCDEGRST]'
10102
10103# Regexp to match symbols that can be accessed directly from C.
10104sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10105
10106# Define system-specific variables.
10107case $host_os in
10108aix*)
10109  symcode='[BCDT]'
10110  ;;
10111cygwin* | mingw* | pw32* | cegcc*)
10112  symcode='[ABCDGISTW]'
10113  ;;
10114hpux*)
10115  if test ia64 = "$host_cpu"; then
10116    symcode='[ABCDEGRST]'
10117  fi
10118  ;;
10119irix* | nonstopux*)
10120  symcode='[BCDEGRST]'
10121  ;;
10122osf*)
10123  symcode='[BCDEGQRST]'
10124  ;;
10125solaris*)
10126  symcode='[BDRT]'
10127  ;;
10128sco3.2v5*)
10129  symcode='[DT]'
10130  ;;
10131sysv4.2uw2*)
10132  symcode='[DT]'
10133  ;;
10134sysv5* | sco5v6* | unixware* | OpenUNIX*)
10135  symcode='[ABDT]'
10136  ;;
10137sysv4)
10138  symcode='[DFNSTU]'
10139  ;;
10140esac
10141
10142# If we're using GNU nm, then use its standard symbol codes.
10143case `$NM -V 2>&1` in
10144*GNU* | *'with BFD'*)
10145  symcode='[ABCDGIRSTW]' ;;
10146esac
10147
10148if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10149  # Gets list of data symbols to import.
10150  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10151  # Adjust the below global symbol transforms to fixup imported variables.
10152  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10153  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10154  lt_c_name_lib_hook="\
10155  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10156  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10157else
10158  # Disable hooks by default.
10159  lt_cv_sys_global_symbol_to_import=
10160  lt_cdecl_hook=
10161  lt_c_name_hook=
10162  lt_c_name_lib_hook=
10163fi
10164
10165# Transform an extracted symbol line into a proper C declaration.
10166# Some systems (esp. on ia64) link data and code symbols differently,
10167# so use this general approach.
10168lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10169$lt_cdecl_hook\
10170" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10171" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10172
10173# Transform an extracted symbol line into symbol name and symbol address
10174lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10175$lt_c_name_hook\
10176" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10177" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10178
10179# Transform an extracted symbol line into symbol name with lib prefix and
10180# symbol address.
10181lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10182$lt_c_name_lib_hook\
10183" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10184" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10185" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10186
10187# Handle CRLF in mingw tool chain
10188opt_cr=
10189case $build_os in
10190mingw*)
10191  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10192  ;;
10193esac
10194
10195# Try without a prefix underscore, then with it.
10196for ac_symprfx in "" "_"; do
10197
10198  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10199  symxfrm="\\1 $ac_symprfx\\2 \\2"
10200
10201  # Write the raw and C identifiers.
10202  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10203    # Fake it for dumpbin and say T for any non-static function,
10204    # D for any global variable and I for any imported variable.
10205    # Also find C++ and __fastcall symbols from MSVC++,
10206    # which start with @ or ?.
10207    lt_cv_sys_global_symbol_pipe="$AWK '"\
10208"     {last_section=section; section=\$ 3};"\
10209"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10210"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10211"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10212"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10213"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10214"     \$ 0!~/External *\|/{next};"\
10215"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10216"     {if(hide[section]) next};"\
10217"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10218"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10219"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10220"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10221"     ' prfx=^$ac_symprfx"
10222  else
10223    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10224  fi
10225  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10226
10227  # Check to see that the pipe works correctly.
10228  pipe_works=no
10229
10230  rm -f conftest*
10231  cat > conftest.$ac_ext <<_LT_EOF
10232#ifdef __cplusplus
10233extern "C" {
10234#endif
10235char nm_test_var;
10236void nm_test_func(void);
10237void nm_test_func(void){}
10238#ifdef __cplusplus
10239}
10240#endif
10241int main(){nm_test_var='a';nm_test_func();return(0);}
10242_LT_EOF
10243
10244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245  (eval $ac_compile) 2>&5
10246  ac_status=$?
10247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248  test $ac_status = 0; }; then
10249    # Now try to grab the symbols.
10250    nlist=conftest.nm
10251    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10252    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10253      # Try sorting and uniquifying the output.
10254      if sort "$nlist" | uniq > "$nlist"T; then
10255	mv -f "$nlist"T "$nlist"
10256      else
10257	rm -f "$nlist"T
10258      fi
10259
10260      # Make sure that we snagged all the symbols we need.
10261      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10262	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10263	  cat <<_LT_EOF > conftest.$ac_ext
10264/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10265#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10266/* DATA imports from DLLs on WIN32 can't be const, because runtime
10267   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10268# define LT_DLSYM_CONST
10269#elif defined __osf__
10270/* This system does not cope well with relocations in const data.  */
10271# define LT_DLSYM_CONST
10272#else
10273# define LT_DLSYM_CONST const
10274#endif
10275
10276#ifdef __cplusplus
10277extern "C" {
10278#endif
10279
10280_LT_EOF
10281	  # Now generate the symbol file.
10282	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10283
10284	  cat <<_LT_EOF >> conftest.$ac_ext
10285
10286/* The mapping between symbol names and symbols.  */
10287LT_DLSYM_CONST struct {
10288  const char *name;
10289  void       *address;
10290}
10291lt__PROGRAM__LTX_preloaded_symbols[] =
10292{
10293  { "@PROGRAM@", (void *) 0 },
10294_LT_EOF
10295	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10296	  cat <<\_LT_EOF >> conftest.$ac_ext
10297  {0, (void *) 0}
10298};
10299
10300/* This works around a problem in FreeBSD linker */
10301#ifdef FREEBSD_WORKAROUND
10302static const void *lt_preloaded_setup() {
10303  return lt__PROGRAM__LTX_preloaded_symbols;
10304}
10305#endif
10306
10307#ifdef __cplusplus
10308}
10309#endif
10310_LT_EOF
10311	  # Now try linking the two files.
10312	  mv conftest.$ac_objext conftstm.$ac_objext
10313	  lt_globsym_save_LIBS=$LIBS
10314	  lt_globsym_save_CFLAGS=$CFLAGS
10315	  LIBS=conftstm.$ac_objext
10316	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10317	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10318  (eval $ac_link) 2>&5
10319  ac_status=$?
10320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10322	    pipe_works=yes
10323	  fi
10324	  LIBS=$lt_globsym_save_LIBS
10325	  CFLAGS=$lt_globsym_save_CFLAGS
10326	else
10327	  echo "cannot find nm_test_func in $nlist" >&5
10328	fi
10329      else
10330	echo "cannot find nm_test_var in $nlist" >&5
10331      fi
10332    else
10333      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10334    fi
10335  else
10336    echo "$progname: failed program was:" >&5
10337    cat conftest.$ac_ext >&5
10338  fi
10339  rm -rf conftest* conftst*
10340
10341  # Do not use the global_symbol_pipe unless it works.
10342  if test yes = "$pipe_works"; then
10343    break
10344  else
10345    lt_cv_sys_global_symbol_pipe=
10346  fi
10347done
10348
10349fi
10350
10351if test -z "$lt_cv_sys_global_symbol_pipe"; then
10352  lt_cv_sys_global_symbol_to_cdecl=
10353fi
10354if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10356$as_echo "failed" >&6; }
10357else
10358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10359$as_echo "ok" >&6; }
10360fi
10361
10362# Response file support.
10363if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10364  nm_file_list_spec='@'
10365elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10366  nm_file_list_spec='@'
10367fi
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10406$as_echo_n "checking for sysroot... " >&6; }
10407
10408# Check whether --with-sysroot was given.
10409if test "${with_sysroot+set}" = set; then :
10410  withval=$with_sysroot;
10411else
10412  with_sysroot=no
10413fi
10414
10415
10416lt_sysroot=
10417case $with_sysroot in #(
10418 yes)
10419   if test yes = "$GCC"; then
10420     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10421   fi
10422   ;; #(
10423 /*)
10424   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10425   ;; #(
10426 no|'')
10427   ;; #(
10428 *)
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10430$as_echo "$with_sysroot" >&6; }
10431   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10432   ;;
10433esac
10434
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10436$as_echo "${lt_sysroot:-no}" >&6; }
10437
10438
10439
10440
10441
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10443$as_echo_n "checking for a working dd... " >&6; }
10444if ${ac_cv_path_lt_DD+:} false; then :
10445  $as_echo_n "(cached) " >&6
10446else
10447  printf 0123456789abcdef0123456789abcdef >conftest.i
10448cat conftest.i conftest.i >conftest2.i
10449: ${lt_DD:=$DD}
10450if test -z "$lt_DD"; then
10451  ac_path_lt_DD_found=false
10452  # Loop through the user's path and test for each of PROGNAME-LIST
10453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456  IFS=$as_save_IFS
10457  test -z "$as_dir" && as_dir=.
10458    for ac_prog in dd; do
10459    for ac_exec_ext in '' $ac_executable_extensions; do
10460      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10461      as_fn_executable_p "$ac_path_lt_DD" || continue
10462if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10463  cmp -s conftest.i conftest.out \
10464  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10465fi
10466      $ac_path_lt_DD_found && break 3
10467    done
10468  done
10469  done
10470IFS=$as_save_IFS
10471  if test -z "$ac_cv_path_lt_DD"; then
10472    :
10473  fi
10474else
10475  ac_cv_path_lt_DD=$lt_DD
10476fi
10477
10478rm -f conftest.i conftest2.i conftest.out
10479fi
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10481$as_echo "$ac_cv_path_lt_DD" >&6; }
10482
10483
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10485$as_echo_n "checking how to truncate binary pipes... " >&6; }
10486if ${lt_cv_truncate_bin+:} false; then :
10487  $as_echo_n "(cached) " >&6
10488else
10489  printf 0123456789abcdef0123456789abcdef >conftest.i
10490cat conftest.i conftest.i >conftest2.i
10491lt_cv_truncate_bin=
10492if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10493  cmp -s conftest.i conftest.out \
10494  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10495fi
10496rm -f conftest.i conftest2.i conftest.out
10497test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10500$as_echo "$lt_cv_truncate_bin" >&6; }
10501
10502
10503
10504
10505
10506
10507
10508# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10509func_cc_basename ()
10510{
10511    for cc_temp in $*""; do
10512      case $cc_temp in
10513        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10514        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10515        \-*) ;;
10516        *) break;;
10517      esac
10518    done
10519    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10520}
10521
10522# Check whether --enable-libtool-lock was given.
10523if test "${enable_libtool_lock+set}" = set; then :
10524  enableval=$enable_libtool_lock;
10525fi
10526
10527test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10528
10529# Some flags need to be propagated to the compiler or linker for good
10530# libtool support.
10531case $host in
10532ia64-*-hpux*)
10533  # Find out what ABI is being produced by ac_compile, and set mode
10534  # options accordingly.
10535  echo 'int i;' > conftest.$ac_ext
10536  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10537  (eval $ac_compile) 2>&5
10538  ac_status=$?
10539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10540  test $ac_status = 0; }; then
10541    case `/usr/bin/file conftest.$ac_objext` in
10542      *ELF-32*)
10543	HPUX_IA64_MODE=32
10544	;;
10545      *ELF-64*)
10546	HPUX_IA64_MODE=64
10547	;;
10548    esac
10549  fi
10550  rm -rf conftest*
10551  ;;
10552*-*-irix6*)
10553  # Find out what ABI is being produced by ac_compile, and set linker
10554  # options accordingly.
10555  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10556  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10557  (eval $ac_compile) 2>&5
10558  ac_status=$?
10559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10560  test $ac_status = 0; }; then
10561    if test yes = "$lt_cv_prog_gnu_ld"; then
10562      case `/usr/bin/file conftest.$ac_objext` in
10563	*32-bit*)
10564	  LD="${LD-ld} -melf32bsmip"
10565	  ;;
10566	*N32*)
10567	  LD="${LD-ld} -melf32bmipn32"
10568	  ;;
10569	*64-bit*)
10570	  LD="${LD-ld} -melf64bmip"
10571	;;
10572      esac
10573    else
10574      case `/usr/bin/file conftest.$ac_objext` in
10575	*32-bit*)
10576	  LD="${LD-ld} -32"
10577	  ;;
10578	*N32*)
10579	  LD="${LD-ld} -n32"
10580	  ;;
10581	*64-bit*)
10582	  LD="${LD-ld} -64"
10583	  ;;
10584      esac
10585    fi
10586  fi
10587  rm -rf conftest*
10588  ;;
10589
10590mips64*-*linux*)
10591  # Find out what ABI is being produced by ac_compile, and set linker
10592  # options accordingly.
10593  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10594  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10595  (eval $ac_compile) 2>&5
10596  ac_status=$?
10597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10598  test $ac_status = 0; }; then
10599    emul=elf
10600    case `/usr/bin/file conftest.$ac_objext` in
10601      *32-bit*)
10602	emul="${emul}32"
10603	;;
10604      *64-bit*)
10605	emul="${emul}64"
10606	;;
10607    esac
10608    case `/usr/bin/file conftest.$ac_objext` in
10609      *MSB*)
10610	emul="${emul}btsmip"
10611	;;
10612      *LSB*)
10613	emul="${emul}ltsmip"
10614	;;
10615    esac
10616    case `/usr/bin/file conftest.$ac_objext` in
10617      *N32*)
10618	emul="${emul}n32"
10619	;;
10620    esac
10621    LD="${LD-ld} -m $emul"
10622  fi
10623  rm -rf conftest*
10624  ;;
10625
10626x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10627s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10628  # Find out what ABI is being produced by ac_compile, and set linker
10629  # options accordingly.  Note that the listed cases only cover the
10630  # situations where additional linker options are needed (such as when
10631  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10632  # vice versa); the common cases where no linker options are needed do
10633  # not appear in the list.
10634  echo 'int i;' > conftest.$ac_ext
10635  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10636  (eval $ac_compile) 2>&5
10637  ac_status=$?
10638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10639  test $ac_status = 0; }; then
10640    case `/usr/bin/file conftest.o` in
10641      *32-bit*)
10642	case $host in
10643	  x86_64-*kfreebsd*-gnu)
10644	    LD="${LD-ld} -m elf_i386_fbsd"
10645	    ;;
10646	  x86_64-*linux*)
10647	    case `/usr/bin/file conftest.o` in
10648	      *x86-64*)
10649		LD="${LD-ld} -m elf32_x86_64"
10650		;;
10651	      *)
10652		LD="${LD-ld} -m elf_i386"
10653		;;
10654	    esac
10655	    ;;
10656	  powerpc64le-*linux*)
10657	    LD="${LD-ld} -m elf32lppclinux"
10658	    ;;
10659	  powerpc64-*linux*)
10660	    LD="${LD-ld} -m elf32ppclinux"
10661	    ;;
10662	  s390x-*linux*)
10663	    LD="${LD-ld} -m elf_s390"
10664	    ;;
10665	  sparc64-*linux*)
10666	    LD="${LD-ld} -m elf32_sparc"
10667	    ;;
10668	esac
10669	;;
10670      *64-bit*)
10671	case $host in
10672	  x86_64-*kfreebsd*-gnu)
10673	    LD="${LD-ld} -m elf_x86_64_fbsd"
10674	    ;;
10675	  x86_64-*linux*)
10676	    LD="${LD-ld} -m elf_x86_64"
10677	    ;;
10678	  powerpcle-*linux*)
10679	    LD="${LD-ld} -m elf64lppc"
10680	    ;;
10681	  powerpc-*linux*)
10682	    LD="${LD-ld} -m elf64ppc"
10683	    ;;
10684	  s390*-*linux*|s390*-*tpf*)
10685	    LD="${LD-ld} -m elf64_s390"
10686	    ;;
10687	  sparc*-*linux*)
10688	    LD="${LD-ld} -m elf64_sparc"
10689	    ;;
10690	esac
10691	;;
10692    esac
10693  fi
10694  rm -rf conftest*
10695  ;;
10696
10697*-*-sco3.2v5*)
10698  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10699  SAVE_CFLAGS=$CFLAGS
10700  CFLAGS="$CFLAGS -belf"
10701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10702$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10703if ${lt_cv_cc_needs_belf+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  ac_ext=c
10707ac_cpp='$CPP $CPPFLAGS'
10708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710ac_compiler_gnu=$ac_cv_c_compiler_gnu
10711
10712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h.  */
10714
10715int
10716main ()
10717{
10718
10719  ;
10720  return 0;
10721}
10722_ACEOF
10723if ac_fn_c_try_link "$LINENO"; then :
10724  lt_cv_cc_needs_belf=yes
10725else
10726  lt_cv_cc_needs_belf=no
10727fi
10728rm -f core conftest.err conftest.$ac_objext \
10729    conftest$ac_exeext conftest.$ac_ext
10730     ac_ext=c
10731ac_cpp='$CPP $CPPFLAGS'
10732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734ac_compiler_gnu=$ac_cv_c_compiler_gnu
10735
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10738$as_echo "$lt_cv_cc_needs_belf" >&6; }
10739  if test yes != "$lt_cv_cc_needs_belf"; then
10740    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10741    CFLAGS=$SAVE_CFLAGS
10742  fi
10743  ;;
10744*-*solaris*)
10745  # Find out what ABI is being produced by ac_compile, and set linker
10746  # options accordingly.
10747  echo 'int i;' > conftest.$ac_ext
10748  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10749  (eval $ac_compile) 2>&5
10750  ac_status=$?
10751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10752  test $ac_status = 0; }; then
10753    case `/usr/bin/file conftest.o` in
10754    *64-bit*)
10755      case $lt_cv_prog_gnu_ld in
10756      yes*)
10757        case $host in
10758        i?86-*-solaris*|x86_64-*-solaris*)
10759          LD="${LD-ld} -m elf_x86_64"
10760          ;;
10761        sparc*-*-solaris*)
10762          LD="${LD-ld} -m elf64_sparc"
10763          ;;
10764        esac
10765        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10766        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10767          LD=${LD-ld}_sol2
10768        fi
10769        ;;
10770      *)
10771	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10772	  LD="${LD-ld} -64"
10773	fi
10774	;;
10775      esac
10776      ;;
10777    esac
10778  fi
10779  rm -rf conftest*
10780  ;;
10781esac
10782
10783need_locks=$enable_libtool_lock
10784
10785if test -n "$ac_tool_prefix"; then
10786  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10787set dummy ${ac_tool_prefix}mt; ac_word=$2
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789$as_echo_n "checking for $ac_word... " >&6; }
10790if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10791  $as_echo_n "(cached) " >&6
10792else
10793  if test -n "$MANIFEST_TOOL"; then
10794  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10795else
10796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $PATH
10798do
10799  IFS=$as_save_IFS
10800  test -z "$as_dir" && as_dir=.
10801    for ac_exec_ext in '' $ac_executable_extensions; do
10802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805    break 2
10806  fi
10807done
10808  done
10809IFS=$as_save_IFS
10810
10811fi
10812fi
10813MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10814if test -n "$MANIFEST_TOOL"; then
10815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10816$as_echo "$MANIFEST_TOOL" >&6; }
10817else
10818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819$as_echo "no" >&6; }
10820fi
10821
10822
10823fi
10824if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10825  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10826  # Extract the first word of "mt", so it can be a program name with args.
10827set dummy mt; ac_word=$2
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829$as_echo_n "checking for $ac_word... " >&6; }
10830if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833  if test -n "$ac_ct_MANIFEST_TOOL"; then
10834  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839  IFS=$as_save_IFS
10840  test -z "$as_dir" && as_dir=.
10841    for ac_exec_ext in '' $ac_executable_extensions; do
10842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845    break 2
10846  fi
10847done
10848  done
10849IFS=$as_save_IFS
10850
10851fi
10852fi
10853ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10854if test -n "$ac_ct_MANIFEST_TOOL"; then
10855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10856$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10857else
10858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
10860fi
10861
10862  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10863    MANIFEST_TOOL=":"
10864  else
10865    case $cross_compiling:$ac_tool_warned in
10866yes:)
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10869ac_tool_warned=yes ;;
10870esac
10871    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10872  fi
10873else
10874  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10875fi
10876
10877test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10879$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10880if ${lt_cv_path_mainfest_tool+:} false; then :
10881  $as_echo_n "(cached) " >&6
10882else
10883  lt_cv_path_mainfest_tool=no
10884  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10885  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10886  cat conftest.err >&5
10887  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10888    lt_cv_path_mainfest_tool=yes
10889  fi
10890  rm -f conftest*
10891fi
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10893$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10894if test yes != "$lt_cv_path_mainfest_tool"; then
10895  MANIFEST_TOOL=:
10896fi
10897
10898
10899
10900
10901
10902
10903  case $host_os in
10904    rhapsody* | darwin*)
10905    if test -n "$ac_tool_prefix"; then
10906  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10907set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909$as_echo_n "checking for $ac_word... " >&6; }
10910if ${ac_cv_prog_DSYMUTIL+:} false; then :
10911  $as_echo_n "(cached) " >&6
10912else
10913  if test -n "$DSYMUTIL"; then
10914  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10915else
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919  IFS=$as_save_IFS
10920  test -z "$as_dir" && as_dir=.
10921    for ac_exec_ext in '' $ac_executable_extensions; do
10922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925    break 2
10926  fi
10927done
10928  done
10929IFS=$as_save_IFS
10930
10931fi
10932fi
10933DSYMUTIL=$ac_cv_prog_DSYMUTIL
10934if test -n "$DSYMUTIL"; then
10935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10936$as_echo "$DSYMUTIL" >&6; }
10937else
10938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
10940fi
10941
10942
10943fi
10944if test -z "$ac_cv_prog_DSYMUTIL"; then
10945  ac_ct_DSYMUTIL=$DSYMUTIL
10946  # Extract the first word of "dsymutil", so it can be a program name with args.
10947set dummy dsymutil; ac_word=$2
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949$as_echo_n "checking for $ac_word... " >&6; }
10950if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953  if test -n "$ac_ct_DSYMUTIL"; then
10954  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959  IFS=$as_save_IFS
10960  test -z "$as_dir" && as_dir=.
10961    for ac_exec_ext in '' $ac_executable_extensions; do
10962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965    break 2
10966  fi
10967done
10968  done
10969IFS=$as_save_IFS
10970
10971fi
10972fi
10973ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10974if test -n "$ac_ct_DSYMUTIL"; then
10975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10976$as_echo "$ac_ct_DSYMUTIL" >&6; }
10977else
10978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979$as_echo "no" >&6; }
10980fi
10981
10982  if test "x$ac_ct_DSYMUTIL" = x; then
10983    DSYMUTIL=":"
10984  else
10985    case $cross_compiling:$ac_tool_warned in
10986yes:)
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10989ac_tool_warned=yes ;;
10990esac
10991    DSYMUTIL=$ac_ct_DSYMUTIL
10992  fi
10993else
10994  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10995fi
10996
10997    if test -n "$ac_tool_prefix"; then
10998  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10999set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001$as_echo_n "checking for $ac_word... " >&6; }
11002if ${ac_cv_prog_NMEDIT+:} false; then :
11003  $as_echo_n "(cached) " >&6
11004else
11005  if test -n "$NMEDIT"; then
11006  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11007else
11008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009for as_dir in $PATH
11010do
11011  IFS=$as_save_IFS
11012  test -z "$as_dir" && as_dir=.
11013    for ac_exec_ext in '' $ac_executable_extensions; do
11014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017    break 2
11018  fi
11019done
11020  done
11021IFS=$as_save_IFS
11022
11023fi
11024fi
11025NMEDIT=$ac_cv_prog_NMEDIT
11026if test -n "$NMEDIT"; then
11027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11028$as_echo "$NMEDIT" >&6; }
11029else
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031$as_echo "no" >&6; }
11032fi
11033
11034
11035fi
11036if test -z "$ac_cv_prog_NMEDIT"; then
11037  ac_ct_NMEDIT=$NMEDIT
11038  # Extract the first word of "nmedit", so it can be a program name with args.
11039set dummy nmedit; ac_word=$2
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041$as_echo_n "checking for $ac_word... " >&6; }
11042if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  if test -n "$ac_ct_NMEDIT"; then
11046  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11047else
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051  IFS=$as_save_IFS
11052  test -z "$as_dir" && as_dir=.
11053    for ac_exec_ext in '' $ac_executable_extensions; do
11054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057    break 2
11058  fi
11059done
11060  done
11061IFS=$as_save_IFS
11062
11063fi
11064fi
11065ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11066if test -n "$ac_ct_NMEDIT"; then
11067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11068$as_echo "$ac_ct_NMEDIT" >&6; }
11069else
11070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
11072fi
11073
11074  if test "x$ac_ct_NMEDIT" = x; then
11075    NMEDIT=":"
11076  else
11077    case $cross_compiling:$ac_tool_warned in
11078yes:)
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11081ac_tool_warned=yes ;;
11082esac
11083    NMEDIT=$ac_ct_NMEDIT
11084  fi
11085else
11086  NMEDIT="$ac_cv_prog_NMEDIT"
11087fi
11088
11089    if test -n "$ac_tool_prefix"; then
11090  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11091set dummy ${ac_tool_prefix}lipo; ac_word=$2
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if ${ac_cv_prog_LIPO+:} false; then :
11095  $as_echo_n "(cached) " >&6
11096else
11097  if test -n "$LIPO"; then
11098  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11099else
11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103  IFS=$as_save_IFS
11104  test -z "$as_dir" && as_dir=.
11105    for ac_exec_ext in '' $ac_executable_extensions; do
11106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11107    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109    break 2
11110  fi
11111done
11112  done
11113IFS=$as_save_IFS
11114
11115fi
11116fi
11117LIPO=$ac_cv_prog_LIPO
11118if test -n "$LIPO"; then
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11120$as_echo "$LIPO" >&6; }
11121else
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
11124fi
11125
11126
11127fi
11128if test -z "$ac_cv_prog_LIPO"; then
11129  ac_ct_LIPO=$LIPO
11130  # Extract the first word of "lipo", so it can be a program name with args.
11131set dummy lipo; ac_word=$2
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133$as_echo_n "checking for $ac_word... " >&6; }
11134if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137  if test -n "$ac_ct_LIPO"; then
11138  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11139else
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143  IFS=$as_save_IFS
11144  test -z "$as_dir" && as_dir=.
11145    for ac_exec_ext in '' $ac_executable_extensions; do
11146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147    ac_cv_prog_ac_ct_LIPO="lipo"
11148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149    break 2
11150  fi
11151done
11152  done
11153IFS=$as_save_IFS
11154
11155fi
11156fi
11157ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11158if test -n "$ac_ct_LIPO"; then
11159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11160$as_echo "$ac_ct_LIPO" >&6; }
11161else
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164fi
11165
11166  if test "x$ac_ct_LIPO" = x; then
11167    LIPO=":"
11168  else
11169    case $cross_compiling:$ac_tool_warned in
11170yes:)
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11173ac_tool_warned=yes ;;
11174esac
11175    LIPO=$ac_ct_LIPO
11176  fi
11177else
11178  LIPO="$ac_cv_prog_LIPO"
11179fi
11180
11181    if test -n "$ac_tool_prefix"; then
11182  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11183set dummy ${ac_tool_prefix}otool; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if ${ac_cv_prog_OTOOL+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  if test -n "$OTOOL"; then
11190  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195  IFS=$as_save_IFS
11196  test -z "$as_dir" && as_dir=.
11197    for ac_exec_ext in '' $ac_executable_extensions; do
11198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201    break 2
11202  fi
11203done
11204  done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209OTOOL=$ac_cv_prog_OTOOL
11210if test -n "$OTOOL"; then
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11212$as_echo "$OTOOL" >&6; }
11213else
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218
11219fi
11220if test -z "$ac_cv_prog_OTOOL"; then
11221  ac_ct_OTOOL=$OTOOL
11222  # Extract the first word of "otool", so it can be a program name with args.
11223set dummy otool; ac_word=$2
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11227  $as_echo_n "(cached) " >&6
11228else
11229  if test -n "$ac_ct_OTOOL"; then
11230  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235  IFS=$as_save_IFS
11236  test -z "$as_dir" && as_dir=.
11237    for ac_exec_ext in '' $ac_executable_extensions; do
11238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239    ac_cv_prog_ac_ct_OTOOL="otool"
11240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241    break 2
11242  fi
11243done
11244  done
11245IFS=$as_save_IFS
11246
11247fi
11248fi
11249ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11250if test -n "$ac_ct_OTOOL"; then
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11252$as_echo "$ac_ct_OTOOL" >&6; }
11253else
11254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
11256fi
11257
11258  if test "x$ac_ct_OTOOL" = x; then
11259    OTOOL=":"
11260  else
11261    case $cross_compiling:$ac_tool_warned in
11262yes:)
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265ac_tool_warned=yes ;;
11266esac
11267    OTOOL=$ac_ct_OTOOL
11268  fi
11269else
11270  OTOOL="$ac_cv_prog_OTOOL"
11271fi
11272
11273    if test -n "$ac_tool_prefix"; then
11274  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11275set dummy ${ac_tool_prefix}otool64; ac_word=$2
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277$as_echo_n "checking for $ac_word... " >&6; }
11278if ${ac_cv_prog_OTOOL64+:} false; then :
11279  $as_echo_n "(cached) " >&6
11280else
11281  if test -n "$OTOOL64"; then
11282  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11283else
11284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $PATH
11286do
11287  IFS=$as_save_IFS
11288  test -z "$as_dir" && as_dir=.
11289    for ac_exec_ext in '' $ac_executable_extensions; do
11290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11291    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293    break 2
11294  fi
11295done
11296  done
11297IFS=$as_save_IFS
11298
11299fi
11300fi
11301OTOOL64=$ac_cv_prog_OTOOL64
11302if test -n "$OTOOL64"; then
11303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11304$as_echo "$OTOOL64" >&6; }
11305else
11306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
11308fi
11309
11310
11311fi
11312if test -z "$ac_cv_prog_OTOOL64"; then
11313  ac_ct_OTOOL64=$OTOOL64
11314  # Extract the first word of "otool64", so it can be a program name with args.
11315set dummy otool64; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  if test -n "$ac_ct_OTOOL64"; then
11322  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327  IFS=$as_save_IFS
11328  test -z "$as_dir" && as_dir=.
11329    for ac_exec_ext in '' $ac_executable_extensions; do
11330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331    ac_cv_prog_ac_ct_OTOOL64="otool64"
11332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333    break 2
11334  fi
11335done
11336  done
11337IFS=$as_save_IFS
11338
11339fi
11340fi
11341ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11342if test -n "$ac_ct_OTOOL64"; then
11343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11344$as_echo "$ac_ct_OTOOL64" >&6; }
11345else
11346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
11348fi
11349
11350  if test "x$ac_ct_OTOOL64" = x; then
11351    OTOOL64=":"
11352  else
11353    case $cross_compiling:$ac_tool_warned in
11354yes:)
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11357ac_tool_warned=yes ;;
11358esac
11359    OTOOL64=$ac_ct_OTOOL64
11360  fi
11361else
11362  OTOOL64="$ac_cv_prog_OTOOL64"
11363fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11392$as_echo_n "checking for -single_module linker flag... " >&6; }
11393if ${lt_cv_apple_cc_single_mod+:} false; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  lt_cv_apple_cc_single_mod=no
11397      if test -z "$LT_MULTI_MODULE"; then
11398	# By default we will add the -single_module flag. You can override
11399	# by either setting the environment variable LT_MULTI_MODULE
11400	# non-empty at configure time, or by adding -multi_module to the
11401	# link flags.
11402	rm -rf libconftest.dylib*
11403	echo "int foo(void){return 1;}" > conftest.c
11404	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11405-dynamiclib -Wl,-single_module conftest.c" >&5
11406	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11407	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11408        _lt_result=$?
11409	# If there is a non-empty error log, and "single_module"
11410	# appears in it, assume the flag caused a linker warning
11411        if test -s conftest.err && $GREP single_module conftest.err; then
11412	  cat conftest.err >&5
11413	# Otherwise, if the output was created with a 0 exit code from
11414	# the compiler, it worked.
11415	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11416	  lt_cv_apple_cc_single_mod=yes
11417	else
11418	  cat conftest.err >&5
11419	fi
11420	rm -rf libconftest.dylib*
11421	rm -f conftest.*
11422      fi
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11425$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11426
11427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11428$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11429if ${lt_cv_ld_exported_symbols_list+:} false; then :
11430  $as_echo_n "(cached) " >&6
11431else
11432  lt_cv_ld_exported_symbols_list=no
11433      save_LDFLAGS=$LDFLAGS
11434      echo "_main" > conftest.sym
11435      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437/* end confdefs.h.  */
11438
11439int
11440main ()
11441{
11442
11443  ;
11444  return 0;
11445}
11446_ACEOF
11447if ac_fn_c_try_link "$LINENO"; then :
11448  lt_cv_ld_exported_symbols_list=yes
11449else
11450  lt_cv_ld_exported_symbols_list=no
11451fi
11452rm -f core conftest.err conftest.$ac_objext \
11453    conftest$ac_exeext conftest.$ac_ext
11454	LDFLAGS=$save_LDFLAGS
11455
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11458$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11459
11460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11461$as_echo_n "checking for -force_load linker flag... " >&6; }
11462if ${lt_cv_ld_force_load+:} false; then :
11463  $as_echo_n "(cached) " >&6
11464else
11465  lt_cv_ld_force_load=no
11466      cat > conftest.c << _LT_EOF
11467int forced_loaded() { return 2;}
11468_LT_EOF
11469      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11470      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11471      echo "$AR cr libconftest.a conftest.o" >&5
11472      $AR cr libconftest.a conftest.o 2>&5
11473      echo "$RANLIB libconftest.a" >&5
11474      $RANLIB libconftest.a 2>&5
11475      cat > conftest.c << _LT_EOF
11476int main() { return 0;}
11477_LT_EOF
11478      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11479      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11480      _lt_result=$?
11481      if test -s conftest.err && $GREP force_load conftest.err; then
11482	cat conftest.err >&5
11483      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11484	lt_cv_ld_force_load=yes
11485      else
11486	cat conftest.err >&5
11487      fi
11488        rm -f conftest.err libconftest.a conftest conftest.c
11489        rm -rf conftest.dSYM
11490
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11493$as_echo "$lt_cv_ld_force_load" >&6; }
11494    case $host_os in
11495    rhapsody* | darwin1.[012])
11496      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11497    darwin1.*)
11498      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11499    darwin*) # darwin 5.x on
11500      # if running on 10.5 or later, the deployment target defaults
11501      # to the OS version, if on x86, and 10.4, the deployment
11502      # target defaults to 10.4. Don't you love it?
11503      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11504	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11505	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11506	10.[012][,.]*)
11507	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11508	10.*)
11509	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11510      esac
11511    ;;
11512  esac
11513    if test yes = "$lt_cv_apple_cc_single_mod"; then
11514      _lt_dar_single_mod='$single_module'
11515    fi
11516    if test yes = "$lt_cv_ld_exported_symbols_list"; then
11517      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11518    else
11519      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11520    fi
11521    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11522      _lt_dsymutil='~$DSYMUTIL $lib || :'
11523    else
11524      _lt_dsymutil=
11525    fi
11526    ;;
11527  esac
11528
11529# func_munge_path_list VARIABLE PATH
11530# -----------------------------------
11531# VARIABLE is name of variable containing _space_ separated list of
11532# directories to be munged by the contents of PATH, which is string
11533# having a format:
11534# "DIR[:DIR]:"
11535#       string "DIR[ DIR]" will be prepended to VARIABLE
11536# ":DIR[:DIR]"
11537#       string "DIR[ DIR]" will be appended to VARIABLE
11538# "DIRP[:DIRP]::[DIRA:]DIRA"
11539#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11540#       "DIRA[ DIRA]" will be appended to VARIABLE
11541# "DIR[:DIR]"
11542#       VARIABLE will be replaced by "DIR[ DIR]"
11543func_munge_path_list ()
11544{
11545    case x$2 in
11546    x)
11547        ;;
11548    *:)
11549        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11550        ;;
11551    x:*)
11552        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11553        ;;
11554    *::*)
11555        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11556        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11557        ;;
11558    *)
11559        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11560        ;;
11561    esac
11562}
11563
11564for ac_header in dlfcn.h
11565do :
11566  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11567"
11568if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11569  cat >>confdefs.h <<_ACEOF
11570#define HAVE_DLFCN_H 1
11571_ACEOF
11572
11573fi
11574
11575done
11576
11577
11578
11579
11580
11581# Set options
11582
11583
11584
11585
11586
11587            # Check whether --enable-shared was given.
11588if test "${enable_shared+set}" = set; then :
11589  enableval=$enable_shared; p=${PACKAGE-default}
11590    case $enableval in
11591    yes) enable_shared=yes ;;
11592    no) enable_shared=no ;;
11593    *)
11594      enable_shared=no
11595      # Look at the argument we got.  We use all the common list separators.
11596      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11597      for pkg in $enableval; do
11598	IFS=$lt_save_ifs
11599	if test "X$pkg" = "X$p"; then
11600	  enable_shared=yes
11601	fi
11602      done
11603      IFS=$lt_save_ifs
11604      ;;
11605    esac
11606else
11607  enable_shared=yes
11608fi
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618  # Check whether --enable-static was given.
11619if test "${enable_static+set}" = set; then :
11620  enableval=$enable_static; p=${PACKAGE-default}
11621    case $enableval in
11622    yes) enable_static=yes ;;
11623    no) enable_static=no ;;
11624    *)
11625     enable_static=no
11626      # Look at the argument we got.  We use all the common list separators.
11627      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11628      for pkg in $enableval; do
11629	IFS=$lt_save_ifs
11630	if test "X$pkg" = "X$p"; then
11631	  enable_static=yes
11632	fi
11633      done
11634      IFS=$lt_save_ifs
11635      ;;
11636    esac
11637else
11638  enable_static=yes
11639fi
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650# Check whether --with-pic was given.
11651if test "${with_pic+set}" = set; then :
11652  withval=$with_pic; lt_p=${PACKAGE-default}
11653    case $withval in
11654    yes|no) pic_mode=$withval ;;
11655    *)
11656      pic_mode=default
11657      # Look at the argument we got.  We use all the common list separators.
11658      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11659      for lt_pkg in $withval; do
11660	IFS=$lt_save_ifs
11661	if test "X$lt_pkg" = "X$lt_p"; then
11662	  pic_mode=yes
11663	fi
11664      done
11665      IFS=$lt_save_ifs
11666      ;;
11667    esac
11668else
11669  pic_mode=default
11670fi
11671
11672
11673
11674
11675
11676
11677
11678
11679  # Check whether --enable-fast-install was given.
11680if test "${enable_fast_install+set}" = set; then :
11681  enableval=$enable_fast_install; p=${PACKAGE-default}
11682    case $enableval in
11683    yes) enable_fast_install=yes ;;
11684    no) enable_fast_install=no ;;
11685    *)
11686      enable_fast_install=no
11687      # Look at the argument we got.  We use all the common list separators.
11688      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11689      for pkg in $enableval; do
11690	IFS=$lt_save_ifs
11691	if test "X$pkg" = "X$p"; then
11692	  enable_fast_install=yes
11693	fi
11694      done
11695      IFS=$lt_save_ifs
11696      ;;
11697    esac
11698else
11699  enable_fast_install=yes
11700fi
11701
11702
11703
11704
11705
11706
11707
11708
11709  shared_archive_member_spec=
11710case $host,$enable_shared in
11711power*-*-aix[5-9]*,yes)
11712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11713$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11714
11715# Check whether --with-aix-soname was given.
11716if test "${with_aix_soname+set}" = set; then :
11717  withval=$with_aix_soname; case $withval in
11718    aix|svr4|both)
11719      ;;
11720    *)
11721      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11722      ;;
11723    esac
11724    lt_cv_with_aix_soname=$with_aix_soname
11725else
11726  if ${lt_cv_with_aix_soname+:} false; then :
11727  $as_echo_n "(cached) " >&6
11728else
11729  lt_cv_with_aix_soname=aix
11730fi
11731
11732    with_aix_soname=$lt_cv_with_aix_soname
11733fi
11734
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11736$as_echo "$with_aix_soname" >&6; }
11737  if test aix != "$with_aix_soname"; then
11738    # For the AIX way of multilib, we name the shared archive member
11739    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11740    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11741    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11742    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11743    if test 64 = "${OBJECT_MODE-32}"; then
11744      shared_archive_member_spec=shr_64
11745    else
11746      shared_archive_member_spec=shr
11747    fi
11748  fi
11749  ;;
11750*)
11751  with_aix_soname=aix
11752  ;;
11753esac
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764# This can be used to rebuild libtool when needed
11765LIBTOOL_DEPS=$ltmain
11766
11767# Always use our own libtool.
11768LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799test -z "$LN_S" && LN_S="ln -s"
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814if test -n "${ZSH_VERSION+set}"; then
11815   setopt NO_GLOB_SUBST
11816fi
11817
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11819$as_echo_n "checking for objdir... " >&6; }
11820if ${lt_cv_objdir+:} false; then :
11821  $as_echo_n "(cached) " >&6
11822else
11823  rm -f .libs 2>/dev/null
11824mkdir .libs 2>/dev/null
11825if test -d .libs; then
11826  lt_cv_objdir=.libs
11827else
11828  # MS-DOS does not allow filenames that begin with a dot.
11829  lt_cv_objdir=_libs
11830fi
11831rmdir .libs 2>/dev/null
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11834$as_echo "$lt_cv_objdir" >&6; }
11835objdir=$lt_cv_objdir
11836
11837
11838
11839
11840
11841cat >>confdefs.h <<_ACEOF
11842#define LT_OBJDIR "$lt_cv_objdir/"
11843_ACEOF
11844
11845
11846
11847
11848case $host_os in
11849aix3*)
11850  # AIX sometimes has problems with the GCC collect2 program.  For some
11851  # reason, if we set the COLLECT_NAMES environment variable, the problems
11852  # vanish in a puff of smoke.
11853  if test set != "${COLLECT_NAMES+set}"; then
11854    COLLECT_NAMES=
11855    export COLLECT_NAMES
11856  fi
11857  ;;
11858esac
11859
11860# Global variables:
11861ofile=libtool
11862can_build_shared=yes
11863
11864# All known linkers require a '.a' archive for static linking (except MSVC,
11865# which needs '.lib').
11866libext=a
11867
11868with_gnu_ld=$lt_cv_prog_gnu_ld
11869
11870old_CC=$CC
11871old_CFLAGS=$CFLAGS
11872
11873# Set sane defaults for various variables
11874test -z "$CC" && CC=cc
11875test -z "$LTCC" && LTCC=$CC
11876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11877test -z "$LD" && LD=ld
11878test -z "$ac_objext" && ac_objext=o
11879
11880func_cc_basename $compiler
11881cc_basename=$func_cc_basename_result
11882
11883
11884# Only perform the check for file, if the check method requires it
11885test -z "$MAGIC_CMD" && MAGIC_CMD=file
11886case $deplibs_check_method in
11887file_magic*)
11888  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11890$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11891if ${lt_cv_path_MAGIC_CMD+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  case $MAGIC_CMD in
11895[\\/*] |  ?:[\\/]*)
11896  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11897  ;;
11898*)
11899  lt_save_MAGIC_CMD=$MAGIC_CMD
11900  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11901  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11902  for ac_dir in $ac_dummy; do
11903    IFS=$lt_save_ifs
11904    test -z "$ac_dir" && ac_dir=.
11905    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11906      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11907      if test -n "$file_magic_test_file"; then
11908	case $deplibs_check_method in
11909	"file_magic "*)
11910	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11911	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11912	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11913	    $EGREP "$file_magic_regex" > /dev/null; then
11914	    :
11915	  else
11916	    cat <<_LT_EOF 1>&2
11917
11918*** Warning: the command libtool uses to detect shared libraries,
11919*** $file_magic_cmd, produces output that libtool cannot recognize.
11920*** The result is that libtool may fail to recognize shared libraries
11921*** as such.  This will affect the creation of libtool libraries that
11922*** depend on shared libraries, but programs linked with such libtool
11923*** libraries will work regardless of this problem.  Nevertheless, you
11924*** may want to report the problem to your system manager and/or to
11925*** bug-libtool@gnu.org
11926
11927_LT_EOF
11928	  fi ;;
11929	esac
11930      fi
11931      break
11932    fi
11933  done
11934  IFS=$lt_save_ifs
11935  MAGIC_CMD=$lt_save_MAGIC_CMD
11936  ;;
11937esac
11938fi
11939
11940MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11941if test -n "$MAGIC_CMD"; then
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11943$as_echo "$MAGIC_CMD" >&6; }
11944else
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946$as_echo "no" >&6; }
11947fi
11948
11949
11950
11951
11952
11953if test -z "$lt_cv_path_MAGIC_CMD"; then
11954  if test -n "$ac_tool_prefix"; then
11955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11956$as_echo_n "checking for file... " >&6; }
11957if ${lt_cv_path_MAGIC_CMD+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  case $MAGIC_CMD in
11961[\\/*] |  ?:[\\/]*)
11962  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11963  ;;
11964*)
11965  lt_save_MAGIC_CMD=$MAGIC_CMD
11966  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11967  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11968  for ac_dir in $ac_dummy; do
11969    IFS=$lt_save_ifs
11970    test -z "$ac_dir" && ac_dir=.
11971    if test -f "$ac_dir/file"; then
11972      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11973      if test -n "$file_magic_test_file"; then
11974	case $deplibs_check_method in
11975	"file_magic "*)
11976	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11977	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11978	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11979	    $EGREP "$file_magic_regex" > /dev/null; then
11980	    :
11981	  else
11982	    cat <<_LT_EOF 1>&2
11983
11984*** Warning: the command libtool uses to detect shared libraries,
11985*** $file_magic_cmd, produces output that libtool cannot recognize.
11986*** The result is that libtool may fail to recognize shared libraries
11987*** as such.  This will affect the creation of libtool libraries that
11988*** depend on shared libraries, but programs linked with such libtool
11989*** libraries will work regardless of this problem.  Nevertheless, you
11990*** may want to report the problem to your system manager and/or to
11991*** bug-libtool@gnu.org
11992
11993_LT_EOF
11994	  fi ;;
11995	esac
11996      fi
11997      break
11998    fi
11999  done
12000  IFS=$lt_save_ifs
12001  MAGIC_CMD=$lt_save_MAGIC_CMD
12002  ;;
12003esac
12004fi
12005
12006MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12007if test -n "$MAGIC_CMD"; then
12008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12009$as_echo "$MAGIC_CMD" >&6; }
12010else
12011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012$as_echo "no" >&6; }
12013fi
12014
12015
12016  else
12017    MAGIC_CMD=:
12018  fi
12019fi
12020
12021  fi
12022  ;;
12023esac
12024
12025# Use C for the default configuration in the libtool script
12026
12027lt_save_CC=$CC
12028ac_ext=c
12029ac_cpp='$CPP $CPPFLAGS'
12030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033
12034
12035# Source file extension for C test sources.
12036ac_ext=c
12037
12038# Object file extension for compiled C test sources.
12039objext=o
12040objext=$objext
12041
12042# Code to be used in simple compile tests
12043lt_simple_compile_test_code="int some_variable = 0;"
12044
12045# Code to be used in simple link tests
12046lt_simple_link_test_code='int main(){return(0);}'
12047
12048
12049
12050
12051
12052
12053
12054# If no C compiler was specified, use CC.
12055LTCC=${LTCC-"$CC"}
12056
12057# If no C compiler flags were specified, use CFLAGS.
12058LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12059
12060# Allow CC to be a program name with arguments.
12061compiler=$CC
12062
12063# Save the default compiler, since it gets overwritten when the other
12064# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12065compiler_DEFAULT=$CC
12066
12067# save warnings/boilerplate of simple test code
12068ac_outfile=conftest.$ac_objext
12069echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12071_lt_compiler_boilerplate=`cat conftest.err`
12072$RM conftest*
12073
12074ac_outfile=conftest.$ac_objext
12075echo "$lt_simple_link_test_code" >conftest.$ac_ext
12076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12077_lt_linker_boilerplate=`cat conftest.err`
12078$RM -r conftest*
12079
12080
12081## CAVEAT EMPTOR:
12082## There is no encapsulation within the following macros, do not change
12083## the running order or otherwise move them around unless you know exactly
12084## what you are doing...
12085if test -n "$compiler"; then
12086
12087lt_prog_compiler_no_builtin_flag=
12088
12089if test yes = "$GCC"; then
12090  case $cc_basename in
12091  nvcc*)
12092    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12093  *)
12094    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12095  esac
12096
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12098$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12099if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12100  $as_echo_n "(cached) " >&6
12101else
12102  lt_cv_prog_compiler_rtti_exceptions=no
12103   ac_outfile=conftest.$ac_objext
12104   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12105   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12106   # Insert the option either (1) after the last *FLAGS variable, or
12107   # (2) before a word containing "conftest.", or (3) at the end.
12108   # Note that $ac_compile itself does not contain backslashes and begins
12109   # with a dollar sign (not a hyphen), so the echo should work correctly.
12110   # The option is referenced via a variable to avoid confusing sed.
12111   lt_compile=`echo "$ac_compile" | $SED \
12112   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12113   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12114   -e 's:$: $lt_compiler_flag:'`
12115   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12116   (eval "$lt_compile" 2>conftest.err)
12117   ac_status=$?
12118   cat conftest.err >&5
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   if (exit $ac_status) && test -s "$ac_outfile"; then
12121     # The compiler can only warn and ignore the option if not recognized
12122     # So say no if there are warnings other than the usual output.
12123     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12124     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12125     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12126       lt_cv_prog_compiler_rtti_exceptions=yes
12127     fi
12128   fi
12129   $RM conftest*
12130
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12133$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12134
12135if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12136    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12137else
12138    :
12139fi
12140
12141fi
12142
12143
12144
12145
12146
12147
12148  lt_prog_compiler_wl=
12149lt_prog_compiler_pic=
12150lt_prog_compiler_static=
12151
12152
12153  if test yes = "$GCC"; then
12154    lt_prog_compiler_wl='-Wl,'
12155    lt_prog_compiler_static='-static'
12156
12157    case $host_os in
12158      aix*)
12159      # All AIX code is PIC.
12160      if test ia64 = "$host_cpu"; then
12161	# AIX 5 now supports IA64 processor
12162	lt_prog_compiler_static='-Bstatic'
12163      fi
12164      lt_prog_compiler_pic='-fPIC'
12165      ;;
12166
12167    amigaos*)
12168      case $host_cpu in
12169      powerpc)
12170            # see comment about AmigaOS4 .so support
12171            lt_prog_compiler_pic='-fPIC'
12172        ;;
12173      m68k)
12174            # FIXME: we need at least 68020 code to build shared libraries, but
12175            # adding the '-m68020' flag to GCC prevents building anything better,
12176            # like '-m68040'.
12177            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12178        ;;
12179      esac
12180      ;;
12181
12182    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12183      # PIC is the default for these OSes.
12184      ;;
12185
12186    mingw* | cygwin* | pw32* | os2* | cegcc*)
12187      # This hack is so that the source file can tell whether it is being
12188      # built for inclusion in a dll (and should export symbols for example).
12189      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12190      # (--disable-auto-import) libraries
12191      lt_prog_compiler_pic='-DDLL_EXPORT'
12192      case $host_os in
12193      os2*)
12194	lt_prog_compiler_static='$wl-static'
12195	;;
12196      esac
12197      ;;
12198
12199    darwin* | rhapsody*)
12200      # PIC is the default on this platform
12201      # Common symbols not allowed in MH_DYLIB files
12202      lt_prog_compiler_pic='-fno-common'
12203      ;;
12204
12205    haiku*)
12206      # PIC is the default for Haiku.
12207      # The "-static" flag exists, but is broken.
12208      lt_prog_compiler_static=
12209      ;;
12210
12211    hpux*)
12212      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12213      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12214      # sets the default TLS model and affects inlining.
12215      case $host_cpu in
12216      hppa*64*)
12217	# +Z the default
12218	;;
12219      *)
12220	lt_prog_compiler_pic='-fPIC'
12221	;;
12222      esac
12223      ;;
12224
12225    interix[3-9]*)
12226      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12227      # Instead, we relocate shared libraries at runtime.
12228      ;;
12229
12230    msdosdjgpp*)
12231      # Just because we use GCC doesn't mean we suddenly get shared libraries
12232      # on systems that don't support them.
12233      lt_prog_compiler_can_build_shared=no
12234      enable_shared=no
12235      ;;
12236
12237    *nto* | *qnx*)
12238      # QNX uses GNU C++, but need to define -shared option too, otherwise
12239      # it will coredump.
12240      lt_prog_compiler_pic='-fPIC -shared'
12241      ;;
12242
12243    sysv4*MP*)
12244      if test -d /usr/nec; then
12245	lt_prog_compiler_pic=-Kconform_pic
12246      fi
12247      ;;
12248
12249    *)
12250      lt_prog_compiler_pic='-fPIC'
12251      ;;
12252    esac
12253
12254    case $cc_basename in
12255    nvcc*) # Cuda Compiler Driver 2.2
12256      lt_prog_compiler_wl='-Xlinker '
12257      if test -n "$lt_prog_compiler_pic"; then
12258        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12259      fi
12260      ;;
12261    esac
12262  else
12263    # PORTME Check for flag to pass linker flags through the system compiler.
12264    case $host_os in
12265    aix*)
12266      lt_prog_compiler_wl='-Wl,'
12267      if test ia64 = "$host_cpu"; then
12268	# AIX 5 now supports IA64 processor
12269	lt_prog_compiler_static='-Bstatic'
12270      else
12271	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12272      fi
12273      ;;
12274
12275    darwin* | rhapsody*)
12276      # PIC is the default on this platform
12277      # Common symbols not allowed in MH_DYLIB files
12278      lt_prog_compiler_pic='-fno-common'
12279      case $cc_basename in
12280      nagfor*)
12281        # NAG Fortran compiler
12282        lt_prog_compiler_wl='-Wl,-Wl,,'
12283        lt_prog_compiler_pic='-PIC'
12284        lt_prog_compiler_static='-Bstatic'
12285        ;;
12286      esac
12287      ;;
12288
12289    mingw* | cygwin* | pw32* | os2* | cegcc*)
12290      # This hack is so that the source file can tell whether it is being
12291      # built for inclusion in a dll (and should export symbols for example).
12292      lt_prog_compiler_pic='-DDLL_EXPORT'
12293      case $host_os in
12294      os2*)
12295	lt_prog_compiler_static='$wl-static'
12296	;;
12297      esac
12298      ;;
12299
12300    hpux9* | hpux10* | hpux11*)
12301      lt_prog_compiler_wl='-Wl,'
12302      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12303      # not for PA HP-UX.
12304      case $host_cpu in
12305      hppa*64*|ia64*)
12306	# +Z the default
12307	;;
12308      *)
12309	lt_prog_compiler_pic='+Z'
12310	;;
12311      esac
12312      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12313      lt_prog_compiler_static='$wl-a ${wl}archive'
12314      ;;
12315
12316    irix5* | irix6* | nonstopux*)
12317      lt_prog_compiler_wl='-Wl,'
12318      # PIC (with -KPIC) is the default.
12319      lt_prog_compiler_static='-non_shared'
12320      ;;
12321
12322    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12323      case $cc_basename in
12324      # old Intel for x86_64, which still supported -KPIC.
12325      ecc*)
12326	lt_prog_compiler_wl='-Wl,'
12327	lt_prog_compiler_pic='-KPIC'
12328	lt_prog_compiler_static='-static'
12329        ;;
12330      # flang / f18. f95 an alias for gfortran or flang on Debian
12331      flang* | f18* | f95*)
12332	lt_prog_compiler_wl='-Wl,'
12333	lt_prog_compiler_pic='-fPIC'
12334	lt_prog_compiler_static='-static'
12335        ;;
12336      # icc used to be incompatible with GCC.
12337      # ICC 10 doesn't accept -KPIC any more.
12338      icc* | ifort*)
12339	lt_prog_compiler_wl='-Wl,'
12340	lt_prog_compiler_pic='-fPIC'
12341	lt_prog_compiler_static='-static'
12342        ;;
12343      # Lahey Fortran 8.1.
12344      lf95*)
12345	lt_prog_compiler_wl='-Wl,'
12346	lt_prog_compiler_pic='--shared'
12347	lt_prog_compiler_static='--static'
12348	;;
12349      nagfor*)
12350	# NAG Fortran compiler
12351	lt_prog_compiler_wl='-Wl,-Wl,,'
12352	lt_prog_compiler_pic='-PIC'
12353	lt_prog_compiler_static='-Bstatic'
12354	;;
12355      tcc*)
12356	# Fabrice Bellard et al's Tiny C Compiler
12357	lt_prog_compiler_wl='-Wl,'
12358	lt_prog_compiler_pic='-fPIC'
12359	lt_prog_compiler_static='-static'
12360	;;
12361      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12362        # Portland Group compilers (*not* the Pentium gcc compiler,
12363	# which looks to be a dead project)
12364	lt_prog_compiler_wl='-Wl,'
12365	lt_prog_compiler_pic='-fpic'
12366	lt_prog_compiler_static='-Bstatic'
12367        ;;
12368      ccc*)
12369        lt_prog_compiler_wl='-Wl,'
12370        # All Alpha code is PIC.
12371        lt_prog_compiler_static='-non_shared'
12372        ;;
12373      xl* | bgxl* | bgf* | mpixl*)
12374	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12375	lt_prog_compiler_wl='-Wl,'
12376	lt_prog_compiler_pic='-qpic'
12377	lt_prog_compiler_static='-qstaticlink'
12378	;;
12379      *)
12380	case `$CC -V 2>&1 | sed 5q` in
12381	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12382	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12383	  lt_prog_compiler_pic='-KPIC'
12384	  lt_prog_compiler_static='-Bstatic'
12385	  lt_prog_compiler_wl=''
12386	  ;;
12387	*Sun\ F* | *Sun*Fortran*)
12388	  lt_prog_compiler_pic='-KPIC'
12389	  lt_prog_compiler_static='-Bstatic'
12390	  lt_prog_compiler_wl='-Qoption ld '
12391	  ;;
12392	*Sun\ C*)
12393	  # Sun C 5.9
12394	  lt_prog_compiler_pic='-KPIC'
12395	  lt_prog_compiler_static='-Bstatic'
12396	  lt_prog_compiler_wl='-Wl,'
12397	  ;;
12398        *Intel*\ [CF]*Compiler*)
12399	  lt_prog_compiler_wl='-Wl,'
12400	  lt_prog_compiler_pic='-fPIC'
12401	  lt_prog_compiler_static='-static'
12402	  ;;
12403	*Portland\ Group*)
12404	  lt_prog_compiler_wl='-Wl,'
12405	  lt_prog_compiler_pic='-fpic'
12406	  lt_prog_compiler_static='-Bstatic'
12407	  ;;
12408	esac
12409	;;
12410      esac
12411      ;;
12412
12413    newsos6)
12414      lt_prog_compiler_pic='-KPIC'
12415      lt_prog_compiler_static='-Bstatic'
12416      ;;
12417
12418    *nto* | *qnx*)
12419      # QNX uses GNU C++, but need to define -shared option too, otherwise
12420      # it will coredump.
12421      lt_prog_compiler_pic='-fPIC -shared'
12422      ;;
12423
12424    osf3* | osf4* | osf5*)
12425      lt_prog_compiler_wl='-Wl,'
12426      # All OSF/1 code is PIC.
12427      lt_prog_compiler_static='-non_shared'
12428      ;;
12429
12430    rdos*)
12431      lt_prog_compiler_static='-non_shared'
12432      ;;
12433
12434    solaris*)
12435      lt_prog_compiler_pic='-KPIC'
12436      lt_prog_compiler_static='-Bstatic'
12437      case $cc_basename in
12438      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12439	lt_prog_compiler_wl='-Qoption ld ';;
12440      *)
12441	lt_prog_compiler_wl='-Wl,';;
12442      esac
12443      ;;
12444
12445    sunos4*)
12446      lt_prog_compiler_wl='-Qoption ld '
12447      lt_prog_compiler_pic='-PIC'
12448      lt_prog_compiler_static='-Bstatic'
12449      ;;
12450
12451    sysv4 | sysv4.2uw2* | sysv4.3*)
12452      lt_prog_compiler_wl='-Wl,'
12453      lt_prog_compiler_pic='-KPIC'
12454      lt_prog_compiler_static='-Bstatic'
12455      ;;
12456
12457    sysv4*MP*)
12458      if test -d /usr/nec; then
12459	lt_prog_compiler_pic='-Kconform_pic'
12460	lt_prog_compiler_static='-Bstatic'
12461      fi
12462      ;;
12463
12464    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12465      lt_prog_compiler_wl='-Wl,'
12466      lt_prog_compiler_pic='-KPIC'
12467      lt_prog_compiler_static='-Bstatic'
12468      ;;
12469
12470    unicos*)
12471      lt_prog_compiler_wl='-Wl,'
12472      lt_prog_compiler_can_build_shared=no
12473      ;;
12474
12475    uts4*)
12476      lt_prog_compiler_pic='-pic'
12477      lt_prog_compiler_static='-Bstatic'
12478      ;;
12479
12480    *)
12481      lt_prog_compiler_can_build_shared=no
12482      ;;
12483    esac
12484  fi
12485
12486case $host_os in
12487  # For platforms that do not support PIC, -DPIC is meaningless:
12488  *djgpp*)
12489    lt_prog_compiler_pic=
12490    ;;
12491  *)
12492    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12493    ;;
12494esac
12495
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12497$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12498if ${lt_cv_prog_compiler_pic+:} false; then :
12499  $as_echo_n "(cached) " >&6
12500else
12501  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12502fi
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12504$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12505lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12506
12507#
12508# Check to make sure the PIC flag actually works.
12509#
12510if test -n "$lt_prog_compiler_pic"; then
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12512$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12513if ${lt_cv_prog_compiler_pic_works+:} false; then :
12514  $as_echo_n "(cached) " >&6
12515else
12516  lt_cv_prog_compiler_pic_works=no
12517   ac_outfile=conftest.$ac_objext
12518   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12519   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12520   # Insert the option either (1) after the last *FLAGS variable, or
12521   # (2) before a word containing "conftest.", or (3) at the end.
12522   # Note that $ac_compile itself does not contain backslashes and begins
12523   # with a dollar sign (not a hyphen), so the echo should work correctly.
12524   # The option is referenced via a variable to avoid confusing sed.
12525   lt_compile=`echo "$ac_compile" | $SED \
12526   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12527   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12528   -e 's:$: $lt_compiler_flag:'`
12529   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12530   (eval "$lt_compile" 2>conftest.err)
12531   ac_status=$?
12532   cat conftest.err >&5
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   if (exit $ac_status) && test -s "$ac_outfile"; then
12535     # The compiler can only warn and ignore the option if not recognized
12536     # So say no if there are warnings other than the usual output.
12537     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12538     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12539     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12540       lt_cv_prog_compiler_pic_works=yes
12541     fi
12542   fi
12543   $RM conftest*
12544
12545fi
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12547$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12548
12549if test yes = "$lt_cv_prog_compiler_pic_works"; then
12550    case $lt_prog_compiler_pic in
12551     "" | " "*) ;;
12552     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12553     esac
12554else
12555    lt_prog_compiler_pic=
12556     lt_prog_compiler_can_build_shared=no
12557fi
12558
12559fi
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571#
12572# Check to make sure the static flag actually works.
12573#
12574wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12576$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12577if ${lt_cv_prog_compiler_static_works+:} false; then :
12578  $as_echo_n "(cached) " >&6
12579else
12580  lt_cv_prog_compiler_static_works=no
12581   save_LDFLAGS=$LDFLAGS
12582   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12583   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12584   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12585     # The linker can only warn and ignore the option if not recognized
12586     # So say no if there are warnings
12587     if test -s conftest.err; then
12588       # Append any errors to the config.log.
12589       cat conftest.err 1>&5
12590       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12591       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12592       if diff conftest.exp conftest.er2 >/dev/null; then
12593         lt_cv_prog_compiler_static_works=yes
12594       fi
12595     else
12596       lt_cv_prog_compiler_static_works=yes
12597     fi
12598   fi
12599   $RM -r conftest*
12600   LDFLAGS=$save_LDFLAGS
12601
12602fi
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12604$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12605
12606if test yes = "$lt_cv_prog_compiler_static_works"; then
12607    :
12608else
12609    lt_prog_compiler_static=
12610fi
12611
12612
12613
12614
12615
12616
12617
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12619$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12620if ${lt_cv_prog_compiler_c_o+:} false; then :
12621  $as_echo_n "(cached) " >&6
12622else
12623  lt_cv_prog_compiler_c_o=no
12624   $RM -r conftest 2>/dev/null
12625   mkdir conftest
12626   cd conftest
12627   mkdir out
12628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12629
12630   lt_compiler_flag="-o out/conftest2.$ac_objext"
12631   # Insert the option either (1) after the last *FLAGS variable, or
12632   # (2) before a word containing "conftest.", or (3) at the end.
12633   # Note that $ac_compile itself does not contain backslashes and begins
12634   # with a dollar sign (not a hyphen), so the echo should work correctly.
12635   lt_compile=`echo "$ac_compile" | $SED \
12636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12638   -e 's:$: $lt_compiler_flag:'`
12639   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12640   (eval "$lt_compile" 2>out/conftest.err)
12641   ac_status=$?
12642   cat out/conftest.err >&5
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12645   then
12646     # The compiler can only warn and ignore the option if not recognized
12647     # So say no if there are warnings
12648     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12649     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12650     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12651       lt_cv_prog_compiler_c_o=yes
12652     fi
12653   fi
12654   chmod u+w . 2>&5
12655   $RM conftest*
12656   # SGI C++ compiler will create directory out/ii_files/ for
12657   # template instantiation
12658   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12659   $RM out/* && rmdir out
12660   cd ..
12661   $RM -r conftest
12662   $RM conftest*
12663
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12666$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12667
12668
12669
12670
12671
12672
12673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12675if ${lt_cv_prog_compiler_c_o+:} false; then :
12676  $as_echo_n "(cached) " >&6
12677else
12678  lt_cv_prog_compiler_c_o=no
12679   $RM -r conftest 2>/dev/null
12680   mkdir conftest
12681   cd conftest
12682   mkdir out
12683   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12684
12685   lt_compiler_flag="-o out/conftest2.$ac_objext"
12686   # Insert the option either (1) after the last *FLAGS variable, or
12687   # (2) before a word containing "conftest.", or (3) at the end.
12688   # Note that $ac_compile itself does not contain backslashes and begins
12689   # with a dollar sign (not a hyphen), so the echo should work correctly.
12690   lt_compile=`echo "$ac_compile" | $SED \
12691   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12693   -e 's:$: $lt_compiler_flag:'`
12694   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12695   (eval "$lt_compile" 2>out/conftest.err)
12696   ac_status=$?
12697   cat out/conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12700   then
12701     # The compiler can only warn and ignore the option if not recognized
12702     # So say no if there are warnings
12703     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12704     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12705     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12706       lt_cv_prog_compiler_c_o=yes
12707     fi
12708   fi
12709   chmod u+w . 2>&5
12710   $RM conftest*
12711   # SGI C++ compiler will create directory out/ii_files/ for
12712   # template instantiation
12713   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12714   $RM out/* && rmdir out
12715   cd ..
12716   $RM -r conftest
12717   $RM conftest*
12718
12719fi
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12721$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12722
12723
12724
12725
12726hard_links=nottested
12727if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12728  # do not overwrite the value of need_locks provided by the user
12729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12730$as_echo_n "checking if we can lock with hard links... " >&6; }
12731  hard_links=yes
12732  $RM conftest*
12733  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12734  touch conftest.a
12735  ln conftest.a conftest.b 2>&5 || hard_links=no
12736  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12738$as_echo "$hard_links" >&6; }
12739  if test no = "$hard_links"; then
12740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12741$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12742    need_locks=warn
12743  fi
12744else
12745  need_locks=no
12746fi
12747
12748
12749
12750
12751
12752
12753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12754$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12755
12756  runpath_var=
12757  allow_undefined_flag=
12758  always_export_symbols=no
12759  archive_cmds=
12760  archive_expsym_cmds=
12761  compiler_needs_object=no
12762  enable_shared_with_static_runtimes=no
12763  export_dynamic_flag_spec=
12764  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12765  hardcode_automatic=no
12766  hardcode_direct=no
12767  hardcode_direct_absolute=no
12768  hardcode_libdir_flag_spec=
12769  hardcode_libdir_separator=
12770  hardcode_minus_L=no
12771  hardcode_shlibpath_var=unsupported
12772  inherit_rpath=no
12773  link_all_deplibs=unknown
12774  module_cmds=
12775  module_expsym_cmds=
12776  old_archive_from_new_cmds=
12777  old_archive_from_expsyms_cmds=
12778  thread_safe_flag_spec=
12779  whole_archive_flag_spec=
12780  # include_expsyms should be a list of space-separated symbols to be *always*
12781  # included in the symbol list
12782  include_expsyms=
12783  # exclude_expsyms can be an extended regexp of symbols to exclude
12784  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12785  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12786  # as well as any symbol that contains 'd'.
12787  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12788  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12789  # platforms (ab)use it in PIC code, but their linkers get confused if
12790  # the symbol is explicitly referenced.  Since portable code cannot
12791  # rely on this symbol name, it's probably fine to never include it in
12792  # preloaded symbol tables.
12793  # Exclude shared library initialization/finalization symbols.
12794  extract_expsyms_cmds=
12795
12796  case $host_os in
12797  cygwin* | mingw* | pw32* | cegcc*)
12798    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12799    # When not using gcc, we currently assume that we are using
12800    # Microsoft Visual C++.
12801    if test yes != "$GCC"; then
12802      with_gnu_ld=no
12803    fi
12804    ;;
12805  interix*)
12806    # we just hope/assume this is gcc and not c89 (= MSVC++)
12807    with_gnu_ld=yes
12808    ;;
12809  openbsd* | bitrig*)
12810    with_gnu_ld=no
12811    ;;
12812  linux* | k*bsd*-gnu | gnu*)
12813    link_all_deplibs=no
12814    ;;
12815  esac
12816
12817  ld_shlibs=yes
12818
12819  # On some targets, GNU ld is compatible enough with the native linker
12820  # that we're better off using the native interface for both.
12821  lt_use_gnu_ld_interface=no
12822  if test yes = "$with_gnu_ld"; then
12823    case $host_os in
12824      aix*)
12825	# The AIX port of GNU ld has always aspired to compatibility
12826	# with the native linker.  However, as the warning in the GNU ld
12827	# block says, versions before 2.19.5* couldn't really create working
12828	# shared libraries, regardless of the interface used.
12829	case `$LD -v 2>&1` in
12830	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12831	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12832	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12833	  *)
12834	    lt_use_gnu_ld_interface=yes
12835	    ;;
12836	esac
12837	;;
12838      *)
12839	lt_use_gnu_ld_interface=yes
12840	;;
12841    esac
12842  fi
12843
12844  if test yes = "$lt_use_gnu_ld_interface"; then
12845    # If archive_cmds runs LD, not CC, wlarc should be empty
12846    wlarc='$wl'
12847
12848    # Set some defaults for GNU ld with shared library support. These
12849    # are reset later if shared libraries are not supported. Putting them
12850    # here allows them to be overridden if necessary.
12851    runpath_var=LD_RUN_PATH
12852    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12853    export_dynamic_flag_spec='$wl--export-dynamic'
12854    # ancient GNU ld didn't support --whole-archive et. al.
12855    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12856      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12857    else
12858      whole_archive_flag_spec=
12859    fi
12860    supports_anon_versioning=no
12861    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12862      *GNU\ gold*) supports_anon_versioning=yes ;;
12863      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12864      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12865      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12866      *\ 2.11.*) ;; # other 2.11 versions
12867      *) supports_anon_versioning=yes ;;
12868    esac
12869
12870    # See if GNU ld supports shared libraries.
12871    case $host_os in
12872    aix[3-9]*)
12873      # On AIX/PPC, the GNU linker is very broken
12874      if test ia64 != "$host_cpu"; then
12875	ld_shlibs=no
12876	cat <<_LT_EOF 1>&2
12877
12878*** Warning: the GNU linker, at least up to release 2.19, is reported
12879*** to be unable to reliably create shared libraries on AIX.
12880*** Therefore, libtool is disabling shared libraries support.  If you
12881*** really care for shared libraries, you may want to install binutils
12882*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12883*** You will then need to restart the configuration process.
12884
12885_LT_EOF
12886      fi
12887      ;;
12888
12889    amigaos*)
12890      case $host_cpu in
12891      powerpc)
12892            # see comment about AmigaOS4 .so support
12893            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12894            archive_expsym_cmds=''
12895        ;;
12896      m68k)
12897            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12898            hardcode_libdir_flag_spec='-L$libdir'
12899            hardcode_minus_L=yes
12900        ;;
12901      esac
12902      ;;
12903
12904    beos*)
12905      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12906	allow_undefined_flag=unsupported
12907	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12908	# support --undefined.  This deserves some investigation.  FIXME
12909	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12910      else
12911	ld_shlibs=no
12912      fi
12913      ;;
12914
12915    cygwin* | mingw* | pw32* | cegcc*)
12916      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12917      # as there is no search path for DLLs.
12918      hardcode_libdir_flag_spec='-L$libdir'
12919      export_dynamic_flag_spec='$wl--export-all-symbols'
12920      allow_undefined_flag=unsupported
12921      always_export_symbols=no
12922      enable_shared_with_static_runtimes=yes
12923      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12924      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12925
12926      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12927        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12928	# If the export-symbols file already is a .def file, use it as
12929	# is; otherwise, prepend EXPORTS...
12930	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12931          cp $export_symbols $output_objdir/$soname.def;
12932        else
12933          echo EXPORTS > $output_objdir/$soname.def;
12934          cat $export_symbols >> $output_objdir/$soname.def;
12935        fi~
12936        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12937      else
12938	ld_shlibs=no
12939      fi
12940      ;;
12941
12942    haiku*)
12943      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12944      link_all_deplibs=yes
12945      ;;
12946
12947    os2*)
12948      hardcode_libdir_flag_spec='-L$libdir'
12949      hardcode_minus_L=yes
12950      allow_undefined_flag=unsupported
12951      shrext_cmds=.dll
12952      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12953	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12954	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12955	$ECHO EXPORTS >> $output_objdir/$libname.def~
12956	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12957	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12958	emximp -o $lib $output_objdir/$libname.def'
12959      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12960	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12961	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12962	$ECHO EXPORTS >> $output_objdir/$libname.def~
12963	prefix_cmds="$SED"~
12964	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12965	  prefix_cmds="$prefix_cmds -e 1d";
12966	fi~
12967	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12968	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12969	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12970	emximp -o $lib $output_objdir/$libname.def'
12971      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12972      enable_shared_with_static_runtimes=yes
12973      ;;
12974
12975    interix[3-9]*)
12976      hardcode_direct=no
12977      hardcode_shlibpath_var=no
12978      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12979      export_dynamic_flag_spec='$wl-E'
12980      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12981      # Instead, shared libraries are loaded at an image base (0x10000000 by
12982      # default) and relocated if they conflict, which is a slow very memory
12983      # consuming and fragmenting process.  To avoid this, we pick a random,
12984      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12985      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12986      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12987      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12988      ;;
12989
12990    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12991      tmp_diet=no
12992      if test linux-dietlibc = "$host_os"; then
12993	case $cc_basename in
12994	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12995	esac
12996      fi
12997      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12998	 && test no = "$tmp_diet"
12999      then
13000	tmp_addflag=' $pic_flag'
13001	tmp_sharedflag='-shared'
13002	case $cc_basename,$host_cpu in
13003        pgcc*)				# Portland Group C compiler
13004	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13005	  tmp_addflag=' $pic_flag'
13006	  ;;
13007	pgf77* | pgf90* | pgf95* | pgfortran*)
13008					# Portland Group f77 and f90 compilers
13009	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13010	  tmp_addflag=' $pic_flag -Mnomain' ;;
13011	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13012	  tmp_addflag=' -i_dynamic' ;;
13013	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13014	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13015	ifc* | ifort*)			# Intel Fortran compiler
13016	  tmp_addflag=' -nofor_main' ;;
13017	lf95*)				# Lahey Fortran 8.1
13018	  whole_archive_flag_spec=
13019	  tmp_sharedflag='--shared' ;;
13020        nagfor*)                        # NAGFOR 5.3
13021          tmp_sharedflag='-Wl,-shared' ;;
13022	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13023	  tmp_sharedflag='-qmkshrobj'
13024	  tmp_addflag= ;;
13025	nvcc*)	# Cuda Compiler Driver 2.2
13026	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13027	  compiler_needs_object=yes
13028	  ;;
13029	esac
13030	case `$CC -V 2>&1 | sed 5q` in
13031	*Sun\ C*)			# Sun C 5.9
13032	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13033	  compiler_needs_object=yes
13034	  tmp_sharedflag='-G' ;;
13035	*Sun\ F*)			# Sun Fortran 8.3
13036	  tmp_sharedflag='-G' ;;
13037	esac
13038	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13039
13040        if test yes = "$supports_anon_versioning"; then
13041          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13042            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13043            echo "local: *; };" >> $output_objdir/$libname.ver~
13044            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13045        fi
13046
13047	case $cc_basename in
13048	tcc*)
13049	  export_dynamic_flag_spec='-rdynamic'
13050	  ;;
13051	xlf* | bgf* | bgxlf* | mpixlf*)
13052	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13053	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13054	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13055	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13056	  if test yes = "$supports_anon_versioning"; then
13057	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13058              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13059              echo "local: *; };" >> $output_objdir/$libname.ver~
13060              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13061	  fi
13062	  ;;
13063	esac
13064      else
13065        ld_shlibs=no
13066      fi
13067      ;;
13068
13069    netbsd* | netbsdelf*-gnu)
13070      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13071	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13072	wlarc=
13073      else
13074	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13075	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13076      fi
13077      ;;
13078
13079    solaris*)
13080      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13081	ld_shlibs=no
13082	cat <<_LT_EOF 1>&2
13083
13084*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13085*** create shared libraries on Solaris systems.  Therefore, libtool
13086*** is disabling shared libraries support.  We urge you to upgrade GNU
13087*** binutils to release 2.9.1 or newer.  Another option is to modify
13088*** your PATH or compiler configuration so that the native linker is
13089*** used, and then restart.
13090
13091_LT_EOF
13092      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13093	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13094	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13095      else
13096	ld_shlibs=no
13097      fi
13098      ;;
13099
13100    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13101      case `$LD -v 2>&1` in
13102        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13103	ld_shlibs=no
13104	cat <<_LT_EOF 1>&2
13105
13106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13107*** reliably create shared libraries on SCO systems.  Therefore, libtool
13108*** is disabling shared libraries support.  We urge you to upgrade GNU
13109*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13110*** your PATH or compiler configuration so that the native linker is
13111*** used, and then restart.
13112
13113_LT_EOF
13114	;;
13115	*)
13116	  # For security reasons, it is highly recommended that you always
13117	  # use absolute paths for naming shared libraries, and exclude the
13118	  # DT_RUNPATH tag from executables and libraries.  But doing so
13119	  # requires that you compile everything twice, which is a pain.
13120	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13121	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13122	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13123	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13124	  else
13125	    ld_shlibs=no
13126	  fi
13127	;;
13128      esac
13129      ;;
13130
13131    sunos4*)
13132      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13133      wlarc=
13134      hardcode_direct=yes
13135      hardcode_shlibpath_var=no
13136      ;;
13137
13138    *)
13139      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13140	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13141	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13142      else
13143	ld_shlibs=no
13144      fi
13145      ;;
13146    esac
13147
13148    if test no = "$ld_shlibs"; then
13149      runpath_var=
13150      hardcode_libdir_flag_spec=
13151      export_dynamic_flag_spec=
13152      whole_archive_flag_spec=
13153    fi
13154  else
13155    # PORTME fill in a description of your system's linker (not GNU ld)
13156    case $host_os in
13157    aix3*)
13158      allow_undefined_flag=unsupported
13159      always_export_symbols=yes
13160      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13161      # Note: this linker hardcodes the directories in LIBPATH if there
13162      # are no directories specified by -L.
13163      hardcode_minus_L=yes
13164      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13165	# Neither direct hardcoding nor static linking is supported with a
13166	# broken collect2.
13167	hardcode_direct=unsupported
13168      fi
13169      ;;
13170
13171    aix[4-9]*)
13172      if test ia64 = "$host_cpu"; then
13173	# On IA64, the linker does run time linking by default, so we don't
13174	# have to do anything special.
13175	aix_use_runtimelinking=no
13176	exp_sym_flag='-Bexport'
13177	no_entry_flag=
13178      else
13179	# If we're using GNU nm, then we don't want the "-C" option.
13180	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13181	# Without the "-l" option, or with the "-B" option, AIX nm treats
13182	# weak defined symbols like other global defined symbols, whereas
13183	# GNU nm marks them as "W".
13184	# While the 'weak' keyword is ignored in the Export File, we need
13185	# it in the Import File for the 'aix-soname' feature, so we have
13186	# to replace the "-B" option with "-P" for AIX nm.
13187	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13188	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13189	else
13190	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13191	fi
13192	aix_use_runtimelinking=no
13193
13194	# Test if we are trying to use run time linking or normal
13195	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13196	# have runtime linking enabled, and use it for executables.
13197	# For shared libraries, we enable/disable runtime linking
13198	# depending on the kind of the shared library created -
13199	# when "with_aix_soname,aix_use_runtimelinking" is:
13200	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13201	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13202	#            lib.a           static archive
13203	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13204	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13205	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13206	#            lib.a(lib.so.V) shared, rtl:no
13207	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13208	#            lib.a           static archive
13209	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13210	  for ld_flag in $LDFLAGS; do
13211	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13212	    aix_use_runtimelinking=yes
13213	    break
13214	  fi
13215	  done
13216	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13217	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13218	    # so we don't have lib.a shared libs to link our executables.
13219	    # We have to force runtime linking in this case.
13220	    aix_use_runtimelinking=yes
13221	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13222	  fi
13223	  ;;
13224	esac
13225
13226	exp_sym_flag='-bexport'
13227	no_entry_flag='-bnoentry'
13228      fi
13229
13230      # When large executables or shared objects are built, AIX ld can
13231      # have problems creating the table of contents.  If linking a library
13232      # or program results in "error TOC overflow" add -mminimal-toc to
13233      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13234      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13235
13236      archive_cmds=''
13237      hardcode_direct=yes
13238      hardcode_direct_absolute=yes
13239      hardcode_libdir_separator=':'
13240      link_all_deplibs=yes
13241      file_list_spec='$wl-f,'
13242      case $with_aix_soname,$aix_use_runtimelinking in
13243      aix,*) ;; # traditional, no import file
13244      svr4,* | *,yes) # use import file
13245	# The Import File defines what to hardcode.
13246	hardcode_direct=no
13247	hardcode_direct_absolute=no
13248	;;
13249      esac
13250
13251      if test yes = "$GCC"; then
13252	case $host_os in aix4.[012]|aix4.[012].*)
13253	# We only want to do this on AIX 4.2 and lower, the check
13254	# below for broken collect2 doesn't work under 4.3+
13255	  collect2name=`$CC -print-prog-name=collect2`
13256	  if test -f "$collect2name" &&
13257	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13258	  then
13259	  # We have reworked collect2
13260	  :
13261	  else
13262	  # We have old collect2
13263	  hardcode_direct=unsupported
13264	  # It fails to find uninstalled libraries when the uninstalled
13265	  # path is not listed in the libpath.  Setting hardcode_minus_L
13266	  # to unsupported forces relinking
13267	  hardcode_minus_L=yes
13268	  hardcode_libdir_flag_spec='-L$libdir'
13269	  hardcode_libdir_separator=
13270	  fi
13271	  ;;
13272	esac
13273	shared_flag='-shared'
13274	if test yes = "$aix_use_runtimelinking"; then
13275	  shared_flag="$shared_flag "'$wl-G'
13276	fi
13277	# Need to ensure runtime linking is disabled for the traditional
13278	# shared library, or the linker may eventually find shared libraries
13279	# /with/ Import File - we do not want to mix them.
13280	shared_flag_aix='-shared'
13281	shared_flag_svr4='-shared $wl-G'
13282      else
13283	# not using gcc
13284	if test ia64 = "$host_cpu"; then
13285	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13286	# chokes on -Wl,-G. The following line is correct:
13287	  shared_flag='-G'
13288	else
13289	  if test yes = "$aix_use_runtimelinking"; then
13290	    shared_flag='$wl-G'
13291	  else
13292	    shared_flag='$wl-bM:SRE'
13293	  fi
13294	  shared_flag_aix='$wl-bM:SRE'
13295	  shared_flag_svr4='$wl-G'
13296	fi
13297      fi
13298
13299      export_dynamic_flag_spec='$wl-bexpall'
13300      # It seems that -bexpall does not export symbols beginning with
13301      # underscore (_), so it is better to generate a list of symbols to export.
13302      always_export_symbols=yes
13303      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13304	# Warning - without using the other runtime loading flags (-brtl),
13305	# -berok will link without error, but may produce a broken library.
13306	allow_undefined_flag='-berok'
13307        # Determine the default libpath from the value encoded in an
13308        # empty executable.
13309        if test set = "${lt_cv_aix_libpath+set}"; then
13310  aix_libpath=$lt_cv_aix_libpath
13311else
13312  if ${lt_cv_aix_libpath_+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h.  */
13317
13318int
13319main ()
13320{
13321
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326if ac_fn_c_try_link "$LINENO"; then :
13327
13328  lt_aix_libpath_sed='
13329      /Import File Strings/,/^$/ {
13330	  /^0/ {
13331	      s/^0  *\([^ ]*\) *$/\1/
13332	      p
13333	  }
13334      }'
13335  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13336  # Check for a 64-bit object if we didn't find anything.
13337  if test -z "$lt_cv_aix_libpath_"; then
13338    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13339  fi
13340fi
13341rm -f core conftest.err conftest.$ac_objext \
13342    conftest$ac_exeext conftest.$ac_ext
13343  if test -z "$lt_cv_aix_libpath_"; then
13344    lt_cv_aix_libpath_=/usr/lib:/lib
13345  fi
13346
13347fi
13348
13349  aix_libpath=$lt_cv_aix_libpath_
13350fi
13351
13352        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13353        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13354      else
13355	if test ia64 = "$host_cpu"; then
13356	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13357	  allow_undefined_flag="-z nodefs"
13358	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13359	else
13360	 # Determine the default libpath from the value encoded in an
13361	 # empty executable.
13362	 if test set = "${lt_cv_aix_libpath+set}"; then
13363  aix_libpath=$lt_cv_aix_libpath
13364else
13365  if ${lt_cv_aix_libpath_+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h.  */
13370
13371int
13372main ()
13373{
13374
13375  ;
13376  return 0;
13377}
13378_ACEOF
13379if ac_fn_c_try_link "$LINENO"; then :
13380
13381  lt_aix_libpath_sed='
13382      /Import File Strings/,/^$/ {
13383	  /^0/ {
13384	      s/^0  *\([^ ]*\) *$/\1/
13385	      p
13386	  }
13387      }'
13388  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13389  # Check for a 64-bit object if we didn't find anything.
13390  if test -z "$lt_cv_aix_libpath_"; then
13391    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13392  fi
13393fi
13394rm -f core conftest.err conftest.$ac_objext \
13395    conftest$ac_exeext conftest.$ac_ext
13396  if test -z "$lt_cv_aix_libpath_"; then
13397    lt_cv_aix_libpath_=/usr/lib:/lib
13398  fi
13399
13400fi
13401
13402  aix_libpath=$lt_cv_aix_libpath_
13403fi
13404
13405	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13406	  # Warning - without using the other run time loading flags,
13407	  # -berok will link without error, but may produce a broken library.
13408	  no_undefined_flag=' $wl-bernotok'
13409	  allow_undefined_flag=' $wl-berok'
13410	  if test yes = "$with_gnu_ld"; then
13411	    # We only use this code for GNU lds that support --whole-archive.
13412	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13413	  else
13414	    # Exported symbols can be pulled into shared objects from archives
13415	    whole_archive_flag_spec='$convenience'
13416	  fi
13417	  archive_cmds_need_lc=yes
13418	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13419	  # -brtl affects multiple linker settings, -berok does not and is overridden later
13420	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13421	  if test svr4 != "$with_aix_soname"; then
13422	    # This is similar to how AIX traditionally builds its shared libraries.
13423	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13424	  fi
13425	  if test aix != "$with_aix_soname"; then
13426	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13427	  else
13428	    # used by -dlpreopen to get the symbols
13429	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13430	  fi
13431	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13432	fi
13433      fi
13434      ;;
13435
13436    amigaos*)
13437      case $host_cpu in
13438      powerpc)
13439            # see comment about AmigaOS4 .so support
13440            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13441            archive_expsym_cmds=''
13442        ;;
13443      m68k)
13444            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13445            hardcode_libdir_flag_spec='-L$libdir'
13446            hardcode_minus_L=yes
13447        ;;
13448      esac
13449      ;;
13450
13451    bsdi[45]*)
13452      export_dynamic_flag_spec=-rdynamic
13453      ;;
13454
13455    cygwin* | mingw* | pw32* | cegcc*)
13456      # When not using gcc, we currently assume that we are using
13457      # Microsoft Visual C++.
13458      # hardcode_libdir_flag_spec is actually meaningless, as there is
13459      # no search path for DLLs.
13460      case $cc_basename in
13461      cl*)
13462	# Native MSVC
13463	hardcode_libdir_flag_spec=' '
13464	allow_undefined_flag=unsupported
13465	always_export_symbols=yes
13466	file_list_spec='@'
13467	# Tell ltmain to make .lib files, not .a files.
13468	libext=lib
13469	# Tell ltmain to make .dll files, not .so files.
13470	shrext_cmds=.dll
13471	# FIXME: Setting linknames here is a bad hack.
13472	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13473	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13474            cp "$export_symbols" "$output_objdir/$soname.def";
13475            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13476          else
13477            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13478          fi~
13479          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13480          linknames='
13481	# The linker will not automatically build a static lib if we build a DLL.
13482	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13483	enable_shared_with_static_runtimes=yes
13484	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13485	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13486	# Don't use ranlib
13487	old_postinstall_cmds='chmod 644 $oldlib'
13488	postlink_cmds='lt_outputfile="@OUTPUT@"~
13489          lt_tool_outputfile="@TOOL_OUTPUT@"~
13490          case $lt_outputfile in
13491            *.exe|*.EXE) ;;
13492            *)
13493              lt_outputfile=$lt_outputfile.exe
13494              lt_tool_outputfile=$lt_tool_outputfile.exe
13495              ;;
13496          esac~
13497          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13498            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13499            $RM "$lt_outputfile.manifest";
13500          fi'
13501	;;
13502      *)
13503	# Assume MSVC wrapper
13504	hardcode_libdir_flag_spec=' '
13505	allow_undefined_flag=unsupported
13506	# Tell ltmain to make .lib files, not .a files.
13507	libext=lib
13508	# Tell ltmain to make .dll files, not .so files.
13509	shrext_cmds=.dll
13510	# FIXME: Setting linknames here is a bad hack.
13511	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13512	# The linker will automatically build a .lib file if we build a DLL.
13513	old_archive_from_new_cmds='true'
13514	# FIXME: Should let the user specify the lib program.
13515	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13516	enable_shared_with_static_runtimes=yes
13517	;;
13518      esac
13519      ;;
13520
13521    darwin* | rhapsody*)
13522
13523
13524  archive_cmds_need_lc=no
13525  hardcode_direct=no
13526  hardcode_automatic=yes
13527  hardcode_shlibpath_var=unsupported
13528  if test yes = "$lt_cv_ld_force_load"; then
13529    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13530
13531  else
13532    whole_archive_flag_spec=''
13533  fi
13534  link_all_deplibs=yes
13535  allow_undefined_flag=$_lt_dar_allow_undefined
13536  case $cc_basename in
13537     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13538     *) _lt_dar_can_shared=$GCC ;;
13539  esac
13540  if test yes = "$_lt_dar_can_shared"; then
13541    output_verbose_link_cmd=func_echo_all
13542    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13543    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13544    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13545    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13546
13547  else
13548  ld_shlibs=no
13549  fi
13550
13551      ;;
13552
13553    dgux*)
13554      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13555      hardcode_libdir_flag_spec='-L$libdir'
13556      hardcode_shlibpath_var=no
13557      ;;
13558
13559    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13560    # support.  Future versions do this automatically, but an explicit c++rt0.o
13561    # does not break anything, and helps significantly (at the cost of a little
13562    # extra space).
13563    freebsd2.2*)
13564      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13565      hardcode_libdir_flag_spec='-R$libdir'
13566      hardcode_direct=yes
13567      hardcode_shlibpath_var=no
13568      ;;
13569
13570    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13571    freebsd2.*)
13572      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13573      hardcode_direct=yes
13574      hardcode_minus_L=yes
13575      hardcode_shlibpath_var=no
13576      ;;
13577
13578    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13579    freebsd* | dragonfly*)
13580      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13581      hardcode_libdir_flag_spec='-R$libdir'
13582      hardcode_direct=yes
13583      hardcode_shlibpath_var=no
13584      ;;
13585
13586    hpux9*)
13587      if test yes = "$GCC"; then
13588	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13589      else
13590	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13591      fi
13592      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13593      hardcode_libdir_separator=:
13594      hardcode_direct=yes
13595
13596      # hardcode_minus_L: Not really in the search PATH,
13597      # but as the default location of the library.
13598      hardcode_minus_L=yes
13599      export_dynamic_flag_spec='$wl-E'
13600      ;;
13601
13602    hpux10*)
13603      if test yes,no = "$GCC,$with_gnu_ld"; then
13604	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13605      else
13606	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13607      fi
13608      if test no = "$with_gnu_ld"; then
13609	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13610	hardcode_libdir_separator=:
13611	hardcode_direct=yes
13612	hardcode_direct_absolute=yes
13613	export_dynamic_flag_spec='$wl-E'
13614	# hardcode_minus_L: Not really in the search PATH,
13615	# but as the default location of the library.
13616	hardcode_minus_L=yes
13617      fi
13618      ;;
13619
13620    hpux11*)
13621      if test yes,no = "$GCC,$with_gnu_ld"; then
13622	case $host_cpu in
13623	hppa*64*)
13624	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13625	  ;;
13626	ia64*)
13627	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13628	  ;;
13629	*)
13630	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13631	  ;;
13632	esac
13633      else
13634	case $host_cpu in
13635	hppa*64*)
13636	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13637	  ;;
13638	ia64*)
13639	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13640	  ;;
13641	*)
13642
13643	  # Older versions of the 11.00 compiler do not understand -b yet
13644	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13645	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13646$as_echo_n "checking if $CC understands -b... " >&6; }
13647if ${lt_cv_prog_compiler__b+:} false; then :
13648  $as_echo_n "(cached) " >&6
13649else
13650  lt_cv_prog_compiler__b=no
13651   save_LDFLAGS=$LDFLAGS
13652   LDFLAGS="$LDFLAGS -b"
13653   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13654   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13655     # The linker can only warn and ignore the option if not recognized
13656     # So say no if there are warnings
13657     if test -s conftest.err; then
13658       # Append any errors to the config.log.
13659       cat conftest.err 1>&5
13660       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13661       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13662       if diff conftest.exp conftest.er2 >/dev/null; then
13663         lt_cv_prog_compiler__b=yes
13664       fi
13665     else
13666       lt_cv_prog_compiler__b=yes
13667     fi
13668   fi
13669   $RM -r conftest*
13670   LDFLAGS=$save_LDFLAGS
13671
13672fi
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13674$as_echo "$lt_cv_prog_compiler__b" >&6; }
13675
13676if test yes = "$lt_cv_prog_compiler__b"; then
13677    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13678else
13679    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13680fi
13681
13682	  ;;
13683	esac
13684      fi
13685      if test no = "$with_gnu_ld"; then
13686	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13687	hardcode_libdir_separator=:
13688
13689	case $host_cpu in
13690	hppa*64*|ia64*)
13691	  hardcode_direct=no
13692	  hardcode_shlibpath_var=no
13693	  ;;
13694	*)
13695	  hardcode_direct=yes
13696	  hardcode_direct_absolute=yes
13697	  export_dynamic_flag_spec='$wl-E'
13698
13699	  # hardcode_minus_L: Not really in the search PATH,
13700	  # but as the default location of the library.
13701	  hardcode_minus_L=yes
13702	  ;;
13703	esac
13704      fi
13705      ;;
13706
13707    irix5* | irix6* | nonstopux*)
13708      if test yes = "$GCC"; then
13709	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13710	# Try to use the -exported_symbol ld option, if it does not
13711	# work, assume that -exports_file does not work either and
13712	# implicitly export all symbols.
13713	# This should be the same for all languages, so no per-tag cache variable.
13714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13715$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13716if ${lt_cv_irix_exported_symbol+:} false; then :
13717  $as_echo_n "(cached) " >&6
13718else
13719  save_LDFLAGS=$LDFLAGS
13720	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13721	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722/* end confdefs.h.  */
13723int foo (void) { return 0; }
13724_ACEOF
13725if ac_fn_c_try_link "$LINENO"; then :
13726  lt_cv_irix_exported_symbol=yes
13727else
13728  lt_cv_irix_exported_symbol=no
13729fi
13730rm -f core conftest.err conftest.$ac_objext \
13731    conftest$ac_exeext conftest.$ac_ext
13732           LDFLAGS=$save_LDFLAGS
13733fi
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13735$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13736	if test yes = "$lt_cv_irix_exported_symbol"; then
13737          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13738	fi
13739	link_all_deplibs=no
13740      else
13741	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13742	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13743      fi
13744      archive_cmds_need_lc='no'
13745      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13746      hardcode_libdir_separator=:
13747      inherit_rpath=yes
13748      link_all_deplibs=yes
13749      ;;
13750
13751    linux*)
13752      case $cc_basename in
13753      tcc*)
13754	# Fabrice Bellard et al's Tiny C Compiler
13755	ld_shlibs=yes
13756	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13757	;;
13758      esac
13759      ;;
13760
13761    netbsd* | netbsdelf*-gnu)
13762      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13763	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13764      else
13765	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13766      fi
13767      hardcode_libdir_flag_spec='-R$libdir'
13768      hardcode_direct=yes
13769      hardcode_shlibpath_var=no
13770      ;;
13771
13772    newsos6)
13773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13774      hardcode_direct=yes
13775      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13776      hardcode_libdir_separator=:
13777      hardcode_shlibpath_var=no
13778      ;;
13779
13780    *nto* | *qnx*)
13781      ;;
13782
13783    openbsd* | bitrig*)
13784      if test -f /usr/libexec/ld.so; then
13785	hardcode_direct=yes
13786	hardcode_shlibpath_var=no
13787	hardcode_direct_absolute=yes
13788	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13789	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13790	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13791	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13792	  export_dynamic_flag_spec='$wl-E'
13793	else
13794	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13795	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13796	fi
13797      else
13798	ld_shlibs=no
13799      fi
13800      ;;
13801
13802    os2*)
13803      hardcode_libdir_flag_spec='-L$libdir'
13804      hardcode_minus_L=yes
13805      allow_undefined_flag=unsupported
13806      shrext_cmds=.dll
13807      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13808	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13809	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13810	$ECHO EXPORTS >> $output_objdir/$libname.def~
13811	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13812	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13813	emximp -o $lib $output_objdir/$libname.def'
13814      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13815	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13816	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13817	$ECHO EXPORTS >> $output_objdir/$libname.def~
13818	prefix_cmds="$SED"~
13819	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13820	  prefix_cmds="$prefix_cmds -e 1d";
13821	fi~
13822	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13823	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13824	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13825	emximp -o $lib $output_objdir/$libname.def'
13826      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13827      enable_shared_with_static_runtimes=yes
13828      ;;
13829
13830    osf3*)
13831      if test yes = "$GCC"; then
13832	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13833	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13834      else
13835	allow_undefined_flag=' -expect_unresolved \*'
13836	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13837      fi
13838      archive_cmds_need_lc='no'
13839      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13840      hardcode_libdir_separator=:
13841      ;;
13842
13843    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13844      if test yes = "$GCC"; then
13845	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13846	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13847	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13848      else
13849	allow_undefined_flag=' -expect_unresolved \*'
13850	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13851	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13852          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13853
13854	# Both c and cxx compiler support -rpath directly
13855	hardcode_libdir_flag_spec='-rpath $libdir'
13856      fi
13857      archive_cmds_need_lc='no'
13858      hardcode_libdir_separator=:
13859      ;;
13860
13861    solaris*)
13862      no_undefined_flag=' -z defs'
13863      if test yes = "$GCC"; then
13864	wlarc='$wl'
13865	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13866	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13867          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13868      else
13869	case `$CC -V 2>&1` in
13870	*"Compilers 5.0"*)
13871	  wlarc=''
13872	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13874            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13875	  ;;
13876	*)
13877	  wlarc='$wl'
13878	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13879	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13880            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13881	  ;;
13882	esac
13883      fi
13884      hardcode_libdir_flag_spec='-R$libdir'
13885      hardcode_shlibpath_var=no
13886      case $host_os in
13887      solaris2.[0-5] | solaris2.[0-5].*) ;;
13888      *)
13889	# The compiler driver will combine and reorder linker options,
13890	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13891	# but is careful enough not to reorder.
13892	# Supported since Solaris 2.6 (maybe 2.5.1?)
13893	if test yes = "$GCC"; then
13894	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13895	else
13896	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13897	fi
13898	;;
13899      esac
13900      link_all_deplibs=yes
13901      ;;
13902
13903    sunos4*)
13904      if test sequent = "$host_vendor"; then
13905	# Use $CC to link under sequent, because it throws in some extra .o
13906	# files that make .init and .fini sections work.
13907	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13908      else
13909	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13910      fi
13911      hardcode_libdir_flag_spec='-L$libdir'
13912      hardcode_direct=yes
13913      hardcode_minus_L=yes
13914      hardcode_shlibpath_var=no
13915      ;;
13916
13917    sysv4)
13918      case $host_vendor in
13919	sni)
13920	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921	  hardcode_direct=yes # is this really true???
13922	;;
13923	siemens)
13924	  ## LD is ld it makes a PLAMLIB
13925	  ## CC just makes a GrossModule.
13926	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13927	  reload_cmds='$CC -r -o $output$reload_objs'
13928	  hardcode_direct=no
13929        ;;
13930	motorola)
13931	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13933	;;
13934      esac
13935      runpath_var='LD_RUN_PATH'
13936      hardcode_shlibpath_var=no
13937      ;;
13938
13939    sysv4.3*)
13940      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13941      hardcode_shlibpath_var=no
13942      export_dynamic_flag_spec='-Bexport'
13943      ;;
13944
13945    sysv4*MP*)
13946      if test -d /usr/nec; then
13947	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13948	hardcode_shlibpath_var=no
13949	runpath_var=LD_RUN_PATH
13950	hardcode_runpath_var=yes
13951	ld_shlibs=yes
13952      fi
13953      ;;
13954
13955    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13956      no_undefined_flag='$wl-z,text'
13957      archive_cmds_need_lc=no
13958      hardcode_shlibpath_var=no
13959      runpath_var='LD_RUN_PATH'
13960
13961      if test yes = "$GCC"; then
13962	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13963	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13964      else
13965	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13966	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13967      fi
13968      ;;
13969
13970    sysv5* | sco3.2v5* | sco5v6*)
13971      # Note: We CANNOT use -z defs as we might desire, because we do not
13972      # link with -lc, and that would cause any symbols used from libc to
13973      # always be unresolved, which means just about no library would
13974      # ever link correctly.  If we're not using GNU ld we use -z text
13975      # though, which does catch some bad symbols but isn't as heavy-handed
13976      # as -z defs.
13977      no_undefined_flag='$wl-z,text'
13978      allow_undefined_flag='$wl-z,nodefs'
13979      archive_cmds_need_lc=no
13980      hardcode_shlibpath_var=no
13981      hardcode_libdir_flag_spec='$wl-R,$libdir'
13982      hardcode_libdir_separator=':'
13983      link_all_deplibs=yes
13984      export_dynamic_flag_spec='$wl-Bexport'
13985      runpath_var='LD_RUN_PATH'
13986
13987      if test yes = "$GCC"; then
13988	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13989	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13990      else
13991	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13992	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13993      fi
13994      ;;
13995
13996    uts4*)
13997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13998      hardcode_libdir_flag_spec='-L$libdir'
13999      hardcode_shlibpath_var=no
14000      ;;
14001
14002    *)
14003      ld_shlibs=no
14004      ;;
14005    esac
14006
14007    if test sni = "$host_vendor"; then
14008      case $host in
14009      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14010	export_dynamic_flag_spec='$wl-Blargedynsym'
14011	;;
14012      esac
14013    fi
14014  fi
14015
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14017$as_echo "$ld_shlibs" >&6; }
14018test no = "$ld_shlibs" && can_build_shared=no
14019
14020with_gnu_ld=$with_gnu_ld
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036#
14037# Do we need to explicitly link libc?
14038#
14039case "x$archive_cmds_need_lc" in
14040x|xyes)
14041  # Assume -lc should be added
14042  archive_cmds_need_lc=yes
14043
14044  if test yes,yes = "$GCC,$enable_shared"; then
14045    case $archive_cmds in
14046    *'~'*)
14047      # FIXME: we may have to deal with multi-command sequences.
14048      ;;
14049    '$CC '*)
14050      # Test whether the compiler implicitly links with -lc since on some
14051      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14052      # to ld, don't add -lc before -lgcc.
14053      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14054$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14055if ${lt_cv_archive_cmds_need_lc+:} false; then :
14056  $as_echo_n "(cached) " >&6
14057else
14058  $RM conftest*
14059	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14060
14061	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14062  (eval $ac_compile) 2>&5
14063  ac_status=$?
14064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14065  test $ac_status = 0; } 2>conftest.err; then
14066	  soname=conftest
14067	  lib=conftest
14068	  libobjs=conftest.$ac_objext
14069	  deplibs=
14070	  wl=$lt_prog_compiler_wl
14071	  pic_flag=$lt_prog_compiler_pic
14072	  compiler_flags=-v
14073	  linker_flags=-v
14074	  verstring=
14075	  output_objdir=.
14076	  libname=conftest
14077	  lt_save_allow_undefined_flag=$allow_undefined_flag
14078	  allow_undefined_flag=
14079	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14080  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14081  ac_status=$?
14082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083  test $ac_status = 0; }
14084	  then
14085	    lt_cv_archive_cmds_need_lc=no
14086	  else
14087	    lt_cv_archive_cmds_need_lc=yes
14088	  fi
14089	  allow_undefined_flag=$lt_save_allow_undefined_flag
14090	else
14091	  cat conftest.err 1>&5
14092	fi
14093	$RM conftest*
14094
14095fi
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14097$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14098      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14099      ;;
14100    esac
14101  fi
14102  ;;
14103esac
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14257$as_echo_n "checking dynamic linker characteristics... " >&6; }
14258
14259if test yes = "$GCC"; then
14260  case $host_os in
14261    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14262    *) lt_awk_arg='/^libraries:/' ;;
14263  esac
14264  case $host_os in
14265    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14266    *) lt_sed_strip_eq='s|=/|/|g' ;;
14267  esac
14268  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14269  case $lt_search_path_spec in
14270  *\;*)
14271    # if the path contains ";" then we assume it to be the separator
14272    # otherwise default to the standard path separator (i.e. ":") - it is
14273    # assumed that no part of a normal pathname contains ";" but that should
14274    # okay in the real world where ";" in dirpaths is itself problematic.
14275    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14276    ;;
14277  *)
14278    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14279    ;;
14280  esac
14281  # Ok, now we have the path, separated by spaces, we can step through it
14282  # and add multilib dir if necessary...
14283  lt_tmp_lt_search_path_spec=
14284  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14285  # ...but if some path component already ends with the multilib dir we assume
14286  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14287  case "$lt_multi_os_dir; $lt_search_path_spec " in
14288  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14289    lt_multi_os_dir=
14290    ;;
14291  esac
14292  for lt_sys_path in $lt_search_path_spec; do
14293    if test -d "$lt_sys_path$lt_multi_os_dir"; then
14294      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14295    elif test -n "$lt_multi_os_dir"; then
14296      test -d "$lt_sys_path" && \
14297	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14298    fi
14299  done
14300  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14301BEGIN {RS = " "; FS = "/|\n";} {
14302  lt_foo = "";
14303  lt_count = 0;
14304  for (lt_i = NF; lt_i > 0; lt_i--) {
14305    if ($lt_i != "" && $lt_i != ".") {
14306      if ($lt_i == "..") {
14307        lt_count++;
14308      } else {
14309        if (lt_count == 0) {
14310          lt_foo = "/" $lt_i lt_foo;
14311        } else {
14312          lt_count--;
14313        }
14314      }
14315    }
14316  }
14317  if (lt_foo != "") { lt_freq[lt_foo]++; }
14318  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14319}'`
14320  # AWK program above erroneously prepends '/' to C:/dos/paths
14321  # for these hosts.
14322  case $host_os in
14323    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14324      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14325  esac
14326  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14327else
14328  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14329fi
14330library_names_spec=
14331libname_spec='lib$name'
14332soname_spec=
14333shrext_cmds=.so
14334postinstall_cmds=
14335postuninstall_cmds=
14336finish_cmds=
14337finish_eval=
14338shlibpath_var=
14339shlibpath_overrides_runpath=unknown
14340version_type=none
14341dynamic_linker="$host_os ld.so"
14342sys_lib_dlsearch_path_spec="/lib /usr/lib"
14343need_lib_prefix=unknown
14344hardcode_into_libs=no
14345
14346# when you set need_version to no, make sure it does not cause -set_version
14347# flags to be left without arguments
14348need_version=unknown
14349
14350
14351
14352case $host_os in
14353aix3*)
14354  version_type=linux # correct to gnu/linux during the next big refactor
14355  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14356  shlibpath_var=LIBPATH
14357
14358  # AIX 3 has no versioning support, so we append a major version to the name.
14359  soname_spec='$libname$release$shared_ext$major'
14360  ;;
14361
14362aix[4-9]*)
14363  version_type=linux # correct to gnu/linux during the next big refactor
14364  need_lib_prefix=no
14365  need_version=no
14366  hardcode_into_libs=yes
14367  if test ia64 = "$host_cpu"; then
14368    # AIX 5 supports IA64
14369    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14370    shlibpath_var=LD_LIBRARY_PATH
14371  else
14372    # With GCC up to 2.95.x, collect2 would create an import file
14373    # for dependence libraries.  The import file would start with
14374    # the line '#! .'.  This would cause the generated library to
14375    # depend on '.', always an invalid library.  This was fixed in
14376    # development snapshots of GCC prior to 3.0.
14377    case $host_os in
14378      aix4 | aix4.[01] | aix4.[01].*)
14379      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14380	   echo ' yes '
14381	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14382	:
14383      else
14384	can_build_shared=no
14385      fi
14386      ;;
14387    esac
14388    # Using Import Files as archive members, it is possible to support
14389    # filename-based versioning of shared library archives on AIX. While
14390    # this would work for both with and without runtime linking, it will
14391    # prevent static linking of such archives. So we do filename-based
14392    # shared library versioning with .so extension only, which is used
14393    # when both runtime linking and shared linking is enabled.
14394    # Unfortunately, runtime linking may impact performance, so we do
14395    # not want this to be the default eventually. Also, we use the
14396    # versioned .so libs for executables only if there is the -brtl
14397    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14398    # To allow for filename-based versioning support, we need to create
14399    # libNAME.so.V as an archive file, containing:
14400    # *) an Import File, referring to the versioned filename of the
14401    #    archive as well as the shared archive member, telling the
14402    #    bitwidth (32 or 64) of that shared object, and providing the
14403    #    list of exported symbols of that shared object, eventually
14404    #    decorated with the 'weak' keyword
14405    # *) the shared object with the F_LOADONLY flag set, to really avoid
14406    #    it being seen by the linker.
14407    # At run time we better use the real file rather than another symlink,
14408    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14409
14410    case $with_aix_soname,$aix_use_runtimelinking in
14411    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14412    # soname into executable. Probably we can add versioning support to
14413    # collect2, so additional links can be useful in future.
14414    aix,yes) # traditional libtool
14415      dynamic_linker='AIX unversionable lib.so'
14416      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14417      # instead of lib<name>.a to let people know that these are not
14418      # typical AIX shared libraries.
14419      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14420      ;;
14421    aix,no) # traditional AIX only
14422      dynamic_linker='AIX lib.a(lib.so.V)'
14423      # We preserve .a as extension for shared libraries through AIX4.2
14424      # and later when we are not doing run time linking.
14425      library_names_spec='$libname$release.a $libname.a'
14426      soname_spec='$libname$release$shared_ext$major'
14427      ;;
14428    svr4,*) # full svr4 only
14429      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14430      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14431      # We do not specify a path in Import Files, so LIBPATH fires.
14432      shlibpath_overrides_runpath=yes
14433      ;;
14434    *,yes) # both, prefer svr4
14435      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14436      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14437      # unpreferred sharedlib libNAME.a needs extra handling
14438      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14439      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14440      # We do not specify a path in Import Files, so LIBPATH fires.
14441      shlibpath_overrides_runpath=yes
14442      ;;
14443    *,no) # both, prefer aix
14444      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14445      library_names_spec='$libname$release.a $libname.a'
14446      soname_spec='$libname$release$shared_ext$major'
14447      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14448      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14449      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14450      ;;
14451    esac
14452    shlibpath_var=LIBPATH
14453  fi
14454  ;;
14455
14456amigaos*)
14457  case $host_cpu in
14458  powerpc)
14459    # Since July 2007 AmigaOS4 officially supports .so libraries.
14460    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14461    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14462    ;;
14463  m68k)
14464    library_names_spec='$libname.ixlibrary $libname.a'
14465    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14466    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14467    ;;
14468  esac
14469  ;;
14470
14471beos*)
14472  library_names_spec='$libname$shared_ext'
14473  dynamic_linker="$host_os ld.so"
14474  shlibpath_var=LIBRARY_PATH
14475  ;;
14476
14477bsdi[45]*)
14478  version_type=linux # correct to gnu/linux during the next big refactor
14479  need_version=no
14480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14481  soname_spec='$libname$release$shared_ext$major'
14482  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14483  shlibpath_var=LD_LIBRARY_PATH
14484  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14485  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14486  # the default ld.so.conf also contains /usr/contrib/lib and
14487  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14488  # libtool to hard-code these into programs
14489  ;;
14490
14491cygwin* | mingw* | pw32* | cegcc*)
14492  version_type=windows
14493  shrext_cmds=.dll
14494  need_version=no
14495  need_lib_prefix=no
14496
14497  case $GCC,$cc_basename in
14498  yes,*)
14499    # gcc
14500    library_names_spec='$libname.dll.a'
14501    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14502    postinstall_cmds='base_file=`basename \$file`~
14503      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14504      dldir=$destdir/`dirname \$dlpath`~
14505      test -d \$dldir || mkdir -p \$dldir~
14506      $install_prog $dir/$dlname \$dldir/$dlname~
14507      chmod a+x \$dldir/$dlname~
14508      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14509        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14510      fi'
14511    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14512      dlpath=$dir/\$dldll~
14513       $RM \$dlpath'
14514    shlibpath_overrides_runpath=yes
14515
14516    case $host_os in
14517    cygwin*)
14518      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14519      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14520
14521      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14522      ;;
14523    mingw* | cegcc*)
14524      # MinGW DLLs use traditional 'lib' prefix
14525      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14526      ;;
14527    pw32*)
14528      # pw32 DLLs use 'pw' prefix rather than 'lib'
14529      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14530      ;;
14531    esac
14532    dynamic_linker='Win32 ld.exe'
14533    ;;
14534
14535  *,cl*)
14536    # Native MSVC
14537    libname_spec='$name'
14538    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14539    library_names_spec='$libname.dll.lib'
14540
14541    case $build_os in
14542    mingw*)
14543      sys_lib_search_path_spec=
14544      lt_save_ifs=$IFS
14545      IFS=';'
14546      for lt_path in $LIB
14547      do
14548        IFS=$lt_save_ifs
14549        # Let DOS variable expansion print the short 8.3 style file name.
14550        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14551        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14552      done
14553      IFS=$lt_save_ifs
14554      # Convert to MSYS style.
14555      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14556      ;;
14557    cygwin*)
14558      # Convert to unix form, then to dos form, then back to unix form
14559      # but this time dos style (no spaces!) so that the unix form looks
14560      # like /cygdrive/c/PROGRA~1:/cygdr...
14561      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14562      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14563      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14564      ;;
14565    *)
14566      sys_lib_search_path_spec=$LIB
14567      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14568        # It is most probably a Windows format PATH.
14569        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14570      else
14571        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14572      fi
14573      # FIXME: find the short name or the path components, as spaces are
14574      # common. (e.g. "Program Files" -> "PROGRA~1")
14575      ;;
14576    esac
14577
14578    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14579    postinstall_cmds='base_file=`basename \$file`~
14580      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14581      dldir=$destdir/`dirname \$dlpath`~
14582      test -d \$dldir || mkdir -p \$dldir~
14583      $install_prog $dir/$dlname \$dldir/$dlname'
14584    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14585      dlpath=$dir/\$dldll~
14586       $RM \$dlpath'
14587    shlibpath_overrides_runpath=yes
14588    dynamic_linker='Win32 link.exe'
14589    ;;
14590
14591  *)
14592    # Assume MSVC wrapper
14593    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14594    dynamic_linker='Win32 ld.exe'
14595    ;;
14596  esac
14597  # FIXME: first we should search . and the directory the executable is in
14598  shlibpath_var=PATH
14599  ;;
14600
14601darwin* | rhapsody*)
14602  dynamic_linker="$host_os dyld"
14603  version_type=darwin
14604  need_lib_prefix=no
14605  need_version=no
14606  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14607  soname_spec='$libname$release$major$shared_ext'
14608  shlibpath_overrides_runpath=yes
14609  shlibpath_var=DYLD_LIBRARY_PATH
14610  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14611
14612  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14613  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14614  ;;
14615
14616dgux*)
14617  version_type=linux # correct to gnu/linux during the next big refactor
14618  need_lib_prefix=no
14619  need_version=no
14620  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14621  soname_spec='$libname$release$shared_ext$major'
14622  shlibpath_var=LD_LIBRARY_PATH
14623  ;;
14624
14625freebsd* | dragonfly*)
14626  # DragonFly does not have aout.  When/if they implement a new
14627  # versioning mechanism, adjust this.
14628  if test -x /usr/bin/objformat; then
14629    objformat=`/usr/bin/objformat`
14630  else
14631    case $host_os in
14632    freebsd[23].*) objformat=aout ;;
14633    *) objformat=elf ;;
14634    esac
14635  fi
14636  version_type=freebsd-$objformat
14637  case $version_type in
14638    freebsd-elf*)
14639      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14640      soname_spec='$libname$release$shared_ext$major'
14641      need_version=no
14642      need_lib_prefix=no
14643      ;;
14644    freebsd-*)
14645      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14646      need_version=yes
14647      ;;
14648  esac
14649  shlibpath_var=LD_LIBRARY_PATH
14650  case $host_os in
14651  freebsd2.*)
14652    shlibpath_overrides_runpath=yes
14653    ;;
14654  freebsd3.[01]* | freebsdelf3.[01]*)
14655    shlibpath_overrides_runpath=yes
14656    hardcode_into_libs=yes
14657    ;;
14658  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14659  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14660    shlibpath_overrides_runpath=no
14661    hardcode_into_libs=yes
14662    ;;
14663  *) # from 4.6 on, and DragonFly
14664    shlibpath_overrides_runpath=yes
14665    hardcode_into_libs=yes
14666    ;;
14667  esac
14668  ;;
14669
14670haiku*)
14671  version_type=linux # correct to gnu/linux during the next big refactor
14672  need_lib_prefix=no
14673  need_version=no
14674  dynamic_linker="$host_os runtime_loader"
14675  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14676  soname_spec='$libname$release$shared_ext$major'
14677  shlibpath_var=LIBRARY_PATH
14678  shlibpath_overrides_runpath=no
14679  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14680  hardcode_into_libs=yes
14681  ;;
14682
14683hpux9* | hpux10* | hpux11*)
14684  # Give a soname corresponding to the major version so that dld.sl refuses to
14685  # link against other versions.
14686  version_type=sunos
14687  need_lib_prefix=no
14688  need_version=no
14689  case $host_cpu in
14690  ia64*)
14691    shrext_cmds='.so'
14692    hardcode_into_libs=yes
14693    dynamic_linker="$host_os dld.so"
14694    shlibpath_var=LD_LIBRARY_PATH
14695    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14696    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14697    soname_spec='$libname$release$shared_ext$major'
14698    if test 32 = "$HPUX_IA64_MODE"; then
14699      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14700      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14701    else
14702      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14703      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14704    fi
14705    ;;
14706  hppa*64*)
14707    shrext_cmds='.sl'
14708    hardcode_into_libs=yes
14709    dynamic_linker="$host_os dld.sl"
14710    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14711    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14712    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14713    soname_spec='$libname$release$shared_ext$major'
14714    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14715    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716    ;;
14717  *)
14718    shrext_cmds='.sl'
14719    dynamic_linker="$host_os dld.sl"
14720    shlibpath_var=SHLIB_PATH
14721    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14722    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14723    soname_spec='$libname$release$shared_ext$major'
14724    ;;
14725  esac
14726  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14727  postinstall_cmds='chmod 555 $lib'
14728  # or fails outright, so override atomically:
14729  install_override_mode=555
14730  ;;
14731
14732interix[3-9]*)
14733  version_type=linux # correct to gnu/linux during the next big refactor
14734  need_lib_prefix=no
14735  need_version=no
14736  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14737  soname_spec='$libname$release$shared_ext$major'
14738  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14739  shlibpath_var=LD_LIBRARY_PATH
14740  shlibpath_overrides_runpath=no
14741  hardcode_into_libs=yes
14742  ;;
14743
14744irix5* | irix6* | nonstopux*)
14745  case $host_os in
14746    nonstopux*) version_type=nonstopux ;;
14747    *)
14748	if test yes = "$lt_cv_prog_gnu_ld"; then
14749		version_type=linux # correct to gnu/linux during the next big refactor
14750	else
14751		version_type=irix
14752	fi ;;
14753  esac
14754  need_lib_prefix=no
14755  need_version=no
14756  soname_spec='$libname$release$shared_ext$major'
14757  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14758  case $host_os in
14759  irix5* | nonstopux*)
14760    libsuff= shlibsuff=
14761    ;;
14762  *)
14763    case $LD in # libtool.m4 will add one of these switches to LD
14764    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14765      libsuff= shlibsuff= libmagic=32-bit;;
14766    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14767      libsuff=32 shlibsuff=N32 libmagic=N32;;
14768    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14769      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14770    *) libsuff= shlibsuff= libmagic=never-match;;
14771    esac
14772    ;;
14773  esac
14774  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14775  shlibpath_overrides_runpath=no
14776  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14777  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14778  hardcode_into_libs=yes
14779  ;;
14780
14781# No shared lib support for Linux oldld, aout, or coff.
14782linux*oldld* | linux*aout* | linux*coff*)
14783  dynamic_linker=no
14784  ;;
14785
14786linux*android*)
14787  version_type=none # Android doesn't support versioned libraries.
14788  need_lib_prefix=no
14789  need_version=no
14790  library_names_spec='$libname$release$shared_ext'
14791  soname_spec='$libname$release$shared_ext'
14792  finish_cmds=
14793  shlibpath_var=LD_LIBRARY_PATH
14794  shlibpath_overrides_runpath=yes
14795
14796  # This implies no fast_install, which is unacceptable.
14797  # Some rework will be needed to allow for fast_install
14798  # before this can be enabled.
14799  hardcode_into_libs=yes
14800
14801  dynamic_linker='Android linker'
14802  # Don't embed -rpath directories since the linker doesn't support them.
14803  hardcode_libdir_flag_spec='-L$libdir'
14804  ;;
14805
14806# This must be glibc/ELF.
14807linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14808  version_type=linux # correct to gnu/linux during the next big refactor
14809  need_lib_prefix=no
14810  need_version=no
14811  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14812  soname_spec='$libname$release$shared_ext$major'
14813  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14814  shlibpath_var=LD_LIBRARY_PATH
14815  shlibpath_overrides_runpath=no
14816
14817  # Some binutils ld are patched to set DT_RUNPATH
14818  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14819  $as_echo_n "(cached) " >&6
14820else
14821  lt_cv_shlibpath_overrides_runpath=no
14822    save_LDFLAGS=$LDFLAGS
14823    save_libdir=$libdir
14824    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14825	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828
14829int
14830main ()
14831{
14832
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_link "$LINENO"; then :
14838  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14839  lt_cv_shlibpath_overrides_runpath=yes
14840fi
14841fi
14842rm -f core conftest.err conftest.$ac_objext \
14843    conftest$ac_exeext conftest.$ac_ext
14844    LDFLAGS=$save_LDFLAGS
14845    libdir=$save_libdir
14846
14847fi
14848
14849  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14850
14851  # This implies no fast_install, which is unacceptable.
14852  # Some rework will be needed to allow for fast_install
14853  # before this can be enabled.
14854  hardcode_into_libs=yes
14855
14856  # Ideally, we could use ldconfig to report *all* directores which are
14857  # searched for libraries, however this is still not possible.  Aside from not
14858  # being certain /sbin/ldconfig is available, command
14859  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14860  # even though it is searched at run-time.  Try to do the best guess by
14861  # appending ld.so.conf contents (and includes) to the search path.
14862  if test -f /etc/ld.so.conf; then
14863    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14864    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14865  fi
14866
14867  # We used to test for /lib/ld.so.1 and disable shared libraries on
14868  # powerpc, because MkLinux only supported shared libraries with the
14869  # GNU dynamic linker.  Since this was broken with cross compilers,
14870  # most powerpc-linux boxes support dynamic linking these days and
14871  # people can always --disable-shared, the test was removed, and we
14872  # assume the GNU/Linux dynamic linker is in use.
14873  dynamic_linker='GNU/Linux ld.so'
14874  ;;
14875
14876netbsdelf*-gnu)
14877  version_type=linux
14878  need_lib_prefix=no
14879  need_version=no
14880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14881  soname_spec='${libname}${release}${shared_ext}$major'
14882  shlibpath_var=LD_LIBRARY_PATH
14883  shlibpath_overrides_runpath=no
14884  hardcode_into_libs=yes
14885  dynamic_linker='NetBSD ld.elf_so'
14886  ;;
14887
14888netbsd*)
14889  version_type=sunos
14890  need_lib_prefix=no
14891  need_version=no
14892  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14893    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14894    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14895    dynamic_linker='NetBSD (a.out) ld.so'
14896  else
14897    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14898    soname_spec='$libname$release$shared_ext$major'
14899    dynamic_linker='NetBSD ld.elf_so'
14900  fi
14901  shlibpath_var=LD_LIBRARY_PATH
14902  shlibpath_overrides_runpath=yes
14903  hardcode_into_libs=yes
14904  ;;
14905
14906newsos6)
14907  version_type=linux # correct to gnu/linux during the next big refactor
14908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14909  shlibpath_var=LD_LIBRARY_PATH
14910  shlibpath_overrides_runpath=yes
14911  ;;
14912
14913*nto* | *qnx*)
14914  version_type=qnx
14915  need_lib_prefix=no
14916  need_version=no
14917  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14918  soname_spec='$libname$release$shared_ext$major'
14919  shlibpath_var=LD_LIBRARY_PATH
14920  shlibpath_overrides_runpath=no
14921  hardcode_into_libs=yes
14922  dynamic_linker='ldqnx.so'
14923  ;;
14924
14925openbsd* | bitrig*)
14926  version_type=sunos
14927  sys_lib_dlsearch_path_spec=/usr/lib
14928  need_lib_prefix=no
14929  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14930    need_version=no
14931  else
14932    need_version=yes
14933  fi
14934  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14935  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14936  shlibpath_var=LD_LIBRARY_PATH
14937  shlibpath_overrides_runpath=yes
14938  ;;
14939
14940os2*)
14941  libname_spec='$name'
14942  version_type=windows
14943  shrext_cmds=.dll
14944  need_version=no
14945  need_lib_prefix=no
14946  # OS/2 can only load a DLL with a base name of 8 characters or less.
14947  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14948    v=$($ECHO $release$versuffix | tr -d .-);
14949    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14950    $ECHO $n$v`$shared_ext'
14951  library_names_spec='${libname}_dll.$libext'
14952  dynamic_linker='OS/2 ld.exe'
14953  shlibpath_var=BEGINLIBPATH
14954  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14955  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14956  postinstall_cmds='base_file=`basename \$file`~
14957    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14958    dldir=$destdir/`dirname \$dlpath`~
14959    test -d \$dldir || mkdir -p \$dldir~
14960    $install_prog $dir/$dlname \$dldir/$dlname~
14961    chmod a+x \$dldir/$dlname~
14962    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14963      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14964    fi'
14965  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14966    dlpath=$dir/\$dldll~
14967    $RM \$dlpath'
14968  ;;
14969
14970osf3* | osf4* | osf5*)
14971  version_type=osf
14972  need_lib_prefix=no
14973  need_version=no
14974  soname_spec='$libname$release$shared_ext$major'
14975  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14976  shlibpath_var=LD_LIBRARY_PATH
14977  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14978  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14979  ;;
14980
14981rdos*)
14982  dynamic_linker=no
14983  ;;
14984
14985solaris*)
14986  version_type=linux # correct to gnu/linux during the next big refactor
14987  need_lib_prefix=no
14988  need_version=no
14989  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14990  soname_spec='$libname$release$shared_ext$major'
14991  shlibpath_var=LD_LIBRARY_PATH
14992  shlibpath_overrides_runpath=yes
14993  hardcode_into_libs=yes
14994  # ldd complains unless libraries are executable
14995  postinstall_cmds='chmod +x $lib'
14996  ;;
14997
14998sunos4*)
14999  version_type=sunos
15000  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15001  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15002  shlibpath_var=LD_LIBRARY_PATH
15003  shlibpath_overrides_runpath=yes
15004  if test yes = "$with_gnu_ld"; then
15005    need_lib_prefix=no
15006  fi
15007  need_version=yes
15008  ;;
15009
15010sysv4 | sysv4.3*)
15011  version_type=linux # correct to gnu/linux during the next big refactor
15012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15013  soname_spec='$libname$release$shared_ext$major'
15014  shlibpath_var=LD_LIBRARY_PATH
15015  case $host_vendor in
15016    sni)
15017      shlibpath_overrides_runpath=no
15018      need_lib_prefix=no
15019      runpath_var=LD_RUN_PATH
15020      ;;
15021    siemens)
15022      need_lib_prefix=no
15023      ;;
15024    motorola)
15025      need_lib_prefix=no
15026      need_version=no
15027      shlibpath_overrides_runpath=no
15028      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15029      ;;
15030  esac
15031  ;;
15032
15033sysv4*MP*)
15034  if test -d /usr/nec; then
15035    version_type=linux # correct to gnu/linux during the next big refactor
15036    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15037    soname_spec='$libname$shared_ext.$major'
15038    shlibpath_var=LD_LIBRARY_PATH
15039  fi
15040  ;;
15041
15042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15043  version_type=sco
15044  need_lib_prefix=no
15045  need_version=no
15046  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15047  soname_spec='$libname$release$shared_ext$major'
15048  shlibpath_var=LD_LIBRARY_PATH
15049  shlibpath_overrides_runpath=yes
15050  hardcode_into_libs=yes
15051  if test yes = "$with_gnu_ld"; then
15052    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15053  else
15054    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15055    case $host_os in
15056      sco3.2v5*)
15057        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15058	;;
15059    esac
15060  fi
15061  sys_lib_dlsearch_path_spec='/usr/lib'
15062  ;;
15063
15064tpf*)
15065  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15066  version_type=linux # correct to gnu/linux during the next big refactor
15067  need_lib_prefix=no
15068  need_version=no
15069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15070  shlibpath_var=LD_LIBRARY_PATH
15071  shlibpath_overrides_runpath=no
15072  hardcode_into_libs=yes
15073  ;;
15074
15075uts4*)
15076  version_type=linux # correct to gnu/linux during the next big refactor
15077  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15078  soname_spec='$libname$release$shared_ext$major'
15079  shlibpath_var=LD_LIBRARY_PATH
15080  ;;
15081
15082*)
15083  dynamic_linker=no
15084  ;;
15085esac
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15087$as_echo "$dynamic_linker" >&6; }
15088test no = "$dynamic_linker" && can_build_shared=no
15089
15090variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15091if test yes = "$GCC"; then
15092  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15093fi
15094
15095if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15096  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15097fi
15098
15099if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15100  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15101fi
15102
15103# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15104configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15105
15106# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15107func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15108
15109# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15110configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15209$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15210hardcode_action=
15211if test -n "$hardcode_libdir_flag_spec" ||
15212   test -n "$runpath_var" ||
15213   test yes = "$hardcode_automatic"; then
15214
15215  # We can hardcode non-existent directories.
15216  if test no != "$hardcode_direct" &&
15217     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15218     # have to relink, otherwise we might link with an installed library
15219     # when we should be linking with a yet-to-be-installed one
15220     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15221     test no != "$hardcode_minus_L"; then
15222    # Linking always hardcodes the temporary library directory.
15223    hardcode_action=relink
15224  else
15225    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15226    hardcode_action=immediate
15227  fi
15228else
15229  # We cannot hardcode anything, or else we can only hardcode existing
15230  # directories.
15231  hardcode_action=unsupported
15232fi
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15234$as_echo "$hardcode_action" >&6; }
15235
15236if test relink = "$hardcode_action" ||
15237   test yes = "$inherit_rpath"; then
15238  # Fast installation is not supported
15239  enable_fast_install=no
15240elif test yes = "$shlibpath_overrides_runpath" ||
15241     test no = "$enable_shared"; then
15242  # Fast installation is not necessary
15243  enable_fast_install=needless
15244fi
15245
15246
15247
15248
15249
15250
15251  if test yes != "$enable_dlopen"; then
15252  enable_dlopen=unknown
15253  enable_dlopen_self=unknown
15254  enable_dlopen_self_static=unknown
15255else
15256  lt_cv_dlopen=no
15257  lt_cv_dlopen_libs=
15258
15259  case $host_os in
15260  beos*)
15261    lt_cv_dlopen=load_add_on
15262    lt_cv_dlopen_libs=
15263    lt_cv_dlopen_self=yes
15264    ;;
15265
15266  mingw* | pw32* | cegcc*)
15267    lt_cv_dlopen=LoadLibrary
15268    lt_cv_dlopen_libs=
15269    ;;
15270
15271  cygwin*)
15272    lt_cv_dlopen=dlopen
15273    lt_cv_dlopen_libs=
15274    ;;
15275
15276  darwin*)
15277    # if libdl is installed we need to link against it
15278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15279$as_echo_n "checking for dlopen in -ldl... " >&6; }
15280if ${ac_cv_lib_dl_dlopen+:} false; then :
15281  $as_echo_n "(cached) " >&6
15282else
15283  ac_check_lib_save_LIBS=$LIBS
15284LIBS="-ldl  $LIBS"
15285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h.  */
15287
15288/* Override any GCC internal prototype to avoid an error.
15289   Use char because int might match the return type of a GCC
15290   builtin and then its argument prototype would still apply.  */
15291#ifdef __cplusplus
15292extern "C"
15293#endif
15294char dlopen ();
15295int
15296main ()
15297{
15298return dlopen ();
15299  ;
15300  return 0;
15301}
15302_ACEOF
15303if ac_fn_c_try_link "$LINENO"; then :
15304  ac_cv_lib_dl_dlopen=yes
15305else
15306  ac_cv_lib_dl_dlopen=no
15307fi
15308rm -f core conftest.err conftest.$ac_objext \
15309    conftest$ac_exeext conftest.$ac_ext
15310LIBS=$ac_check_lib_save_LIBS
15311fi
15312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15313$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15314if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15315  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15316else
15317
15318    lt_cv_dlopen=dyld
15319    lt_cv_dlopen_libs=
15320    lt_cv_dlopen_self=yes
15321
15322fi
15323
15324    ;;
15325
15326  tpf*)
15327    # Don't try to run any link tests for TPF.  We know it's impossible
15328    # because TPF is a cross-compiler, and we know how we open DSOs.
15329    lt_cv_dlopen=dlopen
15330    lt_cv_dlopen_libs=
15331    lt_cv_dlopen_self=no
15332    ;;
15333
15334  *)
15335    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15336if test "x$ac_cv_func_shl_load" = xyes; then :
15337  lt_cv_dlopen=shl_load
15338else
15339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15340$as_echo_n "checking for shl_load in -ldld... " >&6; }
15341if ${ac_cv_lib_dld_shl_load+:} false; then :
15342  $as_echo_n "(cached) " >&6
15343else
15344  ac_check_lib_save_LIBS=$LIBS
15345LIBS="-ldld  $LIBS"
15346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347/* end confdefs.h.  */
15348
15349/* Override any GCC internal prototype to avoid an error.
15350   Use char because int might match the return type of a GCC
15351   builtin and then its argument prototype would still apply.  */
15352#ifdef __cplusplus
15353extern "C"
15354#endif
15355char shl_load ();
15356int
15357main ()
15358{
15359return shl_load ();
15360  ;
15361  return 0;
15362}
15363_ACEOF
15364if ac_fn_c_try_link "$LINENO"; then :
15365  ac_cv_lib_dld_shl_load=yes
15366else
15367  ac_cv_lib_dld_shl_load=no
15368fi
15369rm -f core conftest.err conftest.$ac_objext \
15370    conftest$ac_exeext conftest.$ac_ext
15371LIBS=$ac_check_lib_save_LIBS
15372fi
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15374$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15375if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15376  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15377else
15378  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15379if test "x$ac_cv_func_dlopen" = xyes; then :
15380  lt_cv_dlopen=dlopen
15381else
15382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15383$as_echo_n "checking for dlopen in -ldl... " >&6; }
15384if ${ac_cv_lib_dl_dlopen+:} false; then :
15385  $as_echo_n "(cached) " >&6
15386else
15387  ac_check_lib_save_LIBS=$LIBS
15388LIBS="-ldl  $LIBS"
15389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390/* end confdefs.h.  */
15391
15392/* Override any GCC internal prototype to avoid an error.
15393   Use char because int might match the return type of a GCC
15394   builtin and then its argument prototype would still apply.  */
15395#ifdef __cplusplus
15396extern "C"
15397#endif
15398char dlopen ();
15399int
15400main ()
15401{
15402return dlopen ();
15403  ;
15404  return 0;
15405}
15406_ACEOF
15407if ac_fn_c_try_link "$LINENO"; then :
15408  ac_cv_lib_dl_dlopen=yes
15409else
15410  ac_cv_lib_dl_dlopen=no
15411fi
15412rm -f core conftest.err conftest.$ac_objext \
15413    conftest$ac_exeext conftest.$ac_ext
15414LIBS=$ac_check_lib_save_LIBS
15415fi
15416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15417$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15418if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15419  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15420else
15421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15422$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15423if ${ac_cv_lib_svld_dlopen+:} false; then :
15424  $as_echo_n "(cached) " >&6
15425else
15426  ac_check_lib_save_LIBS=$LIBS
15427LIBS="-lsvld  $LIBS"
15428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h.  */
15430
15431/* Override any GCC internal prototype to avoid an error.
15432   Use char because int might match the return type of a GCC
15433   builtin and then its argument prototype would still apply.  */
15434#ifdef __cplusplus
15435extern "C"
15436#endif
15437char dlopen ();
15438int
15439main ()
15440{
15441return dlopen ();
15442  ;
15443  return 0;
15444}
15445_ACEOF
15446if ac_fn_c_try_link "$LINENO"; then :
15447  ac_cv_lib_svld_dlopen=yes
15448else
15449  ac_cv_lib_svld_dlopen=no
15450fi
15451rm -f core conftest.err conftest.$ac_objext \
15452    conftest$ac_exeext conftest.$ac_ext
15453LIBS=$ac_check_lib_save_LIBS
15454fi
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15456$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15457if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15458  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15459else
15460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15461$as_echo_n "checking for dld_link in -ldld... " >&6; }
15462if ${ac_cv_lib_dld_dld_link+:} false; then :
15463  $as_echo_n "(cached) " >&6
15464else
15465  ac_check_lib_save_LIBS=$LIBS
15466LIBS="-ldld  $LIBS"
15467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468/* end confdefs.h.  */
15469
15470/* Override any GCC internal prototype to avoid an error.
15471   Use char because int might match the return type of a GCC
15472   builtin and then its argument prototype would still apply.  */
15473#ifdef __cplusplus
15474extern "C"
15475#endif
15476char dld_link ();
15477int
15478main ()
15479{
15480return dld_link ();
15481  ;
15482  return 0;
15483}
15484_ACEOF
15485if ac_fn_c_try_link "$LINENO"; then :
15486  ac_cv_lib_dld_dld_link=yes
15487else
15488  ac_cv_lib_dld_dld_link=no
15489fi
15490rm -f core conftest.err conftest.$ac_objext \
15491    conftest$ac_exeext conftest.$ac_ext
15492LIBS=$ac_check_lib_save_LIBS
15493fi
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15495$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15496if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15497  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15498fi
15499
15500
15501fi
15502
15503
15504fi
15505
15506
15507fi
15508
15509
15510fi
15511
15512
15513fi
15514
15515    ;;
15516  esac
15517
15518  if test no = "$lt_cv_dlopen"; then
15519    enable_dlopen=no
15520  else
15521    enable_dlopen=yes
15522  fi
15523
15524  case $lt_cv_dlopen in
15525  dlopen)
15526    save_CPPFLAGS=$CPPFLAGS
15527    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15528
15529    save_LDFLAGS=$LDFLAGS
15530    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15531
15532    save_LIBS=$LIBS
15533    LIBS="$lt_cv_dlopen_libs $LIBS"
15534
15535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15536$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15537if ${lt_cv_dlopen_self+:} false; then :
15538  $as_echo_n "(cached) " >&6
15539else
15540  	  if test yes = "$cross_compiling"; then :
15541  lt_cv_dlopen_self=cross
15542else
15543  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15544  lt_status=$lt_dlunknown
15545  cat > conftest.$ac_ext <<_LT_EOF
15546#line $LINENO "configure"
15547#include "confdefs.h"
15548
15549#if HAVE_DLFCN_H
15550#include <dlfcn.h>
15551#endif
15552
15553#include <stdio.h>
15554
15555#ifdef RTLD_GLOBAL
15556#  define LT_DLGLOBAL		RTLD_GLOBAL
15557#else
15558#  ifdef DL_GLOBAL
15559#    define LT_DLGLOBAL		DL_GLOBAL
15560#  else
15561#    define LT_DLGLOBAL		0
15562#  endif
15563#endif
15564
15565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15566   find out it does not work in some platform. */
15567#ifndef LT_DLLAZY_OR_NOW
15568#  ifdef RTLD_LAZY
15569#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15570#  else
15571#    ifdef DL_LAZY
15572#      define LT_DLLAZY_OR_NOW		DL_LAZY
15573#    else
15574#      ifdef RTLD_NOW
15575#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15576#      else
15577#        ifdef DL_NOW
15578#          define LT_DLLAZY_OR_NOW	DL_NOW
15579#        else
15580#          define LT_DLLAZY_OR_NOW	0
15581#        endif
15582#      endif
15583#    endif
15584#  endif
15585#endif
15586
15587/* When -fvisibility=hidden is used, assume the code has been annotated
15588   correspondingly for the symbols needed.  */
15589#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15590int fnord () __attribute__((visibility("default")));
15591#endif
15592
15593int fnord () { return 42; }
15594int main ()
15595{
15596  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15597  int status = $lt_dlunknown;
15598
15599  if (self)
15600    {
15601      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15602      else
15603        {
15604	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15605          else puts (dlerror ());
15606	}
15607      /* dlclose (self); */
15608    }
15609  else
15610    puts (dlerror ());
15611
15612  return status;
15613}
15614_LT_EOF
15615  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15616  (eval $ac_link) 2>&5
15617  ac_status=$?
15618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15619  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15620    (./conftest; exit; ) >&5 2>/dev/null
15621    lt_status=$?
15622    case x$lt_status in
15623      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15624      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15625      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15626    esac
15627  else :
15628    # compilation failed
15629    lt_cv_dlopen_self=no
15630  fi
15631fi
15632rm -fr conftest*
15633
15634
15635fi
15636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15637$as_echo "$lt_cv_dlopen_self" >&6; }
15638
15639    if test yes = "$lt_cv_dlopen_self"; then
15640      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15641      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15642$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15643if ${lt_cv_dlopen_self_static+:} false; then :
15644  $as_echo_n "(cached) " >&6
15645else
15646  	  if test yes = "$cross_compiling"; then :
15647  lt_cv_dlopen_self_static=cross
15648else
15649  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15650  lt_status=$lt_dlunknown
15651  cat > conftest.$ac_ext <<_LT_EOF
15652#line $LINENO "configure"
15653#include "confdefs.h"
15654
15655#if HAVE_DLFCN_H
15656#include <dlfcn.h>
15657#endif
15658
15659#include <stdio.h>
15660
15661#ifdef RTLD_GLOBAL
15662#  define LT_DLGLOBAL		RTLD_GLOBAL
15663#else
15664#  ifdef DL_GLOBAL
15665#    define LT_DLGLOBAL		DL_GLOBAL
15666#  else
15667#    define LT_DLGLOBAL		0
15668#  endif
15669#endif
15670
15671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15672   find out it does not work in some platform. */
15673#ifndef LT_DLLAZY_OR_NOW
15674#  ifdef RTLD_LAZY
15675#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15676#  else
15677#    ifdef DL_LAZY
15678#      define LT_DLLAZY_OR_NOW		DL_LAZY
15679#    else
15680#      ifdef RTLD_NOW
15681#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15682#      else
15683#        ifdef DL_NOW
15684#          define LT_DLLAZY_OR_NOW	DL_NOW
15685#        else
15686#          define LT_DLLAZY_OR_NOW	0
15687#        endif
15688#      endif
15689#    endif
15690#  endif
15691#endif
15692
15693/* When -fvisibility=hidden is used, assume the code has been annotated
15694   correspondingly for the symbols needed.  */
15695#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15696int fnord () __attribute__((visibility("default")));
15697#endif
15698
15699int fnord () { return 42; }
15700int main ()
15701{
15702  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15703  int status = $lt_dlunknown;
15704
15705  if (self)
15706    {
15707      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15708      else
15709        {
15710	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15711          else puts (dlerror ());
15712	}
15713      /* dlclose (self); */
15714    }
15715  else
15716    puts (dlerror ());
15717
15718  return status;
15719}
15720_LT_EOF
15721  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15722  (eval $ac_link) 2>&5
15723  ac_status=$?
15724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15726    (./conftest; exit; ) >&5 2>/dev/null
15727    lt_status=$?
15728    case x$lt_status in
15729      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15730      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15731      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15732    esac
15733  else :
15734    # compilation failed
15735    lt_cv_dlopen_self_static=no
15736  fi
15737fi
15738rm -fr conftest*
15739
15740
15741fi
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15743$as_echo "$lt_cv_dlopen_self_static" >&6; }
15744    fi
15745
15746    CPPFLAGS=$save_CPPFLAGS
15747    LDFLAGS=$save_LDFLAGS
15748    LIBS=$save_LIBS
15749    ;;
15750  esac
15751
15752  case $lt_cv_dlopen_self in
15753  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15754  *) enable_dlopen_self=unknown ;;
15755  esac
15756
15757  case $lt_cv_dlopen_self_static in
15758  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15759  *) enable_dlopen_self_static=unknown ;;
15760  esac
15761fi
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779striplib=
15780old_striplib=
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15782$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15783if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15784  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15785  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15787$as_echo "yes" >&6; }
15788else
15789# FIXME - insert some real tests, host_os isn't really good enough
15790  case $host_os in
15791  darwin*)
15792    if test -n "$STRIP"; then
15793      striplib="$STRIP -x"
15794      old_striplib="$STRIP -S"
15795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15796$as_echo "yes" >&6; }
15797    else
15798      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799$as_echo "no" >&6; }
15800    fi
15801    ;;
15802  *)
15803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804$as_echo "no" >&6; }
15805    ;;
15806  esac
15807fi
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820  # Report what library types will actually be built
15821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15822$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15824$as_echo "$can_build_shared" >&6; }
15825
15826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15827$as_echo_n "checking whether to build shared libraries... " >&6; }
15828  test no = "$can_build_shared" && enable_shared=no
15829
15830  # On AIX, shared libraries and static libraries use the same namespace, and
15831  # are all built from PIC.
15832  case $host_os in
15833  aix3*)
15834    test yes = "$enable_shared" && enable_static=no
15835    if test -n "$RANLIB"; then
15836      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15837      postinstall_cmds='$RANLIB $lib'
15838    fi
15839    ;;
15840
15841  aix[4-9]*)
15842    if test ia64 != "$host_cpu"; then
15843      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15844      yes,aix,yes) ;;			# shared object as lib.so file only
15845      yes,svr4,*) ;;			# shared object as lib.so archive member only
15846      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15847      esac
15848    fi
15849    ;;
15850  esac
15851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15852$as_echo "$enable_shared" >&6; }
15853
15854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15855$as_echo_n "checking whether to build static libraries... " >&6; }
15856  # Make sure either enable_shared or enable_static is yes.
15857  test yes = "$enable_shared" || enable_static=yes
15858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15859$as_echo "$enable_static" >&6; }
15860
15861
15862
15863
15864fi
15865ac_ext=c
15866ac_cpp='$CPP $CPPFLAGS'
15867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870
15871CC=$lt_save_CC
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887        ac_config_commands="$ac_config_commands libtool"
15888
15889
15890
15891
15892# Only expand once:
15893
15894
15895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15896$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15897if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
15898  $as_echo_n "(cached) " >&6
15899else
15900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h.  */
15902#include <sys/types.h>
15903#include <termios.h>
15904#ifdef TIOCGWINSZ
15905  yes
15906#endif
15907
15908_ACEOF
15909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15910  $EGREP "yes" >/dev/null 2>&1; then :
15911  ac_cv_sys_tiocgwinsz_in_termios_h=yes
15912else
15913  ac_cv_sys_tiocgwinsz_in_termios_h=no
15914fi
15915rm -f conftest*
15916
15917fi
15918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15919$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15920
15921if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15923$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15924if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
15925  $as_echo_n "(cached) " >&6
15926else
15927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928/* end confdefs.h.  */
15929#include <sys/types.h>
15930#include <sys/ioctl.h>
15931#ifdef TIOCGWINSZ
15932  yes
15933#endif
15934
15935_ACEOF
15936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15937  $EGREP "yes" >/dev/null 2>&1; then :
15938  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
15939else
15940  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
15941fi
15942rm -f conftest*
15943
15944fi
15945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15946$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15947
15948  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15949
15950$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15951
15952  fi
15953fi
15954
15955
15956
15957
15958
15959
15960
15961
15962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15963	if test -n "$ac_tool_prefix"; then
15964  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15967$as_echo_n "checking for $ac_word... " >&6; }
15968if ${ac_cv_path_PKG_CONFIG+:} false; then :
15969  $as_echo_n "(cached) " >&6
15970else
15971  case $PKG_CONFIG in
15972  [\\/]* | ?:[\\/]*)
15973  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15974  ;;
15975  *)
15976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977for as_dir in $PATH
15978do
15979  IFS=$as_save_IFS
15980  test -z "$as_dir" && as_dir=.
15981    for ac_exec_ext in '' $ac_executable_extensions; do
15982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15983    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15985    break 2
15986  fi
15987done
15988  done
15989IFS=$as_save_IFS
15990
15991  ;;
15992esac
15993fi
15994PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15995if test -n "$PKG_CONFIG"; then
15996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15997$as_echo "$PKG_CONFIG" >&6; }
15998else
15999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000$as_echo "no" >&6; }
16001fi
16002
16003
16004fi
16005if test -z "$ac_cv_path_PKG_CONFIG"; then
16006  ac_pt_PKG_CONFIG=$PKG_CONFIG
16007  # Extract the first word of "pkg-config", so it can be a program name with args.
16008set dummy pkg-config; ac_word=$2
16009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16010$as_echo_n "checking for $ac_word... " >&6; }
16011if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16012  $as_echo_n "(cached) " >&6
16013else
16014  case $ac_pt_PKG_CONFIG in
16015  [\\/]* | ?:[\\/]*)
16016  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16017  ;;
16018  *)
16019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16020for as_dir in $PATH
16021do
16022  IFS=$as_save_IFS
16023  test -z "$as_dir" && as_dir=.
16024    for ac_exec_ext in '' $ac_executable_extensions; do
16025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16026    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16028    break 2
16029  fi
16030done
16031  done
16032IFS=$as_save_IFS
16033
16034  ;;
16035esac
16036fi
16037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16038if test -n "$ac_pt_PKG_CONFIG"; then
16039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16040$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16041else
16042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043$as_echo "no" >&6; }
16044fi
16045
16046  if test "x$ac_pt_PKG_CONFIG" = x; then
16047    PKG_CONFIG=""
16048  else
16049    case $cross_compiling:$ac_tool_warned in
16050yes:)
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16053ac_tool_warned=yes ;;
16054esac
16055    PKG_CONFIG=$ac_pt_PKG_CONFIG
16056  fi
16057else
16058  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16059fi
16060
16061fi
16062if test -n "$PKG_CONFIG"; then
16063	_pkg_min_version=0.9.0
16064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16065$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16066	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16068$as_echo "yes" >&6; }
16069	else
16070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071$as_echo "no" >&6; }
16072		PKG_CONFIG=""
16073	fi
16074fi
16075
16076  # Defines MAKEINFO
16077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether makeinfo supports @clicksequence" >&5
16078$as_echo_n "checking whether makeinfo supports @clicksequence... " >&6; }
16079if ${pspp_cv_have_clicksequence+:} false; then :
16080  $as_echo_n "(cached) " >&6
16081else
16082  cat > conftest.texi  <<EOF
16083@setfilename conftest.info
16084@clicksequence{File @click{} Open}
16085EOF
16086      echo "configure:16086: running $MAKEINFO conftest.texi >&5" >&5
16087      eval "$MAKEINFO conftest.texi >&5 2>&1"
16088      retval=$?
16089      echo "configure:16089: \$? = $retval" >&5
16090      if test $retval = 0; then
16091	pspp_cv_have_clicksequence=yes
16092      else
16093	pspp_cv_have_clicksequence=no
16094      fi
16095      rm -f conftest.texi conftest.info
16096fi
16097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_have_clicksequence" >&5
16098$as_echo "$pspp_cv_have_clicksequence" >&6; }
16099   if test $pspp_cv_have_clicksequence = no; then
16100       AM_MAKEINFOFLAGS="$AM_MAKEINFOFLAGS -DMISSING_CLICKSEQUENCE"
16101
16102   fi
16103  # Defines MAKEINFO
16104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether makeinfo generates broken DocBook XML" >&5
16105$as_echo_n "checking whether makeinfo generates broken DocBook XML... " >&6; }
16106if ${pspp_cv_broken_docbook_xml+:} false; then :
16107  $as_echo_n "(cached) " >&6
16108else
16109  case $(eval "$MAKEINFO --version | head -1") in #(
16110  *texinfo*4.13*) :
16111    pspp_cv_broken_docbook_xml=yes ;; #(
16112  *texinfo*) :
16113    pspp_cv_broken_docbook_xml=no ;; #(
16114  *) :
16115    pspp_cv_broken_docbook_xml=yes ;; #(
16116  *) :
16117     ;;
16118esac
16119fi
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_broken_docbook_xml" >&5
16121$as_echo "$pspp_cv_broken_docbook_xml" >&6; }
16122    if test "$pspp_cv_broken_docbook_xml" = yes; then
16123  BROKEN_DOCBOOK_XML_TRUE=
16124  BROKEN_DOCBOOK_XML_FALSE='#'
16125else
16126  BROKEN_DOCBOOK_XML_TRUE='#'
16127  BROKEN_DOCBOOK_XML_FALSE=
16128fi
16129
16130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dot" >&5
16131$as_echo_n "checking for dot... " >&6; }
16132if ${pspp_cv_dot+:} false; then :
16133  $as_echo_n "(cached) " >&6
16134else
16135       if (dot -V) 2>&1 | grep '^dot - [gG]raphviz version' >/dev/null 2>&1; then
16136       pspp_cv_dot=yes
16137     else
16138       pspp_cv_dot=no
16139     fi
16140fi
16141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_dot" >&5
16142$as_echo "$pspp_cv_dot" >&6; }
16143    if test "$pspp_cv_dot" = yes; then
16144  HAVE_DOT_TRUE=
16145  HAVE_DOT_FALSE='#'
16146else
16147  HAVE_DOT_TRUE='#'
16148  HAVE_DOT_FALSE=
16149fi
16150
16151
16152# Check whether --enable-Werror was given.
16153if test "${enable_Werror+set}" = set; then :
16154  enableval=$enable_Werror;
16155else
16156  enable_Werror=no
16157fi
16158
16159
16160
16161 if test x"$GCC" = x"yes" ; then
16162  cc_is_gcc_TRUE=
16163  cc_is_gcc_FALSE='#'
16164else
16165  cc_is_gcc_TRUE='#'
16166  cc_is_gcc_FALSE=
16167fi
16168
16169
16170# Put a plausible default for CC_FOR_BUILD in Makefile.
16171if test -z "$CC_FOR_BUILD"; then
16172  if test "x$cross_compiling" = "xno"; then
16173    CC_FOR_BUILD='$(CC)'
16174  else
16175    CC_FOR_BUILD=cc
16176  fi
16177fi
16178
16179# Also set EXEEXT_FOR_BUILD.
16180if test "x$cross_compiling" = "xno"; then
16181  EXEEXT_FOR_BUILD='$(EXEEXT)'
16182else
16183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
16184$as_echo_n "checking for build system executable suffix... " >&6; }
16185if ${pspp_cv_build_exeext+:} false; then :
16186  $as_echo_n "(cached) " >&6
16187else
16188  rm -f conftest*
16189     echo 'int main () { return 0; }' > conftest.c
16190     pspp_cv_build_exeext=
16191     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
16192     for file in conftest.*; do
16193       case $file in # (
16194       *.c | *.o | *.obj | *.ilk | *.pdb) ;; # (
16195       *) pspp_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
16196       esac
16197     done
16198     rm -f conftest*
16199     test x"${pspp_cv_build_exeext}" = x && pspp_cv_build_exeext=no
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_build_exeext" >&5
16202$as_echo "$pspp_cv_build_exeext" >&6; }
16203  EXEEXT_FOR_BUILD=""
16204  test x"${pspp_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${pspp_cv_build_exeext}
16205fi
16206
16207
16208  # Extract the first word of "perl", so it can be a program name with args.
16209set dummy perl; ac_word=$2
16210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16211$as_echo_n "checking for $ac_word... " >&6; }
16212if ${ac_cv_path_PERL+:} false; then :
16213  $as_echo_n "(cached) " >&6
16214else
16215  case $PERL in
16216  [\\/]* | ?:[\\/]*)
16217  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16218  ;;
16219  *)
16220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16221for as_dir in $PATH
16222do
16223  IFS=$as_save_IFS
16224  test -z "$as_dir" && as_dir=.
16225    for ac_exec_ext in '' $ac_executable_extensions; do
16226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16227    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16229    break 2
16230  fi
16231done
16232  done
16233IFS=$as_save_IFS
16234
16235  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
16236  ;;
16237esac
16238fi
16239PERL=$ac_cv_path_PERL
16240if test -n "$PERL"; then
16241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16242$as_echo "$PERL" >&6; }
16243else
16244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245$as_echo "no" >&6; }
16246fi
16247
16248
16249    if test "$PERL" != no && $PERL -e 'require 5.005_03;'; then :; else
16250    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install Perl 5.005_03 (or later) before building PSPP." >&5
16251$as_echo "$as_me: WARNING: You must install Perl 5.005_03 (or later) before building PSPP." >&2;}
16252pspp_required_prereqs="$pspp_required_prereqs
16253	Perl 5.005_03 (or later)"
16254  fi
16255
16256  # The PSPP autobuilder appends a build number to the PSPP version number,
16257  # e.g. "0.7.2-build40".  But Perl won't parse version numbers that contain
16258  # anything other than digits and periods, so "-build" causes an error.  So we
16259  # define $(VERSION_FOR_PERL) that drops everything from the hyphen onward.
16260  VERSION_FOR_PERL=`echo "$VERSION" | sed 's/-.*//'`
16261
16262
16263
16264   for ac_prog in python python2 python3
16265do
16266  # Extract the first word of "$ac_prog", so it can be a program name with args.
16267set dummy $ac_prog; ac_word=$2
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16269$as_echo_n "checking for $ac_word... " >&6; }
16270if ${ac_cv_prog_PYTHON+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  if test -n "$PYTHON"; then
16274  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
16275else
16276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16277for as_dir in $PATH
16278do
16279  IFS=$as_save_IFS
16280  test -z "$as_dir" && as_dir=.
16281    for ac_exec_ext in '' $ac_executable_extensions; do
16282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16283    ac_cv_prog_PYTHON="$ac_prog"
16284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16285    break 2
16286  fi
16287done
16288  done
16289IFS=$as_save_IFS
16290
16291fi
16292fi
16293PYTHON=$ac_cv_prog_PYTHON
16294if test -n "$PYTHON"; then
16295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16296$as_echo "$PYTHON" >&6; }
16297else
16298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299$as_echo "no" >&6; }
16300fi
16301
16302
16303  test -n "$PYTHON" && break
16304done
16305test -n "$PYTHON" || PYTHON="none"
16306
16307
16308# This suppresses an error in gl/careadlinkat.c that otherwise can't be
16309# avoided in GCC 10.x:
16310#   ../../gl/careadlinkat.c: In function ‘careadlinkat’:
16311#   cc1: error: function may return address of local variable
16312CFLAGS="$CFLAGS -DGCC_LINT"
16313
16314
16315
16316      if test "X$prefix" = "XNONE"; then
16317    acl_final_prefix="$ac_default_prefix"
16318  else
16319    acl_final_prefix="$prefix"
16320  fi
16321  if test "X$exec_prefix" = "XNONE"; then
16322    acl_final_exec_prefix='${prefix}'
16323  else
16324    acl_final_exec_prefix="$exec_prefix"
16325  fi
16326  acl_save_prefix="$prefix"
16327  prefix="$acl_final_prefix"
16328  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16329  prefix="$acl_save_prefix"
16330
16331
16332
16333# Check whether --with-gnu-ld was given.
16334if test "${with_gnu_ld+set}" = set; then :
16335  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16336else
16337  with_gnu_ld=no
16338fi
16339
16340# Prepare PATH_SEPARATOR.
16341# The user is always right.
16342if test "${PATH_SEPARATOR+set}" != set; then
16343  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16344  # contains only /bin. Note that ksh looks also at the FPATH variable,
16345  # so we have to set that as well for the test.
16346  PATH_SEPARATOR=:
16347  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16348    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16349           || PATH_SEPARATOR=';'
16350       }
16351fi
16352
16353if test -n "$LD"; then
16354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
16355$as_echo_n "checking for ld... " >&6; }
16356elif test "$GCC" = yes; then
16357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16358$as_echo_n "checking for ld used by $CC... " >&6; }
16359elif test "$with_gnu_ld" = yes; then
16360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16361$as_echo_n "checking for GNU ld... " >&6; }
16362else
16363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16364$as_echo_n "checking for non-GNU ld... " >&6; }
16365fi
16366if test -n "$LD"; then
16367  # Let the user override the test with a path.
16368  :
16369else
16370  if ${acl_cv_path_LD+:} false; then :
16371  $as_echo_n "(cached) " >&6
16372else
16373
16374    acl_cv_path_LD= # Final result of this test
16375    ac_prog=ld # Program to search in $PATH
16376    if test "$GCC" = yes; then
16377      # Check if gcc -print-prog-name=ld gives a path.
16378      case $host in
16379        *-*-mingw*)
16380          # gcc leaves a trailing carriage return which upsets mingw
16381          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16382        *)
16383          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
16384      esac
16385      case $acl_output in
16386        # Accept absolute paths.
16387        [\\/]* | ?:[\\/]*)
16388          re_direlt='/[^/][^/]*/\.\./'
16389          # Canonicalize the pathname of ld
16390          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
16391          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
16392            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
16393          done
16394          # Got the pathname. No search in PATH is needed.
16395          acl_cv_path_LD="$acl_output"
16396          ac_prog=
16397          ;;
16398        "")
16399          # If it fails, then pretend we aren't using GCC.
16400          ;;
16401        *)
16402          # If it is relative, then search for the first ld in PATH.
16403          with_gnu_ld=unknown
16404          ;;
16405      esac
16406    fi
16407    if test -n "$ac_prog"; then
16408      # Search for $ac_prog in $PATH.
16409      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16410      for ac_dir in $PATH; do
16411        IFS="$acl_save_ifs"
16412        test -z "$ac_dir" && ac_dir=.
16413        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16414          acl_cv_path_LD="$ac_dir/$ac_prog"
16415          # Check to see if the program is GNU ld.  I'd rather use --version,
16416          # but apparently some variants of GNU ld only accept -v.
16417          # Break only if it was the GNU/non-GNU ld that we prefer.
16418          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16419            *GNU* | *'with BFD'*)
16420              test "$with_gnu_ld" != no && break
16421              ;;
16422            *)
16423              test "$with_gnu_ld" != yes && break
16424              ;;
16425          esac
16426        fi
16427      done
16428      IFS="$acl_save_ifs"
16429    fi
16430    case $host in
16431      *-*-aix*)
16432        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433/* end confdefs.h.  */
16434#if defined __powerpc64__ || defined _ARCH_PPC64
16435                int ok;
16436               #else
16437                error fail
16438               #endif
16439
16440_ACEOF
16441if ac_fn_c_try_compile "$LINENO"; then :
16442  # The compiler produces 64-bit code. Add option '-b64' so that the
16443           # linker groks 64-bit object files.
16444           case "$acl_cv_path_LD " in
16445             *" -b64 "*) ;;
16446             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
16447           esac
16448
16449fi
16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451        ;;
16452      sparc64-*-netbsd*)
16453        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454/* end confdefs.h.  */
16455#if defined __sparcv9 || defined __arch64__
16456                int ok;
16457               #else
16458                error fail
16459               #endif
16460
16461_ACEOF
16462if ac_fn_c_try_compile "$LINENO"; then :
16463
16464else
16465  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
16466           # so that the linker groks 32-bit object files.
16467           case "$acl_cv_path_LD " in
16468             *" -m elf32_sparc "*) ;;
16469             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
16470           esac
16471
16472fi
16473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474        ;;
16475    esac
16476
16477fi
16478
16479  LD="$acl_cv_path_LD"
16480fi
16481if test -n "$LD"; then
16482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16483$as_echo "$LD" >&6; }
16484else
16485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16486$as_echo "no" >&6; }
16487  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16488fi
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16490$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16491if ${acl_cv_prog_gnu_ld+:} false; then :
16492  $as_echo_n "(cached) " >&6
16493else
16494  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16495case `$LD -v 2>&1 </dev/null` in
16496*GNU* | *'with BFD'*)
16497  acl_cv_prog_gnu_ld=yes
16498  ;;
16499*)
16500  acl_cv_prog_gnu_ld=no
16501  ;;
16502esac
16503fi
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16505$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16506with_gnu_ld=$acl_cv_prog_gnu_ld
16507
16508
16509
16510
16511                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16512$as_echo_n "checking for shared library run path origin... " >&6; }
16513if ${acl_cv_rpath+:} false; then :
16514  $as_echo_n "(cached) " >&6
16515else
16516
16517    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16518    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16519    . ./conftest.sh
16520    rm -f ./conftest.sh
16521    acl_cv_rpath=done
16522
16523fi
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16525$as_echo "$acl_cv_rpath" >&6; }
16526  wl="$acl_cv_wl"
16527  acl_libext="$acl_cv_libext"
16528  acl_shlibext="$acl_cv_shlibext"
16529  acl_libname_spec="$acl_cv_libname_spec"
16530  acl_library_names_spec="$acl_cv_library_names_spec"
16531  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16532  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16533  acl_hardcode_direct="$acl_cv_hardcode_direct"
16534  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16535    # Check whether --enable-rpath was given.
16536if test "${enable_rpath+set}" = set; then :
16537  enableval=$enable_rpath; :
16538else
16539  enable_rpath=yes
16540fi
16541
16542
16543
16544
16545  acl_libdirstem=lib
16546  acl_libdirstem2=
16547  case "$host_os" in
16548    solaris*)
16549                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16550$as_echo_n "checking for 64-bit host... " >&6; }
16551if ${gl_cv_solaris_64bit+:} false; then :
16552  $as_echo_n "(cached) " >&6
16553else
16554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555/* end confdefs.h.  */
16556
16557#ifdef _LP64
16558sixtyfour bits
16559#endif
16560
16561_ACEOF
16562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16563  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16564  gl_cv_solaris_64bit=yes
16565else
16566  gl_cv_solaris_64bit=no
16567fi
16568rm -f conftest*
16569
16570
16571fi
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16573$as_echo "$gl_cv_solaris_64bit" >&6; }
16574      if test $gl_cv_solaris_64bit = yes; then
16575        acl_libdirstem=lib/64
16576        case "$host_cpu" in
16577          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16578          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16579        esac
16580      fi
16581      ;;
16582    *)
16583      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16584      if test -n "$searchpath"; then
16585        acl_save_IFS="${IFS= 	}"; IFS=":"
16586        for searchdir in $searchpath; do
16587          if test -d "$searchdir"; then
16588            case "$searchdir" in
16589              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16590              */../ | */.. )
16591                # Better ignore directories of this form. They are misleading.
16592                ;;
16593              *) searchdir=`cd "$searchdir" && pwd`
16594                 case "$searchdir" in
16595                   */lib64 ) acl_libdirstem=lib64 ;;
16596                 esac ;;
16597            esac
16598          fi
16599        done
16600        IFS="$acl_save_IFS"
16601      fi
16602      ;;
16603  esac
16604  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617    use_additional=yes
16618
16619  acl_save_prefix="$prefix"
16620  prefix="$acl_final_prefix"
16621  acl_save_exec_prefix="$exec_prefix"
16622  exec_prefix="$acl_final_exec_prefix"
16623
16624    eval additional_includedir=\"$includedir\"
16625    eval additional_libdir=\"$libdir\"
16626
16627  exec_prefix="$acl_save_exec_prefix"
16628  prefix="$acl_save_prefix"
16629
16630
16631# Check whether --with-libiconv-prefix was given.
16632if test "${with_libiconv_prefix+set}" = set; then :
16633  withval=$with_libiconv_prefix;
16634    if test "X$withval" = "Xno"; then
16635      use_additional=no
16636    else
16637      if test "X$withval" = "X"; then
16638
16639  acl_save_prefix="$prefix"
16640  prefix="$acl_final_prefix"
16641  acl_save_exec_prefix="$exec_prefix"
16642  exec_prefix="$acl_final_exec_prefix"
16643
16644          eval additional_includedir=\"$includedir\"
16645          eval additional_libdir=\"$libdir\"
16646
16647  exec_prefix="$acl_save_exec_prefix"
16648  prefix="$acl_save_prefix"
16649
16650      else
16651        additional_includedir="$withval/include"
16652        additional_libdir="$withval/$acl_libdirstem"
16653        if test "$acl_libdirstem2" != "$acl_libdirstem" \
16654           && ! test -d "$withval/$acl_libdirstem"; then
16655          additional_libdir="$withval/$acl_libdirstem2"
16656        fi
16657      fi
16658    fi
16659
16660fi
16661
16662      LIBICONV=
16663  LTLIBICONV=
16664  INCICONV=
16665  LIBICONV_PREFIX=
16666      HAVE_LIBICONV=
16667  rpathdirs=
16668  ltrpathdirs=
16669  names_already_handled=
16670  names_next_round='iconv '
16671  while test -n "$names_next_round"; do
16672    names_this_round="$names_next_round"
16673    names_next_round=
16674    for name in $names_this_round; do
16675      already_handled=
16676      for n in $names_already_handled; do
16677        if test "$n" = "$name"; then
16678          already_handled=yes
16679          break
16680        fi
16681      done
16682      if test -z "$already_handled"; then
16683        names_already_handled="$names_already_handled $name"
16684                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16685        eval value=\"\$HAVE_LIB$uppername\"
16686        if test -n "$value"; then
16687          if test "$value" = yes; then
16688            eval value=\"\$LIB$uppername\"
16689            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16690            eval value=\"\$LTLIB$uppername\"
16691            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16692          else
16693                                    :
16694          fi
16695        else
16696                              found_dir=
16697          found_la=
16698          found_so=
16699          found_a=
16700          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16701          if test -n "$acl_shlibext"; then
16702            shrext=".$acl_shlibext"             # typically: shrext=.so
16703          else
16704            shrext=
16705          fi
16706          if test $use_additional = yes; then
16707            dir="$additional_libdir"
16708                                    if test -n "$acl_shlibext"; then
16709              if test -f "$dir/$libname$shrext"; then
16710                found_dir="$dir"
16711                found_so="$dir/$libname$shrext"
16712              else
16713                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16714                  ver=`(cd "$dir" && \
16715                        for f in "$libname$shrext".*; do echo "$f"; done \
16716                        | sed -e "s,^$libname$shrext\\\\.,," \
16717                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16718                        | sed 1q ) 2>/dev/null`
16719                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16720                    found_dir="$dir"
16721                    found_so="$dir/$libname$shrext.$ver"
16722                  fi
16723                else
16724                  eval library_names=\"$acl_library_names_spec\"
16725                  for f in $library_names; do
16726                    if test -f "$dir/$f"; then
16727                      found_dir="$dir"
16728                      found_so="$dir/$f"
16729                      break
16730                    fi
16731                  done
16732                fi
16733              fi
16734            fi
16735                        if test "X$found_dir" = "X"; then
16736              if test -f "$dir/$libname.$acl_libext"; then
16737                found_dir="$dir"
16738                found_a="$dir/$libname.$acl_libext"
16739              fi
16740            fi
16741            if test "X$found_dir" != "X"; then
16742              if test -f "$dir/$libname.la"; then
16743                found_la="$dir/$libname.la"
16744              fi
16745            fi
16746          fi
16747          if test "X$found_dir" = "X"; then
16748            for x in $LDFLAGS $LTLIBICONV; do
16749
16750  acl_save_prefix="$prefix"
16751  prefix="$acl_final_prefix"
16752  acl_save_exec_prefix="$exec_prefix"
16753  exec_prefix="$acl_final_exec_prefix"
16754  eval x=\"$x\"
16755  exec_prefix="$acl_save_exec_prefix"
16756  prefix="$acl_save_prefix"
16757
16758              case "$x" in
16759                -L*)
16760                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16761                                    if test -n "$acl_shlibext"; then
16762                    if test -f "$dir/$libname$shrext"; then
16763                      found_dir="$dir"
16764                      found_so="$dir/$libname$shrext"
16765                    else
16766                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16767                        ver=`(cd "$dir" && \
16768                              for f in "$libname$shrext".*; do echo "$f"; done \
16769                              | sed -e "s,^$libname$shrext\\\\.,," \
16770                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16771                              | sed 1q ) 2>/dev/null`
16772                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16773                          found_dir="$dir"
16774                          found_so="$dir/$libname$shrext.$ver"
16775                        fi
16776                      else
16777                        eval library_names=\"$acl_library_names_spec\"
16778                        for f in $library_names; do
16779                          if test -f "$dir/$f"; then
16780                            found_dir="$dir"
16781                            found_so="$dir/$f"
16782                            break
16783                          fi
16784                        done
16785                      fi
16786                    fi
16787                  fi
16788                                    if test "X$found_dir" = "X"; then
16789                    if test -f "$dir/$libname.$acl_libext"; then
16790                      found_dir="$dir"
16791                      found_a="$dir/$libname.$acl_libext"
16792                    fi
16793                  fi
16794                  if test "X$found_dir" != "X"; then
16795                    if test -f "$dir/$libname.la"; then
16796                      found_la="$dir/$libname.la"
16797                    fi
16798                  fi
16799                  ;;
16800              esac
16801              if test "X$found_dir" != "X"; then
16802                break
16803              fi
16804            done
16805          fi
16806          if test "X$found_dir" != "X"; then
16807                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16808            if test "X$found_so" != "X"; then
16809                                                        if test "$enable_rpath" = no \
16810                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16811                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16812                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16813              else
16814                                                                                haveit=
16815                for x in $ltrpathdirs; do
16816                  if test "X$x" = "X$found_dir"; then
16817                    haveit=yes
16818                    break
16819                  fi
16820                done
16821                if test -z "$haveit"; then
16822                  ltrpathdirs="$ltrpathdirs $found_dir"
16823                fi
16824                                if test "$acl_hardcode_direct" = yes; then
16825                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16826                else
16827                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16828                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16829                                                            haveit=
16830                    for x in $rpathdirs; do
16831                      if test "X$x" = "X$found_dir"; then
16832                        haveit=yes
16833                        break
16834                      fi
16835                    done
16836                    if test -z "$haveit"; then
16837                      rpathdirs="$rpathdirs $found_dir"
16838                    fi
16839                  else
16840                                                                                haveit=
16841                    for x in $LDFLAGS $LIBICONV; do
16842
16843  acl_save_prefix="$prefix"
16844  prefix="$acl_final_prefix"
16845  acl_save_exec_prefix="$exec_prefix"
16846  exec_prefix="$acl_final_exec_prefix"
16847  eval x=\"$x\"
16848  exec_prefix="$acl_save_exec_prefix"
16849  prefix="$acl_save_prefix"
16850
16851                      if test "X$x" = "X-L$found_dir"; then
16852                        haveit=yes
16853                        break
16854                      fi
16855                    done
16856                    if test -z "$haveit"; then
16857                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16858                    fi
16859                    if test "$acl_hardcode_minus_L" != no; then
16860                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16861                    else
16862                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16863                    fi
16864                  fi
16865                fi
16866              fi
16867            else
16868              if test "X$found_a" != "X"; then
16869                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16870              else
16871                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16872              fi
16873            fi
16874                        additional_includedir=
16875            case "$found_dir" in
16876              */$acl_libdirstem | */$acl_libdirstem/)
16877                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16878                if test "$name" = 'iconv'; then
16879                  LIBICONV_PREFIX="$basedir"
16880                fi
16881                additional_includedir="$basedir/include"
16882                ;;
16883              */$acl_libdirstem2 | */$acl_libdirstem2/)
16884                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16885                if test "$name" = 'iconv'; then
16886                  LIBICONV_PREFIX="$basedir"
16887                fi
16888                additional_includedir="$basedir/include"
16889                ;;
16890            esac
16891            if test "X$additional_includedir" != "X"; then
16892                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16893                haveit=
16894                if test "X$additional_includedir" = "X/usr/local/include"; then
16895                  if test -n "$GCC"; then
16896                    case $host_os in
16897                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16898                    esac
16899                  fi
16900                fi
16901                if test -z "$haveit"; then
16902                  for x in $CPPFLAGS $INCICONV; do
16903
16904  acl_save_prefix="$prefix"
16905  prefix="$acl_final_prefix"
16906  acl_save_exec_prefix="$exec_prefix"
16907  exec_prefix="$acl_final_exec_prefix"
16908  eval x=\"$x\"
16909  exec_prefix="$acl_save_exec_prefix"
16910  prefix="$acl_save_prefix"
16911
16912                    if test "X$x" = "X-I$additional_includedir"; then
16913                      haveit=yes
16914                      break
16915                    fi
16916                  done
16917                  if test -z "$haveit"; then
16918                    if test -d "$additional_includedir"; then
16919                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16920                    fi
16921                  fi
16922                fi
16923              fi
16924            fi
16925                        if test -n "$found_la"; then
16926                                                        save_libdir="$libdir"
16927              case "$found_la" in
16928                */* | *\\*) . "$found_la" ;;
16929                *) . "./$found_la" ;;
16930              esac
16931              libdir="$save_libdir"
16932                            for dep in $dependency_libs; do
16933                case "$dep" in
16934                  -L*)
16935                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16936                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16937                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16938                      haveit=
16939                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16940                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16941                        if test -n "$GCC"; then
16942                          case $host_os in
16943                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16944                          esac
16945                        fi
16946                      fi
16947                      if test -z "$haveit"; then
16948                        haveit=
16949                        for x in $LDFLAGS $LIBICONV; do
16950
16951  acl_save_prefix="$prefix"
16952  prefix="$acl_final_prefix"
16953  acl_save_exec_prefix="$exec_prefix"
16954  exec_prefix="$acl_final_exec_prefix"
16955  eval x=\"$x\"
16956  exec_prefix="$acl_save_exec_prefix"
16957  prefix="$acl_save_prefix"
16958
16959                          if test "X$x" = "X-L$additional_libdir"; then
16960                            haveit=yes
16961                            break
16962                          fi
16963                        done
16964                        if test -z "$haveit"; then
16965                          if test -d "$additional_libdir"; then
16966                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16967                          fi
16968                        fi
16969                        haveit=
16970                        for x in $LDFLAGS $LTLIBICONV; do
16971
16972  acl_save_prefix="$prefix"
16973  prefix="$acl_final_prefix"
16974  acl_save_exec_prefix="$exec_prefix"
16975  exec_prefix="$acl_final_exec_prefix"
16976  eval x=\"$x\"
16977  exec_prefix="$acl_save_exec_prefix"
16978  prefix="$acl_save_prefix"
16979
16980                          if test "X$x" = "X-L$additional_libdir"; then
16981                            haveit=yes
16982                            break
16983                          fi
16984                        done
16985                        if test -z "$haveit"; then
16986                          if test -d "$additional_libdir"; then
16987                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16988                          fi
16989                        fi
16990                      fi
16991                    fi
16992                    ;;
16993                  -R*)
16994                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16995                    if test "$enable_rpath" != no; then
16996                                                                  haveit=
16997                      for x in $rpathdirs; do
16998                        if test "X$x" = "X$dir"; then
16999                          haveit=yes
17000                          break
17001                        fi
17002                      done
17003                      if test -z "$haveit"; then
17004                        rpathdirs="$rpathdirs $dir"
17005                      fi
17006                                                                  haveit=
17007                      for x in $ltrpathdirs; do
17008                        if test "X$x" = "X$dir"; then
17009                          haveit=yes
17010                          break
17011                        fi
17012                      done
17013                      if test -z "$haveit"; then
17014                        ltrpathdirs="$ltrpathdirs $dir"
17015                      fi
17016                    fi
17017                    ;;
17018                  -l*)
17019                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17020                    ;;
17021                  *.la)
17022                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17023                    ;;
17024                  *)
17025                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17026                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17027                    ;;
17028                esac
17029              done
17030            fi
17031          else
17032                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17033            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17034          fi
17035        fi
17036      fi
17037    done
17038  done
17039  if test "X$rpathdirs" != "X"; then
17040    if test -n "$acl_hardcode_libdir_separator"; then
17041                        alldirs=
17042      for found_dir in $rpathdirs; do
17043        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17044      done
17045            acl_save_libdir="$libdir"
17046      libdir="$alldirs"
17047      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17048      libdir="$acl_save_libdir"
17049      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17050    else
17051            for found_dir in $rpathdirs; do
17052        acl_save_libdir="$libdir"
17053        libdir="$found_dir"
17054        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17055        libdir="$acl_save_libdir"
17056        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17057      done
17058    fi
17059  fi
17060  if test "X$ltrpathdirs" != "X"; then
17061            for found_dir in $ltrpathdirs; do
17062      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17063    done
17064  fi
17065
17066
17067
17068
17069
17070
17071
17072
17073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17074$as_echo_n "checking whether NLS is requested... " >&6; }
17075    # Check whether --enable-nls was given.
17076if test "${enable_nls+set}" = set; then :
17077  enableval=$enable_nls; USE_NLS=$enableval
17078else
17079  USE_NLS=yes
17080fi
17081
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17083$as_echo "$USE_NLS" >&6; }
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17111$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17112if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17113  $as_echo_n "(cached) " >&6
17114else
17115  gt_save_LIBS="$LIBS"
17116     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118/* end confdefs.h.  */
17119#include <CoreFoundation/CFPreferences.h>
17120int
17121main ()
17122{
17123CFPreferencesCopyAppValue(NULL, NULL)
17124  ;
17125  return 0;
17126}
17127_ACEOF
17128if ac_fn_c_try_link "$LINENO"; then :
17129  gt_cv_func_CFPreferencesCopyAppValue=yes
17130else
17131  gt_cv_func_CFPreferencesCopyAppValue=no
17132fi
17133rm -f core conftest.err conftest.$ac_objext \
17134    conftest$ac_exeext conftest.$ac_ext
17135     LIBS="$gt_save_LIBS"
17136fi
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17138$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17139  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17140
17141$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17142
17143  fi
17144                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17145$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17146if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17147  $as_echo_n "(cached) " >&6
17148else
17149  gt_save_LIBS="$LIBS"
17150     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h.  */
17153#include <CoreFoundation/CFLocale.h>
17154int
17155main ()
17156{
17157CFLocaleCopyPreferredLanguages();
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162if ac_fn_c_try_link "$LINENO"; then :
17163  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17164else
17165  gt_cv_func_CFLocaleCopyPreferredLanguages=no
17166fi
17167rm -f core conftest.err conftest.$ac_objext \
17168    conftest$ac_exeext conftest.$ac_ext
17169     LIBS="$gt_save_LIBS"
17170fi
17171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17172$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17173  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17174
17175$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17176
17177  fi
17178  INTL_MACOSX_LIBS=
17179  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17180     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17181    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17182  fi
17183
17184
17185
17186
17187
17188
17189  LIBINTL=
17190  LTLIBINTL=
17191  POSUB=
17192
17193    case " $gt_needs " in
17194    *" need-formatstring-macros "*) gt_api_version=3 ;;
17195    *" need-ngettext "*) gt_api_version=2 ;;
17196    *) gt_api_version=1 ;;
17197  esac
17198  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17199  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17200
17201    if test "$USE_NLS" = "yes"; then
17202    gt_use_preinstalled_gnugettext=no
17203
17204
17205        if test $gt_api_version -ge 3; then
17206          gt_revision_test_code='
17207#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17208#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17209#endif
17210typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17211'
17212        else
17213          gt_revision_test_code=
17214        fi
17215        if test $gt_api_version -ge 2; then
17216          gt_expression_test_code=' + * ngettext ("", "", 0)'
17217        else
17218          gt_expression_test_code=
17219        fi
17220
17221        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17222$as_echo_n "checking for GNU gettext in libc... " >&6; }
17223if eval \${$gt_func_gnugettext_libc+:} false; then :
17224  $as_echo_n "(cached) " >&6
17225else
17226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227/* end confdefs.h.  */
17228
17229#include <libintl.h>
17230#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17231extern int _nl_msg_cat_cntr;
17232extern int *_nl_domain_bindings;
17233#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17234#else
17235#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17236#endif
17237$gt_revision_test_code
17238
17239int
17240main ()
17241{
17242
17243bindtextdomain ("", "");
17244return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17245
17246  ;
17247  return 0;
17248}
17249_ACEOF
17250if ac_fn_c_try_link "$LINENO"; then :
17251  eval "$gt_func_gnugettext_libc=yes"
17252else
17253  eval "$gt_func_gnugettext_libc=no"
17254fi
17255rm -f core conftest.err conftest.$ac_objext \
17256    conftest$ac_exeext conftest.$ac_ext
17257fi
17258eval ac_res=\$$gt_func_gnugettext_libc
17259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17260$as_echo "$ac_res" >&6; }
17261
17262        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17263
17264
17265
17266
17267
17268          am_save_CPPFLAGS="$CPPFLAGS"
17269
17270  for element in $INCICONV; do
17271    haveit=
17272    for x in $CPPFLAGS; do
17273
17274  acl_save_prefix="$prefix"
17275  prefix="$acl_final_prefix"
17276  acl_save_exec_prefix="$exec_prefix"
17277  exec_prefix="$acl_final_exec_prefix"
17278  eval x=\"$x\"
17279  exec_prefix="$acl_save_exec_prefix"
17280  prefix="$acl_save_prefix"
17281
17282      if test "X$x" = "X$element"; then
17283        haveit=yes
17284        break
17285      fi
17286    done
17287    if test -z "$haveit"; then
17288      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17289    fi
17290  done
17291
17292
17293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17294$as_echo_n "checking for iconv... " >&6; }
17295if ${am_cv_func_iconv+:} false; then :
17296  $as_echo_n "(cached) " >&6
17297else
17298
17299    am_cv_func_iconv="no, consider installing GNU libiconv"
17300    am_cv_lib_iconv=no
17301    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h.  */
17303
17304#include <stdlib.h>
17305#include <iconv.h>
17306
17307int
17308main ()
17309{
17310iconv_t cd = iconv_open("","");
17311           iconv(cd,NULL,NULL,NULL,NULL);
17312           iconv_close(cd);
17313  ;
17314  return 0;
17315}
17316_ACEOF
17317if ac_fn_c_try_link "$LINENO"; then :
17318  am_cv_func_iconv=yes
17319fi
17320rm -f core conftest.err conftest.$ac_objext \
17321    conftest$ac_exeext conftest.$ac_ext
17322    if test "$am_cv_func_iconv" != yes; then
17323      am_save_LIBS="$LIBS"
17324      LIBS="$LIBS $LIBICONV"
17325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326/* end confdefs.h.  */
17327
17328#include <stdlib.h>
17329#include <iconv.h>
17330
17331int
17332main ()
17333{
17334iconv_t cd = iconv_open("","");
17335             iconv(cd,NULL,NULL,NULL,NULL);
17336             iconv_close(cd);
17337  ;
17338  return 0;
17339}
17340_ACEOF
17341if ac_fn_c_try_link "$LINENO"; then :
17342  am_cv_lib_iconv=yes
17343        am_cv_func_iconv=yes
17344fi
17345rm -f core conftest.err conftest.$ac_objext \
17346    conftest$ac_exeext conftest.$ac_ext
17347      LIBS="$am_save_LIBS"
17348    fi
17349
17350fi
17351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17352$as_echo "$am_cv_func_iconv" >&6; }
17353  if test "$am_cv_func_iconv" = yes; then
17354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17355$as_echo_n "checking for working iconv... " >&6; }
17356if ${am_cv_func_iconv_works+:} false; then :
17357  $as_echo_n "(cached) " >&6
17358else
17359
17360                  am_save_LIBS="$LIBS"
17361      if test $am_cv_lib_iconv = yes; then
17362        LIBS="$LIBS $LIBICONV"
17363      fi
17364      am_cv_func_iconv_works=no
17365      for ac_iconv_const in '' 'const'; do
17366        if test "$cross_compiling" = yes; then :
17367  case "$host_os" in
17368             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17369             *)            am_cv_func_iconv_works="guessing yes" ;;
17370           esac
17371else
17372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373/* end confdefs.h.  */
17374
17375#include <iconv.h>
17376#include <string.h>
17377
17378#ifndef ICONV_CONST
17379# define ICONV_CONST $ac_iconv_const
17380#endif
17381
17382int
17383main ()
17384{
17385int result = 0;
17386  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17387     returns.  */
17388  {
17389    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17390    if (cd_utf8_to_88591 != (iconv_t)(-1))
17391      {
17392        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17393        char buf[10];
17394        ICONV_CONST char *inptr = input;
17395        size_t inbytesleft = strlen (input);
17396        char *outptr = buf;
17397        size_t outbytesleft = sizeof (buf);
17398        size_t res = iconv (cd_utf8_to_88591,
17399                            &inptr, &inbytesleft,
17400                            &outptr, &outbytesleft);
17401        if (res == 0)
17402          result |= 1;
17403        iconv_close (cd_utf8_to_88591);
17404      }
17405  }
17406  /* Test against Solaris 10 bug: Failures are not distinguishable from
17407     successful returns.  */
17408  {
17409    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17410    if (cd_ascii_to_88591 != (iconv_t)(-1))
17411      {
17412        static ICONV_CONST char input[] = "\263";
17413        char buf[10];
17414        ICONV_CONST char *inptr = input;
17415        size_t inbytesleft = strlen (input);
17416        char *outptr = buf;
17417        size_t outbytesleft = sizeof (buf);
17418        size_t res = iconv (cd_ascii_to_88591,
17419                            &inptr, &inbytesleft,
17420                            &outptr, &outbytesleft);
17421        if (res == 0)
17422          result |= 2;
17423        iconv_close (cd_ascii_to_88591);
17424      }
17425  }
17426  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
17427  {
17428    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17429    if (cd_88591_to_utf8 != (iconv_t)(-1))
17430      {
17431        static ICONV_CONST char input[] = "\304";
17432        static char buf[2] = { (char)0xDE, (char)0xAD };
17433        ICONV_CONST char *inptr = input;
17434        size_t inbytesleft = 1;
17435        char *outptr = buf;
17436        size_t outbytesleft = 1;
17437        size_t res = iconv (cd_88591_to_utf8,
17438                            &inptr, &inbytesleft,
17439                            &outptr, &outbytesleft);
17440        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17441          result |= 4;
17442        iconv_close (cd_88591_to_utf8);
17443      }
17444  }
17445#if 0 /* This bug could be worked around by the caller.  */
17446  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17447  {
17448    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17449    if (cd_88591_to_utf8 != (iconv_t)(-1))
17450      {
17451        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17452        char buf[50];
17453        ICONV_CONST char *inptr = input;
17454        size_t inbytesleft = strlen (input);
17455        char *outptr = buf;
17456        size_t outbytesleft = sizeof (buf);
17457        size_t res = iconv (cd_88591_to_utf8,
17458                            &inptr, &inbytesleft,
17459                            &outptr, &outbytesleft);
17460        if ((int)res > 0)
17461          result |= 8;
17462        iconv_close (cd_88591_to_utf8);
17463      }
17464  }
17465#endif
17466  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17467     provided.  */
17468  if (/* Try standardized names.  */
17469      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17470      /* Try IRIX, OSF/1 names.  */
17471      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17472      /* Try AIX names.  */
17473      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17474      /* Try HP-UX names.  */
17475      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17476    result |= 16;
17477  return result;
17478
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483if ac_fn_c_try_run "$LINENO"; then :
17484  am_cv_func_iconv_works=yes
17485fi
17486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17487  conftest.$ac_objext conftest.beam conftest.$ac_ext
17488fi
17489
17490        test "$am_cv_func_iconv_works" = no || break
17491      done
17492      LIBS="$am_save_LIBS"
17493
17494fi
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17496$as_echo "$am_cv_func_iconv_works" >&6; }
17497    case "$am_cv_func_iconv_works" in
17498      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17499      *)   am_func_iconv=yes ;;
17500    esac
17501  else
17502    am_func_iconv=no am_cv_lib_iconv=no
17503  fi
17504  if test "$am_func_iconv" = yes; then
17505
17506$as_echo "#define HAVE_ICONV 1" >>confdefs.h
17507
17508  fi
17509  if test "$am_cv_lib_iconv" = yes; then
17510    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17511$as_echo_n "checking how to link with libiconv... " >&6; }
17512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17513$as_echo "$LIBICONV" >&6; }
17514  else
17515            CPPFLAGS="$am_save_CPPFLAGS"
17516    LIBICONV=
17517    LTLIBICONV=
17518  fi
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530    use_additional=yes
17531
17532  acl_save_prefix="$prefix"
17533  prefix="$acl_final_prefix"
17534  acl_save_exec_prefix="$exec_prefix"
17535  exec_prefix="$acl_final_exec_prefix"
17536
17537    eval additional_includedir=\"$includedir\"
17538    eval additional_libdir=\"$libdir\"
17539
17540  exec_prefix="$acl_save_exec_prefix"
17541  prefix="$acl_save_prefix"
17542
17543
17544# Check whether --with-libintl-prefix was given.
17545if test "${with_libintl_prefix+set}" = set; then :
17546  withval=$with_libintl_prefix;
17547    if test "X$withval" = "Xno"; then
17548      use_additional=no
17549    else
17550      if test "X$withval" = "X"; then
17551
17552  acl_save_prefix="$prefix"
17553  prefix="$acl_final_prefix"
17554  acl_save_exec_prefix="$exec_prefix"
17555  exec_prefix="$acl_final_exec_prefix"
17556
17557          eval additional_includedir=\"$includedir\"
17558          eval additional_libdir=\"$libdir\"
17559
17560  exec_prefix="$acl_save_exec_prefix"
17561  prefix="$acl_save_prefix"
17562
17563      else
17564        additional_includedir="$withval/include"
17565        additional_libdir="$withval/$acl_libdirstem"
17566        if test "$acl_libdirstem2" != "$acl_libdirstem" \
17567           && ! test -d "$withval/$acl_libdirstem"; then
17568          additional_libdir="$withval/$acl_libdirstem2"
17569        fi
17570      fi
17571    fi
17572
17573fi
17574
17575      LIBINTL=
17576  LTLIBINTL=
17577  INCINTL=
17578  LIBINTL_PREFIX=
17579      HAVE_LIBINTL=
17580  rpathdirs=
17581  ltrpathdirs=
17582  names_already_handled=
17583  names_next_round='intl '
17584  while test -n "$names_next_round"; do
17585    names_this_round="$names_next_round"
17586    names_next_round=
17587    for name in $names_this_round; do
17588      already_handled=
17589      for n in $names_already_handled; do
17590        if test "$n" = "$name"; then
17591          already_handled=yes
17592          break
17593        fi
17594      done
17595      if test -z "$already_handled"; then
17596        names_already_handled="$names_already_handled $name"
17597                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17598        eval value=\"\$HAVE_LIB$uppername\"
17599        if test -n "$value"; then
17600          if test "$value" = yes; then
17601            eval value=\"\$LIB$uppername\"
17602            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17603            eval value=\"\$LTLIB$uppername\"
17604            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17605          else
17606                                    :
17607          fi
17608        else
17609                              found_dir=
17610          found_la=
17611          found_so=
17612          found_a=
17613          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17614          if test -n "$acl_shlibext"; then
17615            shrext=".$acl_shlibext"             # typically: shrext=.so
17616          else
17617            shrext=
17618          fi
17619          if test $use_additional = yes; then
17620            dir="$additional_libdir"
17621                                    if test -n "$acl_shlibext"; then
17622              if test -f "$dir/$libname$shrext"; then
17623                found_dir="$dir"
17624                found_so="$dir/$libname$shrext"
17625              else
17626                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17627                  ver=`(cd "$dir" && \
17628                        for f in "$libname$shrext".*; do echo "$f"; done \
17629                        | sed -e "s,^$libname$shrext\\\\.,," \
17630                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17631                        | sed 1q ) 2>/dev/null`
17632                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17633                    found_dir="$dir"
17634                    found_so="$dir/$libname$shrext.$ver"
17635                  fi
17636                else
17637                  eval library_names=\"$acl_library_names_spec\"
17638                  for f in $library_names; do
17639                    if test -f "$dir/$f"; then
17640                      found_dir="$dir"
17641                      found_so="$dir/$f"
17642                      break
17643                    fi
17644                  done
17645                fi
17646              fi
17647            fi
17648                        if test "X$found_dir" = "X"; then
17649              if test -f "$dir/$libname.$acl_libext"; then
17650                found_dir="$dir"
17651                found_a="$dir/$libname.$acl_libext"
17652              fi
17653            fi
17654            if test "X$found_dir" != "X"; then
17655              if test -f "$dir/$libname.la"; then
17656                found_la="$dir/$libname.la"
17657              fi
17658            fi
17659          fi
17660          if test "X$found_dir" = "X"; then
17661            for x in $LDFLAGS $LTLIBINTL; do
17662
17663  acl_save_prefix="$prefix"
17664  prefix="$acl_final_prefix"
17665  acl_save_exec_prefix="$exec_prefix"
17666  exec_prefix="$acl_final_exec_prefix"
17667  eval x=\"$x\"
17668  exec_prefix="$acl_save_exec_prefix"
17669  prefix="$acl_save_prefix"
17670
17671              case "$x" in
17672                -L*)
17673                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17674                                    if test -n "$acl_shlibext"; then
17675                    if test -f "$dir/$libname$shrext"; then
17676                      found_dir="$dir"
17677                      found_so="$dir/$libname$shrext"
17678                    else
17679                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17680                        ver=`(cd "$dir" && \
17681                              for f in "$libname$shrext".*; do echo "$f"; done \
17682                              | sed -e "s,^$libname$shrext\\\\.,," \
17683                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17684                              | sed 1q ) 2>/dev/null`
17685                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17686                          found_dir="$dir"
17687                          found_so="$dir/$libname$shrext.$ver"
17688                        fi
17689                      else
17690                        eval library_names=\"$acl_library_names_spec\"
17691                        for f in $library_names; do
17692                          if test -f "$dir/$f"; then
17693                            found_dir="$dir"
17694                            found_so="$dir/$f"
17695                            break
17696                          fi
17697                        done
17698                      fi
17699                    fi
17700                  fi
17701                                    if test "X$found_dir" = "X"; then
17702                    if test -f "$dir/$libname.$acl_libext"; then
17703                      found_dir="$dir"
17704                      found_a="$dir/$libname.$acl_libext"
17705                    fi
17706                  fi
17707                  if test "X$found_dir" != "X"; then
17708                    if test -f "$dir/$libname.la"; then
17709                      found_la="$dir/$libname.la"
17710                    fi
17711                  fi
17712                  ;;
17713              esac
17714              if test "X$found_dir" != "X"; then
17715                break
17716              fi
17717            done
17718          fi
17719          if test "X$found_dir" != "X"; then
17720                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17721            if test "X$found_so" != "X"; then
17722                                                        if test "$enable_rpath" = no \
17723                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17724                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17725                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17726              else
17727                                                                                haveit=
17728                for x in $ltrpathdirs; do
17729                  if test "X$x" = "X$found_dir"; then
17730                    haveit=yes
17731                    break
17732                  fi
17733                done
17734                if test -z "$haveit"; then
17735                  ltrpathdirs="$ltrpathdirs $found_dir"
17736                fi
17737                                if test "$acl_hardcode_direct" = yes; then
17738                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17739                else
17740                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17741                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17742                                                            haveit=
17743                    for x in $rpathdirs; do
17744                      if test "X$x" = "X$found_dir"; then
17745                        haveit=yes
17746                        break
17747                      fi
17748                    done
17749                    if test -z "$haveit"; then
17750                      rpathdirs="$rpathdirs $found_dir"
17751                    fi
17752                  else
17753                                                                                haveit=
17754                    for x in $LDFLAGS $LIBINTL; do
17755
17756  acl_save_prefix="$prefix"
17757  prefix="$acl_final_prefix"
17758  acl_save_exec_prefix="$exec_prefix"
17759  exec_prefix="$acl_final_exec_prefix"
17760  eval x=\"$x\"
17761  exec_prefix="$acl_save_exec_prefix"
17762  prefix="$acl_save_prefix"
17763
17764                      if test "X$x" = "X-L$found_dir"; then
17765                        haveit=yes
17766                        break
17767                      fi
17768                    done
17769                    if test -z "$haveit"; then
17770                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17771                    fi
17772                    if test "$acl_hardcode_minus_L" != no; then
17773                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17774                    else
17775                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17776                    fi
17777                  fi
17778                fi
17779              fi
17780            else
17781              if test "X$found_a" != "X"; then
17782                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17783              else
17784                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17785              fi
17786            fi
17787                        additional_includedir=
17788            case "$found_dir" in
17789              */$acl_libdirstem | */$acl_libdirstem/)
17790                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17791                if test "$name" = 'intl'; then
17792                  LIBINTL_PREFIX="$basedir"
17793                fi
17794                additional_includedir="$basedir/include"
17795                ;;
17796              */$acl_libdirstem2 | */$acl_libdirstem2/)
17797                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17798                if test "$name" = 'intl'; then
17799                  LIBINTL_PREFIX="$basedir"
17800                fi
17801                additional_includedir="$basedir/include"
17802                ;;
17803            esac
17804            if test "X$additional_includedir" != "X"; then
17805                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17806                haveit=
17807                if test "X$additional_includedir" = "X/usr/local/include"; then
17808                  if test -n "$GCC"; then
17809                    case $host_os in
17810                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17811                    esac
17812                  fi
17813                fi
17814                if test -z "$haveit"; then
17815                  for x in $CPPFLAGS $INCINTL; do
17816
17817  acl_save_prefix="$prefix"
17818  prefix="$acl_final_prefix"
17819  acl_save_exec_prefix="$exec_prefix"
17820  exec_prefix="$acl_final_exec_prefix"
17821  eval x=\"$x\"
17822  exec_prefix="$acl_save_exec_prefix"
17823  prefix="$acl_save_prefix"
17824
17825                    if test "X$x" = "X-I$additional_includedir"; then
17826                      haveit=yes
17827                      break
17828                    fi
17829                  done
17830                  if test -z "$haveit"; then
17831                    if test -d "$additional_includedir"; then
17832                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17833                    fi
17834                  fi
17835                fi
17836              fi
17837            fi
17838                        if test -n "$found_la"; then
17839                                                        save_libdir="$libdir"
17840              case "$found_la" in
17841                */* | *\\*) . "$found_la" ;;
17842                *) . "./$found_la" ;;
17843              esac
17844              libdir="$save_libdir"
17845                            for dep in $dependency_libs; do
17846                case "$dep" in
17847                  -L*)
17848                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17849                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17850                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17851                      haveit=
17852                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17853                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17854                        if test -n "$GCC"; then
17855                          case $host_os in
17856                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17857                          esac
17858                        fi
17859                      fi
17860                      if test -z "$haveit"; then
17861                        haveit=
17862                        for x in $LDFLAGS $LIBINTL; do
17863
17864  acl_save_prefix="$prefix"
17865  prefix="$acl_final_prefix"
17866  acl_save_exec_prefix="$exec_prefix"
17867  exec_prefix="$acl_final_exec_prefix"
17868  eval x=\"$x\"
17869  exec_prefix="$acl_save_exec_prefix"
17870  prefix="$acl_save_prefix"
17871
17872                          if test "X$x" = "X-L$additional_libdir"; then
17873                            haveit=yes
17874                            break
17875                          fi
17876                        done
17877                        if test -z "$haveit"; then
17878                          if test -d "$additional_libdir"; then
17879                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17880                          fi
17881                        fi
17882                        haveit=
17883                        for x in $LDFLAGS $LTLIBINTL; do
17884
17885  acl_save_prefix="$prefix"
17886  prefix="$acl_final_prefix"
17887  acl_save_exec_prefix="$exec_prefix"
17888  exec_prefix="$acl_final_exec_prefix"
17889  eval x=\"$x\"
17890  exec_prefix="$acl_save_exec_prefix"
17891  prefix="$acl_save_prefix"
17892
17893                          if test "X$x" = "X-L$additional_libdir"; then
17894                            haveit=yes
17895                            break
17896                          fi
17897                        done
17898                        if test -z "$haveit"; then
17899                          if test -d "$additional_libdir"; then
17900                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17901                          fi
17902                        fi
17903                      fi
17904                    fi
17905                    ;;
17906                  -R*)
17907                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17908                    if test "$enable_rpath" != no; then
17909                                                                  haveit=
17910                      for x in $rpathdirs; do
17911                        if test "X$x" = "X$dir"; then
17912                          haveit=yes
17913                          break
17914                        fi
17915                      done
17916                      if test -z "$haveit"; then
17917                        rpathdirs="$rpathdirs $dir"
17918                      fi
17919                                                                  haveit=
17920                      for x in $ltrpathdirs; do
17921                        if test "X$x" = "X$dir"; then
17922                          haveit=yes
17923                          break
17924                        fi
17925                      done
17926                      if test -z "$haveit"; then
17927                        ltrpathdirs="$ltrpathdirs $dir"
17928                      fi
17929                    fi
17930                    ;;
17931                  -l*)
17932                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17933                    ;;
17934                  *.la)
17935                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17936                    ;;
17937                  *)
17938                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17939                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17940                    ;;
17941                esac
17942              done
17943            fi
17944          else
17945                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17946            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17947          fi
17948        fi
17949      fi
17950    done
17951  done
17952  if test "X$rpathdirs" != "X"; then
17953    if test -n "$acl_hardcode_libdir_separator"; then
17954                        alldirs=
17955      for found_dir in $rpathdirs; do
17956        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17957      done
17958            acl_save_libdir="$libdir"
17959      libdir="$alldirs"
17960      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17961      libdir="$acl_save_libdir"
17962      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17963    else
17964            for found_dir in $rpathdirs; do
17965        acl_save_libdir="$libdir"
17966        libdir="$found_dir"
17967        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17968        libdir="$acl_save_libdir"
17969        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17970      done
17971    fi
17972  fi
17973  if test "X$ltrpathdirs" != "X"; then
17974            for found_dir in $ltrpathdirs; do
17975      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17976    done
17977  fi
17978
17979
17980
17981
17982
17983
17984          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17985$as_echo_n "checking for GNU gettext in libintl... " >&6; }
17986if eval \${$gt_func_gnugettext_libintl+:} false; then :
17987  $as_echo_n "(cached) " >&6
17988else
17989  gt_save_CPPFLAGS="$CPPFLAGS"
17990            CPPFLAGS="$CPPFLAGS $INCINTL"
17991            gt_save_LIBS="$LIBS"
17992            LIBS="$LIBS $LIBINTL"
17993                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994/* end confdefs.h.  */
17995
17996#include <libintl.h>
17997#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17998extern int _nl_msg_cat_cntr;
17999extern
18000#ifdef __cplusplus
18001"C"
18002#endif
18003const char *_nl_expand_alias (const char *);
18004#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18005#else
18006#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18007#endif
18008$gt_revision_test_code
18009
18010int
18011main ()
18012{
18013
18014bindtextdomain ("", "");
18015return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18016
18017  ;
18018  return 0;
18019}
18020_ACEOF
18021if ac_fn_c_try_link "$LINENO"; then :
18022  eval "$gt_func_gnugettext_libintl=yes"
18023else
18024  eval "$gt_func_gnugettext_libintl=no"
18025fi
18026rm -f core conftest.err conftest.$ac_objext \
18027    conftest$ac_exeext conftest.$ac_ext
18028                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18029              LIBS="$LIBS $LIBICONV"
18030              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031/* end confdefs.h.  */
18032
18033#include <libintl.h>
18034#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18035extern int _nl_msg_cat_cntr;
18036extern
18037#ifdef __cplusplus
18038"C"
18039#endif
18040const char *_nl_expand_alias (const char *);
18041#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18042#else
18043#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18044#endif
18045$gt_revision_test_code
18046
18047int
18048main ()
18049{
18050
18051bindtextdomain ("", "");
18052return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18053
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"; then :
18059  LIBINTL="$LIBINTL $LIBICONV"
18060                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18061                 eval "$gt_func_gnugettext_libintl=yes"
18062
18063fi
18064rm -f core conftest.err conftest.$ac_objext \
18065    conftest$ac_exeext conftest.$ac_ext
18066            fi
18067            CPPFLAGS="$gt_save_CPPFLAGS"
18068            LIBS="$gt_save_LIBS"
18069fi
18070eval ac_res=\$$gt_func_gnugettext_libintl
18071	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18072$as_echo "$ac_res" >&6; }
18073        fi
18074
18075                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18076           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18077                && test "$PACKAGE" != gettext-runtime \
18078                && test "$PACKAGE" != gettext-tools; }; then
18079          gt_use_preinstalled_gnugettext=yes
18080        else
18081                    LIBINTL=
18082          LTLIBINTL=
18083          INCINTL=
18084        fi
18085
18086
18087
18088    if test -n "$INTL_MACOSX_LIBS"; then
18089      if test "$gt_use_preinstalled_gnugettext" = "yes" \
18090         || test "$nls_cv_use_gnu_gettext" = "yes"; then
18091                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18092        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18093      fi
18094    fi
18095
18096    if test "$gt_use_preinstalled_gnugettext" = "yes" \
18097       || test "$nls_cv_use_gnu_gettext" = "yes"; then
18098
18099$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18100
18101    else
18102      USE_NLS=no
18103    fi
18104  fi
18105
18106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18107$as_echo_n "checking whether to use NLS... " >&6; }
18108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18109$as_echo "$USE_NLS" >&6; }
18110  if test "$USE_NLS" = "yes"; then
18111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18112$as_echo_n "checking where the gettext function comes from... " >&6; }
18113    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18114      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18115        gt_source="external libintl"
18116      else
18117        gt_source="libc"
18118      fi
18119    else
18120      gt_source="included intl directory"
18121    fi
18122    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18123$as_echo "$gt_source" >&6; }
18124  fi
18125
18126  if test "$USE_NLS" = "yes"; then
18127
18128    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18129      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18130        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18131$as_echo_n "checking how to link with libintl... " >&6; }
18132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18133$as_echo "$LIBINTL" >&6; }
18134
18135  for element in $INCINTL; do
18136    haveit=
18137    for x in $CPPFLAGS; do
18138
18139  acl_save_prefix="$prefix"
18140  prefix="$acl_final_prefix"
18141  acl_save_exec_prefix="$exec_prefix"
18142  exec_prefix="$acl_final_exec_prefix"
18143  eval x=\"$x\"
18144  exec_prefix="$acl_save_exec_prefix"
18145  prefix="$acl_save_prefix"
18146
18147      if test "X$x" = "X$element"; then
18148        haveit=yes
18149        break
18150      fi
18151    done
18152    if test -z "$haveit"; then
18153      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18154    fi
18155  done
18156
18157      fi
18158
18159
18160$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18161
18162
18163$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18164
18165    fi
18166
18167        POSUB=po
18168  fi
18169
18170
18171
18172    INTLLIBS="$LIBINTL"
18173
18174
18175
18176
18177
18178
18179LIBS="$LIBINTL $LIBS"
18180for ac_prog in msgfmt
18181do
18182  # Extract the first word of "$ac_prog", so it can be a program name with args.
18183set dummy $ac_prog; ac_word=$2
18184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185$as_echo_n "checking for $ac_word... " >&6; }
18186if ${ac_cv_prog_MSGFMT+:} false; then :
18187  $as_echo_n "(cached) " >&6
18188else
18189  if test -n "$MSGFMT"; then
18190  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
18191else
18192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193for as_dir in $PATH
18194do
18195  IFS=$as_save_IFS
18196  test -z "$as_dir" && as_dir=.
18197    for ac_exec_ext in '' $ac_executable_extensions; do
18198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199    ac_cv_prog_MSGFMT="$ac_prog"
18200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201    break 2
18202  fi
18203done
18204  done
18205IFS=$as_save_IFS
18206
18207fi
18208fi
18209MSGFMT=$ac_cv_prog_MSGFMT
18210if test -n "$MSGFMT"; then
18211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18212$as_echo "$MSGFMT" >&6; }
18213else
18214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18215$as_echo "no" >&6; }
18216fi
18217
18218
18219  test -n "$MSGFMT" && break
18220done
18221
18222if test "x$MSGFMT" = x; then
18223  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install msgfmt (is usually provided with gettext) before building PSPP." >&5
18224$as_echo "$as_me: WARNING: You must install msgfmt (is usually provided with gettext) before building PSPP." >&2;}
18225pspp_required_prereqs="$pspp_required_prereqs
18226	msgfmt (is usually provided with gettext)"
18227fi
18228
18229for ac_prog in xgettext
18230do
18231  # Extract the first word of "$ac_prog", so it can be a program name with args.
18232set dummy $ac_prog; ac_word=$2
18233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18234$as_echo_n "checking for $ac_word... " >&6; }
18235if ${ac_cv_prog_XGETTEXT+:} false; then :
18236  $as_echo_n "(cached) " >&6
18237else
18238  if test -n "$XGETTEXT"; then
18239  ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
18240else
18241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18242for as_dir in $PATH
18243do
18244  IFS=$as_save_IFS
18245  test -z "$as_dir" && as_dir=.
18246    for ac_exec_ext in '' $ac_executable_extensions; do
18247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18248    ac_cv_prog_XGETTEXT="$ac_prog"
18249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18250    break 2
18251  fi
18252done
18253  done
18254IFS=$as_save_IFS
18255
18256fi
18257fi
18258XGETTEXT=$ac_cv_prog_XGETTEXT
18259if test -n "$XGETTEXT"; then
18260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18261$as_echo "$XGETTEXT" >&6; }
18262else
18263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18264$as_echo "no" >&6; }
18265fi
18266
18267
18268  test -n "$XGETTEXT" && break
18269done
18270
18271if test "x$XGETTEXT" = x; then
18272  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install xgettext (is usually provided with gettext) before building PSPP." >&5
18273$as_echo "$as_me: WARNING: You must install xgettext (is usually provided with gettext) before building PSPP." >&2;}
18274pspp_required_prereqs="$pspp_required_prereqs
18275	xgettext (is usually provided with gettext)"
18276fi
18277$as_echo '<?xml version="1.0" encoding="UTF-8"?>' > test.metainfo.xml.in
18278$as_echo '<component type="desktop">' >> test.metainfo.xml.in
18279$as_echo '<name>Hallo</name>' >> test.metainfo.xml.in
18280$as_echo '</component>' >> test.metainfo.xml.in
18281xgettext -o mifc.po test.metainfo.xml.in
18282if ! test -f ./mifc.po  ; then
18283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install appstream 0.12 or later for metainfo.its before building PSPP." >&5
18284$as_echo "$as_me: WARNING: You must install appstream 0.12 or later for metainfo.its before building PSPP." >&2;}
18285pspp_required_prereqs="$pspp_required_prereqs
18286	appstream 0.12 or later for metainfo.its"
18287fi
18288rm -f mifc.po test.metainfo.xml.in
18289
18290# Check whether --enable-largefile was given.
18291if test "${enable_largefile+set}" = set; then :
18292  enableval=$enable_largefile;
18293fi
18294
18295if test "$enable_largefile" != no; then
18296
18297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18298$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18299if ${ac_cv_sys_largefile_CC+:} false; then :
18300  $as_echo_n "(cached) " >&6
18301else
18302  ac_cv_sys_largefile_CC=no
18303     if test "$GCC" != yes; then
18304       ac_save_CC=$CC
18305       while :; do
18306         # IRIX 6.2 and later do not support large files by default,
18307         # so use the C compiler's -n32 option if that helps.
18308         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309/* end confdefs.h.  */
18310#include <sys/types.h>
18311 /* Check that off_t can represent 2**63 - 1 correctly.
18312    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18313    since some C++ compilers masquerading as C compilers
18314    incorrectly reject 9223372036854775807.  */
18315#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18316  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18317                       && LARGE_OFF_T % 2147483647 == 1)
18318                      ? 1 : -1];
18319int
18320main ()
18321{
18322
18323  ;
18324  return 0;
18325}
18326_ACEOF
18327         if ac_fn_c_try_compile "$LINENO"; then :
18328  break
18329fi
18330rm -f core conftest.err conftest.$ac_objext
18331         CC="$CC -n32"
18332         if ac_fn_c_try_compile "$LINENO"; then :
18333  ac_cv_sys_largefile_CC=' -n32'; break
18334fi
18335rm -f core conftest.err conftest.$ac_objext
18336         break
18337       done
18338       CC=$ac_save_CC
18339       rm -f conftest.$ac_ext
18340    fi
18341fi
18342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18343$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18344  if test "$ac_cv_sys_largefile_CC" != no; then
18345    CC=$CC$ac_cv_sys_largefile_CC
18346  fi
18347
18348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18349$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18350if ${ac_cv_sys_file_offset_bits+:} false; then :
18351  $as_echo_n "(cached) " >&6
18352else
18353  while :; do
18354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355/* end confdefs.h.  */
18356#include <sys/types.h>
18357 /* Check that off_t can represent 2**63 - 1 correctly.
18358    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18359    since some C++ compilers masquerading as C compilers
18360    incorrectly reject 9223372036854775807.  */
18361#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18362  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18363                       && LARGE_OFF_T % 2147483647 == 1)
18364                      ? 1 : -1];
18365int
18366main ()
18367{
18368
18369  ;
18370  return 0;
18371}
18372_ACEOF
18373if ac_fn_c_try_compile "$LINENO"; then :
18374  ac_cv_sys_file_offset_bits=no; break
18375fi
18376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378/* end confdefs.h.  */
18379#define _FILE_OFFSET_BITS 64
18380#include <sys/types.h>
18381 /* Check that off_t can represent 2**63 - 1 correctly.
18382    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18383    since some C++ compilers masquerading as C compilers
18384    incorrectly reject 9223372036854775807.  */
18385#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18386  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18387                       && LARGE_OFF_T % 2147483647 == 1)
18388                      ? 1 : -1];
18389int
18390main ()
18391{
18392
18393  ;
18394  return 0;
18395}
18396_ACEOF
18397if ac_fn_c_try_compile "$LINENO"; then :
18398  ac_cv_sys_file_offset_bits=64; break
18399fi
18400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401  ac_cv_sys_file_offset_bits=unknown
18402  break
18403done
18404fi
18405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18406$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18407case $ac_cv_sys_file_offset_bits in #(
18408  no | unknown) ;;
18409  *)
18410cat >>confdefs.h <<_ACEOF
18411#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18412_ACEOF
18413;;
18414esac
18415rm -rf conftest*
18416  if test $ac_cv_sys_file_offset_bits = unknown; then
18417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18418$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18419if ${ac_cv_sys_large_files+:} false; then :
18420  $as_echo_n "(cached) " >&6
18421else
18422  while :; do
18423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424/* end confdefs.h.  */
18425#include <sys/types.h>
18426 /* Check that off_t can represent 2**63 - 1 correctly.
18427    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18428    since some C++ compilers masquerading as C compilers
18429    incorrectly reject 9223372036854775807.  */
18430#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18431  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18432                       && LARGE_OFF_T % 2147483647 == 1)
18433                      ? 1 : -1];
18434int
18435main ()
18436{
18437
18438  ;
18439  return 0;
18440}
18441_ACEOF
18442if ac_fn_c_try_compile "$LINENO"; then :
18443  ac_cv_sys_large_files=no; break
18444fi
18445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447/* end confdefs.h.  */
18448#define _LARGE_FILES 1
18449#include <sys/types.h>
18450 /* Check that off_t can represent 2**63 - 1 correctly.
18451    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18452    since some C++ compilers masquerading as C compilers
18453    incorrectly reject 9223372036854775807.  */
18454#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18455  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18456                       && LARGE_OFF_T % 2147483647 == 1)
18457                      ? 1 : -1];
18458int
18459main ()
18460{
18461
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466if ac_fn_c_try_compile "$LINENO"; then :
18467  ac_cv_sys_large_files=1; break
18468fi
18469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470  ac_cv_sys_large_files=unknown
18471  break
18472done
18473fi
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18475$as_echo "$ac_cv_sys_large_files" >&6; }
18476case $ac_cv_sys_large_files in #(
18477  no | unknown) ;;
18478  *)
18479cat >>confdefs.h <<_ACEOF
18480#define _LARGE_FILES $ac_cv_sys_large_files
18481_ACEOF
18482;;
18483esac
18484rm -rf conftest*
18485  fi
18486fi
18487
18488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sin" >&5
18489$as_echo_n "checking for library containing sin... " >&6; }
18490if ${ac_cv_search_sin+:} false; then :
18491  $as_echo_n "(cached) " >&6
18492else
18493  ac_func_search_save_LIBS=$LIBS
18494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495/* end confdefs.h.  */
18496
18497/* Override any GCC internal prototype to avoid an error.
18498   Use char because int might match the return type of a GCC
18499   builtin and then its argument prototype would still apply.  */
18500#ifdef __cplusplus
18501extern "C"
18502#endif
18503char sin ();
18504int
18505main ()
18506{
18507return sin ();
18508  ;
18509  return 0;
18510}
18511_ACEOF
18512for ac_lib in '' m; do
18513  if test -z "$ac_lib"; then
18514    ac_res="none required"
18515  else
18516    ac_res=-l$ac_lib
18517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18518  fi
18519  if ac_fn_c_try_link "$LINENO"; then :
18520  ac_cv_search_sin=$ac_res
18521fi
18522rm -f core conftest.err conftest.$ac_objext \
18523    conftest$ac_exeext
18524  if ${ac_cv_search_sin+:} false; then :
18525  break
18526fi
18527done
18528if ${ac_cv_search_sin+:} false; then :
18529
18530else
18531  ac_cv_search_sin=no
18532fi
18533rm conftest.$ac_ext
18534LIBS=$ac_func_search_save_LIBS
18535fi
18536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sin" >&5
18537$as_echo "$ac_cv_search_sin" >&6; }
18538ac_res=$ac_cv_search_sin
18539if test "$ac_res" != no; then :
18540  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18541
18542fi
18543
18544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_PAPER" >&5
18545$as_echo_n "checking for LC_PAPER... " >&6; }
18546if ${pspp_cv_lc_paper+:} false; then :
18547  $as_echo_n "(cached) " >&6
18548else
18549
18550    pspp_cv_lc_paper=no
18551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552/* end confdefs.h.  */
18553#include <locale.h>
18554#include <langinfo.h>
18555
18556int
18557main ()
18558{
18559(void) LC_PAPER; (void) _NL_PAPER_WIDTH; (void) _NL_PAPER_HEIGHT
18560  ;
18561  return 0;
18562}
18563_ACEOF
18564if ac_fn_c_try_compile "$LINENO"; then :
18565  pspp_cv_lc_paper=yes
18566fi
18567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18568
18569fi
18570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_lc_paper" >&5
18571$as_echo "$pspp_cv_lc_paper" >&6; }
18572  if test "$pspp_cv_lc_paper" = yes; then
18573
18574$as_echo "#define HAVE_LC_PAPER 1" >>confdefs.h
18575
18576  fi
18577
18578
18579
18580
18581
18582
18583# Support for Cairo and Pango.
18584
18585# Check whether --with-cairo was given.
18586if test "${with_cairo+set}" = set; then :
18587  withval=$with_cairo;
18588else
18589  with_cairo=yes
18590fi
18591
18592 if test "$with_cairo" != no; then
18593  HAVE_CAIRO_TRUE=
18594  HAVE_CAIRO_FALSE='#'
18595else
18596  HAVE_CAIRO_TRUE='#'
18597  HAVE_CAIRO_FALSE=
18598fi
18599
18600if test "$with_cairo" != no; then
18601
18602pkg_failed=no
18603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.5 pango >= 1.22 pangocairo" >&5
18604$as_echo_n "checking for cairo >= 1.5 pango >= 1.22 pangocairo... " >&6; }
18605
18606if test -n "$CAIRO_CFLAGS"; then
18607    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
18608 elif test -n "$PKG_CONFIG"; then
18609    if test -n "$PKG_CONFIG" && \
18610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.5 pango >= 1.22 pangocairo\""; } >&5
18611  ($PKG_CONFIG --exists --print-errors "cairo >= 1.5 pango >= 1.22 pangocairo") 2>&5
18612  ac_status=$?
18613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18614  test $ac_status = 0; }; then
18615  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.5 pango >= 1.22 pangocairo" 2>/dev/null`
18616		      test "x$?" != "x0" && pkg_failed=yes
18617else
18618  pkg_failed=yes
18619fi
18620 else
18621    pkg_failed=untried
18622fi
18623if test -n "$CAIRO_LIBS"; then
18624    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
18625 elif test -n "$PKG_CONFIG"; then
18626    if test -n "$PKG_CONFIG" && \
18627    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.5 pango >= 1.22 pangocairo\""; } >&5
18628  ($PKG_CONFIG --exists --print-errors "cairo >= 1.5 pango >= 1.22 pangocairo") 2>&5
18629  ac_status=$?
18630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18631  test $ac_status = 0; }; then
18632  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.5 pango >= 1.22 pangocairo" 2>/dev/null`
18633		      test "x$?" != "x0" && pkg_failed=yes
18634else
18635  pkg_failed=yes
18636fi
18637 else
18638    pkg_failed=untried
18639fi
18640
18641
18642
18643if test $pkg_failed = yes; then
18644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645$as_echo "no" >&6; }
18646
18647if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18648        _pkg_short_errors_supported=yes
18649else
18650        _pkg_short_errors_supported=no
18651fi
18652        if test $_pkg_short_errors_supported = yes; then
18653	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.5 pango >= 1.22 pangocairo" 2>&1`
18654        else
18655	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.5 pango >= 1.22 pangocairo" 2>&1`
18656        fi
18657	# Put the nasty error message in config.log where it belongs
18658	echo "$CAIRO_PKG_ERRORS" >&5
18659
18660	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install cairo 1.5 or later and pango 1.22 or later (or use --without-cairo) before building PSPP." >&5
18661$as_echo "$as_me: WARNING: You must install cairo 1.5 or later and pango 1.22 or later (or use --without-cairo) before building PSPP." >&2;}
18662pspp_required_prereqs="$pspp_required_prereqs
18663	cairo 1.5 or later and pango 1.22 or later (or use --without-cairo)"
18664elif test $pkg_failed = untried; then
18665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666$as_echo "no" >&6; }
18667	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install cairo 1.5 or later and pango 1.22 or later (or use --without-cairo) before building PSPP." >&5
18668$as_echo "$as_me: WARNING: You must install cairo 1.5 or later and pango 1.22 or later (or use --without-cairo) before building PSPP." >&2;}
18669pspp_required_prereqs="$pspp_required_prereqs
18670	cairo 1.5 or later and pango 1.22 or later (or use --without-cairo)"
18671else
18672	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
18673	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
18674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18675$as_echo "yes" >&6; }
18676	CPPFLAGS="$CPPFLAGS $CAIRO_CFLAGS"
18677
18678$as_echo "#define HAVE_CAIRO 1" >>confdefs.h
18679
18680fi
18681fi
18682
18683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an xmllint program which fits our needs" >&5
18684$as_echo_n "checking for an xmllint program which fits our needs... " >&6; }
18685if ${ac_cv_path_XMLLINT+:} false; then :
18686  $as_echo_n "(cached) " >&6
18687else
18688  if test -z "$XMLLINT"; then
18689  ac_path_XMLLINT_found=false
18690  # Loop through the user's path and test for each of PROGNAME-LIST
18691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692for as_dir in $PATH
18693do
18694  IFS=$as_save_IFS
18695  test -z "$as_dir" && as_dir=.
18696    for ac_prog in xmllint; do
18697    for ac_exec_ext in '' $ac_executable_extensions; do
18698      ac_path_XMLLINT="$as_dir/$ac_prog$ac_exec_ext"
18699      as_fn_executable_p "$ac_path_XMLLINT" || continue
18700$ac_path_XMLLINT --version 2>&1 | $GREP XPath > /dev/null &&
18701    test `$ac_path_XMLLINT --version 2>&1 | $SED 's/^.* \([0-9]*\).*/\1/'` -gt 20900 &&
18702    ac_cv_path_XMLLINT=$ac_path_XMLLINT
18703      $ac_path_XMLLINT_found && break 3
18704    done
18705  done
18706  done
18707IFS=$as_save_IFS
18708  if test -z "$ac_cv_path_XMLLINT"; then
18709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no appropriate xmllint program found. Using a dummy (echo)" >&5
18710$as_echo "$as_me: WARNING: no appropriate xmllint program found. Using a dummy (echo)" >&2;}; ac_cv_path_XMLLINT=$ECHO
18711  fi
18712else
18713  ac_cv_path_XMLLINT=$XMLLINT
18714fi
18715
18716fi
18717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_XMLLINT" >&5
18718$as_echo "$ac_cv_path_XMLLINT" >&6; }
18719
18720XMLLINT=$ac_cv_path_XMLLINT
18721
18722
18723# Support for GUI.
18724
18725# Check whether --with-gui was given.
18726if test "${with_gui+set}" = set; then :
18727  withval=$with_gui;
18728else
18729  with_gui=yes
18730fi
18731
18732 if test "$with_cairo" != no && test "$with_gui" != "no"; then
18733  HAVE_GUI_TRUE=
18734  HAVE_GUI_FALSE='#'
18735else
18736  HAVE_GUI_TRUE='#'
18737  HAVE_GUI_FALSE=
18738fi
18739
18740if test "$with_cairo" != no && test "$with_gui" != "no"; then
18741
18742pkg_failed=no
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0" >&5
18744$as_echo_n "checking for gthread-2.0... " >&6; }
18745
18746if test -n "$GTHREAD_CFLAGS"; then
18747    pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
18748 elif test -n "$PKG_CONFIG"; then
18749    if test -n "$PKG_CONFIG" && \
18750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
18751  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
18752  ac_status=$?
18753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18754  test $ac_status = 0; }; then
18755  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
18756		      test "x$?" != "x0" && pkg_failed=yes
18757else
18758  pkg_failed=yes
18759fi
18760 else
18761    pkg_failed=untried
18762fi
18763if test -n "$GTHREAD_LIBS"; then
18764    pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
18765 elif test -n "$PKG_CONFIG"; then
18766    if test -n "$PKG_CONFIG" && \
18767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
18768  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
18769  ac_status=$?
18770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18771  test $ac_status = 0; }; then
18772  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
18773		      test "x$?" != "x0" && pkg_failed=yes
18774else
18775  pkg_failed=yes
18776fi
18777 else
18778    pkg_failed=untried
18779fi
18780
18781
18782
18783if test $pkg_failed = yes; then
18784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785$as_echo "no" >&6; }
18786
18787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18788        _pkg_short_errors_supported=yes
18789else
18790        _pkg_short_errors_supported=no
18791fi
18792        if test $_pkg_short_errors_supported = yes; then
18793	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
18794        else
18795	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
18796        fi
18797	# Put the nasty error message in config.log where it belongs
18798	echo "$GTHREAD_PKG_ERRORS" >&5
18799
18800	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gthread 2.0 (or use --without-gui) before building PSPP." >&5
18801$as_echo "$as_me: WARNING: You must install gthread 2.0 (or use --without-gui) before building PSPP." >&2;}
18802pspp_required_prereqs="$pspp_required_prereqs
18803	gthread 2.0 (or use --without-gui)"
18804elif test $pkg_failed = untried; then
18805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806$as_echo "no" >&6; }
18807	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gthread 2.0 (or use --without-gui) before building PSPP." >&5
18808$as_echo "$as_me: WARNING: You must install gthread 2.0 (or use --without-gui) before building PSPP." >&2;}
18809pspp_required_prereqs="$pspp_required_prereqs
18810	gthread 2.0 (or use --without-gui)"
18811else
18812	GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
18813	GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
18814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815$as_echo "yes" >&6; }
18816
18817fi
18818
18819
18820pkg_failed=no
18821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.22.0" >&5
18822$as_echo_n "checking for gtk+-3.0 >= 3.22.0... " >&6; }
18823
18824if test -n "$GTK_CFLAGS"; then
18825    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18826 elif test -n "$PKG_CONFIG"; then
18827    if test -n "$PKG_CONFIG" && \
18828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.22.0\""; } >&5
18829  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.22.0") 2>&5
18830  ac_status=$?
18831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18832  test $ac_status = 0; }; then
18833  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.22.0" 2>/dev/null`
18834		      test "x$?" != "x0" && pkg_failed=yes
18835else
18836  pkg_failed=yes
18837fi
18838 else
18839    pkg_failed=untried
18840fi
18841if test -n "$GTK_LIBS"; then
18842    pkg_cv_GTK_LIBS="$GTK_LIBS"
18843 elif test -n "$PKG_CONFIG"; then
18844    if test -n "$PKG_CONFIG" && \
18845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.22.0\""; } >&5
18846  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.22.0") 2>&5
18847  ac_status=$?
18848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18849  test $ac_status = 0; }; then
18850  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.22.0" 2>/dev/null`
18851		      test "x$?" != "x0" && pkg_failed=yes
18852else
18853  pkg_failed=yes
18854fi
18855 else
18856    pkg_failed=untried
18857fi
18858
18859
18860
18861if test $pkg_failed = yes; then
18862        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863$as_echo "no" >&6; }
18864
18865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18866        _pkg_short_errors_supported=yes
18867else
18868        _pkg_short_errors_supported=no
18869fi
18870        if test $_pkg_short_errors_supported = yes; then
18871	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.22.0" 2>&1`
18872        else
18873	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.22.0" 2>&1`
18874        fi
18875	# Put the nasty error message in config.log where it belongs
18876	echo "$GTK_PKG_ERRORS" >&5
18877
18878	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gtk+ 3.0 version 3.22.0 or later (or use --without-gui) before building PSPP." >&5
18879$as_echo "$as_me: WARNING: You must install gtk+ 3.0 version 3.22.0 or later (or use --without-gui) before building PSPP." >&2;}
18880pspp_required_prereqs="$pspp_required_prereqs
18881	gtk+ 3.0 version 3.22.0 or later (or use --without-gui)"
18882elif test $pkg_failed = untried; then
18883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884$as_echo "no" >&6; }
18885	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gtk+ 3.0 version 3.22.0 or later (or use --without-gui) before building PSPP." >&5
18886$as_echo "$as_me: WARNING: You must install gtk+ 3.0 version 3.22.0 or later (or use --without-gui) before building PSPP." >&2;}
18887pspp_required_prereqs="$pspp_required_prereqs
18888	gtk+ 3.0 version 3.22.0 or later (or use --without-gui)"
18889else
18890	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18891	GTK_LIBS=$pkg_cv_GTK_LIBS
18892        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18893$as_echo "yes" >&6; }
18894
18895fi
18896
18897
18898pkg_failed=no
18899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtksourceview-3.0 >= 3.4.2" >&5
18900$as_echo_n "checking for gtksourceview-3.0 >= 3.4.2... " >&6; }
18901
18902if test -n "$GTKSOURCEVIEW_CFLAGS"; then
18903    pkg_cv_GTKSOURCEVIEW_CFLAGS="$GTKSOURCEVIEW_CFLAGS"
18904 elif test -n "$PKG_CONFIG"; then
18905    if test -n "$PKG_CONFIG" && \
18906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-3.0 >= 3.4.2\""; } >&5
18907  ($PKG_CONFIG --exists --print-errors "gtksourceview-3.0 >= 3.4.2") 2>&5
18908  ac_status=$?
18909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18910  test $ac_status = 0; }; then
18911  pkg_cv_GTKSOURCEVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-3.0 >= 3.4.2" 2>/dev/null`
18912		      test "x$?" != "x0" && pkg_failed=yes
18913else
18914  pkg_failed=yes
18915fi
18916 else
18917    pkg_failed=untried
18918fi
18919if test -n "$GTKSOURCEVIEW_LIBS"; then
18920    pkg_cv_GTKSOURCEVIEW_LIBS="$GTKSOURCEVIEW_LIBS"
18921 elif test -n "$PKG_CONFIG"; then
18922    if test -n "$PKG_CONFIG" && \
18923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-3.0 >= 3.4.2\""; } >&5
18924  ($PKG_CONFIG --exists --print-errors "gtksourceview-3.0 >= 3.4.2") 2>&5
18925  ac_status=$?
18926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18927  test $ac_status = 0; }; then
18928  pkg_cv_GTKSOURCEVIEW_LIBS=`$PKG_CONFIG --libs "gtksourceview-3.0 >= 3.4.2" 2>/dev/null`
18929		      test "x$?" != "x0" && pkg_failed=yes
18930else
18931  pkg_failed=yes
18932fi
18933 else
18934    pkg_failed=untried
18935fi
18936
18937
18938
18939if test $pkg_failed = yes; then
18940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18941$as_echo "no" >&6; }
18942
18943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18944        _pkg_short_errors_supported=yes
18945else
18946        _pkg_short_errors_supported=no
18947fi
18948        if test $_pkg_short_errors_supported = yes; then
18949	        GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtksourceview-3.0 >= 3.4.2" 2>&1`
18950        else
18951	        GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtksourceview-3.0 >= 3.4.2" 2>&1`
18952        fi
18953	# Put the nasty error message in config.log where it belongs
18954	echo "$GTKSOURCEVIEW_PKG_ERRORS" >&5
18955
18956	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gtksourceview 3.0 version 3.4.2 or later (or use --without-gui) before building PSPP." >&5
18957$as_echo "$as_me: WARNING: You must install gtksourceview 3.0 version 3.4.2 or later (or use --without-gui) before building PSPP." >&2;}
18958pspp_required_prereqs="$pspp_required_prereqs
18959	gtksourceview 3.0 version 3.4.2 or later (or use --without-gui)"
18960elif test $pkg_failed = untried; then
18961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962$as_echo "no" >&6; }
18963	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gtksourceview 3.0 version 3.4.2 or later (or use --without-gui) before building PSPP." >&5
18964$as_echo "$as_me: WARNING: You must install gtksourceview 3.0 version 3.4.2 or later (or use --without-gui) before building PSPP." >&2;}
18965pspp_required_prereqs="$pspp_required_prereqs
18966	gtksourceview 3.0 version 3.4.2 or later (or use --without-gui)"
18967else
18968	GTKSOURCEVIEW_CFLAGS=$pkg_cv_GTKSOURCEVIEW_CFLAGS
18969	GTKSOURCEVIEW_LIBS=$pkg_cv_GTKSOURCEVIEW_LIBS
18970        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18971$as_echo "yes" >&6; }
18972
18973fi
18974
18975
18976pkg_failed=no
18977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.44" >&5
18978$as_echo_n "checking for glib-2.0 >= 2.44... " >&6; }
18979
18980if test -n "$GLIB_CFLAGS"; then
18981    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
18982 elif test -n "$PKG_CONFIG"; then
18983    if test -n "$PKG_CONFIG" && \
18984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.44\""; } >&5
18985  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.44") 2>&5
18986  ac_status=$?
18987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18988  test $ac_status = 0; }; then
18989  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.44" 2>/dev/null`
18990		      test "x$?" != "x0" && pkg_failed=yes
18991else
18992  pkg_failed=yes
18993fi
18994 else
18995    pkg_failed=untried
18996fi
18997if test -n "$GLIB_LIBS"; then
18998    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
18999 elif test -n "$PKG_CONFIG"; then
19000    if test -n "$PKG_CONFIG" && \
19001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.44\""; } >&5
19002  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.44") 2>&5
19003  ac_status=$?
19004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005  test $ac_status = 0; }; then
19006  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.44" 2>/dev/null`
19007		      test "x$?" != "x0" && pkg_failed=yes
19008else
19009  pkg_failed=yes
19010fi
19011 else
19012    pkg_failed=untried
19013fi
19014
19015
19016
19017if test $pkg_failed = yes; then
19018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19019$as_echo "no" >&6; }
19020
19021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19022        _pkg_short_errors_supported=yes
19023else
19024        _pkg_short_errors_supported=no
19025fi
19026        if test $_pkg_short_errors_supported = yes; then
19027	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.44" 2>&1`
19028        else
19029	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.44" 2>&1`
19030        fi
19031	# Put the nasty error message in config.log where it belongs
19032	echo "$GLIB_PKG_ERRORS" >&5
19033
19034	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install glib 2.0 version 2.44 or later (or use --without-gui) before building PSPP." >&5
19035$as_echo "$as_me: WARNING: You must install glib 2.0 version 2.44 or later (or use --without-gui) before building PSPP." >&2;}
19036pspp_required_prereqs="$pspp_required_prereqs
19037	glib 2.0 version 2.44 or later (or use --without-gui)"
19038elif test $pkg_failed = untried; then
19039        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19040$as_echo "no" >&6; }
19041	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install glib 2.0 version 2.44 or later (or use --without-gui) before building PSPP." >&5
19042$as_echo "$as_me: WARNING: You must install glib 2.0 version 2.44 or later (or use --without-gui) before building PSPP." >&2;}
19043pspp_required_prereqs="$pspp_required_prereqs
19044	glib 2.0 version 2.44 or later (or use --without-gui)"
19045else
19046	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19047	GLIB_LIBS=$pkg_cv_GLIB_LIBS
19048        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19049$as_echo "yes" >&6; }
19050
19051fi
19052
19053
19054pkg_failed=no
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for spread-sheet-widget >= 0.6" >&5
19056$as_echo_n "checking for spread-sheet-widget >= 0.6... " >&6; }
19057
19058if test -n "$SPREAD_SHEET_WIDGET_CFLAGS"; then
19059    pkg_cv_SPREAD_SHEET_WIDGET_CFLAGS="$SPREAD_SHEET_WIDGET_CFLAGS"
19060 elif test -n "$PKG_CONFIG"; then
19061    if test -n "$PKG_CONFIG" && \
19062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spread-sheet-widget >= 0.6\""; } >&5
19063  ($PKG_CONFIG --exists --print-errors "spread-sheet-widget >= 0.6") 2>&5
19064  ac_status=$?
19065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19066  test $ac_status = 0; }; then
19067  pkg_cv_SPREAD_SHEET_WIDGET_CFLAGS=`$PKG_CONFIG --cflags "spread-sheet-widget >= 0.6" 2>/dev/null`
19068		      test "x$?" != "x0" && pkg_failed=yes
19069else
19070  pkg_failed=yes
19071fi
19072 else
19073    pkg_failed=untried
19074fi
19075if test -n "$SPREAD_SHEET_WIDGET_LIBS"; then
19076    pkg_cv_SPREAD_SHEET_WIDGET_LIBS="$SPREAD_SHEET_WIDGET_LIBS"
19077 elif test -n "$PKG_CONFIG"; then
19078    if test -n "$PKG_CONFIG" && \
19079    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spread-sheet-widget >= 0.6\""; } >&5
19080  ($PKG_CONFIG --exists --print-errors "spread-sheet-widget >= 0.6") 2>&5
19081  ac_status=$?
19082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19083  test $ac_status = 0; }; then
19084  pkg_cv_SPREAD_SHEET_WIDGET_LIBS=`$PKG_CONFIG --libs "spread-sheet-widget >= 0.6" 2>/dev/null`
19085		      test "x$?" != "x0" && pkg_failed=yes
19086else
19087  pkg_failed=yes
19088fi
19089 else
19090    pkg_failed=untried
19091fi
19092
19093
19094
19095if test $pkg_failed = yes; then
19096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19097$as_echo "no" >&6; }
19098
19099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19100        _pkg_short_errors_supported=yes
19101else
19102        _pkg_short_errors_supported=no
19103fi
19104        if test $_pkg_short_errors_supported = yes; then
19105	        SPREAD_SHEET_WIDGET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spread-sheet-widget >= 0.6" 2>&1`
19106        else
19107	        SPREAD_SHEET_WIDGET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spread-sheet-widget >= 0.6" 2>&1`
19108        fi
19109	# Put the nasty error message in config.log where it belongs
19110	echo "$SPREAD_SHEET_WIDGET_PKG_ERRORS" >&5
19111
19112	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install spread-sheet-widget 0.6 (or use --without-gui) before building PSPP." >&5
19113$as_echo "$as_me: WARNING: You must install spread-sheet-widget 0.6 (or use --without-gui) before building PSPP." >&2;}
19114pspp_required_prereqs="$pspp_required_prereqs
19115	spread-sheet-widget 0.6 (or use --without-gui)"
19116elif test $pkg_failed = untried; then
19117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118$as_echo "no" >&6; }
19119	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install spread-sheet-widget 0.6 (or use --without-gui) before building PSPP." >&5
19120$as_echo "$as_me: WARNING: You must install spread-sheet-widget 0.6 (or use --without-gui) before building PSPP." >&2;}
19121pspp_required_prereqs="$pspp_required_prereqs
19122	spread-sheet-widget 0.6 (or use --without-gui)"
19123else
19124	SPREAD_SHEET_WIDGET_CFLAGS=$pkg_cv_SPREAD_SHEET_WIDGET_CFLAGS
19125	SPREAD_SHEET_WIDGET_LIBS=$pkg_cv_SPREAD_SHEET_WIDGET_LIBS
19126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19127$as_echo "yes" >&6; }
19128
19129fi
19130
19131
19132  for ac_prog in glib-genmarshal
19133do
19134  # Extract the first word of "$ac_prog", so it can be a program name with args.
19135set dummy $ac_prog; ac_word=$2
19136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19137$as_echo_n "checking for $ac_word... " >&6; }
19138if ${ac_cv_prog_GLIB_GENMARSHAL+:} false; then :
19139  $as_echo_n "(cached) " >&6
19140else
19141  if test -n "$GLIB_GENMARSHAL"; then
19142  ac_cv_prog_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test.
19143else
19144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19145for as_dir in $PATH
19146do
19147  IFS=$as_save_IFS
19148  test -z "$as_dir" && as_dir=.
19149    for ac_exec_ext in '' $ac_executable_extensions; do
19150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19151    ac_cv_prog_GLIB_GENMARSHAL="$ac_prog"
19152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19153    break 2
19154  fi
19155done
19156  done
19157IFS=$as_save_IFS
19158
19159fi
19160fi
19161GLIB_GENMARSHAL=$ac_cv_prog_GLIB_GENMARSHAL
19162if test -n "$GLIB_GENMARSHAL"; then
19163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
19164$as_echo "$GLIB_GENMARSHAL" >&6; }
19165else
19166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167$as_echo "no" >&6; }
19168fi
19169
19170
19171  test -n "$GLIB_GENMARSHAL" && break
19172done
19173
19174  if test "x$GLIB_GENMARSHAL" = x; then
19175    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install glib-genmarshal (or use --without-gui) before building PSPP." >&5
19176$as_echo "$as_me: WARNING: You must install glib-genmarshal (or use --without-gui) before building PSPP." >&2;}
19177pspp_required_prereqs="$pspp_required_prereqs
19178	glib-genmarshal (or use --without-gui)"
19179  fi
19180
19181  for ac_prog in glib-compile-resources
19182do
19183  # Extract the first word of "$ac_prog", so it can be a program name with args.
19184set dummy $ac_prog; ac_word=$2
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19186$as_echo_n "checking for $ac_word... " >&6; }
19187if ${ac_cv_prog_GLIB_COMPILE_RESOURCES+:} false; then :
19188  $as_echo_n "(cached) " >&6
19189else
19190  if test -n "$GLIB_COMPILE_RESOURCES"; then
19191  ac_cv_prog_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test.
19192else
19193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19194for as_dir in $PATH
19195do
19196  IFS=$as_save_IFS
19197  test -z "$as_dir" && as_dir=.
19198    for ac_exec_ext in '' $ac_executable_extensions; do
19199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19200    ac_cv_prog_GLIB_COMPILE_RESOURCES="$ac_prog"
19201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19202    break 2
19203  fi
19204done
19205  done
19206IFS=$as_save_IFS
19207
19208fi
19209fi
19210GLIB_COMPILE_RESOURCES=$ac_cv_prog_GLIB_COMPILE_RESOURCES
19211if test -n "$GLIB_COMPILE_RESOURCES"; then
19212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
19213$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
19214else
19215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19216$as_echo "no" >&6; }
19217fi
19218
19219
19220  test -n "$GLIB_COMPILE_RESOURCES" && break
19221done
19222
19223  if test "x$GLIB_COMPILE_RESOURCES" = x; then
19224    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install glib-compile-resources (or use --without-gui) before building PSPP." >&5
19225$as_echo "$as_me: WARNING: You must install glib-compile-resources (or use --without-gui) before building PSPP." >&2;}
19226pspp_required_prereqs="$pspp_required_prereqs
19227	glib-compile-resources (or use --without-gui)"
19228  fi
19229
19230fi
19231
19232
19233
19234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19235$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19236if ${gl_cv_have_include_next+:} false; then :
19237  $as_echo_n "(cached) " >&6
19238else
19239  rm -rf conftestd1a conftestd1b conftestd2
19240     mkdir conftestd1a conftestd1b conftestd2
19241                                                  cat <<EOF > conftestd1a/conftest.h
19242#define DEFINED_IN_CONFTESTD1
19243#include_next <conftest.h>
19244#ifdef DEFINED_IN_CONFTESTD2
19245int foo;
19246#else
19247#error "include_next doesn't work"
19248#endif
19249EOF
19250     cat <<EOF > conftestd1b/conftest.h
19251#define DEFINED_IN_CONFTESTD1
19252#include <stdio.h>
19253#include_next <conftest.h>
19254#ifdef DEFINED_IN_CONFTESTD2
19255int foo;
19256#else
19257#error "include_next doesn't work"
19258#endif
19259EOF
19260     cat <<EOF > conftestd2/conftest.h
19261#ifndef DEFINED_IN_CONFTESTD1
19262#error "include_next test doesn't work"
19263#endif
19264#define DEFINED_IN_CONFTESTD2
19265EOF
19266     gl_save_CPPFLAGS="$CPPFLAGS"
19267     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269/* end confdefs.h.  */
19270#include <conftest.h>
19271_ACEOF
19272if ac_fn_c_try_compile "$LINENO"; then :
19273  gl_cv_have_include_next=yes
19274else
19275  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19276        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277/* end confdefs.h.  */
19278#include <conftest.h>
19279_ACEOF
19280if ac_fn_c_try_compile "$LINENO"; then :
19281  gl_cv_have_include_next=buggy
19282else
19283  gl_cv_have_include_next=no
19284fi
19285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286
19287fi
19288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289     CPPFLAGS="$gl_save_CPPFLAGS"
19290     rm -rf conftestd1a conftestd1b conftestd2
19291
19292fi
19293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19294$as_echo "$gl_cv_have_include_next" >&6; }
19295  PRAGMA_SYSTEM_HEADER=
19296  if test $gl_cv_have_include_next = yes; then
19297    INCLUDE_NEXT=include_next
19298    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19299    if test -n "$GCC"; then
19300      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19301    fi
19302  else
19303    if test $gl_cv_have_include_next = buggy; then
19304      INCLUDE_NEXT=include
19305      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19306    else
19307      INCLUDE_NEXT=include
19308      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19309    fi
19310  fi
19311
19312
19313
19314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19315$as_echo_n "checking whether system header files limit the line length... " >&6; }
19316if ${gl_cv_pragma_columns+:} false; then :
19317  $as_echo_n "(cached) " >&6
19318else
19319       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320/* end confdefs.h.  */
19321
19322#ifdef __TANDEM
19323choke me
19324#endif
19325
19326_ACEOF
19327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19328  $EGREP "choke me" >/dev/null 2>&1; then :
19329  gl_cv_pragma_columns=yes
19330else
19331  gl_cv_pragma_columns=no
19332fi
19333rm -f conftest*
19334
19335
19336fi
19337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19338$as_echo "$gl_cv_pragma_columns" >&6; }
19339  if test $gl_cv_pragma_columns = yes; then
19340    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19341  else
19342    PRAGMA_COLUMNS=
19343  fi
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354     if test $gl_cv_have_include_next = yes; then
19355       gl_cv_next_gtk_gtk_h='<'gtk/gtk.h'>'
19356     else
19357       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <gtk/gtk.h>" >&5
19358$as_echo_n "checking absolute name of <gtk/gtk.h>... " >&6; }
19359if ${gl_cv_next_gtk_gtk_h+:} false; then :
19360  $as_echo_n "(cached) " >&6
19361else
19362
19363
19364
19365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366/* end confdefs.h.  */
19367#include <gtk/gtk.h>
19368_ACEOF
19369                case "$host_os" in
19370    aix*) gl_absname_cpp="$ac_cpp -C" ;;
19371    *)    gl_absname_cpp="$ac_cpp" ;;
19372  esac
19373
19374  case "$host_os" in
19375    mingw*)
19376                                          gl_dirsep_regex='[/\\]'
19377      ;;
19378    *)
19379      gl_dirsep_regex='\/'
19380      ;;
19381  esac
19382      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19383  gl_header_literal_regex=`echo 'gtk/gtk.h' \
19384                           | sed -e "$gl_make_literal_regex_sed"`
19385  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19386      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19387      s|^/[^/]|//&|
19388      p
19389      q
19390    }'
19391
19392        gl_cv_absolute_gtk_gtk_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19393  sed -n "$gl_absolute_header_sed"`
19394
19395           gl_header=$gl_cv_absolute_gtk_gtk_h
19396           gl_cv_next_gtk_gtk_h='"'$gl_header'"'
19397
19398
19399fi
19400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_gtk_gtk_h" >&5
19401$as_echo "$gl_cv_next_gtk_gtk_h" >&6; }
19402     fi
19403     NEXT_GTK_GTK_H=$gl_cv_next_gtk_gtk_h
19404
19405     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19406       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19407       gl_next_as_first_directive='<'gtk/gtk.h'>'
19408     else
19409       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19410       gl_next_as_first_directive=$gl_cv_next_gtk_gtk_h
19411     fi
19412     NEXT_AS_FIRST_DIRECTIVE_GTK_GTK_H=$gl_next_as_first_directive
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424# Check whether --with-libpq was given.
19425if test "${with_libpq+set}" = set; then :
19426  withval=$with_libpq;
19427fi
19428
19429
19430# Extract the first word of "pg_config", so it can be a program name with args.
19431set dummy pg_config; ac_word=$2
19432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19433$as_echo_n "checking for $ac_word... " >&6; }
19434if ${ac_cv_path_PG_CONFIG+:} false; then :
19435  $as_echo_n "(cached) " >&6
19436else
19437  case $PG_CONFIG in
19438  [\\/]* | ?:[\\/]*)
19439  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
19440  ;;
19441  *)
19442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443as_dummy="$PATH:/usr/local/pgsql/bin:/usr/pgsql/bin"
19444for as_dir in $as_dummy
19445do
19446  IFS=$as_save_IFS
19447  test -z "$as_dir" && as_dir=.
19448    for ac_exec_ext in '' $ac_executable_extensions; do
19449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19450    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19452    break 2
19453  fi
19454done
19455  done
19456IFS=$as_save_IFS
19457
19458  ;;
19459esac
19460fi
19461PG_CONFIG=$ac_cv_path_PG_CONFIG
19462if test -n "$PG_CONFIG"; then
19463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
19464$as_echo "$PG_CONFIG" >&6; }
19465else
19466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467$as_echo "no" >&6; }
19468fi
19469
19470
19471
19472if test x"$with_libpq" != x"no" && test -n "$PG_CONFIG" ; then
19473
19474  PG_CFLAGS=-I`$PG_CONFIG --includedir`
19475
19476
19477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexec in -lpq" >&5
19478$as_echo_n "checking for PQexec in -lpq... " >&6; }
19479if ${ac_cv_lib_pq_PQexec+:} false; then :
19480  $as_echo_n "(cached) " >&6
19481else
19482  ac_check_lib_save_LIBS=$LIBS
19483LIBS="-lpq  $LIBS"
19484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485/* end confdefs.h.  */
19486
19487/* Override any GCC internal prototype to avoid an error.
19488   Use char because int might match the return type of a GCC
19489   builtin and then its argument prototype would still apply.  */
19490#ifdef __cplusplus
19491extern "C"
19492#endif
19493char PQexec ();
19494int
19495main ()
19496{
19497return PQexec ();
19498  ;
19499  return 0;
19500}
19501_ACEOF
19502if ac_fn_c_try_link "$LINENO"; then :
19503  ac_cv_lib_pq_PQexec=yes
19504else
19505  ac_cv_lib_pq_PQexec=no
19506fi
19507rm -f core conftest.err conftest.$ac_objext \
19508    conftest$ac_exeext conftest.$ac_ext
19509LIBS=$ac_check_lib_save_LIBS
19510fi
19511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexec" >&5
19512$as_echo "$ac_cv_lib_pq_PQexec" >&6; }
19513if test "x$ac_cv_lib_pq_PQexec" = xyes; then :
19514  :
19515else
19516  PG_LDFLAGS="-L`$PG_CONFIG --libdir` -R`$PG_CONFIG --libdir`"
19517fi
19518
19519
19520
19521  PG_LIBS=-lpq
19522
19523
19524  if test -n "$PKG_CONFIG" && \
19525    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
19526  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
19527  ac_status=$?
19528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19529  test $ac_status = 0; }; then
19530
19531$as_echo "#define USE_SSL 1" >>confdefs.h
19532
19533
19534fi
19535
19536  # Now verify that we can actually link against libpq.  If we are
19537  # cross-compiling and picked up a host libpq, or if libpq is just
19538  # badly installed, this will fail.
19539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpq links successfully" >&5
19540$as_echo_n "checking whether -lpq links successfully... " >&6; }
19541if ${pspp_cv_have_libpq+:} false; then :
19542  $as_echo_n "(cached) " >&6
19543else
19544  save_CPPFLAGS=$CPPFLAGS
19545     save_LIBS=$LIBS
19546     save_LDFLAGS=$LDFLAGS
19547     CPPFLAGS="$PG_CFLAGS $CPPFLAGS"
19548     LIBS="$PG_LIBS $LIBS"
19549     LDFLAGS="$PG_LDFLAGS $LDFLAGS"
19550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551/* end confdefs.h.  */
19552#include <libpq-fe.h>
19553
19554int
19555main ()
19556{
19557PQfinish (0);
19558  ;
19559  return 0;
19560}
19561_ACEOF
19562if ac_fn_c_try_link "$LINENO"; then :
19563  pspp_cv_have_libpq=yes
19564else
19565  pspp_cv_have_libpq=no
19566fi
19567rm -f core conftest.err conftest.$ac_objext \
19568    conftest$ac_exeext conftest.$ac_ext
19569     CPPFLAGS=$save_CPPFLAGS
19570     LIBS=$save_LIBS
19571     LDFLAGS=$save_LDFLAGS
19572fi
19573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_have_libpq" >&5
19574$as_echo "$pspp_cv_have_libpq" >&6; }
19575
19576  if test $pspp_cv_have_libpq = yes; then
19577    PSQL_SUPPORT=yes
19578
19579$as_echo "#define PSQL_SUPPORT 1" >>confdefs.h
19580
19581  else
19582    PSQL_SUPPORT=no
19583    PG_CONFIG=
19584    PG_CFLAGS=
19585    PG_LDFLAGS=
19586    PG_LIBS=
19587  fi
19588else
19589  PSQL_SUPPORT=no
19590  pspp_cv_have_libpq=no
19591fi
19592
19593
19594
19595pkg_failed=no
19596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
19597$as_echo_n "checking for libxml-2.0... " >&6; }
19598
19599if test -n "$LIBXML2_CFLAGS"; then
19600    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19601 elif test -n "$PKG_CONFIG"; then
19602    if test -n "$PKG_CONFIG" && \
19603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
19604  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
19605  ac_status=$?
19606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19607  test $ac_status = 0; }; then
19608  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
19609		      test "x$?" != "x0" && pkg_failed=yes
19610else
19611  pkg_failed=yes
19612fi
19613 else
19614    pkg_failed=untried
19615fi
19616if test -n "$LIBXML2_LIBS"; then
19617    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19618 elif test -n "$PKG_CONFIG"; then
19619    if test -n "$PKG_CONFIG" && \
19620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
19621  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
19622  ac_status=$?
19623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19624  test $ac_status = 0; }; then
19625  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
19626		      test "x$?" != "x0" && pkg_failed=yes
19627else
19628  pkg_failed=yes
19629fi
19630 else
19631    pkg_failed=untried
19632fi
19633
19634
19635
19636if test $pkg_failed = yes; then
19637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638$as_echo "no" >&6; }
19639
19640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19641        _pkg_short_errors_supported=yes
19642else
19643        _pkg_short_errors_supported=no
19644fi
19645        if test $_pkg_short_errors_supported = yes; then
19646	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
19647        else
19648	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
19649        fi
19650	# Put the nasty error message in config.log where it belongs
19651	echo "$LIBXML2_PKG_ERRORS" >&5
19652
19653	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install libxml2 before building PSPP." >&5
19654$as_echo "$as_me: WARNING: You must install libxml2 before building PSPP." >&2;}
19655pspp_required_prereqs="$pspp_required_prereqs
19656	libxml2"
19657elif test $pkg_failed = untried; then
19658        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659$as_echo "no" >&6; }
19660	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install libxml2 before building PSPP." >&5
19661$as_echo "$as_me: WARNING: You must install libxml2 before building PSPP." >&2;}
19662pspp_required_prereqs="$pspp_required_prereqs
19663	libxml2"
19664else
19665	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19666	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19668$as_echo "yes" >&6; }
19669
19670fi
19671
19672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
19673$as_echo_n "checking for library containing gzopen... " >&6; }
19674if ${ac_cv_search_gzopen+:} false; then :
19675  $as_echo_n "(cached) " >&6
19676else
19677  ac_func_search_save_LIBS=$LIBS
19678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679/* end confdefs.h.  */
19680
19681/* Override any GCC internal prototype to avoid an error.
19682   Use char because int might match the return type of a GCC
19683   builtin and then its argument prototype would still apply.  */
19684#ifdef __cplusplus
19685extern "C"
19686#endif
19687char gzopen ();
19688int
19689main ()
19690{
19691return gzopen ();
19692  ;
19693  return 0;
19694}
19695_ACEOF
19696for ac_lib in '' z; do
19697  if test -z "$ac_lib"; then
19698    ac_res="none required"
19699  else
19700    ac_res=-l$ac_lib
19701    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19702  fi
19703  if ac_fn_c_try_link "$LINENO"; then :
19704  ac_cv_search_gzopen=$ac_res
19705fi
19706rm -f core conftest.err conftest.$ac_objext \
19707    conftest$ac_exeext
19708  if ${ac_cv_search_gzopen+:} false; then :
19709  break
19710fi
19711done
19712if ${ac_cv_search_gzopen+:} false; then :
19713
19714else
19715  ac_cv_search_gzopen=no
19716fi
19717rm conftest.$ac_ext
19718LIBS=$ac_func_search_save_LIBS
19719fi
19720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
19721$as_echo "$ac_cv_search_gzopen" >&6; }
19722ac_res=$ac_cv_search_gzopen
19723if test "$ac_res" != no; then :
19724  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19725
19726else
19727  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install zlib before building PSPP." >&5
19728$as_echo "$as_me: WARNING: You must install zlib before building PSPP." >&2;}
19729pspp_required_prereqs="$pspp_required_prereqs
19730	zlib"
19731fi
19732
19733for ac_header in zlib.h
19734do :
19735  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19736if test "x$ac_cv_header_zlib_h" = xyes; then :
19737  cat >>confdefs.h <<_ACEOF
19738#define HAVE_ZLIB_H 1
19739_ACEOF
19740
19741else
19742  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install zlib before building PSPP." >&5
19743$as_echo "$as_me: WARNING: You must install zlib before building PSPP." >&2;}
19744pspp_required_prereqs="$pspp_required_prereqs
19745	zlib"
19746fi
19747
19748done
19749
19750
19751
19752$as_echo "#define crc32 gl_crc32" >>confdefs.h
19753
19754
19755
19756# Check whether --with-perl-module was given.
19757if test "${with_perl_module+set}" = set; then :
19758  withval=$with_perl_module; case $with_perl_module in # (
19759     yes|no) ;; # (
19760     *) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19762as_fn_error $? "--with-perl-module argument must be 'yes' or 'no'
19763See \`config.log' for more details" "$LINENO" 5; } ;;
19764   esac
19765   WITH_PERL_MODULE=$with_perl_module
19766else
19767  if test x"$cross_compiling" != x"yes"; then
19768     WITH_PERL_MODULE=yes
19769   else
19770     WITH_PERL_MODULE=no
19771   fi
19772fi
19773
19774
19775 if test $WITH_PERL_MODULE = yes; then
19776  WITH_PERL_MODULE_TRUE=
19777  WITH_PERL_MODULE_FALSE='#'
19778else
19779  WITH_PERL_MODULE_TRUE='#'
19780  WITH_PERL_MODULE_FALSE=
19781fi
19782
19783
19784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cblas_dsdot" >&5
19785$as_echo_n "checking for library containing cblas_dsdot... " >&6; }
19786if ${ac_cv_search_cblas_dsdot+:} false; then :
19787  $as_echo_n "(cached) " >&6
19788else
19789  ac_func_search_save_LIBS=$LIBS
19790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791/* end confdefs.h.  */
19792
19793/* Override any GCC internal prototype to avoid an error.
19794   Use char because int might match the return type of a GCC
19795   builtin and then its argument prototype would still apply.  */
19796#ifdef __cplusplus
19797extern "C"
19798#endif
19799char cblas_dsdot ();
19800int
19801main ()
19802{
19803return cblas_dsdot ();
19804  ;
19805  return 0;
19806}
19807_ACEOF
19808for ac_lib in '' gslcblas; do
19809  if test -z "$ac_lib"; then
19810    ac_res="none required"
19811  else
19812    ac_res=-l$ac_lib
19813    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19814  fi
19815  if ac_fn_c_try_link "$LINENO"; then :
19816  ac_cv_search_cblas_dsdot=$ac_res
19817fi
19818rm -f core conftest.err conftest.$ac_objext \
19819    conftest$ac_exeext
19820  if ${ac_cv_search_cblas_dsdot+:} false; then :
19821  break
19822fi
19823done
19824if ${ac_cv_search_cblas_dsdot+:} false; then :
19825
19826else
19827  ac_cv_search_cblas_dsdot=no
19828fi
19829rm conftest.$ac_ext
19830LIBS=$ac_func_search_save_LIBS
19831fi
19832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cblas_dsdot" >&5
19833$as_echo "$ac_cv_search_cblas_dsdot" >&6; }
19834ac_res=$ac_cv_search_cblas_dsdot
19835if test "$ac_res" != no; then :
19836  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19837
19838else
19839  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install libgslcblas before building PSPP." >&5
19840$as_echo "$as_me: WARNING: You must install libgslcblas before building PSPP." >&2;}
19841pspp_required_prereqs="$pspp_required_prereqs
19842	libgslcblas"
19843fi
19844
19845
19846pkg_failed=no
19847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl >= 1.13" >&5
19848$as_echo_n "checking for gsl >= 1.13... " >&6; }
19849
19850if test -n "$GSL_CFLAGS"; then
19851    pkg_cv_GSL_CFLAGS="$GSL_CFLAGS"
19852 elif test -n "$PKG_CONFIG"; then
19853    if test -n "$PKG_CONFIG" && \
19854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.13\""; } >&5
19855  ($PKG_CONFIG --exists --print-errors "gsl >= 1.13") 2>&5
19856  ac_status=$?
19857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19858  test $ac_status = 0; }; then
19859  pkg_cv_GSL_CFLAGS=`$PKG_CONFIG --cflags "gsl >= 1.13" 2>/dev/null`
19860		      test "x$?" != "x0" && pkg_failed=yes
19861else
19862  pkg_failed=yes
19863fi
19864 else
19865    pkg_failed=untried
19866fi
19867if test -n "$GSL_LIBS"; then
19868    pkg_cv_GSL_LIBS="$GSL_LIBS"
19869 elif test -n "$PKG_CONFIG"; then
19870    if test -n "$PKG_CONFIG" && \
19871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.13\""; } >&5
19872  ($PKG_CONFIG --exists --print-errors "gsl >= 1.13") 2>&5
19873  ac_status=$?
19874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19875  test $ac_status = 0; }; then
19876  pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs "gsl >= 1.13" 2>/dev/null`
19877		      test "x$?" != "x0" && pkg_failed=yes
19878else
19879  pkg_failed=yes
19880fi
19881 else
19882    pkg_failed=untried
19883fi
19884
19885
19886
19887if test $pkg_failed = yes; then
19888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889$as_echo "no" >&6; }
19890
19891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19892        _pkg_short_errors_supported=yes
19893else
19894        _pkg_short_errors_supported=no
19895fi
19896        if test $_pkg_short_errors_supported = yes; then
19897	        GSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gsl >= 1.13" 2>&1`
19898        else
19899	        GSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gsl >= 1.13" 2>&1`
19900        fi
19901	# Put the nasty error message in config.log where it belongs
19902	echo "$GSL_PKG_ERRORS" >&5
19903
19904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gsl_poly_eval_derivs" >&5
19905$as_echo_n "checking for library containing gsl_poly_eval_derivs... " >&6; }
19906if ${ac_cv_search_gsl_poly_eval_derivs+:} false; then :
19907  $as_echo_n "(cached) " >&6
19908else
19909  ac_func_search_save_LIBS=$LIBS
19910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911/* end confdefs.h.  */
19912
19913/* Override any GCC internal prototype to avoid an error.
19914   Use char because int might match the return type of a GCC
19915   builtin and then its argument prototype would still apply.  */
19916#ifdef __cplusplus
19917extern "C"
19918#endif
19919char gsl_poly_eval_derivs ();
19920int
19921main ()
19922{
19923return gsl_poly_eval_derivs ();
19924  ;
19925  return 0;
19926}
19927_ACEOF
19928for ac_lib in '' gsl; do
19929  if test -z "$ac_lib"; then
19930    ac_res="none required"
19931  else
19932    ac_res=-l$ac_lib
19933    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19934  fi
19935  if ac_fn_c_try_link "$LINENO"; then :
19936  ac_cv_search_gsl_poly_eval_derivs=$ac_res
19937fi
19938rm -f core conftest.err conftest.$ac_objext \
19939    conftest$ac_exeext
19940  if ${ac_cv_search_gsl_poly_eval_derivs+:} false; then :
19941  break
19942fi
19943done
19944if ${ac_cv_search_gsl_poly_eval_derivs+:} false; then :
19945
19946else
19947  ac_cv_search_gsl_poly_eval_derivs=no
19948fi
19949rm conftest.$ac_ext
19950LIBS=$ac_func_search_save_LIBS
19951fi
19952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsl_poly_eval_derivs" >&5
19953$as_echo "$ac_cv_search_gsl_poly_eval_derivs" >&6; }
19954ac_res=$ac_cv_search_gsl_poly_eval_derivs
19955if test "$ac_res" != no; then :
19956  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19957
19958else
19959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gsl version 1.13 or later before building PSPP." >&5
19960$as_echo "$as_me: WARNING: You must install gsl version 1.13 or later before building PSPP." >&2;}
19961pspp_required_prereqs="$pspp_required_prereqs
19962	gsl version 1.13 or later"
19963fi
19964
19965elif test $pkg_failed = untried; then
19966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967$as_echo "no" >&6; }
19968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gsl_poly_eval_derivs" >&5
19969$as_echo_n "checking for library containing gsl_poly_eval_derivs... " >&6; }
19970if ${ac_cv_search_gsl_poly_eval_derivs+:} false; then :
19971  $as_echo_n "(cached) " >&6
19972else
19973  ac_func_search_save_LIBS=$LIBS
19974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975/* end confdefs.h.  */
19976
19977/* Override any GCC internal prototype to avoid an error.
19978   Use char because int might match the return type of a GCC
19979   builtin and then its argument prototype would still apply.  */
19980#ifdef __cplusplus
19981extern "C"
19982#endif
19983char gsl_poly_eval_derivs ();
19984int
19985main ()
19986{
19987return gsl_poly_eval_derivs ();
19988  ;
19989  return 0;
19990}
19991_ACEOF
19992for ac_lib in '' gsl; do
19993  if test -z "$ac_lib"; then
19994    ac_res="none required"
19995  else
19996    ac_res=-l$ac_lib
19997    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19998  fi
19999  if ac_fn_c_try_link "$LINENO"; then :
20000  ac_cv_search_gsl_poly_eval_derivs=$ac_res
20001fi
20002rm -f core conftest.err conftest.$ac_objext \
20003    conftest$ac_exeext
20004  if ${ac_cv_search_gsl_poly_eval_derivs+:} false; then :
20005  break
20006fi
20007done
20008if ${ac_cv_search_gsl_poly_eval_derivs+:} false; then :
20009
20010else
20011  ac_cv_search_gsl_poly_eval_derivs=no
20012fi
20013rm conftest.$ac_ext
20014LIBS=$ac_func_search_save_LIBS
20015fi
20016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsl_poly_eval_derivs" >&5
20017$as_echo "$ac_cv_search_gsl_poly_eval_derivs" >&6; }
20018ac_res=$ac_cv_search_gsl_poly_eval_derivs
20019if test "$ac_res" != no; then :
20020  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20021
20022else
20023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install gsl version 1.13 or later before building PSPP." >&5
20024$as_echo "$as_me: WARNING: You must install gsl version 1.13 or later before building PSPP." >&2;}
20025pspp_required_prereqs="$pspp_required_prereqs
20026	gsl version 1.13 or later"
20027fi
20028
20029else
20030	GSL_CFLAGS=$pkg_cv_GSL_CFLAGS
20031	GSL_LIBS=$pkg_cv_GSL_LIBS
20032        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20033$as_echo "yes" >&6; }
20034
20035fi
20036
20037
20038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20039$as_echo_n "checking for inline... " >&6; }
20040if ${ac_cv_c_inline+:} false; then :
20041  $as_echo_n "(cached) " >&6
20042else
20043  ac_cv_c_inline=no
20044for ac_kw in inline __inline__ __inline; do
20045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046/* end confdefs.h.  */
20047#ifndef __cplusplus
20048typedef int foo_t;
20049static $ac_kw foo_t static_foo () {return 0; }
20050$ac_kw foo_t foo () {return 0; }
20051#endif
20052
20053_ACEOF
20054if ac_fn_c_try_compile "$LINENO"; then :
20055  ac_cv_c_inline=$ac_kw
20056fi
20057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058  test "$ac_cv_c_inline" != no && break
20059done
20060
20061fi
20062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20063$as_echo "$ac_cv_c_inline" >&6; }
20064
20065case $ac_cv_c_inline in
20066  inline | yes) ;;
20067  *)
20068    case $ac_cv_c_inline in
20069      no) ac_val=;;
20070      *) ac_val=$ac_cv_c_inline;;
20071    esac
20072    cat >>confdefs.h <<_ACEOF
20073#ifndef __cplusplus
20074#define inline $ac_val
20075#endif
20076_ACEOF
20077    ;;
20078esac
20079
20080
20081
20082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
20083$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20084if ${gl_cv_c_inline_effective+:} false; then :
20085  $as_echo_n "(cached) " >&6
20086else
20087  if test $ac_cv_c_inline = no; then
20088       gl_cv_c_inline_effective=no
20089     else
20090                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091/* end confdefs.h.  */
20092
20093int
20094main ()
20095{
20096#ifdef __NO_INLINE__
20097               #error "inline is not effective"
20098             #endif
20099  ;
20100  return 0;
20101}
20102_ACEOF
20103if ac_fn_c_try_compile "$LINENO"; then :
20104  gl_cv_c_inline_effective=yes
20105else
20106  gl_cv_c_inline_effective=no
20107fi
20108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109     fi
20110
20111fi
20112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
20113$as_echo "$gl_cv_c_inline_effective" >&6; }
20114  if test $gl_cv_c_inline_effective = yes; then
20115
20116$as_echo "#define HAVE_INLINE 1" >>confdefs.h
20117
20118  fi
20119
20120# GSL only uses "inline" at all if HAVE_INLINE is defined as a macro.
20121 # In turn, gnulib's gl_INLINE is one macro that does that.  We need to
20122 # make sure that it has run by the time we run this test, otherwise we'll
20123 # get a false result.
20124
20125
20126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fgnu89-inline" >&5
20127$as_echo_n "checking whether $CC accepts -fgnu89-inline... " >&6; }
20128if ${pspp_cv__fgnu89_inline+:} false; then :
20129  $as_echo_n "(cached) " >&6
20130else
20131  pspp_save_CFLAGS="$CFLAGS"
20132     CFLAGS="$CFLAGS -fgnu89-inline"
20133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h.  */
20135
20136int
20137main ()
20138{
20139
20140  ;
20141  return 0;
20142}
20143_ACEOF
20144if ac_fn_c_try_compile "$LINENO"; then :
20145  pspp_cv__fgnu89_inline=yes
20146else
20147  pspp_cv__fgnu89_inline=no
20148fi
20149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150     CFLAGS="$pspp_save_CFLAGS"
20151fi
20152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv__fgnu89_inline" >&5
20153$as_echo "$pspp_cv__fgnu89_inline" >&6; }
20154  if test $pspp_cv__fgnu89_inline = yes; then
20155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSL needs -fgnu89-inline to link" >&5
20156$as_echo_n "checking whether GSL needs -fgnu89-inline to link... " >&6; }
20157if ${pspp_cv_gsl_needs_fgnu89_inline+:} false; then :
20158  $as_echo_n "(cached) " >&6
20159else
20160
20161		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162/* end confdefs.h.  */
20163#include <gsl/gsl_math.h>
20164
20165int
20166main ()
20167{
20168GSL_MAX_INT(1,2);
20169  ;
20170  return 0;
20171}
20172_ACEOF
20173mv conftest.$ac_ext conftest1.$ac_ext
20174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175/* end confdefs.h.  */
20176#include <gsl/gsl_math.h>
20177				       void x (void) {}
20178_ACEOF
20179mv conftest.$ac_ext conftest2.$ac_ext
20180rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20181pspp_link2='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest1.$ac_ext conftest2.$ac_ext $LIBS >&5'
20182if { { ac_try="$pspp_link2"
20183case "(($ac_try" in
20184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185  *) ac_try_echo=$ac_try;;
20186esac
20187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20188$as_echo "$ac_try_echo"; } >&5
20189  (eval "$pspp_link2") 2>conftest.err
20190  ac_status=$?
20191  if test -s conftest.err; then
20192    grep -v '^ *+' conftest.err >conftest.er1
20193    cat conftest.er1 >&5
20194    mv -f conftest.er1 conftest.err
20195  fi
20196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20197  test $ac_status = 0; } && {
20198	 test -z "$ac_c_werror_flag" ||
20199	 test ! -s conftest.err
20200       } && test -s conftest$ac_exeext && {
20201	 test "$cross_compiling" = yes ||
20202	 test -x conftest$ac_exeext
20203       }; then :
20204  pspp_cv_gsl_needs_fgnu89_inline=no
20205else
20206  echo "$as_me: failed source file 1 of 2 was:" >&5
20207sed 's/^/| /' conftest1.$ac_ext >&5
20208echo "$as_me: failed source file 2 of 2 was:" >&5
20209sed 's/^/| /' conftest2.$ac_ext >&5
20210	pspp_cv_gsl_needs_fgnu89_inline=yes
20211fi
20212rm -rf conftest.dSYM conftest1.dSYM conftest2.dSYM
20213rm -f core conftest.err conftest1.err conftest2.err
20214rm -f conftest1.$ac_objext conftest2.$ac_objext conftest*_ipa8_conftest*.oo
20215rm -f conftest$ac_exeext
20216rm -f conftest1.$ac_ext conftest1.$ac_ext
20217fi
20218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_gsl_needs_fgnu89_inline" >&5
20219$as_echo "$pspp_cv_gsl_needs_fgnu89_inline" >&6; }
20220     if test "$pspp_cv_gsl_needs_fgnu89_inline" = "yes"; then
20221	 CFLAGS="$CFLAGS -fgnu89-inline"
20222     fi
20223  else
20224    :
20225  fi
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240    use_additional=yes
20241
20242  acl_save_prefix="$prefix"
20243  prefix="$acl_final_prefix"
20244  acl_save_exec_prefix="$exec_prefix"
20245  exec_prefix="$acl_final_exec_prefix"
20246
20247    eval additional_includedir=\"$includedir\"
20248    eval additional_libdir=\"$libdir\"
20249
20250  exec_prefix="$acl_save_exec_prefix"
20251  prefix="$acl_save_prefix"
20252
20253
20254# Check whether --with-libreadline-prefix was given.
20255if test "${with_libreadline_prefix+set}" = set; then :
20256  withval=$with_libreadline_prefix;
20257    if test "X$withval" = "Xno"; then
20258      use_additional=no
20259    else
20260      if test "X$withval" = "X"; then
20261
20262  acl_save_prefix="$prefix"
20263  prefix="$acl_final_prefix"
20264  acl_save_exec_prefix="$exec_prefix"
20265  exec_prefix="$acl_final_exec_prefix"
20266
20267          eval additional_includedir=\"$includedir\"
20268          eval additional_libdir=\"$libdir\"
20269
20270  exec_prefix="$acl_save_exec_prefix"
20271  prefix="$acl_save_prefix"
20272
20273      else
20274        additional_includedir="$withval/include"
20275        additional_libdir="$withval/$acl_libdirstem"
20276        if test "$acl_libdirstem2" != "$acl_libdirstem" \
20277           && ! test -d "$withval/$acl_libdirstem"; then
20278          additional_libdir="$withval/$acl_libdirstem2"
20279        fi
20280      fi
20281    fi
20282
20283fi
20284
20285      LIBREADLINE=
20286  LTLIBREADLINE=
20287  INCREADLINE=
20288  LIBREADLINE_PREFIX=
20289      HAVE_LIBREADLINE=
20290  rpathdirs=
20291  ltrpathdirs=
20292  names_already_handled=
20293  names_next_round='readline '
20294  while test -n "$names_next_round"; do
20295    names_this_round="$names_next_round"
20296    names_next_round=
20297    for name in $names_this_round; do
20298      already_handled=
20299      for n in $names_already_handled; do
20300        if test "$n" = "$name"; then
20301          already_handled=yes
20302          break
20303        fi
20304      done
20305      if test -z "$already_handled"; then
20306        names_already_handled="$names_already_handled $name"
20307                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20308        eval value=\"\$HAVE_LIB$uppername\"
20309        if test -n "$value"; then
20310          if test "$value" = yes; then
20311            eval value=\"\$LIB$uppername\"
20312            test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
20313            eval value=\"\$LTLIB$uppername\"
20314            test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
20315          else
20316                                    :
20317          fi
20318        else
20319                              found_dir=
20320          found_la=
20321          found_so=
20322          found_a=
20323          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20324          if test -n "$acl_shlibext"; then
20325            shrext=".$acl_shlibext"             # typically: shrext=.so
20326          else
20327            shrext=
20328          fi
20329          if test $use_additional = yes; then
20330            dir="$additional_libdir"
20331                                    if test -n "$acl_shlibext"; then
20332              if test -f "$dir/$libname$shrext"; then
20333                found_dir="$dir"
20334                found_so="$dir/$libname$shrext"
20335              else
20336                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20337                  ver=`(cd "$dir" && \
20338                        for f in "$libname$shrext".*; do echo "$f"; done \
20339                        | sed -e "s,^$libname$shrext\\\\.,," \
20340                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20341                        | sed 1q ) 2>/dev/null`
20342                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20343                    found_dir="$dir"
20344                    found_so="$dir/$libname$shrext.$ver"
20345                  fi
20346                else
20347                  eval library_names=\"$acl_library_names_spec\"
20348                  for f in $library_names; do
20349                    if test -f "$dir/$f"; then
20350                      found_dir="$dir"
20351                      found_so="$dir/$f"
20352                      break
20353                    fi
20354                  done
20355                fi
20356              fi
20357            fi
20358                        if test "X$found_dir" = "X"; then
20359              if test -f "$dir/$libname.$acl_libext"; then
20360                found_dir="$dir"
20361                found_a="$dir/$libname.$acl_libext"
20362              fi
20363            fi
20364            if test "X$found_dir" != "X"; then
20365              if test -f "$dir/$libname.la"; then
20366                found_la="$dir/$libname.la"
20367              fi
20368            fi
20369          fi
20370          if test "X$found_dir" = "X"; then
20371            for x in $LDFLAGS $LTLIBREADLINE; do
20372
20373  acl_save_prefix="$prefix"
20374  prefix="$acl_final_prefix"
20375  acl_save_exec_prefix="$exec_prefix"
20376  exec_prefix="$acl_final_exec_prefix"
20377  eval x=\"$x\"
20378  exec_prefix="$acl_save_exec_prefix"
20379  prefix="$acl_save_prefix"
20380
20381              case "$x" in
20382                -L*)
20383                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20384                                    if test -n "$acl_shlibext"; then
20385                    if test -f "$dir/$libname$shrext"; then
20386                      found_dir="$dir"
20387                      found_so="$dir/$libname$shrext"
20388                    else
20389                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20390                        ver=`(cd "$dir" && \
20391                              for f in "$libname$shrext".*; do echo "$f"; done \
20392                              | sed -e "s,^$libname$shrext\\\\.,," \
20393                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20394                              | sed 1q ) 2>/dev/null`
20395                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20396                          found_dir="$dir"
20397                          found_so="$dir/$libname$shrext.$ver"
20398                        fi
20399                      else
20400                        eval library_names=\"$acl_library_names_spec\"
20401                        for f in $library_names; do
20402                          if test -f "$dir/$f"; then
20403                            found_dir="$dir"
20404                            found_so="$dir/$f"
20405                            break
20406                          fi
20407                        done
20408                      fi
20409                    fi
20410                  fi
20411                                    if test "X$found_dir" = "X"; then
20412                    if test -f "$dir/$libname.$acl_libext"; then
20413                      found_dir="$dir"
20414                      found_a="$dir/$libname.$acl_libext"
20415                    fi
20416                  fi
20417                  if test "X$found_dir" != "X"; then
20418                    if test -f "$dir/$libname.la"; then
20419                      found_la="$dir/$libname.la"
20420                    fi
20421                  fi
20422                  ;;
20423              esac
20424              if test "X$found_dir" != "X"; then
20425                break
20426              fi
20427            done
20428          fi
20429          if test "X$found_dir" != "X"; then
20430                        LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
20431            if test "X$found_so" != "X"; then
20432                                                        if test "$enable_rpath" = no \
20433                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20434                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20435                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
20436              else
20437                                                                                haveit=
20438                for x in $ltrpathdirs; do
20439                  if test "X$x" = "X$found_dir"; then
20440                    haveit=yes
20441                    break
20442                  fi
20443                done
20444                if test -z "$haveit"; then
20445                  ltrpathdirs="$ltrpathdirs $found_dir"
20446                fi
20447                                if test "$acl_hardcode_direct" = yes; then
20448                                                      LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
20449                else
20450                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20451                                                            LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
20452                                                            haveit=
20453                    for x in $rpathdirs; do
20454                      if test "X$x" = "X$found_dir"; then
20455                        haveit=yes
20456                        break
20457                      fi
20458                    done
20459                    if test -z "$haveit"; then
20460                      rpathdirs="$rpathdirs $found_dir"
20461                    fi
20462                  else
20463                                                                                haveit=
20464                    for x in $LDFLAGS $LIBREADLINE; do
20465
20466  acl_save_prefix="$prefix"
20467  prefix="$acl_final_prefix"
20468  acl_save_exec_prefix="$exec_prefix"
20469  exec_prefix="$acl_final_exec_prefix"
20470  eval x=\"$x\"
20471  exec_prefix="$acl_save_exec_prefix"
20472  prefix="$acl_save_prefix"
20473
20474                      if test "X$x" = "X-L$found_dir"; then
20475                        haveit=yes
20476                        break
20477                      fi
20478                    done
20479                    if test -z "$haveit"; then
20480                      LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
20481                    fi
20482                    if test "$acl_hardcode_minus_L" != no; then
20483                                                                                        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
20484                    else
20485                                                                                                                                                                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
20486                    fi
20487                  fi
20488                fi
20489              fi
20490            else
20491              if test "X$found_a" != "X"; then
20492                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
20493              else
20494                                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
20495              fi
20496            fi
20497                        additional_includedir=
20498            case "$found_dir" in
20499              */$acl_libdirstem | */$acl_libdirstem/)
20500                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20501                if test "$name" = 'readline'; then
20502                  LIBREADLINE_PREFIX="$basedir"
20503                fi
20504                additional_includedir="$basedir/include"
20505                ;;
20506              */$acl_libdirstem2 | */$acl_libdirstem2/)
20507                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20508                if test "$name" = 'readline'; then
20509                  LIBREADLINE_PREFIX="$basedir"
20510                fi
20511                additional_includedir="$basedir/include"
20512                ;;
20513            esac
20514            if test "X$additional_includedir" != "X"; then
20515                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20516                haveit=
20517                if test "X$additional_includedir" = "X/usr/local/include"; then
20518                  if test -n "$GCC"; then
20519                    case $host_os in
20520                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20521                    esac
20522                  fi
20523                fi
20524                if test -z "$haveit"; then
20525                  for x in $CPPFLAGS $INCREADLINE; do
20526
20527  acl_save_prefix="$prefix"
20528  prefix="$acl_final_prefix"
20529  acl_save_exec_prefix="$exec_prefix"
20530  exec_prefix="$acl_final_exec_prefix"
20531  eval x=\"$x\"
20532  exec_prefix="$acl_save_exec_prefix"
20533  prefix="$acl_save_prefix"
20534
20535                    if test "X$x" = "X-I$additional_includedir"; then
20536                      haveit=yes
20537                      break
20538                    fi
20539                  done
20540                  if test -z "$haveit"; then
20541                    if test -d "$additional_includedir"; then
20542                                            INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
20543                    fi
20544                  fi
20545                fi
20546              fi
20547            fi
20548                        if test -n "$found_la"; then
20549                                                        save_libdir="$libdir"
20550              case "$found_la" in
20551                */* | *\\*) . "$found_la" ;;
20552                *) . "./$found_la" ;;
20553              esac
20554              libdir="$save_libdir"
20555                            for dep in $dependency_libs; do
20556                case "$dep" in
20557                  -L*)
20558                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20559                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20560                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20561                      haveit=
20562                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20563                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20564                        if test -n "$GCC"; then
20565                          case $host_os in
20566                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20567                          esac
20568                        fi
20569                      fi
20570                      if test -z "$haveit"; then
20571                        haveit=
20572                        for x in $LDFLAGS $LIBREADLINE; do
20573
20574  acl_save_prefix="$prefix"
20575  prefix="$acl_final_prefix"
20576  acl_save_exec_prefix="$exec_prefix"
20577  exec_prefix="$acl_final_exec_prefix"
20578  eval x=\"$x\"
20579  exec_prefix="$acl_save_exec_prefix"
20580  prefix="$acl_save_prefix"
20581
20582                          if test "X$x" = "X-L$additional_libdir"; then
20583                            haveit=yes
20584                            break
20585                          fi
20586                        done
20587                        if test -z "$haveit"; then
20588                          if test -d "$additional_libdir"; then
20589                                                        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$additional_libdir"
20590                          fi
20591                        fi
20592                        haveit=
20593                        for x in $LDFLAGS $LTLIBREADLINE; do
20594
20595  acl_save_prefix="$prefix"
20596  prefix="$acl_final_prefix"
20597  acl_save_exec_prefix="$exec_prefix"
20598  exec_prefix="$acl_final_exec_prefix"
20599  eval x=\"$x\"
20600  exec_prefix="$acl_save_exec_prefix"
20601  prefix="$acl_save_prefix"
20602
20603                          if test "X$x" = "X-L$additional_libdir"; then
20604                            haveit=yes
20605                            break
20606                          fi
20607                        done
20608                        if test -z "$haveit"; then
20609                          if test -d "$additional_libdir"; then
20610                                                        LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$additional_libdir"
20611                          fi
20612                        fi
20613                      fi
20614                    fi
20615                    ;;
20616                  -R*)
20617                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20618                    if test "$enable_rpath" != no; then
20619                                                                  haveit=
20620                      for x in $rpathdirs; do
20621                        if test "X$x" = "X$dir"; then
20622                          haveit=yes
20623                          break
20624                        fi
20625                      done
20626                      if test -z "$haveit"; then
20627                        rpathdirs="$rpathdirs $dir"
20628                      fi
20629                                                                  haveit=
20630                      for x in $ltrpathdirs; do
20631                        if test "X$x" = "X$dir"; then
20632                          haveit=yes
20633                          break
20634                        fi
20635                      done
20636                      if test -z "$haveit"; then
20637                        ltrpathdirs="$ltrpathdirs $dir"
20638                      fi
20639                    fi
20640                    ;;
20641                  -l*)
20642                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20643                    ;;
20644                  *.la)
20645                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20646                    ;;
20647                  *)
20648                                        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
20649                    LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
20650                    ;;
20651                esac
20652              done
20653            fi
20654          else
20655                                                            LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
20656            LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
20657          fi
20658        fi
20659      fi
20660    done
20661  done
20662  if test "X$rpathdirs" != "X"; then
20663    if test -n "$acl_hardcode_libdir_separator"; then
20664                        alldirs=
20665      for found_dir in $rpathdirs; do
20666        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20667      done
20668            acl_save_libdir="$libdir"
20669      libdir="$alldirs"
20670      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20671      libdir="$acl_save_libdir"
20672      LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
20673    else
20674            for found_dir in $rpathdirs; do
20675        acl_save_libdir="$libdir"
20676        libdir="$found_dir"
20677        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20678        libdir="$acl_save_libdir"
20679        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
20680      done
20681    fi
20682  fi
20683  if test "X$ltrpathdirs" != "X"; then
20684            for found_dir in $ltrpathdirs; do
20685      LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
20686    done
20687  fi
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701    use_additional=yes
20702
20703  acl_save_prefix="$prefix"
20704  prefix="$acl_final_prefix"
20705  acl_save_exec_prefix="$exec_prefix"
20706  exec_prefix="$acl_final_exec_prefix"
20707
20708    eval additional_includedir=\"$includedir\"
20709    eval additional_libdir=\"$libdir\"
20710
20711  exec_prefix="$acl_save_exec_prefix"
20712  prefix="$acl_save_prefix"
20713
20714
20715# Check whether --with-libhistory-prefix was given.
20716if test "${with_libhistory_prefix+set}" = set; then :
20717  withval=$with_libhistory_prefix;
20718    if test "X$withval" = "Xno"; then
20719      use_additional=no
20720    else
20721      if test "X$withval" = "X"; then
20722
20723  acl_save_prefix="$prefix"
20724  prefix="$acl_final_prefix"
20725  acl_save_exec_prefix="$exec_prefix"
20726  exec_prefix="$acl_final_exec_prefix"
20727
20728          eval additional_includedir=\"$includedir\"
20729          eval additional_libdir=\"$libdir\"
20730
20731  exec_prefix="$acl_save_exec_prefix"
20732  prefix="$acl_save_prefix"
20733
20734      else
20735        additional_includedir="$withval/include"
20736        additional_libdir="$withval/$acl_libdirstem"
20737        if test "$acl_libdirstem2" != "$acl_libdirstem" \
20738           && ! test -d "$withval/$acl_libdirstem"; then
20739          additional_libdir="$withval/$acl_libdirstem2"
20740        fi
20741      fi
20742    fi
20743
20744fi
20745
20746      LIBHISTORY=
20747  LTLIBHISTORY=
20748  INCHISTORY=
20749  LIBHISTORY_PREFIX=
20750      HAVE_LIBHISTORY=
20751  rpathdirs=
20752  ltrpathdirs=
20753  names_already_handled=
20754  names_next_round='history '
20755  while test -n "$names_next_round"; do
20756    names_this_round="$names_next_round"
20757    names_next_round=
20758    for name in $names_this_round; do
20759      already_handled=
20760      for n in $names_already_handled; do
20761        if test "$n" = "$name"; then
20762          already_handled=yes
20763          break
20764        fi
20765      done
20766      if test -z "$already_handled"; then
20767        names_already_handled="$names_already_handled $name"
20768                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20769        eval value=\"\$HAVE_LIB$uppername\"
20770        if test -n "$value"; then
20771          if test "$value" = yes; then
20772            eval value=\"\$LIB$uppername\"
20773            test -z "$value" || LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$value"
20774            eval value=\"\$LTLIB$uppername\"
20775            test -z "$value" || LTLIBHISTORY="${LTLIBHISTORY}${LTLIBHISTORY:+ }$value"
20776          else
20777                                    :
20778          fi
20779        else
20780                              found_dir=
20781          found_la=
20782          found_so=
20783          found_a=
20784          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20785          if test -n "$acl_shlibext"; then
20786            shrext=".$acl_shlibext"             # typically: shrext=.so
20787          else
20788            shrext=
20789          fi
20790          if test $use_additional = yes; then
20791            dir="$additional_libdir"
20792                                    if test -n "$acl_shlibext"; then
20793              if test -f "$dir/$libname$shrext"; then
20794                found_dir="$dir"
20795                found_so="$dir/$libname$shrext"
20796              else
20797                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20798                  ver=`(cd "$dir" && \
20799                        for f in "$libname$shrext".*; do echo "$f"; done \
20800                        | sed -e "s,^$libname$shrext\\\\.,," \
20801                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20802                        | sed 1q ) 2>/dev/null`
20803                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20804                    found_dir="$dir"
20805                    found_so="$dir/$libname$shrext.$ver"
20806                  fi
20807                else
20808                  eval library_names=\"$acl_library_names_spec\"
20809                  for f in $library_names; do
20810                    if test -f "$dir/$f"; then
20811                      found_dir="$dir"
20812                      found_so="$dir/$f"
20813                      break
20814                    fi
20815                  done
20816                fi
20817              fi
20818            fi
20819                        if test "X$found_dir" = "X"; then
20820              if test -f "$dir/$libname.$acl_libext"; then
20821                found_dir="$dir"
20822                found_a="$dir/$libname.$acl_libext"
20823              fi
20824            fi
20825            if test "X$found_dir" != "X"; then
20826              if test -f "$dir/$libname.la"; then
20827                found_la="$dir/$libname.la"
20828              fi
20829            fi
20830          fi
20831          if test "X$found_dir" = "X"; then
20832            for x in $LDFLAGS $LTLIBHISTORY; do
20833
20834  acl_save_prefix="$prefix"
20835  prefix="$acl_final_prefix"
20836  acl_save_exec_prefix="$exec_prefix"
20837  exec_prefix="$acl_final_exec_prefix"
20838  eval x=\"$x\"
20839  exec_prefix="$acl_save_exec_prefix"
20840  prefix="$acl_save_prefix"
20841
20842              case "$x" in
20843                -L*)
20844                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20845                                    if test -n "$acl_shlibext"; then
20846                    if test -f "$dir/$libname$shrext"; then
20847                      found_dir="$dir"
20848                      found_so="$dir/$libname$shrext"
20849                    else
20850                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20851                        ver=`(cd "$dir" && \
20852                              for f in "$libname$shrext".*; do echo "$f"; done \
20853                              | sed -e "s,^$libname$shrext\\\\.,," \
20854                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20855                              | sed 1q ) 2>/dev/null`
20856                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20857                          found_dir="$dir"
20858                          found_so="$dir/$libname$shrext.$ver"
20859                        fi
20860                      else
20861                        eval library_names=\"$acl_library_names_spec\"
20862                        for f in $library_names; do
20863                          if test -f "$dir/$f"; then
20864                            found_dir="$dir"
20865                            found_so="$dir/$f"
20866                            break
20867                          fi
20868                        done
20869                      fi
20870                    fi
20871                  fi
20872                                    if test "X$found_dir" = "X"; then
20873                    if test -f "$dir/$libname.$acl_libext"; then
20874                      found_dir="$dir"
20875                      found_a="$dir/$libname.$acl_libext"
20876                    fi
20877                  fi
20878                  if test "X$found_dir" != "X"; then
20879                    if test -f "$dir/$libname.la"; then
20880                      found_la="$dir/$libname.la"
20881                    fi
20882                  fi
20883                  ;;
20884              esac
20885              if test "X$found_dir" != "X"; then
20886                break
20887              fi
20888            done
20889          fi
20890          if test "X$found_dir" != "X"; then
20891                        LTLIBHISTORY="${LTLIBHISTORY}${LTLIBHISTORY:+ }-L$found_dir -l$name"
20892            if test "X$found_so" != "X"; then
20893                                                        if test "$enable_rpath" = no \
20894                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20895                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20896                                LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$found_so"
20897              else
20898                                                                                haveit=
20899                for x in $ltrpathdirs; do
20900                  if test "X$x" = "X$found_dir"; then
20901                    haveit=yes
20902                    break
20903                  fi
20904                done
20905                if test -z "$haveit"; then
20906                  ltrpathdirs="$ltrpathdirs $found_dir"
20907                fi
20908                                if test "$acl_hardcode_direct" = yes; then
20909                                                      LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$found_so"
20910                else
20911                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20912                                                            LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$found_so"
20913                                                            haveit=
20914                    for x in $rpathdirs; do
20915                      if test "X$x" = "X$found_dir"; then
20916                        haveit=yes
20917                        break
20918                      fi
20919                    done
20920                    if test -z "$haveit"; then
20921                      rpathdirs="$rpathdirs $found_dir"
20922                    fi
20923                  else
20924                                                                                haveit=
20925                    for x in $LDFLAGS $LIBHISTORY; do
20926
20927  acl_save_prefix="$prefix"
20928  prefix="$acl_final_prefix"
20929  acl_save_exec_prefix="$exec_prefix"
20930  exec_prefix="$acl_final_exec_prefix"
20931  eval x=\"$x\"
20932  exec_prefix="$acl_save_exec_prefix"
20933  prefix="$acl_save_prefix"
20934
20935                      if test "X$x" = "X-L$found_dir"; then
20936                        haveit=yes
20937                        break
20938                      fi
20939                    done
20940                    if test -z "$haveit"; then
20941                      LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }-L$found_dir"
20942                    fi
20943                    if test "$acl_hardcode_minus_L" != no; then
20944                                                                                        LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$found_so"
20945                    else
20946                                                                                                                                                                                LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }-l$name"
20947                    fi
20948                  fi
20949                fi
20950              fi
20951            else
20952              if test "X$found_a" != "X"; then
20953                                LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$found_a"
20954              else
20955                                                LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }-L$found_dir -l$name"
20956              fi
20957            fi
20958                        additional_includedir=
20959            case "$found_dir" in
20960              */$acl_libdirstem | */$acl_libdirstem/)
20961                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20962                if test "$name" = 'history'; then
20963                  LIBHISTORY_PREFIX="$basedir"
20964                fi
20965                additional_includedir="$basedir/include"
20966                ;;
20967              */$acl_libdirstem2 | */$acl_libdirstem2/)
20968                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20969                if test "$name" = 'history'; then
20970                  LIBHISTORY_PREFIX="$basedir"
20971                fi
20972                additional_includedir="$basedir/include"
20973                ;;
20974            esac
20975            if test "X$additional_includedir" != "X"; then
20976                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20977                haveit=
20978                if test "X$additional_includedir" = "X/usr/local/include"; then
20979                  if test -n "$GCC"; then
20980                    case $host_os in
20981                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20982                    esac
20983                  fi
20984                fi
20985                if test -z "$haveit"; then
20986                  for x in $CPPFLAGS $INCHISTORY; do
20987
20988  acl_save_prefix="$prefix"
20989  prefix="$acl_final_prefix"
20990  acl_save_exec_prefix="$exec_prefix"
20991  exec_prefix="$acl_final_exec_prefix"
20992  eval x=\"$x\"
20993  exec_prefix="$acl_save_exec_prefix"
20994  prefix="$acl_save_prefix"
20995
20996                    if test "X$x" = "X-I$additional_includedir"; then
20997                      haveit=yes
20998                      break
20999                    fi
21000                  done
21001                  if test -z "$haveit"; then
21002                    if test -d "$additional_includedir"; then
21003                                            INCHISTORY="${INCHISTORY}${INCHISTORY:+ }-I$additional_includedir"
21004                    fi
21005                  fi
21006                fi
21007              fi
21008            fi
21009                        if test -n "$found_la"; then
21010                                                        save_libdir="$libdir"
21011              case "$found_la" in
21012                */* | *\\*) . "$found_la" ;;
21013                *) . "./$found_la" ;;
21014              esac
21015              libdir="$save_libdir"
21016                            for dep in $dependency_libs; do
21017                case "$dep" in
21018                  -L*)
21019                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21020                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21021                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21022                      haveit=
21023                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21024                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21025                        if test -n "$GCC"; then
21026                          case $host_os in
21027                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21028                          esac
21029                        fi
21030                      fi
21031                      if test -z "$haveit"; then
21032                        haveit=
21033                        for x in $LDFLAGS $LIBHISTORY; do
21034
21035  acl_save_prefix="$prefix"
21036  prefix="$acl_final_prefix"
21037  acl_save_exec_prefix="$exec_prefix"
21038  exec_prefix="$acl_final_exec_prefix"
21039  eval x=\"$x\"
21040  exec_prefix="$acl_save_exec_prefix"
21041  prefix="$acl_save_prefix"
21042
21043                          if test "X$x" = "X-L$additional_libdir"; then
21044                            haveit=yes
21045                            break
21046                          fi
21047                        done
21048                        if test -z "$haveit"; then
21049                          if test -d "$additional_libdir"; then
21050                                                        LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }-L$additional_libdir"
21051                          fi
21052                        fi
21053                        haveit=
21054                        for x in $LDFLAGS $LTLIBHISTORY; do
21055
21056  acl_save_prefix="$prefix"
21057  prefix="$acl_final_prefix"
21058  acl_save_exec_prefix="$exec_prefix"
21059  exec_prefix="$acl_final_exec_prefix"
21060  eval x=\"$x\"
21061  exec_prefix="$acl_save_exec_prefix"
21062  prefix="$acl_save_prefix"
21063
21064                          if test "X$x" = "X-L$additional_libdir"; then
21065                            haveit=yes
21066                            break
21067                          fi
21068                        done
21069                        if test -z "$haveit"; then
21070                          if test -d "$additional_libdir"; then
21071                                                        LTLIBHISTORY="${LTLIBHISTORY}${LTLIBHISTORY:+ }-L$additional_libdir"
21072                          fi
21073                        fi
21074                      fi
21075                    fi
21076                    ;;
21077                  -R*)
21078                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21079                    if test "$enable_rpath" != no; then
21080                                                                  haveit=
21081                      for x in $rpathdirs; do
21082                        if test "X$x" = "X$dir"; then
21083                          haveit=yes
21084                          break
21085                        fi
21086                      done
21087                      if test -z "$haveit"; then
21088                        rpathdirs="$rpathdirs $dir"
21089                      fi
21090                                                                  haveit=
21091                      for x in $ltrpathdirs; do
21092                        if test "X$x" = "X$dir"; then
21093                          haveit=yes
21094                          break
21095                        fi
21096                      done
21097                      if test -z "$haveit"; then
21098                        ltrpathdirs="$ltrpathdirs $dir"
21099                      fi
21100                    fi
21101                    ;;
21102                  -l*)
21103                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21104                    ;;
21105                  *.la)
21106                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21107                    ;;
21108                  *)
21109                                        LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$dep"
21110                    LTLIBHISTORY="${LTLIBHISTORY}${LTLIBHISTORY:+ }$dep"
21111                    ;;
21112                esac
21113              done
21114            fi
21115          else
21116                                                            LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }-l$name"
21117            LTLIBHISTORY="${LTLIBHISTORY}${LTLIBHISTORY:+ }-l$name"
21118          fi
21119        fi
21120      fi
21121    done
21122  done
21123  if test "X$rpathdirs" != "X"; then
21124    if test -n "$acl_hardcode_libdir_separator"; then
21125                        alldirs=
21126      for found_dir in $rpathdirs; do
21127        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21128      done
21129            acl_save_libdir="$libdir"
21130      libdir="$alldirs"
21131      eval flag=\"$acl_hardcode_libdir_flag_spec\"
21132      libdir="$acl_save_libdir"
21133      LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$flag"
21134    else
21135            for found_dir in $rpathdirs; do
21136        acl_save_libdir="$libdir"
21137        libdir="$found_dir"
21138        eval flag=\"$acl_hardcode_libdir_flag_spec\"
21139        libdir="$acl_save_libdir"
21140        LIBHISTORY="${LIBHISTORY}${LIBHISTORY:+ }$flag"
21141      done
21142    fi
21143  fi
21144  if test "X$ltrpathdirs" != "X"; then
21145            for found_dir in $ltrpathdirs; do
21146      LTLIBHISTORY="${LTLIBHISTORY}${LTLIBHISTORY:+ }-R$found_dir"
21147    done
21148  fi
21149
21150
21151
21152
21153
21154
21155
21156          am_save_CPPFLAGS="$CPPFLAGS"
21157
21158  for element in $INCREADLINE $INCHISTORY; do
21159    haveit=
21160    for x in $CPPFLAGS; do
21161
21162  acl_save_prefix="$prefix"
21163  prefix="$acl_final_prefix"
21164  acl_save_exec_prefix="$exec_prefix"
21165  exec_prefix="$acl_final_exec_prefix"
21166  eval x=\"$x\"
21167  exec_prefix="$acl_save_exec_prefix"
21168  prefix="$acl_save_prefix"
21169
21170      if test "X$x" = "X$element"; then
21171        haveit=yes
21172        break
21173      fi
21174    done
21175    if test -z "$haveit"; then
21176      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21177    fi
21178  done
21179
21180
21181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
21182$as_echo_n "checking for readline... " >&6; }
21183if ${gl_cv_lib_readline+:} false; then :
21184  $as_echo_n "(cached) " >&6
21185else
21186
21187    gl_cv_lib_readline=no
21188    am_save_LIBS="$LIBS"
21189                        for extra_lib in "" ncurses termcap curses; do
21190      LIBS="$am_save_LIBS $LIBREADLINE $LIBHISTORY"
21191      if test -n "$extra_lib"; then
21192        LIBS="$LIBS -l$extra_lib"
21193      fi
21194      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195/* end confdefs.h.  */
21196#include <stdio.h>
21197#include <readline/readline.h>
21198#include <readline/history.h>
21199int
21200main ()
21201{
21202readline((char*)0); add_history((char*)0);
21203  ;
21204  return 0;
21205}
21206_ACEOF
21207if ac_fn_c_try_link "$LINENO"; then :
21208  gl_cv_lib_readline=yes
21209fi
21210rm -f core conftest.err conftest.$ac_objext \
21211    conftest$ac_exeext conftest.$ac_ext
21212      if test "$gl_cv_lib_readline" = yes; then
21213        if test -n "$extra_lib"; then
21214          LIBREADLINE="$LIBREADLINE $LIBHISTORY -l$extra_lib"
21215          LTLIBREADLINE="$LTLIBREADLINE $LTLIBHISTORY -l$extra_lib"
21216        fi
21217        break
21218      fi
21219    done
21220    LIBS="$am_save_LIBS"
21221
21222fi
21223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_readline" >&5
21224$as_echo "$gl_cv_lib_readline" >&6; }
21225
21226  if test "$gl_cv_lib_readline" = yes; then
21227
21228$as_echo "#define HAVE_READLINE 1" >>confdefs.h
21229
21230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libreadline" >&5
21231$as_echo_n "checking how to link with libreadline... " >&6; }
21232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBREADLINE" >&5
21233$as_echo "$LIBREADLINE" >&6; }
21234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_echo_signal_char" >&5
21235$as_echo_n "checking for library containing rl_echo_signal_char... " >&6; }
21236if ${ac_cv_search_rl_echo_signal_char+:} false; then :
21237  $as_echo_n "(cached) " >&6
21238else
21239  ac_func_search_save_LIBS=$LIBS
21240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241/* end confdefs.h.  */
21242
21243/* Override any GCC internal prototype to avoid an error.
21244   Use char because int might match the return type of a GCC
21245   builtin and then its argument prototype would still apply.  */
21246#ifdef __cplusplus
21247extern "C"
21248#endif
21249char rl_echo_signal_char ();
21250int
21251main ()
21252{
21253return rl_echo_signal_char ();
21254  ;
21255  return 0;
21256}
21257_ACEOF
21258for ac_lib in '' readline; do
21259  if test -z "$ac_lib"; then
21260    ac_res="none required"
21261  else
21262    ac_res=-l$ac_lib
21263    LIBS="-l$ac_lib $LIBREADLINE $ac_func_search_save_LIBS"
21264  fi
21265  if ac_fn_c_try_link "$LINENO"; then :
21266  ac_cv_search_rl_echo_signal_char=$ac_res
21267fi
21268rm -f core conftest.err conftest.$ac_objext \
21269    conftest$ac_exeext
21270  if ${ac_cv_search_rl_echo_signal_char+:} false; then :
21271  break
21272fi
21273done
21274if ${ac_cv_search_rl_echo_signal_char+:} false; then :
21275
21276else
21277  ac_cv_search_rl_echo_signal_char=no
21278fi
21279rm conftest.$ac_ext
21280LIBS=$ac_func_search_save_LIBS
21281fi
21282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_echo_signal_char" >&5
21283$as_echo "$ac_cv_search_rl_echo_signal_char" >&6; }
21284ac_res=$ac_cv_search_rl_echo_signal_char
21285if test "$ac_res" != no; then :
21286  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21287
21288$as_echo "#define HAVE_RL_ECHO_SIGNAL_CHAR 1" >>confdefs.h
21289
21290fi
21291
21292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_outstream" >&5
21293$as_echo_n "checking for library containing rl_outstream... " >&6; }
21294if ${ac_cv_search_rl_outstream+:} false; then :
21295  $as_echo_n "(cached) " >&6
21296else
21297  ac_func_search_save_LIBS=$LIBS
21298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299/* end confdefs.h.  */
21300
21301/* Override any GCC internal prototype to avoid an error.
21302   Use char because int might match the return type of a GCC
21303   builtin and then its argument prototype would still apply.  */
21304#ifdef __cplusplus
21305extern "C"
21306#endif
21307char rl_outstream ();
21308int
21309main ()
21310{
21311return rl_outstream ();
21312  ;
21313  return 0;
21314}
21315_ACEOF
21316for ac_lib in '' readline; do
21317  if test -z "$ac_lib"; then
21318    ac_res="none required"
21319  else
21320    ac_res=-l$ac_lib
21321    LIBS="-l$ac_lib $LIBREADLINE $ac_func_search_save_LIBS"
21322  fi
21323  if ac_fn_c_try_link "$LINENO"; then :
21324  ac_cv_search_rl_outstream=$ac_res
21325fi
21326rm -f core conftest.err conftest.$ac_objext \
21327    conftest$ac_exeext
21328  if ${ac_cv_search_rl_outstream+:} false; then :
21329  break
21330fi
21331done
21332if ${ac_cv_search_rl_outstream+:} false; then :
21333
21334else
21335  ac_cv_search_rl_outstream=no
21336fi
21337rm conftest.$ac_ext
21338LIBS=$ac_func_search_save_LIBS
21339fi
21340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_outstream" >&5
21341$as_echo "$ac_cv_search_rl_outstream" >&6; }
21342ac_res=$ac_cv_search_rl_outstream
21343if test "$ac_res" != no; then :
21344  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21345
21346$as_echo "#define HAVE_RL_OUTSTREAM 1" >>confdefs.h
21347
21348fi
21349
21350  else
21351            CPPFLAGS="$am_save_CPPFLAGS"
21352    LIBREADLINE=
21353    LTLIBREADLINE=
21354    LIBHISTORY=
21355    LTLIBHISTORY=
21356    pspp_optional_prereqs="$pspp_optional_prereqs
21357	libreadline (which may itself require libncurses or libtermcap)"
21358  fi
21359
21360
21361
21362
21363for ac_header in sys/wait.h fpu_control.h ieeefp.h fenv.h pwd.h
21364do :
21365  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21366ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21367if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21368  cat >>confdefs.h <<_ACEOF
21369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21370_ACEOF
21371
21372fi
21373
21374done
21375
21376
21377ac_fn_c_check_decl "$LINENO" "SIGWINCH" "ac_cv_have_decl_SIGWINCH" "#include <signal.h>
21378          /* NetBSD declares sys_siglist in unistd.h.  */
21379          #ifdef HAVE_UNISTD_H
21380          # include <unistd.h>
21381          #endif
21382
21383"
21384if test "x$ac_cv_have_decl_SIGWINCH" = xyes; then :
21385  ac_have_decl=1
21386else
21387  ac_have_decl=0
21388fi
21389
21390cat >>confdefs.h <<_ACEOF
21391#define HAVE_DECL_SIGWINCH $ac_have_decl
21392_ACEOF
21393
21394
21395
21396# For gnulib.
21397
21398
21399
21400
21401
21402
21403
21404
21405                        # Check whether --enable-cross-guesses was given.
21406if test "${enable_cross_guesses+set}" = set; then :
21407  enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
21408       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
21409$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
21410       enableval=conservative
21411     fi
21412     gl_cross_guesses="$enableval"
21413else
21414  gl_cross_guesses=conservative
21415fi
21416
21417  if test $gl_cross_guesses = risky; then
21418    gl_cross_guess_normal="guessing yes"
21419    gl_cross_guess_inverted="guessing no"
21420  else
21421    gl_cross_guess_normal="guessing no"
21422    gl_cross_guess_inverted="guessing yes"
21423  fi
21424          LIBC_FATAL_STDERR_=1
21425  export LIBC_FATAL_STDERR_
21426
21427
21428ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21429if test "x$ac_cv_type_size_t" = xyes; then :
21430
21431else
21432
21433cat >>confdefs.h <<_ACEOF
21434#define size_t unsigned int
21435_ACEOF
21436
21437fi
21438
21439# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21440# for constant arguments.  Useless!
21441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21442$as_echo_n "checking for working alloca.h... " >&6; }
21443if ${ac_cv_working_alloca_h+:} false; then :
21444  $as_echo_n "(cached) " >&6
21445else
21446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447/* end confdefs.h.  */
21448#include <alloca.h>
21449int
21450main ()
21451{
21452char *p = (char *) alloca (2 * sizeof (int));
21453			  if (p) return 0;
21454  ;
21455  return 0;
21456}
21457_ACEOF
21458if ac_fn_c_try_link "$LINENO"; then :
21459  ac_cv_working_alloca_h=yes
21460else
21461  ac_cv_working_alloca_h=no
21462fi
21463rm -f core conftest.err conftest.$ac_objext \
21464    conftest$ac_exeext conftest.$ac_ext
21465fi
21466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21467$as_echo "$ac_cv_working_alloca_h" >&6; }
21468if test $ac_cv_working_alloca_h = yes; then
21469
21470$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21471
21472fi
21473
21474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21475$as_echo_n "checking for alloca... " >&6; }
21476if ${ac_cv_func_alloca_works+:} false; then :
21477  $as_echo_n "(cached) " >&6
21478else
21479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21480/* end confdefs.h.  */
21481#ifdef __GNUC__
21482# define alloca __builtin_alloca
21483#else
21484# ifdef _MSC_VER
21485#  include <malloc.h>
21486#  define alloca _alloca
21487# else
21488#  ifdef HAVE_ALLOCA_H
21489#   include <alloca.h>
21490#  else
21491#   ifdef _AIX
21492 #pragma alloca
21493#   else
21494#    ifndef alloca /* predefined by HP cc +Olibcalls */
21495void *alloca (size_t);
21496#    endif
21497#   endif
21498#  endif
21499# endif
21500#endif
21501
21502int
21503main ()
21504{
21505char *p = (char *) alloca (1);
21506				    if (p) return 0;
21507  ;
21508  return 0;
21509}
21510_ACEOF
21511if ac_fn_c_try_link "$LINENO"; then :
21512  ac_cv_func_alloca_works=yes
21513else
21514  ac_cv_func_alloca_works=no
21515fi
21516rm -f core conftest.err conftest.$ac_objext \
21517    conftest$ac_exeext conftest.$ac_ext
21518fi
21519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21520$as_echo "$ac_cv_func_alloca_works" >&6; }
21521
21522if test $ac_cv_func_alloca_works = yes; then
21523
21524$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21525
21526else
21527  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21528# that cause trouble.  Some versions do not even contain alloca or
21529# contain a buggy version.  If you still want to use their alloca,
21530# use ar to extract alloca.o from them instead of compiling alloca.c.
21531
21532
21533
21534
21535
21536ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21537
21538$as_echo "#define C_ALLOCA 1" >>confdefs.h
21539
21540
21541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21542$as_echo_n "checking stack direction for C alloca... " >&6; }
21543if ${ac_cv_c_stack_direction+:} false; then :
21544  $as_echo_n "(cached) " >&6
21545else
21546  if test "$cross_compiling" = yes; then :
21547  ac_cv_c_stack_direction=0
21548else
21549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21550/* end confdefs.h.  */
21551$ac_includes_default
21552int
21553find_stack_direction (int *addr, int depth)
21554{
21555  int dir, dummy = 0;
21556  if (! addr)
21557    addr = &dummy;
21558  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21559  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21560  return dir + dummy;
21561}
21562
21563int
21564main (int argc, char **argv)
21565{
21566  return find_stack_direction (0, argc + !argv + 20) < 0;
21567}
21568_ACEOF
21569if ac_fn_c_try_run "$LINENO"; then :
21570  ac_cv_c_stack_direction=1
21571else
21572  ac_cv_c_stack_direction=-1
21573fi
21574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21575  conftest.$ac_objext conftest.beam conftest.$ac_ext
21576fi
21577
21578fi
21579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21580$as_echo "$ac_cv_c_stack_direction" >&6; }
21581cat >>confdefs.h <<_ACEOF
21582#define STACK_DIRECTION $ac_cv_c_stack_direction
21583_ACEOF
21584
21585
21586fi
21587
21588
21589
21590
21591  for ac_header in $ac_header_list
21592do :
21593  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21594ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21595"
21596if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21597  cat >>confdefs.h <<_ACEOF
21598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21599_ACEOF
21600
21601fi
21602
21603done
21604
21605
21606
21607
21608  GNULIB_BTOWC=0;
21609  GNULIB_WCTOB=0;
21610  GNULIB_MBSINIT=0;
21611  GNULIB_MBRTOWC=0;
21612  GNULIB_MBRLEN=0;
21613  GNULIB_MBSRTOWCS=0;
21614  GNULIB_MBSNRTOWCS=0;
21615  GNULIB_WCRTOMB=0;
21616  GNULIB_WCSRTOMBS=0;
21617  GNULIB_WCSNRTOMBS=0;
21618  GNULIB_WCWIDTH=0;
21619  GNULIB_WMEMCHR=0;
21620  GNULIB_WMEMCMP=0;
21621  GNULIB_WMEMCPY=0;
21622  GNULIB_WMEMMOVE=0;
21623  GNULIB_WMEMPCPY=0;
21624  GNULIB_WMEMSET=0;
21625  GNULIB_WCSLEN=0;
21626  GNULIB_WCSNLEN=0;
21627  GNULIB_WCSCPY=0;
21628  GNULIB_WCPCPY=0;
21629  GNULIB_WCSNCPY=0;
21630  GNULIB_WCPNCPY=0;
21631  GNULIB_WCSCAT=0;
21632  GNULIB_WCSNCAT=0;
21633  GNULIB_WCSCMP=0;
21634  GNULIB_WCSNCMP=0;
21635  GNULIB_WCSCASECMP=0;
21636  GNULIB_WCSNCASECMP=0;
21637  GNULIB_WCSCOLL=0;
21638  GNULIB_WCSXFRM=0;
21639  GNULIB_WCSDUP=0;
21640  GNULIB_WCSCHR=0;
21641  GNULIB_WCSRCHR=0;
21642  GNULIB_WCSCSPN=0;
21643  GNULIB_WCSSPN=0;
21644  GNULIB_WCSPBRK=0;
21645  GNULIB_WCSSTR=0;
21646  GNULIB_WCSTOK=0;
21647  GNULIB_WCSWIDTH=0;
21648  GNULIB_WCSFTIME=0;
21649    HAVE_BTOWC=1;
21650  HAVE_MBSINIT=1;
21651  HAVE_MBRTOWC=1;
21652  HAVE_MBRLEN=1;
21653  HAVE_MBSRTOWCS=1;
21654  HAVE_MBSNRTOWCS=1;
21655  HAVE_WCRTOMB=1;
21656  HAVE_WCSRTOMBS=1;
21657  HAVE_WCSNRTOMBS=1;
21658  HAVE_WMEMCHR=1;
21659  HAVE_WMEMCMP=1;
21660  HAVE_WMEMCPY=1;
21661  HAVE_WMEMMOVE=1;
21662  HAVE_WMEMPCPY=1;
21663  HAVE_WMEMSET=1;
21664  HAVE_WCSLEN=1;
21665  HAVE_WCSNLEN=1;
21666  HAVE_WCSCPY=1;
21667  HAVE_WCPCPY=1;
21668  HAVE_WCSNCPY=1;
21669  HAVE_WCPNCPY=1;
21670  HAVE_WCSCAT=1;
21671  HAVE_WCSNCAT=1;
21672  HAVE_WCSCMP=1;
21673  HAVE_WCSNCMP=1;
21674  HAVE_WCSCASECMP=1;
21675  HAVE_WCSNCASECMP=1;
21676  HAVE_WCSCOLL=1;
21677  HAVE_WCSXFRM=1;
21678  HAVE_WCSDUP=1;
21679  HAVE_WCSCHR=1;
21680  HAVE_WCSRCHR=1;
21681  HAVE_WCSCSPN=1;
21682  HAVE_WCSSPN=1;
21683  HAVE_WCSPBRK=1;
21684  HAVE_WCSSTR=1;
21685  HAVE_WCSTOK=1;
21686  HAVE_WCSWIDTH=1;
21687  HAVE_WCSFTIME=1;
21688  HAVE_DECL_WCTOB=1;
21689  HAVE_DECL_WCWIDTH=1;
21690  REPLACE_MBSTATE_T=0;
21691  REPLACE_BTOWC=0;
21692  REPLACE_WCTOB=0;
21693  REPLACE_MBSINIT=0;
21694  REPLACE_MBRTOWC=0;
21695  REPLACE_MBRLEN=0;
21696  REPLACE_MBSRTOWCS=0;
21697  REPLACE_MBSNRTOWCS=0;
21698  REPLACE_WCRTOMB=0;
21699  REPLACE_WCSRTOMBS=0;
21700  REPLACE_WCSNRTOMBS=0;
21701  REPLACE_WCWIDTH=0;
21702  REPLACE_WCSWIDTH=0;
21703  REPLACE_WCSFTIME=0;
21704  REPLACE_WCSTOK=0;
21705
21706
21707            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21708$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21709if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21710  $as_echo_n "(cached) " >&6
21711else
21712  gl_cv_header_wchar_h_correct_inline=yes
21713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714/* end confdefs.h.  */
21715
21716       #define wcstod renamed_wcstod
21717/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21718   <wchar.h>.
21719   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21720   included before <wchar.h>.  */
21721#include <stddef.h>
21722#include <stdio.h>
21723#include <time.h>
21724#include <wchar.h>
21725extern int zero (void);
21726int main () { return zero(); }
21727
21728_ACEOF
21729                              save_ac_compile="$ac_compile"
21730     ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
21731     if echo '#include "conftest.c"' >conftest1.c &&
21732        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21733  (eval $ac_compile) 2>&5
21734  ac_status=$?
21735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21736  test $ac_status = 0; }; then
21737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21738/* end confdefs.h.  */
21739
21740         #define wcstod renamed_wcstod
21741/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21742   <wchar.h>.
21743   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21744   included before <wchar.h>.  */
21745#include <stddef.h>
21746#include <stdio.h>
21747#include <time.h>
21748#include <wchar.h>
21749int zero (void) { return 0; }
21750
21751_ACEOF
21752              ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
21753       if echo '#include "conftest.c"' >conftest2.c &&
21754          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21755  (eval $ac_compile) 2>&5
21756  ac_status=$?
21757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21758  test $ac_status = 0; }; then
21759         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21760           :
21761         else
21762           gl_cv_header_wchar_h_correct_inline=no
21763         fi
21764       fi
21765     fi
21766     ac_compile="$save_ac_compile"
21767     rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
21768
21769fi
21770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21771$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21772  if test $gl_cv_header_wchar_h_correct_inline = no; then
21773    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21774This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21775C99 mode. You have four options:
21776  - Add the flag -fgnu89-inline to CC and reconfigure, or
21777  - Fix your include files, using parts of
21778    <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21779  - Use a gcc version older than 4.3, or
21780  - Don't use the flags -std=c99 or -std=gnu99.
21781Configuration aborted." "$LINENO" 5
21782  fi
21783
21784
21785
21786
21787  for ac_func in $ac_func_list
21788do :
21789  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21790ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21791if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21792  cat >>confdefs.h <<_ACEOF
21793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21794_ACEOF
21795
21796fi
21797done
21798
21799
21800
21801
21802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
21803$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
21804if ${am_cv_langinfo_codeset+:} false; then :
21805  $as_echo_n "(cached) " >&6
21806else
21807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808/* end confdefs.h.  */
21809#include <langinfo.h>
21810int
21811main ()
21812{
21813char* cs = nl_langinfo(CODESET); return !cs;
21814  ;
21815  return 0;
21816}
21817_ACEOF
21818if ac_fn_c_try_link "$LINENO"; then :
21819  am_cv_langinfo_codeset=yes
21820else
21821  am_cv_langinfo_codeset=no
21822fi
21823rm -f core conftest.err conftest.$ac_objext \
21824    conftest$ac_exeext conftest.$ac_ext
21825
21826fi
21827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
21828$as_echo "$am_cv_langinfo_codeset" >&6; }
21829  if test $am_cv_langinfo_codeset = yes; then
21830
21831$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
21832
21833  fi
21834
21835
21836
21837
21838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
21839$as_echo_n "checking for a traditional french locale... " >&6; }
21840if ${gt_cv_locale_fr+:} false; then :
21841  $as_echo_n "(cached) " >&6
21842else
21843
21844    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845/* end confdefs.h.  */
21846
21847#include <locale.h>
21848#include <time.h>
21849#if HAVE_LANGINFO_CODESET
21850# include <langinfo.h>
21851#endif
21852#include <stdlib.h>
21853#include <string.h>
21854struct tm t;
21855char buf[16];
21856int main () {
21857  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
21858     imitates locale dependent behaviour by looking at the environment
21859     variables, and all locales use the UTF-8 encoding.  */
21860#if defined __BEOS__ || defined __HAIKU__
21861  return 1;
21862#else
21863  /* Check whether the given locale name is recognized by the system.  */
21864# if defined _WIN32 && !defined __CYGWIN__
21865  /* On native Windows, setlocale(category, "") looks at the system settings,
21866     not at the environment variables.  Also, when an encoding suffix such
21867     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
21868     category of the locale to "C".  */
21869  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
21870      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
21871    return 1;
21872# else
21873  if (setlocale (LC_ALL, "") == NULL) return 1;
21874# endif
21875  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
21876     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
21877     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
21878     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
21879     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
21880     some unit tests fail.
21881     On MirBSD 10, when an unsupported locale is specified, setlocale()
21882     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
21883# if HAVE_LANGINFO_CODESET
21884  {
21885    const char *cs = nl_langinfo (CODESET);
21886    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
21887        || strcmp (cs, "UTF-8") == 0)
21888      return 1;
21889  }
21890# endif
21891# ifdef __CYGWIN__
21892  /* On Cygwin, avoid locale names without encoding suffix, because the
21893     locale_charset() function relies on the encoding suffix.  Note that
21894     LC_ALL is set on the command line.  */
21895  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
21896# endif
21897  /* Check whether in the abbreviation of the second month, the second
21898     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
21899     one byte long. This excludes the UTF-8 encoding.  */
21900  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
21901  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
21902# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
21903  /* Check whether the decimal separator is a comma.
21904     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
21905     are nl_langinfo(RADIXCHAR) are both ".".  */
21906  if (localeconv () ->decimal_point[0] != ',') return 1;
21907# endif
21908  return 0;
21909#endif
21910}
21911
21912_ACEOF
21913    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21914  (eval $ac_link) 2>&5
21915  ac_status=$?
21916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21917  test $ac_status = 0; } && test -s conftest$ac_exeext; then
21918      case "$host_os" in
21919        # Handle native Windows specially, because there setlocale() interprets
21920        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
21921        # "fr" or "fra" as "French" or "French_France.1252",
21922        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
21923        # "ja" as "Japanese" or "Japanese_Japan.932",
21924        # and similar.
21925        mingw*)
21926          # Test for the native Windows locale name.
21927          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21928            gt_cv_locale_fr=French_France.1252
21929          else
21930            # None found.
21931            gt_cv_locale_fr=none
21932          fi
21933          ;;
21934        *)
21935          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
21936          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
21937          # configure script would override the LC_ALL setting. Likewise for
21938          # LC_CTYPE, which is also set at the beginning of the configure script.
21939          # Test for the usual locale name.
21940          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21941            gt_cv_locale_fr=fr_FR
21942          else
21943            # Test for the locale name with explicit encoding suffix.
21944            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21945              gt_cv_locale_fr=fr_FR.ISO-8859-1
21946            else
21947              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
21948              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21949                gt_cv_locale_fr=fr_FR.ISO8859-1
21950              else
21951                # Test for the HP-UX locale name.
21952                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21953                  gt_cv_locale_fr=fr_FR.iso88591
21954                else
21955                  # Test for the Solaris 7 locale name.
21956                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21957                    gt_cv_locale_fr=fr
21958                  else
21959                    # None found.
21960                    gt_cv_locale_fr=none
21961                  fi
21962                fi
21963              fi
21964            fi
21965          fi
21966          ;;
21967      esac
21968    fi
21969    rm -fr conftest*
21970
21971fi
21972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
21973$as_echo "$gt_cv_locale_fr" >&6; }
21974  LOCALE_FR=$gt_cv_locale_fr
21975
21976
21977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21978$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21979if ${ac_cv_c_restrict+:} false; then :
21980  $as_echo_n "(cached) " >&6
21981else
21982  ac_cv_c_restrict=no
21983   # The order here caters to the fact that C++ does not require restrict.
21984   for ac_kw in __restrict __restrict__ _Restrict restrict; do
21985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21986/* end confdefs.h.  */
21987typedef int *int_ptr;
21988           int foo (int_ptr $ac_kw ip) { return ip[0]; }
21989           int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
21990           int bar (int ip[$ac_kw]) { return ip[0]; }
21991
21992int
21993main ()
21994{
21995int s[1];
21996           int *$ac_kw t = s;
21997           t[0] = 0;
21998           return foo (t) + bar (t);
21999
22000  ;
22001  return 0;
22002}
22003_ACEOF
22004if ac_fn_c_try_compile "$LINENO"; then :
22005  ac_cv_c_restrict=$ac_kw
22006fi
22007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008     test "$ac_cv_c_restrict" != no && break
22009   done
22010
22011fi
22012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22013$as_echo "$ac_cv_c_restrict" >&6; }
22014
22015 case $ac_cv_c_restrict in
22016   restrict) ;;
22017   no) $as_echo "#define restrict /**/" >>confdefs.h
22018 ;;
22019   *)  cat >>confdefs.h <<_ACEOF
22020#define restrict $ac_cv_c_restrict
22021_ACEOF
22022 ;;
22023 esac
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035          if test $ac_cv_func_uselocale = yes; then
22036
22037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
22038$as_echo_n "checking whether uselocale works... " >&6; }
22039if ${gt_cv_func_uselocale_works+:} false; then :
22040  $as_echo_n "(cached) " >&6
22041else
22042  if test "$cross_compiling" = yes; then :
22043  # Guess no on AIX and z/OS, yes otherwise.
22044          case "$host_os" in
22045            aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;;
22046            *)                   gt_cv_func_uselocale_works="guessing yes" ;;
22047          esac
22048
22049else
22050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051/* end confdefs.h.  */
22052
22053#include <locale.h>
22054#if HAVE_XLOCALE_H
22055# include <xlocale.h>
22056#endif
22057locale_t loc1;
22058int main ()
22059{
22060  uselocale (NULL);
22061  setlocale (LC_ALL, "en_US.UTF-8");
22062  return 0;
22063}
22064_ACEOF
22065if ac_fn_c_try_run "$LINENO"; then :
22066  gt_cv_func_uselocale_works=yes
22067else
22068  gt_cv_func_uselocale_works=no
22069fi
22070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22071  conftest.$ac_objext conftest.beam conftest.$ac_ext
22072fi
22073
22074
22075fi
22076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
22077$as_echo "$gt_cv_func_uselocale_works" >&6; }
22078  else
22079    gt_cv_func_uselocale_works=no
22080  fi
22081  case "$gt_cv_func_uselocale_works" in
22082    *yes)
22083
22084$as_echo "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
22085
22086      ;;
22087  esac
22088
22089
22090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
22091$as_echo_n "checking for wchar_t... " >&6; }
22092if ${gt_cv_c_wchar_t+:} false; then :
22093  $as_echo_n "(cached) " >&6
22094else
22095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096/* end confdefs.h.  */
22097#include <stddef.h>
22098            wchar_t foo = (wchar_t)'\0';
22099int
22100main ()
22101{
22102
22103  ;
22104  return 0;
22105}
22106_ACEOF
22107if ac_fn_c_try_compile "$LINENO"; then :
22108  gt_cv_c_wchar_t=yes
22109else
22110  gt_cv_c_wchar_t=no
22111fi
22112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113fi
22114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
22115$as_echo "$gt_cv_c_wchar_t" >&6; }
22116  if test $gt_cv_c_wchar_t = yes; then
22117
22118$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
22119
22120  fi
22121
22122
22123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
22124$as_echo_n "checking for wint_t... " >&6; }
22125if ${gt_cv_c_wint_t+:} false; then :
22126  $as_echo_n "(cached) " >&6
22127else
22128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129/* end confdefs.h.  */
22130
22131/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22132   <wchar.h>.
22133   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22134   before <wchar.h>.  */
22135#include <stddef.h>
22136#include <stdio.h>
22137#include <time.h>
22138#include <wchar.h>
22139            wint_t foo = (wchar_t)'\0';
22140int
22141main ()
22142{
22143
22144  ;
22145  return 0;
22146}
22147_ACEOF
22148if ac_fn_c_try_compile "$LINENO"; then :
22149  gt_cv_c_wint_t=yes
22150else
22151  gt_cv_c_wint_t=no
22152fi
22153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154fi
22155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
22156$as_echo "$gt_cv_c_wint_t" >&6; }
22157  if test $gt_cv_c_wint_t = yes; then
22158
22159$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
22160
22161
22162            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
22163$as_echo_n "checking whether wint_t is too small... " >&6; }
22164if ${gl_cv_type_wint_t_too_small+:} false; then :
22165  $as_echo_n "(cached) " >&6
22166else
22167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22168/* end confdefs.h.  */
22169
22170/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22171   <wchar.h>.
22172   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22173   included before <wchar.h>.  */
22174#if !(defined __GLIBC__ && !defined __UCLIBC__)
22175# include <stddef.h>
22176# include <stdio.h>
22177# include <time.h>
22178#endif
22179#include <wchar.h>
22180            int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
22181
22182int
22183main ()
22184{
22185
22186  ;
22187  return 0;
22188}
22189_ACEOF
22190if ac_fn_c_try_compile "$LINENO"; then :
22191  gl_cv_type_wint_t_too_small=no
22192else
22193  gl_cv_type_wint_t_too_small=yes
22194fi
22195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196fi
22197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
22198$as_echo "$gl_cv_type_wint_t_too_small" >&6; }
22199    if test $gl_cv_type_wint_t_too_small = yes; then
22200      GNULIB_OVERRIDES_WINT_T=1
22201    else
22202      GNULIB_OVERRIDES_WINT_T=0
22203    fi
22204  else
22205    GNULIB_OVERRIDES_WINT_T=0
22206  fi
22207
22208
22209
22210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22211$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22212if ${gl_cv_cc_double_expbit0+:} false; then :
22213  $as_echo_n "(cached) " >&6
22214else
22215
22216      if test "$cross_compiling" = yes; then :
22217
22218                                                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219/* end confdefs.h.  */
22220
22221#if defined arm || defined __arm || defined __arm__
22222  mixed_endianness
22223#endif
22224
22225_ACEOF
22226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22227  $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22228  gl_cv_cc_double_expbit0="unknown"
22229else
22230
22231                                                         :
22232if ${ac_cv_c_bigendian+:} false; then :
22233  $as_echo_n "(cached) " >&6
22234else
22235  ac_cv_c_bigendian=unknown
22236    # See if we're dealing with a universal compiler.
22237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22238/* end confdefs.h.  */
22239#ifndef __APPLE_CC__
22240	       not a universal capable compiler
22241	     #endif
22242	     typedef int dummy;
22243
22244_ACEOF
22245if ac_fn_c_try_compile "$LINENO"; then :
22246
22247	# Check for potential -arch flags.  It is not universal unless
22248	# there are at least two -arch flags with different values.
22249	ac_arch=
22250	ac_prev=
22251	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22252	 if test -n "$ac_prev"; then
22253	   case $ac_word in
22254	     i?86 | x86_64 | ppc | ppc64)
22255	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22256		 ac_arch=$ac_word
22257	       else
22258		 ac_cv_c_bigendian=universal
22259		 break
22260	       fi
22261	       ;;
22262	   esac
22263	   ac_prev=
22264	 elif test "x$ac_word" = "x-arch"; then
22265	   ac_prev=arch
22266	 fi
22267       done
22268fi
22269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270    if test $ac_cv_c_bigendian = unknown; then
22271      # See if sys/param.h defines the BYTE_ORDER macro.
22272      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273/* end confdefs.h.  */
22274#include <sys/types.h>
22275	     #include <sys/param.h>
22276
22277int
22278main ()
22279{
22280#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22281		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22282		     && LITTLE_ENDIAN)
22283	      bogus endian macros
22284	     #endif
22285
22286  ;
22287  return 0;
22288}
22289_ACEOF
22290if ac_fn_c_try_compile "$LINENO"; then :
22291  # It does; now see whether it defined to BIG_ENDIAN or not.
22292	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22293/* end confdefs.h.  */
22294#include <sys/types.h>
22295		#include <sys/param.h>
22296
22297int
22298main ()
22299{
22300#if BYTE_ORDER != BIG_ENDIAN
22301		 not big endian
22302		#endif
22303
22304  ;
22305  return 0;
22306}
22307_ACEOF
22308if ac_fn_c_try_compile "$LINENO"; then :
22309  ac_cv_c_bigendian=yes
22310else
22311  ac_cv_c_bigendian=no
22312fi
22313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314fi
22315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316    fi
22317    if test $ac_cv_c_bigendian = unknown; then
22318      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22319      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320/* end confdefs.h.  */
22321#include <limits.h>
22322
22323int
22324main ()
22325{
22326#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22327	      bogus endian macros
22328	     #endif
22329
22330  ;
22331  return 0;
22332}
22333_ACEOF
22334if ac_fn_c_try_compile "$LINENO"; then :
22335  # It does; now see whether it defined to _BIG_ENDIAN or not.
22336	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337/* end confdefs.h.  */
22338#include <limits.h>
22339
22340int
22341main ()
22342{
22343#ifndef _BIG_ENDIAN
22344		 not big endian
22345		#endif
22346
22347  ;
22348  return 0;
22349}
22350_ACEOF
22351if ac_fn_c_try_compile "$LINENO"; then :
22352  ac_cv_c_bigendian=yes
22353else
22354  ac_cv_c_bigendian=no
22355fi
22356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357fi
22358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359    fi
22360    if test $ac_cv_c_bigendian = unknown; then
22361      # Compile a test program.
22362      if test "$cross_compiling" = yes; then :
22363  # Try to guess by grepping values from an object file.
22364	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22365/* end confdefs.h.  */
22366short int ascii_mm[] =
22367		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22368		short int ascii_ii[] =
22369		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22370		int use_ascii (int i) {
22371		  return ascii_mm[i] + ascii_ii[i];
22372		}
22373		short int ebcdic_ii[] =
22374		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22375		short int ebcdic_mm[] =
22376		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22377		int use_ebcdic (int i) {
22378		  return ebcdic_mm[i] + ebcdic_ii[i];
22379		}
22380		extern int foo;
22381
22382int
22383main ()
22384{
22385return use_ascii (foo) == use_ebcdic (foo);
22386  ;
22387  return 0;
22388}
22389_ACEOF
22390if ac_fn_c_try_compile "$LINENO"; then :
22391  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22392	      ac_cv_c_bigendian=yes
22393	    fi
22394	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22395	      if test "$ac_cv_c_bigendian" = unknown; then
22396		ac_cv_c_bigendian=no
22397	      else
22398		# finding both strings is unlikely to happen, but who knows?
22399		ac_cv_c_bigendian=unknown
22400	      fi
22401	    fi
22402fi
22403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404else
22405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22406/* end confdefs.h.  */
22407$ac_includes_default
22408int
22409main ()
22410{
22411
22412	     /* Are we little or big endian?  From Harbison&Steele.  */
22413	     union
22414	     {
22415	       long int l;
22416	       char c[sizeof (long int)];
22417	     } u;
22418	     u.l = 1;
22419	     return u.c[sizeof (long int) - 1] == 1;
22420
22421  ;
22422  return 0;
22423}
22424_ACEOF
22425if ac_fn_c_try_run "$LINENO"; then :
22426  ac_cv_c_bigendian=no
22427else
22428  ac_cv_c_bigendian=yes
22429fi
22430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22431  conftest.$ac_objext conftest.beam conftest.$ac_ext
22432fi
22433
22434    fi
22435fi
22436:
22437 case $ac_cv_c_bigendian in #(
22438   yes)
22439     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22440   no)
22441     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22442   universal)
22443
22444$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22445
22446     ;; #(
22447   *)
22448     gl_cv_cc_double_expbit0="unknown" ;;
22449 esac
22450
22451
22452fi
22453rm -f conftest*
22454
22455
22456else
22457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458/* end confdefs.h.  */
22459
22460#include <float.h>
22461#include <stddef.h>
22462#include <stdio.h>
22463#include <string.h>
22464#define NWORDS \
22465  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22466typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22467static unsigned int ored_words[NWORDS];
22468static unsigned int anded_words[NWORDS];
22469static void add_to_ored_words (double x)
22470{
22471  memory_double m;
22472  size_t i;
22473  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
22474  memset (&m, 0, sizeof (memory_double));
22475  m.value = x;
22476  for (i = 0; i < NWORDS; i++)
22477    {
22478      ored_words[i] |= m.word[i];
22479      anded_words[i] &= m.word[i];
22480    }
22481}
22482int main ()
22483{
22484  size_t j;
22485  FILE *fp = fopen ("conftest.out", "w");
22486  if (fp == NULL)
22487    return 1;
22488  for (j = 0; j < NWORDS; j++)
22489    anded_words[j] = ~ (unsigned int) 0;
22490  add_to_ored_words (0.25);
22491  add_to_ored_words (0.5);
22492  add_to_ored_words (1.0);
22493  add_to_ored_words (2.0);
22494  add_to_ored_words (4.0);
22495  /* Remove bits that are common (e.g. if representation of the first mantissa
22496     bit is explicit).  */
22497  for (j = 0; j < NWORDS; j++)
22498    ored_words[j] &= ~anded_words[j];
22499  /* Now find the nonzero word.  */
22500  for (j = 0; j < NWORDS; j++)
22501    if (ored_words[j] != 0)
22502      break;
22503  if (j < NWORDS)
22504    {
22505      size_t i;
22506      for (i = j + 1; i < NWORDS; i++)
22507        if (ored_words[i] != 0)
22508          {
22509            fprintf (fp, "unknown");
22510            return (fclose (fp) != 0);
22511          }
22512      for (i = 0; ; i++)
22513        if ((ored_words[j] >> i) & 1)
22514          {
22515            fprintf (fp, "word %d bit %d", (int) j, (int) i);
22516            return (fclose (fp) != 0);
22517          }
22518    }
22519  fprintf (fp, "unknown");
22520  return (fclose (fp) != 0);
22521}
22522
22523_ACEOF
22524if ac_fn_c_try_run "$LINENO"; then :
22525  gl_cv_cc_double_expbit0=`cat conftest.out`
22526else
22527  gl_cv_cc_double_expbit0="unknown"
22528fi
22529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22530  conftest.$ac_objext conftest.beam conftest.$ac_ext
22531fi
22532
22533      rm -f conftest.out
22534
22535fi
22536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22537$as_echo "$gl_cv_cc_double_expbit0" >&6; }
22538  case "$gl_cv_cc_double_expbit0" in
22539    word*bit*)
22540      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22541      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22542
22543cat >>confdefs.h <<_ACEOF
22544#define DBL_EXPBIT0_WORD $word
22545_ACEOF
22546
22547
22548cat >>confdefs.h <<_ACEOF
22549#define DBL_EXPBIT0_BIT $bit
22550_ACEOF
22551
22552      ;;
22553  esac
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
22564$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
22565if ${gl_cv_func_snprintf_retval_c99+:} false; then :
22566  $as_echo_n "(cached) " >&6
22567else
22568
22569      if test "$cross_compiling" = yes; then :
22570  case "$host_os" in
22571                                 # Guess yes on glibc systems.
22572           *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
22573                                 # Guess yes on musl systems.
22574           *-musl*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22575                                 # Guess yes on FreeBSD >= 5.
22576           freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
22577           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22578                                 # Guess yes on Mac OS X >= 10.3.
22579           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
22580           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22581                                 # Guess yes on OpenBSD >= 3.9.
22582           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22583                                 gl_cv_func_snprintf_retval_c99="guessing no";;
22584           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
22585                                 # Guess yes on Solaris >= 2.10.
22586           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
22587           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
22588                                 # Guess yes on AIX >= 4.
22589           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
22590           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
22591                                 # Guess yes on NetBSD >= 3.
22592           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22593                                 gl_cv_func_snprintf_retval_c99="guessing no";;
22594           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22595                                 # Guess yes on BeOS.
22596           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
22597                                 # Guess yes on Android.
22598           linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
22599                                 # Guess yes on MSVC, no on mingw.
22600           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601/* end confdefs.h.  */
22602
22603#ifdef _MSC_VER
22604 Known
22605#endif
22606
22607_ACEOF
22608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22609  $EGREP "Known" >/dev/null 2>&1; then :
22610  gl_cv_func_snprintf_retval_c99="guessing yes"
22611else
22612  gl_cv_func_snprintf_retval_c99="guessing no"
22613fi
22614rm -f conftest*
22615
22616                                 ;;
22617                                 # If we don't know, obey --enable-cross-guesses.
22618           *)                    gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
22619         esac
22620
22621else
22622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623/* end confdefs.h.  */
22624
22625#include <stdio.h>
22626#include <string.h>
22627#if HAVE_SNPRINTF
22628# define my_snprintf snprintf
22629#else
22630# include <stdarg.h>
22631static int my_snprintf (char *buf, int size, const char *format, ...)
22632{
22633  va_list args;
22634  int ret;
22635  va_start (args, format);
22636  ret = vsnprintf (buf, size, format, args);
22637  va_end (args);
22638  return ret;
22639}
22640#endif
22641static char buf[100];
22642int main ()
22643{
22644  strcpy (buf, "ABCDEF");
22645  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
22646    return 1;
22647  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
22648    return 2;
22649  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
22650    return 3;
22651  return 0;
22652}
22653_ACEOF
22654if ac_fn_c_try_run "$LINENO"; then :
22655  gl_cv_func_snprintf_retval_c99=yes
22656else
22657  gl_cv_func_snprintf_retval_c99=no
22658fi
22659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22660  conftest.$ac_objext conftest.beam conftest.$ac_ext
22661fi
22662
22663
22664fi
22665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
22666$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
22667
22668
22669
22670
22671
22672  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22673do :
22674  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22675ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22676if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22677  cat >>confdefs.h <<_ACEOF
22678#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22679_ACEOF
22680
22681fi
22682done
22683
22684      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22685"
22686if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22687  ac_have_decl=1
22688else
22689  ac_have_decl=0
22690fi
22691
22692cat >>confdefs.h <<_ACEOF
22693#define HAVE_DECL__SNPRINTF $ac_have_decl
22694_ACEOF
22695
22696
22697
22698  case "$gl_cv_func_snprintf_retval_c99" in
22699    *yes)
22700
22701$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22702
22703      ;;
22704  esac
22705
22706
22707
22708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
22709$as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
22710if ${gl_cv_func_printf_long_double+:} false; then :
22711  $as_echo_n "(cached) " >&6
22712else
22713
22714      if test "$cross_compiling" = yes; then :
22715  case "$host_os" in
22716                            # Guess no on BeOS.
22717           beos*)           gl_cv_func_printf_long_double="guessing no";;
22718                            # Guess yes on Android.
22719           linux*-android*) gl_cv_func_printf_long_double="guessing yes";;
22720                            # Guess yes on MSVC, no on mingw.
22721           mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722/* end confdefs.h.  */
22723
22724#ifdef _MSC_VER
22725 Known
22726#endif
22727
22728_ACEOF
22729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22730  $EGREP "Known" >/dev/null 2>&1; then :
22731  gl_cv_func_printf_long_double="guessing yes"
22732else
22733  gl_cv_func_printf_long_double="guessing no"
22734fi
22735rm -f conftest*
22736
22737                            ;;
22738           *)               gl_cv_func_printf_long_double="guessing yes";;
22739         esac
22740
22741else
22742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743/* end confdefs.h.  */
22744
22745#include <stdio.h>
22746#include <string.h>
22747static char buf[10000];
22748int main ()
22749{
22750  int result = 0;
22751  buf[0] = '\0';
22752  if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
22753      || strcmp (buf, "1.750000 33") != 0)
22754    result |= 1;
22755  buf[0] = '\0';
22756  if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
22757      || strcmp (buf, "1.750000e+00 33") != 0)
22758    result |= 2;
22759  buf[0] = '\0';
22760  if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
22761      || strcmp (buf, "1.75 33") != 0)
22762    result |= 4;
22763  return result;
22764}
22765_ACEOF
22766if ac_fn_c_try_run "$LINENO"; then :
22767  gl_cv_func_printf_long_double=yes
22768else
22769  gl_cv_func_printf_long_double=no
22770fi
22771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22772  conftest.$ac_objext conftest.beam conftest.$ac_ext
22773fi
22774
22775
22776fi
22777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
22778$as_echo "$gl_cv_func_printf_long_double" >&6; }
22779
22780
22781
22782  case "$gl_cv_func_printf_long_double" in
22783    *yes)
22784      ;;
22785    *)
22786
22787$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
22788
22789      ;;
22790  esac
22791
22792
22793
22794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
22795$as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
22796if ${gl_cv_func_printf_infinite+:} false; then :
22797  $as_echo_n "(cached) " >&6
22798else
22799
22800      if test "$cross_compiling" = yes; then :
22801
22802         case "$host_os" in
22803                                 # Guess yes on glibc systems.
22804           *-gnu* | gnu*)        gl_cv_func_printf_infinite="guessing yes";;
22805                                 # Guess yes on musl systems.
22806           *-musl*)              gl_cv_func_printf_infinite="guessing yes";;
22807                                 # Guess yes on FreeBSD >= 6.
22808           freebsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
22809           freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
22810                                 # Guess yes on Mac OS X >= 10.3.
22811           darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
22812           darwin*)              gl_cv_func_printf_infinite="guessing yes";;
22813                                 # Guess yes on HP-UX >= 11.
22814           hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
22815           hpux*)                gl_cv_func_printf_infinite="guessing yes";;
22816                                 # Guess yes on NetBSD >= 3.
22817           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22818                                 gl_cv_func_printf_infinite="guessing no";;
22819           netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
22820                                 # Guess yes on BeOS.
22821           beos*)                gl_cv_func_printf_infinite="guessing yes";;
22822                                 # Guess no on Android.
22823           linux*-android*)      gl_cv_func_printf_infinite="guessing no";;
22824                                 # Guess yes on MSVC, no on mingw.
22825           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22826/* end confdefs.h.  */
22827
22828#ifdef _MSC_VER
22829 Known
22830#endif
22831
22832_ACEOF
22833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22834  $EGREP "Known" >/dev/null 2>&1; then :
22835  gl_cv_func_printf_infinite="guessing yes"
22836else
22837  gl_cv_func_printf_infinite="guessing no"
22838fi
22839rm -f conftest*
22840
22841                                 ;;
22842                                 # If we don't know, obey --enable-cross-guesses.
22843           *)                    gl_cv_func_printf_infinite="$gl_cross_guess_normal";;
22844         esac
22845
22846else
22847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848/* end confdefs.h.  */
22849
22850#include <stdio.h>
22851#include <string.h>
22852static int
22853strisnan (const char *string, size_t start_index, size_t end_index)
22854{
22855  if (start_index < end_index)
22856    {
22857      if (string[start_index] == '-')
22858        start_index++;
22859      if (start_index + 3 <= end_index
22860          && memcmp (string + start_index, "nan", 3) == 0)
22861        {
22862          start_index += 3;
22863          if (start_index == end_index
22864              || (string[start_index] == '(' && string[end_index - 1] == ')'))
22865            return 1;
22866        }
22867    }
22868  return 0;
22869}
22870static int
22871have_minus_zero ()
22872{
22873  static double plus_zero = 0.0;
22874  double minus_zero = - plus_zero;
22875  return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
22876}
22877static char buf[10000];
22878static double zero = 0.0;
22879int main ()
22880{
22881  int result = 0;
22882  if (sprintf (buf, "%f", 1.0 / zero) < 0
22883      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
22884    result |= 1;
22885  if (sprintf (buf, "%f", -1.0 / zero) < 0
22886      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
22887    result |= 1;
22888  if (sprintf (buf, "%f", zero / zero) < 0
22889      || !strisnan (buf, 0, strlen (buf)))
22890    result |= 2;
22891  if (sprintf (buf, "%e", 1.0 / zero) < 0
22892      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
22893    result |= 4;
22894  if (sprintf (buf, "%e", -1.0 / zero) < 0
22895      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
22896    result |= 4;
22897  if (sprintf (buf, "%e", zero / zero) < 0
22898      || !strisnan (buf, 0, strlen (buf)))
22899    result |= 8;
22900  if (sprintf (buf, "%g", 1.0 / zero) < 0
22901      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
22902    result |= 16;
22903  if (sprintf (buf, "%g", -1.0 / zero) < 0
22904      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
22905    result |= 16;
22906  if (sprintf (buf, "%g", zero / zero) < 0
22907      || !strisnan (buf, 0, strlen (buf)))
22908    result |= 32;
22909  /* This test fails on HP-UX 10.20.  */
22910  if (have_minus_zero ())
22911    if (sprintf (buf, "%g", - zero) < 0
22912        || strcmp (buf, "-0") != 0)
22913    result |= 64;
22914  return result;
22915}
22916_ACEOF
22917if ac_fn_c_try_run "$LINENO"; then :
22918  gl_cv_func_printf_infinite=yes
22919else
22920  gl_cv_func_printf_infinite=no
22921fi
22922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22923  conftest.$ac_objext conftest.beam conftest.$ac_ext
22924fi
22925
22926
22927fi
22928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
22929$as_echo "$gl_cv_func_printf_infinite" >&6; }
22930
22931
22932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22933$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22934if ${ac_cv_c_bigendian+:} false; then :
22935  $as_echo_n "(cached) " >&6
22936else
22937  ac_cv_c_bigendian=unknown
22938    # See if we're dealing with a universal compiler.
22939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940/* end confdefs.h.  */
22941#ifndef __APPLE_CC__
22942	       not a universal capable compiler
22943	     #endif
22944	     typedef int dummy;
22945
22946_ACEOF
22947if ac_fn_c_try_compile "$LINENO"; then :
22948
22949	# Check for potential -arch flags.  It is not universal unless
22950	# there are at least two -arch flags with different values.
22951	ac_arch=
22952	ac_prev=
22953	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22954	 if test -n "$ac_prev"; then
22955	   case $ac_word in
22956	     i?86 | x86_64 | ppc | ppc64)
22957	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22958		 ac_arch=$ac_word
22959	       else
22960		 ac_cv_c_bigendian=universal
22961		 break
22962	       fi
22963	       ;;
22964	   esac
22965	   ac_prev=
22966	 elif test "x$ac_word" = "x-arch"; then
22967	   ac_prev=arch
22968	 fi
22969       done
22970fi
22971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972    if test $ac_cv_c_bigendian = unknown; then
22973      # See if sys/param.h defines the BYTE_ORDER macro.
22974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22975/* end confdefs.h.  */
22976#include <sys/types.h>
22977	     #include <sys/param.h>
22978
22979int
22980main ()
22981{
22982#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22983		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22984		     && LITTLE_ENDIAN)
22985	      bogus endian macros
22986	     #endif
22987
22988  ;
22989  return 0;
22990}
22991_ACEOF
22992if ac_fn_c_try_compile "$LINENO"; then :
22993  # It does; now see whether it defined to BIG_ENDIAN or not.
22994	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22995/* end confdefs.h.  */
22996#include <sys/types.h>
22997		#include <sys/param.h>
22998
22999int
23000main ()
23001{
23002#if BYTE_ORDER != BIG_ENDIAN
23003		 not big endian
23004		#endif
23005
23006  ;
23007  return 0;
23008}
23009_ACEOF
23010if ac_fn_c_try_compile "$LINENO"; then :
23011  ac_cv_c_bigendian=yes
23012else
23013  ac_cv_c_bigendian=no
23014fi
23015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016fi
23017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018    fi
23019    if test $ac_cv_c_bigendian = unknown; then
23020      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23022/* end confdefs.h.  */
23023#include <limits.h>
23024
23025int
23026main ()
23027{
23028#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23029	      bogus endian macros
23030	     #endif
23031
23032  ;
23033  return 0;
23034}
23035_ACEOF
23036if ac_fn_c_try_compile "$LINENO"; then :
23037  # It does; now see whether it defined to _BIG_ENDIAN or not.
23038	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23039/* end confdefs.h.  */
23040#include <limits.h>
23041
23042int
23043main ()
23044{
23045#ifndef _BIG_ENDIAN
23046		 not big endian
23047		#endif
23048
23049  ;
23050  return 0;
23051}
23052_ACEOF
23053if ac_fn_c_try_compile "$LINENO"; then :
23054  ac_cv_c_bigendian=yes
23055else
23056  ac_cv_c_bigendian=no
23057fi
23058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059fi
23060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23061    fi
23062    if test $ac_cv_c_bigendian = unknown; then
23063      # Compile a test program.
23064      if test "$cross_compiling" = yes; then :
23065  # Try to guess by grepping values from an object file.
23066	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067/* end confdefs.h.  */
23068short int ascii_mm[] =
23069		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23070		short int ascii_ii[] =
23071		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23072		int use_ascii (int i) {
23073		  return ascii_mm[i] + ascii_ii[i];
23074		}
23075		short int ebcdic_ii[] =
23076		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23077		short int ebcdic_mm[] =
23078		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23079		int use_ebcdic (int i) {
23080		  return ebcdic_mm[i] + ebcdic_ii[i];
23081		}
23082		extern int foo;
23083
23084int
23085main ()
23086{
23087return use_ascii (foo) == use_ebcdic (foo);
23088  ;
23089  return 0;
23090}
23091_ACEOF
23092if ac_fn_c_try_compile "$LINENO"; then :
23093  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23094	      ac_cv_c_bigendian=yes
23095	    fi
23096	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23097	      if test "$ac_cv_c_bigendian" = unknown; then
23098		ac_cv_c_bigendian=no
23099	      else
23100		# finding both strings is unlikely to happen, but who knows?
23101		ac_cv_c_bigendian=unknown
23102	      fi
23103	    fi
23104fi
23105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106else
23107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23108/* end confdefs.h.  */
23109$ac_includes_default
23110int
23111main ()
23112{
23113
23114	     /* Are we little or big endian?  From Harbison&Steele.  */
23115	     union
23116	     {
23117	       long int l;
23118	       char c[sizeof (long int)];
23119	     } u;
23120	     u.l = 1;
23121	     return u.c[sizeof (long int) - 1] == 1;
23122
23123  ;
23124  return 0;
23125}
23126_ACEOF
23127if ac_fn_c_try_run "$LINENO"; then :
23128  ac_cv_c_bigendian=no
23129else
23130  ac_cv_c_bigendian=yes
23131fi
23132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23133  conftest.$ac_objext conftest.beam conftest.$ac_ext
23134fi
23135
23136    fi
23137fi
23138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23139$as_echo "$ac_cv_c_bigendian" >&6; }
23140 case $ac_cv_c_bigendian in #(
23141   yes)
23142     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23143;; #(
23144   no)
23145      ;; #(
23146   universal)
23147
23148$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23149
23150     ;; #(
23151   *)
23152     as_fn_error $? "unknown endianness
23153 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23154 esac
23155
23156
23157
23158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
23159$as_echo_n "checking whether long double and double are the same... " >&6; }
23160if ${gl_cv_long_double_equals_double+:} false; then :
23161  $as_echo_n "(cached) " >&6
23162else
23163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23164/* end confdefs.h.  */
23165#include <float.h>
23166int
23167main ()
23168{
23169typedef int check[sizeof (long double) == sizeof (double)
23170                              && LDBL_MANT_DIG == DBL_MANT_DIG
23171                              && LDBL_MAX_EXP == DBL_MAX_EXP
23172                              && LDBL_MIN_EXP == DBL_MIN_EXP
23173                              ? 1 : -1];
23174
23175  ;
23176  return 0;
23177}
23178_ACEOF
23179if ac_fn_c_try_compile "$LINENO"; then :
23180  gl_cv_long_double_equals_double=yes
23181else
23182  gl_cv_long_double_equals_double=no
23183fi
23184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185
23186fi
23187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
23188$as_echo "$gl_cv_long_double_equals_double" >&6; }
23189  if test $gl_cv_long_double_equals_double = yes; then
23190
23191$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
23192
23193    HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
23194  else
23195    HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
23196  fi
23197
23198
23199
23200
23201
23202
23203
23204         if test -n "$gl_printf_safe"; then
23205
23206$as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
23207
23208  fi
23209  case "$gl_cv_func_printf_long_double" in
23210    *yes)
23211      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
23212$as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
23213if ${gl_cv_func_printf_infinite_long_double+:} false; then :
23214  $as_echo_n "(cached) " >&6
23215else
23216
23217          if test "$cross_compiling" = yes; then :
23218  case "$host_cpu" in
23219                                     # Guess no on ia64, x86_64, i386.
23220               ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
23221               *)
23222                 case "$host_os" in
23223                                         # Guess yes on glibc systems.
23224                   *-gnu* | gnu*)        gl_cv_func_printf_infinite_long_double="guessing yes";;
23225                                         # Guess yes on musl systems.
23226                   *-musl*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
23227                                         # Guess yes on FreeBSD >= 6.
23228                   freebsd[1-5].*)       gl_cv_func_printf_infinite_long_double="guessing no";;
23229                   freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
23230                                         # Guess yes on HP-UX >= 11.
23231                   hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
23232                   hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
23233                                         # Guess no on Android.
23234                   linux*-android*)      gl_cv_func_printf_infinite_long_double="guessing no";;
23235                                         # Guess yes on MSVC, no on mingw.
23236                   mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23237/* end confdefs.h.  */
23238
23239#ifdef _MSC_VER
23240 Known
23241#endif
23242
23243_ACEOF
23244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23245  $EGREP "Known" >/dev/null 2>&1; then :
23246  gl_cv_func_printf_infinite_long_double="guessing yes"
23247else
23248  gl_cv_func_printf_infinite_long_double="guessing no"
23249fi
23250rm -f conftest*
23251
23252                                         ;;
23253                                         # If we don't know, obey --enable-cross-guesses.
23254                   *)                    gl_cv_func_printf_infinite_long_double="$gl_cross_guess_normal";;
23255                 esac
23256                 ;;
23257             esac
23258
23259else
23260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23261/* end confdefs.h.  */
23262
23263
23264#include <stdlib.h>
23265#if defined __MACH__ && defined __APPLE__
23266/* Avoid a crash on Mac OS X.  */
23267#include <mach/mach.h>
23268#include <mach/mach_error.h>
23269#include <mach/thread_status.h>
23270#include <mach/exception.h>
23271#include <mach/task.h>
23272#include <pthread.h>
23273/* The exception port on which our thread listens.  */
23274static mach_port_t our_exception_port;
23275/* The main function of the thread listening for exceptions of type
23276   EXC_BAD_ACCESS.  */
23277static void *
23278mach_exception_thread (void *arg)
23279{
23280  /* Buffer for a message to be received.  */
23281  struct {
23282    mach_msg_header_t head;
23283    mach_msg_body_t msgh_body;
23284    char data[1024];
23285  } msg;
23286  mach_msg_return_t retval;
23287  /* Wait for a message on the exception port.  */
23288  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23289                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23290  if (retval != MACH_MSG_SUCCESS)
23291    abort ();
23292  exit (1);
23293}
23294static void
23295nocrash_init (void)
23296{
23297  mach_port_t self = mach_task_self ();
23298  /* Allocate a port on which the thread shall listen for exceptions.  */
23299  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23300      == KERN_SUCCESS) {
23301    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
23302    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23303                                MACH_MSG_TYPE_MAKE_SEND)
23304        == KERN_SUCCESS) {
23305      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
23306         for us.  */
23307      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23308      /* Create the thread listening on the exception port.  */
23309      pthread_attr_t attr;
23310      pthread_t thread;
23311      if (pthread_attr_init (&attr) == 0
23312          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23313          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23314        pthread_attr_destroy (&attr);
23315        /* Replace the exception port info for these exceptions with our own.
23316           Note that we replace the exception port for the entire task, not only
23317           for a particular thread.  This has the effect that when our exception
23318           port gets the message, the thread specific exception port has already
23319           been asked, and we don't need to bother about it.
23320           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
23321        task_set_exception_ports (self, mask, our_exception_port,
23322                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23323      }
23324    }
23325  }
23326}
23327#elif defined _WIN32 && ! defined __CYGWIN__
23328/* Avoid a crash on native Windows.  */
23329#define WIN32_LEAN_AND_MEAN
23330#include <windows.h>
23331#include <winerror.h>
23332static LONG WINAPI
23333exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23334{
23335  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23336    {
23337    case EXCEPTION_ACCESS_VIOLATION:
23338    case EXCEPTION_IN_PAGE_ERROR:
23339    case EXCEPTION_STACK_OVERFLOW:
23340    case EXCEPTION_GUARD_PAGE:
23341    case EXCEPTION_PRIV_INSTRUCTION:
23342    case EXCEPTION_ILLEGAL_INSTRUCTION:
23343    case EXCEPTION_DATATYPE_MISALIGNMENT:
23344    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23345    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23346      exit (1);
23347    }
23348  return EXCEPTION_CONTINUE_SEARCH;
23349}
23350static void
23351nocrash_init (void)
23352{
23353  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23354}
23355#else
23356/* Avoid a crash on POSIX systems.  */
23357#include <signal.h>
23358#include <unistd.h>
23359/* A POSIX signal handler.  */
23360static void
23361exception_handler (int sig)
23362{
23363  _exit (1);
23364}
23365static void
23366nocrash_init (void)
23367{
23368#ifdef SIGSEGV
23369  signal (SIGSEGV, exception_handler);
23370#endif
23371#ifdef SIGBUS
23372  signal (SIGBUS, exception_handler);
23373#endif
23374}
23375#endif
23376
23377#include <float.h>
23378#include <stdio.h>
23379#include <string.h>
23380static int
23381strisnan (const char *string, size_t start_index, size_t end_index)
23382{
23383  if (start_index < end_index)
23384    {
23385      if (string[start_index] == '-')
23386        start_index++;
23387      if (start_index + 3 <= end_index
23388          && memcmp (string + start_index, "nan", 3) == 0)
23389        {
23390          start_index += 3;
23391          if (start_index == end_index
23392              || (string[start_index] == '(' && string[end_index - 1] == ')'))
23393            return 1;
23394        }
23395    }
23396  return 0;
23397}
23398static char buf[10000];
23399static long double zeroL = 0.0L;
23400int main ()
23401{
23402  int result = 0;
23403  nocrash_init();
23404  if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
23405      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
23406    result |= 1;
23407  if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
23408      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
23409    result |= 1;
23410  if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
23411      || !strisnan (buf, 0, strlen (buf)))
23412    result |= 1;
23413  if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
23414      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
23415    result |= 1;
23416  if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
23417      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
23418    result |= 1;
23419  if (sprintf (buf, "%Le", zeroL / zeroL) < 0
23420      || !strisnan (buf, 0, strlen (buf)))
23421    result |= 1;
23422  if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
23423      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
23424    result |= 1;
23425  if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
23426      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
23427    result |= 1;
23428  if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
23429      || !strisnan (buf, 0, strlen (buf)))
23430    result |= 1;
23431#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
23432/* Representation of an 80-bit 'long double' as an initializer for a sequence
23433   of 'unsigned int' words.  */
23434# ifdef WORDS_BIGENDIAN
23435#  define LDBL80_WORDS(exponent,manthi,mantlo) \
23436     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
23437       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
23438       (unsigned int) (mantlo) << 16                                        \
23439     }
23440# else
23441#  define LDBL80_WORDS(exponent,manthi,mantlo) \
23442     { mantlo, manthi, exponent }
23443# endif
23444  { /* Quiet NaN.  */
23445    static union { unsigned int word[4]; long double value; } x =
23446      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
23447    if (sprintf (buf, "%Lf", x.value) < 0
23448        || !strisnan (buf, 0, strlen (buf)))
23449      result |= 2;
23450    if (sprintf (buf, "%Le", x.value) < 0
23451        || !strisnan (buf, 0, strlen (buf)))
23452      result |= 2;
23453    if (sprintf (buf, "%Lg", x.value) < 0
23454        || !strisnan (buf, 0, strlen (buf)))
23455      result |= 2;
23456  }
23457  {
23458    /* Signalling NaN.  */
23459    static union { unsigned int word[4]; long double value; } x =
23460      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
23461    if (sprintf (buf, "%Lf", x.value) < 0
23462        || !strisnan (buf, 0, strlen (buf)))
23463      result |= 2;
23464    if (sprintf (buf, "%Le", x.value) < 0
23465        || !strisnan (buf, 0, strlen (buf)))
23466      result |= 2;
23467    if (sprintf (buf, "%Lg", x.value) < 0
23468        || !strisnan (buf, 0, strlen (buf)))
23469      result |= 2;
23470  }
23471  { /* Pseudo-NaN.  */
23472    static union { unsigned int word[4]; long double value; } x =
23473      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
23474    if (sprintf (buf, "%Lf", x.value) <= 0)
23475      result |= 4;
23476    if (sprintf (buf, "%Le", x.value) <= 0)
23477      result |= 4;
23478    if (sprintf (buf, "%Lg", x.value) <= 0)
23479      result |= 4;
23480  }
23481  { /* Pseudo-Infinity.  */
23482    static union { unsigned int word[4]; long double value; } x =
23483      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
23484    if (sprintf (buf, "%Lf", x.value) <= 0)
23485      result |= 8;
23486    if (sprintf (buf, "%Le", x.value) <= 0)
23487      result |= 8;
23488    if (sprintf (buf, "%Lg", x.value) <= 0)
23489      result |= 8;
23490  }
23491  { /* Pseudo-Zero.  */
23492    static union { unsigned int word[4]; long double value; } x =
23493      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
23494    if (sprintf (buf, "%Lf", x.value) <= 0)
23495      result |= 16;
23496    if (sprintf (buf, "%Le", x.value) <= 0)
23497      result |= 16;
23498    if (sprintf (buf, "%Lg", x.value) <= 0)
23499      result |= 16;
23500  }
23501  { /* Unnormalized number.  */
23502    static union { unsigned int word[4]; long double value; } x =
23503      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
23504    if (sprintf (buf, "%Lf", x.value) <= 0)
23505      result |= 32;
23506    if (sprintf (buf, "%Le", x.value) <= 0)
23507      result |= 32;
23508    if (sprintf (buf, "%Lg", x.value) <= 0)
23509      result |= 32;
23510  }
23511  { /* Pseudo-Denormal.  */
23512    static union { unsigned int word[4]; long double value; } x =
23513      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
23514    if (sprintf (buf, "%Lf", x.value) <= 0)
23515      result |= 64;
23516    if (sprintf (buf, "%Le", x.value) <= 0)
23517      result |= 64;
23518    if (sprintf (buf, "%Lg", x.value) <= 0)
23519      result |= 64;
23520  }
23521#endif
23522  return result;
23523}
23524_ACEOF
23525if ac_fn_c_try_run "$LINENO"; then :
23526  gl_cv_func_printf_infinite_long_double=yes
23527else
23528  gl_cv_func_printf_infinite_long_double=no
23529fi
23530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23531  conftest.$ac_objext conftest.beam conftest.$ac_ext
23532fi
23533
23534
23535fi
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
23537$as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
23538      ;;
23539    *)
23540      gl_cv_func_printf_infinite_long_double="irrelevant"
23541      ;;
23542  esac
23543
23544
23545
23546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
23547$as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
23548if ${gl_cv_func_printf_directive_a+:} false; then :
23549  $as_echo_n "(cached) " >&6
23550else
23551
23552      if test "$cross_compiling" = yes; then :
23553
23554         case "$host_os" in
23555                                 # Guess yes on glibc >= 2.5 systems.
23556           *-gnu* | gnu*)
23557             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558/* end confdefs.h.  */
23559
23560               #include <features.h>
23561               #ifdef __GNU_LIBRARY__
23562                #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
23563                 BZ2908
23564                #endif
23565               #endif
23566
23567_ACEOF
23568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23569  $EGREP "BZ2908" >/dev/null 2>&1; then :
23570  gl_cv_func_printf_directive_a="guessing yes"
23571else
23572  gl_cv_func_printf_directive_a="guessing no"
23573fi
23574rm -f conftest*
23575
23576             ;;
23577                                 # Guess yes on musl systems.
23578           *-musl*)              gl_cv_func_printf_directive_a="guessing yes";;
23579                                 # Guess no on Android.
23580           linux*-android*)      gl_cv_func_printf_directive_a="guessing no";;
23581                                 # Guess no on native Windows.
23582           mingw*)               gl_cv_func_printf_directive_a="guessing no";;
23583                                 # If we don't know, obey --enable-cross-guesses.
23584           *)                    gl_cv_func_printf_directive_a="$gl_cross_guess_normal";;
23585         esac
23586
23587else
23588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23589/* end confdefs.h.  */
23590
23591#include <stdio.h>
23592#include <string.h>
23593static char buf[100];
23594static double zero = 0.0;
23595int main ()
23596{
23597  int result = 0;
23598  if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
23599      || (strcmp (buf, "0x1.922p+1 33") != 0
23600          && strcmp (buf, "0x3.244p+0 33") != 0
23601          && strcmp (buf, "0x6.488p-1 33") != 0
23602          && strcmp (buf, "0xc.91p-2 33") != 0))
23603    result |= 1;
23604  if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
23605      || (strcmp (buf, "-0X1.922P+1 33") != 0
23606          && strcmp (buf, "-0X3.244P+0 33") != 0
23607          && strcmp (buf, "-0X6.488P-1 33") != 0
23608          && strcmp (buf, "-0XC.91P-2 33") != 0))
23609    result |= 2;
23610  /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
23611  if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
23612      || (strcmp (buf, "0x1.83p+0 33") != 0
23613          && strcmp (buf, "0x3.05p-1 33") != 0
23614          && strcmp (buf, "0x6.0ap-2 33") != 0
23615          && strcmp (buf, "0xc.14p-3 33") != 0))
23616    result |= 4;
23617  /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round.  */
23618  if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0
23619      || (strcmp (buf, "0x2p+0 33") != 0
23620          && strcmp (buf, "0x3p-1 33") != 0
23621          && strcmp (buf, "0x6p-2 33") != 0
23622          && strcmp (buf, "0xcp-3 33") != 0))
23623    result |= 4;
23624  /* This catches a FreeBSD 6.1 bug.  See
23625     <https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html> */
23626  if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
23627      || buf[0] == '0')
23628    result |= 8;
23629  /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug.  */
23630  if (sprintf (buf, "%.1a", 1.999) < 0
23631      || (strcmp (buf, "0x1.0p+1") != 0
23632          && strcmp (buf, "0x2.0p+0") != 0
23633          && strcmp (buf, "0x4.0p-1") != 0
23634          && strcmp (buf, "0x8.0p-2") != 0))
23635    result |= 16;
23636  /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
23637     glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
23638  if (sprintf (buf, "%.1La", 1.999L) < 0
23639      || (strcmp (buf, "0x1.0p+1") != 0
23640          && strcmp (buf, "0x2.0p+0") != 0
23641          && strcmp (buf, "0x4.0p-1") != 0
23642          && strcmp (buf, "0x8.0p-2") != 0))
23643    result |= 32;
23644  return result;
23645}
23646_ACEOF
23647if ac_fn_c_try_run "$LINENO"; then :
23648  gl_cv_func_printf_directive_a=yes
23649else
23650  gl_cv_func_printf_directive_a=no
23651fi
23652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23653  conftest.$ac_objext conftest.beam conftest.$ac_ext
23654fi
23655
23656
23657fi
23658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
23659$as_echo "$gl_cv_func_printf_directive_a" >&6; }
23660
23661
23662
23663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
23664$as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
23665if ${gl_cv_func_printf_directive_f+:} false; then :
23666  $as_echo_n "(cached) " >&6
23667else
23668
23669      if test "$cross_compiling" = yes; then :
23670
23671         case "$host_os" in
23672                                 # Guess yes on glibc systems.
23673           *-gnu* | gnu*)        gl_cv_func_printf_directive_f="guessing yes";;
23674                                 # Guess yes on musl systems.
23675           *-musl*)              gl_cv_func_printf_directive_f="guessing yes";;
23676                                 # Guess yes on FreeBSD >= 6.
23677           freebsd[1-5].*)       gl_cv_func_printf_directive_f="guessing no";;
23678           freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
23679                                 # Guess yes on Mac OS X >= 10.3.
23680           darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
23681           darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
23682                                 # Guess yes on Solaris >= 2.10.
23683           solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
23684           solaris*)             gl_cv_func_printf_directive_f="guessing no";;
23685                                 # Guess no on Android.
23686           linux*-android*)      gl_cv_func_printf_directive_f="guessing no";;
23687                                 # Guess yes on MSVC, no on mingw.
23688           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689/* end confdefs.h.  */
23690
23691#ifdef _MSC_VER
23692 Known
23693#endif
23694
23695_ACEOF
23696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23697  $EGREP "Known" >/dev/null 2>&1; then :
23698  gl_cv_func_printf_directive_f="guessing yes"
23699else
23700  gl_cv_func_printf_directive_f="guessing no"
23701fi
23702rm -f conftest*
23703
23704                                 ;;
23705                                 # If we don't know, obey --enable-cross-guesses.
23706           *)                    gl_cv_func_printf_directive_f="$gl_cross_guess_normal";;
23707         esac
23708
23709else
23710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23711/* end confdefs.h.  */
23712
23713#include <stdio.h>
23714#include <string.h>
23715static char buf[100];
23716static double zero = 0.0;
23717int main ()
23718{
23719  int result = 0;
23720  if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
23721      || strcmp (buf, "1234567.000000 33") != 0)
23722    result |= 1;
23723  if (sprintf (buf, "%F", 1.0 / zero) < 0
23724      || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
23725    result |= 2;
23726  /* This catches a Cygwin 1.5.x bug.  */
23727  if (sprintf (buf, "%.F", 1234.0) < 0
23728      || strcmp (buf, "1234") != 0)
23729    result |= 4;
23730  return result;
23731}
23732_ACEOF
23733if ac_fn_c_try_run "$LINENO"; then :
23734  gl_cv_func_printf_directive_f=yes
23735else
23736  gl_cv_func_printf_directive_f=no
23737fi
23738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23739  conftest.$ac_objext conftest.beam conftest.$ac_ext
23740fi
23741
23742
23743fi
23744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
23745$as_echo "$gl_cv_func_printf_directive_f" >&6; }
23746
23747
23748
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
23750$as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
23751if ${gl_cv_func_printf_directive_ls+:} false; then :
23752  $as_echo_n "(cached) " >&6
23753else
23754
23755      if test "$cross_compiling" = yes; then :
23756
23757         case "$host_os" in
23758           openbsd*)        gl_cv_func_printf_directive_ls="guessing no";;
23759           irix*)           gl_cv_func_printf_directive_ls="guessing no";;
23760           solaris*)        gl_cv_func_printf_directive_ls="guessing no";;
23761           cygwin*)         gl_cv_func_printf_directive_ls="guessing no";;
23762           beos* | haiku*)  gl_cv_func_printf_directive_ls="guessing no";;
23763                            # Guess no on Android.
23764           linux*-android*) gl_cv_func_printf_directive_ls="guessing no";;
23765                            # Guess yes on native Windows.
23766           mingw*)          gl_cv_func_printf_directive_ls="guessing yes";;
23767           *)               gl_cv_func_printf_directive_ls="guessing yes";;
23768         esac
23769
23770else
23771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772/* end confdefs.h.  */
23773
23774/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23775   <wchar.h>.
23776   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23777   included before <wchar.h>.  */
23778#include <stddef.h>
23779#include <stdio.h>
23780#include <time.h>
23781#include <wchar.h>
23782#include <string.h>
23783int main ()
23784{
23785  int result = 0;
23786  char buf[100];
23787  /* Test whether %ls works at all.
23788     This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
23789     Cygwin 1.5.  */
23790  {
23791    static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
23792    buf[0] = '\0';
23793    if (sprintf (buf, "%ls", wstring) < 0
23794        || strcmp (buf, "abc") != 0)
23795      result |= 1;
23796  }
23797  /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
23798     assertion failure inside libc), but not on OpenBSD 4.0.  */
23799  {
23800    static const wchar_t wstring[] = { 'a', 0 };
23801    buf[0] = '\0';
23802    if (sprintf (buf, "%ls", wstring) < 0
23803        || strcmp (buf, "a") != 0)
23804      result |= 2;
23805  }
23806  /* Test whether precisions in %ls are supported as specified in ISO C 99
23807     section 7.19.6.1:
23808       "If a precision is specified, no more than that many bytes are written
23809        (including shift sequences, if any), and the array shall contain a
23810        null wide character if, to equal the multibyte character sequence
23811        length given by the precision, the function would need to access a
23812        wide character one past the end of the array."
23813     This test fails on Solaris 10.  */
23814  {
23815    static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
23816    buf[0] = '\0';
23817    if (sprintf (buf, "%.2ls", wstring) < 0
23818        || strcmp (buf, "ab") != 0)
23819      result |= 8;
23820  }
23821  return result;
23822}
23823_ACEOF
23824if ac_fn_c_try_run "$LINENO"; then :
23825  gl_cv_func_printf_directive_ls=yes
23826else
23827  gl_cv_func_printf_directive_ls=no
23828fi
23829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23830  conftest.$ac_objext conftest.beam conftest.$ac_ext
23831fi
23832
23833
23834fi
23835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
23836$as_echo "$gl_cv_func_printf_directive_ls" >&6; }
23837
23838
23839
23840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
23841$as_echo_n "checking whether printf supports the grouping flag... " >&6; }
23842if ${gl_cv_func_printf_flag_grouping+:} false; then :
23843  $as_echo_n "(cached) " >&6
23844else
23845
23846      if test "$cross_compiling" = yes; then :
23847
23848         case "$host_os" in
23849           cygwin*)         gl_cv_func_printf_flag_grouping="guessing no";;
23850           netbsd*)         gl_cv_func_printf_flag_grouping="guessing no";;
23851                            # Guess no on Android.
23852           linux*-android*) gl_cv_func_printf_flag_grouping="guessing no";;
23853                            # Guess no on native Windows.
23854           mingw* | pw*)    gl_cv_func_printf_flag_grouping="guessing no";;
23855           *)               gl_cv_func_printf_flag_grouping="guessing yes";;
23856         esac
23857
23858else
23859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23860/* end confdefs.h.  */
23861
23862#include <stdio.h>
23863#include <string.h>
23864static char buf[100];
23865int main ()
23866{
23867  if (sprintf (buf, "%'d %d", 1234567, 99) < 0
23868      || buf[strlen (buf) - 1] != '9')
23869    return 1;
23870  return 0;
23871}
23872_ACEOF
23873if ac_fn_c_try_run "$LINENO"; then :
23874  gl_cv_func_printf_flag_grouping=yes
23875else
23876  gl_cv_func_printf_flag_grouping=no
23877fi
23878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23879  conftest.$ac_objext conftest.beam conftest.$ac_ext
23880fi
23881
23882
23883fi
23884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
23885$as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
23886
23887
23888
23889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
23890$as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
23891if ${gl_cv_func_printf_flag_leftadjust+:} false; then :
23892  $as_echo_n "(cached) " >&6
23893else
23894
23895      if test "$cross_compiling" = yes; then :
23896
23897         case "$host_os" in
23898                            # Guess yes on HP-UX 11.
23899           hpux11*)         gl_cv_func_printf_flag_leftadjust="guessing yes";;
23900                            # Guess no on HP-UX 10 and older.
23901           hpux*)           gl_cv_func_printf_flag_leftadjust="guessing no";;
23902                            # Guess yes on Android.
23903           linux*-android*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
23904                            # Guess yes on native Windows.
23905           mingw*)          gl_cv_func_printf_flag_leftadjust="guessing yes";;
23906                            # Guess yes otherwise.
23907           *)               gl_cv_func_printf_flag_leftadjust="guessing yes";;
23908         esac
23909
23910else
23911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912/* end confdefs.h.  */
23913
23914#include <stdio.h>
23915#include <string.h>
23916static char buf[100];
23917int main ()
23918{
23919  /* Check that a '-' flag is not annihilated by a negative width.  */
23920  if (sprintf (buf, "a%-*sc", -3, "b") < 0
23921      || strcmp (buf, "ab  c") != 0)
23922    return 1;
23923  return 0;
23924}
23925_ACEOF
23926if ac_fn_c_try_run "$LINENO"; then :
23927  gl_cv_func_printf_flag_leftadjust=yes
23928else
23929  gl_cv_func_printf_flag_leftadjust=no
23930fi
23931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23932  conftest.$ac_objext conftest.beam conftest.$ac_ext
23933fi
23934
23935
23936fi
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
23938$as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
23939
23940
23941
23942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
23943$as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
23944if ${gl_cv_func_printf_flag_zero+:} false; then :
23945  $as_echo_n "(cached) " >&6
23946else
23947
23948      if test "$cross_compiling" = yes; then :
23949
23950         case "$host_os" in
23951                            # Guess yes on glibc systems.
23952           *-gnu* | gnu*)   gl_cv_func_printf_flag_zero="guessing yes";;
23953                            # Guess yes on musl systems.
23954           *-musl*)         gl_cv_func_printf_flag_zero="guessing yes";;
23955                            # Guess yes on BeOS.
23956           beos*)           gl_cv_func_printf_flag_zero="guessing yes";;
23957                            # Guess no on Android.
23958           linux*-android*) gl_cv_func_printf_flag_zero="guessing no";;
23959                            # Guess no on native Windows.
23960           mingw*)          gl_cv_func_printf_flag_zero="guessing no";;
23961                            # If we don't know, obey --enable-cross-guesses.
23962           *)               gl_cv_func_printf_flag_zero="$gl_cross_guess_normal";;
23963         esac
23964
23965else
23966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967/* end confdefs.h.  */
23968
23969#include <stdio.h>
23970#include <string.h>
23971static char buf[100];
23972static double zero = 0.0;
23973int main ()
23974{
23975  if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
23976      || (strcmp (buf, "       inf") != 0
23977          && strcmp (buf, "  infinity") != 0))
23978    return 1;
23979  return 0;
23980}
23981_ACEOF
23982if ac_fn_c_try_run "$LINENO"; then :
23983  gl_cv_func_printf_flag_zero=yes
23984else
23985  gl_cv_func_printf_flag_zero=no
23986fi
23987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23988  conftest.$ac_objext conftest.beam conftest.$ac_ext
23989fi
23990
23991
23992fi
23993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
23994$as_echo "$gl_cv_func_printf_flag_zero" >&6; }
23995
23996
23997
23998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
23999$as_echo_n "checking whether printf supports large precisions... " >&6; }
24000if ${gl_cv_func_printf_precision+:} false; then :
24001  $as_echo_n "(cached) " >&6
24002else
24003
24004      if test "$cross_compiling" = yes; then :
24005
24006         case "$host_os" in
24007           # Guess no only on Solaris, native Windows, and BeOS systems.
24008           solaris*)        gl_cv_func_printf_precision="guessing no" ;;
24009           mingw* | pw*)    gl_cv_func_printf_precision="guessing no" ;;
24010           beos*)           gl_cv_func_printf_precision="guessing no" ;;
24011                            # Guess yes on Android.
24012           linux*-android*) gl_cv_func_printf_precision="guessing yes" ;;
24013           *)               gl_cv_func_printf_precision="guessing yes" ;;
24014         esac
24015
24016else
24017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018/* end confdefs.h.  */
24019
24020#include <stdio.h>
24021#include <string.h>
24022static char buf[5000];
24023int main ()
24024{
24025  int result = 0;
24026#ifdef __BEOS__
24027  /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
24028  return 1;
24029#endif
24030  if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
24031    result |= 1;
24032  if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
24033    result |= 2;
24034  if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
24035      || buf[0] != '1')
24036    result |= 4;
24037  if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
24038      || buf[0] != '1')
24039    result |= 4;
24040  return result;
24041}
24042_ACEOF
24043if ac_fn_c_try_run "$LINENO"; then :
24044  gl_cv_func_printf_precision=yes
24045else
24046  gl_cv_func_printf_precision=no
24047fi
24048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24049  conftest.$ac_objext conftest.beam conftest.$ac_ext
24050fi
24051
24052
24053fi
24054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
24055$as_echo "$gl_cv_func_printf_precision" >&6; }
24056
24057
24058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
24059$as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
24060if ${gl_cv_c_multiarch+:} false; then :
24061  $as_echo_n "(cached) " >&6
24062else
24063  gl_cv_c_multiarch=no
24064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24065/* end confdefs.h.  */
24066#ifndef __APPLE_CC__
24067            not a universal capable compiler
24068           #endif
24069           typedef int dummy;
24070
24071_ACEOF
24072if ac_fn_c_try_compile "$LINENO"; then :
24073
24074                        arch=
24075        prev=
24076        for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
24077          if test -n "$prev"; then
24078            case $word in
24079              i?86 | x86_64 | ppc | ppc64 | arm | arm64)
24080                if test -z "$arch" || test "$arch" = "$word"; then
24081                  arch="$word"
24082                else
24083                  gl_cv_c_multiarch=yes
24084                fi
24085                ;;
24086            esac
24087            prev=
24088          else
24089            if test "x$word" = "x-arch"; then
24090              prev=arch
24091            fi
24092          fi
24093        done
24094
24095fi
24096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24097
24098fi
24099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
24100$as_echo "$gl_cv_c_multiarch" >&6; }
24101  if test $gl_cv_c_multiarch = yes; then
24102    APPLE_UNIVERSAL_BUILD=1
24103  else
24104    APPLE_UNIVERSAL_BUILD=0
24105  fi
24106
24107
24108
24109
24110
24111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
24112$as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
24113if ${gl_cv_func_printf_enomem+:} false; then :
24114  $as_echo_n "(cached) " >&6
24115else
24116
24117      gl_cv_func_printf_enomem="guessing no"
24118      if test "$cross_compiling" = no; then
24119        if test $APPLE_UNIVERSAL_BUILD = 0; then
24120          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24121/* end confdefs.h.  */
24122
24123
24124#include <stdlib.h>
24125#if defined __MACH__ && defined __APPLE__
24126/* Avoid a crash on Mac OS X.  */
24127#include <mach/mach.h>
24128#include <mach/mach_error.h>
24129#include <mach/thread_status.h>
24130#include <mach/exception.h>
24131#include <mach/task.h>
24132#include <pthread.h>
24133/* The exception port on which our thread listens.  */
24134static mach_port_t our_exception_port;
24135/* The main function of the thread listening for exceptions of type
24136   EXC_BAD_ACCESS.  */
24137static void *
24138mach_exception_thread (void *arg)
24139{
24140  /* Buffer for a message to be received.  */
24141  struct {
24142    mach_msg_header_t head;
24143    mach_msg_body_t msgh_body;
24144    char data1024;
24145  } msg;
24146  mach_msg_return_t retval;
24147  /* Wait for a message on the exception port.  */
24148  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
24149                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
24150  if (retval != MACH_MSG_SUCCESS)
24151    abort ();
24152  exit (1);
24153}
24154static void
24155nocrash_init (void)
24156{
24157  mach_port_t self = mach_task_self ();
24158  /* Allocate a port on which the thread shall listen for exceptions.  */
24159  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
24160      == KERN_SUCCESS) {
24161    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
24162    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
24163                                MACH_MSG_TYPE_MAKE_SEND)
24164        == KERN_SUCCESS) {
24165      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
24166         for us.  */
24167      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
24168      /* Create the thread listening on the exception port.  */
24169      pthread_attr_t attr;
24170      pthread_t thread;
24171      if (pthread_attr_init (&attr) == 0
24172          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
24173          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
24174        pthread_attr_destroy (&attr);
24175        /* Replace the exception port info for these exceptions with our own.
24176           Note that we replace the exception port for the entire task, not only
24177           for a particular thread.  This has the effect that when our exception
24178           port gets the message, the thread specific exception port has already
24179           been asked, and we don't need to bother about it.
24180           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
24181        task_set_exception_ports (self, mask, our_exception_port,
24182                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
24183      }
24184    }
24185  }
24186}
24187#elif defined _WIN32 && ! defined __CYGWIN__
24188/* Avoid a crash on native Windows.  */
24189#define WIN32_LEAN_AND_MEAN
24190#include <windows.h>
24191#include <winerror.h>
24192static LONG WINAPI
24193exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
24194{
24195  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
24196    {
24197    case EXCEPTION_ACCESS_VIOLATION:
24198    case EXCEPTION_IN_PAGE_ERROR:
24199    case EXCEPTION_STACK_OVERFLOW:
24200    case EXCEPTION_GUARD_PAGE:
24201    case EXCEPTION_PRIV_INSTRUCTION:
24202    case EXCEPTION_ILLEGAL_INSTRUCTION:
24203    case EXCEPTION_DATATYPE_MISALIGNMENT:
24204    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
24205    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
24206      exit (1);
24207    }
24208  return EXCEPTION_CONTINUE_SEARCH;
24209}
24210static void
24211nocrash_init (void)
24212{
24213  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
24214}
24215#else
24216/* Avoid a crash on POSIX systems.  */
24217#include <signal.h>
24218#include <unistd.h>
24219/* A POSIX signal handler.  */
24220static void
24221exception_handler (int sig)
24222{
24223  _exit (1);
24224}
24225static void
24226nocrash_init (void)
24227{
24228#ifdef SIGSEGV
24229  signal (SIGSEGV, exception_handler);
24230#endif
24231#ifdef SIGBUS
24232  signal (SIGBUS, exception_handler);
24233#endif
24234}
24235#endif
24236
24237#include <stdio.h>
24238#include <sys/types.h>
24239#include <sys/time.h>
24240#include <sys/resource.h>
24241#include <errno.h>
24242int main()
24243{
24244  struct rlimit limit;
24245  int ret;
24246  nocrash_init ();
24247  /* Some printf implementations allocate temporary space with malloc.  */
24248  /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
24249#ifdef RLIMIT_DATA
24250  if (getrlimit (RLIMIT_DATA, &limit) < 0)
24251    return 77;
24252  if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
24253    limit.rlim_max = 5000000;
24254  limit.rlim_cur = limit.rlim_max;
24255  if (setrlimit (RLIMIT_DATA, &limit) < 0)
24256    return 77;
24257#endif
24258  /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
24259#ifdef RLIMIT_AS
24260  if (getrlimit (RLIMIT_AS, &limit) < 0)
24261    return 77;
24262  if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
24263    limit.rlim_max = 5000000;
24264  limit.rlim_cur = limit.rlim_max;
24265  if (setrlimit (RLIMIT_AS, &limit) < 0)
24266    return 77;
24267#endif
24268  /* Some printf implementations allocate temporary space on the stack.  */
24269#ifdef RLIMIT_STACK
24270  if (getrlimit (RLIMIT_STACK, &limit) < 0)
24271    return 77;
24272  if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
24273    limit.rlim_max = 5000000;
24274  limit.rlim_cur = limit.rlim_max;
24275  if (setrlimit (RLIMIT_STACK, &limit) < 0)
24276    return 77;
24277#endif
24278  ret = printf ("%.5000000f", 1.0);
24279  return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
24280}
24281
24282_ACEOF
24283          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24284  (eval $ac_link) 2>&5
24285  ac_status=$?
24286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24287  test $ac_status = 0; } && test -s conftest$ac_exeext; then
24288            (./conftest 2>&5
24289             result=$?
24290             $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
24291             if test $result != 0 && test $result != 77; then result=1; fi
24292             exit $result
24293            ) >/dev/null 2>/dev/null
24294            case $? in
24295              0) gl_cv_func_printf_enomem="yes" ;;
24296              77) gl_cv_func_printf_enomem="guessing no" ;;
24297              *) gl_cv_func_printf_enomem="no" ;;
24298            esac
24299          else
24300            gl_cv_func_printf_enomem="guessing no"
24301          fi
24302          rm -fr conftest*
24303        else
24304                                        gl_cv_func_printf_enomem="guessing no"
24305        fi
24306      fi
24307      if test "$gl_cv_func_printf_enomem" = "guessing no"; then
24308        case "$host_os" in
24309                           # Guess yes on glibc systems.
24310          *-gnu* | gnu*)   gl_cv_func_printf_enomem="guessing yes";;
24311                           # Guess yes on Solaris.
24312          solaris*)        gl_cv_func_printf_enomem="guessing yes";;
24313                           # Guess yes on AIX.
24314          aix*)            gl_cv_func_printf_enomem="guessing yes";;
24315                           # Guess yes on HP-UX/hppa.
24316          hpux*)           case "$host_cpu" in
24317                             hppa*) gl_cv_func_printf_enomem="guessing yes";;
24318                             *)     gl_cv_func_printf_enomem="guessing no";;
24319                           esac
24320                           ;;
24321                           # Guess yes on IRIX.
24322          irix*)           gl_cv_func_printf_enomem="guessing yes";;
24323                           # Guess yes on OSF/1.
24324          osf*)            gl_cv_func_printf_enomem="guessing yes";;
24325                           # Guess yes on BeOS.
24326          beos*)           gl_cv_func_printf_enomem="guessing yes";;
24327                           # Guess yes on Haiku.
24328          haiku*)          gl_cv_func_printf_enomem="guessing yes";;
24329                           # Guess no on Android.
24330          linux*-android*) gl_cv_func_printf_enomem="guessing no";;
24331                           # If we don't know, obey --enable-cross-guesses.
24332          *)               gl_cv_func_printf_enomem="$gl_cross_guess_normal";;
24333        esac
24334      fi
24335
24336fi
24337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
24338$as_echo "$gl_cv_func_printf_enomem" >&6; }
24339
24340
24341  GNULIB__EXIT=0;
24342  GNULIB_ATOLL=0;
24343  GNULIB_CALLOC_POSIX=0;
24344  GNULIB_CANONICALIZE_FILE_NAME=0;
24345  GNULIB_GETLOADAVG=0;
24346  GNULIB_GETSUBOPT=0;
24347  GNULIB_GRANTPT=0;
24348  GNULIB_MALLOC_POSIX=0;
24349  GNULIB_MBTOWC=0;
24350  GNULIB_MKDTEMP=0;
24351  GNULIB_MKOSTEMP=0;
24352  GNULIB_MKOSTEMPS=0;
24353  GNULIB_MKSTEMP=0;
24354  GNULIB_MKSTEMPS=0;
24355  GNULIB_POSIX_OPENPT=0;
24356  GNULIB_PTSNAME=0;
24357  GNULIB_PTSNAME_R=0;
24358  GNULIB_PUTENV=0;
24359  GNULIB_QSORT_R=0;
24360  GNULIB_RANDOM=0;
24361  GNULIB_RANDOM_R=0;
24362  GNULIB_REALLOCARRAY=0;
24363  GNULIB_REALLOC_POSIX=0;
24364  GNULIB_REALPATH=0;
24365  GNULIB_RPMATCH=0;
24366  GNULIB_SECURE_GETENV=0;
24367  GNULIB_SETENV=0;
24368  GNULIB_STRTOD=0;
24369  GNULIB_STRTOLD=0;
24370  GNULIB_STRTOLL=0;
24371  GNULIB_STRTOULL=0;
24372  GNULIB_SYSTEM_POSIX=0;
24373  GNULIB_UNLOCKPT=0;
24374  GNULIB_UNSETENV=0;
24375  GNULIB_WCTOMB=0;
24376    HAVE__EXIT=1;
24377  HAVE_ATOLL=1;
24378  HAVE_CANONICALIZE_FILE_NAME=1;
24379  HAVE_DECL_GETLOADAVG=1;
24380  HAVE_GETSUBOPT=1;
24381  HAVE_GRANTPT=1;
24382  HAVE_INITSTATE=1;
24383  HAVE_DECL_INITSTATE=1;
24384  HAVE_MBTOWC=1;
24385  HAVE_MKDTEMP=1;
24386  HAVE_MKOSTEMP=1;
24387  HAVE_MKOSTEMPS=1;
24388  HAVE_MKSTEMP=1;
24389  HAVE_MKSTEMPS=1;
24390  HAVE_POSIX_OPENPT=1;
24391  HAVE_PTSNAME=1;
24392  HAVE_PTSNAME_R=1;
24393  HAVE_QSORT_R=1;
24394  HAVE_RANDOM=1;
24395  HAVE_RANDOM_H=1;
24396  HAVE_RANDOM_R=1;
24397  HAVE_REALLOCARRAY=1;
24398  HAVE_REALPATH=1;
24399  HAVE_RPMATCH=1;
24400  HAVE_SECURE_GETENV=1;
24401  HAVE_SETENV=1;
24402  HAVE_DECL_SETENV=1;
24403  HAVE_SETSTATE=1;
24404  HAVE_DECL_SETSTATE=1;
24405  HAVE_STRTOD=1;
24406  HAVE_STRTOLD=1;
24407  HAVE_STRTOLL=1;
24408  HAVE_STRTOULL=1;
24409  HAVE_STRUCT_RANDOM_DATA=1;
24410  HAVE_SYS_LOADAVG_H=0;
24411  HAVE_UNLOCKPT=1;
24412  HAVE_DECL_UNSETENV=1;
24413  REPLACE_CALLOC=0;
24414  REPLACE_CANONICALIZE_FILE_NAME=0;
24415  REPLACE_INITSTATE=0;
24416  REPLACE_MALLOC=0;
24417  REPLACE_MBTOWC=0;
24418  REPLACE_MKSTEMP=0;
24419  REPLACE_PTSNAME=0;
24420  REPLACE_PTSNAME_R=0;
24421  REPLACE_PUTENV=0;
24422  REPLACE_QSORT_R=0;
24423  REPLACE_RANDOM=0;
24424  REPLACE_RANDOM_R=0;
24425  REPLACE_REALLOC=0;
24426  REPLACE_REALPATH=0;
24427  REPLACE_SETENV=0;
24428  REPLACE_SETSTATE=0;
24429  REPLACE_STRTOD=0;
24430  REPLACE_STRTOLD=0;
24431  REPLACE_UNSETENV=0;
24432  REPLACE_WCTOMB=0;
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
24443$as_echo_n "checking whether // is distinct from /... " >&6; }
24444if ${gl_cv_double_slash_root+:} false; then :
24445  $as_echo_n "(cached) " >&6
24446else
24447   if test x"$cross_compiling" = xyes ; then
24448        # When cross-compiling, there is no way to tell whether // is special
24449        # short of a list of hosts.  However, the only known hosts to date
24450        # that have a distinct // are Apollo DomainOS (too old to port to),
24451        # Cygwin, and z/OS.  If anyone knows of another system for which // has
24452        # special semantics and is distinct from /, please report it to
24453        # <bug-gnulib@gnu.org>.
24454        case $host in
24455          *-cygwin | i370-ibm-openedition)
24456            gl_cv_double_slash_root=yes ;;
24457          *)
24458            # Be optimistic and assume that / and // are the same when we
24459            # don't know.
24460            gl_cv_double_slash_root='unknown, assuming no' ;;
24461        esac
24462      else
24463        set x `ls -di / // 2>/dev/null`
24464        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
24465          gl_cv_double_slash_root=no
24466        else
24467          gl_cv_double_slash_root=yes
24468        fi
24469      fi
24470fi
24471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
24472$as_echo "$gl_cv_double_slash_root" >&6; }
24473  if test "$gl_cv_double_slash_root" = yes; then
24474
24475$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
24476
24477  fi
24478
24479
24480
24481
24482
24483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
24484$as_echo_n "checking whether realpath works... " >&6; }
24485if ${gl_cv_func_realpath_works+:} false; then :
24486  $as_echo_n "(cached) " >&6
24487else
24488
24489    touch conftest.a
24490    mkdir conftest.d
24491    if test "$cross_compiling" = yes; then :
24492  case "$host_os" in
24493                       # Guess yes on glibc systems.
24494        *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
24495                       # Guess yes on musl systems.
24496        *-musl*)       gl_cv_func_realpath_works="guessing yes" ;;
24497                       # Guess no on native Windows.
24498        mingw*)        gl_cv_func_realpath_works="guessing no" ;;
24499                       # If we don't know, obey --enable-cross-guesses.
24500        *)             gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
24501      esac
24502
24503else
24504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505/* end confdefs.h.  */
24506
24507
24508
24509#include <stdlib.h>
24510#if defined __MACH__ && defined __APPLE__
24511/* Avoid a crash on Mac OS X.  */
24512#include <mach/mach.h>
24513#include <mach/mach_error.h>
24514#include <mach/thread_status.h>
24515#include <mach/exception.h>
24516#include <mach/task.h>
24517#include <pthread.h>
24518/* The exception port on which our thread listens.  */
24519static mach_port_t our_exception_port;
24520/* The main function of the thread listening for exceptions of type
24521   EXC_BAD_ACCESS.  */
24522static void *
24523mach_exception_thread (void *arg)
24524{
24525  /* Buffer for a message to be received.  */
24526  struct {
24527    mach_msg_header_t head;
24528    mach_msg_body_t msgh_body;
24529    char data[1024];
24530  } msg;
24531  mach_msg_return_t retval;
24532  /* Wait for a message on the exception port.  */
24533  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
24534                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
24535  if (retval != MACH_MSG_SUCCESS)
24536    abort ();
24537  exit (1);
24538}
24539static void
24540nocrash_init (void)
24541{
24542  mach_port_t self = mach_task_self ();
24543  /* Allocate a port on which the thread shall listen for exceptions.  */
24544  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
24545      == KERN_SUCCESS) {
24546    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
24547    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
24548                                MACH_MSG_TYPE_MAKE_SEND)
24549        == KERN_SUCCESS) {
24550      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
24551         for us.  */
24552      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
24553      /* Create the thread listening on the exception port.  */
24554      pthread_attr_t attr;
24555      pthread_t thread;
24556      if (pthread_attr_init (&attr) == 0
24557          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
24558          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
24559        pthread_attr_destroy (&attr);
24560        /* Replace the exception port info for these exceptions with our own.
24561           Note that we replace the exception port for the entire task, not only
24562           for a particular thread.  This has the effect that when our exception
24563           port gets the message, the thread specific exception port has already
24564           been asked, and we don't need to bother about it.
24565           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
24566        task_set_exception_ports (self, mask, our_exception_port,
24567                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
24568      }
24569    }
24570  }
24571}
24572#elif defined _WIN32 && ! defined __CYGWIN__
24573/* Avoid a crash on native Windows.  */
24574#define WIN32_LEAN_AND_MEAN
24575#include <windows.h>
24576#include <winerror.h>
24577static LONG WINAPI
24578exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
24579{
24580  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
24581    {
24582    case EXCEPTION_ACCESS_VIOLATION:
24583    case EXCEPTION_IN_PAGE_ERROR:
24584    case EXCEPTION_STACK_OVERFLOW:
24585    case EXCEPTION_GUARD_PAGE:
24586    case EXCEPTION_PRIV_INSTRUCTION:
24587    case EXCEPTION_ILLEGAL_INSTRUCTION:
24588    case EXCEPTION_DATATYPE_MISALIGNMENT:
24589    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
24590    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
24591      exit (1);
24592    }
24593  return EXCEPTION_CONTINUE_SEARCH;
24594}
24595static void
24596nocrash_init (void)
24597{
24598  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
24599}
24600#else
24601/* Avoid a crash on POSIX systems.  */
24602#include <signal.h>
24603#include <unistd.h>
24604/* A POSIX signal handler.  */
24605static void
24606exception_handler (int sig)
24607{
24608  _exit (1);
24609}
24610static void
24611nocrash_init (void)
24612{
24613#ifdef SIGSEGV
24614  signal (SIGSEGV, exception_handler);
24615#endif
24616#ifdef SIGBUS
24617  signal (SIGBUS, exception_handler);
24618#endif
24619}
24620#endif
24621
24622        #include <stdlib.h>
24623        #include <string.h>
24624
24625int
24626main ()
24627{
24628
24629        int result = 0;
24630        {
24631          char *name = realpath ("conftest.a", NULL);
24632          if (!(name && *name == '/'))
24633            result |= 1;
24634          free (name);
24635        }
24636        {
24637          char *name = realpath ("conftest.b/../conftest.a", NULL);
24638          if (name != NULL)
24639            result |= 2;
24640          free (name);
24641        }
24642        {
24643          char *name = realpath ("conftest.a/", NULL);
24644          if (name != NULL)
24645            result |= 4;
24646          free (name);
24647        }
24648        {
24649          char *name1 = realpath (".", NULL);
24650          char *name2 = realpath ("conftest.d//./..", NULL);
24651          if (! name1 || ! name2 || strcmp (name1, name2))
24652            result |= 8;
24653          free (name1);
24654          free (name2);
24655        }
24656        return result;
24657
24658  ;
24659  return 0;
24660}
24661
24662_ACEOF
24663if ac_fn_c_try_run "$LINENO"; then :
24664  gl_cv_func_realpath_works=yes
24665else
24666  gl_cv_func_realpath_works=no
24667fi
24668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24669  conftest.$ac_objext conftest.beam conftest.$ac_ext
24670fi
24671
24672    rm -rf conftest.a conftest.d
24673
24674fi
24675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
24676$as_echo "$gl_cv_func_realpath_works" >&6; }
24677  case "$gl_cv_func_realpath_works" in
24678    *yes)
24679
24680$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
24681
24682      ;;
24683  esac
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697  GNULIB_ACCESS=0;
24698  GNULIB_CHDIR=0;
24699  GNULIB_CHOWN=0;
24700  GNULIB_CLOSE=0;
24701  GNULIB_COPY_FILE_RANGE=0;
24702  GNULIB_DUP=0;
24703  GNULIB_DUP2=0;
24704  GNULIB_DUP3=0;
24705  GNULIB_ENVIRON=0;
24706  GNULIB_EUIDACCESS=0;
24707  GNULIB_FACCESSAT=0;
24708  GNULIB_FCHDIR=0;
24709  GNULIB_FCHOWNAT=0;
24710  GNULIB_FDATASYNC=0;
24711  GNULIB_FSYNC=0;
24712  GNULIB_FTRUNCATE=0;
24713  GNULIB_GETCWD=0;
24714  GNULIB_GETDOMAINNAME=0;
24715  GNULIB_GETDTABLESIZE=0;
24716  GNULIB_GETENTROPY=0;
24717  GNULIB_GETGROUPS=0;
24718  GNULIB_GETHOSTNAME=0;
24719  GNULIB_GETLOGIN=0;
24720  GNULIB_GETLOGIN_R=0;
24721  GNULIB_GETOPT_POSIX=0;
24722  GNULIB_GETPAGESIZE=0;
24723  GNULIB_GETPASS=0;
24724  GNULIB_GETUSERSHELL=0;
24725  GNULIB_GROUP_MEMBER=0;
24726  GNULIB_ISATTY=0;
24727  GNULIB_LCHOWN=0;
24728  GNULIB_LINK=0;
24729  GNULIB_LINKAT=0;
24730  GNULIB_LSEEK=0;
24731  GNULIB_PIPE=0;
24732  GNULIB_PIPE2=0;
24733  GNULIB_PREAD=0;
24734  GNULIB_PWRITE=0;
24735  GNULIB_READ=0;
24736  GNULIB_READLINK=0;
24737  GNULIB_READLINKAT=0;
24738  GNULIB_RMDIR=0;
24739  GNULIB_SETHOSTNAME=0;
24740  GNULIB_SLEEP=0;
24741  GNULIB_SYMLINK=0;
24742  GNULIB_SYMLINKAT=0;
24743  GNULIB_TRUNCATE=0;
24744  GNULIB_TTYNAME_R=0;
24745  GNULIB_UNISTD_H_NONBLOCKING=0;
24746  GNULIB_UNISTD_H_SIGPIPE=0;
24747  GNULIB_UNLINK=0;
24748  GNULIB_UNLINKAT=0;
24749  GNULIB_USLEEP=0;
24750  GNULIB_WRITE=0;
24751    HAVE_CHOWN=1;
24752  HAVE_COPY_FILE_RANGE=1;
24753  HAVE_DUP3=1;
24754  HAVE_EUIDACCESS=1;
24755  HAVE_FACCESSAT=1;
24756  HAVE_FCHDIR=1;
24757  HAVE_FCHOWNAT=1;
24758  HAVE_FDATASYNC=1;
24759  HAVE_FSYNC=1;
24760  HAVE_FTRUNCATE=1;
24761  HAVE_GETDTABLESIZE=1;
24762  HAVE_GETENTROPY=1;
24763  HAVE_GETGROUPS=1;
24764  HAVE_GETHOSTNAME=1;
24765  HAVE_GETLOGIN=1;
24766  HAVE_GETPAGESIZE=1;
24767  HAVE_GETPASS=1;
24768  HAVE_GROUP_MEMBER=1;
24769  HAVE_LCHOWN=1;
24770  HAVE_LINK=1;
24771  HAVE_LINKAT=1;
24772  HAVE_PIPE=1;
24773  HAVE_PIPE2=1;
24774  HAVE_PREAD=1;
24775  HAVE_PWRITE=1;
24776  HAVE_READLINK=1;
24777  HAVE_READLINKAT=1;
24778  HAVE_SETHOSTNAME=1;
24779  HAVE_SLEEP=1;
24780  HAVE_SYMLINK=1;
24781  HAVE_SYMLINKAT=1;
24782  HAVE_UNLINKAT=1;
24783  HAVE_USLEEP=1;
24784  HAVE_DECL_ENVIRON=1;
24785  HAVE_DECL_FCHDIR=1;
24786  HAVE_DECL_FDATASYNC=1;
24787  HAVE_DECL_GETDOMAINNAME=1;
24788  HAVE_DECL_GETLOGIN=1;
24789  HAVE_DECL_GETLOGIN_R=1;
24790  HAVE_DECL_GETPAGESIZE=1;
24791  HAVE_DECL_GETUSERSHELL=1;
24792  HAVE_DECL_SETHOSTNAME=1;
24793  HAVE_DECL_TRUNCATE=1;
24794  HAVE_DECL_TTYNAME_R=1;
24795  HAVE_OS_H=0;
24796  HAVE_SYS_PARAM_H=0;
24797  REPLACE_ACCESS=0;
24798  REPLACE_CHOWN=0;
24799  REPLACE_CLOSE=0;
24800  REPLACE_DUP=0;
24801  REPLACE_DUP2=0;
24802  REPLACE_FACCESSAT=0;
24803  REPLACE_FCHOWNAT=0;
24804  REPLACE_FTRUNCATE=0;
24805  REPLACE_GETCWD=0;
24806  REPLACE_GETDOMAINNAME=0;
24807  REPLACE_GETDTABLESIZE=0;
24808  REPLACE_GETLOGIN_R=0;
24809  REPLACE_GETGROUPS=0;
24810  REPLACE_GETPAGESIZE=0;
24811  REPLACE_GETPASS=0;
24812  REPLACE_ISATTY=0;
24813  REPLACE_LCHOWN=0;
24814  REPLACE_LINK=0;
24815  REPLACE_LINKAT=0;
24816  REPLACE_LSEEK=0;
24817  REPLACE_PREAD=0;
24818  REPLACE_PWRITE=0;
24819  REPLACE_READ=0;
24820  REPLACE_READLINK=0;
24821  REPLACE_READLINKAT=0;
24822  REPLACE_RMDIR=0;
24823  REPLACE_SLEEP=0;
24824  REPLACE_SYMLINK=0;
24825  REPLACE_SYMLINKAT=0;
24826  REPLACE_TRUNCATE=0;
24827  REPLACE_TTYNAME_R=0;
24828  REPLACE_UNLINK=0;
24829  REPLACE_UNLINKAT=0;
24830  REPLACE_USLEEP=0;
24831  REPLACE_WRITE=0;
24832  UNISTD_H_HAVE_SYS_RANDOM_H=0;
24833  UNISTD_H_HAVE_WINSOCK2_H=0;
24834  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
24835
24836
24837
24838
24839
24840
24841  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
24842    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
24843
24844$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
24845
24846  else
24847    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
24848  fi
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
24863$as_echo_n "checking if environ is properly declared... " >&6; }
24864if ${gt_cv_var_environ_declaration+:} false; then :
24865  $as_echo_n "(cached) " >&6
24866else
24867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24868/* end confdefs.h.  */
24869#if HAVE_UNISTD_H
24870     #include <unistd.h>
24871     #endif
24872     /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
24873     #include <stdlib.h>
24874
24875            extern struct { int foo; } environ;
24876int
24877main ()
24878{
24879environ.foo = 1;
24880  ;
24881  return 0;
24882}
24883_ACEOF
24884if ac_fn_c_try_compile "$LINENO"; then :
24885  gt_cv_var_environ_declaration=no
24886else
24887  gt_cv_var_environ_declaration=yes
24888fi
24889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24890fi
24891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
24892$as_echo "$gt_cv_var_environ_declaration" >&6; }
24893  if test $gt_cv_var_environ_declaration = yes; then
24894
24895$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
24896
24897  fi
24898
24899
24900  if test $gt_cv_var_environ_declaration != yes; then
24901    HAVE_DECL_ENVIRON=0
24902  fi
24903
24904
24905
24906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
24907$as_echo_n "checking for complete errno.h... " >&6; }
24908if ${gl_cv_header_errno_h_complete+:} false; then :
24909  $as_echo_n "(cached) " >&6
24910else
24911
24912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24913/* end confdefs.h.  */
24914
24915#include <errno.h>
24916#if !defined ETXTBSY
24917booboo
24918#endif
24919#if !defined ENOMSG
24920booboo
24921#endif
24922#if !defined EIDRM
24923booboo
24924#endif
24925#if !defined ENOLINK
24926booboo
24927#endif
24928#if !defined EPROTO
24929booboo
24930#endif
24931#if !defined EMULTIHOP
24932booboo
24933#endif
24934#if !defined EBADMSG
24935booboo
24936#endif
24937#if !defined EOVERFLOW
24938booboo
24939#endif
24940#if !defined ENOTSUP
24941booboo
24942#endif
24943#if !defined ENETRESET
24944booboo
24945#endif
24946#if !defined ECONNABORTED
24947booboo
24948#endif
24949#if !defined ESTALE
24950booboo
24951#endif
24952#if !defined EDQUOT
24953booboo
24954#endif
24955#if !defined ECANCELED
24956booboo
24957#endif
24958#if !defined EOWNERDEAD
24959booboo
24960#endif
24961#if !defined ENOTRECOVERABLE
24962booboo
24963#endif
24964#if !defined EILSEQ
24965booboo
24966#endif
24967
24968_ACEOF
24969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24970  $EGREP "booboo" >/dev/null 2>&1; then :
24971  gl_cv_header_errno_h_complete=no
24972else
24973  gl_cv_header_errno_h_complete=yes
24974fi
24975rm -f conftest*
24976
24977
24978fi
24979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
24980$as_echo "$gl_cv_header_errno_h_complete" >&6; }
24981  if test $gl_cv_header_errno_h_complete = yes; then
24982    ERRNO_H=''
24983  else
24984
24985
24986
24987
24988
24989
24990
24991
24992     if test $gl_cv_have_include_next = yes; then
24993       gl_cv_next_errno_h='<'errno.h'>'
24994     else
24995       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
24996$as_echo_n "checking absolute name of <errno.h>... " >&6; }
24997if ${gl_cv_next_errno_h+:} false; then :
24998  $as_echo_n "(cached) " >&6
24999else
25000
25001
25002
25003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25004/* end confdefs.h.  */
25005#include <errno.h>
25006_ACEOF
25007                case "$host_os" in
25008    aix*) gl_absname_cpp="$ac_cpp -C" ;;
25009    *)    gl_absname_cpp="$ac_cpp" ;;
25010  esac
25011
25012  case "$host_os" in
25013    mingw*)
25014                                          gl_dirsep_regex='[/\\]'
25015      ;;
25016    *)
25017      gl_dirsep_regex='\/'
25018      ;;
25019  esac
25020      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25021  gl_header_literal_regex=`echo 'errno.h' \
25022                           | sed -e "$gl_make_literal_regex_sed"`
25023  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25024      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25025      s|^/[^/]|//&|
25026      p
25027      q
25028    }'
25029
25030        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25031  sed -n "$gl_absolute_header_sed"`
25032
25033           gl_header=$gl_cv_absolute_errno_h
25034           gl_cv_next_errno_h='"'$gl_header'"'
25035
25036
25037fi
25038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
25039$as_echo "$gl_cv_next_errno_h" >&6; }
25040     fi
25041     NEXT_ERRNO_H=$gl_cv_next_errno_h
25042
25043     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25044       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25045       gl_next_as_first_directive='<'errno.h'>'
25046     else
25047       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25048       gl_next_as_first_directive=$gl_cv_next_errno_h
25049     fi
25050     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
25051
25052
25053
25054
25055    ERRNO_H='errno.h'
25056  fi
25057
25058   if test -n "$ERRNO_H"; then
25059  GL_GENERATE_ERRNO_H_TRUE=
25060  GL_GENERATE_ERRNO_H_FALSE='#'
25061else
25062  GL_GENERATE_ERRNO_H_TRUE='#'
25063  GL_GENERATE_ERRNO_H_FALSE=
25064fi
25065
25066
25067  if test -n "$ERRNO_H"; then
25068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
25069$as_echo_n "checking for EMULTIHOP value... " >&6; }
25070if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
25071  $as_echo_n "(cached) " >&6
25072else
25073
25074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075/* end confdefs.h.  */
25076
25077#include <errno.h>
25078#ifdef EMULTIHOP
25079yes
25080#endif
25081
25082_ACEOF
25083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25084  $EGREP "yes" >/dev/null 2>&1; then :
25085  gl_cv_header_errno_h_EMULTIHOP=yes
25086else
25087  gl_cv_header_errno_h_EMULTIHOP=no
25088fi
25089rm -f conftest*
25090
25091      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
25092        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25093/* end confdefs.h.  */
25094
25095#define _XOPEN_SOURCE_EXTENDED 1
25096#include <errno.h>
25097#ifdef EMULTIHOP
25098yes
25099#endif
25100
25101_ACEOF
25102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25103  $EGREP "yes" >/dev/null 2>&1; then :
25104  gl_cv_header_errno_h_EMULTIHOP=hidden
25105fi
25106rm -f conftest*
25107
25108        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
25109                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
25110#define _XOPEN_SOURCE_EXTENDED 1
25111#include <errno.h>
25112/* The following two lines are a workaround against an autoconf-2.52 bug.  */
25113#include <stdio.h>
25114#include <stdlib.h>
25115"; then :
25116
25117fi
25118
25119        fi
25120      fi
25121
25122fi
25123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
25124$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
25125    case $gl_cv_header_errno_h_EMULTIHOP in
25126      yes | no)
25127        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
25128        ;;
25129      *)
25130        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
25131        ;;
25132    esac
25133
25134
25135  fi
25136
25137
25138  if test -n "$ERRNO_H"; then
25139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
25140$as_echo_n "checking for ENOLINK value... " >&6; }
25141if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
25142  $as_echo_n "(cached) " >&6
25143else
25144
25145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146/* end confdefs.h.  */
25147
25148#include <errno.h>
25149#ifdef ENOLINK
25150yes
25151#endif
25152
25153_ACEOF
25154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25155  $EGREP "yes" >/dev/null 2>&1; then :
25156  gl_cv_header_errno_h_ENOLINK=yes
25157else
25158  gl_cv_header_errno_h_ENOLINK=no
25159fi
25160rm -f conftest*
25161
25162      if test $gl_cv_header_errno_h_ENOLINK = no; then
25163        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164/* end confdefs.h.  */
25165
25166#define _XOPEN_SOURCE_EXTENDED 1
25167#include <errno.h>
25168#ifdef ENOLINK
25169yes
25170#endif
25171
25172_ACEOF
25173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25174  $EGREP "yes" >/dev/null 2>&1; then :
25175  gl_cv_header_errno_h_ENOLINK=hidden
25176fi
25177rm -f conftest*
25178
25179        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
25180                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
25181#define _XOPEN_SOURCE_EXTENDED 1
25182#include <errno.h>
25183/* The following two lines are a workaround against an autoconf-2.52 bug.  */
25184#include <stdio.h>
25185#include <stdlib.h>
25186"; then :
25187
25188fi
25189
25190        fi
25191      fi
25192
25193fi
25194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
25195$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
25196    case $gl_cv_header_errno_h_ENOLINK in
25197      yes | no)
25198        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
25199        ;;
25200      *)
25201        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
25202        ;;
25203    esac
25204
25205
25206  fi
25207
25208
25209  if test -n "$ERRNO_H"; then
25210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
25211$as_echo_n "checking for EOVERFLOW value... " >&6; }
25212if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
25213  $as_echo_n "(cached) " >&6
25214else
25215
25216      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25217/* end confdefs.h.  */
25218
25219#include <errno.h>
25220#ifdef EOVERFLOW
25221yes
25222#endif
25223
25224_ACEOF
25225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25226  $EGREP "yes" >/dev/null 2>&1; then :
25227  gl_cv_header_errno_h_EOVERFLOW=yes
25228else
25229  gl_cv_header_errno_h_EOVERFLOW=no
25230fi
25231rm -f conftest*
25232
25233      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
25234        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25235/* end confdefs.h.  */
25236
25237#define _XOPEN_SOURCE_EXTENDED 1
25238#include <errno.h>
25239#ifdef EOVERFLOW
25240yes
25241#endif
25242
25243_ACEOF
25244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25245  $EGREP "yes" >/dev/null 2>&1; then :
25246  gl_cv_header_errno_h_EOVERFLOW=hidden
25247fi
25248rm -f conftest*
25249
25250        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
25251                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
25252#define _XOPEN_SOURCE_EXTENDED 1
25253#include <errno.h>
25254/* The following two lines are a workaround against an autoconf-2.52 bug.  */
25255#include <stdio.h>
25256#include <stdlib.h>
25257"; then :
25258
25259fi
25260
25261        fi
25262      fi
25263
25264fi
25265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
25266$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
25267    case $gl_cv_header_errno_h_EOVERFLOW in
25268      yes | no)
25269        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
25270        ;;
25271      *)
25272        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
25273        ;;
25274    esac
25275
25276
25277  fi
25278
25279
25280ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25281if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25282  ac_have_decl=1
25283else
25284  ac_have_decl=0
25285fi
25286
25287cat >>confdefs.h <<_ACEOF
25288#define HAVE_DECL_STRERROR_R $ac_have_decl
25289_ACEOF
25290
25291for ac_func in strerror_r
25292do :
25293  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25294if test "x$ac_cv_func_strerror_r" = xyes; then :
25295  cat >>confdefs.h <<_ACEOF
25296#define HAVE_STRERROR_R 1
25297_ACEOF
25298
25299fi
25300done
25301
25302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25303$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25304if ${ac_cv_func_strerror_r_char_p+:} false; then :
25305  $as_echo_n "(cached) " >&6
25306else
25307
25308    ac_cv_func_strerror_r_char_p=no
25309    if test $ac_cv_have_decl_strerror_r = yes; then
25310      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25311/* end confdefs.h.  */
25312$ac_includes_default
25313int
25314main ()
25315{
25316
25317	  char buf[100];
25318	  char x = *strerror_r (0, buf, sizeof buf);
25319	  char *p = strerror_r (0, buf, sizeof buf);
25320	  return !p || x;
25321
25322  ;
25323  return 0;
25324}
25325_ACEOF
25326if ac_fn_c_try_compile "$LINENO"; then :
25327  ac_cv_func_strerror_r_char_p=yes
25328fi
25329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25330    else
25331      # strerror_r is not declared.  Choose between
25332      # systems that have relatively inaccessible declarations for the
25333      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25334      # former has a strerror_r that returns char*, while the latter
25335      # has a strerror_r that returns `int'.
25336      # This test should segfault on the DEC system.
25337      if test "$cross_compiling" = yes; then :
25338  :
25339else
25340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25341/* end confdefs.h.  */
25342$ac_includes_default
25343	extern char *strerror_r ();
25344int
25345main ()
25346{
25347char buf[100];
25348	  char x = *strerror_r (0, buf, sizeof buf);
25349	  return ! isalpha (x);
25350  ;
25351  return 0;
25352}
25353_ACEOF
25354if ac_fn_c_try_run "$LINENO"; then :
25355  ac_cv_func_strerror_r_char_p=yes
25356fi
25357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25358  conftest.$ac_objext conftest.beam conftest.$ac_ext
25359fi
25360
25361    fi
25362
25363fi
25364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25365$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25366if test $ac_cv_func_strerror_r_char_p = yes; then
25367
25368$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25369
25370fi
25371
25372
25373  XGETTEXT_EXTRA_OPTIONS=
25374
25375
25376  GNULIB_EXPLICIT_BZERO=0;
25377  GNULIB_FFSL=0;
25378  GNULIB_FFSLL=0;
25379  GNULIB_MEMCHR=0;
25380  GNULIB_MEMMEM=0;
25381  GNULIB_MEMPCPY=0;
25382  GNULIB_MEMRCHR=0;
25383  GNULIB_RAWMEMCHR=0;
25384  GNULIB_STPCPY=0;
25385  GNULIB_STPNCPY=0;
25386  GNULIB_STRCHRNUL=0;
25387  GNULIB_STRDUP=0;
25388  GNULIB_STRNCAT=0;
25389  GNULIB_STRNDUP=0;
25390  GNULIB_STRNLEN=0;
25391  GNULIB_STRPBRK=0;
25392  GNULIB_STRSEP=0;
25393  GNULIB_STRSTR=0;
25394  GNULIB_STRCASESTR=0;
25395  GNULIB_STRTOK_R=0;
25396  GNULIB_MBSLEN=0;
25397  GNULIB_MBSNLEN=0;
25398  GNULIB_MBSCHR=0;
25399  GNULIB_MBSRCHR=0;
25400  GNULIB_MBSSTR=0;
25401  GNULIB_MBSCASECMP=0;
25402  GNULIB_MBSNCASECMP=0;
25403  GNULIB_MBSPCASECMP=0;
25404  GNULIB_MBSCASESTR=0;
25405  GNULIB_MBSCSPN=0;
25406  GNULIB_MBSPBRK=0;
25407  GNULIB_MBSSPN=0;
25408  GNULIB_MBSSEP=0;
25409  GNULIB_MBSTOK_R=0;
25410  GNULIB_STRERROR=0;
25411  GNULIB_STRERROR_R=0;
25412  GNULIB_STRSIGNAL=0;
25413  GNULIB_STRVERSCMP=0;
25414  HAVE_MBSLEN=0;
25415    HAVE_EXPLICIT_BZERO=1;
25416  HAVE_FFSL=1;
25417  HAVE_FFSLL=1;
25418  HAVE_DECL_MEMMEM=1;
25419  HAVE_MEMPCPY=1;
25420  HAVE_DECL_MEMRCHR=1;
25421  HAVE_RAWMEMCHR=1;
25422  HAVE_STPCPY=1;
25423  HAVE_STPNCPY=1;
25424  HAVE_STRCHRNUL=1;
25425  HAVE_DECL_STRDUP=1;
25426  HAVE_DECL_STRNDUP=1;
25427  HAVE_DECL_STRNLEN=1;
25428  HAVE_STRPBRK=1;
25429  HAVE_STRSEP=1;
25430  HAVE_STRCASESTR=1;
25431  HAVE_DECL_STRTOK_R=1;
25432  HAVE_DECL_STRERROR_R=1;
25433  HAVE_DECL_STRSIGNAL=1;
25434  HAVE_STRVERSCMP=1;
25435  REPLACE_MEMCHR=0;
25436  REPLACE_MEMMEM=0;
25437  REPLACE_STPNCPY=0;
25438  REPLACE_STRCHRNUL=0;
25439  REPLACE_STRDUP=0;
25440  REPLACE_STRNCAT=0;
25441  REPLACE_STRNDUP=0;
25442  REPLACE_STRNLEN=0;
25443  REPLACE_STRSTR=0;
25444  REPLACE_STRCASESTR=0;
25445  REPLACE_STRTOK_R=0;
25446  REPLACE_STRERROR=0;
25447  REPLACE_STRERROR_R=0;
25448  REPLACE_STRSIGNAL=0;
25449  UNDEFINE_STRTOK_R=0;
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459  ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
25460"
25461if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
25462
25463cat >>confdefs.h <<_ACEOF
25464#define HAVE_SIG_ATOMIC_T 1
25465_ACEOF
25466
25467
25468else
25469
25470$as_echo "#define sig_atomic_t int" >>confdefs.h
25471
25472fi
25473
25474
25475
25476  GNULIB_CREAT=0;
25477  GNULIB_FCNTL=0;
25478  GNULIB_NONBLOCKING=0;
25479  GNULIB_OPEN=0;
25480  GNULIB_OPENAT=0;
25481    HAVE_FCNTL=1;
25482  HAVE_OPENAT=1;
25483  REPLACE_CREAT=0;
25484  REPLACE_FCNTL=0;
25485  REPLACE_OPEN=0;
25486  REPLACE_OPENAT=0;
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
25498$as_echo_n "checking for working fcntl.h... " >&6; }
25499if ${gl_cv_header_working_fcntl_h+:} false; then :
25500  $as_echo_n "(cached) " >&6
25501else
25502  if test "$cross_compiling" = yes; then :
25503  case "$host_os" in
25504                  # Guess 'no' on native Windows.
25505          mingw*) gl_cv_header_working_fcntl_h='no' ;;
25506          *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
25507        esac
25508
25509else
25510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511/* end confdefs.h.  */
25512#include <sys/types.h>
25513           #include <sys/stat.h>
25514           #if HAVE_UNISTD_H
25515           # include <unistd.h>
25516           #else /* on Windows with MSVC */
25517           # include <io.h>
25518           # include <stdlib.h>
25519           # defined sleep(n) _sleep ((n) * 1000)
25520           #endif
25521           #include <fcntl.h>
25522           #ifndef O_NOATIME
25523            #define O_NOATIME 0
25524           #endif
25525           #ifndef O_NOFOLLOW
25526            #define O_NOFOLLOW 0
25527           #endif
25528           static int const constants[] =
25529            {
25530              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
25531              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
25532            };
25533
25534int
25535main ()
25536{
25537
25538            int result = !constants;
25539            #if HAVE_SYMLINK
25540            {
25541              static char const sym[] = "conftest.sym";
25542              if (symlink ("/dev/null", sym) != 0)
25543                result |= 2;
25544              else
25545                {
25546                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
25547                  if (fd >= 0)
25548                    {
25549                      close (fd);
25550                      result |= 4;
25551                    }
25552                }
25553              if (unlink (sym) != 0 || symlink (".", sym) != 0)
25554                result |= 2;
25555              else
25556                {
25557                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
25558                  if (fd >= 0)
25559                    {
25560                      close (fd);
25561                      result |= 4;
25562                    }
25563                }
25564              unlink (sym);
25565            }
25566            #endif
25567            {
25568              static char const file[] = "confdefs.h";
25569              int fd = open (file, O_RDONLY | O_NOATIME);
25570              if (fd < 0)
25571                result |= 8;
25572              else
25573                {
25574                  struct stat st0;
25575                  if (fstat (fd, &st0) != 0)
25576                    result |= 16;
25577                  else
25578                    {
25579                      char c;
25580                      sleep (1);
25581                      if (read (fd, &c, 1) != 1)
25582                        result |= 24;
25583                      else
25584                        {
25585                          if (close (fd) != 0)
25586                            result |= 32;
25587                          else
25588                            {
25589                              struct stat st1;
25590                              if (stat (file, &st1) != 0)
25591                                result |= 40;
25592                              else
25593                                if (st0.st_atime != st1.st_atime)
25594                                  result |= 64;
25595                            }
25596                        }
25597                    }
25598                }
25599            }
25600            return result;
25601  ;
25602  return 0;
25603}
25604_ACEOF
25605if ac_fn_c_try_run "$LINENO"; then :
25606  gl_cv_header_working_fcntl_h=yes
25607else
25608  case $? in #(
25609        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
25610        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
25611        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
25612         *) gl_cv_header_working_fcntl_h='no';;
25613        esac
25614fi
25615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25616  conftest.$ac_objext conftest.beam conftest.$ac_ext
25617fi
25618
25619
25620fi
25621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
25622$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
25623
25624  case $gl_cv_header_working_fcntl_h in #(
25625  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
25626  *) ac_val=1;;
25627  esac
25628
25629cat >>confdefs.h <<_ACEOF
25630#define HAVE_WORKING_O_NOATIME $ac_val
25631_ACEOF
25632
25633
25634  case $gl_cv_header_working_fcntl_h in #(
25635  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
25636  *) ac_val=1;;
25637  esac
25638
25639cat >>confdefs.h <<_ACEOF
25640#define HAVE_WORKING_O_NOFOLLOW $ac_val
25641_ACEOF
25642
25643
25644ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25645if test "x$ac_cv_type_pid_t" = xyes; then :
25646
25647else
25648
25649cat >>confdefs.h <<_ACEOF
25650#define pid_t int
25651_ACEOF
25652
25653fi
25654
25655ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25656if test "x$ac_cv_type_mode_t" = xyes; then :
25657
25658else
25659
25660cat >>confdefs.h <<_ACEOF
25661#define mode_t int
25662_ACEOF
25663
25664fi
25665
25666
25667  GNULIB_ACOSF=0;
25668  GNULIB_ACOSL=0;
25669  GNULIB_ASINF=0;
25670  GNULIB_ASINL=0;
25671  GNULIB_ATANF=0;
25672  GNULIB_ATANL=0;
25673  GNULIB_ATAN2F=0;
25674  GNULIB_CBRT=0;
25675  GNULIB_CBRTF=0;
25676  GNULIB_CBRTL=0;
25677  GNULIB_CEIL=0;
25678  GNULIB_CEILF=0;
25679  GNULIB_CEILL=0;
25680  GNULIB_COPYSIGN=0;
25681  GNULIB_COPYSIGNF=0;
25682  GNULIB_COPYSIGNL=0;
25683  GNULIB_COSF=0;
25684  GNULIB_COSL=0;
25685  GNULIB_COSHF=0;
25686  GNULIB_EXPF=0;
25687  GNULIB_EXPL=0;
25688  GNULIB_EXP2=0;
25689  GNULIB_EXP2F=0;
25690  GNULIB_EXP2L=0;
25691  GNULIB_EXPM1=0;
25692  GNULIB_EXPM1F=0;
25693  GNULIB_EXPM1L=0;
25694  GNULIB_FABSF=0;
25695  GNULIB_FABSL=0;
25696  GNULIB_FLOOR=0;
25697  GNULIB_FLOORF=0;
25698  GNULIB_FLOORL=0;
25699  GNULIB_FMA=0;
25700  GNULIB_FMAF=0;
25701  GNULIB_FMAL=0;
25702  GNULIB_FMOD=0;
25703  GNULIB_FMODF=0;
25704  GNULIB_FMODL=0;
25705  GNULIB_FREXPF=0;
25706  GNULIB_FREXP=0;
25707  GNULIB_FREXPL=0;
25708  GNULIB_HYPOT=0;
25709  GNULIB_HYPOTF=0;
25710  GNULIB_HYPOTL=0;
25711  GNULIB_ILOGB=0;
25712  GNULIB_ILOGBF=0;
25713  GNULIB_ILOGBL=0;
25714  GNULIB_ISFINITE=0;
25715  GNULIB_ISINF=0;
25716  GNULIB_ISNAN=0;
25717  GNULIB_ISNANF=0;
25718  GNULIB_ISNAND=0;
25719  GNULIB_ISNANL=0;
25720  GNULIB_LDEXPF=0;
25721  GNULIB_LDEXPL=0;
25722  GNULIB_LOG=0;
25723  GNULIB_LOGF=0;
25724  GNULIB_LOGL=0;
25725  GNULIB_LOG10=0;
25726  GNULIB_LOG10F=0;
25727  GNULIB_LOG10L=0;
25728  GNULIB_LOG1P=0;
25729  GNULIB_LOG1PF=0;
25730  GNULIB_LOG1PL=0;
25731  GNULIB_LOG2=0;
25732  GNULIB_LOG2F=0;
25733  GNULIB_LOG2L=0;
25734  GNULIB_LOGB=0;
25735  GNULIB_LOGBF=0;
25736  GNULIB_LOGBL=0;
25737  GNULIB_MODF=0;
25738  GNULIB_MODFF=0;
25739  GNULIB_MODFL=0;
25740  GNULIB_POWF=0;
25741  GNULIB_REMAINDER=0;
25742  GNULIB_REMAINDERF=0;
25743  GNULIB_REMAINDERL=0;
25744  GNULIB_RINT=0;
25745  GNULIB_RINTF=0;
25746  GNULIB_RINTL=0;
25747  GNULIB_ROUND=0;
25748  GNULIB_ROUNDF=0;
25749  GNULIB_ROUNDL=0;
25750  GNULIB_SIGNBIT=0;
25751  GNULIB_SINF=0;
25752  GNULIB_SINL=0;
25753  GNULIB_SINHF=0;
25754  GNULIB_SQRTF=0;
25755  GNULIB_SQRTL=0;
25756  GNULIB_TANF=0;
25757  GNULIB_TANL=0;
25758  GNULIB_TANHF=0;
25759  GNULIB_TRUNC=0;
25760  GNULIB_TRUNCF=0;
25761  GNULIB_TRUNCL=0;
25762    HAVE_ACOSF=1;
25763  HAVE_ACOSL=1;
25764  HAVE_ASINF=1;
25765  HAVE_ASINL=1;
25766  HAVE_ATANF=1;
25767  HAVE_ATANL=1;
25768  HAVE_ATAN2F=1;
25769  HAVE_CBRT=1;
25770  HAVE_CBRTF=1;
25771  HAVE_CBRTL=1;
25772  HAVE_COPYSIGN=1;
25773  HAVE_COPYSIGNL=1;
25774  HAVE_COSF=1;
25775  HAVE_COSL=1;
25776  HAVE_COSHF=1;
25777  HAVE_EXPF=1;
25778  HAVE_EXPL=1;
25779  HAVE_EXPM1=1;
25780  HAVE_EXPM1F=1;
25781  HAVE_FABSF=1;
25782  HAVE_FABSL=1;
25783  HAVE_FMA=1;
25784  HAVE_FMAF=1;
25785  HAVE_FMAL=1;
25786  HAVE_FMODF=1;
25787  HAVE_FMODL=1;
25788  HAVE_FREXPF=1;
25789  HAVE_HYPOTF=1;
25790  HAVE_HYPOTL=1;
25791  HAVE_ILOGB=1;
25792  HAVE_ILOGBF=1;
25793  HAVE_ILOGBL=1;
25794  HAVE_ISNANF=1;
25795  HAVE_ISNAND=1;
25796  HAVE_ISNANL=1;
25797  HAVE_LDEXPF=1;
25798  HAVE_LOGF=1;
25799  HAVE_LOGL=1;
25800  HAVE_LOG10F=1;
25801  HAVE_LOG10L=1;
25802  HAVE_LOG1P=1;
25803  HAVE_LOG1PF=1;
25804  HAVE_LOG1PL=1;
25805  HAVE_LOGBF=1;
25806  HAVE_LOGBL=1;
25807  HAVE_MODFF=1;
25808  HAVE_MODFL=1;
25809  HAVE_POWF=1;
25810  HAVE_REMAINDER=1;
25811  HAVE_REMAINDERF=1;
25812  HAVE_RINT=1;
25813  HAVE_RINTL=1;
25814  HAVE_SINF=1;
25815  HAVE_SINL=1;
25816  HAVE_SINHF=1;
25817  HAVE_SQRTF=1;
25818  HAVE_SQRTL=1;
25819  HAVE_TANF=1;
25820  HAVE_TANL=1;
25821  HAVE_TANHF=1;
25822  HAVE_DECL_ACOSL=1;
25823  HAVE_DECL_ASINL=1;
25824  HAVE_DECL_ATANL=1;
25825  HAVE_DECL_CBRTF=1;
25826  HAVE_DECL_CBRTL=1;
25827  HAVE_DECL_CEILF=1;
25828  HAVE_DECL_CEILL=1;
25829  HAVE_DECL_COPYSIGNF=1;
25830  HAVE_DECL_COSL=1;
25831  HAVE_DECL_EXPL=1;
25832  HAVE_DECL_EXP2=1;
25833  HAVE_DECL_EXP2F=1;
25834  HAVE_DECL_EXP2L=1;
25835  HAVE_DECL_EXPM1L=1;
25836  HAVE_DECL_FLOORF=1;
25837  HAVE_DECL_FLOORL=1;
25838  HAVE_DECL_FREXPL=1;
25839  HAVE_DECL_LDEXPL=1;
25840  HAVE_DECL_LOGL=1;
25841  HAVE_DECL_LOG10L=1;
25842  HAVE_DECL_LOG2=1;
25843  HAVE_DECL_LOG2F=1;
25844  HAVE_DECL_LOG2L=1;
25845  HAVE_DECL_LOGB=1;
25846  HAVE_DECL_REMAINDER=1;
25847  HAVE_DECL_REMAINDERL=1;
25848  HAVE_DECL_RINTF=1;
25849  HAVE_DECL_ROUND=1;
25850  HAVE_DECL_ROUNDF=1;
25851  HAVE_DECL_ROUNDL=1;
25852  HAVE_DECL_SINL=1;
25853  HAVE_DECL_SQRTL=1;
25854  HAVE_DECL_TANL=1;
25855  HAVE_DECL_TRUNC=1;
25856  HAVE_DECL_TRUNCF=1;
25857  HAVE_DECL_TRUNCL=1;
25858  REPLACE_ACOSF=0;
25859  REPLACE_ASINF=0;
25860  REPLACE_ATANF=0;
25861  REPLACE_ATAN2F=0;
25862  REPLACE_CBRTF=0;
25863  REPLACE_CBRTL=0;
25864  REPLACE_CEIL=0;
25865  REPLACE_CEILF=0;
25866  REPLACE_CEILL=0;
25867  REPLACE_COSF=0;
25868  REPLACE_COSHF=0;
25869  REPLACE_EXPF=0;
25870  REPLACE_EXPL=0;
25871  REPLACE_EXPM1=0;
25872  REPLACE_EXPM1F=0;
25873  REPLACE_EXPM1L=0;
25874  REPLACE_EXP2=0;
25875  REPLACE_EXP2L=0;
25876  REPLACE_FABSL=0;
25877  REPLACE_FLOOR=0;
25878  REPLACE_FLOORF=0;
25879  REPLACE_FLOORL=0;
25880  REPLACE_FMA=0;
25881  REPLACE_FMAF=0;
25882  REPLACE_FMAL=0;
25883  REPLACE_FMOD=0;
25884  REPLACE_FMODF=0;
25885  REPLACE_FMODL=0;
25886  REPLACE_FREXPF=0;
25887  REPLACE_FREXP=0;
25888  REPLACE_FREXPL=0;
25889  REPLACE_HUGE_VAL=0;
25890  REPLACE_HYPOT=0;
25891  REPLACE_HYPOTF=0;
25892  REPLACE_HYPOTL=0;
25893  REPLACE_ILOGB=0;
25894  REPLACE_ILOGBF=0;
25895  REPLACE_ILOGBL=0;
25896  REPLACE_ISFINITE=0;
25897  REPLACE_ISINF=0;
25898  REPLACE_ISNAN=0;
25899  REPLACE_LDEXPL=0;
25900  REPLACE_LOG=0;
25901  REPLACE_LOGF=0;
25902  REPLACE_LOGL=0;
25903  REPLACE_LOG10=0;
25904  REPLACE_LOG10F=0;
25905  REPLACE_LOG10L=0;
25906  REPLACE_LOG1P=0;
25907  REPLACE_LOG1PF=0;
25908  REPLACE_LOG1PL=0;
25909  REPLACE_LOG2=0;
25910  REPLACE_LOG2F=0;
25911  REPLACE_LOG2L=0;
25912  REPLACE_LOGB=0;
25913  REPLACE_LOGBF=0;
25914  REPLACE_LOGBL=0;
25915  REPLACE_MODF=0;
25916  REPLACE_MODFF=0;
25917  REPLACE_MODFL=0;
25918  REPLACE_NAN=0;
25919  REPLACE_REMAINDER=0;
25920  REPLACE_REMAINDERF=0;
25921  REPLACE_REMAINDERL=0;
25922  REPLACE_RINTL=0;
25923  REPLACE_ROUND=0;
25924  REPLACE_ROUNDF=0;
25925  REPLACE_ROUNDL=0;
25926  REPLACE_SIGNBIT=0;
25927  REPLACE_SIGNBIT_USING_BUILTINS=0;
25928  REPLACE_SINF=0;
25929  REPLACE_SINHF=0;
25930  REPLACE_SQRTF=0;
25931  REPLACE_SQRTL=0;
25932  REPLACE_TANF=0;
25933  REPLACE_TANHF=0;
25934  REPLACE_TRUNC=0;
25935  REPLACE_TRUNCF=0;
25936  REPLACE_TRUNCL=0;
25937
25938
25939
25940
25941
25942
25943  saved_as_echo_n="$as_echo_n"
25944  as_echo_n=':'
25945  if ${gl_cv_func_floor_libm+:} false; then :
25946  $as_echo_n "(cached) " >&6
25947else
25948
25949    gl_cv_func_floor_libm=?
25950    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951/* end confdefs.h.  */
25952#ifndef __NO_MATH_INLINES
25953           # define __NO_MATH_INLINES 1 /* for glibc */
25954           #endif
25955           #include <math.h>
25956           double (*funcptr) (double) = floor;
25957           double x;
25958int
25959main ()
25960{
25961x = funcptr(x) + floor(x);
25962  ;
25963  return 0;
25964}
25965_ACEOF
25966if ac_fn_c_try_link "$LINENO"; then :
25967  gl_cv_func_floor_libm=
25968fi
25969rm -f core conftest.err conftest.$ac_objext \
25970    conftest$ac_exeext conftest.$ac_ext
25971    if test "$gl_cv_func_floor_libm" = "?"; then
25972      save_LIBS="$LIBS"
25973      LIBS="$LIBS -lm"
25974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25975/* end confdefs.h.  */
25976#ifndef __NO_MATH_INLINES
25977             # define __NO_MATH_INLINES 1 /* for glibc */
25978             #endif
25979             #include <math.h>
25980             double (*funcptr) (double) = floor;
25981             double x;
25982int
25983main ()
25984{
25985x = funcptr(x) + floor(x);
25986  ;
25987  return 0;
25988}
25989_ACEOF
25990if ac_fn_c_try_link "$LINENO"; then :
25991  gl_cv_func_floor_libm="-lm"
25992fi
25993rm -f core conftest.err conftest.$ac_objext \
25994    conftest$ac_exeext conftest.$ac_ext
25995      LIBS="$save_LIBS"
25996    fi
25997
25998fi
25999
26000  as_echo_n="$saved_as_echo_n"
26001
26002  FLOOR_LIBM="$gl_cv_func_floor_libm"
26003
26004  if test "$FLOOR_LIBM" = "?"; then
26005    FLOOR_LIBM=
26006  fi
26007
26008  if test $REPLACE_FLOOR = 1; then
26009        FLOOR_LIBM=
26010  fi
26011
26012
26013
26014  GNULIB_DPRINTF=0;
26015  GNULIB_FCLOSE=0;
26016  GNULIB_FDOPEN=0;
26017  GNULIB_FFLUSH=0;
26018  GNULIB_FGETC=0;
26019  GNULIB_FGETS=0;
26020  GNULIB_FOPEN=0;
26021  GNULIB_FPRINTF=0;
26022  GNULIB_FPRINTF_POSIX=0;
26023  GNULIB_FPURGE=0;
26024  GNULIB_FPUTC=0;
26025  GNULIB_FPUTS=0;
26026  GNULIB_FREAD=0;
26027  GNULIB_FREOPEN=0;
26028  GNULIB_FSCANF=0;
26029  GNULIB_FSEEK=0;
26030  GNULIB_FSEEKO=0;
26031  GNULIB_FTELL=0;
26032  GNULIB_FTELLO=0;
26033  GNULIB_FWRITE=0;
26034  GNULIB_GETC=0;
26035  GNULIB_GETCHAR=0;
26036  GNULIB_GETDELIM=0;
26037  GNULIB_GETLINE=0;
26038  GNULIB_OBSTACK_PRINTF=0;
26039  GNULIB_OBSTACK_PRINTF_POSIX=0;
26040  GNULIB_PCLOSE=0;
26041  GNULIB_PERROR=0;
26042  GNULIB_POPEN=0;
26043  GNULIB_PRINTF=0;
26044  GNULIB_PRINTF_POSIX=0;
26045  GNULIB_PUTC=0;
26046  GNULIB_PUTCHAR=0;
26047  GNULIB_PUTS=0;
26048  GNULIB_REMOVE=0;
26049  GNULIB_RENAME=0;
26050  GNULIB_RENAMEAT=0;
26051  GNULIB_SCANF=0;
26052  GNULIB_SNPRINTF=0;
26053  GNULIB_SPRINTF_POSIX=0;
26054  GNULIB_STDIO_H_NONBLOCKING=0;
26055  GNULIB_STDIO_H_SIGPIPE=0;
26056  GNULIB_TMPFILE=0;
26057  GNULIB_VASPRINTF=0;
26058  GNULIB_VFSCANF=0;
26059  GNULIB_VSCANF=0;
26060  GNULIB_VDPRINTF=0;
26061  GNULIB_VFPRINTF=0;
26062  GNULIB_VFPRINTF_POSIX=0;
26063  GNULIB_VPRINTF=0;
26064  GNULIB_VPRINTF_POSIX=0;
26065  GNULIB_VSNPRINTF=0;
26066  GNULIB_VSPRINTF_POSIX=0;
26067    HAVE_DECL_FPURGE=1;
26068  HAVE_DECL_FSEEKO=1;
26069  HAVE_DECL_FTELLO=1;
26070  HAVE_DECL_GETDELIM=1;
26071  HAVE_DECL_GETLINE=1;
26072  HAVE_DECL_OBSTACK_PRINTF=1;
26073  HAVE_DECL_SNPRINTF=1;
26074  HAVE_DECL_VSNPRINTF=1;
26075  HAVE_DPRINTF=1;
26076  HAVE_FSEEKO=1;
26077  HAVE_FTELLO=1;
26078  HAVE_PCLOSE=1;
26079  HAVE_POPEN=1;
26080  HAVE_RENAMEAT=1;
26081  HAVE_VASPRINTF=1;
26082  HAVE_VDPRINTF=1;
26083  REPLACE_DPRINTF=0;
26084  REPLACE_FCLOSE=0;
26085  REPLACE_FDOPEN=0;
26086  REPLACE_FFLUSH=0;
26087  REPLACE_FOPEN=0;
26088  REPLACE_FPRINTF=0;
26089  REPLACE_FPURGE=0;
26090  REPLACE_FREOPEN=0;
26091  REPLACE_FSEEK=0;
26092  REPLACE_FSEEKO=0;
26093  REPLACE_FTELL=0;
26094  REPLACE_FTELLO=0;
26095  REPLACE_GETDELIM=0;
26096  REPLACE_GETLINE=0;
26097  REPLACE_OBSTACK_PRINTF=0;
26098  REPLACE_PERROR=0;
26099  REPLACE_POPEN=0;
26100  REPLACE_PRINTF=0;
26101  REPLACE_REMOVE=0;
26102  REPLACE_RENAME=0;
26103  REPLACE_RENAMEAT=0;
26104  REPLACE_SNPRINTF=0;
26105  REPLACE_SPRINTF=0;
26106  REPLACE_STDIO_READ_FUNCS=0;
26107  REPLACE_STDIO_WRITE_FUNCS=0;
26108  REPLACE_TMPFILE=0;
26109  REPLACE_VASPRINTF=0;
26110  REPLACE_VDPRINTF=0;
26111  REPLACE_VFPRINTF=0;
26112  REPLACE_VPRINTF=0;
26113  REPLACE_VSNPRINTF=0;
26114  REPLACE_VSPRINTF=0;
26115
26116
26117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
26118$as_echo_n "checking for stdint.h... " >&6; }
26119if ${gl_cv_header_stdint_h+:} false; then :
26120  $as_echo_n "(cached) " >&6
26121else
26122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26123/* end confdefs.h.  */
26124#include <sys/types.h>
26125            #include <stdint.h>
26126int
26127main ()
26128{
26129uintmax_t i = (uintmax_t) -1; return !i;
26130  ;
26131  return 0;
26132}
26133_ACEOF
26134if ac_fn_c_try_compile "$LINENO"; then :
26135  gl_cv_header_stdint_h=yes
26136else
26137  gl_cv_header_stdint_h=no
26138fi
26139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26140fi
26141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
26142$as_echo "$gl_cv_header_stdint_h" >&6; }
26143  if test $gl_cv_header_stdint_h = yes; then
26144
26145cat >>confdefs.h <<_ACEOF
26146#define HAVE_STDINT_H_WITH_UINTMAX 1
26147_ACEOF
26148
26149  fi
26150
26151
26152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
26153$as_echo_n "checking for inttypes.h... " >&6; }
26154if ${gl_cv_header_inttypes_h+:} false; then :
26155  $as_echo_n "(cached) " >&6
26156else
26157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158/* end confdefs.h.  */
26159
26160#include <sys/types.h>
26161#include <inttypes.h>
26162
26163int
26164main ()
26165{
26166uintmax_t i = (uintmax_t) -1; return !i;
26167  ;
26168  return 0;
26169}
26170_ACEOF
26171if ac_fn_c_try_compile "$LINENO"; then :
26172  gl_cv_header_inttypes_h=yes
26173else
26174  gl_cv_header_inttypes_h=no
26175fi
26176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26177fi
26178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
26179$as_echo "$gl_cv_header_inttypes_h" >&6; }
26180  if test $gl_cv_header_inttypes_h = yes; then
26181
26182cat >>confdefs.h <<_ACEOF
26183#define HAVE_INTTYPES_H_WITH_UINTMAX 1
26184_ACEOF
26185
26186  fi
26187
26188
26189
26190
26191
26192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
26193$as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
26194if ${gl_cv_func_printf_sizes_c99+:} false; then :
26195  $as_echo_n "(cached) " >&6
26196else
26197
26198      if test "$cross_compiling" = yes; then :
26199
26200         case "$host_os" in
26201                                 # Guess yes on glibc systems.
26202           *-gnu* | gnu*)        gl_cv_func_printf_sizes_c99="guessing yes";;
26203                                 # Guess yes on musl systems.
26204           *-musl*)              gl_cv_func_printf_sizes_c99="guessing yes";;
26205                                 # Guess yes on FreeBSD >= 5.
26206           freebsd[1-4].*)       gl_cv_func_printf_sizes_c99="guessing no";;
26207           freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
26208                                 # Guess yes on Mac OS X >= 10.3.
26209           darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
26210           darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
26211                                 # Guess yes on OpenBSD >= 3.9.
26212           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
26213                                 gl_cv_func_printf_sizes_c99="guessing no";;
26214           openbsd*)             gl_cv_func_printf_sizes_c99="guessing yes";;
26215                                 # Guess yes on Solaris >= 2.10.
26216           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
26217           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
26218                                 # Guess yes on NetBSD >= 3.
26219           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
26220                                 gl_cv_func_printf_sizes_c99="guessing no";;
26221           netbsd*)              gl_cv_func_printf_sizes_c99="guessing yes";;
26222                                 # Guess yes on Android.
26223           linux*-android*)      gl_cv_func_printf_sizes_c99="guessing yes";;
26224                                 # Guess yes on MSVC, no on mingw.
26225           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26226/* end confdefs.h.  */
26227
26228#ifdef _MSC_VER
26229 Known
26230#endif
26231
26232_ACEOF
26233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26234  $EGREP "Known" >/dev/null 2>&1; then :
26235  gl_cv_func_printf_sizes_c99="guessing yes"
26236else
26237  gl_cv_func_printf_sizes_c99="guessing no"
26238fi
26239rm -f conftest*
26240
26241                                 ;;
26242                                 # If we don't know, obey --enable-cross-guesses.
26243           *)                    gl_cv_func_printf_sizes_c99="$gl_cross_guess_normal";;
26244         esac
26245
26246else
26247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248/* end confdefs.h.  */
26249
26250#include <stddef.h>
26251#include <stdio.h>
26252#include <string.h>
26253#include <sys/types.h>
26254#if HAVE_STDINT_H_WITH_UINTMAX
26255# include <stdint.h>
26256#endif
26257#if HAVE_INTTYPES_H_WITH_UINTMAX
26258# include <inttypes.h>
26259#endif
26260static char buf[100];
26261int main ()
26262{
26263  int result = 0;
26264#if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
26265  buf[0] = '\0';
26266  if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
26267      || strcmp (buf, "12345671 33") != 0)
26268    result |= 1;
26269#else
26270  result |= 1;
26271#endif
26272  buf[0] = '\0';
26273  if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
26274      || strcmp (buf, "12345672 33") != 0)
26275    result |= 2;
26276  buf[0] = '\0';
26277  if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
26278      || strcmp (buf, "12345673 33") != 0)
26279    result |= 4;
26280  buf[0] = '\0';
26281  if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
26282      || strcmp (buf, "1.5 33") != 0)
26283    result |= 8;
26284  return result;
26285}
26286_ACEOF
26287if ac_fn_c_try_run "$LINENO"; then :
26288  gl_cv_func_printf_sizes_c99=yes
26289else
26290  gl_cv_func_printf_sizes_c99=no
26291fi
26292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26293  conftest.$ac_objext conftest.beam conftest.$ac_ext
26294fi
26295
26296
26297fi
26298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
26299$as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
26300
26301
26302
26303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
26304$as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
26305if ${gl_cv_func_printf_directive_n+:} false; then :
26306  $as_echo_n "(cached) " >&6
26307else
26308
26309      if test "$cross_compiling" = yes; then :
26310  case "$host_os" in
26311                            # Guess no on glibc when _FORTIFY_SOURCE >= 2.
26312           *-gnu* | gnu*)   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313/* end confdefs.h.  */
26314#if _FORTIFY_SOURCE >= 2
26315                                    error fail
26316                                   #endif
26317
26318_ACEOF
26319if ac_fn_c_try_compile "$LINENO"; then :
26320  gl_cv_func_printf_directive_n="guessing yes"
26321else
26322  gl_cv_func_printf_directive_n="guessing no"
26323fi
26324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26325                            ;;
26326                            # Guess no on Android.
26327           linux*-android*) gl_cv_func_printf_directive_n="guessing no";;
26328                            # Guess no on native Windows.
26329           mingw*)          gl_cv_func_printf_directive_n="guessing no";;
26330           *)               gl_cv_func_printf_directive_n="guessing yes";;
26331         esac
26332
26333else
26334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335/* end confdefs.h.  */
26336
26337#include <stdio.h>
26338#include <stdlib.h>
26339#include <string.h>
26340#ifdef _MSC_VER
26341#include <inttypes.h>
26342/* See page about "Parameter Validation" on msdn.microsoft.com.
26343   <https://docs.microsoft.com/en-us/cpp/c-runtime-library/parameter-validation>
26344   <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler>  */
26345static void cdecl
26346invalid_parameter_handler (const wchar_t *expression,
26347                           const wchar_t *function,
26348                           const wchar_t *file, unsigned int line,
26349                           uintptr_t dummy)
26350{
26351  exit (1);
26352}
26353#endif
26354static char fmtstring[10];
26355static char buf[100];
26356int main ()
26357{
26358  int count = -1;
26359#ifdef _MSC_VER
26360  _set_invalid_parameter_handler (invalid_parameter_handler);
26361#endif
26362  /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
26363     support %n in format strings in read-only memory but not in writable
26364     memory.  */
26365  strcpy (fmtstring, "%d %n");
26366  if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
26367      || strcmp (buf, "123 ") != 0
26368      || count != 4)
26369    return 1;
26370  return 0;
26371}
26372_ACEOF
26373if ac_fn_c_try_run "$LINENO"; then :
26374  gl_cv_func_printf_directive_n=yes
26375else
26376  gl_cv_func_printf_directive_n=no
26377fi
26378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26379  conftest.$ac_objext conftest.beam conftest.$ac_ext
26380fi
26381
26382
26383fi
26384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
26385$as_echo "$gl_cv_func_printf_directive_n" >&6; }
26386
26387
26388
26389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
26390$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
26391if ${gl_cv_func_printf_positions+:} false; then :
26392  $as_echo_n "(cached) " >&6
26393else
26394
26395      if test "$cross_compiling" = yes; then :
26396
26397         case "$host_os" in
26398           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
26399                            gl_cv_func_printf_positions="guessing no";;
26400           beos*)           gl_cv_func_printf_positions="guessing no";;
26401                            # Guess yes on Android.
26402           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
26403                            # Guess no on native Windows.
26404           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
26405           *)               gl_cv_func_printf_positions="guessing yes";;
26406         esac
26407
26408else
26409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h.  */
26411
26412#include <stdio.h>
26413#include <string.h>
26414/* The string "%2$d %1$d", with dollar characters protected from the shell's
26415   dollar expansion (possibly an autoconf bug).  */
26416static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
26417static char buf[100];
26418int main ()
26419{
26420  sprintf (buf, format, 33, 55);
26421  return (strcmp (buf, "55 33") != 0);
26422}
26423_ACEOF
26424if ac_fn_c_try_run "$LINENO"; then :
26425  gl_cv_func_printf_positions=yes
26426else
26427  gl_cv_func_printf_positions=no
26428fi
26429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26430  conftest.$ac_objext conftest.beam conftest.$ac_ext
26431fi
26432
26433
26434fi
26435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
26436$as_echo "$gl_cv_func_printf_positions" >&6; }
26437
26438
26439
26440
26441
26442
26443
26444  if test $ac_cv_header_features_h = yes; then
26445    HAVE_FEATURES_H=1
26446  else
26447    HAVE_FEATURES_H=0
26448  fi
26449
26450
26451
26452
26453
26454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
26455$as_echo_n "checking for intmax_t... " >&6; }
26456if ${gt_cv_c_intmax_t+:} false; then :
26457  $as_echo_n "(cached) " >&6
26458else
26459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460/* end confdefs.h.  */
26461
26462#include <stddef.h>
26463#include <stdlib.h>
26464#if HAVE_STDINT_H_WITH_UINTMAX
26465#include <stdint.h>
26466#endif
26467#if HAVE_INTTYPES_H_WITH_UINTMAX
26468#include <inttypes.h>
26469#endif
26470
26471int
26472main ()
26473{
26474intmax_t x = -1; return !x;
26475  ;
26476  return 0;
26477}
26478_ACEOF
26479if ac_fn_c_try_compile "$LINENO"; then :
26480  gt_cv_c_intmax_t=yes
26481else
26482  gt_cv_c_intmax_t=no
26483fi
26484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485fi
26486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
26487$as_echo "$gt_cv_c_intmax_t" >&6; }
26488  if test $gt_cv_c_intmax_t = yes; then
26489
26490$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26491
26492  else
26493
26494cat >>confdefs.h <<_ACEOF
26495#define intmax_t long long
26496_ACEOF
26497
26498  fi
26499
26500
26501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
26502$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
26503if ${gl_cv_func_frexp_no_libm+:} false; then :
26504  $as_echo_n "(cached) " >&6
26505else
26506
26507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26508/* end confdefs.h.  */
26509#include <math.h>
26510             double x;
26511int
26512main ()
26513{
26514int e; return frexp (x, &e) > 0;
26515  ;
26516  return 0;
26517}
26518_ACEOF
26519if ac_fn_c_try_link "$LINENO"; then :
26520  gl_cv_func_frexp_no_libm=yes
26521else
26522  gl_cv_func_frexp_no_libm=no
26523fi
26524rm -f core conftest.err conftest.$ac_objext \
26525    conftest$ac_exeext conftest.$ac_ext
26526
26527fi
26528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
26529$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
26530
26531ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
26532if test "x$ac_cv_have_decl_alarm" = xyes; then :
26533  ac_have_decl=1
26534else
26535  ac_have_decl=0
26536fi
26537
26538cat >>confdefs.h <<_ACEOF
26539#define HAVE_DECL_ALARM $ac_have_decl
26540_ACEOF
26541
26542
26543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
26544$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
26545if ${gl_cv_var_stdin_large_offset+:} false; then :
26546  $as_echo_n "(cached) " >&6
26547else
26548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26549/* end confdefs.h.  */
26550#include <stdio.h>
26551int
26552main ()
26553{
26554#if defined __SL64 && defined __SCLE /* cygwin */
26555  /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
26556     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
26557     it is easier to do a version check than building a runtime test.  */
26558# include <cygwin/version.h>
26559# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
26560  choke me
26561# endif
26562#endif
26563  ;
26564  return 0;
26565}
26566_ACEOF
26567if ac_fn_c_try_link "$LINENO"; then :
26568  gl_cv_var_stdin_large_offset=yes
26569else
26570  gl_cv_var_stdin_large_offset=no
26571fi
26572rm -f core conftest.err conftest.$ac_objext \
26573    conftest$ac_exeext conftest.$ac_ext
26574fi
26575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
26576$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
26577
26578
26579
26580
26581
26582  case "$host_os" in
26583    mingw*)
26584                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
26585$as_echo_n "checking for 64-bit off_t... " >&6; }
26586if ${gl_cv_type_off_t_64+:} false; then :
26587  $as_echo_n "(cached) " >&6
26588else
26589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26590/* end confdefs.h.  */
26591#include <sys/types.h>
26592                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
26593
26594int
26595main ()
26596{
26597
26598  ;
26599  return 0;
26600}
26601_ACEOF
26602if ac_fn_c_try_compile "$LINENO"; then :
26603  gl_cv_type_off_t_64=yes
26604else
26605  gl_cv_type_off_t_64=no
26606fi
26607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26608
26609fi
26610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
26611$as_echo "$gl_cv_type_off_t_64" >&6; }
26612      if test $gl_cv_type_off_t_64 = no; then
26613        WINDOWS_64_BIT_OFF_T=1
26614      else
26615        WINDOWS_64_BIT_OFF_T=0
26616      fi
26617                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
26618$as_echo_n "checking for 64-bit st_size... " >&6; }
26619if ${gl_cv_member_st_size_64+:} false; then :
26620  $as_echo_n "(cached) " >&6
26621else
26622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26623/* end confdefs.h.  */
26624#include <sys/types.h>
26625                struct stat buf;
26626                int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
26627
26628int
26629main ()
26630{
26631
26632  ;
26633  return 0;
26634}
26635_ACEOF
26636if ac_fn_c_try_compile "$LINENO"; then :
26637  gl_cv_member_st_size_64=yes
26638else
26639  gl_cv_member_st_size_64=no
26640fi
26641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26642
26643fi
26644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
26645$as_echo "$gl_cv_member_st_size_64" >&6; }
26646      if test $gl_cv_member_st_size_64 = no; then
26647        WINDOWS_64_BIT_ST_SIZE=1
26648      else
26649        WINDOWS_64_BIT_ST_SIZE=0
26650      fi
26651      ;;
26652    *)
26653                                                      WINDOWS_64_BIT_OFF_T=0
26654      WINDOWS_64_BIT_ST_SIZE=0
26655      ;;
26656  esac
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666$as_echo "#define _USE_STD_STAT 1" >>confdefs.h
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678     if test $gl_cv_have_include_next = yes; then
26679       gl_cv_next_sys_types_h='<'sys/types.h'>'
26680     else
26681       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
26682$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
26683if ${gl_cv_next_sys_types_h+:} false; then :
26684  $as_echo_n "(cached) " >&6
26685else
26686
26687
26688
26689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690/* end confdefs.h.  */
26691#include <sys/types.h>
26692_ACEOF
26693                case "$host_os" in
26694    aix*) gl_absname_cpp="$ac_cpp -C" ;;
26695    *)    gl_absname_cpp="$ac_cpp" ;;
26696  esac
26697
26698  case "$host_os" in
26699    mingw*)
26700                                          gl_dirsep_regex='[/\\]'
26701      ;;
26702    *)
26703      gl_dirsep_regex='\/'
26704      ;;
26705  esac
26706      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26707  gl_header_literal_regex=`echo 'sys/types.h' \
26708                           | sed -e "$gl_make_literal_regex_sed"`
26709  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26710      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26711      s|^/[^/]|//&|
26712      p
26713      q
26714    }'
26715
26716        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26717  sed -n "$gl_absolute_header_sed"`
26718
26719           gl_header=$gl_cv_absolute_sys_types_h
26720           gl_cv_next_sys_types_h='"'$gl_header'"'
26721
26722
26723fi
26724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
26725$as_echo "$gl_cv_next_sys_types_h" >&6; }
26726     fi
26727     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
26728
26729     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26730       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26731       gl_next_as_first_directive='<'sys/types.h'>'
26732     else
26733       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26734       gl_next_as_first_directive=$gl_cv_next_sys_types_h
26735     fi
26736     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749    WINDOWS_STAT_INODES=0
26750
26751
26752
26753ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
26754if test "x$ac_cv_have_decl_fseeko" = xyes; then :
26755  ac_have_decl=1
26756else
26757  ac_have_decl=0
26758fi
26759
26760cat >>confdefs.h <<_ACEOF
26761#define HAVE_DECL_FSEEKO $ac_have_decl
26762_ACEOF
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
26773$as_echo_n "checking for fseeko... " >&6; }
26774if ${gl_cv_func_fseeko+:} false; then :
26775  $as_echo_n "(cached) " >&6
26776else
26777
26778      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779/* end confdefs.h.  */
26780#include <stdio.h>
26781
26782int
26783main ()
26784{
26785fseeko (stdin, 0, 0);
26786  ;
26787  return 0;
26788}
26789_ACEOF
26790if ac_fn_c_try_link "$LINENO"; then :
26791  gl_cv_func_fseeko=yes
26792else
26793  gl_cv_func_fseeko=no
26794fi
26795rm -f core conftest.err conftest.$ac_objext \
26796    conftest$ac_exeext conftest.$ac_ext
26797
26798fi
26799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
26800$as_echo "$gl_cv_func_fseeko" >&6; }
26801
26802
26803  if test $ac_cv_have_decl_fseeko = no; then
26804    HAVE_DECL_FSEEKO=0
26805  fi
26806
26807  if test $gl_cv_func_fseeko = no; then
26808    HAVE_FSEEKO=0
26809  else
26810    if test $WINDOWS_64_BIT_OFF_T = 1; then
26811      REPLACE_FSEEKO=1
26812    fi
26813    if test $gl_cv_var_stdin_large_offset = no; then
26814      REPLACE_FSEEKO=1
26815    fi
26816
26817  fi
26818
26819
26820
26821
26822     GNULIB_FCHMODAT=0;
26823  GNULIB_FSTAT=0;
26824  GNULIB_FSTATAT=0;
26825  GNULIB_FUTIMENS=0;
26826  GNULIB_GETUMASK=0;
26827  GNULIB_LCHMOD=0;
26828  GNULIB_LSTAT=0;
26829  GNULIB_MKDIRAT=0;
26830  GNULIB_MKFIFO=0;
26831  GNULIB_MKFIFOAT=0;
26832  GNULIB_MKNOD=0;
26833  GNULIB_MKNODAT=0;
26834  GNULIB_STAT=0;
26835  GNULIB_UTIMENSAT=0;
26836  GNULIB_OVERRIDES_STRUCT_STAT=0;
26837    HAVE_FCHMODAT=1;
26838  HAVE_FSTATAT=1;
26839  HAVE_FUTIMENS=1;
26840  HAVE_GETUMASK=1;
26841  HAVE_LCHMOD=1;
26842  HAVE_LSTAT=1;
26843  HAVE_MKDIRAT=1;
26844  HAVE_MKFIFO=1;
26845  HAVE_MKFIFOAT=1;
26846  HAVE_MKNOD=1;
26847  HAVE_MKNODAT=1;
26848  HAVE_UTIMENSAT=1;
26849  REPLACE_FCHMODAT=0;
26850  REPLACE_FSTAT=0;
26851  REPLACE_FSTATAT=0;
26852  REPLACE_FUTIMENS=0;
26853  REPLACE_LSTAT=0;
26854  REPLACE_MKDIR=0;
26855  REPLACE_MKFIFO=0;
26856  REPLACE_MKNOD=0;
26857  REPLACE_STAT=0;
26858  REPLACE_UTIMENSAT=0;
26859
26860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26861$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26862if ${ac_cv_header_stat_broken+:} false; then :
26863  $as_echo_n "(cached) " >&6
26864else
26865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26866/* end confdefs.h.  */
26867#include <sys/types.h>
26868#include <sys/stat.h>
26869
26870#if defined S_ISBLK && defined S_IFDIR
26871extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26872#endif
26873
26874#if defined S_ISBLK && defined S_IFCHR
26875extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26876#endif
26877
26878#if defined S_ISLNK && defined S_IFREG
26879extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26880#endif
26881
26882#if defined S_ISSOCK && defined S_IFREG
26883extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26884#endif
26885
26886_ACEOF
26887if ac_fn_c_try_compile "$LINENO"; then :
26888  ac_cv_header_stat_broken=no
26889else
26890  ac_cv_header_stat_broken=yes
26891fi
26892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893fi
26894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26895$as_echo "$ac_cv_header_stat_broken" >&6; }
26896if test $ac_cv_header_stat_broken = yes; then
26897
26898$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26899
26900fi
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918     if test $gl_cv_have_include_next = yes; then
26919       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26920     else
26921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26922$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26923if ${gl_cv_next_sys_stat_h+:} false; then :
26924  $as_echo_n "(cached) " >&6
26925else
26926
26927             if test $ac_cv_header_sys_stat_h = yes; then
26928
26929
26930
26931
26932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26933/* end confdefs.h.  */
26934#include <sys/stat.h>
26935_ACEOF
26936                case "$host_os" in
26937    aix*) gl_absname_cpp="$ac_cpp -C" ;;
26938    *)    gl_absname_cpp="$ac_cpp" ;;
26939  esac
26940
26941  case "$host_os" in
26942    mingw*)
26943                                          gl_dirsep_regex='[/\\]'
26944      ;;
26945    *)
26946      gl_dirsep_regex='\/'
26947      ;;
26948  esac
26949      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26950  gl_header_literal_regex=`echo 'sys/stat.h' \
26951                           | sed -e "$gl_make_literal_regex_sed"`
26952  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26953      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26954      s|^/[^/]|//&|
26955      p
26956      q
26957    }'
26958
26959        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26960  sed -n "$gl_absolute_header_sed"`
26961
26962           gl_header=$gl_cv_absolute_sys_stat_h
26963           gl_cv_next_sys_stat_h='"'$gl_header'"'
26964          else
26965               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26966             fi
26967
26968
26969fi
26970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26971$as_echo "$gl_cv_next_sys_stat_h" >&6; }
26972     fi
26973     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26974
26975     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26976       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26977       gl_next_as_first_directive='<'sys/stat.h'>'
26978     else
26979       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26980       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26981     fi
26982     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26983
26984
26985
26986
26987
26988
26989
26990
26991    WINDOWS_STAT_TIMESPEC=0
26992
26993
26994
26995
26996
26997
26998
26999
27000      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27001     #include <sys/stat.h>
27002"
27003if test "x$ac_cv_type_nlink_t" = xyes; then :
27004
27005else
27006
27007$as_echo "#define nlink_t int" >>confdefs.h
27008
27009fi
27010
27011
27012
27013
27014
27015
27016
27017
27018ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
27019if test "x$ac_cv_have_decl_ftello" = xyes; then :
27020  ac_have_decl=1
27021else
27022  ac_have_decl=0
27023fi
27024
27025cat >>confdefs.h <<_ACEOF
27026#define HAVE_DECL_FTELLO $ac_have_decl
27027_ACEOF
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038  if test $ac_cv_have_decl_ftello = no; then
27039    HAVE_DECL_FTELLO=0
27040  fi
27041
27042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
27043$as_echo_n "checking for ftello... " >&6; }
27044if ${gl_cv_func_ftello+:} false; then :
27045  $as_echo_n "(cached) " >&6
27046else
27047
27048      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27049/* end confdefs.h.  */
27050#include <stdio.h>
27051int
27052main ()
27053{
27054ftello (stdin);
27055  ;
27056  return 0;
27057}
27058_ACEOF
27059if ac_fn_c_try_link "$LINENO"; then :
27060  gl_cv_func_ftello=yes
27061else
27062  gl_cv_func_ftello=no
27063fi
27064rm -f core conftest.err conftest.$ac_objext \
27065    conftest$ac_exeext conftest.$ac_ext
27066
27067fi
27068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
27069$as_echo "$gl_cv_func_ftello" >&6; }
27070  if test $gl_cv_func_ftello = no; then
27071    HAVE_FTELLO=0
27072  else
27073    if test $WINDOWS_64_BIT_OFF_T = 1; then
27074      REPLACE_FTELLO=1
27075    fi
27076    if test $gl_cv_var_stdin_large_offset = no; then
27077      REPLACE_FTELLO=1
27078    fi
27079    if test $REPLACE_FTELLO = 0; then
27080
27081      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
27082$as_echo_n "checking whether ftello works... " >&6; }
27083if ${gl_cv_func_ftello_works+:} false; then :
27084  $as_echo_n "(cached) " >&6
27085else
27086
27087                              case "$host_os" in
27088                      # Guess no on Solaris.
27089            solaris*) gl_cv_func_ftello_works="guessing no" ;;
27090                      # Guess yes on native Windows.
27091            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
27092                      # Guess yes otherwise.
27093            *)        gl_cv_func_ftello_works="guessing yes" ;;
27094          esac
27095          if test "$cross_compiling" = yes; then :
27096  :
27097else
27098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27099/* end confdefs.h.  */
27100
27101#include <stdio.h>
27102#include <stdlib.h>
27103#include <string.h>
27104#define TESTFILE "conftest.tmp"
27105int
27106main (void)
27107{
27108  FILE *fp;
27109
27110  /* Create a file with some contents.  */
27111  fp = fopen (TESTFILE, "w");
27112  if (fp == NULL)
27113    return 70;
27114  if (fwrite ("foogarsh", 1, 8, fp) < 8)
27115    { fclose (fp); return 71; }
27116  if (fclose (fp))
27117    return 72;
27118
27119  /* The file's contents is now "foogarsh".  */
27120
27121  /* Try writing after reading to EOF.  */
27122  fp = fopen (TESTFILE, "r+");
27123  if (fp == NULL)
27124    return 73;
27125  if (fseek (fp, -1, SEEK_END))
27126    { fclose (fp); return 74; }
27127  if (!(getc (fp) == 'h'))
27128    { fclose (fp); return 1; }
27129  if (!(getc (fp) == EOF))
27130    { fclose (fp); return 2; }
27131  if (!(ftell (fp) == 8))
27132    { fclose (fp); return 3; }
27133  if (!(ftell (fp) == 8))
27134    { fclose (fp); return 4; }
27135  if (!(putc ('!', fp) == '!'))
27136    { fclose (fp); return 5; }
27137  if (!(ftell (fp) == 9))
27138    { fclose (fp); return 6; }
27139  if (!(fclose (fp) == 0))
27140    return 7;
27141  fp = fopen (TESTFILE, "r");
27142  if (fp == NULL)
27143    return 75;
27144  {
27145    char buf[10];
27146    if (!(fread (buf, 1, 10, fp) == 9))
27147      { fclose (fp); return 10; }
27148    if (!(memcmp (buf, "foogarsh!", 9) == 0))
27149      { fclose (fp); return 11; }
27150  }
27151  if (!(fclose (fp) == 0))
27152    return 12;
27153
27154  /* The file's contents is now "foogarsh!".  */
27155
27156  return 0;
27157}
27158_ACEOF
27159if ac_fn_c_try_run "$LINENO"; then :
27160  gl_cv_func_ftello_works=yes
27161else
27162  gl_cv_func_ftello_works=no
27163fi
27164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27165  conftest.$ac_objext conftest.beam conftest.$ac_ext
27166fi
27167
27168
27169fi
27170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
27171$as_echo "$gl_cv_func_ftello_works" >&6; }
27172      case "$gl_cv_func_ftello_works" in
27173        *yes) ;;
27174        *)
27175          REPLACE_FTELLO=1
27176
27177$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
27178
27179          ;;
27180      esac
27181    fi
27182  fi
27183
27184ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
27185if test "x$ac_cv_have_decl_getdelim" = xyes; then :
27186  ac_have_decl=1
27187else
27188  ac_have_decl=0
27189fi
27190
27191cat >>confdefs.h <<_ACEOF
27192#define HAVE_DECL_GETDELIM $ac_have_decl
27193_ACEOF
27194
27195
27196
27197
27198
27199ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
27200if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
27201  ac_have_decl=1
27202else
27203  ac_have_decl=0
27204fi
27205
27206cat >>confdefs.h <<_ACEOF
27207#define HAVE_DECL_GETDTABLESIZE $ac_have_decl
27208_ACEOF
27209
27210ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
27211if test "x$ac_cv_have_decl_getline" = xyes; then :
27212  ac_have_decl=1
27213else
27214  ac_have_decl=0
27215fi
27216
27217cat >>confdefs.h <<_ACEOF
27218#define HAVE_DECL_GETLINE $ac_have_decl
27219_ACEOF
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236     if test $gl_cv_have_include_next = yes; then
27237       gl_cv_next_getopt_h='<'getopt.h'>'
27238     else
27239       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
27240$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
27241if ${gl_cv_next_getopt_h+:} false; then :
27242  $as_echo_n "(cached) " >&6
27243else
27244
27245             if test $ac_cv_header_getopt_h = yes; then
27246
27247
27248
27249
27250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251/* end confdefs.h.  */
27252#include <getopt.h>
27253_ACEOF
27254                case "$host_os" in
27255    aix*) gl_absname_cpp="$ac_cpp -C" ;;
27256    *)    gl_absname_cpp="$ac_cpp" ;;
27257  esac
27258
27259  case "$host_os" in
27260    mingw*)
27261                                          gl_dirsep_regex='[/\\]'
27262      ;;
27263    *)
27264      gl_dirsep_regex='\/'
27265      ;;
27266  esac
27267      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27268  gl_header_literal_regex=`echo 'getopt.h' \
27269                           | sed -e "$gl_make_literal_regex_sed"`
27270  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27271      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27272      s|^/[^/]|//&|
27273      p
27274      q
27275    }'
27276
27277        gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27278  sed -n "$gl_absolute_header_sed"`
27279
27280           gl_header=$gl_cv_absolute_getopt_h
27281           gl_cv_next_getopt_h='"'$gl_header'"'
27282          else
27283               gl_cv_next_getopt_h='<'getopt.h'>'
27284             fi
27285
27286
27287fi
27288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
27289$as_echo "$gl_cv_next_getopt_h" >&6; }
27290     fi
27291     NEXT_GETOPT_H=$gl_cv_next_getopt_h
27292
27293     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27294       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27295       gl_next_as_first_directive='<'getopt.h'>'
27296     else
27297       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27298       gl_next_as_first_directive=$gl_cv_next_getopt_h
27299     fi
27300     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
27301
27302
27303
27304
27305  if test $ac_cv_header_getopt_h = yes; then
27306    HAVE_GETOPT_H=1
27307  else
27308    HAVE_GETOPT_H=0
27309  fi
27310
27311
27312  gl_replace_getopt=
27313
27314    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
27315    for ac_header in getopt.h
27316do :
27317  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
27318if test "x$ac_cv_header_getopt_h" = xyes; then :
27319  cat >>confdefs.h <<_ACEOF
27320#define HAVE_GETOPT_H 1
27321_ACEOF
27322
27323else
27324  gl_replace_getopt=yes
27325fi
27326
27327done
27328
27329  fi
27330
27331    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
27332    for ac_func in getopt_long_only
27333do :
27334  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
27335if test "x$ac_cv_func_getopt_long_only" = xyes; then :
27336  cat >>confdefs.h <<_ACEOF
27337#define HAVE_GETOPT_LONG_ONLY 1
27338_ACEOF
27339
27340else
27341  gl_replace_getopt=yes
27342fi
27343done
27344
27345  fi
27346
27347          if test -z "$gl_replace_getopt"; then
27348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
27349$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
27350if ${gl_cv_func_getopt_posix+:} false; then :
27351  $as_echo_n "(cached) " >&6
27352else
27353
27354                                                if test $cross_compiling = no; then
27355                              if test "$cross_compiling" = yes; then :
27356  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358as_fn_error $? "cannot run test program while cross compiling
27359See \`config.log' for more details" "$LINENO" 5; }
27360else
27361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27362/* end confdefs.h.  */
27363
27364#include <unistd.h>
27365#include <stdlib.h>
27366#include <string.h>
27367
27368int
27369main ()
27370{
27371  static char program[] = "program";
27372  static char a[] = "-a";
27373  static char foo[] = "foo";
27374  static char bar[] = "bar";
27375  char *argv[] = { program, a, foo, bar, NULL };
27376  int c;
27377
27378  c = getopt (4, argv, "ab");
27379  if (!(c == 'a'))
27380    return 1;
27381  c = getopt (4, argv, "ab");
27382  if (!(c == -1))
27383    return 2;
27384  if (!(optind == 2))
27385    return 3;
27386  return 0;
27387}
27388
27389_ACEOF
27390if ac_fn_c_try_run "$LINENO"; then :
27391  gl_cv_func_getopt_posix=maybe
27392else
27393  gl_cv_func_getopt_posix=no
27394fi
27395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27396  conftest.$ac_objext conftest.beam conftest.$ac_ext
27397fi
27398
27399          if test $gl_cv_func_getopt_posix = maybe; then
27400                                    if test "$cross_compiling" = yes; then :
27401  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27403as_fn_error $? "cannot run test program while cross compiling
27404See \`config.log' for more details" "$LINENO" 5; }
27405else
27406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27407/* end confdefs.h.  */
27408
27409#include <unistd.h>
27410#include <stdlib.h>
27411#include <string.h>
27412
27413int
27414main ()
27415{
27416  static char program[] = "program";
27417  static char donald[] = "donald";
27418  static char p[] = "-p";
27419  static char billy[] = "billy";
27420  static char duck[] = "duck";
27421  static char a[] = "-a";
27422  static char bar[] = "bar";
27423  char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
27424  int c;
27425
27426  c = getopt (7, argv, "+abp:q:");
27427  if (!(c == -1))
27428    return 4;
27429  if (!(strcmp (argv[0], "program") == 0))
27430    return 5;
27431  if (!(strcmp (argv[1], "donald") == 0))
27432    return 6;
27433  if (!(strcmp (argv[2], "-p") == 0))
27434    return 7;
27435  if (!(strcmp (argv[3], "billy") == 0))
27436    return 8;
27437  if (!(strcmp (argv[4], "duck") == 0))
27438    return 9;
27439  if (!(strcmp (argv[5], "-a") == 0))
27440    return 10;
27441  if (!(strcmp (argv[6], "bar") == 0))
27442    return 11;
27443  if (!(optind == 1))
27444    return 12;
27445  return 0;
27446}
27447
27448_ACEOF
27449if ac_fn_c_try_run "$LINENO"; then :
27450  gl_cv_func_getopt_posix=maybe
27451else
27452  gl_cv_func_getopt_posix=no
27453fi
27454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27455  conftest.$ac_objext conftest.beam conftest.$ac_ext
27456fi
27457
27458          fi
27459          if test $gl_cv_func_getopt_posix = maybe; then
27460                        if test "$cross_compiling" = yes; then :
27461  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27463as_fn_error $? "cannot run test program while cross compiling
27464See \`config.log' for more details" "$LINENO" 5; }
27465else
27466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27467/* end confdefs.h.  */
27468
27469#include <unistd.h>
27470#include <stdlib.h>
27471#include <string.h>
27472
27473int
27474main ()
27475{
27476  static char program[] = "program";
27477  static char ab[] = "-ab";
27478  char *argv[3] = { program, ab, NULL };
27479  if (getopt (2, argv, "ab:") != 'a')
27480    return 13;
27481  if (getopt (2, argv, "ab:") != '?')
27482    return 14;
27483  if (optopt != 'b')
27484    return 15;
27485  if (optind != 2)
27486    return 16;
27487  return 0;
27488}
27489
27490_ACEOF
27491if ac_fn_c_try_run "$LINENO"; then :
27492  gl_cv_func_getopt_posix=yes
27493else
27494  gl_cv_func_getopt_posix=no
27495fi
27496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27497  conftest.$ac_objext conftest.beam conftest.$ac_ext
27498fi
27499
27500          fi
27501        else
27502          case "$host_os" in
27503            darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
27504            *)                       gl_cv_func_getopt_posix="guessing yes";;
27505          esac
27506        fi
27507
27508fi
27509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
27510$as_echo "$gl_cv_func_getopt_posix" >&6; }
27511    case "$gl_cv_func_getopt_posix" in
27512      *no) gl_replace_getopt=yes ;;
27513    esac
27514  fi
27515
27516  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
27517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
27518$as_echo_n "checking for working GNU getopt function... " >&6; }
27519if ${gl_cv_func_getopt_gnu+:} false; then :
27520  $as_echo_n "(cached) " >&6
27521else
27522  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
27523       # optstring is necessary for programs like m4 that have POSIX-mandated
27524       # semantics for supporting options interspersed with files.
27525       # Also, since getopt_long is a GNU extension, we require optind=0.
27526       # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
27527       # so take care to revert to the correct (non-)export state.
27528       gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
27529       case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
27530         xx) gl_had_POSIXLY_CORRECT=exported ;;
27531         x)  gl_had_POSIXLY_CORRECT=yes      ;;
27532         *)  gl_had_POSIXLY_CORRECT=         ;;
27533       esac
27534       POSIXLY_CORRECT=1
27535       export POSIXLY_CORRECT
27536       if test "$cross_compiling" = yes; then :
27537                             gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
27538
27539else
27540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27541/* end confdefs.h.  */
27542#include <getopt.h>
27543                           #include <stddef.h>
27544                           #include <string.h>
27545
27546#include <stdlib.h>
27547#if defined __MACH__ && defined __APPLE__
27548/* Avoid a crash on Mac OS X.  */
27549#include <mach/mach.h>
27550#include <mach/mach_error.h>
27551#include <mach/thread_status.h>
27552#include <mach/exception.h>
27553#include <mach/task.h>
27554#include <pthread.h>
27555/* The exception port on which our thread listens.  */
27556static mach_port_t our_exception_port;
27557/* The main function of the thread listening for exceptions of type
27558   EXC_BAD_ACCESS.  */
27559static void *
27560mach_exception_thread (void *arg)
27561{
27562  /* Buffer for a message to be received.  */
27563  struct {
27564    mach_msg_header_t head;
27565    mach_msg_body_t msgh_body;
27566    char data[1024];
27567  } msg;
27568  mach_msg_return_t retval;
27569  /* Wait for a message on the exception port.  */
27570  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
27571                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
27572  if (retval != MACH_MSG_SUCCESS)
27573    abort ();
27574  exit (1);
27575}
27576static void
27577nocrash_init (void)
27578{
27579  mach_port_t self = mach_task_self ();
27580  /* Allocate a port on which the thread shall listen for exceptions.  */
27581  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
27582      == KERN_SUCCESS) {
27583    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
27584    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
27585                                MACH_MSG_TYPE_MAKE_SEND)
27586        == KERN_SUCCESS) {
27587      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
27588         for us.  */
27589      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
27590      /* Create the thread listening on the exception port.  */
27591      pthread_attr_t attr;
27592      pthread_t thread;
27593      if (pthread_attr_init (&attr) == 0
27594          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
27595          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
27596        pthread_attr_destroy (&attr);
27597        /* Replace the exception port info for these exceptions with our own.
27598           Note that we replace the exception port for the entire task, not only
27599           for a particular thread.  This has the effect that when our exception
27600           port gets the message, the thread specific exception port has already
27601           been asked, and we don't need to bother about it.
27602           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
27603        task_set_exception_ports (self, mask, our_exception_port,
27604                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
27605      }
27606    }
27607  }
27608}
27609#elif defined _WIN32 && ! defined __CYGWIN__
27610/* Avoid a crash on native Windows.  */
27611#define WIN32_LEAN_AND_MEAN
27612#include <windows.h>
27613#include <winerror.h>
27614static LONG WINAPI
27615exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
27616{
27617  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
27618    {
27619    case EXCEPTION_ACCESS_VIOLATION:
27620    case EXCEPTION_IN_PAGE_ERROR:
27621    case EXCEPTION_STACK_OVERFLOW:
27622    case EXCEPTION_GUARD_PAGE:
27623    case EXCEPTION_PRIV_INSTRUCTION:
27624    case EXCEPTION_ILLEGAL_INSTRUCTION:
27625    case EXCEPTION_DATATYPE_MISALIGNMENT:
27626    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
27627    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
27628      exit (1);
27629    }
27630  return EXCEPTION_CONTINUE_SEARCH;
27631}
27632static void
27633nocrash_init (void)
27634{
27635  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
27636}
27637#else
27638/* Avoid a crash on POSIX systems.  */
27639#include <signal.h>
27640#include <unistd.h>
27641/* A POSIX signal handler.  */
27642static void
27643exception_handler (int sig)
27644{
27645  _exit (1);
27646}
27647static void
27648nocrash_init (void)
27649{
27650#ifdef SIGSEGV
27651  signal (SIGSEGV, exception_handler);
27652#endif
27653#ifdef SIGBUS
27654  signal (SIGBUS, exception_handler);
27655#endif
27656}
27657#endif
27658
27659
27660int
27661main ()
27662{
27663
27664             int result = 0;
27665
27666             nocrash_init();
27667
27668             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
27669                and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
27670                OSF/1 5.1, Solaris 10.  */
27671             {
27672               static char conftest[] = "conftest";
27673               static char plus[] = "-+";
27674               char *argv[3] = { conftest, plus, NULL };
27675               opterr = 0;
27676               if (getopt (2, argv, "+a") != '?')
27677                 result |= 1;
27678             }
27679             /* This code succeeds on glibc 2.8, mingw,
27680                and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
27681                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
27682             {
27683               static char program[] = "program";
27684               static char p[] = "-p";
27685               static char foo[] = "foo";
27686               static char bar[] = "bar";
27687               char *argv[] = { program, p, foo, bar, NULL };
27688
27689               optind = 1;
27690               if (getopt (4, argv, "p::") != 'p')
27691                 result |= 2;
27692               else if (optarg != NULL)
27693                 result |= 4;
27694               else if (getopt (4, argv, "p::") != -1)
27695                 result |= 6;
27696               else if (optind != 2)
27697                 result |= 8;
27698             }
27699             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
27700             {
27701               static char program[] = "program";
27702               static char foo[] = "foo";
27703               static char p[] = "-p";
27704               char *argv[] = { program, foo, p, NULL };
27705               optind = 0;
27706               if (getopt (3, argv, "-p") != 1)
27707                 result |= 16;
27708               else if (getopt (3, argv, "-p") != 'p')
27709                 result |= 16;
27710             }
27711             /* This code fails on glibc 2.11.  */
27712             {
27713               static char program[] = "program";
27714               static char b[] = "-b";
27715               static char a[] = "-a";
27716               char *argv[] = { program, b, a, NULL };
27717               optind = opterr = 0;
27718               if (getopt (3, argv, "+:a:b") != 'b')
27719                 result |= 32;
27720               else if (getopt (3, argv, "+:a:b") != ':')
27721                 result |= 32;
27722             }
27723             /* This code dumps core on glibc 2.14.  */
27724             {
27725               static char program[] = "program";
27726               static char w[] = "-W";
27727               static char dummy[] = "dummy";
27728               char *argv[] = { program, w, dummy, NULL };
27729               optind = opterr = 1;
27730               if (getopt (3, argv, "W;") != 'W')
27731                 result |= 64;
27732             }
27733             return result;
27734
27735  ;
27736  return 0;
27737}
27738_ACEOF
27739if ac_fn_c_try_run "$LINENO"; then :
27740  gl_cv_func_getopt_gnu=yes
27741else
27742  gl_cv_func_getopt_gnu=no
27743fi
27744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27745  conftest.$ac_objext conftest.beam conftest.$ac_ext
27746fi
27747
27748       case $gl_had_POSIXLY_CORRECT in
27749         exported) ;;
27750         yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
27751         *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
27752       esac
27753
27754fi
27755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
27756$as_echo "$gl_cv_func_getopt_gnu" >&6; }
27757    if test "$gl_cv_func_getopt_gnu" != yes; then
27758      gl_replace_getopt=yes
27759    else
27760      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
27761$as_echo_n "checking for working GNU getopt_long function... " >&6; }
27762if ${gl_cv_func_getopt_long_gnu+:} false; then :
27763  $as_echo_n "(cached) " >&6
27764else
27765  if test "$cross_compiling" = yes; then :
27766              case "$host_os" in
27767              openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
27768              *)        gl_cv_func_getopt_long_gnu="guessing yes";;
27769            esac
27770
27771else
27772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27773/* end confdefs.h.  */
27774#include <getopt.h>
27775                #include <stddef.h>
27776                #include <string.h>
27777
27778int
27779main ()
27780{
27781static const struct option long_options[] =
27782                  {
27783                    { "xtremely-",no_argument,       NULL, 1003 },
27784                    { "xtra",     no_argument,       NULL, 1001 },
27785                    { "xtreme",   no_argument,       NULL, 1002 },
27786                    { "xtremely", no_argument,       NULL, 1003 },
27787                    { NULL,       0,                 NULL, 0 }
27788                  };
27789                /* This code fails on OpenBSD 5.0.  */
27790                {
27791                  static char program[] = "program";
27792                  static char xtremel[] = "--xtremel";
27793                  char *argv[] = { program, xtremel, NULL };
27794                  int option_index;
27795                  optind = 1; opterr = 0;
27796                  if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
27797                    return 1;
27798                }
27799                return 0;
27800
27801  ;
27802  return 0;
27803}
27804_ACEOF
27805if ac_fn_c_try_run "$LINENO"; then :
27806  gl_cv_func_getopt_long_gnu=yes
27807else
27808  gl_cv_func_getopt_long_gnu=no
27809fi
27810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27811  conftest.$ac_objext conftest.beam conftest.$ac_ext
27812fi
27813
27814
27815fi
27816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
27817$as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
27818      case "$gl_cv_func_getopt_long_gnu" in
27819        *yes) ;;
27820        *) gl_replace_getopt=yes ;;
27821      esac
27822    fi
27823  fi
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835  if test $ac_cv_func_getpass = no; then
27836    HAVE_GETPASS=0
27837  fi
27838
27839
27840
27841
27842
27843
27844
27845ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
27846if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
27847  ac_have_decl=1
27848else
27849  ac_have_decl=0
27850fi
27851
27852cat >>confdefs.h <<_ACEOF
27853#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
27854_ACEOF
27855
27856ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
27857if test "x$ac_cv_have_decl_flockfile" = xyes; then :
27858  ac_have_decl=1
27859else
27860  ac_have_decl=0
27861fi
27862
27863cat >>confdefs.h <<_ACEOF
27864#define HAVE_DECL_FLOCKFILE $ac_have_decl
27865_ACEOF
27866
27867ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
27868if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
27869  ac_have_decl=1
27870else
27871  ac_have_decl=0
27872fi
27873
27874cat >>confdefs.h <<_ACEOF
27875#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
27876_ACEOF
27877
27878ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
27879if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
27880  ac_have_decl=1
27881else
27882  ac_have_decl=0
27883fi
27884
27885cat >>confdefs.h <<_ACEOF
27886#define HAVE_DECL_FUNLOCKFILE $ac_have_decl
27887_ACEOF
27888
27889ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
27890if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
27891  ac_have_decl=1
27892else
27893  ac_have_decl=0
27894fi
27895
27896cat >>confdefs.h <<_ACEOF
27897#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
27898_ACEOF
27899
27900
27901
27902
27903
27904
27905  GNULIB_GETRANDOM=0;
27906    HAVE_GETRANDOM=1;
27907  REPLACE_GETRANDOM=0;
27908
27909
27910
27911:
27912
27913
27914
27915  GNULIB_GETTIMEOFDAY=0;
27916    HAVE_GETTIMEOFDAY=1;
27917  HAVE_STRUCT_TIMEVAL=1;
27918  HAVE_SYS_TIME_H=1;
27919  REPLACE_GETTIMEOFDAY=0;
27920  REPLACE_STRUCT_TIMEVAL=0;
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937     if test $gl_cv_have_include_next = yes; then
27938       gl_cv_next_sys_time_h='<'sys/time.h'>'
27939     else
27940       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
27941$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
27942if ${gl_cv_next_sys_time_h+:} false; then :
27943  $as_echo_n "(cached) " >&6
27944else
27945
27946             if test $ac_cv_header_sys_time_h = yes; then
27947
27948
27949
27950
27951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952/* end confdefs.h.  */
27953#include <sys/time.h>
27954_ACEOF
27955                case "$host_os" in
27956    aix*) gl_absname_cpp="$ac_cpp -C" ;;
27957    *)    gl_absname_cpp="$ac_cpp" ;;
27958  esac
27959
27960  case "$host_os" in
27961    mingw*)
27962                                          gl_dirsep_regex='[/\\]'
27963      ;;
27964    *)
27965      gl_dirsep_regex='\/'
27966      ;;
27967  esac
27968      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27969  gl_header_literal_regex=`echo 'sys/time.h' \
27970                           | sed -e "$gl_make_literal_regex_sed"`
27971  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27972      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27973      s|^/[^/]|//&|
27974      p
27975      q
27976    }'
27977
27978        gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27979  sed -n "$gl_absolute_header_sed"`
27980
27981           gl_header=$gl_cv_absolute_sys_time_h
27982           gl_cv_next_sys_time_h='"'$gl_header'"'
27983          else
27984               gl_cv_next_sys_time_h='<'sys/time.h'>'
27985             fi
27986
27987
27988fi
27989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
27990$as_echo "$gl_cv_next_sys_time_h" >&6; }
27991     fi
27992     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
27993
27994     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27995       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27996       gl_next_as_first_directive='<'sys/time.h'>'
27997     else
27998       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27999       gl_next_as_first_directive=$gl_cv_next_sys_time_h
28000     fi
28001     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
28002
28003
28004
28005
28006
28007  if test $ac_cv_header_sys_time_h != yes; then
28008    HAVE_SYS_TIME_H=0
28009  fi
28010
28011
28012
28013
28014
28015  if test $ac_cv_header_sys_socket_h != yes; then
28016                    for ac_header in winsock2.h
28017do :
28018  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28019if test "x$ac_cv_header_winsock2_h" = xyes; then :
28020  cat >>confdefs.h <<_ACEOF
28021#define HAVE_WINSOCK2_H 1
28022_ACEOF
28023
28024fi
28025
28026done
28027
28028  fi
28029  if test "$ac_cv_header_winsock2_h" = yes; then
28030    HAVE_WINSOCK2_H=1
28031    UNISTD_H_HAVE_WINSOCK2_H=1
28032    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28033  else
28034    HAVE_WINSOCK2_H=0
28035  fi
28036
28037
28038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28039$as_echo_n "checking for struct timeval... " >&6; }
28040if ${gl_cv_sys_struct_timeval+:} false; then :
28041  $as_echo_n "(cached) " >&6
28042else
28043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28044/* end confdefs.h.  */
28045#if HAVE_SYS_TIME_H
28046             #include <sys/time.h>
28047            #endif
28048            #include <time.h>
28049            #if HAVE_WINSOCK2_H
28050            # include <winsock2.h>
28051            #endif
28052
28053int
28054main ()
28055{
28056static struct timeval x; x.tv_sec = x.tv_usec;
28057  ;
28058  return 0;
28059}
28060_ACEOF
28061if ac_fn_c_try_compile "$LINENO"; then :
28062  gl_cv_sys_struct_timeval=yes
28063else
28064  gl_cv_sys_struct_timeval=no
28065fi
28066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28067
28068fi
28069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
28070$as_echo "$gl_cv_sys_struct_timeval" >&6; }
28071  if test $gl_cv_sys_struct_timeval != yes; then
28072    HAVE_STRUCT_TIMEVAL=0
28073  else
28074                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
28075$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
28076if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
28077  $as_echo_n "(cached) " >&6
28078else
28079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28080/* end confdefs.h.  */
28081#if HAVE_SYS_TIME_H
28082               #include <sys/time.h>
28083              #endif
28084              #include <time.h>
28085              #if HAVE_WINSOCK2_H
28086              # include <winsock2.h>
28087              #endif
28088
28089int
28090main ()
28091{
28092static struct timeval x;
28093              typedef int verify_tv_sec_type[
28094                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
28095              ];
28096
28097  ;
28098  return 0;
28099}
28100_ACEOF
28101if ac_fn_c_try_compile "$LINENO"; then :
28102  gl_cv_sys_struct_timeval_tv_sec=yes
28103else
28104  gl_cv_sys_struct_timeval_tv_sec=no
28105fi
28106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28107
28108fi
28109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
28110$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
28111    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
28112      REPLACE_STRUCT_TIMEVAL=1
28113    fi
28114  fi
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127  if test -z "$gl_pthreadlib_body_done"; then
28128    gl_pthread_api=no
28129    LIBPTHREAD=
28130    LIBPMULTITHREAD=
28131    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
28132    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
28133    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
28134if test "x$ac_cv_header_pthread_h" = xyes; then :
28135  gl_have_pthread_h=yes
28136else
28137  gl_have_pthread_h=no
28138fi
28139
28140
28141    if test "$gl_have_pthread_h" = yes; then
28142      # Other possible tests:
28143      #   -lpthreads (FSU threads, PCthreads)
28144      #   -lgthreads
28145      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
28146      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
28147      # the second one only in libpthread, and lock.c needs it.
28148      #
28149      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
28150      # needs -pthread for some reason.  See:
28151      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28152      save_LIBS=$LIBS
28153      for gl_pthread in '' '-pthread'; do
28154        LIBS="$LIBS $gl_pthread"
28155        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28156/* end confdefs.h.  */
28157#include <pthread.h>
28158               pthread_mutex_t m;
28159               pthread_mutexattr_t ma;
28160
28161int
28162main ()
28163{
28164pthread_mutex_lock (&m);
28165               pthread_mutexattr_init (&ma);
28166  ;
28167  return 0;
28168}
28169_ACEOF
28170if ac_fn_c_try_link "$LINENO"; then :
28171  gl_pthread_api=yes
28172           LIBPTHREAD=$gl_pthread
28173           LIBPMULTITHREAD=$gl_pthread
28174fi
28175rm -f core conftest.err conftest.$ac_objext \
28176    conftest$ac_exeext conftest.$ac_ext
28177        LIBS=$save_LIBS
28178        test $gl_pthread_api = yes && break
28179      done
28180
28181      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
28182      # since it is defined as a macro on OSF/1.)
28183      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
28184        # The program links fine without libpthread. But it may actually
28185        # need to link with libpthread in order to create multiple threads.
28186        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
28187$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
28188if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
28189  $as_echo_n "(cached) " >&6
28190else
28191  ac_check_lib_save_LIBS=$LIBS
28192LIBS="-lpthread  $LIBS"
28193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28194/* end confdefs.h.  */
28195
28196/* Override any GCC internal prototype to avoid an error.
28197   Use char because int might match the return type of a GCC
28198   builtin and then its argument prototype would still apply.  */
28199#ifdef __cplusplus
28200extern "C"
28201#endif
28202char pthread_kill ();
28203int
28204main ()
28205{
28206return pthread_kill ();
28207  ;
28208  return 0;
28209}
28210_ACEOF
28211if ac_fn_c_try_link "$LINENO"; then :
28212  ac_cv_lib_pthread_pthread_kill=yes
28213else
28214  ac_cv_lib_pthread_pthread_kill=no
28215fi
28216rm -f core conftest.err conftest.$ac_objext \
28217    conftest$ac_exeext conftest.$ac_ext
28218LIBS=$ac_check_lib_save_LIBS
28219fi
28220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
28221$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
28222if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
28223  LIBPMULTITHREAD=-lpthread
28224           # On Solaris and HP-UX, most pthread functions exist also in libc.
28225           # Therefore pthread_in_use() needs to actually try to create a
28226           # thread: pthread_create from libc will fail, whereas
28227           # pthread_create will actually create a thread.
28228           # On Solaris 10 or newer, this test is no longer needed, because
28229           # libc contains the fully functional pthread functions.
28230           case "$host_os" in
28231             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
28232
28233$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
28234
28235           esac
28236
28237fi
28238
28239      elif test $gl_pthread_api != yes; then
28240        # Some library is needed. Try libpthread and libc_r.
28241        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
28242$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
28243if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
28244  $as_echo_n "(cached) " >&6
28245else
28246  ac_check_lib_save_LIBS=$LIBS
28247LIBS="-lpthread  $LIBS"
28248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28249/* end confdefs.h.  */
28250
28251/* Override any GCC internal prototype to avoid an error.
28252   Use char because int might match the return type of a GCC
28253   builtin and then its argument prototype would still apply.  */
28254#ifdef __cplusplus
28255extern "C"
28256#endif
28257char pthread_kill ();
28258int
28259main ()
28260{
28261return pthread_kill ();
28262  ;
28263  return 0;
28264}
28265_ACEOF
28266if ac_fn_c_try_link "$LINENO"; then :
28267  ac_cv_lib_pthread_pthread_kill=yes
28268else
28269  ac_cv_lib_pthread_pthread_kill=no
28270fi
28271rm -f core conftest.err conftest.$ac_objext \
28272    conftest$ac_exeext conftest.$ac_ext
28273LIBS=$ac_check_lib_save_LIBS
28274fi
28275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
28276$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
28277if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
28278  gl_pthread_api=yes
28279           LIBPTHREAD=-lpthread
28280           LIBPMULTITHREAD=-lpthread
28281fi
28282
28283        if test $gl_pthread_api != yes; then
28284          # For FreeBSD 4.
28285          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
28286$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
28287if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
28288  $as_echo_n "(cached) " >&6
28289else
28290  ac_check_lib_save_LIBS=$LIBS
28291LIBS="-lc_r  $LIBS"
28292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28293/* end confdefs.h.  */
28294
28295/* Override any GCC internal prototype to avoid an error.
28296   Use char because int might match the return type of a GCC
28297   builtin and then its argument prototype would still apply.  */
28298#ifdef __cplusplus
28299extern "C"
28300#endif
28301char pthread_kill ();
28302int
28303main ()
28304{
28305return pthread_kill ();
28306  ;
28307  return 0;
28308}
28309_ACEOF
28310if ac_fn_c_try_link "$LINENO"; then :
28311  ac_cv_lib_c_r_pthread_kill=yes
28312else
28313  ac_cv_lib_c_r_pthread_kill=no
28314fi
28315rm -f core conftest.err conftest.$ac_objext \
28316    conftest$ac_exeext conftest.$ac_ext
28317LIBS=$ac_check_lib_save_LIBS
28318fi
28319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
28320$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
28321if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
28322  gl_pthread_api=yes
28323             LIBPTHREAD=-lc_r
28324             LIBPMULTITHREAD=-lc_r
28325fi
28326
28327        fi
28328      fi
28329    fi
28330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
28331$as_echo_n "checking whether POSIX threads API is available... " >&6; }
28332    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
28333$as_echo "$gl_pthread_api" >&6; }
28334
28335
28336    if test $gl_pthread_api = yes; then
28337
28338$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
28339
28340    fi
28341
28342        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343/* end confdefs.h.  */
28344#include <sched.h>
28345int
28346main ()
28347{
28348sched_yield ();
28349  ;
28350  return 0;
28351}
28352_ACEOF
28353if ac_fn_c_try_link "$LINENO"; then :
28354  LIB_SCHED_YIELD=
28355
28356else
28357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
28358$as_echo_n "checking for sched_yield in -lrt... " >&6; }
28359if ${ac_cv_lib_rt_sched_yield+:} false; then :
28360  $as_echo_n "(cached) " >&6
28361else
28362  ac_check_lib_save_LIBS=$LIBS
28363LIBS="-lrt  $LIBS"
28364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365/* end confdefs.h.  */
28366
28367/* Override any GCC internal prototype to avoid an error.
28368   Use char because int might match the return type of a GCC
28369   builtin and then its argument prototype would still apply.  */
28370#ifdef __cplusplus
28371extern "C"
28372#endif
28373char sched_yield ();
28374int
28375main ()
28376{
28377return sched_yield ();
28378  ;
28379  return 0;
28380}
28381_ACEOF
28382if ac_fn_c_try_link "$LINENO"; then :
28383  ac_cv_lib_rt_sched_yield=yes
28384else
28385  ac_cv_lib_rt_sched_yield=no
28386fi
28387rm -f core conftest.err conftest.$ac_objext \
28388    conftest$ac_exeext conftest.$ac_ext
28389LIBS=$ac_check_lib_save_LIBS
28390fi
28391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
28392$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
28393if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
28394  LIB_SCHED_YIELD=-lrt
28395else
28396            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
28397$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
28398if ${ac_cv_lib_posix4_sched_yield+:} false; then :
28399  $as_echo_n "(cached) " >&6
28400else
28401  ac_check_lib_save_LIBS=$LIBS
28402LIBS="-lposix4  $LIBS"
28403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28404/* end confdefs.h.  */
28405
28406/* Override any GCC internal prototype to avoid an error.
28407   Use char because int might match the return type of a GCC
28408   builtin and then its argument prototype would still apply.  */
28409#ifdef __cplusplus
28410extern "C"
28411#endif
28412char sched_yield ();
28413int
28414main ()
28415{
28416return sched_yield ();
28417  ;
28418  return 0;
28419}
28420_ACEOF
28421if ac_fn_c_try_link "$LINENO"; then :
28422  ac_cv_lib_posix4_sched_yield=yes
28423else
28424  ac_cv_lib_posix4_sched_yield=no
28425fi
28426rm -f core conftest.err conftest.$ac_objext \
28427    conftest$ac_exeext conftest.$ac_ext
28428LIBS=$ac_check_lib_save_LIBS
28429fi
28430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
28431$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
28432if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
28433  LIB_SCHED_YIELD=-lposix4
28434fi
28435
28436fi
28437
28438
28439fi
28440rm -f core conftest.err conftest.$ac_objext \
28441    conftest$ac_exeext conftest.$ac_ext
28442
28443
28444    gl_pthreadlib_body_done=done
28445  fi
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
28456$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
28457if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
28458  $as_echo_n "(cached) " >&6
28459else
28460  case "$host_os" in
28461       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
28462       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
28463         gl_cv_func_setlocale_null_all_mtsafe=no ;;
28464       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
28465       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
28466         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
28467       # If we don't know, obey --enable-cross-guesses.
28468       *)
28469         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
28470     esac
28471
28472fi
28473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
28474$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
28475    case "$host_os" in
28476    mingw*) ;;
28477    *)
28478      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
28479        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
28480      fi
28481      ;;
28482  esac
28483  case "$gl_cv_func_setlocale_null_all_mtsafe" in
28484    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
28485    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
28486  esac
28487
28488cat >>confdefs.h <<_ACEOF
28489#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
28490_ACEOF
28491
28492
28493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
28494$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
28495if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
28496  $as_echo_n "(cached) " >&6
28497else
28498  case "$host_os" in
28499       # Guess no on OpenBSD, AIX.
28500       openbsd* | aix*)
28501         gl_cv_func_setlocale_null_one_mtsafe=no ;;
28502       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
28503       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
28504         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
28505       # If we don't know, obey --enable-cross-guesses.
28506       *)
28507         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
28508     esac
28509
28510fi
28511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
28512$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
28513    case "$host_os" in
28514    mingw*) ;;
28515    *)
28516      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
28517        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
28518      fi
28519      ;;
28520  esac
28521  case "$gl_cv_func_setlocale_null_one_mtsafe" in
28522    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
28523    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
28524  esac
28525
28526cat >>confdefs.h <<_ACEOF
28527#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
28528_ACEOF
28529
28530
28531    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
28532    case "$host_os" in
28533      mingw*) LIB_SETLOCALE_NULL= ;;
28534      *)
28535
28536
28537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
28538$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
28539if ${gl_cv_have_weak+:} false; then :
28540  $as_echo_n "(cached) " >&6
28541else
28542  gl_cv_have_weak=no
28543          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544/* end confdefs.h.  */
28545extern void xyzzy ();
28546#pragma weak xyzzy
28547int
28548main ()
28549{
28550xyzzy();
28551  ;
28552  return 0;
28553}
28554_ACEOF
28555if ac_fn_c_try_link "$LINENO"; then :
28556  gl_cv_have_weak=maybe
28557fi
28558rm -f core conftest.err conftest.$ac_objext \
28559    conftest$ac_exeext conftest.$ac_ext
28560     if test $gl_cv_have_weak = maybe; then
28561                     if test "$cross_compiling" = yes; then :
28562                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28563/* end confdefs.h.  */
28564#ifdef __ELF__
28565             Extensible Linking Format
28566             #endif
28567
28568_ACEOF
28569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28570  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
28571  gl_cv_have_weak="guessing yes"
28572else
28573  gl_cv_have_weak="guessing no"
28574fi
28575rm -f conftest*
28576
28577
28578else
28579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580/* end confdefs.h.  */
28581
28582#include <stdio.h>
28583#pragma weak fputs
28584int main ()
28585{
28586  return (fputs == NULL);
28587}
28588_ACEOF
28589if ac_fn_c_try_run "$LINENO"; then :
28590  gl_cv_have_weak=yes
28591else
28592  gl_cv_have_weak=no
28593fi
28594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28595  conftest.$ac_objext conftest.beam conftest.$ac_ext
28596fi
28597
28598     fi
28599          case " $LDFLAGS " in
28600       *" -static "*) gl_cv_have_weak=no ;;
28601     esac
28602                    case "$gl_cv_have_weak" in
28603       *yes)
28604         case "$host_os" in
28605           freebsd* | dragonfly*)
28606             : > conftest1.c
28607             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
28608             cat <<EOF > conftest2.c
28609#include <pthread.h>
28610#pragma weak pthread_mutexattr_gettype
28611int main ()
28612{
28613  return (pthread_mutexattr_gettype != NULL);
28614}
28615EOF
28616             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
28617               || gl_cv_have_weak=no
28618             rm -f conftest1.c libempty.so conftest2.c conftest
28619             ;;
28620         esac
28621         ;;
28622     esac
28623
28624fi
28625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
28626$as_echo "$gl_cv_have_weak" >&6; }
28627  case "$gl_cv_have_weak" in
28628    *yes)
28629
28630$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
28631
28632      ;;
28633  esac
28634
28635        case "$gl_cv_have_weak" in
28636          *yes) LIB_SETLOCALE_NULL= ;;
28637          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
28638        esac
28639        ;;
28640    esac
28641  else
28642    LIB_SETLOCALE_NULL=
28643  fi
28644
28645
28646ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
28647if test "x$ac_cv_type_off_t" = xyes; then :
28648
28649else
28650
28651cat >>confdefs.h <<_ACEOF
28652#define off_t long int
28653_ACEOF
28654
28655fi
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669     if test $gl_cv_have_include_next = yes; then
28670       gl_cv_next_limits_h='<'limits.h'>'
28671     else
28672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
28673$as_echo_n "checking absolute name of <limits.h>... " >&6; }
28674if ${gl_cv_next_limits_h+:} false; then :
28675  $as_echo_n "(cached) " >&6
28676else
28677
28678             if test $ac_cv_header_limits_h = yes; then
28679
28680
28681
28682
28683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28684/* end confdefs.h.  */
28685#include <limits.h>
28686_ACEOF
28687                case "$host_os" in
28688    aix*) gl_absname_cpp="$ac_cpp -C" ;;
28689    *)    gl_absname_cpp="$ac_cpp" ;;
28690  esac
28691
28692  case "$host_os" in
28693    mingw*)
28694                                          gl_dirsep_regex='[/\\]'
28695      ;;
28696    *)
28697      gl_dirsep_regex='\/'
28698      ;;
28699  esac
28700      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28701  gl_header_literal_regex=`echo 'limits.h' \
28702                           | sed -e "$gl_make_literal_regex_sed"`
28703  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28704      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28705      s|^/[^/]|//&|
28706      p
28707      q
28708    }'
28709
28710        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28711  sed -n "$gl_absolute_header_sed"`
28712
28713           gl_header=$gl_cv_absolute_limits_h
28714           gl_cv_next_limits_h='"'$gl_header'"'
28715          else
28716               gl_cv_next_limits_h='<'limits.h'>'
28717             fi
28718
28719
28720fi
28721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
28722$as_echo "$gl_cv_next_limits_h" >&6; }
28723     fi
28724     NEXT_LIMITS_H=$gl_cv_next_limits_h
28725
28726     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28727       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28728       gl_next_as_first_directive='<'limits.h'>'
28729     else
28730       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28731       gl_next_as_first_directive=$gl_cv_next_limits_h
28732     fi
28733     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
28734
28735
28736
28737
28738
28739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
28740$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
28741if ${gl_cv_header_limits_width+:} false; then :
28742  $as_echo_n "(cached) " >&6
28743else
28744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28745/* end confdefs.h.  */
28746#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
28747             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
28748            #endif
28749            #include <limits.h>
28750            long long llm = LLONG_MAX;
28751            int wb = WORD_BIT;
28752            int ullw = ULLONG_WIDTH;
28753
28754int
28755main ()
28756{
28757
28758  ;
28759  return 0;
28760}
28761_ACEOF
28762if ac_fn_c_try_compile "$LINENO"; then :
28763  gl_cv_header_limits_width=yes
28764else
28765  gl_cv_header_limits_width=no
28766fi
28767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28768fi
28769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
28770$as_echo "$gl_cv_header_limits_width" >&6; }
28771  if test "$gl_cv_header_limits_width" = yes; then
28772    LIMITS_H=
28773  else
28774    LIMITS_H=limits.h
28775  fi
28776
28777   if test -n "$LIMITS_H"; then
28778  GL_GENERATE_LIMITS_H_TRUE=
28779  GL_GENERATE_LIMITS_H_FALSE='#'
28780else
28781  GL_GENERATE_LIMITS_H_TRUE='#'
28782  GL_GENERATE_LIMITS_H_FALSE=
28783fi
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
28797
28798
28799$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
28800
28801
28802
28803  if test $ac_cv_header_wchar_h = yes; then
28804    HAVE_WCHAR_H=1
28805  else
28806    HAVE_WCHAR_H=0
28807  fi
28808
28809
28810      if test $ac_cv_header_inttypes_h = yes; then
28811    HAVE_INTTYPES_H=1
28812  else
28813    HAVE_INTTYPES_H=0
28814  fi
28815
28816
28817      if test $ac_cv_header_sys_types_h = yes; then
28818    HAVE_SYS_TYPES_H=1
28819  else
28820    HAVE_SYS_TYPES_H=0
28821  fi
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833     if test $gl_cv_have_include_next = yes; then
28834       gl_cv_next_stdint_h='<'stdint.h'>'
28835     else
28836       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
28837$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
28838if ${gl_cv_next_stdint_h+:} false; then :
28839  $as_echo_n "(cached) " >&6
28840else
28841
28842             if test $ac_cv_header_stdint_h = yes; then
28843
28844
28845
28846
28847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28848/* end confdefs.h.  */
28849#include <stdint.h>
28850_ACEOF
28851                case "$host_os" in
28852    aix*) gl_absname_cpp="$ac_cpp -C" ;;
28853    *)    gl_absname_cpp="$ac_cpp" ;;
28854  esac
28855
28856  case "$host_os" in
28857    mingw*)
28858                                          gl_dirsep_regex='[/\\]'
28859      ;;
28860    *)
28861      gl_dirsep_regex='\/'
28862      ;;
28863  esac
28864      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28865  gl_header_literal_regex=`echo 'stdint.h' \
28866                           | sed -e "$gl_make_literal_regex_sed"`
28867  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28868      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28869      s|^/[^/]|//&|
28870      p
28871      q
28872    }'
28873
28874        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28875  sed -n "$gl_absolute_header_sed"`
28876
28877           gl_header=$gl_cv_absolute_stdint_h
28878           gl_cv_next_stdint_h='"'$gl_header'"'
28879          else
28880               gl_cv_next_stdint_h='<'stdint.h'>'
28881             fi
28882
28883
28884fi
28885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
28886$as_echo "$gl_cv_next_stdint_h" >&6; }
28887     fi
28888     NEXT_STDINT_H=$gl_cv_next_stdint_h
28889
28890     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28891       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28892       gl_next_as_first_directive='<'stdint.h'>'
28893     else
28894       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28895       gl_next_as_first_directive=$gl_cv_next_stdint_h
28896     fi
28897     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
28898
28899
28900
28901
28902  if test $ac_cv_header_stdint_h = yes; then
28903    HAVE_STDINT_H=1
28904  else
28905    HAVE_STDINT_H=0
28906  fi
28907
28908
28909    if test $ac_cv_header_stdint_h = yes; then
28910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
28911$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
28912if ${gl_cv_header_working_stdint_h+:} false; then :
28913  $as_echo_n "(cached) " >&6
28914else
28915  gl_cv_header_working_stdint_h=no
28916       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917/* end confdefs.h.  */
28918
28919
28920#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28921#define __STDC_CONSTANT_MACROS 1
28922#define __STDC_LIMIT_MACROS 1
28923#include <stdint.h>
28924/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
28925#if !(defined WCHAR_MIN && defined WCHAR_MAX)
28926#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
28927#endif
28928
28929
28930  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28931     included before <wchar.h>.  */
28932  #include <stddef.h>
28933  #include <signal.h>
28934  #if HAVE_WCHAR_H
28935  # include <stdio.h>
28936  # include <time.h>
28937  # include <wchar.h>
28938  #endif
28939
28940
28941#ifdef INT8_MAX
28942int8_t a1 = INT8_MAX;
28943int8_t a1min = INT8_MIN;
28944#endif
28945#ifdef INT16_MAX
28946int16_t a2 = INT16_MAX;
28947int16_t a2min = INT16_MIN;
28948#endif
28949#ifdef INT32_MAX
28950int32_t a3 = INT32_MAX;
28951int32_t a3min = INT32_MIN;
28952#endif
28953#ifdef INT64_MAX
28954int64_t a4 = INT64_MAX;
28955int64_t a4min = INT64_MIN;
28956#endif
28957#ifdef UINT8_MAX
28958uint8_t b1 = UINT8_MAX;
28959#else
28960typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28961#endif
28962#ifdef UINT16_MAX
28963uint16_t b2 = UINT16_MAX;
28964#endif
28965#ifdef UINT32_MAX
28966uint32_t b3 = UINT32_MAX;
28967#endif
28968#ifdef UINT64_MAX
28969uint64_t b4 = UINT64_MAX;
28970#endif
28971int_least8_t c1 = INT8_C (0x7f);
28972int_least8_t c1max = INT_LEAST8_MAX;
28973int_least8_t c1min = INT_LEAST8_MIN;
28974int_least16_t c2 = INT16_C (0x7fff);
28975int_least16_t c2max = INT_LEAST16_MAX;
28976int_least16_t c2min = INT_LEAST16_MIN;
28977int_least32_t c3 = INT32_C (0x7fffffff);
28978int_least32_t c3max = INT_LEAST32_MAX;
28979int_least32_t c3min = INT_LEAST32_MIN;
28980int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28981int_least64_t c4max = INT_LEAST64_MAX;
28982int_least64_t c4min = INT_LEAST64_MIN;
28983uint_least8_t d1 = UINT8_C (0xff);
28984uint_least8_t d1max = UINT_LEAST8_MAX;
28985uint_least16_t d2 = UINT16_C (0xffff);
28986uint_least16_t d2max = UINT_LEAST16_MAX;
28987uint_least32_t d3 = UINT32_C (0xffffffff);
28988uint_least32_t d3max = UINT_LEAST32_MAX;
28989uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28990uint_least64_t d4max = UINT_LEAST64_MAX;
28991int_fast8_t e1 = INT_FAST8_MAX;
28992int_fast8_t e1min = INT_FAST8_MIN;
28993int_fast16_t e2 = INT_FAST16_MAX;
28994int_fast16_t e2min = INT_FAST16_MIN;
28995int_fast32_t e3 = INT_FAST32_MAX;
28996int_fast32_t e3min = INT_FAST32_MIN;
28997int_fast64_t e4 = INT_FAST64_MAX;
28998int_fast64_t e4min = INT_FAST64_MIN;
28999uint_fast8_t f1 = UINT_FAST8_MAX;
29000uint_fast16_t f2 = UINT_FAST16_MAX;
29001uint_fast32_t f3 = UINT_FAST32_MAX;
29002uint_fast64_t f4 = UINT_FAST64_MAX;
29003#ifdef INTPTR_MAX
29004intptr_t g = INTPTR_MAX;
29005intptr_t gmin = INTPTR_MIN;
29006#endif
29007#ifdef UINTPTR_MAX
29008uintptr_t h = UINTPTR_MAX;
29009#endif
29010intmax_t i = INTMAX_MAX;
29011uintmax_t j = UINTMAX_MAX;
29012
29013/* Check that SIZE_MAX has the correct type, if possible.  */
29014#if 201112 <= __STDC_VERSION__
29015int k = _Generic (SIZE_MAX, size_t: 0);
29016#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
29017       || (0x5110 <= __SUNPRO_C && !__STDC__))
29018extern size_t k;
29019extern __typeof__ (SIZE_MAX) k;
29020#endif
29021
29022#include <limits.h> /* for CHAR_BIT */
29023#define TYPE_MINIMUM(t) \
29024  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
29025#define TYPE_MAXIMUM(t) \
29026  ((t) ((t) 0 < (t) -1 \
29027        ? (t) -1 \
29028        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
29029struct s {
29030  int check_PTRDIFF:
29031      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
29032      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
29033      ? 1 : -1;
29034  /* Detect bug in FreeBSD 6.0 / ia64.  */
29035  int check_SIG_ATOMIC:
29036      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
29037      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
29038      ? 1 : -1;
29039  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
29040  int check_WCHAR:
29041      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
29042      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
29043      ? 1 : -1;
29044  /* Detect bug in mingw.  */
29045  int check_WINT:
29046      WINT_MIN == TYPE_MINIMUM (wint_t)
29047      && WINT_MAX == TYPE_MAXIMUM (wint_t)
29048      ? 1 : -1;
29049
29050  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
29051  int check_UINT8_C:
29052        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
29053  int check_UINT16_C:
29054        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
29055
29056  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
29057#ifdef UINT8_MAX
29058  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
29059#endif
29060#ifdef UINT16_MAX
29061  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
29062#endif
29063#ifdef UINT32_MAX
29064  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
29065#endif
29066#ifdef UINT64_MAX
29067  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
29068#endif
29069  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
29070  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
29071  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
29072  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
29073  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
29074  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
29075  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
29076  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
29077  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
29078  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
29079  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
29080};
29081
29082int
29083main ()
29084{
29085
29086  ;
29087  return 0;
29088}
29089_ACEOF
29090if ac_fn_c_try_compile "$LINENO"; then :
29091                                                    if test "$cross_compiling" = yes; then :
29092  case "$host_os" in
29093                         # Guess yes on native Windows.
29094                 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
29095                         # In general, assume it works.
29096                 *)      gl_cv_header_working_stdint_h="guessing yes" ;;
29097               esac
29098
29099else
29100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29101/* end confdefs.h.  */
29102
29103
29104#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29105#define __STDC_CONSTANT_MACROS 1
29106#define __STDC_LIMIT_MACROS 1
29107#include <stdint.h>
29108
29109
29110  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29111     included before <wchar.h>.  */
29112  #include <stddef.h>
29113  #include <signal.h>
29114  #if HAVE_WCHAR_H
29115  # include <stdio.h>
29116  # include <time.h>
29117  # include <wchar.h>
29118  #endif
29119
29120
29121#include <stdio.h>
29122#include <string.h>
29123#define MVAL(macro) MVAL1(macro)
29124#define MVAL1(expression) #expression
29125static const char *macro_values[] =
29126  {
29127#ifdef INT8_MAX
29128    MVAL (INT8_MAX),
29129#endif
29130#ifdef INT16_MAX
29131    MVAL (INT16_MAX),
29132#endif
29133#ifdef INT32_MAX
29134    MVAL (INT32_MAX),
29135#endif
29136#ifdef INT64_MAX
29137    MVAL (INT64_MAX),
29138#endif
29139#ifdef UINT8_MAX
29140    MVAL (UINT8_MAX),
29141#endif
29142#ifdef UINT16_MAX
29143    MVAL (UINT16_MAX),
29144#endif
29145#ifdef UINT32_MAX
29146    MVAL (UINT32_MAX),
29147#endif
29148#ifdef UINT64_MAX
29149    MVAL (UINT64_MAX),
29150#endif
29151    NULL
29152  };
29153
29154int
29155main ()
29156{
29157
29158  const char **mv;
29159  for (mv = macro_values; *mv != NULL; mv++)
29160    {
29161      const char *value = *mv;
29162      /* Test whether it looks like a cast expression.  */
29163      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
29164          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
29165          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
29166          || strncmp (value, "((int)"/*)*/, 6) == 0
29167          || strncmp (value, "((signed short)"/*)*/, 15) == 0
29168          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
29169        return mv - macro_values + 1;
29170    }
29171  return 0;
29172
29173  ;
29174  return 0;
29175}
29176_ACEOF
29177if ac_fn_c_try_run "$LINENO"; then :
29178  gl_cv_header_working_stdint_h=yes
29179fi
29180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29181  conftest.$ac_objext conftest.beam conftest.$ac_ext
29182fi
29183
29184
29185fi
29186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29187
29188fi
29189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
29190$as_echo "$gl_cv_header_working_stdint_h" >&6; }
29191  fi
29192
29193  HAVE_C99_STDINT_H=0
29194  HAVE_SYS_BITYPES_H=0
29195  HAVE_SYS_INTTYPES_H=0
29196  STDINT_H=stdint.h
29197  case "$gl_cv_header_working_stdint_h" in
29198    *yes)
29199      HAVE_C99_STDINT_H=1
29200                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
29201$as_echo_n "checking whether stdint.h predates C++11... " >&6; }
29202if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
29203  $as_echo_n "(cached) " >&6
29204else
29205  gl_cv_header_stdint_predates_cxx11_h=yes
29206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29207/* end confdefs.h.  */
29208
29209
29210#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29211#include <stdint.h>
29212
29213
29214  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29215     included before <wchar.h>.  */
29216  #include <stddef.h>
29217  #include <signal.h>
29218  #if HAVE_WCHAR_H
29219  # include <stdio.h>
29220  # include <time.h>
29221  # include <wchar.h>
29222  #endif
29223
29224
29225intmax_t im = INTMAX_MAX;
29226int32_t i32 = INT32_C (0x7fffffff);
29227
29228int
29229main ()
29230{
29231
29232  ;
29233  return 0;
29234}
29235_ACEOF
29236if ac_fn_c_try_compile "$LINENO"; then :
29237  gl_cv_header_stdint_predates_cxx11_h=no
29238fi
29239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29240fi
29241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
29242$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
29243
29244      if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
29245
29246$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
29247
29248
29249$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
29250
29251      fi
29252      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
29253$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
29254if ${gl_cv_header_stdint_width+:} false; then :
29255  $as_echo_n "(cached) " >&6
29256else
29257  gl_cv_header_stdint_width=no
29258         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259/* end confdefs.h.  */
29260
29261              /* Work if build is not clean.  */
29262              #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
29263              #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
29264               #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
29265              #endif
29266              #include <stdint.h>
29267
29268  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29269     included before <wchar.h>.  */
29270  #include <stddef.h>
29271  #include <signal.h>
29272  #if HAVE_WCHAR_H
29273  # include <stdio.h>
29274  # include <time.h>
29275  # include <wchar.h>
29276  #endif
29277
29278              int iw = UINTMAX_WIDTH;
29279
29280int
29281main ()
29282{
29283
29284  ;
29285  return 0;
29286}
29287_ACEOF
29288if ac_fn_c_try_compile "$LINENO"; then :
29289  gl_cv_header_stdint_width=yes
29290fi
29291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29292fi
29293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
29294$as_echo "$gl_cv_header_stdint_width" >&6; }
29295      if test "$gl_cv_header_stdint_width" = yes; then
29296        STDINT_H=
29297      fi
29298      ;;
29299    *)
29300                  for ac_header in sys/inttypes.h sys/bitypes.h
29301do :
29302  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29303ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29305  cat >>confdefs.h <<_ACEOF
29306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29307_ACEOF
29308
29309fi
29310
29311done
29312
29313      if test $ac_cv_header_sys_inttypes_h = yes; then
29314        HAVE_SYS_INTTYPES_H=1
29315      fi
29316      if test $ac_cv_header_sys_bitypes_h = yes; then
29317        HAVE_SYS_BITYPES_H=1
29318      fi
29319
29320
29321  if test $APPLE_UNIVERSAL_BUILD = 0; then
29322
29323
29324  for gltype in ptrdiff_t size_t ; do
29325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
29326$as_echo_n "checking for bit size of $gltype... " >&6; }
29327if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
29328  $as_echo_n "(cached) " >&6
29329else
29330  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
29331  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29332     included before <wchar.h>.  */
29333  #include <stddef.h>
29334  #include <signal.h>
29335  #if HAVE_WCHAR_H
29336  # include <stdio.h>
29337  # include <time.h>
29338  # include <wchar.h>
29339  #endif
29340
29341#include <limits.h>"; then :
29342
29343else
29344  result=unknown
29345fi
29346
29347       eval gl_cv_bitsizeof_${gltype}=\$result
29348
29349fi
29350eval ac_res=\$gl_cv_bitsizeof_${gltype}
29351	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29352$as_echo "$ac_res" >&6; }
29353    eval result=\$gl_cv_bitsizeof_${gltype}
29354    if test $result = unknown; then
29355                                                result=0
29356    fi
29357    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29358    cat >>confdefs.h <<_ACEOF
29359#define BITSIZEOF_${GLTYPE} $result
29360_ACEOF
29361
29362    eval BITSIZEOF_${GLTYPE}=\$result
29363  done
29364
29365
29366  fi
29367
29368
29369  for gltype in sig_atomic_t wchar_t wint_t ; do
29370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
29371$as_echo_n "checking for bit size of $gltype... " >&6; }
29372if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
29373  $as_echo_n "(cached) " >&6
29374else
29375  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
29376  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29377     included before <wchar.h>.  */
29378  #include <stddef.h>
29379  #include <signal.h>
29380  #if HAVE_WCHAR_H
29381  # include <stdio.h>
29382  # include <time.h>
29383  # include <wchar.h>
29384  #endif
29385
29386#include <limits.h>"; then :
29387
29388else
29389  result=unknown
29390fi
29391
29392       eval gl_cv_bitsizeof_${gltype}=\$result
29393
29394fi
29395eval ac_res=\$gl_cv_bitsizeof_${gltype}
29396	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29397$as_echo "$ac_res" >&6; }
29398    eval result=\$gl_cv_bitsizeof_${gltype}
29399    if test $result = unknown; then
29400                                                result=0
29401    fi
29402    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29403    cat >>confdefs.h <<_ACEOF
29404#define BITSIZEOF_${GLTYPE} $result
29405_ACEOF
29406
29407    eval BITSIZEOF_${GLTYPE}=\$result
29408  done
29409
29410
29411
29412
29413  for gltype in sig_atomic_t wchar_t wint_t ; do
29414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
29415$as_echo_n "checking whether $gltype is signed... " >&6; }
29416if eval \${gl_cv_type_${gltype}_signed+:} false; then :
29417  $as_echo_n "(cached) " >&6
29418else
29419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29420/* end confdefs.h.  */
29421
29422  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29423     included before <wchar.h>.  */
29424  #include <stddef.h>
29425  #include <signal.h>
29426  #if HAVE_WCHAR_H
29427  # include <stdio.h>
29428  # include <time.h>
29429  # include <wchar.h>
29430  #endif
29431
29432            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
29433int
29434main ()
29435{
29436
29437  ;
29438  return 0;
29439}
29440_ACEOF
29441if ac_fn_c_try_compile "$LINENO"; then :
29442  result=yes
29443else
29444  result=no
29445fi
29446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29447       eval gl_cv_type_${gltype}_signed=\$result
29448
29449fi
29450eval ac_res=\$gl_cv_type_${gltype}_signed
29451	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29452$as_echo "$ac_res" >&6; }
29453    eval result=\$gl_cv_type_${gltype}_signed
29454    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29455    if test "$result" = yes; then
29456      cat >>confdefs.h <<_ACEOF
29457#define HAVE_SIGNED_${GLTYPE} 1
29458_ACEOF
29459
29460      eval HAVE_SIGNED_${GLTYPE}=1
29461    else
29462      eval HAVE_SIGNED_${GLTYPE}=0
29463    fi
29464  done
29465
29466
29467  gl_cv_type_ptrdiff_t_signed=yes
29468  gl_cv_type_size_t_signed=no
29469  if test $APPLE_UNIVERSAL_BUILD = 0; then
29470
29471
29472  for gltype in ptrdiff_t size_t ; do
29473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
29474$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
29475if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
29476  $as_echo_n "(cached) " >&6
29477else
29478  eval gl_cv_type_${gltype}_suffix=no
29479       eval result=\$gl_cv_type_${gltype}_signed
29480       if test "$result" = yes; then
29481         glsufu=
29482       else
29483         glsufu=u
29484       fi
29485       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29486         case $glsuf in
29487           '')  gltype1='int';;
29488           l)   gltype1='long int';;
29489           ll)  gltype1='long long int';;
29490           i64) gltype1='__int64';;
29491           u)   gltype1='unsigned int';;
29492           ul)  gltype1='unsigned long int';;
29493           ull) gltype1='unsigned long long int';;
29494           ui64)gltype1='unsigned __int64';;
29495         esac
29496         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497/* end confdefs.h.  */
29498
29499  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29500     included before <wchar.h>.  */
29501  #include <stddef.h>
29502  #include <signal.h>
29503  #if HAVE_WCHAR_H
29504  # include <stdio.h>
29505  # include <time.h>
29506  # include <wchar.h>
29507  #endif
29508
29509              extern $gltype foo;
29510              extern $gltype1 foo;
29511int
29512main ()
29513{
29514
29515  ;
29516  return 0;
29517}
29518_ACEOF
29519if ac_fn_c_try_compile "$LINENO"; then :
29520  eval gl_cv_type_${gltype}_suffix=\$glsuf
29521fi
29522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29523         eval result=\$gl_cv_type_${gltype}_suffix
29524         test "$result" != no && break
29525       done
29526fi
29527eval ac_res=\$gl_cv_type_${gltype}_suffix
29528	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29529$as_echo "$ac_res" >&6; }
29530    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29531    eval result=\$gl_cv_type_${gltype}_suffix
29532    test "$result" = no && result=
29533    eval ${GLTYPE}_SUFFIX=\$result
29534    cat >>confdefs.h <<_ACEOF
29535#define ${GLTYPE}_SUFFIX $result
29536_ACEOF
29537
29538  done
29539
29540
29541  fi
29542
29543
29544  for gltype in sig_atomic_t wchar_t wint_t ; do
29545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
29546$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
29547if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
29548  $as_echo_n "(cached) " >&6
29549else
29550  eval gl_cv_type_${gltype}_suffix=no
29551       eval result=\$gl_cv_type_${gltype}_signed
29552       if test "$result" = yes; then
29553         glsufu=
29554       else
29555         glsufu=u
29556       fi
29557       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29558         case $glsuf in
29559           '')  gltype1='int';;
29560           l)   gltype1='long int';;
29561           ll)  gltype1='long long int';;
29562           i64) gltype1='__int64';;
29563           u)   gltype1='unsigned int';;
29564           ul)  gltype1='unsigned long int';;
29565           ull) gltype1='unsigned long long int';;
29566           ui64)gltype1='unsigned __int64';;
29567         esac
29568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29569/* end confdefs.h.  */
29570
29571  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29572     included before <wchar.h>.  */
29573  #include <stddef.h>
29574  #include <signal.h>
29575  #if HAVE_WCHAR_H
29576  # include <stdio.h>
29577  # include <time.h>
29578  # include <wchar.h>
29579  #endif
29580
29581              extern $gltype foo;
29582              extern $gltype1 foo;
29583int
29584main ()
29585{
29586
29587  ;
29588  return 0;
29589}
29590_ACEOF
29591if ac_fn_c_try_compile "$LINENO"; then :
29592  eval gl_cv_type_${gltype}_suffix=\$glsuf
29593fi
29594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29595         eval result=\$gl_cv_type_${gltype}_suffix
29596         test "$result" != no && break
29597       done
29598fi
29599eval ac_res=\$gl_cv_type_${gltype}_suffix
29600	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29601$as_echo "$ac_res" >&6; }
29602    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29603    eval result=\$gl_cv_type_${gltype}_suffix
29604    test "$result" = no && result=
29605    eval ${GLTYPE}_SUFFIX=\$result
29606    cat >>confdefs.h <<_ACEOF
29607#define ${GLTYPE}_SUFFIX $result
29608_ACEOF
29609
29610  done
29611
29612
29613
29614          if test $GNULIB_OVERRIDES_WINT_T = 1; then
29615    BITSIZEOF_WINT_T=32
29616  fi
29617
29618      ;;
29619  esac
29620
29621
29622
29623  LIMITS_H='limits.h'
29624   if test -n "$LIMITS_H"; then
29625  GL_GENERATE_LIMITS_H_TRUE=
29626  GL_GENERATE_LIMITS_H_FALSE='#'
29627else
29628  GL_GENERATE_LIMITS_H_TRUE='#'
29629  GL_GENERATE_LIMITS_H_FALSE=
29630fi
29631
29632
29633
29634
29635
29636
29637
29638   if test -n "$STDINT_H"; then
29639  GL_GENERATE_STDINT_H_TRUE=
29640  GL_GENERATE_STDINT_H_FALSE='#'
29641else
29642  GL_GENERATE_STDINT_H_TRUE='#'
29643  GL_GENERATE_STDINT_H_FALSE=
29644fi
29645
29646
29647
29648
29649
29650  GNULIB_IMAXABS=0;
29651  GNULIB_IMAXDIV=0;
29652  GNULIB_STRTOIMAX=0;
29653  GNULIB_STRTOUMAX=0;
29654    HAVE_DECL_IMAXABS=1;
29655  HAVE_DECL_IMAXDIV=1;
29656  HAVE_DECL_STRTOIMAX=1;
29657  HAVE_DECL_STRTOUMAX=1;
29658  HAVE_IMAXDIV_T=1;
29659  REPLACE_STRTOIMAX=0;
29660  REPLACE_STRTOUMAX=0;
29661  INT32_MAX_LT_INTMAX_MAX=1;
29662  INT64_MAX_EQ_LONG_MAX='defined _LP64';
29663  PRIPTR_PREFIX=__PRIPTR_PREFIX;
29664  UINT32_MAX_LT_UINTMAX_MAX=1;
29665  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681     if test $gl_cv_have_include_next = yes; then
29682       gl_cv_next_inttypes_h='<'inttypes.h'>'
29683     else
29684       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
29685$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
29686if ${gl_cv_next_inttypes_h+:} false; then :
29687  $as_echo_n "(cached) " >&6
29688else
29689
29690             if test $ac_cv_header_inttypes_h = yes; then
29691
29692
29693
29694
29695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29696/* end confdefs.h.  */
29697#include <inttypes.h>
29698_ACEOF
29699                case "$host_os" in
29700    aix*) gl_absname_cpp="$ac_cpp -C" ;;
29701    *)    gl_absname_cpp="$ac_cpp" ;;
29702  esac
29703
29704  case "$host_os" in
29705    mingw*)
29706                                          gl_dirsep_regex='[/\\]'
29707      ;;
29708    *)
29709      gl_dirsep_regex='\/'
29710      ;;
29711  esac
29712      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29713  gl_header_literal_regex=`echo 'inttypes.h' \
29714                           | sed -e "$gl_make_literal_regex_sed"`
29715  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29716      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29717      s|^/[^/]|//&|
29718      p
29719      q
29720    }'
29721
29722        gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29723  sed -n "$gl_absolute_header_sed"`
29724
29725           gl_header=$gl_cv_absolute_inttypes_h
29726           gl_cv_next_inttypes_h='"'$gl_header'"'
29727          else
29728               gl_cv_next_inttypes_h='<'inttypes.h'>'
29729             fi
29730
29731
29732fi
29733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
29734$as_echo "$gl_cv_next_inttypes_h" >&6; }
29735     fi
29736     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
29737
29738     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29739       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29740       gl_next_as_first_directive='<'inttypes.h'>'
29741     else
29742       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29743       gl_next_as_first_directive=$gl_cv_next_inttypes_h
29744     fi
29745     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
29761$as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
29762if ${gl_cv_cc_float_expbit0+:} false; then :
29763  $as_echo_n "(cached) " >&6
29764else
29765
29766      if test "$cross_compiling" = yes; then :
29767  gl_cv_cc_float_expbit0="word 0 bit 23"
29768else
29769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29770/* end confdefs.h.  */
29771
29772#include <float.h>
29773#include <stddef.h>
29774#include <stdio.h>
29775#include <string.h>
29776#define NWORDS \
29777  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
29778typedef union { float value; unsigned int word[NWORDS]; } memory_float;
29779static unsigned int ored_words[NWORDS];
29780static unsigned int anded_words[NWORDS];
29781static void add_to_ored_words (float x)
29782{
29783  memory_float m;
29784  size_t i;
29785  /* Clear it first, in case
29786     sizeof (float) < sizeof (memory_float).  */
29787  memset (&m, 0, sizeof (memory_float));
29788  m.value = x;
29789  for (i = 0; i < NWORDS; i++)
29790    {
29791      ored_words[i] |= m.word[i];
29792      anded_words[i] &= m.word[i];
29793    }
29794}
29795int main ()
29796{
29797  size_t j;
29798  FILE *fp = fopen ("conftest.out", "w");
29799  if (fp == NULL)
29800    return 1;
29801  for (j = 0; j < NWORDS; j++)
29802    anded_words[j] = ~ (unsigned int) 0;
29803  add_to_ored_words (0.25f);
29804  add_to_ored_words (0.5f);
29805  add_to_ored_words (1.0f);
29806  add_to_ored_words (2.0f);
29807  add_to_ored_words (4.0f);
29808  /* Remove bits that are common (e.g. if representation of the first mantissa
29809     bit is explicit).  */
29810  for (j = 0; j < NWORDS; j++)
29811    ored_words[j] &= ~anded_words[j];
29812  /* Now find the nonzero word.  */
29813  for (j = 0; j < NWORDS; j++)
29814    if (ored_words[j] != 0)
29815      break;
29816  if (j < NWORDS)
29817    {
29818      size_t i;
29819      for (i = j + 1; i < NWORDS; i++)
29820        if (ored_words[i] != 0)
29821          {
29822            fprintf (fp, "unknown");
29823            return (fclose (fp) != 0);
29824          }
29825      for (i = 0; ; i++)
29826        if ((ored_words[j] >> i) & 1)
29827          {
29828            fprintf (fp, "word %d bit %d", (int) j, (int) i);
29829            return (fclose (fp) != 0);
29830          }
29831    }
29832  fprintf (fp, "unknown");
29833  return (fclose (fp) != 0);
29834}
29835
29836_ACEOF
29837if ac_fn_c_try_run "$LINENO"; then :
29838  gl_cv_cc_float_expbit0=`cat conftest.out`
29839else
29840  gl_cv_cc_float_expbit0="unknown"
29841fi
29842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29843  conftest.$ac_objext conftest.beam conftest.$ac_ext
29844fi
29845
29846      rm -f conftest.out
29847
29848fi
29849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
29850$as_echo "$gl_cv_cc_float_expbit0" >&6; }
29851  case "$gl_cv_cc_float_expbit0" in
29852    word*bit*)
29853      word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
29854      bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
29855
29856cat >>confdefs.h <<_ACEOF
29857#define FLT_EXPBIT0_WORD $word
29858_ACEOF
29859
29860
29861cat >>confdefs.h <<_ACEOF
29862#define FLT_EXPBIT0_BIT $bit
29863_ACEOF
29864
29865      ;;
29866  esac
29867
29868
29869
29870  ISNANF_LIBM=
29871
29872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
29873$as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
29874if ${gl_cv_func_isnanf_no_libm+:} false; then :
29875  $as_echo_n "(cached) " >&6
29876else
29877
29878      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29879/* end confdefs.h.  */
29880#include <math.h>
29881             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
29882             # undef isnanf
29883             # define isnanf(x) __builtin_isnan ((float)(x))
29884             #elif defined isnan
29885             # undef isnanf
29886             # define isnanf(x) isnan ((float)(x))
29887             #endif
29888             float x;
29889int
29890main ()
29891{
29892return isnanf (x);
29893  ;
29894  return 0;
29895}
29896_ACEOF
29897if ac_fn_c_try_link "$LINENO"; then :
29898  gl_cv_func_isnanf_no_libm=yes
29899else
29900  gl_cv_func_isnanf_no_libm=no
29901fi
29902rm -f core conftest.err conftest.$ac_objext \
29903    conftest$ac_exeext conftest.$ac_ext
29904
29905fi
29906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
29907$as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
29908
29909  if test $gl_cv_func_isnanf_no_libm = no; then
29910
29911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
29912$as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
29913if ${gl_cv_func_isnanf_in_libm+:} false; then :
29914  $as_echo_n "(cached) " >&6
29915else
29916
29917      save_LIBS="$LIBS"
29918      LIBS="$LIBS -lm"
29919      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29920/* end confdefs.h.  */
29921#include <math.h>
29922             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
29923             # undef isnanf
29924             # define isnanf(x) __builtin_isnan ((float)(x))
29925             #elif defined isnan
29926             # undef isnanf
29927             # define isnanf(x) isnan ((float)(x))
29928             #endif
29929             float x;
29930int
29931main ()
29932{
29933return isnanf (x);
29934  ;
29935  return 0;
29936}
29937_ACEOF
29938if ac_fn_c_try_link "$LINENO"; then :
29939  gl_cv_func_isnanf_in_libm=yes
29940else
29941  gl_cv_func_isnanf_in_libm=no
29942fi
29943rm -f core conftest.err conftest.$ac_objext \
29944    conftest$ac_exeext conftest.$ac_ext
29945      LIBS="$save_LIBS"
29946
29947fi
29948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
29949$as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
29950
29951    if test $gl_cv_func_isnanf_in_libm = yes; then
29952      ISNANF_LIBM=-lm
29953    fi
29954  fi
29955    if test $gl_cv_func_isnanf_no_libm = yes \
29956     || test $gl_cv_func_isnanf_in_libm = yes; then
29957    save_LIBS="$LIBS"
29958    LIBS="$LIBS $ISNANF_LIBM"
29959
29960
29961
29962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
29963$as_echo_n "checking whether isnan(float) works... " >&6; }
29964if ${gl_cv_func_isnanf_works+:} false; then :
29965  $as_echo_n "(cached) " >&6
29966else
29967
29968      if test "$cross_compiling" = yes; then :
29969  case "$host_os" in
29970           irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
29971           mingw*) # Guess yes on mingw, no on MSVC.
29972             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29973/* end confdefs.h.  */
29974
29975#ifdef __MINGW32__
29976 Known
29977#endif
29978
29979_ACEOF
29980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29981  $EGREP "Known" >/dev/null 2>&1; then :
29982  gl_cv_func_isnanf_works="guessing yes"
29983else
29984  gl_cv_func_isnanf_works="guessing no"
29985fi
29986rm -f conftest*
29987
29988             ;;
29989           *) gl_cv_func_isnanf_works="guessing yes" ;;
29990         esac
29991
29992else
29993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29994/* end confdefs.h.  */
29995
29996#include <math.h>
29997#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
29998# undef isnanf
29999# define isnanf(x) __builtin_isnan ((float)(x))
30000#elif defined isnan
30001# undef isnanf
30002# define isnanf(x) isnan ((float)(x))
30003#endif
30004/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
30005#ifdef __DECC
30006static float
30007NaN ()
30008{
30009  static float zero = 0.0f;
30010  return zero / zero;
30011}
30012#else
30013# define NaN() (0.0f / 0.0f)
30014#endif
30015#define NWORDS \
30016  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
30017typedef union { unsigned int word[NWORDS]; float value; } memory_float;
30018int main()
30019{
30020  int result = 0;
30021
30022  if (isnanf (1.0f / 0.0f))
30023    result |= 1;
30024
30025  if (!isnanf (NaN ()))
30026    result |= 2;
30027
30028#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
30029  /* The isnanf function should be immune against changes in the sign bit and
30030     in the mantissa bits.  The xor operation twiddles a bit that can only be
30031     a sign bit or a mantissa bit.  */
30032  if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
30033    {
30034      memory_float m;
30035
30036      m.value = NaN ();
30037      /* Set the bits below the exponent to 01111...111.  */
30038      m.word[0] &= -1U << FLT_EXPBIT0_BIT;
30039      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
30040      if (!isnanf (m.value))
30041        result |= 4;
30042    }
30043#endif
30044
30045  return result;
30046}
30047_ACEOF
30048if ac_fn_c_try_run "$LINENO"; then :
30049  gl_cv_func_isnanf_works=yes
30050else
30051  gl_cv_func_isnanf_works=no
30052fi
30053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30054  conftest.$ac_objext conftest.beam conftest.$ac_ext
30055fi
30056
30057
30058fi
30059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
30060$as_echo "$gl_cv_func_isnanf_works" >&6; }
30061
30062    LIBS="$save_LIBS"
30063    case "$gl_cv_func_isnanf_works" in
30064      *yes) gl_func_isnanf=yes ;;
30065      *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
30066    esac
30067  else
30068    gl_func_isnanf=no
30069  fi
30070  if test $gl_func_isnanf != yes; then
30071    HAVE_ISNANF=0
30072  fi
30073
30074
30075
30076
30077  ISNAND_LIBM=
30078
30079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
30080$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
30081if ${gl_cv_func_isnand_no_libm+:} false; then :
30082  $as_echo_n "(cached) " >&6
30083else
30084
30085      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30086/* end confdefs.h.  */
30087#include <math.h>
30088             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
30089             # undef isnand
30090             # define isnand(x) __builtin_isnan ((double)(x))
30091             #else
30092             # undef isnand
30093             # define isnand(x) isnan ((double)(x))
30094             #endif
30095             double x;
30096int
30097main ()
30098{
30099return isnand (x);
30100  ;
30101  return 0;
30102}
30103_ACEOF
30104if ac_fn_c_try_link "$LINENO"; then :
30105  gl_cv_func_isnand_no_libm=yes
30106else
30107  gl_cv_func_isnand_no_libm=no
30108fi
30109rm -f core conftest.err conftest.$ac_objext \
30110    conftest$ac_exeext conftest.$ac_ext
30111
30112fi
30113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
30114$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
30115
30116  if test $gl_cv_func_isnand_no_libm = no; then
30117
30118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
30119$as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
30120if ${gl_cv_func_isnand_in_libm+:} false; then :
30121  $as_echo_n "(cached) " >&6
30122else
30123
30124      save_LIBS="$LIBS"
30125      LIBS="$LIBS -lm"
30126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30127/* end confdefs.h.  */
30128#include <math.h>
30129             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
30130             # undef isnand
30131             # define isnand(x) __builtin_isnan ((double)(x))
30132             #elif defined isnan
30133             # undef isnand
30134             # define isnand(x) isnan ((double)(x))
30135             #endif
30136             double x;
30137int
30138main ()
30139{
30140return isnand (x);
30141  ;
30142  return 0;
30143}
30144_ACEOF
30145if ac_fn_c_try_link "$LINENO"; then :
30146  gl_cv_func_isnand_in_libm=yes
30147else
30148  gl_cv_func_isnand_in_libm=no
30149fi
30150rm -f core conftest.err conftest.$ac_objext \
30151    conftest$ac_exeext conftest.$ac_ext
30152      LIBS="$save_LIBS"
30153
30154fi
30155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
30156$as_echo "$gl_cv_func_isnand_in_libm" >&6; }
30157
30158    if test $gl_cv_func_isnand_in_libm = yes; then
30159      ISNAND_LIBM=-lm
30160    fi
30161  fi
30162    if test $gl_cv_func_isnand_no_libm = yes \
30163     || test $gl_cv_func_isnand_in_libm = yes; then
30164    gl_func_isnand=yes
30165  else
30166    gl_func_isnand=no
30167    HAVE_ISNAND=0
30168  fi
30169
30170
30171
30172
30173  ISNANL_LIBM=
30174
30175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
30176$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
30177if ${gl_cv_func_isnanl_no_libm+:} false; then :
30178  $as_echo_n "(cached) " >&6
30179else
30180
30181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30182/* end confdefs.h.  */
30183#include <math.h>
30184             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
30185             # undef isnanl
30186             # define isnanl(x) __builtin_isnan ((long double)(x))
30187             #elif defined isnan
30188             # undef isnanl
30189             # define isnanl(x) isnan ((long double)(x))
30190             #endif
30191             long double x;
30192int
30193main ()
30194{
30195return isnanl (x);
30196  ;
30197  return 0;
30198}
30199_ACEOF
30200if ac_fn_c_try_link "$LINENO"; then :
30201  gl_cv_func_isnanl_no_libm=yes
30202else
30203  gl_cv_func_isnanl_no_libm=no
30204fi
30205rm -f core conftest.err conftest.$ac_objext \
30206    conftest$ac_exeext conftest.$ac_ext
30207
30208fi
30209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
30210$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
30211
30212  if test $gl_cv_func_isnanl_no_libm = no; then
30213
30214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
30215$as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
30216if ${gl_cv_func_isnanl_in_libm+:} false; then :
30217  $as_echo_n "(cached) " >&6
30218else
30219
30220      save_LIBS="$LIBS"
30221      LIBS="$LIBS -lm"
30222      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30223/* end confdefs.h.  */
30224#include <math.h>
30225             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
30226             # undef isnanl
30227             # define isnanl(x) __builtin_isnan ((long double)(x))
30228             #elif defined isnan
30229             # undef isnanl
30230             # define isnanl(x) isnan ((long double)(x))
30231             #endif
30232             long double x;
30233int
30234main ()
30235{
30236return isnanl (x);
30237  ;
30238  return 0;
30239}
30240_ACEOF
30241if ac_fn_c_try_link "$LINENO"; then :
30242  gl_cv_func_isnanl_in_libm=yes
30243else
30244  gl_cv_func_isnanl_in_libm=no
30245fi
30246rm -f core conftest.err conftest.$ac_objext \
30247    conftest$ac_exeext conftest.$ac_ext
30248      LIBS="$save_LIBS"
30249
30250fi
30251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
30252$as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
30253
30254    if test $gl_cv_func_isnanl_in_libm = yes; then
30255      ISNANL_LIBM=-lm
30256    fi
30257  fi
30258    if test $gl_cv_func_isnanl_no_libm = yes \
30259     || test $gl_cv_func_isnanl_in_libm = yes; then
30260    save_LIBS="$LIBS"
30261    LIBS="$LIBS $ISNANL_LIBM"
30262
30263
30264
30265
30266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
30267$as_echo_n "checking whether isnanl works... " >&6; }
30268if ${gl_cv_func_isnanl_works+:} false; then :
30269  $as_echo_n "(cached) " >&6
30270else
30271
30272      if test "$cross_compiling" = yes; then :
30273  case "$host_os" in
30274           mingw*) # Guess yes on mingw, no on MSVC.
30275             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30276/* end confdefs.h.  */
30277
30278#ifdef __MINGW32__
30279 Known
30280#endif
30281
30282_ACEOF
30283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30284  $EGREP "Known" >/dev/null 2>&1; then :
30285  gl_cv_func_isnanl_works="guessing yes"
30286else
30287  gl_cv_func_isnanl_works="guessing no"
30288fi
30289rm -f conftest*
30290
30291             ;;
30292           *) gl_cv_func_isnanl_works="guessing yes" ;;
30293         esac
30294
30295else
30296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30297/* end confdefs.h.  */
30298
30299#include <float.h>
30300#include <limits.h>
30301#include <math.h>
30302#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
30303# undef isnanl
30304# define isnanl(x) __builtin_isnan ((long double)(x))
30305#elif defined isnan
30306# undef isnanl
30307# define isnanl(x) isnan ((long double)(x))
30308#endif
30309#define NWORDS \
30310  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
30311typedef union { unsigned int word[NWORDS]; long double value; }
30312        memory_long_double;
30313/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
30314   runtime type conversion.  */
30315#ifdef __sgi
30316static long double NaNl ()
30317{
30318  double zero = 0.0;
30319  return zero / zero;
30320}
30321#else
30322# define NaNl() (0.0L / 0.0L)
30323#endif
30324int main ()
30325{
30326  int result = 0;
30327
30328  if (!isnanl (NaNl ()))
30329    result |= 1;
30330
30331  {
30332    memory_long_double m;
30333    unsigned int i;
30334
30335    /* The isnanl function should be immune against changes in the sign bit and
30336       in the mantissa bits.  The xor operation twiddles a bit that can only be
30337       a sign bit or a mantissa bit (since the exponent never extends to
30338       bit 31).  */
30339    m.value = NaNl ();
30340    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
30341    for (i = 0; i < NWORDS; i++)
30342      m.word[i] |= 1;
30343    if (!isnanl (m.value))
30344      result |= 1;
30345  }
30346
30347#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
30348/* Representation of an 80-bit 'long double' as an initializer for a sequence
30349   of 'unsigned int' words.  */
30350# ifdef WORDS_BIGENDIAN
30351#  define LDBL80_WORDS(exponent,manthi,mantlo) \
30352     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
30353       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
30354       (unsigned int) (mantlo) << 16                                        \
30355     }
30356# else
30357#  define LDBL80_WORDS(exponent,manthi,mantlo) \
30358     { mantlo, manthi, exponent }
30359# endif
30360  { /* Quiet NaN.  */
30361    static memory_long_double x =
30362      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
30363    if (!isnanl (x.value))
30364      result |= 2;
30365  }
30366  {
30367    /* Signalling NaN.  */
30368    static memory_long_double x =
30369      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
30370    if (!isnanl (x.value))
30371      result |= 2;
30372  }
30373  /* isnanl should return something even for noncanonical values.  */
30374  { /* Pseudo-NaN.  */
30375    static memory_long_double x =
30376      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
30377    if (isnanl (x.value) && !isnanl (x.value))
30378      result |= 4;
30379  }
30380  { /* Pseudo-Infinity.  */
30381    static memory_long_double x =
30382      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
30383    if (isnanl (x.value) && !isnanl (x.value))
30384      result |= 8;
30385  }
30386  { /* Pseudo-Zero.  */
30387    static memory_long_double x =
30388      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
30389    if (isnanl (x.value) && !isnanl (x.value))
30390      result |= 16;
30391  }
30392  { /* Unnormalized number.  */
30393    static memory_long_double x =
30394      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
30395    if (isnanl (x.value) && !isnanl (x.value))
30396      result |= 32;
30397  }
30398  { /* Pseudo-Denormal.  */
30399    static memory_long_double x =
30400      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
30401    if (isnanl (x.value) && !isnanl (x.value))
30402      result |= 64;
30403  }
30404#endif
30405
30406  return result;
30407}
30408_ACEOF
30409if ac_fn_c_try_run "$LINENO"; then :
30410  gl_cv_func_isnanl_works=yes
30411else
30412  gl_cv_func_isnanl_works=no
30413fi
30414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30415  conftest.$ac_objext conftest.beam conftest.$ac_ext
30416fi
30417
30418
30419fi
30420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
30421$as_echo "$gl_cv_func_isnanl_works" >&6; }
30422
30423    LIBS="$save_LIBS"
30424    case "$gl_cv_func_isnanl_works" in
30425      *yes) gl_func_isnanl=yes ;;
30426      *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
30427    esac
30428  else
30429    gl_func_isnanl=no
30430  fi
30431  if test $gl_func_isnanl != yes; then
30432    HAVE_ISNANL=0
30433  fi
30434
30435
30436
30437  GNULIB_ISWBLANK=0;
30438  GNULIB_ISWDIGIT=0;
30439  GNULIB_ISWXDIGIT=0;
30440  GNULIB_WCTYPE=0;
30441  GNULIB_ISWCTYPE=0;
30442  GNULIB_WCTRANS=0;
30443  GNULIB_TOWCTRANS=0;
30444    HAVE_ISWBLANK=1;
30445  HAVE_WCTYPE_T=1;
30446  HAVE_WCTRANS_T=1;
30447  REPLACE_ISWBLANK=0;
30448  REPLACE_ISWDIGIT=0;
30449  REPLACE_ISWXDIGIT=0;
30450
30451
30452
30453
30454
30455
30456
30457  if test $ac_cv_header_crtdefs_h = yes; then
30458    HAVE_CRTDEFS_H=1
30459  else
30460    HAVE_CRTDEFS_H=0
30461  fi
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471  if test $ac_cv_func_iswcntrl = yes; then
30472    HAVE_ISWCNTRL=1
30473  else
30474    HAVE_ISWCNTRL=0
30475  fi
30476
30477
30478
30479  if test $gt_cv_c_wint_t = yes; then
30480    HAVE_WINT_T=1
30481  else
30482    HAVE_WINT_T=0
30483  fi
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497     if test $gl_cv_have_include_next = yes; then
30498       gl_cv_next_wctype_h='<'wctype.h'>'
30499     else
30500       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
30501$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
30502if ${gl_cv_next_wctype_h+:} false; then :
30503  $as_echo_n "(cached) " >&6
30504else
30505
30506             if test $ac_cv_header_wctype_h = yes; then
30507
30508
30509
30510
30511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30512/* end confdefs.h.  */
30513#include <wctype.h>
30514_ACEOF
30515                case "$host_os" in
30516    aix*) gl_absname_cpp="$ac_cpp -C" ;;
30517    *)    gl_absname_cpp="$ac_cpp" ;;
30518  esac
30519
30520  case "$host_os" in
30521    mingw*)
30522                                          gl_dirsep_regex='[/\\]'
30523      ;;
30524    *)
30525      gl_dirsep_regex='\/'
30526      ;;
30527  esac
30528      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30529  gl_header_literal_regex=`echo 'wctype.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
30538        gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30539  sed -n "$gl_absolute_header_sed"`
30540
30541           gl_header=$gl_cv_absolute_wctype_h
30542           gl_cv_next_wctype_h='"'$gl_header'"'
30543          else
30544               gl_cv_next_wctype_h='<'wctype.h'>'
30545             fi
30546
30547
30548fi
30549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
30550$as_echo "$gl_cv_next_wctype_h" >&6; }
30551     fi
30552     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
30553
30554     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30555       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30556       gl_next_as_first_directive='<'wctype.h'>'
30557     else
30558       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30559       gl_next_as_first_directive=$gl_cv_next_wctype_h
30560     fi
30561     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
30562
30563
30564
30565
30566  if test $ac_cv_header_wctype_h = yes; then
30567    if test $ac_cv_func_iswcntrl = yes; then
30568                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
30569$as_echo_n "checking whether iswcntrl works... " >&6; }
30570if ${gl_cv_func_iswcntrl_works+:} false; then :
30571  $as_echo_n "(cached) " >&6
30572else
30573
30574          if test "$cross_compiling" = yes; then :
30575               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30576/* end confdefs.h.  */
30577#include <stdlib.h>
30578                          #if __GNU_LIBRARY__ == 1
30579                          Linux libc5 i18n is broken.
30580                          #endif
30581int
30582main ()
30583{
30584
30585  ;
30586  return 0;
30587}
30588_ACEOF
30589if ac_fn_c_try_compile "$LINENO"; then :
30590  gl_cv_func_iswcntrl_works="guessing yes"
30591else
30592  gl_cv_func_iswcntrl_works="guessing no"
30593fi
30594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30595
30596else
30597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30598/* end confdefs.h.  */
30599
30600               /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
30601                  included before <wchar.h>.
30602                  BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
30603                  must be included before <wchar.h>.  */
30604               #include <stddef.h>
30605               #include <stdio.h>
30606               #include <time.h>
30607               #include <wchar.h>
30608               #include <wctype.h>
30609               int main () { return iswprint ('x') == 0; }
30610
30611_ACEOF
30612if ac_fn_c_try_run "$LINENO"; then :
30613  gl_cv_func_iswcntrl_works=yes
30614else
30615  gl_cv_func_iswcntrl_works=no
30616fi
30617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30618  conftest.$ac_objext conftest.beam conftest.$ac_ext
30619fi
30620
30621
30622fi
30623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
30624$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
30625    fi
30626    HAVE_WCTYPE_H=1
30627  else
30628    HAVE_WCTYPE_H=0
30629  fi
30630
30631
30632  if test $GNULIB_OVERRIDES_WINT_T = 1; then
30633    REPLACE_ISWCNTRL=1
30634  else
30635    case "$gl_cv_func_iswcntrl_works" in
30636      *yes) REPLACE_ISWCNTRL=0 ;;
30637      *)    REPLACE_ISWCNTRL=1 ;;
30638    esac
30639  fi
30640
30641
30642  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
30643        :
30644  fi
30645
30646  if test $REPLACE_ISWCNTRL = 1; then
30647    REPLACE_TOWLOWER=1
30648  else
30649    for ac_func in towlower
30650do :
30651  ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
30652if test "x$ac_cv_func_towlower" = xyes; then :
30653  cat >>confdefs.h <<_ACEOF
30654#define HAVE_TOWLOWER 1
30655_ACEOF
30656
30657fi
30658done
30659
30660    if test $ac_cv_func_towlower = yes; then
30661      REPLACE_TOWLOWER=0
30662    else
30663      ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
30664             included before <wchar.h>.
30665             BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
30666             must be included before <wchar.h>.  */
30667          #include <stddef.h>
30668          #include <stdio.h>
30669          #include <time.h>
30670          #include <wchar.h>
30671          #if HAVE_WCTYPE_H
30672          # include <wctype.h>
30673          #endif
30674
30675"
30676if test "x$ac_cv_have_decl_towlower" = xyes; then :
30677  ac_have_decl=1
30678else
30679  ac_have_decl=0
30680fi
30681
30682cat >>confdefs.h <<_ACEOF
30683#define HAVE_DECL_TOWLOWER $ac_have_decl
30684_ACEOF
30685
30686      if test $ac_cv_have_decl_towlower = yes; then
30687                                REPLACE_TOWLOWER=1
30688      else
30689        REPLACE_TOWLOWER=0
30690      fi
30691    fi
30692  fi
30693
30694
30695  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
30696        :
30697  fi
30698
30699          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
30700$as_echo_n "checking for wctype_t... " >&6; }
30701if ${gl_cv_type_wctype_t+:} false; then :
30702  $as_echo_n "(cached) " >&6
30703else
30704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30705/* end confdefs.h.  */
30706/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
30707               included before <wchar.h>.
30708               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
30709               must be included before <wchar.h>.  */
30710            #include <stddef.h>
30711            #include <stdio.h>
30712            #include <time.h>
30713            #include <wchar.h>
30714            #if HAVE_WCTYPE_H
30715            # include <wctype.h>
30716            #endif
30717            wctype_t a;
30718
30719int
30720main ()
30721{
30722
30723  ;
30724  return 0;
30725}
30726_ACEOF
30727if ac_fn_c_try_compile "$LINENO"; then :
30728  gl_cv_type_wctype_t=yes
30729else
30730  gl_cv_type_wctype_t=no
30731fi
30732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30733
30734fi
30735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
30736$as_echo "$gl_cv_type_wctype_t" >&6; }
30737  if test $gl_cv_type_wctype_t = no; then
30738    HAVE_WCTYPE_T=0
30739  fi
30740
30741      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
30742$as_echo_n "checking for wctrans_t... " >&6; }
30743if ${gl_cv_type_wctrans_t+:} false; then :
30744  $as_echo_n "(cached) " >&6
30745else
30746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30747/* end confdefs.h.  */
30748/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
30749               included before <wchar.h>.
30750               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
30751               must be included before <wchar.h>.  */
30752            #include <stddef.h>
30753            #include <stdio.h>
30754            #include <time.h>
30755            #include <wchar.h>
30756            #include <wctype.h>
30757            wctrans_t a;
30758
30759int
30760main ()
30761{
30762
30763  ;
30764  return 0;
30765}
30766_ACEOF
30767if ac_fn_c_try_compile "$LINENO"; then :
30768  gl_cv_type_wctrans_t=yes
30769else
30770  gl_cv_type_wctrans_t=no
30771fi
30772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773
30774fi
30775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
30776$as_echo "$gl_cv_type_wctrans_t" >&6; }
30777  if test $gl_cv_type_wctrans_t = no; then
30778    HAVE_WCTRANS_T=0
30779  fi
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
30791$as_echo_n "checking for a traditional japanese locale... " >&6; }
30792if ${gt_cv_locale_ja+:} false; then :
30793  $as_echo_n "(cached) " >&6
30794else
30795
30796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30797/* end confdefs.h.  */
30798
30799#include <locale.h>
30800#include <time.h>
30801#if HAVE_LANGINFO_CODESET
30802# include <langinfo.h>
30803#endif
30804#include <stdlib.h>
30805#include <string.h>
30806struct tm t;
30807char buf[16];
30808int main ()
30809{
30810  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30811     imitates locale dependent behaviour by looking at the environment
30812     variables, and all locales use the UTF-8 encoding.  */
30813#if defined __BEOS__ || defined __HAIKU__
30814  return 1;
30815#else
30816  /* Check whether the given locale name is recognized by the system.  */
30817# if defined _WIN32 && !defined __CYGWIN__
30818  /* On native Windows, setlocale(category, "") looks at the system settings,
30819     not at the environment variables.  Also, when an encoding suffix such
30820     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30821     category of the locale to "C".  */
30822  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30823      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30824    return 1;
30825# else
30826  if (setlocale (LC_ALL, "") == NULL) return 1;
30827# endif
30828  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30829     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30830     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30831     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30832     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30833     some unit tests fail.
30834     On MirBSD 10, when an unsupported locale is specified, setlocale()
30835     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
30836# if HAVE_LANGINFO_CODESET
30837  {
30838    const char *cs = nl_langinfo (CODESET);
30839    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
30840        || strcmp (cs, "UTF-8") == 0)
30841      return 1;
30842  }
30843# endif
30844# ifdef __CYGWIN__
30845  /* On Cygwin, avoid locale names without encoding suffix, because the
30846     locale_charset() function relies on the encoding suffix.  Note that
30847     LC_ALL is set on the command line.  */
30848  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30849# endif
30850  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
30851     on Cygwin 1.5.x.  */
30852  if (MB_CUR_MAX == 1)
30853    return 1;
30854  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
30855     This excludes the UTF-8 encoding (except on MirBSD).  */
30856  {
30857    const char *p;
30858    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30859    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
30860    for (p = buf; *p != '\0'; p++)
30861      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
30862        return 1;
30863  }
30864  return 0;
30865#endif
30866}
30867
30868_ACEOF
30869    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30870  (eval $ac_link) 2>&5
30871  ac_status=$?
30872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30873  test $ac_status = 0; } && test -s conftest$ac_exeext; then
30874      case "$host_os" in
30875        # Handle native Windows specially, because there setlocale() interprets
30876        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30877        # "fr" or "fra" as "French" or "French_France.1252",
30878        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30879        # "ja" as "Japanese" or "Japanese_Japan.932",
30880        # and similar.
30881        mingw*)
30882          # Note that on native Windows, the Japanese locale is
30883          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
30884          # cannot use it here.
30885          gt_cv_locale_ja=none
30886          ;;
30887        *)
30888          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30889          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30890          # configure script would override the LC_ALL setting. Likewise for
30891          # LC_CTYPE, which is also set at the beginning of the configure script.
30892          # Test for the AIX locale name.
30893          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30894            gt_cv_locale_ja=ja_JP
30895          else
30896            # Test for the locale name with explicit encoding suffix.
30897            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30898              gt_cv_locale_ja=ja_JP.EUC-JP
30899            else
30900              # Test for the HP-UX, OSF/1, NetBSD locale name.
30901              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30902                gt_cv_locale_ja=ja_JP.eucJP
30903              else
30904                # Test for the IRIX, FreeBSD locale name.
30905                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30906                  gt_cv_locale_ja=ja_JP.EUC
30907                else
30908                  # Test for the Solaris 7 locale name.
30909                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30910                    gt_cv_locale_ja=ja
30911                  else
30912                    # Special test for NetBSD 1.6.
30913                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
30914                      gt_cv_locale_ja=ja_JP.eucJP
30915                    else
30916                      # None found.
30917                      gt_cv_locale_ja=none
30918                    fi
30919                  fi
30920                fi
30921              fi
30922            fi
30923          fi
30924          ;;
30925      esac
30926    fi
30927    rm -fr conftest*
30928
30929fi
30930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
30931$as_echo "$gt_cv_locale_ja" >&6; }
30932  LOCALE_JA=$gt_cv_locale_ja
30933
30934
30935
30936
30937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30938$as_echo_n "checking for a french Unicode locale... " >&6; }
30939if ${gt_cv_locale_fr_utf8+:} false; then :
30940  $as_echo_n "(cached) " >&6
30941else
30942
30943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944/* end confdefs.h.  */
30945
30946#include <locale.h>
30947#include <time.h>
30948#if HAVE_LANGINFO_CODESET
30949# include <langinfo.h>
30950#endif
30951#include <stdlib.h>
30952#include <string.h>
30953struct tm t;
30954char buf[16];
30955int main () {
30956  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30957     imitates locale dependent behaviour by looking at the environment
30958     variables, and all locales use the UTF-8 encoding.  */
30959#if !(defined __BEOS__ || defined __HAIKU__)
30960  /* Check whether the given locale name is recognized by the system.  */
30961# if defined _WIN32 && !defined __CYGWIN__
30962  /* On native Windows, setlocale(category, "") looks at the system settings,
30963     not at the environment variables.  Also, when an encoding suffix such
30964     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30965     category of the locale to "C".  */
30966  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30967      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30968    return 1;
30969# else
30970  if (setlocale (LC_ALL, "") == NULL) return 1;
30971# endif
30972  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30973     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30974     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30975     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30976     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30977     some unit tests fail.  */
30978# if HAVE_LANGINFO_CODESET
30979  {
30980    const char *cs = nl_langinfo (CODESET);
30981    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30982      return 1;
30983  }
30984# endif
30985# ifdef __CYGWIN__
30986  /* On Cygwin, avoid locale names without encoding suffix, because the
30987     locale_charset() function relies on the encoding suffix.  Note that
30988     LC_ALL is set on the command line.  */
30989  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30990# endif
30991  /* Check whether in the abbreviation of the second month, the second
30992     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30993     two bytes long, with UTF-8 encoding.  */
30994  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30995  if (strftime (buf, sizeof (buf), "%b", &t) < 4
30996      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30997    return 1;
30998#endif
30999#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
31000  /* Check whether the decimal separator is a comma.
31001     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
31002     are nl_langinfo(RADIXCHAR) are both ".".  */
31003  if (localeconv () ->decimal_point[0] != ',') return 1;
31004#endif
31005  return 0;
31006}
31007
31008_ACEOF
31009    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31010  (eval $ac_link) 2>&5
31011  ac_status=$?
31012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31013  test $ac_status = 0; } && test -s conftest$ac_exeext; then
31014      case "$host_os" in
31015        # Handle native Windows specially, because there setlocale() interprets
31016        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
31017        # "fr" or "fra" as "French" or "French_France.1252",
31018        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
31019        # "ja" as "Japanese" or "Japanese_Japan.932",
31020        # and similar.
31021        mingw*)
31022          # Test for the hypothetical native Windows locale name.
31023          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31024            gt_cv_locale_fr_utf8=French_France.65001
31025          else
31026            # None found.
31027            gt_cv_locale_fr_utf8=none
31028          fi
31029          ;;
31030        *)
31031          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
31032          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
31033          # configure script would override the LC_ALL setting. Likewise for
31034          # LC_CTYPE, which is also set at the beginning of the configure script.
31035          # Test for the usual locale name.
31036          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31037            gt_cv_locale_fr_utf8=fr_FR
31038          else
31039            # Test for the locale name with explicit encoding suffix.
31040            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31041              gt_cv_locale_fr_utf8=fr_FR.UTF-8
31042            else
31043              # Test for the Solaris 7 locale name.
31044              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31045                gt_cv_locale_fr_utf8=fr.UTF-8
31046              else
31047                # None found.
31048                gt_cv_locale_fr_utf8=none
31049              fi
31050            fi
31051          fi
31052          ;;
31053      esac
31054    fi
31055    rm -fr conftest*
31056
31057fi
31058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
31059$as_echo "$gt_cv_locale_fr_utf8" >&6; }
31060  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
31061
31062
31063
31064
31065
31066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
31067$as_echo_n "checking for a transitional chinese locale... " >&6; }
31068if ${gt_cv_locale_zh_CN+:} false; then :
31069  $as_echo_n "(cached) " >&6
31070else
31071
31072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31073/* end confdefs.h.  */
31074
31075#include <locale.h>
31076#include <stdlib.h>
31077#include <time.h>
31078#if HAVE_LANGINFO_CODESET
31079# include <langinfo.h>
31080#endif
31081#include <stdlib.h>
31082#include <string.h>
31083struct tm t;
31084char buf[16];
31085int main ()
31086{
31087  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
31088     imitates locale dependent behaviour by looking at the environment
31089     variables, and all locales use the UTF-8 encoding.  */
31090#if defined __BEOS__ || defined __HAIKU__
31091  return 1;
31092#else
31093  /* Check whether the given locale name is recognized by the system.  */
31094# if defined _WIN32 && !defined __CYGWIN__
31095  /* On native Windows, setlocale(category, "") looks at the system settings,
31096     not at the environment variables.  Also, when an encoding suffix such
31097     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
31098     category of the locale to "C".  */
31099  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
31100      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
31101    return 1;
31102# else
31103  if (setlocale (LC_ALL, "") == NULL) return 1;
31104# endif
31105  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
31106     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
31107     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
31108     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
31109     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
31110     some unit tests fail.
31111     On MirBSD 10, when an unsupported locale is specified, setlocale()
31112     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
31113# if HAVE_LANGINFO_CODESET
31114  {
31115    const char *cs = nl_langinfo (CODESET);
31116    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
31117        || strcmp (cs, "UTF-8") == 0)
31118      return 1;
31119  }
31120# endif
31121# ifdef __CYGWIN__
31122  /* On Cygwin, avoid locale names without encoding suffix, because the
31123     locale_charset() function relies on the encoding suffix.  Note that
31124     LC_ALL is set on the command line.  */
31125  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
31126# endif
31127  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
31128     This excludes the UTF-8 encoding (except on MirBSD).  */
31129  {
31130    const char *p;
31131    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
31132    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
31133    for (p = buf; *p != '\0'; p++)
31134      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
31135        return 1;
31136  }
31137  /* Check whether a typical GB18030 multibyte sequence is recognized as a
31138     single wide character.  This excludes the GB2312 and GBK encodings.  */
31139  if (mblen ("\203\062\332\066", 5) != 4)
31140    return 1;
31141  return 0;
31142#endif
31143}
31144
31145_ACEOF
31146    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31147  (eval $ac_link) 2>&5
31148  ac_status=$?
31149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31150  test $ac_status = 0; } && test -s conftest$ac_exeext; then
31151      case "$host_os" in
31152        # Handle native Windows specially, because there setlocale() interprets
31153        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
31154        # "fr" or "fra" as "French" or "French_France.1252",
31155        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
31156        # "ja" as "Japanese" or "Japanese_Japan.932",
31157        # and similar.
31158        mingw*)
31159          # Test for the hypothetical native Windows locale name.
31160          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31161            gt_cv_locale_zh_CN=Chinese_China.54936
31162          else
31163            # None found.
31164            gt_cv_locale_zh_CN=none
31165          fi
31166          ;;
31167        solaris2.8)
31168          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
31169          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
31170          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
31171          gt_cv_locale_zh_CN=none
31172          ;;
31173        *)
31174          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
31175          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
31176          # configure script would override the LC_ALL setting. Likewise for
31177          # LC_CTYPE, which is also set at the beginning of the configure script.
31178          # Test for the locale name without encoding suffix.
31179          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31180            gt_cv_locale_zh_CN=zh_CN
31181          else
31182            # Test for the locale name with explicit encoding suffix.
31183            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31184              gt_cv_locale_zh_CN=zh_CN.GB18030
31185            else
31186              # None found.
31187              gt_cv_locale_zh_CN=none
31188            fi
31189          fi
31190          ;;
31191      esac
31192    else
31193      # If there was a link error, due to mblen(), the system is so old that
31194      # it certainly doesn't have a chinese locale.
31195      gt_cv_locale_zh_CN=none
31196    fi
31197    rm -fr conftest*
31198
31199fi
31200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
31201$as_echo "$gt_cv_locale_zh_CN" >&6; }
31202  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
31203
31204
31205
31206  GNULIB_NL_LANGINFO=0;
31207    HAVE_NL_LANGINFO=1;
31208  REPLACE_NL_LANGINFO=0;
31209
31210
31211
31212
31213  GNULIB_LOCALECONV=0;
31214  GNULIB_SETLOCALE=0;
31215  GNULIB_SETLOCALE_NULL=0;
31216  GNULIB_DUPLOCALE=0;
31217  GNULIB_LOCALENAME=0;
31218    HAVE_NEWLOCALE=1;
31219  HAVE_DUPLOCALE=1;
31220  HAVE_FREELOCALE=1;
31221  REPLACE_LOCALECONV=0;
31222  REPLACE_SETLOCALE=0;
31223  REPLACE_NEWLOCALE=0;
31224  REPLACE_DUPLOCALE=0;
31225  REPLACE_FREELOCALE=0;
31226  REPLACE_STRUCT_LCONV=0;
31227
31228
31229    REPLACE_NULL=0;
31230  HAVE_MAX_ALIGN_T=1;
31231  HAVE_WCHAR_T=1;
31232
31233
31234
31235
31236  STDDEF_H=
31237
31238      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
31239$as_echo_n "checking for good max_align_t... " >&6; }
31240if ${gl_cv_type_max_align_t+:} false; then :
31241  $as_echo_n "(cached) " >&6
31242else
31243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31244/* end confdefs.h.  */
31245#include <stddef.h>
31246            unsigned int s = sizeof (max_align_t);
31247            #if defined __GNUC__ || defined __IBM__ALIGNOF__
31248            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
31249            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
31250            #endif
31251
31252int
31253main ()
31254{
31255
31256  ;
31257  return 0;
31258}
31259_ACEOF
31260if ac_fn_c_try_compile "$LINENO"; then :
31261  gl_cv_type_max_align_t=yes
31262else
31263  gl_cv_type_max_align_t=no
31264fi
31265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31266
31267fi
31268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
31269$as_echo "$gl_cv_type_max_align_t" >&6; }
31270  if test $gl_cv_type_max_align_t = no; then
31271    HAVE_MAX_ALIGN_T=0
31272    STDDEF_H=stddef.h
31273  fi
31274
31275  if test $gt_cv_c_wchar_t = no; then
31276    HAVE_WCHAR_T=0
31277    STDDEF_H=stddef.h
31278  fi
31279
31280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
31281$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
31282if ${gl_cv_decl_null_works+:} false; then :
31283  $as_echo_n "(cached) " >&6
31284else
31285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31286/* end confdefs.h.  */
31287#include <stddef.h>
31288      int test[2 * (sizeof NULL == sizeof (void *)) -1];
31289
31290int
31291main ()
31292{
31293
31294  ;
31295  return 0;
31296}
31297_ACEOF
31298if ac_fn_c_try_compile "$LINENO"; then :
31299  gl_cv_decl_null_works=yes
31300else
31301  gl_cv_decl_null_works=no
31302fi
31303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31304fi
31305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
31306$as_echo "$gl_cv_decl_null_works" >&6; }
31307  if test $gl_cv_decl_null_works = no; then
31308    REPLACE_NULL=1
31309    STDDEF_H=stddef.h
31310  fi
31311
31312
31313   if test -n "$STDDEF_H"; then
31314  GL_GENERATE_STDDEF_H_TRUE=
31315  GL_GENERATE_STDDEF_H_FALSE='#'
31316else
31317  GL_GENERATE_STDDEF_H_TRUE='#'
31318  GL_GENERATE_STDDEF_H_FALSE=
31319fi
31320
31321  if test -n "$STDDEF_H"; then
31322
31323
31324
31325
31326
31327
31328
31329
31330     if test $gl_cv_have_include_next = yes; then
31331       gl_cv_next_stddef_h='<'stddef.h'>'
31332     else
31333       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
31334$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
31335if ${gl_cv_next_stddef_h+:} false; then :
31336  $as_echo_n "(cached) " >&6
31337else
31338
31339
31340
31341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31342/* end confdefs.h.  */
31343#include <stddef.h>
31344_ACEOF
31345                case "$host_os" in
31346    aix*) gl_absname_cpp="$ac_cpp -C" ;;
31347    *)    gl_absname_cpp="$ac_cpp" ;;
31348  esac
31349
31350  case "$host_os" in
31351    mingw*)
31352                                          gl_dirsep_regex='[/\\]'
31353      ;;
31354    *)
31355      gl_dirsep_regex='\/'
31356      ;;
31357  esac
31358      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31359  gl_header_literal_regex=`echo 'stddef.h' \
31360                           | sed -e "$gl_make_literal_regex_sed"`
31361  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31362      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31363      s|^/[^/]|//&|
31364      p
31365      q
31366    }'
31367
31368        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31369  sed -n "$gl_absolute_header_sed"`
31370
31371           gl_header=$gl_cv_absolute_stddef_h
31372           gl_cv_next_stddef_h='"'$gl_header'"'
31373
31374
31375fi
31376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
31377$as_echo "$gl_cv_next_stddef_h" >&6; }
31378     fi
31379     NEXT_STDDEF_H=$gl_cv_next_stddef_h
31380
31381     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31382       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31383       gl_next_as_first_directive='<'stddef.h'>'
31384     else
31385       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31386       gl_next_as_first_directive=$gl_cv_next_stddef_h
31387     fi
31388     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
31389
31390
31391
31392
31393  fi
31394
31395
31396
31397
31398        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
31399$as_echo_n "checking whether locale.h defines locale_t... " >&6; }
31400if ${gl_cv_header_locale_has_locale_t+:} false; then :
31401  $as_echo_n "(cached) " >&6
31402else
31403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31404/* end confdefs.h.  */
31405#include <locale.h>
31406            locale_t x;
31407int
31408main ()
31409{
31410
31411  ;
31412  return 0;
31413}
31414_ACEOF
31415if ac_fn_c_try_compile "$LINENO"; then :
31416  gl_cv_header_locale_has_locale_t=yes
31417else
31418  gl_cv_header_locale_has_locale_t=no
31419fi
31420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31421
31422fi
31423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
31424$as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
31425
31426
31427  if test $ac_cv_header_xlocale_h = yes; then
31428    HAVE_XLOCALE_H=1
31429    if test $gl_cv_header_locale_has_locale_t = yes; then
31430      gl_cv_header_locale_h_needs_xlocale_h=no
31431    else
31432      gl_cv_header_locale_h_needs_xlocale_h=yes
31433    fi
31434    HAVE_LOCALE_T=1
31435  else
31436    HAVE_XLOCALE_H=0
31437    gl_cv_header_locale_h_needs_xlocale_h=no
31438    if test $gl_cv_header_locale_has_locale_t = yes; then
31439      HAVE_LOCALE_T=1
31440    else
31441      HAVE_LOCALE_T=0
31442    fi
31443  fi
31444
31445
31446
31447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
31448$as_echo_n "checking for LC_MESSAGES... " >&6; }
31449if ${gt_cv_val_LC_MESSAGES+:} false; then :
31450  $as_echo_n "(cached) " >&6
31451else
31452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31453/* end confdefs.h.  */
31454#include <locale.h>
31455int
31456main ()
31457{
31458return LC_MESSAGES
31459  ;
31460  return 0;
31461}
31462_ACEOF
31463if ac_fn_c_try_link "$LINENO"; then :
31464  gt_cv_val_LC_MESSAGES=yes
31465else
31466  gt_cv_val_LC_MESSAGES=no
31467fi
31468rm -f core conftest.err conftest.$ac_objext \
31469    conftest$ac_exeext conftest.$ac_ext
31470fi
31471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
31472$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
31473  if test $gt_cv_val_LC_MESSAGES = yes; then
31474
31475$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
31476
31477  fi
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490          if test $ac_cv_func_uselocale = yes; then
31491
31492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
31493$as_echo_n "checking whether uselocale works... " >&6; }
31494if ${gt_cv_func_uselocale_works+:} false; then :
31495  $as_echo_n "(cached) " >&6
31496else
31497  if test "$cross_compiling" = yes; then :
31498  # Guess no on AIX and z/OS, yes otherwise.
31499          case "$host_os" in
31500            aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;;
31501            *)                   gt_cv_func_uselocale_works="guessing yes" ;;
31502          esac
31503
31504else
31505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506/* end confdefs.h.  */
31507
31508#include <locale.h>
31509#if HAVE_XLOCALE_H
31510# include <xlocale.h>
31511#endif
31512locale_t loc1;
31513int main ()
31514{
31515  uselocale (NULL);
31516  setlocale (LC_ALL, "en_US.UTF-8");
31517  return 0;
31518}
31519_ACEOF
31520if ac_fn_c_try_run "$LINENO"; then :
31521  gt_cv_func_uselocale_works=yes
31522else
31523  gt_cv_func_uselocale_works=no
31524fi
31525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31526  conftest.$ac_objext conftest.beam conftest.$ac_ext
31527fi
31528
31529
31530fi
31531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
31532$as_echo "$gt_cv_func_uselocale_works" >&6; }
31533  else
31534    gt_cv_func_uselocale_works=no
31535  fi
31536  case "$gt_cv_func_uselocale_works" in
31537    *yes)
31538
31539$as_echo "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
31540
31541      ;;
31542  esac
31543
31544
31545                            case "$gt_cv_func_uselocale_works" in
31546    *yes)
31547
31548      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
31549$as_echo_n "checking for fake locale system (OpenBSD)... " >&6; }
31550if ${gt_cv_locale_fake+:} false; then :
31551  $as_echo_n "(cached) " >&6
31552else
31553  if test "$cross_compiling" = yes; then :
31554              case "$host_os" in
31555              openbsd*) gt_cv_locale_fake="guessing yes" ;;
31556              *)        gt_cv_locale_fake="guessing no" ;;
31557            esac
31558
31559else
31560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31561/* end confdefs.h.  */
31562
31563#include <locale.h>
31564#if HAVE_XLOCALE_H
31565# include <xlocale.h>
31566#endif
31567int main ()
31568{
31569  locale_t loc1, loc2;
31570  if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
31571  if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
31572  loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
31573  loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
31574  return !(loc1 == loc2);
31575}
31576_ACEOF
31577if ac_fn_c_try_run "$LINENO"; then :
31578  gt_cv_locale_fake=yes
31579else
31580  gt_cv_locale_fake=no
31581fi
31582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31583  conftest.$ac_objext conftest.beam conftest.$ac_ext
31584fi
31585
31586
31587fi
31588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
31589$as_echo "$gt_cv_locale_fake" >&6; }
31590      ;;
31591    *) gt_cv_locale_fake=no ;;
31592  esac
31593  case "$gt_cv_locale_fake" in
31594    *yes)
31595
31596$as_echo "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
31597
31598      ;;
31599  esac
31600
31601  case "$gt_cv_func_uselocale_works" in
31602    *yes)
31603      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
31604$as_echo_n "checking for Solaris 11.4 locale system... " >&6; }
31605if ${gt_cv_locale_solaris114+:} false; then :
31606  $as_echo_n "(cached) " >&6
31607else
31608  case "$host_os" in
31609           solaris*)
31610                                                                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31611/* end confdefs.h.  */
31612
31613                  #include <locale.h>
31614                  struct _LC_locale_t *x;
31615                  locale_t y;
31616
31617int
31618main ()
31619{
31620*y = x;
31621  ;
31622  return 0;
31623}
31624_ACEOF
31625if ac_fn_c_try_compile "$LINENO"; then :
31626  gt_cv_locale_solaris114=yes
31627else
31628  gt_cv_locale_solaris114=no
31629fi
31630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631             ;;
31632           *) gt_cv_locale_solaris114=no ;;
31633         esac
31634
31635fi
31636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
31637$as_echo "$gt_cv_locale_solaris114" >&6; }
31638      ;;
31639    *) gt_cv_locale_solaris114=no ;;
31640  esac
31641  if test $gt_cv_locale_solaris114 = yes; then
31642
31643$as_echo "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
31644
31645  fi
31646
31647        case "$gt_cv_func_uselocale_works" in
31648    *yes)
31649      for ac_func in getlocalename_l
31650do :
31651  ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
31652if test "x$ac_cv_func_getlocalename_l" = xyes; then :
31653  cat >>confdefs.h <<_ACEOF
31654#define HAVE_GETLOCALENAME_L 1
31655_ACEOF
31656
31657fi
31658done
31659
31660      ;;
31661  esac
31662
31663            gt_nameless_locales=no
31664  case "$host_os" in
31665        aix*)
31666      gt_nameless_locales=yes
31667
31668$as_echo "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
31669
31670      ;;
31671  esac
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681  gl_threads_api=none
31682  LIBTHREAD=
31683  LTLIBTHREAD=
31684  LIBMULTITHREAD=
31685  LTLIBMULTITHREAD=
31686  if test "$gl_use_threads" != no; then
31687
31688
31689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
31690$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
31691if ${gl_cv_have_weak+:} false; then :
31692  $as_echo_n "(cached) " >&6
31693else
31694  gl_cv_have_weak=no
31695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31696/* end confdefs.h.  */
31697extern void xyzzy ();
31698#pragma weak xyzzy
31699int
31700main ()
31701{
31702xyzzy();
31703  ;
31704  return 0;
31705}
31706_ACEOF
31707if ac_fn_c_try_link "$LINENO"; then :
31708  gl_cv_have_weak=maybe
31709fi
31710rm -f core conftest.err conftest.$ac_objext \
31711    conftest$ac_exeext conftest.$ac_ext
31712     if test $gl_cv_have_weak = maybe; then
31713                     if test "$cross_compiling" = yes; then :
31714                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31715/* end confdefs.h.  */
31716#ifdef __ELF__
31717             Extensible Linking Format
31718             #endif
31719
31720_ACEOF
31721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31722  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
31723  gl_cv_have_weak="guessing yes"
31724else
31725  gl_cv_have_weak="guessing no"
31726fi
31727rm -f conftest*
31728
31729
31730else
31731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31732/* end confdefs.h.  */
31733
31734#include <stdio.h>
31735#pragma weak fputs
31736int main ()
31737{
31738  return (fputs == NULL);
31739}
31740_ACEOF
31741if ac_fn_c_try_run "$LINENO"; then :
31742  gl_cv_have_weak=yes
31743else
31744  gl_cv_have_weak=no
31745fi
31746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31747  conftest.$ac_objext conftest.beam conftest.$ac_ext
31748fi
31749
31750     fi
31751          case " $LDFLAGS " in
31752       *" -static "*) gl_cv_have_weak=no ;;
31753     esac
31754                    case "$gl_cv_have_weak" in
31755       *yes)
31756         case "$host_os" in
31757           freebsd* | dragonfly*)
31758             : > conftest1.c
31759             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
31760             cat <<EOF > conftest2.c
31761#include <pthread.h>
31762#pragma weak pthread_mutexattr_gettype
31763int main ()
31764{
31765  return (pthread_mutexattr_gettype != NULL);
31766}
31767EOF
31768             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
31769               || gl_cv_have_weak=no
31770             rm -f conftest1.c libempty.so conftest2.c conftest
31771             ;;
31772         esac
31773         ;;
31774     esac
31775
31776fi
31777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
31778$as_echo "$gl_cv_have_weak" >&6; }
31779  case "$gl_cv_have_weak" in
31780    *yes)
31781
31782$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
31783
31784      ;;
31785  esac
31786
31787    if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
31788
31789      :
31790    fi
31791    if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
31792
31793      gl_have_isoc_threads="$ac_cv_header_threads_h"
31794    fi
31795    if test "$gl_use_threads" = yes \
31796       || test "$gl_use_threads" = posix \
31797       || test "$gl_use_threads" = isoc+posix; then
31798
31799
31800  if test -z "$gl_pthreadlib_body_done"; then
31801    gl_pthread_api=no
31802    LIBPTHREAD=
31803    LIBPMULTITHREAD=
31804    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
31805    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
31806    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
31807if test "x$ac_cv_header_pthread_h" = xyes; then :
31808  gl_have_pthread_h=yes
31809else
31810  gl_have_pthread_h=no
31811fi
31812
31813
31814    if test "$gl_have_pthread_h" = yes; then
31815      # Other possible tests:
31816      #   -lpthreads (FSU threads, PCthreads)
31817      #   -lgthreads
31818      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
31819      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
31820      # the second one only in libpthread, and lock.c needs it.
31821      #
31822      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
31823      # needs -pthread for some reason.  See:
31824      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31825      save_LIBS=$LIBS
31826      for gl_pthread in '' '-pthread'; do
31827        LIBS="$LIBS $gl_pthread"
31828        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31829/* end confdefs.h.  */
31830#include <pthread.h>
31831               pthread_mutex_t m;
31832               pthread_mutexattr_t ma;
31833
31834int
31835main ()
31836{
31837pthread_mutex_lock (&m);
31838               pthread_mutexattr_init (&ma);
31839  ;
31840  return 0;
31841}
31842_ACEOF
31843if ac_fn_c_try_link "$LINENO"; then :
31844  gl_pthread_api=yes
31845           LIBPTHREAD=$gl_pthread
31846           LIBPMULTITHREAD=$gl_pthread
31847fi
31848rm -f core conftest.err conftest.$ac_objext \
31849    conftest$ac_exeext conftest.$ac_ext
31850        LIBS=$save_LIBS
31851        test $gl_pthread_api = yes && break
31852      done
31853
31854      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
31855      # since it is defined as a macro on OSF/1.)
31856      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
31857        # The program links fine without libpthread. But it may actually
31858        # need to link with libpthread in order to create multiple threads.
31859        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
31860$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
31861if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
31862  $as_echo_n "(cached) " >&6
31863else
31864  ac_check_lib_save_LIBS=$LIBS
31865LIBS="-lpthread  $LIBS"
31866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867/* end confdefs.h.  */
31868
31869/* Override any GCC internal prototype to avoid an error.
31870   Use char because int might match the return type of a GCC
31871   builtin and then its argument prototype would still apply.  */
31872#ifdef __cplusplus
31873extern "C"
31874#endif
31875char pthread_kill ();
31876int
31877main ()
31878{
31879return pthread_kill ();
31880  ;
31881  return 0;
31882}
31883_ACEOF
31884if ac_fn_c_try_link "$LINENO"; then :
31885  ac_cv_lib_pthread_pthread_kill=yes
31886else
31887  ac_cv_lib_pthread_pthread_kill=no
31888fi
31889rm -f core conftest.err conftest.$ac_objext \
31890    conftest$ac_exeext conftest.$ac_ext
31891LIBS=$ac_check_lib_save_LIBS
31892fi
31893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
31894$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
31895if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
31896  LIBPMULTITHREAD=-lpthread
31897           # On Solaris and HP-UX, most pthread functions exist also in libc.
31898           # Therefore pthread_in_use() needs to actually try to create a
31899           # thread: pthread_create from libc will fail, whereas
31900           # pthread_create will actually create a thread.
31901           # On Solaris 10 or newer, this test is no longer needed, because
31902           # libc contains the fully functional pthread functions.
31903           case "$host_os" in
31904             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
31905
31906$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
31907
31908           esac
31909
31910fi
31911
31912      elif test $gl_pthread_api != yes; then
31913        # Some library is needed. Try libpthread and libc_r.
31914        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
31915$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
31916if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
31917  $as_echo_n "(cached) " >&6
31918else
31919  ac_check_lib_save_LIBS=$LIBS
31920LIBS="-lpthread  $LIBS"
31921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31922/* end confdefs.h.  */
31923
31924/* Override any GCC internal prototype to avoid an error.
31925   Use char because int might match the return type of a GCC
31926   builtin and then its argument prototype would still apply.  */
31927#ifdef __cplusplus
31928extern "C"
31929#endif
31930char pthread_kill ();
31931int
31932main ()
31933{
31934return pthread_kill ();
31935  ;
31936  return 0;
31937}
31938_ACEOF
31939if ac_fn_c_try_link "$LINENO"; then :
31940  ac_cv_lib_pthread_pthread_kill=yes
31941else
31942  ac_cv_lib_pthread_pthread_kill=no
31943fi
31944rm -f core conftest.err conftest.$ac_objext \
31945    conftest$ac_exeext conftest.$ac_ext
31946LIBS=$ac_check_lib_save_LIBS
31947fi
31948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
31949$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
31950if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
31951  gl_pthread_api=yes
31952           LIBPTHREAD=-lpthread
31953           LIBPMULTITHREAD=-lpthread
31954fi
31955
31956        if test $gl_pthread_api != yes; then
31957          # For FreeBSD 4.
31958          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
31959$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
31960if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
31961  $as_echo_n "(cached) " >&6
31962else
31963  ac_check_lib_save_LIBS=$LIBS
31964LIBS="-lc_r  $LIBS"
31965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31966/* end confdefs.h.  */
31967
31968/* Override any GCC internal prototype to avoid an error.
31969   Use char because int might match the return type of a GCC
31970   builtin and then its argument prototype would still apply.  */
31971#ifdef __cplusplus
31972extern "C"
31973#endif
31974char pthread_kill ();
31975int
31976main ()
31977{
31978return pthread_kill ();
31979  ;
31980  return 0;
31981}
31982_ACEOF
31983if ac_fn_c_try_link "$LINENO"; then :
31984  ac_cv_lib_c_r_pthread_kill=yes
31985else
31986  ac_cv_lib_c_r_pthread_kill=no
31987fi
31988rm -f core conftest.err conftest.$ac_objext \
31989    conftest$ac_exeext conftest.$ac_ext
31990LIBS=$ac_check_lib_save_LIBS
31991fi
31992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
31993$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
31994if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
31995  gl_pthread_api=yes
31996             LIBPTHREAD=-lc_r
31997             LIBPMULTITHREAD=-lc_r
31998fi
31999
32000        fi
32001      fi
32002    fi
32003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
32004$as_echo_n "checking whether POSIX threads API is available... " >&6; }
32005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
32006$as_echo "$gl_pthread_api" >&6; }
32007
32008
32009    if test $gl_pthread_api = yes; then
32010
32011$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
32012
32013    fi
32014
32015        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32016/* end confdefs.h.  */
32017#include <sched.h>
32018int
32019main ()
32020{
32021sched_yield ();
32022  ;
32023  return 0;
32024}
32025_ACEOF
32026if ac_fn_c_try_link "$LINENO"; then :
32027  LIB_SCHED_YIELD=
32028
32029else
32030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32031$as_echo_n "checking for sched_yield in -lrt... " >&6; }
32032if ${ac_cv_lib_rt_sched_yield+:} false; then :
32033  $as_echo_n "(cached) " >&6
32034else
32035  ac_check_lib_save_LIBS=$LIBS
32036LIBS="-lrt  $LIBS"
32037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32038/* end confdefs.h.  */
32039
32040/* Override any GCC internal prototype to avoid an error.
32041   Use char because int might match the return type of a GCC
32042   builtin and then its argument prototype would still apply.  */
32043#ifdef __cplusplus
32044extern "C"
32045#endif
32046char sched_yield ();
32047int
32048main ()
32049{
32050return sched_yield ();
32051  ;
32052  return 0;
32053}
32054_ACEOF
32055if ac_fn_c_try_link "$LINENO"; then :
32056  ac_cv_lib_rt_sched_yield=yes
32057else
32058  ac_cv_lib_rt_sched_yield=no
32059fi
32060rm -f core conftest.err conftest.$ac_objext \
32061    conftest$ac_exeext conftest.$ac_ext
32062LIBS=$ac_check_lib_save_LIBS
32063fi
32064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32065$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32066if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
32067  LIB_SCHED_YIELD=-lrt
32068else
32069            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32070$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32071if ${ac_cv_lib_posix4_sched_yield+:} false; then :
32072  $as_echo_n "(cached) " >&6
32073else
32074  ac_check_lib_save_LIBS=$LIBS
32075LIBS="-lposix4  $LIBS"
32076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32077/* end confdefs.h.  */
32078
32079/* Override any GCC internal prototype to avoid an error.
32080   Use char because int might match the return type of a GCC
32081   builtin and then its argument prototype would still apply.  */
32082#ifdef __cplusplus
32083extern "C"
32084#endif
32085char sched_yield ();
32086int
32087main ()
32088{
32089return sched_yield ();
32090  ;
32091  return 0;
32092}
32093_ACEOF
32094if ac_fn_c_try_link "$LINENO"; then :
32095  ac_cv_lib_posix4_sched_yield=yes
32096else
32097  ac_cv_lib_posix4_sched_yield=no
32098fi
32099rm -f core conftest.err conftest.$ac_objext \
32100    conftest$ac_exeext conftest.$ac_ext
32101LIBS=$ac_check_lib_save_LIBS
32102fi
32103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32104$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32105if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
32106  LIB_SCHED_YIELD=-lposix4
32107fi
32108
32109fi
32110
32111
32112fi
32113rm -f core conftest.err conftest.$ac_objext \
32114    conftest$ac_exeext conftest.$ac_ext
32115
32116
32117    gl_pthreadlib_body_done=done
32118  fi
32119
32120      LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
32121      LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
32122      if test $gl_pthread_api = yes; then
32123        if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
32124          gl_threads_api='isoc+posix'
32125
32126$as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
32127
32128          LIBTHREAD= LTLIBTHREAD=
32129        else
32130          gl_threads_api=posix
32131
32132$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
32133
32134          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
32135            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
32136
32137$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
32138
32139              LIBTHREAD= LTLIBTHREAD=
32140            fi
32141          fi
32142        fi
32143      fi
32144    fi
32145    if test $gl_threads_api = none; then
32146      if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
32147
32148
32149
32150  if test -z "$gl_stdthreadlib_body_done"; then
32151
32152
32153    case "$host_os" in
32154      mingw*)
32155        LIBSTDTHREAD=
32156        ;;
32157      *)
32158
32159
32160  if test -z "$gl_pthreadlib_body_done"; then
32161    gl_pthread_api=no
32162    LIBPTHREAD=
32163    LIBPMULTITHREAD=
32164    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
32165    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
32166    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
32167if test "x$ac_cv_header_pthread_h" = xyes; then :
32168  gl_have_pthread_h=yes
32169else
32170  gl_have_pthread_h=no
32171fi
32172
32173
32174    if test "$gl_have_pthread_h" = yes; then
32175      # Other possible tests:
32176      #   -lpthreads (FSU threads, PCthreads)
32177      #   -lgthreads
32178      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
32179      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
32180      # the second one only in libpthread, and lock.c needs it.
32181      #
32182      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
32183      # needs -pthread for some reason.  See:
32184      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32185      save_LIBS=$LIBS
32186      for gl_pthread in '' '-pthread'; do
32187        LIBS="$LIBS $gl_pthread"
32188        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32189/* end confdefs.h.  */
32190#include <pthread.h>
32191               pthread_mutex_t m;
32192               pthread_mutexattr_t ma;
32193
32194int
32195main ()
32196{
32197pthread_mutex_lock (&m);
32198               pthread_mutexattr_init (&ma);
32199  ;
32200  return 0;
32201}
32202_ACEOF
32203if ac_fn_c_try_link "$LINENO"; then :
32204  gl_pthread_api=yes
32205           LIBPTHREAD=$gl_pthread
32206           LIBPMULTITHREAD=$gl_pthread
32207fi
32208rm -f core conftest.err conftest.$ac_objext \
32209    conftest$ac_exeext conftest.$ac_ext
32210        LIBS=$save_LIBS
32211        test $gl_pthread_api = yes && break
32212      done
32213
32214      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
32215      # since it is defined as a macro on OSF/1.)
32216      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
32217        # The program links fine without libpthread. But it may actually
32218        # need to link with libpthread in order to create multiple threads.
32219        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
32220$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
32221if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
32222  $as_echo_n "(cached) " >&6
32223else
32224  ac_check_lib_save_LIBS=$LIBS
32225LIBS="-lpthread  $LIBS"
32226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32227/* end confdefs.h.  */
32228
32229/* Override any GCC internal prototype to avoid an error.
32230   Use char because int might match the return type of a GCC
32231   builtin and then its argument prototype would still apply.  */
32232#ifdef __cplusplus
32233extern "C"
32234#endif
32235char pthread_kill ();
32236int
32237main ()
32238{
32239return pthread_kill ();
32240  ;
32241  return 0;
32242}
32243_ACEOF
32244if ac_fn_c_try_link "$LINENO"; then :
32245  ac_cv_lib_pthread_pthread_kill=yes
32246else
32247  ac_cv_lib_pthread_pthread_kill=no
32248fi
32249rm -f core conftest.err conftest.$ac_objext \
32250    conftest$ac_exeext conftest.$ac_ext
32251LIBS=$ac_check_lib_save_LIBS
32252fi
32253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
32254$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
32255if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
32256  LIBPMULTITHREAD=-lpthread
32257           # On Solaris and HP-UX, most pthread functions exist also in libc.
32258           # Therefore pthread_in_use() needs to actually try to create a
32259           # thread: pthread_create from libc will fail, whereas
32260           # pthread_create will actually create a thread.
32261           # On Solaris 10 or newer, this test is no longer needed, because
32262           # libc contains the fully functional pthread functions.
32263           case "$host_os" in
32264             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
32265
32266$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
32267
32268           esac
32269
32270fi
32271
32272      elif test $gl_pthread_api != yes; then
32273        # Some library is needed. Try libpthread and libc_r.
32274        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
32275$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
32276if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
32277  $as_echo_n "(cached) " >&6
32278else
32279  ac_check_lib_save_LIBS=$LIBS
32280LIBS="-lpthread  $LIBS"
32281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32282/* end confdefs.h.  */
32283
32284/* Override any GCC internal prototype to avoid an error.
32285   Use char because int might match the return type of a GCC
32286   builtin and then its argument prototype would still apply.  */
32287#ifdef __cplusplus
32288extern "C"
32289#endif
32290char pthread_kill ();
32291int
32292main ()
32293{
32294return pthread_kill ();
32295  ;
32296  return 0;
32297}
32298_ACEOF
32299if ac_fn_c_try_link "$LINENO"; then :
32300  ac_cv_lib_pthread_pthread_kill=yes
32301else
32302  ac_cv_lib_pthread_pthread_kill=no
32303fi
32304rm -f core conftest.err conftest.$ac_objext \
32305    conftest$ac_exeext conftest.$ac_ext
32306LIBS=$ac_check_lib_save_LIBS
32307fi
32308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
32309$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
32310if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
32311  gl_pthread_api=yes
32312           LIBPTHREAD=-lpthread
32313           LIBPMULTITHREAD=-lpthread
32314fi
32315
32316        if test $gl_pthread_api != yes; then
32317          # For FreeBSD 4.
32318          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
32319$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
32320if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
32321  $as_echo_n "(cached) " >&6
32322else
32323  ac_check_lib_save_LIBS=$LIBS
32324LIBS="-lc_r  $LIBS"
32325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32326/* end confdefs.h.  */
32327
32328/* Override any GCC internal prototype to avoid an error.
32329   Use char because int might match the return type of a GCC
32330   builtin and then its argument prototype would still apply.  */
32331#ifdef __cplusplus
32332extern "C"
32333#endif
32334char pthread_kill ();
32335int
32336main ()
32337{
32338return pthread_kill ();
32339  ;
32340  return 0;
32341}
32342_ACEOF
32343if ac_fn_c_try_link "$LINENO"; then :
32344  ac_cv_lib_c_r_pthread_kill=yes
32345else
32346  ac_cv_lib_c_r_pthread_kill=no
32347fi
32348rm -f core conftest.err conftest.$ac_objext \
32349    conftest$ac_exeext conftest.$ac_ext
32350LIBS=$ac_check_lib_save_LIBS
32351fi
32352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
32353$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
32354if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
32355  gl_pthread_api=yes
32356             LIBPTHREAD=-lc_r
32357             LIBPMULTITHREAD=-lc_r
32358fi
32359
32360        fi
32361      fi
32362    fi
32363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
32364$as_echo_n "checking whether POSIX threads API is available... " >&6; }
32365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
32366$as_echo "$gl_pthread_api" >&6; }
32367
32368
32369    if test $gl_pthread_api = yes; then
32370
32371$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
32372
32373    fi
32374
32375        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32376/* end confdefs.h.  */
32377#include <sched.h>
32378int
32379main ()
32380{
32381sched_yield ();
32382  ;
32383  return 0;
32384}
32385_ACEOF
32386if ac_fn_c_try_link "$LINENO"; then :
32387  LIB_SCHED_YIELD=
32388
32389else
32390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32391$as_echo_n "checking for sched_yield in -lrt... " >&6; }
32392if ${ac_cv_lib_rt_sched_yield+:} false; then :
32393  $as_echo_n "(cached) " >&6
32394else
32395  ac_check_lib_save_LIBS=$LIBS
32396LIBS="-lrt  $LIBS"
32397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32398/* end confdefs.h.  */
32399
32400/* Override any GCC internal prototype to avoid an error.
32401   Use char because int might match the return type of a GCC
32402   builtin and then its argument prototype would still apply.  */
32403#ifdef __cplusplus
32404extern "C"
32405#endif
32406char sched_yield ();
32407int
32408main ()
32409{
32410return sched_yield ();
32411  ;
32412  return 0;
32413}
32414_ACEOF
32415if ac_fn_c_try_link "$LINENO"; then :
32416  ac_cv_lib_rt_sched_yield=yes
32417else
32418  ac_cv_lib_rt_sched_yield=no
32419fi
32420rm -f core conftest.err conftest.$ac_objext \
32421    conftest$ac_exeext conftest.$ac_ext
32422LIBS=$ac_check_lib_save_LIBS
32423fi
32424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32425$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32426if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
32427  LIB_SCHED_YIELD=-lrt
32428else
32429            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32430$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32431if ${ac_cv_lib_posix4_sched_yield+:} false; then :
32432  $as_echo_n "(cached) " >&6
32433else
32434  ac_check_lib_save_LIBS=$LIBS
32435LIBS="-lposix4  $LIBS"
32436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32437/* end confdefs.h.  */
32438
32439/* Override any GCC internal prototype to avoid an error.
32440   Use char because int might match the return type of a GCC
32441   builtin and then its argument prototype would still apply.  */
32442#ifdef __cplusplus
32443extern "C"
32444#endif
32445char sched_yield ();
32446int
32447main ()
32448{
32449return sched_yield ();
32450  ;
32451  return 0;
32452}
32453_ACEOF
32454if ac_fn_c_try_link "$LINENO"; then :
32455  ac_cv_lib_posix4_sched_yield=yes
32456else
32457  ac_cv_lib_posix4_sched_yield=no
32458fi
32459rm -f core conftest.err conftest.$ac_objext \
32460    conftest$ac_exeext conftest.$ac_ext
32461LIBS=$ac_check_lib_save_LIBS
32462fi
32463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32464$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32465if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
32466  LIB_SCHED_YIELD=-lposix4
32467fi
32468
32469fi
32470
32471
32472fi
32473rm -f core conftest.err conftest.$ac_objext \
32474    conftest$ac_exeext conftest.$ac_ext
32475
32476
32477    gl_pthreadlib_body_done=done
32478  fi
32479
32480        if test $ac_cv_header_threads_h = yes; then
32481                                                  for ac_func in thrd_create
32482do :
32483  ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
32484if test "x$ac_cv_func_thrd_create" = xyes; then :
32485  cat >>confdefs.h <<_ACEOF
32486#define HAVE_THRD_CREATE 1
32487_ACEOF
32488
32489fi
32490done
32491
32492          if test $ac_cv_func_thrd_create = yes; then
32493            LIBSTDTHREAD=
32494          else
32495            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
32496$as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
32497if ${ac_cv_lib_stdthreads_thrd_create+:} false; then :
32498  $as_echo_n "(cached) " >&6
32499else
32500  ac_check_lib_save_LIBS=$LIBS
32501LIBS="-lstdthreads  $LIBS"
32502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32503/* end confdefs.h.  */
32504
32505/* Override any GCC internal prototype to avoid an error.
32506   Use char because int might match the return type of a GCC
32507   builtin and then its argument prototype would still apply.  */
32508#ifdef __cplusplus
32509extern "C"
32510#endif
32511char thrd_create ();
32512int
32513main ()
32514{
32515return thrd_create ();
32516  ;
32517  return 0;
32518}
32519_ACEOF
32520if ac_fn_c_try_link "$LINENO"; then :
32521  ac_cv_lib_stdthreads_thrd_create=yes
32522else
32523  ac_cv_lib_stdthreads_thrd_create=no
32524fi
32525rm -f core conftest.err conftest.$ac_objext \
32526    conftest$ac_exeext conftest.$ac_ext
32527LIBS=$ac_check_lib_save_LIBS
32528fi
32529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
32530$as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
32531if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes; then :
32532
32533              LIBSTDTHREAD='-lstdthreads -lpthread'
32534
32535else
32536
32537                            LIBSTDTHREAD="$LIBPMULTITHREAD"
32538
32539fi
32540
32541          fi
32542        else
32543                    LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
32544        fi
32545        ;;
32546    esac
32547
32548
32549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
32550$as_echo_n "checking whether ISO C threads API is available... " >&6; }
32551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
32552$as_echo "$ac_cv_header_threads_h" >&6; }
32553    gl_stdthreadlib_body_done=done
32554  fi
32555
32556        LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
32557        LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
32558        gl_threads_api=isoc
32559
32560$as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
32561
32562      fi
32563    fi
32564    if test $gl_threads_api = none; then
32565      case "$gl_use_threads" in
32566        yes | windows | win32) # The 'win32' is for backward compatibility.
32567          if { case "$host_os" in
32568                 mingw*) true;;
32569                 *) false;;
32570               esac
32571             }; then
32572            gl_threads_api=windows
32573
32574$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
32575
32576          fi
32577          ;;
32578      esac
32579    fi
32580  fi
32581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
32582$as_echo_n "checking for multithread API to use... " >&6; }
32583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
32584$as_echo "$gl_threads_api" >&6; }
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
32598$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
32599if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
32600  $as_echo_n "(cached) " >&6
32601else
32602  rm -f conftest.sym conftest.file
32603     echo >conftest.file
32604     if test "$cross_compiling" = yes; then :
32605  case "$host_os" in
32606          linux-* | linux)
32607            # Guess yes on Linux systems.
32608            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
32609          *-gnu* | gnu*)
32610            # Guess yes on glibc systems.
32611            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
32612          mingw*)
32613            # Guess no on native Windows.
32614            gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
32615          *)
32616            # If we don't know, obey --enable-cross-guesses.
32617            gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
32618        esac
32619
32620else
32621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32622/* end confdefs.h.  */
32623$ac_includes_default
32624int
32625main ()
32626{
32627struct stat sbuf;
32628            if (symlink ("conftest.file", "conftest.sym") != 0)
32629              return 1;
32630            /* Linux will dereference the symlink and fail, as required by
32631               POSIX.  That is better in the sense that it means we will not
32632               have to compile and use the lstat wrapper.  */
32633            return lstat ("conftest.sym/", &sbuf) == 0;
32634
32635  ;
32636  return 0;
32637}
32638_ACEOF
32639if ac_fn_c_try_run "$LINENO"; then :
32640  gl_cv_func_lstat_dereferences_slashed_symlink=yes
32641else
32642  gl_cv_func_lstat_dereferences_slashed_symlink=no
32643fi
32644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32645  conftest.$ac_objext conftest.beam conftest.$ac_ext
32646fi
32647
32648     rm -f conftest.sym conftest.file
32649
32650fi
32651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
32652$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
32653  case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
32654    *yes)
32655
32656cat >>confdefs.h <<_ACEOF
32657#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
32658_ACEOF
32659
32660      ;;
32661  esac
32662
32663
32664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
32665$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
32666if ${gl_cv_func_malloc_posix+:} false; then :
32667  $as_echo_n "(cached) " >&6
32668else
32669
32670                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32671/* end confdefs.h.  */
32672
32673int
32674main ()
32675{
32676#if defined _WIN32 && ! defined __CYGWIN__
32677             choke me
32678             #endif
32679
32680  ;
32681  return 0;
32682}
32683_ACEOF
32684if ac_fn_c_try_compile "$LINENO"; then :
32685  gl_cv_func_malloc_posix=yes
32686else
32687  gl_cv_func_malloc_posix=no
32688fi
32689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32690
32691fi
32692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
32693$as_echo "$gl_cv_func_malloc_posix" >&6; }
32694
32695
32696
32697      for ac_header in stdlib.h
32698do :
32699  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
32700if test "x$ac_cv_header_stdlib_h" = xyes; then :
32701  cat >>confdefs.h <<_ACEOF
32702#define HAVE_STDLIB_H 1
32703_ACEOF
32704
32705fi
32706
32707done
32708
32709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
32710$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
32711if ${ac_cv_func_malloc_0_nonnull+:} false; then :
32712  $as_echo_n "(cached) " >&6
32713else
32714  if test "$cross_compiling" = yes; then :
32715  case "$host_os" in
32716          # Guess yes on platforms where we know the result.
32717          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
32718          | hpux* | solaris* | cygwin* | mingw*)
32719            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
32720          # If we don't know, obey --enable-cross-guesses.
32721          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
32722        esac
32723
32724else
32725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32726/* end confdefs.h.  */
32727#if defined STDC_HEADERS || defined HAVE_STDLIB_H
32728            # include <stdlib.h>
32729            #else
32730            char *malloc ();
32731            #endif
32732
32733int
32734main ()
32735{
32736char *p = malloc (0);
32737            int result = !p;
32738            free (p);
32739            return result;
32740  ;
32741  return 0;
32742}
32743
32744_ACEOF
32745if ac_fn_c_try_run "$LINENO"; then :
32746  ac_cv_func_malloc_0_nonnull=yes
32747else
32748  ac_cv_func_malloc_0_nonnull=no
32749fi
32750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32751  conftest.$ac_objext conftest.beam conftest.$ac_ext
32752fi
32753
32754
32755fi
32756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
32757$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
32758  case "$ac_cv_func_malloc_0_nonnull" in
32759    *yes)
32760      gl_cv_func_malloc_0_nonnull=1
32761      ;;
32762    *)
32763      gl_cv_func_malloc_0_nonnull=0
32764      ;;
32765  esac
32766
32767
32768cat >>confdefs.h <<_ACEOF
32769#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
32770_ACEOF
32771
32772
32773
32774
32775
32776
32777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
32778$as_echo_n "checking for mbstate_t... " >&6; }
32779if ${ac_cv_type_mbstate_t+:} false; then :
32780  $as_echo_n "(cached) " >&6
32781else
32782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32783/* end confdefs.h.  */
32784$ac_includes_default
32785/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32786   <wchar.h>.
32787   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32788   included before <wchar.h>.  */
32789#include <stddef.h>
32790#include <stdio.h>
32791#include <time.h>
32792#include <wchar.h>
32793int
32794main ()
32795{
32796mbstate_t x; return sizeof x;
32797  ;
32798  return 0;
32799}
32800_ACEOF
32801if ac_fn_c_try_compile "$LINENO"; then :
32802  ac_cv_type_mbstate_t=yes
32803else
32804  ac_cv_type_mbstate_t=no
32805fi
32806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32807fi
32808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
32809$as_echo "$ac_cv_type_mbstate_t" >&6; }
32810   if test $ac_cv_type_mbstate_t = yes; then
32811
32812$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
32813
32814   else
32815
32816$as_echo "#define mbstate_t int" >>confdefs.h
32817
32818   fi
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
32834  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
32835  # irrelevant for anonymous mappings.
32836  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
32837if test "x$ac_cv_func_mmap" = xyes; then :
32838  gl_have_mmap=yes
32839else
32840  gl_have_mmap=no
32841fi
32842
32843
32844  # Try to allow MAP_ANONYMOUS.
32845  gl_have_mmap_anonymous=no
32846  if test $gl_have_mmap = yes; then
32847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
32848$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
32849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32850/* end confdefs.h.  */
32851
32852#include <sys/mman.h>
32853#ifdef MAP_ANONYMOUS
32854    I cannot identify this map
32855#endif
32856
32857_ACEOF
32858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32859  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
32860  gl_have_mmap_anonymous=yes
32861fi
32862rm -f conftest*
32863
32864    if test $gl_have_mmap_anonymous != yes; then
32865      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32866/* end confdefs.h.  */
32867
32868#include <sys/mman.h>
32869#ifdef MAP_ANON
32870    I cannot identify this map
32871#endif
32872
32873_ACEOF
32874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32875  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
32876
32877$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
32878
32879         gl_have_mmap_anonymous=yes
32880fi
32881rm -f conftest*
32882
32883    fi
32884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
32885$as_echo "$gl_have_mmap_anonymous" >&6; }
32886    if test $gl_have_mmap_anonymous = yes; then
32887
32888$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
32889
32890    fi
32891  fi
32892
32893
32894
32895
32896
32897  # Detect platform-specific bugs in some versions of glibc:
32898  # memchr should not dereference anything with length 0
32899  #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
32900  # memchr should not dereference overestimated length after a match
32901  #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
32902  #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
32903  # memchr should cast the second argument to 'unsigned char'.
32904  #   This bug exists in Android 4.3.
32905  # Assume that memchr works on platforms that lack mprotect.
32906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
32907$as_echo_n "checking whether memchr works... " >&6; }
32908if ${gl_cv_func_memchr_works+:} false; then :
32909  $as_echo_n "(cached) " >&6
32910else
32911  if test "$cross_compiling" = yes; then :
32912  case "$host_os" in
32913                           # Guess no on Android.
32914          linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
32915                           # Guess yes on native Windows.
32916          mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
32917                           # If we don't know, obey --enable-cross-guesses.
32918          *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
32919        esac
32920
32921else
32922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32923/* end confdefs.h.  */
32924
32925#include <string.h>
32926#if HAVE_SYS_MMAN_H
32927# include <fcntl.h>
32928# include <unistd.h>
32929# include <sys/types.h>
32930# include <sys/mman.h>
32931# ifndef MAP_FILE
32932#  define MAP_FILE 0
32933# endif
32934#endif
32935
32936int
32937main ()
32938{
32939
32940  int result = 0;
32941  char *fence = NULL;
32942#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
32943# if HAVE_MAP_ANONYMOUS
32944  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
32945  const int fd = -1;
32946# else /* !HAVE_MAP_ANONYMOUS */
32947  const int flags = MAP_FILE | MAP_PRIVATE;
32948  int fd = open ("/dev/zero", O_RDONLY, 0666);
32949  if (fd >= 0)
32950# endif
32951    {
32952      int pagesize = getpagesize ();
32953      char *two_pages =
32954        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
32955                       flags, fd, 0);
32956      if (two_pages != (char *)(-1)
32957          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
32958        fence = two_pages + pagesize;
32959    }
32960#endif
32961  if (fence)
32962    {
32963      if (memchr (fence, 0, 0))
32964        result |= 1;
32965      strcpy (fence - 9, "12345678");
32966      if (memchr (fence - 9, 0, 79) != fence - 1)
32967        result |= 2;
32968      if (memchr (fence - 1, 0, 3) != fence - 1)
32969        result |= 4;
32970    }
32971  /* Test against bug on Android 4.3.  */
32972  {
32973    char input[3];
32974    input[0] = 'a';
32975    input[1] = 'b';
32976    input[2] = 'c';
32977    if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
32978      result |= 8;
32979  }
32980  return result;
32981
32982  ;
32983  return 0;
32984}
32985_ACEOF
32986if ac_fn_c_try_run "$LINENO"; then :
32987  gl_cv_func_memchr_works=yes
32988else
32989  gl_cv_func_memchr_works=no
32990fi
32991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32992  conftest.$ac_objext conftest.beam conftest.$ac_ext
32993fi
32994
32995
32996fi
32997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
32998$as_echo "$gl_cv_func_memchr_works" >&6; }
32999  case "$gl_cv_func_memchr_works" in
33000    *yes) ;;
33001    *) REPLACE_MEMCHR=1 ;;
33002  esac
33003
33004ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
33005if test "x$ac_cv_have_decl_memmem" = xyes; then :
33006  ac_have_decl=1
33007else
33008  ac_have_decl=0
33009fi
33010
33011cat >>confdefs.h <<_ACEOF
33012#define HAVE_DECL_MEMMEM $ac_have_decl
33013_ACEOF
33014
33015
33016
33017
33018
33019  for ac_func in memmem
33020do :
33021  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
33022if test "x$ac_cv_func_memmem" = xyes; then :
33023  cat >>confdefs.h <<_ACEOF
33024#define HAVE_MEMMEM 1
33025_ACEOF
33026
33027fi
33028done
33029
33030  if test $ac_cv_func_memmem = yes; then
33031    HAVE_MEMMEM=1
33032  else
33033    HAVE_MEMMEM=0
33034  fi
33035
33036  if test $ac_cv_have_decl_memmem = no; then
33037    HAVE_DECL_MEMMEM=0
33038  else
33039            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
33040$as_echo_n "checking whether memmem works... " >&6; }
33041if ${gl_cv_func_memmem_works_always+:} false; then :
33042  $as_echo_n "(cached) " >&6
33043else
33044  if test "$cross_compiling" = yes; then :
33045                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33046/* end confdefs.h.  */
33047
33048#ifdef __GNU_LIBRARY__
33049 #include <features.h>
33050 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
33051                          || __GLIBC_MINOR__ > 12)) \
33052      || (__GLIBC__ > 2)) \
33053     || defined __UCLIBC__
33054  Lucky user
33055 #endif
33056#elif defined __CYGWIN__
33057 #include <cygwin/version.h>
33058 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
33059  Lucky user
33060 #endif
33061#else
33062  Lucky user
33063#endif
33064
33065_ACEOF
33066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33067  $EGREP "Lucky user" >/dev/null 2>&1; then :
33068  gl_cv_func_memmem_works_always="guessing yes"
33069else
33070  gl_cv_func_memmem_works_always="$gl_cross_guess_normal"
33071fi
33072rm -f conftest*
33073
33074
33075else
33076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33077/* end confdefs.h.  */
33078
33079#include <string.h> /* for memmem */
33080#define P "_EF_BF_BD"
33081#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
33082#define NEEDLE P P P P P
33083
33084int
33085main ()
33086{
33087
33088    int result = 0;
33089    if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
33090      result |= 1;
33091    /* Check for empty needle behavior.  */
33092    {
33093      const char *haystack = "AAA";
33094      if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
33095        result |= 2;
33096    }
33097    return result;
33098
33099  ;
33100  return 0;
33101}
33102_ACEOF
33103if ac_fn_c_try_run "$LINENO"; then :
33104  gl_cv_func_memmem_works_always=yes
33105else
33106  gl_cv_func_memmem_works_always=no
33107fi
33108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33109  conftest.$ac_objext conftest.beam conftest.$ac_ext
33110fi
33111
33112
33113fi
33114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
33115$as_echo "$gl_cv_func_memmem_works_always" >&6; }
33116    case "$gl_cv_func_memmem_works_always" in
33117      *yes) ;;
33118      *)
33119        REPLACE_MEMMEM=1
33120        ;;
33121    esac
33122  fi
33123  :
33124
33125ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
33126if test "x$ac_cv_have_decl_memrchr" = xyes; then :
33127  ac_have_decl=1
33128else
33129  ac_have_decl=0
33130fi
33131
33132cat >>confdefs.h <<_ACEOF
33133#define HAVE_DECL_MEMRCHR $ac_have_decl
33134_ACEOF
33135
33136
33137
33138
33139
33140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
33141$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
33142if ${gl_cv_minmax_in_limits_h+:} false; then :
33143  $as_echo_n "(cached) " >&6
33144else
33145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33146/* end confdefs.h.  */
33147#include <limits.h>
33148            int x = MIN (42, 17);
33149int
33150main ()
33151{
33152
33153  ;
33154  return 0;
33155}
33156_ACEOF
33157if ac_fn_c_try_compile "$LINENO"; then :
33158  gl_cv_minmax_in_limits_h=yes
33159else
33160  gl_cv_minmax_in_limits_h=no
33161fi
33162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33163fi
33164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
33165$as_echo "$gl_cv_minmax_in_limits_h" >&6; }
33166  if test $gl_cv_minmax_in_limits_h = yes; then
33167
33168$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
33169
33170  fi
33171
33172
33173
33174
33175
33176
33177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
33178$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
33179if ${gl_cv_minmax_in_sys_param_h+:} false; then :
33180  $as_echo_n "(cached) " >&6
33181else
33182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33183/* end confdefs.h.  */
33184#include <sys/param.h>
33185            int x = MIN (42, 17);
33186int
33187main ()
33188{
33189
33190  ;
33191  return 0;
33192}
33193_ACEOF
33194if ac_fn_c_try_compile "$LINENO"; then :
33195  gl_cv_minmax_in_sys_param_h=yes
33196else
33197  gl_cv_minmax_in_sys_param_h=no
33198fi
33199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33200fi
33201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
33202$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
33203  if test $gl_cv_minmax_in_sys_param_h = yes; then
33204
33205$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
33206
33207  fi
33208
33209
33210
33211
33212
33213
33214
33215  GNULIB_CTIME=0;
33216  GNULIB_MKTIME=0;
33217  GNULIB_LOCALTIME=0;
33218  GNULIB_NANOSLEEP=0;
33219  GNULIB_STRFTIME=0;
33220  GNULIB_STRPTIME=0;
33221  GNULIB_TIMEGM=0;
33222  GNULIB_TIME_R=0;
33223  GNULIB_TIME_RZ=0;
33224  GNULIB_TZSET=0;
33225    HAVE_DECL_LOCALTIME_R=1;
33226  HAVE_NANOSLEEP=1;
33227  HAVE_STRPTIME=1;
33228  HAVE_TIMEGM=1;
33229  HAVE_TZSET=1;
33230    HAVE_TIMEZONE_T=0;
33231        REPLACE_CTIME=GNULIB_PORTCHECK;
33232  REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
33233  REPLACE_MKTIME=GNULIB_PORTCHECK;
33234  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
33235  REPLACE_STRFTIME=GNULIB_PORTCHECK;
33236  REPLACE_TIMEGM=GNULIB_PORTCHECK;
33237  REPLACE_TZSET=GNULIB_PORTCHECK;
33238
33239      : ${GNULIB_GETTIMEOFDAY=0};
33240        REPLACE_GMTIME=0;
33241  REPLACE_LOCALTIME=0;
33242
33243
33244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5
33245$as_echo_n "checking whether time_t is signed... " >&6; }
33246if ${gl_cv_time_t_is_signed+:} false; then :
33247  $as_echo_n "(cached) " >&6
33248else
33249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33250/* end confdefs.h.  */
33251#include <time.h>
33252                          char time_t_signed[(time_t) -1 < 0 ? 1 : -1];
33253int
33254main ()
33255{
33256
33257  ;
33258  return 0;
33259}
33260_ACEOF
33261if ac_fn_c_try_compile "$LINENO"; then :
33262  gl_cv_time_t_is_signed=yes
33263else
33264  gl_cv_time_t_is_signed=no
33265fi
33266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33267fi
33268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_t_is_signed" >&5
33269$as_echo "$gl_cv_time_t_is_signed" >&6; }
33270  if test $gl_cv_time_t_is_signed = yes; then
33271
33272$as_echo "#define TIME_T_IS_SIGNED 1" >>confdefs.h
33273
33274  fi
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
33286$as_echo_n "checking for working mktime... " >&6; }
33287if ${gl_cv_func_working_mktime+:} false; then :
33288  $as_echo_n "(cached) " >&6
33289else
33290  if test $APPLE_UNIVERSAL_BUILD = 1; then
33291       # A universal build on Apple Mac OS X platforms.
33292       # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
33293       # But we need a configuration result that is valid in both modes.
33294       gl_cv_func_working_mktime="guessing no"
33295     else
33296       if test "$cross_compiling" = yes; then :
33297  case "$host_os" in
33298                    # Guess no on native Windows.
33299            mingw*) gl_cv_func_working_mktime="guessing no" ;;
33300            *)      gl_cv_func_working_mktime="$gl_cross_guess_normal" ;;
33301          esac
33302
33303else
33304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33305/* end confdefs.h.  */
33306/* Test program from Paul Eggert and Tony Leneis.  */
33307#include <limits.h>
33308#include <stdlib.h>
33309#include <time.h>
33310
33311#ifdef HAVE_UNISTD_H
33312# include <unistd.h>
33313#endif
33314
33315#if HAVE_DECL_ALARM
33316# include <signal.h>
33317#endif
33318
33319#ifndef TIME_T_IS_SIGNED
33320# define TIME_T_IS_SIGNED 0
33321#endif
33322
33323/* Work around redefinition to rpl_putenv by other config tests.  */
33324#undef putenv
33325
33326static time_t time_t_max;
33327static time_t time_t_min;
33328
33329/* Values we'll use to set the TZ environment variable.  */
33330static char *tz_strings[] = {
33331  (char *) 0, "TZ=GMT0", "TZ=JST-9",
33332  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
33333};
33334#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
33335
33336/* Return 0 if mktime fails to convert a date in the spring-forward gap.
33337   Based on a problem report from Andreas Jaeger.  */
33338static int
33339spring_forward_gap ()
33340{
33341  /* glibc (up to about 1998-10-07) failed this test. */
33342  struct tm tm;
33343
33344  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
33345     instead of "TZ=America/Vancouver" in order to detect the bug even
33346     on systems that don't support the Olson extension, or don't have the
33347     full zoneinfo tables installed.  */
33348  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
33349
33350  tm.tm_year = 98;
33351  tm.tm_mon = 3;
33352  tm.tm_mday = 5;
33353  tm.tm_hour = 2;
33354  tm.tm_min = 0;
33355  tm.tm_sec = 0;
33356  tm.tm_isdst = -1;
33357  return mktime (&tm) != (time_t) -1;
33358}
33359
33360static int
33361mktime_test1 (time_t now)
33362{
33363  struct tm *lt;
33364  return ! (lt = localtime (&now)) || mktime (lt) == now;
33365}
33366
33367static int
33368mktime_test (time_t now)
33369{
33370  return (mktime_test1 (now)
33371          && mktime_test1 ((time_t) (time_t_max - now))
33372          && mktime_test1 ((time_t) (time_t_min + now)));
33373}
33374
33375static int
33376irix_6_4_bug ()
33377{
33378  /* Based on code from Ariel Faigon.  */
33379  struct tm tm;
33380  tm.tm_year = 96;
33381  tm.tm_mon = 3;
33382  tm.tm_mday = 0;
33383  tm.tm_hour = 0;
33384  tm.tm_min = 0;
33385  tm.tm_sec = 0;
33386  tm.tm_isdst = -1;
33387  mktime (&tm);
33388  return tm.tm_mon == 2 && tm.tm_mday == 31;
33389}
33390
33391static int
33392bigtime_test (int j)
33393{
33394  struct tm tm;
33395  time_t now;
33396  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
33397  now = mktime (&tm);
33398  if (now != (time_t) -1)
33399    {
33400      struct tm *lt = localtime (&now);
33401      if (! (lt
33402             && lt->tm_year == tm.tm_year
33403             && lt->tm_mon == tm.tm_mon
33404             && lt->tm_mday == tm.tm_mday
33405             && lt->tm_hour == tm.tm_hour
33406             && lt->tm_min == tm.tm_min
33407             && lt->tm_sec == tm.tm_sec
33408             && lt->tm_yday == tm.tm_yday
33409             && lt->tm_wday == tm.tm_wday
33410             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
33411                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
33412        return 0;
33413    }
33414  return 1;
33415}
33416
33417static int
33418year_2050_test ()
33419{
33420  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
33421     ignoring leap seconds.  */
33422  unsigned long int answer = 2527315200UL;
33423
33424  struct tm tm;
33425  time_t t;
33426  tm.tm_year = 2050 - 1900;
33427  tm.tm_mon = 2 - 1;
33428  tm.tm_mday = 1;
33429  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
33430  tm.tm_isdst = -1;
33431
33432  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
33433     instead of "TZ=America/Vancouver" in order to detect the bug even
33434     on systems that don't support the Olson extension, or don't have the
33435     full zoneinfo tables installed.  */
33436  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
33437
33438  t = mktime (&tm);
33439
33440  /* Check that the result is either a failure, or close enough
33441     to the correct answer that we can assume the discrepancy is
33442     due to leap seconds.  */
33443  return (t == (time_t) -1
33444          || (0 < t && answer - 120 <= t && t <= answer + 120));
33445}
33446
33447int
33448main ()
33449{
33450  int result = 0;
33451  time_t t, delta;
33452  int i, j;
33453  int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
33454
33455#if HAVE_DECL_ALARM
33456  /* This test makes some buggy mktime implementations loop.
33457     Give up after 60 seconds; a mktime slower than that
33458     isn't worth using anyway.  */
33459  signal (SIGALRM, SIG_DFL);
33460  alarm (60);
33461#endif
33462
33463  time_t_max = (! TIME_T_IS_SIGNED
33464                ? (time_t) -1
33465                : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
33466                   * 2 + 1));
33467  time_t_min = (! TIME_T_IS_SIGNED
33468                ? (time_t) 0
33469                : time_t_signed_magnitude
33470                ? ~ (time_t) 0
33471                : ~ time_t_max);
33472
33473  delta = time_t_max / 997; /* a suitable prime number */
33474  for (i = 0; i < N_STRINGS; i++)
33475    {
33476      if (tz_strings[i])
33477        putenv (tz_strings[i]);
33478
33479      for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
33480        if (! mktime_test (t))
33481          result |= 1;
33482      if ((result & 2) == 0
33483          && ! (mktime_test ((time_t) 1)
33484                && mktime_test ((time_t) (60 * 60))
33485                && mktime_test ((time_t) (60 * 60 * 24))))
33486        result |= 2;
33487
33488      for (j = 1; (result & 4) == 0; j <<= 1)
33489        {
33490          if (! bigtime_test (j))
33491            result |= 4;
33492          if (INT_MAX / 2 < j)
33493            break;
33494        }
33495      if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
33496        result |= 8;
33497    }
33498  if (! irix_6_4_bug ())
33499    result |= 16;
33500  if (! spring_forward_gap ())
33501    result |= 32;
33502  if (! year_2050_test ())
33503    result |= 64;
33504  return result;
33505}
33506_ACEOF
33507if ac_fn_c_try_run "$LINENO"; then :
33508  gl_cv_func_working_mktime=yes
33509else
33510  gl_cv_func_working_mktime=no
33511fi
33512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33513  conftest.$ac_objext conftest.beam conftest.$ac_ext
33514fi
33515
33516     fi
33517
33518fi
33519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
33520$as_echo "$gl_cv_func_working_mktime" >&6; }
33521
33522
33523
33524
33525
33526
33527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
33528$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33529if ${ac_cv_struct_tm+:} false; then :
33530  $as_echo_n "(cached) " >&6
33531else
33532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33533/* end confdefs.h.  */
33534#include <sys/types.h>
33535#include <time.h>
33536
33537int
33538main ()
33539{
33540struct tm tm;
33541				     int *p = &tm.tm_sec;
33542				     return !p;
33543  ;
33544  return 0;
33545}
33546_ACEOF
33547if ac_fn_c_try_compile "$LINENO"; then :
33548  ac_cv_struct_tm=time.h
33549else
33550  ac_cv_struct_tm=sys/time.h
33551fi
33552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33553fi
33554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
33555$as_echo "$ac_cv_struct_tm" >&6; }
33556if test $ac_cv_struct_tm = sys/time.h; then
33557
33558$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
33559
33560fi
33561
33562ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
33563#include <$ac_cv_struct_tm>
33564
33565"
33566if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
33567
33568cat >>confdefs.h <<_ACEOF
33569#define HAVE_STRUCT_TM_TM_ZONE 1
33570_ACEOF
33571
33572
33573fi
33574
33575if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33576
33577$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
33578
33579else
33580  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
33581"
33582if test "x$ac_cv_have_decl_tzname" = xyes; then :
33583  ac_have_decl=1
33584else
33585  ac_have_decl=0
33586fi
33587
33588cat >>confdefs.h <<_ACEOF
33589#define HAVE_DECL_TZNAME $ac_have_decl
33590_ACEOF
33591
33592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
33593$as_echo_n "checking for tzname... " >&6; }
33594if ${ac_cv_var_tzname+:} false; then :
33595  $as_echo_n "(cached) " >&6
33596else
33597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33598/* end confdefs.h.  */
33599#include <time.h>
33600#if !HAVE_DECL_TZNAME
33601extern char *tzname[];
33602#endif
33603
33604int
33605main ()
33606{
33607return tzname[0][0];
33608  ;
33609  return 0;
33610}
33611_ACEOF
33612if ac_fn_c_try_link "$LINENO"; then :
33613  ac_cv_var_tzname=yes
33614else
33615  ac_cv_var_tzname=no
33616fi
33617rm -f core conftest.err conftest.$ac_objext \
33618    conftest$ac_exeext conftest.$ac_ext
33619fi
33620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
33621$as_echo "$ac_cv_var_tzname" >&6; }
33622  if test $ac_cv_var_tzname = yes; then
33623
33624$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
33625
33626  fi
33627fi
33628
33629
33630 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
33631"
33632if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
33633
33634$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
33635
33636fi
33637
33638
33639
33640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
33641$as_echo_n "checking for O_CLOEXEC... " >&6; }
33642if ${gl_cv_macro_O_CLOEXEC+:} false; then :
33643  $as_echo_n "(cached) " >&6
33644else
33645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33646/* end confdefs.h.  */
33647#include <fcntl.h>
33648                          #ifndef O_CLOEXEC
33649                            choke me;
33650                          #endif
33651
33652int
33653main ()
33654{
33655return O_CLOEXEC;
33656  ;
33657  return 0;
33658}
33659_ACEOF
33660if ac_fn_c_try_compile "$LINENO"; then :
33661  gl_cv_macro_O_CLOEXEC=yes
33662else
33663  gl_cv_macro_O_CLOEXEC=no
33664fi
33665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33666fi
33667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
33668$as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
33669
33670
33671
33672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
33673$as_echo_n "checking for promoted mode_t type... " >&6; }
33674if ${gl_cv_promoted_mode_t+:} false; then :
33675  $as_echo_n "(cached) " >&6
33676else
33677
33678                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33679/* end confdefs.h.  */
33680#include <sys/types.h>
33681int
33682main ()
33683{
33684typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
33685  ;
33686  return 0;
33687}
33688_ACEOF
33689if ac_fn_c_try_compile "$LINENO"; then :
33690  gl_cv_promoted_mode_t='int'
33691else
33692  gl_cv_promoted_mode_t='mode_t'
33693fi
33694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695
33696fi
33697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
33698$as_echo "$gl_cv_promoted_mode_t" >&6; }
33699
33700cat >>confdefs.h <<_ACEOF
33701#define PROMOTED_MODE_T $gl_cv_promoted_mode_t
33702_ACEOF
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722  gl_cv_func_vfprintf_posix=no
33723  case "$gl_cv_func_printf_sizes_c99" in
33724    *yes)
33725      case "$gl_cv_func_printf_long_double" in
33726        *yes)
33727          case "$gl_cv_func_printf_infinite" in
33728            *yes)
33729              case "$gl_cv_func_printf_infinite_long_double" in
33730                *yes)
33731                  case "$gl_cv_func_printf_directive_a" in
33732                    *yes)
33733                      case "$gl_cv_func_printf_directive_f" in
33734                        *yes)
33735                          case "$gl_cv_func_printf_directive_n" in
33736                            *yes)
33737                              case "$gl_cv_func_printf_directive_ls" in
33738                                *yes)
33739                                  case "$gl_cv_func_printf_positions" in
33740                                    *yes)
33741                                      case "$gl_cv_func_printf_flag_grouping" in
33742                                        *yes)
33743                                          case "$gl_cv_func_printf_flag_leftadjust" in
33744                                            *yes)
33745                                              case "$gl_cv_func_printf_flag_zero" in
33746                                                *yes)
33747                                                  case "$gl_cv_func_printf_precision" in
33748                                                    *yes)
33749                                                      case "$gl_cv_func_printf_enomem" in
33750                                                        *yes)
33751                                                          # vfprintf exists and is
33752                                                          # already POSIX compliant.
33753                                                          gl_cv_func_vfprintf_posix=yes
33754                                                          ;;
33755                                                      esac
33756                                                      ;;
33757                                                  esac
33758                                                  ;;
33759                                              esac
33760                                              ;;
33761                                          esac
33762                                          ;;
33763                                      esac
33764                                      ;;
33765                                  esac
33766                                  ;;
33767                              esac
33768                              ;;
33769                          esac
33770                          ;;
33771                      esac
33772                      ;;
33773                  esac
33774                  ;;
33775              esac
33776              ;;
33777          esac
33778          ;;
33779      esac
33780      ;;
33781  esac
33782  if test $gl_cv_func_vfprintf_posix = no; then
33783
33784
33785
33786  case "$gl_cv_func_printf_infinite" in
33787    *yes)
33788      ;;
33789    *)
33790
33791$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
33792
33793      ;;
33794  esac
33795
33796
33797
33798
33799  case "$gl_cv_func_printf_long_double" in
33800    *yes)
33801      case "$gl_cv_func_printf_infinite_long_double" in
33802        *yes)
33803          ;;
33804        *)
33805
33806$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
33807
33808          ;;
33809      esac
33810      ;;
33811  esac
33812
33813
33814
33815  case "$gl_cv_func_printf_directive_a" in
33816    *yes)
33817      ;;
33818    *)
33819
33820$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
33821
33822      for ac_func in nl_langinfo
33823do :
33824  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
33825if test "x$ac_cv_func_nl_langinfo" = xyes; then :
33826  cat >>confdefs.h <<_ACEOF
33827#define HAVE_NL_LANGINFO 1
33828_ACEOF
33829
33830fi
33831done
33832
33833      ;;
33834  esac
33835
33836
33837
33838  case "$gl_cv_func_printf_directive_f" in
33839    *yes)
33840      ;;
33841    *)
33842
33843$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
33844
33845      ;;
33846  esac
33847
33848
33849
33850  case "$gl_cv_func_printf_directive_ls" in
33851    *yes)
33852      ;;
33853    *)
33854
33855$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
33856
33857      ;;
33858  esac
33859
33860
33861
33862  case "$gl_cv_func_printf_flag_grouping" in
33863    *yes)
33864      ;;
33865    *)
33866
33867$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
33868
33869      ;;
33870  esac
33871
33872
33873
33874  case "$gl_cv_func_printf_flag_leftadjust" in
33875    *yes)
33876      ;;
33877    *)
33878
33879$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
33880
33881      ;;
33882  esac
33883
33884
33885
33886  case "$gl_cv_func_printf_flag_zero" in
33887    *yes)
33888      ;;
33889    *)
33890
33891$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
33892
33893      ;;
33894  esac
33895
33896
33897
33898  case "$gl_cv_func_printf_precision" in
33899    *yes)
33900      ;;
33901    *)
33902
33903$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
33904
33905
33906$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
33907
33908
33909$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
33910
33911      ;;
33912  esac
33913
33914
33915
33916  case "$gl_cv_func_printf_enomem" in
33917    *yes)
33918      ;;
33919    *)
33920
33921$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
33922
33923
33924$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
33925
33926
33927$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
33928
33929      ;;
33930  esac
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
33973
33974  if test $ac_cv_func_vasnprintf = yes; then
33975
33976$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
33977
33978  fi
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
33989if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
33990
33991else
33992
33993$as_echo "#define ptrdiff_t long" >>confdefs.h
33994
33995
33996fi
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014  gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
34015
34016  REPLACE_VFPRINTF=1
34017
34018$as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
34019
34020  :
34021
34022  fi
34023
34024
34025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34026/* end confdefs.h.  */
34027
34028#ifdef _MSC_VER
34029MicrosoftCompiler
34030#endif
34031
34032_ACEOF
34033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34034  $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
34035  gl_asmext='asm'
34036     gl_c_asm_opt='-c -Fa'
34037
34038else
34039  gl_asmext='s'
34040     gl_c_asm_opt='-S'
34041
34042fi
34043rm -f conftest*
34044
34045
34046
34047
34048
34049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
34050$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
34051if ${gl_cv_prog_as_underscore+:} false; then :
34052  $as_echo_n "(cached) " >&6
34053else
34054  cat > conftest.c <<EOF
34055#ifdef __cplusplus
34056extern "C" int foo (void);
34057#endif
34058int foo(void) { return 0; }
34059EOF
34060     # Look for the assembly language name in the .s file.
34061     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
34062  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34063  (eval $ac_try) 2>&5
34064  ac_status=$?
34065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34066  test $ac_status = 0; }; } >/dev/null 2>&1
34067     if LC_ALL=C $EGREP '(^|[^a-zA-Z0-9_])_foo([^a-zA-Z0-9_]|$)' conftest.$gl_asmext >/dev/null; then
34068       gl_cv_prog_as_underscore=yes
34069     else
34070       gl_cv_prog_as_underscore=no
34071     fi
34072     rm -f conftest*
34073
34074fi
34075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
34076$as_echo "$gl_cv_prog_as_underscore" >&6; }
34077  if test $gl_cv_prog_as_underscore = yes; then
34078    USER_LABEL_PREFIX=_
34079  else
34080    USER_LABEL_PREFIX=
34081  fi
34082
34083cat >>confdefs.h <<_ACEOF
34084#define USER_LABEL_PREFIX $USER_LABEL_PREFIX
34085_ACEOF
34086
34087  ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
34088
34089
34090
34091  GNULIB_PTHREAD_SIGMASK=0;
34092  GNULIB_RAISE=0;
34093  GNULIB_SIGNAL_H_SIGPIPE=0;
34094  GNULIB_SIGPROCMASK=0;
34095  GNULIB_SIGACTION=0;
34096    HAVE_POSIX_SIGNALBLOCKING=1;
34097  HAVE_PTHREAD_SIGMASK=1;
34098  HAVE_RAISE=1;
34099  HAVE_SIGSET_T=1;
34100  HAVE_SIGINFO_T=1;
34101  HAVE_SIGACTION=1;
34102  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
34103
34104  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
34105
34106  HAVE_SIGHANDLER_T=1;
34107  REPLACE_PTHREAD_SIGMASK=0;
34108  REPLACE_RAISE=0;
34109
34110
34111  ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
34112      #include <signal.h>
34113      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
34114      #include <sys/types.h>
34115
34116"
34117if test "x$ac_cv_type_sigset_t" = xyes; then :
34118
34119cat >>confdefs.h <<_ACEOF
34120#define HAVE_SIGSET_T 1
34121_ACEOF
34122
34123gl_cv_type_sigset_t=yes
34124else
34125  gl_cv_type_sigset_t=no
34126fi
34127
34128  if test $gl_cv_type_sigset_t != yes; then
34129    HAVE_SIGSET_T=0
34130  fi
34131
34132
34133
34134
34135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
34136$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
34137if ${ac_cv_gnu_library_2_1+:} false; then :
34138  $as_echo_n "(cached) " >&6
34139else
34140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34141/* end confdefs.h.  */
34142
34143#include <features.h>
34144#ifdef __GNU_LIBRARY__
34145 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34146  Lucky GNU user
34147 #endif
34148#endif
34149#ifdef __UCLIBC__
34150 Lucky user
34151#endif
34152
34153_ACEOF
34154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34155  $EGREP "Lucky" >/dev/null 2>&1; then :
34156  ac_cv_gnu_library_2_1=yes
34157else
34158  ac_cv_gnu_library_2_1=no
34159fi
34160rm -f conftest*
34161
34162
34163
34164fi
34165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
34166$as_echo "$ac_cv_gnu_library_2_1" >&6; }
34167
34168    GLIBC21="$ac_cv_gnu_library_2_1"
34169
34170
34171
34172
34173
34174
34175
34176                              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
34177$as_echo_n "checking for shared library path variable... " >&6; }
34178if ${acl_cv_libpath+:} false; then :
34179  $as_echo_n "(cached) " >&6
34180else
34181
34182    LD="$LD" \
34183    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
34184    . ./conftest.sh
34185    rm -f ./conftest.sh
34186    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
34187
34188fi
34189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
34190$as_echo "$acl_cv_libpath" >&6; }
34191  shlibpath_var="$acl_cv_shlibpath_var"
34192
34193
34194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
34195$as_echo_n "checking whether to activate relocatable installation... " >&6; }
34196  # Check whether --enable-relocatable was given.
34197if test "${enable_relocatable+set}" = set; then :
34198  enableval=$enable_relocatable; if test "$enableval" != no; then
34199       RELOCATABLE=yes
34200     else
34201       RELOCATABLE=no
34202     fi
34203
34204else
34205  RELOCATABLE=no
34206fi
34207
34208
34209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
34210$as_echo "$RELOCATABLE" >&6; }
34211
34212
34213
34214    if test "X$prefix" = "XNONE"; then
34215    reloc_final_prefix="$ac_default_prefix"
34216  else
34217    reloc_final_prefix="$prefix"
34218  fi
34219
34220cat >>confdefs.h <<_ACEOF
34221#define INSTALLPREFIX "${reloc_final_prefix}"
34222_ACEOF
34223
34224  if test $RELOCATABLE = yes; then
34225
34226$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
34227
34228  fi
34229
34230
34231
34232
34233
34234
34235
34236
34237  is_noop=no
34238  use_elf_origin_trick=no
34239  use_macos_tools=no
34240  use_wrapper=no
34241  if test $RELOCATABLE = yes; then
34242    # --enable-relocatable implies --disable-rpath
34243    enable_rpath=no
34244    for ac_header in mach-o/dyld.h
34245do :
34246  ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
34247if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
34248  cat >>confdefs.h <<_ACEOF
34249#define HAVE_MACH_O_DYLD_H 1
34250_ACEOF
34251
34252fi
34253
34254done
34255
34256    for ac_func in _NSGetExecutablePath
34257do :
34258  ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
34259if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
34260  cat >>confdefs.h <<_ACEOF
34261#define HAVE__NSGETEXECUTABLEPATH 1
34262_ACEOF
34263
34264fi
34265done
34266
34267    case "$host_os" in
34268      mingw*) is_noop=yes ;;
34269      # For the platforms that support $ORIGIN, see
34270      # <https://lekensteyn.nl/rpath.html>.
34271      # glibc systems, Linux with musl libc: yes. Android: no.
34272      linux*-android*) ;;
34273      linux* | kfreebsd*) use_elf_origin_trick=yes ;;
34274      # Hurd: <https://lists.gnu.org/r/bug-hurd/2019-02/msg00049.html>
34275      # only after the glibc commit from 2018-01-08
34276      # <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=311ba8dc4416467947eff2ab327854f124226309>
34277      gnu*)
34278        # Test for a glibc version >= 2.27.
34279        for ac_func in copy_file_range
34280do :
34281  ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
34282if test "x$ac_cv_func_copy_file_range" = xyes; then :
34283  cat >>confdefs.h <<_ACEOF
34284#define HAVE_COPY_FILE_RANGE 1
34285_ACEOF
34286
34287fi
34288done
34289
34290        if test $ac_cv_func_copy_file_range = yes; then
34291          use_elf_origin_trick=yes
34292        fi
34293        ;;
34294      # FreeBSD >= 7.3, DragonFly >= 3.0: yes.
34295      freebsd | freebsd[1-7] | freebsd[1-6].* | freebsd7.[0-2]) ;;
34296      dragonfly | dragonfly[1-2] | dragonfly[1-2].*) ;;
34297      freebsd* | dragonfly*) use_elf_origin_trick=yes ;;
34298      # NetBSD >= 8.0: yes.
34299      netbsd | netbsd[1-7] | netbsd[1-7].*) ;;
34300      netbsdelf | netbsdelf[1-7] | netbsdelf[1-7].*) ;;
34301      netbsd*) use_elf_origin_trick=yes ;;
34302      # OpenBSD >= 5.4: yes.
34303      openbsd | openbsd[1-5] | openbsd[1-4].* | openbsd5.[0-3]) ;;
34304      openbsd*) use_elf_origin_trick=yes ;;
34305      # Solaris >= 10: yes.
34306      solaris | solaris2.[1-9] | solaris2.[1-9].*) ;;
34307      solaris*) use_elf_origin_trick=yes ;;
34308      # Haiku: yes.
34309      haiku*) use_elf_origin_trick=yes ;;
34310      # On Mac OS X 10.4 or newer, use Mac OS X tools. See
34311      # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>.
34312      darwin | darwin[1-7].*) ;;
34313      darwin*) use_macos_tools=yes ;;
34314    esac
34315    if test $is_noop = yes; then
34316      RELOCATABLE_LDFLAGS=:
34317
34318    else
34319      if test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
34320                case "$ac_aux_dir" in
34321          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
34322          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
34323        esac
34324        RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
34325
34326        if test $use_macos_tools = yes; then
34327                    case "$ac_aux_dir" in
34328            /*) LIBTOOL="${CONFIG_SHELL-$SHELL} $ac_aux_dir/libtool-reloc $LIBTOOL" ;;
34329            *) LIBTOOL="${CONFIG_SHELL-$SHELL} \$(top_builddir)/$ac_aux_dir/libtool-reloc $LIBTOOL" ;;
34330          esac
34331        fi
34332      else
34333        use_wrapper=yes
34334                                        INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
34335
34336        case "$ac_aux_dir" in
34337          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
34338          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
34339        esac
34340      fi
34341    fi
34342  fi
34343   if test $is_noop = yes || test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
34344  RELOCATABLE_VIA_LD_TRUE=
34345  RELOCATABLE_VIA_LD_FALSE='#'
34346else
34347  RELOCATABLE_VIA_LD_TRUE='#'
34348  RELOCATABLE_VIA_LD_FALSE=
34349fi
34350
34351   if test $use_wrapper = yes; then
34352  RELOCATABLE_VIA_WRAPPER_TRUE=
34353  RELOCATABLE_VIA_WRAPPER_FALSE='#'
34354else
34355  RELOCATABLE_VIA_WRAPPER_TRUE='#'
34356  RELOCATABLE_VIA_WRAPPER_FALSE=
34357fi
34358
34359
34360
34361
34362
34363
34364
34365
34366      RELOCATABLE_STRIP=':'
34367
34368
34369ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
34370if test "x$ac_cv_have_decl_setenv" = xyes; then :
34371  ac_have_decl=1
34372else
34373  ac_have_decl=0
34374fi
34375
34376cat >>confdefs.h <<_ACEOF
34377#define HAVE_DECL_SETENV $ac_have_decl
34378_ACEOF
34379
34380
34381
34382
34383
34384
34385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
34386$as_echo_n "checking for ssize_t... " >&6; }
34387if ${gt_cv_ssize_t+:} false; then :
34388  $as_echo_n "(cached) " >&6
34389else
34390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34391/* end confdefs.h.  */
34392#include <sys/types.h>
34393int
34394main ()
34395{
34396int x = sizeof (ssize_t *) + sizeof (ssize_t);
34397            return !x;
34398  ;
34399  return 0;
34400}
34401_ACEOF
34402if ac_fn_c_try_compile "$LINENO"; then :
34403  gt_cv_ssize_t=yes
34404else
34405  gt_cv_ssize_t=no
34406fi
34407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34408fi
34409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
34410$as_echo "$gt_cv_ssize_t" >&6; }
34411  if test $gt_cv_ssize_t = no; then
34412
34413$as_echo "#define ssize_t int" >>confdefs.h
34414
34415  fi
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428  GNULIB_PSELECT=0;
34429  GNULIB_SELECT=0;
34430    HAVE_PSELECT=1;
34431  REPLACE_PSELECT=0;
34432  REPLACE_SELECT=0;
34433
34434
34435
34436
34437
34438
34439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
34440$as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
34441if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
34442  $as_echo_n "(cached) " >&6
34443else
34444
34445                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34446/* end confdefs.h.  */
34447#include <sys/select.h>
34448int
34449main ()
34450{
34451struct timeval b;
34452  ;
34453  return 0;
34454}
34455_ACEOF
34456if ac_fn_c_try_compile "$LINENO"; then :
34457  gl_cv_header_sys_select_h_selfcontained=yes
34458else
34459  gl_cv_header_sys_select_h_selfcontained=no
34460fi
34461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34462                        if test $gl_cv_header_sys_select_h_selfcontained = yes; then
34463        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34464/* end confdefs.h.  */
34465#include <sys/select.h>
34466int
34467main ()
34468{
34469int memset; int bzero;
34470  ;
34471  return 0;
34472}
34473
34474_ACEOF
34475if ac_fn_c_try_compile "$LINENO"; then :
34476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34477/* end confdefs.h.  */
34478#include <sys/select.h>
34479int
34480main ()
34481{
34482
34483                  #undef memset
34484                  #define memset nonexistent_memset
34485                  extern
34486                  #ifdef __cplusplus
34487                  "C"
34488                  #endif
34489                  void *memset (void *, int, unsigned long);
34490                  #undef bzero
34491                  #define bzero nonexistent_bzero
34492                  extern
34493                  #ifdef __cplusplus
34494                  "C"
34495                  #endif
34496                  void bzero (void *, unsigned long);
34497                  fd_set fds;
34498                  FD_ZERO (&fds);
34499
34500  ;
34501  return 0;
34502}
34503
34504_ACEOF
34505if ac_fn_c_try_link "$LINENO"; then :
34506
34507else
34508  gl_cv_header_sys_select_h_selfcontained=no
34509fi
34510rm -f core conftest.err conftest.$ac_objext \
34511    conftest$ac_exeext conftest.$ac_ext
34512
34513fi
34514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34515      fi
34516
34517fi
34518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
34519$as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529     if test $gl_cv_have_include_next = yes; then
34530       gl_cv_next_sys_select_h='<'sys/select.h'>'
34531     else
34532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
34533$as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
34534if ${gl_cv_next_sys_select_h+:} false; then :
34535  $as_echo_n "(cached) " >&6
34536else
34537
34538             if test $ac_cv_header_sys_select_h = yes; then
34539
34540
34541
34542
34543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34544/* end confdefs.h.  */
34545#include <sys/select.h>
34546_ACEOF
34547                case "$host_os" in
34548    aix*) gl_absname_cpp="$ac_cpp -C" ;;
34549    *)    gl_absname_cpp="$ac_cpp" ;;
34550  esac
34551
34552  case "$host_os" in
34553    mingw*)
34554                                          gl_dirsep_regex='[/\\]'
34555      ;;
34556    *)
34557      gl_dirsep_regex='\/'
34558      ;;
34559  esac
34560      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34561  gl_header_literal_regex=`echo 'sys/select.h' \
34562                           | sed -e "$gl_make_literal_regex_sed"`
34563  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34564      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34565      s|^/[^/]|//&|
34566      p
34567      q
34568    }'
34569
34570        gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34571  sed -n "$gl_absolute_header_sed"`
34572
34573           gl_header=$gl_cv_absolute_sys_select_h
34574           gl_cv_next_sys_select_h='"'$gl_header'"'
34575          else
34576               gl_cv_next_sys_select_h='<'sys/select.h'>'
34577             fi
34578
34579
34580fi
34581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
34582$as_echo "$gl_cv_next_sys_select_h" >&6; }
34583     fi
34584     NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
34585
34586     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34587       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34588       gl_next_as_first_directive='<'sys/select.h'>'
34589     else
34590       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34591       gl_next_as_first_directive=$gl_cv_next_sys_select_h
34592     fi
34593     NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
34594
34595
34596
34597
34598  if test $ac_cv_header_sys_select_h = yes; then
34599    HAVE_SYS_SELECT_H=1
34600  else
34601    HAVE_SYS_SELECT_H=0
34602  fi
34603
34604
34605
34606
34607
34608  if test $ac_cv_header_sys_socket_h != yes; then
34609                    for ac_header in winsock2.h
34610do :
34611  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34612if test "x$ac_cv_header_winsock2_h" = xyes; then :
34613  cat >>confdefs.h <<_ACEOF
34614#define HAVE_WINSOCK2_H 1
34615_ACEOF
34616
34617fi
34618
34619done
34620
34621  fi
34622  if test "$ac_cv_header_winsock2_h" = yes; then
34623    HAVE_WINSOCK2_H=1
34624    UNISTD_H_HAVE_WINSOCK2_H=1
34625    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34626  else
34627    HAVE_WINSOCK2_H=0
34628  fi
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641  if test $ac_cv_header_sys_socket_h != yes; then
34642                    for ac_header in winsock2.h
34643do :
34644  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34645if test "x$ac_cv_header_winsock2_h" = xyes; then :
34646  cat >>confdefs.h <<_ACEOF
34647#define HAVE_WINSOCK2_H 1
34648_ACEOF
34649
34650fi
34651
34652done
34653
34654  fi
34655  if test "$ac_cv_header_winsock2_h" = yes; then
34656    HAVE_WINSOCK2_H=1
34657    UNISTD_H_HAVE_WINSOCK2_H=1
34658    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34659  else
34660    HAVE_WINSOCK2_H=0
34661  fi
34662
34663   LIBSOCKET=
34664  if test $HAVE_WINSOCK2_H = 1; then
34665        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
34666$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
34667if ${gl_cv_func_wsastartup+:} false; then :
34668  $as_echo_n "(cached) " >&6
34669else
34670
34671      gl_save_LIBS="$LIBS"
34672      LIBS="$LIBS -lws2_32"
34673      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34674/* end confdefs.h.  */
34675
34676#ifdef HAVE_WINSOCK2_H
34677# include <winsock2.h>
34678#endif
34679int
34680main ()
34681{
34682
34683          WORD wVersionRequested = MAKEWORD(1, 1);
34684          WSADATA wsaData;
34685          int err = WSAStartup(wVersionRequested, &wsaData);
34686          WSACleanup ();
34687  ;
34688  return 0;
34689}
34690_ACEOF
34691if ac_fn_c_try_link "$LINENO"; then :
34692  gl_cv_func_wsastartup=yes
34693else
34694  gl_cv_func_wsastartup=no
34695fi
34696rm -f core conftest.err conftest.$ac_objext \
34697    conftest$ac_exeext conftest.$ac_ext
34698      LIBS="$gl_save_LIBS"
34699
34700fi
34701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
34702$as_echo "$gl_cv_func_wsastartup" >&6; }
34703    if test "$gl_cv_func_wsastartup" = "yes"; then
34704
34705$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
34706
34707      LIBSOCKET='-lws2_32'
34708    fi
34709  else
34710                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
34711$as_echo_n "checking for library containing setsockopt... " >&6; }
34712if ${gl_cv_lib_socket+:} false; then :
34713  $as_echo_n "(cached) " >&6
34714else
34715
34716      gl_cv_lib_socket=
34717      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34718/* end confdefs.h.  */
34719extern
34720#ifdef __cplusplus
34721"C"
34722#endif
34723char setsockopt();
34724int
34725main ()
34726{
34727setsockopt();
34728  ;
34729  return 0;
34730}
34731_ACEOF
34732if ac_fn_c_try_link "$LINENO"; then :
34733
34734else
34735  gl_save_LIBS="$LIBS"
34736         LIBS="$gl_save_LIBS -lsocket"
34737         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34738/* end confdefs.h.  */
34739extern
34740#ifdef __cplusplus
34741"C"
34742#endif
34743char setsockopt();
34744int
34745main ()
34746{
34747setsockopt();
34748  ;
34749  return 0;
34750}
34751_ACEOF
34752if ac_fn_c_try_link "$LINENO"; then :
34753  gl_cv_lib_socket="-lsocket"
34754fi
34755rm -f core conftest.err conftest.$ac_objext \
34756    conftest$ac_exeext conftest.$ac_ext
34757         if test -z "$gl_cv_lib_socket"; then
34758           LIBS="$gl_save_LIBS -lnetwork"
34759           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34760/* end confdefs.h.  */
34761extern
34762#ifdef __cplusplus
34763"C"
34764#endif
34765char setsockopt();
34766int
34767main ()
34768{
34769setsockopt();
34770  ;
34771  return 0;
34772}
34773_ACEOF
34774if ac_fn_c_try_link "$LINENO"; then :
34775  gl_cv_lib_socket="-lnetwork"
34776fi
34777rm -f core conftest.err conftest.$ac_objext \
34778    conftest$ac_exeext conftest.$ac_ext
34779           if test -z "$gl_cv_lib_socket"; then
34780             LIBS="$gl_save_LIBS -lnet"
34781             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34782/* end confdefs.h.  */
34783extern
34784#ifdef __cplusplus
34785"C"
34786#endif
34787char setsockopt();
34788int
34789main ()
34790{
34791setsockopt();
34792  ;
34793  return 0;
34794}
34795_ACEOF
34796if ac_fn_c_try_link "$LINENO"; then :
34797  gl_cv_lib_socket="-lnet"
34798fi
34799rm -f core conftest.err conftest.$ac_objext \
34800    conftest$ac_exeext conftest.$ac_ext
34801           fi
34802         fi
34803         LIBS="$gl_save_LIBS"
34804
34805fi
34806rm -f core conftest.err conftest.$ac_objext \
34807    conftest$ac_exeext conftest.$ac_ext
34808      if test -z "$gl_cv_lib_socket"; then
34809        gl_cv_lib_socket="none needed"
34810      fi
34811
34812fi
34813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
34814$as_echo "$gl_cv_lib_socket" >&6; }
34815    if test "$gl_cv_lib_socket" != "none needed"; then
34816      LIBSOCKET="$gl_cv_lib_socket"
34817    fi
34818  fi
34819
34820
34821
34822
34823
34824
34825  :
34826
34827
34828
34829
34830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
34831$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
34832if ${ac_cv_type_uid_t+:} false; then :
34833  $as_echo_n "(cached) " >&6
34834else
34835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34836/* end confdefs.h.  */
34837#include <sys/types.h>
34838
34839_ACEOF
34840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34841  $EGREP "uid_t" >/dev/null 2>&1; then :
34842  ac_cv_type_uid_t=yes
34843else
34844  ac_cv_type_uid_t=no
34845fi
34846rm -f conftest*
34847
34848fi
34849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
34850$as_echo "$ac_cv_type_uid_t" >&6; }
34851if test $ac_cv_type_uid_t = no; then
34852
34853$as_echo "#define uid_t int" >>confdefs.h
34854
34855
34856$as_echo "#define gid_t int" >>confdefs.h
34857
34858fi
34859
34860
34861
34862
34863
34864ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
34865if test "x$ac_cv_have_decl_snprintf" = xyes; then :
34866  ac_have_decl=1
34867else
34868  ac_have_decl=0
34869fi
34870
34871cat >>confdefs.h <<_ACEOF
34872#define HAVE_DECL_SNPRINTF $ac_have_decl
34873_ACEOF
34874
34875
34876   if test $ac_cv_header_sys_socket_h = no; then
34877                         for ac_header in ws2tcpip.h
34878do :
34879  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
34880if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
34881  cat >>confdefs.h <<_ACEOF
34882#define HAVE_WS2TCPIP_H 1
34883_ACEOF
34884
34885fi
34886
34887done
34888
34889   fi
34890
34891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
34892$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
34893if ${ac_cv_header_stdbool_h+:} false; then :
34894  $as_echo_n "(cached) " >&6
34895else
34896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34897/* end confdefs.h.  */
34898
34899             #include <stdbool.h>
34900
34901             #ifdef __cplusplus
34902              typedef bool Bool;
34903             #else
34904              typedef _Bool Bool;
34905              #ifndef bool
34906               "error: bool is not defined"
34907              #endif
34908              #ifndef false
34909               "error: false is not defined"
34910              #endif
34911              #if false
34912               "error: false is not 0"
34913              #endif
34914              #ifndef true
34915               "error: true is not defined"
34916              #endif
34917              #if true != 1
34918               "error: true is not 1"
34919              #endif
34920             #endif
34921
34922             #ifndef __bool_true_false_are_defined
34923              "error: __bool_true_false_are_defined is not defined"
34924             #endif
34925
34926             struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
34927
34928             char a[true == 1 ? 1 : -1];
34929             char b[false == 0 ? 1 : -1];
34930             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
34931             char d[(bool) 0.5 == true ? 1 : -1];
34932             /* See body of main program for 'e'.  */
34933             char f[(Bool) 0.0 == false ? 1 : -1];
34934             char g[true];
34935             char h[sizeof (Bool)];
34936             char i[sizeof s.t];
34937             enum { j = false, k = true, l = false * true, m = true * 256 };
34938             /* The following fails for
34939                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
34940             Bool n[m];
34941             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
34942             char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
34943             /* Catch a bug in an HP-UX C compiler.  See
34944                https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
34945                https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
34946              */
34947             Bool q = true;
34948             Bool *pq = &q;
34949             bool *qq = &q;
34950
34951int
34952main ()
34953{
34954
34955             bool e = &s;
34956             *pq |= q; *pq |= ! q;
34957             *qq |= q; *qq |= ! q;
34958             /* Refer to every declared value, to avoid compiler optimizations.  */
34959             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
34960                     + !m + !n + !o + !p + !q + !pq + !qq);
34961
34962  ;
34963  return 0;
34964}
34965_ACEOF
34966if ac_fn_c_try_compile "$LINENO"; then :
34967  ac_cv_header_stdbool_h=yes
34968else
34969  ac_cv_header_stdbool_h=no
34970fi
34971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34972fi
34973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
34974$as_echo "$ac_cv_header_stdbool_h" >&6; }
34975   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
34976if test "x$ac_cv_type__Bool" = xyes; then :
34977
34978cat >>confdefs.h <<_ACEOF
34979#define HAVE__BOOL 1
34980_ACEOF
34981
34982
34983fi
34984
34985
34986
34987  GNULIB_FFS=0;
34988    HAVE_FFS=1;
34989  HAVE_STRCASECMP=1;
34990  HAVE_DECL_STRNCASECMP=1;
34991
34992
34993
34994
34995
34996
34997
34998  for ac_func in strcasestr
34999do :
35000  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
35001if test "x$ac_cv_func_strcasestr" = xyes; then :
35002  cat >>confdefs.h <<_ACEOF
35003#define HAVE_STRCASESTR 1
35004_ACEOF
35005
35006fi
35007done
35008
35009  if test $ac_cv_func_strcasestr = no; then
35010    HAVE_STRCASESTR=0
35011  else
35012    if test $REPLACE_MEMCHR = 1; then
35013      REPLACE_STRCASESTR=1
35014    else
35015                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
35016$as_echo_n "checking whether strcasestr works... " >&6; }
35017if ${gl_cv_func_strcasestr_works_always+:} false; then :
35018  $as_echo_n "(cached) " >&6
35019else
35020  if test "$cross_compiling" = yes; then :
35021                                                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35022/* end confdefs.h.  */
35023
35024#ifdef __GNU_LIBRARY__
35025 #include <features.h>
35026 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
35027     || defined __UCLIBC__
35028  Lucky user
35029 #endif
35030#elif defined __CYGWIN__
35031 #include <cygwin/version.h>
35032 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
35033  Lucky user
35034 #endif
35035#else
35036  Lucky user
35037#endif
35038
35039_ACEOF
35040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35041  $EGREP "Lucky user" >/dev/null 2>&1; then :
35042  gl_cv_func_strcasestr_works_always="guessing yes"
35043else
35044  gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal"
35045fi
35046rm -f conftest*
35047
35048
35049else
35050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35051/* end confdefs.h.  */
35052
35053#include <string.h> /* for strcasestr */
35054#ifdef __GNU_LIBRARY__
35055 #include <features.h>
35056 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
35057  Unlucky user
35058 #endif
35059#endif
35060#define P "_EF_BF_BD"
35061#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
35062#define NEEDLE P P P P P
35063
35064int
35065main ()
35066{
35067return !!strcasestr (HAYSTACK, NEEDLE);
35068
35069  ;
35070  return 0;
35071}
35072_ACEOF
35073if ac_fn_c_try_run "$LINENO"; then :
35074  gl_cv_func_strcasestr_works_always=yes
35075else
35076  gl_cv_func_strcasestr_works_always=no
35077fi
35078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35079  conftest.$ac_objext conftest.beam conftest.$ac_ext
35080fi
35081
35082
35083fi
35084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
35085$as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
35086      case "$gl_cv_func_strcasestr_works_always" in
35087        *yes) ;;
35088        *)
35089          REPLACE_STRCASESTR=1
35090          ;;
35091      esac
35092    fi
35093  fi
35094
35095
35096
35097ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
35098if test "x$ac_cv_have_decl_strdup" = xyes; then :
35099  ac_have_decl=1
35100else
35101  ac_have_decl=0
35102fi
35103
35104cat >>confdefs.h <<_ACEOF
35105#define HAVE_DECL_STRDUP $ac_have_decl
35106_ACEOF
35107
35108
35109     REPLACE_STRERROR_0=0
35110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
35111$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
35112if ${gl_cv_func_strerror_0_works+:} false; then :
35113  $as_echo_n "(cached) " >&6
35114else
35115  if test "$cross_compiling" = yes; then :
35116  case "$host_os" in
35117                        # Guess yes on glibc systems.
35118         *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
35119                        # Guess yes on musl systems.
35120         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
35121                        # Guess yes on native Windows.
35122         mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
35123                        # If we don't know, obey --enable-cross-guesses.
35124         *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
35125       esac
35126
35127else
35128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35129/* end confdefs.h.  */
35130#include <string.h>
35131           #include <errno.h>
35132
35133int
35134main ()
35135{
35136int result = 0;
35137           char *str;
35138           errno = 0;
35139           str = strerror (0);
35140           if (!*str) result |= 1;
35141           if (errno) result |= 2;
35142           if (strstr (str, "nknown") || strstr (str, "ndefined"))
35143             result |= 4;
35144           return result;
35145  ;
35146  return 0;
35147}
35148_ACEOF
35149if ac_fn_c_try_run "$LINENO"; then :
35150  gl_cv_func_strerror_0_works=yes
35151else
35152  gl_cv_func_strerror_0_works=no
35153fi
35154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35155  conftest.$ac_objext conftest.beam conftest.$ac_ext
35156fi
35157
35158
35159fi
35160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
35161$as_echo "$gl_cv_func_strerror_0_works" >&6; }
35162  case "$gl_cv_func_strerror_0_works" in
35163    *yes) ;;
35164    *)
35165      REPLACE_STRERROR_0=1
35166
35167$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
35168
35169      ;;
35170  esac
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182     if test $gl_cv_have_include_next = yes; then
35183       gl_cv_next_string_h='<'string.h'>'
35184     else
35185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
35186$as_echo_n "checking absolute name of <string.h>... " >&6; }
35187if ${gl_cv_next_string_h+:} false; then :
35188  $as_echo_n "(cached) " >&6
35189else
35190
35191
35192
35193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35194/* end confdefs.h.  */
35195#include <string.h>
35196_ACEOF
35197                case "$host_os" in
35198    aix*) gl_absname_cpp="$ac_cpp -C" ;;
35199    *)    gl_absname_cpp="$ac_cpp" ;;
35200  esac
35201
35202  case "$host_os" in
35203    mingw*)
35204                                          gl_dirsep_regex='[/\\]'
35205      ;;
35206    *)
35207      gl_dirsep_regex='\/'
35208      ;;
35209  esac
35210      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35211  gl_header_literal_regex=`echo 'string.h' \
35212                           | sed -e "$gl_make_literal_regex_sed"`
35213  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35214      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35215      s|^/[^/]|//&|
35216      p
35217      q
35218    }'
35219
35220        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35221  sed -n "$gl_absolute_header_sed"`
35222
35223           gl_header=$gl_cv_absolute_string_h
35224           gl_cv_next_string_h='"'$gl_header'"'
35225
35226
35227fi
35228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
35229$as_echo "$gl_cv_next_string_h" >&6; }
35230     fi
35231     NEXT_STRING_H=$gl_cv_next_string_h
35232
35233     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35234       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35235       gl_next_as_first_directive='<'string.h'>'
35236     else
35237       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35238       gl_next_as_first_directive=$gl_cv_next_string_h
35239     fi
35240     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266     if test $gl_cv_have_include_next = yes; then
35267       gl_cv_next_strings_h='<'strings.h'>'
35268     else
35269       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
35270$as_echo_n "checking absolute name of <strings.h>... " >&6; }
35271if ${gl_cv_next_strings_h+:} false; then :
35272  $as_echo_n "(cached) " >&6
35273else
35274
35275             if test $ac_cv_header_strings_h = yes; then
35276
35277
35278
35279
35280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35281/* end confdefs.h.  */
35282#include <strings.h>
35283_ACEOF
35284                case "$host_os" in
35285    aix*) gl_absname_cpp="$ac_cpp -C" ;;
35286    *)    gl_absname_cpp="$ac_cpp" ;;
35287  esac
35288
35289  case "$host_os" in
35290    mingw*)
35291                                          gl_dirsep_regex='[/\\]'
35292      ;;
35293    *)
35294      gl_dirsep_regex='\/'
35295      ;;
35296  esac
35297      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35298  gl_header_literal_regex=`echo 'strings.h' \
35299                           | sed -e "$gl_make_literal_regex_sed"`
35300  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35301      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35302      s|^/[^/]|//&|
35303      p
35304      q
35305    }'
35306
35307        gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35308  sed -n "$gl_absolute_header_sed"`
35309
35310           gl_header=$gl_cv_absolute_strings_h
35311           gl_cv_next_strings_h='"'$gl_header'"'
35312          else
35313               gl_cv_next_strings_h='<'strings.h'>'
35314             fi
35315
35316
35317fi
35318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
35319$as_echo "$gl_cv_next_strings_h" >&6; }
35320     fi
35321     NEXT_STRINGS_H=$gl_cv_next_strings_h
35322
35323     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35324       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35325       gl_next_as_first_directive='<'strings.h'>'
35326     else
35327       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35328       gl_next_as_first_directive=$gl_cv_next_strings_h
35329     fi
35330     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
35331
35332
35333
35334
35335  if test $ac_cv_header_strings_h = yes; then
35336    HAVE_STRINGS_H=1
35337  else
35338    HAVE_STRINGS_H=0
35339  fi
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
35354  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
35355  # irrelevant for anonymous mappings.
35356  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
35357if test "x$ac_cv_func_mmap" = xyes; then :
35358  gl_have_mmap=yes
35359else
35360  gl_have_mmap=no
35361fi
35362
35363
35364  # Try to allow MAP_ANONYMOUS.
35365  gl_have_mmap_anonymous=no
35366  if test $gl_have_mmap = yes; then
35367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
35368$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
35369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35370/* end confdefs.h.  */
35371
35372#include <sys/mman.h>
35373#ifdef MAP_ANONYMOUS
35374    I cannot identify this map
35375#endif
35376
35377_ACEOF
35378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35379  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
35380  gl_have_mmap_anonymous=yes
35381fi
35382rm -f conftest*
35383
35384    if test $gl_have_mmap_anonymous != yes; then
35385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35386/* end confdefs.h.  */
35387
35388#include <sys/mman.h>
35389#ifdef MAP_ANON
35390    I cannot identify this map
35391#endif
35392
35393_ACEOF
35394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35395  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
35396
35397$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
35398
35399         gl_have_mmap_anonymous=yes
35400fi
35401rm -f conftest*
35402
35403    fi
35404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
35405$as_echo "$gl_have_mmap_anonymous" >&6; }
35406    if test $gl_have_mmap_anonymous = yes; then
35407
35408$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
35409
35410    fi
35411  fi
35412
35413
35414
35415
35416          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncat works" >&5
35417$as_echo_n "checking whether strncat works... " >&6; }
35418if ${gl_cv_func_strncat_works+:} false; then :
35419  $as_echo_n "(cached) " >&6
35420else
35421  if test "$cross_compiling" = yes; then :
35422
35423        case "$host_os" in
35424                    # Guess no on Solaris.
35425          solaris*) gl_cv_func_strncat_works="guessing no" ;;
35426                    # Guess yes on native Windows.
35427          mingw*)   gl_cv_func_strncat_works="guessing yes" ;;
35428                    # Guess yes otherwise.
35429          *)        gl_cv_func_strncat_works="guessing yes" ;;
35430        esac
35431
35432else
35433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35434/* end confdefs.h.  */
35435
35436#include <string.h>
35437#if HAVE_SYS_MMAN_H
35438# include <fcntl.h>
35439# include <unistd.h>
35440# include <sys/types.h>
35441# include <sys/mman.h>
35442# ifndef MAP_FILE
35443#  define MAP_FILE 0
35444# endif
35445#endif
35446
35447int
35448main ()
35449{
35450
35451  char *fence = NULL;
35452#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
35453# if HAVE_MAP_ANONYMOUS
35454  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
35455  const int fd = -1;
35456# else /* !HAVE_MAP_ANONYMOUS */
35457  const int flags = MAP_FILE | MAP_PRIVATE;
35458  int fd = open ("/dev/zero", O_RDONLY, 0666);
35459  if (fd >= 0)
35460# endif
35461    {
35462      int pagesize = getpagesize ();
35463      char *two_pages =
35464        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
35465                       flags, fd, 0);
35466      if (two_pages != (char *)(-1)
35467          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
35468        fence = two_pages + pagesize;
35469    }
35470#endif
35471  if (fence)
35472    {
35473      char dest[8];
35474
35475      dest[0] = '*';
35476      dest[1] = 'a';
35477      dest[2] = '\0';
35478      dest[3] = 'w';
35479      dest[4] = 'x';
35480      dest[5] = 'y';
35481      dest[6] = 'z';
35482
35483      *(fence - 3) = '7';
35484      *(fence - 2) = '2';
35485      *(fence - 1) = '9';
35486
35487      if (strncat (dest + 1, fence - 3, 3) != dest + 1)
35488        return 1;
35489      if (dest[0] != '*')
35490        return 2;
35491      if (dest[1] != 'a'
35492          || dest[2] != '7' || dest[3] != '2' || dest[4] != '9'
35493          || dest[5] != '\0')
35494        return 3;
35495      if (dest[6] != 'z')
35496        return 4;
35497    }
35498  return 0;
35499
35500  ;
35501  return 0;
35502}
35503_ACEOF
35504if ac_fn_c_try_run "$LINENO"; then :
35505  gl_cv_func_strncat_works=yes
35506else
35507  gl_cv_func_strncat_works=no
35508fi
35509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35510  conftest.$ac_objext conftest.beam conftest.$ac_ext
35511fi
35512
35513
35514fi
35515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strncat_works" >&5
35516$as_echo "$gl_cv_func_strncat_works" >&6; }
35517  case "$gl_cv_func_strncat_works" in
35518    *yes) ;;
35519    *) REPLACE_STRNCAT=1 ;;
35520  esac
35521
35522ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
35523if test "x$ac_cv_have_decl_strndup" = xyes; then :
35524  ac_have_decl=1
35525else
35526  ac_have_decl=0
35527fi
35528
35529cat >>confdefs.h <<_ACEOF
35530#define HAVE_DECL_STRNDUP $ac_have_decl
35531_ACEOF
35532
35533
35534
35535ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
35536if test "x$ac_cv_have_decl_strnlen" = xyes; then :
35537  ac_have_decl=1
35538else
35539  ac_have_decl=0
35540fi
35541
35542cat >>confdefs.h <<_ACEOF
35543#define HAVE_DECL_STRNLEN $ac_have_decl
35544_ACEOF
35545
35546
35547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp() can be used without linking with libm" >&5
35548$as_echo_n "checking whether ldexp() can be used without linking with libm... " >&6; }
35549if ${gl_cv_func_ldexp_no_libm+:} false; then :
35550  $as_echo_n "(cached) " >&6
35551else
35552
35553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35554/* end confdefs.h.  */
35555#ifndef __NO_MATH_INLINES
35556                           # define __NO_MATH_INLINES 1 /* for glibc */
35557                           #endif
35558                           #include <math.h>
35559                           double (*funcptr) (double, int) = ldexp;
35560                           double x;
35561int
35562main ()
35563{
35564return ldexp (x, -1) > 0;
35565  ;
35566  return 0;
35567}
35568_ACEOF
35569if ac_fn_c_try_link "$LINENO"; then :
35570  gl_cv_func_ldexp_no_libm=yes
35571else
35572  gl_cv_func_ldexp_no_libm=no
35573fi
35574rm -f core conftest.err conftest.$ac_objext \
35575    conftest$ac_exeext conftest.$ac_ext
35576
35577fi
35578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
35579$as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
35580
35581ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
35582if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
35583  ac_have_decl=1
35584else
35585  ac_have_decl=0
35586fi
35587
35588cat >>confdefs.h <<_ACEOF
35589#define HAVE_DECL_STRTOK_R $ac_have_decl
35590_ACEOF
35591
35592
35593
35594
35595  GNULIB_SOCKET=0;
35596  GNULIB_CONNECT=0;
35597  GNULIB_ACCEPT=0;
35598  GNULIB_BIND=0;
35599  GNULIB_GETPEERNAME=0;
35600  GNULIB_GETSOCKNAME=0;
35601  GNULIB_GETSOCKOPT=0;
35602  GNULIB_LISTEN=0;
35603  GNULIB_RECV=0;
35604  GNULIB_SEND=0;
35605  GNULIB_RECVFROM=0;
35606  GNULIB_SENDTO=0;
35607  GNULIB_SETSOCKOPT=0;
35608  GNULIB_SHUTDOWN=0;
35609  GNULIB_ACCEPT4=0;
35610  HAVE_STRUCT_SOCKADDR_STORAGE=1;
35611  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
35612
35613  HAVE_SA_FAMILY_T=1;
35614  HAVE_ACCEPT4=1;
35615
35616
35617
35618
35619
35620        case "$host_os" in
35621    osf*)
35622
35623$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
35624
35625      ;;
35626  esac
35627
35628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
35629$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
35630if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
35631  $as_echo_n "(cached) " >&6
35632else
35633
35634      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35635/* end confdefs.h.  */
35636#include <sys/socket.h>
35637int
35638main ()
35639{
35640
35641  ;
35642  return 0;
35643}
35644_ACEOF
35645if ac_fn_c_try_compile "$LINENO"; then :
35646  gl_cv_header_sys_socket_h_selfcontained=yes
35647else
35648  gl_cv_header_sys_socket_h_selfcontained=no
35649fi
35650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35651
35652fi
35653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
35654$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
35655  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
35656            for ac_func in shutdown
35657do :
35658  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
35659if test "x$ac_cv_func_shutdown" = xyes; then :
35660  cat >>confdefs.h <<_ACEOF
35661#define HAVE_SHUTDOWN 1
35662_ACEOF
35663
35664fi
35665done
35666
35667    if test $ac_cv_func_shutdown = yes; then
35668      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
35669$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
35670if ${gl_cv_header_sys_socket_h_shut+:} false; then :
35671  $as_echo_n "(cached) " >&6
35672else
35673
35674          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35675/* end confdefs.h.  */
35676#include <sys/socket.h>
35677int
35678main ()
35679{
35680int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
35681  ;
35682  return 0;
35683}
35684_ACEOF
35685if ac_fn_c_try_compile "$LINENO"; then :
35686  gl_cv_header_sys_socket_h_shut=yes
35687else
35688  gl_cv_header_sys_socket_h_shut=no
35689fi
35690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35691
35692fi
35693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
35694$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
35695      if test $gl_cv_header_sys_socket_h_shut = no; then
35696        SYS_SOCKET_H='sys/socket.h'
35697      fi
35698    fi
35699  fi
35700  # We need to check for ws2tcpip.h now.
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712     if test $gl_cv_have_include_next = yes; then
35713       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
35714     else
35715       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
35716$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
35717if ${gl_cv_next_sys_socket_h+:} false; then :
35718  $as_echo_n "(cached) " >&6
35719else
35720
35721             if test $ac_cv_header_sys_socket_h = yes; then
35722
35723
35724
35725
35726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35727/* end confdefs.h.  */
35728#include <sys/socket.h>
35729_ACEOF
35730                case "$host_os" in
35731    aix*) gl_absname_cpp="$ac_cpp -C" ;;
35732    *)    gl_absname_cpp="$ac_cpp" ;;
35733  esac
35734
35735  case "$host_os" in
35736    mingw*)
35737                                          gl_dirsep_regex='[/\\]'
35738      ;;
35739    *)
35740      gl_dirsep_regex='\/'
35741      ;;
35742  esac
35743      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35744  gl_header_literal_regex=`echo 'sys/socket.h' \
35745                           | sed -e "$gl_make_literal_regex_sed"`
35746  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35747      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35748      s|^/[^/]|//&|
35749      p
35750      q
35751    }'
35752
35753        gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35754  sed -n "$gl_absolute_header_sed"`
35755
35756           gl_header=$gl_cv_absolute_sys_socket_h
35757           gl_cv_next_sys_socket_h='"'$gl_header'"'
35758          else
35759               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
35760             fi
35761
35762
35763fi
35764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
35765$as_echo "$gl_cv_next_sys_socket_h" >&6; }
35766     fi
35767     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
35768
35769     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35770       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35771       gl_next_as_first_directive='<'sys/socket.h'>'
35772     else
35773       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35774       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
35775     fi
35776     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
35777
35778
35779
35780
35781  if test $ac_cv_header_sys_socket_h = yes; then
35782    HAVE_SYS_SOCKET_H=1
35783  else
35784    HAVE_SYS_SOCKET_H=0
35785  fi
35786
35787
35788
35789  if test $ac_cv_header_sys_socket_h = yes; then
35790    HAVE_WS2TCPIP_H=0
35791  else
35792    if test $ac_cv_header_ws2tcpip_h = yes; then
35793      HAVE_WS2TCPIP_H=1
35794    else
35795      HAVE_WS2TCPIP_H=0
35796    fi
35797  fi
35798
35799
35800
35801  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
35802  /* sys/types.h is not needed according to POSIX, but the
35803     sys/socket.h in i386-unknown-freebsd4.10 and
35804     powerpc-apple-darwin5.5 required it. */
35805#include <sys/types.h>
35806#ifdef HAVE_SYS_SOCKET_H
35807#include <sys/socket.h>
35808#endif
35809#ifdef HAVE_WS2TCPIP_H
35810#include <ws2tcpip.h>
35811#endif
35812
35813"
35814if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
35815
35816cat >>confdefs.h <<_ACEOF
35817#define HAVE_STRUCT_SOCKADDR_STORAGE 1
35818_ACEOF
35819
35820
35821fi
35822ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
35823  /* sys/types.h is not needed according to POSIX, but the
35824     sys/socket.h in i386-unknown-freebsd4.10 and
35825     powerpc-apple-darwin5.5 required it. */
35826#include <sys/types.h>
35827#ifdef HAVE_SYS_SOCKET_H
35828#include <sys/socket.h>
35829#endif
35830#ifdef HAVE_WS2TCPIP_H
35831#include <ws2tcpip.h>
35832#endif
35833
35834"
35835if test "x$ac_cv_type_sa_family_t" = xyes; then :
35836
35837cat >>confdefs.h <<_ACEOF
35838#define HAVE_SA_FAMILY_T 1
35839_ACEOF
35840
35841
35842fi
35843
35844  if test $ac_cv_type_struct_sockaddr_storage = no; then
35845    HAVE_STRUCT_SOCKADDR_STORAGE=0
35846  fi
35847  if test $ac_cv_type_sa_family_t = no; then
35848    HAVE_SA_FAMILY_T=0
35849  fi
35850  if test $ac_cv_type_struct_sockaddr_storage != no; then
35851    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
35852       #ifdef HAVE_SYS_SOCKET_H
35853       #include <sys/socket.h>
35854       #endif
35855       #ifdef HAVE_WS2TCPIP_H
35856       #include <ws2tcpip.h>
35857       #endif
35858
35859"
35860if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
35861
35862cat >>confdefs.h <<_ACEOF
35863#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
35864_ACEOF
35865
35866
35867else
35868  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
35869fi
35870
35871  fi
35872  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
35873     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
35874    SYS_SOCKET_H='sys/socket.h'
35875  fi
35876
35877
35878
35879
35880  if test $ac_cv_header_sys_socket_h != yes; then
35881                    for ac_header in winsock2.h
35882do :
35883  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35884if test "x$ac_cv_header_winsock2_h" = xyes; then :
35885  cat >>confdefs.h <<_ACEOF
35886#define HAVE_WINSOCK2_H 1
35887_ACEOF
35888
35889fi
35890
35891done
35892
35893  fi
35894  if test "$ac_cv_header_winsock2_h" = yes; then
35895    HAVE_WINSOCK2_H=1
35896    UNISTD_H_HAVE_WINSOCK2_H=1
35897    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35898  else
35899    HAVE_WINSOCK2_H=0
35900  fi
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915  GNULIB_TCGETSID=0;
35916    HAVE_DECL_TCGETSID=1;
35917  HAVE_TERMIOS_H=1;
35918
35919
35920
35921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
35922$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
35923if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
35924  $as_echo_n "(cached) " >&6
35925else
35926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35927/* end confdefs.h.  */
35928#include <time.h>
35929
35930int
35931main ()
35932{
35933static struct timespec x; x.tv_sec = x.tv_nsec;
35934  ;
35935  return 0;
35936}
35937_ACEOF
35938if ac_fn_c_try_compile "$LINENO"; then :
35939  gl_cv_sys_struct_timespec_in_time_h=yes
35940else
35941  gl_cv_sys_struct_timespec_in_time_h=no
35942fi
35943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35944fi
35945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
35946$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
35947
35948  TIME_H_DEFINES_STRUCT_TIMESPEC=0
35949  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
35950  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
35951  UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
35952  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
35953    TIME_H_DEFINES_STRUCT_TIMESPEC=1
35954  else
35955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
35956$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
35957if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
35958  $as_echo_n "(cached) " >&6
35959else
35960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35961/* end confdefs.h.  */
35962#include <sys/time.h>
35963
35964int
35965main ()
35966{
35967static struct timespec x; x.tv_sec = x.tv_nsec;
35968  ;
35969  return 0;
35970}
35971_ACEOF
35972if ac_fn_c_try_compile "$LINENO"; then :
35973  gl_cv_sys_struct_timespec_in_sys_time_h=yes
35974else
35975  gl_cv_sys_struct_timespec_in_sys_time_h=no
35976fi
35977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35978fi
35979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
35980$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
35981    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
35982      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
35983    else
35984      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
35985$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
35986if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
35987  $as_echo_n "(cached) " >&6
35988else
35989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35990/* end confdefs.h.  */
35991#include <pthread.h>
35992
35993int
35994main ()
35995{
35996static struct timespec x; x.tv_sec = x.tv_nsec;
35997  ;
35998  return 0;
35999}
36000_ACEOF
36001if ac_fn_c_try_compile "$LINENO"; then :
36002  gl_cv_sys_struct_timespec_in_pthread_h=yes
36003else
36004  gl_cv_sys_struct_timespec_in_pthread_h=no
36005fi
36006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36007fi
36008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
36009$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
36010      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
36011        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
36012      else
36013        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
36014$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
36015if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
36016  $as_echo_n "(cached) " >&6
36017else
36018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36019/* end confdefs.h.  */
36020#include <unistd.h>
36021
36022int
36023main ()
36024{
36025static struct timespec x; x.tv_sec = x.tv_nsec;
36026  ;
36027  return 0;
36028}
36029_ACEOF
36030if ac_fn_c_try_compile "$LINENO"; then :
36031  gl_cv_sys_struct_timespec_in_unistd_h=yes
36032else
36033  gl_cv_sys_struct_timespec_in_unistd_h=no
36034fi
36035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36036fi
36037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
36038$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
36039        if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
36040          UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
36041        fi
36042      fi
36043    fi
36044  fi
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061     if test $gl_cv_have_include_next = yes; then
36062       gl_cv_next_time_h='<'time.h'>'
36063     else
36064       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
36065$as_echo_n "checking absolute name of <time.h>... " >&6; }
36066if ${gl_cv_next_time_h+:} false; then :
36067  $as_echo_n "(cached) " >&6
36068else
36069
36070
36071
36072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36073/* end confdefs.h.  */
36074#include <time.h>
36075_ACEOF
36076                case "$host_os" in
36077    aix*) gl_absname_cpp="$ac_cpp -C" ;;
36078    *)    gl_absname_cpp="$ac_cpp" ;;
36079  esac
36080
36081  case "$host_os" in
36082    mingw*)
36083                                          gl_dirsep_regex='[/\\]'
36084      ;;
36085    *)
36086      gl_dirsep_regex='\/'
36087      ;;
36088  esac
36089      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36090  gl_header_literal_regex=`echo 'time.h' \
36091                           | sed -e "$gl_make_literal_regex_sed"`
36092  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36093      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36094      s|^/[^/]|//&|
36095      p
36096      q
36097    }'
36098
36099        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36100  sed -n "$gl_absolute_header_sed"`
36101
36102           gl_header=$gl_cv_absolute_time_h
36103           gl_cv_next_time_h='"'$gl_header'"'
36104
36105
36106fi
36107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
36108$as_echo "$gl_cv_next_time_h" >&6; }
36109     fi
36110     NEXT_TIME_H=$gl_cv_next_time_h
36111
36112     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36113       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36114       gl_next_as_first_directive='<'time.h'>'
36115     else
36116       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36117       gl_next_as_first_directive=$gl_cv_next_time_h
36118     fi
36119     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
36139i\
361400
36141q
36142'
36143gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
36144i\
361450
36146q
36147'
36148gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
36149i\
361500
36151q
36152'
36153
36154
36155  if test "$HAVE_LIBUNISTRING" = yes; then
36156    LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
36157    LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
36158    LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
36159  fi
36160
36161ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
36162if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
36163  ac_have_decl=1
36164else
36165  ac_have_decl=0
36166fi
36167
36168cat >>confdefs.h <<_ACEOF
36169#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
36170_ACEOF
36171
36172ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
36173if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
36174  ac_have_decl=1
36175else
36176  ac_have_decl=0
36177fi
36178
36179cat >>confdefs.h <<_ACEOF
36180#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
36181_ACEOF
36182
36183ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
36184if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
36185  ac_have_decl=1
36186else
36187  ac_have_decl=0
36188fi
36189
36190cat >>confdefs.h <<_ACEOF
36191#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
36192_ACEOF
36193
36194ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
36195if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
36196  ac_have_decl=1
36197else
36198  ac_have_decl=0
36199fi
36200
36201cat >>confdefs.h <<_ACEOF
36202#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
36203_ACEOF
36204
36205ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
36206if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
36207  ac_have_decl=1
36208else
36209  ac_have_decl=0
36210fi
36211
36212cat >>confdefs.h <<_ACEOF
36213#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
36214_ACEOF
36215
36216ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
36217if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
36218  ac_have_decl=1
36219else
36220  ac_have_decl=0
36221fi
36222
36223cat >>confdefs.h <<_ACEOF
36224#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
36225_ACEOF
36226
36227ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
36228if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
36229  ac_have_decl=1
36230else
36231  ac_have_decl=0
36232fi
36233
36234cat >>confdefs.h <<_ACEOF
36235#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
36236_ACEOF
36237
36238ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
36239if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
36240  ac_have_decl=1
36241else
36242  ac_have_decl=0
36243fi
36244
36245cat >>confdefs.h <<_ACEOF
36246#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
36247_ACEOF
36248
36249ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
36250if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
36251  ac_have_decl=1
36252else
36253  ac_have_decl=0
36254fi
36255
36256cat >>confdefs.h <<_ACEOF
36257#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
36258_ACEOF
36259
36260ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
36261if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
36262  ac_have_decl=1
36263else
36264  ac_have_decl=0
36265fi
36266
36267cat >>confdefs.h <<_ACEOF
36268#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
36269_ACEOF
36270
36271ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
36272if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
36273  ac_have_decl=1
36274else
36275  ac_have_decl=0
36276fi
36277
36278cat >>confdefs.h <<_ACEOF
36279#define HAVE_DECL_UNSETENV $ac_have_decl
36280_ACEOF
36281
36282ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
36283if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
36284  ac_have_decl=1
36285else
36286  ac_have_decl=0
36287fi
36288
36289cat >>confdefs.h <<_ACEOF
36290#define HAVE_DECL_VSNPRINTF $ac_have_decl
36291_ACEOF
36292
36293
36294
36295
36296
36297
36298   if true; then
36299  GL_COND_LIBTOOL_TRUE=
36300  GL_COND_LIBTOOL_FALSE='#'
36301else
36302  GL_COND_LIBTOOL_TRUE='#'
36303  GL_COND_LIBTOOL_FALSE=
36304fi
36305
36306  gl_cond_libtool=true
36307  gl_m4_base='gl/m4'
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318  gl_source_base='gl'
36319LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
36320
36321
36322
36323  if test $ac_cv_func_alloca_works = no; then
36324    :
36325  fi
36326
36327  # Define an additional variable used in the Makefile substitution.
36328  if test $ac_cv_working_alloca_h = yes; then
36329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
36330$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
36331if ${gl_cv_rpl_alloca+:} false; then :
36332  $as_echo_n "(cached) " >&6
36333else
36334
36335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36336/* end confdefs.h.  */
36337
36338#if defined __GNUC__ || defined _AIX || defined _MSC_VER
36339        Need own alloca
36340#endif
36341
36342_ACEOF
36343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36344  $EGREP "Need own alloca" >/dev/null 2>&1; then :
36345  gl_cv_rpl_alloca=yes
36346else
36347  gl_cv_rpl_alloca=no
36348fi
36349rm -f conftest*
36350
36351
36352fi
36353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
36354$as_echo "$gl_cv_rpl_alloca" >&6; }
36355    if test $gl_cv_rpl_alloca = yes; then
36356
36357$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
36358
36359      ALLOCA_H=alloca.h
36360    else
36361                  ALLOCA_H=
36362    fi
36363  else
36364    ALLOCA_H=alloca.h
36365  fi
36366
36367   if test -n "$ALLOCA_H"; then
36368  GL_GENERATE_ALLOCA_H_TRUE=
36369  GL_GENERATE_ALLOCA_H_FALSE='#'
36370else
36371  GL_GENERATE_ALLOCA_H_TRUE='#'
36372  GL_GENERATE_ALLOCA_H_FALSE=
36373fi
36374
36375
36376  if test $ac_cv_working_alloca_h = yes; then
36377    HAVE_ALLOCA_H=1
36378  else
36379    HAVE_ALLOCA_H=0
36380  fi
36381
36382
36383
36384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
36385$as_echo_n "checking whether to enable assertions... " >&6; }
36386  # Check whether --enable-assert was given.
36387if test "${enable_assert+set}" = set; then :
36388  enableval=$enable_assert; if test "x$enableval" = xno; then :
36389
36390$as_echo "#define NDEBUG 1" >>confdefs.h
36391
36392elif test "x$enableval" != xyes; then :
36393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
36394$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
36395      enable_assert=yes
36396fi
36397else
36398  enable_assert=yes
36399fi
36400
36401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_assert" >&5
36402$as_echo "$enable_assert" >&6; }
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412  if test $ac_cv_func_btowc = no; then
36413    HAVE_BTOWC=0
36414  else
36415
36416
36417
36418
36419        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
36420$as_echo_n "checking whether btowc(0) is correct... " >&6; }
36421if ${gl_cv_func_btowc_nul+:} false; then :
36422  $as_echo_n "(cached) " >&6
36423else
36424
36425        if test "$cross_compiling" = yes; then :
36426
36427           case "$host_os" in
36428                      # Guess no on Cygwin.
36429             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
36430                      # Guess yes on native Windows.
36431             mingw*)  gl_cv_func_btowc_nul="guessing yes" ;;
36432                      # Guess yes otherwise.
36433             *)       gl_cv_func_btowc_nul="guessing yes" ;;
36434           esac
36435
36436else
36437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36438/* end confdefs.h.  */
36439
36440#include <string.h>
36441/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36442   <wchar.h>.
36443   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36444   included before <wchar.h>.  */
36445#include <stddef.h>
36446#include <stdio.h>
36447#include <time.h>
36448#include <wchar.h>
36449int main ()
36450{
36451  if (btowc ('\0') != 0)
36452    return 1;
36453  return 0;
36454}
36455_ACEOF
36456if ac_fn_c_try_run "$LINENO"; then :
36457  gl_cv_func_btowc_nul=yes
36458else
36459  gl_cv_func_btowc_nul=no
36460fi
36461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36462  conftest.$ac_objext conftest.beam conftest.$ac_ext
36463fi
36464
36465
36466fi
36467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
36468$as_echo "$gl_cv_func_btowc_nul" >&6; }
36469
36470        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
36471$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
36472if ${gl_cv_func_btowc_eof+:} false; then :
36473  $as_echo_n "(cached) " >&6
36474else
36475
36476                        case "$host_os" in
36477                  # Guess no on IRIX.
36478          irix*)  gl_cv_func_btowc_eof="guessing no" ;;
36479                  # Guess yes on native Windows.
36480          mingw*) gl_cv_func_btowc_eof="guessing yes" ;;
36481                  # Guess yes otherwise.
36482          *)      gl_cv_func_btowc_eof="guessing yes" ;;
36483        esac
36484        if test $LOCALE_FR != none; then
36485          if test "$cross_compiling" = yes; then :
36486  :
36487else
36488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36489/* end confdefs.h.  */
36490
36491#include <locale.h>
36492#include <string.h>
36493/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36494   <wchar.h>.
36495   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36496   included before <wchar.h>.  */
36497#include <stddef.h>
36498#include <stdio.h>
36499#include <time.h>
36500#include <wchar.h>
36501int main ()
36502{
36503  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
36504    {
36505      if (btowc (EOF) != WEOF)
36506        return 1;
36507    }
36508  return 0;
36509}
36510_ACEOF
36511if ac_fn_c_try_run "$LINENO"; then :
36512  gl_cv_func_btowc_eof=yes
36513else
36514  gl_cv_func_btowc_eof=no
36515fi
36516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36517  conftest.$ac_objext conftest.beam conftest.$ac_ext
36518fi
36519
36520        fi
36521
36522fi
36523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
36524$as_echo "$gl_cv_func_btowc_eof" >&6; }
36525
36526    case "$gl_cv_func_btowc_nul" in
36527      *yes) ;;
36528      *) REPLACE_BTOWC=1 ;;
36529    esac
36530    case "$gl_cv_func_btowc_eof" in
36531      *yes) ;;
36532      *) REPLACE_BTOWC=1 ;;
36533    esac
36534  fi
36535
36536  if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
36537
36538
36539
36540
36541
36542
36543
36544
36545  gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
36546
36547
36548  :
36549
36550  fi
36551
36552
36553
36554
36555
36556          GNULIB_BTOWC=1
36557
36558
36559
36560
36561
36562$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
36563
36564
36565
36566
36567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
36568$as_echo_n "checking for __builtin_expect... " >&6; }
36569if ${gl_cv___builtin_expect+:} false; then :
36570  $as_echo_n "(cached) " >&6
36571else
36572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36573/* end confdefs.h.  */
36574
36575         int
36576         main (int argc, char **argv)
36577         {
36578           argc = __builtin_expect (argc, 100);
36579           return argv[argc != 100][0];
36580         }
36581_ACEOF
36582if ac_fn_c_try_link "$LINENO"; then :
36583  gl_cv___builtin_expect=yes
36584else
36585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36586/* end confdefs.h.  */
36587
36588             #include <builtins.h>
36589             int
36590             main (int argc, char **argv)
36591             {
36592               argc = __builtin_expect (argc, 100);
36593               return argv[argc != 100][0];
36594             }
36595_ACEOF
36596if ac_fn_c_try_link "$LINENO"; then :
36597  gl_cv___builtin_expect="in <builtins.h>"
36598else
36599  gl_cv___builtin_expect=no
36600fi
36601rm -f core conftest.err conftest.$ac_objext \
36602    conftest$ac_exeext conftest.$ac_ext
36603fi
36604rm -f core conftest.err conftest.$ac_objext \
36605    conftest$ac_exeext conftest.$ac_ext
36606fi
36607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
36608$as_echo "$gl_cv___builtin_expect" >&6; }
36609  if test "$gl_cv___builtin_expect" = yes; then
36610    $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
36611
36612  elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
36613    $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
36614
36615  fi
36616
36617
36618
36619    for ac_header in byteswap.h
36620do :
36621  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
36622if test "x$ac_cv_header_byteswap_h" = xyes; then :
36623  cat >>confdefs.h <<_ACEOF
36624#define HAVE_BYTESWAP_H 1
36625_ACEOF
36626
36627    BYTESWAP_H=''
36628
36629else
36630
36631    BYTESWAP_H='byteswap.h'
36632
36633fi
36634
36635done
36636
36637
36638   if test -n "$BYTESWAP_H"; then
36639  GL_GENERATE_BYTESWAP_H_TRUE=
36640  GL_GENERATE_BYTESWAP_H_FALSE='#'
36641else
36642  GL_GENERATE_BYTESWAP_H_TRUE='#'
36643  GL_GENERATE_BYTESWAP_H_FALSE=
36644fi
36645
36646
36647
36648
36649
36650
36651
36652
36653      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod_l" >&5
36654$as_echo_n "checking for strtod_l... " >&6; }
36655if ${gl_cv_func_strtod_l+:} false; then :
36656  $as_echo_n "(cached) " >&6
36657else
36658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36659/* end confdefs.h.  */
36660#include <stdlib.h>
36661            #include <locale.h>
36662            #if HAVE_XLOCALE_H
36663            # include <xlocale.h>
36664            #endif
36665            locale_t loc;
36666
36667int
36668main ()
36669{
36670char *end;
36671            return strtod_l("0",&end,loc) < 0.0;
36672
36673  ;
36674  return 0;
36675}
36676
36677_ACEOF
36678if ac_fn_c_try_link "$LINENO"; then :
36679  gl_cv_func_strtod_l=yes
36680else
36681  gl_cv_func_strtod_l=no
36682fi
36683rm -f core conftest.err conftest.$ac_objext \
36684    conftest$ac_exeext conftest.$ac_ext
36685
36686fi
36687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtod_l" >&5
36688$as_echo "$gl_cv_func_strtod_l" >&6; }
36689  if test $gl_cv_func_strtod_l = yes; then
36690    HAVE_STRTOD_L=1
36691  else
36692    HAVE_STRTOD_L=0
36693  fi
36694
36695cat >>confdefs.h <<_ACEOF
36696#define HAVE_STRTOD_L $HAVE_STRTOD_L
36697_ACEOF
36698
36699
36700
36701
36702
36703
36704
36705
36706  case "$gl_cv_func_printf_infinite" in
36707    *yes)
36708      ;;
36709    *)
36710
36711$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
36712
36713      ;;
36714  esac
36715
36716
36717
36718
36719  case "$gl_cv_func_printf_long_double" in
36720    *yes)
36721      case "$gl_cv_func_printf_infinite_long_double" in
36722        *yes)
36723          ;;
36724        *)
36725
36726$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
36727
36728          ;;
36729      esac
36730      ;;
36731  esac
36732
36733
36734
36735  case "$gl_cv_func_printf_directive_a" in
36736    *yes)
36737      ;;
36738    *)
36739
36740$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
36741
36742      for ac_func in nl_langinfo
36743do :
36744  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
36745if test "x$ac_cv_func_nl_langinfo" = xyes; then :
36746  cat >>confdefs.h <<_ACEOF
36747#define HAVE_NL_LANGINFO 1
36748_ACEOF
36749
36750fi
36751done
36752
36753      ;;
36754  esac
36755
36756
36757
36758  case "$gl_cv_func_printf_directive_f" in
36759    *yes)
36760      ;;
36761    *)
36762
36763$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
36764
36765      ;;
36766  esac
36767
36768
36769
36770  case "$gl_cv_func_printf_directive_ls" in
36771    *yes)
36772      ;;
36773    *)
36774
36775$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
36776
36777      ;;
36778  esac
36779
36780
36781
36782  case "$gl_cv_func_printf_flag_grouping" in
36783    *yes)
36784      ;;
36785    *)
36786
36787$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
36788
36789      ;;
36790  esac
36791
36792
36793
36794  case "$gl_cv_func_printf_flag_leftadjust" in
36795    *yes)
36796      ;;
36797    *)
36798
36799$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
36800
36801      ;;
36802  esac
36803
36804
36805
36806  case "$gl_cv_func_printf_flag_zero" in
36807    *yes)
36808      ;;
36809    *)
36810
36811$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
36812
36813      ;;
36814  esac
36815
36816
36817
36818  case "$gl_cv_func_printf_precision" in
36819    *yes)
36820      ;;
36821    *)
36822
36823$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
36824
36825
36826$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
36827
36828
36829$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
36830
36831      ;;
36832  esac
36833
36834
36835
36836  case "$gl_cv_func_printf_enomem" in
36837    *yes)
36838      ;;
36839    *)
36840
36841$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
36842
36843
36844$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
36845
36846
36847$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
36848
36849      ;;
36850  esac
36851
36852
36853
36854
36855
36856  if test $ac_cv_func_canonicalize_file_name = no; then
36857    HAVE_CANONICALIZE_FILE_NAME=0
36858    if test $ac_cv_func_realpath = no; then
36859      HAVE_REALPATH=0
36860    else
36861      case "$gl_cv_func_realpath_works" in
36862        *yes) ;;
36863        *)    REPLACE_REALPATH=1 ;;
36864      esac
36865    fi
36866  else
36867    case "$gl_cv_func_realpath_works" in
36868      *yes)
36869        ;;
36870      *)
36871        REPLACE_CANONICALIZE_FILE_NAME=1
36872        REPLACE_REALPATH=1
36873        ;;
36874    esac
36875  fi
36876
36877  if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
36878
36879
36880
36881
36882
36883
36884
36885
36886  gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
36887
36888  fi
36889
36890
36891cat >>confdefs.h <<_ACEOF
36892#define GNULIB_CANONICALIZE_LGPL 1
36893_ACEOF
36894
36895
36896
36897
36898
36899
36900
36901          GNULIB_CANONICALIZE_FILE_NAME=1
36902
36903
36904
36905
36906
36907$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
36908
36909
36910
36911
36912
36913
36914
36915
36916          GNULIB_REALPATH=1
36917
36918
36919
36920
36921
36922$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933          GNULIB_CHDIR=1
36934
36935
36936
36937
36938
36939$as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
36940
36941
36942
36943
36944$as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h
36945
36946
36947
36948
36949  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
36950  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
36951
36952  # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
36953  # programs in the package would end up linked with that potentially-shared
36954  # library, inducing unnecessary run-time overhead.
36955  LIB_CLOCK_GETTIME=
36956
36957  gl_saved_libs=$LIBS
36958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
36959$as_echo_n "checking for library containing clock_gettime... " >&6; }
36960if ${ac_cv_search_clock_gettime+:} false; then :
36961  $as_echo_n "(cached) " >&6
36962else
36963  ac_func_search_save_LIBS=$LIBS
36964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36965/* end confdefs.h.  */
36966
36967/* Override any GCC internal prototype to avoid an error.
36968   Use char because int might match the return type of a GCC
36969   builtin and then its argument prototype would still apply.  */
36970#ifdef __cplusplus
36971extern "C"
36972#endif
36973char clock_gettime ();
36974int
36975main ()
36976{
36977return clock_gettime ();
36978  ;
36979  return 0;
36980}
36981_ACEOF
36982for ac_lib in '' rt posix4; do
36983  if test -z "$ac_lib"; then
36984    ac_res="none required"
36985  else
36986    ac_res=-l$ac_lib
36987    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36988  fi
36989  if ac_fn_c_try_link "$LINENO"; then :
36990  ac_cv_search_clock_gettime=$ac_res
36991fi
36992rm -f core conftest.err conftest.$ac_objext \
36993    conftest$ac_exeext
36994  if ${ac_cv_search_clock_gettime+:} false; then :
36995  break
36996fi
36997done
36998if ${ac_cv_search_clock_gettime+:} false; then :
36999
37000else
37001  ac_cv_search_clock_gettime=no
37002fi
37003rm conftest.$ac_ext
37004LIBS=$ac_func_search_save_LIBS
37005fi
37006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
37007$as_echo "$ac_cv_search_clock_gettime" >&6; }
37008ac_res=$ac_cv_search_clock_gettime
37009if test "$ac_res" != no; then :
37010  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37011  test "$ac_cv_search_clock_gettime" = "none required" ||
37012                    LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
37013fi
37014
37015    for ac_func in clock_gettime clock_settime
37016do :
37017  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37019if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37020  cat >>confdefs.h <<_ACEOF
37021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37022_ACEOF
37023
37024fi
37025done
37026
37027  LIBS=$gl_saved_libs
37028
37029
37030
37031$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
37032
37033
37034
37035
37036
37037
37038    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
37039      REPLACE_CLOSE=1
37040    fi
37041
37042
37043
37044
37045
37046
37047  if test $ac_cv_header_sys_socket_h != yes; then
37048                    for ac_header in winsock2.h
37049do :
37050  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
37051if test "x$ac_cv_header_winsock2_h" = xyes; then :
37052  cat >>confdefs.h <<_ACEOF
37053#define HAVE_WINSOCK2_H 1
37054_ACEOF
37055
37056fi
37057
37058done
37059
37060  fi
37061  if test "$ac_cv_header_winsock2_h" = yes; then
37062    HAVE_WINSOCK2_H=1
37063    UNISTD_H_HAVE_WINSOCK2_H=1
37064    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
37065  else
37066    HAVE_WINSOCK2_H=0
37067  fi
37068
37069
37070    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
37071                        REPLACE_CLOSE=1
37072    fi
37073
37074
37075
37076  if test $REPLACE_CLOSE = 1; then
37077
37078
37079
37080
37081
37082
37083
37084
37085  gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
37086
37087  fi
37088
37089
37090
37091
37092
37093          GNULIB_CLOSE=1
37094
37095
37096
37097
37098
37099$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
37100
37101
37102
37103
37104  if test "x$lispdir" = x; then
37105    lispdir='${datarootdir}/emacs/site-lisp'
37106
37107  fi
37108    if test "x$runstatedir" = x; then
37109    runstatedir='${localstatedir}/run'
37110
37111  fi
37112
37113      pkglibexecdir='${libexecdir}/${PACKAGE}'
37114
37115
37116
37117
37118
37119  :
37120
37121
37122
37123
37124cat >>confdefs.h <<_ACEOF
37125#define GNULIB_DIRNAME 1
37126_ACEOF
37127
37128
37129
37130
37131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
37132$as_echo_n "checking whether // is distinct from /... " >&6; }
37133if ${gl_cv_double_slash_root+:} false; then :
37134  $as_echo_n "(cached) " >&6
37135else
37136   if test x"$cross_compiling" = xyes ; then
37137        # When cross-compiling, there is no way to tell whether // is special
37138        # short of a list of hosts.  However, the only known hosts to date
37139        # that have a distinct // are Apollo DomainOS (too old to port to),
37140        # Cygwin, and z/OS.  If anyone knows of another system for which // has
37141        # special semantics and is distinct from /, please report it to
37142        # <bug-gnulib@gnu.org>.
37143        case $host in
37144          *-cygwin | i370-ibm-openedition)
37145            gl_cv_double_slash_root=yes ;;
37146          *)
37147            # Be optimistic and assume that / and // are the same when we
37148            # don't know.
37149            gl_cv_double_slash_root='unknown, assuming no' ;;
37150        esac
37151      else
37152        set x `ls -di / // 2>/dev/null`
37153        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
37154          gl_cv_double_slash_root=no
37155        else
37156          gl_cv_double_slash_root=yes
37157        fi
37158      fi
37159fi
37160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
37161$as_echo "$gl_cv_double_slash_root" >&6; }
37162  if test "$gl_cv_double_slash_root" = yes; then
37163
37164$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
37165
37166  fi
37167
37168
37169
37170
37171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
37172$as_echo_n "checking whether dup2 works... " >&6; }
37173if ${gl_cv_func_dup2_works+:} false; then :
37174  $as_echo_n "(cached) " >&6
37175else
37176  if test "$cross_compiling" = yes; then :
37177  case "$host_os" in
37178         mingw*) # on this platform, dup2 always returns 0 for success
37179           gl_cv_func_dup2_works="guessing no" ;;
37180         cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
37181           gl_cv_func_dup2_works="guessing no" ;;
37182         aix* | freebsd*)
37183                 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
37184                 # not EBADF.
37185           gl_cv_func_dup2_works="guessing no" ;;
37186         haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
37187           gl_cv_func_dup2_works="guessing no" ;;
37188         *-android*) # implemented using dup3(), which fails if oldfd == newfd
37189           gl_cv_func_dup2_works="guessing no" ;;
37190         os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
37191           gl_cv_func_dup2_works="guessing no" ;;
37192         *) gl_cv_func_dup2_works="guessing yes" ;;
37193       esac
37194else
37195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37196/* end confdefs.h.  */
37197
37198       #include <errno.h>
37199           #include <fcntl.h>
37200           #include <limits.h>
37201           #include <sys/resource.h>
37202           #include <unistd.h>
37203           #ifndef RLIM_SAVED_CUR
37204           # define RLIM_SAVED_CUR RLIM_INFINITY
37205           #endif
37206           #ifndef RLIM_SAVED_MAX
37207           # define RLIM_SAVED_MAX RLIM_INFINITY
37208           #endif
37209
37210int
37211main ()
37212{
37213int result = 0;
37214           int bad_fd = INT_MAX;
37215           struct rlimit rlim;
37216           if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
37217               && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
37218               && rlim.rlim_cur != RLIM_INFINITY
37219               && rlim.rlim_cur != RLIM_SAVED_MAX
37220               && rlim.rlim_cur != RLIM_SAVED_CUR)
37221             bad_fd = rlim.rlim_cur;
37222           #ifdef FD_CLOEXEC
37223             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
37224               result |= 1;
37225           #endif
37226           if (dup2 (1, 1) != 1)
37227             result |= 2;
37228           #ifdef FD_CLOEXEC
37229             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
37230               result |= 4;
37231           #endif
37232           close (0);
37233           if (dup2 (0, 0) != -1)
37234             result |= 8;
37235           /* Many gnulib modules require POSIX conformance of EBADF.  */
37236           if (dup2 (2, bad_fd) == -1 && errno != EBADF)
37237             result |= 16;
37238           /* Flush out some cygwin core dumps.  */
37239           if (dup2 (2, -1) != -1 || errno != EBADF)
37240             result |= 32;
37241           dup2 (2, 255);
37242           dup2 (2, 256);
37243           /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
37244           {
37245             int fd = open (".", O_RDONLY);
37246             if (fd == -1)
37247               result |= 64;
37248             else if (dup2 (fd, fd + 1) == -1)
37249               result |= 128;
37250             close (fd);
37251           }
37252           return result;
37253  ;
37254  return 0;
37255}
37256
37257_ACEOF
37258if ac_fn_c_try_run "$LINENO"; then :
37259  gl_cv_func_dup2_works=yes
37260else
37261  gl_cv_func_dup2_works=no
37262fi
37263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37264  conftest.$ac_objext conftest.beam conftest.$ac_ext
37265fi
37266
37267
37268fi
37269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
37270$as_echo "$gl_cv_func_dup2_works" >&6; }
37271  case "$gl_cv_func_dup2_works" in
37272    *yes) ;;
37273    *)
37274      REPLACE_DUP2=1
37275      for ac_func in setdtablesize
37276do :
37277  ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
37278if test "x$ac_cv_func_setdtablesize" = xyes; then :
37279  cat >>confdefs.h <<_ACEOF
37280#define HAVE_SETDTABLESIZE 1
37281_ACEOF
37282
37283fi
37284done
37285
37286      ;;
37287  esac
37288
37289
37290  if test $REPLACE_DUP2 = 1; then
37291
37292
37293
37294
37295
37296
37297
37298
37299  gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
37300
37301
37302  fi
37303
37304
37305
37306
37307
37308          GNULIB_DUP2=1
37309
37310
37311
37312
37313
37314$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324          GNULIB_ENVIRON=1
37325
37326
37327
37328
37329
37330$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
37331
37332
37333
37334
37335
37336      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
37337$as_echo_n "checking for error_at_line... " >&6; }
37338if ${ac_cv_lib_error_at_line+:} false; then :
37339  $as_echo_n "(cached) " >&6
37340else
37341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37342/* end confdefs.h.  */
37343#include <error.h>
37344int
37345main ()
37346{
37347error_at_line (0, 0, "", 0, "an error occurred");
37348  ;
37349  return 0;
37350}
37351_ACEOF
37352if ac_fn_c_try_link "$LINENO"; then :
37353  ac_cv_lib_error_at_line=yes
37354else
37355  ac_cv_lib_error_at_line=no
37356fi
37357rm -f core conftest.err conftest.$ac_objext \
37358    conftest$ac_exeext conftest.$ac_ext
37359fi
37360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
37361$as_echo "$ac_cv_lib_error_at_line" >&6; }
37362
37363  if test $ac_cv_lib_error_at_line = no; then
37364
37365
37366
37367
37368
37369
37370
37371
37372  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
37373
37374
37375
37376  :
37377
37378  fi
37379
37380
37381  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
37382
37383
37384
37385  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
37386
37387
37388
37389
37390
37391
37392
37393  if test $ac_cv_func_explicit_bzero = no; then
37394    HAVE_EXPLICIT_BZERO=0
37395  fi
37396
37397  if test $HAVE_EXPLICIT_BZERO = 0; then
37398
37399
37400
37401
37402
37403
37404
37405
37406  gl_LIBOBJS="$gl_LIBOBJS explicit_bzero.$ac_objext"
37407
37408
37409  for ac_func in explicit_memset
37410do :
37411  ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
37412if test "x$ac_cv_func_explicit_memset" = xyes; then :
37413  cat >>confdefs.h <<_ACEOF
37414#define HAVE_EXPLICIT_MEMSET 1
37415_ACEOF
37416
37417fi
37418done
37419
37420
37421
37422  fi
37423
37424
37425
37426
37427
37428          GNULIB_EXPLICIT_BZERO=1
37429
37430
37431
37432
37433
37434$as_echo "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h
37435
37436
37437
37438
37439
37440
37441
37442  :
37443
37444
37445
37446
37447
37448
37449  if test $ac_cv_func_fcntl = no; then
37450
37451
37452
37453  if test $ac_cv_func_fcntl = no; then
37454    HAVE_FCNTL=0
37455  else
37456    REPLACE_FCNTL=1
37457  fi
37458
37459  else
37460            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
37461$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
37462if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
37463  $as_echo_n "(cached) " >&6
37464else
37465  if test "$cross_compiling" = yes; then :
37466  case $host_os in
37467            aix* | cygwin* | haiku*)
37468               gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
37469            *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
37470          esac
37471else
37472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37473/* end confdefs.h.  */
37474#include <errno.h>
37475              #include <fcntl.h>
37476              #include <limits.h>
37477              #include <sys/resource.h>
37478              #include <unistd.h>
37479              #ifndef RLIM_SAVED_CUR
37480              # define RLIM_SAVED_CUR RLIM_INFINITY
37481              #endif
37482              #ifndef RLIM_SAVED_MAX
37483              # define RLIM_SAVED_MAX RLIM_INFINITY
37484              #endif
37485
37486int
37487main ()
37488{
37489int result = 0;
37490              int bad_fd = INT_MAX;
37491              struct rlimit rlim;
37492              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
37493                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
37494                  && rlim.rlim_cur != RLIM_INFINITY
37495                  && rlim.rlim_cur != RLIM_SAVED_MAX
37496                  && rlim.rlim_cur != RLIM_SAVED_CUR)
37497                bad_fd = rlim.rlim_cur;
37498              if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
37499              if (errno != EINVAL) result |= 2;
37500              if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
37501              if (errno != EINVAL) result |= 8;
37502              /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
37503              {
37504                int fd;
37505                fd = open (".", O_RDONLY);
37506                if (fd == -1)
37507                  result |= 16;
37508                else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
37509                  result |= 32;
37510
37511                close (fd);
37512              }
37513              return result;
37514  ;
37515  return 0;
37516}
37517_ACEOF
37518if ac_fn_c_try_run "$LINENO"; then :
37519  gl_cv_func_fcntl_f_dupfd_works=yes
37520else
37521  gl_cv_func_fcntl_f_dupfd_works=no
37522fi
37523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37524  conftest.$ac_objext conftest.beam conftest.$ac_ext
37525fi
37526
37527fi
37528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
37529$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
37530    case $gl_cv_func_fcntl_f_dupfd_works in
37531      *yes) ;;
37532      *)
37533
37534
37535  if test $ac_cv_func_fcntl = no; then
37536    HAVE_FCNTL=0
37537  else
37538    REPLACE_FCNTL=1
37539  fi
37540
37541
37542$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
37543 ;;
37544    esac
37545
37546        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
37547$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
37548if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
37549  $as_echo_n "(cached) " >&6
37550else
37551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552/* end confdefs.h.  */
37553
37554#include <fcntl.h>
37555#ifndef F_DUPFD_CLOEXEC
37556choke me
37557#endif
37558
37559int
37560main ()
37561{
37562
37563  ;
37564  return 0;
37565}
37566_ACEOF
37567if ac_fn_c_try_compile "$LINENO"; then :
37568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37569/* end confdefs.h.  */
37570
37571#ifdef __linux__
37572/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
37573   it to support the semantics on older kernels that failed with EINVAL.  */
37574choke me
37575#endif
37576
37577int
37578main ()
37579{
37580
37581  ;
37582  return 0;
37583}
37584_ACEOF
37585if ac_fn_c_try_compile "$LINENO"; then :
37586  gl_cv_func_fcntl_f_dupfd_cloexec=yes
37587else
37588  gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
37589fi
37590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37591else
37592  gl_cv_func_fcntl_f_dupfd_cloexec=no
37593fi
37594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37595fi
37596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
37597$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
37598    if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
37599
37600
37601
37602  if test $ac_cv_func_fcntl = no; then
37603    HAVE_FCNTL=0
37604  else
37605    REPLACE_FCNTL=1
37606  fi
37607
37608          fi
37609  fi
37610
37611
37612  if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
37613
37614
37615
37616
37617
37618
37619
37620
37621  gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
37622
37623  fi
37624
37625
37626
37627
37628
37629          GNULIB_FCNTL=1
37630
37631
37632
37633
37634
37635$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648
37649
37650     if test $gl_cv_have_include_next = yes; then
37651       gl_cv_next_fcntl_h='<'fcntl.h'>'
37652     else
37653       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
37654$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
37655if ${gl_cv_next_fcntl_h+:} false; then :
37656  $as_echo_n "(cached) " >&6
37657else
37658
37659
37660
37661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37662/* end confdefs.h.  */
37663#include <fcntl.h>
37664_ACEOF
37665                case "$host_os" in
37666    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37667    *)    gl_absname_cpp="$ac_cpp" ;;
37668  esac
37669
37670  case "$host_os" in
37671    mingw*)
37672                                          gl_dirsep_regex='[/\\]'
37673      ;;
37674    *)
37675      gl_dirsep_regex='\/'
37676      ;;
37677  esac
37678      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37679  gl_header_literal_regex=`echo 'fcntl.h' \
37680                           | sed -e "$gl_make_literal_regex_sed"`
37681  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37682      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37683      s|^/[^/]|//&|
37684      p
37685      q
37686    }'
37687
37688        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37689  sed -n "$gl_absolute_header_sed"`
37690
37691           gl_header=$gl_cv_absolute_fcntl_h
37692           gl_cv_next_fcntl_h='"'$gl_header'"'
37693
37694
37695fi
37696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
37697$as_echo "$gl_cv_next_fcntl_h" >&6; }
37698     fi
37699     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
37700
37701     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37702       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37703       gl_next_as_first_directive='<'fcntl.h'>'
37704     else
37705       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37706       gl_next_as_first_directive=$gl_cv_next_fcntl_h
37707     fi
37708     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722
37723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
37724$as_echo_n "checking for flexible array member... " >&6; }
37725if ${ac_cv_c_flexmember+:} false; then :
37726  $as_echo_n "(cached) " >&6
37727else
37728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37729/* end confdefs.h.  */
37730#include <stdlib.h>
37731            #include <stdio.h>
37732            #include <stddef.h>
37733            struct m { struct m *next, **list; char name[]; };
37734            struct s { struct s *p; struct m *m; int n; double d[]; };
37735int
37736main ()
37737{
37738int m = getchar ();
37739            size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
37740            nbytes += sizeof (struct s) - 1;
37741            nbytes -= nbytes % sizeof (struct s);
37742            struct s *p = malloc (nbytes);
37743            p->p = p;
37744            p->m = NULL;
37745            p->d[0] = 0.0;
37746            return p->d != (double *) NULL;
37747  ;
37748  return 0;
37749}
37750_ACEOF
37751if ac_fn_c_try_compile "$LINENO"; then :
37752  ac_cv_c_flexmember=yes
37753else
37754  ac_cv_c_flexmember=no
37755fi
37756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37757fi
37758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
37759$as_echo "$ac_cv_c_flexmember" >&6; }
37760  if test $ac_cv_c_flexmember = yes; then
37761
37762$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
37763
37764  else
37765    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
37766
37767  fi
37768
37769
37770
37771
37772  FLOAT_H=
37773  REPLACE_FLOAT_LDBL=0
37774  case "$host_os" in
37775    aix* | beos* | openbsd* | mirbsd* | irix*)
37776      FLOAT_H=float.h
37777      ;;
37778    freebsd* | dragonfly*)
37779      case "$host_cpu" in
37780        i[34567]86 )
37781          FLOAT_H=float.h
37782          ;;
37783        x86_64 )
37784          # On x86_64 systems, the C compiler may still be generating
37785          # 32-bit code.
37786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37787/* end confdefs.h.  */
37788#if defined __LP64__ || defined __x86_64__ || defined __amd64__
37789                  int ok;
37790                 #else
37791                  error fail
37792                 #endif
37793
37794_ACEOF
37795if ac_fn_c_try_compile "$LINENO"; then :
37796
37797else
37798  FLOAT_H=float.h
37799fi
37800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37801          ;;
37802      esac
37803      ;;
37804    linux*)
37805      case "$host_cpu" in
37806        powerpc*)
37807          FLOAT_H=float.h
37808          ;;
37809      esac
37810      ;;
37811  esac
37812  case "$host_os" in
37813    aix* | freebsd* | dragonfly* | linux*)
37814      if test -n "$FLOAT_H"; then
37815        REPLACE_FLOAT_LDBL=1
37816      fi
37817      ;;
37818  esac
37819
37820    REPLACE_ITOLD=0
37821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
37822$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
37823if ${gl_cv_func_itold_works+:} false; then :
37824  $as_echo_n "(cached) " >&6
37825else
37826
37827      if test "$cross_compiling" = yes; then :
37828  case "$host" in
37829           sparc*-*-linux*)
37830             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37831/* end confdefs.h.  */
37832#if defined __LP64__ || defined __arch64__
37833                    int ok;
37834                   #else
37835                    error fail
37836                   #endif
37837
37838_ACEOF
37839if ac_fn_c_try_compile "$LINENO"; then :
37840  gl_cv_func_itold_works="guessing no"
37841else
37842  gl_cv_func_itold_works="guessing yes"
37843fi
37844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37845             ;;
37846                   # Guess yes on native Windows.
37847           mingw*) gl_cv_func_itold_works="guessing yes" ;;
37848           *)      gl_cv_func_itold_works="guessing yes" ;;
37849         esac
37850
37851else
37852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37853/* end confdefs.h.  */
37854
37855int i = -1;
37856volatile long double ld;
37857int main ()
37858{
37859  ld += i * 1.0L;
37860  if (ld > 0)
37861    return 1;
37862  return 0;
37863}
37864_ACEOF
37865if ac_fn_c_try_run "$LINENO"; then :
37866  gl_cv_func_itold_works=yes
37867else
37868  gl_cv_func_itold_works=no
37869fi
37870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37871  conftest.$ac_objext conftest.beam conftest.$ac_ext
37872fi
37873
37874
37875fi
37876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
37877$as_echo "$gl_cv_func_itold_works" >&6; }
37878  case "$gl_cv_func_itold_works" in
37879    *no)
37880      REPLACE_ITOLD=1
37881                  FLOAT_H=float.h
37882      ;;
37883  esac
37884
37885  if test -n "$FLOAT_H"; then
37886
37887
37888
37889
37890
37891
37892
37893
37894     if test $gl_cv_have_include_next = yes; then
37895       gl_cv_next_float_h='<'float.h'>'
37896     else
37897       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
37898$as_echo_n "checking absolute name of <float.h>... " >&6; }
37899if ${gl_cv_next_float_h+:} false; then :
37900  $as_echo_n "(cached) " >&6
37901else
37902
37903
37904
37905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37906/* end confdefs.h.  */
37907#include <float.h>
37908_ACEOF
37909                case "$host_os" in
37910    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37911    *)    gl_absname_cpp="$ac_cpp" ;;
37912  esac
37913
37914  case "$host_os" in
37915    mingw*)
37916                                          gl_dirsep_regex='[/\\]'
37917      ;;
37918    *)
37919      gl_dirsep_regex='\/'
37920      ;;
37921  esac
37922      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37923  gl_header_literal_regex=`echo 'float.h' \
37924                           | sed -e "$gl_make_literal_regex_sed"`
37925  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37926      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37927      s|^/[^/]|//&|
37928      p
37929      q
37930    }'
37931
37932        gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37933  sed -n "$gl_absolute_header_sed"`
37934
37935           gl_header=$gl_cv_absolute_float_h
37936           gl_cv_next_float_h='"'$gl_header'"'
37937
37938
37939fi
37940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
37941$as_echo "$gl_cv_next_float_h" >&6; }
37942     fi
37943     NEXT_FLOAT_H=$gl_cv_next_float_h
37944
37945     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37946       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37947       gl_next_as_first_directive='<'float.h'>'
37948     else
37949       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37950       gl_next_as_first_directive=$gl_cv_next_float_h
37951     fi
37952     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
37953
37954
37955
37956
37957  fi
37958
37959   if test -n "$FLOAT_H"; then
37960  GL_GENERATE_FLOAT_H_TRUE=
37961  GL_GENERATE_FLOAT_H_FALSE='#'
37962else
37963  GL_GENERATE_FLOAT_H_TRUE='#'
37964  GL_GENERATE_FLOAT_H_FALSE=
37965fi
37966
37967
37968
37969  if test $REPLACE_FLOAT_LDBL = 1; then
37970
37971
37972
37973
37974
37975
37976
37977
37978  gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
37979
37980  fi
37981  if test $REPLACE_ITOLD = 1; then
37982
37983
37984
37985
37986
37987
37988
37989
37990  gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
37991
37992  fi
37993
37994  if test $REPLACE_FLOOR = 1; then
37995
37996
37997
37998
37999
38000
38001
38002
38003  gl_LIBOBJS="$gl_LIBOBJS floor.$ac_objext"
38004
38005  fi
38006
38007
38008
38009
38010
38011          GNULIB_FLOOR=1
38012
38013
38014
38015
38016
38017$as_echo "#define GNULIB_TEST_FLOOR 1" >>confdefs.h
38018
38019
38020
38021
38022
38023
38024  case "$host_os" in
38025    mingw* | pw*)
38026            REPLACE_FOPEN=1
38027            gl_cv_func_fopen_slash="guessing no"
38028      ;;
38029    *)
38030                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
38031$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
38032if ${gl_cv_func_fopen_slash+:} false; then :
38033  $as_echo_n "(cached) " >&6
38034else
38035
38036          if test "$cross_compiling" = yes; then :
38037
38038             case "$host_os" in
38039               aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
38040                 gl_cv_func_fopen_slash="guessing no" ;;
38041               *)
38042                 gl_cv_func_fopen_slash="guessing yes" ;;
38043             esac
38044
38045else
38046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38047/* end confdefs.h.  */
38048
38049#include <stddef.h>
38050#include <stdio.h>
38051int main ()
38052{
38053  FILE *fp = fopen ("conftest.sl/", "w");
38054  int result = (fp != NULL);
38055  if (fp != NULL)
38056    fclose (fp);
38057  return result;
38058}
38059_ACEOF
38060if ac_fn_c_try_run "$LINENO"; then :
38061  gl_cv_func_fopen_slash=yes
38062else
38063  gl_cv_func_fopen_slash=no
38064fi
38065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38066  conftest.$ac_objext conftest.beam conftest.$ac_ext
38067fi
38068
38069          rm -f conftest.sl
38070
38071fi
38072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
38073$as_echo "$gl_cv_func_fopen_slash" >&6; }
38074      ;;
38075  esac
38076  case "$gl_cv_func_fopen_slash" in
38077    *no)
38078
38079$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
38080
38081      REPLACE_FOPEN=1
38082      ;;
38083  esac
38084
38085  if test $REPLACE_FOPEN = 1; then
38086
38087
38088
38089
38090
38091
38092
38093
38094  gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
38095
38096    :
38097  fi
38098
38099
38100
38101
38102
38103          GNULIB_FOPEN=1
38104
38105
38106
38107
38108
38109$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
38110
38111
38112
38113
38114
38115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
38116$as_echo_n "checking whether fopen supports the mode character 'x'... " >&6; }
38117if ${gl_cv_func_fopen_mode_x+:} false; then :
38118  $as_echo_n "(cached) " >&6
38119else
38120  rm -f conftest.x
38121     if test "$cross_compiling" = yes; then :
38122  case "$host_os" in
38123          # Guess yes on glibc and musl systems.
38124          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
38125            gl_cv_func_fopen_mode_x="guessing yes" ;;
38126          # If we don't know, obey --enable-cross-guesses.
38127          *)
38128            gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
38129        esac
38130
38131else
38132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38133/* end confdefs.h.  */
38134
38135#include <stdio.h>
38136#include <errno.h>
38137int main ()
38138{
38139  FILE *fp;
38140  fp = fopen ("conftest.x", "w");
38141  fclose (fp);
38142  fp = fopen ("conftest.x", "wx");
38143  if (fp != NULL)
38144    /* 'x' ignored */
38145    return 1;
38146  else if (errno == EEXIST)
38147    return 0;
38148  else
38149    /* 'x' rejected */
38150    return 2;
38151}
38152_ACEOF
38153if ac_fn_c_try_run "$LINENO"; then :
38154  gl_cv_func_fopen_mode_x=yes
38155else
38156  gl_cv_func_fopen_mode_x=no
38157fi
38158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38159  conftest.$ac_objext conftest.beam conftest.$ac_ext
38160fi
38161
38162     rm -f conftest.x
38163
38164fi
38165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
38166$as_echo "$gl_cv_func_fopen_mode_x" >&6; }
38167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
38168$as_echo_n "checking whether fopen supports the mode character 'e'... " >&6; }
38169if ${gl_cv_func_fopen_mode_e+:} false; then :
38170  $as_echo_n "(cached) " >&6
38171else
38172  echo foo > conftest.x
38173     if test "$cross_compiling" = yes; then :
38174  case "$host_os" in
38175          # Guess yes on glibc and musl systems.
38176          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
38177            gl_cv_func_fopen_mode_e="guessing yes" ;;
38178          # Guess no on native Windows.
38179          mingw*)
38180            gl_cv_func_fopen_mode_e="guessing no" ;;
38181          # If we don't know, obey --enable-cross-guesses.
38182          *)
38183            gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
38184        esac
38185
38186else
38187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38188/* end confdefs.h.  */
38189
38190#include <stdio.h>
38191#include <errno.h>
38192#include <fcntl.h>
38193int main ()
38194{
38195  FILE *fp = fopen ("conftest.x", "re");
38196  if (fp != NULL)
38197    {
38198      if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
38199        return 0;
38200      else
38201        /* 'e' ignored */
38202        return 1;
38203    }
38204  else
38205    /* 'e' rejected */
38206    return 2;
38207}
38208_ACEOF
38209if ac_fn_c_try_run "$LINENO"; then :
38210  gl_cv_func_fopen_mode_e=yes
38211else
38212  gl_cv_func_fopen_mode_e=no
38213fi
38214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38215  conftest.$ac_objext conftest.beam conftest.$ac_ext
38216fi
38217
38218     rm -f conftest.x
38219
38220fi
38221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
38222$as_echo "$gl_cv_func_fopen_mode_e" >&6; }
38223  case "$gl_cv_func_fopen_mode_x" in
38224    *no) REPLACE_FOPEN=1 ;;
38225  esac
38226  case "$gl_cv_func_fopen_mode_e" in
38227    *no) REPLACE_FOPEN=1 ;;
38228  esac
38229
38230  if test $REPLACE_FOPEN = 1; then
38231
38232
38233
38234
38235
38236
38237
38238
38239  gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
38240
38241    :
38242  fi
38243
38244
38245cat >>confdefs.h <<_ACEOF
38246#define GNULIB_FOPEN_GNU 1
38247_ACEOF
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258
38259
38260
38261
38262
38263
38264
38265  gl_cv_func_fprintf_posix=no
38266  case "$gl_cv_func_printf_sizes_c99" in
38267    *yes)
38268      case "$gl_cv_func_printf_long_double" in
38269        *yes)
38270          case "$gl_cv_func_printf_infinite" in
38271            *yes)
38272              case "$gl_cv_func_printf_infinite_long_double" in
38273                *yes)
38274                  case "$gl_cv_func_printf_directive_a" in
38275                    *yes)
38276                      case "$gl_cv_func_printf_directive_f" in
38277                        *yes)
38278                          case "$gl_cv_func_printf_directive_n" in
38279                            *yes)
38280                              case "$gl_cv_func_printf_directive_ls" in
38281                                *yes)
38282                                  case "$gl_cv_func_printf_positions" in
38283                                    *yes)
38284                                      case "$gl_cv_func_printf_flag_grouping" in
38285                                        *yes)
38286                                          case "$gl_cv_func_printf_flag_leftadjust" in
38287                                            *yes)
38288                                              case "$gl_cv_func_printf_flag_zero" in
38289                                                *yes)
38290                                                  case "$gl_cv_func_printf_precision" in
38291                                                    *yes)
38292                                                      case "$gl_cv_func_printf_enomem" in
38293                                                        *yes)
38294                                                          # fprintf exists and is
38295                                                          # already POSIX compliant.
38296                                                          gl_cv_func_fprintf_posix=yes
38297                                                          ;;
38298                                                      esac
38299                                                      ;;
38300                                                  esac
38301                                                  ;;
38302                                              esac
38303                                              ;;
38304                                          esac
38305                                          ;;
38306                                      esac
38307                                      ;;
38308                                  esac
38309                                  ;;
38310                              esac
38311                              ;;
38312                          esac
38313                          ;;
38314                      esac
38315                      ;;
38316                  esac
38317                  ;;
38318              esac
38319              ;;
38320          esac
38321          ;;
38322      esac
38323      ;;
38324  esac
38325  if test $gl_cv_func_fprintf_posix = no; then
38326
38327
38328
38329  case "$gl_cv_func_printf_infinite" in
38330    *yes)
38331      ;;
38332    *)
38333
38334$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
38335
38336      ;;
38337  esac
38338
38339
38340
38341
38342  case "$gl_cv_func_printf_long_double" in
38343    *yes)
38344      case "$gl_cv_func_printf_infinite_long_double" in
38345        *yes)
38346          ;;
38347        *)
38348
38349$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
38350
38351          ;;
38352      esac
38353      ;;
38354  esac
38355
38356
38357
38358  case "$gl_cv_func_printf_directive_a" in
38359    *yes)
38360      ;;
38361    *)
38362
38363$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
38364
38365      for ac_func in nl_langinfo
38366do :
38367  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
38368if test "x$ac_cv_func_nl_langinfo" = xyes; then :
38369  cat >>confdefs.h <<_ACEOF
38370#define HAVE_NL_LANGINFO 1
38371_ACEOF
38372
38373fi
38374done
38375
38376      ;;
38377  esac
38378
38379
38380
38381  case "$gl_cv_func_printf_directive_f" in
38382    *yes)
38383      ;;
38384    *)
38385
38386$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
38387
38388      ;;
38389  esac
38390
38391
38392
38393  case "$gl_cv_func_printf_directive_ls" in
38394    *yes)
38395      ;;
38396    *)
38397
38398$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
38399
38400      ;;
38401  esac
38402
38403
38404
38405  case "$gl_cv_func_printf_flag_grouping" in
38406    *yes)
38407      ;;
38408    *)
38409
38410$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
38411
38412      ;;
38413  esac
38414
38415
38416
38417  case "$gl_cv_func_printf_flag_leftadjust" in
38418    *yes)
38419      ;;
38420    *)
38421
38422$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
38423
38424      ;;
38425  esac
38426
38427
38428
38429  case "$gl_cv_func_printf_flag_zero" in
38430    *yes)
38431      ;;
38432    *)
38433
38434$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
38435
38436      ;;
38437  esac
38438
38439
38440
38441  case "$gl_cv_func_printf_precision" in
38442    *yes)
38443      ;;
38444    *)
38445
38446$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
38447
38448
38449$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
38450
38451
38452$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
38453
38454      ;;
38455  esac
38456
38457
38458
38459  case "$gl_cv_func_printf_enomem" in
38460    *yes)
38461      ;;
38462    *)
38463
38464$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
38465
38466
38467$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
38468
38469
38470$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
38471
38472      ;;
38473  esac
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
38486
38487
38488
38489
38490
38491
38492
38493
38494
38495  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
38496
38497
38498
38499
38500
38501
38502
38503
38504
38505  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
38506
38507
38508
38509
38510
38511
38512
38513
38514
38515  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
38516
38517  if test $ac_cv_func_vasnprintf = yes; then
38518
38519$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
38520
38521  fi
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
38532if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
38533
38534else
38535
38536$as_echo "#define ptrdiff_t long" >>confdefs.h
38537
38538
38539fi
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557  gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
38558
38559  REPLACE_FPRINTF=1
38560
38561$as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
38562
38563  :
38564
38565  fi
38566
38567
38568
38569
38570
38571
38572          GNULIB_FPRINTF_POSIX=1
38573
38574
38575
38576
38577
38578$as_echo "#define GNULIB_TEST_FPRINTF_POSIX 1" >>confdefs.h
38579
38580
38581
38582
38583
38584
38585  if test $gl_cv_func_frexp_no_libm = yes; then
38586
38587
38588
38589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
38590$as_echo_n "checking whether frexp works... " >&6; }
38591if ${gl_cv_func_frexp_works+:} false; then :
38592  $as_echo_n "(cached) " >&6
38593else
38594
38595      if test "$cross_compiling" = yes; then :
38596  case "$host_os" in
38597           netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
38598           mingw*) # Guess yes with MSVC, no with mingw.
38599             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38600/* end confdefs.h.  */
38601
38602#ifdef _MSC_VER
38603 Good
38604#endif
38605
38606_ACEOF
38607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38608  $EGREP "Good" >/dev/null 2>&1; then :
38609  gl_cv_func_frexp_works="guessing yes"
38610else
38611  gl_cv_func_frexp_works="guessing no"
38612fi
38613rm -f conftest*
38614
38615             ;;
38616           *) gl_cv_func_frexp_works="guessing yes" ;;
38617         esac
38618
38619else
38620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38621/* end confdefs.h.  */
38622
38623#include <float.h>
38624#include <math.h>
38625#include <string.h>
38626#if HAVE_DECL_ALARM
38627# include <signal.h>
38628# include <unistd.h>
38629#endif
38630/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
38631   ICC 10.0 has a bug when optimizing the expression -zero.
38632   The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
38633   to PowerPC on Mac OS X 10.5.  */
38634#if defined __hpux || defined __sgi || defined __ICC
38635static double
38636compute_minus_zero (void)
38637{
38638  return -DBL_MIN * DBL_MIN;
38639}
38640# define minus_zero compute_minus_zero ()
38641#else
38642double minus_zero = -0.0;
38643#endif
38644int main()
38645{
38646  int result = 0;
38647  int i;
38648  volatile double x;
38649  double zero = 0.0;
38650#if HAVE_DECL_ALARM
38651  /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
38652     number.  Let the test fail in this case.  */
38653  signal (SIGALRM, SIG_DFL);
38654  alarm (5);
38655#endif
38656  /* Test on denormalized numbers.  */
38657  for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
38658    ;
38659  if (x > 0.0)
38660    {
38661      int exp;
38662      double y = frexp (x, &exp);
38663      /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
38664         On NetBSD: y = 0.75. Correct: y = 0.5.  */
38665      if (y != 0.5)
38666        result |= 1;
38667    }
38668  /* Test on infinite numbers.  */
38669  x = 1.0 / zero;
38670  {
38671    int exp;
38672    double y = frexp (x, &exp);
38673    if (y != x)
38674      result |= 2;
38675  }
38676  /* Test on negative zero.  */
38677  x = minus_zero;
38678  {
38679    int exp;
38680    double y = frexp (x, &exp);
38681    if (memcmp (&y, &x, sizeof x))
38682      result |= 4;
38683  }
38684  return result;
38685}
38686_ACEOF
38687if ac_fn_c_try_run "$LINENO"; then :
38688  gl_cv_func_frexp_works=yes
38689else
38690  gl_cv_func_frexp_works=no
38691fi
38692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38693  conftest.$ac_objext conftest.beam conftest.$ac_ext
38694fi
38695
38696
38697fi
38698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
38699$as_echo "$gl_cv_func_frexp_works" >&6; }
38700
38701    case "$gl_cv_func_frexp_works" in
38702      *yes) gl_func_frexp_no_libm=yes ;;
38703      *)    gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
38704    esac
38705  else
38706    gl_func_frexp_no_libm=no
38707        REPLACE_FREXP=1
38708  fi
38709  if test $gl_func_frexp_no_libm = yes; then
38710
38711$as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
38712
38713  fi
38714
38715  if test $gl_func_frexp_no_libm != yes; then
38716
38717
38718
38719
38720
38721
38722
38723
38724  gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
38725
38726  fi
38727
38728
38729
38730
38731
38732          GNULIB_FREXP=1
38733
38734
38735
38736
38737
38738$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
38739
38740
38741
38742
38743
38744
38745      ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
38746"
38747if test "x$ac_cv_have_decl_frexpl" = xyes; then :
38748
38749else
38750  HAVE_DECL_FREXPL=0
38751fi
38752
38753  if test $HAVE_DECL_FREXPL = 1; then
38754
38755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
38756$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
38757if ${gl_cv_func_frexpl_no_libm+:} false; then :
38758  $as_echo_n "(cached) " >&6
38759else
38760
38761      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38762/* end confdefs.h.  */
38763#include <math.h>
38764             long double x;
38765int
38766main ()
38767{
38768int e; return frexpl (x, &e) > 0;
38769  ;
38770  return 0;
38771}
38772_ACEOF
38773if ac_fn_c_try_link "$LINENO"; then :
38774  gl_cv_func_frexpl_no_libm=yes
38775else
38776  gl_cv_func_frexpl_no_libm=no
38777fi
38778rm -f core conftest.err conftest.$ac_objext \
38779    conftest$ac_exeext conftest.$ac_ext
38780
38781fi
38782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
38783$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
38784
38785    if test $gl_cv_func_frexpl_no_libm = yes; then
38786
38787
38788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
38789$as_echo_n "checking whether frexpl works... " >&6; }
38790if ${gl_cv_func_frexpl_works+:} false; then :
38791  $as_echo_n "(cached) " >&6
38792else
38793
38794      if test "$cross_compiling" = yes; then :
38795
38796         case "$host_os" in
38797           aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
38798              gl_cv_func_frexpl_works="guessing no";;
38799           *) gl_cv_func_frexpl_works="guessing yes";;
38800         esac
38801
38802else
38803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38804/* end confdefs.h.  */
38805
38806#include <float.h>
38807#include <math.h>
38808/* Override the values of <float.h>, like done in float.in.h.  */
38809#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
38810# undef LDBL_MIN_EXP
38811# define LDBL_MIN_EXP    (-16381)
38812#endif
38813#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
38814# undef LDBL_MIN_EXP
38815# define LDBL_MIN_EXP    (-16381)
38816#endif
38817#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
38818# undef LDBL_MIN_EXP
38819# define LDBL_MIN_EXP DBL_MIN_EXP
38820#endif
38821#if defined __sgi && (LDBL_MANT_DIG >= 106)
38822# if defined __GNUC__
38823#  undef LDBL_MIN_EXP
38824#  define LDBL_MIN_EXP DBL_MIN_EXP
38825# endif
38826#endif
38827extern
38828#ifdef __cplusplus
38829"C"
38830#endif
38831long double frexpl (long double, int *);
38832int main()
38833{
38834  int result = 0;
38835  volatile long double x;
38836  /* Test on finite numbers that fails on AIX 5.1.  */
38837  x = 16.0L;
38838  {
38839    int exp = -9999;
38840    frexpl (x, &exp);
38841    if (exp != 5)
38842      result |= 1;
38843  }
38844  /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
38845     function returns an invalid (incorrectly normalized) value: it returns
38846               y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
38847     but the correct result is
38848          0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
38849  x = 1.01L;
38850  {
38851    int exp = -9999;
38852    long double y = frexpl (x, &exp);
38853    if (!(exp == 1 && y == 0.505L))
38854      result |= 2;
38855  }
38856  /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
38857     LDBL_MAX_EXP = 16384.
38858     In the loop end test, we test x against Infinity, rather than comparing
38859     i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
38860  {
38861    int i;
38862    for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
38863      {
38864        int exp = -9999;
38865        frexpl (x, &exp);
38866        if (exp != i)
38867          {
38868            result |= 4;
38869            break;
38870          }
38871      }
38872  }
38873  /* Test on denormalized numbers.  */
38874  {
38875    int i;
38876    for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
38877      ;
38878    if (x > 0.0L)
38879      {
38880        int exp;
38881        long double y = frexpl (x, &exp);
38882        /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
38883           exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
38884        if (exp != LDBL_MIN_EXP - 1)
38885          result |= 8;
38886      }
38887  }
38888  /* Test on infinite numbers.  */
38889  x = 1.0L / 0.0L;
38890  {
38891    int exp;
38892    long double y = frexpl (x, &exp);
38893    if (y != x)
38894      result |= 16;
38895  }
38896  return result;
38897}
38898_ACEOF
38899if ac_fn_c_try_run "$LINENO"; then :
38900  gl_cv_func_frexpl_works=yes
38901else
38902  gl_cv_func_frexpl_works=no
38903fi
38904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38905  conftest.$ac_objext conftest.beam conftest.$ac_ext
38906fi
38907
38908
38909fi
38910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
38911$as_echo "$gl_cv_func_frexpl_works" >&6; }
38912
38913      case "$gl_cv_func_frexpl_works" in
38914        *yes) gl_func_frexpl_no_libm=yes ;;
38915        *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
38916      esac
38917    else
38918      gl_func_frexpl_no_libm=no
38919            REPLACE_FREXPL=1
38920    fi
38921    if test $gl_func_frexpl_no_libm = yes; then
38922
38923$as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
38924
38925    fi
38926  fi
38927
38928  if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
38929
38930
38931
38932
38933
38934
38935
38936
38937  gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
38938
38939  fi
38940
38941
38942
38943
38944
38945          GNULIB_FREXPL=1
38946
38947
38948
38949
38950
38951$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
38952
38953
38954
38955
38956
38957
38958    if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
38959    REPLACE_FSEEK=1
38960  fi
38961
38962  if test $REPLACE_FSEEK = 1; then
38963
38964
38965
38966
38967
38968
38969
38970
38971  gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext"
38972
38973  fi
38974
38975
38976
38977
38978
38979          GNULIB_FSEEK=1
38980
38981
38982
38983
38984
38985$as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
38998$as_echo_n "checking for fseeko... " >&6; }
38999if ${gl_cv_func_fseeko+:} false; then :
39000  $as_echo_n "(cached) " >&6
39001else
39002
39003      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39004/* end confdefs.h.  */
39005#include <stdio.h>
39006
39007int
39008main ()
39009{
39010fseeko (stdin, 0, 0);
39011  ;
39012  return 0;
39013}
39014_ACEOF
39015if ac_fn_c_try_link "$LINENO"; then :
39016  gl_cv_func_fseeko=yes
39017else
39018  gl_cv_func_fseeko=no
39019fi
39020rm -f core conftest.err conftest.$ac_objext \
39021    conftest$ac_exeext conftest.$ac_ext
39022
39023fi
39024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
39025$as_echo "$gl_cv_func_fseeko" >&6; }
39026
39027
39028  if test $ac_cv_have_decl_fseeko = no; then
39029    HAVE_DECL_FSEEKO=0
39030  fi
39031
39032  if test $gl_cv_func_fseeko = no; then
39033    HAVE_FSEEKO=0
39034  else
39035    if test $WINDOWS_64_BIT_OFF_T = 1; then
39036      REPLACE_FSEEKO=1
39037    fi
39038    if test $gl_cv_var_stdin_large_offset = no; then
39039      REPLACE_FSEEKO=1
39040    fi
39041
39042  fi
39043
39044  if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
39045
39046
39047
39048
39049
39050
39051
39052
39053  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
39054
39055
39056      for ac_func in _fseeki64
39057do :
39058  ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
39059if test "x$ac_cv_func__fseeki64" = xyes; then :
39060  cat >>confdefs.h <<_ACEOF
39061#define HAVE__FSEEKI64 1
39062_ACEOF
39063
39064fi
39065done
39066
39067  if test $ac_cv_func__fseeki64 = yes; then
39068    ac_fn_c_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default"
39069if test "x$ac_cv_have_decl__fseeki64" = xyes; then :
39070  ac_have_decl=1
39071else
39072  ac_have_decl=0
39073fi
39074
39075cat >>confdefs.h <<_ACEOF
39076#define HAVE_DECL__FSEEKI64 $ac_have_decl
39077_ACEOF
39078
39079  fi
39080
39081  fi
39082
39083
39084
39085
39086
39087          GNULIB_FSEEKO=1
39088
39089
39090
39091
39092
39093$as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
39094
39095
39096
39097
39098
39099
39100  if test $ac_cv_func___fseterr = no; then
39101
39102
39103
39104
39105
39106
39107
39108
39109  gl_LIBOBJS="$gl_LIBOBJS fseterr.$ac_objext"
39110
39111  fi
39112
39113
39114
39115
39116  case "$host_os" in
39117    mingw* | solaris*)
39118                        REPLACE_FSTAT=1
39119      ;;
39120  esac
39121
39122
39123
39124  if test $REPLACE_FSTAT = 1; then
39125
39126
39127
39128
39129
39130
39131
39132
39133  gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
39134
39135    case "$host_os" in
39136      mingw*)
39137
39138
39139
39140
39141
39142
39143
39144
39145  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
39146
39147        ;;
39148    esac
39149
39150
39151  :
39152
39153  fi
39154
39155
39156
39157
39158
39159          GNULIB_FSTAT=1
39160
39161
39162
39163
39164
39165$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
39166
39167
39168
39169
39170
39171
39172    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
39173    REPLACE_FTELL=1
39174  fi
39175
39176  if test $REPLACE_FTELL = 1; then
39177
39178
39179
39180
39181
39182
39183
39184
39185  gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
39186
39187  fi
39188
39189
39190
39191
39192
39193          GNULIB_FTELL=1
39194
39195
39196
39197
39198
39199$as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212  if test $ac_cv_have_decl_ftello = no; then
39213    HAVE_DECL_FTELLO=0
39214  fi
39215
39216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
39217$as_echo_n "checking for ftello... " >&6; }
39218if ${gl_cv_func_ftello+:} false; then :
39219  $as_echo_n "(cached) " >&6
39220else
39221
39222      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39223/* end confdefs.h.  */
39224#include <stdio.h>
39225int
39226main ()
39227{
39228ftello (stdin);
39229  ;
39230  return 0;
39231}
39232_ACEOF
39233if ac_fn_c_try_link "$LINENO"; then :
39234  gl_cv_func_ftello=yes
39235else
39236  gl_cv_func_ftello=no
39237fi
39238rm -f core conftest.err conftest.$ac_objext \
39239    conftest$ac_exeext conftest.$ac_ext
39240
39241fi
39242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
39243$as_echo "$gl_cv_func_ftello" >&6; }
39244  if test $gl_cv_func_ftello = no; then
39245    HAVE_FTELLO=0
39246  else
39247    if test $WINDOWS_64_BIT_OFF_T = 1; then
39248      REPLACE_FTELLO=1
39249    fi
39250    if test $gl_cv_var_stdin_large_offset = no; then
39251      REPLACE_FTELLO=1
39252    fi
39253    if test $REPLACE_FTELLO = 0; then
39254
39255      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
39256$as_echo_n "checking whether ftello works... " >&6; }
39257if ${gl_cv_func_ftello_works+:} false; then :
39258  $as_echo_n "(cached) " >&6
39259else
39260
39261                              case "$host_os" in
39262                      # Guess no on Solaris.
39263            solaris*) gl_cv_func_ftello_works="guessing no" ;;
39264                      # Guess yes on native Windows.
39265            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
39266                      # Guess yes otherwise.
39267            *)        gl_cv_func_ftello_works="guessing yes" ;;
39268          esac
39269          if test "$cross_compiling" = yes; then :
39270  :
39271else
39272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39273/* end confdefs.h.  */
39274
39275#include <stdio.h>
39276#include <stdlib.h>
39277#include <string.h>
39278#define TESTFILE "conftest.tmp"
39279int
39280main (void)
39281{
39282  FILE *fp;
39283
39284  /* Create a file with some contents.  */
39285  fp = fopen (TESTFILE, "w");
39286  if (fp == NULL)
39287    return 70;
39288  if (fwrite ("foogarsh", 1, 8, fp) < 8)
39289    { fclose (fp); return 71; }
39290  if (fclose (fp))
39291    return 72;
39292
39293  /* The file's contents is now "foogarsh".  */
39294
39295  /* Try writing after reading to EOF.  */
39296  fp = fopen (TESTFILE, "r+");
39297  if (fp == NULL)
39298    return 73;
39299  if (fseek (fp, -1, SEEK_END))
39300    { fclose (fp); return 74; }
39301  if (!(getc (fp) == 'h'))
39302    { fclose (fp); return 1; }
39303  if (!(getc (fp) == EOF))
39304    { fclose (fp); return 2; }
39305  if (!(ftell (fp) == 8))
39306    { fclose (fp); return 3; }
39307  if (!(ftell (fp) == 8))
39308    { fclose (fp); return 4; }
39309  if (!(putc ('!', fp) == '!'))
39310    { fclose (fp); return 5; }
39311  if (!(ftell (fp) == 9))
39312    { fclose (fp); return 6; }
39313  if (!(fclose (fp) == 0))
39314    return 7;
39315  fp = fopen (TESTFILE, "r");
39316  if (fp == NULL)
39317    return 75;
39318  {
39319    char buf[10];
39320    if (!(fread (buf, 1, 10, fp) == 9))
39321      { fclose (fp); return 10; }
39322    if (!(memcmp (buf, "foogarsh!", 9) == 0))
39323      { fclose (fp); return 11; }
39324  }
39325  if (!(fclose (fp) == 0))
39326    return 12;
39327
39328  /* The file's contents is now "foogarsh!".  */
39329
39330  return 0;
39331}
39332_ACEOF
39333if ac_fn_c_try_run "$LINENO"; then :
39334  gl_cv_func_ftello_works=yes
39335else
39336  gl_cv_func_ftello_works=no
39337fi
39338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39339  conftest.$ac_objext conftest.beam conftest.$ac_ext
39340fi
39341
39342
39343fi
39344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
39345$as_echo "$gl_cv_func_ftello_works" >&6; }
39346      case "$gl_cv_func_ftello_works" in
39347        *yes) ;;
39348        *)
39349          REPLACE_FTELLO=1
39350
39351$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
39352
39353          ;;
39354      esac
39355    fi
39356  fi
39357
39358  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
39359
39360
39361
39362
39363
39364
39365
39366
39367  gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
39368
39369
39370      for ac_func in _ftelli64
39371do :
39372  ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
39373if test "x$ac_cv_func__ftelli64" = xyes; then :
39374  cat >>confdefs.h <<_ACEOF
39375#define HAVE__FTELLI64 1
39376_ACEOF
39377
39378fi
39379done
39380
39381
39382  fi
39383
39384
39385
39386
39387
39388          GNULIB_FTELLO=1
39389
39390
39391
39392
39393
39394$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
39395
39396
39397
39398
39399
39400cat >>confdefs.h <<_ACEOF
39401#define GNULIB_FWRITEERROR 1
39402_ACEOF
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413  if test $ac_cv_func_getdelim = yes; then
39414    HAVE_GETDELIM=1
39415        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
39416$as_echo_n "checking for working getdelim function... " >&6; }
39417if ${gl_cv_func_working_getdelim+:} false; then :
39418  $as_echo_n "(cached) " >&6
39419else
39420  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
39421       if test "$cross_compiling" = yes; then :
39422                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39423/* end confdefs.h.  */
39424
39425#include <features.h>
39426#ifdef __GNU_LIBRARY__
39427 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
39428  Lucky GNU user
39429 #endif
39430#endif
39431
39432_ACEOF
39433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39434  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
39435  gl_cv_func_working_getdelim="guessing yes"
39436else
39437  case "$host_os" in
39438               *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
39439               *)       gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
39440             esac
39441
39442fi
39443rm -f conftest*
39444
39445
39446else
39447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39448/* end confdefs.h.  */
39449
39450#    include <stdio.h>
39451#    include <stdlib.h>
39452#    include <string.h>
39453    int main ()
39454    {
39455      FILE *in = fopen ("./conftest.data", "r");
39456      if (!in)
39457        return 1;
39458      {
39459        /* Test result for a NULL buffer and a zero size.
39460           Based on a test program from Karl Heuer.  */
39461        char *line = NULL;
39462        size_t siz = 0;
39463        int len = getdelim (&line, &siz, '\n', in);
39464        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
39465          { free (line); fclose (in); return 2; }
39466        free (line);
39467      }
39468      {
39469        /* Test result for a NULL buffer and a non-zero size.
39470           This crashes on FreeBSD 8.0.  */
39471        char *line = NULL;
39472        size_t siz = (size_t)(~0) / 4;
39473        if (getdelim (&line, &siz, '\n', in) == -1)
39474          { fclose (in); return 3; }
39475        free (line);
39476      }
39477      fclose (in);
39478      return 0;
39479    }
39480
39481_ACEOF
39482if ac_fn_c_try_run "$LINENO"; then :
39483  gl_cv_func_working_getdelim=yes
39484else
39485  gl_cv_func_working_getdelim=no
39486fi
39487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39488  conftest.$ac_objext conftest.beam conftest.$ac_ext
39489fi
39490
39491
39492fi
39493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
39494$as_echo "$gl_cv_func_working_getdelim" >&6; }
39495    case "$gl_cv_func_working_getdelim" in
39496      *yes) ;;
39497      *) REPLACE_GETDELIM=1 ;;
39498    esac
39499  else
39500    HAVE_GETDELIM=0
39501  fi
39502
39503  if test $ac_cv_have_decl_getdelim = no; then
39504    HAVE_DECL_GETDELIM=0
39505  fi
39506
39507  if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
39508
39509
39510
39511
39512
39513
39514
39515
39516  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
39517
39518
39519  for ac_func in flockfile funlockfile
39520do :
39521  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39522ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39523if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39524  cat >>confdefs.h <<_ACEOF
39525#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39526_ACEOF
39527
39528fi
39529done
39530
39531  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
39532if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
39533  ac_have_decl=1
39534else
39535  ac_have_decl=0
39536fi
39537
39538cat >>confdefs.h <<_ACEOF
39539#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
39540_ACEOF
39541
39542
39543  fi
39544
39545
39546
39547
39548
39549          GNULIB_GETDELIM=1
39550
39551
39552
39553
39554
39555$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
39556
39557
39558
39559
39560
39561
39562
39563
39564  if test $ac_cv_func_getdtablesize = yes &&
39565     test $ac_cv_have_decl_getdtablesize = yes; then
39566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
39567$as_echo_n "checking whether getdtablesize works... " >&6; }
39568if ${gl_cv_func_getdtablesize_works+:} false; then :
39569  $as_echo_n "(cached) " >&6
39570else
39571                                                   case "$host_os" in
39572         vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
39573         *)
39574                                                       if test "$cross_compiling" = yes; then :
39575  case "$host_os" in
39576                cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
39577                  gl_cv_func_getdtablesize_works="guessing no" ;;
39578                *) gl_cv_func_getdtablesize_works="guessing yes" ;;
39579              esac
39580
39581else
39582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39583/* end confdefs.h.  */
39584
39585             #include <unistd.h>
39586int
39587main ()
39588{
39589int size = getdtablesize();
39590                if (dup2 (0, getdtablesize()) != -1)
39591                  return 1;
39592                if (size != getdtablesize())
39593                  return 2;
39594
39595  ;
39596  return 0;
39597}
39598_ACEOF
39599if ac_fn_c_try_run "$LINENO"; then :
39600  gl_cv_func_getdtablesize_works=yes
39601else
39602  gl_cv_func_getdtablesize_works=no
39603fi
39604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39605  conftest.$ac_objext conftest.beam conftest.$ac_ext
39606fi
39607
39608           ;;
39609       esac
39610
39611fi
39612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
39613$as_echo "$gl_cv_func_getdtablesize_works" >&6; }
39614    case "$gl_cv_func_getdtablesize_works" in
39615      *yes | "no (limitation)") ;;
39616      *) REPLACE_GETDTABLESIZE=1 ;;
39617    esac
39618  else
39619    HAVE_GETDTABLESIZE=0
39620  fi
39621
39622  if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
39623
39624
39625
39626
39627
39628
39629
39630
39631  gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
39632
39633    :
39634  fi
39635
39636
39637
39638
39639
39640          GNULIB_GETDTABLESIZE=1
39641
39642
39643
39644
39645
39646$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657  gl_getline_needs_run_time_check=no
39658  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
39659if test "x$ac_cv_func_getline" = xyes; then :
39660                   gl_getline_needs_run_time_check=yes
39661else
39662  am_cv_func_working_getline=no
39663fi
39664
39665  if test $gl_getline_needs_run_time_check = yes; then
39666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
39667$as_echo_n "checking for working getline function... " >&6; }
39668if ${am_cv_func_working_getline+:} false; then :
39669  $as_echo_n "(cached) " >&6
39670else
39671  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
39672       if test "$cross_compiling" = yes; then :
39673                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39674/* end confdefs.h.  */
39675
39676#include <features.h>
39677#ifdef __GNU_LIBRARY__
39678 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
39679  Lucky GNU user
39680 #endif
39681#endif
39682
39683_ACEOF
39684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39685  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
39686  am_cv_func_working_getline="guessing yes"
39687else
39688  case "$host_os" in
39689               *-musl*) am_cv_func_working_getline="guessing yes" ;;
39690               *)       am_cv_func_working_getline="$gl_cross_guess_normal" ;;
39691             esac
39692
39693fi
39694rm -f conftest*
39695
39696
39697else
39698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39699/* end confdefs.h.  */
39700
39701#    include <stdio.h>
39702#    include <stdlib.h>
39703#    include <string.h>
39704    int main ()
39705    {
39706      FILE *in = fopen ("./conftest.data", "r");
39707      if (!in)
39708        return 1;
39709      {
39710        /* Test result for a NULL buffer and a zero size.
39711           Based on a test program from Karl Heuer.  */
39712        char *line = NULL;
39713        size_t siz = 0;
39714        int len = getline (&line, &siz, in);
39715        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
39716          { free (line); fclose (in); return 2; }
39717        free (line);
39718      }
39719      {
39720        /* Test result for a NULL buffer and a non-zero size.
39721           This crashes on FreeBSD 8.0.  */
39722        char *line = NULL;
39723        size_t siz = (size_t)(~0) / 4;
39724        if (getline (&line, &siz, in) == -1)
39725          { fclose (in); return 3; }
39726        free (line);
39727      }
39728      fclose (in);
39729      return 0;
39730    }
39731
39732_ACEOF
39733if ac_fn_c_try_run "$LINENO"; then :
39734  am_cv_func_working_getline=yes
39735else
39736  am_cv_func_working_getline=no
39737fi
39738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39739  conftest.$ac_objext conftest.beam conftest.$ac_ext
39740fi
39741
39742
39743fi
39744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
39745$as_echo "$am_cv_func_working_getline" >&6; }
39746  fi
39747
39748  if test $ac_cv_have_decl_getline = no; then
39749    HAVE_DECL_GETLINE=0
39750  fi
39751
39752  case "$am_cv_func_working_getline" in
39753    *yes) ;;
39754    *)
39755                        REPLACE_GETLINE=1
39756      ;;
39757  esac
39758
39759  if test $REPLACE_GETLINE = 1; then
39760
39761
39762
39763
39764
39765
39766
39767
39768  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
39769
39770
39771  :
39772
39773  fi
39774
39775
39776
39777
39778
39779          GNULIB_GETLINE=1
39780
39781
39782
39783
39784
39785$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798    REPLACE_GETOPT=0
39799    if test -n "$gl_replace_getopt"; then
39800      REPLACE_GETOPT=1
39801    fi
39802
39803  if test $REPLACE_GETOPT = 1; then
39804
39805
39806  if test $ac_cv_header_sys_cdefs_h = yes; then
39807    HAVE_SYS_CDEFS_H=1
39808  else
39809    HAVE_SYS_CDEFS_H=0
39810  fi
39811
39812
39813
39814$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
39815
39816  GETOPT_H=getopt.h
39817  GETOPT_CDEFS_H=getopt-cdefs.h
39818
39819
39820
39821  fi
39822
39823  if test $REPLACE_GETOPT = 1; then
39824
39825
39826
39827
39828
39829
39830
39831
39832  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
39843
39844        GNULIB_GL_UNISTD_H_GETOPT=1
39845  fi
39846
39847
39848
39849
39850
39851
39852          GNULIB_GETOPT_POSIX=1
39853
39854
39855
39856
39857
39858$as_echo "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
39859
39860
39861
39862
39863  if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then
39864
39865
39866
39867
39868
39869
39870
39871
39872  gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
39873
39874
39875
39876
39877  ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
39878      #if HAVE_STDIO_EXT_H
39879       #include <stdio_ext.h>
39880      #endif
39881"
39882if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
39883  ac_have_decl=1
39884else
39885  ac_have_decl=0
39886fi
39887
39888cat >>confdefs.h <<_ACEOF
39889#define HAVE_DECL___FSETLOCKING $ac_have_decl
39890_ACEOF
39891
39892
39893
39894
39895
39896
39897
39898      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcgetattr" >&5
39899$as_echo_n "checking for tcgetattr... " >&6; }
39900if ${gl_cv_func_tcgetattr+:} false; then :
39901  $as_echo_n "(cached) " >&6
39902else
39903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39904/* end confdefs.h.  */
39905#include <termios.h>
39906            struct termios x;
39907
39908int
39909main ()
39910{
39911return tcgetattr(0,&x);
39912  ;
39913  return 0;
39914}
39915
39916_ACEOF
39917if ac_fn_c_try_link "$LINENO"; then :
39918  gl_cv_func_tcgetattr=yes
39919else
39920  gl_cv_func_tcgetattr=no
39921fi
39922rm -f core conftest.err conftest.$ac_objext \
39923    conftest$ac_exeext conftest.$ac_ext
39924
39925fi
39926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcgetattr" >&5
39927$as_echo "$gl_cv_func_tcgetattr" >&6; }
39928  if test $gl_cv_func_tcgetattr = yes; then
39929    HAVE_TCGETATTR=1
39930  else
39931    HAVE_TCGETATTR=0
39932  fi
39933
39934cat >>confdefs.h <<_ACEOF
39935#define HAVE_TCGETATTR $HAVE_TCGETATTR
39936_ACEOF
39937
39938
39939      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcsetattr" >&5
39940$as_echo_n "checking for tcsetattr... " >&6; }
39941if ${gl_cv_func_tcsetattr+:} false; then :
39942  $as_echo_n "(cached) " >&6
39943else
39944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39945/* end confdefs.h.  */
39946#include <termios.h>
39947            struct termios x;
39948
39949int
39950main ()
39951{
39952return tcsetattr(0,0,&x);
39953  ;
39954  return 0;
39955}
39956
39957_ACEOF
39958if ac_fn_c_try_link "$LINENO"; then :
39959  gl_cv_func_tcsetattr=yes
39960else
39961  gl_cv_func_tcsetattr=no
39962fi
39963rm -f core conftest.err conftest.$ac_objext \
39964    conftest$ac_exeext conftest.$ac_ext
39965
39966fi
39967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcsetattr" >&5
39968$as_echo "$gl_cv_func_tcsetattr" >&6; }
39969  if test $gl_cv_func_tcsetattr = yes; then
39970    HAVE_TCSETATTR=1
39971  else
39972    HAVE_TCSETATTR=0
39973  fi
39974
39975cat >>confdefs.h <<_ACEOF
39976#define HAVE_TCSETATTR $HAVE_TCSETATTR
39977_ACEOF
39978
39979
39980  fi
39981
39982
39983
39984
39985
39986          GNULIB_GETPASS=1
39987
39988
39989
39990
39991
39992$as_echo "#define GNULIB_TEST_GETPASS 1" >>confdefs.h
39993
39994
39995
39996
39997
39998
39999  ac_found=0
40000  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
40001"
40002if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
40003  ac_have_decl=1
40004else
40005  ac_have_decl=0
40006fi
40007
40008cat >>confdefs.h <<_ACEOF
40009#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
40010_ACEOF
40011if test $ac_have_decl = 1; then :
40012  ac_found=1
40013fi
40014
40015  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
40016"
40017if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
40018  ac_have_decl=1
40019else
40020  ac_have_decl=0
40021fi
40022
40023cat >>confdefs.h <<_ACEOF
40024#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
40025_ACEOF
40026if test $ac_have_decl = 1; then :
40027  ac_found=1
40028fi
40029
40030  ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
40031"
40032if test "x$ac_cv_have_decl___argv" = xyes; then :
40033  ac_have_decl=1
40034else
40035  ac_have_decl=0
40036fi
40037
40038cat >>confdefs.h <<_ACEOF
40039#define HAVE_DECL___ARGV $ac_have_decl
40040_ACEOF
40041if test $ac_have_decl = 1; then :
40042  ac_found=1
40043fi
40044
40045
40046  # Incur the cost of this test only if none of the above worked.
40047  if test $ac_found = 0; then
40048    # On OpenBSD 5.1, using the global __progname variable appears to be
40049    # the only way to implement getprogname.
40050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
40051$as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
40052if ${gl_cv_var___progname+:} false; then :
40053  $as_echo_n "(cached) " >&6
40054else
40055
40056        gl_cv_var___progname=
40057        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40058/* end confdefs.h.  */
40059extern char *__progname;
40060int
40061main ()
40062{
40063return *__progname;
40064
40065  ;
40066  return 0;
40067}
40068_ACEOF
40069if ac_fn_c_try_link "$LINENO"; then :
40070  gl_cv_var___progname=yes
40071
40072fi
40073rm -f core conftest.err conftest.$ac_objext \
40074    conftest$ac_exeext conftest.$ac_ext
40075
40076
40077fi
40078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
40079$as_echo "$gl_cv_var___progname" >&6; }
40080    if test "$gl_cv_var___progname" = yes; then
40081
40082$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
40083
40084    fi
40085  fi
40086
40087
40088
40089
40090
40091  if test "$ac_cv_func_getrandom" != yes; then
40092    HAVE_GETRANDOM=0
40093  else
40094        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
40095$as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
40096if ${gl_cv_func_getrandom_ok+:} false; then :
40097  $as_echo_n "(cached) " >&6
40098else
40099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40100/* end confdefs.h.  */
40101/* Additional includes are needed before <sys/random.h> on Mac OS X.  */
40102              #include <sys/types.h>
40103              #include <stdlib.h>
40104              #include <sys/random.h>
40105              ssize_t getrandom (void *, size_t, unsigned int);
40106
40107int
40108main ()
40109{
40110
40111  ;
40112  return 0;
40113}
40114
40115_ACEOF
40116if ac_fn_c_try_compile "$LINENO"; then :
40117  gl_cv_func_getrandom_ok=yes
40118else
40119  gl_cv_func_getrandom_ok=no
40120fi
40121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40122
40123fi
40124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
40125$as_echo "$gl_cv_func_getrandom_ok" >&6; }
40126    if test $gl_cv_func_getrandom_ok = no; then
40127      REPLACE_GETRANDOM=1
40128    fi
40129  fi
40130
40131  case "$host_os" in
40132    mingw*)
40133      for ac_header in bcrypt.h
40134do :
40135  ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
40136
40137"
40138if test "x$ac_cv_header_bcrypt_h" = xyes; then :
40139  cat >>confdefs.h <<_ACEOF
40140#define HAVE_BCRYPT_H 1
40141_ACEOF
40142
40143fi
40144
40145done
40146
40147      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
40148$as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
40149if ${gl_cv_lib_assume_bcrypt+:} false; then :
40150  $as_echo_n "(cached) " >&6
40151else
40152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40153/* end confdefs.h.  */
40154#include <windows.h>
40155int
40156main ()
40157{
40158#if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
40159                  cannot assume it
40160                #endif
40161
40162  ;
40163  return 0;
40164}
40165
40166_ACEOF
40167if ac_fn_c_try_compile "$LINENO"; then :
40168  gl_cv_lib_assume_bcrypt=yes
40169else
40170  gl_cv_lib_assume_bcrypt=no
40171fi
40172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40173
40174fi
40175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
40176$as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
40177      if test $gl_cv_lib_assume_bcrypt = yes; then
40178
40179$as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
40180
40181        LIB_GETRANDOM='-lbcrypt'
40182      else
40183        LIB_GETRANDOM='-ladvapi32'
40184      fi
40185      ;;
40186    *)
40187      LIB_GETRANDOM= ;;
40188  esac
40189
40190
40191  if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
40192
40193
40194
40195
40196
40197
40198
40199
40200  gl_LIBOBJS="$gl_LIBOBJS getrandom.$ac_objext"
40201
40202  fi
40203
40204
40205
40206
40207
40208          GNULIB_GETRANDOM=1
40209
40210
40211
40212
40213
40214$as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232  gl_gettimeofday_timezone=void
40233  if test $ac_cv_func_gettimeofday != yes; then
40234    HAVE_GETTIMEOFDAY=0
40235  else
40236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
40237$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
40238if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
40239  $as_echo_n "(cached) " >&6
40240else
40241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40242/* end confdefs.h.  */
40243#include <sys/time.h>
40244              struct timeval c;
40245              int gettimeofday (struct timeval *restrict, void *restrict);
40246
40247int
40248main ()
40249{
40250/* glibc uses struct timezone * rather than the POSIX void *
40251                 if _GNU_SOURCE is defined.  However, since the only portable
40252                 use of gettimeofday uses NULL as the second parameter, and
40253                 since the glibc definition is actually more typesafe, it is
40254                 not worth wrapping this to get a compliant signature.  */
40255              int (*f) (struct timeval *restrict, void *restrict)
40256                = gettimeofday;
40257              int x = f (&c, 0);
40258              return !(x | c.tv_sec | c.tv_usec);
40259
40260  ;
40261  return 0;
40262}
40263_ACEOF
40264if ac_fn_c_try_compile "$LINENO"; then :
40265  gl_cv_func_gettimeofday_posix_signature=yes
40266else
40267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40268/* end confdefs.h.  */
40269#include <sys/time.h>
40270int gettimeofday (struct timeval *restrict, struct timezone *restrict);
40271
40272int
40273main ()
40274{
40275
40276  ;
40277  return 0;
40278}
40279_ACEOF
40280if ac_fn_c_try_compile "$LINENO"; then :
40281  gl_cv_func_gettimeofday_posix_signature=almost
40282else
40283  gl_cv_func_gettimeofday_posix_signature=no
40284fi
40285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40286fi
40287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40288fi
40289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
40290$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
40291    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
40292      gl_gettimeofday_timezone='struct timezone'
40293    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
40294      REPLACE_GETTIMEOFDAY=1
40295    fi
40296        if test $REPLACE_STRUCT_TIMEVAL = 1; then
40297      REPLACE_GETTIMEOFDAY=1
40298    fi
40299            case "$host_os" in
40300      mingw*) REPLACE_GETTIMEOFDAY=1 ;;
40301    esac
40302  fi
40303
40304cat >>confdefs.h <<_ACEOF
40305#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
40306_ACEOF
40307
40308
40309  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
40310
40311
40312
40313
40314
40315
40316
40317
40318  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
40319
40320    :
40321  fi
40322
40323
40324
40325
40326
40327          GNULIB_GETTIMEOFDAY=1
40328
40329
40330
40331
40332
40333$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
40334
40335
40336
40337
40338  LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
40339
40340
40341
40342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
40343$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
40344if ${gl_cv_c_inline_effective+:} false; then :
40345  $as_echo_n "(cached) " >&6
40346else
40347  if test $ac_cv_c_inline = no; then
40348       gl_cv_c_inline_effective=no
40349     else
40350                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40351/* end confdefs.h.  */
40352
40353int
40354main ()
40355{
40356#ifdef __NO_INLINE__
40357               #error "inline is not effective"
40358             #endif
40359  ;
40360  return 0;
40361}
40362_ACEOF
40363if ac_fn_c_try_compile "$LINENO"; then :
40364  gl_cv_c_inline_effective=yes
40365else
40366  gl_cv_c_inline_effective=no
40367fi
40368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40369     fi
40370
40371fi
40372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
40373$as_echo "$gl_cv_c_inline_effective" >&6; }
40374  if test $gl_cv_c_inline_effective = yes; then
40375
40376$as_echo "#define HAVE_INLINE 1" >>confdefs.h
40377
40378  fi
40379
40380
40381
40382
40383  :
40384
40385  :
40386  :
40387  :
40388  :
40389
40390
40391
40392
40393
40394
40395  ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
40396"
40397if test "x$ac_cv_have_decl_isfinite" = xyes; then :
40398  ac_have_decl=1
40399else
40400  ac_have_decl=0
40401fi
40402
40403cat >>confdefs.h <<_ACEOF
40404#define HAVE_DECL_ISFINITE $ac_have_decl
40405_ACEOF
40406
40407  if test "$ac_cv_have_decl_isfinite" = yes; then
40408
40409  save_LIBS=$LIBS
40410  ISFINITE_LIBM=missing
40411  for libm in "" "-lm"; do
40412    LIBS="$save_LIBS $libm"
40413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40414/* end confdefs.h.  */
40415
40416         #ifndef __NO_MATH_INLINES
40417         # define __NO_MATH_INLINES 1 /* for glibc */
40418         #endif
40419         #include <math.h>
40420
40421         double x;
40422int
40423main ()
40424{
40425x = isfinite (x) + isfinite ((float) x);
40426  ;
40427  return 0;
40428}
40429_ACEOF
40430if ac_fn_c_try_link "$LINENO"; then :
40431  ISFINITE_LIBM=$libm
40432break
40433fi
40434rm -f core conftest.err conftest.$ac_objext \
40435    conftest$ac_exeext conftest.$ac_ext
40436  done
40437  LIBS=$save_LIBS
40438
40439    if test "$ISFINITE_LIBM" != missing; then
40440
40441
40442
40443
40444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isfinite(long double) works" >&5
40445$as_echo_n "checking whether isfinite(long double) works... " >&6; }
40446if ${gl_cv_func_isfinitel_works+:} false; then :
40447  $as_echo_n "(cached) " >&6
40448else
40449
40450      if test "$cross_compiling" = yes; then :
40451  case "$host_os" in
40452                 # Guess no on native Windows.
40453         mingw*) gl_cv_func_isfinitel_works="guessing no" ;;
40454         *)      gl_cv_func_isfinitel_works="guessing yes" ;;
40455       esac
40456
40457else
40458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40459/* end confdefs.h.  */
40460
40461#include <float.h>
40462#include <limits.h>
40463#include <math.h>
40464#define NWORDS \
40465  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
40466typedef union { unsigned int word[NWORDS]; long double value; }
40467        memory_long_double;
40468/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
40469   runtime type conversion.  */
40470#ifdef __sgi
40471static long double NaNl ()
40472{
40473  double zero = 0.0;
40474  return zero / zero;
40475}
40476#else
40477# define NaNl() (0.0L / 0.0L)
40478#endif
40479int main ()
40480{
40481  int result = 0;
40482
40483  {
40484    memory_long_double m;
40485    unsigned int i;
40486
40487    /* The isfinite macro should be immune against changes in the sign bit and
40488       in the mantissa bits.  The xor operation twiddles a bit that can only be
40489       a sign bit or a mantissa bit (since the exponent never extends to
40490       bit 31).  */
40491    m.value = NaNl ();
40492    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
40493    for (i = 0; i < NWORDS; i++)
40494      m.word[i] |= 1;
40495    if (isfinite (m.value))
40496      result |= 1;
40497  }
40498
40499#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
40500/* Representation of an 80-bit 'long double' as an initializer for a sequence
40501   of 'unsigned int' words.  */
40502# ifdef WORDS_BIGENDIAN
40503#  define LDBL80_WORDS(exponent,manthi,mantlo) \
40504     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
40505       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
40506       (unsigned int) (mantlo) << 16                                        \
40507     }
40508# else
40509#  define LDBL80_WORDS(exponent,manthi,mantlo) \
40510     { mantlo, manthi, exponent }
40511# endif
40512  { /* Quiet NaN.  */
40513    static memory_long_double x =
40514      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
40515    if (isfinite (x.value))
40516      result |= 2;
40517  }
40518  {
40519    /* Signalling NaN.  */
40520    static memory_long_double x =
40521      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
40522    if (isfinite (x.value))
40523      result |= 2;
40524  }
40525  /* isfinite should return something even for noncanonical values.  */
40526  { /* Pseudo-NaN.  */
40527    static memory_long_double x =
40528      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
40529    if (isfinite (x.value) && !isfinite (x.value))
40530      result |= 4;
40531  }
40532  { /* Pseudo-Infinity.  */
40533    static memory_long_double x =
40534      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
40535    if (isfinite (x.value) && !isfinite (x.value))
40536      result |= 8;
40537  }
40538  { /* Pseudo-Zero.  */
40539    static memory_long_double x =
40540      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
40541    if (isfinite (x.value) && !isfinite (x.value))
40542      result |= 16;
40543  }
40544  { /* Unnormalized number.  */
40545    static memory_long_double x =
40546      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
40547    if (isfinite (x.value) && !isfinite (x.value))
40548      result |= 32;
40549  }
40550  { /* Pseudo-Denormal.  */
40551    static memory_long_double x =
40552      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
40553    if (isfinite (x.value) && !isfinite (x.value))
40554      result |= 64;
40555  }
40556#endif
40557
40558  return result;
40559}
40560_ACEOF
40561if ac_fn_c_try_run "$LINENO"; then :
40562  gl_cv_func_isfinitel_works=yes
40563else
40564  gl_cv_func_isfinitel_works=no
40565fi
40566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40567  conftest.$ac_objext conftest.beam conftest.$ac_ext
40568fi
40569
40570
40571fi
40572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isfinitel_works" >&5
40573$as_echo "$gl_cv_func_isfinitel_works" >&6; }
40574
40575      case "$gl_cv_func_isfinitel_works" in
40576        *yes) ;;
40577        *)    ISFINITE_LIBM=missing;;
40578      esac
40579                      fi
40580  fi
40581          if test "$ac_cv_have_decl_isfinite" != yes \
40582     || test "$ISFINITE_LIBM" = missing \
40583     || { case "$host_os" in solaris*) true;; *) false;; esac; }; then
40584    REPLACE_ISFINITE=1
40585        ISFINITE_LIBM=
40586  fi
40587
40588
40589  if test $REPLACE_ISFINITE = 1; then
40590
40591
40592
40593
40594
40595
40596
40597
40598  gl_LIBOBJS="$gl_LIBOBJS isfinite.$ac_objext"
40599
40600  fi
40601
40602
40603
40604
40605
40606          GNULIB_ISFINITE=1
40607
40608
40609
40610
40611
40612$as_echo "#define GNULIB_TEST_ISFINITE 1" >>confdefs.h
40613
40614
40615
40616
40617
40618
40619
40620  ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
40621      #ifndef isinf
40622      #error \"isinf must be a macro, not a function\"
40623      #endif
40624
40625"
40626if test "x$ac_cv_have_decl_isinf" = xyes; then :
40627  ac_have_decl=1
40628else
40629  ac_have_decl=0
40630fi
40631
40632cat >>confdefs.h <<_ACEOF
40633#define HAVE_DECL_ISINF $ac_have_decl
40634_ACEOF
40635
40636  if test "$ac_cv_have_decl_isinf" = yes; then
40637
40638  save_LIBS=$LIBS
40639  ISINF_LIBM=missing
40640  for libm in "" "-lm"; do
40641    LIBS="$save_LIBS $libm"
40642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40643/* end confdefs.h.  */
40644
40645         #ifndef __NO_MATH_INLINES
40646         # define __NO_MATH_INLINES 1 /* for glibc */
40647         #endif
40648         #include <math.h>
40649
40650         double x;
40651int
40652main ()
40653{
40654x = isinf (x) + isinf ((float) x);
40655  ;
40656  return 0;
40657}
40658_ACEOF
40659if ac_fn_c_try_link "$LINENO"; then :
40660  ISINF_LIBM=$libm
40661break
40662fi
40663rm -f core conftest.err conftest.$ac_objext \
40664    conftest$ac_exeext conftest.$ac_ext
40665  done
40666  LIBS=$save_LIBS
40667
40668    if test "$ISINF_LIBM" != missing; then
40669
40670
40671
40672
40673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isinf(long double) works" >&5
40674$as_echo_n "checking whether isinf(long double) works... " >&6; }
40675if ${gl_cv_func_isinfl_works+:} false; then :
40676  $as_echo_n "(cached) " >&6
40677else
40678
40679      if test "$cross_compiling" = yes; then :
40680  case "$host_os" in
40681         mingw*) # Guess yes on mingw, no on MSVC.
40682           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40683/* end confdefs.h.  */
40684
40685#ifdef __MINGW32__
40686 Known
40687#endif
40688
40689_ACEOF
40690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40691  $EGREP "Known" >/dev/null 2>&1; then :
40692  gl_cv_func_isinfl_works="guessing yes"
40693else
40694  gl_cv_func_isinfl_works="guessing no"
40695fi
40696rm -f conftest*
40697
40698           ;;
40699         *)
40700           gl_cv_func_isinfl_works="guessing yes"
40701           ;;
40702       esac
40703
40704else
40705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40706/* end confdefs.h.  */
40707
40708#include <float.h>
40709#include <limits.h>
40710#include <math.h>
40711#define NWORDS \
40712  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
40713typedef union { unsigned int word[NWORDS]; long double value; }
40714        memory_long_double;
40715/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
40716   runtime type conversion.  */
40717#ifdef __sgi
40718static long double NaNl ()
40719{
40720  double zero = 0.0;
40721  return zero / zero;
40722}
40723#else
40724# define NaNl() (0.0L / 0.0L)
40725#endif
40726int main ()
40727{
40728  int result = 0;
40729
40730  if (isinf (LDBL_MAX))
40731    result |= 1;
40732
40733  {
40734    memory_long_double m;
40735    unsigned int i;
40736
40737    /* The isinf macro should be immune against changes in the sign bit and
40738       in the mantissa bits.  The xor operation twiddles a bit that can only be
40739       a sign bit or a mantissa bit (since the exponent never extends to
40740       bit 31).  */
40741    m.value = NaNl ();
40742    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
40743    for (i = 0; i < NWORDS; i++)
40744      m.word[i] |= 1;
40745    if (isinf (m.value))
40746      result |= 2;
40747  }
40748
40749#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
40750/* Representation of an 80-bit 'long double' as an initializer for a sequence
40751   of 'unsigned int' words.  */
40752# ifdef WORDS_BIGENDIAN
40753#  define LDBL80_WORDS(exponent,manthi,mantlo) \
40754     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
40755       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
40756       (unsigned int) (mantlo) << 16                                        \
40757     }
40758# else
40759#  define LDBL80_WORDS(exponent,manthi,mantlo) \
40760     { mantlo, manthi, exponent }
40761# endif
40762  { /* Quiet NaN.  */
40763    static memory_long_double x =
40764      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
40765    if (isinf (x.value))
40766      result |= 2;
40767  }
40768  {
40769    /* Signalling NaN.  */
40770    static memory_long_double x =
40771      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
40772    if (isinf (x.value))
40773      result |= 2;
40774  }
40775  /* isinf should return something even for noncanonical values.  */
40776  { /* Pseudo-NaN.  */
40777    static memory_long_double x =
40778      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
40779    if (isinf (x.value) && !isinf (x.value))
40780      result |= 4;
40781  }
40782  { /* Pseudo-Infinity.  */
40783    static memory_long_double x =
40784      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
40785    if (isinf (x.value) && !isinf (x.value))
40786      result |= 8;
40787  }
40788  { /* Pseudo-Zero.  */
40789    static memory_long_double x =
40790      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
40791    if (isinf (x.value) && !isinf (x.value))
40792      result |= 16;
40793  }
40794  { /* Unnormalized number.  */
40795    static memory_long_double x =
40796      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
40797    if (isinf (x.value) && !isinf (x.value))
40798      result |= 32;
40799  }
40800  { /* Pseudo-Denormal.  */
40801    static memory_long_double x =
40802      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
40803    if (isinf (x.value) && !isinf (x.value))
40804      result |= 64;
40805  }
40806#endif
40807
40808  return result;
40809}
40810_ACEOF
40811if ac_fn_c_try_run "$LINENO"; then :
40812  gl_cv_func_isinfl_works=yes
40813else
40814  gl_cv_func_isinfl_works=no
40815fi
40816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40817  conftest.$ac_objext conftest.beam conftest.$ac_ext
40818fi
40819
40820
40821fi
40822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isinfl_works" >&5
40823$as_echo "$gl_cv_func_isinfl_works" >&6; }
40824
40825      case "$gl_cv_func_isinfl_works" in
40826        *yes) ;;
40827        *)    ISINF_LIBM=missing;;
40828      esac
40829    fi
40830  fi
40831          if test "$ac_cv_have_decl_isinf" != yes \
40832     || test "$ISINF_LIBM" = missing \
40833     || { case "$host_os" in solaris*) true;; *) false;; esac; }; then
40834    REPLACE_ISINF=1
40835        ISINF_LIBM=
40836  fi
40837
40838
40839  if test $REPLACE_ISINF = 1; then
40840
40841
40842
40843
40844
40845
40846
40847
40848  gl_LIBOBJS="$gl_LIBOBJS isinf.$ac_objext"
40849
40850  fi
40851
40852
40853
40854
40855
40856          GNULIB_ISINF=1
40857
40858
40859
40860
40861
40862$as_echo "#define GNULIB_TEST_ISINF 1" >>confdefs.h
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872  # If we replaced any of the underlying isnan* functions, replace
40873  # the isnan macro; it undoubtedly suffers from the same flaws.
40874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan macro works" >&5
40875$as_echo_n "checking whether isnan macro works... " >&6; }
40876  if test $gl_func_isnanf = yes \
40877     && test $gl_func_isnand = yes \
40878     && test $gl_func_isnanl = yes; then
40879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40880$as_echo "yes" >&6; }
40881    ISNAN_LIBM=
40882        case " $ISNAN_LIBM " in
40883      *" $ISNANF_LIBM "*) ;;
40884      *) ISNAN_LIBM="$ISNAN_LIBM $ISNANF_LIBM" ;;
40885    esac
40886        case " $ISNAN_LIBM " in
40887      *" $ISNAND_LIBM "*) ;;
40888      *) ISNAN_LIBM="$ISNAN_LIBM $ISNAND_LIBM" ;;
40889    esac
40890        case " $ISNAN_LIBM " in
40891      *" $ISNANL_LIBM "*) ;;
40892      *) ISNAN_LIBM="$ISNAN_LIBM $ISNANL_LIBM" ;;
40893    esac
40894  else
40895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40896$as_echo "no" >&6; }
40897        REPLACE_ISNAN=1
40898    ISNAN_LIBM=
40899  fi
40900
40901
40902
40903
40904
40905
40906
40907          GNULIB_ISNAN=1
40908
40909
40910
40911
40912
40913$as_echo "#define GNULIB_TEST_ISNAN 1" >>confdefs.h
40914
40915
40916
40917
40918
40919  ISNAND_LIBM=
40920
40921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
40922$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
40923if ${gl_cv_func_isnand_no_libm+:} false; then :
40924  $as_echo_n "(cached) " >&6
40925else
40926
40927      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40928/* end confdefs.h.  */
40929#include <math.h>
40930             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
40931             # undef isnand
40932             # define isnand(x) __builtin_isnan ((double)(x))
40933             #else
40934             # undef isnand
40935             # define isnand(x) isnan ((double)(x))
40936             #endif
40937             double x;
40938int
40939main ()
40940{
40941return isnand (x);
40942  ;
40943  return 0;
40944}
40945_ACEOF
40946if ac_fn_c_try_link "$LINENO"; then :
40947  gl_cv_func_isnand_no_libm=yes
40948else
40949  gl_cv_func_isnand_no_libm=no
40950fi
40951rm -f core conftest.err conftest.$ac_objext \
40952    conftest$ac_exeext conftest.$ac_ext
40953
40954fi
40955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
40956$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
40957
40958  if test $gl_cv_func_isnand_no_libm = no; then
40959
40960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
40961$as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
40962if ${gl_cv_func_isnand_in_libm+:} false; then :
40963  $as_echo_n "(cached) " >&6
40964else
40965
40966      save_LIBS="$LIBS"
40967      LIBS="$LIBS -lm"
40968      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40969/* end confdefs.h.  */
40970#include <math.h>
40971             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
40972             # undef isnand
40973             # define isnand(x) __builtin_isnan ((double)(x))
40974             #elif defined isnan
40975             # undef isnand
40976             # define isnand(x) isnan ((double)(x))
40977             #endif
40978             double x;
40979int
40980main ()
40981{
40982return isnand (x);
40983  ;
40984  return 0;
40985}
40986_ACEOF
40987if ac_fn_c_try_link "$LINENO"; then :
40988  gl_cv_func_isnand_in_libm=yes
40989else
40990  gl_cv_func_isnand_in_libm=no
40991fi
40992rm -f core conftest.err conftest.$ac_objext \
40993    conftest$ac_exeext conftest.$ac_ext
40994      LIBS="$save_LIBS"
40995
40996fi
40997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
40998$as_echo "$gl_cv_func_isnand_in_libm" >&6; }
40999
41000    if test $gl_cv_func_isnand_in_libm = yes; then
41001      ISNAND_LIBM=-lm
41002    fi
41003  fi
41004    if test $gl_cv_func_isnand_no_libm = yes \
41005     || test $gl_cv_func_isnand_in_libm = yes; then
41006    gl_func_isnand=yes
41007  else
41008    gl_func_isnand=no
41009    HAVE_ISNAND=0
41010  fi
41011
41012
41013
41014
41015
41016  if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
41017
41018
41019
41020
41021
41022
41023
41024
41025  gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
41026
41027
41028
41029
41030  fi
41031
41032
41033
41034
41035
41036          GNULIB_ISNAND=1
41037
41038
41039
41040
41041
41042$as_echo "#define GNULIB_TEST_ISNAND 1" >>confdefs.h
41043
41044
41045
41046
41047
41048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
41049$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
41050if ${gl_cv_func_isnand_no_libm+:} false; then :
41051  $as_echo_n "(cached) " >&6
41052else
41053
41054      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41055/* end confdefs.h.  */
41056#include <math.h>
41057             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41058             # undef isnand
41059             # define isnand(x) __builtin_isnan ((double)(x))
41060             #else
41061             # undef isnand
41062             # define isnand(x) isnan ((double)(x))
41063             #endif
41064             double x;
41065int
41066main ()
41067{
41068return isnand (x);
41069  ;
41070  return 0;
41071}
41072_ACEOF
41073if ac_fn_c_try_link "$LINENO"; then :
41074  gl_cv_func_isnand_no_libm=yes
41075else
41076  gl_cv_func_isnand_no_libm=no
41077fi
41078rm -f core conftest.err conftest.$ac_objext \
41079    conftest$ac_exeext conftest.$ac_ext
41080
41081fi
41082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
41083$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
41084
41085  gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
41086  if test $gl_cv_func_isnand_no_libm = yes; then
41087
41088$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
41089
41090  fi
41091
41092  if test $gl_func_isnand_no_libm != yes; then
41093
41094
41095
41096
41097
41098
41099
41100
41101  gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
41102
41103
41104
41105
41106  fi
41107
41108
41109  ISNANF_LIBM=
41110
41111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
41112$as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
41113if ${gl_cv_func_isnanf_no_libm+:} false; then :
41114  $as_echo_n "(cached) " >&6
41115else
41116
41117      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41118/* end confdefs.h.  */
41119#include <math.h>
41120             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41121             # undef isnanf
41122             # define isnanf(x) __builtin_isnan ((float)(x))
41123             #elif defined isnan
41124             # undef isnanf
41125             # define isnanf(x) isnan ((float)(x))
41126             #endif
41127             float x;
41128int
41129main ()
41130{
41131return isnanf (x);
41132  ;
41133  return 0;
41134}
41135_ACEOF
41136if ac_fn_c_try_link "$LINENO"; then :
41137  gl_cv_func_isnanf_no_libm=yes
41138else
41139  gl_cv_func_isnanf_no_libm=no
41140fi
41141rm -f core conftest.err conftest.$ac_objext \
41142    conftest$ac_exeext conftest.$ac_ext
41143
41144fi
41145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
41146$as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
41147
41148  if test $gl_cv_func_isnanf_no_libm = no; then
41149
41150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
41151$as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
41152if ${gl_cv_func_isnanf_in_libm+:} false; then :
41153  $as_echo_n "(cached) " >&6
41154else
41155
41156      save_LIBS="$LIBS"
41157      LIBS="$LIBS -lm"
41158      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41159/* end confdefs.h.  */
41160#include <math.h>
41161             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41162             # undef isnanf
41163             # define isnanf(x) __builtin_isnan ((float)(x))
41164             #elif defined isnan
41165             # undef isnanf
41166             # define isnanf(x) isnan ((float)(x))
41167             #endif
41168             float x;
41169int
41170main ()
41171{
41172return isnanf (x);
41173  ;
41174  return 0;
41175}
41176_ACEOF
41177if ac_fn_c_try_link "$LINENO"; then :
41178  gl_cv_func_isnanf_in_libm=yes
41179else
41180  gl_cv_func_isnanf_in_libm=no
41181fi
41182rm -f core conftest.err conftest.$ac_objext \
41183    conftest$ac_exeext conftest.$ac_ext
41184      LIBS="$save_LIBS"
41185
41186fi
41187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
41188$as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
41189
41190    if test $gl_cv_func_isnanf_in_libm = yes; then
41191      ISNANF_LIBM=-lm
41192    fi
41193  fi
41194    if test $gl_cv_func_isnanf_no_libm = yes \
41195     || test $gl_cv_func_isnanf_in_libm = yes; then
41196    save_LIBS="$LIBS"
41197    LIBS="$LIBS $ISNANF_LIBM"
41198
41199
41200
41201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
41202$as_echo_n "checking whether isnan(float) works... " >&6; }
41203if ${gl_cv_func_isnanf_works+:} false; then :
41204  $as_echo_n "(cached) " >&6
41205else
41206
41207      if test "$cross_compiling" = yes; then :
41208  case "$host_os" in
41209           irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
41210           mingw*) # Guess yes on mingw, no on MSVC.
41211             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41212/* end confdefs.h.  */
41213
41214#ifdef __MINGW32__
41215 Known
41216#endif
41217
41218_ACEOF
41219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41220  $EGREP "Known" >/dev/null 2>&1; then :
41221  gl_cv_func_isnanf_works="guessing yes"
41222else
41223  gl_cv_func_isnanf_works="guessing no"
41224fi
41225rm -f conftest*
41226
41227             ;;
41228           *) gl_cv_func_isnanf_works="guessing yes" ;;
41229         esac
41230
41231else
41232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41233/* end confdefs.h.  */
41234
41235#include <math.h>
41236#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41237# undef isnanf
41238# define isnanf(x) __builtin_isnan ((float)(x))
41239#elif defined isnan
41240# undef isnanf
41241# define isnanf(x) isnan ((float)(x))
41242#endif
41243/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
41244#ifdef __DECC
41245static float
41246NaN ()
41247{
41248  static float zero = 0.0f;
41249  return zero / zero;
41250}
41251#else
41252# define NaN() (0.0f / 0.0f)
41253#endif
41254#define NWORDS \
41255  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41256typedef union { unsigned int word[NWORDS]; float value; } memory_float;
41257int main()
41258{
41259  int result = 0;
41260
41261  if (isnanf (1.0f / 0.0f))
41262    result |= 1;
41263
41264  if (!isnanf (NaN ()))
41265    result |= 2;
41266
41267#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
41268  /* The isnanf function should be immune against changes in the sign bit and
41269     in the mantissa bits.  The xor operation twiddles a bit that can only be
41270     a sign bit or a mantissa bit.  */
41271  if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
41272    {
41273      memory_float m;
41274
41275      m.value = NaN ();
41276      /* Set the bits below the exponent to 01111...111.  */
41277      m.word[0] &= -1U << FLT_EXPBIT0_BIT;
41278      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
41279      if (!isnanf (m.value))
41280        result |= 4;
41281    }
41282#endif
41283
41284  return result;
41285}
41286_ACEOF
41287if ac_fn_c_try_run "$LINENO"; then :
41288  gl_cv_func_isnanf_works=yes
41289else
41290  gl_cv_func_isnanf_works=no
41291fi
41292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41293  conftest.$ac_objext conftest.beam conftest.$ac_ext
41294fi
41295
41296
41297fi
41298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
41299$as_echo "$gl_cv_func_isnanf_works" >&6; }
41300
41301    LIBS="$save_LIBS"
41302    case "$gl_cv_func_isnanf_works" in
41303      *yes) gl_func_isnanf=yes ;;
41304      *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
41305    esac
41306  else
41307    gl_func_isnanf=no
41308  fi
41309  if test $gl_func_isnanf != yes; then
41310    HAVE_ISNANF=0
41311  fi
41312
41313
41314
41315
41316
41317  if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
41318
41319
41320
41321
41322
41323
41324
41325
41326  gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
41327
41328
41329
41330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
41331$as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
41332if ${gl_cv_cc_float_expbit0+:} false; then :
41333  $as_echo_n "(cached) " >&6
41334else
41335
41336      if test "$cross_compiling" = yes; then :
41337  gl_cv_cc_float_expbit0="word 0 bit 23"
41338else
41339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41340/* end confdefs.h.  */
41341
41342#include <float.h>
41343#include <stddef.h>
41344#include <stdio.h>
41345#include <string.h>
41346#define NWORDS \
41347  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41348typedef union { float value; unsigned int word[NWORDS]; } memory_float;
41349static unsigned int ored_words[NWORDS];
41350static unsigned int anded_words[NWORDS];
41351static void add_to_ored_words (float x)
41352{
41353  memory_float m;
41354  size_t i;
41355  /* Clear it first, in case
41356     sizeof (float) < sizeof (memory_float).  */
41357  memset (&m, 0, sizeof (memory_float));
41358  m.value = x;
41359  for (i = 0; i < NWORDS; i++)
41360    {
41361      ored_words[i] |= m.word[i];
41362      anded_words[i] &= m.word[i];
41363    }
41364}
41365int main ()
41366{
41367  size_t j;
41368  FILE *fp = fopen ("conftest.out", "w");
41369  if (fp == NULL)
41370    return 1;
41371  for (j = 0; j < NWORDS; j++)
41372    anded_words[j] = ~ (unsigned int) 0;
41373  add_to_ored_words (0.25f);
41374  add_to_ored_words (0.5f);
41375  add_to_ored_words (1.0f);
41376  add_to_ored_words (2.0f);
41377  add_to_ored_words (4.0f);
41378  /* Remove bits that are common (e.g. if representation of the first mantissa
41379     bit is explicit).  */
41380  for (j = 0; j < NWORDS; j++)
41381    ored_words[j] &= ~anded_words[j];
41382  /* Now find the nonzero word.  */
41383  for (j = 0; j < NWORDS; j++)
41384    if (ored_words[j] != 0)
41385      break;
41386  if (j < NWORDS)
41387    {
41388      size_t i;
41389      for (i = j + 1; i < NWORDS; i++)
41390        if (ored_words[i] != 0)
41391          {
41392            fprintf (fp, "unknown");
41393            return (fclose (fp) != 0);
41394          }
41395      for (i = 0; ; i++)
41396        if ((ored_words[j] >> i) & 1)
41397          {
41398            fprintf (fp, "word %d bit %d", (int) j, (int) i);
41399            return (fclose (fp) != 0);
41400          }
41401    }
41402  fprintf (fp, "unknown");
41403  return (fclose (fp) != 0);
41404}
41405
41406_ACEOF
41407if ac_fn_c_try_run "$LINENO"; then :
41408  gl_cv_cc_float_expbit0=`cat conftest.out`
41409else
41410  gl_cv_cc_float_expbit0="unknown"
41411fi
41412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41413  conftest.$ac_objext conftest.beam conftest.$ac_ext
41414fi
41415
41416      rm -f conftest.out
41417
41418fi
41419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
41420$as_echo "$gl_cv_cc_float_expbit0" >&6; }
41421  case "$gl_cv_cc_float_expbit0" in
41422    word*bit*)
41423      word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
41424      bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
41425
41426cat >>confdefs.h <<_ACEOF
41427#define FLT_EXPBIT0_WORD $word
41428_ACEOF
41429
41430
41431cat >>confdefs.h <<_ACEOF
41432#define FLT_EXPBIT0_BIT $bit
41433_ACEOF
41434
41435      ;;
41436  esac
41437
41438
41439  fi
41440
41441
41442
41443
41444
41445          GNULIB_ISNANF=1
41446
41447
41448
41449
41450
41451$as_echo "#define GNULIB_TEST_ISNANF 1" >>confdefs.h
41452
41453
41454
41455
41456
41457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
41458$as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
41459if ${gl_cv_func_isnanf_no_libm+:} false; then :
41460  $as_echo_n "(cached) " >&6
41461else
41462
41463      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41464/* end confdefs.h.  */
41465#include <math.h>
41466             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41467             # undef isnanf
41468             # define isnanf(x) __builtin_isnan ((float)(x))
41469             #elif defined isnan
41470             # undef isnanf
41471             # define isnanf(x) isnan ((float)(x))
41472             #endif
41473             float x;
41474int
41475main ()
41476{
41477return isnanf (x);
41478  ;
41479  return 0;
41480}
41481_ACEOF
41482if ac_fn_c_try_link "$LINENO"; then :
41483  gl_cv_func_isnanf_no_libm=yes
41484else
41485  gl_cv_func_isnanf_no_libm=no
41486fi
41487rm -f core conftest.err conftest.$ac_objext \
41488    conftest$ac_exeext conftest.$ac_ext
41489
41490fi
41491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
41492$as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
41493
41494  if test $gl_cv_func_isnanf_no_libm = yes; then
41495
41496
41497
41498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
41499$as_echo_n "checking whether isnan(float) works... " >&6; }
41500if ${gl_cv_func_isnanf_works+:} false; then :
41501  $as_echo_n "(cached) " >&6
41502else
41503
41504      if test "$cross_compiling" = yes; then :
41505  case "$host_os" in
41506           irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
41507           mingw*) # Guess yes on mingw, no on MSVC.
41508             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41509/* end confdefs.h.  */
41510
41511#ifdef __MINGW32__
41512 Known
41513#endif
41514
41515_ACEOF
41516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41517  $EGREP "Known" >/dev/null 2>&1; then :
41518  gl_cv_func_isnanf_works="guessing yes"
41519else
41520  gl_cv_func_isnanf_works="guessing no"
41521fi
41522rm -f conftest*
41523
41524             ;;
41525           *) gl_cv_func_isnanf_works="guessing yes" ;;
41526         esac
41527
41528else
41529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41530/* end confdefs.h.  */
41531
41532#include <math.h>
41533#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41534# undef isnanf
41535# define isnanf(x) __builtin_isnan ((float)(x))
41536#elif defined isnan
41537# undef isnanf
41538# define isnanf(x) isnan ((float)(x))
41539#endif
41540/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
41541#ifdef __DECC
41542static float
41543NaN ()
41544{
41545  static float zero = 0.0f;
41546  return zero / zero;
41547}
41548#else
41549# define NaN() (0.0f / 0.0f)
41550#endif
41551#define NWORDS \
41552  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41553typedef union { unsigned int word[NWORDS]; float value; } memory_float;
41554int main()
41555{
41556  int result = 0;
41557
41558  if (isnanf (1.0f / 0.0f))
41559    result |= 1;
41560
41561  if (!isnanf (NaN ()))
41562    result |= 2;
41563
41564#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
41565  /* The isnanf function should be immune against changes in the sign bit and
41566     in the mantissa bits.  The xor operation twiddles a bit that can only be
41567     a sign bit or a mantissa bit.  */
41568  if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
41569    {
41570      memory_float m;
41571
41572      m.value = NaN ();
41573      /* Set the bits below the exponent to 01111...111.  */
41574      m.word[0] &= -1U << FLT_EXPBIT0_BIT;
41575      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
41576      if (!isnanf (m.value))
41577        result |= 4;
41578    }
41579#endif
41580
41581  return result;
41582}
41583_ACEOF
41584if ac_fn_c_try_run "$LINENO"; then :
41585  gl_cv_func_isnanf_works=yes
41586else
41587  gl_cv_func_isnanf_works=no
41588fi
41589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41590  conftest.$ac_objext conftest.beam conftest.$ac_ext
41591fi
41592
41593
41594fi
41595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
41596$as_echo "$gl_cv_func_isnanf_works" >&6; }
41597
41598  fi
41599  if test $gl_cv_func_isnanf_no_libm = yes \
41600     && { case "$gl_cv_func_isnanf_works" in
41601            *yes) true;;
41602            *) false;;
41603          esac
41604        }; then
41605    gl_func_isnanf_no_libm=yes
41606
41607$as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
41608
41609  else
41610    gl_func_isnanf_no_libm=no
41611  fi
41612
41613  if test $gl_func_isnanf_no_libm != yes; then
41614
41615
41616
41617
41618
41619
41620
41621
41622  gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
41623
41624
41625
41626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
41627$as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
41628if ${gl_cv_cc_float_expbit0+:} false; then :
41629  $as_echo_n "(cached) " >&6
41630else
41631
41632      if test "$cross_compiling" = yes; then :
41633  gl_cv_cc_float_expbit0="word 0 bit 23"
41634else
41635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41636/* end confdefs.h.  */
41637
41638#include <float.h>
41639#include <stddef.h>
41640#include <stdio.h>
41641#include <string.h>
41642#define NWORDS \
41643  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41644typedef union { float value; unsigned int word[NWORDS]; } memory_float;
41645static unsigned int ored_words[NWORDS];
41646static unsigned int anded_words[NWORDS];
41647static void add_to_ored_words (float x)
41648{
41649  memory_float m;
41650  size_t i;
41651  /* Clear it first, in case
41652     sizeof (float) < sizeof (memory_float).  */
41653  memset (&m, 0, sizeof (memory_float));
41654  m.value = x;
41655  for (i = 0; i < NWORDS; i++)
41656    {
41657      ored_words[i] |= m.word[i];
41658      anded_words[i] &= m.word[i];
41659    }
41660}
41661int main ()
41662{
41663  size_t j;
41664  FILE *fp = fopen ("conftest.out", "w");
41665  if (fp == NULL)
41666    return 1;
41667  for (j = 0; j < NWORDS; j++)
41668    anded_words[j] = ~ (unsigned int) 0;
41669  add_to_ored_words (0.25f);
41670  add_to_ored_words (0.5f);
41671  add_to_ored_words (1.0f);
41672  add_to_ored_words (2.0f);
41673  add_to_ored_words (4.0f);
41674  /* Remove bits that are common (e.g. if representation of the first mantissa
41675     bit is explicit).  */
41676  for (j = 0; j < NWORDS; j++)
41677    ored_words[j] &= ~anded_words[j];
41678  /* Now find the nonzero word.  */
41679  for (j = 0; j < NWORDS; j++)
41680    if (ored_words[j] != 0)
41681      break;
41682  if (j < NWORDS)
41683    {
41684      size_t i;
41685      for (i = j + 1; i < NWORDS; i++)
41686        if (ored_words[i] != 0)
41687          {
41688            fprintf (fp, "unknown");
41689            return (fclose (fp) != 0);
41690          }
41691      for (i = 0; ; i++)
41692        if ((ored_words[j] >> i) & 1)
41693          {
41694            fprintf (fp, "word %d bit %d", (int) j, (int) i);
41695            return (fclose (fp) != 0);
41696          }
41697    }
41698  fprintf (fp, "unknown");
41699  return (fclose (fp) != 0);
41700}
41701
41702_ACEOF
41703if ac_fn_c_try_run "$LINENO"; then :
41704  gl_cv_cc_float_expbit0=`cat conftest.out`
41705else
41706  gl_cv_cc_float_expbit0="unknown"
41707fi
41708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41709  conftest.$ac_objext conftest.beam conftest.$ac_ext
41710fi
41711
41712      rm -f conftest.out
41713
41714fi
41715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
41716$as_echo "$gl_cv_cc_float_expbit0" >&6; }
41717  case "$gl_cv_cc_float_expbit0" in
41718    word*bit*)
41719      word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
41720      bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
41721
41722cat >>confdefs.h <<_ACEOF
41723#define FLT_EXPBIT0_WORD $word
41724_ACEOF
41725
41726
41727cat >>confdefs.h <<_ACEOF
41728#define FLT_EXPBIT0_BIT $bit
41729_ACEOF
41730
41731      ;;
41732  esac
41733
41734
41735  fi
41736
41737
41738  ISNANL_LIBM=
41739
41740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
41741$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
41742if ${gl_cv_func_isnanl_no_libm+:} false; then :
41743  $as_echo_n "(cached) " >&6
41744else
41745
41746      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41747/* end confdefs.h.  */
41748#include <math.h>
41749             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41750             # undef isnanl
41751             # define isnanl(x) __builtin_isnan ((long double)(x))
41752             #elif defined isnan
41753             # undef isnanl
41754             # define isnanl(x) isnan ((long double)(x))
41755             #endif
41756             long double x;
41757int
41758main ()
41759{
41760return isnanl (x);
41761  ;
41762  return 0;
41763}
41764_ACEOF
41765if ac_fn_c_try_link "$LINENO"; then :
41766  gl_cv_func_isnanl_no_libm=yes
41767else
41768  gl_cv_func_isnanl_no_libm=no
41769fi
41770rm -f core conftest.err conftest.$ac_objext \
41771    conftest$ac_exeext conftest.$ac_ext
41772
41773fi
41774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
41775$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
41776
41777  if test $gl_cv_func_isnanl_no_libm = no; then
41778
41779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
41780$as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
41781if ${gl_cv_func_isnanl_in_libm+:} false; then :
41782  $as_echo_n "(cached) " >&6
41783else
41784
41785      save_LIBS="$LIBS"
41786      LIBS="$LIBS -lm"
41787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41788/* end confdefs.h.  */
41789#include <math.h>
41790             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41791             # undef isnanl
41792             # define isnanl(x) __builtin_isnan ((long double)(x))
41793             #elif defined isnan
41794             # undef isnanl
41795             # define isnanl(x) isnan ((long double)(x))
41796             #endif
41797             long double x;
41798int
41799main ()
41800{
41801return isnanl (x);
41802  ;
41803  return 0;
41804}
41805_ACEOF
41806if ac_fn_c_try_link "$LINENO"; then :
41807  gl_cv_func_isnanl_in_libm=yes
41808else
41809  gl_cv_func_isnanl_in_libm=no
41810fi
41811rm -f core conftest.err conftest.$ac_objext \
41812    conftest$ac_exeext conftest.$ac_ext
41813      LIBS="$save_LIBS"
41814
41815fi
41816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
41817$as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
41818
41819    if test $gl_cv_func_isnanl_in_libm = yes; then
41820      ISNANL_LIBM=-lm
41821    fi
41822  fi
41823    if test $gl_cv_func_isnanl_no_libm = yes \
41824     || test $gl_cv_func_isnanl_in_libm = yes; then
41825    save_LIBS="$LIBS"
41826    LIBS="$LIBS $ISNANL_LIBM"
41827
41828
41829
41830
41831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
41832$as_echo_n "checking whether isnanl works... " >&6; }
41833if ${gl_cv_func_isnanl_works+:} false; then :
41834  $as_echo_n "(cached) " >&6
41835else
41836
41837      if test "$cross_compiling" = yes; then :
41838  case "$host_os" in
41839           mingw*) # Guess yes on mingw, no on MSVC.
41840             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41841/* end confdefs.h.  */
41842
41843#ifdef __MINGW32__
41844 Known
41845#endif
41846
41847_ACEOF
41848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41849  $EGREP "Known" >/dev/null 2>&1; then :
41850  gl_cv_func_isnanl_works="guessing yes"
41851else
41852  gl_cv_func_isnanl_works="guessing no"
41853fi
41854rm -f conftest*
41855
41856             ;;
41857           *) gl_cv_func_isnanl_works="guessing yes" ;;
41858         esac
41859
41860else
41861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41862/* end confdefs.h.  */
41863
41864#include <float.h>
41865#include <limits.h>
41866#include <math.h>
41867#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
41868# undef isnanl
41869# define isnanl(x) __builtin_isnan ((long double)(x))
41870#elif defined isnan
41871# undef isnanl
41872# define isnanl(x) isnan ((long double)(x))
41873#endif
41874#define NWORDS \
41875  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41876typedef union { unsigned int word[NWORDS]; long double value; }
41877        memory_long_double;
41878/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
41879   runtime type conversion.  */
41880#ifdef __sgi
41881static long double NaNl ()
41882{
41883  double zero = 0.0;
41884  return zero / zero;
41885}
41886#else
41887# define NaNl() (0.0L / 0.0L)
41888#endif
41889int main ()
41890{
41891  int result = 0;
41892
41893  if (!isnanl (NaNl ()))
41894    result |= 1;
41895
41896  {
41897    memory_long_double m;
41898    unsigned int i;
41899
41900    /* The isnanl function should be immune against changes in the sign bit and
41901       in the mantissa bits.  The xor operation twiddles a bit that can only be
41902       a sign bit or a mantissa bit (since the exponent never extends to
41903       bit 31).  */
41904    m.value = NaNl ();
41905    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
41906    for (i = 0; i < NWORDS; i++)
41907      m.word[i] |= 1;
41908    if (!isnanl (m.value))
41909      result |= 1;
41910  }
41911
41912#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
41913/* Representation of an 80-bit 'long double' as an initializer for a sequence
41914   of 'unsigned int' words.  */
41915# ifdef WORDS_BIGENDIAN
41916#  define LDBL80_WORDS(exponent,manthi,mantlo) \
41917     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
41918       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
41919       (unsigned int) (mantlo) << 16                                        \
41920     }
41921# else
41922#  define LDBL80_WORDS(exponent,manthi,mantlo) \
41923     { mantlo, manthi, exponent }
41924# endif
41925  { /* Quiet NaN.  */
41926    static memory_long_double x =
41927      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
41928    if (!isnanl (x.value))
41929      result |= 2;
41930  }
41931  {
41932    /* Signalling NaN.  */
41933    static memory_long_double x =
41934      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
41935    if (!isnanl (x.value))
41936      result |= 2;
41937  }
41938  /* isnanl should return something even for noncanonical values.  */
41939  { /* Pseudo-NaN.  */
41940    static memory_long_double x =
41941      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
41942    if (isnanl (x.value) && !isnanl (x.value))
41943      result |= 4;
41944  }
41945  { /* Pseudo-Infinity.  */
41946    static memory_long_double x =
41947      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
41948    if (isnanl (x.value) && !isnanl (x.value))
41949      result |= 8;
41950  }
41951  { /* Pseudo-Zero.  */
41952    static memory_long_double x =
41953      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
41954    if (isnanl (x.value) && !isnanl (x.value))
41955      result |= 16;
41956  }
41957  { /* Unnormalized number.  */
41958    static memory_long_double x =
41959      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
41960    if (isnanl (x.value) && !isnanl (x.value))
41961      result |= 32;
41962  }
41963  { /* Pseudo-Denormal.  */
41964    static memory_long_double x =
41965      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
41966    if (isnanl (x.value) && !isnanl (x.value))
41967      result |= 64;
41968  }
41969#endif
41970
41971  return result;
41972}
41973_ACEOF
41974if ac_fn_c_try_run "$LINENO"; then :
41975  gl_cv_func_isnanl_works=yes
41976else
41977  gl_cv_func_isnanl_works=no
41978fi
41979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41980  conftest.$ac_objext conftest.beam conftest.$ac_ext
41981fi
41982
41983
41984fi
41985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
41986$as_echo "$gl_cv_func_isnanl_works" >&6; }
41987
41988    LIBS="$save_LIBS"
41989    case "$gl_cv_func_isnanl_works" in
41990      *yes) gl_func_isnanl=yes ;;
41991      *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
41992    esac
41993  else
41994    gl_func_isnanl=no
41995  fi
41996  if test $gl_func_isnanl != yes; then
41997    HAVE_ISNANL=0
41998  fi
41999
42000
42001
42002
42003
42004  if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
42005
42006
42007
42008
42009
42010
42011
42012
42013  gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
42014
42015
42016
42017
42018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
42019$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
42020if ${gl_cv_cc_long_double_expbit0+:} false; then :
42021  $as_echo_n "(cached) " >&6
42022else
42023
42024      if test "$cross_compiling" = yes; then :
42025
42026                              gl_cv_cc_long_double_expbit0="unknown"
42027          case "$host_os" in
42028            mingw*) # On native Windows (little-endian), we know the result
42029                    # in two cases: mingw, MSVC.
42030              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42031/* end confdefs.h.  */
42032
42033#ifdef __MINGW32__
42034 Known
42035#endif
42036
42037_ACEOF
42038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42039  $EGREP "Known" >/dev/null 2>&1; then :
42040  gl_cv_cc_long_double_expbit0="word 2 bit 0"
42041fi
42042rm -f conftest*
42043
42044              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42045/* end confdefs.h.  */
42046
42047#ifdef _MSC_VER
42048 Known
42049#endif
42050
42051_ACEOF
42052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42053  $EGREP "Known" >/dev/null 2>&1; then :
42054  gl_cv_cc_long_double_expbit0="word 1 bit 20"
42055fi
42056rm -f conftest*
42057
42058              ;;
42059          esac
42060
42061else
42062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42063/* end confdefs.h.  */
42064
42065#include <float.h>
42066#include <stddef.h>
42067#include <stdio.h>
42068#include <string.h>
42069#define NWORDS \
42070  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42071typedef union { long double value; unsigned int word[NWORDS]; }
42072        memory_long_double;
42073static unsigned int ored_words[NWORDS];
42074static unsigned int anded_words[NWORDS];
42075static void add_to_ored_words (long double *x)
42076{
42077  memory_long_double m;
42078  size_t i;
42079  /* Clear it first, in case
42080     sizeof (long double) < sizeof (memory_long_double).  */
42081  memset (&m, 0, sizeof (memory_long_double));
42082  m.value = *x;
42083  for (i = 0; i < NWORDS; i++)
42084    {
42085      ored_words[i] |= m.word[i];
42086      anded_words[i] &= m.word[i];
42087    }
42088}
42089int main ()
42090{
42091  static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
42092  size_t j;
42093  FILE *fp = fopen ("conftest.out", "w");
42094  if (fp == NULL)
42095    return 1;
42096  for (j = 0; j < NWORDS; j++)
42097    anded_words[j] = ~ (unsigned int) 0;
42098  for (j = 0; j < 5; j++)
42099    add_to_ored_words (&samples[j]);
42100  /* Remove bits that are common (e.g. if representation of the first mantissa
42101     bit is explicit).  */
42102  for (j = 0; j < NWORDS; j++)
42103    ored_words[j] &= ~anded_words[j];
42104  /* Now find the nonzero word.  */
42105  for (j = 0; j < NWORDS; j++)
42106    if (ored_words[j] != 0)
42107      break;
42108  if (j < NWORDS)
42109    {
42110      size_t i;
42111      for (i = j + 1; i < NWORDS; i++)
42112        if (ored_words[i] != 0)
42113          {
42114            fprintf (fp, "unknown");
42115            return (fclose (fp) != 0);
42116          }
42117      for (i = 0; ; i++)
42118        if ((ored_words[j] >> i) & 1)
42119          {
42120            fprintf (fp, "word %d bit %d", (int) j, (int) i);
42121            return (fclose (fp) != 0);
42122          }
42123    }
42124  fprintf (fp, "unknown");
42125  return (fclose (fp) != 0);
42126}
42127
42128_ACEOF
42129if ac_fn_c_try_run "$LINENO"; then :
42130  gl_cv_cc_long_double_expbit0=`cat conftest.out`
42131else
42132  gl_cv_cc_long_double_expbit0="unknown"
42133fi
42134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42135  conftest.$ac_objext conftest.beam conftest.$ac_ext
42136fi
42137
42138      rm -f conftest.out
42139
42140fi
42141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
42142$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
42143  case "$gl_cv_cc_long_double_expbit0" in
42144    word*bit*)
42145      word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
42146      bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
42147
42148cat >>confdefs.h <<_ACEOF
42149#define LDBL_EXPBIT0_WORD $word
42150_ACEOF
42151
42152
42153cat >>confdefs.h <<_ACEOF
42154#define LDBL_EXPBIT0_BIT $bit
42155_ACEOF
42156
42157      ;;
42158  esac
42159
42160
42161
42162  fi
42163
42164
42165
42166
42167
42168          GNULIB_ISNANL=1
42169
42170
42171
42172
42173
42174$as_echo "#define GNULIB_TEST_ISNANL 1" >>confdefs.h
42175
42176
42177
42178
42179
42180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
42181$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
42182if ${gl_cv_func_isnanl_no_libm+:} false; then :
42183  $as_echo_n "(cached) " >&6
42184else
42185
42186      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42187/* end confdefs.h.  */
42188#include <math.h>
42189             #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
42190             # undef isnanl
42191             # define isnanl(x) __builtin_isnan ((long double)(x))
42192             #elif defined isnan
42193             # undef isnanl
42194             # define isnanl(x) isnan ((long double)(x))
42195             #endif
42196             long double x;
42197int
42198main ()
42199{
42200return isnanl (x);
42201  ;
42202  return 0;
42203}
42204_ACEOF
42205if ac_fn_c_try_link "$LINENO"; then :
42206  gl_cv_func_isnanl_no_libm=yes
42207else
42208  gl_cv_func_isnanl_no_libm=no
42209fi
42210rm -f core conftest.err conftest.$ac_objext \
42211    conftest$ac_exeext conftest.$ac_ext
42212
42213fi
42214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
42215$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
42216
42217  gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
42218  if test $gl_func_isnanl_no_libm = yes; then
42219
42220
42221
42222
42223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
42224$as_echo_n "checking whether isnanl works... " >&6; }
42225if ${gl_cv_func_isnanl_works+:} false; then :
42226  $as_echo_n "(cached) " >&6
42227else
42228
42229      if test "$cross_compiling" = yes; then :
42230  case "$host_os" in
42231           mingw*) # Guess yes on mingw, no on MSVC.
42232             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42233/* end confdefs.h.  */
42234
42235#ifdef __MINGW32__
42236 Known
42237#endif
42238
42239_ACEOF
42240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42241  $EGREP "Known" >/dev/null 2>&1; then :
42242  gl_cv_func_isnanl_works="guessing yes"
42243else
42244  gl_cv_func_isnanl_works="guessing no"
42245fi
42246rm -f conftest*
42247
42248             ;;
42249           *) gl_cv_func_isnanl_works="guessing yes" ;;
42250         esac
42251
42252else
42253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42254/* end confdefs.h.  */
42255
42256#include <float.h>
42257#include <limits.h>
42258#include <math.h>
42259#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
42260# undef isnanl
42261# define isnanl(x) __builtin_isnan ((long double)(x))
42262#elif defined isnan
42263# undef isnanl
42264# define isnanl(x) isnan ((long double)(x))
42265#endif
42266#define NWORDS \
42267  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42268typedef union { unsigned int word[NWORDS]; long double value; }
42269        memory_long_double;
42270/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
42271   runtime type conversion.  */
42272#ifdef __sgi
42273static long double NaNl ()
42274{
42275  double zero = 0.0;
42276  return zero / zero;
42277}
42278#else
42279# define NaNl() (0.0L / 0.0L)
42280#endif
42281int main ()
42282{
42283  int result = 0;
42284
42285  if (!isnanl (NaNl ()))
42286    result |= 1;
42287
42288  {
42289    memory_long_double m;
42290    unsigned int i;
42291
42292    /* The isnanl function should be immune against changes in the sign bit and
42293       in the mantissa bits.  The xor operation twiddles a bit that can only be
42294       a sign bit or a mantissa bit (since the exponent never extends to
42295       bit 31).  */
42296    m.value = NaNl ();
42297    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
42298    for (i = 0; i < NWORDS; i++)
42299      m.word[i] |= 1;
42300    if (!isnanl (m.value))
42301      result |= 1;
42302  }
42303
42304#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
42305/* Representation of an 80-bit 'long double' as an initializer for a sequence
42306   of 'unsigned int' words.  */
42307# ifdef WORDS_BIGENDIAN
42308#  define LDBL80_WORDS(exponent,manthi,mantlo) \
42309     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
42310       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
42311       (unsigned int) (mantlo) << 16                                        \
42312     }
42313# else
42314#  define LDBL80_WORDS(exponent,manthi,mantlo) \
42315     { mantlo, manthi, exponent }
42316# endif
42317  { /* Quiet NaN.  */
42318    static memory_long_double x =
42319      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
42320    if (!isnanl (x.value))
42321      result |= 2;
42322  }
42323  {
42324    /* Signalling NaN.  */
42325    static memory_long_double x =
42326      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
42327    if (!isnanl (x.value))
42328      result |= 2;
42329  }
42330  /* isnanl should return something even for noncanonical values.  */
42331  { /* Pseudo-NaN.  */
42332    static memory_long_double x =
42333      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
42334    if (isnanl (x.value) && !isnanl (x.value))
42335      result |= 4;
42336  }
42337  { /* Pseudo-Infinity.  */
42338    static memory_long_double x =
42339      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
42340    if (isnanl (x.value) && !isnanl (x.value))
42341      result |= 8;
42342  }
42343  { /* Pseudo-Zero.  */
42344    static memory_long_double x =
42345      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
42346    if (isnanl (x.value) && !isnanl (x.value))
42347      result |= 16;
42348  }
42349  { /* Unnormalized number.  */
42350    static memory_long_double x =
42351      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
42352    if (isnanl (x.value) && !isnanl (x.value))
42353      result |= 32;
42354  }
42355  { /* Pseudo-Denormal.  */
42356    static memory_long_double x =
42357      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
42358    if (isnanl (x.value) && !isnanl (x.value))
42359      result |= 64;
42360  }
42361#endif
42362
42363  return result;
42364}
42365_ACEOF
42366if ac_fn_c_try_run "$LINENO"; then :
42367  gl_cv_func_isnanl_works=yes
42368else
42369  gl_cv_func_isnanl_works=no
42370fi
42371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42372  conftest.$ac_objext conftest.beam conftest.$ac_ext
42373fi
42374
42375
42376fi
42377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
42378$as_echo "$gl_cv_func_isnanl_works" >&6; }
42379
42380    case "$gl_cv_func_isnanl_works" in
42381      *yes) ;;
42382      *)    gl_func_isnanl_no_libm=no ;;
42383    esac
42384  fi
42385  if test $gl_func_isnanl_no_libm = yes; then
42386
42387$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
42388
42389  fi
42390
42391  if test $gl_func_isnanl_no_libm != yes; then
42392
42393
42394
42395
42396
42397
42398
42399
42400  gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
42401
42402
42403
42404
42405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
42406$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
42407if ${gl_cv_cc_long_double_expbit0+:} false; then :
42408  $as_echo_n "(cached) " >&6
42409else
42410
42411      if test "$cross_compiling" = yes; then :
42412
42413                              gl_cv_cc_long_double_expbit0="unknown"
42414          case "$host_os" in
42415            mingw*) # On native Windows (little-endian), we know the result
42416                    # in two cases: mingw, MSVC.
42417              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42418/* end confdefs.h.  */
42419
42420#ifdef __MINGW32__
42421 Known
42422#endif
42423
42424_ACEOF
42425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42426  $EGREP "Known" >/dev/null 2>&1; then :
42427  gl_cv_cc_long_double_expbit0="word 2 bit 0"
42428fi
42429rm -f conftest*
42430
42431              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42432/* end confdefs.h.  */
42433
42434#ifdef _MSC_VER
42435 Known
42436#endif
42437
42438_ACEOF
42439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42440  $EGREP "Known" >/dev/null 2>&1; then :
42441  gl_cv_cc_long_double_expbit0="word 1 bit 20"
42442fi
42443rm -f conftest*
42444
42445              ;;
42446          esac
42447
42448else
42449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42450/* end confdefs.h.  */
42451
42452#include <float.h>
42453#include <stddef.h>
42454#include <stdio.h>
42455#include <string.h>
42456#define NWORDS \
42457  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42458typedef union { long double value; unsigned int word[NWORDS]; }
42459        memory_long_double;
42460static unsigned int ored_words[NWORDS];
42461static unsigned int anded_words[NWORDS];
42462static void add_to_ored_words (long double *x)
42463{
42464  memory_long_double m;
42465  size_t i;
42466  /* Clear it first, in case
42467     sizeof (long double) < sizeof (memory_long_double).  */
42468  memset (&m, 0, sizeof (memory_long_double));
42469  m.value = *x;
42470  for (i = 0; i < NWORDS; i++)
42471    {
42472      ored_words[i] |= m.word[i];
42473      anded_words[i] &= m.word[i];
42474    }
42475}
42476int main ()
42477{
42478  static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
42479  size_t j;
42480  FILE *fp = fopen ("conftest.out", "w");
42481  if (fp == NULL)
42482    return 1;
42483  for (j = 0; j < NWORDS; j++)
42484    anded_words[j] = ~ (unsigned int) 0;
42485  for (j = 0; j < 5; j++)
42486    add_to_ored_words (&samples[j]);
42487  /* Remove bits that are common (e.g. if representation of the first mantissa
42488     bit is explicit).  */
42489  for (j = 0; j < NWORDS; j++)
42490    ored_words[j] &= ~anded_words[j];
42491  /* Now find the nonzero word.  */
42492  for (j = 0; j < NWORDS; j++)
42493    if (ored_words[j] != 0)
42494      break;
42495  if (j < NWORDS)
42496    {
42497      size_t i;
42498      for (i = j + 1; i < NWORDS; i++)
42499        if (ored_words[i] != 0)
42500          {
42501            fprintf (fp, "unknown");
42502            return (fclose (fp) != 0);
42503          }
42504      for (i = 0; ; i++)
42505        if ((ored_words[j] >> i) & 1)
42506          {
42507            fprintf (fp, "word %d bit %d", (int) j, (int) i);
42508            return (fclose (fp) != 0);
42509          }
42510    }
42511  fprintf (fp, "unknown");
42512  return (fclose (fp) != 0);
42513}
42514
42515_ACEOF
42516if ac_fn_c_try_run "$LINENO"; then :
42517  gl_cv_cc_long_double_expbit0=`cat conftest.out`
42518else
42519  gl_cv_cc_long_double_expbit0="unknown"
42520fi
42521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42522  conftest.$ac_objext conftest.beam conftest.$ac_ext
42523fi
42524
42525      rm -f conftest.out
42526
42527fi
42528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
42529$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
42530  case "$gl_cv_cc_long_double_expbit0" in
42531    word*bit*)
42532      word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
42533      bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
42534
42535cat >>confdefs.h <<_ACEOF
42536#define LDBL_EXPBIT0_WORD $word
42537_ACEOF
42538
42539
42540cat >>confdefs.h <<_ACEOF
42541#define LDBL_EXPBIT0_BIT $bit
42542_ACEOF
42543
42544      ;;
42545  esac
42546
42547
42548
42549  fi
42550
42551
42552
42553
42554
42555  ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
42556/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
42557   <wchar.h>.
42558   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
42559   before <wchar.h>.  */
42560#include <stddef.h>
42561#include <stdio.h>
42562#include <time.h>
42563#include <wchar.h>
42564#include <wctype.h>
42565
42566"
42567if test "x$ac_cv_have_decl_iswblank" = xyes; then :
42568  ac_have_decl=1
42569else
42570  ac_have_decl=0
42571fi
42572
42573cat >>confdefs.h <<_ACEOF
42574#define HAVE_DECL_ISWBLANK $ac_have_decl
42575_ACEOF
42576
42577  if test $ac_cv_func_iswblank = no; then
42578    HAVE_ISWBLANK=0
42579    if test $ac_cv_have_decl_iswblank = yes; then
42580      REPLACE_ISWBLANK=1
42581    fi
42582  fi
42583  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42584        :
42585  else
42586    if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
42587            :
42588    fi
42589  fi
42590
42591
42592  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42593    :
42594  else
42595    if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
42596
42597
42598
42599
42600
42601
42602
42603
42604  gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
42605
42606    fi
42607  fi
42608
42609
42610
42611
42612
42613          GNULIB_ISWBLANK=1
42614
42615
42616
42617
42618
42619$as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
42631  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42632        REPLACE_ISWDIGIT="$REPLACE_ISWCNTRL"
42633  else
42634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswdigit is ISO C compliant" >&5
42635$as_echo_n "checking whether iswdigit is ISO C compliant... " >&6; }
42636if ${gl_cv_func_iswdigit_works+:} false; then :
42637  $as_echo_n "(cached) " >&6
42638else
42639
42640                     case "$host_os" in
42641         # Guess no on FreeBSD, NetBSD, Solaris, native Windows.
42642         freebsd* | dragonfly* | netbsd* | solaris* | mingw*)
42643           gl_cv_func_iswdigit_works="guessing no" ;;
42644         # Guess yes otherwise.
42645         *) gl_cv_func_iswdigit_works="guessing yes" ;;
42646       esac
42647       if test $LOCALE_FR != none || test $LOCALE_JA != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_ZH_CN != none; then
42648         if test "$cross_compiling" = yes; then :
42649  :
42650else
42651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42652/* end confdefs.h.  */
42653
42654#include <locale.h>
42655#include <stdlib.h>
42656#include <string.h>
42657/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
42658   <wchar.h>.
42659   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42660   included before <wchar.h>.  */
42661#include <stddef.h>
42662#include <stdio.h>
42663#include <time.h>
42664#include <wchar.h>
42665#include <wctype.h>
42666
42667/* Returns the value of iswdigit for the multibyte character s[0..n-1].  */
42668static int
42669for_character (const char *s, size_t n)
42670{
42671  mbstate_t state;
42672  wchar_t wc;
42673  size_t ret;
42674
42675  memset (&state, '\0', sizeof (mbstate_t));
42676  wc = (wchar_t) 0xBADFACE;
42677  ret = mbrtowc (&wc, s, n, &state);
42678  if (ret != n)
42679    abort ();
42680
42681  return iswdigit (wc);
42682}
42683
42684int
42685main (int argc, char *argv[])
42686{
42687  int is;
42688  int result = 0;
42689
42690  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
42691    {
42692      /* This fails on mingw, MSVC 14.  */
42693      /* U+00B2 SUPERSCRIPT TWO */
42694      is = for_character ("\262", 1);
42695      if (!(is == 0))
42696        result |= 1;
42697    }
42698  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
42699    {
42700      /* This fails on NetBSD 8.0.  */
42701      /* U+FF11 FULLWIDTH DIGIT ONE */
42702      is = for_character ("\243\261", 2);
42703      if (!(is == 0))
42704        result |= 2;
42705    }
42706  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
42707    {
42708      /* This fails on FreeBSD 12, NetBSD 8.0, MSVC 14.  */
42709      /* U+0663 ARABIC-INDIC DIGIT THREE */
42710      is = for_character ("\331\243", 2);
42711      if (!(is == 0))
42712        result |= 4;
42713      /* This fails on FreeBSD 12, NetBSD 8.0, MSVC 14.  */
42714      /* U+FF11 FULLWIDTH DIGIT ONE */
42715      is = for_character ("\357\274\221", 3);
42716      if (!(is == 0))
42717        result |= 8;
42718    }
42719  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
42720    {
42721      /* This fails on NetBSD 8.0, Solaris 10, Solaris 11.4.  */
42722      /* U+FF11 FULLWIDTH DIGIT ONE */
42723      is = for_character ("\243\261", 2);
42724      if (!(is == 0))
42725        result |= 16;
42726    }
42727  return result;
42728}
42729_ACEOF
42730if ac_fn_c_try_run "$LINENO"; then :
42731  gl_cv_func_iswdigit_works=yes
42732else
42733  gl_cv_func_iswdigit_works=no
42734fi
42735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42736  conftest.$ac_objext conftest.beam conftest.$ac_ext
42737fi
42738
42739       fi
42740
42741fi
42742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswdigit_works" >&5
42743$as_echo "$gl_cv_func_iswdigit_works" >&6; }
42744    case "$gl_cv_func_iswdigit_works" in
42745      *yes) ;;
42746      *) REPLACE_ISWDIGIT=1 ;;
42747    esac
42748  fi
42749
42750  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42751    :
42752  else
42753    if test $REPLACE_ISWDIGIT = 1; then
42754
42755
42756
42757
42758
42759
42760
42761
42762  gl_LIBOBJS="$gl_LIBOBJS iswdigit.$ac_objext"
42763
42764    fi
42765  fi
42766
42767
42768
42769
42770
42771          GNULIB_ISWDIGIT=1
42772
42773
42774
42775
42776
42777$as_echo "#define GNULIB_TEST_ISWDIGIT 1" >>confdefs.h
42778
42779
42780
42781
42782
42783
42784
42785
42786
42787
42788  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42789        REPLACE_ISWXDIGIT="$REPLACE_ISWCNTRL"
42790  else
42791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswxdigit is ISO C compliant" >&5
42792$as_echo_n "checking whether iswxdigit is ISO C compliant... " >&6; }
42793if ${gl_cv_func_iswxdigit_works+:} false; then :
42794  $as_echo_n "(cached) " >&6
42795else
42796
42797                     case "$host_os" in
42798         # Guess no on FreeBSD, NetBSD, Solaris, native Windows.
42799         freebsd* | dragonfly* | netbsd* | solaris* | mingw*)
42800           gl_cv_func_iswxdigit_works="guessing no" ;;
42801         # Guess yes otherwise.
42802         *) gl_cv_func_iswxdigit_works="guessing yes" ;;
42803       esac
42804       if test $LOCALE_JA != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_ZH_CN != none; then
42805         if test "$cross_compiling" = yes; then :
42806  :
42807else
42808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42809/* end confdefs.h.  */
42810
42811#include <locale.h>
42812#include <stdlib.h>
42813#include <string.h>
42814/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
42815   <wchar.h>.
42816   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42817   included before <wchar.h>.  */
42818#include <stddef.h>
42819#include <stdio.h>
42820#include <time.h>
42821#include <wchar.h>
42822#include <wctype.h>
42823
42824/* Returns the value of iswxdigit for the multibyte character s[0..n-1].  */
42825static int
42826for_character (const char *s, size_t n)
42827{
42828  mbstate_t state;
42829  wchar_t wc;
42830  size_t ret;
42831
42832  memset (&state, '\0', sizeof (mbstate_t));
42833  wc = (wchar_t) 0xBADFACE;
42834  ret = mbrtowc (&wc, s, n, &state);
42835  if (ret != n)
42836    abort ();
42837
42838  return iswxdigit (wc);
42839}
42840
42841int
42842main (int argc, char *argv[])
42843{
42844  int is;
42845  int result = 0;
42846
42847  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
42848    {
42849      /* This fails on NetBSD 8.0.  */
42850      /* U+FF21 FULLWIDTH LATIN CAPITAL LETTER A */
42851      is = for_character ("\243\301", 2);
42852      if (!(is == 0))
42853        result |= 1;
42854    }
42855  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
42856    {
42857      /* This fails on FreeBSD 12.  */
42858      /* U+0663 ARABIC-INDIC DIGIT THREE */
42859      is = for_character ("\331\243", 2);
42860      if (!(is == 0))
42861        result |= 2;
42862      /* This fails on MSVC 14.  */
42863      /* U+FF21 FULLWIDTH LATIN CAPITAL LETTER A */
42864      is = for_character ("\357\274\241", 3);
42865      if (!(is == 0))
42866        result |= 4;
42867    }
42868  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
42869    {
42870      /* This fails on Solaris 10, Solaris 11.4.  */
42871      /* U+FF11 FULLWIDTH DIGIT ONE */
42872      is = for_character ("\243\261", 2);
42873      if (!(is == 0))
42874        result |= 8;
42875    }
42876  return result;
42877}
42878_ACEOF
42879if ac_fn_c_try_run "$LINENO"; then :
42880  gl_cv_func_iswxdigit_works=yes
42881else
42882  gl_cv_func_iswxdigit_works=no
42883fi
42884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42885  conftest.$ac_objext conftest.beam conftest.$ac_ext
42886fi
42887
42888       fi
42889
42890fi
42891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswxdigit_works" >&5
42892$as_echo "$gl_cv_func_iswxdigit_works" >&6; }
42893    case "$gl_cv_func_iswxdigit_works" in
42894      *yes) ;;
42895      *) REPLACE_ISWXDIGIT=1 ;;
42896    esac
42897  fi
42898
42899  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42900    :
42901  else
42902    if test $REPLACE_ISWXDIGIT = 1; then
42903
42904
42905
42906
42907
42908
42909
42910
42911  gl_LIBOBJS="$gl_LIBOBJS iswxdigit.$ac_objext"
42912
42913    fi
42914  fi
42915
42916
42917
42918
42919
42920          GNULIB_ISWXDIGIT=1
42921
42922
42923
42924
42925
42926$as_echo "#define GNULIB_TEST_ISWXDIGIT 1" >>confdefs.h
42927
42928
42929
42930
42931
42932
42933
42934
42935
42936
42937
42938
42939
42940
42941
42942
42943
42944     if test $gl_cv_have_include_next = yes; then
42945       gl_cv_next_langinfo_h='<'langinfo.h'>'
42946     else
42947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
42948$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
42949if ${gl_cv_next_langinfo_h+:} false; then :
42950  $as_echo_n "(cached) " >&6
42951else
42952
42953             if test $ac_cv_header_langinfo_h = yes; then
42954
42955
42956
42957
42958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42959/* end confdefs.h.  */
42960#include <langinfo.h>
42961_ACEOF
42962                case "$host_os" in
42963    aix*) gl_absname_cpp="$ac_cpp -C" ;;
42964    *)    gl_absname_cpp="$ac_cpp" ;;
42965  esac
42966
42967  case "$host_os" in
42968    mingw*)
42969                                          gl_dirsep_regex='[/\\]'
42970      ;;
42971    *)
42972      gl_dirsep_regex='\/'
42973      ;;
42974  esac
42975      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42976  gl_header_literal_regex=`echo 'langinfo.h' \
42977                           | sed -e "$gl_make_literal_regex_sed"`
42978  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42979      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42980      s|^/[^/]|//&|
42981      p
42982      q
42983    }'
42984
42985        gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42986  sed -n "$gl_absolute_header_sed"`
42987
42988           gl_header=$gl_cv_absolute_langinfo_h
42989           gl_cv_next_langinfo_h='"'$gl_header'"'
42990          else
42991               gl_cv_next_langinfo_h='<'langinfo.h'>'
42992             fi
42993
42994
42995fi
42996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
42997$as_echo "$gl_cv_next_langinfo_h" >&6; }
42998     fi
42999     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
43000
43001     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43002       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43003       gl_next_as_first_directive='<'langinfo.h'>'
43004     else
43005       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43006       gl_next_as_first_directive=$gl_cv_next_langinfo_h
43007     fi
43008     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
43009
43010
43011
43012
43013
43014    HAVE_LANGINFO_CODESET=0
43015  HAVE_LANGINFO_T_FMT_AMPM=0
43016  HAVE_LANGINFO_ALTMON=0
43017  HAVE_LANGINFO_ERA=0
43018  HAVE_LANGINFO_YESEXPR=0
43019
43020  if test $ac_cv_header_langinfo_h = yes; then
43021    HAVE_LANGINFO_H=1
43022                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
43023$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
43024if ${gl_cv_header_langinfo_codeset+:} false; then :
43025  $as_echo_n "(cached) " >&6
43026else
43027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43028/* end confdefs.h.  */
43029#include <langinfo.h>
43030int a = CODESET;
43031
43032int
43033main ()
43034{
43035
43036  ;
43037  return 0;
43038}
43039_ACEOF
43040if ac_fn_c_try_compile "$LINENO"; then :
43041  gl_cv_header_langinfo_codeset=yes
43042else
43043  gl_cv_header_langinfo_codeset=no
43044fi
43045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43046
43047fi
43048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
43049$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
43050    if test $gl_cv_header_langinfo_codeset = yes; then
43051      HAVE_LANGINFO_CODESET=1
43052    fi
43053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
43054$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
43055if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
43056  $as_echo_n "(cached) " >&6
43057else
43058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43059/* end confdefs.h.  */
43060#include <langinfo.h>
43061int a = T_FMT_AMPM;
43062
43063int
43064main ()
43065{
43066
43067  ;
43068  return 0;
43069}
43070_ACEOF
43071if ac_fn_c_try_compile "$LINENO"; then :
43072  gl_cv_header_langinfo_t_fmt_ampm=yes
43073else
43074  gl_cv_header_langinfo_t_fmt_ampm=no
43075fi
43076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43077
43078fi
43079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
43080$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
43081    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
43082      HAVE_LANGINFO_T_FMT_AMPM=1
43083    fi
43084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5
43085$as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; }
43086if ${gl_cv_header_langinfo_altmon+:} false; then :
43087  $as_echo_n "(cached) " >&6
43088else
43089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43090/* end confdefs.h.  */
43091#include <langinfo.h>
43092int a = ALTMON_1;
43093
43094int
43095main ()
43096{
43097
43098  ;
43099  return 0;
43100}
43101_ACEOF
43102if ac_fn_c_try_compile "$LINENO"; then :
43103  gl_cv_header_langinfo_altmon=yes
43104else
43105  gl_cv_header_langinfo_altmon=no
43106fi
43107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43108
43109fi
43110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5
43111$as_echo "$gl_cv_header_langinfo_altmon" >&6; }
43112    if test $gl_cv_header_langinfo_altmon = yes; then
43113      HAVE_LANGINFO_ALTMON=1
43114    fi
43115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
43116$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
43117if ${gl_cv_header_langinfo_era+:} false; then :
43118  $as_echo_n "(cached) " >&6
43119else
43120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43121/* end confdefs.h.  */
43122#include <langinfo.h>
43123int a = ERA;
43124
43125int
43126main ()
43127{
43128
43129  ;
43130  return 0;
43131}
43132_ACEOF
43133if ac_fn_c_try_compile "$LINENO"; then :
43134  gl_cv_header_langinfo_era=yes
43135else
43136  gl_cv_header_langinfo_era=no
43137fi
43138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43139
43140fi
43141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
43142$as_echo "$gl_cv_header_langinfo_era" >&6; }
43143    if test $gl_cv_header_langinfo_era = yes; then
43144      HAVE_LANGINFO_ERA=1
43145    fi
43146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
43147$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
43148if ${gl_cv_header_langinfo_yesexpr+:} false; then :
43149  $as_echo_n "(cached) " >&6
43150else
43151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43152/* end confdefs.h.  */
43153#include <langinfo.h>
43154int a = YESEXPR;
43155
43156int
43157main ()
43158{
43159
43160  ;
43161  return 0;
43162}
43163_ACEOF
43164if ac_fn_c_try_compile "$LINENO"; then :
43165  gl_cv_header_langinfo_yesexpr=yes
43166else
43167  gl_cv_header_langinfo_yesexpr=no
43168fi
43169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43170
43171fi
43172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
43173$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
43174    if test $gl_cv_header_langinfo_yesexpr = yes; then
43175      HAVE_LANGINFO_YESEXPR=1
43176    fi
43177  else
43178    HAVE_LANGINFO_H=0
43179  fi
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
43194$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
43195if ${gl_cv_c___inline+:} false; then :
43196  $as_echo_n "(cached) " >&6
43197else
43198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43199/* end confdefs.h.  */
43200typedef int foo_t;
43201           static __inline foo_t foo (void) { return 0; }
43202int
43203main ()
43204{
43205return foo ();
43206  ;
43207  return 0;
43208}
43209_ACEOF
43210if ac_fn_c_try_compile "$LINENO"; then :
43211  gl_cv_c___inline=yes
43212else
43213  gl_cv_c___inline=no
43214fi
43215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43216fi
43217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
43218$as_echo "$gl_cv_c___inline" >&6; }
43219  if test $gl_cv_c___inline = yes; then
43220
43221$as_echo "#define HAVE___INLINE 1" >>confdefs.h
43222
43223  fi
43224
43225
43226
43227
43228
43229    LOCALCHARSET_TESTS_ENVIRONMENT=
43230
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240
43241  case "$host_os" in
43242    solaris*)
43243
43244$as_echo "#define _LCONV_C99 1" >>confdefs.h
43245
43246      ;;
43247  esac
43248
43249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
43250$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
43251if ${gl_cv_header_locale_h_posix2001+:} false; then :
43252  $as_echo_n "(cached) " >&6
43253else
43254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43255/* end confdefs.h.  */
43256#include <locale.h>
43257            int x = LC_MESSAGES;
43258            int y = sizeof (((struct lconv *) 0)->decimal_point);
43259int
43260main ()
43261{
43262
43263  ;
43264  return 0;
43265}
43266_ACEOF
43267if ac_fn_c_try_compile "$LINENO"; then :
43268  gl_cv_header_locale_h_posix2001=yes
43269else
43270  gl_cv_header_locale_h_posix2001=no
43271fi
43272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43273fi
43274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
43275$as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
43276
43277          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
43278$as_echo_n "checking whether struct lconv is properly defined... " >&6; }
43279if ${gl_cv_sys_struct_lconv_ok+:} false; then :
43280  $as_echo_n "(cached) " >&6
43281else
43282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43283/* end confdefs.h.  */
43284#include <locale.h>
43285            struct lconv l;
43286            int x = sizeof (l.decimal_point);
43287            int y = sizeof (l.int_p_cs_precedes);
43288int
43289main ()
43290{
43291
43292  ;
43293  return 0;
43294}
43295_ACEOF
43296if ac_fn_c_try_compile "$LINENO"; then :
43297  gl_cv_sys_struct_lconv_ok=yes
43298else
43299  gl_cv_sys_struct_lconv_ok=no
43300fi
43301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43302
43303fi
43304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
43305$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
43306  if test $gl_cv_sys_struct_lconv_ok = no; then
43307            case "$host_os" in
43308      mingw*)
43309        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43310/* end confdefs.h.  */
43311
43312#ifdef _MSC_VER
43313 Special
43314#endif
43315
43316_ACEOF
43317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43318  $EGREP "Special" >/dev/null 2>&1; then :
43319
43320else
43321  REPLACE_STRUCT_LCONV=1
43322fi
43323rm -f conftest*
43324
43325        ;;
43326      *) REPLACE_STRUCT_LCONV=1 ;;
43327    esac
43328  fi
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338     if test $gl_cv_have_include_next = yes; then
43339       gl_cv_next_locale_h='<'locale.h'>'
43340     else
43341       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
43342$as_echo_n "checking absolute name of <locale.h>... " >&6; }
43343if ${gl_cv_next_locale_h+:} false; then :
43344  $as_echo_n "(cached) " >&6
43345else
43346
43347
43348
43349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43350/* end confdefs.h.  */
43351#include <locale.h>
43352_ACEOF
43353                case "$host_os" in
43354    aix*) gl_absname_cpp="$ac_cpp -C" ;;
43355    *)    gl_absname_cpp="$ac_cpp" ;;
43356  esac
43357
43358  case "$host_os" in
43359    mingw*)
43360                                          gl_dirsep_regex='[/\\]'
43361      ;;
43362    *)
43363      gl_dirsep_regex='\/'
43364      ;;
43365  esac
43366      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43367  gl_header_literal_regex=`echo 'locale.h' \
43368                           | sed -e "$gl_make_literal_regex_sed"`
43369  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43370      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43371      s|^/[^/]|//&|
43372      p
43373      q
43374    }'
43375
43376        gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43377  sed -n "$gl_absolute_header_sed"`
43378
43379           gl_header=$gl_cv_absolute_locale_h
43380           gl_cv_next_locale_h='"'$gl_header'"'
43381
43382
43383fi
43384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
43385$as_echo "$gl_cv_next_locale_h" >&6; }
43386     fi
43387     NEXT_LOCALE_H=$gl_cv_next_locale_h
43388
43389     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43390       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43391       gl_next_as_first_directive='<'locale.h'>'
43392     else
43393       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43394       gl_next_as_first_directive=$gl_cv_next_locale_h
43395     fi
43396     NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410  if test $REPLACE_STRUCT_LCONV = 1; then
43411    REPLACE_LOCALECONV=1
43412  fi
43413
43414  if test $REPLACE_LOCALECONV = 1; then
43415
43416
43417
43418
43419
43420
43421
43422
43423  gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
43424
43425
43426  ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
43427"
43428if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
43429
43430cat >>confdefs.h <<_ACEOF
43431#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
43432_ACEOF
43433
43434
43435fi
43436
43437
43438  fi
43439
43440
43441
43442
43443
43444          GNULIB_LOCALECONV=1
43445
43446
43447
43448
43449
43450$as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
43451
43452
43453
43454
43455
43456
43457
43458
43459
43460
43461  if test $HAVE_LOCALE_T = 1; then
43462
43463    gl_func_newlocale="$ac_cv_func_newlocale"
43464    gl_func_duplocale="$ac_cv_func_duplocale"
43465    gl_func_freelocale="$ac_cv_func_freelocale"
43466  else
43467            gl_func_newlocale=no
43468    gl_func_duplocale=no
43469    gl_func_freelocale=no
43470  fi
43471  if test $gl_func_newlocale != yes; then
43472    HAVE_NEWLOCALE=0
43473  fi
43474  if test $gl_func_duplocale != yes; then
43475    HAVE_DUPLOCALE=0
43476  fi
43477  if test $gl_func_freelocale != yes; then
43478    HAVE_FREELOCALE=0
43479  fi
43480  if test $gt_nameless_locales = yes; then
43481    REPLACE_NEWLOCALE=1
43482    REPLACE_DUPLOCALE=1
43483    REPLACE_FREELOCALE=1
43484  fi
43485
43486
43487
43488
43489
43490
43491          GNULIB_LOCALENAME=1
43492
43493
43494
43495
43496
43497$as_echo "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h
43498
43499
43500
43501
43502
43503  if test "$gl_threads_api" = posix; then
43504    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
43505    # pthread_rwlock_* functions.
43506    has_rwlock=false
43507    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
43508"
43509if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
43510  has_rwlock=true
43511
43512$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
43513
43514fi
43515
43516    if $has_rwlock; then
43517
43518
43519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
43520$as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
43521if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
43522  $as_echo_n "(cached) " >&6
43523else
43524  save_LIBS="$LIBS"
43525     LIBS="$LIBS $LIBMULTITHREAD"
43526     if test "$cross_compiling" = yes; then :
43527  case "$host_os" in
43528                         # Guess no on glibc systems.
43529          *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
43530                         # Guess no on musl systems.
43531          *-musl*)       gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
43532                         # Guess no on bionic systems.
43533          *-android*)    gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
43534                         # Guess yes on native Windows with the mingw-w64 winpthreads library.
43535                         # Guess no on native Windows with the gnulib windows-rwlock module.
43536          mingw*)        if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
43537                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
43538                         else
43539                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
43540                         fi
43541                         ;;
43542                         # If we don't know, obey --enable-cross-guesses.
43543          *)             gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
43544         esac
43545
43546else
43547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43548/* end confdefs.h.  */
43549
43550#include <errno.h>
43551#include <pthread.h>
43552#include <stdlib.h>
43553#include <unistd.h>
43554
43555#define SUCCEED() exit (0)
43556#define FAILURE() exit (1)
43557#define UNEXPECTED(n) (exit (10 + (n)))
43558
43559/* The main thread creates the waiting writer and the requesting reader threads
43560   in the default way; this guarantees that they have the same priority.
43561   We can reuse the main thread as first reader thread.  */
43562
43563static pthread_rwlock_t lock;
43564static pthread_t reader1;
43565static pthread_t writer;
43566static pthread_t reader2;
43567static pthread_t timer;
43568/* Used to pass control from writer to reader2 and from reader2 to timer,
43569   as in a relay race.
43570   Passing control from one running thread to another running thread
43571   is most likely faster than to create the second thread.  */
43572static pthread_mutex_t baton;
43573
43574static void *
43575timer_func (void *ignored)
43576{
43577  /* Step 13 (can be before or after step 12):
43578     The timer thread takes the baton, then waits a moment to make sure
43579     it can tell whether the second reader thread is blocked at step 12.  */
43580  if (pthread_mutex_lock (&baton))
43581    UNEXPECTED (13);
43582  usleep (100000);
43583  /* By the time we get here, it's clear that the second reader thread is
43584     blocked at step 12.  This is the desired behaviour.  */
43585  SUCCEED ();
43586}
43587
43588static void *
43589reader2_func (void *ignored)
43590{
43591  int err;
43592
43593  /* Step 8 (can be before or after step 7):
43594     The second reader thread takes the baton, then waits a moment to make sure
43595     the writer thread has reached step 7.  */
43596  if (pthread_mutex_lock (&baton))
43597    UNEXPECTED (8);
43598  usleep (100000);
43599  /* Step 9: The second reader thread requests the lock.  */
43600  err = pthread_rwlock_tryrdlock (&lock);
43601  if (err == 0)
43602    FAILURE ();
43603  else if (err != EBUSY)
43604    UNEXPECTED (9);
43605  /* Step 10: Launch a timer, to test whether the next call blocks.  */
43606  if (pthread_create (&timer, NULL, timer_func, NULL))
43607    UNEXPECTED (10);
43608  /* Step 11: Release the baton.  */
43609  if (pthread_mutex_unlock (&baton))
43610    UNEXPECTED (11);
43611  /* Step 12: The second reader thread requests the lock.  */
43612  err = pthread_rwlock_rdlock (&lock);
43613  if (err == 0)
43614    FAILURE ();
43615  else
43616    UNEXPECTED (12);
43617}
43618
43619static void *
43620writer_func (void *ignored)
43621{
43622  /* Step 4: Take the baton, so that the second reader thread does not go ahead
43623     too early.  */
43624  if (pthread_mutex_lock (&baton))
43625    UNEXPECTED (4);
43626  /* Step 5: Create the second reader thread.  */
43627  if (pthread_create (&reader2, NULL, reader2_func, NULL))
43628    UNEXPECTED (5);
43629  /* Step 6: Release the baton.  */
43630  if (pthread_mutex_unlock (&baton))
43631    UNEXPECTED (6);
43632  /* Step 7: The writer thread requests the lock.  */
43633  if (pthread_rwlock_wrlock (&lock))
43634    UNEXPECTED (7);
43635  return NULL;
43636}
43637
43638int
43639main ()
43640{
43641  reader1 = pthread_self ();
43642
43643  /* Step 1: The main thread initializes the lock and the baton.  */
43644  if (pthread_rwlock_init (&lock, NULL))
43645    UNEXPECTED (1);
43646  if (pthread_mutex_init (&baton, NULL))
43647    UNEXPECTED (1);
43648  /* Step 2: The main thread acquires the lock as a reader.  */
43649  if (pthread_rwlock_rdlock (&lock))
43650    UNEXPECTED (2);
43651  /* Step 3: Create the writer thread.  */
43652  if (pthread_create (&writer, NULL, writer_func, NULL))
43653    UNEXPECTED (3);
43654  /* Job done.  Go to sleep.  */
43655  for (;;)
43656    {
43657      sleep (1);
43658    }
43659}
43660
43661_ACEOF
43662if ac_fn_c_try_run "$LINENO"; then :
43663  gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
43664else
43665  gl_cv_pthread_rwlock_rdlock_prefer_writer=no
43666fi
43667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43668  conftest.$ac_objext conftest.beam conftest.$ac_ext
43669fi
43670
43671     LIBS="$save_LIBS"
43672
43673fi
43674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
43675$as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
43676  case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
43677    *yes)
43678
43679$as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
43680
43681      ;;
43682  esac
43683
43684    fi
43685    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
43686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43687/* end confdefs.h.  */
43688
43689      #include <pthread.h>
43690int
43691main ()
43692{
43693
43694#if __FreeBSD__ == 4
43695error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
43696#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
43697       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
43698error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
43699#else
43700int x = (int)PTHREAD_MUTEX_RECURSIVE;
43701return !x;
43702#endif
43703
43704  ;
43705  return 0;
43706}
43707_ACEOF
43708if ac_fn_c_try_compile "$LINENO"; then :
43709
43710$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
43711
43712fi
43713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43714  fi
43715  :
43716
43717
43718
43719cat >>confdefs.h <<_ACEOF
43720#define GNULIB_LOCK 1
43721_ACEOF
43722
43723
43724
43725
43726
43727
43728
43729
43730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
43731$as_echo_n "checking whether lseek detects pipes... " >&6; }
43732if ${gl_cv_func_lseek_pipe+:} false; then :
43733  $as_echo_n "(cached) " >&6
43734else
43735  case "$host_os" in
43736       mingw*)
43737                                                               gl_cv_func_lseek_pipe=no
43738         ;;
43739       *)
43740         if test $cross_compiling = no; then
43741           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43742/* end confdefs.h.  */
43743
43744#include <sys/types.h> /* for off_t */
43745#include <stdio.h> /* for SEEK_CUR */
43746#if HAVE_UNISTD_H
43747# include <unistd.h>
43748#else /* on Windows with MSVC */
43749# include <io.h>
43750#endif
43751
43752int
43753main ()
43754{
43755
43756  /* Exit with success only if stdin is seekable.  */
43757  return lseek (0, (off_t)0, SEEK_CUR) < 0;
43758
43759  ;
43760  return 0;
43761}
43762_ACEOF
43763if ac_fn_c_try_link "$LINENO"; then :
43764  if test -s conftest$ac_exeext \
43765                 && ./conftest$ac_exeext < conftest.$ac_ext \
43766                 && test 1 = "`echo hi \
43767                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
43768                gl_cv_func_lseek_pipe=yes
43769              else
43770                gl_cv_func_lseek_pipe=no
43771              fi
43772
43773else
43774  gl_cv_func_lseek_pipe=no
43775fi
43776rm -f core conftest.err conftest.$ac_objext \
43777    conftest$ac_exeext conftest.$ac_ext
43778         else
43779           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43780/* end confdefs.h.  */
43781
43782#if defined __BEOS__
43783/* BeOS mistakenly return 0 when trying to seek on pipes.  */
43784  Choke me.
43785#endif
43786_ACEOF
43787if ac_fn_c_try_compile "$LINENO"; then :
43788  gl_cv_func_lseek_pipe=yes
43789else
43790  gl_cv_func_lseek_pipe=no
43791fi
43792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43793         fi
43794         ;;
43795     esac
43796
43797fi
43798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
43799$as_echo "$gl_cv_func_lseek_pipe" >&6; }
43800  if test $gl_cv_func_lseek_pipe = no; then
43801    REPLACE_LSEEK=1
43802
43803$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
43804
43805  fi
43806
43807
43808  if test $WINDOWS_64_BIT_OFF_T = 1; then
43809    REPLACE_LSEEK=1
43810  fi
43811
43812  if test $REPLACE_LSEEK = 1; then
43813
43814
43815
43816
43817
43818
43819
43820
43821  gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
43822
43823  fi
43824
43825
43826
43827
43828
43829          GNULIB_LSEEK=1
43830
43831
43832
43833
43834
43835$as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
43836
43837
43838
43839
43840
43841
43842
43843  if test $ac_cv_func_lstat = yes; then
43844
43845    case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
43846      solaris* | *no)
43847        REPLACE_LSTAT=1
43848        ;;
43849    esac
43850  else
43851    HAVE_LSTAT=0
43852  fi
43853
43854  if test $REPLACE_LSTAT = 1; then
43855
43856
43857
43858
43859
43860
43861
43862
43863  gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
43864
43865    :
43866  fi
43867
43868
43869
43870
43871
43872          GNULIB_LSTAT=1
43873
43874
43875
43876
43877
43878$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
43879
43880
43881
43882
43883
43884
43885  if test $gl_cv_func_malloc_posix = yes; then
43886
43887$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
43888
43889  else
43890    REPLACE_MALLOC=1
43891  fi
43892
43893  if test $REPLACE_MALLOC = 1; then
43894
43895
43896
43897
43898
43899
43900
43901
43902  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
43903
43904  fi
43905
43906
43907
43908
43909
43910          GNULIB_MALLOC_POSIX=1
43911
43912
43913
43914
43915
43916$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
43917
43918
43919
43920
43921
43922
43923
43924
43925
43926
43927
43928
43929
43930
43931
43932
43933
43934     if test $gl_cv_have_include_next = yes; then
43935       gl_cv_next_math_h='<'math.h'>'
43936     else
43937       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
43938$as_echo_n "checking absolute name of <math.h>... " >&6; }
43939if ${gl_cv_next_math_h+:} false; then :
43940  $as_echo_n "(cached) " >&6
43941else
43942
43943             if test $ac_cv_header_math_h = yes; then
43944
43945
43946
43947
43948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43949/* end confdefs.h.  */
43950#include <math.h>
43951_ACEOF
43952                case "$host_os" in
43953    aix*) gl_absname_cpp="$ac_cpp -C" ;;
43954    *)    gl_absname_cpp="$ac_cpp" ;;
43955  esac
43956
43957  case "$host_os" in
43958    mingw*)
43959                                          gl_dirsep_regex='[/\\]'
43960      ;;
43961    *)
43962      gl_dirsep_regex='\/'
43963      ;;
43964  esac
43965      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43966  gl_header_literal_regex=`echo 'math.h' \
43967                           | sed -e "$gl_make_literal_regex_sed"`
43968  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43969      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43970      s|^/[^/]|//&|
43971      p
43972      q
43973    }'
43974
43975        gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43976  sed -n "$gl_absolute_header_sed"`
43977
43978           gl_header=$gl_cv_absolute_math_h
43979           gl_cv_next_math_h='"'$gl_header'"'
43980          else
43981               gl_cv_next_math_h='<'math.h'>'
43982             fi
43983
43984
43985fi
43986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
43987$as_echo "$gl_cv_next_math_h" >&6; }
43988     fi
43989     NEXT_MATH_H=$gl_cv_next_math_h
43990
43991     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43992       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43993       gl_next_as_first_directive='<'math.h'>'
43994     else
43995       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43996       gl_next_as_first_directive=$gl_cv_next_math_h
43997     fi
43998     NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
43999
44000
44001
44002
44003
44004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
44005$as_echo_n "checking whether NAN macro works... " >&6; }
44006if ${gl_cv_header_math_nan_works+:} false; then :
44007  $as_echo_n "(cached) " >&6
44008else
44009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44010/* end confdefs.h.  */
44011#include <math.h>
44012int
44013main ()
44014{
44015/* Solaris 10 has a broken definition of NAN.  Other platforms
44016        fail to provide NAN, or provide it only in C99 mode; this
44017        test only needs to fail when NAN is provided but wrong.  */
44018         float f = 1.0f;
44019#ifdef NAN
44020         f = NAN;
44021#endif
44022         return f == 0;
44023  ;
44024  return 0;
44025}
44026_ACEOF
44027if ac_fn_c_try_compile "$LINENO"; then :
44028  gl_cv_header_math_nan_works=yes
44029else
44030  gl_cv_header_math_nan_works=no
44031fi
44032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44033fi
44034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
44035$as_echo "$gl_cv_header_math_nan_works" >&6; }
44036  if test $gl_cv_header_math_nan_works = no; then
44037    REPLACE_NAN=1
44038  fi
44039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
44040$as_echo_n "checking whether HUGE_VAL works... " >&6; }
44041if ${gl_cv_header_math_huge_val_works+:} false; then :
44042  $as_echo_n "(cached) " >&6
44043else
44044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44045/* end confdefs.h.  */
44046#include <math.h>
44047int
44048main ()
44049{
44050/* Solaris 10 has a broken definition of HUGE_VAL.  */
44051         double d = HUGE_VAL;
44052         return d == 0;
44053  ;
44054  return 0;
44055}
44056_ACEOF
44057if ac_fn_c_try_compile "$LINENO"; then :
44058  gl_cv_header_math_huge_val_works=yes
44059else
44060  gl_cv_header_math_huge_val_works=no
44061fi
44062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44063fi
44064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
44065$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
44066  if test $gl_cv_header_math_huge_val_works = no; then
44067    REPLACE_HUGE_VAL=1
44068  fi
44069
44070
44071
44072
44073
44074
44075
44076
44077
44078
44079  :
44080
44081
44082
44083
44084
44085
44086
44087
44088
44089
44090
44091
44092
44093
44094        if case "$host_os" in
44095       mingw*) true ;;
44096       *) test $ac_cv_func_mbsinit = yes ;;
44097     esac \
44098    && test $ac_cv_func_mbrtowc = yes; then
44099
44100
44101
44102
44103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
44104$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
44105if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
44106  $as_echo_n "(cached) " >&6
44107else
44108
44109                  case "$host_os" in
44110                     # Guess no on AIX and OSF/1.
44111        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
44112                     # Guess yes otherwise.
44113        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
44114      esac
44115      if test $LOCALE_JA != none; then
44116        if test "$cross_compiling" = yes; then :
44117  :
44118else
44119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44120/* end confdefs.h.  */
44121
44122#include <locale.h>
44123#include <string.h>
44124/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44125   <wchar.h>.
44126   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44127   included before <wchar.h>.  */
44128#include <stddef.h>
44129#include <stdio.h>
44130#include <time.h>
44131#include <wchar.h>
44132int main ()
44133{
44134  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
44135    {
44136      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
44137      mbstate_t state;
44138      wchar_t wc;
44139
44140      memset (&state, '\0', sizeof (mbstate_t));
44141      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
44142        if (mbsinit (&state))
44143          return 2;
44144    }
44145  return 0;
44146}
44147_ACEOF
44148if ac_fn_c_try_run "$LINENO"; then :
44149  gl_cv_func_mbrtowc_incomplete_state=yes
44150else
44151  gl_cv_func_mbrtowc_incomplete_state=no
44152fi
44153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44154  conftest.$ac_objext conftest.beam conftest.$ac_ext
44155fi
44156
44157      else
44158        if test $LOCALE_FR_UTF8 != none; then
44159          if test "$cross_compiling" = yes; then :
44160  :
44161else
44162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44163/* end confdefs.h.  */
44164
44165#include <locale.h>
44166#include <string.h>
44167/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44168   <wchar.h>.
44169   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44170   included before <wchar.h>.  */
44171#include <stddef.h>
44172#include <stdio.h>
44173#include <time.h>
44174#include <wchar.h>
44175int main ()
44176{
44177  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
44178    {
44179      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
44180      mbstate_t state;
44181      wchar_t wc;
44182
44183      memset (&state, '\0', sizeof (mbstate_t));
44184      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
44185        if (mbsinit (&state))
44186          return 2;
44187    }
44188  return 0;
44189}
44190_ACEOF
44191if ac_fn_c_try_run "$LINENO"; then :
44192  gl_cv_func_mbrtowc_incomplete_state=yes
44193else
44194  gl_cv_func_mbrtowc_incomplete_state=no
44195fi
44196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44197  conftest.$ac_objext conftest.beam conftest.$ac_ext
44198fi
44199
44200        fi
44201      fi
44202
44203fi
44204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
44205$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
44206
44207
44208
44209
44210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
44211$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
44212if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
44213  $as_echo_n "(cached) " >&6
44214else
44215
44216                  case "$host_os" in
44217                    # Guess no on Solaris 8.
44218        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
44219                    # Guess yes otherwise.
44220        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
44221      esac
44222      if test $LOCALE_ZH_CN != none; then
44223        if test "$cross_compiling" = yes; then :
44224  :
44225else
44226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44227/* end confdefs.h.  */
44228
44229#include <locale.h>
44230#include <stdlib.h>
44231#include <string.h>
44232/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44233   <wchar.h>.
44234   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44235   included before <wchar.h>.  */
44236#include <stddef.h>
44237#include <stdio.h>
44238#include <time.h>
44239#include <wchar.h>
44240int main ()
44241{
44242  /* This fails on Solaris 8:
44243     mbrtowc returns 2, and sets wc to 0x00F0.
44244     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
44245  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
44246    {
44247      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
44248      mbstate_t state;
44249      wchar_t wc;
44250
44251      memset (&state, '\0', sizeof (mbstate_t));
44252      if (mbrtowc (&wc, input + 3, 6, &state) != 4
44253          && mbtowc (&wc, input + 3, 6) == 4)
44254        return 2;
44255    }
44256  return 0;
44257}
44258_ACEOF
44259if ac_fn_c_try_run "$LINENO"; then :
44260  gl_cv_func_mbrtowc_sanitycheck=yes
44261else
44262  gl_cv_func_mbrtowc_sanitycheck=no
44263fi
44264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44265  conftest.$ac_objext conftest.beam conftest.$ac_ext
44266fi
44267
44268      fi
44269
44270fi
44271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
44272$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
44273
44274    REPLACE_MBSTATE_T=0
44275    case "$gl_cv_func_mbrtowc_incomplete_state" in
44276      *yes) ;;
44277      *) REPLACE_MBSTATE_T=1 ;;
44278    esac
44279    case "$gl_cv_func_mbrtowc_sanitycheck" in
44280      *yes) ;;
44281      *) REPLACE_MBSTATE_T=1 ;;
44282    esac
44283  else
44284    REPLACE_MBSTATE_T=1
44285  fi
44286
44287
44288
44289  if test $ac_cv_func_mbrtowc = no; then
44290    HAVE_MBRTOWC=0
44291    ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
44292/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44293   <wchar.h>.
44294   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44295   included before <wchar.h>.  */
44296#include <stddef.h>
44297#include <stdio.h>
44298#include <time.h>
44299#include <wchar.h>
44300
44301"
44302if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
44303  ac_have_decl=1
44304else
44305  ac_have_decl=0
44306fi
44307
44308cat >>confdefs.h <<_ACEOF
44309#define HAVE_DECL_MBRTOWC $ac_have_decl
44310_ACEOF
44311
44312    if test $ac_cv_have_decl_mbrtowc = yes; then
44313                        REPLACE_MBRTOWC=1
44314    fi
44315  else
44316    if test $REPLACE_MBSTATE_T = 1; then
44317      REPLACE_MBRTOWC=1
44318    else
44319
44320
44321
44322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
44323$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
44324if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
44325  $as_echo_n "(cached) " >&6
44326else
44327
44328                  case "$host_os" in
44329                  # Guess no on Solaris.
44330        solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
44331                  # Guess yes otherwise.
44332        *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
44333      esac
44334      if test $LOCALE_FR_UTF8 != none; then
44335        if test "$cross_compiling" = yes; then :
44336  :
44337else
44338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44339/* end confdefs.h.  */
44340
44341#include <locale.h>
44342#include <stdlib.h>
44343#include <string.h>
44344/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44345   <wchar.h>.
44346   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44347   included before <wchar.h>.  */
44348#include <stddef.h>
44349#include <stdio.h>
44350#include <time.h>
44351#include <wchar.h>
44352int main ()
44353{
44354  int result = 0;
44355
44356  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
44357    {
44358      char input[] = "\303\237er";
44359      mbstate_t state;
44360      wchar_t wc;
44361      size_t ret;
44362
44363      memset (&state, '\0', sizeof (mbstate_t));
44364      wc = (wchar_t) 0xBADFACE;
44365      ret = mbrtowc (&wc, input, 5, &state);
44366      if (ret != 2)
44367        result |= 1;
44368      if (!mbsinit (&state))
44369        result |= 2;
44370
44371      memset (&state, '\0', sizeof (mbstate_t));
44372      ret = mbrtowc (NULL, input, 5, &state);
44373      if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
44374        result |= 4;
44375      if (!mbsinit (&state))
44376        result |= 8;
44377    }
44378  return result;
44379}
44380_ACEOF
44381if ac_fn_c_try_run "$LINENO"; then :
44382  gl_cv_func_mbrtowc_null_arg1=yes
44383else
44384  gl_cv_func_mbrtowc_null_arg1=no
44385fi
44386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44387  conftest.$ac_objext conftest.beam conftest.$ac_ext
44388fi
44389
44390      fi
44391
44392fi
44393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
44394$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
44395
44396
44397
44398
44399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
44400$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
44401if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
44402  $as_echo_n "(cached) " >&6
44403else
44404
44405                  case "$host_os" in
44406              # Guess no on OSF/1.
44407        osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
44408              # Guess yes otherwise.
44409        *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
44410      esac
44411      if test $LOCALE_FR_UTF8 != none; then
44412        if test "$cross_compiling" = yes; then :
44413  :
44414else
44415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44416/* end confdefs.h.  */
44417
44418#include <locale.h>
44419#include <string.h>
44420/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44421   <wchar.h>.
44422   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44423   included before <wchar.h>.  */
44424#include <stddef.h>
44425#include <stdio.h>
44426#include <time.h>
44427#include <wchar.h>
44428int main ()
44429{
44430  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
44431    {
44432      mbstate_t state;
44433      wchar_t wc;
44434      int ret;
44435
44436      memset (&state, '\0', sizeof (mbstate_t));
44437      wc = (wchar_t) 0xBADFACE;
44438      mbrtowc (&wc, NULL, 5, &state);
44439      /* Check that wc was not modified.  */
44440      if (wc != (wchar_t) 0xBADFACE)
44441        return 2;
44442    }
44443  return 0;
44444}
44445_ACEOF
44446if ac_fn_c_try_run "$LINENO"; then :
44447  gl_cv_func_mbrtowc_null_arg2=yes
44448else
44449  gl_cv_func_mbrtowc_null_arg2=no
44450fi
44451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44452  conftest.$ac_objext conftest.beam conftest.$ac_ext
44453fi
44454
44455      fi
44456
44457fi
44458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
44459$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
44460
44461
44462
44463
44464
44465
44466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
44467$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
44468if ${gl_cv_func_mbrtowc_retval+:} false; then :
44469  $as_echo_n "(cached) " >&6
44470else
44471
44472                  case "$host_os" in
44473                                   # Guess no on HP-UX, Solaris, native Windows.
44474        hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
44475                                   # Guess yes otherwise.
44476        *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
44477      esac
44478      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
44479         || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
44480        if test "$cross_compiling" = yes; then :
44481  :
44482else
44483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44484/* end confdefs.h.  */
44485
44486#include <locale.h>
44487#include <string.h>
44488/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44489   <wchar.h>.
44490   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44491   included before <wchar.h>.  */
44492#include <stddef.h>
44493#include <stdio.h>
44494#include <time.h>
44495#include <wchar.h>
44496int main ()
44497{
44498  int result = 0;
44499  int found_some_locale = 0;
44500  /* This fails on Solaris.  */
44501  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
44502    {
44503      char input[] = "B\303\274\303\237er"; /* "Büßer" */
44504      mbstate_t state;
44505      wchar_t wc;
44506
44507      memset (&state, '\0', sizeof (mbstate_t));
44508      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
44509        {
44510          input[1] = '\0';
44511          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
44512            result |= 1;
44513        }
44514      found_some_locale = 1;
44515    }
44516  /* This fails on HP-UX 11.11.  */
44517  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
44518    {
44519      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
44520      mbstate_t state;
44521      wchar_t wc;
44522
44523      memset (&state, '\0', sizeof (mbstate_t));
44524      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
44525        {
44526          input[1] = '\0';
44527          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
44528            result |= 2;
44529        }
44530      found_some_locale = 1;
44531    }
44532  /* This fails on native Windows.  */
44533  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
44534    {
44535      char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
44536      mbstate_t state;
44537      wchar_t wc;
44538
44539      memset (&state, '\0', sizeof (mbstate_t));
44540      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
44541        {
44542          input[3] = '\0';
44543          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
44544            result |= 4;
44545        }
44546      found_some_locale = 1;
44547    }
44548  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
44549    {
44550      char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
44551      mbstate_t state;
44552      wchar_t wc;
44553
44554      memset (&state, '\0', sizeof (mbstate_t));
44555      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
44556        {
44557          input[3] = '\0';
44558          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
44559            result |= 8;
44560        }
44561      found_some_locale = 1;
44562    }
44563  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
44564    {
44565      char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
44566      mbstate_t state;
44567      wchar_t wc;
44568
44569      memset (&state, '\0', sizeof (mbstate_t));
44570      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
44571        {
44572          input[3] = '\0';
44573          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
44574            result |= 16;
44575        }
44576      found_some_locale = 1;
44577    }
44578  return (found_some_locale ? result : 77);
44579}
44580_ACEOF
44581if ac_fn_c_try_run "$LINENO"; then :
44582  gl_cv_func_mbrtowc_retval=yes
44583else
44584  if test $? != 77; then
44585             gl_cv_func_mbrtowc_retval=no
44586           fi
44587
44588fi
44589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44590  conftest.$ac_objext conftest.beam conftest.$ac_ext
44591fi
44592
44593      fi
44594
44595fi
44596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
44597$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
44598
44599
44600
44601
44602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
44603$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
44604if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
44605  $as_echo_n "(cached) " >&6
44606else
44607
44608                  case "$host_os" in
44609                       # Guess no on Solaris 8 and 9.
44610        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
44611                       # Guess yes otherwise.
44612        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
44613      esac
44614      if test $LOCALE_ZH_CN != none; then
44615        if test "$cross_compiling" = yes; then :
44616  :
44617else
44618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44619/* end confdefs.h.  */
44620
44621#include <locale.h>
44622#include <string.h>
44623/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44624   <wchar.h>.
44625   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44626   included before <wchar.h>.  */
44627#include <stddef.h>
44628#include <stdio.h>
44629#include <time.h>
44630#include <wchar.h>
44631int main ()
44632{
44633  /* This fails on Solaris 8 and 9.  */
44634  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
44635    {
44636      mbstate_t state;
44637      wchar_t wc;
44638
44639      memset (&state, '\0', sizeof (mbstate_t));
44640      if (mbrtowc (&wc, "", 1, &state) != 0)
44641        return 2;
44642    }
44643  return 0;
44644}
44645_ACEOF
44646if ac_fn_c_try_run "$LINENO"; then :
44647  gl_cv_func_mbrtowc_nul_retval=yes
44648else
44649  gl_cv_func_mbrtowc_nul_retval=no
44650fi
44651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44652  conftest.$ac_objext conftest.beam conftest.$ac_ext
44653fi
44654
44655      fi
44656
44657fi
44658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
44659$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
44660
44661
44662
44663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
44664$as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
44665if ${gl_cv_func_mbrtowc_stores_incomplete+:} false; then :
44666  $as_echo_n "(cached) " >&6
44667else
44668
44669               case "$host_os" in
44670               # Guess yes on native Windows.
44671       mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
44672       *)      gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
44673     esac
44674     case "$host_os" in
44675       mingw*)
44676         if test "$cross_compiling" = yes; then :
44677  :
44678else
44679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44680/* end confdefs.h.  */
44681
44682#include <locale.h>
44683#include <string.h>
44684/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44685   <wchar.h>.
44686   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44687   included before <wchar.h>.  */
44688#include <stddef.h>
44689#include <stdio.h>
44690#include <time.h>
44691#include <wchar.h>
44692int main ()
44693{
44694  int result = 0;
44695  if (setlocale (LC_ALL, "French_France.65001") != NULL)
44696    {
44697      wchar_t wc = (wchar_t) 0xBADFACE;
44698      mbstate_t state;
44699
44700      memset (&state, '\0', sizeof (mbstate_t));
44701      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
44702          && wc != (wchar_t) 0xBADFACE)
44703        result |= 1;
44704    }
44705  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
44706    {
44707      wchar_t wc = (wchar_t) 0xBADFACE;
44708      mbstate_t state;
44709
44710      memset (&state, '\0', sizeof (mbstate_t));
44711      if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
44712          && wc != (wchar_t) 0xBADFACE)
44713        result |= 2;
44714    }
44715  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
44716    {
44717      wchar_t wc = (wchar_t) 0xBADFACE;
44718      mbstate_t state;
44719
44720      memset (&state, '\0', sizeof (mbstate_t));
44721      if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
44722          && wc != (wchar_t) 0xBADFACE)
44723        result |= 4;
44724    }
44725  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
44726    {
44727      wchar_t wc = (wchar_t) 0xBADFACE;
44728      mbstate_t state;
44729
44730      memset (&state, '\0', sizeof (mbstate_t));
44731      if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
44732          && wc != (wchar_t) 0xBADFACE)
44733        result |= 8;
44734    }
44735  return result;
44736}
44737_ACEOF
44738if ac_fn_c_try_run "$LINENO"; then :
44739  gl_cv_func_mbrtowc_stores_incomplete=no
44740else
44741  gl_cv_func_mbrtowc_stores_incomplete=yes
44742fi
44743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44744  conftest.$ac_objext conftest.beam conftest.$ac_ext
44745fi
44746
44747         ;;
44748       *)
44749
44750         if test $LOCALE_FR_UTF8 != none; then
44751           if test "$cross_compiling" = yes; then :
44752  :
44753else
44754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44755/* end confdefs.h.  */
44756
44757#include <locale.h>
44758#include <string.h>
44759/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44760   <wchar.h>.
44761   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44762   included before <wchar.h>.  */
44763#include <stddef.h>
44764#include <stdio.h>
44765#include <time.h>
44766#include <wchar.h>
44767int main ()
44768{
44769  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
44770    {
44771      wchar_t wc = (wchar_t) 0xBADFACE;
44772      mbstate_t state;
44773
44774      memset (&state, '\0', sizeof (mbstate_t));
44775      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
44776          && wc != (wchar_t) 0xBADFACE)
44777        return 1;
44778    }
44779  return 0;
44780}
44781_ACEOF
44782if ac_fn_c_try_run "$LINENO"; then :
44783  gl_cv_func_mbrtowc_stores_incomplete=no
44784else
44785  gl_cv_func_mbrtowc_stores_incomplete=yes
44786fi
44787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44788  conftest.$ac_objext conftest.beam conftest.$ac_ext
44789fi
44790
44791         fi
44792         ;;
44793     esac
44794
44795fi
44796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
44797$as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
44798
44799
44800
44801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
44802$as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
44803if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
44804  $as_echo_n "(cached) " >&6
44805else
44806
44807                  case "$host_os" in
44808                              # Guess no on AIX and glibc systems.
44809        aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
44810                              # Guess yes on native Windows.
44811        mingw*)               gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
44812        *)                    gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
44813      esac
44814      if test "$cross_compiling" = yes; then :
44815  :
44816else
44817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44818/* end confdefs.h.  */
44819
44820           #include <wchar.h>
44821           static wchar_t wc;
44822           static mbstate_t mbs;
44823           int
44824           main (void)
44825           {
44826             return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
44827           }
44828_ACEOF
44829if ac_fn_c_try_run "$LINENO"; then :
44830  gl_cv_func_mbrtowc_empty_input=yes
44831else
44832  gl_cv_func_mbrtowc_empty_input=no
44833fi
44834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44835  conftest.$ac_objext conftest.beam conftest.$ac_ext
44836fi
44837
44838
44839fi
44840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
44841$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
44842
44843
44844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
44845$as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
44846if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false; then :
44847  $as_echo_n "(cached) " >&6
44848else
44849
44850               gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
44851
44852     if test "$cross_compiling" = yes; then :
44853  case "$host_os" in
44854                 # Guess yes on native Windows.
44855         mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
44856       esac
44857
44858else
44859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44860/* end confdefs.h.  */
44861#include <limits.h>
44862            #include <locale.h>
44863            #include <wchar.h>
44864
44865int
44866main ()
44867{
44868
44869            int i;
44870            char *locale = setlocale (LC_ALL, "C");
44871            if (! locale)
44872              return 2;
44873            for (i = CHAR_MIN; i <= CHAR_MAX; i++)
44874              {
44875                char c = i;
44876                wchar_t wc;
44877                mbstate_t mbs = { 0, };
44878                size_t ss = mbrtowc (&wc, &c, 1, &mbs);
44879                if (1 < ss)
44880                  return 3;
44881              }
44882            return 0;
44883
44884  ;
44885  return 0;
44886}
44887_ACEOF
44888if ac_fn_c_try_run "$LINENO"; then :
44889  gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
44890else
44891  gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no
44892fi
44893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44894  conftest.$ac_objext conftest.beam conftest.$ac_ext
44895fi
44896
44897
44898fi
44899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
44900$as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
44901
44902      case "$gl_cv_func_mbrtowc_null_arg1" in
44903        *yes) ;;
44904        *)
44905$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
44906
44907           REPLACE_MBRTOWC=1
44908           ;;
44909      esac
44910      case "$gl_cv_func_mbrtowc_null_arg2" in
44911        *yes) ;;
44912        *)
44913$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
44914
44915           REPLACE_MBRTOWC=1
44916           ;;
44917      esac
44918      case "$gl_cv_func_mbrtowc_retval" in
44919        *yes) ;;
44920        *)
44921$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
44922
44923           REPLACE_MBRTOWC=1
44924           ;;
44925      esac
44926      case "$gl_cv_func_mbrtowc_nul_retval" in
44927        *yes) ;;
44928        *)
44929$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
44930
44931           REPLACE_MBRTOWC=1
44932           ;;
44933      esac
44934      case "$gl_cv_func_mbrtowc_stores_incomplete" in
44935        *no) ;;
44936        *)
44937$as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
44938
44939           REPLACE_MBRTOWC=1
44940           ;;
44941      esac
44942      case "$gl_cv_func_mbrtowc_empty_input" in
44943        *yes) ;;
44944        *)
44945$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
44946
44947           REPLACE_MBRTOWC=1
44948           ;;
44949      esac
44950      case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
44951        *yes) ;;
44952        *)
44953$as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
44954
44955           REPLACE_MBRTOWC=1
44956           ;;
44957      esac
44958    fi
44959  fi
44960  if test $REPLACE_MBSTATE_T = 1; then
44961    case "$host_os" in
44962      mingw*) LIB_MBRTOWC= ;;
44963      *)
44964
44965
44966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
44967$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
44968if ${gl_cv_have_weak+:} false; then :
44969  $as_echo_n "(cached) " >&6
44970else
44971  gl_cv_have_weak=no
44972          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44973/* end confdefs.h.  */
44974extern void xyzzy ();
44975#pragma weak xyzzy
44976int
44977main ()
44978{
44979xyzzy();
44980  ;
44981  return 0;
44982}
44983_ACEOF
44984if ac_fn_c_try_link "$LINENO"; then :
44985  gl_cv_have_weak=maybe
44986fi
44987rm -f core conftest.err conftest.$ac_objext \
44988    conftest$ac_exeext conftest.$ac_ext
44989     if test $gl_cv_have_weak = maybe; then
44990                     if test "$cross_compiling" = yes; then :
44991                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44992/* end confdefs.h.  */
44993#ifdef __ELF__
44994             Extensible Linking Format
44995             #endif
44996
44997_ACEOF
44998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44999  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
45000  gl_cv_have_weak="guessing yes"
45001else
45002  gl_cv_have_weak="guessing no"
45003fi
45004rm -f conftest*
45005
45006
45007else
45008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45009/* end confdefs.h.  */
45010
45011#include <stdio.h>
45012#pragma weak fputs
45013int main ()
45014{
45015  return (fputs == NULL);
45016}
45017_ACEOF
45018if ac_fn_c_try_run "$LINENO"; then :
45019  gl_cv_have_weak=yes
45020else
45021  gl_cv_have_weak=no
45022fi
45023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45024  conftest.$ac_objext conftest.beam conftest.$ac_ext
45025fi
45026
45027     fi
45028          case " $LDFLAGS " in
45029       *" -static "*) gl_cv_have_weak=no ;;
45030     esac
45031                    case "$gl_cv_have_weak" in
45032       *yes)
45033         case "$host_os" in
45034           freebsd* | dragonfly*)
45035             : > conftest1.c
45036             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
45037             cat <<EOF > conftest2.c
45038#include <pthread.h>
45039#pragma weak pthread_mutexattr_gettype
45040int main ()
45041{
45042  return (pthread_mutexattr_gettype != NULL);
45043}
45044EOF
45045             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
45046               || gl_cv_have_weak=no
45047             rm -f conftest1.c libempty.so conftest2.c conftest
45048             ;;
45049         esac
45050         ;;
45051     esac
45052
45053fi
45054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
45055$as_echo "$gl_cv_have_weak" >&6; }
45056  case "$gl_cv_have_weak" in
45057    *yes)
45058
45059$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
45060
45061      ;;
45062  esac
45063
45064        case "$gl_cv_have_weak" in
45065          *yes) LIB_MBRTOWC= ;;
45066          *)    LIB_MBRTOWC="$LIBPTHREAD" ;;
45067        esac
45068        ;;
45069    esac
45070  else
45071    LIB_MBRTOWC=
45072  fi
45073
45074
45075  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
45076
45077
45078
45079
45080
45081
45082
45083
45084  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
45085
45086    if test $REPLACE_MBSTATE_T = 1; then
45087
45088
45089
45090
45091
45092
45093
45094
45095  gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
45096
45097
45098
45099
45100
45101
45102
45103
45104
45105  gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext"
45106
45107
45108
45109
45110  CFLAG_VISIBILITY=
45111  HAVE_VISIBILITY=0
45112  if test -n "$GCC"; then
45113                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
45114$as_echo_n "checking whether the -Werror option is usable... " >&6; }
45115if ${gl_cv_cc_vis_werror+:} false; then :
45116  $as_echo_n "(cached) " >&6
45117else
45118  gl_save_CFLAGS="$CFLAGS"
45119       CFLAGS="$CFLAGS -Werror"
45120       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45121/* end confdefs.h.  */
45122
45123int
45124main ()
45125{
45126
45127  ;
45128  return 0;
45129}
45130_ACEOF
45131if ac_fn_c_try_compile "$LINENO"; then :
45132  gl_cv_cc_vis_werror=yes
45133else
45134  gl_cv_cc_vis_werror=no
45135fi
45136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45137       CFLAGS="$gl_save_CFLAGS"
45138
45139fi
45140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
45141$as_echo "$gl_cv_cc_vis_werror" >&6; }
45142        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
45143$as_echo_n "checking for simple visibility declarations... " >&6; }
45144if ${gl_cv_cc_visibility+:} false; then :
45145  $as_echo_n "(cached) " >&6
45146else
45147  gl_save_CFLAGS="$CFLAGS"
45148       CFLAGS="$CFLAGS -fvisibility=hidden"
45149                                          if test $gl_cv_cc_vis_werror = yes; then
45150         CFLAGS="$CFLAGS -Werror"
45151       fi
45152       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45153/* end confdefs.h.  */
45154extern __attribute__((__visibility__("hidden"))) int hiddenvar;
45155              extern __attribute__((__visibility__("default"))) int exportedvar;
45156              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
45157              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
45158              void dummyfunc (void) {}
45159
45160int
45161main ()
45162{
45163
45164  ;
45165  return 0;
45166}
45167_ACEOF
45168if ac_fn_c_try_compile "$LINENO"; then :
45169  gl_cv_cc_visibility=yes
45170else
45171  gl_cv_cc_visibility=no
45172fi
45173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45174       CFLAGS="$gl_save_CFLAGS"
45175
45176fi
45177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
45178$as_echo "$gl_cv_cc_visibility" >&6; }
45179    if test $gl_cv_cc_visibility = yes; then
45180      CFLAG_VISIBILITY="-fvisibility=hidden"
45181      HAVE_VISIBILITY=1
45182    fi
45183  fi
45184
45185
45186
45187cat >>confdefs.h <<_ACEOF
45188#define HAVE_VISIBILITY $HAVE_VISIBILITY
45189_ACEOF
45190
45191
45192
45193    fi
45194
45195
45196  :
45197
45198  fi
45199
45200
45201
45202
45203
45204          GNULIB_MBRTOWC=1
45205
45206
45207
45208
45209
45210$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
45211
45212
45213
45214
45215
45216
45217
45218
45219
45220
45221
45222
45223
45224
45225
45226        if case "$host_os" in
45227       mingw*) true ;;
45228       *) test $ac_cv_func_mbsinit = yes ;;
45229     esac \
45230    && test $ac_cv_func_mbrtowc = yes; then
45231
45232
45233
45234
45235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
45236$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
45237if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
45238  $as_echo_n "(cached) " >&6
45239else
45240
45241                  case "$host_os" in
45242                     # Guess no on AIX and OSF/1.
45243        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
45244                     # Guess yes otherwise.
45245        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
45246      esac
45247      if test $LOCALE_JA != none; then
45248        if test "$cross_compiling" = yes; then :
45249  :
45250else
45251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45252/* end confdefs.h.  */
45253
45254#include <locale.h>
45255#include <string.h>
45256/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45257   <wchar.h>.
45258   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45259   included before <wchar.h>.  */
45260#include <stddef.h>
45261#include <stdio.h>
45262#include <time.h>
45263#include <wchar.h>
45264int main ()
45265{
45266  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45267    {
45268      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
45269      mbstate_t state;
45270      wchar_t wc;
45271
45272      memset (&state, '\0', sizeof (mbstate_t));
45273      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
45274        if (mbsinit (&state))
45275          return 2;
45276    }
45277  return 0;
45278}
45279_ACEOF
45280if ac_fn_c_try_run "$LINENO"; then :
45281  gl_cv_func_mbrtowc_incomplete_state=yes
45282else
45283  gl_cv_func_mbrtowc_incomplete_state=no
45284fi
45285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45286  conftest.$ac_objext conftest.beam conftest.$ac_ext
45287fi
45288
45289      else
45290        if test $LOCALE_FR_UTF8 != none; then
45291          if test "$cross_compiling" = yes; then :
45292  :
45293else
45294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45295/* end confdefs.h.  */
45296
45297#include <locale.h>
45298#include <string.h>
45299/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45300   <wchar.h>.
45301   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45302   included before <wchar.h>.  */
45303#include <stddef.h>
45304#include <stdio.h>
45305#include <time.h>
45306#include <wchar.h>
45307int main ()
45308{
45309  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
45310    {
45311      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
45312      mbstate_t state;
45313      wchar_t wc;
45314
45315      memset (&state, '\0', sizeof (mbstate_t));
45316      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
45317        if (mbsinit (&state))
45318          return 2;
45319    }
45320  return 0;
45321}
45322_ACEOF
45323if ac_fn_c_try_run "$LINENO"; then :
45324  gl_cv_func_mbrtowc_incomplete_state=yes
45325else
45326  gl_cv_func_mbrtowc_incomplete_state=no
45327fi
45328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45329  conftest.$ac_objext conftest.beam conftest.$ac_ext
45330fi
45331
45332        fi
45333      fi
45334
45335fi
45336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
45337$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
45338
45339
45340
45341
45342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
45343$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
45344if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
45345  $as_echo_n "(cached) " >&6
45346else
45347
45348                  case "$host_os" in
45349                    # Guess no on Solaris 8.
45350        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
45351                    # Guess yes otherwise.
45352        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
45353      esac
45354      if test $LOCALE_ZH_CN != none; then
45355        if test "$cross_compiling" = yes; then :
45356  :
45357else
45358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45359/* end confdefs.h.  */
45360
45361#include <locale.h>
45362#include <stdlib.h>
45363#include <string.h>
45364/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45365   <wchar.h>.
45366   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45367   included before <wchar.h>.  */
45368#include <stddef.h>
45369#include <stdio.h>
45370#include <time.h>
45371#include <wchar.h>
45372int main ()
45373{
45374  /* This fails on Solaris 8:
45375     mbrtowc returns 2, and sets wc to 0x00F0.
45376     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
45377  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
45378    {
45379      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
45380      mbstate_t state;
45381      wchar_t wc;
45382
45383      memset (&state, '\0', sizeof (mbstate_t));
45384      if (mbrtowc (&wc, input + 3, 6, &state) != 4
45385          && mbtowc (&wc, input + 3, 6) == 4)
45386        return 2;
45387    }
45388  return 0;
45389}
45390_ACEOF
45391if ac_fn_c_try_run "$LINENO"; then :
45392  gl_cv_func_mbrtowc_sanitycheck=yes
45393else
45394  gl_cv_func_mbrtowc_sanitycheck=no
45395fi
45396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45397  conftest.$ac_objext conftest.beam conftest.$ac_ext
45398fi
45399
45400      fi
45401
45402fi
45403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
45404$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
45405
45406    REPLACE_MBSTATE_T=0
45407    case "$gl_cv_func_mbrtowc_incomplete_state" in
45408      *yes) ;;
45409      *) REPLACE_MBSTATE_T=1 ;;
45410    esac
45411    case "$gl_cv_func_mbrtowc_sanitycheck" in
45412      *yes) ;;
45413      *) REPLACE_MBSTATE_T=1 ;;
45414    esac
45415  else
45416    REPLACE_MBSTATE_T=1
45417  fi
45418
45419
45420
45421  if test $ac_cv_func_mbsinit = no; then
45422    HAVE_MBSINIT=0
45423    ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
45424/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45425   <wchar.h>.
45426   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45427   included before <wchar.h>.  */
45428#include <stddef.h>
45429#include <stdio.h>
45430#include <time.h>
45431#include <wchar.h>
45432
45433"
45434if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
45435  ac_have_decl=1
45436else
45437  ac_have_decl=0
45438fi
45439
45440cat >>confdefs.h <<_ACEOF
45441#define HAVE_DECL_MBSINIT $ac_have_decl
45442_ACEOF
45443
45444    if test $ac_cv_have_decl_mbsinit = yes; then
45445                        REPLACE_MBSINIT=1
45446    fi
45447  else
45448    if test $REPLACE_MBSTATE_T = 1; then
45449      REPLACE_MBSINIT=1
45450    else
45451                        case "$host_os" in
45452        mingw*) REPLACE_MBSINIT=1 ;;
45453      esac
45454    fi
45455  fi
45456
45457  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
45458
45459
45460
45461
45462
45463
45464
45465
45466  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
45467
45468
45469  :
45470
45471  fi
45472
45473
45474
45475
45476
45477          GNULIB_MBSINIT=1
45478
45479
45480
45481
45482
45483$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
45484
45485
45486
45487
45488
45489
45490  for ac_func in mbtowc
45491do :
45492  ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc"
45493if test "x$ac_cv_func_mbtowc" = xyes; then :
45494  cat >>confdefs.h <<_ACEOF
45495#define HAVE_MBTOWC 1
45496_ACEOF
45497
45498fi
45499done
45500
45501  if test $ac_cv_func_mbtowc = no; then
45502    HAVE_MBTOWC=0
45503  else
45504    if false; then
45505      REPLACE_MBTOWC=1
45506    fi
45507  fi
45508
45509  if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
45510
45511
45512
45513
45514
45515
45516
45517
45518  gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
45519
45520
45521  :
45522
45523  fi
45524
45525
45526
45527
45528
45529          GNULIB_MBTOWC=1
45530
45531
45532
45533
45534
45535$as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
45536
45537
45538
45539
45540  :
45541
45542
45543  if test $REPLACE_MEMCHR = 1; then
45544
45545
45546
45547
45548
45549
45550
45551
45552  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
45553
45554
45555  for ac_header in bp-sym.h
45556do :
45557  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
45558if test "x$ac_cv_header_bp_sym_h" = xyes; then :
45559  cat >>confdefs.h <<_ACEOF
45560#define HAVE_BP_SYM_H 1
45561_ACEOF
45562
45563fi
45564
45565done
45566
45567
45568  fi
45569
45570
45571
45572
45573
45574          GNULIB_MEMCHR=1
45575
45576
45577
45578
45579
45580$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
45581
45582
45583
45584
45585
45586  if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
45587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
45588$as_echo_n "checking whether memmem works in linear time... " >&6; }
45589if ${gl_cv_func_memmem_works_fast+:} false; then :
45590  $as_echo_n "(cached) " >&6
45591else
45592  if test "$cross_compiling" = yes; then :
45593                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45594/* end confdefs.h.  */
45595
45596#include <features.h>
45597#ifdef __GNU_LIBRARY__
45598 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
45599     && !defined __UCLIBC__
45600  Lucky user
45601 #endif
45602#endif
45603#ifdef __CYGWIN__
45604 #include <cygwin/version.h>
45605 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
45606  Lucky user
45607 #endif
45608#endif
45609
45610_ACEOF
45611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45612  $EGREP "Lucky user" >/dev/null 2>&1; then :
45613  gl_cv_func_memmem_works_fast="guessing yes"
45614else
45615  gl_cv_func_memmem_works_fast="$gl_cross_guess_normal"
45616fi
45617rm -f conftest*
45618
45619
45620else
45621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45622/* end confdefs.h.  */
45623
45624#include <signal.h> /* for signal */
45625#include <string.h> /* for memmem */
45626#include <stdlib.h> /* for malloc */
45627#include <unistd.h> /* for alarm */
45628static void quit (int sig) { _exit (sig + 128); }
45629
45630int
45631main ()
45632{
45633
45634    int result = 0;
45635    size_t m = 1000000;
45636    char *haystack = (char *) malloc (2 * m + 1);
45637    char *needle = (char *) malloc (m + 1);
45638    /* Failure to compile this test due to missing alarm is okay,
45639       since all such platforms (mingw) also lack memmem.  */
45640    signal (SIGALRM, quit);
45641    alarm (5);
45642    /* Check for quadratic performance.  */
45643    if (haystack && needle)
45644      {
45645        memset (haystack, 'A', 2 * m);
45646        haystack[2 * m] = 'B';
45647        memset (needle, 'A', m);
45648        needle[m] = 'B';
45649        if (!memmem (haystack, 2 * m + 1, needle, m + 1))
45650          result |= 1;
45651      }
45652    /* Free allocated memory, in case some sanitizer is watching.  */
45653    free (haystack);
45654    free (needle);
45655    return result;
45656
45657  ;
45658  return 0;
45659}
45660_ACEOF
45661if ac_fn_c_try_run "$LINENO"; then :
45662  gl_cv_func_memmem_works_fast=yes
45663else
45664  gl_cv_func_memmem_works_fast=no
45665fi
45666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45667  conftest.$ac_objext conftest.beam conftest.$ac_ext
45668fi
45669
45670
45671fi
45672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
45673$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
45674    case "$gl_cv_func_memmem_works_fast" in
45675      *yes) ;;
45676      *)
45677        REPLACE_MEMMEM=1
45678        ;;
45679    esac
45680  fi
45681
45682  if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
45683
45684
45685
45686
45687
45688
45689
45690
45691  gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
45692
45693  fi
45694
45695
45696
45697
45698  for ac_func in memmem
45699do :
45700  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
45701if test "x$ac_cv_func_memmem" = xyes; then :
45702  cat >>confdefs.h <<_ACEOF
45703#define HAVE_MEMMEM 1
45704_ACEOF
45705
45706fi
45707done
45708
45709  if test $ac_cv_func_memmem = yes; then
45710    HAVE_MEMMEM=1
45711  else
45712    HAVE_MEMMEM=0
45713  fi
45714
45715  if test $ac_cv_have_decl_memmem = no; then
45716    HAVE_DECL_MEMMEM=0
45717  else
45718            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
45719$as_echo_n "checking whether memmem works... " >&6; }
45720if ${gl_cv_func_memmem_works_always+:} false; then :
45721  $as_echo_n "(cached) " >&6
45722else
45723  if test "$cross_compiling" = yes; then :
45724                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45725/* end confdefs.h.  */
45726
45727#ifdef __GNU_LIBRARY__
45728 #include <features.h>
45729 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
45730                          || __GLIBC_MINOR__ > 12)) \
45731      || (__GLIBC__ > 2)) \
45732     || defined __UCLIBC__
45733  Lucky user
45734 #endif
45735#elif defined __CYGWIN__
45736 #include <cygwin/version.h>
45737 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
45738  Lucky user
45739 #endif
45740#else
45741  Lucky user
45742#endif
45743
45744_ACEOF
45745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45746  $EGREP "Lucky user" >/dev/null 2>&1; then :
45747  gl_cv_func_memmem_works_always="guessing yes"
45748else
45749  gl_cv_func_memmem_works_always="$gl_cross_guess_normal"
45750fi
45751rm -f conftest*
45752
45753
45754else
45755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45756/* end confdefs.h.  */
45757
45758#include <string.h> /* for memmem */
45759#define P "_EF_BF_BD"
45760#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
45761#define NEEDLE P P P P P
45762
45763int
45764main ()
45765{
45766
45767    int result = 0;
45768    if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
45769      result |= 1;
45770    /* Check for empty needle behavior.  */
45771    {
45772      const char *haystack = "AAA";
45773      if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
45774        result |= 2;
45775    }
45776    return result;
45777
45778  ;
45779  return 0;
45780}
45781_ACEOF
45782if ac_fn_c_try_run "$LINENO"; then :
45783  gl_cv_func_memmem_works_always=yes
45784else
45785  gl_cv_func_memmem_works_always=no
45786fi
45787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45788  conftest.$ac_objext conftest.beam conftest.$ac_ext
45789fi
45790
45791
45792fi
45793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
45794$as_echo "$gl_cv_func_memmem_works_always" >&6; }
45795    case "$gl_cv_func_memmem_works_always" in
45796      *yes) ;;
45797      *)
45798        REPLACE_MEMMEM=1
45799        ;;
45800    esac
45801  fi
45802  :
45803
45804  if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
45805
45806
45807
45808
45809
45810
45811
45812
45813  gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
45814
45815  fi
45816
45817
45818
45819
45820
45821          GNULIB_MEMMEM=1
45822
45823
45824
45825
45826
45827$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837  for ac_func in mempcpy
45838do :
45839  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
45840if test "x$ac_cv_func_mempcpy" = xyes; then :
45841  cat >>confdefs.h <<_ACEOF
45842#define HAVE_MEMPCPY 1
45843_ACEOF
45844
45845fi
45846done
45847
45848  if test $ac_cv_func_mempcpy = no; then
45849    HAVE_MEMPCPY=0
45850  fi
45851
45852  if test $HAVE_MEMPCPY = 0; then
45853
45854
45855
45856
45857
45858
45859
45860
45861  gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
45862
45863
45864  :
45865
45866  fi
45867
45868
45869
45870
45871
45872          GNULIB_MEMPCPY=1
45873
45874
45875
45876
45877
45878$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
45879
45880
45881
45882
45883
45884
45885
45886
45887  if test $ac_cv_have_decl_memrchr = no; then
45888    HAVE_DECL_MEMRCHR=0
45889  fi
45890
45891  for ac_func in memrchr
45892do :
45893  ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
45894if test "x$ac_cv_func_memrchr" = xyes; then :
45895  cat >>confdefs.h <<_ACEOF
45896#define HAVE_MEMRCHR 1
45897_ACEOF
45898
45899fi
45900done
45901
45902
45903  if test $ac_cv_func_memrchr = no; then
45904
45905
45906
45907
45908
45909
45910
45911
45912  gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
45913
45914    :
45915  fi
45916
45917
45918
45919
45920
45921          GNULIB_MEMRCHR=1
45922
45923
45924
45925
45926
45927$as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
45928
45929
45930
45931
45932
45933
45934
45935
45936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
45937$as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
45938if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
45939  $as_echo_n "(cached) " >&6
45940else
45941  rm -rf conftest.dir
45942      if test "$cross_compiling" = yes; then :
45943  case "$host_os" in
45944                          # Guess yes on Linux systems.
45945         linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
45946                          # Guess yes on glibc systems.
45947         *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
45948                          # Guess yes on MSVC, no on mingw.
45949         mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45950/* end confdefs.h.  */
45951
45952#ifdef _MSC_VER
45953 Known
45954#endif
45955
45956_ACEOF
45957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45958  $EGREP "Known" >/dev/null 2>&1; then :
45959  gl_cv_func_mkdir_trailing_slash_works="guessing yes"
45960else
45961  gl_cv_func_mkdir_trailing_slash_works="guessing no"
45962fi
45963rm -f conftest*
45964
45965                          ;;
45966                          # If we don't know, obey --enable-cross-guesses.
45967         *)               gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
45968       esac
45969
45970else
45971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45972/* end confdefs.h.  */
45973
45974#       include <sys/types.h>
45975#       include <sys/stat.h>
45976
45977int
45978main ()
45979{
45980return mkdir ("conftest.dir/", 0700);
45981  ;
45982  return 0;
45983}
45984_ACEOF
45985if ac_fn_c_try_run "$LINENO"; then :
45986  gl_cv_func_mkdir_trailing_slash_works=yes
45987else
45988  gl_cv_func_mkdir_trailing_slash_works=no
45989fi
45990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45991  conftest.$ac_objext conftest.beam conftest.$ac_ext
45992fi
45993
45994    rm -rf conftest.dir
45995
45996
45997fi
45998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
45999$as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
46000  case "$gl_cv_func_mkdir_trailing_slash_works" in
46001    *yes) ;;
46002    *)
46003      REPLACE_MKDIR=1
46004      ;;
46005  esac
46006
46007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
46008$as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
46009if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
46010  $as_echo_n "(cached) " >&6
46011else
46012  rm -rf conftest.dir
46013      if test "$cross_compiling" = yes; then :
46014  case "$host_os" in
46015                        # Guess yes on glibc systems.
46016         *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
46017                        # Guess yes on musl systems.
46018         *-musl*)       gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
46019                        # Guess no on native Windows.
46020         mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
46021                        # If we don't know, obey --enable-cross-guesses.
46022         *)             gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
46023       esac
46024
46025else
46026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46027/* end confdefs.h.  */
46028
46029#       include <sys/types.h>
46030#       include <sys/stat.h>
46031
46032int
46033main ()
46034{
46035return !mkdir ("conftest.dir/./", 0700);
46036  ;
46037  return 0;
46038}
46039_ACEOF
46040if ac_fn_c_try_run "$LINENO"; then :
46041  gl_cv_func_mkdir_trailing_dot_works=yes
46042else
46043  gl_cv_func_mkdir_trailing_dot_works=no
46044fi
46045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46046  conftest.$ac_objext conftest.beam conftest.$ac_ext
46047fi
46048
46049    rm -rf conftest.dir
46050
46051
46052fi
46053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
46054$as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
46055  case "$gl_cv_func_mkdir_trailing_dot_works" in
46056    *yes) ;;
46057    *)
46058      REPLACE_MKDIR=1
46059
46060$as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
46061
46062      ;;
46063  esac
46064
46065  if test $REPLACE_MKDIR = 1; then
46066
46067
46068
46069
46070
46071
46072
46073
46074  gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
46075
46076  fi
46077
46078
46079  for ac_func in mkdtemp
46080do :
46081  ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
46082if test "x$ac_cv_func_mkdtemp" = xyes; then :
46083  cat >>confdefs.h <<_ACEOF
46084#define HAVE_MKDTEMP 1
46085_ACEOF
46086
46087fi
46088done
46089
46090  if test $ac_cv_func_mkdtemp = no; then
46091    HAVE_MKDTEMP=0
46092  fi
46093
46094  if test $HAVE_MKDTEMP = 0; then
46095
46096
46097
46098
46099
46100
46101
46102
46103  gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
46104
46105    :
46106
46107  fi
46108
46109
46110
46111
46112
46113          GNULIB_MKDTEMP=1
46114
46115
46116
46117
46118
46119$as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
46120
46121
46122
46123
46124
46125
46126
46127  if test $ac_cv_func_mkstemp = yes; then
46128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
46129$as_echo_n "checking for working mkstemp... " >&6; }
46130if ${gl_cv_func_working_mkstemp+:} false; then :
46131  $as_echo_n "(cached) " >&6
46132else
46133
46134        mkdir conftest.mkstemp
46135        if test "$cross_compiling" = yes; then :
46136  case "$host_os" in
46137                            # Guess yes on glibc systems.
46138             *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
46139                            # Guess yes on musl systems.
46140             *-musl*)       gl_cv_func_working_mkstemp="guessing yes" ;;
46141                            # Guess no on native Windows.
46142             mingw*)        gl_cv_func_working_mkstemp="guessing no" ;;
46143                            # If we don't know, obey --enable-cross-guesses.
46144             *)             gl_cv_func_working_mkstemp="$gl_cross_guess_normal" ;;
46145           esac
46146
46147else
46148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46149/* end confdefs.h.  */
46150$ac_includes_default
46151int
46152main ()
46153{
46154int result = 0;
46155              int i;
46156              off_t large = (off_t) 4294967295u;
46157              if (large < 0)
46158                large = 2147483647;
46159              umask (0);
46160              for (i = 0; i < 70; i++)
46161                {
46162                  char templ[] = "conftest.mkstemp/coXXXXXX";
46163                  int (*mkstemp_function) (char *) = mkstemp;
46164                  int fd = mkstemp_function (templ);
46165                  if (fd < 0)
46166                    result |= 1;
46167                  else
46168                    {
46169                      struct stat st;
46170                      if (lseek (fd, large, SEEK_SET) != large)
46171                        result |= 2;
46172                      if (fstat (fd, &st) < 0)
46173                        result |= 4;
46174                      else if (st.st_mode & 0077)
46175                        result |= 8;
46176                      if (close (fd))
46177                        result |= 16;
46178                    }
46179                }
46180              return result;
46181  ;
46182  return 0;
46183}
46184_ACEOF
46185if ac_fn_c_try_run "$LINENO"; then :
46186  gl_cv_func_working_mkstemp=yes
46187else
46188  gl_cv_func_working_mkstemp=no
46189fi
46190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46191  conftest.$ac_objext conftest.beam conftest.$ac_ext
46192fi
46193
46194        rm -rf conftest.mkstemp
46195
46196fi
46197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
46198$as_echo "$gl_cv_func_working_mkstemp" >&6; }
46199    case "$gl_cv_func_working_mkstemp" in
46200      *yes) ;;
46201      *)
46202        REPLACE_MKSTEMP=1
46203        ;;
46204    esac
46205  else
46206    HAVE_MKSTEMP=0
46207  fi
46208
46209  if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
46210
46211
46212
46213
46214
46215
46216
46217
46218  gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
46219
46220
46221
46222  fi
46223
46224
46225
46226
46227
46228          GNULIB_MKSTEMP=1
46229
46230
46231
46232
46233
46234$as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
46235
46236
46237
46238
46239
46240
46241
46242
46243  REPLACE_MKTIME=0
46244  if test "$gl_cv_func_working_mktime" != yes; then
46245    REPLACE_MKTIME=1
46246
46247$as_echo "#define NEED_MKTIME_WORKING 1" >>confdefs.h
46248
46249  fi
46250  case "$host_os" in
46251    mingw*)
46252      REPLACE_MKTIME=1
46253
46254$as_echo "#define NEED_MKTIME_WINDOWS 1" >>confdefs.h
46255
46256      ;;
46257  esac
46258
46259  if test $REPLACE_MKTIME = 1; then
46260
46261
46262
46263
46264
46265
46266
46267
46268  gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
46269
46270    :
46271  fi
46272
46273
46274
46275
46276
46277          GNULIB_MKTIME=1
46278
46279
46280
46281
46282
46283$as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
46284
46285
46286
46287
46288
46289
46290  WANT_MKTIME_INTERNAL=0
46291    ac_fn_c_check_func "$LINENO" "__mktime_internal" "ac_cv_func___mktime_internal"
46292if test "x$ac_cv_func___mktime_internal" = xyes; then :
46293
46294$as_echo "#define mktime_internal __mktime_internal" >>confdefs.h
46295
46296
46297else
46298            WANT_MKTIME_INTERNAL=1
46299
46300$as_echo "#define NEED_MKTIME_INTERNAL 1" >>confdefs.h
46301
46302
46303fi
46304
46305
46306  if test $WANT_MKTIME_INTERNAL = 1; then
46307
46308
46309
46310
46311
46312
46313
46314
46315  gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
46316
46317    :
46318  fi
46319
46320  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
46321
46322
46323
46324
46325
46326
46327
46328
46329  gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
46330
46331  fi
46332
46333  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
46334
46335
46336
46337
46338
46339
46340
46341
46342  gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
46343
46344  fi
46345
46346
46347cat >>confdefs.h <<_ACEOF
46348#define GNULIB_MSVC_NOTHROW 1
46349_ACEOF
46350
46351
46352
46353
46354
46355
46356
46357
46358  if test $ac_cv_func_nl_langinfo = yes; then
46359    # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
46360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
46361$as_echo_n "checking whether YESEXPR works... " >&6; }
46362if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
46363  $as_echo_n "(cached) " >&6
46364else
46365  if test "$cross_compiling" = yes; then :
46366
46367         case "$host_os" in
46368                   # Guess no on irix systems.
46369           irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
46370                   # Guess yes elsewhere.
46371           *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
46372         esac
46373
46374else
46375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46376/* end confdefs.h.  */
46377#include <langinfo.h>
46378
46379int
46380main ()
46381{
46382return !*nl_langinfo(YESEXPR);
46383
46384  ;
46385  return 0;
46386}
46387_ACEOF
46388if ac_fn_c_try_run "$LINENO"; then :
46389  gl_cv_func_nl_langinfo_yesexpr_works=yes
46390else
46391  gl_cv_func_nl_langinfo_yesexpr_works=no
46392fi
46393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46394  conftest.$ac_objext conftest.beam conftest.$ac_ext
46395fi
46396
46397
46398fi
46399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
46400$as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
46401    case $gl_cv_func_nl_langinfo_yesexpr_works in
46402      *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
46403      *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
46404    esac
46405
46406cat >>confdefs.h <<_ACEOF
46407#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
46408_ACEOF
46409
46410    if test $HAVE_LANGINFO_CODESET = 1 \
46411       && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
46412       && test $HAVE_LANGINFO_ALTMON = 1 \
46413       && test $HAVE_LANGINFO_ERA = 1 \
46414       && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
46415      :
46416    else
46417      REPLACE_NL_LANGINFO=1
46418
46419$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
46420
46421    fi
46422  else
46423    HAVE_NL_LANGINFO=0
46424  fi
46425  if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
46426    LIB_NL_LANGINFO="$LIB_SETLOCALE_NULL"
46427  else
46428    LIB_NL_LANGINFO=
46429  fi
46430
46431
46432  if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
46433
46434
46435
46436
46437
46438
46439
46440
46441  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
46442
46443  fi
46444
46445
46446
46447
46448
46449          GNULIB_NL_LANGINFO=1
46450
46451
46452
46453
46454
46455$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
46456
46457
46458
46459
46460
46461
46462 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
46463
46464
46465
46466
46467
46468
46469
46470$as_echo "#define my_strftime nstrftime" >>confdefs.h
46471
46472
46473
46474
46475
46476  case "$host_os" in
46477    mingw* | pw*)
46478      REPLACE_OPEN=1
46479      ;;
46480    *)
46481
46482      if test "$gl_cv_macro_O_CLOEXEC" != yes; then
46483        REPLACE_OPEN=1
46484      fi
46485
46486
46487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
46488$as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
46489if ${gl_cv_func_open_slash+:} false; then :
46490  $as_echo_n "(cached) " >&6
46491else
46492  # Assume that if we have lstat, we can also check symlinks.
46493     if test $ac_cv_func_lstat = yes; then
46494       touch conftest.tmp
46495       ln -s conftest.tmp conftest.lnk
46496     fi
46497     if test "$cross_compiling" = yes; then :
46498
46499        case "$host_os" in
46500          freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
46501            gl_cv_func_open_slash="guessing no" ;;
46502          *)
46503            gl_cv_func_open_slash="guessing yes" ;;
46504        esac
46505
46506else
46507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46508/* end confdefs.h.  */
46509
46510#include <fcntl.h>
46511#if HAVE_UNISTD_H
46512# include <unistd.h>
46513#endif
46514int main ()
46515{
46516  int result = 0;
46517#if HAVE_LSTAT
46518  if (open ("conftest.lnk/", O_RDONLY) != -1)
46519    result |= 1;
46520#endif
46521  if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
46522    result |= 2;
46523  return result;
46524}
46525_ACEOF
46526if ac_fn_c_try_run "$LINENO"; then :
46527  gl_cv_func_open_slash=yes
46528else
46529  gl_cv_func_open_slash=no
46530fi
46531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46532  conftest.$ac_objext conftest.beam conftest.$ac_ext
46533fi
46534
46535     rm -f conftest.sl conftest.tmp conftest.lnk
46536
46537fi
46538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
46539$as_echo "$gl_cv_func_open_slash" >&6; }
46540  case "$gl_cv_func_open_slash" in
46541    *no)
46542
46543$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
46544
46545      ;;
46546  esac
46547
46548      case "$gl_cv_func_open_slash" in
46549        *no)
46550          REPLACE_OPEN=1
46551          ;;
46552      esac
46553      ;;
46554  esac
46555
46556
46557
46558  if test $REPLACE_OPEN = 1; then
46559
46560
46561
46562
46563
46564
46565
46566
46567  gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
46568
46569
46570
46571  :
46572
46573  fi
46574
46575
46576
46577
46578
46579          GNULIB_OPEN=1
46580
46581
46582
46583
46584
46585$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
46586
46587
46588
46589
46590
46591
46592
46593
46594
46595
46596
46597
46598  if test $ac_cv_func_pipe2 != yes; then
46599    HAVE_PIPE2=0
46600  fi
46601
46602
46603
46604
46605
46606
46607          GNULIB_PIPE2=1
46608
46609
46610
46611
46612
46613$as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
46614
46615
46616
46617
46618
46619  if test $gl_cv_func_frexp_no_libm = yes; then
46620
46621
46622
46623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
46624$as_echo_n "checking whether frexp works... " >&6; }
46625if ${gl_cv_func_frexp_works+:} false; then :
46626  $as_echo_n "(cached) " >&6
46627else
46628
46629      if test "$cross_compiling" = yes; then :
46630  case "$host_os" in
46631           netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
46632           mingw*) # Guess yes with MSVC, no with mingw.
46633             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46634/* end confdefs.h.  */
46635
46636#ifdef _MSC_VER
46637 Good
46638#endif
46639
46640_ACEOF
46641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46642  $EGREP "Good" >/dev/null 2>&1; then :
46643  gl_cv_func_frexp_works="guessing yes"
46644else
46645  gl_cv_func_frexp_works="guessing no"
46646fi
46647rm -f conftest*
46648
46649             ;;
46650           *) gl_cv_func_frexp_works="guessing yes" ;;
46651         esac
46652
46653else
46654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46655/* end confdefs.h.  */
46656
46657#include <float.h>
46658#include <math.h>
46659#include <string.h>
46660#if HAVE_DECL_ALARM
46661# include <signal.h>
46662# include <unistd.h>
46663#endif
46664/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
46665   ICC 10.0 has a bug when optimizing the expression -zero.
46666   The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
46667   to PowerPC on Mac OS X 10.5.  */
46668#if defined __hpux || defined __sgi || defined __ICC
46669static double
46670compute_minus_zero (void)
46671{
46672  return -DBL_MIN * DBL_MIN;
46673}
46674# define minus_zero compute_minus_zero ()
46675#else
46676double minus_zero = -0.0;
46677#endif
46678int main()
46679{
46680  int result = 0;
46681  int i;
46682  volatile double x;
46683  double zero = 0.0;
46684#if HAVE_DECL_ALARM
46685  /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
46686     number.  Let the test fail in this case.  */
46687  signal (SIGALRM, SIG_DFL);
46688  alarm (5);
46689#endif
46690  /* Test on denormalized numbers.  */
46691  for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
46692    ;
46693  if (x > 0.0)
46694    {
46695      int exp;
46696      double y = frexp (x, &exp);
46697      /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
46698         On NetBSD: y = 0.75. Correct: y = 0.5.  */
46699      if (y != 0.5)
46700        result |= 1;
46701    }
46702  /* Test on infinite numbers.  */
46703  x = 1.0 / zero;
46704  {
46705    int exp;
46706    double y = frexp (x, &exp);
46707    if (y != x)
46708      result |= 2;
46709  }
46710  /* Test on negative zero.  */
46711  x = minus_zero;
46712  {
46713    int exp;
46714    double y = frexp (x, &exp);
46715    if (memcmp (&y, &x, sizeof x))
46716      result |= 4;
46717  }
46718  return result;
46719}
46720_ACEOF
46721if ac_fn_c_try_run "$LINENO"; then :
46722  gl_cv_func_frexp_works=yes
46723else
46724  gl_cv_func_frexp_works=no
46725fi
46726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46727  conftest.$ac_objext conftest.beam conftest.$ac_ext
46728fi
46729
46730
46731fi
46732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
46733$as_echo "$gl_cv_func_frexp_works" >&6; }
46734
46735    case "$gl_cv_func_frexp_works" in
46736      *yes)
46737
46738$as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
46739
46740        ;;
46741    esac
46742  fi
46743
46744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
46745$as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
46746if ${gl_cv_func_ldexp_no_libm+:} false; then :
46747  $as_echo_n "(cached) " >&6
46748else
46749
46750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46751/* end confdefs.h.  */
46752#include <math.h>
46753             double x;
46754             int y;
46755int
46756main ()
46757{
46758return ldexp (x, y) < 1;
46759  ;
46760  return 0;
46761}
46762_ACEOF
46763if ac_fn_c_try_link "$LINENO"; then :
46764  gl_cv_func_ldexp_no_libm=yes
46765else
46766  gl_cv_func_ldexp_no_libm=no
46767fi
46768rm -f core conftest.err conftest.$ac_objext \
46769    conftest$ac_exeext conftest.$ac_ext
46770
46771fi
46772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
46773$as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
46774  if test $gl_cv_func_ldexp_no_libm = yes; then
46775
46776$as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
46777
46778  fi
46779
46780
46781
46782
46783
46784
46785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
46786$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
46787if ${gl_cv_func_frexpl_no_libm+:} false; then :
46788  $as_echo_n "(cached) " >&6
46789else
46790
46791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46792/* end confdefs.h.  */
46793#include <math.h>
46794             long double x;
46795int
46796main ()
46797{
46798int e; return frexpl (x, &e) > 0;
46799  ;
46800  return 0;
46801}
46802_ACEOF
46803if ac_fn_c_try_link "$LINENO"; then :
46804  gl_cv_func_frexpl_no_libm=yes
46805else
46806  gl_cv_func_frexpl_no_libm=no
46807fi
46808rm -f core conftest.err conftest.$ac_objext \
46809    conftest$ac_exeext conftest.$ac_ext
46810
46811fi
46812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
46813$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
46814
46815  if test $gl_cv_func_frexpl_no_libm = yes; then
46816
46817
46818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
46819$as_echo_n "checking whether frexpl works... " >&6; }
46820if ${gl_cv_func_frexpl_works+:} false; then :
46821  $as_echo_n "(cached) " >&6
46822else
46823
46824      if test "$cross_compiling" = yes; then :
46825
46826         case "$host_os" in
46827           aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
46828              gl_cv_func_frexpl_works="guessing no";;
46829           *) gl_cv_func_frexpl_works="guessing yes";;
46830         esac
46831
46832else
46833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46834/* end confdefs.h.  */
46835
46836#include <float.h>
46837#include <math.h>
46838/* Override the values of <float.h>, like done in float.in.h.  */
46839#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
46840# undef LDBL_MIN_EXP
46841# define LDBL_MIN_EXP    (-16381)
46842#endif
46843#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
46844# undef LDBL_MIN_EXP
46845# define LDBL_MIN_EXP    (-16381)
46846#endif
46847#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
46848# undef LDBL_MIN_EXP
46849# define LDBL_MIN_EXP DBL_MIN_EXP
46850#endif
46851#if defined __sgi && (LDBL_MANT_DIG >= 106)
46852# if defined __GNUC__
46853#  undef LDBL_MIN_EXP
46854#  define LDBL_MIN_EXP DBL_MIN_EXP
46855# endif
46856#endif
46857extern
46858#ifdef __cplusplus
46859"C"
46860#endif
46861long double frexpl (long double, int *);
46862int main()
46863{
46864  int result = 0;
46865  volatile long double x;
46866  /* Test on finite numbers that fails on AIX 5.1.  */
46867  x = 16.0L;
46868  {
46869    int exp = -9999;
46870    frexpl (x, &exp);
46871    if (exp != 5)
46872      result |= 1;
46873  }
46874  /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
46875     function returns an invalid (incorrectly normalized) value: it returns
46876               y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
46877     but the correct result is
46878          0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
46879  x = 1.01L;
46880  {
46881    int exp = -9999;
46882    long double y = frexpl (x, &exp);
46883    if (!(exp == 1 && y == 0.505L))
46884      result |= 2;
46885  }
46886  /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
46887     LDBL_MAX_EXP = 16384.
46888     In the loop end test, we test x against Infinity, rather than comparing
46889     i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
46890  {
46891    int i;
46892    for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
46893      {
46894        int exp = -9999;
46895        frexpl (x, &exp);
46896        if (exp != i)
46897          {
46898            result |= 4;
46899            break;
46900          }
46901      }
46902  }
46903  /* Test on denormalized numbers.  */
46904  {
46905    int i;
46906    for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
46907      ;
46908    if (x > 0.0L)
46909      {
46910        int exp;
46911        long double y = frexpl (x, &exp);
46912        /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
46913           exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
46914        if (exp != LDBL_MIN_EXP - 1)
46915          result |= 8;
46916      }
46917  }
46918  /* Test on infinite numbers.  */
46919  x = 1.0L / 0.0L;
46920  {
46921    int exp;
46922    long double y = frexpl (x, &exp);
46923    if (y != x)
46924      result |= 16;
46925  }
46926  return result;
46927}
46928_ACEOF
46929if ac_fn_c_try_run "$LINENO"; then :
46930  gl_cv_func_frexpl_works=yes
46931else
46932  gl_cv_func_frexpl_works=no
46933fi
46934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46935  conftest.$ac_objext conftest.beam conftest.$ac_ext
46936fi
46937
46938
46939fi
46940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
46941$as_echo "$gl_cv_func_frexpl_works" >&6; }
46942
46943    case "$gl_cv_func_frexpl_works" in
46944      *yes) gl_func_frexpl_no_libm=yes ;;
46945      *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
46946    esac
46947  else
46948    gl_func_frexpl_no_libm=no
46949        REPLACE_FREXPL=1
46950  fi
46951  if test $gl_func_frexpl_no_libm = yes; then
46952
46953$as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
46954
46955            ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
46956"
46957if test "x$ac_cv_have_decl_frexpl" = xyes; then :
46958
46959else
46960  HAVE_DECL_FREXPL=0
46961fi
46962
46963  fi
46964
46965
46966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
46967$as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
46968if ${gl_cv_func_ldexpl_no_libm+:} false; then :
46969  $as_echo_n "(cached) " >&6
46970else
46971
46972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46973/* end confdefs.h.  */
46974#include <math.h>
46975             long double x;
46976int
46977main ()
46978{
46979return ldexpl (x, -1) > 0;
46980  ;
46981  return 0;
46982}
46983_ACEOF
46984if ac_fn_c_try_link "$LINENO"; then :
46985  gl_cv_func_ldexpl_no_libm=yes
46986else
46987  gl_cv_func_ldexpl_no_libm=no
46988fi
46989rm -f core conftest.err conftest.$ac_objext \
46990    conftest$ac_exeext conftest.$ac_ext
46991
46992fi
46993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
46994$as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
46995
46996  if test $gl_cv_func_ldexpl_no_libm = yes; then
46997
46998
46999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
47000$as_echo_n "checking whether ldexpl works... " >&6; }
47001if ${gl_cv_func_ldexpl_works+:} false; then :
47002  $as_echo_n "(cached) " >&6
47003else
47004
47005      if test "$cross_compiling" = yes; then :
47006
47007         case "$host_os" in
47008           aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;;
47009                            # Guess yes on native Windows.
47010           mingw*)          gl_cv_func_ldexpl_works="guessing yes" ;;
47011           *)               gl_cv_func_ldexpl_works="guessing yes" ;;
47012         esac
47013
47014else
47015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47016/* end confdefs.h.  */
47017
47018#include <math.h>
47019extern
47020#ifdef __cplusplus
47021"C"
47022#endif
47023long double ldexpl (long double, int);
47024int main()
47025{
47026  int result = 0;
47027  {
47028    volatile long double x = 1.0;
47029    volatile long double y = ldexpl (x, -1);
47030    if (y != 0.5L)
47031      result |= 1;
47032  }
47033  {
47034    volatile long double x = 1.73205L;
47035    volatile long double y = ldexpl (x, 0);
47036    if (y != x)
47037      result |= 2;
47038  }
47039  return result;
47040}
47041_ACEOF
47042if ac_fn_c_try_run "$LINENO"; then :
47043  gl_cv_func_ldexpl_works=yes
47044else
47045  gl_cv_func_ldexpl_works=no
47046fi
47047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47048  conftest.$ac_objext conftest.beam conftest.$ac_ext
47049fi
47050
47051
47052fi
47053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
47054$as_echo "$gl_cv_func_ldexpl_works" >&6; }
47055
47056    case "$gl_cv_func_ldexpl_works" in
47057      *yes)
47058
47059$as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
47060
47061                        ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
47062"
47063if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
47064
47065else
47066  HAVE_DECL_LDEXPL=0
47067fi
47068
47069        ;;
47070    esac
47071  fi
47072
47073
47074
47075  if test $gl_cv_func_vfprintf_posix = no; then
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087  gl_LIBOBJS="$gl_LIBOBJS printf.$ac_objext"
47088
47089  REPLACE_PRINTF=1
47090
47091$as_echo "#define REPLACE_PRINTF_POSIX 1" >>confdefs.h
47092
47093  :
47094
47095  fi
47096
47097
47098
47099
47100
47101
47102          GNULIB_PRINTF_POSIX=1
47103
47104
47105
47106
47107
47108$as_echo "#define GNULIB_TEST_PRINTF_POSIX 1" >>confdefs.h
47109
47110
47111
47112
47113  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
47114"
47115if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
47116  ac_have_decl=1
47117else
47118  ac_have_decl=0
47119fi
47120
47121cat >>confdefs.h <<_ACEOF
47122#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
47123_ACEOF
47124
47125  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
47126"
47127if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
47128  ac_have_decl=1
47129else
47130  ac_have_decl=0
47131fi
47132
47133cat >>confdefs.h <<_ACEOF
47134#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
47135_ACEOF
47136
47137
47138
47139
47140  for ac_func in raise
47141do :
47142  ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
47143if test "x$ac_cv_func_raise" = xyes; then :
47144  cat >>confdefs.h <<_ACEOF
47145#define HAVE_RAISE 1
47146_ACEOF
47147
47148fi
47149done
47150
47151  if test $ac_cv_func_raise = no; then
47152    HAVE_RAISE=0
47153  else
47154
47155
47156      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
47157        REPLACE_RAISE=1
47158      fi
47159
47160
47161
47162
47163
47164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigprocmask" >&5
47165$as_echo_n "checking for sigprocmask... " >&6; }
47166if ${gl_cv_func_sigprocmask_v16+:} false; then :
47167  $as_echo_n "(cached) " >&6
47168else
47169  if test $gl_cv_type_sigset_t = yes; then
47170
47171  {
47172
47173         ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
47174if test "x$ac_cv_func_sigprocmask" = xyes; then :
47175  gl_cv_func_sigprocmask_v16=yes
47176else
47177  gl_cv_func_sigprocmask_v16=no
47178fi
47179
47180
47181  } 6>/dev/null
47182
47183     else
47184       gl_cv_func_sigprocmask_v16=no
47185     fi
47186
47187fi
47188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sigprocmask_v16" >&5
47189$as_echo "$gl_cv_func_sigprocmask_v16" >&6; }
47190  if test $gl_cv_func_sigprocmask_v16 != yes; then
47191    HAVE_POSIX_SIGNALBLOCKING=0
47192  fi
47193
47194      if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
47195        :
47196      fi
47197
47198  fi
47199
47200  if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
47201
47202
47203
47204
47205
47206
47207
47208
47209  gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
47210
47211    :
47212  fi
47213
47214
47215
47216
47217
47218          GNULIB_RAISE=1
47219
47220
47221
47222
47223
47224$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
47225
47226
47227
47228
47229
47230
47231
47232  for ac_func in rawmemchr
47233do :
47234  ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
47235if test "x$ac_cv_func_rawmemchr" = xyes; then :
47236  cat >>confdefs.h <<_ACEOF
47237#define HAVE_RAWMEMCHR 1
47238_ACEOF
47239
47240fi
47241done
47242
47243  if test $ac_cv_func_rawmemchr = no; then
47244    HAVE_RAWMEMCHR=0
47245  fi
47246
47247  if test $HAVE_RAWMEMCHR = 0; then
47248
47249
47250
47251
47252
47253
47254
47255
47256  gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
47257
47258    :
47259  fi
47260
47261
47262
47263
47264
47265          GNULIB_RAWMEMCHR=1
47266
47267
47268
47269
47270
47271$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
47272
47273
47274
47275
47276
47277
47278
47279    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
47280      REPLACE_READ=1
47281    fi
47282
47283
47284
47285  if test $REPLACE_READ = 1; then
47286
47287
47288
47289
47290
47291
47292
47293
47294  gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
47295
47296    :
47297  fi
47298
47299
47300
47301
47302
47303          GNULIB_READ=1
47304
47305
47306
47307
47308
47309$as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
47310
47311
47312
47313  :
47314
47315
47316
47317  if test $ac_cv_func_readlink = no; then
47318    HAVE_READLINK=0
47319  else
47320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
47321$as_echo_n "checking whether readlink signature is correct... " >&6; }
47322if ${gl_cv_decl_readlink_works+:} false; then :
47323  $as_echo_n "(cached) " >&6
47324else
47325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47326/* end confdefs.h.  */
47327#include <unistd.h>
47328      /* Cause compilation failure if original declaration has wrong type.  */
47329      ssize_t readlink (const char *, char *, size_t);
47330int
47331main ()
47332{
47333
47334  ;
47335  return 0;
47336}
47337_ACEOF
47338if ac_fn_c_try_compile "$LINENO"; then :
47339  gl_cv_decl_readlink_works=yes
47340else
47341  gl_cv_decl_readlink_works=no
47342fi
47343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47344fi
47345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
47346$as_echo "$gl_cv_decl_readlink_works" >&6; }
47347            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
47348$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
47349if ${gl_cv_func_readlink_works+:} false; then :
47350  $as_echo_n "(cached) " >&6
47351else
47352  # We have readlink, so assume ln -s works.
47353       ln -s conftest.no-such conftest.link
47354       ln -s conftest.link conftest.lnk2
47355       if test "$cross_compiling" = yes; then :
47356  case "$host_os" in
47357                             # Guess yes on Linux systems.
47358            linux-* | linux) gl_cv_func_readlink_works="guessing yes" ;;
47359                             # Guess yes on glibc systems.
47360            *-gnu* | gnu*)   gl_cv_func_readlink_works="guessing yes" ;;
47361                             # If we don't know, obey --enable-cross-guesses.
47362            *)               gl_cv_func_readlink_works="$gl_cross_guess_normal" ;;
47363          esac
47364
47365else
47366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47367/* end confdefs.h.  */
47368#include <unistd.h>
47369
47370int
47371main ()
47372{
47373char buf[20];
47374      return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
47375  ;
47376  return 0;
47377}
47378_ACEOF
47379if ac_fn_c_try_run "$LINENO"; then :
47380  gl_cv_func_readlink_works=yes
47381else
47382  gl_cv_func_readlink_works=no
47383fi
47384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47385  conftest.$ac_objext conftest.beam conftest.$ac_ext
47386fi
47387
47388      rm -f conftest.link conftest.lnk2
47389fi
47390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
47391$as_echo "$gl_cv_func_readlink_works" >&6; }
47392    case "$gl_cv_func_readlink_works" in
47393      *yes)
47394        if test "$gl_cv_decl_readlink_works" != yes; then
47395          REPLACE_READLINK=1
47396        fi
47397        ;;
47398      *)
47399
47400$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
47401
47402        REPLACE_READLINK=1
47403        ;;
47404    esac
47405  fi
47406
47407  if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
47408
47409
47410
47411
47412
47413
47414
47415
47416  gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
47417
47418
47419  :
47420
47421  fi
47422
47423
47424
47425
47426
47427          GNULIB_READLINK=1
47428
47429
47430
47431
47432
47433$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
47434
47435
47436
47437
47438
47439
47440  if test $gl_cv_func_malloc_posix = yes; then
47441
47442$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
47443
47444  else
47445    REPLACE_REALLOC=1
47446  fi
47447
47448  if test $REPLACE_REALLOC = 1; then
47449
47450
47451
47452
47453
47454
47455
47456
47457  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
47458
47459  fi
47460
47461
47462
47463
47464
47465          GNULIB_REALLOC_POSIX=1
47466
47467
47468
47469
47470
47471$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
47472
47473
47474
47475
47476
47477# Check whether --with-included-regex was given.
47478if test "${with_included_regex+set}" = set; then :
47479  withval=$with_included_regex;
47480fi
47481
47482
47483  case $with_included_regex in #(
47484  yes|no) ac_use_included_regex=$with_included_regex
47485        ;;
47486  '')
47487    # If the system regex support is good enough that it passes the
47488    # following run test, then default to *not* using the included regex.c.
47489    # If cross compiling, assume the test would fail and use the included
47490    # regex.c.
47491
47492
47493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
47494$as_echo_n "checking for working re_compile_pattern... " >&6; }
47495if ${gl_cv_func_re_compile_pattern_working+:} false; then :
47496  $as_echo_n "(cached) " >&6
47497else
47498  if test "$cross_compiling" = yes; then :
47499  case "$host_os" in
47500                   # Guess no on native Windows.
47501           mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;;
47502                   # Otherwise obey --enable-cross-guesses.
47503           *)      gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;;
47504         esac
47505
47506else
47507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47508/* end confdefs.h.  */
47509#include <regex.h>
47510
47511            #include <locale.h>
47512            #include <limits.h>
47513            #include <string.h>
47514
47515            #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
47516            # include <signal.h>
47517            # include <unistd.h>
47518            #endif
47519
47520            #if HAVE_MALLOC_H
47521            # include <malloc.h>
47522            #endif
47523
47524            #ifdef M_CHECK_ACTION
47525            /* Exit with distinguishable exit code.  */
47526            static void sigabrt_no_core (int sig) { raise (SIGTERM); }
47527            #endif
47528
47529int
47530main ()
47531{
47532int result = 0;
47533            static struct re_pattern_buffer regex;
47534            unsigned char folded_chars[UCHAR_MAX + 1];
47535            int i;
47536            const char *s;
47537            struct re_registers regs;
47538
47539            /* Some builds of glibc go into an infinite loop on this
47540               test.  Use alarm to force death, and mallopt to avoid
47541               malloc recursion in diagnosing the corrupted heap. */
47542#if HAVE_DECL_ALARM
47543            signal (SIGALRM, SIG_DFL);
47544            alarm (2);
47545#endif
47546#ifdef M_CHECK_ACTION
47547            signal (SIGABRT, sigabrt_no_core);
47548            mallopt (M_CHECK_ACTION, 2);
47549#endif
47550
47551            if (setlocale (LC_ALL, "en_US.UTF-8"))
47552              {
47553                {
47554                  /* https://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
47555                     This test needs valgrind to catch the bug on Debian
47556                     GNU/Linux 3.1 x86, but it might catch the bug better
47557                     on other platforms and it shouldn't hurt to try the
47558                     test here.  */
47559                  static char const pat[] = "insert into";
47560                  static char const data[] =
47561                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
47562                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
47563                                 | RE_ICASE);
47564                  memset (&regex, 0, sizeof regex);
47565                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
47566                  if (s)
47567                    result |= 1;
47568                  else
47569                    {
47570                      if (re_search (&regex, data, sizeof data - 1,
47571                                     0, sizeof data - 1, &regs)
47572                          != -1)
47573                        result |= 1;
47574                      regfree (&regex);
47575                    }
47576                }
47577
47578                {
47579                  /* This test is from glibc bug 15078.
47580                     The test case is from Andreas Schwab in
47581                     <https://sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
47582                     */
47583                  static char const pat[] = "[^x]x";
47584                  static char const data[] =
47585                    /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
47586                    "\xe1\x80\x80"
47587                    "\xe1\x80\xbb"
47588                    "\xe1\x80\xbd"
47589                    "\xe1\x80\x94"
47590                    "\xe1\x80\xba"
47591                    "\xe1\x80\xaf"
47592                    "\xe1\x80\x95"
47593                    "\xe1\x80\xba"
47594                    "x";
47595                  re_set_syntax (0);
47596                  memset (&regex, 0, sizeof regex);
47597                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
47598                  if (s)
47599                    result |= 1;
47600                  else
47601                    {
47602                      i = re_search (&regex, data, sizeof data - 1,
47603                                     0, sizeof data - 1, 0);
47604                      if (i != 0 && i != 21)
47605                        result |= 1;
47606                      regfree (&regex);
47607                    }
47608                }
47609
47610                if (! setlocale (LC_ALL, "C"))
47611                  return 1;
47612              }
47613
47614            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
47615            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
47616            memset (&regex, 0, sizeof regex);
47617            s = re_compile_pattern ("a[^x]b", 6, &regex);
47618            if (s)
47619              result |= 2;
47620            else
47621              {
47622                /* This should fail, but succeeds for glibc-2.5.  */
47623                if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
47624                  result |= 2;
47625                regfree (&regex);
47626              }
47627
47628            /* This regular expression is from Spencer ere test number 75
47629               in grep-2.3.  */
47630            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
47631            memset (&regex, 0, sizeof regex);
47632            for (i = 0; i <= UCHAR_MAX; i++)
47633              folded_chars[i] = i;
47634            regex.translate = folded_chars;
47635            s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
47636            /* This should fail with _Invalid character class name_ error.  */
47637            if (!s)
47638              {
47639                result |= 4;
47640                regfree (&regex);
47641              }
47642
47643            /* Ensure that [b-a] is diagnosed as invalid, when
47644               using RE_NO_EMPTY_RANGES. */
47645            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
47646            memset (&regex, 0, sizeof regex);
47647            s = re_compile_pattern ("a[b-a]", 6, &regex);
47648            if (s == 0)
47649              {
47650                result |= 8;
47651                regfree (&regex);
47652              }
47653
47654            /* This should succeed, but does not for glibc-2.1.3.  */
47655            memset (&regex, 0, sizeof regex);
47656            s = re_compile_pattern ("{1", 2, &regex);
47657            if (s)
47658              result |= 8;
47659            else
47660              regfree (&regex);
47661
47662            /* The following example is derived from a problem report
47663               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
47664            memset (&regex, 0, sizeof regex);
47665            s = re_compile_pattern ("[an\371]*n", 7, &regex);
47666            if (s)
47667              result |= 8;
47668            else
47669              {
47670                /* This should match, but does not for glibc-2.2.1.  */
47671                if (re_match (&regex, "an", 2, 0, &regs) != 2)
47672                  result |= 8;
47673                else
47674                  {
47675                    free (regs.start);
47676                    free (regs.end);
47677                  }
47678                regfree (&regex);
47679              }
47680
47681            memset (&regex, 0, sizeof regex);
47682            s = re_compile_pattern ("x", 1, &regex);
47683            if (s)
47684              result |= 8;
47685            else
47686              {
47687                /* glibc-2.2.93 does not work with a negative RANGE argument.  */
47688                if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
47689                  result |= 8;
47690                else
47691                  {
47692                    free (regs.start);
47693                    free (regs.end);
47694                  }
47695                regfree (&regex);
47696              }
47697
47698            /* The version of regex.c in older versions of gnulib
47699               ignored RE_ICASE.  Detect that problem too.  */
47700            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
47701            memset (&regex, 0, sizeof regex);
47702            s = re_compile_pattern ("x", 1, &regex);
47703            if (s)
47704              result |= 16;
47705            else
47706              {
47707                if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
47708                  result |= 16;
47709                else
47710                  {
47711                    free (regs.start);
47712                    free (regs.end);
47713                  }
47714                regfree (&regex);
47715              }
47716
47717            /* Catch a bug reported by Vin Shelton in
47718               https://lists.gnu.org/r/bug-coreutils/2007-06/msg00089.html
47719               */
47720            re_set_syntax (RE_SYNTAX_POSIX_BASIC
47721                           & ~RE_CONTEXT_INVALID_DUP
47722                           & ~RE_NO_EMPTY_RANGES);
47723            memset (&regex, 0, sizeof regex);
47724            s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
47725            if (s)
47726              result |= 32;
47727            else
47728              regfree (&regex);
47729
47730            /* REG_STARTEND was added to glibc on 2004-01-15.
47731               Reject older versions.  */
47732            if (! REG_STARTEND)
47733              result |= 64;
47734
47735            /* Matching with the compiled form of this regexp would provoke
47736               an assertion failure prior to glibc-2.28:
47737                 regexec.c:1375: pop_fail_stack: Assertion 'num >= 0' failed
47738               With glibc-2.28, compilation fails and reports the invalid
47739               back reference.  */
47740            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
47741            memset (&regex, 0, sizeof regex);
47742            s = re_compile_pattern ("0|()0|\\1|0", 10, &regex);
47743            if (!s)
47744              result |= 64;
47745            else
47746              {
47747                if (strcmp (s, "Invalid back reference"))
47748                  result |= 64;
47749                regfree (&regex);
47750              }
47751
47752#if 0
47753            /* It would be nice to reject hosts whose regoff_t values are too
47754               narrow (including glibc on hosts with 64-bit ptrdiff_t and
47755               32-bit int), but we should wait until glibc implements this
47756               feature.  Otherwise, support for equivalence classes and
47757               multibyte collation symbols would always be broken except
47758               when compiling --without-included-regex.   */
47759            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
47760                || sizeof (regoff_t) < sizeof (ssize_t))
47761              result |= 64;
47762#endif
47763
47764            return result;
47765
47766  ;
47767  return 0;
47768}
47769_ACEOF
47770if ac_fn_c_try_run "$LINENO"; then :
47771  gl_cv_func_re_compile_pattern_working=yes
47772else
47773  gl_cv_func_re_compile_pattern_working=no
47774fi
47775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47776  conftest.$ac_objext conftest.beam conftest.$ac_ext
47777fi
47778
47779
47780fi
47781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
47782$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
47783    case "$gl_cv_func_re_compile_pattern_working" in #(
47784      *yes) ac_use_included_regex=no;; #(
47785      *no) ac_use_included_regex=yes;;
47786    esac
47787    ;;
47788  *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
47789    ;;
47790  esac
47791
47792  if test $ac_use_included_regex = yes; then
47793
47794$as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
47795
47796
47797$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
47798
47799
47800$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
47801
47802
47803$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
47804
47805
47806$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
47807
47808
47809$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
47810
47811
47812$as_echo "#define re_search rpl_re_search" >>confdefs.h
47813
47814
47815$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
47816
47817
47818$as_echo "#define re_match rpl_re_match" >>confdefs.h
47819
47820
47821$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
47822
47823
47824$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
47825
47826
47827$as_echo "#define re_comp rpl_re_comp" >>confdefs.h
47828
47829
47830$as_echo "#define re_exec rpl_re_exec" >>confdefs.h
47831
47832
47833$as_echo "#define regcomp rpl_regcomp" >>confdefs.h
47834
47835
47836$as_echo "#define regexec rpl_regexec" >>confdefs.h
47837
47838
47839$as_echo "#define regerror rpl_regerror" >>confdefs.h
47840
47841
47842$as_echo "#define regfree rpl_regfree" >>confdefs.h
47843
47844  fi
47845
47846  if test $ac_use_included_regex = yes; then
47847
47848
47849
47850
47851
47852
47853
47854
47855  gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
47856
47857
47858
47859
47860
47861
47862
47863
47864  for ac_header in libintl.h
47865do :
47866  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
47867if test "x$ac_cv_header_libintl_h" = xyes; then :
47868  cat >>confdefs.h <<_ACEOF
47869#define HAVE_LIBINTL_H 1
47870_ACEOF
47871
47872fi
47873
47874done
47875
47876
47877  ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
47878"
47879if test "x$ac_cv_have_decl_isblank" = xyes; then :
47880  ac_have_decl=1
47881else
47882  ac_have_decl=0
47883fi
47884
47885cat >>confdefs.h <<_ACEOF
47886#define HAVE_DECL_ISBLANK $ac_have_decl
47887_ACEOF
47888
47889
47890  fi
47891
47892
47893
47894
47895
47896  : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
47897  RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
47898  RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
47899
47900  if test $RELOCATABLE = yes; then
47901
47902
47903
47904
47905
47906
47907
47908
47909  gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
47910
47911
47912
47913
47914
47915
47916
47917
47918
47919  gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
47920
47921  fi
47922
47923
47924
47925
47926  :
47927
47928
47929
47930
47931
47932
47933
47934
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945  if test $ac_cv_have_decl_setenv = no; then
47946    HAVE_DECL_SETENV=0
47947  fi
47948
47949
47950
47951
47952
47953  for ac_header in search.h
47954do :
47955  ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
47956if test "x$ac_cv_header_search_h" = xyes; then :
47957  cat >>confdefs.h <<_ACEOF
47958#define HAVE_SEARCH_H 1
47959_ACEOF
47960
47961fi
47962
47963done
47964
47965  for ac_func in tsearch
47966do :
47967  ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
47968if test "x$ac_cv_func_tsearch" = xyes; then :
47969  cat >>confdefs.h <<_ACEOF
47970#define HAVE_TSEARCH 1
47971_ACEOF
47972
47973fi
47974done
47975
47976
47977
47978
47979
47980
47981
47982
47983                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
47984$as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
47985if ${gl_cv_func_rename_slash_dst_works+:} false; then :
47986  $as_echo_n "(cached) " >&6
47987else
47988  rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
47989    touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
47990      as_fn_error $? "cannot create temporary files" "$LINENO" 5
47991    # Assume that if we have lstat, we can also check symlinks.
47992    if test $ac_cv_func_lstat = yes; then
47993      ln -s conftest.f conftest.lnk
47994    fi
47995    if test "$cross_compiling" = yes; then :
47996        case "$host_os" in
47997                          # Guess yes on Linux systems.
47998         linux-* | linux) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
47999                          # Guess yes on glibc systems.
48000         *-gnu*)          gl_cv_func_rename_slash_dst_works="guessing yes" ;;
48001                          # Guess no on native Windows.
48002         mingw*)          gl_cv_func_rename_slash_dst_works="guessing no" ;;
48003                          # If we don't know, obey --enable-cross-guesses.
48004         *)               gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;;
48005       esac
48006
48007else
48008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48009/* end confdefs.h.  */
48010
48011#        include <stdio.h>
48012#        include <stdlib.h>
48013
48014int
48015main ()
48016{
48017int result = 0;
48018           if (rename ("conftest.f1", "conftest.f2/") == 0)
48019             result |= 1;
48020           if (rename ("conftest.d1", "conftest.d2/") != 0)
48021             result |= 2;
48022#if HAVE_LSTAT
48023           if (rename ("conftest.f", "conftest.lnk/") == 0)
48024             result |= 4;
48025#endif
48026           return result;
48027
48028  ;
48029  return 0;
48030}
48031_ACEOF
48032if ac_fn_c_try_run "$LINENO"; then :
48033  gl_cv_func_rename_slash_dst_works=yes
48034else
48035  gl_cv_func_rename_slash_dst_works=no
48036fi
48037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48038  conftest.$ac_objext conftest.beam conftest.$ac_ext
48039fi
48040
48041    rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
48042
48043fi
48044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
48045$as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
48046  case "$gl_cv_func_rename_slash_dst_works" in
48047    *yes) ;;
48048    *)
48049      REPLACE_RENAME=1
48050
48051$as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
48052
48053      ;;
48054  esac
48055
48056            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
48057$as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
48058if ${gl_cv_func_rename_slash_src_works+:} false; then :
48059  $as_echo_n "(cached) " >&6
48060else
48061  rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
48062    touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
48063      as_fn_error $? "cannot create temporary files" "$LINENO" 5
48064    # Assume that if we have lstat, we can also check symlinks.
48065    if test $ac_cv_func_lstat = yes; then
48066      ln -s conftest.f conftest.lnk
48067    fi
48068    if test "$cross_compiling" = yes; then :
48069        case "$host_os" in
48070                          # Guess yes on Linux systems.
48071         linux-* | linux) gl_cv_func_rename_slash_src_works="guessing yes" ;;
48072                          # Guess yes on glibc systems.
48073         *-gnu*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
48074                          # Guess yes on native Windows.
48075         mingw*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
48076                          # If we don't know, obey --enable-cross-guesses.
48077         *)               gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;;
48078       esac
48079
48080else
48081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48082/* end confdefs.h.  */
48083
48084#        include <stdio.h>
48085#        include <stdlib.h>
48086
48087int
48088main ()
48089{
48090int result = 0;
48091           if (rename ("conftest.f1/", "conftest.d3") == 0)
48092             result |= 1;
48093           if (rename ("conftest.d1/", "conftest.d2") != 0)
48094             result |= 2;
48095#if HAVE_LSTAT
48096           if (rename ("conftest.lnk/", "conftest.f") == 0)
48097             result |= 4;
48098#endif
48099           return result;
48100
48101  ;
48102  return 0;
48103}
48104_ACEOF
48105if ac_fn_c_try_run "$LINENO"; then :
48106  gl_cv_func_rename_slash_src_works=yes
48107else
48108  gl_cv_func_rename_slash_src_works=no
48109fi
48110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48111  conftest.$ac_objext conftest.beam conftest.$ac_ext
48112fi
48113
48114    rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
48115
48116fi
48117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
48118$as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
48119  case "$gl_cv_func_rename_slash_src_works" in
48120    *yes) ;;
48121    *)
48122      REPLACE_RENAME=1
48123
48124$as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
48125
48126      ;;
48127  esac
48128
48129
48130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
48131$as_echo_n "checking whether rename manages hard links correctly... " >&6; }
48132if ${gl_cv_func_rename_link_works+:} false; then :
48133  $as_echo_n "(cached) " >&6
48134else
48135  if test $ac_cv_func_link = yes; then
48136       if test $cross_compiling != yes; then
48137         rm -rf conftest.f conftest.f1 conftest.f2
48138         if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
48139             set x `ls -i conftest.f conftest.f1` && test "" = ""; then
48140           if test "$cross_compiling" = yes; then :
48141                :
48142
48143else
48144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48145/* end confdefs.h.  */
48146
48147#               include <errno.h>
48148#               include <stdio.h>
48149#               include <stdlib.h>
48150#               include <unistd.h>
48151
48152int
48153main ()
48154{
48155int result = 0;
48156                  if (rename ("conftest.f", "conftest.f1"))
48157                    result |= 1;
48158                  if (unlink ("conftest.f1"))
48159                    result |= 2;
48160
48161                  /* Allow either the POSIX-required behavior, where the
48162                     previous rename kept conftest.f, or the (better) NetBSD
48163                     behavior, where it removed conftest.f.  */
48164                  if (rename ("conftest.f", "conftest.f") != 0
48165                      && errno != ENOENT)
48166                    result |= 4;
48167
48168                  if (rename ("conftest.f1", "conftest.f1") == 0)
48169                    result |= 8;
48170                  if (rename ("conftest.f2", "conftest.f2") != 0)
48171                    result |= 16;
48172                  return result;
48173
48174  ;
48175  return 0;
48176}
48177_ACEOF
48178if ac_fn_c_try_run "$LINENO"; then :
48179  gl_cv_func_rename_link_works=yes
48180else
48181  gl_cv_func_rename_link_works=no
48182fi
48183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48184  conftest.$ac_objext conftest.beam conftest.$ac_ext
48185fi
48186
48187         else
48188           gl_cv_func_rename_link_works="guessing no"
48189         fi
48190         rm -rf conftest.f conftest.f1 conftest.f2
48191       else
48192                  case "$host_os" in
48193                            # Guess yes on Linux systems.
48194           linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
48195                            # Guess yes on glibc systems.
48196           *-gnu*)          gl_cv_func_rename_link_works="guessing yes" ;;
48197                            # Guess yes on native Windows.
48198           mingw*)          gl_cv_func_rename_link_works="guessing yes" ;;
48199                            # If we don't know, obey --enable-cross-guesses.
48200           *)               gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;;
48201         esac
48202       fi
48203     else
48204       gl_cv_func_rename_link_works=yes
48205     fi
48206
48207fi
48208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
48209$as_echo "$gl_cv_func_rename_link_works" >&6; }
48210  case "$gl_cv_func_rename_link_works" in
48211    *yes) ;;
48212    *)
48213      REPLACE_RENAME=1
48214
48215$as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
48216
48217      ;;
48218  esac
48219
48220          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
48221$as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
48222if ${gl_cv_func_rename_dest_works+:} false; then :
48223  $as_echo_n "(cached) " >&6
48224else
48225  rm -rf conftest.f conftest.d1 conftest.d2
48226    touch conftest.f && mkdir conftest.d1 conftest.d2 ||
48227      as_fn_error $? "cannot create temporary files" "$LINENO" 5
48228    if test "$cross_compiling" = yes; then :
48229        case "$host_os" in
48230                          # Guess yes on Linux systems.
48231         linux-* | linux) gl_cv_func_rename_dest_works="guessing yes" ;;
48232                          # Guess yes on glibc systems.
48233         *-gnu*)          gl_cv_func_rename_dest_works="guessing yes" ;;
48234                          # Guess no on native Windows.
48235         mingw*)          gl_cv_func_rename_dest_works="guessing no" ;;
48236                          # If we don't know, obey --enable-cross-guesses.
48237         *)               gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;;
48238       esac
48239
48240else
48241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48242/* end confdefs.h.  */
48243
48244#        include <stdio.h>
48245#        include <stdlib.h>
48246
48247int
48248main ()
48249{
48250int result = 0;
48251           if (rename ("conftest.d1", "conftest.d2") != 0)
48252             result |= 1;
48253           if (rename ("conftest.d2", "conftest.f") == 0)
48254             result |= 2;
48255           return result;
48256
48257  ;
48258  return 0;
48259}
48260_ACEOF
48261if ac_fn_c_try_run "$LINENO"; then :
48262  gl_cv_func_rename_dest_works=yes
48263else
48264  gl_cv_func_rename_dest_works=no
48265fi
48266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48267  conftest.$ac_objext conftest.beam conftest.$ac_ext
48268fi
48269
48270    rm -rf conftest.f conftest.d1 conftest.d2
48271
48272fi
48273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
48274$as_echo "$gl_cv_func_rename_dest_works" >&6; }
48275  case "$gl_cv_func_rename_dest_works" in
48276    *yes) ;;
48277    *)
48278      REPLACE_RENAME=1
48279
48280$as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
48281
48282      ;;
48283  esac
48284
48285  if test $REPLACE_RENAME = 1; then
48286
48287
48288
48289
48290
48291
48292
48293
48294  gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
48295
48296  fi
48297
48298
48299
48300
48301
48302          GNULIB_RENAME=1
48303
48304
48305
48306
48307
48308$as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
48309
48310
48311
48312
48313
48314
48315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
48316$as_echo_n "checking whether rmdir works... " >&6; }
48317if ${gl_cv_func_rmdir_works+:} false; then :
48318  $as_echo_n "(cached) " >&6
48319else
48320  mkdir conftest.dir
48321     touch conftest.file
48322     if test "$cross_compiling" = yes; then :
48323  case "$host_os" in
48324                           # Guess yes on Linux systems.
48325          linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;;
48326                           # Guess yes on glibc systems.
48327          *-gnu* | gnu*)   gl_cv_func_rmdir_works="guessing yes" ;;
48328                           # Guess no on native Windows.
48329          mingw*)          gl_cv_func_rmdir_works="guessing no" ;;
48330                           # If we don't know, obey --enable-cross-guesses.
48331          *)               gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;;
48332        esac
48333
48334else
48335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48336/* end confdefs.h.  */
48337#include <stdio.h>
48338           #include <errno.h>
48339           #if HAVE_UNISTD_H
48340           # include <unistd.h>
48341           #else /* on Windows with MSVC */
48342           # include <direct.h>
48343           #endif
48344
48345int
48346main ()
48347{
48348int result = 0;
48349      if (!rmdir ("conftest.file/"))
48350        result |= 1;
48351      else if (errno != ENOTDIR)
48352        result |= 2;
48353      if (!rmdir ("conftest.dir/./"))
48354        result |= 4;
48355      return result;
48356
48357  ;
48358  return 0;
48359}
48360_ACEOF
48361if ac_fn_c_try_run "$LINENO"; then :
48362  gl_cv_func_rmdir_works=yes
48363else
48364  gl_cv_func_rmdir_works=no
48365fi
48366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48367  conftest.$ac_objext conftest.beam conftest.$ac_ext
48368fi
48369
48370     rm -rf conftest.dir conftest.file
48371fi
48372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
48373$as_echo "$gl_cv_func_rmdir_works" >&6; }
48374  case "$gl_cv_func_rmdir_works" in
48375    *yes) ;;
48376    *)
48377      REPLACE_RMDIR=1
48378      ;;
48379  esac
48380
48381  if test $REPLACE_RMDIR = 1; then
48382
48383
48384
48385
48386
48387
48388
48389
48390  gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
48391
48392  fi
48393
48394
48395
48396
48397
48398          GNULIB_RMDIR=1
48399
48400
48401
48402
48403
48404$as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
48405
48406
48407
48408
48409
48410
48411
48412
48413
48414
48415  save_LIBS=$LIBS
48416  ROUND_LIBM=missing
48417  for libm in "" "-lm"; do
48418    LIBS="$save_LIBS $libm"
48419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48420/* end confdefs.h.  */
48421
48422         #ifndef __NO_MATH_INLINES
48423         # define __NO_MATH_INLINES 1 /* for glibc */
48424         #endif
48425         #include <math.h>
48426         extern
48427     #ifdef __cplusplus
48428     "C"
48429     #endif
48430     double round (double);
48431
48432         double x;
48433int
48434main ()
48435{
48436x = round (x);
48437  ;
48438  return 0;
48439}
48440_ACEOF
48441if ac_fn_c_try_link "$LINENO"; then :
48442  ROUND_LIBM=$libm
48443break
48444fi
48445rm -f core conftest.err conftest.$ac_objext \
48446    conftest$ac_exeext conftest.$ac_ext
48447  done
48448  LIBS=$save_LIBS
48449
48450  if test "$ROUND_LIBM" != missing; then
48451    HAVE_ROUND=1
48452            ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
48453"
48454if test "x$ac_cv_have_decl_round" = xyes; then :
48455  ac_have_decl=1
48456else
48457  ac_have_decl=0
48458fi
48459
48460cat >>confdefs.h <<_ACEOF
48461#define HAVE_DECL_ROUND $ac_have_decl
48462_ACEOF
48463if test $ac_have_decl = 1; then :
48464
48465else
48466  HAVE_DECL_ROUND=0
48467fi
48468
48469
48470
48471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether round works" >&5
48472$as_echo_n "checking whether round works... " >&6; }
48473if ${gl_cv_func_round_works+:} false; then :
48474  $as_echo_n "(cached) " >&6
48475else
48476
48477        save_LIBS="$LIBS"
48478        LIBS="$LIBS $ROUND_LIBM"
48479        if test "$cross_compiling" = yes; then :
48480  case "$host_os" in
48481           netbsd* | aix*) gl_cv_func_round_works="guessing no" ;;
48482                           # Guess yes on MSVC, no on mingw.
48483           mingw*)         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48484/* end confdefs.h.  */
48485
48486#ifdef _MSC_VER
48487 Known
48488#endif
48489
48490_ACEOF
48491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48492  $EGREP "Known" >/dev/null 2>&1; then :
48493  gl_cv_func_round_works="guessing yes"
48494else
48495  gl_cv_func_round_works="guessing no"
48496fi
48497rm -f conftest*
48498
48499                           ;;
48500           *)              gl_cv_func_round_works="guessing yes" ;;
48501         esac
48502
48503else
48504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48505/* end confdefs.h.  */
48506
48507#include <float.h>
48508#include <math.h>
48509extern
48510#ifdef __cplusplus
48511"C"
48512#endif
48513double round (double);
48514#ifdef _MSC_VER
48515# pragma fenv_access (off)
48516#endif
48517int main()
48518{
48519  /* 2^DBL_MANT_DIG.  */
48520  static const double TWO_MANT_DIG =
48521    /* Assume DBL_MANT_DIG <= 5 * 31.
48522       Use the identity
48523       n = floor(n/5) + floor((n+1)/5) + ... + floor((n+4)/5).  */
48524    (double) (1U << (DBL_MANT_DIG / 5))
48525    * (double) (1U << ((DBL_MANT_DIG + 1) / 5))
48526    * (double) (1U << ((DBL_MANT_DIG + 2) / 5))
48527    * (double) (1U << ((DBL_MANT_DIG + 3) / 5))
48528    * (double) (1U << ((DBL_MANT_DIG + 4) / 5));
48529  volatile double x = 0.5 - 0.5 / TWO_MANT_DIG;
48530  return (x < 0.5 && round (x) != 0.0);
48531}
48532_ACEOF
48533if ac_fn_c_try_run "$LINENO"; then :
48534  gl_cv_func_round_works=yes
48535else
48536  gl_cv_func_round_works=no
48537fi
48538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48539  conftest.$ac_objext conftest.beam conftest.$ac_ext
48540fi
48541
48542        LIBS="$save_LIBS"
48543
48544fi
48545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_round_works" >&5
48546$as_echo "$gl_cv_func_round_works" >&6; }
48547    case "$gl_cv_func_round_works" in
48548      *no) REPLACE_ROUND=1 ;;
48549    esac
48550
48551
48552  else
48553    HAVE_ROUND=0
48554    HAVE_DECL_ROUND=0
48555  fi
48556  if test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1; then
48557
48558
48559  saved_as_echo_n="$as_echo_n"
48560  as_echo_n=':'
48561  if ${gl_cv_func_floor_libm+:} false; then :
48562  $as_echo_n "(cached) " >&6
48563else
48564
48565    gl_cv_func_floor_libm=?
48566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48567/* end confdefs.h.  */
48568#ifndef __NO_MATH_INLINES
48569           # define __NO_MATH_INLINES 1 /* for glibc */
48570           #endif
48571           #include <math.h>
48572           double (*funcptr) (double) = floor;
48573           double x;
48574int
48575main ()
48576{
48577x = funcptr(x) + floor(x);
48578  ;
48579  return 0;
48580}
48581_ACEOF
48582if ac_fn_c_try_link "$LINENO"; then :
48583  gl_cv_func_floor_libm=
48584fi
48585rm -f core conftest.err conftest.$ac_objext \
48586    conftest$ac_exeext conftest.$ac_ext
48587    if test "$gl_cv_func_floor_libm" = "?"; then
48588      save_LIBS="$LIBS"
48589      LIBS="$LIBS -lm"
48590      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48591/* end confdefs.h.  */
48592#ifndef __NO_MATH_INLINES
48593             # define __NO_MATH_INLINES 1 /* for glibc */
48594             #endif
48595             #include <math.h>
48596             double (*funcptr) (double) = floor;
48597             double x;
48598int
48599main ()
48600{
48601x = funcptr(x) + floor(x);
48602  ;
48603  return 0;
48604}
48605_ACEOF
48606if ac_fn_c_try_link "$LINENO"; then :
48607  gl_cv_func_floor_libm="-lm"
48608fi
48609rm -f core conftest.err conftest.$ac_objext \
48610    conftest$ac_exeext conftest.$ac_ext
48611      LIBS="$save_LIBS"
48612    fi
48613
48614fi
48615
48616  as_echo_n="$saved_as_echo_n"
48617
48618  FLOOR_LIBM="$gl_cv_func_floor_libm"
48619
48620
48621
48622  saved_as_echo_n="$as_echo_n"
48623  as_echo_n=':'
48624  if ${gl_cv_func_ceil_libm+:} false; then :
48625  $as_echo_n "(cached) " >&6
48626else
48627
48628    gl_cv_func_ceil_libm=?
48629    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48630/* end confdefs.h.  */
48631#ifndef __NO_MATH_INLINES
48632           # define __NO_MATH_INLINES 1 /* for glibc */
48633           #endif
48634           #include <math.h>
48635           double (*funcptr) (double) = ceil;
48636           double x;
48637int
48638main ()
48639{
48640x = funcptr(x) + ceil(x);
48641  ;
48642  return 0;
48643}
48644_ACEOF
48645if ac_fn_c_try_link "$LINENO"; then :
48646  gl_cv_func_ceil_libm=
48647fi
48648rm -f core conftest.err conftest.$ac_objext \
48649    conftest$ac_exeext conftest.$ac_ext
48650    if test "$gl_cv_func_ceil_libm" = "?"; then
48651      save_LIBS="$LIBS"
48652      LIBS="$LIBS -lm"
48653      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48654/* end confdefs.h.  */
48655#ifndef __NO_MATH_INLINES
48656             # define __NO_MATH_INLINES 1 /* for glibc */
48657             #endif
48658             #include <math.h>
48659             double (*funcptr) (double) = ceil;
48660             double x;
48661int
48662main ()
48663{
48664x = funcptr(x) + ceil(x);
48665  ;
48666  return 0;
48667}
48668_ACEOF
48669if ac_fn_c_try_link "$LINENO"; then :
48670  gl_cv_func_ceil_libm="-lm"
48671fi
48672rm -f core conftest.err conftest.$ac_objext \
48673    conftest$ac_exeext conftest.$ac_ext
48674      LIBS="$save_LIBS"
48675    fi
48676
48677fi
48678
48679  as_echo_n="$saved_as_echo_n"
48680
48681  CEIL_LIBM="$gl_cv_func_ceil_libm"
48682
48683    ROUND_LIBM=
48684        case " $ROUND_LIBM " in
48685      *" $FLOOR_LIBM "*) ;;
48686      *) ROUND_LIBM="$ROUND_LIBM $FLOOR_LIBM" ;;
48687    esac
48688        case " $ROUND_LIBM " in
48689      *" $CEIL_LIBM "*) ;;
48690      *) ROUND_LIBM="$ROUND_LIBM $CEIL_LIBM" ;;
48691    esac
48692  fi
48693
48694
48695  if test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1; then
48696
48697
48698
48699
48700
48701
48702
48703
48704  gl_LIBOBJS="$gl_LIBOBJS round.$ac_objext"
48705
48706  fi
48707
48708
48709
48710
48711
48712          GNULIB_ROUND=1
48713
48714
48715
48716
48717
48718$as_echo "#define GNULIB_TEST_ROUND 1" >>confdefs.h
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735  if test $ac_cv_func_secure_getenv = no; then
48736    HAVE_SECURE_GETENV=0
48737  fi
48738
48739  if test $HAVE_SECURE_GETENV = 0; then
48740
48741
48742
48743
48744
48745
48746
48747
48748  gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
48749
48750
48751  for ac_func in __secure_getenv
48752do :
48753  ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
48754if test "x$ac_cv_func___secure_getenv" = xyes; then :
48755  cat >>confdefs.h <<_ACEOF
48756#define HAVE___SECURE_GETENV 1
48757_ACEOF
48758
48759fi
48760done
48761
48762  if test $ac_cv_func___secure_getenv = no; then
48763    for ac_func in issetugid
48764do :
48765  ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
48766if test "x$ac_cv_func_issetugid" = xyes; then :
48767  cat >>confdefs.h <<_ACEOF
48768#define HAVE_ISSETUGID 1
48769_ACEOF
48770
48771fi
48772done
48773
48774  fi
48775
48776
48777  fi
48778
48779
48780
48781
48782
48783          GNULIB_SECURE_GETENV=1
48784
48785
48786
48787
48788
48789$as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
48790
48791
48792
48793
48794
48795
48796
48797  if test "$ac_cv_header_winsock2_h" = yes; then
48798    REPLACE_SELECT=1
48799  else
48800
48801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
48802$as_echo_n "checking whether select supports a 0 argument... " >&6; }
48803if ${gl_cv_func_select_supports0+:} false; then :
48804  $as_echo_n "(cached) " >&6
48805else
48806
48807        if test "$cross_compiling" = yes; then :
48808
48809           case "$host_os" in
48810                       # Guess no on Interix.
48811             interix*) gl_cv_func_select_supports0="guessing no";;
48812                       # Guess yes otherwise.
48813             *)        gl_cv_func_select_supports0="guessing yes";;
48814           esac
48815
48816else
48817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48818/* end confdefs.h.  */
48819
48820#include <sys/types.h>
48821#include <sys/time.h>
48822#if HAVE_SYS_SELECT_H
48823#include <sys/select.h>
48824#endif
48825int main ()
48826{
48827  struct timeval timeout;
48828  timeout.tv_sec = 0;
48829  timeout.tv_usec = 5;
48830  return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
48831}
48832_ACEOF
48833if ac_fn_c_try_run "$LINENO"; then :
48834  gl_cv_func_select_supports0=yes
48835else
48836  gl_cv_func_select_supports0=no
48837fi
48838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48839  conftest.$ac_objext conftest.beam conftest.$ac_ext
48840fi
48841
48842
48843fi
48844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
48845$as_echo "$gl_cv_func_select_supports0" >&6; }
48846    case "$gl_cv_func_select_supports0" in
48847      *yes) ;;
48848      *) REPLACE_SELECT=1 ;;
48849    esac
48850
48851        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
48852$as_echo_n "checking whether select detects invalid fds... " >&6; }
48853if ${gl_cv_func_select_detects_ebadf+:} false; then :
48854  $as_echo_n "(cached) " >&6
48855else
48856
48857        if test "$cross_compiling" = yes; then :
48858
48859           case "$host_os" in
48860                             # Guess yes on Linux systems.
48861            linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
48862                             # Guess yes on glibc systems.
48863            *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
48864                             # If we don't know, obey --enable-cross-guesses.
48865            *)               gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
48866           esac
48867
48868else
48869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48870/* end confdefs.h.  */
48871
48872#include <sys/types.h>
48873#include <sys/time.h>
48874#if HAVE_SYS_SELECT_H
48875# include <sys/select.h>
48876#endif
48877#include <unistd.h>
48878#include <errno.h>
48879
48880int
48881main ()
48882{
48883
48884  fd_set set;
48885  dup2(0, 16);
48886  FD_ZERO(&set);
48887  FD_SET(16, &set);
48888  close(16);
48889  struct timeval timeout;
48890  timeout.tv_sec = 0;
48891  timeout.tv_usec = 5;
48892  return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
48893
48894  ;
48895  return 0;
48896}
48897_ACEOF
48898if ac_fn_c_try_run "$LINENO"; then :
48899  gl_cv_func_select_detects_ebadf=yes
48900else
48901  gl_cv_func_select_detects_ebadf=no
48902fi
48903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48904  conftest.$ac_objext conftest.beam conftest.$ac_ext
48905fi
48906
48907
48908fi
48909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
48910$as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
48911    case $gl_cv_func_select_detects_ebadf in
48912      *yes) ;;
48913      *) REPLACE_SELECT=1 ;;
48914    esac
48915  fi
48916
48917    LIB_SELECT="$LIBSOCKET"
48918  if test $REPLACE_SELECT = 1; then
48919    case "$host_os" in
48920      mingw*)
48921                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48922/* end confdefs.h.  */
48923
48924#define WIN32_LEAN_AND_MEAN
48925#include <windows.h>
48926int
48927main ()
48928{
48929  MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
48930  return 0;
48931}
48932_ACEOF
48933if ac_fn_c_try_link "$LINENO"; then :
48934
48935else
48936  LIB_SELECT="$LIB_SELECT -luser32"
48937fi
48938rm -f core conftest.err conftest.$ac_objext \
48939    conftest$ac_exeext conftest.$ac_ext
48940        ;;
48941    esac
48942  fi
48943
48944
48945  if test $REPLACE_SELECT = 1; then
48946
48947
48948
48949
48950
48951
48952
48953
48954  gl_LIBOBJS="$gl_LIBOBJS select.$ac_objext"
48955
48956  fi
48957
48958
48959
48960
48961
48962          GNULIB_SELECT=1
48963
48964
48965
48966
48967
48968$as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
48969
48970
48971
48972
48973
48974     if test $ac_cv_func_setenv = no; then
48975    HAVE_SETENV=0
48976  else
48977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
48978$as_echo_n "checking whether setenv validates arguments... " >&6; }
48979if ${gl_cv_func_setenv_works+:} false; then :
48980  $as_echo_n "(cached) " >&6
48981else
48982  if test "$cross_compiling" = yes; then :
48983  case "$host_os" in
48984                        # Guess yes on glibc systems.
48985         *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
48986                        # Guess yes on musl systems.
48987         *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
48988                        # If we don't know, obey --enable-cross-guesses.
48989         *)             gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
48990       esac
48991
48992else
48993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48994/* end confdefs.h.  */
48995
48996       #include <stdlib.h>
48997       #include <errno.h>
48998       #include <string.h>
48999
49000int
49001main ()
49002{
49003
49004       int result = 0;
49005       {
49006         if (setenv ("", "", 0) != -1)
49007           result |= 1;
49008         else if (errno != EINVAL)
49009           result |= 2;
49010       }
49011       {
49012         if (setenv ("a", "=", 1) != 0)
49013           result |= 4;
49014         else if (strcmp (getenv ("a"), "=") != 0)
49015           result |= 8;
49016       }
49017       return result;
49018
49019  ;
49020  return 0;
49021}
49022_ACEOF
49023if ac_fn_c_try_run "$LINENO"; then :
49024  gl_cv_func_setenv_works=yes
49025else
49026  gl_cv_func_setenv_works=no
49027fi
49028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49029  conftest.$ac_objext conftest.beam conftest.$ac_ext
49030fi
49031
49032fi
49033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
49034$as_echo "$gl_cv_func_setenv_works" >&6; }
49035    case "$gl_cv_func_setenv_works" in
49036      *yes) ;;
49037      *)
49038        REPLACE_SETENV=1
49039        ;;
49040    esac
49041  fi
49042
49043  if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
49044
49045
49046
49047
49048
49049
49050
49051
49052  gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
49053
49054  fi
49055
49056
49057
49058
49059
49060          GNULIB_SETENV=1
49061
49062
49063
49064
49065
49066$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
49067
49068
49069
49070
49071
49072
49073
49074
49075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
49076$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
49077if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
49078  $as_echo_n "(cached) " >&6
49079else
49080  case "$host_os" in
49081       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
49082       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
49083         gl_cv_func_setlocale_null_all_mtsafe=no ;;
49084       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
49085       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
49086         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
49087       # If we don't know, obey --enable-cross-guesses.
49088       *)
49089         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
49090     esac
49091
49092fi
49093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
49094$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
49095    case "$host_os" in
49096    mingw*) ;;
49097    *)
49098      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
49099        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
49100      fi
49101      ;;
49102  esac
49103  case "$gl_cv_func_setlocale_null_all_mtsafe" in
49104    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
49105    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
49106  esac
49107
49108cat >>confdefs.h <<_ACEOF
49109#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
49110_ACEOF
49111
49112
49113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
49114$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
49115if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
49116  $as_echo_n "(cached) " >&6
49117else
49118  case "$host_os" in
49119       # Guess no on OpenBSD, AIX.
49120       openbsd* | aix*)
49121         gl_cv_func_setlocale_null_one_mtsafe=no ;;
49122       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
49123       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
49124         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
49125       # If we don't know, obey --enable-cross-guesses.
49126       *)
49127         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
49128     esac
49129
49130fi
49131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
49132$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
49133    case "$host_os" in
49134    mingw*) ;;
49135    *)
49136      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
49137        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
49138      fi
49139      ;;
49140  esac
49141  case "$gl_cv_func_setlocale_null_one_mtsafe" in
49142    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
49143    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
49144  esac
49145
49146cat >>confdefs.h <<_ACEOF
49147#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
49148_ACEOF
49149
49150
49151    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
49152    case "$host_os" in
49153      mingw*) LIB_SETLOCALE_NULL= ;;
49154      *)
49155
49156
49157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
49158$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
49159if ${gl_cv_have_weak+:} false; then :
49160  $as_echo_n "(cached) " >&6
49161else
49162  gl_cv_have_weak=no
49163          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49164/* end confdefs.h.  */
49165extern void xyzzy ();
49166#pragma weak xyzzy
49167int
49168main ()
49169{
49170xyzzy();
49171  ;
49172  return 0;
49173}
49174_ACEOF
49175if ac_fn_c_try_link "$LINENO"; then :
49176  gl_cv_have_weak=maybe
49177fi
49178rm -f core conftest.err conftest.$ac_objext \
49179    conftest$ac_exeext conftest.$ac_ext
49180     if test $gl_cv_have_weak = maybe; then
49181                     if test "$cross_compiling" = yes; then :
49182                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49183/* end confdefs.h.  */
49184#ifdef __ELF__
49185             Extensible Linking Format
49186             #endif
49187
49188_ACEOF
49189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49190  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
49191  gl_cv_have_weak="guessing yes"
49192else
49193  gl_cv_have_weak="guessing no"
49194fi
49195rm -f conftest*
49196
49197
49198else
49199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49200/* end confdefs.h.  */
49201
49202#include <stdio.h>
49203#pragma weak fputs
49204int main ()
49205{
49206  return (fputs == NULL);
49207}
49208_ACEOF
49209if ac_fn_c_try_run "$LINENO"; then :
49210  gl_cv_have_weak=yes
49211else
49212  gl_cv_have_weak=no
49213fi
49214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49215  conftest.$ac_objext conftest.beam conftest.$ac_ext
49216fi
49217
49218     fi
49219          case " $LDFLAGS " in
49220       *" -static "*) gl_cv_have_weak=no ;;
49221     esac
49222                    case "$gl_cv_have_weak" in
49223       *yes)
49224         case "$host_os" in
49225           freebsd* | dragonfly*)
49226             : > conftest1.c
49227             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
49228             cat <<EOF > conftest2.c
49229#include <pthread.h>
49230#pragma weak pthread_mutexattr_gettype
49231int main ()
49232{
49233  return (pthread_mutexattr_gettype != NULL);
49234}
49235EOF
49236             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
49237               || gl_cv_have_weak=no
49238             rm -f conftest1.c libempty.so conftest2.c conftest
49239             ;;
49240         esac
49241         ;;
49242     esac
49243
49244fi
49245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
49246$as_echo "$gl_cv_have_weak" >&6; }
49247  case "$gl_cv_have_weak" in
49248    *yes)
49249
49250$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
49251
49252      ;;
49253  esac
49254
49255        case "$gl_cv_have_weak" in
49256          *yes) LIB_SETLOCALE_NULL= ;;
49257          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
49258        esac
49259        ;;
49260    esac
49261  else
49262    LIB_SETLOCALE_NULL=
49263  fi
49264
49265
49266  if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
49267
49268
49269
49270
49271
49272
49273
49274
49275  gl_LIBOBJS="$gl_LIBOBJS setlocale-lock.$ac_objext"
49276
49277
49278
49279
49280  CFLAG_VISIBILITY=
49281  HAVE_VISIBILITY=0
49282  if test -n "$GCC"; then
49283                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
49284$as_echo_n "checking whether the -Werror option is usable... " >&6; }
49285if ${gl_cv_cc_vis_werror+:} false; then :
49286  $as_echo_n "(cached) " >&6
49287else
49288  gl_save_CFLAGS="$CFLAGS"
49289       CFLAGS="$CFLAGS -Werror"
49290       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49291/* end confdefs.h.  */
49292
49293int
49294main ()
49295{
49296
49297  ;
49298  return 0;
49299}
49300_ACEOF
49301if ac_fn_c_try_compile "$LINENO"; then :
49302  gl_cv_cc_vis_werror=yes
49303else
49304  gl_cv_cc_vis_werror=no
49305fi
49306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49307       CFLAGS="$gl_save_CFLAGS"
49308
49309fi
49310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
49311$as_echo "$gl_cv_cc_vis_werror" >&6; }
49312        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
49313$as_echo_n "checking for simple visibility declarations... " >&6; }
49314if ${gl_cv_cc_visibility+:} false; then :
49315  $as_echo_n "(cached) " >&6
49316else
49317  gl_save_CFLAGS="$CFLAGS"
49318       CFLAGS="$CFLAGS -fvisibility=hidden"
49319                                          if test $gl_cv_cc_vis_werror = yes; then
49320         CFLAGS="$CFLAGS -Werror"
49321       fi
49322       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49323/* end confdefs.h.  */
49324extern __attribute__((__visibility__("hidden"))) int hiddenvar;
49325              extern __attribute__((__visibility__("default"))) int exportedvar;
49326              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
49327              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
49328              void dummyfunc (void) {}
49329
49330int
49331main ()
49332{
49333
49334  ;
49335  return 0;
49336}
49337_ACEOF
49338if ac_fn_c_try_compile "$LINENO"; then :
49339  gl_cv_cc_visibility=yes
49340else
49341  gl_cv_cc_visibility=no
49342fi
49343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49344       CFLAGS="$gl_save_CFLAGS"
49345
49346fi
49347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
49348$as_echo "$gl_cv_cc_visibility" >&6; }
49349    if test $gl_cv_cc_visibility = yes; then
49350      CFLAG_VISIBILITY="-fvisibility=hidden"
49351      HAVE_VISIBILITY=1
49352    fi
49353  fi
49354
49355
49356
49357cat >>confdefs.h <<_ACEOF
49358#define HAVE_VISIBILITY $HAVE_VISIBILITY
49359_ACEOF
49360
49361
49362
49363  fi
49364
49365
49366
49367
49368
49369          GNULIB_SETLOCALE_NULL=1
49370
49371
49372
49373
49374
49375$as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
49376
49377
49378
49379
49380
49381
49382  if test $ac_cv_func_sigaction = yes; then
49383    ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
49384"
49385if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
49386
49387cat >>confdefs.h <<_ACEOF
49388#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
49389_ACEOF
49390
49391
49392fi
49393
49394    if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
49395      HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
49396    fi
49397  else
49398    HAVE_SIGACTION=0
49399  fi
49400
49401  if test $HAVE_SIGACTION = 0; then
49402
49403
49404
49405
49406
49407
49408
49409
49410  gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
49411
49412
49413
49414
49415
49416
49417
49418  ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
49419#include <signal.h>
49420
49421"
49422if test "x$ac_cv_type_siginfo_t" = xyes; then :
49423
49424cat >>confdefs.h <<_ACEOF
49425#define HAVE_SIGINFO_T 1
49426_ACEOF
49427
49428
49429fi
49430
49431  if test $ac_cv_type_siginfo_t = no; then
49432    HAVE_SIGINFO_T=0
49433  fi
49434
49435  fi
49436
49437
49438
49439
49440
49441          GNULIB_SIGACTION=1
49442
49443
49444
49445
49446
49447$as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462     if test $gl_cv_have_include_next = yes; then
49463       gl_cv_next_signal_h='<'signal.h'>'
49464     else
49465       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
49466$as_echo_n "checking absolute name of <signal.h>... " >&6; }
49467if ${gl_cv_next_signal_h+:} false; then :
49468  $as_echo_n "(cached) " >&6
49469else
49470
49471
49472
49473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49474/* end confdefs.h.  */
49475#include <signal.h>
49476_ACEOF
49477                case "$host_os" in
49478    aix*) gl_absname_cpp="$ac_cpp -C" ;;
49479    *)    gl_absname_cpp="$ac_cpp" ;;
49480  esac
49481
49482  case "$host_os" in
49483    mingw*)
49484                                          gl_dirsep_regex='[/\\]'
49485      ;;
49486    *)
49487      gl_dirsep_regex='\/'
49488      ;;
49489  esac
49490      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49491  gl_header_literal_regex=`echo 'signal.h' \
49492                           | sed -e "$gl_make_literal_regex_sed"`
49493  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49494      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49495      s|^/[^/]|//&|
49496      p
49497      q
49498    }'
49499
49500        gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49501  sed -n "$gl_absolute_header_sed"`
49502
49503           gl_header=$gl_cv_absolute_signal_h
49504           gl_cv_next_signal_h='"'$gl_header'"'
49505
49506
49507fi
49508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
49509$as_echo "$gl_cv_next_signal_h" >&6; }
49510     fi
49511     NEXT_SIGNAL_H=$gl_cv_next_signal_h
49512
49513     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49514       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49515       gl_next_as_first_directive='<'signal.h'>'
49516     else
49517       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49518       gl_next_as_first_directive=$gl_cv_next_signal_h
49519     fi
49520     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
49521
49522
49523
49524
49525
49526# AIX declares sig_atomic_t to already include volatile, and C89 compilers
49527# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
49528  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
49529#include <signal.h>
49530
49531"
49532if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
49533
49534else
49535  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
49536fi
49537
49538
49539
49540
49541
49542
49543
49544  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
49545#include <signal.h>
49546
49547"
49548if test "x$ac_cv_type_sighandler_t" = xyes; then :
49549
49550else
49551  HAVE_SIGHANDLER_T=0
49552fi
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
49565$as_echo_n "checking for signbit macro... " >&6; }
49566if ${gl_cv_func_signbit+:} false; then :
49567  $as_echo_n "(cached) " >&6
49568else
49569
49570      if test "$cross_compiling" = yes; then :
49571  case "$host_os" in
49572                          # Guess yes on glibc systems.
49573           *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
49574                          # Guess yes on musl systems.
49575           *-musl*)       gl_cv_func_signbit="guessing yes" ;;
49576                          # Guess yes on native Windows.
49577           mingw*)        gl_cv_func_signbit="guessing yes" ;;
49578                          # If we don't know, obey --enable-cross-guesses.
49579           *)             gl_cv_func_signbit="$gl_cross_guess_normal" ;;
49580         esac
49581
49582else
49583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49584/* end confdefs.h.  */
49585
49586#include <math.h>
49587/* If signbit is defined as a function, don't use it, since calling it for
49588   'float' or 'long double' arguments would involve conversions.
49589   If signbit is not declared at all but exists as a library function, don't
49590   use it, since the prototype may not match.
49591   If signbit is not declared at all but exists as a compiler built-in, don't
49592   use it, since it's preferable to use __builtin_signbit* (no warnings,
49593   no conversions).  */
49594#ifndef signbit
49595# error "signbit should be a macro"
49596#endif
49597#include <string.h>
49598
49599/* Global variables.
49600   Needed because GCC 4 constant-folds __builtin_signbitl (literal)
49601   but cannot constant-fold            __builtin_signbitl (variable).  */
49602float vf;
49603double vd;
49604long double vl;
49605int main ()
49606{
49607/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
49608   So we use -p0f and -p0d instead.  */
49609float p0f = 0.0f;
49610float m0f = -p0f;
49611double p0d = 0.0;
49612double m0d = -p0d;
49613/* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
49614   So we use another constant expression instead.
49615   But that expression does not work on other platforms, such as when
49616   cross-compiling to PowerPC on Mac OS X 10.5.  */
49617long double p0l = 0.0L;
49618#if defined __hpux || defined __sgi
49619long double m0l = -LDBL_MIN * LDBL_MIN;
49620#else
49621long double m0l = -p0l;
49622#endif
49623  int result = 0;
49624  if (signbit (vf)) /* link check */
49625    vf++;
49626  {
49627    float plus_inf = 1.0f / p0f;
49628    float minus_inf = -1.0f / p0f;
49629    if (!(!signbit (255.0f)
49630          && signbit (-255.0f)
49631          && !signbit (p0f)
49632          && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
49633          && !signbit (plus_inf)
49634          && signbit (minus_inf)))
49635      result |= 1;
49636  }
49637  if (signbit (vd)) /* link check */
49638    vd++;
49639  {
49640    double plus_inf = 1.0 / p0d;
49641    double minus_inf = -1.0 / p0d;
49642    if (!(!signbit (255.0)
49643          && signbit (-255.0)
49644          && !signbit (p0d)
49645          && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
49646          && !signbit (plus_inf)
49647          && signbit (minus_inf)))
49648      result |= 2;
49649  }
49650  if (signbit (vl)) /* link check */
49651    vl++;
49652  {
49653    long double plus_inf = 1.0L / p0l;
49654    long double minus_inf = -1.0L / p0l;
49655    if (signbit (255.0L))
49656      result |= 4;
49657    if (!signbit (-255.0L))
49658      result |= 4;
49659    if (signbit (p0l))
49660      result |= 8;
49661    if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
49662      result |= 16;
49663    if (signbit (plus_inf))
49664      result |= 32;
49665    if (!signbit (minus_inf))
49666      result |= 64;
49667  }
49668  return result;
49669}
49670
49671
49672_ACEOF
49673if ac_fn_c_try_run "$LINENO"; then :
49674  gl_cv_func_signbit=yes
49675else
49676  gl_cv_func_signbit=no
49677fi
49678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49679  conftest.$ac_objext conftest.beam conftest.$ac_ext
49680fi
49681
49682
49683fi
49684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
49685$as_echo "$gl_cv_func_signbit" >&6; }
49686          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
49687$as_echo_n "checking for signbit compiler built-ins... " >&6; }
49688if ${gl_cv_func_signbit_builtins+:} false; then :
49689  $as_echo_n "(cached) " >&6
49690else
49691
49692      if test "$cross_compiling" = yes; then :
49693  case "$host_os" in
49694                          # Guess yes on glibc systems.
49695           *-gnu* | gnu*) gl_cv_func_signbit_builtins="guessing yes" ;;
49696                          # Guess yes on musl systems.
49697           *-musl*)       gl_cv_func_signbit_builtins="guessing yes" ;;
49698                          # Guess yes on mingw, no on MSVC.
49699           mingw*)        if test -n "$GCC"; then
49700                            gl_cv_func_signbit_builtins="guessing yes"
49701                          else
49702                            gl_cv_func_signbit_builtins="guessing no"
49703                          fi
49704                          ;;
49705                          # If we don't know, obey --enable-cross-guesses.
49706           *)             gl_cv_func_signbit_builtins="$gl_cross_guess_normal" ;;
49707         esac
49708
49709else
49710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49711/* end confdefs.h.  */
49712
49713#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
49714# define signbit(x) \
49715   (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
49716    sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
49717    __builtin_signbitf (x))
49718#else
49719# error "signbit should be three compiler built-ins"
49720#endif
49721#include <string.h>
49722
49723/* Global variables.
49724   Needed because GCC 4 constant-folds __builtin_signbitl (literal)
49725   but cannot constant-fold            __builtin_signbitl (variable).  */
49726float vf;
49727double vd;
49728long double vl;
49729int main ()
49730{
49731/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
49732   So we use -p0f and -p0d instead.  */
49733float p0f = 0.0f;
49734float m0f = -p0f;
49735double p0d = 0.0;
49736double m0d = -p0d;
49737/* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
49738   So we use another constant expression instead.
49739   But that expression does not work on other platforms, such as when
49740   cross-compiling to PowerPC on Mac OS X 10.5.  */
49741long double p0l = 0.0L;
49742#if defined __hpux || defined __sgi
49743long double m0l = -LDBL_MIN * LDBL_MIN;
49744#else
49745long double m0l = -p0l;
49746#endif
49747  int result = 0;
49748  if (signbit (vf)) /* link check */
49749    vf++;
49750  {
49751    float plus_inf = 1.0f / p0f;
49752    float minus_inf = -1.0f / p0f;
49753    if (!(!signbit (255.0f)
49754          && signbit (-255.0f)
49755          && !signbit (p0f)
49756          && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
49757          && !signbit (plus_inf)
49758          && signbit (minus_inf)))
49759      result |= 1;
49760  }
49761  if (signbit (vd)) /* link check */
49762    vd++;
49763  {
49764    double plus_inf = 1.0 / p0d;
49765    double minus_inf = -1.0 / p0d;
49766    if (!(!signbit (255.0)
49767          && signbit (-255.0)
49768          && !signbit (p0d)
49769          && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
49770          && !signbit (plus_inf)
49771          && signbit (minus_inf)))
49772      result |= 2;
49773  }
49774  if (signbit (vl)) /* link check */
49775    vl++;
49776  {
49777    long double plus_inf = 1.0L / p0l;
49778    long double minus_inf = -1.0L / p0l;
49779    if (signbit (255.0L))
49780      result |= 4;
49781    if (!signbit (-255.0L))
49782      result |= 4;
49783    if (signbit (p0l))
49784      result |= 8;
49785    if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
49786      result |= 16;
49787    if (signbit (plus_inf))
49788      result |= 32;
49789    if (!signbit (minus_inf))
49790      result |= 64;
49791  }
49792  return result;
49793}
49794
49795
49796_ACEOF
49797if ac_fn_c_try_run "$LINENO"; then :
49798  gl_cv_func_signbit_builtins=yes
49799else
49800  gl_cv_func_signbit_builtins=no
49801fi
49802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49803  conftest.$ac_objext conftest.beam conftest.$ac_ext
49804fi
49805
49806
49807fi
49808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_builtins" >&5
49809$as_echo "$gl_cv_func_signbit_builtins" >&6; }
49810      case "$gl_cv_func_signbit_builtins" in
49811    *yes)
49812      REPLACE_SIGNBIT_USING_BUILTINS=1
49813      ;;
49814    *)
49815      case "$gl_cv_func_signbit" in
49816        *yes) ;;
49817        *)
49818                    REPLACE_SIGNBIT=1
49819          ;;
49820      esac
49821      ;;
49822  esac
49823          case "$host_os" in
49824    solaris*)
49825      REPLACE_SIGNBIT=1
49826      ;;
49827  esac
49828  if test $REPLACE_SIGNBIT = 1; then
49829
49830
49831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
49832$as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
49833if ${gl_cv_cc_float_signbit+:} false; then :
49834  $as_echo_n "(cached) " >&6
49835else
49836
49837      if test "$cross_compiling" = yes; then :
49838
49839                              gl_cv_cc_float_signbit="unknown"
49840
49841else
49842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49843/* end confdefs.h.  */
49844
49845#include <stddef.h>
49846#include <stdio.h>
49847#define NWORDS \
49848  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49849typedef union { float value; unsigned int word[NWORDS]; }
49850        memory_float;
49851static memory_float plus = { 1.0f };
49852static memory_float minus = { -1.0f };
49853int main ()
49854{
49855  size_t j, k, i;
49856  unsigned int m;
49857  FILE *fp = fopen ("conftest.out", "w");
49858  if (fp == NULL)
49859    return 1;
49860  /* Find the different bit.  */
49861  k = 0; m = 0;
49862  for (j = 0; j < NWORDS; j++)
49863    {
49864      unsigned int x = plus.word[j] ^ minus.word[j];
49865      if ((x & (x - 1)) || (x && m))
49866        {
49867          /* More than one bit difference.  */
49868          fprintf (fp, "unknown");
49869          fclose (fp);
49870          return 2;
49871        }
49872      if (x)
49873        {
49874          k = j;
49875          m = x;
49876        }
49877    }
49878  if (m == 0)
49879    {
49880      /* No difference.  */
49881      fprintf (fp, "unknown");
49882      fclose (fp);
49883      return 3;
49884    }
49885  /* Now m = plus.word[k] ^ ~minus.word[k].  */
49886  if (plus.word[k] & ~minus.word[k])
49887    {
49888      /* Oh? The sign bit is set in the positive and cleared in the negative
49889         numbers?  */
49890      fprintf (fp, "unknown");
49891      fclose (fp);
49892      return 4;
49893    }
49894  for (i = 0; ; i++)
49895    if ((m >> i) & 1)
49896      break;
49897  fprintf (fp, "word %d bit %d", (int) k, (int) i);
49898  if (fclose (fp) != 0)
49899    return 5;
49900  return 0;
49901}
49902
49903_ACEOF
49904if ac_fn_c_try_run "$LINENO"; then :
49905  gl_cv_cc_float_signbit=`cat conftest.out`
49906else
49907  gl_cv_cc_float_signbit="unknown"
49908fi
49909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49910  conftest.$ac_objext conftest.beam conftest.$ac_ext
49911fi
49912
49913      rm -f conftest.out
49914
49915fi
49916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
49917$as_echo "$gl_cv_cc_float_signbit" >&6; }
49918  case "$gl_cv_cc_float_signbit" in
49919    word*bit*)
49920      word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
49921      bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
49922
49923cat >>confdefs.h <<_ACEOF
49924#define FLT_SIGNBIT_WORD $word
49925_ACEOF
49926
49927
49928cat >>confdefs.h <<_ACEOF
49929#define FLT_SIGNBIT_BIT $bit
49930_ACEOF
49931
49932      ;;
49933  esac
49934
49935
49936
49937
49938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
49939$as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
49940if ${gl_cv_cc_double_signbit+:} false; then :
49941  $as_echo_n "(cached) " >&6
49942else
49943
49944      if test "$cross_compiling" = yes; then :
49945
49946                              gl_cv_cc_double_signbit="unknown"
49947
49948else
49949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49950/* end confdefs.h.  */
49951
49952#include <stddef.h>
49953#include <stdio.h>
49954#define NWORDS \
49955  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49956typedef union { double value; unsigned int word[NWORDS]; }
49957        memory_float;
49958static memory_float plus = { 1.0 };
49959static memory_float minus = { -1.0 };
49960int main ()
49961{
49962  size_t j, k, i;
49963  unsigned int m;
49964  FILE *fp = fopen ("conftest.out", "w");
49965  if (fp == NULL)
49966    return 1;
49967  /* Find the different bit.  */
49968  k = 0; m = 0;
49969  for (j = 0; j < NWORDS; j++)
49970    {
49971      unsigned int x = plus.word[j] ^ minus.word[j];
49972      if ((x & (x - 1)) || (x && m))
49973        {
49974          /* More than one bit difference.  */
49975          fprintf (fp, "unknown");
49976          fclose (fp);
49977          return 2;
49978        }
49979      if (x)
49980        {
49981          k = j;
49982          m = x;
49983        }
49984    }
49985  if (m == 0)
49986    {
49987      /* No difference.  */
49988      fprintf (fp, "unknown");
49989      fclose (fp);
49990      return 3;
49991    }
49992  /* Now m = plus.word[k] ^ ~minus.word[k].  */
49993  if (plus.word[k] & ~minus.word[k])
49994    {
49995      /* Oh? The sign bit is set in the positive and cleared in the negative
49996         numbers?  */
49997      fprintf (fp, "unknown");
49998      fclose (fp);
49999      return 4;
50000    }
50001  for (i = 0; ; i++)
50002    if ((m >> i) & 1)
50003      break;
50004  fprintf (fp, "word %d bit %d", (int) k, (int) i);
50005  if (fclose (fp) != 0)
50006    return 5;
50007  return 0;
50008}
50009
50010_ACEOF
50011if ac_fn_c_try_run "$LINENO"; then :
50012  gl_cv_cc_double_signbit=`cat conftest.out`
50013else
50014  gl_cv_cc_double_signbit="unknown"
50015fi
50016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50017  conftest.$ac_objext conftest.beam conftest.$ac_ext
50018fi
50019
50020      rm -f conftest.out
50021
50022fi
50023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
50024$as_echo "$gl_cv_cc_double_signbit" >&6; }
50025  case "$gl_cv_cc_double_signbit" in
50026    word*bit*)
50027      word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
50028      bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
50029
50030cat >>confdefs.h <<_ACEOF
50031#define DBL_SIGNBIT_WORD $word
50032_ACEOF
50033
50034
50035cat >>confdefs.h <<_ACEOF
50036#define DBL_SIGNBIT_BIT $bit
50037_ACEOF
50038
50039      ;;
50040  esac
50041
50042
50043
50044
50045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
50046$as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
50047if ${gl_cv_cc_long_double_signbit+:} false; then :
50048  $as_echo_n "(cached) " >&6
50049else
50050
50051      if test "$cross_compiling" = yes; then :
50052
50053                              gl_cv_cc_long_double_signbit="unknown"
50054
50055else
50056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50057/* end confdefs.h.  */
50058
50059#include <stddef.h>
50060#include <stdio.h>
50061#define NWORDS \
50062  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
50063typedef union { long double value; unsigned int word[NWORDS]; }
50064        memory_float;
50065static memory_float plus = { 1.0L };
50066static memory_float minus = { -1.0L };
50067int main ()
50068{
50069  size_t j, k, i;
50070  unsigned int m;
50071  FILE *fp = fopen ("conftest.out", "w");
50072  if (fp == NULL)
50073    return 1;
50074  /* Find the different bit.  */
50075  k = 0; m = 0;
50076  for (j = 0; j < NWORDS; j++)
50077    {
50078      unsigned int x = plus.word[j] ^ minus.word[j];
50079      if ((x & (x - 1)) || (x && m))
50080        {
50081          /* More than one bit difference.  */
50082          fprintf (fp, "unknown");
50083          fclose (fp);
50084          return 2;
50085        }
50086      if (x)
50087        {
50088          k = j;
50089          m = x;
50090        }
50091    }
50092  if (m == 0)
50093    {
50094      /* No difference.  */
50095      fprintf (fp, "unknown");
50096      fclose (fp);
50097      return 3;
50098    }
50099  /* Now m = plus.word[k] ^ ~minus.word[k].  */
50100  if (plus.word[k] & ~minus.word[k])
50101    {
50102      /* Oh? The sign bit is set in the positive and cleared in the negative
50103         numbers?  */
50104      fprintf (fp, "unknown");
50105      fclose (fp);
50106      return 4;
50107    }
50108  for (i = 0; ; i++)
50109    if ((m >> i) & 1)
50110      break;
50111  fprintf (fp, "word %d bit %d", (int) k, (int) i);
50112  if (fclose (fp) != 0)
50113    return 5;
50114  return 0;
50115}
50116
50117_ACEOF
50118if ac_fn_c_try_run "$LINENO"; then :
50119  gl_cv_cc_long_double_signbit=`cat conftest.out`
50120else
50121  gl_cv_cc_long_double_signbit="unknown"
50122fi
50123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50124  conftest.$ac_objext conftest.beam conftest.$ac_ext
50125fi
50126
50127      rm -f conftest.out
50128
50129fi
50130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
50131$as_echo "$gl_cv_cc_long_double_signbit" >&6; }
50132  case "$gl_cv_cc_long_double_signbit" in
50133    word*bit*)
50134      word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
50135      bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
50136
50137cat >>confdefs.h <<_ACEOF
50138#define LDBL_SIGNBIT_WORD $word
50139_ACEOF
50140
50141
50142cat >>confdefs.h <<_ACEOF
50143#define LDBL_SIGNBIT_BIT $bit
50144_ACEOF
50145
50146      ;;
50147  esac
50148
50149
50150    if test "$gl_cv_cc_float_signbit" = unknown; then
50151            ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
50152"
50153if test "x$ac_cv_have_decl_copysignf" = xyes; then :
50154  ac_have_decl=1
50155else
50156  ac_have_decl=0
50157fi
50158
50159cat >>confdefs.h <<_ACEOF
50160#define HAVE_DECL_COPYSIGNF $ac_have_decl
50161_ACEOF
50162
50163      if test "$ac_cv_have_decl_copysignf" = yes; then
50164                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
50165$as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
50166if ${gl_cv_func_copysignf_no_libm+:} false; then :
50167  $as_echo_n "(cached) " >&6
50168else
50169
50170            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50171/* end confdefs.h.  */
50172#include <math.h>
50173                   float x, y;
50174int
50175main ()
50176{
50177return copysignf (x, y) < 0;
50178  ;
50179  return 0;
50180}
50181_ACEOF
50182if ac_fn_c_try_link "$LINENO"; then :
50183  gl_cv_func_copysignf_no_libm=yes
50184else
50185  gl_cv_func_copysignf_no_libm=no
50186fi
50187rm -f core conftest.err conftest.$ac_objext \
50188    conftest$ac_exeext conftest.$ac_ext
50189
50190fi
50191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
50192$as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
50193        if test $gl_cv_func_copysignf_no_libm = yes; then
50194
50195$as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
50196
50197        fi
50198      fi
50199    fi
50200    if test "$gl_cv_cc_double_signbit" = unknown; then
50201            ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
50202"
50203if test "x$ac_cv_have_decl_copysign" = xyes; then :
50204  ac_have_decl=1
50205else
50206  ac_have_decl=0
50207fi
50208
50209cat >>confdefs.h <<_ACEOF
50210#define HAVE_DECL_COPYSIGN $ac_have_decl
50211_ACEOF
50212
50213      if test "$ac_cv_have_decl_copysign" = yes; then
50214                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
50215$as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
50216if ${gl_cv_func_copysign_no_libm+:} false; then :
50217  $as_echo_n "(cached) " >&6
50218else
50219
50220            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50221/* end confdefs.h.  */
50222#include <math.h>
50223                   double x, y;
50224int
50225main ()
50226{
50227return copysign (x, y) < 0;
50228  ;
50229  return 0;
50230}
50231_ACEOF
50232if ac_fn_c_try_link "$LINENO"; then :
50233  gl_cv_func_copysign_no_libm=yes
50234else
50235  gl_cv_func_copysign_no_libm=no
50236fi
50237rm -f core conftest.err conftest.$ac_objext \
50238    conftest$ac_exeext conftest.$ac_ext
50239
50240fi
50241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
50242$as_echo "$gl_cv_func_copysign_no_libm" >&6; }
50243        if test $gl_cv_func_copysign_no_libm = yes; then
50244
50245$as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
50246
50247        fi
50248      fi
50249    fi
50250    if test "$gl_cv_cc_long_double_signbit" = unknown; then
50251            ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
50252"
50253if test "x$ac_cv_have_decl_copysignl" = xyes; then :
50254  ac_have_decl=1
50255else
50256  ac_have_decl=0
50257fi
50258
50259cat >>confdefs.h <<_ACEOF
50260#define HAVE_DECL_COPYSIGNL $ac_have_decl
50261_ACEOF
50262
50263      if test "$ac_cv_have_decl_copysignl" = yes; then
50264                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
50265$as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
50266if ${gl_cv_func_copysignl_no_libm+:} false; then :
50267  $as_echo_n "(cached) " >&6
50268else
50269
50270            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50271/* end confdefs.h.  */
50272#include <math.h>
50273                   long double x, y;
50274int
50275main ()
50276{
50277return copysignl (x, y) < 0;
50278  ;
50279  return 0;
50280}
50281_ACEOF
50282if ac_fn_c_try_link "$LINENO"; then :
50283  gl_cv_func_copysignl_no_libm=yes
50284else
50285  gl_cv_func_copysignl_no_libm=no
50286fi
50287rm -f core conftest.err conftest.$ac_objext \
50288    conftest$ac_exeext conftest.$ac_ext
50289
50290fi
50291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
50292$as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
50293        if test $gl_cv_func_copysignl_no_libm = yes; then
50294
50295$as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
50296
50297        fi
50298      fi
50299    fi
50300  fi
50301
50302  if test $REPLACE_SIGNBIT = 1; then
50303
50304
50305
50306
50307
50308
50309
50310
50311  gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
50312
50313
50314
50315
50316
50317
50318
50319
50320
50321  gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
50322
50323
50324
50325
50326
50327
50328
50329
50330
50331  gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
50332
50333  fi
50334
50335
50336
50337
50338
50339          GNULIB_SIGNBIT=1
50340
50341
50342
50343
50344
50345$as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
50346
50347
50348
50349
50350
50351
50352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigprocmask" >&5
50353$as_echo_n "checking for sigprocmask... " >&6; }
50354if ${gl_cv_func_sigprocmask_v16+:} false; then :
50355  $as_echo_n "(cached) " >&6
50356else
50357  if test $gl_cv_type_sigset_t = yes; then
50358
50359  {
50360
50361         ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
50362if test "x$ac_cv_func_sigprocmask" = xyes; then :
50363  gl_cv_func_sigprocmask_v16=yes
50364else
50365  gl_cv_func_sigprocmask_v16=no
50366fi
50367
50368
50369  } 6>/dev/null
50370
50371     else
50372       gl_cv_func_sigprocmask_v16=no
50373     fi
50374
50375fi
50376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sigprocmask_v16" >&5
50377$as_echo "$gl_cv_func_sigprocmask_v16" >&6; }
50378  if test $gl_cv_func_sigprocmask_v16 != yes; then
50379    HAVE_POSIX_SIGNALBLOCKING=0
50380  fi
50381
50382  if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
50383
50384
50385
50386
50387
50388
50389
50390
50391  gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
50392
50393    :
50394  fi
50395
50396
50397
50398
50399
50400          GNULIB_SIGPROCMASK=1
50401
50402
50403
50404
50405
50406$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
50407
50408
50409
50410
50411  for ac_header in stdint.h
50412do :
50413  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
50414if test "x$ac_cv_header_stdint_h" = xyes; then :
50415  cat >>confdefs.h <<_ACEOF
50416#define HAVE_STDINT_H 1
50417_ACEOF
50418
50419fi
50420
50421done
50422
50423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
50424$as_echo_n "checking for SIZE_MAX... " >&6; }
50425if ${gl_cv_size_max+:} false; then :
50426  $as_echo_n "(cached) " >&6
50427else
50428
50429    gl_cv_size_max=no
50430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50431/* end confdefs.h.  */
50432
50433#include <limits.h>
50434#if HAVE_STDINT_H
50435#include <stdint.h>
50436#endif
50437#ifdef SIZE_MAX
50438Found it
50439#endif
50440
50441_ACEOF
50442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50443  $EGREP "Found it" >/dev/null 2>&1; then :
50444  gl_cv_size_max=yes
50445fi
50446rm -f conftest*
50447
50448    if test $gl_cv_size_max != yes; then
50449                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
50450#include <limits.h>"; then :
50451
50452else
50453  size_t_bits_minus_1=
50454fi
50455
50456      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
50457
50458else
50459  fits_in_uint=
50460fi
50461
50462      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
50463        if test $fits_in_uint = 1; then
50464                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50465/* end confdefs.h.  */
50466#include <stddef.h>
50467                 extern size_t foo;
50468                 extern unsigned long foo;
50469
50470int
50471main ()
50472{
50473
50474  ;
50475  return 0;
50476}
50477_ACEOF
50478if ac_fn_c_try_compile "$LINENO"; then :
50479  fits_in_uint=0
50480fi
50481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50482        fi
50483                                if test $fits_in_uint = 1; then
50484          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
50485        else
50486          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
50487        fi
50488      else
50489                gl_cv_size_max='((size_t)~(size_t)0)'
50490      fi
50491    fi
50492
50493fi
50494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
50495$as_echo "$gl_cv_size_max" >&6; }
50496  if test "$gl_cv_size_max" != yes; then
50497
50498cat >>confdefs.h <<_ACEOF
50499#define SIZE_MAX $gl_cv_size_max
50500_ACEOF
50501
50502  fi
50503
50504
50505
50506
50507  gl_cv_func_snprintf_usable=no
50508  for ac_func in snprintf
50509do :
50510  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
50511if test "x$ac_cv_func_snprintf" = xyes; then :
50512  cat >>confdefs.h <<_ACEOF
50513#define HAVE_SNPRINTF 1
50514_ACEOF
50515
50516fi
50517done
50518
50519  if test $ac_cv_func_snprintf = yes; then
50520
50521
50522
50523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
50524$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
50525if ${gl_cv_func_snprintf_size1+:} false; then :
50526  $as_echo_n "(cached) " >&6
50527else
50528
50529      if test "$cross_compiling" = yes; then :
50530  case "$host_os" in
50531                            # Guess yes on Android.
50532           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
50533                            # Guess yes on native Windows.
50534           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
50535           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
50536         esac
50537
50538else
50539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50540/* end confdefs.h.  */
50541
50542#include <stdio.h>
50543#if HAVE_SNPRINTF
50544# define my_snprintf snprintf
50545#else
50546# include <stdarg.h>
50547static int my_snprintf (char *buf, int size, const char *format, ...)
50548{
50549  va_list args;
50550  int ret;
50551  va_start (args, format);
50552  ret = vsnprintf (buf, size, format, args);
50553  va_end (args);
50554  return ret;
50555}
50556#endif
50557int main()
50558{
50559  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
50560  my_snprintf (buf, 1, "%d", 12345);
50561  return buf[1] != 'E';
50562}
50563_ACEOF
50564if ac_fn_c_try_run "$LINENO"; then :
50565  gl_cv_func_snprintf_size1=yes
50566else
50567  gl_cv_func_snprintf_size1=no
50568fi
50569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50570  conftest.$ac_objext conftest.beam conftest.$ac_ext
50571fi
50572
50573
50574fi
50575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
50576$as_echo "$gl_cv_func_snprintf_size1" >&6; }
50577
50578    case "$gl_cv_func_snprintf_size1" in
50579      *yes)
50580
50581        case "$gl_cv_func_snprintf_retval_c99" in
50582          *yes)
50583
50584
50585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
50586$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
50587if ${gl_cv_func_printf_positions+:} false; then :
50588  $as_echo_n "(cached) " >&6
50589else
50590
50591      if test "$cross_compiling" = yes; then :
50592
50593         case "$host_os" in
50594           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
50595                            gl_cv_func_printf_positions="guessing no";;
50596           beos*)           gl_cv_func_printf_positions="guessing no";;
50597                            # Guess yes on Android.
50598           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
50599                            # Guess no on native Windows.
50600           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
50601           *)               gl_cv_func_printf_positions="guessing yes";;
50602         esac
50603
50604else
50605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50606/* end confdefs.h.  */
50607
50608#include <stdio.h>
50609#include <string.h>
50610/* The string "%2$d %1$d", with dollar characters protected from the shell's
50611   dollar expansion (possibly an autoconf bug).  */
50612static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
50613static char buf[100];
50614int main ()
50615{
50616  sprintf (buf, format, 33, 55);
50617  return (strcmp (buf, "55 33") != 0);
50618}
50619_ACEOF
50620if ac_fn_c_try_run "$LINENO"; then :
50621  gl_cv_func_printf_positions=yes
50622else
50623  gl_cv_func_printf_positions=no
50624fi
50625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50626  conftest.$ac_objext conftest.beam conftest.$ac_ext
50627fi
50628
50629
50630fi
50631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
50632$as_echo "$gl_cv_func_printf_positions" >&6; }
50633
50634            case "$gl_cv_func_printf_positions" in
50635              *yes)
50636                gl_cv_func_snprintf_usable=yes
50637                ;;
50638            esac
50639            ;;
50640        esac
50641        ;;
50642    esac
50643  fi
50644  if test $gl_cv_func_snprintf_usable = no; then
50645
50646
50647
50648
50649
50650
50651
50652
50653
50654
50655  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
50656
50657  if test $ac_cv_func_snprintf = yes; then
50658    REPLACE_SNPRINTF=1
50659  else
50660
50661    if test $ac_cv_have_decl_snprintf = yes; then
50662                        REPLACE_SNPRINTF=1
50663    fi
50664  fi
50665  :
50666
50667  fi
50668
50669  if test $ac_cv_have_decl_snprintf = no; then
50670    HAVE_DECL_SNPRINTF=0
50671  fi
50672
50673
50674
50675
50676
50677
50678          GNULIB_SNPRINTF=1
50679
50680
50681
50682
50683
50684$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
50685
50686
50687
50688
50689
50690cat >>confdefs.h <<_ACEOF
50691#define GNULIB_SNPRINTF 1
50692_ACEOF
50693
50694
50695
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710  gl_cv_func_snprintf_posix=no
50711  for ac_func in snprintf
50712do :
50713  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
50714if test "x$ac_cv_func_snprintf" = xyes; then :
50715  cat >>confdefs.h <<_ACEOF
50716#define HAVE_SNPRINTF 1
50717_ACEOF
50718
50719fi
50720done
50721
50722  if test $ac_cv_func_snprintf = yes; then
50723
50724
50725
50726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
50727$as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; }
50728if ${gl_cv_func_snprintf_truncation_c99+:} false; then :
50729  $as_echo_n "(cached) " >&6
50730else
50731
50732      if test "$cross_compiling" = yes; then :
50733
50734         case "$host_os" in
50735                                 # Guess yes on glibc systems.
50736           *-gnu* | gnu*)        gl_cv_func_snprintf_truncation_c99="guessing yes";;
50737                                 # Guess yes on musl systems.
50738           *-musl*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
50739                                 # Guess yes on FreeBSD >= 5.
50740           freebsd[1-4].*)       gl_cv_func_snprintf_truncation_c99="guessing no";;
50741           freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
50742                                 # Guess yes on Mac OS X >= 10.3.
50743           darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
50744           darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
50745                                 # Guess yes on OpenBSD >= 3.9.
50746           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
50747                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
50748           openbsd*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
50749                                 # Guess yes on Solaris >= 2.6.
50750           solaris2.[0-5] | solaris2.[0-5].*)
50751                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
50752           solaris*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
50753                                 # Guess yes on AIX >= 4.
50754           aix[1-3]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
50755           aix*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
50756                                 # Guess yes on HP-UX >= 11.
50757           hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
50758           hpux*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
50759                                 # Guess yes on IRIX >= 6.5.
50760           irix6.5)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
50761                                 # Guess yes on OSF/1 >= 5.
50762           osf[3-4]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
50763           osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
50764                                 # Guess yes on NetBSD >= 3.
50765           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
50766                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
50767           netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
50768                                 # Guess yes on BeOS.
50769           beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
50770                                 # Guess yes on Android.
50771           linux*-android*)      gl_cv_func_snprintf_truncation_c99="guessing yes";;
50772                                 # Guess no on native Windows.
50773           mingw*)               gl_cv_func_snprintf_truncation_c99="guessing no";;
50774                                 # If we don't know, obey --enable-cross-guesses.
50775           *)                    gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
50776         esac
50777
50778else
50779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50780/* end confdefs.h.  */
50781
50782#include <stdio.h>
50783#include <string.h>
50784#if HAVE_SNPRINTF
50785# define my_snprintf snprintf
50786#else
50787# include <stdarg.h>
50788static int my_snprintf (char *buf, int size, const char *format, ...)
50789{
50790  va_list args;
50791  int ret;
50792  va_start (args, format);
50793  ret = vsnprintf (buf, size, format, args);
50794  va_end (args);
50795  return ret;
50796}
50797#endif
50798static char buf[100];
50799int main ()
50800{
50801  strcpy (buf, "ABCDEF");
50802  my_snprintf (buf, 3, "%d %d", 4567, 89);
50803  if (memcmp (buf, "45\0DEF", 6) != 0)
50804    return 1;
50805  return 0;
50806}
50807_ACEOF
50808if ac_fn_c_try_run "$LINENO"; then :
50809  gl_cv_func_snprintf_truncation_c99=yes
50810else
50811  gl_cv_func_snprintf_truncation_c99=no
50812fi
50813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50814  conftest.$ac_objext conftest.beam conftest.$ac_ext
50815fi
50816
50817
50818fi
50819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
50820$as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; }
50821
50822
50823
50824
50825
50826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf fully supports the 'n' directive" >&5
50827$as_echo_n "checking whether snprintf fully supports the 'n' directive... " >&6; }
50828if ${gl_cv_func_snprintf_directive_n+:} false; then :
50829  $as_echo_n "(cached) " >&6
50830else
50831
50832      if test "$cross_compiling" = yes; then :
50833
50834         case "$host_os" in
50835                                 # Guess no on glibc when _FORTIFY_SOURCE >= 2.
50836           *-gnu* | gnu*)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50837/* end confdefs.h.  */
50838#if _FORTIFY_SOURCE >= 2
50839                                         error fail
50840                                        #endif
50841
50842_ACEOF
50843if ac_fn_c_try_compile "$LINENO"; then :
50844  gl_cv_func_snprintf_directive_n="guessing yes"
50845else
50846  gl_cv_func_snprintf_directive_n="guessing no"
50847fi
50848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50849                                 ;;
50850                                 # Guess yes on musl systems.
50851           *-musl*)              gl_cv_func_snprintf_directive_n="guessing yes";;
50852                                 # Guess yes on FreeBSD >= 5.
50853           freebsd[1-4].*)       gl_cv_func_snprintf_directive_n="guessing no";;
50854           freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
50855                                 # Guess yes on Mac OS X >= 10.3.
50856           darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
50857           darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
50858                                 # Guess yes on Solaris >= 2.6.
50859           solaris2.[0-5] | solaris2.[0-5].*)
50860                                 gl_cv_func_snprintf_directive_n="guessing no";;
50861           solaris*)             gl_cv_func_snprintf_directive_n="guessing yes";;
50862                                 # Guess yes on AIX >= 4.
50863           aix[1-3]*)            gl_cv_func_snprintf_directive_n="guessing no";;
50864           aix*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
50865                                 # Guess yes on IRIX >= 6.5.
50866           irix6.5)              gl_cv_func_snprintf_directive_n="guessing yes";;
50867                                 # Guess yes on OSF/1 >= 5.
50868           osf[3-4]*)            gl_cv_func_snprintf_directive_n="guessing no";;
50869           osf*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
50870                                 # Guess yes on NetBSD >= 3.
50871           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
50872                                 gl_cv_func_snprintf_directive_n="guessing no";;
50873           netbsd*)              gl_cv_func_snprintf_directive_n="guessing yes";;
50874                                 # Guess yes on BeOS.
50875           beos*)                gl_cv_func_snprintf_directive_n="guessing yes";;
50876                                 # Guess no on Android.
50877           linux*-android*)      gl_cv_func_snprintf_directive_n="guessing no";;
50878                                 # Guess no on native Windows.
50879           mingw*)               gl_cv_func_snprintf_directive_n="guessing no";;
50880                                 # If we don't know, obey --enable-cross-guesses.
50881           *)                    gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";;
50882         esac
50883
50884else
50885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50886/* end confdefs.h.  */
50887
50888#include <stdio.h>
50889#include <string.h>
50890#if HAVE_SNPRINTF
50891# define my_snprintf snprintf
50892#else
50893# include <stdarg.h>
50894static int my_snprintf (char *buf, int size, const char *format, ...)
50895{
50896  va_list args;
50897  int ret;
50898  va_start (args, format);
50899  ret = vsnprintf (buf, size, format, args);
50900  va_end (args);
50901  return ret;
50902}
50903#endif
50904static char fmtstring[10];
50905static char buf[100];
50906int main ()
50907{
50908  int count = -1;
50909  /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
50910     support %n in format strings in read-only memory but not in writable
50911     memory.  */
50912  strcpy (fmtstring, "%d %n");
50913  my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
50914  if (count != 6)
50915    return 1;
50916  return 0;
50917}
50918_ACEOF
50919if ac_fn_c_try_run "$LINENO"; then :
50920  gl_cv_func_snprintf_directive_n=yes
50921else
50922  gl_cv_func_snprintf_directive_n=no
50923fi
50924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50925  conftest.$ac_objext conftest.beam conftest.$ac_ext
50926fi
50927
50928
50929fi
50930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_directive_n" >&5
50931$as_echo "$gl_cv_func_snprintf_directive_n" >&6; }
50932
50933
50934
50935
50936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
50937$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
50938if ${gl_cv_func_snprintf_size1+:} false; then :
50939  $as_echo_n "(cached) " >&6
50940else
50941
50942      if test "$cross_compiling" = yes; then :
50943  case "$host_os" in
50944                            # Guess yes on Android.
50945           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
50946                            # Guess yes on native Windows.
50947           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
50948           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
50949         esac
50950
50951else
50952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50953/* end confdefs.h.  */
50954
50955#include <stdio.h>
50956#if HAVE_SNPRINTF
50957# define my_snprintf snprintf
50958#else
50959# include <stdarg.h>
50960static int my_snprintf (char *buf, int size, const char *format, ...)
50961{
50962  va_list args;
50963  int ret;
50964  va_start (args, format);
50965  ret = vsnprintf (buf, size, format, args);
50966  va_end (args);
50967  return ret;
50968}
50969#endif
50970int main()
50971{
50972  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
50973  my_snprintf (buf, 1, "%d", 12345);
50974  return buf[1] != 'E';
50975}
50976_ACEOF
50977if ac_fn_c_try_run "$LINENO"; then :
50978  gl_cv_func_snprintf_size1=yes
50979else
50980  gl_cv_func_snprintf_size1=no
50981fi
50982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50983  conftest.$ac_objext conftest.beam conftest.$ac_ext
50984fi
50985
50986
50987fi
50988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
50989$as_echo "$gl_cv_func_snprintf_size1" >&6; }
50990
50991
50992
50993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf respects a zero size as in C99" >&5
50994$as_echo_n "checking whether vsnprintf respects a zero size as in C99... " >&6; }
50995if ${gl_cv_func_vsnprintf_zerosize_c99+:} false; then :
50996  $as_echo_n "(cached) " >&6
50997else
50998
50999      if test "$cross_compiling" = yes; then :
51000
51001         case "$host_os" in
51002                                 # Guess yes on glibc systems.
51003           *-gnu* | gnu*)        gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51004                                 # Guess yes on musl systems.
51005           *-musl*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51006                                 # Guess yes on FreeBSD >= 5.
51007           freebsd[1-4].*)       gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
51008           freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51009                                 # Guess yes on Mac OS X >= 10.3.
51010           darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
51011           darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51012                                 # Guess yes on Cygwin.
51013           cygwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51014                                 # Guess yes on Solaris >= 2.6.
51015           solaris2.[0-5] | solaris2.[0-5].*)
51016                                 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
51017           solaris*)             gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51018                                 # Guess yes on AIX >= 4.
51019           aix[1-3]*)            gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
51020           aix*)                 gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51021                                 # Guess yes on IRIX >= 6.5.
51022           irix6.5)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51023                                 # Guess yes on NetBSD >= 3.
51024           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
51025                                 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
51026           netbsd*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51027                                 # Guess yes on BeOS.
51028           beos*)                gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51029                                 # Guess yes on Android.
51030           linux*-android*)      gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51031                                 # Guess yes on native Windows.
51032           mingw* | pw*)         gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
51033                                 # If we don't know, obey --enable-cross-guesses.
51034           *)                    gl_cv_func_vsnprintf_zerosize_c99="$gl_cross_guess_normal";;
51035         esac
51036
51037else
51038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51039/* end confdefs.h.  */
51040
51041#include <stdarg.h>
51042#include <stdio.h>
51043static int my_snprintf (char *buf, int size, const char *format, ...)
51044{
51045  va_list args;
51046  int ret;
51047  va_start (args, format);
51048  ret = vsnprintf (buf, size, format, args);
51049  va_end (args);
51050  return ret;
51051}
51052int main()
51053{
51054  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
51055  my_snprintf (buf, 0, "%d", 12345);
51056  return buf[0] != 'D';
51057}
51058_ACEOF
51059if ac_fn_c_try_run "$LINENO"; then :
51060  gl_cv_func_vsnprintf_zerosize_c99=yes
51061else
51062  gl_cv_func_vsnprintf_zerosize_c99=no
51063fi
51064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51065  conftest.$ac_objext conftest.beam conftest.$ac_ext
51066fi
51067
51068
51069fi
51070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_vsnprintf_zerosize_c99" >&5
51071$as_echo "$gl_cv_func_vsnprintf_zerosize_c99" >&6; }
51072
51073    case "$gl_cv_func_printf_sizes_c99" in
51074      *yes)
51075        case "$gl_cv_func_printf_long_double" in
51076          *yes)
51077            case "$gl_cv_func_printf_infinite" in
51078              *yes)
51079                case "$gl_cv_func_printf_infinite_long_double" in
51080                  *yes)
51081                    case "$gl_cv_func_printf_directive_a" in
51082                      *yes)
51083                        case "$gl_cv_func_printf_directive_f" in
51084                          *yes)
51085                            case "$gl_cv_func_printf_directive_n" in
51086                              *yes)
51087                                case "$gl_cv_func_printf_directive_ls" in
51088                                  *yes)
51089                                    case "$gl_cv_func_printf_positions" in
51090                                      *yes)
51091                                        case "$gl_cv_func_printf_flag_grouping" in
51092                                          *yes)
51093                                            case "$gl_cv_func_printf_flag_leftadjust" in
51094                                              *yes)
51095                                                case "$gl_cv_func_printf_flag_zero" in
51096                                                  *yes)
51097                                                    case "$gl_cv_func_printf_precision" in
51098                                                      *yes)
51099                                                        case "$gl_cv_func_printf_enomem" in
51100                                                          *yes)
51101                                                            case "$gl_cv_func_snprintf_truncation_c99" in
51102                                                              *yes)
51103                                                                case "$gl_cv_func_snprintf_retval_c99" in
51104                                                                  *yes)
51105                                                                    case "$gl_cv_func_snprintf_directive_n" in
51106                                                                      *yes)
51107                                                                        case "$gl_cv_func_snprintf_size1" in
51108                                                                          *yes)
51109                                                                            case "$gl_cv_func_vsnprintf_zerosize_c99" in
51110                                                                              *yes)
51111                                                                                # snprintf exists and is
51112                                                                                # already POSIX compliant.
51113                                                                                gl_cv_func_snprintf_posix=yes
51114                                                                                ;;
51115                                                                            esac
51116                                                                            ;;
51117                                                                        esac
51118                                                                        ;;
51119                                                                    esac
51120                                                                    ;;
51121                                                                esac
51122                                                                ;;
51123                                                            esac
51124                                                            ;;
51125                                                        esac
51126                                                        ;;
51127                                                    esac
51128                                                    ;;
51129                                                esac
51130                                                ;;
51131                                            esac
51132                                            ;;
51133                                        esac
51134                                        ;;
51135                                    esac
51136                                    ;;
51137                                esac
51138                                ;;
51139                            esac
51140                            ;;
51141                        esac
51142                        ;;
51143                    esac
51144                    ;;
51145                esac
51146                ;;
51147            esac
51148            ;;
51149        esac
51150        ;;
51151    esac
51152  fi
51153  if test $gl_cv_func_snprintf_posix = no; then
51154
51155
51156
51157  case "$gl_cv_func_printf_infinite" in
51158    *yes)
51159      ;;
51160    *)
51161
51162$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
51163
51164      ;;
51165  esac
51166
51167
51168
51169
51170  case "$gl_cv_func_printf_long_double" in
51171    *yes)
51172      case "$gl_cv_func_printf_infinite_long_double" in
51173        *yes)
51174          ;;
51175        *)
51176
51177$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
51178
51179          ;;
51180      esac
51181      ;;
51182  esac
51183
51184
51185
51186  case "$gl_cv_func_printf_directive_a" in
51187    *yes)
51188      ;;
51189    *)
51190
51191$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
51192
51193      for ac_func in nl_langinfo
51194do :
51195  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
51196if test "x$ac_cv_func_nl_langinfo" = xyes; then :
51197  cat >>confdefs.h <<_ACEOF
51198#define HAVE_NL_LANGINFO 1
51199_ACEOF
51200
51201fi
51202done
51203
51204      ;;
51205  esac
51206
51207
51208
51209  case "$gl_cv_func_printf_directive_f" in
51210    *yes)
51211      ;;
51212    *)
51213
51214$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
51215
51216      ;;
51217  esac
51218
51219
51220
51221  case "$gl_cv_func_printf_directive_ls" in
51222    *yes)
51223      ;;
51224    *)
51225
51226$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
51227
51228      ;;
51229  esac
51230
51231
51232
51233  case "$gl_cv_func_printf_flag_grouping" in
51234    *yes)
51235      ;;
51236    *)
51237
51238$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
51239
51240      ;;
51241  esac
51242
51243
51244
51245  case "$gl_cv_func_printf_flag_leftadjust" in
51246    *yes)
51247      ;;
51248    *)
51249
51250$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
51251
51252      ;;
51253  esac
51254
51255
51256
51257  case "$gl_cv_func_printf_flag_zero" in
51258    *yes)
51259      ;;
51260    *)
51261
51262$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
51263
51264      ;;
51265  esac
51266
51267
51268
51269  case "$gl_cv_func_printf_precision" in
51270    *yes)
51271      ;;
51272    *)
51273
51274$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
51275
51276
51277$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
51278
51279
51280$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
51281
51282      ;;
51283  esac
51284
51285
51286
51287  case "$gl_cv_func_printf_enomem" in
51288    *yes)
51289      ;;
51290    *)
51291
51292$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
51293
51294
51295$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
51296
51297
51298$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
51299
51300      ;;
51301  esac
51302
51303
51304
51305
51306
51307
51308
51309
51310
51311
51312
51313  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
51314
51315
51316
51317
51318
51319
51320
51321
51322
51323  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
51324
51325
51326
51327
51328
51329
51330
51331
51332
51333  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
51334
51335
51336
51337
51338
51339
51340
51341
51342
51343  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
51344
51345  if test $ac_cv_func_vasnprintf = yes; then
51346
51347$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
51348
51349  fi
51350
51351
51352
51353
51354
51355
51356
51357
51358
51359  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
51360if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
51361
51362else
51363
51364$as_echo "#define ptrdiff_t long" >>confdefs.h
51365
51366
51367fi
51368
51369
51370
51371
51372
51373
51374
51375
51376
51377
51378
51379
51380
51381
51382
51383
51384
51385  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
51386
51387  if test $ac_cv_func_snprintf = yes; then
51388    REPLACE_SNPRINTF=1
51389  else
51390
51391    if test $ac_cv_have_decl_snprintf = yes; then
51392                        REPLACE_SNPRINTF=1
51393    fi
51394  fi
51395  :
51396
51397  fi
51398
51399
51400
51401     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
51402/* <sys/types.h> is not needed according to POSIX, but the
51403   <sys/socket.h> in i386-unknown-freebsd4.10 and
51404   powerpc-apple-darwin5.5 required it. */
51405#include <sys/types.h>
51406#if HAVE_SYS_SOCKET_H
51407# include <sys/socket.h>
51408#elif HAVE_WS2TCPIP_H
51409# include <ws2tcpip.h>
51410#endif
51411
51412"
51413if test "x$ac_cv_type_socklen_t" = xyes; then :
51414
51415else
51416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
51417$as_echo_n "checking for socklen_t equivalent... " >&6; }
51418if ${gl_cv_socklen_t_equiv+:} false; then :
51419  $as_echo_n "(cached) " >&6
51420else
51421  # Systems have either "struct sockaddr *" or
51422         # "void *" as the second argument to getpeername
51423         gl_cv_socklen_t_equiv=
51424         for arg2 in "struct sockaddr" void; do
51425           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
51426             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51427/* end confdefs.h.  */
51428#include <sys/types.h>
51429                   #include <sys/socket.h>
51430
51431                   int getpeername (int, $arg2 *, $t *);
51432int
51433main ()
51434{
51435$t len;
51436                  getpeername (0, 0, &len);
51437  ;
51438  return 0;
51439}
51440_ACEOF
51441if ac_fn_c_try_compile "$LINENO"; then :
51442  gl_cv_socklen_t_equiv="$t"
51443fi
51444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51445             test "$gl_cv_socklen_t_equiv" != "" && break
51446           done
51447           test "$gl_cv_socklen_t_equiv" != "" && break
51448         done
51449         if test "$gl_cv_socklen_t_equiv" = ""; then
51450           as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
51451         fi
51452
51453fi
51454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
51455$as_echo "$gl_cv_socklen_t_equiv" >&6; }
51456
51457cat >>confdefs.h <<_ACEOF
51458#define socklen_t $gl_cv_socklen_t_equiv
51459_ACEOF
51460
51461fi
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472
51473
51474
51475
51476
51477
51478  gl_cv_func_sprintf_posix=no
51479  case "$gl_cv_func_printf_sizes_c99" in
51480    *yes)
51481      case "$gl_cv_func_printf_long_double" in
51482        *yes)
51483          case "$gl_cv_func_printf_infinite" in
51484            *yes)
51485              case "$gl_cv_func_printf_infinite_long_double" in
51486                *yes)
51487                  case "$gl_cv_func_printf_directive_a" in
51488                    *yes)
51489                      case "$gl_cv_func_printf_directive_f" in
51490                        *yes)
51491                          case "$gl_cv_func_printf_directive_n" in
51492                            *yes)
51493                              case "$gl_cv_func_printf_directive_ls" in
51494                                *yes)
51495                                  case "$gl_cv_func_printf_positions" in
51496                                    *yes)
51497                                      case "$gl_cv_func_printf_flag_grouping" in
51498                                        *yes)
51499                                          case "$gl_cv_func_printf_flag_leftadjust" in
51500                                            *yes)
51501                                              case "$gl_cv_func_printf_flag_zero" in
51502                                                *yes)
51503                                                  case "$gl_cv_func_printf_precision" in
51504                                                    *yes)
51505                                                      case "$gl_cv_func_printf_enomem" in
51506                                                        *yes)
51507                                                          # sprintf exists and is
51508                                                          # already POSIX compliant.
51509                                                          gl_cv_func_sprintf_posix=yes
51510                                                          ;;
51511                                                      esac
51512                                                      ;;
51513                                                  esac
51514                                                  ;;
51515                                              esac
51516                                              ;;
51517                                          esac
51518                                          ;;
51519                                      esac
51520                                      ;;
51521                                  esac
51522                                  ;;
51523                              esac
51524                              ;;
51525                          esac
51526                          ;;
51527                      esac
51528                      ;;
51529                  esac
51530                  ;;
51531              esac
51532              ;;
51533          esac
51534          ;;
51535      esac
51536      ;;
51537  esac
51538  if test $gl_cv_func_sprintf_posix = no; then
51539
51540
51541
51542  case "$gl_cv_func_printf_infinite" in
51543    *yes)
51544      ;;
51545    *)
51546
51547$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
51548
51549      ;;
51550  esac
51551
51552
51553
51554
51555  case "$gl_cv_func_printf_long_double" in
51556    *yes)
51557      case "$gl_cv_func_printf_infinite_long_double" in
51558        *yes)
51559          ;;
51560        *)
51561
51562$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
51563
51564          ;;
51565      esac
51566      ;;
51567  esac
51568
51569
51570
51571  case "$gl_cv_func_printf_directive_a" in
51572    *yes)
51573      ;;
51574    *)
51575
51576$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
51577
51578      for ac_func in nl_langinfo
51579do :
51580  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
51581if test "x$ac_cv_func_nl_langinfo" = xyes; then :
51582  cat >>confdefs.h <<_ACEOF
51583#define HAVE_NL_LANGINFO 1
51584_ACEOF
51585
51586fi
51587done
51588
51589      ;;
51590  esac
51591
51592
51593
51594  case "$gl_cv_func_printf_directive_f" in
51595    *yes)
51596      ;;
51597    *)
51598
51599$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
51600
51601      ;;
51602  esac
51603
51604
51605
51606  case "$gl_cv_func_printf_directive_ls" in
51607    *yes)
51608      ;;
51609    *)
51610
51611$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
51612
51613      ;;
51614  esac
51615
51616
51617
51618  case "$gl_cv_func_printf_flag_grouping" in
51619    *yes)
51620      ;;
51621    *)
51622
51623$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
51624
51625      ;;
51626  esac
51627
51628
51629
51630  case "$gl_cv_func_printf_flag_leftadjust" in
51631    *yes)
51632      ;;
51633    *)
51634
51635$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
51636
51637      ;;
51638  esac
51639
51640
51641
51642  case "$gl_cv_func_printf_flag_zero" in
51643    *yes)
51644      ;;
51645    *)
51646
51647$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
51648
51649      ;;
51650  esac
51651
51652
51653
51654  case "$gl_cv_func_printf_precision" in
51655    *yes)
51656      ;;
51657    *)
51658
51659$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
51660
51661
51662$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
51663
51664
51665$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
51666
51667      ;;
51668  esac
51669
51670
51671
51672  case "$gl_cv_func_printf_enomem" in
51673    *yes)
51674      ;;
51675    *)
51676
51677$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
51678
51679
51680$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
51681
51682
51683$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
51684
51685      ;;
51686  esac
51687
51688
51689
51690
51691
51692
51693
51694
51695
51696
51697
51698  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
51729
51730  if test $ac_cv_func_vasnprintf = yes; then
51731
51732$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
51733
51734  fi
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
51745if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
51746
51747else
51748
51749$as_echo "#define ptrdiff_t long" >>confdefs.h
51750
51751
51752fi
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770  gl_LIBOBJS="$gl_LIBOBJS sprintf.$ac_objext"
51771
51772  REPLACE_SPRINTF=1
51773  :
51774
51775  fi
51776
51777
51778
51779
51780
51781
51782          GNULIB_SPRINTF_POSIX=1
51783
51784
51785
51786
51787
51788$as_echo "#define GNULIB_TEST_SPRINTF_POSIX 1" >>confdefs.h
51789
51790
51791
51792
51793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
51794$as_echo_n "checking for ssize_t... " >&6; }
51795if ${gt_cv_ssize_t+:} false; then :
51796  $as_echo_n "(cached) " >&6
51797else
51798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51799/* end confdefs.h.  */
51800#include <sys/types.h>
51801int
51802main ()
51803{
51804int x = sizeof (ssize_t *) + sizeof (ssize_t);
51805            return !x;
51806  ;
51807  return 0;
51808}
51809_ACEOF
51810if ac_fn_c_try_compile "$LINENO"; then :
51811  gt_cv_ssize_t=yes
51812else
51813  gt_cv_ssize_t=no
51814fi
51815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51816fi
51817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
51818$as_echo "$gt_cv_ssize_t" >&6; }
51819  if test $gt_cv_ssize_t = no; then
51820
51821$as_echo "#define ssize_t int" >>confdefs.h
51822
51823  fi
51824
51825
51826
51827
51828
51829  case "$host_os" in
51830    mingw*)
51831                  REPLACE_STAT=1
51832      ;;
51833    *)
51834                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
51835$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
51836if ${gl_cv_func_stat_file_slash+:} false; then :
51837  $as_echo_n "(cached) " >&6
51838else
51839  touch conftest.tmp
51840         # Assume that if we have lstat, we can also check symlinks.
51841         if test $ac_cv_func_lstat = yes; then
51842           ln -s conftest.tmp conftest.lnk
51843         fi
51844         if test "$cross_compiling" = yes; then :
51845  case "$host_os" in
51846                               # Guess yes on Linux systems.
51847              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
51848                               # Guess yes on glibc systems.
51849              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
51850                               # If we don't know, obey --enable-cross-guesses.
51851              *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
51852            esac
51853
51854else
51855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51856/* end confdefs.h.  */
51857#include <sys/stat.h>
51858
51859int
51860main ()
51861{
51862int result = 0;
51863               struct stat st;
51864               if (!stat ("conftest.tmp/", &st))
51865                 result |= 1;
51866#if HAVE_LSTAT
51867               if (!stat ("conftest.lnk/", &st))
51868                 result |= 2;
51869#endif
51870               return result;
51871
51872  ;
51873  return 0;
51874}
51875_ACEOF
51876if ac_fn_c_try_run "$LINENO"; then :
51877  gl_cv_func_stat_file_slash=yes
51878else
51879  gl_cv_func_stat_file_slash=no
51880fi
51881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51882  conftest.$ac_objext conftest.beam conftest.$ac_ext
51883fi
51884
51885         rm -f conftest.tmp conftest.lnk
51886fi
51887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
51888$as_echo "$gl_cv_func_stat_file_slash" >&6; }
51889      case $gl_cv_func_stat_file_slash in
51890        *no)
51891          REPLACE_STAT=1
51892
51893$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
51894;;
51895      esac
51896      case $host_os in
51897                solaris*)
51898          REPLACE_FSTAT=1 ;;
51899      esac
51900      ;;
51901  esac
51902
51903  if test $REPLACE_STAT = 1; then
51904
51905
51906
51907
51908
51909
51910
51911
51912  gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
51913
51914    case "$host_os" in
51915      mingw*)
51916
51917
51918
51919
51920
51921
51922
51923
51924  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
51925
51926        ;;
51927    esac
51928
51929
51930  :
51931
51932  fi
51933
51934
51935
51936
51937
51938          GNULIB_STAT=1
51939
51940
51941
51942
51943
51944$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
51945
51946
51947
51948
51949
51950
51951
51952  ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
51953     #include <sys/stat.h>
51954"
51955if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
51956
51957cat >>confdefs.h <<_ACEOF
51958#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
51959_ACEOF
51960
51961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
51962$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
51963if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
51964  $as_echo_n "(cached) " >&6
51965else
51966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51967/* end confdefs.h.  */
51968
51969            #include <sys/types.h>
51970            #include <sys/stat.h>
51971            #if HAVE_SYS_TIME_H
51972            # include <sys/time.h>
51973            #endif
51974            #include <time.h>
51975            struct timespec ts;
51976            struct stat st;
51977
51978int
51979main ()
51980{
51981
51982            st.st_atim = ts;
51983
51984  ;
51985  return 0;
51986}
51987_ACEOF
51988if ac_fn_c_try_compile "$LINENO"; then :
51989  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
51990else
51991  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
51992fi
51993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51994fi
51995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
51996$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
51997     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
51998
51999$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
52000
52001     fi
52002else
52003  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
52004        #include <sys/stat.h>
52005"
52006if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
52007
52008cat >>confdefs.h <<_ACEOF
52009#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
52010_ACEOF
52011
52012
52013else
52014  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
52015           #include <sys/stat.h>
52016"
52017if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
52018
52019cat >>confdefs.h <<_ACEOF
52020#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
52021_ACEOF
52022
52023
52024else
52025  ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
52026              #include <sys/stat.h>
52027"
52028if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
52029
52030cat >>confdefs.h <<_ACEOF
52031#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
52032_ACEOF
52033
52034
52035fi
52036
52037fi
52038
52039fi
52040
52041fi
52042
52043
52044
52045
52046
52047  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
52048     #include <sys/stat.h>
52049"
52050if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
52051
52052cat >>confdefs.h <<_ACEOF
52053#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
52054_ACEOF
52055
52056
52057else
52058  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
52059        #include <sys/stat.h>
52060"
52061if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
52062
52063cat >>confdefs.h <<_ACEOF
52064#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
52065_ACEOF
52066
52067
52068else
52069  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
52070          #include <sys/stat.h>
52071"
52072if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
52073
52074cat >>confdefs.h <<_ACEOF
52075#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
52076_ACEOF
52077
52078
52079fi
52080
52081fi
52082
52083fi
52084
52085
52086
52087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
52088$as_echo_n "checking for working stdalign.h... " >&6; }
52089if ${gl_cv_header_working_stdalign_h+:} false; then :
52090  $as_echo_n "(cached) " >&6
52091else
52092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52093/* end confdefs.h.  */
52094#include <stdalign.h>
52095            #include <stddef.h>
52096
52097            /* Test that alignof yields a result consistent with offsetof.
52098               This catches GCC bug 52023
52099               <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
52100            #ifdef __cplusplus
52101               template <class t> struct alignof_helper { char a; t b; };
52102            # define ao(type) offsetof (alignof_helper<type>, b)
52103            #else
52104            # define ao(type) offsetof (struct { char a; type b; }, b)
52105            #endif
52106            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
52107            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
52108            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
52109
52110            /* Test _Alignas only on platforms where gnulib can help.  */
52111            #if \
52112                ((defined __cplusplus && 201103 <= __cplusplus) \
52113                 || (defined __APPLE__ && defined __MACH__ \
52114                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
52115                     : __GNUC__) \
52116                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
52117                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
52118                 || 1300 <= _MSC_VER)
52119              struct alignas_test { char c; char alignas (8) alignas_8; };
52120              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
52121                                ? 1 : -1];
52122            #endif
52123
52124int
52125main ()
52126{
52127
52128  ;
52129  return 0;
52130}
52131_ACEOF
52132if ac_fn_c_try_compile "$LINENO"; then :
52133  gl_cv_header_working_stdalign_h=yes
52134else
52135  gl_cv_header_working_stdalign_h=no
52136fi
52137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52138fi
52139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
52140$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
52141
52142  if test $gl_cv_header_working_stdalign_h = yes; then
52143    STDALIGN_H=''
52144  else
52145    STDALIGN_H='stdalign.h'
52146  fi
52147
52148
52149   if test -n "$STDALIGN_H"; then
52150  GL_GENERATE_STDALIGN_H_TRUE=
52151  GL_GENERATE_STDALIGN_H_FALSE='#'
52152else
52153  GL_GENERATE_STDALIGN_H_TRUE='#'
52154  GL_GENERATE_STDALIGN_H_FALSE=
52155fi
52156
52157
52158
52159  STDARG_H=''
52160  NEXT_STDARG_H='<stdarg.h>'
52161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
52162$as_echo_n "checking for va_copy... " >&6; }
52163if ${gl_cv_func_va_copy+:} false; then :
52164  $as_echo_n "(cached) " >&6
52165else
52166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52167/* end confdefs.h.  */
52168#include <stdarg.h>
52169int
52170main ()
52171{
52172
52173#ifndef va_copy
52174void (*func) (va_list, va_list) = va_copy;
52175#endif
52176
52177  ;
52178  return 0;
52179}
52180_ACEOF
52181if ac_fn_c_try_compile "$LINENO"; then :
52182  gl_cv_func_va_copy=yes
52183else
52184  gl_cv_func_va_copy=no
52185fi
52186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52187
52188fi
52189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
52190$as_echo "$gl_cv_func_va_copy" >&6; }
52191  if test $gl_cv_func_va_copy = no; then
52192                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52193/* end confdefs.h.  */
52194#if defined _AIX && !defined __GNUC__
52195        AIX vaccine
52196       #endif
52197
52198_ACEOF
52199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52200  $EGREP "vaccine" >/dev/null 2>&1; then :
52201  gl_aixcc=yes
52202else
52203  gl_aixcc=no
52204fi
52205rm -f conftest*
52206
52207    if test $gl_aixcc = yes; then
52208            STDARG_H=stdarg.h
52209
52210
52211
52212
52213
52214
52215
52216
52217     if test $gl_cv_have_include_next = yes; then
52218       gl_cv_next_stdarg_h='<'stdarg.h'>'
52219     else
52220       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
52221$as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
52222if ${gl_cv_next_stdarg_h+:} false; then :
52223  $as_echo_n "(cached) " >&6
52224else
52225
52226
52227
52228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52229/* end confdefs.h.  */
52230#include <stdarg.h>
52231_ACEOF
52232                case "$host_os" in
52233    aix*) gl_absname_cpp="$ac_cpp -C" ;;
52234    *)    gl_absname_cpp="$ac_cpp" ;;
52235  esac
52236
52237  case "$host_os" in
52238    mingw*)
52239                                          gl_dirsep_regex='[/\\]'
52240      ;;
52241    *)
52242      gl_dirsep_regex='\/'
52243      ;;
52244  esac
52245      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52246  gl_header_literal_regex=`echo 'stdarg.h' \
52247                           | sed -e "$gl_make_literal_regex_sed"`
52248  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52249      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52250      s|^/[^/]|//&|
52251      p
52252      q
52253    }'
52254
52255        gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52256  sed -n "$gl_absolute_header_sed"`
52257
52258           gl_header=$gl_cv_absolute_stdarg_h
52259           gl_cv_next_stdarg_h='"'$gl_header'"'
52260
52261
52262fi
52263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
52264$as_echo "$gl_cv_next_stdarg_h" >&6; }
52265     fi
52266     NEXT_STDARG_H=$gl_cv_next_stdarg_h
52267
52268     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52269       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52270       gl_next_as_first_directive='<'stdarg.h'>'
52271     else
52272       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52273       gl_next_as_first_directive=$gl_cv_next_stdarg_h
52274     fi
52275     NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
52276
52277
52278
52279
52280            if test "$gl_cv_next_stdarg_h" = '""'; then
52281        gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
52282        NEXT_STDARG_H="$gl_cv_next_stdarg_h"
52283      fi
52284    else
52285
52286  saved_as_echo_n="$as_echo_n"
52287  as_echo_n=':'
52288  if ${gl_cv_func___va_copy+:} false; then :
52289  $as_echo_n "(cached) " >&6
52290else
52291
52292        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52293/* end confdefs.h.  */
52294#include <stdarg.h>
52295int
52296main ()
52297{
52298
52299#ifndef __va_copy
52300error, bail out
52301#endif
52302
52303  ;
52304  return 0;
52305}
52306_ACEOF
52307if ac_fn_c_try_compile "$LINENO"; then :
52308  gl_cv_func___va_copy=yes
52309else
52310  gl_cv_func___va_copy=no
52311fi
52312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52313fi
52314
52315  as_echo_n="$saved_as_echo_n"
52316
52317      if test $gl_cv_func___va_copy = yes; then
52318
52319$as_echo "#define va_copy __va_copy" >>confdefs.h
52320
52321      else
52322
52323
52324$as_echo "#define va_copy gl_va_copy" >>confdefs.h
52325
52326      fi
52327    fi
52328  fi
52329
52330   if test -n "$STDARG_H"; then
52331  GL_GENERATE_STDARG_H_TRUE=
52332  GL_GENERATE_STDARG_H_FALSE='#'
52333else
52334  GL_GENERATE_STDARG_H_TRUE='#'
52335  GL_GENERATE_STDARG_H_FALSE=
52336fi
52337
52338
52339
52340
52341
52342
52343
52344          if test "$ac_cv_header_stdbool_h" = yes; then
52345    case "$host_os" in
52346      solaris*)
52347        if test -z "$GCC"; then
52348          STDBOOL_H='stdbool.h'
52349        else
52350          STDBOOL_H=''
52351        fi
52352        ;;
52353      *)
52354        STDBOOL_H=''
52355        ;;
52356    esac
52357  else
52358    STDBOOL_H='stdbool.h'
52359  fi
52360
52361   if test -n "$STDBOOL_H"; then
52362  GL_GENERATE_STDBOOL_H_TRUE=
52363  GL_GENERATE_STDBOOL_H_FALSE='#'
52364else
52365  GL_GENERATE_STDBOOL_H_TRUE='#'
52366  GL_GENERATE_STDBOOL_H_FALSE=
52367fi
52368
52369
52370  if test "$ac_cv_type__Bool" = yes; then
52371    HAVE__BOOL=1
52372  else
52373    HAVE__BOOL=0
52374  fi
52375
52376
52377
52378
52379
52380  STDDEF_H=
52381
52382      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
52383$as_echo_n "checking for good max_align_t... " >&6; }
52384if ${gl_cv_type_max_align_t+:} false; then :
52385  $as_echo_n "(cached) " >&6
52386else
52387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52388/* end confdefs.h.  */
52389#include <stddef.h>
52390            unsigned int s = sizeof (max_align_t);
52391            #if defined __GNUC__ || defined __IBM__ALIGNOF__
52392            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
52393            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
52394            #endif
52395
52396int
52397main ()
52398{
52399
52400  ;
52401  return 0;
52402}
52403_ACEOF
52404if ac_fn_c_try_compile "$LINENO"; then :
52405  gl_cv_type_max_align_t=yes
52406else
52407  gl_cv_type_max_align_t=no
52408fi
52409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52410
52411fi
52412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
52413$as_echo "$gl_cv_type_max_align_t" >&6; }
52414  if test $gl_cv_type_max_align_t = no; then
52415    HAVE_MAX_ALIGN_T=0
52416    STDDEF_H=stddef.h
52417  fi
52418
52419  if test $gt_cv_c_wchar_t = no; then
52420    HAVE_WCHAR_T=0
52421    STDDEF_H=stddef.h
52422  fi
52423
52424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
52425$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
52426if ${gl_cv_decl_null_works+:} false; then :
52427  $as_echo_n "(cached) " >&6
52428else
52429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52430/* end confdefs.h.  */
52431#include <stddef.h>
52432      int test[2 * (sizeof NULL == sizeof (void *)) -1];
52433
52434int
52435main ()
52436{
52437
52438  ;
52439  return 0;
52440}
52441_ACEOF
52442if ac_fn_c_try_compile "$LINENO"; then :
52443  gl_cv_decl_null_works=yes
52444else
52445  gl_cv_decl_null_works=no
52446fi
52447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52448fi
52449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
52450$as_echo "$gl_cv_decl_null_works" >&6; }
52451  if test $gl_cv_decl_null_works = no; then
52452    REPLACE_NULL=1
52453    STDDEF_H=stddef.h
52454  fi
52455
52456
52457   if test -n "$STDDEF_H"; then
52458  GL_GENERATE_STDDEF_H_TRUE=
52459  GL_GENERATE_STDDEF_H_FALSE='#'
52460else
52461  GL_GENERATE_STDDEF_H_TRUE='#'
52462  GL_GENERATE_STDDEF_H_FALSE=
52463fi
52464
52465  if test -n "$STDDEF_H"; then
52466
52467
52468
52469
52470
52471
52472
52473
52474     if test $gl_cv_have_include_next = yes; then
52475       gl_cv_next_stddef_h='<'stddef.h'>'
52476     else
52477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
52478$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
52479if ${gl_cv_next_stddef_h+:} false; then :
52480  $as_echo_n "(cached) " >&6
52481else
52482
52483
52484
52485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52486/* end confdefs.h.  */
52487#include <stddef.h>
52488_ACEOF
52489                case "$host_os" in
52490    aix*) gl_absname_cpp="$ac_cpp -C" ;;
52491    *)    gl_absname_cpp="$ac_cpp" ;;
52492  esac
52493
52494  case "$host_os" in
52495    mingw*)
52496                                          gl_dirsep_regex='[/\\]'
52497      ;;
52498    *)
52499      gl_dirsep_regex='\/'
52500      ;;
52501  esac
52502      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52503  gl_header_literal_regex=`echo 'stddef.h' \
52504                           | sed -e "$gl_make_literal_regex_sed"`
52505  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52506      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52507      s|^/[^/]|//&|
52508      p
52509      q
52510    }'
52511
52512        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52513  sed -n "$gl_absolute_header_sed"`
52514
52515           gl_header=$gl_cv_absolute_stddef_h
52516           gl_cv_next_stddef_h='"'$gl_header'"'
52517
52518
52519fi
52520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
52521$as_echo "$gl_cv_next_stddef_h" >&6; }
52522     fi
52523     NEXT_STDDEF_H=$gl_cv_next_stddef_h
52524
52525     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52526       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52527       gl_next_as_first_directive='<'stddef.h'>'
52528     else
52529       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52530       gl_next_as_first_directive=$gl_cv_next_stddef_h
52531     fi
52532     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
52533
52534
52535
52536
52537  fi
52538
52539
52540
52541
52542  $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553     if test $gl_cv_have_include_next = yes; then
52554       gl_cv_next_stdio_h='<'stdio.h'>'
52555     else
52556       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
52557$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
52558if ${gl_cv_next_stdio_h+:} false; then :
52559  $as_echo_n "(cached) " >&6
52560else
52561
52562
52563
52564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52565/* end confdefs.h.  */
52566#include <stdio.h>
52567_ACEOF
52568                case "$host_os" in
52569    aix*) gl_absname_cpp="$ac_cpp -C" ;;
52570    *)    gl_absname_cpp="$ac_cpp" ;;
52571  esac
52572
52573  case "$host_os" in
52574    mingw*)
52575                                          gl_dirsep_regex='[/\\]'
52576      ;;
52577    *)
52578      gl_dirsep_regex='\/'
52579      ;;
52580  esac
52581      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52582  gl_header_literal_regex=`echo 'stdio.h' \
52583                           | sed -e "$gl_make_literal_regex_sed"`
52584  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52585      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52586      s|^/[^/]|//&|
52587      p
52588      q
52589    }'
52590
52591        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52592  sed -n "$gl_absolute_header_sed"`
52593
52594           gl_header=$gl_cv_absolute_stdio_h
52595           gl_cv_next_stdio_h='"'$gl_header'"'
52596
52597
52598fi
52599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
52600$as_echo "$gl_cv_next_stdio_h" >&6; }
52601     fi
52602     NEXT_STDIO_H=$gl_cv_next_stdio_h
52603
52604     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52605       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52606       gl_next_as_first_directive='<'stdio.h'>'
52607     else
52608       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52609       gl_next_as_first_directive=$gl_cv_next_stdio_h
52610     fi
52611     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
52612
52613
52614
52615
52616
52617        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
52618$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
52619if ${gl_cv_func_printf_attribute_flavor+:} false; then :
52620  $as_echo_n "(cached) " >&6
52621else
52622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52623/* end confdefs.h.  */
52624
52625       #define __STDC_FORMAT_MACROS 1
52626       #include <stdio.h>
52627       #include <inttypes.h>
52628       /* For non-mingw systems, compilation will trivially succeed.
52629          For mingw, compilation will succeed for older mingw (system
52630          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
52631       #if (defined _WIN32 && ! defined __CYGWIN__) && \
52632         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
52633       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
52634       #endif
52635
52636int
52637main ()
52638{
52639
52640  ;
52641  return 0;
52642}
52643_ACEOF
52644if ac_fn_c_try_compile "$LINENO"; then :
52645  gl_cv_func_printf_attribute_flavor=system
52646else
52647  gl_cv_func_printf_attribute_flavor=gnu
52648fi
52649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52650fi
52651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
52652$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
52653  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
52654
52655$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
52656
52657  fi
52658
52659      GNULIB_FSCANF=1
52660
52661
52662cat >>confdefs.h <<_ACEOF
52663#define GNULIB_FSCANF 1
52664_ACEOF
52665
52666
52667  GNULIB_SCANF=1
52668
52669
52670cat >>confdefs.h <<_ACEOF
52671#define GNULIB_SCANF 1
52672_ACEOF
52673
52674
52675  GNULIB_FGETC=1
52676  GNULIB_GETC=1
52677  GNULIB_GETCHAR=1
52678  GNULIB_FGETS=1
52679  GNULIB_FREAD=1
52680
52681
52682      GNULIB_FPRINTF=1
52683  GNULIB_PRINTF=1
52684  GNULIB_VFPRINTF=1
52685  GNULIB_VPRINTF=1
52686  GNULIB_FPUTC=1
52687  GNULIB_PUTC=1
52688  GNULIB_PUTCHAR=1
52689  GNULIB_FPUTS=1
52690  GNULIB_PUTS=1
52691  GNULIB_FWRITE=1
52692
52693
52694
52695
52696
52697
52698
52699
52700
52701
52702
52703
52704
52705
52706
52707
52708
52709
52710
52711     if test $gl_cv_have_include_next = yes; then
52712       gl_cv_next_stdlib_h='<'stdlib.h'>'
52713     else
52714       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
52715$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
52716if ${gl_cv_next_stdlib_h+:} false; then :
52717  $as_echo_n "(cached) " >&6
52718else
52719
52720
52721
52722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52723/* end confdefs.h.  */
52724#include <stdlib.h>
52725_ACEOF
52726                case "$host_os" in
52727    aix*) gl_absname_cpp="$ac_cpp -C" ;;
52728    *)    gl_absname_cpp="$ac_cpp" ;;
52729  esac
52730
52731  case "$host_os" in
52732    mingw*)
52733                                          gl_dirsep_regex='[/\\]'
52734      ;;
52735    *)
52736      gl_dirsep_regex='\/'
52737      ;;
52738  esac
52739      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52740  gl_header_literal_regex=`echo 'stdlib.h' \
52741                           | sed -e "$gl_make_literal_regex_sed"`
52742  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52743      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52744      s|^/[^/]|//&|
52745      p
52746      q
52747    }'
52748
52749        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52750  sed -n "$gl_absolute_header_sed"`
52751
52752           gl_header=$gl_cv_absolute_stdlib_h
52753           gl_cv_next_stdlib_h='"'$gl_header'"'
52754
52755
52756fi
52757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
52758$as_echo "$gl_cv_next_stdlib_h" >&6; }
52759     fi
52760     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
52761
52762     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52763       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52764       gl_next_as_first_directive='<'stdlib.h'>'
52765     else
52766       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52767       gl_next_as_first_directive=$gl_cv_next_stdlib_h
52768     fi
52769     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
52770
52771
52772
52773
52774
52775
52776
52777
52778
52779
52780
52781
52782
52783
52784
52785
52786
52787  for ac_func in stpcpy
52788do :
52789  ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
52790if test "x$ac_cv_func_stpcpy" = xyes; then :
52791  cat >>confdefs.h <<_ACEOF
52792#define HAVE_STPCPY 1
52793_ACEOF
52794
52795fi
52796done
52797
52798  if test $ac_cv_func_stpcpy = no; then
52799    HAVE_STPCPY=0
52800  fi
52801
52802  if test $HAVE_STPCPY = 0; then
52803
52804
52805
52806
52807
52808
52809
52810
52811  gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
52812
52813
52814  :
52815
52816  fi
52817
52818
52819
52820
52821
52822          GNULIB_STPCPY=1
52823
52824
52825
52826
52827
52828$as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
52829
52830
52831
52832
52833
52834
52835  for ac_func in strcasecmp
52836do :
52837  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
52838if test "x$ac_cv_func_strcasecmp" = xyes; then :
52839  cat >>confdefs.h <<_ACEOF
52840#define HAVE_STRCASECMP 1
52841_ACEOF
52842
52843fi
52844done
52845
52846  if test $ac_cv_func_strcasecmp = no; then
52847    HAVE_STRCASECMP=0
52848  fi
52849
52850
52851
52852  for ac_func in strncasecmp
52853do :
52854  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
52855if test "x$ac_cv_func_strncasecmp" = xyes; then :
52856  cat >>confdefs.h <<_ACEOF
52857#define HAVE_STRNCASECMP 1
52858_ACEOF
52859
52860fi
52861done
52862
52863  if test $ac_cv_func_strncasecmp = yes; then
52864    HAVE_STRNCASECMP=1
52865  else
52866    HAVE_STRNCASECMP=0
52867  fi
52868  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
52869if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
52870  ac_have_decl=1
52871else
52872  ac_have_decl=0
52873fi
52874
52875cat >>confdefs.h <<_ACEOF
52876#define HAVE_DECL_STRNCASECMP $ac_have_decl
52877_ACEOF
52878
52879  if test $ac_cv_have_decl_strncasecmp = no; then
52880    HAVE_DECL_STRNCASECMP=0
52881  fi
52882
52883
52884  if test $HAVE_STRCASECMP = 0; then
52885
52886
52887
52888
52889
52890
52891
52892
52893  gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
52894
52895
52896  :
52897
52898  fi
52899  if test $HAVE_STRNCASECMP = 0; then
52900
52901
52902
52903
52904
52905
52906
52907
52908  gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
52909
52910
52911  :
52912
52913  fi
52914
52915
52916  if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
52917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5
52918$as_echo_n "checking whether strcasestr works in linear time... " >&6; }
52919if ${gl_cv_func_strcasestr_linear+:} false; then :
52920  $as_echo_n "(cached) " >&6
52921else
52922  if test "$cross_compiling" = yes; then :
52923                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52924/* end confdefs.h.  */
52925
52926#include <features.h>
52927#ifdef __GNU_LIBRARY__
52928 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
52929     && !defined __UCLIBC__
52930  Lucky user
52931 #endif
52932#endif
52933#ifdef __CYGWIN__
52934 #include <cygwin/version.h>
52935 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
52936  Lucky user
52937 #endif
52938#endif
52939
52940_ACEOF
52941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52942  $EGREP "Lucky user" >/dev/null 2>&1; then :
52943  gl_cv_func_strcasestr_linear="guessing yes"
52944else
52945  gl_cv_func_strcasestr_linear="$gl_cross_guess_normal"
52946fi
52947rm -f conftest*
52948
52949
52950else
52951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52952/* end confdefs.h.  */
52953
52954#include <signal.h> /* for signal */
52955#include <string.h> /* for strcasestr */
52956#include <stdlib.h> /* for malloc */
52957#include <unistd.h> /* for alarm */
52958static void quit (int sig) { _exit (sig + 128); }
52959
52960int
52961main ()
52962{
52963
52964    int result = 0;
52965    size_t m = 1000000;
52966    char *haystack = (char *) malloc (2 * m + 2);
52967    char *needle = (char *) malloc (m + 2);
52968    /* Failure to compile this test due to missing alarm is okay,
52969       since all such platforms (mingw) also lack strcasestr.  */
52970    signal (SIGALRM, quit);
52971    alarm (5);
52972    /* Check for quadratic performance.  */
52973    if (haystack && needle)
52974      {
52975        memset (haystack, 'A', 2 * m);
52976        haystack[2 * m] = 'B';
52977        haystack[2 * m + 1] = 0;
52978        memset (needle, 'A', m);
52979        needle[m] = 'B';
52980        needle[m + 1] = 0;
52981        if (!strcasestr (haystack, needle))
52982          result |= 1;
52983      }
52984    /* Free allocated memory, in case some sanitizer is watching.  */
52985    free (haystack);
52986    free (needle);
52987    return result;
52988
52989  ;
52990  return 0;
52991}
52992_ACEOF
52993if ac_fn_c_try_run "$LINENO"; then :
52994  gl_cv_func_strcasestr_linear=yes
52995else
52996  gl_cv_func_strcasestr_linear=no
52997fi
52998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52999  conftest.$ac_objext conftest.beam conftest.$ac_ext
53000fi
53001
53002
53003fi
53004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5
53005$as_echo "$gl_cv_func_strcasestr_linear" >&6; }
53006    case "$gl_cv_func_strcasestr_linear" in
53007      *yes) ;;
53008      *)
53009        REPLACE_STRCASESTR=1
53010        ;;
53011    esac
53012  fi
53013
53014  if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
53015
53016
53017
53018
53019
53020
53021
53022
53023  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
53024
53025
53026  :
53027
53028  fi
53029
53030
53031
53032
53033
53034
53035  for ac_func in strcasestr
53036do :
53037  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
53038if test "x$ac_cv_func_strcasestr" = xyes; then :
53039  cat >>confdefs.h <<_ACEOF
53040#define HAVE_STRCASESTR 1
53041_ACEOF
53042
53043fi
53044done
53045
53046  if test $ac_cv_func_strcasestr = no; then
53047    HAVE_STRCASESTR=0
53048  else
53049    if test $REPLACE_MEMCHR = 1; then
53050      REPLACE_STRCASESTR=1
53051    else
53052                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
53053$as_echo_n "checking whether strcasestr works... " >&6; }
53054if ${gl_cv_func_strcasestr_works_always+:} false; then :
53055  $as_echo_n "(cached) " >&6
53056else
53057  if test "$cross_compiling" = yes; then :
53058                                                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53059/* end confdefs.h.  */
53060
53061#ifdef __GNU_LIBRARY__
53062 #include <features.h>
53063 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
53064     || defined __UCLIBC__
53065  Lucky user
53066 #endif
53067#elif defined __CYGWIN__
53068 #include <cygwin/version.h>
53069 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
53070  Lucky user
53071 #endif
53072#else
53073  Lucky user
53074#endif
53075
53076_ACEOF
53077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53078  $EGREP "Lucky user" >/dev/null 2>&1; then :
53079  gl_cv_func_strcasestr_works_always="guessing yes"
53080else
53081  gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal"
53082fi
53083rm -f conftest*
53084
53085
53086else
53087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53088/* end confdefs.h.  */
53089
53090#include <string.h> /* for strcasestr */
53091#ifdef __GNU_LIBRARY__
53092 #include <features.h>
53093 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
53094  Unlucky user
53095 #endif
53096#endif
53097#define P "_EF_BF_BD"
53098#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
53099#define NEEDLE P P P P P
53100
53101int
53102main ()
53103{
53104return !!strcasestr (HAYSTACK, NEEDLE);
53105
53106  ;
53107  return 0;
53108}
53109_ACEOF
53110if ac_fn_c_try_run "$LINENO"; then :
53111  gl_cv_func_strcasestr_works_always=yes
53112else
53113  gl_cv_func_strcasestr_works_always=no
53114fi
53115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53116  conftest.$ac_objext conftest.beam conftest.$ac_ext
53117fi
53118
53119
53120fi
53121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
53122$as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
53123      case "$gl_cv_func_strcasestr_works_always" in
53124        *yes) ;;
53125        *)
53126          REPLACE_STRCASESTR=1
53127          ;;
53128      esac
53129    fi
53130  fi
53131
53132  if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
53133
53134
53135
53136
53137
53138
53139
53140
53141  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
53142
53143
53144  :
53145
53146  fi
53147
53148
53149
53150
53151
53152          GNULIB_STRCASESTR=1
53153
53154
53155
53156
53157
53158$as_echo "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h
53159
53160
53161
53162
53163
53164
53165
53166  if test $ac_cv_func_strdup = yes; then
53167    if test $gl_cv_func_malloc_posix != yes; then
53168      REPLACE_STRDUP=1
53169    fi
53170  fi
53171
53172  if test $ac_cv_have_decl_strdup = no; then
53173    HAVE_DECL_STRDUP=0
53174  fi
53175
53176  if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
53177
53178
53179
53180
53181
53182
53183
53184
53185  gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
53186
53187    :
53188  fi
53189
53190
53191
53192
53193
53194          GNULIB_STRDUP=1
53195
53196
53197
53198
53199
53200$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
53201
53202
53203
53204
53205
53206
53207
53208
53209  if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
53210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
53211$as_echo_n "checking for working strerror function... " >&6; }
53212if ${gl_cv_func_working_strerror+:} false; then :
53213  $as_echo_n "(cached) " >&6
53214else
53215  if test "$cross_compiling" = yes; then :
53216  case "$host_os" in
53217                          # Guess yes on glibc systems.
53218           *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
53219                          # Guess yes on musl systems.
53220           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
53221                          # If we don't know, obey --enable-cross-guesses.
53222           *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
53223         esac
53224
53225else
53226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53227/* end confdefs.h.  */
53228#include <string.h>
53229
53230int
53231main ()
53232{
53233if (!*strerror (-2)) return 1;
53234  ;
53235  return 0;
53236}
53237_ACEOF
53238if ac_fn_c_try_run "$LINENO"; then :
53239  gl_cv_func_working_strerror=yes
53240else
53241  gl_cv_func_working_strerror=no
53242fi
53243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53244  conftest.$ac_objext conftest.beam conftest.$ac_ext
53245fi
53246
53247
53248fi
53249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
53250$as_echo "$gl_cv_func_working_strerror" >&6; }
53251    case "$gl_cv_func_working_strerror" in
53252      *yes) ;;
53253      *)
53254                        REPLACE_STRERROR=1
53255        ;;
53256    esac
53257
53258  else
53259            REPLACE_STRERROR=1
53260  fi
53261
53262  if test $REPLACE_STRERROR = 1; then
53263
53264
53265
53266
53267
53268
53269
53270
53271  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
53272
53273  fi
53274
53275
53276cat >>confdefs.h <<_ACEOF
53277#define GNULIB_STRERROR 1
53278_ACEOF
53279
53280
53281
53282
53283
53284
53285
53286          GNULIB_STRERROR=1
53287
53288
53289
53290
53291
53292$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
53293
53294
53295
53296
53297
53298  if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
53299
53300
53301
53302
53303
53304
53305
53306
53307  gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
53308
53309
53310
53311
53312
53313  if test $ac_cv_header_sys_socket_h != yes; then
53314                    for ac_header in winsock2.h
53315do :
53316  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
53317if test "x$ac_cv_header_winsock2_h" = xyes; then :
53318  cat >>confdefs.h <<_ACEOF
53319#define HAVE_WINSOCK2_H 1
53320_ACEOF
53321
53322fi
53323
53324done
53325
53326  fi
53327  if test "$ac_cv_header_winsock2_h" = yes; then
53328    HAVE_WINSOCK2_H=1
53329    UNISTD_H_HAVE_WINSOCK2_H=1
53330    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
53331  else
53332    HAVE_WINSOCK2_H=0
53333  fi
53334
53335
53336  fi
53337
53338
53339
53340
53341
53342
53343
53344  if test $REPLACE_STRNCAT = 1; then
53345
53346
53347
53348
53349
53350
53351
53352
53353  gl_LIBOBJS="$gl_LIBOBJS strncat.$ac_objext"
53354
53355
53356  :
53357
53358  fi
53359
53360
53361
53362
53363
53364          GNULIB_STRNCAT=1
53365
53366
53367
53368
53369
53370$as_echo "#define GNULIB_TEST_STRNCAT 1" >>confdefs.h
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380  if test $ac_cv_have_decl_strndup = no; then
53381    HAVE_DECL_STRNDUP=0
53382  fi
53383
53384  if test $ac_cv_func_strndup = yes; then
53385    HAVE_STRNDUP=1
53386    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
53387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
53388$as_echo_n "checking for working strndup... " >&6; }
53389if ${gl_cv_func_strndup_works+:} false; then :
53390  $as_echo_n "(cached) " >&6
53391else
53392  if test "$cross_compiling" = yes; then :
53393
53394          case $host_os in
53395            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
53396            *)               gl_cv_func_strndup_works="guessing yes";;
53397          esac
53398
53399else
53400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53401/* end confdefs.h.  */
53402
53403         #include <string.h>
53404                           #include <stdlib.h>
53405int
53406main ()
53407{
53408
53409#if !HAVE_DECL_STRNDUP
53410  extern
53411  #ifdef __cplusplus
53412  "C"
53413  #endif
53414  char *strndup (const char *, size_t);
53415#endif
53416  int result;
53417  char *s;
53418  s = strndup ("some longer string", 15);
53419  free (s);
53420  s = strndup ("shorter string", 13);
53421  result = s[13] != '\0';
53422  free (s);
53423  return result;
53424  ;
53425  return 0;
53426}
53427_ACEOF
53428if ac_fn_c_try_run "$LINENO"; then :
53429  gl_cv_func_strndup_works=yes
53430else
53431  gl_cv_func_strndup_works=no
53432fi
53433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53434  conftest.$ac_objext conftest.beam conftest.$ac_ext
53435fi
53436
53437fi
53438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
53439$as_echo "$gl_cv_func_strndup_works" >&6; }
53440    case $gl_cv_func_strndup_works in
53441      *no) REPLACE_STRNDUP=1 ;;
53442    esac
53443  else
53444    HAVE_STRNDUP=0
53445  fi
53446
53447  if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
53448
53449
53450
53451
53452
53453
53454
53455
53456  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
53457
53458  fi
53459
53460
53461
53462
53463
53464          GNULIB_STRNDUP=1
53465
53466
53467
53468
53469
53470$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
53471
53472
53473
53474
53475
53476
53477
53478
53479
53480  if test $ac_cv_have_decl_strnlen = no; then
53481    HAVE_DECL_STRNLEN=0
53482  else
53483
53484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
53485$as_echo_n "checking for working strnlen... " >&6; }
53486if ${ac_cv_func_strnlen_working+:} false; then :
53487  $as_echo_n "(cached) " >&6
53488else
53489  if test "$cross_compiling" = yes; then :
53490  # Guess no on AIX systems, yes otherwise.
53491		case "$host_os" in
53492		  aix*) ac_cv_func_strnlen_working=no;;
53493		  *)    ac_cv_func_strnlen_working=yes;;
53494		esac
53495else
53496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53497/* end confdefs.h.  */
53498$ac_includes_default
53499int
53500main ()
53501{
53502
53503#define S "foobar"
53504#define S_LEN (sizeof S - 1)
53505
53506  /* At least one implementation is buggy: that of AIX 4.3 would
53507     give strnlen (S, 1) == 3.  */
53508
53509  int i;
53510  for (i = 0; i < S_LEN + 1; ++i)
53511    {
53512      int expected = i <= S_LEN ? i : S_LEN;
53513      if (strnlen (S, i) != expected)
53514	return 1;
53515    }
53516  return 0;
53517
53518  ;
53519  return 0;
53520}
53521_ACEOF
53522if ac_fn_c_try_run "$LINENO"; then :
53523  ac_cv_func_strnlen_working=yes
53524else
53525  ac_cv_func_strnlen_working=no
53526fi
53527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53528  conftest.$ac_objext conftest.beam conftest.$ac_ext
53529fi
53530
53531fi
53532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
53533$as_echo "$ac_cv_func_strnlen_working" >&6; }
53534test $ac_cv_func_strnlen_working = no && :
53535
53536
53537    if test $ac_cv_func_strnlen_working = no; then
53538      REPLACE_STRNLEN=1
53539    fi
53540  fi
53541
53542  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
53543
53544
53545
53546
53547
53548
53549
53550
53551  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
53552
53553    :
53554  fi
53555
53556
53557
53558
53559
53560          GNULIB_STRNLEN=1
53561
53562
53563
53564
53565
53566$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
53567
53568
53569
53570
53571
53572
53573
53574
53575
53576  for ac_func in strsep
53577do :
53578  ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
53579if test "x$ac_cv_func_strsep" = xyes; then :
53580  cat >>confdefs.h <<_ACEOF
53581#define HAVE_STRSEP 1
53582_ACEOF
53583
53584fi
53585done
53586
53587  if test $ac_cv_func_strsep = no; then
53588    HAVE_STRSEP=0
53589  fi
53590
53591  if test $HAVE_STRSEP = 0; then
53592
53593
53594
53595
53596
53597
53598
53599
53600  gl_LIBOBJS="$gl_LIBOBJS strsep.$ac_objext"
53601
53602    :
53603  fi
53604
53605
53606
53607
53608
53609          GNULIB_STRSEP=1
53610
53611
53612
53613
53614
53615$as_echo "#define GNULIB_TEST_STRSEP 1" >>confdefs.h
53616
53617
53618
53619
53620
53621
53622  if test $HAVE_STRTOD = 1; then
53623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtod obeys C99" >&5
53624$as_echo_n "checking whether strtod obeys C99... " >&6; }
53625if ${gl_cv_func_strtod_works+:} false; then :
53626  $as_echo_n "(cached) " >&6
53627else
53628  if test "$cross_compiling" = yes; then :
53629                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53630/* end confdefs.h.  */
53631
53632#include <features.h>
53633#ifdef __GNU_LIBRARY__
53634 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) || (__GLIBC__ > 2)) \
53635     && !defined __UCLIBC__
53636  Lucky user
53637 #endif
53638#endif
53639
53640_ACEOF
53641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53642  $EGREP "Lucky user" >/dev/null 2>&1; then :
53643  gl_cv_func_strtod_works="guessing yes"
53644else
53645  case "$host_os" in
53646                       # Guess yes on musl systems.
53647              *-musl*) gl_cv_func_strtod_works="guessing yes" ;;
53648                       # Guess yes on native Windows.
53649              mingw*)  gl_cv_func_strtod_works="guessing yes" ;;
53650              *)       gl_cv_func_strtod_works="$gl_cross_guess_normal" ;;
53651            esac
53652
53653fi
53654rm -f conftest*
53655
53656
53657else
53658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53659/* end confdefs.h.  */
53660
53661#include <stdlib.h>
53662#include <math.h>
53663#include <errno.h>
53664/* Compare two numbers with ==.
53665   This is a separate function because IRIX 6.5 "cc -O" miscompiles an
53666   'x == x' test.  */
53667static int
53668numeric_equal (double x, double y)
53669{
53670  return x == y;
53671}
53672
53673int
53674main ()
53675{
53676
53677  int result = 0;
53678  {
53679    /* In some old versions of Linux (2000 or before), strtod mis-parses
53680       strings with leading '+'.  */
53681    const char *string = " +69";
53682    char *term;
53683    double value = strtod (string, &term);
53684    if (value != 69 || term != (string + 4))
53685      result |= 1;
53686  }
53687  {
53688    /* Under Solaris 2.4, strtod returns the wrong value for the
53689       terminating character under some conditions.  */
53690    const char *string = "NaN";
53691    char *term;
53692    strtod (string, &term);
53693    if (term != string && *(term - 1) == 0)
53694      result |= 2;
53695  }
53696  {
53697    /* Older glibc and Cygwin mis-parse "-0x".  */
53698    const char *string = "-0x";
53699    char *term;
53700    double value = strtod (string, &term);
53701    double zero = 0.0;
53702    if (1.0 / value != -1.0 / zero || term != (string + 2))
53703      result |= 4;
53704  }
53705  {
53706    /* Many platforms do not parse hex floats.  */
53707    const char *string = "0XaP+1";
53708    char *term;
53709    double value = strtod (string, &term);
53710    if (value != 20.0 || term != (string + 6))
53711      result |= 8;
53712  }
53713  {
53714    /* Many platforms do not parse infinities.  HP-UX 11.31 parses inf,
53715       but mistakenly sets errno.  */
53716    const char *string = "inf";
53717    char *term;
53718    double value;
53719    errno = 0;
53720    value = strtod (string, &term);
53721    if (value != HUGE_VAL || term != (string + 3) || errno)
53722      result |= 16;
53723  }
53724  {
53725    /* glibc 2.7 and cygwin 1.5.24 misparse "nan()".  */
53726    const char *string = "nan()";
53727    char *term;
53728    double value = strtod (string, &term);
53729    if (numeric_equal (value, value) || term != (string + 5))
53730      result |= 32;
53731  }
53732  {
53733    /* darwin 10.6.1 misparses "nan(".  */
53734    const char *string = "nan(";
53735    char *term;
53736    double value = strtod (string, &term);
53737    if (numeric_equal (value, value) || term != (string + 3))
53738      result |= 64;
53739  }
53740  return result;
53741
53742  ;
53743  return 0;
53744}
53745_ACEOF
53746if ac_fn_c_try_run "$LINENO"; then :
53747  gl_cv_func_strtod_works=yes
53748else
53749  gl_cv_func_strtod_works=no
53750fi
53751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53752  conftest.$ac_objext conftest.beam conftest.$ac_ext
53753fi
53754
53755
53756fi
53757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtod_works" >&5
53758$as_echo "$gl_cv_func_strtod_works" >&6; }
53759    case "$gl_cv_func_strtod_works" in
53760      *yes) ;;
53761      *)
53762        REPLACE_STRTOD=1
53763        ;;
53764    esac
53765  fi
53766
53767  if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then
53768
53769
53770
53771
53772
53773
53774
53775
53776  gl_LIBOBJS="$gl_LIBOBJS strtod.$ac_objext"
53777
53778
53779
53780  if test $gl_cv_func_ldexp_no_libm = yes; then
53781
53782$as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
53783
53784  fi
53785  for ac_func in nl_langinfo
53786do :
53787  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
53788if test "x$ac_cv_func_nl_langinfo" = xyes; then :
53789  cat >>confdefs.h <<_ACEOF
53790#define HAVE_NL_LANGINFO 1
53791_ACEOF
53792
53793fi
53794done
53795
53796
53797  fi
53798
53799
53800
53801
53802
53803          GNULIB_STRTOD=1
53804
53805
53806
53807
53808
53809$as_echo "#define GNULIB_TEST_STRTOD 1" >>confdefs.h
53810
53811
53812
53813
53814
53815
53816
53817     for ac_func in strtok_r
53818do :
53819  ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
53820if test "x$ac_cv_func_strtok_r" = xyes; then :
53821  cat >>confdefs.h <<_ACEOF
53822#define HAVE_STRTOK_R 1
53823_ACEOF
53824
53825fi
53826done
53827
53828  if test $ac_cv_func_strtok_r = yes; then
53829    HAVE_STRTOK_R=1
53830                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
53831$as_echo_n "checking whether strtok_r works... " >&6; }
53832if ${gl_cv_func_strtok_r_works+:} false; then :
53833  $as_echo_n "(cached) " >&6
53834else
53835  if test "$cross_compiling" = yes; then :
53836  case "$host_os" in
53837                           # Guess no on glibc systems.
53838            *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;;
53839                           # Guess yes on native Windows.
53840            mingw*)        gl_cv_func_strtok_r_works="guessing yes" ;;
53841            *)             gl_cv_func_strtok_r_works="guessing yes" ;;
53842          esac
53843
53844else
53845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53846/* end confdefs.h.  */
53847
53848              #ifndef __OPTIMIZE__
53849              # define __OPTIMIZE__ 1
53850              #endif
53851              #undef __OPTIMIZE_SIZE__
53852              #undef __NO_INLINE__
53853              #include <stdlib.h>
53854              #include <string.h>
53855
53856int
53857main ()
53858{
53859static const char dummy[] = "\177\01a";
53860              char delimiters[] = "xxxxxxxx";
53861              char *save_ptr = (char *) dummy;
53862              strtok_r (delimiters, "x", &save_ptr);
53863              strtok_r (NULL, "x", &save_ptr);
53864              return 0;
53865
53866  ;
53867  return 0;
53868}
53869
53870_ACEOF
53871if ac_fn_c_try_run "$LINENO"; then :
53872  gl_cv_func_strtok_r_works=yes
53873else
53874  gl_cv_func_strtok_r_works=no
53875fi
53876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53877  conftest.$ac_objext conftest.beam conftest.$ac_ext
53878fi
53879
53880
53881fi
53882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
53883$as_echo "$gl_cv_func_strtok_r_works" >&6; }
53884    case "$gl_cv_func_strtok_r_works" in
53885      *no)
53886                                UNDEFINE_STRTOK_R=1
53887        ;;
53888    esac
53889  else
53890    HAVE_STRTOK_R=0
53891  fi
53892
53893  if test $ac_cv_have_decl_strtok_r = no; then
53894    HAVE_DECL_STRTOK_R=0
53895  fi
53896
53897  if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
53898
53899
53900
53901
53902
53903
53904
53905
53906  gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
53907
53908
53909  :
53910
53911  fi
53912
53913
53914
53915
53916
53917          GNULIB_STRTOK_R=1
53918
53919
53920
53921
53922
53923$as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
53924
53925
53926
53927
53928
53929
53930
53931
53932
53933
53934
53935
53936
53937
53938     if test $gl_cv_have_include_next = yes; then
53939       gl_cv_next_sys_random_h='<'sys/random.h'>'
53940     else
53941       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
53942$as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
53943if ${gl_cv_next_sys_random_h+:} false; then :
53944  $as_echo_n "(cached) " >&6
53945else
53946
53947             if test $ac_cv_header_sys_random_h = yes; then
53948
53949
53950
53951
53952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53953/* end confdefs.h.  */
53954#include <sys/random.h>
53955_ACEOF
53956                case "$host_os" in
53957    aix*) gl_absname_cpp="$ac_cpp -C" ;;
53958    *)    gl_absname_cpp="$ac_cpp" ;;
53959  esac
53960
53961  case "$host_os" in
53962    mingw*)
53963                                          gl_dirsep_regex='[/\\]'
53964      ;;
53965    *)
53966      gl_dirsep_regex='\/'
53967      ;;
53968  esac
53969      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
53970  gl_header_literal_regex=`echo 'sys/random.h' \
53971                           | sed -e "$gl_make_literal_regex_sed"`
53972  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
53973      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
53974      s|^/[^/]|//&|
53975      p
53976      q
53977    }'
53978
53979        gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
53980  sed -n "$gl_absolute_header_sed"`
53981
53982           gl_header=$gl_cv_absolute_sys_random_h
53983           gl_cv_next_sys_random_h='"'$gl_header'"'
53984          else
53985               gl_cv_next_sys_random_h='<'sys/random.h'>'
53986             fi
53987
53988
53989fi
53990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
53991$as_echo "$gl_cv_next_sys_random_h" >&6; }
53992     fi
53993     NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
53994
53995     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
53996       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
53997       gl_next_as_first_directive='<'sys/random.h'>'
53998     else
53999       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54000       gl_next_as_first_directive=$gl_cv_next_sys_random_h
54001     fi
54002     NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
54003
54004
54005
54006
54007  if test $ac_cv_header_sys_random_h = yes; then
54008    HAVE_SYS_RANDOM_H=1
54009  else
54010    HAVE_SYS_RANDOM_H=0
54011  fi
54012
54013
54014
54015  if test $ac_cv_header_sys_random_h = yes; then
54016    UNISTD_H_HAVE_SYS_RANDOM_H=1
54017  fi
54018
54019
54020
54021
54022
54023
54024
54025
54026
54027
54028
54029
54030
54031
54032
54033
54034
54035
54036
54037
54038
54039
54040
54041
54042     if test $gl_cv_have_include_next = yes; then
54043       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
54044     else
54045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
54046$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
54047if ${gl_cv_next_sys_stat_h+:} false; then :
54048  $as_echo_n "(cached) " >&6
54049else
54050
54051             if test $ac_cv_header_sys_stat_h = yes; then
54052
54053
54054
54055
54056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54057/* end confdefs.h.  */
54058#include <sys/stat.h>
54059_ACEOF
54060                case "$host_os" in
54061    aix*) gl_absname_cpp="$ac_cpp -C" ;;
54062    *)    gl_absname_cpp="$ac_cpp" ;;
54063  esac
54064
54065  case "$host_os" in
54066    mingw*)
54067                                          gl_dirsep_regex='[/\\]'
54068      ;;
54069    *)
54070      gl_dirsep_regex='\/'
54071      ;;
54072  esac
54073      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54074  gl_header_literal_regex=`echo 'sys/stat.h' \
54075                           | sed -e "$gl_make_literal_regex_sed"`
54076  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54077      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54078      s|^/[^/]|//&|
54079      p
54080      q
54081    }'
54082
54083        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54084  sed -n "$gl_absolute_header_sed"`
54085
54086           gl_header=$gl_cv_absolute_sys_stat_h
54087           gl_cv_next_sys_stat_h='"'$gl_header'"'
54088          else
54089               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
54090             fi
54091
54092
54093fi
54094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
54095$as_echo "$gl_cv_next_sys_stat_h" >&6; }
54096     fi
54097     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
54098
54099     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54100       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54101       gl_next_as_first_directive='<'sys/stat.h'>'
54102     else
54103       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54104       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
54105     fi
54106     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
54107
54108
54109
54110
54111
54112
54113
54114
54115    WINDOWS_STAT_TIMESPEC=0
54116
54117
54118
54119
54120
54121
54122
54123
54124      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
54125     #include <sys/stat.h>
54126"
54127if test "x$ac_cv_type_nlink_t" = xyes; then :
54128
54129else
54130
54131$as_echo "#define nlink_t int" >>confdefs.h
54132
54133fi
54134
54135
54136
54137
54138
54139
54140
54141
54142
54143
54144
54145
54146
54147
54148
54149
54150
54151
54152
54153
54154
54155
54156
54157
54158
54159
54160     if test $gl_cv_have_include_next = yes; then
54161       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
54162     else
54163       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
54164$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
54165if ${gl_cv_next_sys_uio_h+:} false; then :
54166  $as_echo_n "(cached) " >&6
54167else
54168
54169             if test $ac_cv_header_sys_uio_h = yes; then
54170
54171
54172
54173
54174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54175/* end confdefs.h.  */
54176#include <sys/uio.h>
54177_ACEOF
54178                case "$host_os" in
54179    aix*) gl_absname_cpp="$ac_cpp -C" ;;
54180    *)    gl_absname_cpp="$ac_cpp" ;;
54181  esac
54182
54183  case "$host_os" in
54184    mingw*)
54185                                          gl_dirsep_regex='[/\\]'
54186      ;;
54187    *)
54188      gl_dirsep_regex='\/'
54189      ;;
54190  esac
54191      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54192  gl_header_literal_regex=`echo 'sys/uio.h' \
54193                           | sed -e "$gl_make_literal_regex_sed"`
54194  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54195      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54196      s|^/[^/]|//&|
54197      p
54198      q
54199    }'
54200
54201        gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54202  sed -n "$gl_absolute_header_sed"`
54203
54204           gl_header=$gl_cv_absolute_sys_uio_h
54205           gl_cv_next_sys_uio_h='"'$gl_header'"'
54206          else
54207               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
54208             fi
54209
54210
54211fi
54212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
54213$as_echo "$gl_cv_next_sys_uio_h" >&6; }
54214     fi
54215     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
54216
54217     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54218       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54219       gl_next_as_first_directive='<'sys/uio.h'>'
54220     else
54221       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54222       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
54223     fi
54224     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
54225
54226
54227
54228
54229  if test $ac_cv_header_sys_uio_h = yes; then
54230    HAVE_SYS_UIO_H=1
54231  else
54232    HAVE_SYS_UIO_H=0
54233  fi
54234
54235
54236
54237
54238
54239  :
54240
54241
54242
54243
54244cat >>confdefs.h <<_ACEOF
54245#define GNULIB_TEMPNAME 1
54246_ACEOF
54247
54248
54249
54250
54251
54252
54253
54254
54255
54256
54257
54258
54259
54260
54261     if test $gl_cv_have_include_next = yes; then
54262       gl_cv_next_termios_h='<'termios.h'>'
54263     else
54264       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <termios.h>" >&5
54265$as_echo_n "checking absolute name of <termios.h>... " >&6; }
54266if ${gl_cv_next_termios_h+:} false; then :
54267  $as_echo_n "(cached) " >&6
54268else
54269
54270             if test $ac_cv_header_termios_h = yes; then
54271
54272
54273
54274
54275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54276/* end confdefs.h.  */
54277#include <termios.h>
54278_ACEOF
54279                case "$host_os" in
54280    aix*) gl_absname_cpp="$ac_cpp -C" ;;
54281    *)    gl_absname_cpp="$ac_cpp" ;;
54282  esac
54283
54284  case "$host_os" in
54285    mingw*)
54286                                          gl_dirsep_regex='[/\\]'
54287      ;;
54288    *)
54289      gl_dirsep_regex='\/'
54290      ;;
54291  esac
54292      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54293  gl_header_literal_regex=`echo 'termios.h' \
54294                           | sed -e "$gl_make_literal_regex_sed"`
54295  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54296      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54297      s|^/[^/]|//&|
54298      p
54299      q
54300    }'
54301
54302        gl_cv_absolute_termios_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54303  sed -n "$gl_absolute_header_sed"`
54304
54305           gl_header=$gl_cv_absolute_termios_h
54306           gl_cv_next_termios_h='"'$gl_header'"'
54307          else
54308               gl_cv_next_termios_h='<'termios.h'>'
54309             fi
54310
54311
54312fi
54313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_termios_h" >&5
54314$as_echo "$gl_cv_next_termios_h" >&6; }
54315     fi
54316     NEXT_TERMIOS_H=$gl_cv_next_termios_h
54317
54318     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54319       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54320       gl_next_as_first_directive='<'termios.h'>'
54321     else
54322       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54323       gl_next_as_first_directive=$gl_cv_next_termios_h
54324     fi
54325     NEXT_AS_FIRST_DIRECTIVE_TERMIOS_H=$gl_next_as_first_directive
54326
54327
54328
54329
54330  if test $ac_cv_header_termios_h != yes; then
54331    HAVE_TERMIOS_H=0
54332  fi
54333
54334
54335
54336
54337
54338
54339
54340  for ac_header in sys/single_threaded.h
54341do :
54342  ac_fn_c_check_header_mongrel "$LINENO" "sys/single_threaded.h" "ac_cv_header_sys_single_threaded_h" "$ac_includes_default"
54343if test "x$ac_cv_header_sys_single_threaded_h" = xyes; then :
54344  cat >>confdefs.h <<_ACEOF
54345#define HAVE_SYS_SINGLE_THREADED_H 1
54346_ACEOF
54347
54348fi
54349
54350done
54351
54352
54353
54354
54355
54356
54357
54358
54359
54360
54361
54362      ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r,
54363         gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
54364         been included before.  */
54365      #if defined __MINGW32__
54366      # include <unistd.h>
54367      #endif
54368      #include <time.h>
54369
54370"
54371if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
54372  ac_have_decl=1
54373else
54374  ac_have_decl=0
54375fi
54376
54377cat >>confdefs.h <<_ACEOF
54378#define HAVE_DECL_LOCALTIME_R $ac_have_decl
54379_ACEOF
54380
54381  if test $ac_cv_have_decl_localtime_r = no; then
54382    HAVE_DECL_LOCALTIME_R=0
54383  fi
54384
54385
54386  if test $ac_cv_func_localtime_r = yes; then
54387    HAVE_LOCALTIME_R=1
54388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
54389$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
54390if ${gl_cv_time_r_posix+:} false; then :
54391  $as_echo_n "(cached) " >&6
54392else
54393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54394/* end confdefs.h.  */
54395/* mingw's <time.h> provides the functions asctime_r, ctime_r,
54396                 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
54397                 been included before.  */
54398              #if defined __MINGW32__
54399              # include <unistd.h>
54400              #endif
54401              #include <time.h>
54402
54403int
54404main ()
54405{
54406/* We don't need to append 'restrict's to the argument types,
54407                 even though the POSIX signature has the 'restrict's,
54408                 since C99 says they can't affect type compatibility.  */
54409              struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
54410              if (ptr) return 0;
54411              /* Check the return type is a pointer.
54412                 On HP-UX 10 it is 'int'.  */
54413              *localtime_r (0, 0);
54414  ;
54415  return 0;
54416}
54417
54418_ACEOF
54419if ac_fn_c_try_compile "$LINENO"; then :
54420  gl_cv_time_r_posix=yes
54421else
54422  gl_cv_time_r_posix=no
54423fi
54424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54425
54426fi
54427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
54428$as_echo "$gl_cv_time_r_posix" >&6; }
54429    if test $gl_cv_time_r_posix = yes; then
54430      REPLACE_LOCALTIME_R=0
54431    else
54432      REPLACE_LOCALTIME_R=1
54433    fi
54434  else
54435    HAVE_LOCALTIME_R=0
54436                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
54437$as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
54438if ${gl_cv_func_localtime_r_inline+:} false; then :
54439  $as_echo_n "(cached) " >&6
54440else
54441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54442/* end confdefs.h.  */
54443/* mingw's <time.h> provides the functions asctime_r, ctime_r,
54444                 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
54445                 been included before.  */
54446              #if defined __MINGW32__
54447              # include <unistd.h>
54448              #endif
54449              #include <time.h>
54450
54451int
54452main ()
54453{
54454time_t a;
54455              struct tm r;
54456              localtime_r (&a, &r);
54457
54458  ;
54459  return 0;
54460}
54461
54462_ACEOF
54463if ac_fn_c_try_link "$LINENO"; then :
54464  gl_cv_func_localtime_r_inline=yes
54465else
54466  gl_cv_func_localtime_r_inline=no
54467fi
54468rm -f core conftest.err conftest.$ac_objext \
54469    conftest$ac_exeext conftest.$ac_ext
54470
54471fi
54472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
54473$as_echo "$gl_cv_func_localtime_r_inline" >&6; }
54474    if test $gl_cv_func_localtime_r_inline = yes; then
54475      REPLACE_LOCALTIME_R=1
54476    fi
54477  fi
54478
54479  if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
54480
54481
54482
54483
54484
54485
54486
54487
54488  gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
54489
54490
54491  :
54492
54493  fi
54494
54495
54496
54497
54498
54499          GNULIB_TIME_R=1
54500
54501
54502
54503
54504
54505$as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
54506
54507
54508
54509
54510
54511
54512
54513
54514  # Mac OS X 10.6 loops forever with some time_t values.
54515  # See Bug#27706, Bug#27736, and
54516  # https://lists.gnu.org/r/bug-gnulib/2017-07/msg00142.html
54517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime loops forever near extrema" >&5
54518$as_echo_n "checking whether localtime loops forever near extrema... " >&6; }
54519if ${gl_cv_func_localtime_infloop_bug+:} false; then :
54520  $as_echo_n "(cached) " >&6
54521else
54522  gl_cv_func_localtime_infloop_bug=no
54523     if test "$cross_compiling" = yes; then :
54524  gl_cv_func_localtime_infloop_bug="guessing no"
54525else
54526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54527/* end confdefs.h.  */
54528#include <stdlib.h>
54529            #include <string.h>
54530            #include <unistd.h>
54531            #include <time.h>
54532
54533int
54534main ()
54535{
54536
54537            time_t t = -67768038400666600;
54538            struct tm *tm;
54539            char *tz = getenv ("TZ");
54540            if (! (tz && strcmp (tz, "QQQ0") == 0))
54541              return 0;
54542            alarm (2);
54543            tm = localtime (&t);
54544            /* Use TM and *TM to suppress over-optimization.  */
54545            return tm && tm->tm_isdst;
54546
54547  ;
54548  return 0;
54549}
54550_ACEOF
54551if ac_fn_c_try_run "$LINENO"; then :
54552  (TZ=QQQ0 ./conftest$EXEEXT) >/dev/null 2>&1 ||
54553           gl_cv_func_localtime_infloop_bug=yes
54554fi
54555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54556  conftest.$ac_objext conftest.beam conftest.$ac_ext
54557fi
54558
54559fi
54560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_infloop_bug" >&5
54561$as_echo "$gl_cv_func_localtime_infloop_bug" >&6; }
54562  if test "$gl_cv_func_localtime_infloop_bug" = yes; then
54563
54564$as_echo "#define HAVE_LOCALTIME_INFLOOP_BUG 1" >>confdefs.h
54565
54566  fi
54567
54568  ac_fn_c_check_type "$LINENO" "timezone_t" "ac_cv_type_timezone_t" "#include <time.h>
54569"
54570if test "x$ac_cv_type_timezone_t" = xyes; then :
54571
54572cat >>confdefs.h <<_ACEOF
54573#define HAVE_TIMEZONE_T 1
54574_ACEOF
54575
54576
54577fi
54578
54579  if test "$ac_cv_type_timezone_t" = yes; then
54580    HAVE_TIMEZONE_T=1
54581  fi
54582
54583  if test $HAVE_TIMEZONE_T = 0; then
54584
54585
54586
54587
54588
54589
54590
54591
54592  gl_LIBOBJS="$gl_LIBOBJS time_rz.$ac_objext"
54593
54594  fi
54595
54596
54597
54598
54599
54600          GNULIB_TIME_RZ=1
54601
54602
54603
54604
54605
54606$as_echo "#define GNULIB_TEST_TIME_RZ 1" >>confdefs.h
54607
54608
54609
54610
54611
54612
54613  REPLACE_TIMEGM=0
54614
54615  if test $ac_cv_func_timegm = yes; then
54616    if test "$gl_cv_func_working_mktime" != yes; then
54617      # Assume that timegm is buggy if mktime is.
54618      REPLACE_TIMEGM=1
54619    fi
54620  else
54621    HAVE_TIMEGM=0
54622  fi
54623
54624  if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
54625
54626
54627
54628
54629
54630
54631
54632
54633  gl_LIBOBJS="$gl_LIBOBJS timegm.$ac_objext"
54634
54635
54636  :
54637
54638  fi
54639
54640
54641
54642
54643
54644          GNULIB_TIMEGM=1
54645
54646
54647
54648
54649
54650$as_echo "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h
54651
54652
54653
54654  :
54655  :
54656
54657
54658
54659
54660    ac_fn_c_check_decl "$LINENO" "trunc" "ac_cv_have_decl_trunc" "#include <math.h>
54661"
54662if test "x$ac_cv_have_decl_trunc" = xyes; then :
54663  ac_have_decl=1
54664else
54665  ac_have_decl=0
54666fi
54667
54668cat >>confdefs.h <<_ACEOF
54669#define HAVE_DECL_TRUNC $ac_have_decl
54670_ACEOF
54671
54672  if test "$ac_cv_have_decl_trunc" = yes; then
54673        TRUNC_LIBM=?
54674    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54675/* end confdefs.h.  */
54676#ifndef __NO_MATH_INLINES
54677           # define __NO_MATH_INLINES 1 /* for glibc */
54678           #endif
54679           #include <math.h>
54680           double (*funcptr) (double) = trunc;
54681           double x;
54682int
54683main ()
54684{
54685x = funcptr(x) + trunc(x);
54686  ;
54687  return 0;
54688}
54689_ACEOF
54690if ac_fn_c_try_link "$LINENO"; then :
54691  TRUNC_LIBM=
54692fi
54693rm -f core conftest.err conftest.$ac_objext \
54694    conftest$ac_exeext conftest.$ac_ext
54695    if test "$TRUNC_LIBM" = "?"; then
54696      save_LIBS="$LIBS"
54697      LIBS="$LIBS -lm"
54698      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54699/* end confdefs.h.  */
54700#ifndef __NO_MATH_INLINES
54701             # define __NO_MATH_INLINES 1 /* for glibc */
54702             #endif
54703             #include <math.h>
54704             double (*funcptr) (double) = trunc;
54705             double x;
54706int
54707main ()
54708{
54709x = funcptr(x) + trunc(x);
54710  ;
54711  return 0;
54712}
54713_ACEOF
54714if ac_fn_c_try_link "$LINENO"; then :
54715  TRUNC_LIBM="-lm"
54716fi
54717rm -f core conftest.err conftest.$ac_objext \
54718    conftest$ac_exeext conftest.$ac_ext
54719      LIBS="$save_LIBS"
54720    fi
54721    if test "$TRUNC_LIBM" = "?"; then
54722      TRUNC_LIBM=
54723    fi
54724
54725  else
54726    HAVE_DECL_TRUNC=0
54727  fi
54728  if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
54729        TRUNC_LIBM=
54730  fi
54731
54732
54733  if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
54734
54735
54736
54737
54738
54739
54740
54741
54742  gl_LIBOBJS="$gl_LIBOBJS trunc.$ac_objext"
54743
54744  fi
54745
54746
54747
54748
54749
54750          GNULIB_TRUNC=1
54751
54752
54753
54754
54755
54756$as_echo "#define GNULIB_TEST_TRUNC 1" >>confdefs.h
54757
54758
54759
54760
54761
54762
54763
54764  if test $ac_cv_func_tzset = no; then
54765    HAVE_TZSET=0
54766  fi
54767  REPLACE_TZSET=0
54768  case "$host_os" in
54769    mingw*) REPLACE_TZSET=1 ;;
54770  esac
54771
54772  if test $HAVE_TZSET = 0 || test $REPLACE_TZSET = 1; then
54773
54774
54775
54776
54777
54778
54779
54780
54781  gl_LIBOBJS="$gl_LIBOBJS tzset.$ac_objext"
54782
54783  fi
54784
54785
54786
54787
54788
54789          GNULIB_TZSET=1
54790
54791
54792
54793
54794
54795$as_echo "#define GNULIB_TEST_TZSET 1" >>confdefs.h
54796
54797
54798
54799
54800
54801      if  { test "$HAVE_LIBUNISTRING" != yes \
54802    || {
54803
54804
54805
54806            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54807            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54808                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54809                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54810                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
54811                         }
54812                    }
54813               }
54814
54815
54816
54817
54818       }
54819  }; then
54820    LIBUNISTRING_UNICASE_H='unicase.h'
54821  else
54822    LIBUNISTRING_UNICASE_H=
54823  fi
54824
54825
54826
54827
54828
54829       if  { test "$HAVE_LIBUNISTRING" != yes \
54830    || {
54831
54832
54833
54834            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54835            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54836                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54837                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54838                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 1
54839                         }
54840                    }
54841               }
54842
54843
54844
54845
54846       }
54847  }; then
54848  LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_TRUE=
54849  LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_FALSE='#'
54850else
54851  LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_TRUE='#'
54852  LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_FALSE=
54853fi
54854
54855
54856
54857
54858       if  { test "$HAVE_LIBUNISTRING" != yes \
54859    || {
54860
54861
54862
54863            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54864            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54865                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54866                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54867                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 1
54868                         }
54869                    }
54870               }
54871
54872
54873
54874
54875       }
54876  }; then
54877  LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_TRUE=
54878  LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_FALSE='#'
54879else
54880  LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_TRUE='#'
54881  LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_FALSE=
54882fi
54883
54884
54885
54886
54887
54888       if  { test "$HAVE_LIBUNISTRING" != yes \
54889    || {
54890
54891
54892
54893            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54894            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54895                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54896                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54897                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
54898                         }
54899                    }
54900               }
54901
54902
54903
54904
54905       }
54906  }; then
54907  LIBUNISTRING_COMPILE_UNICASE_TOLOWER_TRUE=
54908  LIBUNISTRING_COMPILE_UNICASE_TOLOWER_FALSE='#'
54909else
54910  LIBUNISTRING_COMPILE_UNICASE_TOLOWER_TRUE='#'
54911  LIBUNISTRING_COMPILE_UNICASE_TOLOWER_FALSE=
54912fi
54913
54914
54915
54916
54917       if  { test "$HAVE_LIBUNISTRING" != yes \
54918    || {
54919
54920
54921
54922            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54923            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54924                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54925                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54926                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
54927                         }
54928                    }
54929               }
54930
54931
54932
54933
54934       }
54935  }; then
54936  LIBUNISTRING_COMPILE_UNICASE_TOTITLE_TRUE=
54937  LIBUNISTRING_COMPILE_UNICASE_TOTITLE_FALSE='#'
54938else
54939  LIBUNISTRING_COMPILE_UNICASE_TOTITLE_TRUE='#'
54940  LIBUNISTRING_COMPILE_UNICASE_TOTITLE_FALSE=
54941fi
54942
54943
54944
54945
54946       if  { test "$HAVE_LIBUNISTRING" != yes \
54947    || {
54948
54949
54950
54951            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54952            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54953                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54954                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54955                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
54956                         }
54957                    }
54958               }
54959
54960
54961
54962
54963       }
54964  }; then
54965  LIBUNISTRING_COMPILE_UNICASE_TOUPPER_TRUE=
54966  LIBUNISTRING_COMPILE_UNICASE_TOUPPER_FALSE='#'
54967else
54968  LIBUNISTRING_COMPILE_UNICASE_TOUPPER_TRUE='#'
54969  LIBUNISTRING_COMPILE_UNICASE_TOUPPER_FALSE=
54970fi
54971
54972
54973
54974
54975       if  { test "$HAVE_LIBUNISTRING" != yes \
54976    || {
54977
54978
54979
54980            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
54981            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
54982                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
54983                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
54984                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
54985                         }
54986                    }
54987               }
54988
54989
54990
54991
54992       }
54993  }; then
54994  LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_TRUE=
54995  LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_FALSE='#'
54996else
54997  LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_TRUE='#'
54998  LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_FALSE=
54999fi
55000
55001
55002
55003
55004       if  { test "$HAVE_LIBUNISTRING" != yes \
55005    || {
55006
55007
55008
55009            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55010            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55011                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55012                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55013                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55014                         }
55015                    }
55016               }
55017
55018
55019
55020
55021       }
55022  }; then
55023  LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_TRUE=
55024  LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_FALSE='#'
55025else
55026  LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_TRUE='#'
55027  LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_FALSE=
55028fi
55029
55030
55031
55032
55033       if  { test "$HAVE_LIBUNISTRING" != yes \
55034    || {
55035
55036
55037
55038            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55039            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55040                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55041                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55042                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55043                         }
55044                    }
55045               }
55046
55047
55048
55049
55050       }
55051  }; then
55052  LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_TRUE=
55053  LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_FALSE='#'
55054else
55055  LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_TRUE='#'
55056  LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_FALSE=
55057fi
55058
55059
55060
55061
55062       if  { test "$HAVE_LIBUNISTRING" != yes \
55063    || {
55064
55065
55066
55067            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55068            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55069                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55070                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55071                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55072                         }
55073                    }
55074               }
55075
55076
55077
55078
55079       }
55080  }; then
55081  LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_TRUE=
55082  LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_FALSE='#'
55083else
55084  LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_TRUE='#'
55085  LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_FALSE=
55086fi
55087
55088
55089
55090
55091       if  { test "$HAVE_LIBUNISTRING" != yes \
55092    || {
55093
55094
55095
55096            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55097            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55098                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55099                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55100                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55101                         }
55102                    }
55103               }
55104
55105
55106
55107
55108       }
55109  }; then
55110  LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_TRUE=
55111  LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_FALSE='#'
55112else
55113  LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_TRUE='#'
55114  LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_FALSE=
55115fi
55116
55117
55118
55119
55120       if  { test "$HAVE_LIBUNISTRING" != yes \
55121    || {
55122
55123
55124
55125            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55126            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55127                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55128                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55129                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55130                         }
55131                    }
55132               }
55133
55134
55135
55136
55137       }
55138  }; then
55139  LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_TRUE=
55140  LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_FALSE='#'
55141else
55142  LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_TRUE='#'
55143  LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_FALSE=
55144fi
55145
55146
55147
55148
55149       if  { test "$HAVE_LIBUNISTRING" != yes \
55150    || {
55151
55152
55153
55154            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55155            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55156                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55157                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55158                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55159                         }
55160                    }
55161               }
55162
55163
55164
55165
55166       }
55167  }; then
55168  LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_TRUE=
55169  LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_FALSE='#'
55170else
55171  LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_TRUE='#'
55172  LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_FALSE=
55173fi
55174
55175
55176
55177
55178      if  { test "$HAVE_LIBUNISTRING" != yes \
55179    || {
55180
55181
55182
55183            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55184            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55185                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55186                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55187                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
55188                         }
55189                    }
55190               }
55191
55192
55193
55194
55195       }
55196  }; then
55197    LIBUNISTRING_UNICTYPE_H='unictype.h'
55198  else
55199    LIBUNISTRING_UNICTYPE_H=
55200  fi
55201
55202
55203
55204
55205       if  { test "$HAVE_LIBUNISTRING" != yes \
55206    || {
55207
55208
55209
55210            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55211            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55212                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55213                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55214                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55215                         }
55216                    }
55217               }
55218
55219
55220
55221
55222       }
55223  }; then
55224  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE=
55225  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE='#'
55226else
55227  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE='#'
55228  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE=
55229fi
55230
55231
55232
55233
55234
55235       if  { test "$HAVE_LIBUNISTRING" != yes \
55236    || {
55237
55238
55239
55240            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55241            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55242                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55243                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55244                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55245                         }
55246                    }
55247               }
55248
55249
55250
55251
55252       }
55253  }; then
55254  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE=
55255  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE='#'
55256else
55257  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE='#'
55258  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE=
55259fi
55260
55261
55262
55263
55264       if  { test "$HAVE_LIBUNISTRING" != yes \
55265    || {
55266
55267
55268
55269            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55270            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55271                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55272                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55273                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55274                         }
55275                    }
55276               }
55277
55278
55279
55280
55281       }
55282  }; then
55283  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE=
55284  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE='#'
55285else
55286  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE='#'
55287  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE=
55288fi
55289
55290
55291
55292
55293
55294       if  { test "$HAVE_LIBUNISTRING" != yes \
55295    || {
55296
55297
55298
55299            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55300            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55301                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55302                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55303                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55304                         }
55305                    }
55306               }
55307
55308
55309
55310
55311       }
55312  }; then
55313  LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_TRUE=
55314  LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_FALSE='#'
55315else
55316  LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_TRUE='#'
55317  LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_FALSE=
55318fi
55319
55320
55321
55322
55323
55324       if  { test "$HAVE_LIBUNISTRING" != yes \
55325    || {
55326
55327
55328
55329            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55330            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55331                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55332                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55333                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55334                         }
55335                    }
55336               }
55337
55338
55339
55340
55341       }
55342  }; then
55343  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_TRUE=
55344  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_FALSE='#'
55345else
55346  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_TRUE='#'
55347  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_FALSE=
55348fi
55349
55350
55351
55352
55353      if  { test "$HAVE_LIBUNISTRING" != yes \
55354    || {
55355
55356
55357
55358            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55359            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55360                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55361                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55362                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
55363                         }
55364                    }
55365               }
55366
55367
55368
55369
55370       }
55371  }; then
55372    LIBUNISTRING_UNIGBRK_H='unigbrk.h'
55373  else
55374    LIBUNISTRING_UNIGBRK_H=
55375  fi
55376
55377
55378
55379
55380       if  { test "$HAVE_LIBUNISTRING" != yes \
55381    || {
55382
55383
55384
55385            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55386            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55387                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55388                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55389                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55390                         }
55391                    }
55392               }
55393
55394
55395
55396
55397       }
55398  }; then
55399  LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_TRUE=
55400  LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_FALSE='#'
55401else
55402  LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_TRUE='#'
55403  LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_FALSE=
55404fi
55405
55406
55407
55408
55409       if  { test "$HAVE_LIBUNISTRING" != yes \
55410    || {
55411
55412
55413
55414            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55415            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55416                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55417                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55418                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55419                         }
55420                    }
55421               }
55422
55423
55424
55425
55426       }
55427  }; then
55428  LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_TRUE=
55429  LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_FALSE='#'
55430else
55431  LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_TRUE='#'
55432  LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_FALSE=
55433fi
55434
55435
55436
55437
55438      if  { test "$HAVE_LIBUNISTRING" != yes \
55439    || {
55440
55441
55442
55443            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55444            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55445                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55446                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55447                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
55448                         }
55449                    }
55450               }
55451
55452
55453
55454
55455       }
55456  }; then
55457    LIBUNISTRING_UNILBRK_H='unilbrk.h'
55458  else
55459    LIBUNISTRING_UNILBRK_H=
55460  fi
55461
55462
55463
55464
55465
55466       if  { test "$HAVE_LIBUNISTRING" != yes \
55467    || {
55468
55469
55470
55471            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55472            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55473                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55474                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55475                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55476                         }
55477                    }
55478               }
55479
55480
55481
55482
55483       }
55484  }; then
55485  LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
55486  LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
55487else
55488  LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
55489  LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
55490fi
55491
55492
55493
55494
55495      if  { test "$HAVE_LIBUNISTRING" != yes \
55496    || {
55497
55498
55499
55500            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55501            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55502                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55503                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55504                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
55505                         }
55506                    }
55507               }
55508
55509
55510
55511
55512       }
55513  }; then
55514    LIBUNISTRING_UNINORM_H='uninorm.h'
55515  else
55516    LIBUNISTRING_UNINORM_H=
55517  fi
55518
55519
55520
55521
55522       if  { test "$HAVE_LIBUNISTRING" != yes \
55523    || {
55524
55525
55526
55527            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55528            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55529                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55530                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55531                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55532                         }
55533                    }
55534               }
55535
55536
55537
55538
55539       }
55540  }; then
55541  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE=
55542  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE='#'
55543else
55544  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE='#'
55545  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE=
55546fi
55547
55548
55549
55550
55551       if  { test "$HAVE_LIBUNISTRING" != yes \
55552    || {
55553
55554
55555
55556            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55557            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55558                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55559                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55560                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 5
55561                         }
55562                    }
55563               }
55564
55565
55566
55567
55568       }
55569  }; then
55570  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_TRUE=
55571  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_FALSE='#'
55572else
55573  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_TRUE='#'
55574  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_FALSE=
55575fi
55576
55577
55578
55579
55580       if  { test "$HAVE_LIBUNISTRING" != yes \
55581    || {
55582
55583
55584
55585            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55586            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55587                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55588                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55589                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55590                         }
55591                    }
55592               }
55593
55594
55595
55596
55597       }
55598  }; then
55599  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE=
55600  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE='#'
55601else
55602  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE='#'
55603  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE=
55604fi
55605
55606
55607
55608
55609
55610       if  { test "$HAVE_LIBUNISTRING" != yes \
55611    || {
55612
55613
55614
55615            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55616            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55617                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55618                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55619                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55620                         }
55621                    }
55622               }
55623
55624
55625
55626
55627       }
55628  }; then
55629  LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE=
55630  LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE='#'
55631else
55632  LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE='#'
55633  LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE=
55634fi
55635
55636
55637
55638
55639       if  { test "$HAVE_LIBUNISTRING" != yes \
55640    || {
55641
55642
55643
55644            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55645            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55646                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55647                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55648                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55649                         }
55650                    }
55651               }
55652
55653
55654
55655
55656       }
55657  }; then
55658  LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE=
55659  LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE='#'
55660else
55661  LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE='#'
55662  LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE=
55663fi
55664
55665
55666
55667
55668$as_echo "#define GNULIB_TEST_UNINORM_U8_NORMALIZE 1" >>confdefs.h
55669
55670
55671
55672
55673       if  { test "$HAVE_LIBUNISTRING" != yes \
55674    || {
55675
55676
55677
55678            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55679            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55680                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55681                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55682                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
55683                         }
55684                    }
55685               }
55686
55687
55688
55689
55690       }
55691  }; then
55692  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE=
55693  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE='#'
55694else
55695  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE='#'
55696  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE=
55697fi
55698
55699
55700
55701
55702
55703
55704
55705
55706
55707
55708
55709
55710
55711
55712     if test $gl_cv_have_include_next = yes; then
55713       gl_cv_next_unistd_h='<'unistd.h'>'
55714     else
55715       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
55716$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
55717if ${gl_cv_next_unistd_h+:} false; then :
55718  $as_echo_n "(cached) " >&6
55719else
55720
55721             if test $ac_cv_header_unistd_h = yes; then
55722
55723
55724
55725
55726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55727/* end confdefs.h.  */
55728#include <unistd.h>
55729_ACEOF
55730                case "$host_os" in
55731    aix*) gl_absname_cpp="$ac_cpp -C" ;;
55732    *)    gl_absname_cpp="$ac_cpp" ;;
55733  esac
55734
55735  case "$host_os" in
55736    mingw*)
55737                                          gl_dirsep_regex='[/\\]'
55738      ;;
55739    *)
55740      gl_dirsep_regex='\/'
55741      ;;
55742  esac
55743      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
55744  gl_header_literal_regex=`echo 'unistd.h' \
55745                           | sed -e "$gl_make_literal_regex_sed"`
55746  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
55747      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
55748      s|^/[^/]|//&|
55749      p
55750      q
55751    }'
55752
55753        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
55754  sed -n "$gl_absolute_header_sed"`
55755
55756           gl_header=$gl_cv_absolute_unistd_h
55757           gl_cv_next_unistd_h='"'$gl_header'"'
55758          else
55759               gl_cv_next_unistd_h='<'unistd.h'>'
55760             fi
55761
55762
55763fi
55764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
55765$as_echo "$gl_cv_next_unistd_h" >&6; }
55766     fi
55767     NEXT_UNISTD_H=$gl_cv_next_unistd_h
55768
55769     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
55770       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
55771       gl_next_as_first_directive='<'unistd.h'>'
55772     else
55773       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
55774       gl_next_as_first_directive=$gl_cv_next_unistd_h
55775     fi
55776     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
55777
55778
55779
55780
55781  if test $ac_cv_header_unistd_h = yes; then
55782    HAVE_UNISTD_H=1
55783  else
55784    HAVE_UNISTD_H=0
55785  fi
55786
55787
55788
55789
55790
55791
55792
55793
55794
55795
55796
55797
55798
55799
55800      if  { test "$HAVE_LIBUNISTRING" != yes \
55801    || {
55802
55803
55804
55805            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55806            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55807                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55808                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55809                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
55810                         }
55811                    }
55812               }
55813
55814
55815
55816
55817       }
55818  }; then
55819    LIBUNISTRING_UNISTR_H='unistr.h'
55820  else
55821    LIBUNISTRING_UNISTR_H=
55822  fi
55823
55824
55825
55826
55827       if  { test "$HAVE_LIBUNISTRING" != yes \
55828    || {
55829
55830
55831
55832            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55833            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55834                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55835                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55836                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
55837                         }
55838                    }
55839               }
55840
55841
55842
55843
55844       }
55845  }; then
55846  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
55847  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
55848else
55849  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
55850  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
55851fi
55852
55853
55854
55855
55856       if  { test "$HAVE_LIBUNISTRING" != yes \
55857    || {
55858
55859
55860
55861            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55862            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55863                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55864                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55865                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
55866                         }
55867                    }
55868               }
55869
55870
55871
55872
55873       }
55874  }; then
55875  LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE=
55876  LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#'
55877else
55878  LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#'
55879  LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE=
55880fi
55881
55882
55883
55884
55885       if  { test "$HAVE_LIBUNISTRING" != yes \
55886    || {
55887
55888
55889
55890            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55891            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55892                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55893                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55894                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
55895                         }
55896                    }
55897               }
55898
55899
55900
55901
55902       }
55903  }; then
55904  LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_TRUE=
55905  LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_FALSE='#'
55906else
55907  LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_TRUE='#'
55908  LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_FALSE=
55909fi
55910
55911
55912
55913
55914       if  { test "$HAVE_LIBUNISTRING" != yes \
55915    || {
55916
55917
55918
55919            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55920            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55921                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55922                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55923                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
55924                         }
55925                    }
55926               }
55927
55928
55929
55930
55931       }
55932  }; then
55933  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE=
55934  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE='#'
55935else
55936  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE='#'
55937  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE=
55938fi
55939
55940
55941
55942
55943       if  { test "$HAVE_LIBUNISTRING" != yes \
55944    || {
55945
55946
55947
55948            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55949            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55950                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55951                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55952                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
55953                         }
55954                    }
55955               }
55956
55957
55958
55959
55960       }
55961  }; then
55962  LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
55963  LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
55964else
55965  LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
55966  LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
55967fi
55968
55969
55970
55971
55972cat >>confdefs.h <<_ACEOF
55973#define GNULIB_UNISTR_U8_MBTOUC 1
55974_ACEOF
55975
55976
55977
55978
55979       if  { test "$HAVE_LIBUNISTRING" != yes \
55980    || {
55981
55982
55983
55984            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
55985            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
55986                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
55987                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
55988                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
55989                         }
55990                    }
55991               }
55992
55993
55994
55995
55996       }
55997  }; then
55998  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
55999  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
56000else
56001  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
56002  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
56003fi
56004
56005
56006
56007
56008cat >>confdefs.h <<_ACEOF
56009#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
56010_ACEOF
56011
56012
56013
56014
56015       if  { test "$HAVE_LIBUNISTRING" != yes \
56016    || {
56017
56018
56019
56020            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56021            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56022                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56023                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56024                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
56025                         }
56026                    }
56027               }
56028
56029
56030
56031
56032       }
56033  }; then
56034  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
56035  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
56036else
56037  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
56038  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
56039fi
56040
56041
56042
56043
56044cat >>confdefs.h <<_ACEOF
56045#define GNULIB_UNISTR_U8_MBTOUCR 1
56046_ACEOF
56047
56048
56049
56050
56051       if  { test "$HAVE_LIBUNISTRING" != yes \
56052    || {
56053
56054
56055
56056            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56057            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56058                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56059                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56060                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
56061                         }
56062                    }
56063               }
56064
56065
56066
56067
56068       }
56069  }; then
56070  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
56071  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
56072else
56073  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
56074  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
56075fi
56076
56077
56078
56079
56080       if  { test "$HAVE_LIBUNISTRING" != yes \
56081    || {
56082
56083
56084
56085            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56086            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56087                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56088                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56089                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
56090                         }
56091                    }
56092               }
56093
56094
56095
56096
56097       }
56098  }; then
56099  LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE=
56100  LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#'
56101else
56102  LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#'
56103  LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE=
56104fi
56105
56106
56107
56108
56109       if  { test "$HAVE_LIBUNISTRING" != yes \
56110    || {
56111
56112
56113
56114            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56115            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56116                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56117                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56118                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
56119                         }
56120                    }
56121               }
56122
56123
56124
56125
56126       }
56127  }; then
56128  LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE=
56129  LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE='#'
56130else
56131  LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE='#'
56132  LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE=
56133fi
56134
56135
56136
56137
56138       if  { test "$HAVE_LIBUNISTRING" != yes \
56139    || {
56140
56141
56142
56143            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56144            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56145                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56146                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56147                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
56148                         }
56149                    }
56150               }
56151
56152
56153
56154
56155       }
56156  }; then
56157  LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_TRUE=
56158  LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_FALSE='#'
56159else
56160  LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_TRUE='#'
56161  LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_FALSE=
56162fi
56163
56164
56165
56166
56167cat >>confdefs.h <<_ACEOF
56168#define GNULIB_UNISTR_U8_UCTOMB 1
56169_ACEOF
56170
56171
56172
56173
56174       if  { test "$HAVE_LIBUNISTRING" != yes \
56175    || {
56176
56177
56178
56179            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56180            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56181                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56182                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56183                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
56184                         }
56185                    }
56186               }
56187
56188
56189
56190
56191       }
56192  }; then
56193  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
56194  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
56195else
56196  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
56197  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
56198fi
56199
56200
56201
56202
56203      if  { test "$HAVE_LIBUNISTRING" != yes \
56204    || {
56205
56206
56207
56208            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56209            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56210                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56211                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56212                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
56213                         }
56214                    }
56215               }
56216
56217
56218
56219
56220       }
56221  }; then
56222    LIBUNISTRING_UNITYPES_H='unitypes.h'
56223  else
56224    LIBUNISTRING_UNITYPES_H=
56225  fi
56226
56227
56228
56229
56230      if  { test "$HAVE_LIBUNISTRING" != yes \
56231    || {
56232
56233
56234
56235            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56236            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56237                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56238                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56239                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
56240                         }
56241                    }
56242               }
56243
56244
56245
56246
56247       }
56248  }; then
56249    LIBUNISTRING_UNIWBRK_H='uniwbrk.h'
56250  else
56251    LIBUNISTRING_UNIWBRK_H=
56252  fi
56253
56254
56255
56256
56257       if  { test "$HAVE_LIBUNISTRING" != yes \
56258    || {
56259
56260
56261
56262            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56263            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56264                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56265                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56266                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
56267                         }
56268                    }
56269               }
56270
56271
56272
56273
56274       }
56275  }; then
56276  LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_TRUE=
56277  LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_FALSE='#'
56278else
56279  LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_TRUE='#'
56280  LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_FALSE=
56281fi
56282
56283
56284
56285
56286       if  { test "$HAVE_LIBUNISTRING" != yes \
56287    || {
56288
56289
56290
56291            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56292            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56293                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56294                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56295                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
56296                         }
56297                    }
56298               }
56299
56300
56301
56302
56303       }
56304  }; then
56305  LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_TRUE=
56306  LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_FALSE='#'
56307else
56308  LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_TRUE='#'
56309  LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_FALSE=
56310fi
56311
56312
56313
56314
56315      if  { test "$HAVE_LIBUNISTRING" != yes \
56316    || {
56317
56318
56319
56320            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56321            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56322                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56323                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56324                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
56325                         }
56326                    }
56327               }
56328
56329
56330
56331
56332       }
56333  }; then
56334    LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
56335  else
56336    LIBUNISTRING_UNIWIDTH_H=
56337  fi
56338
56339
56340
56341
56342       if  { test "$HAVE_LIBUNISTRING" != yes \
56343    || {
56344
56345
56346
56347            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56348            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56349                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56350                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56351                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
56352                         }
56353                    }
56354               }
56355
56356
56357
56358
56359       }
56360  }; then
56361  LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_TRUE=
56362  LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_FALSE='#'
56363else
56364  LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_TRUE='#'
56365  LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_FALSE=
56366fi
56367
56368
56369
56370
56371       if  { test "$HAVE_LIBUNISTRING" != yes \
56372    || {
56373
56374
56375
56376            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56377            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56378                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56379                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56380                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
56381                         }
56382                    }
56383               }
56384
56385
56386
56387
56388       }
56389  }; then
56390  LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_TRUE=
56391  LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_FALSE='#'
56392else
56393  LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_TRUE='#'
56394  LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_FALSE=
56395fi
56396
56397
56398
56399
56400       if  { test "$HAVE_LIBUNISTRING" != yes \
56401    || {
56402
56403
56404
56405            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
56406            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
56407                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
56408                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
56409                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
56410                         }
56411                    }
56412               }
56413
56414
56415
56416
56417       }
56418  }; then
56419  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
56420  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
56421else
56422  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
56423  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
56424fi
56425
56426
56427
56428
56429$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
56430
56431
56432
56433
56434
56435
56436
56437
56438
56439
56440
56441
56442
56443
56444
56445
56446
56447
56448
56449
56450
56451  if test $ac_cv_have_decl_unsetenv = no; then
56452    HAVE_DECL_UNSETENV=0
56453  fi
56454  for ac_func in unsetenv
56455do :
56456  ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
56457if test "x$ac_cv_func_unsetenv" = xyes; then :
56458  cat >>confdefs.h <<_ACEOF
56459#define HAVE_UNSETENV 1
56460_ACEOF
56461
56462fi
56463done
56464
56465  if test $ac_cv_func_unsetenv = no; then
56466    HAVE_UNSETENV=0
56467  else
56468    HAVE_UNSETENV=1
56469        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
56470$as_echo_n "checking for unsetenv() return type... " >&6; }
56471if ${gt_cv_func_unsetenv_ret+:} false; then :
56472  $as_echo_n "(cached) " >&6
56473else
56474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56475/* end confdefs.h.  */
56476
56477#undef _BSD
56478#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
56479#include <stdlib.h>
56480extern
56481#ifdef __cplusplus
56482"C"
56483#endif
56484int unsetenv (const char *name);
56485
56486int
56487main ()
56488{
56489
56490  ;
56491  return 0;
56492}
56493_ACEOF
56494if ac_fn_c_try_compile "$LINENO"; then :
56495  gt_cv_func_unsetenv_ret='int'
56496else
56497  gt_cv_func_unsetenv_ret='void'
56498fi
56499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56500fi
56501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
56502$as_echo "$gt_cv_func_unsetenv_ret" >&6; }
56503    if test $gt_cv_func_unsetenv_ret = 'void'; then
56504
56505$as_echo "#define VOID_UNSETENV 1" >>confdefs.h
56506
56507      REPLACE_UNSETENV=1
56508    fi
56509
56510                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
56511$as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
56512if ${gl_cv_func_unsetenv_works+:} false; then :
56513  $as_echo_n "(cached) " >&6
56514else
56515  if test "$cross_compiling" = yes; then :
56516  case "$host_os" in
56517                 # Guess yes on glibc systems.
56518         *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
56519                 # If we don't know, obey --enable-cross-guesses.
56520         *)      gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
56521       esac
56522
56523else
56524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56525/* end confdefs.h.  */
56526
56527       #include <stdlib.h>
56528       #include <errno.h>
56529       extern char **environ;
56530
56531int
56532main ()
56533{
56534
56535       char entry1[] = "a=1";
56536       char entry2[] = "b=2";
56537       char *env[] = { entry1, entry2, NULL };
56538       if (putenv ((char *) "a=1")) return 1;
56539       if (putenv (entry2)) return 2;
56540       entry2[0] = 'a';
56541       unsetenv ("a");
56542       if (getenv ("a")) return 3;
56543       if (!unsetenv ("") || errno != EINVAL) return 4;
56544       entry2[0] = 'b';
56545       environ = env;
56546       if (!getenv ("a")) return 5;
56547       entry2[0] = 'a';
56548       unsetenv ("a");
56549       if (getenv ("a")) return 6;
56550
56551  ;
56552  return 0;
56553}
56554_ACEOF
56555if ac_fn_c_try_run "$LINENO"; then :
56556  gl_cv_func_unsetenv_works=yes
56557else
56558  gl_cv_func_unsetenv_works=no
56559fi
56560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56561  conftest.$ac_objext conftest.beam conftest.$ac_ext
56562fi
56563
56564fi
56565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
56566$as_echo "$gl_cv_func_unsetenv_works" >&6; }
56567    case "$gl_cv_func_unsetenv_works" in
56568      *yes) ;;
56569      *)
56570        REPLACE_UNSETENV=1
56571        ;;
56572    esac
56573  fi
56574
56575  if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
56576
56577
56578
56579
56580
56581
56582
56583
56584  gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
56585
56586
56587
56588
56589
56590  fi
56591
56592
56593
56594
56595
56596          GNULIB_UNSETENV=1
56597
56598
56599
56600
56601
56602$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
56603
56604
56605
56606
56607
56608
56609  if test $ac_cv_func_vasnprintf = no; then
56610
56611
56612
56613
56614
56615
56616
56617
56618
56619
56620  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
56621
56622
56623
56624
56625
56626
56627
56628
56629
56630  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
56631
56632
56633
56634
56635
56636
56637
56638
56639
56640  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
56641
56642
56643
56644
56645
56646
56647
56648
56649
56650  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
56651
56652  if test $ac_cv_func_vasnprintf = yes; then
56653
56654$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
56655
56656  fi
56657
56658
56659
56660
56661
56662
56663
56664
56665
56666  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
56667if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
56668
56669else
56670
56671$as_echo "#define ptrdiff_t long" >>confdefs.h
56672
56673
56674fi
56675
56676
56677
56678
56679
56680
56681
56682  fi
56683
56684
56685  for ac_func in vasprintf
56686do :
56687  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
56688if test "x$ac_cv_func_vasprintf" = xyes; then :
56689  cat >>confdefs.h <<_ACEOF
56690#define HAVE_VASPRINTF 1
56691_ACEOF
56692
56693fi
56694done
56695
56696  if test $ac_cv_func_vasprintf = no; then
56697
56698
56699
56700
56701
56702
56703
56704
56705
56706  gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
56707
56708
56709
56710
56711
56712
56713
56714
56715
56716  gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
56717
56718
56719  if test $ac_cv_func_vasprintf = yes; then
56720    REPLACE_VASPRINTF=1
56721  else
56722    HAVE_VASPRINTF=0
56723  fi
56724
56725
56726
56727
56728
56729
56730
56731
56732  fi
56733
56734
56735
56736
56737
56738
56739          GNULIB_VASPRINTF=1
56740
56741
56742
56743
56744
56745$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
56746
56747
56748
56749
56750
56751  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
56752
56753
56754
56755  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
56756
56757
56758
56759
56760
56761
56762
56763
56764
56765
56766
56767
56768
56769
56770
56771
56772  gl_cv_func_vasprintf_posix=no
56773  for ac_func in vasprintf
56774do :
56775  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
56776if test "x$ac_cv_func_vasprintf" = xyes; then :
56777  cat >>confdefs.h <<_ACEOF
56778#define HAVE_VASPRINTF 1
56779_ACEOF
56780
56781fi
56782done
56783
56784  case "$gl_cv_func_printf_sizes_c99" in
56785    *yes)
56786      case "$gl_cv_func_printf_long_double" in
56787        *yes)
56788          case "$gl_cv_func_printf_infinite" in
56789            *yes)
56790              case "$gl_cv_func_printf_infinite_long_double" in
56791                *yes)
56792                  case "$gl_cv_func_printf_directive_a" in
56793                    *yes)
56794                      case "$gl_cv_func_printf_directive_f" in
56795                        *yes)
56796                          case "$gl_cv_func_printf_directive_n" in
56797                            *yes)
56798                              case "$gl_cv_func_printf_directive_ls" in
56799                                *yes)
56800                                  case "$gl_cv_func_printf_positions" in
56801                                    *yes)
56802                                      case "$gl_cv_func_printf_flag_grouping" in
56803                                        *yes)
56804                                          case "$gl_cv_func_printf_flag_leftadjust" in
56805                                            *yes)
56806                                              case "$gl_cv_func_printf_flag_zero" in
56807                                                *yes)
56808                                                  case "$gl_cv_func_printf_precision" in
56809                                                    *yes)
56810                                                      case "$gl_cv_func_printf_enomem" in
56811                                                        *yes)
56812                                                          if test $ac_cv_func_vasprintf = yes; then
56813                                                            # vasprintf exists and is
56814                                                            # already POSIX compliant.
56815                                                            gl_cv_func_vasprintf_posix=yes
56816                                                          fi
56817                                                          ;;
56818                                                      esac
56819                                                      ;;
56820                                                  esac
56821                                                  ;;
56822                                              esac
56823                                              ;;
56824                                          esac
56825                                          ;;
56826                                      esac
56827                                      ;;
56828                                  esac
56829                                  ;;
56830                              esac
56831                              ;;
56832                          esac
56833                          ;;
56834                      esac
56835                      ;;
56836                  esac
56837                  ;;
56838              esac
56839              ;;
56840          esac
56841          ;;
56842      esac
56843      ;;
56844  esac
56845  if test $gl_cv_func_vasprintf_posix = no; then
56846
56847
56848
56849  case "$gl_cv_func_printf_infinite" in
56850    *yes)
56851      ;;
56852    *)
56853
56854$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
56855
56856      ;;
56857  esac
56858
56859
56860
56861
56862  case "$gl_cv_func_printf_long_double" in
56863    *yes)
56864      case "$gl_cv_func_printf_infinite_long_double" in
56865        *yes)
56866          ;;
56867        *)
56868
56869$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
56870
56871          ;;
56872      esac
56873      ;;
56874  esac
56875
56876
56877
56878  case "$gl_cv_func_printf_directive_a" in
56879    *yes)
56880      ;;
56881    *)
56882
56883$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
56884
56885      for ac_func in nl_langinfo
56886do :
56887  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
56888if test "x$ac_cv_func_nl_langinfo" = xyes; then :
56889  cat >>confdefs.h <<_ACEOF
56890#define HAVE_NL_LANGINFO 1
56891_ACEOF
56892
56893fi
56894done
56895
56896      ;;
56897  esac
56898
56899
56900
56901  case "$gl_cv_func_printf_directive_f" in
56902    *yes)
56903      ;;
56904    *)
56905
56906$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
56907
56908      ;;
56909  esac
56910
56911
56912
56913  case "$gl_cv_func_printf_directive_ls" in
56914    *yes)
56915      ;;
56916    *)
56917
56918$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
56919
56920      ;;
56921  esac
56922
56923
56924
56925  case "$gl_cv_func_printf_flag_grouping" in
56926    *yes)
56927      ;;
56928    *)
56929
56930$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
56931
56932      ;;
56933  esac
56934
56935
56936
56937  case "$gl_cv_func_printf_flag_leftadjust" in
56938    *yes)
56939      ;;
56940    *)
56941
56942$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
56943
56944      ;;
56945  esac
56946
56947
56948
56949  case "$gl_cv_func_printf_flag_zero" in
56950    *yes)
56951      ;;
56952    *)
56953
56954$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
56955
56956      ;;
56957  esac
56958
56959
56960
56961  case "$gl_cv_func_printf_precision" in
56962    *yes)
56963      ;;
56964    *)
56965
56966$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
56967
56968
56969$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
56970
56971
56972$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
56973
56974      ;;
56975  esac
56976
56977
56978
56979  case "$gl_cv_func_printf_enomem" in
56980    *yes)
56981      ;;
56982    *)
56983
56984$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
56985
56986
56987$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
56988
56989
56990$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
56991
56992      ;;
56993  esac
56994
56995
56996
56997
56998
56999
57000
57001
57002
57003
57004
57005  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
57006
57007
57008
57009
57010
57011
57012
57013
57014
57015  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
57016
57017
57018
57019
57020
57021
57022
57023
57024
57025  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
57026
57027
57028
57029
57030
57031
57032
57033
57034
57035  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
57036
57037  if test $ac_cv_func_vasnprintf = yes; then
57038
57039$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
57040
57041  fi
57042
57043
57044
57045
57046
57047
57048
57049
57050
57051  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
57052if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
57053
57054else
57055
57056$as_echo "#define ptrdiff_t long" >>confdefs.h
57057
57058
57059fi
57060
57061
57062
57063
57064
57065
57066
57067
57068
57069
57070
57071
57072
57073
57074
57075
57076  gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
57077
57078
57079
57080
57081
57082
57083
57084
57085
57086  gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
57087
57088
57089  if test $ac_cv_func_vasprintf = yes; then
57090    REPLACE_VASPRINTF=1
57091  else
57092    HAVE_VASPRINTF=0
57093  fi
57094
57095
57096
57097
57098
57099
57100
57101
57102  fi
57103
57104
57105# Check whether --with-packager was given.
57106if test "${with_packager+set}" = set; then :
57107  withval=$with_packager;       case $withval in
57108        yes|no) ;;
57109        *)
57110cat >>confdefs.h <<_ACEOF
57111#define PACKAGE_PACKAGER "$withval"
57112_ACEOF
57113 ;;
57114      esac
57115
57116fi
57117
57118
57119
57120# Check whether --with-packager-version was given.
57121if test "${with_packager_version+set}" = set; then :
57122  withval=$with_packager_version;       case $withval in
57123        yes|no) ;;
57124        *)
57125cat >>confdefs.h <<_ACEOF
57126#define PACKAGE_PACKAGER_VERSION "$withval"
57127_ACEOF
57128 ;;
57129      esac
57130
57131fi
57132
57133
57134
57135# Check whether --with-packager-bug-reports was given.
57136if test "${with_packager_bug_reports+set}" = set; then :
57137  withval=$with_packager_bug_reports;       case $withval in
57138        yes|no) ;;
57139        *)
57140cat >>confdefs.h <<_ACEOF
57141#define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
57142_ACEOF
57143 ;;
57144      esac
57145
57146fi
57147
57148
57149  if test "X$with_packager" = "X" && \
57150     test "X$with_packager_version$with_packager_bug_reports" != "X"
57151  then
57152    as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
57153  fi
57154
57155
57156
57157
57158
57159
57160
57161
57162
57163
57164
57165
57166
57167
57168
57169
57170  gl_cv_func_vfprintf_posix=no
57171  case "$gl_cv_func_printf_sizes_c99" in
57172    *yes)
57173      case "$gl_cv_func_printf_long_double" in
57174        *yes)
57175          case "$gl_cv_func_printf_infinite" in
57176            *yes)
57177              case "$gl_cv_func_printf_infinite_long_double" in
57178                *yes)
57179                  case "$gl_cv_func_printf_directive_a" in
57180                    *yes)
57181                      case "$gl_cv_func_printf_directive_f" in
57182                        *yes)
57183                          case "$gl_cv_func_printf_directive_n" in
57184                            *yes)
57185                              case "$gl_cv_func_printf_directive_ls" in
57186                                *yes)
57187                                  case "$gl_cv_func_printf_positions" in
57188                                    *yes)
57189                                      case "$gl_cv_func_printf_flag_grouping" in
57190                                        *yes)
57191                                          case "$gl_cv_func_printf_flag_leftadjust" in
57192                                            *yes)
57193                                              case "$gl_cv_func_printf_flag_zero" in
57194                                                *yes)
57195                                                  case "$gl_cv_func_printf_precision" in
57196                                                    *yes)
57197                                                      case "$gl_cv_func_printf_enomem" in
57198                                                        *yes)
57199                                                          # vfprintf exists and is
57200                                                          # already POSIX compliant.
57201                                                          gl_cv_func_vfprintf_posix=yes
57202                                                          ;;
57203                                                      esac
57204                                                      ;;
57205                                                  esac
57206                                                  ;;
57207                                              esac
57208                                              ;;
57209                                          esac
57210                                          ;;
57211                                      esac
57212                                      ;;
57213                                  esac
57214                                  ;;
57215                              esac
57216                              ;;
57217                          esac
57218                          ;;
57219                      esac
57220                      ;;
57221                  esac
57222                  ;;
57223              esac
57224              ;;
57225          esac
57226          ;;
57227      esac
57228      ;;
57229  esac
57230  if test $gl_cv_func_vfprintf_posix = no; then
57231
57232
57233
57234  case "$gl_cv_func_printf_infinite" in
57235    *yes)
57236      ;;
57237    *)
57238
57239$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
57240
57241      ;;
57242  esac
57243
57244
57245
57246
57247  case "$gl_cv_func_printf_long_double" in
57248    *yes)
57249      case "$gl_cv_func_printf_infinite_long_double" in
57250        *yes)
57251          ;;
57252        *)
57253
57254$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
57255
57256          ;;
57257      esac
57258      ;;
57259  esac
57260
57261
57262
57263  case "$gl_cv_func_printf_directive_a" in
57264    *yes)
57265      ;;
57266    *)
57267
57268$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
57269
57270      for ac_func in nl_langinfo
57271do :
57272  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
57273if test "x$ac_cv_func_nl_langinfo" = xyes; then :
57274  cat >>confdefs.h <<_ACEOF
57275#define HAVE_NL_LANGINFO 1
57276_ACEOF
57277
57278fi
57279done
57280
57281      ;;
57282  esac
57283
57284
57285
57286  case "$gl_cv_func_printf_directive_f" in
57287    *yes)
57288      ;;
57289    *)
57290
57291$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
57292
57293      ;;
57294  esac
57295
57296
57297
57298  case "$gl_cv_func_printf_directive_ls" in
57299    *yes)
57300      ;;
57301    *)
57302
57303$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
57304
57305      ;;
57306  esac
57307
57308
57309
57310  case "$gl_cv_func_printf_flag_grouping" in
57311    *yes)
57312      ;;
57313    *)
57314
57315$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
57316
57317      ;;
57318  esac
57319
57320
57321
57322  case "$gl_cv_func_printf_flag_leftadjust" in
57323    *yes)
57324      ;;
57325    *)
57326
57327$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
57328
57329      ;;
57330  esac
57331
57332
57333
57334  case "$gl_cv_func_printf_flag_zero" in
57335    *yes)
57336      ;;
57337    *)
57338
57339$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
57340
57341      ;;
57342  esac
57343
57344
57345
57346  case "$gl_cv_func_printf_precision" in
57347    *yes)
57348      ;;
57349    *)
57350
57351$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
57352
57353
57354$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
57355
57356
57357$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
57358
57359      ;;
57360  esac
57361
57362
57363
57364  case "$gl_cv_func_printf_enomem" in
57365    *yes)
57366      ;;
57367    *)
57368
57369$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
57370
57371
57372$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
57373
57374
57375$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
57376
57377      ;;
57378  esac
57379
57380
57381
57382
57383
57384
57385
57386
57387
57388
57389
57390  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
57391
57392
57393
57394
57395
57396
57397
57398
57399
57400  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
57401
57402
57403
57404
57405
57406
57407
57408
57409
57410  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
57411
57412
57413
57414
57415
57416
57417
57418
57419
57420  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
57421
57422  if test $ac_cv_func_vasnprintf = yes; then
57423
57424$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
57425
57426  fi
57427
57428
57429
57430
57431
57432
57433
57434
57435
57436  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
57437if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
57438
57439else
57440
57441$as_echo "#define ptrdiff_t long" >>confdefs.h
57442
57443
57444fi
57445
57446
57447
57448
57449
57450
57451
57452
57453
57454
57455
57456
57457
57458
57459
57460
57461
57462  gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
57463
57464  REPLACE_VFPRINTF=1
57465
57466$as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
57467
57468  :
57469
57470  fi
57471
57472
57473
57474
57475
57476
57477          GNULIB_VFPRINTF_POSIX=1
57478
57479
57480
57481
57482
57483$as_echo "#define GNULIB_TEST_VFPRINTF_POSIX 1" >>confdefs.h
57484
57485
57486
57487
57488
57489  if test $gl_cv_func_vfprintf_posix = no; then
57490
57491
57492
57493
57494
57495
57496
57497
57498
57499
57500  gl_LIBOBJS="$gl_LIBOBJS vprintf.$ac_objext"
57501
57502  REPLACE_VPRINTF=1
57503
57504$as_echo "#define REPLACE_VPRINTF_POSIX 1" >>confdefs.h
57505
57506  :
57507
57508  fi
57509
57510
57511
57512
57513
57514
57515          GNULIB_VPRINTF_POSIX=1
57516
57517
57518
57519
57520
57521$as_echo "#define GNULIB_TEST_VPRINTF_POSIX 1" >>confdefs.h
57522
57523
57524
57525
57526
57527  gl_cv_func_vsnprintf_usable=no
57528  for ac_func in vsnprintf
57529do :
57530  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
57531if test "x$ac_cv_func_vsnprintf" = xyes; then :
57532  cat >>confdefs.h <<_ACEOF
57533#define HAVE_VSNPRINTF 1
57534_ACEOF
57535
57536fi
57537done
57538
57539  if test $ac_cv_func_vsnprintf = yes; then
57540
57541
57542
57543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
57544$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
57545if ${gl_cv_func_snprintf_size1+:} false; then :
57546  $as_echo_n "(cached) " >&6
57547else
57548
57549      if test "$cross_compiling" = yes; then :
57550  case "$host_os" in
57551                            # Guess yes on Android.
57552           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
57553                            # Guess yes on native Windows.
57554           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
57555           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
57556         esac
57557
57558else
57559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57560/* end confdefs.h.  */
57561
57562#include <stdio.h>
57563#if HAVE_SNPRINTF
57564# define my_snprintf snprintf
57565#else
57566# include <stdarg.h>
57567static int my_snprintf (char *buf, int size, const char *format, ...)
57568{
57569  va_list args;
57570  int ret;
57571  va_start (args, format);
57572  ret = vsnprintf (buf, size, format, args);
57573  va_end (args);
57574  return ret;
57575}
57576#endif
57577int main()
57578{
57579  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
57580  my_snprintf (buf, 1, "%d", 12345);
57581  return buf[1] != 'E';
57582}
57583_ACEOF
57584if ac_fn_c_try_run "$LINENO"; then :
57585  gl_cv_func_snprintf_size1=yes
57586else
57587  gl_cv_func_snprintf_size1=no
57588fi
57589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57590  conftest.$ac_objext conftest.beam conftest.$ac_ext
57591fi
57592
57593
57594fi
57595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
57596$as_echo "$gl_cv_func_snprintf_size1" >&6; }
57597
57598    case "$gl_cv_func_snprintf_size1" in
57599      *yes)
57600
57601        case "$gl_cv_func_snprintf_retval_c99" in
57602          *yes)
57603
57604
57605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
57606$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
57607if ${gl_cv_func_printf_positions+:} false; then :
57608  $as_echo_n "(cached) " >&6
57609else
57610
57611      if test "$cross_compiling" = yes; then :
57612
57613         case "$host_os" in
57614           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
57615                            gl_cv_func_printf_positions="guessing no";;
57616           beos*)           gl_cv_func_printf_positions="guessing no";;
57617                            # Guess yes on Android.
57618           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
57619                            # Guess no on native Windows.
57620           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
57621           *)               gl_cv_func_printf_positions="guessing yes";;
57622         esac
57623
57624else
57625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57626/* end confdefs.h.  */
57627
57628#include <stdio.h>
57629#include <string.h>
57630/* The string "%2$d %1$d", with dollar characters protected from the shell's
57631   dollar expansion (possibly an autoconf bug).  */
57632static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
57633static char buf[100];
57634int main ()
57635{
57636  sprintf (buf, format, 33, 55);
57637  return (strcmp (buf, "55 33") != 0);
57638}
57639_ACEOF
57640if ac_fn_c_try_run "$LINENO"; then :
57641  gl_cv_func_printf_positions=yes
57642else
57643  gl_cv_func_printf_positions=no
57644fi
57645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57646  conftest.$ac_objext conftest.beam conftest.$ac_ext
57647fi
57648
57649
57650fi
57651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
57652$as_echo "$gl_cv_func_printf_positions" >&6; }
57653
57654            case "$gl_cv_func_printf_positions" in
57655              *yes)
57656                gl_cv_func_vsnprintf_usable=yes
57657                ;;
57658            esac
57659            ;;
57660        esac
57661        ;;
57662    esac
57663  fi
57664  if test $gl_cv_func_vsnprintf_usable = no; then
57665
57666
57667
57668
57669
57670
57671
57672
57673
57674
57675  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
57676
57677  if test $ac_cv_func_vsnprintf = yes; then
57678    REPLACE_VSNPRINTF=1
57679  else
57680
57681    if test $ac_cv_have_decl_vsnprintf = yes; then
57682                        REPLACE_VSNPRINTF=1
57683    fi
57684  fi
57685  :
57686
57687  fi
57688
57689  if test $ac_cv_have_decl_vsnprintf = no; then
57690    HAVE_DECL_VSNPRINTF=0
57691  fi
57692
57693
57694
57695
57696
57697
57698          GNULIB_VSNPRINTF=1
57699
57700
57701
57702
57703
57704$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
57705
57706
57707
57708
57709
57710
57711
57712
57713
57714
57715
57716
57717
57718
57719
57720
57721
57722
57723  gl_cv_func_vsnprintf_posix=no
57724  for ac_func in vsnprintf
57725do :
57726  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
57727if test "x$ac_cv_func_vsnprintf" = xyes; then :
57728  cat >>confdefs.h <<_ACEOF
57729#define HAVE_VSNPRINTF 1
57730_ACEOF
57731
57732fi
57733done
57734
57735  if test $ac_cv_func_vsnprintf = yes; then
57736
57737
57738
57739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
57740$as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; }
57741if ${gl_cv_func_snprintf_truncation_c99+:} false; then :
57742  $as_echo_n "(cached) " >&6
57743else
57744
57745      if test "$cross_compiling" = yes; then :
57746
57747         case "$host_os" in
57748                                 # Guess yes on glibc systems.
57749           *-gnu* | gnu*)        gl_cv_func_snprintf_truncation_c99="guessing yes";;
57750                                 # Guess yes on musl systems.
57751           *-musl*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
57752                                 # Guess yes on FreeBSD >= 5.
57753           freebsd[1-4].*)       gl_cv_func_snprintf_truncation_c99="guessing no";;
57754           freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
57755                                 # Guess yes on Mac OS X >= 10.3.
57756           darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
57757           darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
57758                                 # Guess yes on OpenBSD >= 3.9.
57759           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
57760                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
57761           openbsd*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
57762                                 # Guess yes on Solaris >= 2.6.
57763           solaris2.[0-5] | solaris2.[0-5].*)
57764                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
57765           solaris*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
57766                                 # Guess yes on AIX >= 4.
57767           aix[1-3]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
57768           aix*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
57769                                 # Guess yes on HP-UX >= 11.
57770           hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
57771           hpux*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
57772                                 # Guess yes on IRIX >= 6.5.
57773           irix6.5)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
57774                                 # Guess yes on OSF/1 >= 5.
57775           osf[3-4]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
57776           osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
57777                                 # Guess yes on NetBSD >= 3.
57778           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
57779                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
57780           netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
57781                                 # Guess yes on BeOS.
57782           beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
57783                                 # Guess yes on Android.
57784           linux*-android*)      gl_cv_func_snprintf_truncation_c99="guessing yes";;
57785                                 # Guess no on native Windows.
57786           mingw*)               gl_cv_func_snprintf_truncation_c99="guessing no";;
57787                                 # If we don't know, obey --enable-cross-guesses.
57788           *)                    gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
57789         esac
57790
57791else
57792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57793/* end confdefs.h.  */
57794
57795#include <stdio.h>
57796#include <string.h>
57797#if HAVE_SNPRINTF
57798# define my_snprintf snprintf
57799#else
57800# include <stdarg.h>
57801static int my_snprintf (char *buf, int size, const char *format, ...)
57802{
57803  va_list args;
57804  int ret;
57805  va_start (args, format);
57806  ret = vsnprintf (buf, size, format, args);
57807  va_end (args);
57808  return ret;
57809}
57810#endif
57811static char buf[100];
57812int main ()
57813{
57814  strcpy (buf, "ABCDEF");
57815  my_snprintf (buf, 3, "%d %d", 4567, 89);
57816  if (memcmp (buf, "45\0DEF", 6) != 0)
57817    return 1;
57818  return 0;
57819}
57820_ACEOF
57821if ac_fn_c_try_run "$LINENO"; then :
57822  gl_cv_func_snprintf_truncation_c99=yes
57823else
57824  gl_cv_func_snprintf_truncation_c99=no
57825fi
57826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57827  conftest.$ac_objext conftest.beam conftest.$ac_ext
57828fi
57829
57830
57831fi
57832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
57833$as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; }
57834
57835
57836
57837
57838
57839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf fully supports the 'n' directive" >&5
57840$as_echo_n "checking whether snprintf fully supports the 'n' directive... " >&6; }
57841if ${gl_cv_func_snprintf_directive_n+:} false; then :
57842  $as_echo_n "(cached) " >&6
57843else
57844
57845      if test "$cross_compiling" = yes; then :
57846
57847         case "$host_os" in
57848                                 # Guess no on glibc when _FORTIFY_SOURCE >= 2.
57849           *-gnu* | gnu*)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57850/* end confdefs.h.  */
57851#if _FORTIFY_SOURCE >= 2
57852                                         error fail
57853                                        #endif
57854
57855_ACEOF
57856if ac_fn_c_try_compile "$LINENO"; then :
57857  gl_cv_func_snprintf_directive_n="guessing yes"
57858else
57859  gl_cv_func_snprintf_directive_n="guessing no"
57860fi
57861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57862                                 ;;
57863                                 # Guess yes on musl systems.
57864           *-musl*)              gl_cv_func_snprintf_directive_n="guessing yes";;
57865                                 # Guess yes on FreeBSD >= 5.
57866           freebsd[1-4].*)       gl_cv_func_snprintf_directive_n="guessing no";;
57867           freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
57868                                 # Guess yes on Mac OS X >= 10.3.
57869           darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
57870           darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
57871                                 # Guess yes on Solaris >= 2.6.
57872           solaris2.[0-5] | solaris2.[0-5].*)
57873                                 gl_cv_func_snprintf_directive_n="guessing no";;
57874           solaris*)             gl_cv_func_snprintf_directive_n="guessing yes";;
57875                                 # Guess yes on AIX >= 4.
57876           aix[1-3]*)            gl_cv_func_snprintf_directive_n="guessing no";;
57877           aix*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
57878                                 # Guess yes on IRIX >= 6.5.
57879           irix6.5)              gl_cv_func_snprintf_directive_n="guessing yes";;
57880                                 # Guess yes on OSF/1 >= 5.
57881           osf[3-4]*)            gl_cv_func_snprintf_directive_n="guessing no";;
57882           osf*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
57883                                 # Guess yes on NetBSD >= 3.
57884           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
57885                                 gl_cv_func_snprintf_directive_n="guessing no";;
57886           netbsd*)              gl_cv_func_snprintf_directive_n="guessing yes";;
57887                                 # Guess yes on BeOS.
57888           beos*)                gl_cv_func_snprintf_directive_n="guessing yes";;
57889                                 # Guess no on Android.
57890           linux*-android*)      gl_cv_func_snprintf_directive_n="guessing no";;
57891                                 # Guess no on native Windows.
57892           mingw*)               gl_cv_func_snprintf_directive_n="guessing no";;
57893                                 # If we don't know, obey --enable-cross-guesses.
57894           *)                    gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";;
57895         esac
57896
57897else
57898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57899/* end confdefs.h.  */
57900
57901#include <stdio.h>
57902#include <string.h>
57903#if HAVE_SNPRINTF
57904# define my_snprintf snprintf
57905#else
57906# include <stdarg.h>
57907static int my_snprintf (char *buf, int size, const char *format, ...)
57908{
57909  va_list args;
57910  int ret;
57911  va_start (args, format);
57912  ret = vsnprintf (buf, size, format, args);
57913  va_end (args);
57914  return ret;
57915}
57916#endif
57917static char fmtstring[10];
57918static char buf[100];
57919int main ()
57920{
57921  int count = -1;
57922  /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
57923     support %n in format strings in read-only memory but not in writable
57924     memory.  */
57925  strcpy (fmtstring, "%d %n");
57926  my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
57927  if (count != 6)
57928    return 1;
57929  return 0;
57930}
57931_ACEOF
57932if ac_fn_c_try_run "$LINENO"; then :
57933  gl_cv_func_snprintf_directive_n=yes
57934else
57935  gl_cv_func_snprintf_directive_n=no
57936fi
57937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57938  conftest.$ac_objext conftest.beam conftest.$ac_ext
57939fi
57940
57941
57942fi
57943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_directive_n" >&5
57944$as_echo "$gl_cv_func_snprintf_directive_n" >&6; }
57945
57946
57947
57948
57949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
57950$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
57951if ${gl_cv_func_snprintf_size1+:} false; then :
57952  $as_echo_n "(cached) " >&6
57953else
57954
57955      if test "$cross_compiling" = yes; then :
57956  case "$host_os" in
57957                            # Guess yes on Android.
57958           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
57959                            # Guess yes on native Windows.
57960           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
57961           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
57962         esac
57963
57964else
57965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57966/* end confdefs.h.  */
57967
57968#include <stdio.h>
57969#if HAVE_SNPRINTF
57970# define my_snprintf snprintf
57971#else
57972# include <stdarg.h>
57973static int my_snprintf (char *buf, int size, const char *format, ...)
57974{
57975  va_list args;
57976  int ret;
57977  va_start (args, format);
57978  ret = vsnprintf (buf, size, format, args);
57979  va_end (args);
57980  return ret;
57981}
57982#endif
57983int main()
57984{
57985  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
57986  my_snprintf (buf, 1, "%d", 12345);
57987  return buf[1] != 'E';
57988}
57989_ACEOF
57990if ac_fn_c_try_run "$LINENO"; then :
57991  gl_cv_func_snprintf_size1=yes
57992else
57993  gl_cv_func_snprintf_size1=no
57994fi
57995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57996  conftest.$ac_objext conftest.beam conftest.$ac_ext
57997fi
57998
57999
58000fi
58001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
58002$as_echo "$gl_cv_func_snprintf_size1" >&6; }
58003
58004
58005
58006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf respects a zero size as in C99" >&5
58007$as_echo_n "checking whether vsnprintf respects a zero size as in C99... " >&6; }
58008if ${gl_cv_func_vsnprintf_zerosize_c99+:} false; then :
58009  $as_echo_n "(cached) " >&6
58010else
58011
58012      if test "$cross_compiling" = yes; then :
58013
58014         case "$host_os" in
58015                                 # Guess yes on glibc systems.
58016           *-gnu* | gnu*)        gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58017                                 # Guess yes on musl systems.
58018           *-musl*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58019                                 # Guess yes on FreeBSD >= 5.
58020           freebsd[1-4].*)       gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
58021           freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58022                                 # Guess yes on Mac OS X >= 10.3.
58023           darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
58024           darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58025                                 # Guess yes on Cygwin.
58026           cygwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58027                                 # Guess yes on Solaris >= 2.6.
58028           solaris2.[0-5] | solaris2.[0-5].*)
58029                                 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
58030           solaris*)             gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58031                                 # Guess yes on AIX >= 4.
58032           aix[1-3]*)            gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
58033           aix*)                 gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58034                                 # Guess yes on IRIX >= 6.5.
58035           irix6.5)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58036                                 # Guess yes on NetBSD >= 3.
58037           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
58038                                 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
58039           netbsd*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58040                                 # Guess yes on BeOS.
58041           beos*)                gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58042                                 # Guess yes on Android.
58043           linux*-android*)      gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58044                                 # Guess yes on native Windows.
58045           mingw* | pw*)         gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
58046                                 # If we don't know, obey --enable-cross-guesses.
58047           *)                    gl_cv_func_vsnprintf_zerosize_c99="$gl_cross_guess_normal";;
58048         esac
58049
58050else
58051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58052/* end confdefs.h.  */
58053
58054#include <stdarg.h>
58055#include <stdio.h>
58056static int my_snprintf (char *buf, int size, const char *format, ...)
58057{
58058  va_list args;
58059  int ret;
58060  va_start (args, format);
58061  ret = vsnprintf (buf, size, format, args);
58062  va_end (args);
58063  return ret;
58064}
58065int main()
58066{
58067  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
58068  my_snprintf (buf, 0, "%d", 12345);
58069  return buf[0] != 'D';
58070}
58071_ACEOF
58072if ac_fn_c_try_run "$LINENO"; then :
58073  gl_cv_func_vsnprintf_zerosize_c99=yes
58074else
58075  gl_cv_func_vsnprintf_zerosize_c99=no
58076fi
58077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58078  conftest.$ac_objext conftest.beam conftest.$ac_ext
58079fi
58080
58081
58082fi
58083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_vsnprintf_zerosize_c99" >&5
58084$as_echo "$gl_cv_func_vsnprintf_zerosize_c99" >&6; }
58085
58086    case "$gl_cv_func_printf_sizes_c99" in
58087      *yes)
58088        case "$gl_cv_func_printf_long_double" in
58089          *yes)
58090            case "$gl_cv_func_printf_infinite" in
58091              *yes)
58092                case "$gl_cv_func_printf_infinite_long_double" in
58093                  *yes)
58094                    case "$gl_cv_func_printf_directive_a" in
58095                      *yes)
58096                        case "$gl_cv_func_printf_directive_f" in
58097                          *yes)
58098                            case "$gl_cv_func_printf_directive_n" in
58099                              *yes)
58100                                case "$gl_cv_func_printf_directive_ls" in
58101                                  *yes)
58102                                    case "$gl_cv_func_printf_positions" in
58103                                      *yes)
58104                                        case "$gl_cv_func_printf_flag_grouping" in
58105                                          *yes)
58106                                            case "$gl_cv_func_printf_flag_leftadjust" in
58107                                              *yes)
58108                                                case "$gl_cv_func_printf_flag_zero" in
58109                                                  *yes)
58110                                                    case "$gl_cv_func_printf_precision" in
58111                                                      *yes)
58112                                                        case "$gl_cv_func_printf_enomem" in
58113                                                          *yes)
58114                                                            case "$gl_cv_func_snprintf_truncation_c99" in
58115                                                              *yes)
58116                                                                case "$gl_cv_func_snprintf_retval_c99" in
58117                                                                  *yes)
58118                                                                    case "$gl_cv_func_snprintf_directive_n" in
58119                                                                      *yes)
58120                                                                        case "$gl_cv_func_snprintf_size1" in
58121                                                                          *yes)
58122                                                                            case "$gl_cv_func_vsnprintf_zerosize_c99" in
58123                                                                              *yes)
58124                                                                                # vsnprintf exists and is
58125                                                                                # already POSIX compliant.
58126                                                                                gl_cv_func_vsnprintf_posix=yes
58127                                                                                ;;
58128                                                                            esac
58129                                                                            ;;
58130                                                                        esac
58131                                                                        ;;
58132                                                                    esac
58133                                                                    ;;
58134                                                                esac
58135                                                                ;;
58136                                                            esac
58137                                                            ;;
58138                                                        esac
58139                                                        ;;
58140                                                    esac
58141                                                    ;;
58142                                                esac
58143                                                ;;
58144                                            esac
58145                                            ;;
58146                                        esac
58147                                        ;;
58148                                    esac
58149                                    ;;
58150                                esac
58151                                ;;
58152                            esac
58153                            ;;
58154                        esac
58155                        ;;
58156                    esac
58157                    ;;
58158                esac
58159                ;;
58160            esac
58161            ;;
58162        esac
58163        ;;
58164    esac
58165  fi
58166  if test $gl_cv_func_vsnprintf_posix = no; then
58167
58168
58169
58170  case "$gl_cv_func_printf_infinite" in
58171    *yes)
58172      ;;
58173    *)
58174
58175$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
58176
58177      ;;
58178  esac
58179
58180
58181
58182
58183  case "$gl_cv_func_printf_long_double" in
58184    *yes)
58185      case "$gl_cv_func_printf_infinite_long_double" in
58186        *yes)
58187          ;;
58188        *)
58189
58190$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
58191
58192          ;;
58193      esac
58194      ;;
58195  esac
58196
58197
58198
58199  case "$gl_cv_func_printf_directive_a" in
58200    *yes)
58201      ;;
58202    *)
58203
58204$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
58205
58206      for ac_func in nl_langinfo
58207do :
58208  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
58209if test "x$ac_cv_func_nl_langinfo" = xyes; then :
58210  cat >>confdefs.h <<_ACEOF
58211#define HAVE_NL_LANGINFO 1
58212_ACEOF
58213
58214fi
58215done
58216
58217      ;;
58218  esac
58219
58220
58221
58222  case "$gl_cv_func_printf_directive_f" in
58223    *yes)
58224      ;;
58225    *)
58226
58227$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
58228
58229      ;;
58230  esac
58231
58232
58233
58234  case "$gl_cv_func_printf_directive_ls" in
58235    *yes)
58236      ;;
58237    *)
58238
58239$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
58240
58241      ;;
58242  esac
58243
58244
58245
58246  case "$gl_cv_func_printf_flag_grouping" in
58247    *yes)
58248      ;;
58249    *)
58250
58251$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
58252
58253      ;;
58254  esac
58255
58256
58257
58258  case "$gl_cv_func_printf_flag_leftadjust" in
58259    *yes)
58260      ;;
58261    *)
58262
58263$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
58264
58265      ;;
58266  esac
58267
58268
58269
58270  case "$gl_cv_func_printf_flag_zero" in
58271    *yes)
58272      ;;
58273    *)
58274
58275$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
58276
58277      ;;
58278  esac
58279
58280
58281
58282  case "$gl_cv_func_printf_precision" in
58283    *yes)
58284      ;;
58285    *)
58286
58287$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
58288
58289
58290$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
58291
58292
58293$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
58294
58295      ;;
58296  esac
58297
58298
58299
58300  case "$gl_cv_func_printf_enomem" in
58301    *yes)
58302      ;;
58303    *)
58304
58305$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
58306
58307
58308$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
58309
58310
58311$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
58312
58313      ;;
58314  esac
58315
58316
58317
58318
58319
58320
58321
58322
58323
58324
58325
58326  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
58327
58328
58329
58330
58331
58332
58333
58334
58335
58336  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
58337
58338
58339
58340
58341
58342
58343
58344
58345
58346  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
58347
58348
58349
58350
58351
58352
58353
58354
58355
58356  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
58357
58358  if test $ac_cv_func_vasnprintf = yes; then
58359
58360$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
58361
58362  fi
58363
58364
58365
58366
58367
58368
58369
58370
58371
58372  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
58373if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
58374
58375else
58376
58377$as_echo "#define ptrdiff_t long" >>confdefs.h
58378
58379
58380fi
58381
58382
58383
58384
58385
58386
58387
58388
58389
58390
58391
58392
58393
58394
58395
58396
58397
58398  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
58399
58400  if test $ac_cv_func_vsnprintf = yes; then
58401    REPLACE_VSNPRINTF=1
58402  else
58403
58404    if test $ac_cv_have_decl_vsnprintf = yes; then
58405                        REPLACE_VSNPRINTF=1
58406    fi
58407  fi
58408  :
58409
58410  fi
58411
58412
58413
58414
58415
58416
58417
58418
58419
58420
58421
58422
58423
58424
58425
58426
58427  gl_cv_func_vsprintf_posix=no
58428  case "$gl_cv_func_printf_sizes_c99" in
58429    *yes)
58430      case "$gl_cv_func_printf_long_double" in
58431        *yes)
58432          case "$gl_cv_func_printf_infinite" in
58433            *yes)
58434              case "$gl_cv_func_printf_infinite_long_double" in
58435                *yes)
58436                  case "$gl_cv_func_printf_directive_a" in
58437                    *yes)
58438                      case "$gl_cv_func_printf_directive_f" in
58439                        *yes)
58440                          case "$gl_cv_func_printf_directive_n" in
58441                            *yes)
58442                              case "$gl_cv_func_printf_directive_ls" in
58443                                *yes)
58444                                  case "$gl_cv_func_printf_positions" in
58445                                    *yes)
58446                                      case "$gl_cv_func_printf_flag_grouping" in
58447                                        *yes)
58448                                          case "$gl_cv_func_printf_flag_leftadjust" in
58449                                            *yes)
58450                                              case "$gl_cv_func_printf_flag_zero" in
58451                                                *yes)
58452                                                  case "$gl_cv_func_printf_precision" in
58453                                                    *yes)
58454                                                      case "$gl_cv_func_printf_enomem" in
58455                                                        *yes)
58456                                                          # vsprintf exists and is
58457                                                          # already POSIX compliant.
58458                                                          gl_cv_func_vsprintf_posix=yes
58459                                                          ;;
58460                                                      esac
58461                                                      ;;
58462                                                  esac
58463                                                  ;;
58464                                              esac
58465                                              ;;
58466                                          esac
58467                                          ;;
58468                                      esac
58469                                      ;;
58470                                  esac
58471                                  ;;
58472                              esac
58473                              ;;
58474                          esac
58475                          ;;
58476                      esac
58477                      ;;
58478                  esac
58479                  ;;
58480              esac
58481              ;;
58482          esac
58483          ;;
58484      esac
58485      ;;
58486  esac
58487  if test $gl_cv_func_vsprintf_posix = no; then
58488
58489
58490
58491  case "$gl_cv_func_printf_infinite" in
58492    *yes)
58493      ;;
58494    *)
58495
58496$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
58497
58498      ;;
58499  esac
58500
58501
58502
58503
58504  case "$gl_cv_func_printf_long_double" in
58505    *yes)
58506      case "$gl_cv_func_printf_infinite_long_double" in
58507        *yes)
58508          ;;
58509        *)
58510
58511$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
58512
58513          ;;
58514      esac
58515      ;;
58516  esac
58517
58518
58519
58520  case "$gl_cv_func_printf_directive_a" in
58521    *yes)
58522      ;;
58523    *)
58524
58525$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
58526
58527      for ac_func in nl_langinfo
58528do :
58529  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
58530if test "x$ac_cv_func_nl_langinfo" = xyes; then :
58531  cat >>confdefs.h <<_ACEOF
58532#define HAVE_NL_LANGINFO 1
58533_ACEOF
58534
58535fi
58536done
58537
58538      ;;
58539  esac
58540
58541
58542
58543  case "$gl_cv_func_printf_directive_f" in
58544    *yes)
58545      ;;
58546    *)
58547
58548$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
58549
58550      ;;
58551  esac
58552
58553
58554
58555  case "$gl_cv_func_printf_directive_ls" in
58556    *yes)
58557      ;;
58558    *)
58559
58560$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
58561
58562      ;;
58563  esac
58564
58565
58566
58567  case "$gl_cv_func_printf_flag_grouping" in
58568    *yes)
58569      ;;
58570    *)
58571
58572$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
58573
58574      ;;
58575  esac
58576
58577
58578
58579  case "$gl_cv_func_printf_flag_leftadjust" in
58580    *yes)
58581      ;;
58582    *)
58583
58584$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
58585
58586      ;;
58587  esac
58588
58589
58590
58591  case "$gl_cv_func_printf_flag_zero" in
58592    *yes)
58593      ;;
58594    *)
58595
58596$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
58597
58598      ;;
58599  esac
58600
58601
58602
58603  case "$gl_cv_func_printf_precision" in
58604    *yes)
58605      ;;
58606    *)
58607
58608$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
58609
58610
58611$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
58612
58613
58614$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
58615
58616      ;;
58617  esac
58618
58619
58620
58621  case "$gl_cv_func_printf_enomem" in
58622    *yes)
58623      ;;
58624    *)
58625
58626$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
58627
58628
58629$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
58630
58631
58632$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
58633
58634      ;;
58635  esac
58636
58637
58638
58639
58640
58641
58642
58643
58644
58645
58646
58647  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
58648
58649
58650
58651
58652
58653
58654
58655
58656
58657  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
58658
58659
58660
58661
58662
58663
58664
58665
58666
58667  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
58668
58669
58670
58671
58672
58673
58674
58675
58676
58677  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
58678
58679  if test $ac_cv_func_vasnprintf = yes; then
58680
58681$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
58682
58683  fi
58684
58685
58686
58687
58688
58689
58690
58691
58692
58693  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
58694if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
58695
58696else
58697
58698$as_echo "#define ptrdiff_t long" >>confdefs.h
58699
58700
58701fi
58702
58703
58704
58705
58706
58707
58708
58709
58710
58711
58712
58713
58714
58715
58716
58717
58718
58719  gl_LIBOBJS="$gl_LIBOBJS vsprintf.$ac_objext"
58720
58721  REPLACE_VSPRINTF=1
58722  :
58723
58724  fi
58725
58726
58727
58728
58729
58730
58731          GNULIB_VSPRINTF_POSIX=1
58732
58733
58734
58735
58736
58737$as_echo "#define GNULIB_TEST_VSPRINTF_POSIX 1" >>confdefs.h
58738
58739
58740
58741
58742
58743
58744
58745
58746
58747
58748
58749
58750
58751
58752
58753     if test $gl_cv_have_include_next = yes; then
58754       gl_cv_next_wchar_h='<'wchar.h'>'
58755     else
58756       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
58757$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
58758if ${gl_cv_next_wchar_h+:} false; then :
58759  $as_echo_n "(cached) " >&6
58760else
58761
58762             if test $ac_cv_header_wchar_h = yes; then
58763
58764
58765
58766
58767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58768/* end confdefs.h.  */
58769#include <wchar.h>
58770_ACEOF
58771                case "$host_os" in
58772    aix*) gl_absname_cpp="$ac_cpp -C" ;;
58773    *)    gl_absname_cpp="$ac_cpp" ;;
58774  esac
58775
58776  case "$host_os" in
58777    mingw*)
58778                                          gl_dirsep_regex='[/\\]'
58779      ;;
58780    *)
58781      gl_dirsep_regex='\/'
58782      ;;
58783  esac
58784      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
58785  gl_header_literal_regex=`echo 'wchar.h' \
58786                           | sed -e "$gl_make_literal_regex_sed"`
58787  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
58788      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
58789      s|^/[^/]|//&|
58790      p
58791      q
58792    }'
58793
58794        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
58795  sed -n "$gl_absolute_header_sed"`
58796
58797           gl_header=$gl_cv_absolute_wchar_h
58798           gl_cv_next_wchar_h='"'$gl_header'"'
58799          else
58800               gl_cv_next_wchar_h='<'wchar.h'>'
58801             fi
58802
58803
58804fi
58805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
58806$as_echo "$gl_cv_next_wchar_h" >&6; }
58807     fi
58808     NEXT_WCHAR_H=$gl_cv_next_wchar_h
58809
58810     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
58811       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
58812       gl_next_as_first_directive='<'wchar.h'>'
58813     else
58814       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
58815       gl_next_as_first_directive=$gl_cv_next_wchar_h
58816     fi
58817     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
58818
58819
58820
58821
58822  if test $ac_cv_header_wchar_h = yes; then
58823    HAVE_WCHAR_H=1
58824  else
58825    HAVE_WCHAR_H=0
58826  fi
58827
58828
58829
58830
58831
58832  if test $gt_cv_c_wint_t = yes; then
58833    HAVE_WINT_T=1
58834  else
58835    HAVE_WINT_T=0
58836  fi
58837
58838
58839
58840
58841
58842
58843
58844
58845
58846
58847
58848
58849
58850
58851
58852
58853
58854
58855
58856
58857
58858        if case "$host_os" in
58859       mingw*) true ;;
58860       *) test $ac_cv_func_mbsinit = yes ;;
58861     esac \
58862    && test $ac_cv_func_mbrtowc = yes; then
58863
58864
58865
58866
58867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
58868$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
58869if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
58870  $as_echo_n "(cached) " >&6
58871else
58872
58873                  case "$host_os" in
58874                     # Guess no on AIX and OSF/1.
58875        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
58876                     # Guess yes otherwise.
58877        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
58878      esac
58879      if test $LOCALE_JA != none; then
58880        if test "$cross_compiling" = yes; then :
58881  :
58882else
58883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58884/* end confdefs.h.  */
58885
58886#include <locale.h>
58887#include <string.h>
58888/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
58889   <wchar.h>.
58890   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
58891   included before <wchar.h>.  */
58892#include <stddef.h>
58893#include <stdio.h>
58894#include <time.h>
58895#include <wchar.h>
58896int main ()
58897{
58898  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
58899    {
58900      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
58901      mbstate_t state;
58902      wchar_t wc;
58903
58904      memset (&state, '\0', sizeof (mbstate_t));
58905      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
58906        if (mbsinit (&state))
58907          return 2;
58908    }
58909  return 0;
58910}
58911_ACEOF
58912if ac_fn_c_try_run "$LINENO"; then :
58913  gl_cv_func_mbrtowc_incomplete_state=yes
58914else
58915  gl_cv_func_mbrtowc_incomplete_state=no
58916fi
58917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58918  conftest.$ac_objext conftest.beam conftest.$ac_ext
58919fi
58920
58921      else
58922        if test $LOCALE_FR_UTF8 != none; then
58923          if test "$cross_compiling" = yes; then :
58924  :
58925else
58926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58927/* end confdefs.h.  */
58928
58929#include <locale.h>
58930#include <string.h>
58931/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
58932   <wchar.h>.
58933   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
58934   included before <wchar.h>.  */
58935#include <stddef.h>
58936#include <stdio.h>
58937#include <time.h>
58938#include <wchar.h>
58939int main ()
58940{
58941  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
58942    {
58943      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
58944      mbstate_t state;
58945      wchar_t wc;
58946
58947      memset (&state, '\0', sizeof (mbstate_t));
58948      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
58949        if (mbsinit (&state))
58950          return 2;
58951    }
58952  return 0;
58953}
58954_ACEOF
58955if ac_fn_c_try_run "$LINENO"; then :
58956  gl_cv_func_mbrtowc_incomplete_state=yes
58957else
58958  gl_cv_func_mbrtowc_incomplete_state=no
58959fi
58960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58961  conftest.$ac_objext conftest.beam conftest.$ac_ext
58962fi
58963
58964        fi
58965      fi
58966
58967fi
58968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
58969$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
58970
58971
58972
58973
58974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
58975$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
58976if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
58977  $as_echo_n "(cached) " >&6
58978else
58979
58980                  case "$host_os" in
58981                    # Guess no on Solaris 8.
58982        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
58983                    # Guess yes otherwise.
58984        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
58985      esac
58986      if test $LOCALE_ZH_CN != none; then
58987        if test "$cross_compiling" = yes; then :
58988  :
58989else
58990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58991/* end confdefs.h.  */
58992
58993#include <locale.h>
58994#include <stdlib.h>
58995#include <string.h>
58996/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
58997   <wchar.h>.
58998   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
58999   included before <wchar.h>.  */
59000#include <stddef.h>
59001#include <stdio.h>
59002#include <time.h>
59003#include <wchar.h>
59004int main ()
59005{
59006  /* This fails on Solaris 8:
59007     mbrtowc returns 2, and sets wc to 0x00F0.
59008     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
59009  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
59010    {
59011      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
59012      mbstate_t state;
59013      wchar_t wc;
59014
59015      memset (&state, '\0', sizeof (mbstate_t));
59016      if (mbrtowc (&wc, input + 3, 6, &state) != 4
59017          && mbtowc (&wc, input + 3, 6) == 4)
59018        return 2;
59019    }
59020  return 0;
59021}
59022_ACEOF
59023if ac_fn_c_try_run "$LINENO"; then :
59024  gl_cv_func_mbrtowc_sanitycheck=yes
59025else
59026  gl_cv_func_mbrtowc_sanitycheck=no
59027fi
59028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59029  conftest.$ac_objext conftest.beam conftest.$ac_ext
59030fi
59031
59032      fi
59033
59034fi
59035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
59036$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
59037
59038    REPLACE_MBSTATE_T=0
59039    case "$gl_cv_func_mbrtowc_incomplete_state" in
59040      *yes) ;;
59041      *) REPLACE_MBSTATE_T=1 ;;
59042    esac
59043    case "$gl_cv_func_mbrtowc_sanitycheck" in
59044      *yes) ;;
59045      *) REPLACE_MBSTATE_T=1 ;;
59046    esac
59047  else
59048    REPLACE_MBSTATE_T=1
59049  fi
59050
59051
59052
59053  if test $ac_cv_func_wcrtomb = no; then
59054    HAVE_WCRTOMB=0
59055    ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
59056/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
59057   <wchar.h>.
59058   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
59059   included before <wchar.h>.  */
59060#include <stddef.h>
59061#include <stdio.h>
59062#include <time.h>
59063#include <wchar.h>
59064
59065"
59066if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
59067  ac_have_decl=1
59068else
59069  ac_have_decl=0
59070fi
59071
59072cat >>confdefs.h <<_ACEOF
59073#define HAVE_DECL_WCRTOMB $ac_have_decl
59074_ACEOF
59075
59076    if test $ac_cv_have_decl_wcrtomb = yes; then
59077                        REPLACE_WCRTOMB=1
59078    fi
59079  else
59080                        if test $REPLACE_WCRTOMB = 0; then
59081
59082
59083
59084
59085
59086             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5
59087$as_echo_n "checking whether wcrtomb works in the C locale... " >&6; }
59088if ${gl_cv_func_wcrtomb_works+:} false; then :
59089  $as_echo_n "(cached) " >&6
59090else
59091  if test "$cross_compiling" = yes; then :
59092  case "$host_os" in
59093                               # Guess no on Android.
59094              linux*-android*) gl_cv_func_wcrtomb_works="guessing no";;
59095                               # Guess yes otherwise.
59096              *)               gl_cv_func_wcrtomb_works="guessing yes";;
59097            esac
59098
59099else
59100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59101/* end confdefs.h.  */
59102
59103#include <string.h>
59104#include <stdlib.h>
59105/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
59106   <wchar.h>.
59107   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
59108   included before <wchar.h>.  */
59109#include <stddef.h>
59110#include <stdio.h>
59111#include <wchar.h>
59112int main ()
59113{
59114  mbstate_t state;
59115  char out[64];
59116  int count;
59117  memset (&state, 0, sizeof (state));
59118  out[0] = 'x';
59119  count = wcrtomb (out, L'a', &state);
59120  return !(count == 1 && out[0] == 'a');
59121}
59122_ACEOF
59123if ac_fn_c_try_run "$LINENO"; then :
59124  gl_cv_func_wcrtomb_works=yes
59125else
59126  gl_cv_func_wcrtomb_works=no
59127fi
59128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59129  conftest.$ac_objext conftest.beam conftest.$ac_ext
59130fi
59131
59132
59133fi
59134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5
59135$as_echo "$gl_cv_func_wcrtomb_works" >&6; }
59136      case "$gl_cv_func_wcrtomb_works" in
59137        *yes) ;;
59138        *)
59139$as_echo "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h
59140
59141           REPLACE_WCRTOMB=1 ;;
59142      esac
59143    fi
59144    if test $REPLACE_WCRTOMB = 0; then
59145      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
59146$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
59147if ${gl_cv_func_wcrtomb_retval+:} false; then :
59148  $as_echo_n "(cached) " >&6
59149else
59150
59151                              case "$host_os" in
59152            # Guess no on AIX 4, OSF/1, Solaris, native Windows.
59153            aix4* | osf* | solaris* | mingw*) gl_cv_func_wcrtomb_retval="guessing no" ;;
59154            # Guess yes otherwise.
59155            *)                                gl_cv_func_wcrtomb_retval="guessing yes" ;;
59156          esac
59157          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
59158            if test "$cross_compiling" = yes; then :
59159  :
59160else
59161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59162/* end confdefs.h.  */
59163
59164#include <locale.h>
59165#include <string.h>
59166/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
59167   <wchar.h>.
59168   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
59169   included before <wchar.h>.  */
59170#include <stddef.h>
59171#include <stdio.h>
59172#include <time.h>
59173#include <wchar.h>
59174#include <stdlib.h>
59175int main ()
59176{
59177  int result = 0;
59178  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
59179    {
59180      if (wcrtomb (NULL, 0, NULL) != 1)
59181        result |= 1;
59182    }
59183  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
59184    {
59185      if (wcrtomb (NULL, 0, NULL) != 1)
59186        result |= 2;
59187      {
59188        wchar_t wc = (wchar_t) 0xBADFACE;
59189        if (mbtowc (&wc, "\303\274", 2) == 2)
59190          if (wcrtomb (NULL, wc, NULL) != 1)
59191            result |= 2;
59192      }
59193    }
59194  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
59195    {
59196      if (wcrtomb (NULL, 0, NULL) != 1)
59197        result |= 4;
59198    }
59199  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
59200    {
59201      if (wcrtomb (NULL, 0, NULL) != 1)
59202        result |= 8;
59203    }
59204  return result;
59205}
59206_ACEOF
59207if ac_fn_c_try_run "$LINENO"; then :
59208  gl_cv_func_wcrtomb_retval=yes
59209else
59210  gl_cv_func_wcrtomb_retval=no
59211fi
59212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59213  conftest.$ac_objext conftest.beam conftest.$ac_ext
59214fi
59215
59216          fi
59217
59218fi
59219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
59220$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
59221      case "$gl_cv_func_wcrtomb_retval" in
59222        *yes) ;;
59223        *)
59224$as_echo "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h
59225
59226           REPLACE_WCRTOMB=1 ;;
59227      esac
59228    fi
59229  fi
59230
59231  if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
59232
59233
59234
59235
59236
59237
59238
59239
59240  gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
59241
59242
59243  :
59244
59245  fi
59246
59247
59248
59249
59250
59251          GNULIB_WCRTOMB=1
59252
59253
59254
59255
59256
59257$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
59258
59259
59260
59261
59262
59263
59264
59265
59266  if test $ac_cv_func_iswcntrl = yes; then
59267    HAVE_ISWCNTRL=1
59268  else
59269    HAVE_ISWCNTRL=0
59270  fi
59271
59272
59273
59274  if test $gt_cv_c_wint_t = yes; then
59275    HAVE_WINT_T=1
59276  else
59277    HAVE_WINT_T=0
59278  fi
59279
59280
59281
59282
59283
59284
59285
59286
59287
59288
59289
59290
59291
59292     if test $gl_cv_have_include_next = yes; then
59293       gl_cv_next_wctype_h='<'wctype.h'>'
59294     else
59295       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
59296$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
59297if ${gl_cv_next_wctype_h+:} false; then :
59298  $as_echo_n "(cached) " >&6
59299else
59300
59301             if test $ac_cv_header_wctype_h = yes; then
59302
59303
59304
59305
59306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59307/* end confdefs.h.  */
59308#include <wctype.h>
59309_ACEOF
59310                case "$host_os" in
59311    aix*) gl_absname_cpp="$ac_cpp -C" ;;
59312    *)    gl_absname_cpp="$ac_cpp" ;;
59313  esac
59314
59315  case "$host_os" in
59316    mingw*)
59317                                          gl_dirsep_regex='[/\\]'
59318      ;;
59319    *)
59320      gl_dirsep_regex='\/'
59321      ;;
59322  esac
59323      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
59324  gl_header_literal_regex=`echo 'wctype.h' \
59325                           | sed -e "$gl_make_literal_regex_sed"`
59326  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
59327      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
59328      s|^/[^/]|//&|
59329      p
59330      q
59331    }'
59332
59333        gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
59334  sed -n "$gl_absolute_header_sed"`
59335
59336           gl_header=$gl_cv_absolute_wctype_h
59337           gl_cv_next_wctype_h='"'$gl_header'"'
59338          else
59339               gl_cv_next_wctype_h='<'wctype.h'>'
59340             fi
59341
59342
59343fi
59344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
59345$as_echo "$gl_cv_next_wctype_h" >&6; }
59346     fi
59347     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
59348
59349     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
59350       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
59351       gl_next_as_first_directive='<'wctype.h'>'
59352     else
59353       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
59354       gl_next_as_first_directive=$gl_cv_next_wctype_h
59355     fi
59356     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
59357
59358
59359
59360
59361  if test $ac_cv_header_wctype_h = yes; then
59362    if test $ac_cv_func_iswcntrl = yes; then
59363                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
59364$as_echo_n "checking whether iswcntrl works... " >&6; }
59365if ${gl_cv_func_iswcntrl_works+:} false; then :
59366  $as_echo_n "(cached) " >&6
59367else
59368
59369          if test "$cross_compiling" = yes; then :
59370               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59371/* end confdefs.h.  */
59372#include <stdlib.h>
59373                          #if __GNU_LIBRARY__ == 1
59374                          Linux libc5 i18n is broken.
59375                          #endif
59376int
59377main ()
59378{
59379
59380  ;
59381  return 0;
59382}
59383_ACEOF
59384if ac_fn_c_try_compile "$LINENO"; then :
59385  gl_cv_func_iswcntrl_works="guessing yes"
59386else
59387  gl_cv_func_iswcntrl_works="guessing no"
59388fi
59389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59390
59391else
59392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59393/* end confdefs.h.  */
59394
59395               /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
59396                  included before <wchar.h>.
59397                  BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
59398                  must be included before <wchar.h>.  */
59399               #include <stddef.h>
59400               #include <stdio.h>
59401               #include <time.h>
59402               #include <wchar.h>
59403               #include <wctype.h>
59404               int main () { return iswprint ('x') == 0; }
59405
59406_ACEOF
59407if ac_fn_c_try_run "$LINENO"; then :
59408  gl_cv_func_iswcntrl_works=yes
59409else
59410  gl_cv_func_iswcntrl_works=no
59411fi
59412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59413  conftest.$ac_objext conftest.beam conftest.$ac_ext
59414fi
59415
59416
59417fi
59418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
59419$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
59420    fi
59421    HAVE_WCTYPE_H=1
59422  else
59423    HAVE_WCTYPE_H=0
59424  fi
59425
59426
59427  if test $GNULIB_OVERRIDES_WINT_T = 1; then
59428    REPLACE_ISWCNTRL=1
59429  else
59430    case "$gl_cv_func_iswcntrl_works" in
59431      *yes) REPLACE_ISWCNTRL=0 ;;
59432      *)    REPLACE_ISWCNTRL=1 ;;
59433    esac
59434  fi
59435
59436
59437  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
59438        :
59439  fi
59440
59441  if test $REPLACE_ISWCNTRL = 1; then
59442    REPLACE_TOWLOWER=1
59443  else
59444    for ac_func in towlower
59445do :
59446  ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
59447if test "x$ac_cv_func_towlower" = xyes; then :
59448  cat >>confdefs.h <<_ACEOF
59449#define HAVE_TOWLOWER 1
59450_ACEOF
59451
59452fi
59453done
59454
59455    if test $ac_cv_func_towlower = yes; then
59456      REPLACE_TOWLOWER=0
59457    else
59458      ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
59459             included before <wchar.h>.
59460             BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
59461             must be included before <wchar.h>.  */
59462          #include <stddef.h>
59463          #include <stdio.h>
59464          #include <time.h>
59465          #include <wchar.h>
59466          #if HAVE_WCTYPE_H
59467          # include <wctype.h>
59468          #endif
59469
59470"
59471if test "x$ac_cv_have_decl_towlower" = xyes; then :
59472  ac_have_decl=1
59473else
59474  ac_have_decl=0
59475fi
59476
59477cat >>confdefs.h <<_ACEOF
59478#define HAVE_DECL_TOWLOWER $ac_have_decl
59479_ACEOF
59480
59481      if test $ac_cv_have_decl_towlower = yes; then
59482                                REPLACE_TOWLOWER=1
59483      else
59484        REPLACE_TOWLOWER=0
59485      fi
59486    fi
59487  fi
59488
59489
59490  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
59491        :
59492  fi
59493
59494          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
59495$as_echo_n "checking for wctype_t... " >&6; }
59496if ${gl_cv_type_wctype_t+:} false; then :
59497  $as_echo_n "(cached) " >&6
59498else
59499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59500/* end confdefs.h.  */
59501/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
59502               included before <wchar.h>.
59503               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
59504               must be included before <wchar.h>.  */
59505            #include <stddef.h>
59506            #include <stdio.h>
59507            #include <time.h>
59508            #include <wchar.h>
59509            #if HAVE_WCTYPE_H
59510            # include <wctype.h>
59511            #endif
59512            wctype_t a;
59513
59514int
59515main ()
59516{
59517
59518  ;
59519  return 0;
59520}
59521_ACEOF
59522if ac_fn_c_try_compile "$LINENO"; then :
59523  gl_cv_type_wctype_t=yes
59524else
59525  gl_cv_type_wctype_t=no
59526fi
59527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59528
59529fi
59530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
59531$as_echo "$gl_cv_type_wctype_t" >&6; }
59532  if test $gl_cv_type_wctype_t = no; then
59533    HAVE_WCTYPE_T=0
59534  fi
59535
59536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
59537$as_echo_n "checking for wctrans_t... " >&6; }
59538if ${gl_cv_type_wctrans_t+:} false; then :
59539  $as_echo_n "(cached) " >&6
59540else
59541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59542/* end confdefs.h.  */
59543/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
59544               included before <wchar.h>.
59545               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
59546               must be included before <wchar.h>.  */
59547            #include <stddef.h>
59548            #include <stdio.h>
59549            #include <time.h>
59550            #include <wchar.h>
59551            #include <wctype.h>
59552            wctrans_t a;
59553
59554int
59555main ()
59556{
59557
59558  ;
59559  return 0;
59560}
59561_ACEOF
59562if ac_fn_c_try_compile "$LINENO"; then :
59563  gl_cv_type_wctrans_t=yes
59564else
59565  gl_cv_type_wctrans_t=no
59566fi
59567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59568
59569fi
59570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
59571$as_echo "$gl_cv_type_wctrans_t" >&6; }
59572  if test $gl_cv_type_wctrans_t = no; then
59573    HAVE_WCTRANS_T=0
59574  fi
59575
59576
59577
59578
59579
59580
59581
59582
59583
59584
59585
59586
59587
59588
59589
59590
59591  ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
59592/* AIX 3.2.5 declares wcwidth in <string.h>. */
59593#include <string.h>
59594/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
59595   <wchar.h>.
59596   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
59597   before <wchar.h>.  */
59598#include <stddef.h>
59599#include <stdio.h>
59600#include <time.h>
59601#include <wchar.h>
59602
59603"
59604if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
59605  ac_have_decl=1
59606else
59607  ac_have_decl=0
59608fi
59609
59610cat >>confdefs.h <<_ACEOF
59611#define HAVE_DECL_WCWIDTH $ac_have_decl
59612_ACEOF
59613
59614  if test $ac_cv_have_decl_wcwidth != yes; then
59615    HAVE_DECL_WCWIDTH=0
59616  fi
59617
59618  if test $ac_cv_func_wcwidth != yes; then
59619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro" >&5
59620$as_echo_n "checking whether wcwidth is a macro... " >&6; }
59621if ${gl_cv_func_wcwidth_macro+:} false; then :
59622  $as_echo_n "(cached) " >&6
59623else
59624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59625/* end confdefs.h.  */
59626
59627#include <wchar.h>
59628#ifdef wcwidth
59629 wchar_header_defines_wcwidth
59630#endif
59631_ACEOF
59632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59633  $EGREP "wchar_header_defines_wcwidth" >/dev/null 2>&1; then :
59634  gl_cv_func_wcwidth_macro=yes
59635else
59636  gl_cv_func_wcwidth_macro=no
59637fi
59638rm -f conftest*
59639
59640
59641fi
59642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5
59643$as_echo "$gl_cv_func_wcwidth_macro" >&6; }
59644  fi
59645
59646  if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; then
59647    HAVE_WCWIDTH=1
59648                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
59649$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
59650if ${gl_cv_func_wcwidth_works+:} false; then :
59651  $as_echo_n "(cached) " >&6
59652else
59653
59654        if test "$cross_compiling" = yes; then :
59655
59656           case "$host_os" in
59657                            # Guess yes on glibc systems.
59658             *-gnu* | gnu*) gl_cv_func_wcwidth_works="guessing yes";;
59659                            # Guess yes on musl systems.
59660             *-musl*)       gl_cv_func_wcwidth_works="guessing yes";;
59661                            # Guess yes on AIX 7 systems.
59662             aix[7-9]*)     gl_cv_func_wcwidth_works="guessing yes";;
59663             *)             gl_cv_func_wcwidth_works="$gl_cross_guess_normal";;
59664           esac
59665
59666else
59667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59668/* end confdefs.h.  */
59669
59670#include <locale.h>
59671/* AIX 3.2.5 declares wcwidth in <string.h>. */
59672#include <string.h>
59673/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
59674   <wchar.h>.
59675   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
59676   before <wchar.h>.  */
59677#include <stddef.h>
59678#include <stdio.h>
59679#include <time.h>
59680#include <wchar.h>
59681#if !HAVE_DECL_WCWIDTH
59682extern
59683# ifdef __cplusplus
59684"C"
59685# endif
59686int wcwidth (int);
59687#endif
59688int main ()
59689{
59690  int result = 0;
59691  if (setlocale (LC_ALL, "en_US.UTF-8") != NULL)
59692    {
59693      if (wcwidth (0x0301) > 0)
59694        result |= 1;
59695      if (wcwidth (0x05B0) > 0)
59696        result |= 2;
59697      if (wcwidth (0x200B) > 0)
59698        result |= 4;
59699      if (wcwidth (0xFF1A) == 0)
59700        result |= 8;
59701      if (wcwidth (0x2202) > 1)
59702        result |= 16;
59703    }
59704  return result;
59705}
59706_ACEOF
59707if ac_fn_c_try_run "$LINENO"; then :
59708  gl_cv_func_wcwidth_works=yes
59709else
59710  gl_cv_func_wcwidth_works=no
59711fi
59712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59713  conftest.$ac_objext conftest.beam conftest.$ac_ext
59714fi
59715
59716
59717fi
59718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
59719$as_echo "$gl_cv_func_wcwidth_works" >&6; }
59720    case "$gl_cv_func_wcwidth_works" in
59721      *yes) ;;
59722      *no) REPLACE_WCWIDTH=1 ;;
59723    esac
59724  else
59725    HAVE_WCWIDTH=0
59726  fi
59727
59728  if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
59729
59730
59731
59732
59733
59734
59735
59736
59737  gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
59738
59739
59740
59741  :
59742
59743  fi
59744
59745
59746
59747
59748
59749          GNULIB_WCWIDTH=1
59750
59751
59752
59753
59754
59755$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
59756
59757
59758
59759
59760  case "$host_os" in
59761    mingw*)
59762
59763
59764
59765
59766
59767
59768
59769
59770  gl_LIBOBJS="$gl_LIBOBJS windows-mutex.$ac_objext"
59771
59772      ;;
59773  esac
59774
59775  case "$host_os" in
59776    mingw*)
59777
59778
59779
59780
59781
59782
59783
59784
59785  gl_LIBOBJS="$gl_LIBOBJS windows-once.$ac_objext"
59786
59787      ;;
59788  esac
59789
59790  case "$host_os" in
59791    mingw*)
59792
59793
59794
59795
59796
59797
59798
59799
59800  gl_LIBOBJS="$gl_LIBOBJS windows-recmutex.$ac_objext"
59801
59802      ;;
59803  esac
59804
59805  case "$host_os" in
59806    mingw*)
59807
59808
59809
59810
59811
59812
59813
59814
59815  gl_LIBOBJS="$gl_LIBOBJS windows-rwlock.$ac_objext"
59816
59817      ;;
59818  esac
59819
59820  case "$host_os" in
59821    mingw*)
59822
59823
59824
59825
59826
59827
59828
59829
59830  gl_LIBOBJS="$gl_LIBOBJS windows-spin.$ac_objext"
59831
59832      ;;
59833  esac
59834
59835
59836
59837
59838    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
59839      REPLACE_WRITE=1
59840    fi
59841
59842
59843
59844
59845  if test $REPLACE_WRITE = 1; then
59846
59847
59848
59849
59850
59851
59852
59853
59854  gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
59855
59856    :
59857  fi
59858
59859
59860
59861
59862
59863          GNULIB_WRITE=1
59864
59865
59866
59867
59868
59869$as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
59870
59871
59872
59873  :
59874
59875
59876  for ac_header in stdint.h
59877do :
59878  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
59879if test "x$ac_cv_header_stdint_h" = xyes; then :
59880  cat >>confdefs.h <<_ACEOF
59881#define HAVE_STDINT_H 1
59882_ACEOF
59883
59884fi
59885
59886done
59887
59888
59889
59890
59891  :
59892
59893
59894  :
59895
59896
59897  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
59898
59899  # End of code from modules
59900
59901
59902
59903
59904
59905
59906
59907
59908
59909  gltests_libdeps=
59910  gltests_ltlibdeps=
59911
59912
59913
59914
59915
59916
59917
59918
59919
59920
59921  gl_source_base='tests'
59922  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
59923
59924  gl_module_indicator_condition=$gltests_WITNESS
59925
59926
59927
59928
59929
59930
59931
59932
59933
59934
59935
59936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
59937$as_echo_n "checking for inline... " >&6; }
59938if ${ac_cv_c_inline+:} false; then :
59939  $as_echo_n "(cached) " >&6
59940else
59941  ac_cv_c_inline=no
59942for ac_kw in inline __inline__ __inline; do
59943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59944/* end confdefs.h.  */
59945#ifndef __cplusplus
59946typedef int foo_t;
59947static $ac_kw foo_t static_foo () {return 0; }
59948$ac_kw foo_t foo () {return 0; }
59949#endif
59950
59951_ACEOF
59952if ac_fn_c_try_compile "$LINENO"; then :
59953  ac_cv_c_inline=$ac_kw
59954fi
59955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59956  test "$ac_cv_c_inline" != no && break
59957done
59958
59959fi
59960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
59961$as_echo "$ac_cv_c_inline" >&6; }
59962
59963case $ac_cv_c_inline in
59964  inline | yes) ;;
59965  *)
59966    case $ac_cv_c_inline in
59967      no) ac_val=;;
59968      *) ac_val=$ac_cv_c_inline;;
59969    esac
59970    cat >>confdefs.h <<_ACEOF
59971#ifndef __cplusplus
59972#define inline $ac_val
59973#endif
59974_ACEOF
59975    ;;
59976esac
59977
59978
59979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
59980$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
59981if ${ac_cv_c_bigendian+:} false; then :
59982  $as_echo_n "(cached) " >&6
59983else
59984  ac_cv_c_bigendian=unknown
59985    # See if we're dealing with a universal compiler.
59986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59987/* end confdefs.h.  */
59988#ifndef __APPLE_CC__
59989	       not a universal capable compiler
59990	     #endif
59991	     typedef int dummy;
59992
59993_ACEOF
59994if ac_fn_c_try_compile "$LINENO"; then :
59995
59996	# Check for potential -arch flags.  It is not universal unless
59997	# there are at least two -arch flags with different values.
59998	ac_arch=
59999	ac_prev=
60000	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
60001	 if test -n "$ac_prev"; then
60002	   case $ac_word in
60003	     i?86 | x86_64 | ppc | ppc64)
60004	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
60005		 ac_arch=$ac_word
60006	       else
60007		 ac_cv_c_bigendian=universal
60008		 break
60009	       fi
60010	       ;;
60011	   esac
60012	   ac_prev=
60013	 elif test "x$ac_word" = "x-arch"; then
60014	   ac_prev=arch
60015	 fi
60016       done
60017fi
60018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60019    if test $ac_cv_c_bigendian = unknown; then
60020      # See if sys/param.h defines the BYTE_ORDER macro.
60021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60022/* end confdefs.h.  */
60023#include <sys/types.h>
60024	     #include <sys/param.h>
60025
60026int
60027main ()
60028{
60029#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
60030		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
60031		     && LITTLE_ENDIAN)
60032	      bogus endian macros
60033	     #endif
60034
60035  ;
60036  return 0;
60037}
60038_ACEOF
60039if ac_fn_c_try_compile "$LINENO"; then :
60040  # It does; now see whether it defined to BIG_ENDIAN or not.
60041	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60042/* end confdefs.h.  */
60043#include <sys/types.h>
60044		#include <sys/param.h>
60045
60046int
60047main ()
60048{
60049#if BYTE_ORDER != BIG_ENDIAN
60050		 not big endian
60051		#endif
60052
60053  ;
60054  return 0;
60055}
60056_ACEOF
60057if ac_fn_c_try_compile "$LINENO"; then :
60058  ac_cv_c_bigendian=yes
60059else
60060  ac_cv_c_bigendian=no
60061fi
60062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60063fi
60064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60065    fi
60066    if test $ac_cv_c_bigendian = unknown; then
60067      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
60068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60069/* end confdefs.h.  */
60070#include <limits.h>
60071
60072int
60073main ()
60074{
60075#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
60076	      bogus endian macros
60077	     #endif
60078
60079  ;
60080  return 0;
60081}
60082_ACEOF
60083if ac_fn_c_try_compile "$LINENO"; then :
60084  # It does; now see whether it defined to _BIG_ENDIAN or not.
60085	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60086/* end confdefs.h.  */
60087#include <limits.h>
60088
60089int
60090main ()
60091{
60092#ifndef _BIG_ENDIAN
60093		 not big endian
60094		#endif
60095
60096  ;
60097  return 0;
60098}
60099_ACEOF
60100if ac_fn_c_try_compile "$LINENO"; then :
60101  ac_cv_c_bigendian=yes
60102else
60103  ac_cv_c_bigendian=no
60104fi
60105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60106fi
60107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60108    fi
60109    if test $ac_cv_c_bigendian = unknown; then
60110      # Compile a test program.
60111      if test "$cross_compiling" = yes; then :
60112  # Try to guess by grepping values from an object file.
60113	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60114/* end confdefs.h.  */
60115short int ascii_mm[] =
60116		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
60117		short int ascii_ii[] =
60118		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
60119		int use_ascii (int i) {
60120		  return ascii_mm[i] + ascii_ii[i];
60121		}
60122		short int ebcdic_ii[] =
60123		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
60124		short int ebcdic_mm[] =
60125		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
60126		int use_ebcdic (int i) {
60127		  return ebcdic_mm[i] + ebcdic_ii[i];
60128		}
60129		extern int foo;
60130
60131int
60132main ()
60133{
60134return use_ascii (foo) == use_ebcdic (foo);
60135  ;
60136  return 0;
60137}
60138_ACEOF
60139if ac_fn_c_try_compile "$LINENO"; then :
60140  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
60141	      ac_cv_c_bigendian=yes
60142	    fi
60143	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
60144	      if test "$ac_cv_c_bigendian" = unknown; then
60145		ac_cv_c_bigendian=no
60146	      else
60147		# finding both strings is unlikely to happen, but who knows?
60148		ac_cv_c_bigendian=unknown
60149	      fi
60150	    fi
60151fi
60152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60153else
60154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60155/* end confdefs.h.  */
60156$ac_includes_default
60157int
60158main ()
60159{
60160
60161	     /* Are we little or big endian?  From Harbison&Steele.  */
60162	     union
60163	     {
60164	       long int l;
60165	       char c[sizeof (long int)];
60166	     } u;
60167	     u.l = 1;
60168	     return u.c[sizeof (long int) - 1] == 1;
60169
60170  ;
60171  return 0;
60172}
60173_ACEOF
60174if ac_fn_c_try_run "$LINENO"; then :
60175  ac_cv_c_bigendian=no
60176else
60177  ac_cv_c_bigendian=yes
60178fi
60179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
60180  conftest.$ac_objext conftest.beam conftest.$ac_ext
60181fi
60182
60183    fi
60184fi
60185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
60186$as_echo "$ac_cv_c_bigendian" >&6; }
60187 case $ac_cv_c_bigendian in #(
60188   yes)
60189     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
60190;; #(
60191   no)
60192      ;; #(
60193   universal)
60194
60195$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
60196
60197     ;; #(
60198   *)
60199     as_fn_error $? "unknown endianness
60200 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
60201 esac
60202
60203
60204for ac_func in __setfpucw fork execl isinf isnan finite getpid feholdexcept fpsetmask popen round
60205do :
60206  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60207ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
60208if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
60209  cat >>confdefs.h <<_ACEOF
60210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60211_ACEOF
60212
60213fi
60214done
60215
60216
60217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
60218$as_echo_n "checking whether ln -s works... " >&6; }
60219LN_S=$as_ln_s
60220if test "$LN_S" = "ln -s"; then
60221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60222$as_echo "yes" >&6; }
60223else
60224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
60225$as_echo "no, using $LN_S" >&6; }
60226fi
60227
60228
60229# iconv is required
60230
60231
60232
60233
60234
60235          am_save_CPPFLAGS="$CPPFLAGS"
60236
60237  for element in $INCICONV; do
60238    haveit=
60239    for x in $CPPFLAGS; do
60240
60241  acl_save_prefix="$prefix"
60242  prefix="$acl_final_prefix"
60243  acl_save_exec_prefix="$exec_prefix"
60244  exec_prefix="$acl_final_exec_prefix"
60245  eval x=\"$x\"
60246  exec_prefix="$acl_save_exec_prefix"
60247  prefix="$acl_save_prefix"
60248
60249      if test "X$x" = "X$element"; then
60250        haveit=yes
60251        break
60252      fi
60253    done
60254    if test -z "$haveit"; then
60255      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
60256    fi
60257  done
60258
60259
60260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
60261$as_echo_n "checking for iconv... " >&6; }
60262if ${am_cv_func_iconv+:} false; then :
60263  $as_echo_n "(cached) " >&6
60264else
60265
60266    am_cv_func_iconv="no, consider installing GNU libiconv"
60267    am_cv_lib_iconv=no
60268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60269/* end confdefs.h.  */
60270
60271#include <stdlib.h>
60272#include <iconv.h>
60273
60274int
60275main ()
60276{
60277iconv_t cd = iconv_open("","");
60278           iconv(cd,NULL,NULL,NULL,NULL);
60279           iconv_close(cd);
60280  ;
60281  return 0;
60282}
60283_ACEOF
60284if ac_fn_c_try_link "$LINENO"; then :
60285  am_cv_func_iconv=yes
60286fi
60287rm -f core conftest.err conftest.$ac_objext \
60288    conftest$ac_exeext conftest.$ac_ext
60289    if test "$am_cv_func_iconv" != yes; then
60290      am_save_LIBS="$LIBS"
60291      LIBS="$LIBS $LIBICONV"
60292      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60293/* end confdefs.h.  */
60294
60295#include <stdlib.h>
60296#include <iconv.h>
60297
60298int
60299main ()
60300{
60301iconv_t cd = iconv_open("","");
60302             iconv(cd,NULL,NULL,NULL,NULL);
60303             iconv_close(cd);
60304  ;
60305  return 0;
60306}
60307_ACEOF
60308if ac_fn_c_try_link "$LINENO"; then :
60309  am_cv_lib_iconv=yes
60310        am_cv_func_iconv=yes
60311fi
60312rm -f core conftest.err conftest.$ac_objext \
60313    conftest$ac_exeext conftest.$ac_ext
60314      LIBS="$am_save_LIBS"
60315    fi
60316
60317fi
60318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
60319$as_echo "$am_cv_func_iconv" >&6; }
60320  if test "$am_cv_func_iconv" = yes; then
60321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
60322$as_echo_n "checking for working iconv... " >&6; }
60323if ${am_cv_func_iconv_works+:} false; then :
60324  $as_echo_n "(cached) " >&6
60325else
60326
60327                  am_save_LIBS="$LIBS"
60328      if test $am_cv_lib_iconv = yes; then
60329        LIBS="$LIBS $LIBICONV"
60330      fi
60331      am_cv_func_iconv_works=no
60332      for ac_iconv_const in '' 'const'; do
60333        if test "$cross_compiling" = yes; then :
60334  case "$host_os" in
60335             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
60336             *)            am_cv_func_iconv_works="guessing yes" ;;
60337           esac
60338else
60339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60340/* end confdefs.h.  */
60341
60342#include <iconv.h>
60343#include <string.h>
60344
60345#ifndef ICONV_CONST
60346# define ICONV_CONST $ac_iconv_const
60347#endif
60348
60349int
60350main ()
60351{
60352int result = 0;
60353  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
60354     returns.  */
60355  {
60356    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
60357    if (cd_utf8_to_88591 != (iconv_t)(-1))
60358      {
60359        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
60360        char buf[10];
60361        ICONV_CONST char *inptr = input;
60362        size_t inbytesleft = strlen (input);
60363        char *outptr = buf;
60364        size_t outbytesleft = sizeof (buf);
60365        size_t res = iconv (cd_utf8_to_88591,
60366                            &inptr, &inbytesleft,
60367                            &outptr, &outbytesleft);
60368        if (res == 0)
60369          result |= 1;
60370        iconv_close (cd_utf8_to_88591);
60371      }
60372  }
60373  /* Test against Solaris 10 bug: Failures are not distinguishable from
60374     successful returns.  */
60375  {
60376    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
60377    if (cd_ascii_to_88591 != (iconv_t)(-1))
60378      {
60379        static ICONV_CONST char input[] = "\263";
60380        char buf[10];
60381        ICONV_CONST char *inptr = input;
60382        size_t inbytesleft = strlen (input);
60383        char *outptr = buf;
60384        size_t outbytesleft = sizeof (buf);
60385        size_t res = iconv (cd_ascii_to_88591,
60386                            &inptr, &inbytesleft,
60387                            &outptr, &outbytesleft);
60388        if (res == 0)
60389          result |= 2;
60390        iconv_close (cd_ascii_to_88591);
60391      }
60392  }
60393  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
60394  {
60395    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
60396    if (cd_88591_to_utf8 != (iconv_t)(-1))
60397      {
60398        static ICONV_CONST char input[] = "\304";
60399        static char buf[2] = { (char)0xDE, (char)0xAD };
60400        ICONV_CONST char *inptr = input;
60401        size_t inbytesleft = 1;
60402        char *outptr = buf;
60403        size_t outbytesleft = 1;
60404        size_t res = iconv (cd_88591_to_utf8,
60405                            &inptr, &inbytesleft,
60406                            &outptr, &outbytesleft);
60407        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
60408          result |= 4;
60409        iconv_close (cd_88591_to_utf8);
60410      }
60411  }
60412#if 0 /* This bug could be worked around by the caller.  */
60413  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
60414  {
60415    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
60416    if (cd_88591_to_utf8 != (iconv_t)(-1))
60417      {
60418        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
60419        char buf[50];
60420        ICONV_CONST char *inptr = input;
60421        size_t inbytesleft = strlen (input);
60422        char *outptr = buf;
60423        size_t outbytesleft = sizeof (buf);
60424        size_t res = iconv (cd_88591_to_utf8,
60425                            &inptr, &inbytesleft,
60426                            &outptr, &outbytesleft);
60427        if ((int)res > 0)
60428          result |= 8;
60429        iconv_close (cd_88591_to_utf8);
60430      }
60431  }
60432#endif
60433  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
60434     provided.  */
60435  if (/* Try standardized names.  */
60436      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
60437      /* Try IRIX, OSF/1 names.  */
60438      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
60439      /* Try AIX names.  */
60440      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
60441      /* Try HP-UX names.  */
60442      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
60443    result |= 16;
60444  return result;
60445
60446  ;
60447  return 0;
60448}
60449_ACEOF
60450if ac_fn_c_try_run "$LINENO"; then :
60451  am_cv_func_iconv_works=yes
60452fi
60453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
60454  conftest.$ac_objext conftest.beam conftest.$ac_ext
60455fi
60456
60457        test "$am_cv_func_iconv_works" = no || break
60458      done
60459      LIBS="$am_save_LIBS"
60460
60461fi
60462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
60463$as_echo "$am_cv_func_iconv_works" >&6; }
60464    case "$am_cv_func_iconv_works" in
60465      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
60466      *)   am_func_iconv=yes ;;
60467    esac
60468  else
60469    am_func_iconv=no am_cv_lib_iconv=no
60470  fi
60471  if test "$am_func_iconv" = yes; then
60472
60473$as_echo "#define HAVE_ICONV 1" >>confdefs.h
60474
60475  fi
60476  if test "$am_cv_lib_iconv" = yes; then
60477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
60478$as_echo_n "checking how to link with libiconv... " >&6; }
60479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
60480$as_echo "$LIBICONV" >&6; }
60481  else
60482            CPPFLAGS="$am_save_CPPFLAGS"
60483    LIBICONV=
60484    LTLIBICONV=
60485  fi
60486
60487
60488
60489  if test "$am_cv_func_iconv" = yes; then
60490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
60491$as_echo_n "checking for iconv declaration... " >&6; }
60492    if ${am_cv_proto_iconv+:} false; then :
60493  $as_echo_n "(cached) " >&6
60494else
60495
60496      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60497/* end confdefs.h.  */
60498
60499#include <stdlib.h>
60500#include <iconv.h>
60501extern
60502#ifdef __cplusplus
60503"C"
60504#endif
60505#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
60506size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
60507#else
60508size_t iconv();
60509#endif
60510
60511int
60512main ()
60513{
60514
60515  ;
60516  return 0;
60517}
60518_ACEOF
60519if ac_fn_c_try_compile "$LINENO"; then :
60520  am_cv_proto_iconv_arg1=""
60521else
60522  am_cv_proto_iconv_arg1="const"
60523fi
60524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60525      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
60526fi
60527
60528    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
60529    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
60530         $am_cv_proto_iconv" >&5
60531$as_echo "
60532         $am_cv_proto_iconv" >&6; }
60533
60534cat >>confdefs.h <<_ACEOF
60535#define ICONV_CONST $am_cv_proto_iconv_arg1
60536_ACEOF
60537
60538
60539  fi
60540
60541if test "$am_cv_func_iconv" != "yes"; then
60542   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install iconv (see http://www.gnu.org/software/libiconv/) before building PSPP." >&5
60543$as_echo "$as_me: WARNING: You must install iconv (see http://www.gnu.org/software/libiconv/) before building PSPP." >&2;}
60544pspp_required_prereqs="$pspp_required_prereqs
60545	iconv (see http://www.gnu.org/software/libiconv/)"
60546fi
60547LIBS="$LIBICONV $LIBS"
60548
60549RELOCATABLE_LIBRARY_PATH='$(pkglibdir)'
60550RELOCATABLE_STRIP=:
60551
60552
60553  if test "$pspp_optional_prereqs" != ""; then
60554    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following optional prerequisites are not installed.
60555You may wish to install them to obtain additional functionality:$pspp_optional_prereqs" >&5
60556$as_echo "$as_me: WARNING: The following optional prerequisites are not installed.
60557You may wish to install them to obtain additional functionality:$pspp_optional_prereqs" >&2;}
60558fi
60559  if test "$pspp_required_prereqs" != ""; then
60560    as_fn_error $? "The following required prerequisites are not installed.
60561You must install them before PSPP can be built:$pspp_required_prereqs" "$LINENO" 5
60562fi
60563
60564
60565ac_config_files="$ac_config_files Makefile gl/Makefile po/Makefile tests/atlocal perl-module/lib/PSPP.pm"
60566
60567
60568ac_config_commands="$ac_config_commands doc/dummy"
60569
60570
60571# Check whether --enable-silent-rules was given.
60572if test "${enable_silent_rules+set}" = set; then :
60573  enableval=$enable_silent_rules;
60574fi
60575
60576case $enable_silent_rules in # (((
60577  yes) AM_DEFAULT_VERBOSITY=0;;
60578   no) AM_DEFAULT_VERBOSITY=1;;
60579    *) AM_DEFAULT_VERBOSITY=1;;
60580esac
60581am_make=${MAKE-make}
60582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
60583$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
60584if ${am_cv_make_support_nested_variables+:} false; then :
60585  $as_echo_n "(cached) " >&6
60586else
60587  if $as_echo 'TRUE=$(BAR$(V))
60588BAR0=false
60589BAR1=true
60590V=1
60591am__doit:
60592	@$(TRUE)
60593.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
60594  am_cv_make_support_nested_variables=yes
60595else
60596  am_cv_make_support_nested_variables=no
60597fi
60598fi
60599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
60600$as_echo "$am_cv_make_support_nested_variables" >&6; }
60601if test $am_cv_make_support_nested_variables = yes; then
60602    AM_V='$(V)'
60603  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
60604else
60605  AM_V=$AM_DEFAULT_VERBOSITY
60606  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
60607fi
60608AM_BACKSLASH='\'
60609
60610
60611cat >confcache <<\_ACEOF
60612# This file is a shell script that caches the results of configure
60613# tests run on this system so they can be shared between configure
60614# scripts and configure runs, see configure's option --config-cache.
60615# It is not useful on other systems.  If it contains results you don't
60616# want to keep, you may remove or edit it.
60617#
60618# config.status only pays attention to the cache file if you give it
60619# the --recheck option to rerun configure.
60620#
60621# `ac_cv_env_foo' variables (set or unset) will be overridden when
60622# loading this file, other *unset* `ac_cv_foo' will be assigned the
60623# following values.
60624
60625_ACEOF
60626
60627# The following way of writing the cache mishandles newlines in values,
60628# but we know of no workaround that is simple, portable, and efficient.
60629# So, we kill variables containing newlines.
60630# Ultrix sh set writes to stderr and can't be redirected directly,
60631# and sets the high bit in the cache file unless we assign to the vars.
60632(
60633  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
60634    eval ac_val=\$$ac_var
60635    case $ac_val in #(
60636    *${as_nl}*)
60637      case $ac_var in #(
60638      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
60639$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
60640      esac
60641      case $ac_var in #(
60642      _ | IFS | as_nl) ;; #(
60643      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
60644      *) { eval $ac_var=; unset $ac_var;} ;;
60645      esac ;;
60646    esac
60647  done
60648
60649  (set) 2>&1 |
60650    case $as_nl`(ac_space=' '; set) 2>&1` in #(
60651    *${as_nl}ac_space=\ *)
60652      # `set' does not quote correctly, so add quotes: double-quote
60653      # substitution turns \\\\ into \\, and sed turns \\ into \.
60654      sed -n \
60655	"s/'/'\\\\''/g;
60656	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
60657      ;; #(
60658    *)
60659      # `set' quotes correctly as required by POSIX, so do not add quotes.
60660      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
60661      ;;
60662    esac |
60663    sort
60664) |
60665  sed '
60666     /^ac_cv_env_/b end
60667     t clear
60668     :clear
60669     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
60670     t end
60671     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
60672     :end' >>confcache
60673if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
60674  if test -w "$cache_file"; then
60675    if test "x$cache_file" != "x/dev/null"; then
60676      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
60677$as_echo "$as_me: updating cache $cache_file" >&6;}
60678      if test ! -f "$cache_file" || test -h "$cache_file"; then
60679	cat confcache >"$cache_file"
60680      else
60681        case $cache_file in #(
60682        */* | ?:*)
60683	  mv -f confcache "$cache_file"$$ &&
60684	  mv -f "$cache_file"$$ "$cache_file" ;; #(
60685        *)
60686	  mv -f confcache "$cache_file" ;;
60687	esac
60688      fi
60689    fi
60690  else
60691    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
60692$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
60693  fi
60694fi
60695rm -f confcache
60696
60697test "x$prefix" = xNONE && prefix=$ac_default_prefix
60698# Let make expand exec_prefix.
60699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
60700
60701DEFS=-DHAVE_CONFIG_H
60702
60703ac_libobjs=
60704ac_ltlibobjs=
60705U=
60706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
60707  # 1. Remove the extension, and $U if already installed.
60708  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
60709  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
60710  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
60711  #    will be set to the directory where LIBOBJS objects are built.
60712  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
60713  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
60714done
60715LIBOBJS=$ac_libobjs
60716
60717LTLIBOBJS=$ac_ltlibobjs
60718
60719
60720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
60721$as_echo_n "checking that generated files are newer than configure... " >&6; }
60722   if test -n "$am_sleep_pid"; then
60723     # Hide warnings about reused PIDs.
60724     wait $am_sleep_pid 2>/dev/null
60725   fi
60726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
60727$as_echo "done" >&6; }
60728 if test -n "$EXEEXT"; then
60729  am__EXEEXT_TRUE=
60730  am__EXEEXT_FALSE='#'
60731else
60732  am__EXEEXT_TRUE='#'
60733  am__EXEEXT_FALSE=
60734fi
60735
60736if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
60737  as_fn_error $? "conditional \"AMDEP\" was never defined.
60738Usually this means the macro was only invoked conditionally." "$LINENO" 5
60739fi
60740if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60741  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
60742Usually this means the macro was only invoked conditionally." "$LINENO" 5
60743fi
60744if test -z "${BROKEN_DOCBOOK_XML_TRUE}" && test -z "${BROKEN_DOCBOOK_XML_FALSE}"; then
60745  as_fn_error $? "conditional \"BROKEN_DOCBOOK_XML\" was never defined.
60746Usually this means the macro was only invoked conditionally." "$LINENO" 5
60747fi
60748if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
60749  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
60750Usually this means the macro was only invoked conditionally." "$LINENO" 5
60751fi
60752if test "X$enable_Werror" = Xyes; then
60753        CFLAGS="$CFLAGS -Werror -Wno-error=deprecated-declarations"
60754      fi
60755if test -z "${cc_is_gcc_TRUE}" && test -z "${cc_is_gcc_FALSE}"; then
60756  as_fn_error $? "conditional \"cc_is_gcc\" was never defined.
60757Usually this means the macro was only invoked conditionally." "$LINENO" 5
60758fi
60759if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
60760  as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
60761Usually this means the macro was only invoked conditionally." "$LINENO" 5
60762fi
60763if test -z "${HAVE_GUI_TRUE}" && test -z "${HAVE_GUI_FALSE}"; then
60764  as_fn_error $? "conditional \"HAVE_GUI\" was never defined.
60765Usually this means the macro was only invoked conditionally." "$LINENO" 5
60766fi
60767if test -z "${WITH_PERL_MODULE_TRUE}" && test -z "${WITH_PERL_MODULE_FALSE}"; then
60768  as_fn_error $? "conditional \"WITH_PERL_MODULE\" was never defined.
60769Usually this means the macro was only invoked conditionally." "$LINENO" 5
60770fi
60771if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
60772  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
60773Usually this means the macro was only invoked conditionally." "$LINENO" 5
60774fi
60775if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
60776  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
60777Usually this means the macro was only invoked conditionally." "$LINENO" 5
60778fi
60779if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
60780  as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
60781Usually this means the macro was only invoked conditionally." "$LINENO" 5
60782fi
60783
60784
60785if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
60786  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
60787Usually this means the macro was only invoked conditionally." "$LINENO" 5
60788fi
60789if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
60790  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
60791Usually this means the macro was only invoked conditionally." "$LINENO" 5
60792fi
60793if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
60794  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
60795Usually this means the macro was only invoked conditionally." "$LINENO" 5
60796fi
60797if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
60798  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
60799Usually this means the macro was only invoked conditionally." "$LINENO" 5
60800fi
60801if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
60802  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
60803Usually this means the macro was only invoked conditionally." "$LINENO" 5
60804fi
60805if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
60806  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
60807Usually this means the macro was only invoked conditionally." "$LINENO" 5
60808fi
60809if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
60810  as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
60811Usually this means the macro was only invoked conditionally." "$LINENO" 5
60812fi
60813if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
60814  as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
60815Usually this means the macro was only invoked conditionally." "$LINENO" 5
60816fi
60817if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
60818  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
60819Usually this means the macro was only invoked conditionally." "$LINENO" 5
60820fi
60821if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
60822  as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
60823Usually this means the macro was only invoked conditionally." "$LINENO" 5
60824fi
60825if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
60826  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
60827Usually this means the macro was only invoked conditionally." "$LINENO" 5
60828fi
60829if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
60830  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
60831Usually this means the macro was only invoked conditionally." "$LINENO" 5
60832fi
60833if test -z "${LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT_FALSE}"; then
60834  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT\" was never defined.
60835Usually this means the macro was only invoked conditionally." "$LINENO" 5
60836fi
60837if test -z "${LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT_FALSE}"; then
60838  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT\" was never defined.
60839Usually this means the macro was only invoked conditionally." "$LINENO" 5
60840fi
60841if test -z "${LIBUNISTRING_COMPILE_UNICASE_TOLOWER_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_TOLOWER_FALSE}"; then
60842  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_TOLOWER\" was never defined.
60843Usually this means the macro was only invoked conditionally." "$LINENO" 5
60844fi
60845if test -z "${LIBUNISTRING_COMPILE_UNICASE_TOTITLE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_TOTITLE_FALSE}"; then
60846  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_TOTITLE\" was never defined.
60847Usually this means the macro was only invoked conditionally." "$LINENO" 5
60848fi
60849if test -z "${LIBUNISTRING_COMPILE_UNICASE_TOUPPER_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_TOUPPER_FALSE}"; then
60850  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_TOUPPER\" was never defined.
60851Usually this means the macro was only invoked conditionally." "$LINENO" 5
60852fi
60853if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP_FALSE}"; then
60854  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_CASECMP\" was never defined.
60855Usually this means the macro was only invoked conditionally." "$LINENO" 5
60856fi
60857if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD_FALSE}"; then
60858  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_CASEFOLD\" was never defined.
60859Usually this means the macro was only invoked conditionally." "$LINENO" 5
60860fi
60861if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD_FALSE}"; then
60862  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_CT_CASEFOLD\" was never defined.
60863Usually this means the macro was only invoked conditionally." "$LINENO" 5
60864fi
60865if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE_FALSE}"; then
60866  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_CT_TOTITLE\" was never defined.
60867Usually this means the macro was only invoked conditionally." "$LINENO" 5
60868fi
60869if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER_FALSE}"; then
60870  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_TOLOWER\" was never defined.
60871Usually this means the macro was only invoked conditionally." "$LINENO" 5
60872fi
60873if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE_FALSE}"; then
60874  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_TOTITLE\" was never defined.
60875Usually this means the macro was only invoked conditionally." "$LINENO" 5
60876fi
60877if test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER_FALSE}"; then
60878  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICASE_U8_TOUPPER\" was never defined.
60879Usually this means the macro was only invoked conditionally." "$LINENO" 5
60880fi
60881if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE}"; then
60882  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE\" was never defined.
60883Usually this means the macro was only invoked conditionally." "$LINENO" 5
60884fi
60885if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE}"; then
60886  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF\" was never defined.
60887Usually this means the macro was only invoked conditionally." "$LINENO" 5
60888fi
60889if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE}"; then
60890  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS\" was never defined.
60891Usually this means the macro was only invoked conditionally." "$LINENO" 5
60892fi
60893if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT_FALSE}"; then
60894  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_PRINT\" was never defined.
60895Usually this means the macro was only invoked conditionally." "$LINENO" 5
60896fi
60897if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED_FALSE}"; then
60898  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_SOFT_DOTTED\" was never defined.
60899Usually this means the macro was only invoked conditionally." "$LINENO" 5
60900fi
60901if test -z "${LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP_FALSE}"; then
60902  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIGBRK_UC_GBRK_PROP\" was never defined.
60903Usually this means the macro was only invoked conditionally." "$LINENO" 5
60904fi
60905if test -z "${LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK_FALSE}"; then
60906  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIGBRK_UC_IS_GRAPHEME_BREAK\" was never defined.
60907Usually this means the macro was only invoked conditionally." "$LINENO" 5
60908fi
60909if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
60910  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
60911Usually this means the macro was only invoked conditionally." "$LINENO" 5
60912fi
60913if test -z "${LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE}"; then
60914  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION\" was never defined.
60915Usually this means the macro was only invoked conditionally." "$LINENO" 5
60916fi
60917if test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM_FALSE}"; then
60918  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_DECOMPOSING_FORM\" was never defined.
60919Usually this means the macro was only invoked conditionally." "$LINENO" 5
60920fi
60921if test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE}"; then
60922  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION\" was never defined.
60923Usually this means the macro was only invoked conditionally." "$LINENO" 5
60924fi
60925if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE}"; then
60926  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFD\" was never defined.
60927Usually this means the macro was only invoked conditionally." "$LINENO" 5
60928fi
60929if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE}"; then
60930  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFKD\" was never defined.
60931Usually this means the macro was only invoked conditionally." "$LINENO" 5
60932fi
60933if test -z "${LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE}"; then
60934  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE\" was never defined.
60935Usually this means the macro was only invoked conditionally." "$LINENO" 5
60936fi
60937if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
60938  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
60939Usually this means the macro was only invoked conditionally." "$LINENO" 5
60940fi
60941if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then
60942  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined.
60943Usually this means the macro was only invoked conditionally." "$LINENO" 5
60944fi
60945if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP2_FALSE}"; then
60946  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP2\" was never defined.
60947Usually this means the macro was only invoked conditionally." "$LINENO" 5
60948fi
60949if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE}"; then
60950  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CPY\" was never defined.
60951Usually this means the macro was only invoked conditionally." "$LINENO" 5
60952fi
60953if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
60954  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
60955Usually this means the macro was only invoked conditionally." "$LINENO" 5
60956fi
60957if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
60958  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
60959Usually this means the macro was only invoked conditionally." "$LINENO" 5
60960fi
60961if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
60962  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
60963Usually this means the macro was only invoked conditionally." "$LINENO" 5
60964fi
60965if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
60966  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
60967Usually this means the macro was only invoked conditionally." "$LINENO" 5
60968fi
60969if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then
60970  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined.
60971Usually this means the macro was only invoked conditionally." "$LINENO" 5
60972fi
60973if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE}"; then
60974  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC\" was never defined.
60975Usually this means the macro was only invoked conditionally." "$LINENO" 5
60976fi
60977if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT_FALSE}"; then
60978  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRNCAT\" was never defined.
60979Usually this means the macro was only invoked conditionally." "$LINENO" 5
60980fi
60981if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
60982  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
60983Usually this means the macro was only invoked conditionally." "$LINENO" 5
60984fi
60985if test -z "${LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS_FALSE}"; then
60986  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWBRK_U8_WORDBREAKS\" was never defined.
60987Usually this means the macro was only invoked conditionally." "$LINENO" 5
60988fi
60989if test -z "${LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY_FALSE}"; then
60990  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWBRK_WORDBREAK_PROPERTY\" was never defined.
60991Usually this means the macro was only invoked conditionally." "$LINENO" 5
60992fi
60993if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH_FALSE}"; then
60994  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_U8_STRWIDTH\" was never defined.
60995Usually this means the macro was only invoked conditionally." "$LINENO" 5
60996fi
60997if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH_FALSE}"; then
60998  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_U8_WIDTH\" was never defined.
60999Usually this means the macro was only invoked conditionally." "$LINENO" 5
61000fi
61001if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
61002  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
61003Usually this means the macro was only invoked conditionally." "$LINENO" 5
61004fi
61005
61006    gl_libobjs=
61007    gl_ltlibobjs=
61008    if test -n "$gl_LIBOBJS"; then
61009      # Remove the extension.
61010      sed_drop_objext='s/\.o$//;s/\.obj$//'
61011      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
61012        gl_libobjs="$gl_libobjs $i.$ac_objext"
61013        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
61014      done
61015    fi
61016    gl_LIBOBJS=$gl_libobjs
61017
61018    gl_LTLIBOBJS=$gl_ltlibobjs
61019
61020
61021
61022    gltests_libobjs=
61023    gltests_ltlibobjs=
61024    if test -n "$gltests_LIBOBJS"; then
61025      # Remove the extension.
61026      sed_drop_objext='s/\.o$//;s/\.obj$//'
61027      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
61028        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
61029        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
61030      done
61031    fi
61032    gltests_LIBOBJS=$gltests_libobjs
61033
61034    gltests_LTLIBOBJS=$gltests_ltlibobjs
61035
61036
61037
61038
61039: "${CONFIG_STATUS=./config.status}"
61040ac_write_fail=0
61041ac_clean_files_save=$ac_clean_files
61042ac_clean_files="$ac_clean_files $CONFIG_STATUS"
61043{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
61044$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
61045as_write_fail=0
61046cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
61047#! $SHELL
61048# Generated by $as_me.
61049# Run this file to recreate the current configuration.
61050# Compiler output produced by configure, useful for debugging
61051# configure, is in config.log if it exists.
61052
61053debug=false
61054ac_cs_recheck=false
61055ac_cs_silent=false
61056
61057SHELL=\${CONFIG_SHELL-$SHELL}
61058export SHELL
61059_ASEOF
61060cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
61061## -------------------- ##
61062## M4sh Initialization. ##
61063## -------------------- ##
61064
61065# Be more Bourne compatible
61066DUALCASE=1; export DUALCASE # for MKS sh
61067if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
61068  emulate sh
61069  NULLCMD=:
61070  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
61071  # is contrary to our usage.  Disable this feature.
61072  alias -g '${1+"$@"}'='"$@"'
61073  setopt NO_GLOB_SUBST
61074else
61075  case `(set -o) 2>/dev/null` in #(
61076  *posix*) :
61077    set -o posix ;; #(
61078  *) :
61079     ;;
61080esac
61081fi
61082
61083
61084as_nl='
61085'
61086export as_nl
61087# Printing a long string crashes Solaris 7 /usr/bin/printf.
61088as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61089as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
61090as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
61091# Prefer a ksh shell builtin over an external printf program on Solaris,
61092# but without wasting forks for bash or zsh.
61093if test -z "$BASH_VERSION$ZSH_VERSION" \
61094    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
61095  as_echo='print -r --'
61096  as_echo_n='print -rn --'
61097elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
61098  as_echo='printf %s\n'
61099  as_echo_n='printf %s'
61100else
61101  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
61102    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61103    as_echo_n='/usr/ucb/echo -n'
61104  else
61105    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61106    as_echo_n_body='eval
61107      arg=$1;
61108      case $arg in #(
61109      *"$as_nl"*)
61110	expr "X$arg" : "X\\(.*\\)$as_nl";
61111	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61112      esac;
61113      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
61114    '
61115    export as_echo_n_body
61116    as_echo_n='sh -c $as_echo_n_body as_echo'
61117  fi
61118  export as_echo_body
61119  as_echo='sh -c $as_echo_body as_echo'
61120fi
61121
61122# The user is always right.
61123if test "${PATH_SEPARATOR+set}" != set; then
61124  PATH_SEPARATOR=:
61125  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
61126    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
61127      PATH_SEPARATOR=';'
61128  }
61129fi
61130
61131
61132# IFS
61133# We need space, tab and new line, in precisely that order.  Quoting is
61134# there to prevent editors from complaining about space-tab.
61135# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61136# splitting by setting IFS to empty value.)
61137IFS=" ""	$as_nl"
61138
61139# Find who we are.  Look in the path if we contain no directory separator.
61140as_myself=
61141case $0 in #((
61142  *[\\/]* ) as_myself=$0 ;;
61143  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61144for as_dir in $PATH
61145do
61146  IFS=$as_save_IFS
61147  test -z "$as_dir" && as_dir=.
61148    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
61149  done
61150IFS=$as_save_IFS
61151
61152     ;;
61153esac
61154# We did not find ourselves, most probably we were run as `sh COMMAND'
61155# in which case we are not to be found in the path.
61156if test "x$as_myself" = x; then
61157  as_myself=$0
61158fi
61159if test ! -f "$as_myself"; then
61160  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
61161  exit 1
61162fi
61163
61164# Unset variables that we do not need and which cause bugs (e.g. in
61165# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
61166# suppresses any "Segmentation fault" message there.  '((' could
61167# trigger a bug in pdksh 5.2.14.
61168for as_var in BASH_ENV ENV MAIL MAILPATH
61169do eval test x\${$as_var+set} = xset \
61170  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
61171done
61172PS1='$ '
61173PS2='> '
61174PS4='+ '
61175
61176# NLS nuisances.
61177LC_ALL=C
61178export LC_ALL
61179LANGUAGE=C
61180export LANGUAGE
61181
61182# CDPATH.
61183(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
61184
61185
61186# as_fn_error STATUS ERROR [LINENO LOG_FD]
61187# ----------------------------------------
61188# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
61189# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
61190# script with STATUS, using 1 if that was 0.
61191as_fn_error ()
61192{
61193  as_status=$1; test $as_status -eq 0 && as_status=1
61194  if test "$4"; then
61195    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
61196    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
61197  fi
61198  $as_echo "$as_me: error: $2" >&2
61199  as_fn_exit $as_status
61200} # as_fn_error
61201
61202
61203# as_fn_set_status STATUS
61204# -----------------------
61205# Set $? to STATUS, without forking.
61206as_fn_set_status ()
61207{
61208  return $1
61209} # as_fn_set_status
61210
61211# as_fn_exit STATUS
61212# -----------------
61213# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
61214as_fn_exit ()
61215{
61216  set +e
61217  as_fn_set_status $1
61218  exit $1
61219} # as_fn_exit
61220
61221# as_fn_unset VAR
61222# ---------------
61223# Portably unset VAR.
61224as_fn_unset ()
61225{
61226  { eval $1=; unset $1;}
61227}
61228as_unset=as_fn_unset
61229# as_fn_append VAR VALUE
61230# ----------------------
61231# Append the text in VALUE to the end of the definition contained in VAR. Take
61232# advantage of any shell optimizations that allow amortized linear growth over
61233# repeated appends, instead of the typical quadratic growth present in naive
61234# implementations.
61235if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
61236  eval 'as_fn_append ()
61237  {
61238    eval $1+=\$2
61239  }'
61240else
61241  as_fn_append ()
61242  {
61243    eval $1=\$$1\$2
61244  }
61245fi # as_fn_append
61246
61247# as_fn_arith ARG...
61248# ------------------
61249# Perform arithmetic evaluation on the ARGs, and store the result in the
61250# global $as_val. Take advantage of shells that can avoid forks. The arguments
61251# must be portable across $(()) and expr.
61252if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
61253  eval 'as_fn_arith ()
61254  {
61255    as_val=$(( $* ))
61256  }'
61257else
61258  as_fn_arith ()
61259  {
61260    as_val=`expr "$@" || test $? -eq 1`
61261  }
61262fi # as_fn_arith
61263
61264
61265if expr a : '\(a\)' >/dev/null 2>&1 &&
61266   test "X`expr 00001 : '.*\(...\)'`" = X001; then
61267  as_expr=expr
61268else
61269  as_expr=false
61270fi
61271
61272if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61273  as_basename=basename
61274else
61275  as_basename=false
61276fi
61277
61278if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
61279  as_dirname=dirname
61280else
61281  as_dirname=false
61282fi
61283
61284as_me=`$as_basename -- "$0" ||
61285$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
61286	 X"$0" : 'X\(//\)$' \| \
61287	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
61288$as_echo X/"$0" |
61289    sed '/^.*\/\([^/][^/]*\)\/*$/{
61290	    s//\1/
61291	    q
61292	  }
61293	  /^X\/\(\/\/\)$/{
61294	    s//\1/
61295	    q
61296	  }
61297	  /^X\/\(\/\).*/{
61298	    s//\1/
61299	    q
61300	  }
61301	  s/.*/./; q'`
61302
61303# Avoid depending upon Character Ranges.
61304as_cr_letters='abcdefghijklmnopqrstuvwxyz'
61305as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
61306as_cr_Letters=$as_cr_letters$as_cr_LETTERS
61307as_cr_digits='0123456789'
61308as_cr_alnum=$as_cr_Letters$as_cr_digits
61309
61310ECHO_C= ECHO_N= ECHO_T=
61311case `echo -n x` in #(((((
61312-n*)
61313  case `echo 'xy\c'` in
61314  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
61315  xy)  ECHO_C='\c';;
61316  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
61317       ECHO_T='	';;
61318  esac;;
61319*)
61320  ECHO_N='-n';;
61321esac
61322
61323rm -f conf$$ conf$$.exe conf$$.file
61324if test -d conf$$.dir; then
61325  rm -f conf$$.dir/conf$$.file
61326else
61327  rm -f conf$$.dir
61328  mkdir conf$$.dir 2>/dev/null
61329fi
61330if (echo >conf$$.file) 2>/dev/null; then
61331  if ln -s conf$$.file conf$$ 2>/dev/null; then
61332    as_ln_s='ln -s'
61333    # ... but there are two gotchas:
61334    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
61335    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
61336    # In both cases, we have to default to `cp -pR'.
61337    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
61338      as_ln_s='cp -pR'
61339  elif ln conf$$.file conf$$ 2>/dev/null; then
61340    as_ln_s=ln
61341  else
61342    as_ln_s='cp -pR'
61343  fi
61344else
61345  as_ln_s='cp -pR'
61346fi
61347rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
61348rmdir conf$$.dir 2>/dev/null
61349
61350
61351# as_fn_mkdir_p
61352# -------------
61353# Create "$as_dir" as a directory, including parents if necessary.
61354as_fn_mkdir_p ()
61355{
61356
61357  case $as_dir in #(
61358  -*) as_dir=./$as_dir;;
61359  esac
61360  test -d "$as_dir" || eval $as_mkdir_p || {
61361    as_dirs=
61362    while :; do
61363      case $as_dir in #(
61364      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
61365      *) as_qdir=$as_dir;;
61366      esac
61367      as_dirs="'$as_qdir' $as_dirs"
61368      as_dir=`$as_dirname -- "$as_dir" ||
61369$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61370	 X"$as_dir" : 'X\(//\)[^/]' \| \
61371	 X"$as_dir" : 'X\(//\)$' \| \
61372	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
61373$as_echo X"$as_dir" |
61374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61375	    s//\1/
61376	    q
61377	  }
61378	  /^X\(\/\/\)[^/].*/{
61379	    s//\1/
61380	    q
61381	  }
61382	  /^X\(\/\/\)$/{
61383	    s//\1/
61384	    q
61385	  }
61386	  /^X\(\/\).*/{
61387	    s//\1/
61388	    q
61389	  }
61390	  s/.*/./; q'`
61391      test -d "$as_dir" && break
61392    done
61393    test -z "$as_dirs" || eval "mkdir $as_dirs"
61394  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
61395
61396
61397} # as_fn_mkdir_p
61398if mkdir -p . 2>/dev/null; then
61399  as_mkdir_p='mkdir -p "$as_dir"'
61400else
61401  test -d ./-p && rmdir ./-p
61402  as_mkdir_p=false
61403fi
61404
61405
61406# as_fn_executable_p FILE
61407# -----------------------
61408# Test if FILE is an executable regular file.
61409as_fn_executable_p ()
61410{
61411  test -f "$1" && test -x "$1"
61412} # as_fn_executable_p
61413as_test_x='test -x'
61414as_executable_p=as_fn_executable_p
61415
61416# Sed expression to map a string onto a valid CPP name.
61417as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
61418
61419# Sed expression to map a string onto a valid variable name.
61420as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
61421
61422
61423exec 6>&1
61424## ----------------------------------- ##
61425## Main body of $CONFIG_STATUS script. ##
61426## ----------------------------------- ##
61427_ASEOF
61428test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
61429
61430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61431# Save the log message, to keep $0 and so on meaningful, and to
61432# report actual input values of CONFIG_FILES etc. instead of their
61433# values after options handling.
61434ac_log="
61435This file was extended by GNU PSPP $as_me 1.4.1, which was
61436generated by GNU Autoconf 2.69.  Invocation command line was
61437
61438  CONFIG_FILES    = $CONFIG_FILES
61439  CONFIG_HEADERS  = $CONFIG_HEADERS
61440  CONFIG_LINKS    = $CONFIG_LINKS
61441  CONFIG_COMMANDS = $CONFIG_COMMANDS
61442  $ $0 $@
61443
61444on `(hostname || uname -n) 2>/dev/null | sed 1q`
61445"
61446
61447_ACEOF
61448
61449case $ac_config_files in *"
61450"*) set x $ac_config_files; shift; ac_config_files=$*;;
61451esac
61452
61453case $ac_config_headers in *"
61454"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
61455esac
61456
61457
61458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61459# Files that config.status was made for.
61460config_files="$ac_config_files"
61461config_headers="$ac_config_headers"
61462config_commands="$ac_config_commands"
61463
61464_ACEOF
61465
61466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61467ac_cs_usage="\
61468\`$as_me' instantiates files and other configuration actions
61469from templates according to the current configuration.  Unless the files
61470and actions are specified as TAGs, all are instantiated by default.
61471
61472Usage: $0 [OPTION]... [TAG]...
61473
61474  -h, --help       print this help, then exit
61475  -V, --version    print version number and configuration settings, then exit
61476      --config     print configuration, then exit
61477  -q, --quiet, --silent
61478                   do not print progress messages
61479  -d, --debug      don't remove temporary files
61480      --recheck    update $as_me by reconfiguring in the same conditions
61481      --file=FILE[:TEMPLATE]
61482                   instantiate the configuration file FILE
61483      --header=FILE[:TEMPLATE]
61484                   instantiate the configuration header FILE
61485
61486Configuration files:
61487$config_files
61488
61489Configuration headers:
61490$config_headers
61491
61492Configuration commands:
61493$config_commands
61494
61495Report bugs to <bug-gnu-pspp@gnu.org>.
61496GNU PSPP home page: <http://www.gnu.org/software/pspp/>.
61497General help using GNU software: <http://www.gnu.org/gethelp/>."
61498
61499_ACEOF
61500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61501ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
61502ac_cs_version="\\
61503GNU PSPP config.status 1.4.1
61504configured by $0, generated by GNU Autoconf 2.69,
61505  with options \\"\$ac_cs_config\\"
61506
61507Copyright (C) 2012 Free Software Foundation, Inc.
61508This config.status script is free software; the Free Software Foundation
61509gives unlimited permission to copy, distribute and modify it."
61510
61511ac_pwd='$ac_pwd'
61512srcdir='$srcdir'
61513INSTALL='$INSTALL'
61514MKDIR_P='$MKDIR_P'
61515AWK='$AWK'
61516test -n "\$AWK" || AWK=awk
61517_ACEOF
61518
61519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61520# The default lists apply if the user does not specify any file.
61521ac_need_defaults=:
61522while test $# != 0
61523do
61524  case $1 in
61525  --*=?*)
61526    ac_option=`expr "X$1" : 'X\([^=]*\)='`
61527    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
61528    ac_shift=:
61529    ;;
61530  --*=)
61531    ac_option=`expr "X$1" : 'X\([^=]*\)='`
61532    ac_optarg=
61533    ac_shift=:
61534    ;;
61535  *)
61536    ac_option=$1
61537    ac_optarg=$2
61538    ac_shift=shift
61539    ;;
61540  esac
61541
61542  case $ac_option in
61543  # Handling of the options.
61544  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
61545    ac_cs_recheck=: ;;
61546  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
61547    $as_echo "$ac_cs_version"; exit ;;
61548  --config | --confi | --conf | --con | --co | --c )
61549    $as_echo "$ac_cs_config"; exit ;;
61550  --debug | --debu | --deb | --de | --d | -d )
61551    debug=: ;;
61552  --file | --fil | --fi | --f )
61553    $ac_shift
61554    case $ac_optarg in
61555    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61556    '') as_fn_error $? "missing file argument" ;;
61557    esac
61558    as_fn_append CONFIG_FILES " '$ac_optarg'"
61559    ac_need_defaults=false;;
61560  --header | --heade | --head | --hea )
61561    $ac_shift
61562    case $ac_optarg in
61563    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61564    esac
61565    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
61566    ac_need_defaults=false;;
61567  --he | --h)
61568    # Conflict between --help and --header
61569    as_fn_error $? "ambiguous option: \`$1'
61570Try \`$0 --help' for more information.";;
61571  --help | --hel | -h )
61572    $as_echo "$ac_cs_usage"; exit ;;
61573  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61574  | -silent | --silent | --silen | --sile | --sil | --si | --s)
61575    ac_cs_silent=: ;;
61576
61577  # This is an error.
61578  -*) as_fn_error $? "unrecognized option: \`$1'
61579Try \`$0 --help' for more information." ;;
61580
61581  *) as_fn_append ac_config_targets " $1"
61582     ac_need_defaults=false ;;
61583
61584  esac
61585  shift
61586done
61587
61588ac_configure_extra_args=
61589
61590if $ac_cs_silent; then
61591  exec 6>/dev/null
61592  ac_configure_extra_args="$ac_configure_extra_args --silent"
61593fi
61594
61595_ACEOF
61596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61597if \$ac_cs_recheck; then
61598  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61599  shift
61600  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
61601  CONFIG_SHELL='$SHELL'
61602  export CONFIG_SHELL
61603  exec "\$@"
61604fi
61605
61606_ACEOF
61607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61608exec 5>>config.log
61609{
61610  echo
61611  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
61612## Running $as_me. ##
61613_ASBOX
61614  $as_echo "$ac_log"
61615} >&5
61616
61617_ACEOF
61618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61619#
61620# INIT-COMMANDS
61621#
61622
61623AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
61624
61625
61626# The HP-UX ksh and POSIX shell print the target directory to stdout
61627# if CDPATH is set.
61628(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
61629
61630sed_quote_subst='$sed_quote_subst'
61631double_quote_subst='$double_quote_subst'
61632delay_variable_subst='$delay_variable_subst'
61633AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
61634DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
61635OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
61636macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
61637macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
61638enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
61639enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
61640pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
61641enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
61642shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
61643SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
61644ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
61645PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
61646host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
61647host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
61648host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
61649build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
61650build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
61651build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
61652SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
61653Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
61654GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
61655EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
61656FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
61657LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
61658NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
61659LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
61660max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
61661ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
61662exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
61663lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
61664lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
61665lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
61666lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
61667lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
61668reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
61669reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
61670deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
61671file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
61672file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
61673want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
61674sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
61675AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
61676AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
61677archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
61678STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
61679RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
61680old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
61681old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
61682old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
61683lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
61684CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
61685CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
61686compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
61687GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
61688lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
61689lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
61690lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
61691lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
61692lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
61693lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
61694nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
61695lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
61696lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
61697objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
61698MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
61699lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
61700lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
61701lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
61702lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
61703lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
61704need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
61705MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
61706DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
61707NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
61708LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
61709OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
61710OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
61711libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
61712shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
61713extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
61714archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
61715enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
61716export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
61717whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
61718compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
61719old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
61720old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
61721archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
61722archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
61723module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
61724module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
61725with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
61726allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
61727no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
61728hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
61729hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
61730hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
61731hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
61732hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
61733hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
61734hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
61735inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
61736link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
61737always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
61738export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
61739exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
61740include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
61741prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
61742postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
61743file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
61744variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
61745need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
61746need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
61747version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
61748runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
61749shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
61750shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
61751libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
61752library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
61753soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
61754install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
61755postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
61756postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
61757finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
61758finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
61759hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
61760sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
61761configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
61762configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
61763hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
61764enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
61765enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
61766enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
61767old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
61768striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
61769
61770LTCC='$LTCC'
61771LTCFLAGS='$LTCFLAGS'
61772compiler='$compiler_DEFAULT'
61773
61774# A function that is used when there is no print builtin or printf.
61775func_fallback_echo ()
61776{
61777  eval 'cat <<_LTECHO_EOF
61778\$1
61779_LTECHO_EOF'
61780}
61781
61782# Quote evaled strings.
61783for var in AS \
61784DLLTOOL \
61785OBJDUMP \
61786SHELL \
61787ECHO \
61788PATH_SEPARATOR \
61789SED \
61790GREP \
61791EGREP \
61792FGREP \
61793LD \
61794NM \
61795LN_S \
61796lt_SP2NL \
61797lt_NL2SP \
61798reload_flag \
61799deplibs_check_method \
61800file_magic_cmd \
61801file_magic_glob \
61802want_nocaseglob \
61803sharedlib_from_linklib_cmd \
61804AR \
61805AR_FLAGS \
61806archiver_list_spec \
61807STRIP \
61808RANLIB \
61809CC \
61810CFLAGS \
61811compiler \
61812lt_cv_sys_global_symbol_pipe \
61813lt_cv_sys_global_symbol_to_cdecl \
61814lt_cv_sys_global_symbol_to_import \
61815lt_cv_sys_global_symbol_to_c_name_address \
61816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
61817lt_cv_nm_interface \
61818nm_file_list_spec \
61819lt_cv_truncate_bin \
61820lt_prog_compiler_no_builtin_flag \
61821lt_prog_compiler_pic \
61822lt_prog_compiler_wl \
61823lt_prog_compiler_static \
61824lt_cv_prog_compiler_c_o \
61825need_locks \
61826MANIFEST_TOOL \
61827DSYMUTIL \
61828NMEDIT \
61829LIPO \
61830OTOOL \
61831OTOOL64 \
61832shrext_cmds \
61833export_dynamic_flag_spec \
61834whole_archive_flag_spec \
61835compiler_needs_object \
61836with_gnu_ld \
61837allow_undefined_flag \
61838no_undefined_flag \
61839hardcode_libdir_flag_spec \
61840hardcode_libdir_separator \
61841exclude_expsyms \
61842include_expsyms \
61843file_list_spec \
61844variables_saved_for_relink \
61845libname_spec \
61846library_names_spec \
61847soname_spec \
61848install_override_mode \
61849finish_eval \
61850old_striplib \
61851striplib; do
61852    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
61853    *[\\\\\\\`\\"\\\$]*)
61854      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
61855      ;;
61856    *)
61857      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
61858      ;;
61859    esac
61860done
61861
61862# Double-quote double-evaled strings.
61863for var in reload_cmds \
61864old_postinstall_cmds \
61865old_postuninstall_cmds \
61866old_archive_cmds \
61867extract_expsyms_cmds \
61868old_archive_from_new_cmds \
61869old_archive_from_expsyms_cmds \
61870archive_cmds \
61871archive_expsym_cmds \
61872module_cmds \
61873module_expsym_cmds \
61874export_symbols_cmds \
61875prelink_cmds \
61876postlink_cmds \
61877postinstall_cmds \
61878postuninstall_cmds \
61879finish_cmds \
61880sys_lib_search_path_spec \
61881configure_time_dlsearch_path \
61882configure_time_lt_sys_library_path; do
61883    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
61884    *[\\\\\\\`\\"\\\$]*)
61885      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
61886      ;;
61887    *)
61888      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
61889      ;;
61890    esac
61891done
61892
61893ac_aux_dir='$ac_aux_dir'
61894
61895# See if we are running on zsh, and set the options that allow our
61896# commands through without removal of \ escapes INIT.
61897if test -n "\${ZSH_VERSION+set}"; then
61898   setopt NO_GLOB_SUBST
61899fi
61900
61901
61902    PACKAGE='$PACKAGE'
61903    VERSION='$VERSION'
61904    RM='$RM'
61905    ofile='$ofile'
61906
61907
61908
61909
61910_ACEOF
61911
61912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61913
61914# Handling of arguments.
61915for ac_config_target in $ac_config_targets
61916do
61917  case $ac_config_target in
61918    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
61919    "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
61920    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61921    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
61922    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61923    "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
61924    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
61925    "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
61926    "perl-module/lib/PSPP.pm") CONFIG_FILES="$CONFIG_FILES perl-module/lib/PSPP.pm" ;;
61927    "doc/dummy") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/dummy" ;;
61928
61929  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
61930  esac
61931done
61932
61933
61934# If the user did not use the arguments to specify the items to instantiate,
61935# then the envvar interface is used.  Set only those that are not.
61936# We use the long form for the default assignment because of an extremely
61937# bizarre bug on SunOS 4.1.3.
61938if $ac_need_defaults; then
61939  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61940  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61941  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61942fi
61943
61944# Have a temporary directory for convenience.  Make it in the build tree
61945# simply because there is no reason against having it here, and in addition,
61946# creating and moving files from /tmp can sometimes cause problems.
61947# Hook for its removal unless debugging.
61948# Note that there is a small window in which the directory will not be cleaned:
61949# after its creation but before its name has been assigned to `$tmp'.
61950$debug ||
61951{
61952  tmp= ac_tmp=
61953  trap 'exit_status=$?
61954  : "${ac_tmp:=$tmp}"
61955  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
61956' 0
61957  trap 'as_fn_exit 1' 1 2 13 15
61958}
61959# Create a (secure) tmp directory for tmp files.
61960
61961{
61962  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
61963  test -d "$tmp"
61964}  ||
61965{
61966  tmp=./conf$$-$RANDOM
61967  (umask 077 && mkdir "$tmp")
61968} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
61969ac_tmp=$tmp
61970
61971# Set up the scripts for CONFIG_FILES section.
61972# No need to generate them if there are no CONFIG_FILES.
61973# This happens for instance with `./config.status config.h'.
61974if test -n "$CONFIG_FILES"; then
61975
61976
61977ac_cr=`echo X | tr X '\015'`
61978# On cygwin, bash can eat \r inside `` if the user requested igncr.
61979# But we know of no other shell where ac_cr would be empty at this
61980# point, so we can use a bashism as a fallback.
61981if test "x$ac_cr" = x; then
61982  eval ac_cr=\$\'\\r\'
61983fi
61984ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
61985if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
61986  ac_cs_awk_cr='\\r'
61987else
61988  ac_cs_awk_cr=$ac_cr
61989fi
61990
61991echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
61992_ACEOF
61993
61994
61995{
61996  echo "cat >conf$$subs.awk <<_ACEOF" &&
61997  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
61998  echo "_ACEOF"
61999} >conf$$subs.sh ||
62000  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
62001ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
62002ac_delim='%!_!# '
62003for ac_last_try in false false false false false :; do
62004  . ./conf$$subs.sh ||
62005    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
62006
62007  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
62008  if test $ac_delim_n = $ac_delim_num; then
62009    break
62010  elif $ac_last_try; then
62011    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
62012  else
62013    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62014  fi
62015done
62016rm -f conf$$subs.sh
62017
62018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62019cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
62020_ACEOF
62021sed -n '
62022h
62023s/^/S["/; s/!.*/"]=/
62024p
62025g
62026s/^[^!]*!//
62027:repl
62028t repl
62029s/'"$ac_delim"'$//
62030t delim
62031:nl
62032h
62033s/\(.\{148\}\)..*/\1/
62034t more1
62035s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
62036p
62037n
62038b repl
62039:more1
62040s/["\\]/\\&/g; s/^/"/; s/$/"\\/
62041p
62042g
62043s/.\{148\}//
62044t nl
62045:delim
62046h
62047s/\(.\{148\}\)..*/\1/
62048t more2
62049s/["\\]/\\&/g; s/^/"/; s/$/"/
62050p
62051b
62052:more2
62053s/["\\]/\\&/g; s/^/"/; s/$/"\\/
62054p
62055g
62056s/.\{148\}//
62057t delim
62058' <conf$$subs.awk | sed '
62059/^[^""]/{
62060  N
62061  s/\n//
62062}
62063' >>$CONFIG_STATUS || ac_write_fail=1
62064rm -f conf$$subs.awk
62065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62066_ACAWK
62067cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
62068  for (key in S) S_is_set[key] = 1
62069  FS = ""
62070
62071}
62072{
62073  line = $ 0
62074  nfields = split(line, field, "@")
62075  substed = 0
62076  len = length(field[1])
62077  for (i = 2; i < nfields; i++) {
62078    key = field[i]
62079    keylen = length(key)
62080    if (S_is_set[key]) {
62081      value = S[key]
62082      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
62083      len += length(value) + length(field[++i])
62084      substed = 1
62085    } else
62086      len += 1 + keylen
62087  }
62088
62089  print line
62090}
62091
62092_ACAWK
62093_ACEOF
62094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62095if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
62096  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
62097else
62098  cat
62099fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
62100  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
62101_ACEOF
62102
62103# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
62104# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
62105# trailing colons and then remove the whole line if VPATH becomes empty
62106# (actually we leave an empty line to preserve line numbers).
62107if test "x$srcdir" = x.; then
62108  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
62109h
62110s///
62111s/^/:/
62112s/[	 ]*$/:/
62113s/:\$(srcdir):/:/g
62114s/:\${srcdir}:/:/g
62115s/:@srcdir@:/:/g
62116s/^:*//
62117s/:*$//
62118x
62119s/\(=[	 ]*\).*/\1/
62120G
62121s/\n//
62122s/^[^=]*=[	 ]*$//
62123}'
62124fi
62125
62126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62127fi # test -n "$CONFIG_FILES"
62128
62129# Set up the scripts for CONFIG_HEADERS section.
62130# No need to generate them if there are no CONFIG_HEADERS.
62131# This happens for instance with `./config.status Makefile'.
62132if test -n "$CONFIG_HEADERS"; then
62133cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
62134BEGIN {
62135_ACEOF
62136
62137# Transform confdefs.h into an awk script `defines.awk', embedded as
62138# here-document in config.status, that substitutes the proper values into
62139# config.h.in to produce config.h.
62140
62141# Create a delimiter string that does not exist in confdefs.h, to ease
62142# handling of long lines.
62143ac_delim='%!_!# '
62144for ac_last_try in false false :; do
62145  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
62146  if test -z "$ac_tt"; then
62147    break
62148  elif $ac_last_try; then
62149    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
62150  else
62151    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62152  fi
62153done
62154
62155# For the awk script, D is an array of macro values keyed by name,
62156# likewise P contains macro parameters if any.  Preserve backslash
62157# newline sequences.
62158
62159ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
62160sed -n '
62161s/.\{148\}/&'"$ac_delim"'/g
62162t rset
62163:rset
62164s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
62165t def
62166d
62167:def
62168s/\\$//
62169t bsnl
62170s/["\\]/\\&/g
62171s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
62172D["\1"]=" \3"/p
62173s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
62174d
62175:bsnl
62176s/["\\]/\\&/g
62177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
62178D["\1"]=" \3\\\\\\n"\\/p
62179t cont
62180s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
62181t cont
62182d
62183:cont
62184n
62185s/.\{148\}/&'"$ac_delim"'/g
62186t clear
62187:clear
62188s/\\$//
62189t bsnlc
62190s/["\\]/\\&/g; s/^/"/; s/$/"/p
62191d
62192:bsnlc
62193s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
62194b cont
62195' <confdefs.h | sed '
62196s/'"$ac_delim"'/"\\\
62197"/g' >>$CONFIG_STATUS || ac_write_fail=1
62198
62199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62200  for (key in D) D_is_set[key] = 1
62201  FS = ""
62202}
62203/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
62204  line = \$ 0
62205  split(line, arg, " ")
62206  if (arg[1] == "#") {
62207    defundef = arg[2]
62208    mac1 = arg[3]
62209  } else {
62210    defundef = substr(arg[1], 2)
62211    mac1 = arg[2]
62212  }
62213  split(mac1, mac2, "(") #)
62214  macro = mac2[1]
62215  prefix = substr(line, 1, index(line, defundef) - 1)
62216  if (D_is_set[macro]) {
62217    # Preserve the white space surrounding the "#".
62218    print prefix "define", macro P[macro] D[macro]
62219    next
62220  } else {
62221    # Replace #undef with comments.  This is necessary, for example,
62222    # in the case of _POSIX_SOURCE, which is predefined and required
62223    # on some systems where configure will not decide to define it.
62224    if (defundef == "undef") {
62225      print "/*", prefix defundef, macro, "*/"
62226      next
62227    }
62228  }
62229}
62230{ print }
62231_ACAWK
62232_ACEOF
62233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62234  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
62235fi # test -n "$CONFIG_HEADERS"
62236
62237
62238eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
62239shift
62240for ac_tag
62241do
62242  case $ac_tag in
62243  :[FHLC]) ac_mode=$ac_tag; continue;;
62244  esac
62245  case $ac_mode$ac_tag in
62246  :[FHL]*:*);;
62247  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
62248  :[FH]-) ac_tag=-:-;;
62249  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
62250  esac
62251  ac_save_IFS=$IFS
62252  IFS=:
62253  set x $ac_tag
62254  IFS=$ac_save_IFS
62255  shift
62256  ac_file=$1
62257  shift
62258
62259  case $ac_mode in
62260  :L) ac_source=$1;;
62261  :[FH])
62262    ac_file_inputs=
62263    for ac_f
62264    do
62265      case $ac_f in
62266      -) ac_f="$ac_tmp/stdin";;
62267      *) # Look for the file first in the build tree, then in the source tree
62268	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
62269	 # because $ac_f cannot contain `:'.
62270	 test -f "$ac_f" ||
62271	   case $ac_f in
62272	   [\\/$]*) false;;
62273	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
62274	   esac ||
62275	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
62276      esac
62277      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
62278      as_fn_append ac_file_inputs " '$ac_f'"
62279    done
62280
62281    # Let's still pretend it is `configure' which instantiates (i.e., don't
62282    # use $as_me), people would be surprised to read:
62283    #    /* config.h.  Generated by config.status.  */
62284    configure_input='Generated from '`
62285	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
62286	`' by configure.'
62287    if test x"$ac_file" != x-; then
62288      configure_input="$ac_file.  $configure_input"
62289      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
62290$as_echo "$as_me: creating $ac_file" >&6;}
62291    fi
62292    # Neutralize special characters interpreted by sed in replacement strings.
62293    case $configure_input in #(
62294    *\&* | *\|* | *\\* )
62295       ac_sed_conf_input=`$as_echo "$configure_input" |
62296       sed 's/[\\\\&|]/\\\\&/g'`;; #(
62297    *) ac_sed_conf_input=$configure_input;;
62298    esac
62299
62300    case $ac_tag in
62301    *:-:* | *:-) cat >"$ac_tmp/stdin" \
62302      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
62303    esac
62304    ;;
62305  esac
62306
62307  ac_dir=`$as_dirname -- "$ac_file" ||
62308$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62309	 X"$ac_file" : 'X\(//\)[^/]' \| \
62310	 X"$ac_file" : 'X\(//\)$' \| \
62311	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
62312$as_echo X"$ac_file" |
62313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62314	    s//\1/
62315	    q
62316	  }
62317	  /^X\(\/\/\)[^/].*/{
62318	    s//\1/
62319	    q
62320	  }
62321	  /^X\(\/\/\)$/{
62322	    s//\1/
62323	    q
62324	  }
62325	  /^X\(\/\).*/{
62326	    s//\1/
62327	    q
62328	  }
62329	  s/.*/./; q'`
62330  as_dir="$ac_dir"; as_fn_mkdir_p
62331  ac_builddir=.
62332
62333case "$ac_dir" in
62334.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
62335*)
62336  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
62337  # A ".." for each directory in $ac_dir_suffix.
62338  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
62339  case $ac_top_builddir_sub in
62340  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
62341  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
62342  esac ;;
62343esac
62344ac_abs_top_builddir=$ac_pwd
62345ac_abs_builddir=$ac_pwd$ac_dir_suffix
62346# for backward compatibility:
62347ac_top_builddir=$ac_top_build_prefix
62348
62349case $srcdir in
62350  .)  # We are building in place.
62351    ac_srcdir=.
62352    ac_top_srcdir=$ac_top_builddir_sub
62353    ac_abs_top_srcdir=$ac_pwd ;;
62354  [\\/]* | ?:[\\/]* )  # Absolute name.
62355    ac_srcdir=$srcdir$ac_dir_suffix;
62356    ac_top_srcdir=$srcdir
62357    ac_abs_top_srcdir=$srcdir ;;
62358  *) # Relative name.
62359    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
62360    ac_top_srcdir=$ac_top_build_prefix$srcdir
62361    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
62362esac
62363ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62364
62365
62366  case $ac_mode in
62367  :F)
62368  #
62369  # CONFIG_FILE
62370  #
62371
62372  case $INSTALL in
62373  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
62374  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
62375  esac
62376  ac_MKDIR_P=$MKDIR_P
62377  case $MKDIR_P in
62378  [\\/$]* | ?:[\\/]* ) ;;
62379  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
62380  esac
62381_ACEOF
62382
62383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62384# If the template does not know about datarootdir, expand it.
62385# FIXME: This hack should be removed a few years after 2.60.
62386ac_datarootdir_hack=; ac_datarootdir_seen=
62387ac_sed_dataroot='
62388/datarootdir/ {
62389  p
62390  q
62391}
62392/@datadir@/p
62393/@docdir@/p
62394/@infodir@/p
62395/@localedir@/p
62396/@mandir@/p'
62397case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
62398*datarootdir*) ac_datarootdir_seen=yes;;
62399*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
62400  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
62401$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
62402_ACEOF
62403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62404  ac_datarootdir_hack='
62405  s&@datadir@&$datadir&g
62406  s&@docdir@&$docdir&g
62407  s&@infodir@&$infodir&g
62408  s&@localedir@&$localedir&g
62409  s&@mandir@&$mandir&g
62410  s&\\\${datarootdir}&$datarootdir&g' ;;
62411esac
62412_ACEOF
62413
62414# Neutralize VPATH when `$srcdir' = `.'.
62415# Shell code in configure.ac might set extrasub.
62416# FIXME: do we really want to maintain this feature?
62417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62418ac_sed_extra="$ac_vpsub
62419$extrasub
62420_ACEOF
62421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62422:t
62423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
62424s|@configure_input@|$ac_sed_conf_input|;t t
62425s&@top_builddir@&$ac_top_builddir_sub&;t t
62426s&@top_build_prefix@&$ac_top_build_prefix&;t t
62427s&@srcdir@&$ac_srcdir&;t t
62428s&@abs_srcdir@&$ac_abs_srcdir&;t t
62429s&@top_srcdir@&$ac_top_srcdir&;t t
62430s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
62431s&@builddir@&$ac_builddir&;t t
62432s&@abs_builddir@&$ac_abs_builddir&;t t
62433s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
62434s&@INSTALL@&$ac_INSTALL&;t t
62435s&@MKDIR_P@&$ac_MKDIR_P&;t t
62436$ac_datarootdir_hack
62437"
62438eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
62439  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
62440
62441test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
62442  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
62443  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
62444      "$ac_tmp/out"`; test -z "$ac_out"; } &&
62445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
62446which seems to be undefined.  Please make sure it is defined" >&5
62447$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
62448which seems to be undefined.  Please make sure it is defined" >&2;}
62449
62450  rm -f "$ac_tmp/stdin"
62451  case $ac_file in
62452  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
62453  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
62454  esac \
62455  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
62456 ;;
62457  :H)
62458  #
62459  # CONFIG_HEADER
62460  #
62461  if test x"$ac_file" != x-; then
62462    {
62463      $as_echo "/* $configure_input  */" \
62464      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
62465    } >"$ac_tmp/config.h" \
62466      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
62467    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
62468      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
62469$as_echo "$as_me: $ac_file is unchanged" >&6;}
62470    else
62471      rm -f "$ac_file"
62472      mv "$ac_tmp/config.h" "$ac_file" \
62473	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
62474    fi
62475  else
62476    $as_echo "/* $configure_input  */" \
62477      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
62478      || as_fn_error $? "could not create -" "$LINENO" 5
62479  fi
62480# Compute "$ac_file"'s index in $config_headers.
62481_am_arg="$ac_file"
62482_am_stamp_count=1
62483for _am_header in $config_headers :; do
62484  case $_am_header in
62485    $_am_arg | $_am_arg:* )
62486      break ;;
62487    * )
62488      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
62489  esac
62490done
62491echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
62492$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62493	 X"$_am_arg" : 'X\(//\)[^/]' \| \
62494	 X"$_am_arg" : 'X\(//\)$' \| \
62495	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
62496$as_echo X"$_am_arg" |
62497    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62498	    s//\1/
62499	    q
62500	  }
62501	  /^X\(\/\/\)[^/].*/{
62502	    s//\1/
62503	    q
62504	  }
62505	  /^X\(\/\/\)$/{
62506	    s//\1/
62507	    q
62508	  }
62509	  /^X\(\/\).*/{
62510	    s//\1/
62511	    q
62512	  }
62513	  s/.*/./; q'`/stamp-h$_am_stamp_count
62514 ;;
62515
62516  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
62517$as_echo "$as_me: executing $ac_file commands" >&6;}
62518 ;;
62519  esac
62520
62521
62522  case $ac_file$ac_mode in
62523    "tests/atconfig":C) cat >tests/atconfig <<ATEOF
62524# Configurable variable values for building test suites.
62525# Generated by $0.
62526# Copyright (C) 2012 Free Software Foundation, Inc.
62527
62528# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
62529at_testdir='tests'
62530abs_builddir='$ac_abs_builddir'
62531at_srcdir='$ac_srcdir'
62532abs_srcdir='$ac_abs_srcdir'
62533at_top_srcdir='$ac_top_srcdir'
62534abs_top_srcdir='$ac_abs_top_srcdir'
62535at_top_build_prefix='$ac_top_build_prefix'
62536abs_top_builddir='$ac_abs_top_builddir'
62537
62538# Backward compatibility with Autotest <= 2.59b:
62539at_top_builddir=\$at_top_build_prefix
62540
62541AUTOTEST_PATH='tests'
62542
62543SHELL=\${CONFIG_SHELL-'$SHELL'}
62544ATEOF
62545 ;;
62546    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
62547  # Older Autoconf quotes --file arguments for eval, but not when files
62548  # are listed without --file.  Let's play safe and only enable the eval
62549  # if we detect the quoting.
62550  # TODO: see whether this extra hack can be removed once we start
62551  # requiring Autoconf 2.70 or later.
62552  case $CONFIG_FILES in #(
62553  *\'*) :
62554    eval set x "$CONFIG_FILES" ;; #(
62555  *) :
62556    set x $CONFIG_FILES ;; #(
62557  *) :
62558     ;;
62559esac
62560  shift
62561  # Used to flag and report bootstrapping failures.
62562  am_rc=0
62563  for am_mf
62564  do
62565    # Strip MF so we end up with the name of the file.
62566    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
62567    # Check whether this is an Automake generated Makefile which includes
62568    # dependency-tracking related rules and includes.
62569    # Grep'ing the whole file directly is not great: AIX grep has a line
62570    # limit of 2048, but all sed's we know have understand at least 4000.
62571    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
62572      || continue
62573    am_dirpart=`$as_dirname -- "$am_mf" ||
62574$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62575	 X"$am_mf" : 'X\(//\)[^/]' \| \
62576	 X"$am_mf" : 'X\(//\)$' \| \
62577	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
62578$as_echo X"$am_mf" |
62579    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62580	    s//\1/
62581	    q
62582	  }
62583	  /^X\(\/\/\)[^/].*/{
62584	    s//\1/
62585	    q
62586	  }
62587	  /^X\(\/\/\)$/{
62588	    s//\1/
62589	    q
62590	  }
62591	  /^X\(\/\).*/{
62592	    s//\1/
62593	    q
62594	  }
62595	  s/.*/./; q'`
62596    am_filepart=`$as_basename -- "$am_mf" ||
62597$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
62598	 X"$am_mf" : 'X\(//\)$' \| \
62599	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
62600$as_echo X/"$am_mf" |
62601    sed '/^.*\/\([^/][^/]*\)\/*$/{
62602	    s//\1/
62603	    q
62604	  }
62605	  /^X\/\(\/\/\)$/{
62606	    s//\1/
62607	    q
62608	  }
62609	  /^X\/\(\/\).*/{
62610	    s//\1/
62611	    q
62612	  }
62613	  s/.*/./; q'`
62614    { echo "$as_me:$LINENO: cd "$am_dirpart" \
62615      && sed -e '/# am--include-marker/d' "$am_filepart" \
62616        | $MAKE -f - am--depfiles" >&5
62617   (cd "$am_dirpart" \
62618      && sed -e '/# am--include-marker/d' "$am_filepart" \
62619        | $MAKE -f - am--depfiles) >&5 2>&5
62620   ac_status=$?
62621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62622   (exit $ac_status); } || am_rc=$?
62623  done
62624  if test $am_rc -ne 0; then
62625    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
62626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
62627as_fn_error $? "Something went wrong bootstrapping makefile fragments
62628    for automatic dependency tracking.  If GNU make was not used, consider
62629    re-running the configure script with MAKE=\"gmake\" (or whatever is
62630    necessary).  You can also try re-running configure with the
62631    '--disable-dependency-tracking' option to at least be able to build
62632    the package (albeit without support for automatic dependency tracking).
62633See \`config.log' for more details" "$LINENO" 5; }
62634  fi
62635  { am_dirpart=; unset am_dirpart;}
62636  { am_filepart=; unset am_filepart;}
62637  { am_mf=; unset am_mf;}
62638  { am_rc=; unset am_rc;}
62639  rm -f conftest-deps.mk
62640}
62641 ;;
62642    "libtool":C)
62643
62644    # See if we are running on zsh, and set the options that allow our
62645    # commands through without removal of \ escapes.
62646    if test -n "${ZSH_VERSION+set}"; then
62647      setopt NO_GLOB_SUBST
62648    fi
62649
62650    cfgfile=${ofile}T
62651    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
62652    $RM "$cfgfile"
62653
62654    cat <<_LT_EOF >> "$cfgfile"
62655#! $SHELL
62656# Generated automatically by $as_me ($PACKAGE) $VERSION
62657# NOTE: Changes made to this file will be lost: look at ltmain.sh.
62658
62659# Provide generalized library-building support services.
62660# Written by Gordon Matzigkeit, 1996
62661
62662# Copyright (C) 2014 Free Software Foundation, Inc.
62663# This is free software; see the source for copying conditions.  There is NO
62664# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
62665
62666# GNU Libtool is free software; you can redistribute it and/or modify
62667# it under the terms of the GNU General Public License as published by
62668# the Free Software Foundation; either version 2 of of the License, or
62669# (at your option) any later version.
62670#
62671# As a special exception to the GNU General Public License, if you
62672# distribute this file as part of a program or library that is built
62673# using GNU Libtool, you may include this file under the  same
62674# distribution terms that you use for the rest of that program.
62675#
62676# GNU Libtool is distributed in the hope that it will be useful, but
62677# WITHOUT ANY WARRANTY; without even the implied warranty of
62678# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
62679# GNU General Public License for more details.
62680#
62681# You should have received a copy of the GNU General Public License
62682# along with this program.  If not, see <http://www.gnu.org/licenses/>.
62683
62684
62685# The names of the tagged configurations supported by this script.
62686available_tags=''
62687
62688# Configured defaults for sys_lib_dlsearch_path munging.
62689: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
62690
62691# ### BEGIN LIBTOOL CONFIG
62692
62693# Assembler program.
62694AS=$lt_AS
62695
62696# DLL creation program.
62697DLLTOOL=$lt_DLLTOOL
62698
62699# Object dumper program.
62700OBJDUMP=$lt_OBJDUMP
62701
62702# Which release of libtool.m4 was used?
62703macro_version=$macro_version
62704macro_revision=$macro_revision
62705
62706# Whether or not to build shared libraries.
62707build_libtool_libs=$enable_shared
62708
62709# Whether or not to build static libraries.
62710build_old_libs=$enable_static
62711
62712# What type of objects to build.
62713pic_mode=$pic_mode
62714
62715# Whether or not to optimize for fast installation.
62716fast_install=$enable_fast_install
62717
62718# Shared archive member basename,for filename based shared library versioning on AIX.
62719shared_archive_member_spec=$shared_archive_member_spec
62720
62721# Shell to use when invoking shell scripts.
62722SHELL=$lt_SHELL
62723
62724# An echo program that protects backslashes.
62725ECHO=$lt_ECHO
62726
62727# The PATH separator for the build system.
62728PATH_SEPARATOR=$lt_PATH_SEPARATOR
62729
62730# The host system.
62731host_alias=$host_alias
62732host=$host
62733host_os=$host_os
62734
62735# The build system.
62736build_alias=$build_alias
62737build=$build
62738build_os=$build_os
62739
62740# A sed program that does not truncate output.
62741SED=$lt_SED
62742
62743# Sed that helps us avoid accidentally triggering echo(1) options like -n.
62744Xsed="\$SED -e 1s/^X//"
62745
62746# A grep program that handles long lines.
62747GREP=$lt_GREP
62748
62749# An ERE matcher.
62750EGREP=$lt_EGREP
62751
62752# A literal string matcher.
62753FGREP=$lt_FGREP
62754
62755# A BSD- or MS-compatible name lister.
62756NM=$lt_NM
62757
62758# Whether we need soft or hard links.
62759LN_S=$lt_LN_S
62760
62761# What is the maximum length of a command?
62762max_cmd_len=$max_cmd_len
62763
62764# Object file suffix (normally "o").
62765objext=$ac_objext
62766
62767# Executable file suffix (normally "").
62768exeext=$exeext
62769
62770# whether the shell understands "unset".
62771lt_unset=$lt_unset
62772
62773# turn spaces into newlines.
62774SP2NL=$lt_lt_SP2NL
62775
62776# turn newlines into spaces.
62777NL2SP=$lt_lt_NL2SP
62778
62779# convert \$build file names to \$host format.
62780to_host_file_cmd=$lt_cv_to_host_file_cmd
62781
62782# convert \$build files to toolchain format.
62783to_tool_file_cmd=$lt_cv_to_tool_file_cmd
62784
62785# Method to check whether dependent libraries are shared objects.
62786deplibs_check_method=$lt_deplibs_check_method
62787
62788# Command to use when deplibs_check_method = "file_magic".
62789file_magic_cmd=$lt_file_magic_cmd
62790
62791# How to find potential files when deplibs_check_method = "file_magic".
62792file_magic_glob=$lt_file_magic_glob
62793
62794# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
62795want_nocaseglob=$lt_want_nocaseglob
62796
62797# Command to associate shared and link libraries.
62798sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
62799
62800# The archiver.
62801AR=$lt_AR
62802
62803# Flags to create an archive.
62804AR_FLAGS=$lt_AR_FLAGS
62805
62806# How to feed a file listing to the archiver.
62807archiver_list_spec=$lt_archiver_list_spec
62808
62809# A symbol stripping program.
62810STRIP=$lt_STRIP
62811
62812# Commands used to install an old-style archive.
62813RANLIB=$lt_RANLIB
62814old_postinstall_cmds=$lt_old_postinstall_cmds
62815old_postuninstall_cmds=$lt_old_postuninstall_cmds
62816
62817# Whether to use a lock for old archive extraction.
62818lock_old_archive_extraction=$lock_old_archive_extraction
62819
62820# A C compiler.
62821LTCC=$lt_CC
62822
62823# LTCC compiler flags.
62824LTCFLAGS=$lt_CFLAGS
62825
62826# Take the output of nm and produce a listing of raw symbols and C names.
62827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
62828
62829# Transform the output of nm in a proper C declaration.
62830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
62831
62832# Transform the output of nm into a list of symbols to manually relocate.
62833global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
62834
62835# Transform the output of nm in a C name address pair.
62836global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
62837
62838# Transform the output of nm in a C name address pair when lib prefix is needed.
62839global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
62840
62841# The name lister interface.
62842nm_interface=$lt_lt_cv_nm_interface
62843
62844# Specify filename containing input files for \$NM.
62845nm_file_list_spec=$lt_nm_file_list_spec
62846
62847# The root where to search for dependent libraries,and where our libraries should be installed.
62848lt_sysroot=$lt_sysroot
62849
62850# Command to truncate a binary pipe.
62851lt_truncate_bin=$lt_lt_cv_truncate_bin
62852
62853# The name of the directory that contains temporary libtool files.
62854objdir=$objdir
62855
62856# Used to examine libraries when file_magic_cmd begins with "file".
62857MAGIC_CMD=$MAGIC_CMD
62858
62859# Must we lock files when doing compilation?
62860need_locks=$lt_need_locks
62861
62862# Manifest tool.
62863MANIFEST_TOOL=$lt_MANIFEST_TOOL
62864
62865# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
62866DSYMUTIL=$lt_DSYMUTIL
62867
62868# Tool to change global to local symbols on Mac OS X.
62869NMEDIT=$lt_NMEDIT
62870
62871# Tool to manipulate fat objects and archives on Mac OS X.
62872LIPO=$lt_LIPO
62873
62874# ldd/readelf like tool for Mach-O binaries on Mac OS X.
62875OTOOL=$lt_OTOOL
62876
62877# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
62878OTOOL64=$lt_OTOOL64
62879
62880# Old archive suffix (normally "a").
62881libext=$libext
62882
62883# Shared library suffix (normally ".so").
62884shrext_cmds=$lt_shrext_cmds
62885
62886# The commands to extract the exported symbol list from a shared archive.
62887extract_expsyms_cmds=$lt_extract_expsyms_cmds
62888
62889# Variables whose values should be saved in libtool wrapper scripts and
62890# restored at link time.
62891variables_saved_for_relink=$lt_variables_saved_for_relink
62892
62893# Do we need the "lib" prefix for modules?
62894need_lib_prefix=$need_lib_prefix
62895
62896# Do we need a version for libraries?
62897need_version=$need_version
62898
62899# Library versioning type.
62900version_type=$version_type
62901
62902# Shared library runtime path variable.
62903runpath_var=$runpath_var
62904
62905# Shared library path variable.
62906shlibpath_var=$shlibpath_var
62907
62908# Is shlibpath searched before the hard-coded library search path?
62909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
62910
62911# Format of library name prefix.
62912libname_spec=$lt_libname_spec
62913
62914# List of archive names.  First name is the real one, the rest are links.
62915# The last name is the one that the linker finds with -lNAME
62916library_names_spec=$lt_library_names_spec
62917
62918# The coded name of the library, if different from the real name.
62919soname_spec=$lt_soname_spec
62920
62921# Permission mode override for installation of shared libraries.
62922install_override_mode=$lt_install_override_mode
62923
62924# Command to use after installation of a shared archive.
62925postinstall_cmds=$lt_postinstall_cmds
62926
62927# Command to use after uninstallation of a shared archive.
62928postuninstall_cmds=$lt_postuninstall_cmds
62929
62930# Commands used to finish a libtool library installation in a directory.
62931finish_cmds=$lt_finish_cmds
62932
62933# As "finish_cmds", except a single script fragment to be evaled but
62934# not shown.
62935finish_eval=$lt_finish_eval
62936
62937# Whether we should hardcode library paths into libraries.
62938hardcode_into_libs=$hardcode_into_libs
62939
62940# Compile-time system search path for libraries.
62941sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
62942
62943# Detected run-time system search path for libraries.
62944sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
62945
62946# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
62947configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
62948
62949# Whether dlopen is supported.
62950dlopen_support=$enable_dlopen
62951
62952# Whether dlopen of programs is supported.
62953dlopen_self=$enable_dlopen_self
62954
62955# Whether dlopen of statically linked programs is supported.
62956dlopen_self_static=$enable_dlopen_self_static
62957
62958# Commands to strip libraries.
62959old_striplib=$lt_old_striplib
62960striplib=$lt_striplib
62961
62962
62963# The linker used to build libraries.
62964LD=$lt_LD
62965
62966# How to create reloadable object files.
62967reload_flag=$lt_reload_flag
62968reload_cmds=$lt_reload_cmds
62969
62970# Commands used to build an old-style archive.
62971old_archive_cmds=$lt_old_archive_cmds
62972
62973# A language specific compiler.
62974CC=$lt_compiler
62975
62976# Is the compiler the GNU compiler?
62977with_gcc=$GCC
62978
62979# Compiler flag to turn off builtin functions.
62980no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
62981
62982# Additional compiler flags for building library objects.
62983pic_flag=$lt_lt_prog_compiler_pic
62984
62985# How to pass a linker flag through the compiler.
62986wl=$lt_lt_prog_compiler_wl
62987
62988# Compiler flag to prevent dynamic linking.
62989link_static_flag=$lt_lt_prog_compiler_static
62990
62991# Does compiler simultaneously support -c and -o options?
62992compiler_c_o=$lt_lt_cv_prog_compiler_c_o
62993
62994# Whether or not to add -lc for building shared libraries.
62995build_libtool_need_lc=$archive_cmds_need_lc
62996
62997# Whether or not to disallow shared libs when runtime libs are static.
62998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
62999
63000# Compiler flag to allow reflexive dlopens.
63001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
63002
63003# Compiler flag to generate shared objects directly from archives.
63004whole_archive_flag_spec=$lt_whole_archive_flag_spec
63005
63006# Whether the compiler copes with passing no objects directly.
63007compiler_needs_object=$lt_compiler_needs_object
63008
63009# Create an old-style archive from a shared archive.
63010old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
63011
63012# Create a temporary old-style archive to link instead of a shared archive.
63013old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
63014
63015# Commands used to build a shared archive.
63016archive_cmds=$lt_archive_cmds
63017archive_expsym_cmds=$lt_archive_expsym_cmds
63018
63019# Commands used to build a loadable module if different from building
63020# a shared archive.
63021module_cmds=$lt_module_cmds
63022module_expsym_cmds=$lt_module_expsym_cmds
63023
63024# Whether we are building with GNU ld or not.
63025with_gnu_ld=$lt_with_gnu_ld
63026
63027# Flag that allows shared libraries with undefined symbols to be built.
63028allow_undefined_flag=$lt_allow_undefined_flag
63029
63030# Flag that enforces no undefined symbols.
63031no_undefined_flag=$lt_no_undefined_flag
63032
63033# Flag to hardcode \$libdir into a binary during linking.
63034# This must work even if \$libdir does not exist
63035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
63036
63037# Whether we need a single "-rpath" flag with a separated argument.
63038hardcode_libdir_separator=$lt_hardcode_libdir_separator
63039
63040# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
63041# DIR into the resulting binary.
63042hardcode_direct=$hardcode_direct
63043
63044# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
63045# DIR into the resulting binary and the resulting library dependency is
63046# "absolute",i.e impossible to change by setting \$shlibpath_var if the
63047# library is relocated.
63048hardcode_direct_absolute=$hardcode_direct_absolute
63049
63050# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
63051# into the resulting binary.
63052hardcode_minus_L=$hardcode_minus_L
63053
63054# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
63055# into the resulting binary.
63056hardcode_shlibpath_var=$hardcode_shlibpath_var
63057
63058# Set to "yes" if building a shared library automatically hardcodes DIR
63059# into the library and all subsequent libraries and executables linked
63060# against it.
63061hardcode_automatic=$hardcode_automatic
63062
63063# Set to yes if linker adds runtime paths of dependent libraries
63064# to runtime path list.
63065inherit_rpath=$inherit_rpath
63066
63067# Whether libtool must link a program against all its dependency libraries.
63068link_all_deplibs=$link_all_deplibs
63069
63070# Set to "yes" if exported symbols are required.
63071always_export_symbols=$always_export_symbols
63072
63073# The commands to list exported symbols.
63074export_symbols_cmds=$lt_export_symbols_cmds
63075
63076# Symbols that should not be listed in the preloaded symbols.
63077exclude_expsyms=$lt_exclude_expsyms
63078
63079# Symbols that must always be exported.
63080include_expsyms=$lt_include_expsyms
63081
63082# Commands necessary for linking programs (against libraries) with templates.
63083prelink_cmds=$lt_prelink_cmds
63084
63085# Commands necessary for finishing linking programs.
63086postlink_cmds=$lt_postlink_cmds
63087
63088# Specify filename containing input files.
63089file_list_spec=$lt_file_list_spec
63090
63091# How to hardcode a shared library path into an executable.
63092hardcode_action=$hardcode_action
63093
63094# ### END LIBTOOL CONFIG
63095
63096_LT_EOF
63097
63098    cat <<'_LT_EOF' >> "$cfgfile"
63099
63100# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
63101
63102# func_munge_path_list VARIABLE PATH
63103# -----------------------------------
63104# VARIABLE is name of variable containing _space_ separated list of
63105# directories to be munged by the contents of PATH, which is string
63106# having a format:
63107# "DIR[:DIR]:"
63108#       string "DIR[ DIR]" will be prepended to VARIABLE
63109# ":DIR[:DIR]"
63110#       string "DIR[ DIR]" will be appended to VARIABLE
63111# "DIRP[:DIRP]::[DIRA:]DIRA"
63112#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
63113#       "DIRA[ DIRA]" will be appended to VARIABLE
63114# "DIR[:DIR]"
63115#       VARIABLE will be replaced by "DIR[ DIR]"
63116func_munge_path_list ()
63117{
63118    case x$2 in
63119    x)
63120        ;;
63121    *:)
63122        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
63123        ;;
63124    x:*)
63125        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
63126        ;;
63127    *::*)
63128        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
63129        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
63130        ;;
63131    *)
63132        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
63133        ;;
63134    esac
63135}
63136
63137
63138# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
63139func_cc_basename ()
63140{
63141    for cc_temp in $*""; do
63142      case $cc_temp in
63143        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
63144        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
63145        \-*) ;;
63146        *) break;;
63147      esac
63148    done
63149    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
63150}
63151
63152
63153# ### END FUNCTIONS SHARED WITH CONFIGURE
63154
63155_LT_EOF
63156
63157  case $host_os in
63158  aix3*)
63159    cat <<\_LT_EOF >> "$cfgfile"
63160# AIX sometimes has problems with the GCC collect2 program.  For some
63161# reason, if we set the COLLECT_NAMES environment variable, the problems
63162# vanish in a puff of smoke.
63163if test set != "${COLLECT_NAMES+set}"; then
63164  COLLECT_NAMES=
63165  export COLLECT_NAMES
63166fi
63167_LT_EOF
63168    ;;
63169  esac
63170
63171
63172ltmain=$ac_aux_dir/ltmain.sh
63173
63174
63175  # We use sed instead of cat because bash on DJGPP gets confused if
63176  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
63177  # text mode, it properly converts lines to CR/LF.  This bash problem
63178  # is reportedly fixed, but why not run on old versions too?
63179  sed '$q' "$ltmain" >> "$cfgfile" \
63180     || (rm -f "$cfgfile"; exit 1)
63181
63182   mv -f "$cfgfile" "$ofile" ||
63183    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
63184  chmod +x "$ofile"
63185
63186 ;;
63187    "doc/dummy":C) : ;;
63188
63189  esac
63190done # for ac_tag
63191
63192
63193as_fn_exit 0
63194_ACEOF
63195ac_clean_files=$ac_clean_files_save
63196
63197test $ac_write_fail = 0 ||
63198  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
63199
63200
63201# configure is writing to config.log, and then calls config.status.
63202# config.status does its own redirection, appending to config.log.
63203# Unfortunately, on DOS this fails, as config.log is still kept open
63204# by configure, so config.status won't be able to write to it; its
63205# output is simply discarded.  So we exec the FD to /dev/null,
63206# effectively closing config.log, so it can be properly (re)opened and
63207# appended to by config.status.  When coming back to configure, we
63208# need to make the FD available again.
63209if test "$no_create" != yes; then
63210  ac_cs_success=:
63211  ac_config_status_args=
63212  test "$silent" = yes &&
63213    ac_config_status_args="$ac_config_status_args --quiet"
63214  exec 5>/dev/null
63215  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63216  exec 5>>config.log
63217  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63218  # would make configure fail if this is the last instruction.
63219  $ac_cs_success || as_fn_exit 1
63220fi
63221if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
63222  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
63223$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
63224fi
63225
63226echo "PSPP configured successfully."
63227
63228