1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="version.sh"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632gl_use_threads_default=
633gl_use_winpthreads_default=
634ac_func_list=
635ac_header_list=
636gl_log10_required=plain
637ac_subst_vars='ltstests_LTLIBOBJS
638ltstests_LIBOBJS
639lts_LTLIBOBJS
640lts_LIBOBJS
641am__EXEEXT_FALSE
642am__EXEEXT_TRUE
643LTLIBOBJS
644LIBOBJS
645PERL
646DVIPS
647TEXI2DVI
648HAVE_ICONV
649HEXVERSION
650HAVE_GLOBAL_SYMBOL_PIPE
651GLOBAL_SYMBOL_PIPE
652NAMESPACING
653DLL_VARIABLE
654WOE32DLL_FALSE
655WOE32DLL_TRUE
656LIBTESTS_LIBDEPS
657ltstests_WITNESS
658HAVE_CRTDEFS_H
659HAVE_WINT_T
660NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
661NEXT_WCHAR_H
662REPLACE_WCSTOK
663REPLACE_WCSFTIME
664REPLACE_WCSWIDTH
665REPLACE_WCWIDTH
666REPLACE_WCSNRTOMBS
667REPLACE_WCSRTOMBS
668REPLACE_WCRTOMB
669REPLACE_MBSNRTOWCS
670REPLACE_MBSRTOWCS
671REPLACE_MBRLEN
672REPLACE_MBRTOWC
673REPLACE_MBSINIT
674REPLACE_WCTOB
675REPLACE_BTOWC
676REPLACE_MBSTATE_T
677HAVE_DECL_WCWIDTH
678HAVE_DECL_WCTOB
679HAVE_WCSFTIME
680HAVE_WCSWIDTH
681HAVE_WCSTOK
682HAVE_WCSSTR
683HAVE_WCSPBRK
684HAVE_WCSSPN
685HAVE_WCSCSPN
686HAVE_WCSRCHR
687HAVE_WCSCHR
688HAVE_WCSDUP
689HAVE_WCSXFRM
690HAVE_WCSCOLL
691HAVE_WCSNCASECMP
692HAVE_WCSCASECMP
693HAVE_WCSNCMP
694HAVE_WCSCMP
695HAVE_WCSNCAT
696HAVE_WCSCAT
697HAVE_WCPNCPY
698HAVE_WCSNCPY
699HAVE_WCPCPY
700HAVE_WCSCPY
701HAVE_WCSNLEN
702HAVE_WCSLEN
703HAVE_WMEMSET
704HAVE_WMEMPCPY
705HAVE_WMEMMOVE
706HAVE_WMEMCPY
707HAVE_WMEMCMP
708HAVE_WMEMCHR
709HAVE_WCSNRTOMBS
710HAVE_WCSRTOMBS
711HAVE_WCRTOMB
712HAVE_MBSNRTOWCS
713HAVE_MBSRTOWCS
714HAVE_MBRLEN
715HAVE_MBRTOWC
716HAVE_MBSINIT
717HAVE_BTOWC
718GNULIB_WCSFTIME
719GNULIB_WCSWIDTH
720GNULIB_WCSTOK
721GNULIB_WCSSTR
722GNULIB_WCSPBRK
723GNULIB_WCSSPN
724GNULIB_WCSCSPN
725GNULIB_WCSRCHR
726GNULIB_WCSCHR
727GNULIB_WCSDUP
728GNULIB_WCSXFRM
729GNULIB_WCSCOLL
730GNULIB_WCSNCASECMP
731GNULIB_WCSCASECMP
732GNULIB_WCSNCMP
733GNULIB_WCSCMP
734GNULIB_WCSNCAT
735GNULIB_WCSCAT
736GNULIB_WCPNCPY
737GNULIB_WCSNCPY
738GNULIB_WCPCPY
739GNULIB_WCSCPY
740GNULIB_WCSNLEN
741GNULIB_WCSLEN
742GNULIB_WMEMSET
743GNULIB_WMEMPCPY
744GNULIB_WMEMMOVE
745GNULIB_WMEMCPY
746GNULIB_WMEMCMP
747GNULIB_WMEMCHR
748GNULIB_WCWIDTH
749GNULIB_WCSNRTOMBS
750GNULIB_WCSRTOMBS
751GNULIB_WCRTOMB
752GNULIB_MBSNRTOWCS
753GNULIB_MBSRTOWCS
754GNULIB_MBRLEN
755GNULIB_MBRTOWC
756GNULIB_MBSINIT
757GNULIB_WCTOB
758GNULIB_BTOWC
759LIBUNISTRING_UNITYPES_H
760LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE
761LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE
762LIBUNISTRING_UNISTR_H
763HAVE_UNISTD_H
764NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
765NEXT_UNISTD_H
766UNISTD_H_DEFINES_STRUCT_TIMESPEC
767PTHREAD_H_DEFINES_STRUCT_TIMESPEC
768SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
769TIME_H_DEFINES_STRUCT_TIMESPEC
770NEXT_AS_FIRST_DIRECTIVE_TIME_H
771NEXT_TIME_H
772REPLACE_LOCALTIME
773REPLACE_GMTIME
774REPLACE_TZSET
775REPLACE_TIMEGM
776REPLACE_STRFTIME
777REPLACE_NANOSLEEP
778REPLACE_MKTIME
779REPLACE_LOCALTIME_R
780REPLACE_CTIME
781HAVE_TIMEZONE_T
782HAVE_TZSET
783HAVE_TIMEGM
784HAVE_STRPTIME
785HAVE_NANOSLEEP
786HAVE_DECL_LOCALTIME_R
787GNULIB_TZSET
788GNULIB_TIME_RZ
789GNULIB_TIME_R
790GNULIB_TIMEGM
791GNULIB_STRPTIME
792GNULIB_STRFTIME
793GNULIB_NANOSLEEP
794GNULIB_LOCALTIME
795GNULIB_MKTIME
796GNULIB_CTIME
797INCTERMINFO
798LTLIBTERMINFO
799LIBTERMINFO
800HAVE_SYS_UIO_H
801NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
802NEXT_SYS_UIO_H
803WINDOWS_STAT_INODES
804WINDOWS_64_BIT_OFF_T
805NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
806NEXT_SYS_TYPES_H
807HAVE_WS2TCPIP_H
808HAVE_SYS_SOCKET_H
809NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
810NEXT_SYS_SOCKET_H
811HAVE_ACCEPT4
812HAVE_SA_FAMILY_T
813HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
814HAVE_STRUCT_SOCKADDR_STORAGE
815GNULIB_ACCEPT4
816GNULIB_SHUTDOWN
817GNULIB_SETSOCKOPT
818GNULIB_SENDTO
819GNULIB_RECVFROM
820GNULIB_SEND
821GNULIB_RECV
822GNULIB_LISTEN
823GNULIB_GETSOCKOPT
824GNULIB_GETSOCKNAME
825GNULIB_GETPEERNAME
826GNULIB_BIND
827GNULIB_ACCEPT
828GNULIB_CONNECT
829GNULIB_SOCKET
830NEXT_AS_FIRST_DIRECTIVE_STRING_H
831NEXT_STRING_H
832NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
833NEXT_STDLIB_H
834NEXT_AS_FIRST_DIRECTIVE_STDIO_H
835NEXT_STDIO_H
836NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
837NEXT_STDDEF_H
838GL_GENERATE_STDDEF_H_FALSE
839GL_GENERATE_STDDEF_H_TRUE
840STDDEF_H
841HAVE_WCHAR_T
842HAVE_MAX_ALIGN_T
843REPLACE_NULL
844HAVE__BOOL
845GL_GENERATE_STDBOOL_H_FALSE
846GL_GENERATE_STDBOOL_H_TRUE
847STDBOOL_H
848GL_GENERATE_STDARG_H_FALSE
849GL_GENERATE_STDARG_H_TRUE
850STDARG_H
851NEXT_AS_FIRST_DIRECTIVE_STDARG_H
852NEXT_STDARG_H
853GL_GENERATE_STDALIGN_H_FALSE
854GL_GENERATE_STDALIGN_H_TRUE
855STDALIGN_H
856LIBSOCKET
857HAVE_FEATURES_H
858REPLACE_VSPRINTF
859REPLACE_VSNPRINTF
860REPLACE_VPRINTF
861REPLACE_VFPRINTF
862REPLACE_VDPRINTF
863REPLACE_VASPRINTF
864REPLACE_TMPFILE
865REPLACE_STDIO_WRITE_FUNCS
866REPLACE_STDIO_READ_FUNCS
867REPLACE_SPRINTF
868REPLACE_SNPRINTF
869REPLACE_RENAMEAT
870REPLACE_RENAME
871REPLACE_REMOVE
872REPLACE_PRINTF
873REPLACE_POPEN
874REPLACE_PERROR
875REPLACE_OBSTACK_PRINTF
876REPLACE_GETLINE
877REPLACE_GETDELIM
878REPLACE_FTELLO
879REPLACE_FTELL
880REPLACE_FSEEKO
881REPLACE_FSEEK
882REPLACE_FREOPEN
883REPLACE_FPURGE
884REPLACE_FPRINTF
885REPLACE_FOPEN
886REPLACE_FFLUSH
887REPLACE_FDOPEN
888REPLACE_FCLOSE
889REPLACE_DPRINTF
890HAVE_VDPRINTF
891HAVE_VASPRINTF
892HAVE_RENAMEAT
893HAVE_POPEN
894HAVE_PCLOSE
895HAVE_FTELLO
896HAVE_FSEEKO
897HAVE_DPRINTF
898HAVE_DECL_VSNPRINTF
899HAVE_DECL_SNPRINTF
900HAVE_DECL_OBSTACK_PRINTF
901HAVE_DECL_GETLINE
902HAVE_DECL_GETDELIM
903HAVE_DECL_FTELLO
904HAVE_DECL_FSEEKO
905HAVE_DECL_FPURGE
906GNULIB_VSPRINTF_POSIX
907GNULIB_VSNPRINTF
908GNULIB_VPRINTF_POSIX
909GNULIB_VPRINTF
910GNULIB_VFPRINTF_POSIX
911GNULIB_VFPRINTF
912GNULIB_VDPRINTF
913GNULIB_VSCANF
914GNULIB_VFSCANF
915GNULIB_VASPRINTF
916GNULIB_TMPFILE
917GNULIB_STDIO_H_SIGPIPE
918GNULIB_STDIO_H_NONBLOCKING
919GNULIB_SPRINTF_POSIX
920GNULIB_SNPRINTF
921GNULIB_SCANF
922GNULIB_RENAMEAT
923GNULIB_RENAME
924GNULIB_REMOVE
925GNULIB_PUTS
926GNULIB_PUTCHAR
927GNULIB_PUTC
928GNULIB_PRINTF_POSIX
929GNULIB_PRINTF
930GNULIB_POPEN
931GNULIB_PERROR
932GNULIB_PCLOSE
933GNULIB_OBSTACK_PRINTF_POSIX
934GNULIB_OBSTACK_PRINTF
935GNULIB_GETLINE
936GNULIB_GETDELIM
937GNULIB_GETCHAR
938GNULIB_GETC
939GNULIB_FWRITE
940GNULIB_FTELLO
941GNULIB_FTELL
942GNULIB_FSEEKO
943GNULIB_FSEEK
944GNULIB_FSCANF
945GNULIB_FREOPEN
946GNULIB_FREAD
947GNULIB_FPUTS
948GNULIB_FPUTC
949GNULIB_FPURGE
950GNULIB_FPRINTF_POSIX
951GNULIB_FPRINTF
952GNULIB_FOPEN
953GNULIB_FGETS
954GNULIB_FGETC
955GNULIB_FFLUSH
956GNULIB_FDOPEN
957GNULIB_FCLOSE
958GNULIB_DPRINTF
959NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
960NEXT_SIGNAL_H
961REPLACE_RAISE
962REPLACE_PTHREAD_SIGMASK
963HAVE_SIGHANDLER_T
964HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
965HAVE_STRUCT_SIGACTION_SA_SIGACTION
966HAVE_SIGACTION
967HAVE_SIGINFO_T
968HAVE_SIGSET_T
969HAVE_RAISE
970HAVE_PTHREAD_SIGMASK
971HAVE_POSIX_SIGNALBLOCKING
972GNULIB_SIGACTION
973GNULIB_SIGPROCMASK
974GNULIB_SIGNAL_H_SIGPIPE
975GNULIB_RAISE
976GNULIB_PTHREAD_SIGMASK
977NO_CXX
978UNDEFINE_STRTOK_R
979REPLACE_STRSIGNAL
980REPLACE_STRERROR_R
981REPLACE_STRERROR
982REPLACE_STRTOK_R
983REPLACE_STRCASESTR
984REPLACE_STRSTR
985REPLACE_STRNLEN
986REPLACE_STRNDUP
987REPLACE_STRNCAT
988REPLACE_STRDUP
989REPLACE_STRCHRNUL
990REPLACE_STPNCPY
991REPLACE_MEMMEM
992REPLACE_MEMCHR
993HAVE_STRVERSCMP
994HAVE_DECL_STRSIGNAL
995HAVE_DECL_STRERROR_R
996HAVE_DECL_STRTOK_R
997HAVE_STRCASESTR
998HAVE_STRSEP
999HAVE_STRPBRK
1000HAVE_DECL_STRNLEN
1001HAVE_DECL_STRNDUP
1002HAVE_DECL_STRDUP
1003HAVE_STRCHRNUL
1004HAVE_STPNCPY
1005HAVE_STPCPY
1006HAVE_RAWMEMCHR
1007HAVE_DECL_MEMRCHR
1008HAVE_MEMPCPY
1009HAVE_DECL_MEMMEM
1010HAVE_FFSLL
1011HAVE_FFSL
1012HAVE_EXPLICIT_BZERO
1013HAVE_MBSLEN
1014GNULIB_STRVERSCMP
1015GNULIB_STRSIGNAL
1016GNULIB_STRERROR_R
1017GNULIB_STRERROR
1018GNULIB_MBSTOK_R
1019GNULIB_MBSSEP
1020GNULIB_MBSSPN
1021GNULIB_MBSPBRK
1022GNULIB_MBSCSPN
1023GNULIB_MBSCASESTR
1024GNULIB_MBSPCASECMP
1025GNULIB_MBSNCASECMP
1026GNULIB_MBSCASECMP
1027GNULIB_MBSSTR
1028GNULIB_MBSRCHR
1029GNULIB_MBSCHR
1030GNULIB_MBSNLEN
1031GNULIB_MBSLEN
1032GNULIB_STRTOK_R
1033GNULIB_STRCASESTR
1034GNULIB_STRSTR
1035GNULIB_STRSEP
1036GNULIB_STRPBRK
1037GNULIB_STRNLEN
1038GNULIB_STRNDUP
1039GNULIB_STRNCAT
1040GNULIB_STRDUP
1041GNULIB_STRCHRNUL
1042GNULIB_STPNCPY
1043GNULIB_STPCPY
1044GNULIB_RAWMEMCHR
1045GNULIB_MEMRCHR
1046GNULIB_MEMPCPY
1047GNULIB_MEMMEM
1048GNULIB_MEMCHR
1049GNULIB_FFSLL
1050GNULIB_FFSL
1051GNULIB_EXPLICIT_BZERO
1052NEXT_AS_FIRST_DIRECTIVE_MATH_H
1053NEXT_MATH_H
1054REPLACE_WCTOMB
1055REPLACE_UNSETENV
1056REPLACE_STRTOLD
1057REPLACE_STRTOD
1058REPLACE_SETSTATE
1059REPLACE_SETENV
1060REPLACE_REALPATH
1061REPLACE_REALLOC
1062REPLACE_RANDOM_R
1063REPLACE_RANDOM
1064REPLACE_QSORT_R
1065REPLACE_PUTENV
1066REPLACE_PTSNAME_R
1067REPLACE_PTSNAME
1068REPLACE_MKSTEMP
1069REPLACE_MBTOWC
1070REPLACE_MALLOC
1071REPLACE_INITSTATE
1072REPLACE_CANONICALIZE_FILE_NAME
1073REPLACE_CALLOC
1074HAVE_DECL_UNSETENV
1075HAVE_UNLOCKPT
1076HAVE_SYS_LOADAVG_H
1077HAVE_STRUCT_RANDOM_DATA
1078HAVE_STRTOULL
1079HAVE_STRTOLL
1080HAVE_STRTOLD
1081HAVE_STRTOD
1082HAVE_DECL_SETSTATE
1083HAVE_SETSTATE
1084HAVE_DECL_SETENV
1085HAVE_SETENV
1086HAVE_SECURE_GETENV
1087HAVE_RPMATCH
1088HAVE_REALPATH
1089HAVE_REALLOCARRAY
1090HAVE_RANDOM_R
1091HAVE_RANDOM_H
1092HAVE_RANDOM
1093HAVE_QSORT_R
1094HAVE_PTSNAME_R
1095HAVE_PTSNAME
1096HAVE_POSIX_OPENPT
1097HAVE_MKSTEMPS
1098HAVE_MKSTEMP
1099HAVE_MKOSTEMPS
1100HAVE_MKOSTEMP
1101HAVE_MKDTEMP
1102HAVE_MBTOWC
1103HAVE_DECL_INITSTATE
1104HAVE_INITSTATE
1105HAVE_GRANTPT
1106HAVE_GETSUBOPT
1107HAVE_DECL_GETLOADAVG
1108HAVE_CANONICALIZE_FILE_NAME
1109HAVE_ATOLL
1110HAVE__EXIT
1111GNULIB_WCTOMB
1112GNULIB_UNSETENV
1113GNULIB_UNLOCKPT
1114GNULIB_SYSTEM_POSIX
1115GNULIB_STRTOULL
1116GNULIB_STRTOLL
1117GNULIB_STRTOLD
1118GNULIB_STRTOD
1119GNULIB_SETENV
1120GNULIB_SECURE_GETENV
1121GNULIB_RPMATCH
1122GNULIB_REALPATH
1123GNULIB_REALLOC_POSIX
1124GNULIB_REALLOCARRAY
1125GNULIB_RANDOM_R
1126GNULIB_RANDOM
1127GNULIB_QSORT_R
1128GNULIB_PUTENV
1129GNULIB_PTSNAME_R
1130GNULIB_PTSNAME
1131GNULIB_POSIX_OPENPT
1132GNULIB_MKSTEMPS
1133GNULIB_MKSTEMP
1134GNULIB_MKOSTEMPS
1135GNULIB_MKOSTEMP
1136GNULIB_MKDTEMP
1137GNULIB_MBTOWC
1138GNULIB_MALLOC_POSIX
1139GNULIB_GRANTPT
1140GNULIB_GETSUBOPT
1141GNULIB_GETLOADAVG
1142GNULIB_CANONICALIZE_FILE_NAME
1143GNULIB_CALLOC_POSIX
1144GNULIB_ATOLL
1145GNULIB__EXIT
1146LOG10_LIBM
1147POW_LIBM
1148LTLIBMULTITHREAD
1149LIBMULTITHREAD
1150LTLIBTHREAD
1151LIBTHREAD
1152LIBSTDTHREAD
1153LIB_SCHED_YIELD
1154LIBPMULTITHREAD
1155LIBPTHREAD
1156INCLUDED_LIBXML_FALSE
1157INCLUDED_LIBXML_TRUE
1158LIBXML_H
1159INCXML
1160LTLIBXML
1161LIBXML
1162INCLUDED_LIBGLIB_FALSE
1163INCLUDED_LIBGLIB_TRUE
1164LIBGLIB_H
1165INCGLIB
1166LTLIBGLIB
1167LIBGLIB
1168INCLUDED_LIBCROCO_FALSE
1169INCLUDED_LIBCROCO_TRUE
1170INCCROCO
1171LTLIBCROCO
1172LIBCROCO
1173ISNAN_LIBM
1174ISNANL_LIBM
1175ISNAND_LIBM
1176ISNANF_LIBM
1177ISINF_LIBM
1178NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1179NEXT_INTTYPES_H
1180UINT64_MAX_EQ_ULONG_MAX
1181UINT32_MAX_LT_UINTMAX_MAX
1182PRIPTR_PREFIX
1183INT64_MAX_EQ_LONG_MAX
1184INT32_MAX_LT_INTMAX_MAX
1185REPLACE_STRTOUMAX
1186REPLACE_STRTOIMAX
1187HAVE_IMAXDIV_T
1188HAVE_DECL_STRTOUMAX
1189HAVE_DECL_STRTOIMAX
1190HAVE_DECL_IMAXDIV
1191HAVE_DECL_IMAXABS
1192GNULIB_STRTOUMAX
1193GNULIB_STRTOIMAX
1194GNULIB_IMAXDIV
1195GNULIB_IMAXABS
1196GL_GENERATE_STDINT_H_FALSE
1197GL_GENERATE_STDINT_H_TRUE
1198STDINT_H
1199HAVE_SYS_INTTYPES_H
1200HAVE_SYS_BITYPES_H
1201HAVE_C99_STDINT_H
1202WINT_T_SUFFIX
1203WCHAR_T_SUFFIX
1204SIG_ATOMIC_T_SUFFIX
1205SIZE_T_SUFFIX
1206PTRDIFF_T_SUFFIX
1207HAVE_SIGNED_WINT_T
1208HAVE_SIGNED_WCHAR_T
1209HAVE_SIGNED_SIG_ATOMIC_T
1210BITSIZEOF_WINT_T
1211BITSIZEOF_WCHAR_T
1212BITSIZEOF_SIG_ATOMIC_T
1213BITSIZEOF_SIZE_T
1214BITSIZEOF_PTRDIFF_T
1215APPLE_UNIVERSAL_BUILD
1216HAVE_STDINT_H
1217NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1218NEXT_STDINT_H
1219HAVE_SYS_TYPES_H
1220HAVE_INTTYPES_H
1221HAVE_WCHAR_H
1222GNULIB_OVERRIDES_WINT_T
1223GL_GENERATE_LIMITS_H_FALSE
1224GL_GENERATE_LIMITS_H_TRUE
1225LIMITS_H
1226NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1227NEXT_LIMITS_H
1228LTLIBICONV
1229LIBICONV
1230NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1231NEXT_SYS_TIME_H
1232REPLACE_STRUCT_TIMEVAL
1233REPLACE_GETTIMEOFDAY
1234HAVE_SYS_TIME_H
1235HAVE_STRUCT_TIMEVAL
1236HAVE_GETTIMEOFDAY
1237GNULIB_GETTIMEOFDAY
1238LTLIBINTL
1239LIBINTL
1240GETHOSTNAME_LIB
1241WINDOWS_64_BIT_ST_SIZE
1242WINDOWS_STAT_TIMESPEC
1243NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1244NEXT_SYS_STAT_H
1245REPLACE_UTIMENSAT
1246REPLACE_STAT
1247REPLACE_MKNOD
1248REPLACE_MKFIFO
1249REPLACE_MKDIR
1250REPLACE_LSTAT
1251REPLACE_FUTIMENS
1252REPLACE_FSTATAT
1253REPLACE_FSTAT
1254REPLACE_FCHMODAT
1255HAVE_UTIMENSAT
1256HAVE_MKNODAT
1257HAVE_MKNOD
1258HAVE_MKFIFOAT
1259HAVE_MKFIFO
1260HAVE_MKDIRAT
1261HAVE_LSTAT
1262HAVE_LCHMOD
1263HAVE_GETUMASK
1264HAVE_FUTIMENS
1265HAVE_FSTATAT
1266HAVE_FCHMODAT
1267GNULIB_OVERRIDES_STRUCT_STAT
1268GNULIB_UTIMENSAT
1269GNULIB_STAT
1270GNULIB_MKNODAT
1271GNULIB_MKNOD
1272GNULIB_MKFIFOAT
1273GNULIB_MKFIFO
1274GNULIB_MKDIRAT
1275GNULIB_LSTAT
1276GNULIB_LCHMOD
1277GNULIB_GETUMASK
1278GNULIB_FUTIMENS
1279GNULIB_FSTATAT
1280GNULIB_FSTAT
1281GNULIB_FCHMODAT
1282HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1283REPLACE_TRUNCL
1284REPLACE_TRUNCF
1285REPLACE_TRUNC
1286REPLACE_TANHF
1287REPLACE_TANF
1288REPLACE_SQRTL
1289REPLACE_SQRTF
1290REPLACE_SINHF
1291REPLACE_SINF
1292REPLACE_SIGNBIT_USING_GCC
1293REPLACE_SIGNBIT
1294REPLACE_ROUNDL
1295REPLACE_ROUNDF
1296REPLACE_ROUND
1297REPLACE_RINTL
1298REPLACE_REMAINDERL
1299REPLACE_REMAINDERF
1300REPLACE_REMAINDER
1301REPLACE_NAN
1302REPLACE_MODFL
1303REPLACE_MODFF
1304REPLACE_MODF
1305REPLACE_LOGBL
1306REPLACE_LOGBF
1307REPLACE_LOGB
1308REPLACE_LOG2L
1309REPLACE_LOG2F
1310REPLACE_LOG2
1311REPLACE_LOG1PL
1312REPLACE_LOG1PF
1313REPLACE_LOG1P
1314REPLACE_LOG10L
1315REPLACE_LOG10F
1316REPLACE_LOG10
1317REPLACE_LOGL
1318REPLACE_LOGF
1319REPLACE_LOG
1320REPLACE_LDEXPL
1321REPLACE_ISNAN
1322REPLACE_ISINF
1323REPLACE_ISFINITE
1324REPLACE_ILOGBL
1325REPLACE_ILOGBF
1326REPLACE_ILOGB
1327REPLACE_HYPOTL
1328REPLACE_HYPOTF
1329REPLACE_HYPOT
1330REPLACE_HUGE_VAL
1331REPLACE_FREXPL
1332REPLACE_FREXP
1333REPLACE_FREXPF
1334REPLACE_FMODL
1335REPLACE_FMODF
1336REPLACE_FMOD
1337REPLACE_FMAL
1338REPLACE_FMAF
1339REPLACE_FMA
1340REPLACE_FLOORL
1341REPLACE_FLOORF
1342REPLACE_FLOOR
1343REPLACE_FABSL
1344REPLACE_EXP2L
1345REPLACE_EXP2
1346REPLACE_EXPM1L
1347REPLACE_EXPM1F
1348REPLACE_EXPM1
1349REPLACE_EXPL
1350REPLACE_EXPF
1351REPLACE_COSHF
1352REPLACE_COSF
1353REPLACE_CEILL
1354REPLACE_CEILF
1355REPLACE_CEIL
1356REPLACE_CBRTL
1357REPLACE_CBRTF
1358REPLACE_ATAN2F
1359REPLACE_ATANF
1360REPLACE_ASINF
1361REPLACE_ACOSF
1362HAVE_DECL_TRUNCL
1363HAVE_DECL_TRUNCF
1364HAVE_DECL_TRUNC
1365HAVE_DECL_TANL
1366HAVE_DECL_SQRTL
1367HAVE_DECL_SINL
1368HAVE_DECL_ROUNDL
1369HAVE_DECL_ROUNDF
1370HAVE_DECL_ROUND
1371HAVE_DECL_RINTF
1372HAVE_DECL_REMAINDERL
1373HAVE_DECL_REMAINDER
1374HAVE_DECL_LOGB
1375HAVE_DECL_LOG2L
1376HAVE_DECL_LOG2F
1377HAVE_DECL_LOG2
1378HAVE_DECL_LOG10L
1379HAVE_DECL_LOGL
1380HAVE_DECL_LDEXPL
1381HAVE_DECL_FREXPL
1382HAVE_DECL_FLOORL
1383HAVE_DECL_FLOORF
1384HAVE_DECL_EXPM1L
1385HAVE_DECL_EXP2L
1386HAVE_DECL_EXP2F
1387HAVE_DECL_EXP2
1388HAVE_DECL_EXPL
1389HAVE_DECL_COSL
1390HAVE_DECL_COPYSIGNF
1391HAVE_DECL_CEILL
1392HAVE_DECL_CEILF
1393HAVE_DECL_CBRTL
1394HAVE_DECL_CBRTF
1395HAVE_DECL_ATANL
1396HAVE_DECL_ASINL
1397HAVE_DECL_ACOSL
1398HAVE_TANHF
1399HAVE_TANL
1400HAVE_TANF
1401HAVE_SQRTL
1402HAVE_SQRTF
1403HAVE_SINHF
1404HAVE_SINL
1405HAVE_SINF
1406HAVE_RINTL
1407HAVE_RINT
1408HAVE_REMAINDERF
1409HAVE_REMAINDER
1410HAVE_POWF
1411HAVE_MODFL
1412HAVE_MODFF
1413HAVE_LOGBL
1414HAVE_LOGBF
1415HAVE_LOG1PL
1416HAVE_LOG1PF
1417HAVE_LOG1P
1418HAVE_LOG10L
1419HAVE_LOG10F
1420HAVE_LOGL
1421HAVE_LOGF
1422HAVE_LDEXPF
1423HAVE_ISNANL
1424HAVE_ISNAND
1425HAVE_ISNANF
1426HAVE_ILOGBL
1427HAVE_ILOGBF
1428HAVE_ILOGB
1429HAVE_HYPOTL
1430HAVE_HYPOTF
1431HAVE_FREXPF
1432HAVE_FMODL
1433HAVE_FMODF
1434HAVE_FMAL
1435HAVE_FMAF
1436HAVE_FMA
1437HAVE_FABSL
1438HAVE_FABSF
1439HAVE_EXPM1F
1440HAVE_EXPM1
1441HAVE_EXPL
1442HAVE_EXPF
1443HAVE_COSHF
1444HAVE_COSL
1445HAVE_COSF
1446HAVE_COPYSIGNL
1447HAVE_COPYSIGN
1448HAVE_CBRTL
1449HAVE_CBRTF
1450HAVE_CBRT
1451HAVE_ATAN2F
1452HAVE_ATANL
1453HAVE_ATANF
1454HAVE_ASINL
1455HAVE_ASINF
1456HAVE_ACOSL
1457HAVE_ACOSF
1458GNULIB_TRUNCL
1459GNULIB_TRUNCF
1460GNULIB_TRUNC
1461GNULIB_TANHF
1462GNULIB_TANL
1463GNULIB_TANF
1464GNULIB_SQRTL
1465GNULIB_SQRTF
1466GNULIB_SINHF
1467GNULIB_SINL
1468GNULIB_SINF
1469GNULIB_SIGNBIT
1470GNULIB_ROUNDL
1471GNULIB_ROUNDF
1472GNULIB_ROUND
1473GNULIB_RINTL
1474GNULIB_RINTF
1475GNULIB_RINT
1476GNULIB_REMAINDERL
1477GNULIB_REMAINDERF
1478GNULIB_REMAINDER
1479GNULIB_POWF
1480GNULIB_MODFL
1481GNULIB_MODFF
1482GNULIB_MODF
1483GNULIB_LOGBL
1484GNULIB_LOGBF
1485GNULIB_LOGB
1486GNULIB_LOG2L
1487GNULIB_LOG2F
1488GNULIB_LOG2
1489GNULIB_LOG1PL
1490GNULIB_LOG1PF
1491GNULIB_LOG1P
1492GNULIB_LOG10L
1493GNULIB_LOG10F
1494GNULIB_LOG10
1495GNULIB_LOGL
1496GNULIB_LOGF
1497GNULIB_LOG
1498GNULIB_LDEXPL
1499GNULIB_LDEXPF
1500GNULIB_ISNANL
1501GNULIB_ISNAND
1502GNULIB_ISNANF
1503GNULIB_ISNAN
1504GNULIB_ISINF
1505GNULIB_ISFINITE
1506GNULIB_ILOGBL
1507GNULIB_ILOGBF
1508GNULIB_ILOGB
1509GNULIB_HYPOTL
1510GNULIB_HYPOTF
1511GNULIB_HYPOT
1512GNULIB_FREXPL
1513GNULIB_FREXP
1514GNULIB_FREXPF
1515GNULIB_FMODL
1516GNULIB_FMODF
1517GNULIB_FMOD
1518GNULIB_FMAL
1519GNULIB_FMAF
1520GNULIB_FMA
1521GNULIB_FLOORL
1522GNULIB_FLOORF
1523GNULIB_FLOOR
1524GNULIB_FABSL
1525GNULIB_FABSF
1526GNULIB_EXPM1L
1527GNULIB_EXPM1F
1528GNULIB_EXPM1
1529GNULIB_EXP2L
1530GNULIB_EXP2F
1531GNULIB_EXP2
1532GNULIB_EXPL
1533GNULIB_EXPF
1534GNULIB_COSHF
1535GNULIB_COSL
1536GNULIB_COSF
1537GNULIB_COPYSIGNL
1538GNULIB_COPYSIGNF
1539GNULIB_COPYSIGN
1540GNULIB_CEILL
1541GNULIB_CEILF
1542GNULIB_CEIL
1543GNULIB_CBRTL
1544GNULIB_CBRTF
1545GNULIB_CBRT
1546GNULIB_ATAN2F
1547GNULIB_ATANL
1548GNULIB_ATANF
1549GNULIB_ASINL
1550GNULIB_ASINF
1551GNULIB_ACOSL
1552GNULIB_ACOSF
1553REPLACE_ITOLD
1554GL_GENERATE_FLOAT_H_FALSE
1555GL_GENERATE_FLOAT_H_TRUE
1556FLOAT_H
1557NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1558NEXT_FLOAT_H
1559NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1560NEXT_FCNTL_H
1561REPLACE_OPENAT
1562REPLACE_OPEN
1563REPLACE_FCNTL
1564REPLACE_CREAT
1565HAVE_OPENAT
1566HAVE_FCNTL
1567GNULIB_OPENAT
1568GNULIB_OPEN
1569GNULIB_NONBLOCKING
1570GNULIB_FCNTL
1571GNULIB_CREAT
1572FABS_LIBM
1573EOVERFLOW_VALUE
1574EOVERFLOW_HIDDEN
1575ENOLINK_VALUE
1576ENOLINK_HIDDEN
1577EMULTIHOP_VALUE
1578EMULTIHOP_HIDDEN
1579GL_GENERATE_ERRNO_H_FALSE
1580GL_GENERATE_ERRNO_H_TRUE
1581ERRNO_H
1582NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1583NEXT_ERRNO_H
1584PRAGMA_COLUMNS
1585PRAGMA_SYSTEM_HEADER
1586INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1587INCLUDE_NEXT
1588HAVE_WINSOCK2_H
1589HAVE_MSVC_INVALID_PARAMETER_HANDLER
1590UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1591UNISTD_H_HAVE_WINSOCK2_H
1592UNISTD_H_HAVE_SYS_RANDOM_H
1593REPLACE_WRITE
1594REPLACE_USLEEP
1595REPLACE_UNLINKAT
1596REPLACE_UNLINK
1597REPLACE_TTYNAME_R
1598REPLACE_TRUNCATE
1599REPLACE_SYMLINKAT
1600REPLACE_SYMLINK
1601REPLACE_SLEEP
1602REPLACE_RMDIR
1603REPLACE_READLINKAT
1604REPLACE_READLINK
1605REPLACE_READ
1606REPLACE_PWRITE
1607REPLACE_PREAD
1608REPLACE_LSEEK
1609REPLACE_LINKAT
1610REPLACE_LINK
1611REPLACE_LCHOWN
1612REPLACE_ISATTY
1613REPLACE_GETPASS
1614REPLACE_GETPAGESIZE
1615REPLACE_GETGROUPS
1616REPLACE_GETLOGIN_R
1617REPLACE_GETDTABLESIZE
1618REPLACE_GETDOMAINNAME
1619REPLACE_GETCWD
1620REPLACE_FTRUNCATE
1621REPLACE_FCHOWNAT
1622REPLACE_FACCESSAT
1623REPLACE_DUP2
1624REPLACE_DUP
1625REPLACE_CLOSE
1626REPLACE_CHOWN
1627REPLACE_ACCESS
1628HAVE_SYS_PARAM_H
1629HAVE_OS_H
1630HAVE_DECL_TTYNAME_R
1631HAVE_DECL_TRUNCATE
1632HAVE_DECL_SETHOSTNAME
1633HAVE_DECL_GETUSERSHELL
1634HAVE_DECL_GETPAGESIZE
1635HAVE_DECL_GETLOGIN_R
1636HAVE_DECL_GETLOGIN
1637HAVE_DECL_GETDOMAINNAME
1638HAVE_DECL_FDATASYNC
1639HAVE_DECL_FCHDIR
1640HAVE_DECL_ENVIRON
1641HAVE_USLEEP
1642HAVE_UNLINKAT
1643HAVE_SYMLINKAT
1644HAVE_SYMLINK
1645HAVE_SLEEP
1646HAVE_SETHOSTNAME
1647HAVE_READLINKAT
1648HAVE_READLINK
1649HAVE_PWRITE
1650HAVE_PREAD
1651HAVE_PIPE2
1652HAVE_PIPE
1653HAVE_LINKAT
1654HAVE_LINK
1655HAVE_LCHOWN
1656HAVE_GROUP_MEMBER
1657HAVE_GETPASS
1658HAVE_GETPAGESIZE
1659HAVE_GETLOGIN
1660HAVE_GETHOSTNAME
1661HAVE_GETGROUPS
1662HAVE_GETENTROPY
1663HAVE_GETDTABLESIZE
1664HAVE_FTRUNCATE
1665HAVE_FSYNC
1666HAVE_FDATASYNC
1667HAVE_FCHOWNAT
1668HAVE_FCHDIR
1669HAVE_FACCESSAT
1670HAVE_EUIDACCESS
1671HAVE_DUP3
1672HAVE_COPY_FILE_RANGE
1673HAVE_CHOWN
1674GNULIB_WRITE
1675GNULIB_USLEEP
1676GNULIB_UNLINKAT
1677GNULIB_UNLINK
1678GNULIB_UNISTD_H_SIGPIPE
1679GNULIB_UNISTD_H_NONBLOCKING
1680GNULIB_TTYNAME_R
1681GNULIB_TRUNCATE
1682GNULIB_SYMLINKAT
1683GNULIB_SYMLINK
1684GNULIB_SLEEP
1685GNULIB_SETHOSTNAME
1686GNULIB_RMDIR
1687GNULIB_READLINKAT
1688GNULIB_READLINK
1689GNULIB_READ
1690GNULIB_PWRITE
1691GNULIB_PREAD
1692GNULIB_PIPE2
1693GNULIB_PIPE
1694GNULIB_LSEEK
1695GNULIB_LINKAT
1696GNULIB_LINK
1697GNULIB_LCHOWN
1698GNULIB_ISATTY
1699GNULIB_GROUP_MEMBER
1700GNULIB_GETUSERSHELL
1701GNULIB_GETPASS
1702GNULIB_GETPAGESIZE
1703GNULIB_GETOPT_POSIX
1704GNULIB_GETLOGIN_R
1705GNULIB_GETLOGIN
1706GNULIB_GETHOSTNAME
1707GNULIB_GETGROUPS
1708GNULIB_GETENTROPY
1709GNULIB_GETDTABLESIZE
1710GNULIB_GETDOMAINNAME
1711GNULIB_GETCWD
1712GNULIB_FTRUNCATE
1713GNULIB_FSYNC
1714GNULIB_FDATASYNC
1715GNULIB_FCHOWNAT
1716GNULIB_FCHDIR
1717GNULIB_FACCESSAT
1718GNULIB_EUIDACCESS
1719GNULIB_ENVIRON
1720GNULIB_DUP3
1721GNULIB_DUP2
1722GNULIB_DUP
1723GNULIB_COPY_FILE_RANGE
1724GNULIB_CLOSE
1725GNULIB_CHOWN
1726GNULIB_CHDIR
1727GNULIB_ACCESS
1728HAVE_ALLOCA_H
1729GL_GENERATE_ALLOCA_H_FALSE
1730GL_GENERATE_ALLOCA_H_TRUE
1731ALLOCA_H
1732ALLOCA
1733GL_COND_LIBTOOL_FALSE
1734GL_COND_LIBTOOL_TRUE
1735WOE32_FALSE
1736WOE32_TRUE
1737RC
1738LT_SYS_LIBRARY_PATH
1739OTOOL64
1740OTOOL
1741LIPO
1742NMEDIT
1743DSYMUTIL
1744MANIFEST_TOOL
1745ac_ct_AR
1746LN_S
1747NM
1748ac_ct_DUMPBIN
1749DUMPBIN
1750LD
1751FGREP
1752SED
1753LIBTOOL
1754OBJDUMP
1755DLLTOOL
1756AS
1757RANLIB
1758ARFLAGS
1759AR
1760EGREP
1761GREP
1762host_os
1763host_vendor
1764host_cpu
1765host
1766build_os
1767build_vendor
1768build_cpu
1769build
1770CPP
1771am__fastdepCC_FALSE
1772am__fastdepCC_TRUE
1773CCDEPMODE
1774am__nodep
1775AMDEPBACKSLASH
1776AMDEP_FALSE
1777AMDEP_TRUE
1778am__include
1779DEPDIR
1780OBJEXT
1781EXEEXT
1782ac_ct_CC
1783CPPFLAGS
1784LDFLAGS
1785CFLAGS
1786CC
1787AM_BACKSLASH
1788AM_DEFAULT_VERBOSITY
1789AM_DEFAULT_V
1790AM_V
1791am__untar
1792am__tar
1793AMTAR
1794am__leading_dot
1795SET_MAKE
1796AWK
1797mkdir_p
1798MKDIR_P
1799INSTALL_STRIP_PROGRAM
1800STRIP
1801install_sh
1802MAKEINFO
1803AUTOHEADER
1804AUTOMAKE
1805AUTOCONF
1806ACLOCAL
1807VERSION
1808PACKAGE
1809CYGPATH_W
1810am__isrc
1811INSTALL_DATA
1812INSTALL_SCRIPT
1813INSTALL_PROGRAM
1814target_alias
1815host_alias
1816build_alias
1817LIBS
1818ECHO_T
1819ECHO_N
1820ECHO_C
1821DEFS
1822mandir
1823localedir
1824libdir
1825psdir
1826pdfdir
1827dvidir
1828htmldir
1829infodir
1830docdir
1831oldincludedir
1832includedir
1833localstatedir
1834sharedstatedir
1835sysconfdir
1836datadir
1837datarootdir
1838libexecdir
1839sbindir
1840bindir
1841program_transform_name
1842prefix
1843exec_prefix
1844PACKAGE_URL
1845PACKAGE_BUGREPORT
1846PACKAGE_STRING
1847PACKAGE_VERSION
1848PACKAGE_TARNAME
1849PACKAGE_NAME
1850PATH_SEPARATOR
1851SHELL
1852am__quote'
1853ac_subst_files=''
1854ac_user_opts='
1855enable_option_checking
1856enable_silent_rules
1857enable_dependency_tracking
1858enable_largefile
1859enable_threads
1860enable_shared
1861enable_static
1862with_pic
1863enable_fast_install
1864with_aix_soname
1865with_gnu_ld
1866with_sysroot
1867enable_libtool_lock
1868enable_cross_guesses
1869enable_rpath
1870with_libiconv_prefix
1871enable_curses
1872with_libncurses_prefix
1873with_libtermcap_prefix
1874with_libxcurses_prefix
1875with_libcurses_prefix
1876enable_namespacing
1877'
1878      ac_precious_vars='build_alias
1879host_alias
1880target_alias
1881CC
1882CFLAGS
1883LDFLAGS
1884LIBS
1885CPPFLAGS
1886CPP
1887LT_SYS_LIBRARY_PATH'
1888
1889
1890# Initialize some variables set by options.
1891ac_init_help=
1892ac_init_version=false
1893ac_unrecognized_opts=
1894ac_unrecognized_sep=
1895# The variables have the same names as the options, with
1896# dashes changed to underlines.
1897cache_file=/dev/null
1898exec_prefix=NONE
1899no_create=
1900no_recursion=
1901prefix=NONE
1902program_prefix=NONE
1903program_suffix=NONE
1904program_transform_name=s,x,x,
1905silent=
1906site=
1907srcdir=
1908verbose=
1909x_includes=NONE
1910x_libraries=NONE
1911
1912# Installation directory options.
1913# These are left unexpanded so users can "make install exec_prefix=/foo"
1914# and all the variables that are supposed to be based on exec_prefix
1915# by default will actually change.
1916# Use braces instead of parens because sh, perl, etc. also accept them.
1917# (The list follows the same order as the GNU Coding Standards.)
1918bindir='${exec_prefix}/bin'
1919sbindir='${exec_prefix}/sbin'
1920libexecdir='${exec_prefix}/libexec'
1921datarootdir='${prefix}/share'
1922datadir='${datarootdir}'
1923sysconfdir='${prefix}/etc'
1924sharedstatedir='${prefix}/com'
1925localstatedir='${prefix}/var'
1926includedir='${prefix}/include'
1927oldincludedir='/usr/include'
1928docdir='${datarootdir}/doc/${PACKAGE}'
1929infodir='${datarootdir}/info'
1930htmldir='${docdir}'
1931dvidir='${docdir}'
1932pdfdir='${docdir}'
1933psdir='${docdir}'
1934libdir='${exec_prefix}/lib'
1935localedir='${datarootdir}/locale'
1936mandir='${datarootdir}/man'
1937
1938ac_prev=
1939ac_dashdash=
1940for ac_option
1941do
1942  # If the previous option needs an argument, assign it.
1943  if test -n "$ac_prev"; then
1944    eval $ac_prev=\$ac_option
1945    ac_prev=
1946    continue
1947  fi
1948
1949  case $ac_option in
1950  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1951  *=)   ac_optarg= ;;
1952  *)    ac_optarg=yes ;;
1953  esac
1954
1955  # Accept the important Cygnus configure options, so we can diagnose typos.
1956
1957  case $ac_dashdash$ac_option in
1958  --)
1959    ac_dashdash=yes ;;
1960
1961  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1962    ac_prev=bindir ;;
1963  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1964    bindir=$ac_optarg ;;
1965
1966  -build | --build | --buil | --bui | --bu)
1967    ac_prev=build_alias ;;
1968  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1969    build_alias=$ac_optarg ;;
1970
1971  -cache-file | --cache-file | --cache-fil | --cache-fi \
1972  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1973    ac_prev=cache_file ;;
1974  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1975  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1976    cache_file=$ac_optarg ;;
1977
1978  --config-cache | -C)
1979    cache_file=config.cache ;;
1980
1981  -datadir | --datadir | --datadi | --datad)
1982    ac_prev=datadir ;;
1983  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1984    datadir=$ac_optarg ;;
1985
1986  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1987  | --dataroo | --dataro | --datar)
1988    ac_prev=datarootdir ;;
1989  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1990  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1991    datarootdir=$ac_optarg ;;
1992
1993  -disable-* | --disable-*)
1994    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1995    # Reject names that are not valid shell variable names.
1996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1997      as_fn_error $? "invalid feature name: $ac_useropt"
1998    ac_useropt_orig=$ac_useropt
1999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2000    case $ac_user_opts in
2001      *"
2002"enable_$ac_useropt"
2003"*) ;;
2004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2005	 ac_unrecognized_sep=', ';;
2006    esac
2007    eval enable_$ac_useropt=no ;;
2008
2009  -docdir | --docdir | --docdi | --doc | --do)
2010    ac_prev=docdir ;;
2011  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2012    docdir=$ac_optarg ;;
2013
2014  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2015    ac_prev=dvidir ;;
2016  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2017    dvidir=$ac_optarg ;;
2018
2019  -enable-* | --enable-*)
2020    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2021    # Reject names that are not valid shell variable names.
2022    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2023      as_fn_error $? "invalid feature name: $ac_useropt"
2024    ac_useropt_orig=$ac_useropt
2025    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2026    case $ac_user_opts in
2027      *"
2028"enable_$ac_useropt"
2029"*) ;;
2030      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2031	 ac_unrecognized_sep=', ';;
2032    esac
2033    eval enable_$ac_useropt=\$ac_optarg ;;
2034
2035  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2036  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2037  | --exec | --exe | --ex)
2038    ac_prev=exec_prefix ;;
2039  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2040  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2041  | --exec=* | --exe=* | --ex=*)
2042    exec_prefix=$ac_optarg ;;
2043
2044  -gas | --gas | --ga | --g)
2045    # Obsolete; use --with-gas.
2046    with_gas=yes ;;
2047
2048  -help | --help | --hel | --he | -h)
2049    ac_init_help=long ;;
2050  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2051    ac_init_help=recursive ;;
2052  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2053    ac_init_help=short ;;
2054
2055  -host | --host | --hos | --ho)
2056    ac_prev=host_alias ;;
2057  -host=* | --host=* | --hos=* | --ho=*)
2058    host_alias=$ac_optarg ;;
2059
2060  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2061    ac_prev=htmldir ;;
2062  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2063  | --ht=*)
2064    htmldir=$ac_optarg ;;
2065
2066  -includedir | --includedir | --includedi | --included | --include \
2067  | --includ | --inclu | --incl | --inc)
2068    ac_prev=includedir ;;
2069  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2070  | --includ=* | --inclu=* | --incl=* | --inc=*)
2071    includedir=$ac_optarg ;;
2072
2073  -infodir | --infodir | --infodi | --infod | --info | --inf)
2074    ac_prev=infodir ;;
2075  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2076    infodir=$ac_optarg ;;
2077
2078  -libdir | --libdir | --libdi | --libd)
2079    ac_prev=libdir ;;
2080  -libdir=* | --libdir=* | --libdi=* | --libd=*)
2081    libdir=$ac_optarg ;;
2082
2083  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2084  | --libexe | --libex | --libe)
2085    ac_prev=libexecdir ;;
2086  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2087  | --libexe=* | --libex=* | --libe=*)
2088    libexecdir=$ac_optarg ;;
2089
2090  -localedir | --localedir | --localedi | --localed | --locale)
2091    ac_prev=localedir ;;
2092  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2093    localedir=$ac_optarg ;;
2094
2095  -localstatedir | --localstatedir | --localstatedi | --localstated \
2096  | --localstate | --localstat | --localsta | --localst | --locals)
2097    ac_prev=localstatedir ;;
2098  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2099  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2100    localstatedir=$ac_optarg ;;
2101
2102  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2103    ac_prev=mandir ;;
2104  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2105    mandir=$ac_optarg ;;
2106
2107  -nfp | --nfp | --nf)
2108    # Obsolete; use --without-fp.
2109    with_fp=no ;;
2110
2111  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2112  | --no-cr | --no-c | -n)
2113    no_create=yes ;;
2114
2115  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2116  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2117    no_recursion=yes ;;
2118
2119  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2120  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2121  | --oldin | --oldi | --old | --ol | --o)
2122    ac_prev=oldincludedir ;;
2123  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2124  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2125  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2126    oldincludedir=$ac_optarg ;;
2127
2128  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2129    ac_prev=prefix ;;
2130  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2131    prefix=$ac_optarg ;;
2132
2133  -program-prefix | --program-prefix | --program-prefi | --program-pref \
2134  | --program-pre | --program-pr | --program-p)
2135    ac_prev=program_prefix ;;
2136  -program-prefix=* | --program-prefix=* | --program-prefi=* \
2137  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2138    program_prefix=$ac_optarg ;;
2139
2140  -program-suffix | --program-suffix | --program-suffi | --program-suff \
2141  | --program-suf | --program-su | --program-s)
2142    ac_prev=program_suffix ;;
2143  -program-suffix=* | --program-suffix=* | --program-suffi=* \
2144  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2145    program_suffix=$ac_optarg ;;
2146
2147  -program-transform-name | --program-transform-name \
2148  | --program-transform-nam | --program-transform-na \
2149  | --program-transform-n | --program-transform- \
2150  | --program-transform | --program-transfor \
2151  | --program-transfo | --program-transf \
2152  | --program-trans | --program-tran \
2153  | --progr-tra | --program-tr | --program-t)
2154    ac_prev=program_transform_name ;;
2155  -program-transform-name=* | --program-transform-name=* \
2156  | --program-transform-nam=* | --program-transform-na=* \
2157  | --program-transform-n=* | --program-transform-=* \
2158  | --program-transform=* | --program-transfor=* \
2159  | --program-transfo=* | --program-transf=* \
2160  | --program-trans=* | --program-tran=* \
2161  | --progr-tra=* | --program-tr=* | --program-t=*)
2162    program_transform_name=$ac_optarg ;;
2163
2164  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2165    ac_prev=pdfdir ;;
2166  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2167    pdfdir=$ac_optarg ;;
2168
2169  -psdir | --psdir | --psdi | --psd | --ps)
2170    ac_prev=psdir ;;
2171  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2172    psdir=$ac_optarg ;;
2173
2174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175  | -silent | --silent | --silen | --sile | --sil)
2176    silent=yes ;;
2177
2178  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2179    ac_prev=sbindir ;;
2180  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2181  | --sbi=* | --sb=*)
2182    sbindir=$ac_optarg ;;
2183
2184  -sharedstatedir | --sharedstatedir | --sharedstatedi \
2185  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2186  | --sharedst | --shareds | --shared | --share | --shar \
2187  | --sha | --sh)
2188    ac_prev=sharedstatedir ;;
2189  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2190  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2191  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2192  | --sha=* | --sh=*)
2193    sharedstatedir=$ac_optarg ;;
2194
2195  -site | --site | --sit)
2196    ac_prev=site ;;
2197  -site=* | --site=* | --sit=*)
2198    site=$ac_optarg ;;
2199
2200  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2201    ac_prev=srcdir ;;
2202  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2203    srcdir=$ac_optarg ;;
2204
2205  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2206  | --syscon | --sysco | --sysc | --sys | --sy)
2207    ac_prev=sysconfdir ;;
2208  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2209  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2210    sysconfdir=$ac_optarg ;;
2211
2212  -target | --target | --targe | --targ | --tar | --ta | --t)
2213    ac_prev=target_alias ;;
2214  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2215    target_alias=$ac_optarg ;;
2216
2217  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2218    verbose=yes ;;
2219
2220  -version | --version | --versio | --versi | --vers | -V)
2221    ac_init_version=: ;;
2222
2223  -with-* | --with-*)
2224    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2225    # Reject names that are not valid shell variable names.
2226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2227      as_fn_error $? "invalid package name: $ac_useropt"
2228    ac_useropt_orig=$ac_useropt
2229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2230    case $ac_user_opts in
2231      *"
2232"with_$ac_useropt"
2233"*) ;;
2234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2235	 ac_unrecognized_sep=', ';;
2236    esac
2237    eval with_$ac_useropt=\$ac_optarg ;;
2238
2239  -without-* | --without-*)
2240    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2241    # Reject names that are not valid shell variable names.
2242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2243      as_fn_error $? "invalid package name: $ac_useropt"
2244    ac_useropt_orig=$ac_useropt
2245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2246    case $ac_user_opts in
2247      *"
2248"with_$ac_useropt"
2249"*) ;;
2250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2251	 ac_unrecognized_sep=', ';;
2252    esac
2253    eval with_$ac_useropt=no ;;
2254
2255  --x)
2256    # Obsolete; use --with-x.
2257    with_x=yes ;;
2258
2259  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2260  | --x-incl | --x-inc | --x-in | --x-i)
2261    ac_prev=x_includes ;;
2262  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2263  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2264    x_includes=$ac_optarg ;;
2265
2266  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2267  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2268    ac_prev=x_libraries ;;
2269  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2270  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2271    x_libraries=$ac_optarg ;;
2272
2273  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2274Try \`$0 --help' for more information"
2275    ;;
2276
2277  *=*)
2278    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2279    # Reject names that are not valid shell variable names.
2280    case $ac_envvar in #(
2281      '' | [0-9]* | *[!_$as_cr_alnum]* )
2282      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2283    esac
2284    eval $ac_envvar=\$ac_optarg
2285    export $ac_envvar ;;
2286
2287  *)
2288    # FIXME: should be removed in autoconf 3.0.
2289    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2290    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2291      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2292    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2293    ;;
2294
2295  esac
2296done
2297
2298if test -n "$ac_prev"; then
2299  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2300  as_fn_error $? "missing argument to $ac_option"
2301fi
2302
2303if test -n "$ac_unrecognized_opts"; then
2304  case $enable_option_checking in
2305    no) ;;
2306    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2307    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2308  esac
2309fi
2310
2311# Check all directory arguments for consistency.
2312for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2313		datadir sysconfdir sharedstatedir localstatedir includedir \
2314		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2315		libdir localedir mandir
2316do
2317  eval ac_val=\$$ac_var
2318  # Remove trailing slashes.
2319  case $ac_val in
2320    */ )
2321      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2322      eval $ac_var=\$ac_val;;
2323  esac
2324  # Be sure to have absolute directory names.
2325  case $ac_val in
2326    [\\/$]* | ?:[\\/]* )  continue;;
2327    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2328  esac
2329  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2330done
2331
2332# There might be people who depend on the old broken behavior: `$host'
2333# used to hold the argument of --host etc.
2334# FIXME: To remove some day.
2335build=$build_alias
2336host=$host_alias
2337target=$target_alias
2338
2339# FIXME: To remove some day.
2340if test "x$host_alias" != x; then
2341  if test "x$build_alias" = x; then
2342    cross_compiling=maybe
2343  elif test "x$build_alias" != "x$host_alias"; then
2344    cross_compiling=yes
2345  fi
2346fi
2347
2348ac_tool_prefix=
2349test -n "$host_alias" && ac_tool_prefix=$host_alias-
2350
2351test "$silent" = yes && exec 6>/dev/null
2352
2353
2354ac_pwd=`pwd` && test -n "$ac_pwd" &&
2355ac_ls_di=`ls -di .` &&
2356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2357  as_fn_error $? "working directory cannot be determined"
2358test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2359  as_fn_error $? "pwd does not report name of working directory"
2360
2361
2362# Find the source files, if location was not specified.
2363if test -z "$srcdir"; then
2364  ac_srcdir_defaulted=yes
2365  # Try the directory containing this script, then the parent directory.
2366  ac_confdir=`$as_dirname -- "$as_myself" ||
2367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2368	 X"$as_myself" : 'X\(//\)[^/]' \| \
2369	 X"$as_myself" : 'X\(//\)$' \| \
2370	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2371$as_echo X"$as_myself" |
2372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2373	    s//\1/
2374	    q
2375	  }
2376	  /^X\(\/\/\)[^/].*/{
2377	    s//\1/
2378	    q
2379	  }
2380	  /^X\(\/\/\)$/{
2381	    s//\1/
2382	    q
2383	  }
2384	  /^X\(\/\).*/{
2385	    s//\1/
2386	    q
2387	  }
2388	  s/.*/./; q'`
2389  srcdir=$ac_confdir
2390  if test ! -r "$srcdir/$ac_unique_file"; then
2391    srcdir=..
2392  fi
2393else
2394  ac_srcdir_defaulted=no
2395fi
2396if test ! -r "$srcdir/$ac_unique_file"; then
2397  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2398  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2399fi
2400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2401ac_abs_confdir=`(
2402	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2403	pwd)`
2404# When building in place, set srcdir=.
2405if test "$ac_abs_confdir" = "$ac_pwd"; then
2406  srcdir=.
2407fi
2408# Remove unnecessary trailing slashes from srcdir.
2409# Double slashes in file names in object file debugging info
2410# mess up M-x gdb in Emacs.
2411case $srcdir in
2412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2413esac
2414for ac_var in $ac_precious_vars; do
2415  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2416  eval ac_env_${ac_var}_value=\$${ac_var}
2417  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2418  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2419done
2420
2421#
2422# Report the --help message.
2423#
2424if test "$ac_init_help" = "long"; then
2425  # Omit some internal or obsolete options to make the list less imposing.
2426  # This message is too long to be a string in the A/UX 3.1 sh.
2427  cat <<_ACEOF
2428\`configure' configures this package to adapt to many kinds of systems.
2429
2430Usage: $0 [OPTION]... [VAR=VALUE]...
2431
2432To assign environment variables (e.g., CC, CFLAGS...), specify them as
2433VAR=VALUE.  See below for descriptions of some of the useful variables.
2434
2435Defaults for the options are specified in brackets.
2436
2437Configuration:
2438  -h, --help              display this help and exit
2439      --help=short        display options specific to this package
2440      --help=recursive    display the short help of all the included packages
2441  -V, --version           display version information and exit
2442  -q, --quiet, --silent   do not print \`checking ...' messages
2443      --cache-file=FILE   cache test results in FILE [disabled]
2444  -C, --config-cache      alias for \`--cache-file=config.cache'
2445  -n, --no-create         do not create output files
2446      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2447
2448Installation directories:
2449  --prefix=PREFIX         install architecture-independent files in PREFIX
2450                          [$ac_default_prefix]
2451  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2452                          [PREFIX]
2453
2454By default, \`make install' will install all the files in
2455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2457for instance \`--prefix=\$HOME'.
2458
2459For better control, use the options below.
2460
2461Fine tuning of the installation directories:
2462  --bindir=DIR            user executables [EPREFIX/bin]
2463  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2464  --libexecdir=DIR        program executables [EPREFIX/libexec]
2465  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2466  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2467  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2468  --libdir=DIR            object code libraries [EPREFIX/lib]
2469  --includedir=DIR        C header files [PREFIX/include]
2470  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2471  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2472  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2473  --infodir=DIR           info documentation [DATAROOTDIR/info]
2474  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2475  --mandir=DIR            man documentation [DATAROOTDIR/man]
2476  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2477  --htmldir=DIR           html documentation [DOCDIR]
2478  --dvidir=DIR            dvi documentation [DOCDIR]
2479  --pdfdir=DIR            pdf documentation [DOCDIR]
2480  --psdir=DIR             ps documentation [DOCDIR]
2481_ACEOF
2482
2483  cat <<\_ACEOF
2484
2485Program names:
2486  --program-prefix=PREFIX            prepend PREFIX to installed program names
2487  --program-suffix=SUFFIX            append SUFFIX to installed program names
2488  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2489
2490System types:
2491  --build=BUILD     configure for building on BUILD [guessed]
2492  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2493_ACEOF
2494fi
2495
2496if test -n "$ac_init_help"; then
2497
2498  cat <<\_ACEOF
2499
2500Optional Features:
2501  --disable-option-checking  ignore unrecognized --enable/--with options
2502  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2503  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2504  --enable-silent-rules   less verbose build output (undo: "make V=1")
2505  --disable-silent-rules  verbose build output (undo: "make V=0")
2506  --enable-dependency-tracking
2507                          do not reject slow dependency extractors
2508  --disable-dependency-tracking
2509                          speeds up one-time build
2510  --disable-largefile     omit support for large files
2511  --enable-threads={isoc|posix|isoc+posix|windows}
2512                          specify multithreading API
2513  --disable-threads       build without multithread safety
2514  --enable-shared[=PKGS]  build shared libraries [default=yes]
2515  --enable-static[=PKGS]  build static libraries [default=yes]
2516  --enable-fast-install[=PKGS]
2517                          optimize for fast installation [default=yes]
2518  --disable-libtool-lock  avoid locking (might break parallel builds)
2519  --enable-cross-guesses={conservative|risky}
2520                          specify policy for cross-compilation guesses
2521  --disable-rpath         do not hardcode runtime library paths
2522  --disable-curses        do not use libncurses, libtermcap even if they exist
2523  --disable-namespacing   build a library that exports undesired symbols
2524
2525Optional Packages:
2526  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2527  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2528  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2529                          both]
2530  --with-aix-soname=aix|svr4|both
2531                          shared library versioning (aka "SONAME") variant to
2532                          provide on AIX, [default=aix].
2533  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2534  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2535                          compiler's sysroot if not specified).
2536  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2537  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2538  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2539  --with-libncurses-prefix[=DIR]  search for libncurses in DIR/include and DIR/lib
2540  --without-libncurses-prefix     don't search for libncurses in includedir and libdir
2541  --with-libtermcap-prefix[=DIR]  search for libtermcap in DIR/include and DIR/lib
2542  --without-libtermcap-prefix     don't search for libtermcap in includedir and libdir
2543  --with-libxcurses-prefix[=DIR]  search for libxcurses in DIR/include and DIR/lib
2544  --without-libxcurses-prefix     don't search for libxcurses in includedir and libdir
2545  --with-libcurses-prefix[=DIR]  search for libcurses in DIR/include and DIR/lib
2546  --without-libcurses-prefix     don't search for libcurses in includedir and libdir
2547
2548Some influential environment variables:
2549  CC          C compiler command
2550  CFLAGS      C compiler flags
2551  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2552              nonstandard directory <lib dir>
2553  LIBS        libraries to pass to the linker, e.g. -l<library>
2554  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2555              you have headers in a nonstandard directory <include dir>
2556  CPP         C preprocessor
2557  LT_SYS_LIBRARY_PATH
2558              User-defined run-time library search path.
2559
2560Use these variables to override the choices made by `configure' or to help
2561it to find libraries and programs with nonstandard names/locations.
2562
2563Report bugs to the package provider.
2564_ACEOF
2565ac_status=$?
2566fi
2567
2568if test "$ac_init_help" = "recursive"; then
2569  # If there are subdirs, report their specific --help.
2570  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2571    test -d "$ac_dir" ||
2572      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2573      continue
2574    ac_builddir=.
2575
2576case "$ac_dir" in
2577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2578*)
2579  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2580  # A ".." for each directory in $ac_dir_suffix.
2581  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2582  case $ac_top_builddir_sub in
2583  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2584  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2585  esac ;;
2586esac
2587ac_abs_top_builddir=$ac_pwd
2588ac_abs_builddir=$ac_pwd$ac_dir_suffix
2589# for backward compatibility:
2590ac_top_builddir=$ac_top_build_prefix
2591
2592case $srcdir in
2593  .)  # We are building in place.
2594    ac_srcdir=.
2595    ac_top_srcdir=$ac_top_builddir_sub
2596    ac_abs_top_srcdir=$ac_pwd ;;
2597  [\\/]* | ?:[\\/]* )  # Absolute name.
2598    ac_srcdir=$srcdir$ac_dir_suffix;
2599    ac_top_srcdir=$srcdir
2600    ac_abs_top_srcdir=$srcdir ;;
2601  *) # Relative name.
2602    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2603    ac_top_srcdir=$ac_top_build_prefix$srcdir
2604    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2605esac
2606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2607
2608    cd "$ac_dir" || { ac_status=$?; continue; }
2609    # Check for guested configure.
2610    if test -f "$ac_srcdir/configure.gnu"; then
2611      echo &&
2612      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2613    elif test -f "$ac_srcdir/configure"; then
2614      echo &&
2615      $SHELL "$ac_srcdir/configure" --help=recursive
2616    else
2617      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2618    fi || ac_status=$?
2619    cd "$ac_pwd" || { ac_status=$?; break; }
2620  done
2621fi
2622
2623test -n "$ac_init_help" && exit $ac_status
2624if $ac_init_version; then
2625  cat <<\_ACEOF
2626configure
2627generated by GNU Autoconf 2.69
2628
2629Copyright (C) 2012 Free Software Foundation, Inc.
2630This configure script is free software; the Free Software Foundation
2631gives unlimited permission to copy, distribute and modify it.
2632_ACEOF
2633  exit
2634fi
2635
2636## ------------------------ ##
2637## Autoconf initialization. ##
2638## ------------------------ ##
2639
2640# ac_fn_c_try_compile LINENO
2641# --------------------------
2642# Try to compile conftest.$ac_ext, and return whether this succeeded.
2643ac_fn_c_try_compile ()
2644{
2645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646  rm -f conftest.$ac_objext
2647  if { { ac_try="$ac_compile"
2648case "(($ac_try" in
2649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650  *) ac_try_echo=$ac_try;;
2651esac
2652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2653$as_echo "$ac_try_echo"; } >&5
2654  (eval "$ac_compile") 2>conftest.err
2655  ac_status=$?
2656  if test -s conftest.err; then
2657    grep -v '^ *+' conftest.err >conftest.er1
2658    cat conftest.er1 >&5
2659    mv -f conftest.er1 conftest.err
2660  fi
2661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2662  test $ac_status = 0; } && {
2663	 test -z "$ac_c_werror_flag" ||
2664	 test ! -s conftest.err
2665       } && test -s conftest.$ac_objext; then :
2666  ac_retval=0
2667else
2668  $as_echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671	ac_retval=1
2672fi
2673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674  as_fn_set_status $ac_retval
2675
2676} # ac_fn_c_try_compile
2677
2678# ac_fn_c_try_cpp LINENO
2679# ----------------------
2680# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2681ac_fn_c_try_cpp ()
2682{
2683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684  if { { ac_try="$ac_cpp conftest.$ac_ext"
2685case "(($ac_try" in
2686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687  *) ac_try_echo=$ac_try;;
2688esac
2689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2690$as_echo "$ac_try_echo"; } >&5
2691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2692  ac_status=$?
2693  if test -s conftest.err; then
2694    grep -v '^ *+' conftest.err >conftest.er1
2695    cat conftest.er1 >&5
2696    mv -f conftest.er1 conftest.err
2697  fi
2698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699  test $ac_status = 0; } > conftest.i && {
2700	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2701	 test ! -s conftest.err
2702       }; then :
2703  ac_retval=0
2704else
2705  $as_echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708    ac_retval=1
2709fi
2710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2711  as_fn_set_status $ac_retval
2712
2713} # ac_fn_c_try_cpp
2714
2715# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2716# -------------------------------------------------------
2717# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2718# the include files in INCLUDES and setting the cache variable VAR
2719# accordingly.
2720ac_fn_c_check_header_mongrel ()
2721{
2722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723  if eval \${$3+:} false; then :
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2725$as_echo_n "checking for $2... " >&6; }
2726if eval \${$3+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728fi
2729eval ac_res=\$$3
2730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2731$as_echo "$ac_res" >&6; }
2732else
2733  # Is the header compilable?
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2735$as_echo_n "checking $2 usability... " >&6; }
2736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737/* end confdefs.h.  */
2738$4
2739#include <$2>
2740_ACEOF
2741if ac_fn_c_try_compile "$LINENO"; then :
2742  ac_header_compiler=yes
2743else
2744  ac_header_compiler=no
2745fi
2746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2748$as_echo "$ac_header_compiler" >&6; }
2749
2750# Is the header present?
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2752$as_echo_n "checking $2 presence... " >&6; }
2753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h.  */
2755#include <$2>
2756_ACEOF
2757if ac_fn_c_try_cpp "$LINENO"; then :
2758  ac_header_preproc=yes
2759else
2760  ac_header_preproc=no
2761fi
2762rm -f conftest.err conftest.i conftest.$ac_ext
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2764$as_echo "$ac_header_preproc" >&6; }
2765
2766# So?  What about this header?
2767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2768  yes:no: )
2769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2770$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2771    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2772$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2773    ;;
2774  no:yes:* )
2775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2776$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2778$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2780$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2782$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2785    ;;
2786esac
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788$as_echo_n "checking for $2... " >&6; }
2789if eval \${$3+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  eval "$3=\$ac_header_compiler"
2793fi
2794eval ac_res=\$$3
2795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796$as_echo "$ac_res" >&6; }
2797fi
2798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799
2800} # ac_fn_c_check_header_mongrel
2801
2802# ac_fn_c_try_run LINENO
2803# ----------------------
2804# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2805# that executables *can* be run.
2806ac_fn_c_try_run ()
2807{
2808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2809  if { { ac_try="$ac_link"
2810case "(($ac_try" in
2811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812  *) ac_try_echo=$ac_try;;
2813esac
2814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815$as_echo "$ac_try_echo"; } >&5
2816  (eval "$ac_link") 2>&5
2817  ac_status=$?
2818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2820  { { case "(($ac_try" in
2821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822  *) ac_try_echo=$ac_try;;
2823esac
2824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2825$as_echo "$ac_try_echo"; } >&5
2826  (eval "$ac_try") 2>&5
2827  ac_status=$?
2828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829  test $ac_status = 0; }; }; then :
2830  ac_retval=0
2831else
2832  $as_echo "$as_me: program exited with status $ac_status" >&5
2833       $as_echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836       ac_retval=$ac_status
2837fi
2838  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840  as_fn_set_status $ac_retval
2841
2842} # ac_fn_c_try_run
2843
2844# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2845# -------------------------------------------------------
2846# Tests whether HEADER exists and can be compiled using the include files in
2847# INCLUDES, setting the cache variable VAR accordingly.
2848ac_fn_c_check_header_compile ()
2849{
2850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2852$as_echo_n "checking for $2... " >&6; }
2853if eval \${$3+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h.  */
2858$4
2859#include <$2>
2860_ACEOF
2861if ac_fn_c_try_compile "$LINENO"; then :
2862  eval "$3=yes"
2863else
2864  eval "$3=no"
2865fi
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867fi
2868eval ac_res=\$$3
2869	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2870$as_echo "$ac_res" >&6; }
2871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2872
2873} # ac_fn_c_check_header_compile
2874
2875# ac_fn_c_try_link LINENO
2876# -----------------------
2877# Try to link conftest.$ac_ext, and return whether this succeeded.
2878ac_fn_c_try_link ()
2879{
2880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2881  rm -f conftest.$ac_objext conftest$ac_exeext
2882  if { { ac_try="$ac_link"
2883case "(($ac_try" in
2884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885  *) ac_try_echo=$ac_try;;
2886esac
2887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2888$as_echo "$ac_try_echo"; } >&5
2889  (eval "$ac_link") 2>conftest.err
2890  ac_status=$?
2891  if test -s conftest.err; then
2892    grep -v '^ *+' conftest.err >conftest.er1
2893    cat conftest.er1 >&5
2894    mv -f conftest.er1 conftest.err
2895  fi
2896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897  test $ac_status = 0; } && {
2898	 test -z "$ac_c_werror_flag" ||
2899	 test ! -s conftest.err
2900       } && test -s conftest$ac_exeext && {
2901	 test "$cross_compiling" = yes ||
2902	 test -x conftest$ac_exeext
2903       }; then :
2904  ac_retval=0
2905else
2906  $as_echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909	ac_retval=1
2910fi
2911  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2912  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2913  # interfere with the next link command; also delete a directory that is
2914  # left behind by Apple's compiler.  We do this before executing the actions.
2915  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2917  as_fn_set_status $ac_retval
2918
2919} # ac_fn_c_try_link
2920
2921# ac_fn_c_check_func LINENO FUNC VAR
2922# ----------------------------------
2923# Tests whether FUNC exists, setting the cache variable VAR accordingly
2924ac_fn_c_check_func ()
2925{
2926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2928$as_echo_n "checking for $2... " >&6; }
2929if eval \${$3+:} false; then :
2930  $as_echo_n "(cached) " >&6
2931else
2932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h.  */
2934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2936#define $2 innocuous_$2
2937
2938/* System header to define __stub macros and hopefully few prototypes,
2939    which can conflict with char $2 (); below.
2940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2941    <limits.h> exists even on freestanding compilers.  */
2942
2943#ifdef __STDC__
2944# include <limits.h>
2945#else
2946# include <assert.h>
2947#endif
2948
2949#undef $2
2950
2951/* Override any GCC internal prototype to avoid an error.
2952   Use char because int might match the return type of a GCC
2953   builtin and then its argument prototype would still apply.  */
2954#ifdef __cplusplus
2955extern "C"
2956#endif
2957char $2 ();
2958/* The GNU C library defines this for functions which it implements
2959    to always fail with ENOSYS.  Some functions are actually named
2960    something starting with __ and the normal name is an alias.  */
2961#if defined __stub_$2 || defined __stub___$2
2962choke me
2963#endif
2964
2965int
2966main ()
2967{
2968return $2 ();
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973if ac_fn_c_try_link "$LINENO"; then :
2974  eval "$3=yes"
2975else
2976  eval "$3=no"
2977fi
2978rm -f core conftest.err conftest.$ac_objext \
2979    conftest$ac_exeext conftest.$ac_ext
2980fi
2981eval ac_res=\$$3
2982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2983$as_echo "$ac_res" >&6; }
2984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2985
2986} # ac_fn_c_check_func
2987
2988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2989# -------------------------------------------
2990# Tests whether TYPE exists after having included INCLUDES, setting cache
2991# variable VAR accordingly.
2992ac_fn_c_check_type ()
2993{
2994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2996$as_echo_n "checking for $2... " >&6; }
2997if eval \${$3+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  eval "$3=no"
3001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h.  */
3003$4
3004int
3005main ()
3006{
3007if (sizeof ($2))
3008	 return 0;
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013if ac_fn_c_try_compile "$LINENO"; then :
3014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016$4
3017int
3018main ()
3019{
3020if (sizeof (($2)))
3021	    return 0;
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026if ac_fn_c_try_compile "$LINENO"; then :
3027
3028else
3029  eval "$3=yes"
3030fi
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032fi
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034fi
3035eval ac_res=\$$3
3036	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037$as_echo "$ac_res" >&6; }
3038  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3039
3040} # ac_fn_c_check_type
3041
3042# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3043# --------------------------------------------
3044# Tries to find the compile-time value of EXPR in a program that includes
3045# INCLUDES, setting VAR accordingly. Returns whether the value could be
3046# computed
3047ac_fn_c_compute_int ()
3048{
3049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3050  if test "$cross_compiling" = yes; then
3051    # Depending upon the size, compute the lo and hi bounds.
3052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053/* end confdefs.h.  */
3054$4
3055int
3056main ()
3057{
3058static int test_array [1 - 2 * !(($2) >= 0)];
3059test_array [0] = 0;
3060return test_array [0];
3061
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066if ac_fn_c_try_compile "$LINENO"; then :
3067  ac_lo=0 ac_mid=0
3068  while :; do
3069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070/* end confdefs.h.  */
3071$4
3072int
3073main ()
3074{
3075static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3076test_array [0] = 0;
3077return test_array [0];
3078
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"; then :
3084  ac_hi=$ac_mid; break
3085else
3086  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3087			if test $ac_lo -le $ac_mid; then
3088			  ac_lo= ac_hi=
3089			  break
3090			fi
3091			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3092fi
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094  done
3095else
3096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097/* end confdefs.h.  */
3098$4
3099int
3100main ()
3101{
3102static int test_array [1 - 2 * !(($2) < 0)];
3103test_array [0] = 0;
3104return test_array [0];
3105
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110if ac_fn_c_try_compile "$LINENO"; then :
3111  ac_hi=-1 ac_mid=-1
3112  while :; do
3113    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115$4
3116int
3117main ()
3118{
3119static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3120test_array [0] = 0;
3121return test_array [0];
3122
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127if ac_fn_c_try_compile "$LINENO"; then :
3128  ac_lo=$ac_mid; break
3129else
3130  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3131			if test $ac_mid -le $ac_hi; then
3132			  ac_lo= ac_hi=
3133			  break
3134			fi
3135			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3136fi
3137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138  done
3139else
3140  ac_lo= ac_hi=
3141fi
3142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143fi
3144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145# Binary search between lo and hi bounds.
3146while test "x$ac_lo" != "x$ac_hi"; do
3147  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h.  */
3150$4
3151int
3152main ()
3153{
3154static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3155test_array [0] = 0;
3156return test_array [0];
3157
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162if ac_fn_c_try_compile "$LINENO"; then :
3163  ac_hi=$ac_mid
3164else
3165  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3166fi
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168done
3169case $ac_lo in #((
3170?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3171'') ac_retval=1 ;;
3172esac
3173  else
3174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175/* end confdefs.h.  */
3176$4
3177static long int longval () { return $2; }
3178static unsigned long int ulongval () { return $2; }
3179#include <stdio.h>
3180#include <stdlib.h>
3181int
3182main ()
3183{
3184
3185  FILE *f = fopen ("conftest.val", "w");
3186  if (! f)
3187    return 1;
3188  if (($2) < 0)
3189    {
3190      long int i = longval ();
3191      if (i != ($2))
3192	return 1;
3193      fprintf (f, "%ld", i);
3194    }
3195  else
3196    {
3197      unsigned long int i = ulongval ();
3198      if (i != ($2))
3199	return 1;
3200      fprintf (f, "%lu", i);
3201    }
3202  /* Do not output a trailing newline, as this causes \r\n confusion
3203     on some platforms.  */
3204  return ferror (f) || fclose (f) != 0;
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210if ac_fn_c_try_run "$LINENO"; then :
3211  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3212else
3213  ac_retval=1
3214fi
3215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3216  conftest.$ac_objext conftest.beam conftest.$ac_ext
3217rm -f conftest.val
3218
3219  fi
3220  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3221  as_fn_set_status $ac_retval
3222
3223} # ac_fn_c_compute_int
3224
3225# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3226# ---------------------------------------------
3227# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3228# accordingly.
3229ac_fn_c_check_decl ()
3230{
3231  ac_save_ac_compile="$ac_compile"
3232  if test -n "$ac_compile_for_check_decl"; then
3233    ac_compile="$ac_compile_for_check_decl"
3234  fi
3235  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3236  as_decl_name=`echo $2|sed 's/ *(.*//'`
3237  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3239$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3240if eval \${$3+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244/* end confdefs.h.  */
3245$4
3246int
3247main ()
3248{
3249#ifndef $as_decl_name
3250#ifdef __cplusplus
3251  (void) $as_decl_use;
3252#else
3253  (void) $as_decl_name;
3254#endif
3255#endif
3256
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261if ac_fn_c_try_compile "$LINENO"; then :
3262  eval "$3=yes"
3263else
3264  eval "$3=no"
3265fi
3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267fi
3268eval ac_res=\$$3
3269	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3270$as_echo "$ac_res" >&6; }
3271  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3272  ac_compile="$ac_save_ac_compile"
3273
3274} # ac_fn_c_check_decl
3275
3276# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3277# ----------------------------------------------------
3278# Tries to find if the field MEMBER exists in type AGGR, after including
3279# INCLUDES, setting cache variable VAR accordingly.
3280ac_fn_c_check_member ()
3281{
3282  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3284$as_echo_n "checking for $2.$3... " >&6; }
3285if eval \${$4+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290$5
3291int
3292main ()
3293{
3294static $2 ac_aggr;
3295if (ac_aggr.$3)
3296return 0;
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301if ac_fn_c_try_compile "$LINENO"; then :
3302  eval "$4=yes"
3303else
3304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306$5
3307int
3308main ()
3309{
3310static $2 ac_aggr;
3311if (sizeof ac_aggr.$3)
3312return 0;
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317if ac_fn_c_try_compile "$LINENO"; then :
3318  eval "$4=yes"
3319else
3320  eval "$4=no"
3321fi
3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323fi
3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325fi
3326eval ac_res=\$$4
3327	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3328$as_echo "$ac_res" >&6; }
3329  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3330
3331} # ac_fn_c_check_member
3332cat >config.log <<_ACEOF
3333This file contains any messages produced by compilers while
3334running configure, to aid debugging if configure makes a mistake.
3335
3336It was created by $as_me, which was
3337generated by GNU Autoconf 2.69.  Invocation command line was
3338
3339  $ $0 $@
3340
3341_ACEOF
3342exec 5>>config.log
3343{
3344cat <<_ASUNAME
3345## --------- ##
3346## Platform. ##
3347## --------- ##
3348
3349hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3350uname -m = `(uname -m) 2>/dev/null || echo unknown`
3351uname -r = `(uname -r) 2>/dev/null || echo unknown`
3352uname -s = `(uname -s) 2>/dev/null || echo unknown`
3353uname -v = `(uname -v) 2>/dev/null || echo unknown`
3354
3355/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3356/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3357
3358/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3359/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3360/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3361/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3362/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3363/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3364/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3365
3366_ASUNAME
3367
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373    $as_echo "PATH: $as_dir"
3374  done
3375IFS=$as_save_IFS
3376
3377} >&5
3378
3379cat >&5 <<_ACEOF
3380
3381
3382## ----------- ##
3383## Core tests. ##
3384## ----------- ##
3385
3386_ACEOF
3387
3388
3389# Keep a trace of the command line.
3390# Strip out --no-create and --no-recursion so they do not pile up.
3391# Strip out --silent because we don't want to record it for future runs.
3392# Also quote any args containing shell meta-characters.
3393# Make two passes to allow for proper duplicate-argument suppression.
3394ac_configure_args=
3395ac_configure_args0=
3396ac_configure_args1=
3397ac_must_keep_next=false
3398for ac_pass in 1 2
3399do
3400  for ac_arg
3401  do
3402    case $ac_arg in
3403    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3404    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3405    | -silent | --silent | --silen | --sile | --sil)
3406      continue ;;
3407    *\'*)
3408      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3409    esac
3410    case $ac_pass in
3411    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3412    2)
3413      as_fn_append ac_configure_args1 " '$ac_arg'"
3414      if test $ac_must_keep_next = true; then
3415	ac_must_keep_next=false # Got value, back to normal.
3416      else
3417	case $ac_arg in
3418	  *=* | --config-cache | -C | -disable-* | --disable-* \
3419	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3420	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3421	  | -with-* | --with-* | -without-* | --without-* | --x)
3422	    case "$ac_configure_args0 " in
3423	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3424	    esac
3425	    ;;
3426	  -* ) ac_must_keep_next=true ;;
3427	esac
3428      fi
3429      as_fn_append ac_configure_args " '$ac_arg'"
3430      ;;
3431    esac
3432  done
3433done
3434{ ac_configure_args0=; unset ac_configure_args0;}
3435{ ac_configure_args1=; unset ac_configure_args1;}
3436
3437# When interrupted or exit'd, cleanup temporary files, and complete
3438# config.log.  We remove comments because anyway the quotes in there
3439# would cause problems or look ugly.
3440# WARNING: Use '\'' to represent an apostrophe within the trap.
3441# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3442trap 'exit_status=$?
3443  # Save into config.log some information that might help in debugging.
3444  {
3445    echo
3446
3447    $as_echo "## ---------------- ##
3448## Cache variables. ##
3449## ---------------- ##"
3450    echo
3451    # The following way of writing the cache mishandles newlines in values,
3452(
3453  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3454    eval ac_val=\$$ac_var
3455    case $ac_val in #(
3456    *${as_nl}*)
3457      case $ac_var in #(
3458      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3460      esac
3461      case $ac_var in #(
3462      _ | IFS | as_nl) ;; #(
3463      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3464      *) { eval $ac_var=; unset $ac_var;} ;;
3465      esac ;;
3466    esac
3467  done
3468  (set) 2>&1 |
3469    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3470    *${as_nl}ac_space=\ *)
3471      sed -n \
3472	"s/'\''/'\''\\\\'\'''\''/g;
3473	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3474      ;; #(
3475    *)
3476      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3477      ;;
3478    esac |
3479    sort
3480)
3481    echo
3482
3483    $as_echo "## ----------------- ##
3484## Output variables. ##
3485## ----------------- ##"
3486    echo
3487    for ac_var in $ac_subst_vars
3488    do
3489      eval ac_val=\$$ac_var
3490      case $ac_val in
3491      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3492      esac
3493      $as_echo "$ac_var='\''$ac_val'\''"
3494    done | sort
3495    echo
3496
3497    if test -n "$ac_subst_files"; then
3498      $as_echo "## ------------------- ##
3499## File substitutions. ##
3500## ------------------- ##"
3501      echo
3502      for ac_var in $ac_subst_files
3503      do
3504	eval ac_val=\$$ac_var
3505	case $ac_val in
3506	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3507	esac
3508	$as_echo "$ac_var='\''$ac_val'\''"
3509      done | sort
3510      echo
3511    fi
3512
3513    if test -s confdefs.h; then
3514      $as_echo "## ----------- ##
3515## confdefs.h. ##
3516## ----------- ##"
3517      echo
3518      cat confdefs.h
3519      echo
3520    fi
3521    test "$ac_signal" != 0 &&
3522      $as_echo "$as_me: caught signal $ac_signal"
3523    $as_echo "$as_me: exit $exit_status"
3524  } >&5
3525  rm -f core *.core core.conftest.* &&
3526    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3527    exit $exit_status
3528' 0
3529for ac_signal in 1 2 13 15; do
3530  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3531done
3532ac_signal=0
3533
3534# confdefs.h avoids OS command line length limits that DEFS can exceed.
3535rm -f -r conftest* confdefs.h
3536
3537$as_echo "/* confdefs.h */" > confdefs.h
3538
3539# Predefined preprocessor variables.
3540
3541cat >>confdefs.h <<_ACEOF
3542#define PACKAGE_NAME "$PACKAGE_NAME"
3543_ACEOF
3544
3545cat >>confdefs.h <<_ACEOF
3546#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3547_ACEOF
3548
3549cat >>confdefs.h <<_ACEOF
3550#define PACKAGE_VERSION "$PACKAGE_VERSION"
3551_ACEOF
3552
3553cat >>confdefs.h <<_ACEOF
3554#define PACKAGE_STRING "$PACKAGE_STRING"
3555_ACEOF
3556
3557cat >>confdefs.h <<_ACEOF
3558#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3559_ACEOF
3560
3561cat >>confdefs.h <<_ACEOF
3562#define PACKAGE_URL "$PACKAGE_URL"
3563_ACEOF
3564
3565
3566# Let the site file select an alternate cache file if it wants to.
3567# Prefer an explicitly selected file to automatically selected ones.
3568ac_site_file1=NONE
3569ac_site_file2=NONE
3570if test -n "$CONFIG_SITE"; then
3571  # We do not want a PATH search for config.site.
3572  case $CONFIG_SITE in #((
3573    -*)  ac_site_file1=./$CONFIG_SITE;;
3574    */*) ac_site_file1=$CONFIG_SITE;;
3575    *)   ac_site_file1=./$CONFIG_SITE;;
3576  esac
3577elif test "x$prefix" != xNONE; then
3578  ac_site_file1=$prefix/share/config.site
3579  ac_site_file2=$prefix/etc/config.site
3580else
3581  ac_site_file1=$ac_default_prefix/share/config.site
3582  ac_site_file2=$ac_default_prefix/etc/config.site
3583fi
3584for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3585do
3586  test "x$ac_site_file" = xNONE && continue
3587  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3588    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3589$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3590    sed 's/^/| /' "$ac_site_file" >&5
3591    . "$ac_site_file" \
3592      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594as_fn_error $? "failed to load site script $ac_site_file
3595See \`config.log' for more details" "$LINENO" 5; }
3596  fi
3597done
3598
3599if test -r "$cache_file"; then
3600  # Some versions of bash will fail to source /dev/null (special files
3601  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3602  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3603    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3604$as_echo "$as_me: loading cache $cache_file" >&6;}
3605    case $cache_file in
3606      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3607      *)                      . "./$cache_file";;
3608    esac
3609  fi
3610else
3611  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3612$as_echo "$as_me: creating cache $cache_file" >&6;}
3613  >$cache_file
3614fi
3615
3616as_fn_append ac_func_list " _set_invalid_parameter_handler"
3617as_fn_append ac_header_list " sys/socket.h"
3618as_fn_append ac_header_list " unistd.h"
3619as_fn_append ac_func_list " fcntl"
3620as_fn_append ac_func_list " symlink"
3621as_fn_append ac_func_list " tcdrain"
3622as_fn_append ac_header_list " sys/stat.h"
3623as_fn_append ac_func_list " fsync"
3624as_fn_append ac_func_list " getdtablesize"
3625as_fn_append ac_header_list " sys/param.h"
3626as_fn_append ac_header_list " netdb.h"
3627as_fn_append ac_func_list " getprogname"
3628as_fn_append ac_func_list " getexecname"
3629as_fn_append ac_header_list " sys/time.h"
3630as_fn_append ac_func_list " gettimeofday"
3631as_fn_append ac_header_list " limits.h"
3632as_fn_append ac_header_list " wchar.h"
3633as_fn_append ac_header_list " stdint.h"
3634as_fn_append ac_header_list " inttypes.h"
3635as_fn_append ac_header_list " threads.h"
3636as_fn_append ac_header_list " math.h"
3637as_fn_append ac_header_list " sys/mman.h"
3638as_fn_append ac_func_list " mprotect"
3639as_fn_append ac_func_list " lstat"
3640gl_printf_safe=yes
3641as_fn_append ac_func_list " sigaction"
3642as_fn_append ac_func_list " sigaltstack"
3643as_fn_append ac_func_list " siginterrupt"
3644as_fn_append ac_func_list " snprintf"
3645as_fn_append ac_func_list " vasnprintf"
3646as_fn_append ac_header_list " features.h"
3647as_fn_append ac_header_list " sys/uio.h"
3648as_fn_append ac_func_list " getsid"
3649as_fn_append ac_func_list " tcgetattr"
3650as_fn_append ac_header_list " crtdefs.h"
3651# Check that the precious variables saved in the cache have kept the same
3652# value.
3653ac_cache_corrupted=false
3654for ac_var in $ac_precious_vars; do
3655  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3656  eval ac_new_set=\$ac_env_${ac_var}_set
3657  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3658  eval ac_new_val=\$ac_env_${ac_var}_value
3659  case $ac_old_set,$ac_new_set in
3660    set,)
3661      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3662$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3663      ac_cache_corrupted=: ;;
3664    ,set)
3665      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3666$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3667      ac_cache_corrupted=: ;;
3668    ,);;
3669    *)
3670      if test "x$ac_old_val" != "x$ac_new_val"; then
3671	# differences in whitespace do not lead to failure.
3672	ac_old_val_w=`echo x $ac_old_val`
3673	ac_new_val_w=`echo x $ac_new_val`
3674	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3675	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3676$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3677	  ac_cache_corrupted=:
3678	else
3679	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3680$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3681	  eval $ac_var=\$ac_old_val
3682	fi
3683	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3684$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3685	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3686$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3687      fi;;
3688  esac
3689  # Pass precious variables to config.status.
3690  if test "$ac_new_set" = set; then
3691    case $ac_new_val in
3692    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3693    *) ac_arg=$ac_var=$ac_new_val ;;
3694    esac
3695    case " $ac_configure_args " in
3696      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3697      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3698    esac
3699  fi
3700done
3701if $ac_cache_corrupted; then
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3705$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3706  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3707fi
3708## -------------------- ##
3709## Main body of script. ##
3710## -------------------- ##
3711
3712ac_ext=c
3713ac_cpp='$CPP $CPPFLAGS'
3714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718
3719
3720ac_aux_dir=
3721for ac_dir in build-aux "$srcdir"/build-aux; do
3722  if test -f "$ac_dir/install-sh"; then
3723    ac_aux_dir=$ac_dir
3724    ac_install_sh="$ac_aux_dir/install-sh -c"
3725    break
3726  elif test -f "$ac_dir/install.sh"; then
3727    ac_aux_dir=$ac_dir
3728    ac_install_sh="$ac_aux_dir/install.sh -c"
3729    break
3730  elif test -f "$ac_dir/shtool"; then
3731    ac_aux_dir=$ac_dir
3732    ac_install_sh="$ac_aux_dir/shtool install -c"
3733    break
3734  fi
3735done
3736if test -z "$ac_aux_dir"; then
3737  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3738fi
3739
3740# These three variables are undocumented and unsupported,
3741# and are intended to be withdrawn in a future Autoconf release.
3742# They can cause serious problems if a builder's source tree is in a directory
3743# whose full name contains unusual characters.
3744ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3745ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3746ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3747
3748
3749. $srcdir/version.sh
3750
3751
3752
3753
3754
3755am__api_version='1.16'
3756
3757# Find a good install program.  We prefer a C program (faster),
3758# so one script is as good as another.  But avoid the broken or
3759# incompatible versions:
3760# SysV /etc/install, /usr/sbin/install
3761# SunOS /usr/etc/install
3762# IRIX /sbin/install
3763# AIX /bin/install
3764# AmigaOS /C/install, which installs bootblocks on floppy discs
3765# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3766# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3767# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3768# OS/2's system install, which has a completely different semantic
3769# ./install, which can be erroneously created by make from ./install.sh.
3770# Reject install programs that cannot install multiple files.
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3772$as_echo_n "checking for a BSD-compatible install... " >&6; }
3773if test -z "$INSTALL"; then
3774if ${ac_cv_path_install+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780  IFS=$as_save_IFS
3781  test -z "$as_dir" && as_dir=.
3782    # Account for people who put trailing slashes in PATH elements.
3783case $as_dir/ in #((
3784  ./ | .// | /[cC]/* | \
3785  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3786  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3787  /usr/ucb/* ) ;;
3788  *)
3789    # OSF1 and SCO ODT 3.0 have their own names for install.
3790    # Don't use installbsd from OSF since it installs stuff as root
3791    # by default.
3792    for ac_prog in ginstall scoinst install; do
3793      for ac_exec_ext in '' $ac_executable_extensions; do
3794	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3795	  if test $ac_prog = install &&
3796	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3797	    # AIX install.  It has an incompatible calling convention.
3798	    :
3799	  elif test $ac_prog = install &&
3800	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3801	    # program-specific install script used by HP pwplus--don't use.
3802	    :
3803	  else
3804	    rm -rf conftest.one conftest.two conftest.dir
3805	    echo one > conftest.one
3806	    echo two > conftest.two
3807	    mkdir conftest.dir
3808	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3809	      test -s conftest.one && test -s conftest.two &&
3810	      test -s conftest.dir/conftest.one &&
3811	      test -s conftest.dir/conftest.two
3812	    then
3813	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3814	      break 3
3815	    fi
3816	  fi
3817	fi
3818      done
3819    done
3820    ;;
3821esac
3822
3823  done
3824IFS=$as_save_IFS
3825
3826rm -rf conftest.one conftest.two conftest.dir
3827
3828fi
3829  if test "${ac_cv_path_install+set}" = set; then
3830    INSTALL=$ac_cv_path_install
3831  else
3832    # As a last resort, use the slow shell script.  Don't cache a
3833    # value for INSTALL within a source directory, because that will
3834    # break other packages using the cache if that directory is
3835    # removed, or if the value is a relative name.
3836    INSTALL=$ac_install_sh
3837  fi
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3840$as_echo "$INSTALL" >&6; }
3841
3842# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3843# It thinks the first close brace ends the variable substitution.
3844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3845
3846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3847
3848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3849
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3851$as_echo_n "checking whether build environment is sane... " >&6; }
3852# Reject unsafe characters in $srcdir or the absolute working directory
3853# name.  Accept space and tab only in the latter.
3854am_lf='
3855'
3856case `pwd` in
3857  *[\\\"\#\$\&\'\`$am_lf]*)
3858    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3859esac
3860case $srcdir in
3861  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3862    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3863esac
3864
3865# Do 'set' in a subshell so we don't clobber the current shell's
3866# arguments.  Must try -L first in case configure is actually a
3867# symlink; some systems play weird games with the mod time of symlinks
3868# (eg FreeBSD returns the mod time of the symlink's containing
3869# directory).
3870if (
3871   am_has_slept=no
3872   for am_try in 1 2; do
3873     echo "timestamp, slept: $am_has_slept" > conftest.file
3874     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3875     if test "$*" = "X"; then
3876	# -L didn't work.
3877	set X `ls -t "$srcdir/configure" conftest.file`
3878     fi
3879     if test "$*" != "X $srcdir/configure conftest.file" \
3880	&& test "$*" != "X conftest.file $srcdir/configure"; then
3881
3882	# If neither matched, then we have a broken ls.  This can happen
3883	# if, for instance, CONFIG_SHELL is bash and it inherits a
3884	# broken ls alias from the environment.  This has actually
3885	# happened.  Such a system could not be considered "sane".
3886	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3887  alias in your environment" "$LINENO" 5
3888     fi
3889     if test "$2" = conftest.file || test $am_try -eq 2; then
3890       break
3891     fi
3892     # Just in case.
3893     sleep 1
3894     am_has_slept=yes
3895   done
3896   test "$2" = conftest.file
3897   )
3898then
3899   # Ok.
3900   :
3901else
3902   as_fn_error $? "newly created file is older than distributed files!
3903Check your system clock" "$LINENO" 5
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3906$as_echo "yes" >&6; }
3907# If we didn't sleep, we still need to ensure time stamps of config.status and
3908# generated files are strictly newer.
3909am_sleep_pid=
3910if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3911  ( sleep 1 ) &
3912  am_sleep_pid=$!
3913fi
3914
3915rm -f conftest.file
3916
3917test "$program_prefix" != NONE &&
3918  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3919# Use a double $ so make ignores it.
3920test "$program_suffix" != NONE &&
3921  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3922# Double any \ or $.
3923# By default was `s,x,x', remove it if useless.
3924ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3925program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3926
3927# Expand $ac_aux_dir to an absolute path.
3928am_aux_dir=`cd "$ac_aux_dir" && pwd`
3929
3930if test x"${MISSING+set}" != xset; then
3931  case $am_aux_dir in
3932  *\ * | *\	*)
3933    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3934  *)
3935    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3936  esac
3937fi
3938# Use eval to expand $SHELL
3939if eval "$MISSING --is-lightweight"; then
3940  am_missing_run="$MISSING "
3941else
3942  am_missing_run=
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3944$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3945fi
3946
3947if test x"${install_sh+set}" != xset; then
3948  case $am_aux_dir in
3949  *\ * | *\	*)
3950    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3951  *)
3952    install_sh="\${SHELL} $am_aux_dir/install-sh"
3953  esac
3954fi
3955
3956# Installed binaries are usually stripped using 'strip' when the user
3957# run "make install-strip".  However 'strip' might not be the right
3958# tool to use in cross-compilation environments, therefore Automake
3959# will honor the 'STRIP' environment variable to overrule this program.
3960if test "$cross_compiling" != no; then
3961  if test -n "$ac_tool_prefix"; then
3962  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3963set dummy ${ac_tool_prefix}strip; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if ${ac_cv_prog_STRIP+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  if test -n "$STRIP"; then
3970  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975  IFS=$as_save_IFS
3976  test -z "$as_dir" && as_dir=.
3977    for ac_exec_ext in '' $ac_executable_extensions; do
3978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981    break 2
3982  fi
3983done
3984  done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989STRIP=$ac_cv_prog_STRIP
3990if test -n "$STRIP"; then
3991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3992$as_echo "$STRIP" >&6; }
3993else
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998
3999fi
4000if test -z "$ac_cv_prog_STRIP"; then
4001  ac_ct_STRIP=$STRIP
4002  # Extract the first word of "strip", so it can be a program name with args.
4003set dummy strip; ac_word=$2
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005$as_echo_n "checking for $ac_word... " >&6; }
4006if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4007  $as_echo_n "(cached) " >&6
4008else
4009  if test -n "$ac_ct_STRIP"; then
4010  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4011else
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017    for ac_exec_ext in '' $ac_executable_extensions; do
4018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019    ac_cv_prog_ac_ct_STRIP="strip"
4020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021    break 2
4022  fi
4023done
4024  done
4025IFS=$as_save_IFS
4026
4027fi
4028fi
4029ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4030if test -n "$ac_ct_STRIP"; then
4031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4032$as_echo "$ac_ct_STRIP" >&6; }
4033else
4034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035$as_echo "no" >&6; }
4036fi
4037
4038  if test "x$ac_ct_STRIP" = x; then
4039    STRIP=":"
4040  else
4041    case $cross_compiling:$ac_tool_warned in
4042yes:)
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045ac_tool_warned=yes ;;
4046esac
4047    STRIP=$ac_ct_STRIP
4048  fi
4049else
4050  STRIP="$ac_cv_prog_STRIP"
4051fi
4052
4053fi
4054INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4057$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4058if test -z "$MKDIR_P"; then
4059  if ${ac_cv_path_mkdir+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4064do
4065  IFS=$as_save_IFS
4066  test -z "$as_dir" && as_dir=.
4067    for ac_prog in mkdir gmkdir; do
4068	 for ac_exec_ext in '' $ac_executable_extensions; do
4069	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4070	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4071	     'mkdir (GNU coreutils) '* | \
4072	     'mkdir (coreutils) '* | \
4073	     'mkdir (fileutils) '4.1*)
4074	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4075	       break 3;;
4076	   esac
4077	 done
4078       done
4079  done
4080IFS=$as_save_IFS
4081
4082fi
4083
4084  test -d ./--version && rmdir ./--version
4085  if test "${ac_cv_path_mkdir+set}" = set; then
4086    MKDIR_P="$ac_cv_path_mkdir -p"
4087  else
4088    # As a last resort, use the slow shell script.  Don't cache a
4089    # value for MKDIR_P within a source directory, because that will
4090    # break other packages using the cache if that directory is
4091    # removed, or if the value is a relative name.
4092    MKDIR_P="$ac_install_sh -d"
4093  fi
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4096$as_echo "$MKDIR_P" >&6; }
4097
4098for ac_prog in gawk mawk nawk awk
4099do
4100  # Extract the first word of "$ac_prog", so it can be a program name with args.
4101set dummy $ac_prog; ac_word=$2
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103$as_echo_n "checking for $ac_word... " >&6; }
4104if ${ac_cv_prog_AWK+:} false; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  if test -n "$AWK"; then
4108  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4109else
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113  IFS=$as_save_IFS
4114  test -z "$as_dir" && as_dir=.
4115    for ac_exec_ext in '' $ac_executable_extensions; do
4116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117    ac_cv_prog_AWK="$ac_prog"
4118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119    break 2
4120  fi
4121done
4122  done
4123IFS=$as_save_IFS
4124
4125fi
4126fi
4127AWK=$ac_cv_prog_AWK
4128if test -n "$AWK"; then
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4130$as_echo "$AWK" >&6; }
4131else
4132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
4134fi
4135
4136
4137  test -n "$AWK" && break
4138done
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4141$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4142set x ${MAKE-make}
4143ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4144if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  cat >conftest.make <<\_ACEOF
4148SHELL = /bin/sh
4149all:
4150	@echo '@@@%%%=$(MAKE)=@@@%%%'
4151_ACEOF
4152# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4153case `${MAKE-make} -f conftest.make 2>/dev/null` in
4154  *@@@%%%=?*=@@@%%%*)
4155    eval ac_cv_prog_make_${ac_make}_set=yes;;
4156  *)
4157    eval ac_cv_prog_make_${ac_make}_set=no;;
4158esac
4159rm -f conftest.make
4160fi
4161if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4163$as_echo "yes" >&6; }
4164  SET_MAKE=
4165else
4166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167$as_echo "no" >&6; }
4168  SET_MAKE="MAKE=${MAKE-make}"
4169fi
4170
4171rm -rf .tst 2>/dev/null
4172mkdir .tst 2>/dev/null
4173if test -d .tst; then
4174  am__leading_dot=.
4175else
4176  am__leading_dot=_
4177fi
4178rmdir .tst 2>/dev/null
4179
4180# Check whether --enable-silent-rules was given.
4181if test "${enable_silent_rules+set}" = set; then :
4182  enableval=$enable_silent_rules;
4183fi
4184
4185case $enable_silent_rules in # (((
4186  yes) AM_DEFAULT_VERBOSITY=0;;
4187   no) AM_DEFAULT_VERBOSITY=1;;
4188    *) AM_DEFAULT_VERBOSITY=1;;
4189esac
4190am_make=${MAKE-make}
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4192$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4193if ${am_cv_make_support_nested_variables+:} false; then :
4194  $as_echo_n "(cached) " >&6
4195else
4196  if $as_echo 'TRUE=$(BAR$(V))
4197BAR0=false
4198BAR1=true
4199V=1
4200am__doit:
4201	@$(TRUE)
4202.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4203  am_cv_make_support_nested_variables=yes
4204else
4205  am_cv_make_support_nested_variables=no
4206fi
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4209$as_echo "$am_cv_make_support_nested_variables" >&6; }
4210if test $am_cv_make_support_nested_variables = yes; then
4211    AM_V='$(V)'
4212  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4213else
4214  AM_V=$AM_DEFAULT_VERBOSITY
4215  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4216fi
4217AM_BACKSLASH='\'
4218
4219
4220
4221  if test "`cd $srcdir && pwd`" != "`pwd`"; then
4222  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4223  # is not polluted with repeated "-I."
4224  am__isrc=' -I$(srcdir)'
4225  # test to see if srcdir already configured
4226  if test -f $srcdir/config.status; then
4227    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4228  fi
4229fi
4230
4231# test whether we have cygpath
4232if test -z "$CYGPATH_W"; then
4233  if (cygpath --version) >/dev/null 2>/dev/null; then
4234    CYGPATH_W='cygpath -w'
4235  else
4236    CYGPATH_W=echo
4237  fi
4238fi
4239
4240
4241# Define the identity of the package.
4242 PACKAGE=''
4243 VERSION=''
4244
4245
4246# Some tools Automake needs.
4247
4248ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4249
4250
4251AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4252
4253
4254AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4255
4256
4257AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4258
4259
4260MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4261
4262# For better backward compatibility.  To be removed once Automake 1.9.x
4263# dies out for good.  For more background, see:
4264# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4265# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4266mkdir_p='$(MKDIR_P)'
4267
4268# We need awk for the "check" target (and possibly the TAP driver).  The
4269# system "awk" is bad on some platforms.
4270# Always define AMTAR for backward compatibility.  Yes, it's still used
4271# in the wild :-(  We should find a proper way to deprecate it ...
4272AMTAR='$${TAR-tar}'
4273
4274
4275# We'll loop over all known methods to create a tar archive until one works.
4276_am_tools='gnutar  pax cpio none'
4277
4278am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4279
4280
4281
4282
4283
4284
4285# POSIX will say in a future version that running "rm -f" with no argument
4286# is OK; and we want to be able to make that assumption in our Makefile
4287# recipes.  So use an aggressive probe to check that the usage we want is
4288# actually supported "in the wild" to an acceptable degree.
4289# See automake bug#10828.
4290# To make any issue more visible, cause the running configure to be aborted
4291# by default if the 'rm' program in use doesn't match our expectations; the
4292# user can still override this though.
4293if rm -f && rm -fr && rm -rf; then : OK; else
4294  cat >&2 <<'END'
4295Oops!
4296
4297Your 'rm' program seems unable to run without file operands specified
4298on the command line, even when the '-f' option is present.  This is contrary
4299to the behaviour of most rm programs out there, and not conforming with
4300the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4301
4302Please tell bug-automake@gnu.org about your system, including the value
4303of your $PATH and any error possibly output before this message.  This
4304can help us improve future automake versions.
4305
4306END
4307  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4308    echo 'Configuration will proceed anyway, since you have set the' >&2
4309    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4310    echo >&2
4311  else
4312    cat >&2 <<'END'
4313Aborting the configuration process, to ensure you take notice of the issue.
4314
4315You can download and install GNU coreutils to get an 'rm' implementation
4316that behaves properly: <https://www.gnu.org/software/coreutils/>.
4317
4318If you want to complete the configuration process using your problematic
4319'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4320to "yes", and re-run configure.
4321
4322END
4323    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4324  fi
4325fi
4326
4327    PACKAGE=libtextstyle
4328
4329     VERSION=$VERSION_NUMBER
4330
4331
4332
4333cat >>confdefs.h <<_ACEOF
4334#define PACKAGE "$PACKAGE"
4335_ACEOF
4336
4337
4338cat >>confdefs.h <<_ACEOF
4339#define VERSION "$VERSION"
4340_ACEOF
4341
4342
4343
4344ac_config_headers="$ac_config_headers config.h"
4345
4346
4347am__tar='${AMTAR} chof - --owner=root --group=root "$$tardir"'
4348
4349
4350ac_ext=c
4351ac_cpp='$CPP $CPPFLAGS'
4352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355if test -n "$ac_tool_prefix"; then
4356  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4357set dummy ${ac_tool_prefix}gcc; ac_word=$2
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359$as_echo_n "checking for $ac_word... " >&6; }
4360if ${ac_cv_prog_CC+:} false; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  if test -n "$CC"; then
4364  ac_cv_prog_CC="$CC" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369  IFS=$as_save_IFS
4370  test -z "$as_dir" && as_dir=.
4371    for ac_exec_ext in '' $ac_executable_extensions; do
4372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375    break 2
4376  fi
4377done
4378  done
4379IFS=$as_save_IFS
4380
4381fi
4382fi
4383CC=$ac_cv_prog_CC
4384if test -n "$CC"; then
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4386$as_echo "$CC" >&6; }
4387else
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
4390fi
4391
4392
4393fi
4394if test -z "$ac_cv_prog_CC"; then
4395  ac_ct_CC=$CC
4396  # Extract the first word of "gcc", so it can be a program name with args.
4397set dummy gcc; ac_word=$2
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399$as_echo_n "checking for $ac_word... " >&6; }
4400if ${ac_cv_prog_ac_ct_CC+:} false; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403  if test -n "$ac_ct_CC"; then
4404  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411    for ac_exec_ext in '' $ac_executable_extensions; do
4412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413    ac_cv_prog_ac_ct_CC="gcc"
4414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415    break 2
4416  fi
4417done
4418  done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423ac_ct_CC=$ac_cv_prog_ac_ct_CC
4424if test -n "$ac_ct_CC"; then
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4426$as_echo "$ac_ct_CC" >&6; }
4427else
4428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429$as_echo "no" >&6; }
4430fi
4431
4432  if test "x$ac_ct_CC" = x; then
4433    CC=""
4434  else
4435    case $cross_compiling:$ac_tool_warned in
4436yes:)
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4439ac_tool_warned=yes ;;
4440esac
4441    CC=$ac_ct_CC
4442  fi
4443else
4444  CC="$ac_cv_prog_CC"
4445fi
4446
4447if test -z "$CC"; then
4448          if test -n "$ac_tool_prefix"; then
4449    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4450set dummy ${ac_tool_prefix}cc; ac_word=$2
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
4453if ${ac_cv_prog_CC+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  if test -n "$CC"; then
4457  ac_cv_prog_CC="$CC" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462  IFS=$as_save_IFS
4463  test -z "$as_dir" && as_dir=.
4464    for ac_exec_ext in '' $ac_executable_extensions; do
4465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466    ac_cv_prog_CC="${ac_tool_prefix}cc"
4467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468    break 2
4469  fi
4470done
4471  done
4472IFS=$as_save_IFS
4473
4474fi
4475fi
4476CC=$ac_cv_prog_CC
4477if test -n "$CC"; then
4478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4479$as_echo "$CC" >&6; }
4480else
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483fi
4484
4485
4486  fi
4487fi
4488if test -z "$CC"; then
4489  # Extract the first word of "cc", so it can be a program name with args.
4490set dummy cc; ac_word=$2
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492$as_echo_n "checking for $ac_word... " >&6; }
4493if ${ac_cv_prog_CC+:} false; then :
4494  $as_echo_n "(cached) " >&6
4495else
4496  if test -n "$CC"; then
4497  ac_cv_prog_CC="$CC" # Let the user override the test.
4498else
4499  ac_prog_rejected=no
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503  IFS=$as_save_IFS
4504  test -z "$as_dir" && as_dir=.
4505    for ac_exec_ext in '' $ac_executable_extensions; do
4506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4508       ac_prog_rejected=yes
4509       continue
4510     fi
4511    ac_cv_prog_CC="cc"
4512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516  done
4517IFS=$as_save_IFS
4518
4519if test $ac_prog_rejected = yes; then
4520  # We found a bogon in the path, so make sure we never use it.
4521  set dummy $ac_cv_prog_CC
4522  shift
4523  if test $# != 0; then
4524    # We chose a different compiler from the bogus one.
4525    # However, it has the same basename, so the bogon will be chosen
4526    # first if we set CC to just the basename; use the full file name.
4527    shift
4528    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4529  fi
4530fi
4531fi
4532fi
4533CC=$ac_cv_prog_CC
4534if test -n "$CC"; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4536$as_echo "$CC" >&6; }
4537else
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542
4543fi
4544if test -z "$CC"; then
4545  if test -n "$ac_tool_prefix"; then
4546  for ac_prog in cl.exe
4547  do
4548    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4549set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551$as_echo_n "checking for $ac_word... " >&6; }
4552if ${ac_cv_prog_CC+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  if test -n "$CC"; then
4556  ac_cv_prog_CC="$CC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561  IFS=$as_save_IFS
4562  test -z "$as_dir" && as_dir=.
4563    for ac_exec_ext in '' $ac_executable_extensions; do
4564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567    break 2
4568  fi
4569done
4570  done
4571IFS=$as_save_IFS
4572
4573fi
4574fi
4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578$as_echo "$CC" >&6; }
4579else
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584
4585    test -n "$CC" && break
4586  done
4587fi
4588if test -z "$CC"; then
4589  ac_ct_CC=$CC
4590  for ac_prog in cl.exe
4591do
4592  # Extract the first word of "$ac_prog", so it can be a program name with args.
4593set dummy $ac_prog; ac_word=$2
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595$as_echo_n "checking for $ac_word... " >&6; }
4596if ${ac_cv_prog_ac_ct_CC+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  if test -n "$ac_ct_CC"; then
4600  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605  IFS=$as_save_IFS
4606  test -z "$as_dir" && as_dir=.
4607    for ac_exec_ext in '' $ac_executable_extensions; do
4608  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609    ac_cv_prog_ac_ct_CC="$ac_prog"
4610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611    break 2
4612  fi
4613done
4614  done
4615IFS=$as_save_IFS
4616
4617fi
4618fi
4619ac_ct_CC=$ac_cv_prog_ac_ct_CC
4620if test -n "$ac_ct_CC"; then
4621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4622$as_echo "$ac_ct_CC" >&6; }
4623else
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626fi
4627
4628
4629  test -n "$ac_ct_CC" && break
4630done
4631
4632  if test "x$ac_ct_CC" = x; then
4633    CC=""
4634  else
4635    case $cross_compiling:$ac_tool_warned in
4636yes:)
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4639ac_tool_warned=yes ;;
4640esac
4641    CC=$ac_ct_CC
4642  fi
4643fi
4644
4645fi
4646if test -z "$CC"; then
4647  if test -n "$ac_tool_prefix"; then
4648  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4649set dummy ${ac_tool_prefix}clang; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if ${ac_cv_prog_CC+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  if test -n "$CC"; then
4656  ac_cv_prog_CC="$CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  test -z "$as_dir" && as_dir=.
4663    for ac_exec_ext in '' $ac_executable_extensions; do
4664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665    ac_cv_prog_CC="${ac_tool_prefix}clang"
4666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670  done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675CC=$ac_cv_prog_CC
4676if test -n "$CC"; then
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678$as_echo "$CC" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685fi
4686if test -z "$ac_cv_prog_CC"; then
4687  ac_ct_CC=$CC
4688  # Extract the first word of "clang", so it can be a program name with args.
4689set dummy clang; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
4692if ${ac_cv_prog_ac_ct_CC+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  if test -n "$ac_ct_CC"; then
4696  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  test -z "$as_dir" && as_dir=.
4703    for ac_exec_ext in '' $ac_executable_extensions; do
4704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705    ac_cv_prog_ac_ct_CC="clang"
4706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707    break 2
4708  fi
4709done
4710  done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716if test -n "$ac_ct_CC"; then
4717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718$as_echo "$ac_ct_CC" >&6; }
4719else
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724  if test "x$ac_ct_CC" = x; then
4725    CC=""
4726  else
4727    case $cross_compiling:$ac_tool_warned in
4728yes:)
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733    CC=$ac_ct_CC
4734  fi
4735else
4736  CC="$ac_cv_prog_CC"
4737fi
4738
4739fi
4740
4741
4742test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744as_fn_error $? "no acceptable C compiler found in \$PATH
4745See \`config.log' for more details" "$LINENO" 5; }
4746
4747# Provide some information about the compiler.
4748$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4749set X $ac_compile
4750ac_compiler=$2
4751for ac_option in --version -v -V -qversion -version; do
4752  { { ac_try="$ac_compiler $ac_option >&5"
4753case "(($ac_try" in
4754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755  *) ac_try_echo=$ac_try;;
4756esac
4757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758$as_echo "$ac_try_echo"; } >&5
4759  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760  ac_status=$?
4761  if test -s conftest.err; then
4762    sed '10a\
4763... rest of stderr output deleted ...
4764         10q' conftest.err >conftest.er1
4765    cat conftest.er1 >&5
4766  fi
4767  rm -f conftest.er1 conftest.err
4768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769  test $ac_status = 0; }
4770done
4771
4772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h.  */
4774
4775int
4776main ()
4777{
4778
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783ac_clean_files_save=$ac_clean_files
4784ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4785# Try to create an executable without -o first, disregard a.out.
4786# It will help us diagnose broken compilers, and finding out an intuition
4787# of exeext.
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4789$as_echo_n "checking whether the C compiler works... " >&6; }
4790ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4791
4792# The possible output files:
4793ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4794
4795ac_rmfiles=
4796for ac_file in $ac_files
4797do
4798  case $ac_file in
4799    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4800    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4801  esac
4802done
4803rm -f $ac_rmfiles
4804
4805if { { ac_try="$ac_link_default"
4806case "(($ac_try" in
4807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808  *) ac_try_echo=$ac_try;;
4809esac
4810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4811$as_echo "$ac_try_echo"; } >&5
4812  (eval "$ac_link_default") 2>&5
4813  ac_status=$?
4814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4815  test $ac_status = 0; }; then :
4816  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4817# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4818# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4819# so that the user can short-circuit this test for compilers unknown to
4820# Autoconf.
4821for ac_file in $ac_files ''
4822do
4823  test -f "$ac_file" || continue
4824  case $ac_file in
4825    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4826	;;
4827    [ab].out )
4828	# We found the default executable, but exeext='' is most
4829	# certainly right.
4830	break;;
4831    *.* )
4832	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4833	then :; else
4834	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4835	fi
4836	# We set ac_cv_exeext here because the later test for it is not
4837	# safe: cross compilers may not add the suffix if given an `-o'
4838	# argument, so we may need to know it at that point already.
4839	# Even if this section looks crufty: it has the advantage of
4840	# actually working.
4841	break;;
4842    * )
4843	break;;
4844  esac
4845done
4846test "$ac_cv_exeext" = no && ac_cv_exeext=
4847
4848else
4849  ac_file=''
4850fi
4851if test -z "$ac_file"; then :
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854$as_echo "$as_me: failed program was:" >&5
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
4857{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4859as_fn_error 77 "C compiler cannot create executables
4860See \`config.log' for more details" "$LINENO" 5; }
4861else
4862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863$as_echo "yes" >&6; }
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4866$as_echo_n "checking for C compiler default output file name... " >&6; }
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4868$as_echo "$ac_file" >&6; }
4869ac_exeext=$ac_cv_exeext
4870
4871rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4872ac_clean_files=$ac_clean_files_save
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4874$as_echo_n "checking for suffix of executables... " >&6; }
4875if { { ac_try="$ac_link"
4876case "(($ac_try" in
4877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878  *) ac_try_echo=$ac_try;;
4879esac
4880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881$as_echo "$ac_try_echo"; } >&5
4882  (eval "$ac_link") 2>&5
4883  ac_status=$?
4884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885  test $ac_status = 0; }; then :
4886  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4887# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4888# work properly (i.e., refer to `conftest.exe'), while it won't with
4889# `rm'.
4890for ac_file in conftest.exe conftest conftest.*; do
4891  test -f "$ac_file" || continue
4892  case $ac_file in
4893    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4894    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4895	  break;;
4896    * ) break;;
4897  esac
4898done
4899else
4900  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4902as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4903See \`config.log' for more details" "$LINENO" 5; }
4904fi
4905rm -f conftest conftest$ac_cv_exeext
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4907$as_echo "$ac_cv_exeext" >&6; }
4908
4909rm -f conftest.$ac_ext
4910EXEEXT=$ac_cv_exeext
4911ac_exeext=$EXEEXT
4912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914#include <stdio.h>
4915int
4916main ()
4917{
4918FILE *f = fopen ("conftest.out", "w");
4919 return ferror (f) || fclose (f) != 0;
4920
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925ac_clean_files="$ac_clean_files conftest.out"
4926# Check that the compiler produces executables we can run.  If not, either
4927# the compiler is broken, or we cross compile.
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4929$as_echo_n "checking whether we are cross compiling... " >&6; }
4930if test "$cross_compiling" != yes; then
4931  { { ac_try="$ac_link"
4932case "(($ac_try" in
4933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934  *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937$as_echo "$ac_try_echo"; } >&5
4938  (eval "$ac_link") 2>&5
4939  ac_status=$?
4940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941  test $ac_status = 0; }
4942  if { ac_try='./conftest$ac_cv_exeext'
4943  { { case "(($ac_try" in
4944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945  *) ac_try_echo=$ac_try;;
4946esac
4947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948$as_echo "$ac_try_echo"; } >&5
4949  (eval "$ac_try") 2>&5
4950  ac_status=$?
4951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952  test $ac_status = 0; }; }; then
4953    cross_compiling=no
4954  else
4955    if test "$cross_compiling" = maybe; then
4956	cross_compiling=yes
4957    else
4958	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4960as_fn_error $? "cannot run C compiled programs.
4961If you meant to cross compile, use \`--host'.
4962See \`config.log' for more details" "$LINENO" 5; }
4963    fi
4964  fi
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4967$as_echo "$cross_compiling" >&6; }
4968
4969rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4970ac_clean_files=$ac_clean_files_save
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4972$as_echo_n "checking for suffix of object files... " >&6; }
4973if ${ac_cv_objext+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978
4979int
4980main ()
4981{
4982
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987rm -f conftest.o conftest.obj
4988if { { ac_try="$ac_compile"
4989case "(($ac_try" in
4990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991  *) ac_try_echo=$ac_try;;
4992esac
4993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994$as_echo "$ac_try_echo"; } >&5
4995  (eval "$ac_compile") 2>&5
4996  ac_status=$?
4997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998  test $ac_status = 0; }; then :
4999  for ac_file in conftest.o conftest.obj conftest.*; do
5000  test -f "$ac_file" || continue;
5001  case $ac_file in
5002    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5003    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5004       break;;
5005  esac
5006done
5007else
5008  $as_echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5013as_fn_error $? "cannot compute suffix of object files: cannot compile
5014See \`config.log' for more details" "$LINENO" 5; }
5015fi
5016rm -f conftest.$ac_cv_objext conftest.$ac_ext
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5019$as_echo "$ac_cv_objext" >&6; }
5020OBJEXT=$ac_cv_objext
5021ac_objext=$OBJEXT
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5023$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5024if ${ac_cv_c_compiler_gnu+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029
5030int
5031main ()
5032{
5033#ifndef __GNUC__
5034       choke me
5035#endif
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"; then :
5042  ac_compiler_gnu=yes
5043else
5044  ac_compiler_gnu=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047ac_cv_c_compiler_gnu=$ac_compiler_gnu
5048
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5051$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5052if test $ac_compiler_gnu = yes; then
5053  GCC=yes
5054else
5055  GCC=
5056fi
5057ac_test_CFLAGS=${CFLAGS+set}
5058ac_save_CFLAGS=$CFLAGS
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5060$as_echo_n "checking whether $CC accepts -g... " >&6; }
5061if ${ac_cv_prog_cc_g+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  ac_save_c_werror_flag=$ac_c_werror_flag
5065   ac_c_werror_flag=yes
5066   ac_cv_prog_cc_g=no
5067   CFLAGS="-g"
5068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070
5071int
5072main ()
5073{
5074
5075  ;
5076  return 0;
5077}
5078_ACEOF
5079if ac_fn_c_try_compile "$LINENO"; then :
5080  ac_cv_prog_cc_g=yes
5081else
5082  CFLAGS=""
5083      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085
5086int
5087main ()
5088{
5089
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_compile "$LINENO"; then :
5095
5096else
5097  ac_c_werror_flag=$ac_save_c_werror_flag
5098	 CFLAGS="-g"
5099	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101
5102int
5103main ()
5104{
5105
5106  ;
5107  return 0;
5108}
5109_ACEOF
5110if ac_fn_c_try_compile "$LINENO"; then :
5111  ac_cv_prog_cc_g=yes
5112fi
5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116fi
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118   ac_c_werror_flag=$ac_save_c_werror_flag
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5121$as_echo "$ac_cv_prog_cc_g" >&6; }
5122if test "$ac_test_CFLAGS" = set; then
5123  CFLAGS=$ac_save_CFLAGS
5124elif test $ac_cv_prog_cc_g = yes; then
5125  if test "$GCC" = yes; then
5126    CFLAGS="-g -O2"
5127  else
5128    CFLAGS="-g"
5129  fi
5130else
5131  if test "$GCC" = yes; then
5132    CFLAGS="-O2"
5133  else
5134    CFLAGS=
5135  fi
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5138$as_echo_n "checking for $CC option to enable C11 features... " >&6; }
5139if ${ac_cv_prog_cc_c11+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  ac_cv_prog_cc_c11=no
5143ac_save_CC=$CC
5144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h.  */
5146#include <stdarg.h>
5147#include <stdbool.h>
5148#include <stddef.h>
5149#include <stdlib.h>
5150#include <wchar.h>
5151#include <stdio.h>
5152
5153// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5154#define debug(...) fprintf (stderr, __VA_ARGS__)
5155#define showlist(...) puts (#__VA_ARGS__)
5156#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5157static void
5158test_varargs_macros (void)
5159{
5160  int x = 1234;
5161  int y = 5678;
5162  debug ("Flag");
5163  debug ("X = %d\n", x);
5164  showlist (The first, second, and third items.);
5165  report (x>y, "x is %d but y is %d", x, y);
5166}
5167
5168// Check long long types.
5169#define BIG64 18446744073709551615ull
5170#define BIG32 4294967295ul
5171#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5172#if !BIG_OK
5173  your preprocessor is broken;
5174#endif
5175#if BIG_OK
5176#else
5177  your preprocessor is broken;
5178#endif
5179static long long int bignum = -9223372036854775807LL;
5180static unsigned long long int ubignum = BIG64;
5181
5182struct incomplete_array
5183{
5184  int datasize;
5185  double data[];
5186};
5187
5188struct named_init {
5189  int number;
5190  const wchar_t *name;
5191  double average;
5192};
5193
5194typedef const char *ccp;
5195
5196static inline int
5197test_restrict (ccp restrict text)
5198{
5199  // See if C++-style comments work.
5200  // Iterate through items via the restricted pointer.
5201  // Also check for declarations in for loops.
5202  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5203    continue;
5204  return 0;
5205}
5206
5207// Check varargs and va_copy.
5208static bool
5209test_varargs (const char *format, ...)
5210{
5211  va_list args;
5212  va_start (args, format);
5213  va_list args_copy;
5214  va_copy (args_copy, args);
5215
5216  const char *str = "";
5217  int number = 0;
5218  float fnumber = 0;
5219
5220  while (*format)
5221    {
5222      switch (*format++)
5223	{
5224	case 's': // string
5225	  str = va_arg (args_copy, const char *);
5226	  break;
5227	case 'd': // int
5228	  number = va_arg (args_copy, int);
5229	  break;
5230	case 'f': // float
5231	  fnumber = va_arg (args_copy, double);
5232	  break;
5233	default:
5234	  break;
5235	}
5236    }
5237  va_end (args_copy);
5238  va_end (args);
5239
5240  return *str && number && fnumber;
5241}
5242// Check _Alignas.
5243char _Alignas (double) aligned_as_double;
5244char _Alignas (0) no_special_alignment;
5245extern char aligned_as_int;
5246char _Alignas (0) _Alignas (int) aligned_as_int;
5247
5248// Check _Alignof.
5249enum
5250{
5251  int_alignment = _Alignof (int),
5252  int_array_alignment = _Alignof (int[100]),
5253  char_alignment = _Alignof (char)
5254};
5255_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5256
5257// Check _Noreturn.
5258int _Noreturn does_not_return (void) { for (;;) continue; }
5259
5260// Check _Static_assert.
5261struct test_static_assert
5262{
5263  int x;
5264  _Static_assert (sizeof (int) <= sizeof (long int),
5265                  "_Static_assert does not work in struct");
5266  long int y;
5267};
5268
5269// Check UTF-8 literals.
5270#define u8 syntax error!
5271char const utf8_literal[] = u8"happens to be ASCII" "another string";
5272
5273// Check duplicate typedefs.
5274typedef long *long_ptr;
5275typedef long int *long_ptr;
5276typedef long_ptr long_ptr;
5277
5278// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5279struct anonymous
5280{
5281  union {
5282    struct { int i; int j; };
5283    struct { int k; long int l; } w;
5284  };
5285  int m;
5286} v1;
5287
5288int
5289main ()
5290{
5291
5292  // Check bool.
5293  _Bool success = false;
5294
5295  // Check restrict.
5296  if (test_restrict ("String literal") == 0)
5297    success = true;
5298  char *restrict newvar = "Another string";
5299
5300  // Check varargs.
5301  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5302  test_varargs_macros ();
5303
5304  // Check flexible array members.
5305  struct incomplete_array *ia =
5306    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5307  ia->datasize = 10;
5308  for (int i = 0; i < ia->datasize; ++i)
5309    ia->data[i] = i * 1.234;
5310
5311  // Check named initializers.
5312  struct named_init ni = {
5313    .number = 34,
5314    .name = L"Test wide string",
5315    .average = 543.34343,
5316  };
5317
5318  ni.number = 58;
5319
5320  int dynamic_array[ni.number];
5321  dynamic_array[ni.number - 1] = 543;
5322
5323  // work around unused variable warnings
5324  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5325	  || dynamic_array[ni.number - 1] != 543);
5326
5327  v1.i = 2;
5328  v1.w.k = 5;
5329  _Static_assert ((offsetof (struct anonymous, i)
5330		   == offsetof (struct anonymous, w.k)),
5331		  "Anonymous union alignment botch");
5332
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337for ac_arg in '' -std=gnu11
5338do
5339  CC="$ac_save_CC $ac_arg"
5340  if ac_fn_c_try_compile "$LINENO"; then :
5341  ac_cv_prog_cc_c11=$ac_arg
5342fi
5343rm -f core conftest.err conftest.$ac_objext
5344  test "x$ac_cv_prog_cc_c11" != "xno" && break
5345done
5346rm -f conftest.$ac_ext
5347CC=$ac_save_CC
5348
5349fi
5350# AC_CACHE_VAL
5351ac_prog_cc_stdc_options=
5352case "x$ac_cv_prog_cc_c11" in
5353  x)
5354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5355$as_echo "none needed" >&6; } ;;
5356  xno)
5357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5358$as_echo "unsupported" >&6; } ;;
5359  *)
5360    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5361    CC=$CC$ac_prog_cc_stdc_options
5362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5363$as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
5364esac
5365if test "x$ac_cv_prog_cc_c11" != xno; then :
5366  ac_prog_cc_stdc=c11
5367		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5370$as_echo_n "checking for $CC option to enable C99 features... " >&6; }
5371if ${ac_cv_prog_cc_c99+:} false; then :
5372  $as_echo_n "(cached) " >&6
5373else
5374  ac_cv_prog_cc_c99=no
5375ac_save_CC=$CC
5376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378#include <stdarg.h>
5379#include <stdbool.h>
5380#include <stddef.h>
5381#include <stdlib.h>
5382#include <wchar.h>
5383#include <stdio.h>
5384
5385// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5386#define debug(...) fprintf (stderr, __VA_ARGS__)
5387#define showlist(...) puts (#__VA_ARGS__)
5388#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5389static void
5390test_varargs_macros (void)
5391{
5392  int x = 1234;
5393  int y = 5678;
5394  debug ("Flag");
5395  debug ("X = %d\n", x);
5396  showlist (The first, second, and third items.);
5397  report (x>y, "x is %d but y is %d", x, y);
5398}
5399
5400// Check long long types.
5401#define BIG64 18446744073709551615ull
5402#define BIG32 4294967295ul
5403#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5404#if !BIG_OK
5405  your preprocessor is broken;
5406#endif
5407#if BIG_OK
5408#else
5409  your preprocessor is broken;
5410#endif
5411static long long int bignum = -9223372036854775807LL;
5412static unsigned long long int ubignum = BIG64;
5413
5414struct incomplete_array
5415{
5416  int datasize;
5417  double data[];
5418};
5419
5420struct named_init {
5421  int number;
5422  const wchar_t *name;
5423  double average;
5424};
5425
5426typedef const char *ccp;
5427
5428static inline int
5429test_restrict (ccp restrict text)
5430{
5431  // See if C++-style comments work.
5432  // Iterate through items via the restricted pointer.
5433  // Also check for declarations in for loops.
5434  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5435    continue;
5436  return 0;
5437}
5438
5439// Check varargs and va_copy.
5440static bool
5441test_varargs (const char *format, ...)
5442{
5443  va_list args;
5444  va_start (args, format);
5445  va_list args_copy;
5446  va_copy (args_copy, args);
5447
5448  const char *str = "";
5449  int number = 0;
5450  float fnumber = 0;
5451
5452  while (*format)
5453    {
5454      switch (*format++)
5455	{
5456	case 's': // string
5457	  str = va_arg (args_copy, const char *);
5458	  break;
5459	case 'd': // int
5460	  number = va_arg (args_copy, int);
5461	  break;
5462	case 'f': // float
5463	  fnumber = va_arg (args_copy, double);
5464	  break;
5465	default:
5466	  break;
5467	}
5468    }
5469  va_end (args_copy);
5470  va_end (args);
5471
5472  return *str && number && fnumber;
5473}
5474int
5475main ()
5476{
5477
5478  // Check bool.
5479  _Bool success = false;
5480
5481  // Check restrict.
5482  if (test_restrict ("String literal") == 0)
5483    success = true;
5484  char *restrict newvar = "Another string";
5485
5486  // Check varargs.
5487  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5488  test_varargs_macros ();
5489
5490  // Check flexible array members.
5491  struct incomplete_array *ia =
5492    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5493  ia->datasize = 10;
5494  for (int i = 0; i < ia->datasize; ++i)
5495    ia->data[i] = i * 1.234;
5496
5497  // Check named initializers.
5498  struct named_init ni = {
5499    .number = 34,
5500    .name = L"Test wide string",
5501    .average = 543.34343,
5502  };
5503
5504  ni.number = 58;
5505
5506  int dynamic_array[ni.number];
5507  dynamic_array[ni.number - 1] = 543;
5508
5509  // work around unused variable warnings
5510  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5511	  || dynamic_array[ni.number - 1] != 543);
5512
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5518do
5519  CC="$ac_save_CC $ac_arg"
5520  if ac_fn_c_try_compile "$LINENO"; then :
5521  ac_cv_prog_cc_c99=$ac_arg
5522fi
5523rm -f core conftest.err conftest.$ac_objext
5524  test "x$ac_cv_prog_cc_c99" != "xno" && break
5525done
5526rm -f conftest.$ac_ext
5527CC=$ac_save_CC
5528
5529fi
5530# AC_CACHE_VAL
5531ac_prog_cc_stdc_options=
5532case "x$ac_cv_prog_cc_c99" in
5533  x)
5534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5535$as_echo "none needed" >&6; } ;;
5536  xno)
5537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5538$as_echo "unsupported" >&6; } ;;
5539  *)
5540    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5541    CC=$CC$ac_prog_cc_stdc_options
5542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5543$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5544esac
5545if test "x$ac_cv_prog_cc_c99" != xno; then :
5546  ac_prog_cc_stdc=c99
5547		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5548else
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5550$as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5551if ${ac_cv_prog_cc_c89+:} false; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  ac_cv_prog_cc_c89=no
5555ac_save_CC=$CC
5556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558#include <stdarg.h>
5559#include <stdio.h>
5560struct stat;
5561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5562struct buf { int x; };
5563FILE * (*rcsopen) (struct buf *, struct stat *, int);
5564static char *e (p, i)
5565     char **p;
5566     int i;
5567{
5568  return p[i];
5569}
5570static char *f (char * (*g) (char **, int), char **p, ...)
5571{
5572  char *s;
5573  va_list v;
5574  va_start (v,p);
5575  s = g (p, va_arg (v,int));
5576  va_end (v);
5577  return s;
5578}
5579
5580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5581   function prototypes and stuff, but not '\xHH' hex character constants.
5582   These don't provoke an error unfortunately, instead are silently treated
5583   as 'x'.  The following induces an error, until -std is added to get
5584   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5585   array size at least.  It's necessary to write '\x00'==0 to get something
5586   that's true only with -std.  */
5587int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5588
5589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5590   inside strings and character constants.  */
5591#define FOO(x) 'x'
5592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5593
5594int test (int i, double x);
5595struct s1 {int (*f) (int a);};
5596struct s2 {int (*f) (double a);};
5597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5598int argc;
5599char **argv;
5600int
5601main ()
5602{
5603return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5609	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5610do
5611  CC="$ac_save_CC $ac_arg"
5612  if ac_fn_c_try_compile "$LINENO"; then :
5613  ac_cv_prog_cc_c89=$ac_arg
5614fi
5615rm -f core conftest.err conftest.$ac_objext
5616  test "x$ac_cv_prog_cc_c89" != "xno" && break
5617done
5618rm -f conftest.$ac_ext
5619CC=$ac_save_CC
5620
5621fi
5622# AC_CACHE_VAL
5623ac_prog_cc_stdc_options=
5624case "x$ac_cv_prog_cc_c89" in
5625  x)
5626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5627$as_echo "none needed" >&6; } ;;
5628  xno)
5629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5630$as_echo "unsupported" >&6; } ;;
5631  *)
5632    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5633    CC=$CC$ac_prog_cc_stdc_options
5634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5635$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5636esac
5637if test "x$ac_cv_prog_cc_c89" != xno; then :
5638  ac_prog_cc_stdc=c89
5639		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5640else
5641  ac_prog_cc_stdc=no
5642		       ac_cv_prog_cc_stdc=no
5643fi
5644
5645fi
5646
5647fi
5648
5649ac_ext=c
5650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5657$as_echo_n "checking whether the compiler is clang... " >&6; }
5658if ${gl_cv_compiler_clang+:} false; then :
5659  $as_echo_n "(cached) " >&6
5660else
5661                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h.  */
5663
5664           #ifdef __clang__
5665           barfbarf
5666           #endif
5667
5668int
5669main ()
5670{
5671
5672  ;
5673  return 0;
5674}
5675
5676_ACEOF
5677if ac_fn_c_try_compile "$LINENO"; then :
5678  gl_cv_compiler_clang=no
5679else
5680  gl_cv_compiler_clang=yes
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5686$as_echo "$gl_cv_compiler_clang" >&6; }
5687
5688
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5690$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5691if ${gl_cv_compiler_check_decl_option+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if test $gl_cv_compiler_clang = yes; then
5695                     save_ac_compile="$ac_compile"
5696       ac_compile="$ac_compile -Werror=implicit-function-declaration"
5697                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699
5700int
5701main ()
5702{
5703
5704  ;
5705  return 0;
5706}
5707_ACEOF
5708if ac_fn_c_try_compile "$LINENO"; then :
5709  gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5710else
5711  gl_cv_compiler_check_decl_option=none
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714       ac_compile="$save_ac_compile"
5715     else
5716       gl_cv_compiler_check_decl_option=none
5717     fi
5718
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5721$as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5722  if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5723    ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5724  else
5725    ac_compile_for_check_decl="$ac_compile"
5726  fi
5727
5728DEPDIR="${am__leading_dot}deps"
5729
5730ac_config_commands="$ac_config_commands depfiles"
5731
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5733$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5734cat > confinc.mk << 'END'
5735am__doit:
5736	@echo this is the am__doit target >confinc.out
5737.PHONY: am__doit
5738END
5739am__include="#"
5740am__quote=
5741# BSD make does it like this.
5742echo '.include "confinc.mk" # ignored' > confmf.BSD
5743# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5744echo 'include confinc.mk # ignored' > confmf.GNU
5745_am_result=no
5746for s in GNU BSD; do
5747  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5748   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }
5752  case $?:`cat confinc.out 2>/dev/null` in #(
5753  '0:this is the am__doit target') :
5754    case $s in #(
5755  BSD) :
5756    am__include='.include' am__quote='"' ;; #(
5757  *) :
5758    am__include='include' am__quote='' ;;
5759esac ;; #(
5760  *) :
5761     ;;
5762esac
5763  if test "$am__include" != "#"; then
5764    _am_result="yes ($s style)"
5765    break
5766  fi
5767done
5768rm -f confinc.* confmf.*
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5770$as_echo "${_am_result}" >&6; }
5771
5772# Check whether --enable-dependency-tracking was given.
5773if test "${enable_dependency_tracking+set}" = set; then :
5774  enableval=$enable_dependency_tracking;
5775fi
5776
5777if test "x$enable_dependency_tracking" != xno; then
5778  am_depcomp="$ac_aux_dir/depcomp"
5779  AMDEPBACKSLASH='\'
5780  am__nodep='_no'
5781fi
5782 if test "x$enable_dependency_tracking" != xno; then
5783  AMDEP_TRUE=
5784  AMDEP_FALSE='#'
5785else
5786  AMDEP_TRUE='#'
5787  AMDEP_FALSE=
5788fi
5789
5790
5791
5792depcc="$CC"   am_compiler_list=
5793
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5795$as_echo_n "checking dependency style of $depcc... " >&6; }
5796if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5800  # We make a subdir and do the tests there.  Otherwise we can end up
5801  # making bogus files that we don't know about and never remove.  For
5802  # instance it was reported that on HP-UX the gcc test will end up
5803  # making a dummy file named 'D' -- because '-MD' means "put the output
5804  # in D".
5805  rm -rf conftest.dir
5806  mkdir conftest.dir
5807  # Copy depcomp to subdir because otherwise we won't find it if we're
5808  # using a relative directory.
5809  cp "$am_depcomp" conftest.dir
5810  cd conftest.dir
5811  # We will build objects and dependencies in a subdirectory because
5812  # it helps to detect inapplicable dependency modes.  For instance
5813  # both Tru64's cc and ICC support -MD to output dependencies as a
5814  # side effect of compilation, but ICC will put the dependencies in
5815  # the current directory while Tru64 will put them in the object
5816  # directory.
5817  mkdir sub
5818
5819  am_cv_CC_dependencies_compiler_type=none
5820  if test "$am_compiler_list" = ""; then
5821     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5822  fi
5823  am__universal=false
5824  case " $depcc " in #(
5825     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5826     esac
5827
5828  for depmode in $am_compiler_list; do
5829    # Setup a source with many dependencies, because some compilers
5830    # like to wrap large dependency lists on column 80 (with \), and
5831    # we should not choose a depcomp mode which is confused by this.
5832    #
5833    # We need to recreate these files for each test, as the compiler may
5834    # overwrite some of them when testing with obscure command lines.
5835    # This happens at least with the AIX C compiler.
5836    : > sub/conftest.c
5837    for i in 1 2 3 4 5 6; do
5838      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5839      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5840      # Solaris 10 /bin/sh.
5841      echo '/* dummy */' > sub/conftst$i.h
5842    done
5843    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5844
5845    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5846    # mode.  It turns out that the SunPro C++ compiler does not properly
5847    # handle '-M -o', and we need to detect this.  Also, some Intel
5848    # versions had trouble with output in subdirs.
5849    am__obj=sub/conftest.${OBJEXT-o}
5850    am__minus_obj="-o $am__obj"
5851    case $depmode in
5852    gcc)
5853      # This depmode causes a compiler race in universal mode.
5854      test "$am__universal" = false || continue
5855      ;;
5856    nosideeffect)
5857      # After this tag, mechanisms are not by side-effect, so they'll
5858      # only be used when explicitly requested.
5859      if test "x$enable_dependency_tracking" = xyes; then
5860	continue
5861      else
5862	break
5863      fi
5864      ;;
5865    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5866      # This compiler won't grok '-c -o', but also, the minuso test has
5867      # not run yet.  These depmodes are late enough in the game, and
5868      # so weak that their functioning should not be impacted.
5869      am__obj=conftest.${OBJEXT-o}
5870      am__minus_obj=
5871      ;;
5872    none) break ;;
5873    esac
5874    if depmode=$depmode \
5875       source=sub/conftest.c object=$am__obj \
5876       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5877       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5878         >/dev/null 2>conftest.err &&
5879       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5880       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5881       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5882       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5883      # icc doesn't choke on unknown options, it will just issue warnings
5884      # or remarks (even with -Werror).  So we grep stderr for any message
5885      # that says an option was ignored or not supported.
5886      # When given -MP, icc 7.0 and 7.1 complain thusly:
5887      #   icc: Command line warning: ignoring option '-M'; no argument required
5888      # The diagnosis changed in icc 8.0:
5889      #   icc: Command line remark: option '-MP' not supported
5890      if (grep 'ignoring option' conftest.err ||
5891          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5892        am_cv_CC_dependencies_compiler_type=$depmode
5893        break
5894      fi
5895    fi
5896  done
5897
5898  cd ..
5899  rm -rf conftest.dir
5900else
5901  am_cv_CC_dependencies_compiler_type=none
5902fi
5903
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5906$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5907CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5908
5909 if
5910  test "x$enable_dependency_tracking" != xno \
5911  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5912  am__fastdepCC_TRUE=
5913  am__fastdepCC_FALSE='#'
5914else
5915  am__fastdepCC_TRUE='#'
5916  am__fastdepCC_FALSE=
5917fi
5918
5919
5920ac_ext=c
5921ac_cpp='$CPP $CPPFLAGS'
5922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924ac_compiler_gnu=$ac_cv_c_compiler_gnu
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5926$as_echo_n "checking how to run the C preprocessor... " >&6; }
5927# On Suns, sometimes $CPP names a directory.
5928if test -n "$CPP" && test -d "$CPP"; then
5929  CPP=
5930fi
5931if test -z "$CPP"; then
5932  if ${ac_cv_prog_CPP+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935      # Double quotes because CPP needs to be expanded
5936    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5937    do
5938      ac_preproc_ok=false
5939for ac_c_preproc_warn_flag in '' yes
5940do
5941  # Use a header file that comes with gcc, so configuring glibc
5942  # with a fresh cross-compiler works.
5943  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5944  # <limits.h> exists even on freestanding compilers.
5945  # On the NeXT, cc -E runs the code through the compiler's parser,
5946  # not just through cpp. "Syntax error" is here to catch this case.
5947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949#ifdef __STDC__
5950# include <limits.h>
5951#else
5952# include <assert.h>
5953#endif
5954		     Syntax error
5955_ACEOF
5956if ac_fn_c_try_cpp "$LINENO"; then :
5957
5958else
5959  # Broken: fails on valid input.
5960continue
5961fi
5962rm -f conftest.err conftest.i conftest.$ac_ext
5963
5964  # OK, works on sane cases.  Now check whether nonexistent headers
5965  # can be detected and how.
5966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h.  */
5968#include <ac_nonexistent.h>
5969_ACEOF
5970if ac_fn_c_try_cpp "$LINENO"; then :
5971  # Broken: success on invalid input.
5972continue
5973else
5974  # Passes both tests.
5975ac_preproc_ok=:
5976break
5977fi
5978rm -f conftest.err conftest.i conftest.$ac_ext
5979
5980done
5981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5982rm -f conftest.i conftest.err conftest.$ac_ext
5983if $ac_preproc_ok; then :
5984  break
5985fi
5986
5987    done
5988    ac_cv_prog_CPP=$CPP
5989
5990fi
5991  CPP=$ac_cv_prog_CPP
5992else
5993  ac_cv_prog_CPP=$CPP
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5996$as_echo "$CPP" >&6; }
5997ac_preproc_ok=false
5998for ac_c_preproc_warn_flag in '' yes
5999do
6000  # Use a header file that comes with gcc, so configuring glibc
6001  # with a fresh cross-compiler works.
6002  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6003  # <limits.h> exists even on freestanding compilers.
6004  # On the NeXT, cc -E runs the code through the compiler's parser,
6005  # not just through cpp. "Syntax error" is here to catch this case.
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008#ifdef __STDC__
6009# include <limits.h>
6010#else
6011# include <assert.h>
6012#endif
6013		     Syntax error
6014_ACEOF
6015if ac_fn_c_try_cpp "$LINENO"; then :
6016
6017else
6018  # Broken: fails on valid input.
6019continue
6020fi
6021rm -f conftest.err conftest.i conftest.$ac_ext
6022
6023  # OK, works on sane cases.  Now check whether nonexistent headers
6024  # can be detected and how.
6025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027#include <ac_nonexistent.h>
6028_ACEOF
6029if ac_fn_c_try_cpp "$LINENO"; then :
6030  # Broken: success on invalid input.
6031continue
6032else
6033  # Passes both tests.
6034ac_preproc_ok=:
6035break
6036fi
6037rm -f conftest.err conftest.i conftest.$ac_ext
6038
6039done
6040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6041rm -f conftest.i conftest.err conftest.$ac_ext
6042if $ac_preproc_ok; then :
6043
6044else
6045  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6047as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6048See \`config.log' for more details" "$LINENO" 5; }
6049fi
6050
6051ac_ext=c
6052ac_cpp='$CPP $CPPFLAGS'
6053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057
6058
6059
6060
6061# Make sure we can run config.sub.
6062$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6063  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6064
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6066$as_echo_n "checking build system type... " >&6; }
6067if ${ac_cv_build+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  ac_build_alias=$build_alias
6071test "x$ac_build_alias" = x &&
6072  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6073test "x$ac_build_alias" = x &&
6074  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6075ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6076  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6077
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6080$as_echo "$ac_cv_build" >&6; }
6081case $ac_cv_build in
6082*-*-*) ;;
6083*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6084esac
6085build=$ac_cv_build
6086ac_save_IFS=$IFS; IFS='-'
6087set x $ac_cv_build
6088shift
6089build_cpu=$1
6090build_vendor=$2
6091shift; shift
6092# Remember, the first character of IFS is used to create $*,
6093# except with old shells:
6094build_os=$*
6095IFS=$ac_save_IFS
6096case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6097
6098
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6100$as_echo_n "checking host system type... " >&6; }
6101if ${ac_cv_host+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  if test "x$host_alias" = x; then
6105  ac_cv_host=$ac_cv_build
6106else
6107  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6108    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6109fi
6110
6111fi
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6113$as_echo "$ac_cv_host" >&6; }
6114case $ac_cv_host in
6115*-*-*) ;;
6116*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6117esac
6118host=$ac_cv_host
6119ac_save_IFS=$IFS; IFS='-'
6120set x $ac_cv_host
6121shift
6122host_cpu=$1
6123host_vendor=$2
6124shift; shift
6125# Remember, the first character of IFS is used to create $*,
6126# except with old shells:
6127host_os=$*
6128IFS=$ac_save_IFS
6129case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6130
6131
6132
6133
6134
6135
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6137$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6138if ${ac_cv_path_GREP+:} false; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -z "$GREP"; then
6142  ac_path_GREP_found=false
6143  # Loop through the user's path and test for each of PROGNAME-LIST
6144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6146do
6147  IFS=$as_save_IFS
6148  test -z "$as_dir" && as_dir=.
6149    for ac_prog in grep ggrep; do
6150    for ac_exec_ext in '' $ac_executable_extensions; do
6151      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6152      as_fn_executable_p "$ac_path_GREP" || continue
6153# Check for GNU ac_path_GREP and select it if it is found.
6154  # Check for GNU $ac_path_GREP
6155case `"$ac_path_GREP" --version 2>&1` in
6156*GNU*)
6157  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6158*)
6159  ac_count=0
6160  $as_echo_n 0123456789 >"conftest.in"
6161  while :
6162  do
6163    cat "conftest.in" "conftest.in" >"conftest.tmp"
6164    mv "conftest.tmp" "conftest.in"
6165    cp "conftest.in" "conftest.nl"
6166    $as_echo 'GREP' >> "conftest.nl"
6167    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6168    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6169    as_fn_arith $ac_count + 1 && ac_count=$as_val
6170    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6171      # Best one so far, save it but keep looking for a better one
6172      ac_cv_path_GREP="$ac_path_GREP"
6173      ac_path_GREP_max=$ac_count
6174    fi
6175    # 10*(2^10) chars as input seems more than enough
6176    test $ac_count -gt 10 && break
6177  done
6178  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6179esac
6180
6181      $ac_path_GREP_found && break 3
6182    done
6183  done
6184  done
6185IFS=$as_save_IFS
6186  if test -z "$ac_cv_path_GREP"; then
6187    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6188  fi
6189else
6190  ac_cv_path_GREP=$GREP
6191fi
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6195$as_echo "$ac_cv_path_GREP" >&6; }
6196 GREP="$ac_cv_path_GREP"
6197
6198
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6200$as_echo_n "checking for egrep... " >&6; }
6201if ${ac_cv_path_EGREP+:} false; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6205   then ac_cv_path_EGREP="$GREP -E"
6206   else
6207     if test -z "$EGREP"; then
6208  ac_path_EGREP_found=false
6209  # Loop through the user's path and test for each of PROGNAME-LIST
6210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212do
6213  IFS=$as_save_IFS
6214  test -z "$as_dir" && as_dir=.
6215    for ac_prog in egrep; do
6216    for ac_exec_ext in '' $ac_executable_extensions; do
6217      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6218      as_fn_executable_p "$ac_path_EGREP" || continue
6219# Check for GNU ac_path_EGREP and select it if it is found.
6220  # Check for GNU $ac_path_EGREP
6221case `"$ac_path_EGREP" --version 2>&1` in
6222*GNU*)
6223  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6224*)
6225  ac_count=0
6226  $as_echo_n 0123456789 >"conftest.in"
6227  while :
6228  do
6229    cat "conftest.in" "conftest.in" >"conftest.tmp"
6230    mv "conftest.tmp" "conftest.in"
6231    cp "conftest.in" "conftest.nl"
6232    $as_echo 'EGREP' >> "conftest.nl"
6233    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235    as_fn_arith $ac_count + 1 && ac_count=$as_val
6236    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6237      # Best one so far, save it but keep looking for a better one
6238      ac_cv_path_EGREP="$ac_path_EGREP"
6239      ac_path_EGREP_max=$ac_count
6240    fi
6241    # 10*(2^10) chars as input seems more than enough
6242    test $ac_count -gt 10 && break
6243  done
6244  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245esac
6246
6247      $ac_path_EGREP_found && break 3
6248    done
6249  done
6250  done
6251IFS=$as_save_IFS
6252  if test -z "$ac_cv_path_EGREP"; then
6253    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6254  fi
6255else
6256  ac_cv_path_EGREP=$EGREP
6257fi
6258
6259   fi
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6262$as_echo "$ac_cv_path_EGREP" >&6; }
6263 EGREP="$ac_cv_path_EGREP"
6264
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6267$as_echo_n "checking for ANSI C header files... " >&6; }
6268if ${ac_cv_header_stdc+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273#include <stdlib.h>
6274#include <stdarg.h>
6275#include <string.h>
6276#include <float.h>
6277
6278int
6279main ()
6280{
6281
6282  ;
6283  return 0;
6284}
6285_ACEOF
6286if ac_fn_c_try_compile "$LINENO"; then :
6287  ac_cv_header_stdc=yes
6288else
6289  ac_cv_header_stdc=no
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293if test $ac_cv_header_stdc = yes; then
6294  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297#include <string.h>
6298
6299_ACEOF
6300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301  $EGREP "memchr" >/dev/null 2>&1; then :
6302
6303else
6304  ac_cv_header_stdc=no
6305fi
6306rm -f conftest*
6307
6308fi
6309
6310if test $ac_cv_header_stdc = yes; then
6311  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314#include <stdlib.h>
6315
6316_ACEOF
6317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318  $EGREP "free" >/dev/null 2>&1; then :
6319
6320else
6321  ac_cv_header_stdc=no
6322fi
6323rm -f conftest*
6324
6325fi
6326
6327if test $ac_cv_header_stdc = yes; then
6328  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6329  if test "$cross_compiling" = yes; then :
6330  :
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334#include <ctype.h>
6335#include <stdlib.h>
6336#if ((' ' & 0x0FF) == 0x020)
6337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6339#else
6340# define ISLOWER(c) \
6341		   (('a' <= (c) && (c) <= 'i') \
6342		     || ('j' <= (c) && (c) <= 'r') \
6343		     || ('s' <= (c) && (c) <= 'z'))
6344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6345#endif
6346
6347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6348int
6349main ()
6350{
6351  int i;
6352  for (i = 0; i < 256; i++)
6353    if (XOR (islower (i), ISLOWER (i))
6354	|| toupper (i) != TOUPPER (i))
6355      return 2;
6356  return 0;
6357}
6358_ACEOF
6359if ac_fn_c_try_run "$LINENO"; then :
6360
6361else
6362  ac_cv_header_stdc=no
6363fi
6364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6365  conftest.$ac_objext conftest.beam conftest.$ac_ext
6366fi
6367
6368fi
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6371$as_echo "$ac_cv_header_stdc" >&6; }
6372if test $ac_cv_header_stdc = yes; then
6373
6374$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375
6376fi
6377
6378# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6380		  inttypes.h stdint.h unistd.h
6381do :
6382  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6384"
6385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6386  cat >>confdefs.h <<_ACEOF
6387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6388_ACEOF
6389
6390fi
6391
6392done
6393
6394
6395
6396  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6397if test "x$ac_cv_header_minix_config_h" = xyes; then :
6398  MINIX=yes
6399else
6400  MINIX=
6401fi
6402
6403
6404  if test "$MINIX" = yes; then
6405
6406$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6407
6408
6409$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6410
6411
6412$as_echo "#define _MINIX 1" >>confdefs.h
6413
6414
6415$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6416
6417  fi
6418
6419
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6421$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6422if ${ac_cv_safe_to_define___extensions__+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426/* end confdefs.h.  */
6427
6428#         define __EXTENSIONS__ 1
6429          $ac_includes_default
6430int
6431main ()
6432{
6433
6434  ;
6435  return 0;
6436}
6437_ACEOF
6438if ac_fn_c_try_compile "$LINENO"; then :
6439  ac_cv_safe_to_define___extensions__=yes
6440else
6441  ac_cv_safe_to_define___extensions__=no
6442fi
6443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6446$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6447  test $ac_cv_safe_to_define___extensions__ = yes &&
6448    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6449
6450  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6451
6452  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6453
6454  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6455
6456  $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6457
6458  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
6459
6460  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6461
6462  $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6463
6464  $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6465
6466  $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6467
6468  $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6469
6470  $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6471
6472  $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6473
6474  $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6475
6476  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6477
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6479$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6480if ${ac_cv_should_define__xopen_source+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  ac_cv_should_define__xopen_source=no
6484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486
6487          #include <wchar.h>
6488          mbstate_t x;
6489int
6490main ()
6491{
6492
6493  ;
6494  return 0;
6495}
6496_ACEOF
6497if ac_fn_c_try_compile "$LINENO"; then :
6498
6499else
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502
6503             #define _XOPEN_SOURCE 500
6504             #include <wchar.h>
6505             mbstate_t x;
6506int
6507main ()
6508{
6509
6510  ;
6511  return 0;
6512}
6513_ACEOF
6514if ac_fn_c_try_compile "$LINENO"; then :
6515  ac_cv_should_define__xopen_source=yes
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518fi
6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520fi
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6522$as_echo "$ac_cv_should_define__xopen_source" >&6; }
6523  test $ac_cv_should_define__xopen_source = yes &&
6524    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6525
6526  $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6539$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6540if ${gl_cv_c_amsterdam_compiler+:} false; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543
6544      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h.  */
6546
6547#ifdef __ACK__
6548Amsterdam
6549#endif
6550
6551_ACEOF
6552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6553  $EGREP "Amsterdam" >/dev/null 2>&1; then :
6554  gl_cv_c_amsterdam_compiler=yes
6555else
6556  gl_cv_c_amsterdam_compiler=no
6557fi
6558rm -f conftest*
6559
6560
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6563$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6564
6565      if test $gl_cv_c_amsterdam_compiler = yes; then
6566    if test -z "$AR"; then
6567      AR='cc -c.a'
6568    fi
6569    if test -z "$ARFLAGS"; then
6570      ARFLAGS='-o'
6571    fi
6572  else
6573                                                :
6574  fi
6575
6576        if test -n "$ac_tool_prefix"; then
6577  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6578set dummy ${ac_tool_prefix}ar; ac_word=$2
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580$as_echo_n "checking for $ac_word... " >&6; }
6581if ${ac_cv_prog_AR+:} false; then :
6582  $as_echo_n "(cached) " >&6
6583else
6584  if test -n "$AR"; then
6585  ac_cv_prog_AR="$AR" # Let the user override the test.
6586else
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590  IFS=$as_save_IFS
6591  test -z "$as_dir" && as_dir=.
6592    for ac_exec_ext in '' $ac_executable_extensions; do
6593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594    ac_cv_prog_AR="${ac_tool_prefix}ar"
6595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596    break 2
6597  fi
6598done
6599  done
6600IFS=$as_save_IFS
6601
6602fi
6603fi
6604AR=$ac_cv_prog_AR
6605if test -n "$AR"; then
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6607$as_echo "$AR" >&6; }
6608else
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610$as_echo "no" >&6; }
6611fi
6612
6613
6614fi
6615if test -z "$ac_cv_prog_AR"; then
6616  ac_ct_AR=$AR
6617  # Extract the first word of "ar", so it can be a program name with args.
6618set dummy ar; ac_word=$2
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620$as_echo_n "checking for $ac_word... " >&6; }
6621if ${ac_cv_prog_ac_ct_AR+:} false; then :
6622  $as_echo_n "(cached) " >&6
6623else
6624  if test -n "$ac_ct_AR"; then
6625  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632    for ac_exec_ext in '' $ac_executable_extensions; do
6633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634    ac_cv_prog_ac_ct_AR="ar"
6635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639  done
6640IFS=$as_save_IFS
6641
6642fi
6643fi
6644ac_ct_AR=$ac_cv_prog_ac_ct_AR
6645if test -n "$ac_ct_AR"; then
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6647$as_echo "$ac_ct_AR" >&6; }
6648else
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650$as_echo "no" >&6; }
6651fi
6652
6653  if test "x$ac_ct_AR" = x; then
6654    AR="ar"
6655  else
6656    case $cross_compiling:$ac_tool_warned in
6657yes:)
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660ac_tool_warned=yes ;;
6661esac
6662    AR=$ac_ct_AR
6663  fi
6664else
6665  AR="$ac_cv_prog_AR"
6666fi
6667
6668  if test -z "$ARFLAGS"; then
6669    ARFLAGS='cr'
6670  fi
6671
6672
6673
6674  if test -z "$RANLIB"; then
6675    if test $gl_cv_c_amsterdam_compiler = yes; then
6676      RANLIB=':'
6677    else
6678            if test -n "$ac_tool_prefix"; then
6679  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682$as_echo_n "checking for $ac_word... " >&6; }
6683if ${ac_cv_prog_RANLIB+:} false; then :
6684  $as_echo_n "(cached) " >&6
6685else
6686  if test -n "$RANLIB"; then
6687  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692  IFS=$as_save_IFS
6693  test -z "$as_dir" && as_dir=.
6694    for ac_exec_ext in '' $ac_executable_extensions; do
6695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698    break 2
6699  fi
6700done
6701  done
6702IFS=$as_save_IFS
6703
6704fi
6705fi
6706RANLIB=$ac_cv_prog_RANLIB
6707if test -n "$RANLIB"; then
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6709$as_echo "$RANLIB" >&6; }
6710else
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712$as_echo "no" >&6; }
6713fi
6714
6715
6716fi
6717if test -z "$ac_cv_prog_RANLIB"; then
6718  ac_ct_RANLIB=$RANLIB
6719  # Extract the first word of "ranlib", so it can be a program name with args.
6720set dummy ranlib; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$ac_ct_RANLIB"; then
6727  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736    ac_cv_prog_ac_ct_RANLIB="ranlib"
6737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6747if test -n "$ac_ct_RANLIB"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6749$as_echo "$ac_ct_RANLIB" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755  if test "x$ac_ct_RANLIB" = x; then
6756    RANLIB=":"
6757  else
6758    case $cross_compiling:$ac_tool_warned in
6759yes:)
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762ac_tool_warned=yes ;;
6763esac
6764    RANLIB=$ac_ct_RANLIB
6765  fi
6766else
6767  RANLIB="$ac_cv_prog_RANLIB"
6768fi
6769
6770    fi
6771  fi
6772
6773
6774
6775
6776
6777
6778  # IEEE behaviour is the default on all CPUs except Alpha and SH
6779  # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6780  # and the GCC 4.1.2 manual).
6781  case "$host_cpu" in
6782    alpha*)
6783      # On Alpha systems, a compiler option provides the behaviour.
6784      # See the ieee(3) manual page, also available at
6785      # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6786      if test -n "$GCC"; then
6787        # GCC has the option -mieee.
6788        # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6789        CPPFLAGS="$CPPFLAGS -mieee"
6790      else
6791        # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6792        # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6793        CPPFLAGS="$CPPFLAGS -ieee"
6794      fi
6795      ;;
6796    sh*)
6797      if test -n "$GCC"; then
6798        # GCC has the option -mieee.
6799        CPPFLAGS="$CPPFLAGS -mieee"
6800      fi
6801      ;;
6802  esac
6803
6804# Check whether --enable-largefile was given.
6805if test "${enable_largefile+set}" = set; then :
6806  enableval=$enable_largefile;
6807fi
6808
6809if test "$enable_largefile" != no; then
6810
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6812$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6813if ${ac_cv_sys_largefile_CC+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  ac_cv_sys_largefile_CC=no
6817     if test "$GCC" != yes; then
6818       ac_save_CC=$CC
6819       while :; do
6820         # IRIX 6.2 and later do not support large files by default,
6821         # so use the C compiler's -n32 option if that helps.
6822         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823/* end confdefs.h.  */
6824#include <sys/types.h>
6825 /* Check that off_t can represent 2**63 - 1 correctly.
6826    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6827    since some C++ compilers masquerading as C compilers
6828    incorrectly reject 9223372036854775807.  */
6829#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6830  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6831                       && LARGE_OFF_T % 2147483647 == 1)
6832                      ? 1 : -1];
6833int
6834main ()
6835{
6836
6837  ;
6838  return 0;
6839}
6840_ACEOF
6841         if ac_fn_c_try_compile "$LINENO"; then :
6842  break
6843fi
6844rm -f core conftest.err conftest.$ac_objext
6845         CC="$CC -n32"
6846         if ac_fn_c_try_compile "$LINENO"; then :
6847  ac_cv_sys_largefile_CC=' -n32'; break
6848fi
6849rm -f core conftest.err conftest.$ac_objext
6850         break
6851       done
6852       CC=$ac_save_CC
6853       rm -f conftest.$ac_ext
6854    fi
6855fi
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6857$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6858  if test "$ac_cv_sys_largefile_CC" != no; then
6859    CC=$CC$ac_cv_sys_largefile_CC
6860  fi
6861
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6863$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6864if ${ac_cv_sys_file_offset_bits+:} false; then :
6865  $as_echo_n "(cached) " >&6
6866else
6867  while :; do
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870#include <sys/types.h>
6871 /* Check that off_t can represent 2**63 - 1 correctly.
6872    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6873    since some C++ compilers masquerading as C compilers
6874    incorrectly reject 9223372036854775807.  */
6875#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6876  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6877                       && LARGE_OFF_T % 2147483647 == 1)
6878                      ? 1 : -1];
6879int
6880main ()
6881{
6882
6883  ;
6884  return 0;
6885}
6886_ACEOF
6887if ac_fn_c_try_compile "$LINENO"; then :
6888  ac_cv_sys_file_offset_bits=no; break
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893#define _FILE_OFFSET_BITS 64
6894#include <sys/types.h>
6895 /* Check that off_t can represent 2**63 - 1 correctly.
6896    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6897    since some C++ compilers masquerading as C compilers
6898    incorrectly reject 9223372036854775807.  */
6899#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6900  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6901                       && LARGE_OFF_T % 2147483647 == 1)
6902                      ? 1 : -1];
6903int
6904main ()
6905{
6906
6907  ;
6908  return 0;
6909}
6910_ACEOF
6911if ac_fn_c_try_compile "$LINENO"; then :
6912  ac_cv_sys_file_offset_bits=64; break
6913fi
6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915  ac_cv_sys_file_offset_bits=unknown
6916  break
6917done
6918fi
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6920$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6921case $ac_cv_sys_file_offset_bits in #(
6922  no | unknown) ;;
6923  *)
6924cat >>confdefs.h <<_ACEOF
6925#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6926_ACEOF
6927;;
6928esac
6929rm -rf conftest*
6930  if test $ac_cv_sys_file_offset_bits = unknown; then
6931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6932$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6933if ${ac_cv_sys_large_files+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  while :; do
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939#include <sys/types.h>
6940 /* Check that off_t can represent 2**63 - 1 correctly.
6941    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6942    since some C++ compilers masquerading as C compilers
6943    incorrectly reject 9223372036854775807.  */
6944#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6945  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6946                       && LARGE_OFF_T % 2147483647 == 1)
6947                      ? 1 : -1];
6948int
6949main ()
6950{
6951
6952  ;
6953  return 0;
6954}
6955_ACEOF
6956if ac_fn_c_try_compile "$LINENO"; then :
6957  ac_cv_sys_large_files=no; break
6958fi
6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h.  */
6962#define _LARGE_FILES 1
6963#include <sys/types.h>
6964 /* Check that off_t can represent 2**63 - 1 correctly.
6965    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6966    since some C++ compilers masquerading as C compilers
6967    incorrectly reject 9223372036854775807.  */
6968#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6969  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6970                       && LARGE_OFF_T % 2147483647 == 1)
6971                      ? 1 : -1];
6972int
6973main ()
6974{
6975
6976  ;
6977  return 0;
6978}
6979_ACEOF
6980if ac_fn_c_try_compile "$LINENO"; then :
6981  ac_cv_sys_large_files=1; break
6982fi
6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984  ac_cv_sys_large_files=unknown
6985  break
6986done
6987fi
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6989$as_echo "$ac_cv_sys_large_files" >&6; }
6990case $ac_cv_sys_large_files in #(
6991  no | unknown) ;;
6992  *)
6993cat >>confdefs.h <<_ACEOF
6994#define _LARGE_FILES $ac_cv_sys_large_files
6995_ACEOF
6996;;
6997esac
6998rm -rf conftest*
6999  fi
7000fi
7001
7002
7003
7004
7005
7006
7007
7008
7009  # Check whether --enable-threads was given.
7010if test "${enable_threads+set}" = set; then :
7011  enableval=$enable_threads; gl_use_threads=$enableval
7012else
7013  if test -n "$gl_use_threads_default"; then
7014       gl_use_threads="$gl_use_threads_default"
7015     else
7016       case "$host_os" in
7017                                    osf*) gl_use_threads=no ;;
7018                                    cygwin*)
7019               case `uname -r` in
7020                 1.[0-5].*) gl_use_threads=no ;;
7021                 *)         gl_use_threads=yes ;;
7022               esac
7023               ;;
7024                  mingw*)
7025               case "$gl_use_winpthreads_default" in
7026                 yes) gl_use_threads=posix ;;
7027                 no)  gl_use_threads=windows ;;
7028                 *)   gl_use_threads=yes ;;
7029               esac
7030               ;;
7031         *)    gl_use_threads=yes ;;
7032       esac
7033     fi
7034
7035fi
7036
7037  if test "$gl_use_threads" = yes \
7038     || test "$gl_use_threads" = isoc \
7039     || test "$gl_use_threads" = posix \
7040     || test "$gl_use_threads" = isoc+posix; then
7041    # For using <threads.h> or <pthread.h>:
7042
7043
7044  if test -z "$gl_anythreadlib_early_done"; then
7045    case "$host_os" in
7046      osf*)
7047        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7048        # groks <pthread.h>. cc also understands the flag -pthread, but
7049        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7050        # 2. putting a flag into CPPFLAGS that has an effect on the linker
7051        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7052        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7053        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7054        ;;
7055    esac
7056    # Some systems optimize for single-threaded programs by default, and
7057    # need special flags to disable these optimizations. For example, the
7058    # definition of 'errno' in <errno.h>.
7059    case "$host_os" in
7060      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7061      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7062    esac
7063    gl_anythreadlib_early_done=done
7064  fi
7065
7066  fi
7067
7068
7069
7070  # Pre-early section.
7071
7072
7073
7074
7075  # Code from module absolute-header:
7076  # Code from module alignof:
7077  # Code from module alloca-opt:
7078  # Code from module array-list:
7079  # Code from module attribute:
7080  # Code from module basename-lgpl:
7081  # Code from module binary-io:
7082  # Code from module c-ctype:
7083  # Code from module c-strcase:
7084  # Code from module c99:
7085  # Code from module cloexec:
7086  # Code from module close:
7087  # Code from module concat-filename:
7088  # Code from module double-slash-root:
7089  # Code from module dup2:
7090  # Code from module errno:
7091  # Code from module error:
7092  # Code from module exitfail:
7093  # Code from module extensions:
7094  # Code from module extern-inline:
7095  # Code from module fabs:
7096  # Code from module fatal-signal:
7097  # Code from module fcntl:
7098  # Code from module fcntl-h:
7099  # Code from module fd-hook:
7100  # Code from module fd-ostream:
7101  # Code from module file-ostream:
7102  # Code from module filename:
7103  # Code from module float:
7104  # Code from module fpieee:
7105
7106  # Code from module fpucw:
7107  # Code from module frexp-nolibm:
7108  # Code from module frexpl-nolibm:
7109  # Code from module fstat:
7110  # Code from module fsync:
7111  # Code from module full-write:
7112  # Code from module get_ppid_of:
7113  # Code from module get_progname_of:
7114  # Code from module getdtablesize:
7115  # Code from module gethostname:
7116  # Code from module getprogname:
7117  # Code from module gettext-h:
7118  # Code from module gettimeofday:
7119  # Code from module havelib:
7120  # Code from module html-ostream:
7121  # Code from module html-styled-ostream:
7122  # Code from module iconv:
7123  # Code from module iconv-ostream:
7124  # Code from module include_next:
7125  # Code from module inline:
7126  # Code from module intprops:
7127  # Code from module inttypes-incomplete:
7128  # Code from module isatty:
7129  # Code from module isinf:
7130  # Code from module isnan:
7131  # Code from module isnand:
7132  # Code from module isnand-nolibm:
7133  # Code from module isnanf:
7134  # Code from module isnanf-nolibm:
7135  # Code from module isnanl:
7136  # Code from module isnanl-nolibm:
7137  # Code from module largefile:
7138
7139  # Code from module libcroco:
7140  # Code from module libglib:
7141  # Code from module libxml:
7142  # Code from module limits-h:
7143  # Code from module list:
7144  # Code from module lock:
7145  # Code from module log10:
7146  # Code from module malloc-posix:
7147  # Code from module malloca:
7148  # Code from module math:
7149  # Code from module mem-hash-map:
7150  # Code from module memchr:
7151  # Code from module memory-ostream:
7152  # Code from module memory-ostream-tests:
7153  # Code from module minmax:
7154  # Code from module moo:
7155  # Code from module msvc-inval:
7156  # Code from module msvc-nothrow:
7157  # Code from module multiarch:
7158  # Code from module no-c++:
7159  # Code from module nocrash:
7160  # Code from module noop-styled-ostream:
7161  # Code from module noreturn:
7162  # Code from module obstack:
7163  # Code from module open:
7164  # Code from module ostream:
7165  # Code from module pathmax:
7166  # Code from module pow:
7167  # Code from module printf-frexp:
7168  # Code from module printf-frexpl:
7169  # Code from module printf-safe:
7170  # Code from module raise:
7171  # Code from module read:
7172  # Code from module safe-read:
7173  # Code from module safe-write:
7174  # Code from module same-inode:
7175  # Code from module sigaction:
7176  # Code from module signal-h:
7177  # Code from module signbit:
7178  # Code from module sigprocmask:
7179  # Code from module size_max:
7180  # Code from module snippet/_Noreturn:
7181  # Code from module snippet/arg-nonnull:
7182  # Code from module snippet/c++defs:
7183  # Code from module snippet/unused-parameter:
7184  # Code from module snippet/warn-on-use:
7185  # Code from module snprintf:
7186  # Code from module snprintf-posix:
7187  # Code from module socketlib:
7188  # Code from module sockets:
7189  # Code from module socklen:
7190  # Code from module ssize_t:
7191  # Code from module stat:
7192  # Code from module stat-time:
7193  # Code from module std-gnu11:
7194  # Code from module stdalign:
7195  # Code from module stdarg:
7196
7197
7198
7199  # Code from module stdbool:
7200  # Code from module stddef:
7201  # Code from module stdint:
7202  # Code from module stdio:
7203  # Code from module stdlib:
7204  # Code from module stpcpy:
7205  # Code from module strerror:
7206  # Code from module strerror-override:
7207  # Code from module string:
7208  # Code from module styled-ostream:
7209  # Code from module sys_socket:
7210  # Code from module sys_stat:
7211  # Code from module sys_time:
7212  # Code from module sys_types:
7213  # Code from module sys_uio:
7214  # Code from module term-ostream:
7215  # Code from module term-ostream-tests:
7216  # Code from module term-style-control:
7217  # Code from module term-styled-ostream:
7218  # Code from module terminfo:
7219  # Code from module terminfo-h:
7220  # Code from module threadlib:
7221
7222
7223
7224  # Code from module time:
7225  # Code from module unistd:
7226  # Code from module unistr/base:
7227  # Code from module unistr/u8-mbtouc:
7228  # Code from module unitypes:
7229  # Code from module vasnprintf:
7230  # Code from module vasprintf:
7231  # Code from module vasprintf-posix:
7232  # Code from module verify:
7233  # Code from module vsnprintf:
7234  # Code from module wchar:
7235  # Code from module windows-mutex:
7236  # Code from module windows-once:
7237  # Code from module windows-recmutex:
7238  # Code from module windows-rwlock:
7239  # Code from module write:
7240  # Code from module xalloc:
7241  # Code from module xalloc-die:
7242  # Code from module xalloc-oversized:
7243  # Code from module xconcat-filename:
7244  # Code from module xgethostname:
7245  # Code from module xlist:
7246  # Code from module xsize:
7247  # Code from module xvasprintf:
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257  case "$host_os" in
7258    mingw* | cygwin*)
7259      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
7260$as_echo_n "checking for auto-import of symbols... " >&6; }
7261      if ${gl_cv_ld_autoimport+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264
7265        gl_save_LDFLAGS="$LDFLAGS"
7266        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7267        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269
7270int
7271main ()
7272{
7273
7274  ;
7275  return 0;
7276}
7277_ACEOF
7278if ac_fn_c_try_link "$LINENO"; then :
7279  gl_cv_ld_autoimport=yes
7280else
7281  gl_cv_ld_autoimport=no
7282fi
7283rm -f core conftest.err conftest.$ac_objext \
7284    conftest$ac_exeext conftest.$ac_ext
7285        LDFLAGS="$gl_save_LDFLAGS"
7286fi
7287
7288      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
7289$as_echo "$gl_cv_ld_autoimport" >&6; }
7290      if test $gl_cv_ld_autoimport = yes; then
7291        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7292      fi
7293      ;;
7294  esac
7295
7296
7297case `pwd` in
7298  *\ * | *\	*)
7299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7300$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7301esac
7302
7303
7304
7305macro_version='2.4.6'
7306macro_revision='2.4.6'
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320ltmain=$ac_aux_dir/ltmain.sh
7321
7322# Backslashify metacharacters that are still active within
7323# double-quoted strings.
7324sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7325
7326# Same as above, but do not quote variable references.
7327double_quote_subst='s/\(["`\\]\)/\\\1/g'
7328
7329# Sed substitution to delay expansion of an escaped shell variable in a
7330# double_quote_subst'ed string.
7331delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7332
7333# Sed substitution to delay expansion of an escaped single quote.
7334delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7335
7336# Sed substitution to avoid accidental globbing in evaled expressions
7337no_glob_subst='s/\*/\\\*/g'
7338
7339ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7340ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7341ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7342
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7344$as_echo_n "checking how to print strings... " >&6; }
7345# Test print first, because it will be a builtin if present.
7346if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7347   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7348  ECHO='print -r --'
7349elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7350  ECHO='printf %s\n'
7351else
7352  # Use this function as a fallback that always works.
7353  func_fallback_echo ()
7354  {
7355    eval 'cat <<_LTECHO_EOF
7356$1
7357_LTECHO_EOF'
7358  }
7359  ECHO='func_fallback_echo'
7360fi
7361
7362# func_echo_all arg...
7363# Invoke $ECHO with all args, space-separated.
7364func_echo_all ()
7365{
7366    $ECHO ""
7367}
7368
7369case $ECHO in
7370  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7371$as_echo "printf" >&6; } ;;
7372  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7373$as_echo "print -r" >&6; } ;;
7374  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7375$as_echo "cat" >&6; } ;;
7376esac
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7392$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7393if ${ac_cv_path_SED+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7397     for ac_i in 1 2 3 4 5 6 7; do
7398       ac_script="$ac_script$as_nl$ac_script"
7399     done
7400     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7401     { ac_script=; unset ac_script;}
7402     if test -z "$SED"; then
7403  ac_path_SED_found=false
7404  # Loop through the user's path and test for each of PROGNAME-LIST
7405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408  IFS=$as_save_IFS
7409  test -z "$as_dir" && as_dir=.
7410    for ac_prog in sed gsed; do
7411    for ac_exec_ext in '' $ac_executable_extensions; do
7412      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7413      as_fn_executable_p "$ac_path_SED" || continue
7414# Check for GNU ac_path_SED and select it if it is found.
7415  # Check for GNU $ac_path_SED
7416case `"$ac_path_SED" --version 2>&1` in
7417*GNU*)
7418  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7419*)
7420  ac_count=0
7421  $as_echo_n 0123456789 >"conftest.in"
7422  while :
7423  do
7424    cat "conftest.in" "conftest.in" >"conftest.tmp"
7425    mv "conftest.tmp" "conftest.in"
7426    cp "conftest.in" "conftest.nl"
7427    $as_echo '' >> "conftest.nl"
7428    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7430    as_fn_arith $ac_count + 1 && ac_count=$as_val
7431    if test $ac_count -gt ${ac_path_SED_max-0}; then
7432      # Best one so far, save it but keep looking for a better one
7433      ac_cv_path_SED="$ac_path_SED"
7434      ac_path_SED_max=$ac_count
7435    fi
7436    # 10*(2^10) chars as input seems more than enough
7437    test $ac_count -gt 10 && break
7438  done
7439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7440esac
7441
7442      $ac_path_SED_found && break 3
7443    done
7444  done
7445  done
7446IFS=$as_save_IFS
7447  if test -z "$ac_cv_path_SED"; then
7448    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7449  fi
7450else
7451  ac_cv_path_SED=$SED
7452fi
7453
7454fi
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7456$as_echo "$ac_cv_path_SED" >&6; }
7457 SED="$ac_cv_path_SED"
7458  rm -f conftest.sed
7459
7460test -z "$SED" && SED=sed
7461Xsed="$SED -e 1s/^X//"
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7474$as_echo_n "checking for fgrep... " >&6; }
7475if ${ac_cv_path_FGREP+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7479   then ac_cv_path_FGREP="$GREP -F"
7480   else
7481     if test -z "$FGREP"; then
7482  ac_path_FGREP_found=false
7483  # Loop through the user's path and test for each of PROGNAME-LIST
7484  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7486do
7487  IFS=$as_save_IFS
7488  test -z "$as_dir" && as_dir=.
7489    for ac_prog in fgrep; do
7490    for ac_exec_ext in '' $ac_executable_extensions; do
7491      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7492      as_fn_executable_p "$ac_path_FGREP" || continue
7493# Check for GNU ac_path_FGREP and select it if it is found.
7494  # Check for GNU $ac_path_FGREP
7495case `"$ac_path_FGREP" --version 2>&1` in
7496*GNU*)
7497  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7498*)
7499  ac_count=0
7500  $as_echo_n 0123456789 >"conftest.in"
7501  while :
7502  do
7503    cat "conftest.in" "conftest.in" >"conftest.tmp"
7504    mv "conftest.tmp" "conftest.in"
7505    cp "conftest.in" "conftest.nl"
7506    $as_echo 'FGREP' >> "conftest.nl"
7507    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7508    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7509    as_fn_arith $ac_count + 1 && ac_count=$as_val
7510    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7511      # Best one so far, save it but keep looking for a better one
7512      ac_cv_path_FGREP="$ac_path_FGREP"
7513      ac_path_FGREP_max=$ac_count
7514    fi
7515    # 10*(2^10) chars as input seems more than enough
7516    test $ac_count -gt 10 && break
7517  done
7518  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7519esac
7520
7521      $ac_path_FGREP_found && break 3
7522    done
7523  done
7524  done
7525IFS=$as_save_IFS
7526  if test -z "$ac_cv_path_FGREP"; then
7527    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7528  fi
7529else
7530  ac_cv_path_FGREP=$FGREP
7531fi
7532
7533   fi
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7536$as_echo "$ac_cv_path_FGREP" >&6; }
7537 FGREP="$ac_cv_path_FGREP"
7538
7539
7540test -z "$GREP" && GREP=grep
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560# Check whether --with-gnu-ld was given.
7561if test "${with_gnu_ld+set}" = set; then :
7562  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7563else
7564  with_gnu_ld=no
7565fi
7566
7567ac_prog=ld
7568if test yes = "$GCC"; then
7569  # Check if gcc -print-prog-name=ld gives a path.
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7571$as_echo_n "checking for ld used by $CC... " >&6; }
7572  case $host in
7573  *-*-mingw*)
7574    # gcc leaves a trailing carriage return, which upsets mingw
7575    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7576  *)
7577    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7578  esac
7579  case $ac_prog in
7580    # Accept absolute paths.
7581    [\\/]* | ?:[\\/]*)
7582      re_direlt='/[^/][^/]*/\.\./'
7583      # Canonicalize the pathname of ld
7584      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7585      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7586	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7587      done
7588      test -z "$LD" && LD=$ac_prog
7589      ;;
7590  "")
7591    # If it fails, then pretend we aren't using GCC.
7592    ac_prog=ld
7593    ;;
7594  *)
7595    # If it is relative, then search for the first ld in PATH.
7596    with_gnu_ld=unknown
7597    ;;
7598  esac
7599elif test yes = "$with_gnu_ld"; then
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7601$as_echo_n "checking for GNU ld... " >&6; }
7602else
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7604$as_echo_n "checking for non-GNU ld... " >&6; }
7605fi
7606if ${lt_cv_path_LD+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -z "$LD"; then
7610  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7611  for ac_dir in $PATH; do
7612    IFS=$lt_save_ifs
7613    test -z "$ac_dir" && ac_dir=.
7614    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7615      lt_cv_path_LD=$ac_dir/$ac_prog
7616      # Check to see if the program is GNU ld.  I'd rather use --version,
7617      # but apparently some variants of GNU ld only accept -v.
7618      # Break only if it was the GNU/non-GNU ld that we prefer.
7619      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7620      *GNU* | *'with BFD'*)
7621	test no != "$with_gnu_ld" && break
7622	;;
7623      *)
7624	test yes != "$with_gnu_ld" && break
7625	;;
7626      esac
7627    fi
7628  done
7629  IFS=$lt_save_ifs
7630else
7631  lt_cv_path_LD=$LD # Let the user override the test with a path.
7632fi
7633fi
7634
7635LD=$lt_cv_path_LD
7636if test -n "$LD"; then
7637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7638$as_echo "$LD" >&6; }
7639else
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641$as_echo "no" >&6; }
7642fi
7643test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7645$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7646if ${lt_cv_prog_gnu_ld+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7650case `$LD -v 2>&1 </dev/null` in
7651*GNU* | *'with BFD'*)
7652  lt_cv_prog_gnu_ld=yes
7653  ;;
7654*)
7655  lt_cv_prog_gnu_ld=no
7656  ;;
7657esac
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7660$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7661with_gnu_ld=$lt_cv_prog_gnu_ld
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7672$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7673if ${lt_cv_path_NM+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  if test -n "$NM"; then
7677  # Let the user override the test.
7678  lt_cv_path_NM=$NM
7679else
7680  lt_nm_to_check=${ac_tool_prefix}nm
7681  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7682    lt_nm_to_check="$lt_nm_to_check nm"
7683  fi
7684  for lt_tmp_nm in $lt_nm_to_check; do
7685    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7686    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7687      IFS=$lt_save_ifs
7688      test -z "$ac_dir" && ac_dir=.
7689      tmp_nm=$ac_dir/$lt_tmp_nm
7690      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7691	# Check to see if the nm accepts a BSD-compat flag.
7692	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7693	#   nm: unknown option "B" ignored
7694	# Tru64's nm complains that /dev/null is an invalid object file
7695	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7696	case $build_os in
7697	mingw*) lt_bad_file=conftest.nm/nofile ;;
7698	*) lt_bad_file=/dev/null ;;
7699	esac
7700	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7701	*$lt_bad_file* | *'Invalid file or object type'*)
7702	  lt_cv_path_NM="$tmp_nm -B"
7703	  break 2
7704	  ;;
7705	*)
7706	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7707	  */dev/null*)
7708	    lt_cv_path_NM="$tmp_nm -p"
7709	    break 2
7710	    ;;
7711	  *)
7712	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7713	    continue # so that we can try to find one that supports BSD flags
7714	    ;;
7715	  esac
7716	  ;;
7717	esac
7718      fi
7719    done
7720    IFS=$lt_save_ifs
7721  done
7722  : ${lt_cv_path_NM=no}
7723fi
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7726$as_echo "$lt_cv_path_NM" >&6; }
7727if test no != "$lt_cv_path_NM"; then
7728  NM=$lt_cv_path_NM
7729else
7730  # Didn't find any BSD compatible name lister, look for dumpbin.
7731  if test -n "$DUMPBIN"; then :
7732    # Let the user override the test.
7733  else
7734    if test -n "$ac_tool_prefix"; then
7735  for ac_prog in dumpbin "link -dump"
7736  do
7737    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_DUMPBIN+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  if test -n "$DUMPBIN"; then
7745  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750  IFS=$as_save_IFS
7751  test -z "$as_dir" && as_dir=.
7752    for ac_exec_ext in '' $ac_executable_extensions; do
7753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756    break 2
7757  fi
7758done
7759  done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764DUMPBIN=$ac_cv_prog_DUMPBIN
7765if test -n "$DUMPBIN"; then
7766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7767$as_echo "$DUMPBIN" >&6; }
7768else
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773
7774    test -n "$DUMPBIN" && break
7775  done
7776fi
7777if test -z "$DUMPBIN"; then
7778  ac_ct_DUMPBIN=$DUMPBIN
7779  for ac_prog in dumpbin "link -dump"
7780do
7781  # Extract the first word of "$ac_prog", so it can be a program name with args.
7782set dummy $ac_prog; ac_word=$2
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784$as_echo_n "checking for $ac_word... " >&6; }
7785if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  if test -n "$ac_ct_DUMPBIN"; then
7789  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7790else
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794  IFS=$as_save_IFS
7795  test -z "$as_dir" && as_dir=.
7796    for ac_exec_ext in '' $ac_executable_extensions; do
7797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800    break 2
7801  fi
7802done
7803  done
7804IFS=$as_save_IFS
7805
7806fi
7807fi
7808ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7809if test -n "$ac_ct_DUMPBIN"; then
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7811$as_echo "$ac_ct_DUMPBIN" >&6; }
7812else
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
7816
7817
7818  test -n "$ac_ct_DUMPBIN" && break
7819done
7820
7821  if test "x$ac_ct_DUMPBIN" = x; then
7822    DUMPBIN=":"
7823  else
7824    case $cross_compiling:$ac_tool_warned in
7825yes:)
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828ac_tool_warned=yes ;;
7829esac
7830    DUMPBIN=$ac_ct_DUMPBIN
7831  fi
7832fi
7833
7834    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7835    *COFF*)
7836      DUMPBIN="$DUMPBIN -symbols -headers"
7837      ;;
7838    *)
7839      DUMPBIN=:
7840      ;;
7841    esac
7842  fi
7843
7844  if test : != "$DUMPBIN"; then
7845    NM=$DUMPBIN
7846  fi
7847fi
7848test -z "$NM" && NM=nm
7849
7850
7851
7852
7853
7854
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7856$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7857if ${lt_cv_nm_interface+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  lt_cv_nm_interface="BSD nm"
7861  echo "int some_variable = 0;" > conftest.$ac_ext
7862  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7863  (eval "$ac_compile" 2>conftest.err)
7864  cat conftest.err >&5
7865  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7866  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7867  cat conftest.err >&5
7868  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7869  cat conftest.out >&5
7870  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7871    lt_cv_nm_interface="MS dumpbin"
7872  fi
7873  rm -f conftest*
7874fi
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7876$as_echo "$lt_cv_nm_interface" >&6; }
7877
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7879$as_echo_n "checking whether ln -s works... " >&6; }
7880LN_S=$as_ln_s
7881if test "$LN_S" = "ln -s"; then
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884else
7885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7886$as_echo "no, using $LN_S" >&6; }
7887fi
7888
7889# find the maximum length of command line arguments
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7891$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7892if ${lt_cv_sys_max_cmd_len+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895    i=0
7896  teststring=ABCD
7897
7898  case $build_os in
7899  msdosdjgpp*)
7900    # On DJGPP, this test can blow up pretty badly due to problems in libc
7901    # (any single argument exceeding 2000 bytes causes a buffer overrun
7902    # during glob expansion).  Even if it were fixed, the result of this
7903    # check would be larger than it should be.
7904    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7905    ;;
7906
7907  gnu*)
7908    # Under GNU Hurd, this test is not required because there is
7909    # no limit to the length of command line arguments.
7910    # Libtool will interpret -1 as no limit whatsoever
7911    lt_cv_sys_max_cmd_len=-1;
7912    ;;
7913
7914  cygwin* | mingw* | cegcc*)
7915    # On Win9x/ME, this test blows up -- it succeeds, but takes
7916    # about 5 minutes as the teststring grows exponentially.
7917    # Worse, since 9x/ME are not pre-emptively multitasking,
7918    # you end up with a "frozen" computer, even though with patience
7919    # the test eventually succeeds (with a max line length of 256k).
7920    # Instead, let's just punt: use the minimum linelength reported by
7921    # all of the supported platforms: 8192 (on NT/2K/XP).
7922    lt_cv_sys_max_cmd_len=8192;
7923    ;;
7924
7925  mint*)
7926    # On MiNT this can take a long time and run out of memory.
7927    lt_cv_sys_max_cmd_len=8192;
7928    ;;
7929
7930  amigaos*)
7931    # On AmigaOS with pdksh, this test takes hours, literally.
7932    # So we just punt and use a minimum line length of 8192.
7933    lt_cv_sys_max_cmd_len=8192;
7934    ;;
7935
7936  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7937    # This has been around since 386BSD, at least.  Likely further.
7938    if test -x /sbin/sysctl; then
7939      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7940    elif test -x /usr/sbin/sysctl; then
7941      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7942    else
7943      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7944    fi
7945    # And add a safety zone
7946    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7947    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7948    ;;
7949
7950  interix*)
7951    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7952    lt_cv_sys_max_cmd_len=196608
7953    ;;
7954
7955  os2*)
7956    # The test takes a long time on OS/2.
7957    lt_cv_sys_max_cmd_len=8192
7958    ;;
7959
7960  osf*)
7961    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7962    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7963    # nice to cause kernel panics so lets avoid the loop below.
7964    # First set a reasonable default.
7965    lt_cv_sys_max_cmd_len=16384
7966    #
7967    if test -x /sbin/sysconfig; then
7968      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7969        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7970      esac
7971    fi
7972    ;;
7973  sco3.2v5*)
7974    lt_cv_sys_max_cmd_len=102400
7975    ;;
7976  sysv5* | sco5v6* | sysv4.2uw2*)
7977    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7978    if test -n "$kargmax"; then
7979      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7980    else
7981      lt_cv_sys_max_cmd_len=32768
7982    fi
7983    ;;
7984  *)
7985    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7986    if test -n "$lt_cv_sys_max_cmd_len" && \
7987       test undefined != "$lt_cv_sys_max_cmd_len"; then
7988      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7989      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7990    else
7991      # Make teststring a little bigger before we do anything with it.
7992      # a 1K string should be a reasonable start.
7993      for i in 1 2 3 4 5 6 7 8; do
7994        teststring=$teststring$teststring
7995      done
7996      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7997      # If test is not a shell built-in, we'll probably end up computing a
7998      # maximum length that is only half of the actual maximum length, but
7999      # we can't tell.
8000      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8001	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8002	      test 17 != "$i" # 1/2 MB should be enough
8003      do
8004        i=`expr $i + 1`
8005        teststring=$teststring$teststring
8006      done
8007      # Only check the string length outside the loop.
8008      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8009      teststring=
8010      # Add a significant safety factor because C++ compilers can tack on
8011      # massive amounts of additional arguments before passing them to the
8012      # linker.  It appears as though 1/2 is a usable value.
8013      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8014    fi
8015    ;;
8016  esac
8017
8018fi
8019
8020if test -n "$lt_cv_sys_max_cmd_len"; then
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8022$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8023else
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8025$as_echo "none" >&6; }
8026fi
8027max_cmd_len=$lt_cv_sys_max_cmd_len
8028
8029
8030
8031
8032
8033
8034: ${CP="cp -f"}
8035: ${MV="mv -f"}
8036: ${RM="rm -f"}
8037
8038if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8039  lt_unset=unset
8040else
8041  lt_unset=false
8042fi
8043
8044
8045
8046
8047
8048# test EBCDIC or ASCII
8049case `echo X|tr X '\101'` in
8050 A) # ASCII based system
8051    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8052  lt_SP2NL='tr \040 \012'
8053  lt_NL2SP='tr \015\012 \040\040'
8054  ;;
8055 *) # EBCDIC based system
8056  lt_SP2NL='tr \100 \n'
8057  lt_NL2SP='tr \r\n \100\100'
8058  ;;
8059esac
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8070$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8071if ${lt_cv_to_host_file_cmd+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  case $host in
8075  *-*-mingw* )
8076    case $build in
8077      *-*-mingw* ) # actually msys
8078        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8079        ;;
8080      *-*-cygwin* )
8081        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8082        ;;
8083      * ) # otherwise, assume *nix
8084        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8085        ;;
8086    esac
8087    ;;
8088  *-*-cygwin* )
8089    case $build in
8090      *-*-mingw* ) # actually msys
8091        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8092        ;;
8093      *-*-cygwin* )
8094        lt_cv_to_host_file_cmd=func_convert_file_noop
8095        ;;
8096      * ) # otherwise, assume *nix
8097        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8098        ;;
8099    esac
8100    ;;
8101  * ) # unhandled hosts (and "normal" native builds)
8102    lt_cv_to_host_file_cmd=func_convert_file_noop
8103    ;;
8104esac
8105
8106fi
8107
8108to_host_file_cmd=$lt_cv_to_host_file_cmd
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8110$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8111
8112
8113
8114
8115
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8117$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8118if ${lt_cv_to_tool_file_cmd+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  #assume ordinary cross tools, or native build.
8122lt_cv_to_tool_file_cmd=func_convert_file_noop
8123case $host in
8124  *-*-mingw* )
8125    case $build in
8126      *-*-mingw* ) # actually msys
8127        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8128        ;;
8129    esac
8130    ;;
8131esac
8132
8133fi
8134
8135to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8137$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8138
8139
8140
8141
8142
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8144$as_echo_n "checking for $LD option to reload object files... " >&6; }
8145if ${lt_cv_ld_reload_flag+:} false; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  lt_cv_ld_reload_flag='-r'
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8151$as_echo "$lt_cv_ld_reload_flag" >&6; }
8152reload_flag=$lt_cv_ld_reload_flag
8153case $reload_flag in
8154"" | " "*) ;;
8155*) reload_flag=" $reload_flag" ;;
8156esac
8157reload_cmds='$LD$reload_flag -o $output$reload_objs'
8158case $host_os in
8159  cygwin* | mingw* | pw32* | cegcc*)
8160    if test yes != "$GCC"; then
8161      reload_cmds=false
8162    fi
8163    ;;
8164  darwin*)
8165    if test yes = "$GCC"; then
8166      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8167    else
8168      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8169    fi
8170    ;;
8171esac
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181if test -n "$ac_tool_prefix"; then
8182  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8183set dummy ${ac_tool_prefix}objdump; ac_word=$2
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185$as_echo_n "checking for $ac_word... " >&6; }
8186if ${ac_cv_prog_OBJDUMP+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  if test -n "$OBJDUMP"; then
8190  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8191else
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195  IFS=$as_save_IFS
8196  test -z "$as_dir" && as_dir=.
8197    for ac_exec_ext in '' $ac_executable_extensions; do
8198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201    break 2
8202  fi
8203done
8204  done
8205IFS=$as_save_IFS
8206
8207fi
8208fi
8209OBJDUMP=$ac_cv_prog_OBJDUMP
8210if test -n "$OBJDUMP"; then
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8212$as_echo "$OBJDUMP" >&6; }
8213else
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
8216fi
8217
8218
8219fi
8220if test -z "$ac_cv_prog_OBJDUMP"; then
8221  ac_ct_OBJDUMP=$OBJDUMP
8222  # Extract the first word of "objdump", so it can be a program name with args.
8223set dummy objdump; ac_word=$2
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  if test -n "$ac_ct_OBJDUMP"; then
8230  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235  IFS=$as_save_IFS
8236  test -z "$as_dir" && as_dir=.
8237    for ac_exec_ext in '' $ac_executable_extensions; do
8238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241    break 2
8242  fi
8243done
8244  done
8245IFS=$as_save_IFS
8246
8247fi
8248fi
8249ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8250if test -n "$ac_ct_OBJDUMP"; then
8251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8252$as_echo "$ac_ct_OBJDUMP" >&6; }
8253else
8254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257
8258  if test "x$ac_ct_OBJDUMP" = x; then
8259    OBJDUMP="false"
8260  else
8261    case $cross_compiling:$ac_tool_warned in
8262yes:)
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265ac_tool_warned=yes ;;
8266esac
8267    OBJDUMP=$ac_ct_OBJDUMP
8268  fi
8269else
8270  OBJDUMP="$ac_cv_prog_OBJDUMP"
8271fi
8272
8273test -z "$OBJDUMP" && OBJDUMP=objdump
8274
8275
8276
8277
8278
8279
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8281$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8282if ${lt_cv_deplibs_check_method+:} false; then :
8283  $as_echo_n "(cached) " >&6
8284else
8285  lt_cv_file_magic_cmd='$MAGIC_CMD'
8286lt_cv_file_magic_test_file=
8287lt_cv_deplibs_check_method='unknown'
8288# Need to set the preceding variable on all platforms that support
8289# interlibrary dependencies.
8290# 'none' -- dependencies not supported.
8291# 'unknown' -- same as none, but documents that we really don't know.
8292# 'pass_all' -- all dependencies passed with no checks.
8293# 'test_compile' -- check by making test program.
8294# 'file_magic [[regex]]' -- check by looking for files in library path
8295# that responds to the $file_magic_cmd with a given extended regex.
8296# If you have 'file' or equivalent on your system and you're not sure
8297# whether 'pass_all' will *always* work, you probably want this one.
8298
8299case $host_os in
8300aix[4-9]*)
8301  lt_cv_deplibs_check_method=pass_all
8302  ;;
8303
8304beos*)
8305  lt_cv_deplibs_check_method=pass_all
8306  ;;
8307
8308bsdi[45]*)
8309  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8310  lt_cv_file_magic_cmd='/usr/bin/file -L'
8311  lt_cv_file_magic_test_file=/shlib/libc.so
8312  ;;
8313
8314cygwin*)
8315  # func_win32_libid is a shell function defined in ltmain.sh
8316  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8317  lt_cv_file_magic_cmd='func_win32_libid'
8318  ;;
8319
8320mingw* | pw32*)
8321  # Base MSYS/MinGW do not provide the 'file' command needed by
8322  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8323  # unless we find 'file', for example because we are cross-compiling.
8324  if ( file / ) >/dev/null 2>&1; then
8325    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8326    lt_cv_file_magic_cmd='func_win32_libid'
8327  else
8328    # Keep this pattern in sync with the one in func_win32_libid.
8329    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8330    lt_cv_file_magic_cmd='$OBJDUMP -f'
8331  fi
8332  ;;
8333
8334cegcc*)
8335  # use the weaker test based on 'objdump'. See mingw*.
8336  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8337  lt_cv_file_magic_cmd='$OBJDUMP -f'
8338  ;;
8339
8340darwin* | rhapsody*)
8341  lt_cv_deplibs_check_method=pass_all
8342  ;;
8343
8344freebsd* | dragonfly*)
8345  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8346    case $host_cpu in
8347    i*86 )
8348      # Not sure whether the presence of OpenBSD here was a mistake.
8349      # Let's accept both of them until this is cleared up.
8350      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8351      lt_cv_file_magic_cmd=/usr/bin/file
8352      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8353      ;;
8354    esac
8355  else
8356    lt_cv_deplibs_check_method=pass_all
8357  fi
8358  ;;
8359
8360haiku*)
8361  lt_cv_deplibs_check_method=pass_all
8362  ;;
8363
8364hpux10.20* | hpux11*)
8365  lt_cv_file_magic_cmd=/usr/bin/file
8366  case $host_cpu in
8367  ia64*)
8368    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8369    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8370    ;;
8371  hppa*64*)
8372    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]'
8373    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8374    ;;
8375  *)
8376    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8377    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8378    ;;
8379  esac
8380  ;;
8381
8382interix[3-9]*)
8383  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8384  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8385  ;;
8386
8387irix5* | irix6* | nonstopux*)
8388  case $LD in
8389  *-32|*"-32 ") libmagic=32-bit;;
8390  *-n32|*"-n32 ") libmagic=N32;;
8391  *-64|*"-64 ") libmagic=64-bit;;
8392  *) libmagic=never-match;;
8393  esac
8394  lt_cv_deplibs_check_method=pass_all
8395  ;;
8396
8397# This must be glibc/ELF.
8398linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8399  lt_cv_deplibs_check_method=pass_all
8400  ;;
8401
8402netbsd*)
8403  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8404    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8405  else
8406    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8407  fi
8408  ;;
8409
8410newos6*)
8411  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8412  lt_cv_file_magic_cmd=/usr/bin/file
8413  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8414  ;;
8415
8416*nto* | *qnx*)
8417  lt_cv_deplibs_check_method=pass_all
8418  ;;
8419
8420openbsd* | bitrig*)
8421  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8422    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8423  else
8424    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8425  fi
8426  ;;
8427
8428osf3* | osf4* | osf5*)
8429  lt_cv_deplibs_check_method=pass_all
8430  ;;
8431
8432rdos*)
8433  lt_cv_deplibs_check_method=pass_all
8434  ;;
8435
8436solaris*)
8437  lt_cv_deplibs_check_method=pass_all
8438  ;;
8439
8440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8441  lt_cv_deplibs_check_method=pass_all
8442  ;;
8443
8444sysv4 | sysv4.3*)
8445  case $host_vendor in
8446  motorola)
8447    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]'
8448    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8449    ;;
8450  ncr)
8451    lt_cv_deplibs_check_method=pass_all
8452    ;;
8453  sequent)
8454    lt_cv_file_magic_cmd='/bin/file'
8455    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8456    ;;
8457  sni)
8458    lt_cv_file_magic_cmd='/bin/file'
8459    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8460    lt_cv_file_magic_test_file=/lib/libc.so
8461    ;;
8462  siemens)
8463    lt_cv_deplibs_check_method=pass_all
8464    ;;
8465  pc)
8466    lt_cv_deplibs_check_method=pass_all
8467    ;;
8468  esac
8469  ;;
8470
8471tpf*)
8472  lt_cv_deplibs_check_method=pass_all
8473  ;;
8474os2*)
8475  lt_cv_deplibs_check_method=pass_all
8476  ;;
8477esac
8478
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8481$as_echo "$lt_cv_deplibs_check_method" >&6; }
8482
8483file_magic_glob=
8484want_nocaseglob=no
8485if test "$build" = "$host"; then
8486  case $host_os in
8487  mingw* | pw32*)
8488    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8489      want_nocaseglob=yes
8490    else
8491      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8492    fi
8493    ;;
8494  esac
8495fi
8496
8497file_magic_cmd=$lt_cv_file_magic_cmd
8498deplibs_check_method=$lt_cv_deplibs_check_method
8499test -z "$deplibs_check_method" && deplibs_check_method=unknown
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522if test -n "$ac_tool_prefix"; then
8523  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8524set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526$as_echo_n "checking for $ac_word... " >&6; }
8527if ${ac_cv_prog_DLLTOOL+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  if test -n "$DLLTOOL"; then
8531  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8532else
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536  IFS=$as_save_IFS
8537  test -z "$as_dir" && as_dir=.
8538    for ac_exec_ext in '' $ac_executable_extensions; do
8539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542    break 2
8543  fi
8544done
8545  done
8546IFS=$as_save_IFS
8547
8548fi
8549fi
8550DLLTOOL=$ac_cv_prog_DLLTOOL
8551if test -n "$DLLTOOL"; then
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8553$as_echo "$DLLTOOL" >&6; }
8554else
8555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556$as_echo "no" >&6; }
8557fi
8558
8559
8560fi
8561if test -z "$ac_cv_prog_DLLTOOL"; then
8562  ac_ct_DLLTOOL=$DLLTOOL
8563  # Extract the first word of "dlltool", so it can be a program name with args.
8564set dummy dlltool; ac_word=$2
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  if test -n "$ac_ct_DLLTOOL"; then
8571  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8572else
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576  IFS=$as_save_IFS
8577  test -z "$as_dir" && as_dir=.
8578    for ac_exec_ext in '' $ac_executable_extensions; do
8579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582    break 2
8583  fi
8584done
8585  done
8586IFS=$as_save_IFS
8587
8588fi
8589fi
8590ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8591if test -n "$ac_ct_DLLTOOL"; then
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8593$as_echo "$ac_ct_DLLTOOL" >&6; }
8594else
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598
8599  if test "x$ac_ct_DLLTOOL" = x; then
8600    DLLTOOL="false"
8601  else
8602    case $cross_compiling:$ac_tool_warned in
8603yes:)
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8606ac_tool_warned=yes ;;
8607esac
8608    DLLTOOL=$ac_ct_DLLTOOL
8609  fi
8610else
8611  DLLTOOL="$ac_cv_prog_DLLTOOL"
8612fi
8613
8614test -z "$DLLTOOL" && DLLTOOL=dlltool
8615
8616
8617
8618
8619
8620
8621
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8623$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8624if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  lt_cv_sharedlib_from_linklib_cmd='unknown'
8628
8629case $host_os in
8630cygwin* | mingw* | pw32* | cegcc*)
8631  # two different shell functions defined in ltmain.sh;
8632  # decide which one to use based on capabilities of $DLLTOOL
8633  case `$DLLTOOL --help 2>&1` in
8634  *--identify-strict*)
8635    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8636    ;;
8637  *)
8638    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8639    ;;
8640  esac
8641  ;;
8642*)
8643  # fallback: assume linklib IS sharedlib
8644  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8645  ;;
8646esac
8647
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8650$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8651sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8652test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8653
8654
8655
8656
8657
8658
8659
8660if test -n "$ac_tool_prefix"; then
8661  for ac_prog in ar
8662  do
8663    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666$as_echo_n "checking for $ac_word... " >&6; }
8667if ${ac_cv_prog_AR+:} false; then :
8668  $as_echo_n "(cached) " >&6
8669else
8670  if test -n "$AR"; then
8671  ac_cv_prog_AR="$AR" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676  IFS=$as_save_IFS
8677  test -z "$as_dir" && as_dir=.
8678    for ac_exec_ext in '' $ac_executable_extensions; do
8679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8680    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682    break 2
8683  fi
8684done
8685  done
8686IFS=$as_save_IFS
8687
8688fi
8689fi
8690AR=$ac_cv_prog_AR
8691if test -n "$AR"; then
8692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8693$as_echo "$AR" >&6; }
8694else
8695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
8697fi
8698
8699
8700    test -n "$AR" && break
8701  done
8702fi
8703if test -z "$AR"; then
8704  ac_ct_AR=$AR
8705  for ac_prog in ar
8706do
8707  # Extract the first word of "$ac_prog", so it can be a program name with args.
8708set dummy $ac_prog; ac_word=$2
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710$as_echo_n "checking for $ac_word... " >&6; }
8711if ${ac_cv_prog_ac_ct_AR+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  if test -n "$ac_ct_AR"; then
8715  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8716else
8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720  IFS=$as_save_IFS
8721  test -z "$as_dir" && as_dir=.
8722    for ac_exec_ext in '' $ac_executable_extensions; do
8723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724    ac_cv_prog_ac_ct_AR="$ac_prog"
8725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726    break 2
8727  fi
8728done
8729  done
8730IFS=$as_save_IFS
8731
8732fi
8733fi
8734ac_ct_AR=$ac_cv_prog_ac_ct_AR
8735if test -n "$ac_ct_AR"; then
8736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8737$as_echo "$ac_ct_AR" >&6; }
8738else
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740$as_echo "no" >&6; }
8741fi
8742
8743
8744  test -n "$ac_ct_AR" && break
8745done
8746
8747  if test "x$ac_ct_AR" = x; then
8748    AR="false"
8749  else
8750    case $cross_compiling:$ac_tool_warned in
8751yes:)
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754ac_tool_warned=yes ;;
8755esac
8756    AR=$ac_ct_AR
8757  fi
8758fi
8759
8760: ${AR=ar}
8761: ${AR_FLAGS=cru}
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8774$as_echo_n "checking for archiver @FILE support... " >&6; }
8775if ${lt_cv_ar_at_file+:} false; then :
8776  $as_echo_n "(cached) " >&6
8777else
8778  lt_cv_ar_at_file=no
8779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h.  */
8781
8782int
8783main ()
8784{
8785
8786  ;
8787  return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_compile "$LINENO"; then :
8791  echo conftest.$ac_objext > conftest.lst
8792      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8793      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8794  (eval $lt_ar_try) 2>&5
8795  ac_status=$?
8796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8797  test $ac_status = 0; }
8798      if test 0 -eq "$ac_status"; then
8799	# Ensure the archiver fails upon bogus file names.
8800	rm -f conftest.$ac_objext libconftest.a
8801	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8802  (eval $lt_ar_try) 2>&5
8803  ac_status=$?
8804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8805  test $ac_status = 0; }
8806	if test 0 -ne "$ac_status"; then
8807          lt_cv_ar_at_file=@
8808        fi
8809      fi
8810      rm -f conftest.* libconftest.a
8811
8812fi
8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814
8815fi
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8817$as_echo "$lt_cv_ar_at_file" >&6; }
8818
8819if test no = "$lt_cv_ar_at_file"; then
8820  archiver_list_spec=
8821else
8822  archiver_list_spec=$lt_cv_ar_at_file
8823fi
8824
8825
8826
8827
8828
8829
8830
8831if test -n "$ac_tool_prefix"; then
8832  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8833set dummy ${ac_tool_prefix}strip; ac_word=$2
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if ${ac_cv_prog_STRIP+:} false; then :
8837  $as_echo_n "(cached) " >&6
8838else
8839  if test -n "$STRIP"; then
8840  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845  IFS=$as_save_IFS
8846  test -z "$as_dir" && as_dir=.
8847    for ac_exec_ext in '' $ac_executable_extensions; do
8848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851    break 2
8852  fi
8853done
8854  done
8855IFS=$as_save_IFS
8856
8857fi
8858fi
8859STRIP=$ac_cv_prog_STRIP
8860if test -n "$STRIP"; then
8861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8862$as_echo "$STRIP" >&6; }
8863else
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866fi
8867
8868
8869fi
8870if test -z "$ac_cv_prog_STRIP"; then
8871  ac_ct_STRIP=$STRIP
8872  # Extract the first word of "strip", so it can be a program name with args.
8873set dummy strip; ac_word=$2
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
8876if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  if test -n "$ac_ct_STRIP"; then
8880  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885  IFS=$as_save_IFS
8886  test -z "$as_dir" && as_dir=.
8887    for ac_exec_ext in '' $ac_executable_extensions; do
8888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889    ac_cv_prog_ac_ct_STRIP="strip"
8890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894  done
8895IFS=$as_save_IFS
8896
8897fi
8898fi
8899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8900if test -n "$ac_ct_STRIP"; then
8901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8902$as_echo "$ac_ct_STRIP" >&6; }
8903else
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
8906fi
8907
8908  if test "x$ac_ct_STRIP" = x; then
8909    STRIP=":"
8910  else
8911    case $cross_compiling:$ac_tool_warned in
8912yes:)
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915ac_tool_warned=yes ;;
8916esac
8917    STRIP=$ac_ct_STRIP
8918  fi
8919else
8920  STRIP="$ac_cv_prog_STRIP"
8921fi
8922
8923test -z "$STRIP" && STRIP=:
8924
8925
8926
8927
8928
8929
8930if test -n "$ac_tool_prefix"; then
8931  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934$as_echo_n "checking for $ac_word... " >&6; }
8935if ${ac_cv_prog_RANLIB+:} false; then :
8936  $as_echo_n "(cached) " >&6
8937else
8938  if test -n "$RANLIB"; then
8939  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8940else
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944  IFS=$as_save_IFS
8945  test -z "$as_dir" && as_dir=.
8946    for ac_exec_ext in '' $ac_executable_extensions; do
8947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950    break 2
8951  fi
8952done
8953  done
8954IFS=$as_save_IFS
8955
8956fi
8957fi
8958RANLIB=$ac_cv_prog_RANLIB
8959if test -n "$RANLIB"; then
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961$as_echo "$RANLIB" >&6; }
8962else
8963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
8965fi
8966
8967
8968fi
8969if test -z "$ac_cv_prog_RANLIB"; then
8970  ac_ct_RANLIB=$RANLIB
8971  # Extract the first word of "ranlib", so it can be a program name with args.
8972set dummy ranlib; ac_word=$2
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974$as_echo_n "checking for $ac_word... " >&6; }
8975if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  if test -n "$ac_ct_RANLIB"; then
8979  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8980else
8981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982for as_dir in $PATH
8983do
8984  IFS=$as_save_IFS
8985  test -z "$as_dir" && as_dir=.
8986    for ac_exec_ext in '' $ac_executable_extensions; do
8987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8988    ac_cv_prog_ac_ct_RANLIB="ranlib"
8989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990    break 2
8991  fi
8992done
8993  done
8994IFS=$as_save_IFS
8995
8996fi
8997fi
8998ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8999if test -n "$ac_ct_RANLIB"; then
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9001$as_echo "$ac_ct_RANLIB" >&6; }
9002else
9003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004$as_echo "no" >&6; }
9005fi
9006
9007  if test "x$ac_ct_RANLIB" = x; then
9008    RANLIB=":"
9009  else
9010    case $cross_compiling:$ac_tool_warned in
9011yes:)
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9014ac_tool_warned=yes ;;
9015esac
9016    RANLIB=$ac_ct_RANLIB
9017  fi
9018else
9019  RANLIB="$ac_cv_prog_RANLIB"
9020fi
9021
9022test -z "$RANLIB" && RANLIB=:
9023
9024
9025
9026
9027
9028
9029# Determine commands to create old-style static archives.
9030old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9031old_postinstall_cmds='chmod 644 $oldlib'
9032old_postuninstall_cmds=
9033
9034if test -n "$RANLIB"; then
9035  case $host_os in
9036  bitrig* | openbsd*)
9037    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9038    ;;
9039  *)
9040    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9041    ;;
9042  esac
9043  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9044fi
9045
9046case $host_os in
9047  darwin*)
9048    lock_old_archive_extraction=yes ;;
9049  *)
9050    lock_old_archive_extraction=no ;;
9051esac
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091# If no C compiler was specified, use CC.
9092LTCC=${LTCC-"$CC"}
9093
9094# If no C compiler flags were specified, use CFLAGS.
9095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9096
9097# Allow CC to be a program name with arguments.
9098compiler=$CC
9099
9100
9101# Check for command to grab the raw symbol name followed by C symbol from nm.
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9103$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9104if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9105  $as_echo_n "(cached) " >&6
9106else
9107
9108# These are sane defaults that work on at least a few old systems.
9109# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9110
9111# Character class describing NM global symbol codes.
9112symcode='[BCDEGRST]'
9113
9114# Regexp to match symbols that can be accessed directly from C.
9115sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9116
9117# Define system-specific variables.
9118case $host_os in
9119aix*)
9120  symcode='[BCDT]'
9121  ;;
9122cygwin* | mingw* | pw32* | cegcc*)
9123  symcode='[ABCDGISTW]'
9124  ;;
9125hpux*)
9126  if test ia64 = "$host_cpu"; then
9127    symcode='[ABCDEGRST]'
9128  fi
9129  ;;
9130irix* | nonstopux*)
9131  symcode='[BCDEGRST]'
9132  ;;
9133osf*)
9134  symcode='[BCDEGQRST]'
9135  ;;
9136solaris*)
9137  symcode='[BDRT]'
9138  ;;
9139sco3.2v5*)
9140  symcode='[DT]'
9141  ;;
9142sysv4.2uw2*)
9143  symcode='[DT]'
9144  ;;
9145sysv5* | sco5v6* | unixware* | OpenUNIX*)
9146  symcode='[ABDT]'
9147  ;;
9148sysv4)
9149  symcode='[DFNSTU]'
9150  ;;
9151esac
9152
9153# If we're using GNU nm, then use its standard symbol codes.
9154case `$NM -V 2>&1` in
9155*GNU* | *'with BFD'*)
9156  symcode='[ABCDGIRSTW]' ;;
9157esac
9158
9159if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9160  # Gets list of data symbols to import.
9161  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9162  # Adjust the below global symbol transforms to fixup imported variables.
9163  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9164  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9165  lt_c_name_lib_hook="\
9166  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9167  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9168else
9169  # Disable hooks by default.
9170  lt_cv_sys_global_symbol_to_import=
9171  lt_cdecl_hook=
9172  lt_c_name_hook=
9173  lt_c_name_lib_hook=
9174fi
9175
9176# Transform an extracted symbol line into a proper C declaration.
9177# Some systems (esp. on ia64) link data and code symbols differently,
9178# so use this general approach.
9179lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9180$lt_cdecl_hook\
9181" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9182" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9183
9184# Transform an extracted symbol line into symbol name and symbol address
9185lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9186$lt_c_name_hook\
9187" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9188" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9189
9190# Transform an extracted symbol line into symbol name with lib prefix and
9191# symbol address.
9192lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9193$lt_c_name_lib_hook\
9194" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9195" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9196" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9197
9198# Handle CRLF in mingw tool chain
9199opt_cr=
9200case $build_os in
9201mingw*)
9202  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9203  ;;
9204esac
9205
9206# Try without a prefix underscore, then with it.
9207for ac_symprfx in "" "_"; do
9208
9209  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9210  symxfrm="\\1 $ac_symprfx\\2 \\2"
9211
9212  # Write the raw and C identifiers.
9213  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9214    # Fake it for dumpbin and say T for any non-static function,
9215    # D for any global variable and I for any imported variable.
9216    # Also find C++ and __fastcall symbols from MSVC++,
9217    # which start with @ or ?.
9218    lt_cv_sys_global_symbol_pipe="$AWK '"\
9219"     {last_section=section; section=\$ 3};"\
9220"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9221"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9222"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9223"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9224"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9225"     \$ 0!~/External *\|/{next};"\
9226"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9227"     {if(hide[section]) next};"\
9228"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9229"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9230"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9231"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9232"     ' prfx=^$ac_symprfx"
9233  else
9234    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9235  fi
9236  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9237
9238  # Check to see that the pipe works correctly.
9239  pipe_works=no
9240
9241  rm -f conftest*
9242  cat > conftest.$ac_ext <<_LT_EOF
9243#ifdef __cplusplus
9244extern "C" {
9245#endif
9246char nm_test_var;
9247void nm_test_func(void);
9248void nm_test_func(void){}
9249#ifdef __cplusplus
9250}
9251#endif
9252int main(){nm_test_var='a';nm_test_func();return(0);}
9253_LT_EOF
9254
9255  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9256  (eval $ac_compile) 2>&5
9257  ac_status=$?
9258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259  test $ac_status = 0; }; then
9260    # Now try to grab the symbols.
9261    nlist=conftest.nm
9262    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9263  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9264  ac_status=$?
9265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9266  test $ac_status = 0; } && test -s "$nlist"; then
9267      # Try sorting and uniquifying the output.
9268      if sort "$nlist" | uniq > "$nlist"T; then
9269	mv -f "$nlist"T "$nlist"
9270      else
9271	rm -f "$nlist"T
9272      fi
9273
9274      # Make sure that we snagged all the symbols we need.
9275      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9276	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9277	  cat <<_LT_EOF > conftest.$ac_ext
9278/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9279#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9280/* DATA imports from DLLs on WIN32 can't be const, because runtime
9281   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9282# define LT_DLSYM_CONST
9283#elif defined __osf__
9284/* This system does not cope well with relocations in const data.  */
9285# define LT_DLSYM_CONST
9286#else
9287# define LT_DLSYM_CONST const
9288#endif
9289
9290#ifdef __cplusplus
9291extern "C" {
9292#endif
9293
9294_LT_EOF
9295	  # Now generate the symbol file.
9296	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9297
9298	  cat <<_LT_EOF >> conftest.$ac_ext
9299
9300/* The mapping between symbol names and symbols.  */
9301LT_DLSYM_CONST struct {
9302  const char *name;
9303  void       *address;
9304}
9305lt__PROGRAM__LTX_preloaded_symbols[] =
9306{
9307  { "@PROGRAM@", (void *) 0 },
9308_LT_EOF
9309	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9310	  cat <<\_LT_EOF >> conftest.$ac_ext
9311  {0, (void *) 0}
9312};
9313
9314/* This works around a problem in FreeBSD linker */
9315#ifdef FREEBSD_WORKAROUND
9316static const void *lt_preloaded_setup() {
9317  return lt__PROGRAM__LTX_preloaded_symbols;
9318}
9319#endif
9320
9321#ifdef __cplusplus
9322}
9323#endif
9324_LT_EOF
9325	  # Now try linking the two files.
9326	  mv conftest.$ac_objext conftstm.$ac_objext
9327	  lt_globsym_save_LIBS=$LIBS
9328	  lt_globsym_save_CFLAGS=$CFLAGS
9329	  LIBS=conftstm.$ac_objext
9330	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9331	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9332  (eval $ac_link) 2>&5
9333  ac_status=$?
9334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9335  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9336	    pipe_works=yes
9337	  fi
9338	  LIBS=$lt_globsym_save_LIBS
9339	  CFLAGS=$lt_globsym_save_CFLAGS
9340	else
9341	  echo "cannot find nm_test_func in $nlist" >&5
9342	fi
9343      else
9344	echo "cannot find nm_test_var in $nlist" >&5
9345      fi
9346    else
9347      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9348    fi
9349  else
9350    echo "$progname: failed program was:" >&5
9351    cat conftest.$ac_ext >&5
9352  fi
9353  rm -rf conftest* conftst*
9354
9355  # Do not use the global_symbol_pipe unless it works.
9356  if test yes = "$pipe_works"; then
9357    break
9358  else
9359    lt_cv_sys_global_symbol_pipe=
9360  fi
9361done
9362
9363fi
9364
9365if test -z "$lt_cv_sys_global_symbol_pipe"; then
9366  lt_cv_sys_global_symbol_to_cdecl=
9367fi
9368if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9370$as_echo "failed" >&6; }
9371else
9372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9373$as_echo "ok" >&6; }
9374fi
9375
9376# Response file support.
9377if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9378  nm_file_list_spec='@'
9379elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9380  nm_file_list_spec='@'
9381fi
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9420$as_echo_n "checking for sysroot... " >&6; }
9421
9422# Check whether --with-sysroot was given.
9423if test "${with_sysroot+set}" = set; then :
9424  withval=$with_sysroot;
9425else
9426  with_sysroot=no
9427fi
9428
9429
9430lt_sysroot=
9431case $with_sysroot in #(
9432 yes)
9433   if test yes = "$GCC"; then
9434     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9435   fi
9436   ;; #(
9437 /*)
9438   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9439   ;; #(
9440 no|'')
9441   ;; #(
9442 *)
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9444$as_echo "$with_sysroot" >&6; }
9445   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9446   ;;
9447esac
9448
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9450$as_echo "${lt_sysroot:-no}" >&6; }
9451
9452
9453
9454
9455
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9457$as_echo_n "checking for a working dd... " >&6; }
9458if ${ac_cv_path_lt_DD+:} false; then :
9459  $as_echo_n "(cached) " >&6
9460else
9461  printf 0123456789abcdef0123456789abcdef >conftest.i
9462cat conftest.i conftest.i >conftest2.i
9463: ${lt_DD:=$DD}
9464if test -z "$lt_DD"; then
9465  ac_path_lt_DD_found=false
9466  # Loop through the user's path and test for each of PROGNAME-LIST
9467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468for as_dir in $PATH
9469do
9470  IFS=$as_save_IFS
9471  test -z "$as_dir" && as_dir=.
9472    for ac_prog in dd; do
9473    for ac_exec_ext in '' $ac_executable_extensions; do
9474      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9475      as_fn_executable_p "$ac_path_lt_DD" || continue
9476if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9477  cmp -s conftest.i conftest.out \
9478  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9479fi
9480      $ac_path_lt_DD_found && break 3
9481    done
9482  done
9483  done
9484IFS=$as_save_IFS
9485  if test -z "$ac_cv_path_lt_DD"; then
9486    :
9487  fi
9488else
9489  ac_cv_path_lt_DD=$lt_DD
9490fi
9491
9492rm -f conftest.i conftest2.i conftest.out
9493fi
9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9495$as_echo "$ac_cv_path_lt_DD" >&6; }
9496
9497
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9499$as_echo_n "checking how to truncate binary pipes... " >&6; }
9500if ${lt_cv_truncate_bin+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  printf 0123456789abcdef0123456789abcdef >conftest.i
9504cat conftest.i conftest.i >conftest2.i
9505lt_cv_truncate_bin=
9506if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9507  cmp -s conftest.i conftest.out \
9508  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9509fi
9510rm -f conftest.i conftest2.i conftest.out
9511test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9514$as_echo "$lt_cv_truncate_bin" >&6; }
9515
9516
9517
9518
9519
9520
9521
9522# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9523func_cc_basename ()
9524{
9525    for cc_temp in $*""; do
9526      case $cc_temp in
9527        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9528        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9529        \-*) ;;
9530        *) break;;
9531      esac
9532    done
9533    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9534}
9535
9536# Check whether --enable-libtool-lock was given.
9537if test "${enable_libtool_lock+set}" = set; then :
9538  enableval=$enable_libtool_lock;
9539fi
9540
9541test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9542
9543# Some flags need to be propagated to the compiler or linker for good
9544# libtool support.
9545case $host in
9546ia64-*-hpux*)
9547  # Find out what ABI is being produced by ac_compile, and set mode
9548  # options accordingly.
9549  echo 'int i;' > conftest.$ac_ext
9550  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9551  (eval $ac_compile) 2>&5
9552  ac_status=$?
9553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9554  test $ac_status = 0; }; then
9555    case `/usr/bin/file conftest.$ac_objext` in
9556      *ELF-32*)
9557	HPUX_IA64_MODE=32
9558	;;
9559      *ELF-64*)
9560	HPUX_IA64_MODE=64
9561	;;
9562    esac
9563  fi
9564  rm -rf conftest*
9565  ;;
9566*-*-irix6*)
9567  # Find out what ABI is being produced by ac_compile, and set linker
9568  # options accordingly.
9569  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9571  (eval $ac_compile) 2>&5
9572  ac_status=$?
9573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9574  test $ac_status = 0; }; then
9575    if test yes = "$lt_cv_prog_gnu_ld"; then
9576      case `/usr/bin/file conftest.$ac_objext` in
9577	*32-bit*)
9578	  LD="${LD-ld} -melf32bsmip"
9579	  ;;
9580	*N32*)
9581	  LD="${LD-ld} -melf32bmipn32"
9582	  ;;
9583	*64-bit*)
9584	  LD="${LD-ld} -melf64bmip"
9585	;;
9586      esac
9587    else
9588      case `/usr/bin/file conftest.$ac_objext` in
9589	*32-bit*)
9590	  LD="${LD-ld} -32"
9591	  ;;
9592	*N32*)
9593	  LD="${LD-ld} -n32"
9594	  ;;
9595	*64-bit*)
9596	  LD="${LD-ld} -64"
9597	  ;;
9598      esac
9599    fi
9600  fi
9601  rm -rf conftest*
9602  ;;
9603
9604mips64*-*linux*)
9605  # Find out what ABI is being produced by ac_compile, and set linker
9606  # options accordingly.
9607  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9608  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9609  (eval $ac_compile) 2>&5
9610  ac_status=$?
9611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9612  test $ac_status = 0; }; then
9613    emul=elf
9614    case `/usr/bin/file conftest.$ac_objext` in
9615      *32-bit*)
9616	emul="${emul}32"
9617	;;
9618      *64-bit*)
9619	emul="${emul}64"
9620	;;
9621    esac
9622    case `/usr/bin/file conftest.$ac_objext` in
9623      *MSB*)
9624	emul="${emul}btsmip"
9625	;;
9626      *LSB*)
9627	emul="${emul}ltsmip"
9628	;;
9629    esac
9630    case `/usr/bin/file conftest.$ac_objext` in
9631      *N32*)
9632	emul="${emul}n32"
9633	;;
9634    esac
9635    LD="${LD-ld} -m $emul"
9636  fi
9637  rm -rf conftest*
9638  ;;
9639
9640x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9641s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9642  # Find out what ABI is being produced by ac_compile, and set linker
9643  # options accordingly.  Note that the listed cases only cover the
9644  # situations where additional linker options are needed (such as when
9645  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9646  # vice versa); the common cases where no linker options are needed do
9647  # not appear in the list.
9648  echo 'int i;' > conftest.$ac_ext
9649  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9650  (eval $ac_compile) 2>&5
9651  ac_status=$?
9652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9653  test $ac_status = 0; }; then
9654    case `/usr/bin/file conftest.o` in
9655      *32-bit*)
9656	case $host in
9657	  x86_64-*kfreebsd*-gnu)
9658	    LD="${LD-ld} -m elf_i386_fbsd"
9659	    ;;
9660	  x86_64-*linux*)
9661	    case `/usr/bin/file conftest.o` in
9662	      *x86-64*)
9663		LD="${LD-ld} -m elf32_x86_64"
9664		;;
9665	      *)
9666		LD="${LD-ld} -m elf_i386"
9667		;;
9668	    esac
9669	    ;;
9670	  powerpc64le-*linux*)
9671	    LD="${LD-ld} -m elf32lppclinux"
9672	    ;;
9673	  powerpc64-*linux*)
9674	    LD="${LD-ld} -m elf32ppclinux"
9675	    ;;
9676	  s390x-*linux*)
9677	    LD="${LD-ld} -m elf_s390"
9678	    ;;
9679	  sparc64-*linux*)
9680	    LD="${LD-ld} -m elf32_sparc"
9681	    ;;
9682	esac
9683	;;
9684      *64-bit*)
9685	case $host in
9686	  x86_64-*kfreebsd*-gnu)
9687	    LD="${LD-ld} -m elf_x86_64_fbsd"
9688	    ;;
9689	  x86_64-*linux*)
9690	    LD="${LD-ld} -m elf_x86_64"
9691	    ;;
9692	  powerpcle-*linux*)
9693	    LD="${LD-ld} -m elf64lppc"
9694	    ;;
9695	  powerpc-*linux*)
9696	    LD="${LD-ld} -m elf64ppc"
9697	    ;;
9698	  s390*-*linux*|s390*-*tpf*)
9699	    LD="${LD-ld} -m elf64_s390"
9700	    ;;
9701	  sparc*-*linux*)
9702	    LD="${LD-ld} -m elf64_sparc"
9703	    ;;
9704	esac
9705	;;
9706    esac
9707  fi
9708  rm -rf conftest*
9709  ;;
9710
9711*-*-sco3.2v5*)
9712  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9713  SAVE_CFLAGS=$CFLAGS
9714  CFLAGS="$CFLAGS -belf"
9715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9716$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9717if ${lt_cv_cc_needs_belf+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  ac_ext=c
9721ac_cpp='$CPP $CPPFLAGS'
9722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9724ac_compiler_gnu=$ac_cv_c_compiler_gnu
9725
9726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727/* end confdefs.h.  */
9728
9729int
9730main ()
9731{
9732
9733  ;
9734  return 0;
9735}
9736_ACEOF
9737if ac_fn_c_try_link "$LINENO"; then :
9738  lt_cv_cc_needs_belf=yes
9739else
9740  lt_cv_cc_needs_belf=no
9741fi
9742rm -f core conftest.err conftest.$ac_objext \
9743    conftest$ac_exeext conftest.$ac_ext
9744     ac_ext=c
9745ac_cpp='$CPP $CPPFLAGS'
9746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748ac_compiler_gnu=$ac_cv_c_compiler_gnu
9749
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9752$as_echo "$lt_cv_cc_needs_belf" >&6; }
9753  if test yes != "$lt_cv_cc_needs_belf"; then
9754    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9755    CFLAGS=$SAVE_CFLAGS
9756  fi
9757  ;;
9758*-*solaris*)
9759  # Find out what ABI is being produced by ac_compile, and set linker
9760  # options accordingly.
9761  echo 'int i;' > conftest.$ac_ext
9762  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9763  (eval $ac_compile) 2>&5
9764  ac_status=$?
9765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9766  test $ac_status = 0; }; then
9767    case `/usr/bin/file conftest.o` in
9768    *64-bit*)
9769      case $lt_cv_prog_gnu_ld in
9770      yes*)
9771        case $host in
9772        i?86-*-solaris*|x86_64-*-solaris*)
9773          LD="${LD-ld} -m elf_x86_64"
9774          ;;
9775        sparc*-*-solaris*)
9776          LD="${LD-ld} -m elf64_sparc"
9777          ;;
9778        esac
9779        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9780        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9781          LD=${LD-ld}_sol2
9782        fi
9783        ;;
9784      *)
9785	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9786	  LD="${LD-ld} -64"
9787	fi
9788	;;
9789      esac
9790      ;;
9791    esac
9792  fi
9793  rm -rf conftest*
9794  ;;
9795esac
9796
9797need_locks=$enable_libtool_lock
9798
9799if test -n "$ac_tool_prefix"; then
9800  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9801set dummy ${ac_tool_prefix}mt; ac_word=$2
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803$as_echo_n "checking for $ac_word... " >&6; }
9804if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9805  $as_echo_n "(cached) " >&6
9806else
9807  if test -n "$MANIFEST_TOOL"; then
9808  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9809else
9810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $PATH
9812do
9813  IFS=$as_save_IFS
9814  test -z "$as_dir" && as_dir=.
9815    for ac_exec_ext in '' $ac_executable_extensions; do
9816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819    break 2
9820  fi
9821done
9822  done
9823IFS=$as_save_IFS
9824
9825fi
9826fi
9827MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9828if test -n "$MANIFEST_TOOL"; then
9829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9830$as_echo "$MANIFEST_TOOL" >&6; }
9831else
9832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835
9836
9837fi
9838if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9839  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9840  # Extract the first word of "mt", so it can be a program name with args.
9841set dummy mt; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
9844if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  if test -n "$ac_ct_MANIFEST_TOOL"; then
9848  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9849else
9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $PATH
9852do
9853  IFS=$as_save_IFS
9854  test -z "$as_dir" && as_dir=.
9855    for ac_exec_ext in '' $ac_executable_extensions; do
9856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859    break 2
9860  fi
9861done
9862  done
9863IFS=$as_save_IFS
9864
9865fi
9866fi
9867ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9868if test -n "$ac_ct_MANIFEST_TOOL"; then
9869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9870$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9871else
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
9874fi
9875
9876  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9877    MANIFEST_TOOL=":"
9878  else
9879    case $cross_compiling:$ac_tool_warned in
9880yes:)
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9883ac_tool_warned=yes ;;
9884esac
9885    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9886  fi
9887else
9888  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9889fi
9890
9891test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9893$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9894if ${lt_cv_path_mainfest_tool+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  lt_cv_path_mainfest_tool=no
9898  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9899  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9900  cat conftest.err >&5
9901  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9902    lt_cv_path_mainfest_tool=yes
9903  fi
9904  rm -f conftest*
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9907$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9908if test yes != "$lt_cv_path_mainfest_tool"; then
9909  MANIFEST_TOOL=:
9910fi
9911
9912
9913
9914
9915
9916
9917  case $host_os in
9918    rhapsody* | darwin*)
9919    if test -n "$ac_tool_prefix"; then
9920  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9921set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
9925  $as_echo_n "(cached) " >&6
9926else
9927  if test -n "$DSYMUTIL"; then
9928  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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
9947DSYMUTIL=$ac_cv_prog_DSYMUTIL
9948if test -n "$DSYMUTIL"; then
9949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9950$as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then
9959  ac_ct_DSYMUTIL=$DSYMUTIL
9960  # Extract the first word of "dsymutil", so it can be a program name with args.
9961set dummy dsymutil; 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_DSYMUTIL+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  if test -n "$ac_ct_DSYMUTIL"; then
9968  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9988if test -n "$ac_ct_DSYMUTIL"; then
9989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9990$as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then
9997    DSYMUTIL=":"
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    DSYMUTIL=$ac_ct_DSYMUTIL
10006  fi
10007else
10008  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10009fi
10010
10011    if test -n "$ac_tool_prefix"; then
10012  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10013set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10015$as_echo_n "checking for $ac_word... " >&6; }
10016if ${ac_cv_prog_NMEDIT+:} false; then :
10017  $as_echo_n "(cached) " >&6
10018else
10019  if test -n "$NMEDIT"; then
10020  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10021else
10022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023for as_dir in $PATH
10024do
10025  IFS=$as_save_IFS
10026  test -z "$as_dir" && as_dir=.
10027    for ac_exec_ext in '' $ac_executable_extensions; do
10028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10029    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031    break 2
10032  fi
10033done
10034  done
10035IFS=$as_save_IFS
10036
10037fi
10038fi
10039NMEDIT=$ac_cv_prog_NMEDIT
10040if test -n "$NMEDIT"; then
10041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10042$as_echo "$NMEDIT" >&6; }
10043else
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045$as_echo "no" >&6; }
10046fi
10047
10048
10049fi
10050if test -z "$ac_cv_prog_NMEDIT"; then
10051  ac_ct_NMEDIT=$NMEDIT
10052  # Extract the first word of "nmedit", so it can be a program name with args.
10053set dummy nmedit; ac_word=$2
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055$as_echo_n "checking for $ac_word... " >&6; }
10056if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  if test -n "$ac_ct_NMEDIT"; then
10060  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10061else
10062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063for as_dir in $PATH
10064do
10065  IFS=$as_save_IFS
10066  test -z "$as_dir" && as_dir=.
10067    for ac_exec_ext in '' $ac_executable_extensions; do
10068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071    break 2
10072  fi
10073done
10074  done
10075IFS=$as_save_IFS
10076
10077fi
10078fi
10079ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10080if test -n "$ac_ct_NMEDIT"; then
10081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10082$as_echo "$ac_ct_NMEDIT" >&6; }
10083else
10084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085$as_echo "no" >&6; }
10086fi
10087
10088  if test "x$ac_ct_NMEDIT" = x; then
10089    NMEDIT=":"
10090  else
10091    case $cross_compiling:$ac_tool_warned in
10092yes:)
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10095ac_tool_warned=yes ;;
10096esac
10097    NMEDIT=$ac_ct_NMEDIT
10098  fi
10099else
10100  NMEDIT="$ac_cv_prog_NMEDIT"
10101fi
10102
10103    if test -n "$ac_tool_prefix"; then
10104  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10105set dummy ${ac_tool_prefix}lipo; ac_word=$2
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107$as_echo_n "checking for $ac_word... " >&6; }
10108if ${ac_cv_prog_LIPO+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  if test -n "$LIPO"; then
10112  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10113else
10114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115for as_dir in $PATH
10116do
10117  IFS=$as_save_IFS
10118  test -z "$as_dir" && as_dir=.
10119    for ac_exec_ext in '' $ac_executable_extensions; do
10120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123    break 2
10124  fi
10125done
10126  done
10127IFS=$as_save_IFS
10128
10129fi
10130fi
10131LIPO=$ac_cv_prog_LIPO
10132if test -n "$LIPO"; then
10133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10134$as_echo "$LIPO" >&6; }
10135else
10136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
10138fi
10139
10140
10141fi
10142if test -z "$ac_cv_prog_LIPO"; then
10143  ac_ct_LIPO=$LIPO
10144  # Extract the first word of "lipo", so it can be a program name with args.
10145set dummy lipo; ac_word=$2
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147$as_echo_n "checking for $ac_word... " >&6; }
10148if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10149  $as_echo_n "(cached) " >&6
10150else
10151  if test -n "$ac_ct_LIPO"; then
10152  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10153else
10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in $PATH
10156do
10157  IFS=$as_save_IFS
10158  test -z "$as_dir" && as_dir=.
10159    for ac_exec_ext in '' $ac_executable_extensions; do
10160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161    ac_cv_prog_ac_ct_LIPO="lipo"
10162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163    break 2
10164  fi
10165done
10166  done
10167IFS=$as_save_IFS
10168
10169fi
10170fi
10171ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10172if test -n "$ac_ct_LIPO"; then
10173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10174$as_echo "$ac_ct_LIPO" >&6; }
10175else
10176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
10178fi
10179
10180  if test "x$ac_ct_LIPO" = x; then
10181    LIPO=":"
10182  else
10183    case $cross_compiling:$ac_tool_warned in
10184yes:)
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10187ac_tool_warned=yes ;;
10188esac
10189    LIPO=$ac_ct_LIPO
10190  fi
10191else
10192  LIPO="$ac_cv_prog_LIPO"
10193fi
10194
10195    if test -n "$ac_tool_prefix"; then
10196  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10197set dummy ${ac_tool_prefix}otool; ac_word=$2
10198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199$as_echo_n "checking for $ac_word... " >&6; }
10200if ${ac_cv_prog_OTOOL+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  if test -n "$OTOOL"; then
10204  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10205else
10206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207for as_dir in $PATH
10208do
10209  IFS=$as_save_IFS
10210  test -z "$as_dir" && as_dir=.
10211    for ac_exec_ext in '' $ac_executable_extensions; do
10212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10213    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215    break 2
10216  fi
10217done
10218  done
10219IFS=$as_save_IFS
10220
10221fi
10222fi
10223OTOOL=$ac_cv_prog_OTOOL
10224if test -n "$OTOOL"; then
10225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10226$as_echo "$OTOOL" >&6; }
10227else
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229$as_echo "no" >&6; }
10230fi
10231
10232
10233fi
10234if test -z "$ac_cv_prog_OTOOL"; then
10235  ac_ct_OTOOL=$OTOOL
10236  # Extract the first word of "otool", so it can be a program name with args.
10237set dummy otool; ac_word=$2
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239$as_echo_n "checking for $ac_word... " >&6; }
10240if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10241  $as_echo_n "(cached) " >&6
10242else
10243  if test -n "$ac_ct_OTOOL"; then
10244  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10245else
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249  IFS=$as_save_IFS
10250  test -z "$as_dir" && as_dir=.
10251    for ac_exec_ext in '' $ac_executable_extensions; do
10252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253    ac_cv_prog_ac_ct_OTOOL="otool"
10254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255    break 2
10256  fi
10257done
10258  done
10259IFS=$as_save_IFS
10260
10261fi
10262fi
10263ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10264if test -n "$ac_ct_OTOOL"; then
10265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10266$as_echo "$ac_ct_OTOOL" >&6; }
10267else
10268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270fi
10271
10272  if test "x$ac_ct_OTOOL" = x; then
10273    OTOOL=":"
10274  else
10275    case $cross_compiling:$ac_tool_warned in
10276yes:)
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10279ac_tool_warned=yes ;;
10280esac
10281    OTOOL=$ac_ct_OTOOL
10282  fi
10283else
10284  OTOOL="$ac_cv_prog_OTOOL"
10285fi
10286
10287    if test -n "$ac_tool_prefix"; then
10288  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10289set dummy ${ac_tool_prefix}otool64; ac_word=$2
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291$as_echo_n "checking for $ac_word... " >&6; }
10292if ${ac_cv_prog_OTOOL64+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  if test -n "$OTOOL64"; then
10296  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10297else
10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301  IFS=$as_save_IFS
10302  test -z "$as_dir" && as_dir=.
10303    for ac_exec_ext in '' $ac_executable_extensions; do
10304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307    break 2
10308  fi
10309done
10310  done
10311IFS=$as_save_IFS
10312
10313fi
10314fi
10315OTOOL64=$ac_cv_prog_OTOOL64
10316if test -n "$OTOOL64"; then
10317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10318$as_echo "$OTOOL64" >&6; }
10319else
10320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
10322fi
10323
10324
10325fi
10326if test -z "$ac_cv_prog_OTOOL64"; then
10327  ac_ct_OTOOL64=$OTOOL64
10328  # Extract the first word of "otool64", so it can be a program name with args.
10329set dummy otool64; ac_word=$2
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331$as_echo_n "checking for $ac_word... " >&6; }
10332if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10333  $as_echo_n "(cached) " >&6
10334else
10335  if test -n "$ac_ct_OTOOL64"; then
10336  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10337else
10338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339for as_dir in $PATH
10340do
10341  IFS=$as_save_IFS
10342  test -z "$as_dir" && as_dir=.
10343    for ac_exec_ext in '' $ac_executable_extensions; do
10344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10345    ac_cv_prog_ac_ct_OTOOL64="otool64"
10346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347    break 2
10348  fi
10349done
10350  done
10351IFS=$as_save_IFS
10352
10353fi
10354fi
10355ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10356if test -n "$ac_ct_OTOOL64"; then
10357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10358$as_echo "$ac_ct_OTOOL64" >&6; }
10359else
10360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361$as_echo "no" >&6; }
10362fi
10363
10364  if test "x$ac_ct_OTOOL64" = x; then
10365    OTOOL64=":"
10366  else
10367    case $cross_compiling:$ac_tool_warned in
10368yes:)
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10371ac_tool_warned=yes ;;
10372esac
10373    OTOOL64=$ac_ct_OTOOL64
10374  fi
10375else
10376  OTOOL64="$ac_cv_prog_OTOOL64"
10377fi
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 -single_module linker flag" >&5
10406$as_echo_n "checking for -single_module linker flag... " >&6; }
10407if ${lt_cv_apple_cc_single_mod+:} false; then :
10408  $as_echo_n "(cached) " >&6
10409else
10410  lt_cv_apple_cc_single_mod=no
10411      if test -z "$LT_MULTI_MODULE"; then
10412	# By default we will add the -single_module flag. You can override
10413	# by either setting the environment variable LT_MULTI_MODULE
10414	# non-empty at configure time, or by adding -multi_module to the
10415	# link flags.
10416	rm -rf libconftest.dylib*
10417	echo "int foo(void){return 1;}" > conftest.c
10418	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10419-dynamiclib -Wl,-single_module conftest.c" >&5
10420	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10421	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10422        _lt_result=$?
10423	# If there is a non-empty error log, and "single_module"
10424	# appears in it, assume the flag caused a linker warning
10425        if test -s conftest.err && $GREP single_module conftest.err; then
10426	  cat conftest.err >&5
10427	# Otherwise, if the output was created with a 0 exit code from
10428	# the compiler, it worked.
10429	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10430	  lt_cv_apple_cc_single_mod=yes
10431	else
10432	  cat conftest.err >&5
10433	fi
10434	rm -rf libconftest.dylib*
10435	rm -f conftest.*
10436      fi
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10439$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10440
10441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10442$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10443if ${lt_cv_ld_exported_symbols_list+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  lt_cv_ld_exported_symbols_list=no
10447      save_LDFLAGS=$LDFLAGS
10448      echo "_main" > conftest.sym
10449      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h.  */
10452
10453int
10454main ()
10455{
10456
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461if ac_fn_c_try_link "$LINENO"; then :
10462  lt_cv_ld_exported_symbols_list=yes
10463else
10464  lt_cv_ld_exported_symbols_list=no
10465fi
10466rm -f core conftest.err conftest.$ac_objext \
10467    conftest$ac_exeext conftest.$ac_ext
10468	LDFLAGS=$save_LDFLAGS
10469
10470fi
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10472$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10473
10474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10475$as_echo_n "checking for -force_load linker flag... " >&6; }
10476if ${lt_cv_ld_force_load+:} false; then :
10477  $as_echo_n "(cached) " >&6
10478else
10479  lt_cv_ld_force_load=no
10480      cat > conftest.c << _LT_EOF
10481int forced_loaded() { return 2;}
10482_LT_EOF
10483      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10484      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10485      echo "$AR cru libconftest.a conftest.o" >&5
10486      $AR cru libconftest.a conftest.o 2>&5
10487      echo "$RANLIB libconftest.a" >&5
10488      $RANLIB libconftest.a 2>&5
10489      cat > conftest.c << _LT_EOF
10490int main() { return 0;}
10491_LT_EOF
10492      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10493      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10494      _lt_result=$?
10495      if test -s conftest.err && $GREP force_load conftest.err; then
10496	cat conftest.err >&5
10497      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10498	lt_cv_ld_force_load=yes
10499      else
10500	cat conftest.err >&5
10501      fi
10502        rm -f conftest.err libconftest.a conftest conftest.c
10503        rm -rf conftest.dSYM
10504
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10507$as_echo "$lt_cv_ld_force_load" >&6; }
10508    case $host_os in
10509    rhapsody* | darwin1.[012])
10510      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10511    darwin1.*)
10512      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10513    darwin*) # darwin 5.x on
10514      # if running on 10.5 or later, the deployment target defaults
10515      # to the OS version, if on x86, and 10.4, the deployment
10516      # target defaults to 10.4. Don't you love it?
10517      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10518	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10519	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10520	10.[012][,.]*)
10521	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10522	10.*)
10523	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10524      esac
10525    ;;
10526  esac
10527    if test yes = "$lt_cv_apple_cc_single_mod"; then
10528      _lt_dar_single_mod='$single_module'
10529    fi
10530    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10531      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10532    else
10533      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10534    fi
10535    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10536      _lt_dsymutil='~$DSYMUTIL $lib || :'
10537    else
10538      _lt_dsymutil=
10539    fi
10540    ;;
10541  esac
10542
10543# func_munge_path_list VARIABLE PATH
10544# -----------------------------------
10545# VARIABLE is name of variable containing _space_ separated list of
10546# directories to be munged by the contents of PATH, which is string
10547# having a format:
10548# "DIR[:DIR]:"
10549#       string "DIR[ DIR]" will be prepended to VARIABLE
10550# ":DIR[:DIR]"
10551#       string "DIR[ DIR]" will be appended to VARIABLE
10552# "DIRP[:DIRP]::[DIRA:]DIRA"
10553#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10554#       "DIRA[ DIRA]" will be appended to VARIABLE
10555# "DIR[:DIR]"
10556#       VARIABLE will be replaced by "DIR[ DIR]"
10557func_munge_path_list ()
10558{
10559    case x$2 in
10560    x)
10561        ;;
10562    *:)
10563        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10564        ;;
10565    x:*)
10566        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10567        ;;
10568    *::*)
10569        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10570        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10571        ;;
10572    *)
10573        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10574        ;;
10575    esac
10576}
10577
10578for ac_header in dlfcn.h
10579do :
10580  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10581"
10582if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10583  cat >>confdefs.h <<_ACEOF
10584#define HAVE_DLFCN_H 1
10585_ACEOF
10586
10587fi
10588
10589done
10590
10591
10592
10593
10594
10595# Set options
10596enable_win32_dll=yes
10597
10598case $host in
10599*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10600  if test -n "$ac_tool_prefix"; then
10601  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10602set dummy ${ac_tool_prefix}as; ac_word=$2
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604$as_echo_n "checking for $ac_word... " >&6; }
10605if ${ac_cv_prog_AS+:} false; then :
10606  $as_echo_n "(cached) " >&6
10607else
10608  if test -n "$AS"; then
10609  ac_cv_prog_AS="$AS" # Let the user override the test.
10610else
10611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612for as_dir in $PATH
10613do
10614  IFS=$as_save_IFS
10615  test -z "$as_dir" && as_dir=.
10616    for ac_exec_ext in '' $ac_executable_extensions; do
10617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10618    ac_cv_prog_AS="${ac_tool_prefix}as"
10619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620    break 2
10621  fi
10622done
10623  done
10624IFS=$as_save_IFS
10625
10626fi
10627fi
10628AS=$ac_cv_prog_AS
10629if test -n "$AS"; then
10630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10631$as_echo "$AS" >&6; }
10632else
10633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634$as_echo "no" >&6; }
10635fi
10636
10637
10638fi
10639if test -z "$ac_cv_prog_AS"; then
10640  ac_ct_AS=$AS
10641  # Extract the first word of "as", so it can be a program name with args.
10642set dummy as; ac_word=$2
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644$as_echo_n "checking for $ac_word... " >&6; }
10645if ${ac_cv_prog_ac_ct_AS+:} false; then :
10646  $as_echo_n "(cached) " >&6
10647else
10648  if test -n "$ac_ct_AS"; then
10649  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10650else
10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $PATH
10653do
10654  IFS=$as_save_IFS
10655  test -z "$as_dir" && as_dir=.
10656    for ac_exec_ext in '' $ac_executable_extensions; do
10657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10658    ac_cv_prog_ac_ct_AS="as"
10659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660    break 2
10661  fi
10662done
10663  done
10664IFS=$as_save_IFS
10665
10666fi
10667fi
10668ac_ct_AS=$ac_cv_prog_ac_ct_AS
10669if test -n "$ac_ct_AS"; then
10670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10671$as_echo "$ac_ct_AS" >&6; }
10672else
10673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675fi
10676
10677  if test "x$ac_ct_AS" = x; then
10678    AS="false"
10679  else
10680    case $cross_compiling:$ac_tool_warned in
10681yes:)
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10684ac_tool_warned=yes ;;
10685esac
10686    AS=$ac_ct_AS
10687  fi
10688else
10689  AS="$ac_cv_prog_AS"
10690fi
10691
10692  if test -n "$ac_tool_prefix"; then
10693  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10694set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696$as_echo_n "checking for $ac_word... " >&6; }
10697if ${ac_cv_prog_DLLTOOL+:} false; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  if test -n "$DLLTOOL"; then
10701  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10702else
10703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $PATH
10705do
10706  IFS=$as_save_IFS
10707  test -z "$as_dir" && as_dir=.
10708    for ac_exec_ext in '' $ac_executable_extensions; do
10709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10710    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712    break 2
10713  fi
10714done
10715  done
10716IFS=$as_save_IFS
10717
10718fi
10719fi
10720DLLTOOL=$ac_cv_prog_DLLTOOL
10721if test -n "$DLLTOOL"; then
10722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10723$as_echo "$DLLTOOL" >&6; }
10724else
10725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726$as_echo "no" >&6; }
10727fi
10728
10729
10730fi
10731if test -z "$ac_cv_prog_DLLTOOL"; then
10732  ac_ct_DLLTOOL=$DLLTOOL
10733  # Extract the first word of "dlltool", so it can be a program name with args.
10734set dummy dlltool; ac_word=$2
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736$as_echo_n "checking for $ac_word... " >&6; }
10737if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10738  $as_echo_n "(cached) " >&6
10739else
10740  if test -n "$ac_ct_DLLTOOL"; then
10741  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10742else
10743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $PATH
10745do
10746  IFS=$as_save_IFS
10747  test -z "$as_dir" && as_dir=.
10748    for ac_exec_ext in '' $ac_executable_extensions; do
10749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752    break 2
10753  fi
10754done
10755  done
10756IFS=$as_save_IFS
10757
10758fi
10759fi
10760ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10761if test -n "$ac_ct_DLLTOOL"; then
10762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10763$as_echo "$ac_ct_DLLTOOL" >&6; }
10764else
10765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766$as_echo "no" >&6; }
10767fi
10768
10769  if test "x$ac_ct_DLLTOOL" = x; then
10770    DLLTOOL="false"
10771  else
10772    case $cross_compiling:$ac_tool_warned in
10773yes:)
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10776ac_tool_warned=yes ;;
10777esac
10778    DLLTOOL=$ac_ct_DLLTOOL
10779  fi
10780else
10781  DLLTOOL="$ac_cv_prog_DLLTOOL"
10782fi
10783
10784  if test -n "$ac_tool_prefix"; then
10785  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10786set dummy ${ac_tool_prefix}objdump; ac_word=$2
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
10789if ${ac_cv_prog_OBJDUMP+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  if test -n "$OBJDUMP"; then
10793  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798  IFS=$as_save_IFS
10799  test -z "$as_dir" && as_dir=.
10800    for ac_exec_ext in '' $ac_executable_extensions; do
10801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804    break 2
10805  fi
10806done
10807  done
10808IFS=$as_save_IFS
10809
10810fi
10811fi
10812OBJDUMP=$ac_cv_prog_OBJDUMP
10813if test -n "$OBJDUMP"; then
10814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10815$as_echo "$OBJDUMP" >&6; }
10816else
10817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
10819fi
10820
10821
10822fi
10823if test -z "$ac_cv_prog_OBJDUMP"; then
10824  ac_ct_OBJDUMP=$OBJDUMP
10825  # Extract the first word of "objdump", so it can be a program name with args.
10826set dummy objdump; ac_word=$2
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828$as_echo_n "checking for $ac_word... " >&6; }
10829if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10830  $as_echo_n "(cached) " >&6
10831else
10832  if test -n "$ac_ct_OBJDUMP"; then
10833  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10834else
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838  IFS=$as_save_IFS
10839  test -z "$as_dir" && as_dir=.
10840    for ac_exec_ext in '' $ac_executable_extensions; do
10841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844    break 2
10845  fi
10846done
10847  done
10848IFS=$as_save_IFS
10849
10850fi
10851fi
10852ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10853if test -n "$ac_ct_OBJDUMP"; then
10854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10855$as_echo "$ac_ct_OBJDUMP" >&6; }
10856else
10857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858$as_echo "no" >&6; }
10859fi
10860
10861  if test "x$ac_ct_OBJDUMP" = x; then
10862    OBJDUMP="false"
10863  else
10864    case $cross_compiling:$ac_tool_warned in
10865yes:)
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10868ac_tool_warned=yes ;;
10869esac
10870    OBJDUMP=$ac_ct_OBJDUMP
10871  fi
10872else
10873  OBJDUMP="$ac_cv_prog_OBJDUMP"
10874fi
10875
10876  ;;
10877esac
10878
10879test -z "$AS" && AS=as
10880
10881
10882
10883
10884
10885test -z "$DLLTOOL" && DLLTOOL=dlltool
10886
10887
10888
10889
10890
10891test -z "$OBJDUMP" && OBJDUMP=objdump
10892
10893
10894
10895
10896
10897
10898
10899        enable_dlopen=no
10900
10901
10902
10903            # Check whether --enable-shared was given.
10904if test "${enable_shared+set}" = set; then :
10905  enableval=$enable_shared; p=${PACKAGE-default}
10906    case $enableval in
10907    yes) enable_shared=yes ;;
10908    no) enable_shared=no ;;
10909    *)
10910      enable_shared=no
10911      # Look at the argument we got.  We use all the common list separators.
10912      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10913      for pkg in $enableval; do
10914	IFS=$lt_save_ifs
10915	if test "X$pkg" = "X$p"; then
10916	  enable_shared=yes
10917	fi
10918      done
10919      IFS=$lt_save_ifs
10920      ;;
10921    esac
10922else
10923  enable_shared=yes
10924fi
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934  # Check whether --enable-static was given.
10935if test "${enable_static+set}" = set; then :
10936  enableval=$enable_static; p=${PACKAGE-default}
10937    case $enableval in
10938    yes) enable_static=yes ;;
10939    no) enable_static=no ;;
10940    *)
10941     enable_static=no
10942      # Look at the argument we got.  We use all the common list separators.
10943      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10944      for pkg in $enableval; do
10945	IFS=$lt_save_ifs
10946	if test "X$pkg" = "X$p"; then
10947	  enable_static=yes
10948	fi
10949      done
10950      IFS=$lt_save_ifs
10951      ;;
10952    esac
10953else
10954  enable_static=yes
10955fi
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966# Check whether --with-pic was given.
10967if test "${with_pic+set}" = set; then :
10968  withval=$with_pic; lt_p=${PACKAGE-default}
10969    case $withval in
10970    yes|no) pic_mode=$withval ;;
10971    *)
10972      pic_mode=default
10973      # Look at the argument we got.  We use all the common list separators.
10974      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10975      for lt_pkg in $withval; do
10976	IFS=$lt_save_ifs
10977	if test "X$lt_pkg" = "X$lt_p"; then
10978	  pic_mode=yes
10979	fi
10980      done
10981      IFS=$lt_save_ifs
10982      ;;
10983    esac
10984else
10985  pic_mode=default
10986fi
10987
10988
10989
10990
10991
10992
10993
10994
10995  # Check whether --enable-fast-install was given.
10996if test "${enable_fast_install+set}" = set; then :
10997  enableval=$enable_fast_install; p=${PACKAGE-default}
10998    case $enableval in
10999    yes) enable_fast_install=yes ;;
11000    no) enable_fast_install=no ;;
11001    *)
11002      enable_fast_install=no
11003      # Look at the argument we got.  We use all the common list separators.
11004      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11005      for pkg in $enableval; do
11006	IFS=$lt_save_ifs
11007	if test "X$pkg" = "X$p"; then
11008	  enable_fast_install=yes
11009	fi
11010      done
11011      IFS=$lt_save_ifs
11012      ;;
11013    esac
11014else
11015  enable_fast_install=yes
11016fi
11017
11018
11019
11020
11021
11022
11023
11024
11025  shared_archive_member_spec=
11026case $host,$enable_shared in
11027power*-*-aix[5-9]*,yes)
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11029$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11030
11031# Check whether --with-aix-soname was given.
11032if test "${with_aix_soname+set}" = set; then :
11033  withval=$with_aix_soname; case $withval in
11034    aix|svr4|both)
11035      ;;
11036    *)
11037      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11038      ;;
11039    esac
11040    lt_cv_with_aix_soname=$with_aix_soname
11041else
11042  if ${lt_cv_with_aix_soname+:} false; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  lt_cv_with_aix_soname=aix
11046fi
11047
11048    with_aix_soname=$lt_cv_with_aix_soname
11049fi
11050
11051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11052$as_echo "$with_aix_soname" >&6; }
11053  if test aix != "$with_aix_soname"; then
11054    # For the AIX way of multilib, we name the shared archive member
11055    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11056    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11057    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11058    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11059    if test 64 = "${OBJECT_MODE-32}"; then
11060      shared_archive_member_spec=shr_64
11061    else
11062      shared_archive_member_spec=shr
11063    fi
11064  fi
11065  ;;
11066*)
11067  with_aix_soname=aix
11068  ;;
11069esac
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080# This can be used to rebuild libtool when needed
11081LIBTOOL_DEPS=$ltmain
11082
11083# Always use our own libtool.
11084LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115test -z "$LN_S" && LN_S="ln -s"
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130if test -n "${ZSH_VERSION+set}"; then
11131   setopt NO_GLOB_SUBST
11132fi
11133
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11135$as_echo_n "checking for objdir... " >&6; }
11136if ${lt_cv_objdir+:} false; then :
11137  $as_echo_n "(cached) " >&6
11138else
11139  rm -f .libs 2>/dev/null
11140mkdir .libs 2>/dev/null
11141if test -d .libs; then
11142  lt_cv_objdir=.libs
11143else
11144  # MS-DOS does not allow filenames that begin with a dot.
11145  lt_cv_objdir=_libs
11146fi
11147rmdir .libs 2>/dev/null
11148fi
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11150$as_echo "$lt_cv_objdir" >&6; }
11151objdir=$lt_cv_objdir
11152
11153
11154
11155
11156
11157cat >>confdefs.h <<_ACEOF
11158#define LT_OBJDIR "$lt_cv_objdir/"
11159_ACEOF
11160
11161
11162
11163
11164case $host_os in
11165aix3*)
11166  # AIX sometimes has problems with the GCC collect2 program.  For some
11167  # reason, if we set the COLLECT_NAMES environment variable, the problems
11168  # vanish in a puff of smoke.
11169  if test set != "${COLLECT_NAMES+set}"; then
11170    COLLECT_NAMES=
11171    export COLLECT_NAMES
11172  fi
11173  ;;
11174esac
11175
11176# Global variables:
11177ofile=libtool
11178can_build_shared=yes
11179
11180# All known linkers require a '.a' archive for static linking (except MSVC,
11181# which needs '.lib').
11182libext=a
11183
11184with_gnu_ld=$lt_cv_prog_gnu_ld
11185
11186old_CC=$CC
11187old_CFLAGS=$CFLAGS
11188
11189# Set sane defaults for various variables
11190test -z "$CC" && CC=cc
11191test -z "$LTCC" && LTCC=$CC
11192test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11193test -z "$LD" && LD=ld
11194test -z "$ac_objext" && ac_objext=o
11195
11196func_cc_basename $compiler
11197cc_basename=$func_cc_basename_result
11198
11199
11200# Only perform the check for file, if the check method requires it
11201test -z "$MAGIC_CMD" && MAGIC_CMD=file
11202case $deplibs_check_method in
11203file_magic*)
11204  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11206$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11207if ${lt_cv_path_MAGIC_CMD+:} false; then :
11208  $as_echo_n "(cached) " >&6
11209else
11210  case $MAGIC_CMD in
11211[\\/*] |  ?:[\\/]*)
11212  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11213  ;;
11214*)
11215  lt_save_MAGIC_CMD=$MAGIC_CMD
11216  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11217  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11218  for ac_dir in $ac_dummy; do
11219    IFS=$lt_save_ifs
11220    test -z "$ac_dir" && ac_dir=.
11221    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11222      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11223      if test -n "$file_magic_test_file"; then
11224	case $deplibs_check_method in
11225	"file_magic "*)
11226	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11227	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11228	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11229	    $EGREP "$file_magic_regex" > /dev/null; then
11230	    :
11231	  else
11232	    cat <<_LT_EOF 1>&2
11233
11234*** Warning: the command libtool uses to detect shared libraries,
11235*** $file_magic_cmd, produces output that libtool cannot recognize.
11236*** The result is that libtool may fail to recognize shared libraries
11237*** as such.  This will affect the creation of libtool libraries that
11238*** depend on shared libraries, but programs linked with such libtool
11239*** libraries will work regardless of this problem.  Nevertheless, you
11240*** may want to report the problem to your system manager and/or to
11241*** bug-libtool@gnu.org
11242
11243_LT_EOF
11244	  fi ;;
11245	esac
11246      fi
11247      break
11248    fi
11249  done
11250  IFS=$lt_save_ifs
11251  MAGIC_CMD=$lt_save_MAGIC_CMD
11252  ;;
11253esac
11254fi
11255
11256MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11257if test -n "$MAGIC_CMD"; then
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11259$as_echo "$MAGIC_CMD" >&6; }
11260else
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263fi
11264
11265
11266
11267
11268
11269if test -z "$lt_cv_path_MAGIC_CMD"; then
11270  if test -n "$ac_tool_prefix"; then
11271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11272$as_echo_n "checking for file... " >&6; }
11273if ${lt_cv_path_MAGIC_CMD+:} false; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276  case $MAGIC_CMD in
11277[\\/*] |  ?:[\\/]*)
11278  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11279  ;;
11280*)
11281  lt_save_MAGIC_CMD=$MAGIC_CMD
11282  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11283  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11284  for ac_dir in $ac_dummy; do
11285    IFS=$lt_save_ifs
11286    test -z "$ac_dir" && ac_dir=.
11287    if test -f "$ac_dir/file"; then
11288      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11289      if test -n "$file_magic_test_file"; then
11290	case $deplibs_check_method in
11291	"file_magic "*)
11292	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11293	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11294	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11295	    $EGREP "$file_magic_regex" > /dev/null; then
11296	    :
11297	  else
11298	    cat <<_LT_EOF 1>&2
11299
11300*** Warning: the command libtool uses to detect shared libraries,
11301*** $file_magic_cmd, produces output that libtool cannot recognize.
11302*** The result is that libtool may fail to recognize shared libraries
11303*** as such.  This will affect the creation of libtool libraries that
11304*** depend on shared libraries, but programs linked with such libtool
11305*** libraries will work regardless of this problem.  Nevertheless, you
11306*** may want to report the problem to your system manager and/or to
11307*** bug-libtool@gnu.org
11308
11309_LT_EOF
11310	  fi ;;
11311	esac
11312      fi
11313      break
11314    fi
11315  done
11316  IFS=$lt_save_ifs
11317  MAGIC_CMD=$lt_save_MAGIC_CMD
11318  ;;
11319esac
11320fi
11321
11322MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11323if test -n "$MAGIC_CMD"; then
11324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11325$as_echo "$MAGIC_CMD" >&6; }
11326else
11327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
11329fi
11330
11331
11332  else
11333    MAGIC_CMD=:
11334  fi
11335fi
11336
11337  fi
11338  ;;
11339esac
11340
11341# Use C for the default configuration in the libtool script
11342
11343lt_save_CC=$CC
11344ac_ext=c
11345ac_cpp='$CPP $CPPFLAGS'
11346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11348ac_compiler_gnu=$ac_cv_c_compiler_gnu
11349
11350
11351# Source file extension for C test sources.
11352ac_ext=c
11353
11354# Object file extension for compiled C test sources.
11355objext=o
11356objext=$objext
11357
11358# Code to be used in simple compile tests
11359lt_simple_compile_test_code="int some_variable = 0;"
11360
11361# Code to be used in simple link tests
11362lt_simple_link_test_code='int main(){return(0);}'
11363
11364
11365
11366
11367
11368
11369
11370# If no C compiler was specified, use CC.
11371LTCC=${LTCC-"$CC"}
11372
11373# If no C compiler flags were specified, use CFLAGS.
11374LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11375
11376# Allow CC to be a program name with arguments.
11377compiler=$CC
11378
11379# Save the default compiler, since it gets overwritten when the other
11380# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11381compiler_DEFAULT=$CC
11382
11383# save warnings/boilerplate of simple test code
11384ac_outfile=conftest.$ac_objext
11385echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11387_lt_compiler_boilerplate=`cat conftest.err`
11388$RM conftest*
11389
11390ac_outfile=conftest.$ac_objext
11391echo "$lt_simple_link_test_code" >conftest.$ac_ext
11392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11393_lt_linker_boilerplate=`cat conftest.err`
11394$RM -r conftest*
11395
11396
11397## CAVEAT EMPTOR:
11398## There is no encapsulation within the following macros, do not change
11399## the running order or otherwise move them around unless you know exactly
11400## what you are doing...
11401if test -n "$compiler"; then
11402
11403lt_prog_compiler_no_builtin_flag=
11404
11405if test yes = "$GCC"; then
11406  case $cc_basename in
11407  nvcc*)
11408    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11409  *)
11410    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11411  esac
11412
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11414$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11415if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11416  $as_echo_n "(cached) " >&6
11417else
11418  lt_cv_prog_compiler_rtti_exceptions=no
11419   ac_outfile=conftest.$ac_objext
11420   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11421   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11422   # Insert the option either (1) after the last *FLAGS variable, or
11423   # (2) before a word containing "conftest.", or (3) at the end.
11424   # Note that $ac_compile itself does not contain backslashes and begins
11425   # with a dollar sign (not a hyphen), so the echo should work correctly.
11426   # The option is referenced via a variable to avoid confusing sed.
11427   lt_compile=`echo "$ac_compile" | $SED \
11428   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11430   -e 's:$: $lt_compiler_flag:'`
11431   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11432   (eval "$lt_compile" 2>conftest.err)
11433   ac_status=$?
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   if (exit $ac_status) && test -s "$ac_outfile"; then
11437     # The compiler can only warn and ignore the option if not recognized
11438     # So say no if there are warnings other than the usual output.
11439     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11440     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11441     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11442       lt_cv_prog_compiler_rtti_exceptions=yes
11443     fi
11444   fi
11445   $RM conftest*
11446
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11449$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11450
11451if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11452    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11453else
11454    :
11455fi
11456
11457fi
11458
11459
11460
11461
11462
11463
11464  lt_prog_compiler_wl=
11465lt_prog_compiler_pic=
11466lt_prog_compiler_static=
11467
11468
11469  if test yes = "$GCC"; then
11470    lt_prog_compiler_wl='-Wl,'
11471    lt_prog_compiler_static='-static'
11472
11473    case $host_os in
11474      aix*)
11475      # All AIX code is PIC.
11476      if test ia64 = "$host_cpu"; then
11477	# AIX 5 now supports IA64 processor
11478	lt_prog_compiler_static='-Bstatic'
11479      fi
11480      lt_prog_compiler_pic='-fPIC'
11481      ;;
11482
11483    amigaos*)
11484      case $host_cpu in
11485      powerpc)
11486            # see comment about AmigaOS4 .so support
11487            lt_prog_compiler_pic='-fPIC'
11488        ;;
11489      m68k)
11490            # FIXME: we need at least 68020 code to build shared libraries, but
11491            # adding the '-m68020' flag to GCC prevents building anything better,
11492            # like '-m68040'.
11493            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11494        ;;
11495      esac
11496      ;;
11497
11498    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11499      # PIC is the default for these OSes.
11500      ;;
11501
11502    mingw* | cygwin* | pw32* | os2* | cegcc*)
11503      # This hack is so that the source file can tell whether it is being
11504      # built for inclusion in a dll (and should export symbols for example).
11505      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11506      # (--disable-auto-import) libraries
11507      lt_prog_compiler_pic='-DDLL_EXPORT'
11508      case $host_os in
11509      os2*)
11510	lt_prog_compiler_static='$wl-static'
11511	;;
11512      esac
11513      ;;
11514
11515    darwin* | rhapsody*)
11516      # PIC is the default on this platform
11517      # Common symbols not allowed in MH_DYLIB files
11518      lt_prog_compiler_pic='-fno-common'
11519      ;;
11520
11521    haiku*)
11522      # PIC is the default for Haiku.
11523      # The "-static" flag exists, but is broken.
11524      lt_prog_compiler_static=
11525      ;;
11526
11527    hpux*)
11528      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11529      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11530      # sets the default TLS model and affects inlining.
11531      case $host_cpu in
11532      hppa*64*)
11533	# +Z the default
11534	;;
11535      *)
11536	lt_prog_compiler_pic='-fPIC'
11537	;;
11538      esac
11539      ;;
11540
11541    interix[3-9]*)
11542      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11543      # Instead, we relocate shared libraries at runtime.
11544      ;;
11545
11546    msdosdjgpp*)
11547      # Just because we use GCC doesn't mean we suddenly get shared libraries
11548      # on systems that don't support them.
11549      lt_prog_compiler_can_build_shared=no
11550      enable_shared=no
11551      ;;
11552
11553    *nto* | *qnx*)
11554      # QNX uses GNU C++, but need to define -shared option too, otherwise
11555      # it will coredump.
11556      lt_prog_compiler_pic='-fPIC -shared'
11557      ;;
11558
11559    sysv4*MP*)
11560      if test -d /usr/nec; then
11561	lt_prog_compiler_pic=-Kconform_pic
11562      fi
11563      ;;
11564
11565    *)
11566      lt_prog_compiler_pic='-fPIC'
11567      ;;
11568    esac
11569
11570    case $cc_basename in
11571    nvcc*) # Cuda Compiler Driver 2.2
11572      lt_prog_compiler_wl='-Xlinker '
11573      if test -n "$lt_prog_compiler_pic"; then
11574        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11575      fi
11576      ;;
11577    esac
11578  else
11579    # PORTME Check for flag to pass linker flags through the system compiler.
11580    case $host_os in
11581    aix*)
11582      lt_prog_compiler_wl='-Wl,'
11583      if test ia64 = "$host_cpu"; then
11584	# AIX 5 now supports IA64 processor
11585	lt_prog_compiler_static='-Bstatic'
11586      else
11587	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11588      fi
11589      ;;
11590
11591    darwin* | rhapsody*)
11592      # PIC is the default on this platform
11593      # Common symbols not allowed in MH_DYLIB files
11594      lt_prog_compiler_pic='-fno-common'
11595      case $cc_basename in
11596      nagfor*)
11597        # NAG Fortran compiler
11598        lt_prog_compiler_wl='-Wl,-Wl,,'
11599        lt_prog_compiler_pic='-PIC'
11600        lt_prog_compiler_static='-Bstatic'
11601        ;;
11602      esac
11603      ;;
11604
11605    mingw* | cygwin* | pw32* | os2* | cegcc*)
11606      # This hack is so that the source file can tell whether it is being
11607      # built for inclusion in a dll (and should export symbols for example).
11608      lt_prog_compiler_pic='-DDLL_EXPORT'
11609      case $host_os in
11610      os2*)
11611	lt_prog_compiler_static='$wl-static'
11612	;;
11613      esac
11614      ;;
11615
11616    hpux9* | hpux10* | hpux11*)
11617      lt_prog_compiler_wl='-Wl,'
11618      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11619      # not for PA HP-UX.
11620      case $host_cpu in
11621      hppa*64*|ia64*)
11622	# +Z the default
11623	;;
11624      *)
11625	lt_prog_compiler_pic='+Z'
11626	;;
11627      esac
11628      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11629      lt_prog_compiler_static='$wl-a ${wl}archive'
11630      ;;
11631
11632    irix5* | irix6* | nonstopux*)
11633      lt_prog_compiler_wl='-Wl,'
11634      # PIC (with -KPIC) is the default.
11635      lt_prog_compiler_static='-non_shared'
11636      ;;
11637
11638    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11639      case $cc_basename in
11640      # old Intel for x86_64, which still supported -KPIC.
11641      ecc*)
11642	lt_prog_compiler_wl='-Wl,'
11643	lt_prog_compiler_pic='-KPIC'
11644	lt_prog_compiler_static='-static'
11645        ;;
11646      # icc used to be incompatible with GCC.
11647      # ICC 10 doesn't accept -KPIC any more.
11648      icc* | ifort*)
11649	lt_prog_compiler_wl='-Wl,'
11650	lt_prog_compiler_pic='-fPIC'
11651	lt_prog_compiler_static='-static'
11652        ;;
11653      # Lahey Fortran 8.1.
11654      lf95*)
11655	lt_prog_compiler_wl='-Wl,'
11656	lt_prog_compiler_pic='--shared'
11657	lt_prog_compiler_static='--static'
11658	;;
11659      nagfor*)
11660	# NAG Fortran compiler
11661	lt_prog_compiler_wl='-Wl,-Wl,,'
11662	lt_prog_compiler_pic='-PIC'
11663	lt_prog_compiler_static='-Bstatic'
11664	;;
11665      tcc*)
11666	# Fabrice Bellard et al's Tiny C Compiler
11667	lt_prog_compiler_wl='-Wl,'
11668	lt_prog_compiler_pic='-fPIC'
11669	lt_prog_compiler_static='-static'
11670	;;
11671      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11672        # Portland Group compilers (*not* the Pentium gcc compiler,
11673	# which looks to be a dead project)
11674	lt_prog_compiler_wl='-Wl,'
11675	lt_prog_compiler_pic='-fpic'
11676	lt_prog_compiler_static='-Bstatic'
11677        ;;
11678      ccc*)
11679        lt_prog_compiler_wl='-Wl,'
11680        # All Alpha code is PIC.
11681        lt_prog_compiler_static='-non_shared'
11682        ;;
11683      xl* | bgxl* | bgf* | mpixl*)
11684	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11685	lt_prog_compiler_wl='-Wl,'
11686	lt_prog_compiler_pic='-qpic'
11687	lt_prog_compiler_static='-qstaticlink'
11688	;;
11689      *)
11690	case `$CC -V 2>&1 | sed 5q` in
11691	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11692	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11693	  lt_prog_compiler_pic='-KPIC'
11694	  lt_prog_compiler_static='-Bstatic'
11695	  lt_prog_compiler_wl=''
11696	  ;;
11697	*Sun\ F* | *Sun*Fortran*)
11698	  lt_prog_compiler_pic='-KPIC'
11699	  lt_prog_compiler_static='-Bstatic'
11700	  lt_prog_compiler_wl='-Qoption ld '
11701	  ;;
11702	*Sun\ C*)
11703	  # Sun C 5.9
11704	  lt_prog_compiler_pic='-KPIC'
11705	  lt_prog_compiler_static='-Bstatic'
11706	  lt_prog_compiler_wl='-Wl,'
11707	  ;;
11708        *Intel*\ [CF]*Compiler*)
11709	  lt_prog_compiler_wl='-Wl,'
11710	  lt_prog_compiler_pic='-fPIC'
11711	  lt_prog_compiler_static='-static'
11712	  ;;
11713	*Portland\ Group*)
11714	  lt_prog_compiler_wl='-Wl,'
11715	  lt_prog_compiler_pic='-fpic'
11716	  lt_prog_compiler_static='-Bstatic'
11717	  ;;
11718	esac
11719	;;
11720      esac
11721      ;;
11722
11723    newsos6)
11724      lt_prog_compiler_pic='-KPIC'
11725      lt_prog_compiler_static='-Bstatic'
11726      ;;
11727
11728    *nto* | *qnx*)
11729      # QNX uses GNU C++, but need to define -shared option too, otherwise
11730      # it will coredump.
11731      lt_prog_compiler_pic='-fPIC -shared'
11732      ;;
11733
11734    osf3* | osf4* | osf5*)
11735      lt_prog_compiler_wl='-Wl,'
11736      # All OSF/1 code is PIC.
11737      lt_prog_compiler_static='-non_shared'
11738      ;;
11739
11740    rdos*)
11741      lt_prog_compiler_static='-non_shared'
11742      ;;
11743
11744    solaris*)
11745      lt_prog_compiler_pic='-KPIC'
11746      lt_prog_compiler_static='-Bstatic'
11747      case $cc_basename in
11748      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11749	lt_prog_compiler_wl='-Qoption ld ';;
11750      *)
11751	lt_prog_compiler_wl='-Wl,';;
11752      esac
11753      ;;
11754
11755    sunos4*)
11756      lt_prog_compiler_wl='-Qoption ld '
11757      lt_prog_compiler_pic='-PIC'
11758      lt_prog_compiler_static='-Bstatic'
11759      ;;
11760
11761    sysv4 | sysv4.2uw2* | sysv4.3*)
11762      lt_prog_compiler_wl='-Wl,'
11763      lt_prog_compiler_pic='-KPIC'
11764      lt_prog_compiler_static='-Bstatic'
11765      ;;
11766
11767    sysv4*MP*)
11768      if test -d /usr/nec; then
11769	lt_prog_compiler_pic='-Kconform_pic'
11770	lt_prog_compiler_static='-Bstatic'
11771      fi
11772      ;;
11773
11774    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11775      lt_prog_compiler_wl='-Wl,'
11776      lt_prog_compiler_pic='-KPIC'
11777      lt_prog_compiler_static='-Bstatic'
11778      ;;
11779
11780    unicos*)
11781      lt_prog_compiler_wl='-Wl,'
11782      lt_prog_compiler_can_build_shared=no
11783      ;;
11784
11785    uts4*)
11786      lt_prog_compiler_pic='-pic'
11787      lt_prog_compiler_static='-Bstatic'
11788      ;;
11789
11790    *)
11791      lt_prog_compiler_can_build_shared=no
11792      ;;
11793    esac
11794  fi
11795
11796case $host_os in
11797  # For platforms that do not support PIC, -DPIC is meaningless:
11798  *djgpp*)
11799    lt_prog_compiler_pic=
11800    ;;
11801  *)
11802    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11803    ;;
11804esac
11805
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11807$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11808if ${lt_cv_prog_compiler_pic+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11812fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11814$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11815lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11816
11817#
11818# Check to make sure the PIC flag actually works.
11819#
11820if test -n "$lt_prog_compiler_pic"; then
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11822$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11823if ${lt_cv_prog_compiler_pic_works+:} false; then :
11824  $as_echo_n "(cached) " >&6
11825else
11826  lt_cv_prog_compiler_pic_works=no
11827   ac_outfile=conftest.$ac_objext
11828   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11829   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11830   # Insert the option either (1) after the last *FLAGS variable, or
11831   # (2) before a word containing "conftest.", or (3) at the end.
11832   # Note that $ac_compile itself does not contain backslashes and begins
11833   # with a dollar sign (not a hyphen), so the echo should work correctly.
11834   # The option is referenced via a variable to avoid confusing sed.
11835   lt_compile=`echo "$ac_compile" | $SED \
11836   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11837   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11838   -e 's:$: $lt_compiler_flag:'`
11839   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11840   (eval "$lt_compile" 2>conftest.err)
11841   ac_status=$?
11842   cat conftest.err >&5
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   if (exit $ac_status) && test -s "$ac_outfile"; then
11845     # The compiler can only warn and ignore the option if not recognized
11846     # So say no if there are warnings other than the usual output.
11847     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11848     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11850       lt_cv_prog_compiler_pic_works=yes
11851     fi
11852   fi
11853   $RM conftest*
11854
11855fi
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11857$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11858
11859if test yes = "$lt_cv_prog_compiler_pic_works"; then
11860    case $lt_prog_compiler_pic in
11861     "" | " "*) ;;
11862     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11863     esac
11864else
11865    lt_prog_compiler_pic=
11866     lt_prog_compiler_can_build_shared=no
11867fi
11868
11869fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881#
11882# Check to make sure the static flag actually works.
11883#
11884wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11886$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11887if ${lt_cv_prog_compiler_static_works+:} false; then :
11888  $as_echo_n "(cached) " >&6
11889else
11890  lt_cv_prog_compiler_static_works=no
11891   save_LDFLAGS=$LDFLAGS
11892   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11893   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11894   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11895     # The linker can only warn and ignore the option if not recognized
11896     # So say no if there are warnings
11897     if test -s conftest.err; then
11898       # Append any errors to the config.log.
11899       cat conftest.err 1>&5
11900       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11901       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11902       if diff conftest.exp conftest.er2 >/dev/null; then
11903         lt_cv_prog_compiler_static_works=yes
11904       fi
11905     else
11906       lt_cv_prog_compiler_static_works=yes
11907     fi
11908   fi
11909   $RM -r conftest*
11910   LDFLAGS=$save_LDFLAGS
11911
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11914$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11915
11916if test yes = "$lt_cv_prog_compiler_static_works"; then
11917    :
11918else
11919    lt_prog_compiler_static=
11920fi
11921
11922
11923
11924
11925
11926
11927
11928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11929$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11930if ${lt_cv_prog_compiler_c_o+:} false; then :
11931  $as_echo_n "(cached) " >&6
11932else
11933  lt_cv_prog_compiler_c_o=no
11934   $RM -r conftest 2>/dev/null
11935   mkdir conftest
11936   cd conftest
11937   mkdir out
11938   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11939
11940   lt_compiler_flag="-o out/conftest2.$ac_objext"
11941   # Insert the option either (1) after the last *FLAGS variable, or
11942   # (2) before a word containing "conftest.", or (3) at the end.
11943   # Note that $ac_compile itself does not contain backslashes and begins
11944   # with a dollar sign (not a hyphen), so the echo should work correctly.
11945   lt_compile=`echo "$ac_compile" | $SED \
11946   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11947   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11948   -e 's:$: $lt_compiler_flag:'`
11949   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11950   (eval "$lt_compile" 2>out/conftest.err)
11951   ac_status=$?
11952   cat out/conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11955   then
11956     # The compiler can only warn and ignore the option if not recognized
11957     # So say no if there are warnings
11958     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11959     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11960     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11961       lt_cv_prog_compiler_c_o=yes
11962     fi
11963   fi
11964   chmod u+w . 2>&5
11965   $RM conftest*
11966   # SGI C++ compiler will create directory out/ii_files/ for
11967   # template instantiation
11968   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11969   $RM out/* && rmdir out
11970   cd ..
11971   $RM -r conftest
11972   $RM conftest*
11973
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11976$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11977
11978
11979
11980
11981
11982
11983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11984$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11985if ${lt_cv_prog_compiler_c_o+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  lt_cv_prog_compiler_c_o=no
11989   $RM -r conftest 2>/dev/null
11990   mkdir conftest
11991   cd conftest
11992   mkdir out
11993   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11994
11995   lt_compiler_flag="-o out/conftest2.$ac_objext"
11996   # Insert the option either (1) after the last *FLAGS variable, or
11997   # (2) before a word containing "conftest.", or (3) at the end.
11998   # Note that $ac_compile itself does not contain backslashes and begins
11999   # with a dollar sign (not a hyphen), so the echo should work correctly.
12000   lt_compile=`echo "$ac_compile" | $SED \
12001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003   -e 's:$: $lt_compiler_flag:'`
12004   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12005   (eval "$lt_compile" 2>out/conftest.err)
12006   ac_status=$?
12007   cat out/conftest.err >&5
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12010   then
12011     # The compiler can only warn and ignore the option if not recognized
12012     # So say no if there are warnings
12013     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12014     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12015     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12016       lt_cv_prog_compiler_c_o=yes
12017     fi
12018   fi
12019   chmod u+w . 2>&5
12020   $RM conftest*
12021   # SGI C++ compiler will create directory out/ii_files/ for
12022   # template instantiation
12023   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12024   $RM out/* && rmdir out
12025   cd ..
12026   $RM -r conftest
12027   $RM conftest*
12028
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12031$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12032
12033
12034
12035
12036hard_links=nottested
12037if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12038  # do not overwrite the value of need_locks provided by the user
12039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12040$as_echo_n "checking if we can lock with hard links... " >&6; }
12041  hard_links=yes
12042  $RM conftest*
12043  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12044  touch conftest.a
12045  ln conftest.a conftest.b 2>&5 || hard_links=no
12046  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12048$as_echo "$hard_links" >&6; }
12049  if test no = "$hard_links"; then
12050    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12051$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12052    need_locks=warn
12053  fi
12054else
12055  need_locks=no
12056fi
12057
12058
12059
12060
12061
12062
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12064$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12065
12066  runpath_var=
12067  allow_undefined_flag=
12068  always_export_symbols=no
12069  archive_cmds=
12070  archive_expsym_cmds=
12071  compiler_needs_object=no
12072  enable_shared_with_static_runtimes=no
12073  export_dynamic_flag_spec=
12074  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12075  hardcode_automatic=no
12076  hardcode_direct=no
12077  hardcode_direct_absolute=no
12078  hardcode_libdir_flag_spec=
12079  hardcode_libdir_separator=
12080  hardcode_minus_L=no
12081  hardcode_shlibpath_var=unsupported
12082  inherit_rpath=no
12083  link_all_deplibs=unknown
12084  module_cmds=
12085  module_expsym_cmds=
12086  old_archive_from_new_cmds=
12087  old_archive_from_expsyms_cmds=
12088  thread_safe_flag_spec=
12089  whole_archive_flag_spec=
12090  # include_expsyms should be a list of space-separated symbols to be *always*
12091  # included in the symbol list
12092  include_expsyms=
12093  # exclude_expsyms can be an extended regexp of symbols to exclude
12094  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12095  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12096  # as well as any symbol that contains 'd'.
12097  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12098  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12099  # platforms (ab)use it in PIC code, but their linkers get confused if
12100  # the symbol is explicitly referenced.  Since portable code cannot
12101  # rely on this symbol name, it's probably fine to never include it in
12102  # preloaded symbol tables.
12103  # Exclude shared library initialization/finalization symbols.
12104  extract_expsyms_cmds=
12105
12106  case $host_os in
12107  cygwin* | mingw* | pw32* | cegcc*)
12108    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12109    # When not using gcc, we currently assume that we are using
12110    # Microsoft Visual C++.
12111    if test yes != "$GCC"; then
12112      with_gnu_ld=no
12113    fi
12114    ;;
12115  interix*)
12116    # we just hope/assume this is gcc and not c89 (= MSVC++)
12117    with_gnu_ld=yes
12118    ;;
12119  openbsd* | bitrig*)
12120    with_gnu_ld=no
12121    ;;
12122  esac
12123
12124  ld_shlibs=yes
12125
12126  # On some targets, GNU ld is compatible enough with the native linker
12127  # that we're better off using the native interface for both.
12128  lt_use_gnu_ld_interface=no
12129  if test yes = "$with_gnu_ld"; then
12130    case $host_os in
12131      aix*)
12132	# The AIX port of GNU ld has always aspired to compatibility
12133	# with the native linker.  However, as the warning in the GNU ld
12134	# block says, versions before 2.19.5* couldn't really create working
12135	# shared libraries, regardless of the interface used.
12136	case `$LD -v 2>&1` in
12137	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12138	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12139	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12140	  *)
12141	    lt_use_gnu_ld_interface=yes
12142	    ;;
12143	esac
12144	;;
12145      *)
12146	lt_use_gnu_ld_interface=yes
12147	;;
12148    esac
12149  fi
12150
12151  if test yes = "$lt_use_gnu_ld_interface"; then
12152    # If archive_cmds runs LD, not CC, wlarc should be empty
12153    wlarc='$wl'
12154
12155    # Set some defaults for GNU ld with shared library support. These
12156    # are reset later if shared libraries are not supported. Putting them
12157    # here allows them to be overridden if necessary.
12158    runpath_var=LD_RUN_PATH
12159    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12160    export_dynamic_flag_spec='$wl--export-dynamic'
12161    # ancient GNU ld didn't support --whole-archive et. al.
12162    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12163      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12164    else
12165      whole_archive_flag_spec=
12166    fi
12167    supports_anon_versioning=no
12168    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12169      *GNU\ gold*) supports_anon_versioning=yes ;;
12170      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12171      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12172      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12173      *\ 2.11.*) ;; # other 2.11 versions
12174      *) supports_anon_versioning=yes ;;
12175    esac
12176
12177    # See if GNU ld supports shared libraries.
12178    case $host_os in
12179    aix[3-9]*)
12180      # On AIX/PPC, the GNU linker is very broken
12181      if test ia64 != "$host_cpu"; then
12182	ld_shlibs=no
12183	cat <<_LT_EOF 1>&2
12184
12185*** Warning: the GNU linker, at least up to release 2.19, is reported
12186*** to be unable to reliably create shared libraries on AIX.
12187*** Therefore, libtool is disabling shared libraries support.  If you
12188*** really care for shared libraries, you may want to install binutils
12189*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12190*** You will then need to restart the configuration process.
12191
12192_LT_EOF
12193      fi
12194      ;;
12195
12196    amigaos*)
12197      case $host_cpu in
12198      powerpc)
12199            # see comment about AmigaOS4 .so support
12200            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12201            archive_expsym_cmds=''
12202        ;;
12203      m68k)
12204            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)'
12205            hardcode_libdir_flag_spec='-L$libdir'
12206            hardcode_minus_L=yes
12207        ;;
12208      esac
12209      ;;
12210
12211    beos*)
12212      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12213	allow_undefined_flag=unsupported
12214	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12215	# support --undefined.  This deserves some investigation.  FIXME
12216	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12217      else
12218	ld_shlibs=no
12219      fi
12220      ;;
12221
12222    cygwin* | mingw* | pw32* | cegcc*)
12223      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12224      # as there is no search path for DLLs.
12225      hardcode_libdir_flag_spec='-L$libdir'
12226      export_dynamic_flag_spec='$wl--export-all-symbols'
12227      allow_undefined_flag=unsupported
12228      always_export_symbols=no
12229      enable_shared_with_static_runtimes=yes
12230      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'
12231      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12232
12233      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12234        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12235	# If the export-symbols file already is a .def file, use it as
12236	# is; otherwise, prepend EXPORTS...
12237	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12238          cp $export_symbols $output_objdir/$soname.def;
12239        else
12240          echo EXPORTS > $output_objdir/$soname.def;
12241          cat $export_symbols >> $output_objdir/$soname.def;
12242        fi~
12243        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12244      else
12245	ld_shlibs=no
12246      fi
12247      ;;
12248
12249    haiku*)
12250      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12251      link_all_deplibs=yes
12252      ;;
12253
12254    os2*)
12255      hardcode_libdir_flag_spec='-L$libdir'
12256      hardcode_minus_L=yes
12257      allow_undefined_flag=unsupported
12258      shrext_cmds=.dll
12259      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12260	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12261	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12262	$ECHO EXPORTS >> $output_objdir/$libname.def~
12263	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12264	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12265	emximp -o $lib $output_objdir/$libname.def'
12266      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12267	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12268	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12269	$ECHO EXPORTS >> $output_objdir/$libname.def~
12270	prefix_cmds="$SED"~
12271	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12272	  prefix_cmds="$prefix_cmds -e 1d";
12273	fi~
12274	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12275	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12276	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12277	emximp -o $lib $output_objdir/$libname.def'
12278      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12279      enable_shared_with_static_runtimes=yes
12280      ;;
12281
12282    interix[3-9]*)
12283      hardcode_direct=no
12284      hardcode_shlibpath_var=no
12285      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12286      export_dynamic_flag_spec='$wl-E'
12287      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12288      # Instead, shared libraries are loaded at an image base (0x10000000 by
12289      # default) and relocated if they conflict, which is a slow very memory
12290      # consuming and fragmenting process.  To avoid this, we pick a random,
12291      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12292      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12293      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12294      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'
12295      ;;
12296
12297    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12298      tmp_diet=no
12299      if test linux-dietlibc = "$host_os"; then
12300	case $cc_basename in
12301	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12302	esac
12303      fi
12304      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12305	 && test no = "$tmp_diet"
12306      then
12307	tmp_addflag=' $pic_flag'
12308	tmp_sharedflag='-shared'
12309	case $cc_basename,$host_cpu in
12310        pgcc*)				# Portland Group C compiler
12311	  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'
12312	  tmp_addflag=' $pic_flag'
12313	  ;;
12314	pgf77* | pgf90* | pgf95* | pgfortran*)
12315					# Portland Group f77 and f90 compilers
12316	  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'
12317	  tmp_addflag=' $pic_flag -Mnomain' ;;
12318	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12319	  tmp_addflag=' -i_dynamic' ;;
12320	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12321	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12322	ifc* | ifort*)			# Intel Fortran compiler
12323	  tmp_addflag=' -nofor_main' ;;
12324	lf95*)				# Lahey Fortran 8.1
12325	  whole_archive_flag_spec=
12326	  tmp_sharedflag='--shared' ;;
12327        nagfor*)                        # NAGFOR 5.3
12328          tmp_sharedflag='-Wl,-shared' ;;
12329	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12330	  tmp_sharedflag='-qmkshrobj'
12331	  tmp_addflag= ;;
12332	nvcc*)	# Cuda Compiler Driver 2.2
12333	  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'
12334	  compiler_needs_object=yes
12335	  ;;
12336	esac
12337	case `$CC -V 2>&1 | sed 5q` in
12338	*Sun\ C*)			# Sun C 5.9
12339	  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'
12340	  compiler_needs_object=yes
12341	  tmp_sharedflag='-G' ;;
12342	*Sun\ F*)			# Sun Fortran 8.3
12343	  tmp_sharedflag='-G' ;;
12344	esac
12345	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12346
12347        if test yes = "$supports_anon_versioning"; then
12348          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12349            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350            echo "local: *; };" >> $output_objdir/$libname.ver~
12351            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12352        fi
12353
12354	case $cc_basename in
12355	tcc*)
12356	  export_dynamic_flag_spec='-rdynamic'
12357	  ;;
12358	xlf* | bgf* | bgxlf* | mpixlf*)
12359	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12360	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12361	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12362	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12363	  if test yes = "$supports_anon_versioning"; then
12364	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12365              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12366              echo "local: *; };" >> $output_objdir/$libname.ver~
12367              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12368	  fi
12369	  ;;
12370	esac
12371      else
12372        ld_shlibs=no
12373      fi
12374      ;;
12375
12376    netbsd*)
12377      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12378	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12379	wlarc=
12380      else
12381	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12382	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12383      fi
12384      ;;
12385
12386    solaris*)
12387      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12388	ld_shlibs=no
12389	cat <<_LT_EOF 1>&2
12390
12391*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12392*** create shared libraries on Solaris systems.  Therefore, libtool
12393*** is disabling shared libraries support.  We urge you to upgrade GNU
12394*** binutils to release 2.9.1 or newer.  Another option is to modify
12395*** your PATH or compiler configuration so that the native linker is
12396*** used, and then restart.
12397
12398_LT_EOF
12399      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12400	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12401	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12402      else
12403	ld_shlibs=no
12404      fi
12405      ;;
12406
12407    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12408      case `$LD -v 2>&1` in
12409        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12410	ld_shlibs=no
12411	cat <<_LT_EOF 1>&2
12412
12413*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12414*** reliably create shared libraries on SCO systems.  Therefore, libtool
12415*** is disabling shared libraries support.  We urge you to upgrade GNU
12416*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12417*** your PATH or compiler configuration so that the native linker is
12418*** used, and then restart.
12419
12420_LT_EOF
12421	;;
12422	*)
12423	  # For security reasons, it is highly recommended that you always
12424	  # use absolute paths for naming shared libraries, and exclude the
12425	  # DT_RUNPATH tag from executables and libraries.  But doing so
12426	  # requires that you compile everything twice, which is a pain.
12427	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12428	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12429	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12430	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12431	  else
12432	    ld_shlibs=no
12433	  fi
12434	;;
12435      esac
12436      ;;
12437
12438    sunos4*)
12439      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440      wlarc=
12441      hardcode_direct=yes
12442      hardcode_shlibpath_var=no
12443      ;;
12444
12445    *)
12446      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12448	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12449      else
12450	ld_shlibs=no
12451      fi
12452      ;;
12453    esac
12454
12455    if test no = "$ld_shlibs"; then
12456      runpath_var=
12457      hardcode_libdir_flag_spec=
12458      export_dynamic_flag_spec=
12459      whole_archive_flag_spec=
12460    fi
12461  else
12462    # PORTME fill in a description of your system's linker (not GNU ld)
12463    case $host_os in
12464    aix3*)
12465      allow_undefined_flag=unsupported
12466      always_export_symbols=yes
12467      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'
12468      # Note: this linker hardcodes the directories in LIBPATH if there
12469      # are no directories specified by -L.
12470      hardcode_minus_L=yes
12471      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12472	# Neither direct hardcoding nor static linking is supported with a
12473	# broken collect2.
12474	hardcode_direct=unsupported
12475      fi
12476      ;;
12477
12478    aix[4-9]*)
12479      if test ia64 = "$host_cpu"; then
12480	# On IA64, the linker does run time linking by default, so we don't
12481	# have to do anything special.
12482	aix_use_runtimelinking=no
12483	exp_sym_flag='-Bexport'
12484	no_entry_flag=
12485      else
12486	# If we're using GNU nm, then we don't want the "-C" option.
12487	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12488	# Without the "-l" option, or with the "-B" option, AIX nm treats
12489	# weak defined symbols like other global defined symbols, whereas
12490	# GNU nm marks them as "W".
12491	# While the 'weak' keyword is ignored in the Export File, we need
12492	# it in the Import File for the 'aix-soname' feature, so we have
12493	# to replace the "-B" option with "-P" for AIX nm.
12494	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12495	  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'
12496	else
12497	  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'
12498	fi
12499	aix_use_runtimelinking=no
12500
12501	# Test if we are trying to use run time linking or normal
12502	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12503	# have runtime linking enabled, and use it for executables.
12504	# For shared libraries, we enable/disable runtime linking
12505	# depending on the kind of the shared library created -
12506	# when "with_aix_soname,aix_use_runtimelinking" is:
12507	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12508	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12509	#            lib.a           static archive
12510	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12511	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12512	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12513	#            lib.a(lib.so.V) shared, rtl:no
12514	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12515	#            lib.a           static archive
12516	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12517	  for ld_flag in $LDFLAGS; do
12518	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12519	    aix_use_runtimelinking=yes
12520	    break
12521	  fi
12522	  done
12523	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12524	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12525	    # so we don't have lib.a shared libs to link our executables.
12526	    # We have to force runtime linking in this case.
12527	    aix_use_runtimelinking=yes
12528	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12529	  fi
12530	  ;;
12531	esac
12532
12533	exp_sym_flag='-bexport'
12534	no_entry_flag='-bnoentry'
12535      fi
12536
12537      # When large executables or shared objects are built, AIX ld can
12538      # have problems creating the table of contents.  If linking a library
12539      # or program results in "error TOC overflow" add -mminimal-toc to
12540      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12541      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12542
12543      archive_cmds=''
12544      hardcode_direct=yes
12545      hardcode_direct_absolute=yes
12546      hardcode_libdir_separator=':'
12547      link_all_deplibs=yes
12548      file_list_spec='$wl-f,'
12549      case $with_aix_soname,$aix_use_runtimelinking in
12550      aix,*) ;; # traditional, no import file
12551      svr4,* | *,yes) # use import file
12552	# The Import File defines what to hardcode.
12553	hardcode_direct=no
12554	hardcode_direct_absolute=no
12555	;;
12556      esac
12557
12558      if test yes = "$GCC"; then
12559	case $host_os in aix4.[012]|aix4.[012].*)
12560	# We only want to do this on AIX 4.2 and lower, the check
12561	# below for broken collect2 doesn't work under 4.3+
12562	  collect2name=`$CC -print-prog-name=collect2`
12563	  if test -f "$collect2name" &&
12564	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12565	  then
12566	  # We have reworked collect2
12567	  :
12568	  else
12569	  # We have old collect2
12570	  hardcode_direct=unsupported
12571	  # It fails to find uninstalled libraries when the uninstalled
12572	  # path is not listed in the libpath.  Setting hardcode_minus_L
12573	  # to unsupported forces relinking
12574	  hardcode_minus_L=yes
12575	  hardcode_libdir_flag_spec='-L$libdir'
12576	  hardcode_libdir_separator=
12577	  fi
12578	  ;;
12579	esac
12580	shared_flag='-shared'
12581	if test yes = "$aix_use_runtimelinking"; then
12582	  shared_flag="$shared_flag "'$wl-G'
12583	fi
12584	# Need to ensure runtime linking is disabled for the traditional
12585	# shared library, or the linker may eventually find shared libraries
12586	# /with/ Import File - we do not want to mix them.
12587	shared_flag_aix='-shared'
12588	shared_flag_svr4='-shared $wl-G'
12589      else
12590	# not using gcc
12591	if test ia64 = "$host_cpu"; then
12592	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12593	# chokes on -Wl,-G. The following line is correct:
12594	  shared_flag='-G'
12595	else
12596	  if test yes = "$aix_use_runtimelinking"; then
12597	    shared_flag='$wl-G'
12598	  else
12599	    shared_flag='$wl-bM:SRE'
12600	  fi
12601	  shared_flag_aix='$wl-bM:SRE'
12602	  shared_flag_svr4='$wl-G'
12603	fi
12604      fi
12605
12606      export_dynamic_flag_spec='$wl-bexpall'
12607      # It seems that -bexpall does not export symbols beginning with
12608      # underscore (_), so it is better to generate a list of symbols to export.
12609      always_export_symbols=yes
12610      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12611	# Warning - without using the other runtime loading flags (-brtl),
12612	# -berok will link without error, but may produce a broken library.
12613	allow_undefined_flag='-berok'
12614        # Determine the default libpath from the value encoded in an
12615        # empty executable.
12616        if test set = "${lt_cv_aix_libpath+set}"; then
12617  aix_libpath=$lt_cv_aix_libpath
12618else
12619  if ${lt_cv_aix_libpath_+:} false; then :
12620  $as_echo_n "(cached) " >&6
12621else
12622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623/* end confdefs.h.  */
12624
12625int
12626main ()
12627{
12628
12629  ;
12630  return 0;
12631}
12632_ACEOF
12633if ac_fn_c_try_link "$LINENO"; then :
12634
12635  lt_aix_libpath_sed='
12636      /Import File Strings/,/^$/ {
12637	  /^0/ {
12638	      s/^0  *\([^ ]*\) *$/\1/
12639	      p
12640	  }
12641      }'
12642  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643  # Check for a 64-bit object if we didn't find anything.
12644  if test -z "$lt_cv_aix_libpath_"; then
12645    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646  fi
12647fi
12648rm -f core conftest.err conftest.$ac_objext \
12649    conftest$ac_exeext conftest.$ac_ext
12650  if test -z "$lt_cv_aix_libpath_"; then
12651    lt_cv_aix_libpath_=/usr/lib:/lib
12652  fi
12653
12654fi
12655
12656  aix_libpath=$lt_cv_aix_libpath_
12657fi
12658
12659        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12660        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
12661      else
12662	if test ia64 = "$host_cpu"; then
12663	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12664	  allow_undefined_flag="-z nodefs"
12665	  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"
12666	else
12667	 # Determine the default libpath from the value encoded in an
12668	 # empty executable.
12669	 if test set = "${lt_cv_aix_libpath+set}"; then
12670  aix_libpath=$lt_cv_aix_libpath
12671else
12672  if ${lt_cv_aix_libpath_+:} false; then :
12673  $as_echo_n "(cached) " >&6
12674else
12675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h.  */
12677
12678int
12679main ()
12680{
12681
12682  ;
12683  return 0;
12684}
12685_ACEOF
12686if ac_fn_c_try_link "$LINENO"; then :
12687
12688  lt_aix_libpath_sed='
12689      /Import File Strings/,/^$/ {
12690	  /^0/ {
12691	      s/^0  *\([^ ]*\) *$/\1/
12692	      p
12693	  }
12694      }'
12695  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696  # Check for a 64-bit object if we didn't find anything.
12697  if test -z "$lt_cv_aix_libpath_"; then
12698    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12699  fi
12700fi
12701rm -f core conftest.err conftest.$ac_objext \
12702    conftest$ac_exeext conftest.$ac_ext
12703  if test -z "$lt_cv_aix_libpath_"; then
12704    lt_cv_aix_libpath_=/usr/lib:/lib
12705  fi
12706
12707fi
12708
12709  aix_libpath=$lt_cv_aix_libpath_
12710fi
12711
12712	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12713	  # Warning - without using the other run time loading flags,
12714	  # -berok will link without error, but may produce a broken library.
12715	  no_undefined_flag=' $wl-bernotok'
12716	  allow_undefined_flag=' $wl-berok'
12717	  if test yes = "$with_gnu_ld"; then
12718	    # We only use this code for GNU lds that support --whole-archive.
12719	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12720	  else
12721	    # Exported symbols can be pulled into shared objects from archives
12722	    whole_archive_flag_spec='$convenience'
12723	  fi
12724	  archive_cmds_need_lc=yes
12725	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12726	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12727	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12728	  if test svr4 != "$with_aix_soname"; then
12729	    # This is similar to how AIX traditionally builds its shared libraries.
12730	    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'
12731	  fi
12732	  if test aix != "$with_aix_soname"; then
12733	    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'
12734	  else
12735	    # used by -dlpreopen to get the symbols
12736	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12737	  fi
12738	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12739	fi
12740      fi
12741      ;;
12742
12743    amigaos*)
12744      case $host_cpu in
12745      powerpc)
12746            # see comment about AmigaOS4 .so support
12747            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12748            archive_expsym_cmds=''
12749        ;;
12750      m68k)
12751            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)'
12752            hardcode_libdir_flag_spec='-L$libdir'
12753            hardcode_minus_L=yes
12754        ;;
12755      esac
12756      ;;
12757
12758    bsdi[45]*)
12759      export_dynamic_flag_spec=-rdynamic
12760      ;;
12761
12762    cygwin* | mingw* | pw32* | cegcc*)
12763      # When not using gcc, we currently assume that we are using
12764      # Microsoft Visual C++.
12765      # hardcode_libdir_flag_spec is actually meaningless, as there is
12766      # no search path for DLLs.
12767      case $cc_basename in
12768      cl*)
12769	# Native MSVC
12770	hardcode_libdir_flag_spec=' '
12771	allow_undefined_flag=unsupported
12772	always_export_symbols=yes
12773	file_list_spec='@'
12774	# Tell ltmain to make .lib files, not .a files.
12775	libext=lib
12776	# Tell ltmain to make .dll files, not .so files.
12777	shrext_cmds=.dll
12778	# FIXME: Setting linknames here is a bad hack.
12779	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12780	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12781            cp "$export_symbols" "$output_objdir/$soname.def";
12782            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12783          else
12784            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12785          fi~
12786          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12787          linknames='
12788	# The linker will not automatically build a static lib if we build a DLL.
12789	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12790	enable_shared_with_static_runtimes=yes
12791	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12792	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12793	# Don't use ranlib
12794	old_postinstall_cmds='chmod 644 $oldlib'
12795	postlink_cmds='lt_outputfile="@OUTPUT@"~
12796          lt_tool_outputfile="@TOOL_OUTPUT@"~
12797          case $lt_outputfile in
12798            *.exe|*.EXE) ;;
12799            *)
12800              lt_outputfile=$lt_outputfile.exe
12801              lt_tool_outputfile=$lt_tool_outputfile.exe
12802              ;;
12803          esac~
12804          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12805            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12806            $RM "$lt_outputfile.manifest";
12807          fi'
12808	;;
12809      *)
12810	# Assume MSVC wrapper
12811	hardcode_libdir_flag_spec=' '
12812	allow_undefined_flag=unsupported
12813	# Tell ltmain to make .lib files, not .a files.
12814	libext=lib
12815	# Tell ltmain to make .dll files, not .so files.
12816	shrext_cmds=.dll
12817	# FIXME: Setting linknames here is a bad hack.
12818	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12819	# The linker will automatically build a .lib file if we build a DLL.
12820	old_archive_from_new_cmds='true'
12821	# FIXME: Should let the user specify the lib program.
12822	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12823	enable_shared_with_static_runtimes=yes
12824	;;
12825      esac
12826      ;;
12827
12828    darwin* | rhapsody*)
12829
12830
12831  archive_cmds_need_lc=no
12832  hardcode_direct=no
12833  hardcode_automatic=yes
12834  hardcode_shlibpath_var=unsupported
12835  if test yes = "$lt_cv_ld_force_load"; then
12836    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\"`'
12837
12838  else
12839    whole_archive_flag_spec=''
12840  fi
12841  link_all_deplibs=yes
12842  allow_undefined_flag=$_lt_dar_allow_undefined
12843  case $cc_basename in
12844     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12845     *) _lt_dar_can_shared=$GCC ;;
12846  esac
12847  if test yes = "$_lt_dar_can_shared"; then
12848    output_verbose_link_cmd=func_echo_all
12849    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12850    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12851    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"
12852    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"
12853
12854  else
12855  ld_shlibs=no
12856  fi
12857
12858      ;;
12859
12860    dgux*)
12861      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12862      hardcode_libdir_flag_spec='-L$libdir'
12863      hardcode_shlibpath_var=no
12864      ;;
12865
12866    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12867    # support.  Future versions do this automatically, but an explicit c++rt0.o
12868    # does not break anything, and helps significantly (at the cost of a little
12869    # extra space).
12870    freebsd2.2*)
12871      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12872      hardcode_libdir_flag_spec='-R$libdir'
12873      hardcode_direct=yes
12874      hardcode_shlibpath_var=no
12875      ;;
12876
12877    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12878    freebsd2.*)
12879      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12880      hardcode_direct=yes
12881      hardcode_minus_L=yes
12882      hardcode_shlibpath_var=no
12883      ;;
12884
12885    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12886    freebsd* | dragonfly*)
12887      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12888      hardcode_libdir_flag_spec='-R$libdir'
12889      hardcode_direct=yes
12890      hardcode_shlibpath_var=no
12891      ;;
12892
12893    hpux9*)
12894      if test yes = "$GCC"; then
12895	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'
12896      else
12897	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'
12898      fi
12899      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12900      hardcode_libdir_separator=:
12901      hardcode_direct=yes
12902
12903      # hardcode_minus_L: Not really in the search PATH,
12904      # but as the default location of the library.
12905      hardcode_minus_L=yes
12906      export_dynamic_flag_spec='$wl-E'
12907      ;;
12908
12909    hpux10*)
12910      if test yes,no = "$GCC,$with_gnu_ld"; then
12911	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12912      else
12913	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12914      fi
12915      if test no = "$with_gnu_ld"; then
12916	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12917	hardcode_libdir_separator=:
12918	hardcode_direct=yes
12919	hardcode_direct_absolute=yes
12920	export_dynamic_flag_spec='$wl-E'
12921	# hardcode_minus_L: Not really in the search PATH,
12922	# but as the default location of the library.
12923	hardcode_minus_L=yes
12924      fi
12925      ;;
12926
12927    hpux11*)
12928      if test yes,no = "$GCC,$with_gnu_ld"; then
12929	case $host_cpu in
12930	hppa*64*)
12931	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12932	  ;;
12933	ia64*)
12934	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12935	  ;;
12936	*)
12937	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12938	  ;;
12939	esac
12940      else
12941	case $host_cpu in
12942	hppa*64*)
12943	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12944	  ;;
12945	ia64*)
12946	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12947	  ;;
12948	*)
12949
12950	  # Older versions of the 11.00 compiler do not understand -b yet
12951	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12952	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12953$as_echo_n "checking if $CC understands -b... " >&6; }
12954if ${lt_cv_prog_compiler__b+:} false; then :
12955  $as_echo_n "(cached) " >&6
12956else
12957  lt_cv_prog_compiler__b=no
12958   save_LDFLAGS=$LDFLAGS
12959   LDFLAGS="$LDFLAGS -b"
12960   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12961   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12962     # The linker can only warn and ignore the option if not recognized
12963     # So say no if there are warnings
12964     if test -s conftest.err; then
12965       # Append any errors to the config.log.
12966       cat conftest.err 1>&5
12967       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12968       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12969       if diff conftest.exp conftest.er2 >/dev/null; then
12970         lt_cv_prog_compiler__b=yes
12971       fi
12972     else
12973       lt_cv_prog_compiler__b=yes
12974     fi
12975   fi
12976   $RM -r conftest*
12977   LDFLAGS=$save_LDFLAGS
12978
12979fi
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12981$as_echo "$lt_cv_prog_compiler__b" >&6; }
12982
12983if test yes = "$lt_cv_prog_compiler__b"; then
12984    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12985else
12986    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12987fi
12988
12989	  ;;
12990	esac
12991      fi
12992      if test no = "$with_gnu_ld"; then
12993	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12994	hardcode_libdir_separator=:
12995
12996	case $host_cpu in
12997	hppa*64*|ia64*)
12998	  hardcode_direct=no
12999	  hardcode_shlibpath_var=no
13000	  ;;
13001	*)
13002	  hardcode_direct=yes
13003	  hardcode_direct_absolute=yes
13004	  export_dynamic_flag_spec='$wl-E'
13005
13006	  # hardcode_minus_L: Not really in the search PATH,
13007	  # but as the default location of the library.
13008	  hardcode_minus_L=yes
13009	  ;;
13010	esac
13011      fi
13012      ;;
13013
13014    irix5* | irix6* | nonstopux*)
13015      if test yes = "$GCC"; then
13016	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'
13017	# Try to use the -exported_symbol ld option, if it does not
13018	# work, assume that -exports_file does not work either and
13019	# implicitly export all symbols.
13020	# This should be the same for all languages, so no per-tag cache variable.
13021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13022$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13023if ${lt_cv_irix_exported_symbol+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  save_LDFLAGS=$LDFLAGS
13027	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13028	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030int foo (void) { return 0; }
13031_ACEOF
13032if ac_fn_c_try_link "$LINENO"; then :
13033  lt_cv_irix_exported_symbol=yes
13034else
13035  lt_cv_irix_exported_symbol=no
13036fi
13037rm -f core conftest.err conftest.$ac_objext \
13038    conftest$ac_exeext conftest.$ac_ext
13039           LDFLAGS=$save_LDFLAGS
13040fi
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13042$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13043	if test yes = "$lt_cv_irix_exported_symbol"; then
13044          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'
13045	fi
13046      else
13047	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'
13048	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'
13049      fi
13050      archive_cmds_need_lc='no'
13051      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13052      hardcode_libdir_separator=:
13053      inherit_rpath=yes
13054      link_all_deplibs=yes
13055      ;;
13056
13057    linux*)
13058      case $cc_basename in
13059      tcc*)
13060	# Fabrice Bellard et al's Tiny C Compiler
13061	ld_shlibs=yes
13062	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13063	;;
13064      esac
13065      ;;
13066
13067    netbsd*)
13068      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13069	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13070      else
13071	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13072      fi
13073      hardcode_libdir_flag_spec='-R$libdir'
13074      hardcode_direct=yes
13075      hardcode_shlibpath_var=no
13076      ;;
13077
13078    newsos6)
13079      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080      hardcode_direct=yes
13081      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13082      hardcode_libdir_separator=:
13083      hardcode_shlibpath_var=no
13084      ;;
13085
13086    *nto* | *qnx*)
13087      ;;
13088
13089    openbsd* | bitrig*)
13090      if test -f /usr/libexec/ld.so; then
13091	hardcode_direct=yes
13092	hardcode_shlibpath_var=no
13093	hardcode_direct_absolute=yes
13094	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13095	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13096	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13097	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13098	  export_dynamic_flag_spec='$wl-E'
13099	else
13100	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13101	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13102	fi
13103      else
13104	ld_shlibs=no
13105      fi
13106      ;;
13107
13108    os2*)
13109      hardcode_libdir_flag_spec='-L$libdir'
13110      hardcode_minus_L=yes
13111      allow_undefined_flag=unsupported
13112      shrext_cmds=.dll
13113      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13114	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13115	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13116	$ECHO EXPORTS >> $output_objdir/$libname.def~
13117	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13118	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13119	emximp -o $lib $output_objdir/$libname.def'
13120      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13121	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13122	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13123	$ECHO EXPORTS >> $output_objdir/$libname.def~
13124	prefix_cmds="$SED"~
13125	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13126	  prefix_cmds="$prefix_cmds -e 1d";
13127	fi~
13128	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13129	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13130	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13131	emximp -o $lib $output_objdir/$libname.def'
13132      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13133      enable_shared_with_static_runtimes=yes
13134      ;;
13135
13136    osf3*)
13137      if test yes = "$GCC"; then
13138	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13139	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'
13140      else
13141	allow_undefined_flag=' -expect_unresolved \*'
13142	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'
13143      fi
13144      archive_cmds_need_lc='no'
13145      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13146      hardcode_libdir_separator=:
13147      ;;
13148
13149    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13150      if test yes = "$GCC"; then
13151	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13152	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'
13153	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13154      else
13155	allow_undefined_flag=' -expect_unresolved \*'
13156	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'
13157	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~
13158          $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'
13159
13160	# Both c and cxx compiler support -rpath directly
13161	hardcode_libdir_flag_spec='-rpath $libdir'
13162      fi
13163      archive_cmds_need_lc='no'
13164      hardcode_libdir_separator=:
13165      ;;
13166
13167    solaris*)
13168      no_undefined_flag=' -z defs'
13169      if test yes = "$GCC"; then
13170	wlarc='$wl'
13171	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13172	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13173          $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'
13174      else
13175	case `$CC -V 2>&1` in
13176	*"Compilers 5.0"*)
13177	  wlarc=''
13178	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13180            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13181	  ;;
13182	*)
13183	  wlarc='$wl'
13184	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13185	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13186            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13187	  ;;
13188	esac
13189      fi
13190      hardcode_libdir_flag_spec='-R$libdir'
13191      hardcode_shlibpath_var=no
13192      case $host_os in
13193      solaris2.[0-5] | solaris2.[0-5].*) ;;
13194      *)
13195	# The compiler driver will combine and reorder linker options,
13196	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13197	# but is careful enough not to reorder.
13198	# Supported since Solaris 2.6 (maybe 2.5.1?)
13199	if test yes = "$GCC"; then
13200	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13201	else
13202	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13203	fi
13204	;;
13205      esac
13206      link_all_deplibs=yes
13207      ;;
13208
13209    sunos4*)
13210      if test sequent = "$host_vendor"; then
13211	# Use $CC to link under sequent, because it throws in some extra .o
13212	# files that make .init and .fini sections work.
13213	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13214      else
13215	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13216      fi
13217      hardcode_libdir_flag_spec='-L$libdir'
13218      hardcode_direct=yes
13219      hardcode_minus_L=yes
13220      hardcode_shlibpath_var=no
13221      ;;
13222
13223    sysv4)
13224      case $host_vendor in
13225	sni)
13226	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13227	  hardcode_direct=yes # is this really true???
13228	;;
13229	siemens)
13230	  ## LD is ld it makes a PLAMLIB
13231	  ## CC just makes a GrossModule.
13232	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13233	  reload_cmds='$CC -r -o $output$reload_objs'
13234	  hardcode_direct=no
13235        ;;
13236	motorola)
13237	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13239	;;
13240      esac
13241      runpath_var='LD_RUN_PATH'
13242      hardcode_shlibpath_var=no
13243      ;;
13244
13245    sysv4.3*)
13246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13247      hardcode_shlibpath_var=no
13248      export_dynamic_flag_spec='-Bexport'
13249      ;;
13250
13251    sysv4*MP*)
13252      if test -d /usr/nec; then
13253	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13254	hardcode_shlibpath_var=no
13255	runpath_var=LD_RUN_PATH
13256	hardcode_runpath_var=yes
13257	ld_shlibs=yes
13258      fi
13259      ;;
13260
13261    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13262      no_undefined_flag='$wl-z,text'
13263      archive_cmds_need_lc=no
13264      hardcode_shlibpath_var=no
13265      runpath_var='LD_RUN_PATH'
13266
13267      if test yes = "$GCC"; then
13268	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13270      else
13271	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13272	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273      fi
13274      ;;
13275
13276    sysv5* | sco3.2v5* | sco5v6*)
13277      # Note: We CANNOT use -z defs as we might desire, because we do not
13278      # link with -lc, and that would cause any symbols used from libc to
13279      # always be unresolved, which means just about no library would
13280      # ever link correctly.  If we're not using GNU ld we use -z text
13281      # though, which does catch some bad symbols but isn't as heavy-handed
13282      # as -z defs.
13283      no_undefined_flag='$wl-z,text'
13284      allow_undefined_flag='$wl-z,nodefs'
13285      archive_cmds_need_lc=no
13286      hardcode_shlibpath_var=no
13287      hardcode_libdir_flag_spec='$wl-R,$libdir'
13288      hardcode_libdir_separator=':'
13289      link_all_deplibs=yes
13290      export_dynamic_flag_spec='$wl-Bexport'
13291      runpath_var='LD_RUN_PATH'
13292
13293      if test yes = "$GCC"; then
13294	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296      else
13297	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299      fi
13300      ;;
13301
13302    uts4*)
13303      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304      hardcode_libdir_flag_spec='-L$libdir'
13305      hardcode_shlibpath_var=no
13306      ;;
13307
13308    *)
13309      ld_shlibs=no
13310      ;;
13311    esac
13312
13313    if test sni = "$host_vendor"; then
13314      case $host in
13315      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13316	export_dynamic_flag_spec='$wl-Blargedynsym'
13317	;;
13318      esac
13319    fi
13320  fi
13321
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13323$as_echo "$ld_shlibs" >&6; }
13324test no = "$ld_shlibs" && can_build_shared=no
13325
13326with_gnu_ld=$with_gnu_ld
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342#
13343# Do we need to explicitly link libc?
13344#
13345case "x$archive_cmds_need_lc" in
13346x|xyes)
13347  # Assume -lc should be added
13348  archive_cmds_need_lc=yes
13349
13350  if test yes,yes = "$GCC,$enable_shared"; then
13351    case $archive_cmds in
13352    *'~'*)
13353      # FIXME: we may have to deal with multi-command sequences.
13354      ;;
13355    '$CC '*)
13356      # Test whether the compiler implicitly links with -lc since on some
13357      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13358      # to ld, don't add -lc before -lgcc.
13359      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13360$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13361if ${lt_cv_archive_cmds_need_lc+:} false; then :
13362  $as_echo_n "(cached) " >&6
13363else
13364  $RM conftest*
13365	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13366
13367	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13368  (eval $ac_compile) 2>&5
13369  ac_status=$?
13370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371  test $ac_status = 0; } 2>conftest.err; then
13372	  soname=conftest
13373	  lib=conftest
13374	  libobjs=conftest.$ac_objext
13375	  deplibs=
13376	  wl=$lt_prog_compiler_wl
13377	  pic_flag=$lt_prog_compiler_pic
13378	  compiler_flags=-v
13379	  linker_flags=-v
13380	  verstring=
13381	  output_objdir=.
13382	  libname=conftest
13383	  lt_save_allow_undefined_flag=$allow_undefined_flag
13384	  allow_undefined_flag=
13385	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13386  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13387  ac_status=$?
13388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389  test $ac_status = 0; }
13390	  then
13391	    lt_cv_archive_cmds_need_lc=no
13392	  else
13393	    lt_cv_archive_cmds_need_lc=yes
13394	  fi
13395	  allow_undefined_flag=$lt_save_allow_undefined_flag
13396	else
13397	  cat conftest.err 1>&5
13398	fi
13399	$RM conftest*
13400
13401fi
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13403$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13404      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13405      ;;
13406    esac
13407  fi
13408  ;;
13409esac
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13563$as_echo_n "checking dynamic linker characteristics... " >&6; }
13564
13565if test yes = "$GCC"; then
13566  case $host_os in
13567    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13568    *) lt_awk_arg='/^libraries:/' ;;
13569  esac
13570  case $host_os in
13571    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13572    *) lt_sed_strip_eq='s|=/|/|g' ;;
13573  esac
13574  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13575  case $lt_search_path_spec in
13576  *\;*)
13577    # if the path contains ";" then we assume it to be the separator
13578    # otherwise default to the standard path separator (i.e. ":") - it is
13579    # assumed that no part of a normal pathname contains ";" but that should
13580    # okay in the real world where ";" in dirpaths is itself problematic.
13581    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13582    ;;
13583  *)
13584    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13585    ;;
13586  esac
13587  # Ok, now we have the path, separated by spaces, we can step through it
13588  # and add multilib dir if necessary...
13589  lt_tmp_lt_search_path_spec=
13590  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13591  # ...but if some path component already ends with the multilib dir we assume
13592  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13593  case "$lt_multi_os_dir; $lt_search_path_spec " in
13594  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13595    lt_multi_os_dir=
13596    ;;
13597  esac
13598  for lt_sys_path in $lt_search_path_spec; do
13599    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13600      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13601    elif test -n "$lt_multi_os_dir"; then
13602      test -d "$lt_sys_path" && \
13603	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13604    fi
13605  done
13606  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13607BEGIN {RS = " "; FS = "/|\n";} {
13608  lt_foo = "";
13609  lt_count = 0;
13610  for (lt_i = NF; lt_i > 0; lt_i--) {
13611    if ($lt_i != "" && $lt_i != ".") {
13612      if ($lt_i == "..") {
13613        lt_count++;
13614      } else {
13615        if (lt_count == 0) {
13616          lt_foo = "/" $lt_i lt_foo;
13617        } else {
13618          lt_count--;
13619        }
13620      }
13621    }
13622  }
13623  if (lt_foo != "") { lt_freq[lt_foo]++; }
13624  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13625}'`
13626  # AWK program above erroneously prepends '/' to C:/dos/paths
13627  # for these hosts.
13628  case $host_os in
13629    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13630      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13631  esac
13632  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13633else
13634  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13635fi
13636library_names_spec=
13637libname_spec='lib$name'
13638soname_spec=
13639shrext_cmds=.so
13640postinstall_cmds=
13641postuninstall_cmds=
13642finish_cmds=
13643finish_eval=
13644shlibpath_var=
13645shlibpath_overrides_runpath=unknown
13646version_type=none
13647dynamic_linker="$host_os ld.so"
13648sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649need_lib_prefix=unknown
13650hardcode_into_libs=no
13651
13652# when you set need_version to no, make sure it does not cause -set_version
13653# flags to be left without arguments
13654need_version=unknown
13655
13656
13657
13658case $host_os in
13659aix3*)
13660  version_type=linux # correct to gnu/linux during the next big refactor
13661  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13662  shlibpath_var=LIBPATH
13663
13664  # AIX 3 has no versioning support, so we append a major version to the name.
13665  soname_spec='$libname$release$shared_ext$major'
13666  ;;
13667
13668aix[4-9]*)
13669  version_type=linux # correct to gnu/linux during the next big refactor
13670  need_lib_prefix=no
13671  need_version=no
13672  hardcode_into_libs=yes
13673  if test ia64 = "$host_cpu"; then
13674    # AIX 5 supports IA64
13675    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13676    shlibpath_var=LD_LIBRARY_PATH
13677  else
13678    # With GCC up to 2.95.x, collect2 would create an import file
13679    # for dependence libraries.  The import file would start with
13680    # the line '#! .'.  This would cause the generated library to
13681    # depend on '.', always an invalid library.  This was fixed in
13682    # development snapshots of GCC prior to 3.0.
13683    case $host_os in
13684      aix4 | aix4.[01] | aix4.[01].*)
13685      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13686	   echo ' yes '
13687	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13688	:
13689      else
13690	can_build_shared=no
13691      fi
13692      ;;
13693    esac
13694    # Using Import Files as archive members, it is possible to support
13695    # filename-based versioning of shared library archives on AIX. While
13696    # this would work for both with and without runtime linking, it will
13697    # prevent static linking of such archives. So we do filename-based
13698    # shared library versioning with .so extension only, which is used
13699    # when both runtime linking and shared linking is enabled.
13700    # Unfortunately, runtime linking may impact performance, so we do
13701    # not want this to be the default eventually. Also, we use the
13702    # versioned .so libs for executables only if there is the -brtl
13703    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13704    # To allow for filename-based versioning support, we need to create
13705    # libNAME.so.V as an archive file, containing:
13706    # *) an Import File, referring to the versioned filename of the
13707    #    archive as well as the shared archive member, telling the
13708    #    bitwidth (32 or 64) of that shared object, and providing the
13709    #    list of exported symbols of that shared object, eventually
13710    #    decorated with the 'weak' keyword
13711    # *) the shared object with the F_LOADONLY flag set, to really avoid
13712    #    it being seen by the linker.
13713    # At run time we better use the real file rather than another symlink,
13714    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13715
13716    case $with_aix_soname,$aix_use_runtimelinking in
13717    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13718    # soname into executable. Probably we can add versioning support to
13719    # collect2, so additional links can be useful in future.
13720    aix,yes) # traditional libtool
13721      dynamic_linker='AIX unversionable lib.so'
13722      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723      # instead of lib<name>.a to let people know that these are not
13724      # typical AIX shared libraries.
13725      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726      ;;
13727    aix,no) # traditional AIX only
13728      dynamic_linker='AIX lib.a(lib.so.V)'
13729      # We preserve .a as extension for shared libraries through AIX4.2
13730      # and later when we are not doing run time linking.
13731      library_names_spec='$libname$release.a $libname.a'
13732      soname_spec='$libname$release$shared_ext$major'
13733      ;;
13734    svr4,*) # full svr4 only
13735      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13736      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13737      # We do not specify a path in Import Files, so LIBPATH fires.
13738      shlibpath_overrides_runpath=yes
13739      ;;
13740    *,yes) # both, prefer svr4
13741      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13742      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13743      # unpreferred sharedlib libNAME.a needs extra handling
13744      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"'
13745      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"'
13746      # We do not specify a path in Import Files, so LIBPATH fires.
13747      shlibpath_overrides_runpath=yes
13748      ;;
13749    *,no) # both, prefer aix
13750      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13751      library_names_spec='$libname$release.a $libname.a'
13752      soname_spec='$libname$release$shared_ext$major'
13753      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13754      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)'
13755      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"'
13756      ;;
13757    esac
13758    shlibpath_var=LIBPATH
13759  fi
13760  ;;
13761
13762amigaos*)
13763  case $host_cpu in
13764  powerpc)
13765    # Since July 2007 AmigaOS4 officially supports .so libraries.
13766    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13767    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13768    ;;
13769  m68k)
13770    library_names_spec='$libname.ixlibrary $libname.a'
13771    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772    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'
13773    ;;
13774  esac
13775  ;;
13776
13777beos*)
13778  library_names_spec='$libname$shared_ext'
13779  dynamic_linker="$host_os ld.so"
13780  shlibpath_var=LIBRARY_PATH
13781  ;;
13782
13783bsdi[45]*)
13784  version_type=linux # correct to gnu/linux during the next big refactor
13785  need_version=no
13786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13787  soname_spec='$libname$release$shared_ext$major'
13788  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13789  shlibpath_var=LD_LIBRARY_PATH
13790  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13791  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13792  # the default ld.so.conf also contains /usr/contrib/lib and
13793  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13794  # libtool to hard-code these into programs
13795  ;;
13796
13797cygwin* | mingw* | pw32* | cegcc*)
13798  version_type=windows
13799  shrext_cmds=.dll
13800  need_version=no
13801  need_lib_prefix=no
13802
13803  case $GCC,$cc_basename in
13804  yes,*)
13805    # gcc
13806    library_names_spec='$libname.dll.a'
13807    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13808    postinstall_cmds='base_file=`basename \$file`~
13809      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13810      dldir=$destdir/`dirname \$dlpath`~
13811      test -d \$dldir || mkdir -p \$dldir~
13812      $install_prog $dir/$dlname \$dldir/$dlname~
13813      chmod a+x \$dldir/$dlname~
13814      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13815        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13816      fi'
13817    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13818      dlpath=$dir/\$dldll~
13819       $RM \$dlpath'
13820    shlibpath_overrides_runpath=yes
13821
13822    case $host_os in
13823    cygwin*)
13824      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13825      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13826
13827      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13828      ;;
13829    mingw* | cegcc*)
13830      # MinGW DLLs use traditional 'lib' prefix
13831      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13832      ;;
13833    pw32*)
13834      # pw32 DLLs use 'pw' prefix rather than 'lib'
13835      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13836      ;;
13837    esac
13838    dynamic_linker='Win32 ld.exe'
13839    ;;
13840
13841  *,cl*)
13842    # Native MSVC
13843    libname_spec='$name'
13844    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13845    library_names_spec='$libname.dll.lib'
13846
13847    case $build_os in
13848    mingw*)
13849      sys_lib_search_path_spec=
13850      lt_save_ifs=$IFS
13851      IFS=';'
13852      for lt_path in $LIB
13853      do
13854        IFS=$lt_save_ifs
13855        # Let DOS variable expansion print the short 8.3 style file name.
13856        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13857        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13858      done
13859      IFS=$lt_save_ifs
13860      # Convert to MSYS style.
13861      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13862      ;;
13863    cygwin*)
13864      # Convert to unix form, then to dos form, then back to unix form
13865      # but this time dos style (no spaces!) so that the unix form looks
13866      # like /cygdrive/c/PROGRA~1:/cygdr...
13867      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13868      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13869      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13870      ;;
13871    *)
13872      sys_lib_search_path_spec=$LIB
13873      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13874        # It is most probably a Windows format PATH.
13875        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13876      else
13877        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13878      fi
13879      # FIXME: find the short name or the path components, as spaces are
13880      # common. (e.g. "Program Files" -> "PROGRA~1")
13881      ;;
13882    esac
13883
13884    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13885    postinstall_cmds='base_file=`basename \$file`~
13886      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13887      dldir=$destdir/`dirname \$dlpath`~
13888      test -d \$dldir || mkdir -p \$dldir~
13889      $install_prog $dir/$dlname \$dldir/$dlname'
13890    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13891      dlpath=$dir/\$dldll~
13892       $RM \$dlpath'
13893    shlibpath_overrides_runpath=yes
13894    dynamic_linker='Win32 link.exe'
13895    ;;
13896
13897  *)
13898    # Assume MSVC wrapper
13899    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13900    dynamic_linker='Win32 ld.exe'
13901    ;;
13902  esac
13903  # FIXME: first we should search . and the directory the executable is in
13904  shlibpath_var=PATH
13905  ;;
13906
13907darwin* | rhapsody*)
13908  dynamic_linker="$host_os dyld"
13909  version_type=darwin
13910  need_lib_prefix=no
13911  need_version=no
13912  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13913  soname_spec='$libname$release$major$shared_ext'
13914  shlibpath_overrides_runpath=yes
13915  shlibpath_var=DYLD_LIBRARY_PATH
13916  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13917
13918  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13919  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13920  ;;
13921
13922dgux*)
13923  version_type=linux # correct to gnu/linux during the next big refactor
13924  need_lib_prefix=no
13925  need_version=no
13926  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13927  soname_spec='$libname$release$shared_ext$major'
13928  shlibpath_var=LD_LIBRARY_PATH
13929  ;;
13930
13931freebsd* | dragonfly*)
13932  # DragonFly does not have aout.  When/if they implement a new
13933  # versioning mechanism, adjust this.
13934  if test -x /usr/bin/objformat; then
13935    objformat=`/usr/bin/objformat`
13936  else
13937    case $host_os in
13938    freebsd[23].*) objformat=aout ;;
13939    *) objformat=elf ;;
13940    esac
13941  fi
13942  version_type=freebsd-$objformat
13943  case $version_type in
13944    freebsd-elf*)
13945      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13946      soname_spec='$libname$release$shared_ext$major'
13947      need_version=no
13948      need_lib_prefix=no
13949      ;;
13950    freebsd-*)
13951      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13952      need_version=yes
13953      ;;
13954  esac
13955  shlibpath_var=LD_LIBRARY_PATH
13956  case $host_os in
13957  freebsd2.*)
13958    shlibpath_overrides_runpath=yes
13959    ;;
13960  freebsd3.[01]* | freebsdelf3.[01]*)
13961    shlibpath_overrides_runpath=yes
13962    hardcode_into_libs=yes
13963    ;;
13964  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13965  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13966    shlibpath_overrides_runpath=no
13967    hardcode_into_libs=yes
13968    ;;
13969  *) # from 4.6 on, and DragonFly
13970    shlibpath_overrides_runpath=yes
13971    hardcode_into_libs=yes
13972    ;;
13973  esac
13974  ;;
13975
13976haiku*)
13977  version_type=linux # correct to gnu/linux during the next big refactor
13978  need_lib_prefix=no
13979  need_version=no
13980  dynamic_linker="$host_os runtime_loader"
13981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13982  soname_spec='$libname$release$shared_ext$major'
13983  shlibpath_var=LIBRARY_PATH
13984  shlibpath_overrides_runpath=no
13985  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13986  hardcode_into_libs=yes
13987  ;;
13988
13989hpux9* | hpux10* | hpux11*)
13990  # Give a soname corresponding to the major version so that dld.sl refuses to
13991  # link against other versions.
13992  version_type=sunos
13993  need_lib_prefix=no
13994  need_version=no
13995  case $host_cpu in
13996  ia64*)
13997    shrext_cmds='.so'
13998    hardcode_into_libs=yes
13999    dynamic_linker="$host_os dld.so"
14000    shlibpath_var=LD_LIBRARY_PATH
14001    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14003    soname_spec='$libname$release$shared_ext$major'
14004    if test 32 = "$HPUX_IA64_MODE"; then
14005      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14006      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14007    else
14008      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14009      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14010    fi
14011    ;;
14012  hppa*64*)
14013    shrext_cmds='.sl'
14014    hardcode_into_libs=yes
14015    dynamic_linker="$host_os dld.sl"
14016    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14017    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14018    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14019    soname_spec='$libname$release$shared_ext$major'
14020    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14021    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14022    ;;
14023  *)
14024    shrext_cmds='.sl'
14025    dynamic_linker="$host_os dld.sl"
14026    shlibpath_var=SHLIB_PATH
14027    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14028    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14029    soname_spec='$libname$release$shared_ext$major'
14030    ;;
14031  esac
14032  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14033  postinstall_cmds='chmod 555 $lib'
14034  # or fails outright, so override atomically:
14035  install_override_mode=555
14036  ;;
14037
14038interix[3-9]*)
14039  version_type=linux # correct to gnu/linux during the next big refactor
14040  need_lib_prefix=no
14041  need_version=no
14042  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14043  soname_spec='$libname$release$shared_ext$major'
14044  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14045  shlibpath_var=LD_LIBRARY_PATH
14046  shlibpath_overrides_runpath=no
14047  hardcode_into_libs=yes
14048  ;;
14049
14050irix5* | irix6* | nonstopux*)
14051  case $host_os in
14052    nonstopux*) version_type=nonstopux ;;
14053    *)
14054	if test yes = "$lt_cv_prog_gnu_ld"; then
14055		version_type=linux # correct to gnu/linux during the next big refactor
14056	else
14057		version_type=irix
14058	fi ;;
14059  esac
14060  need_lib_prefix=no
14061  need_version=no
14062  soname_spec='$libname$release$shared_ext$major'
14063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14064  case $host_os in
14065  irix5* | nonstopux*)
14066    libsuff= shlibsuff=
14067    ;;
14068  *)
14069    case $LD in # libtool.m4 will add one of these switches to LD
14070    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14071      libsuff= shlibsuff= libmagic=32-bit;;
14072    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14073      libsuff=32 shlibsuff=N32 libmagic=N32;;
14074    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14075      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14076    *) libsuff= shlibsuff= libmagic=never-match;;
14077    esac
14078    ;;
14079  esac
14080  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14081  shlibpath_overrides_runpath=no
14082  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14083  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14084  hardcode_into_libs=yes
14085  ;;
14086
14087# No shared lib support for Linux oldld, aout, or coff.
14088linux*oldld* | linux*aout* | linux*coff*)
14089  dynamic_linker=no
14090  ;;
14091
14092linux*android*)
14093  version_type=none # Android doesn't support versioned libraries.
14094  need_lib_prefix=no
14095  need_version=no
14096  library_names_spec='$libname$release$shared_ext'
14097  soname_spec='$libname$release$shared_ext'
14098  finish_cmds=
14099  shlibpath_var=LD_LIBRARY_PATH
14100  shlibpath_overrides_runpath=yes
14101
14102  # This implies no fast_install, which is unacceptable.
14103  # Some rework will be needed to allow for fast_install
14104  # before this can be enabled.
14105  hardcode_into_libs=yes
14106
14107  dynamic_linker='Android linker'
14108  # Don't embed -rpath directories since the linker doesn't support them.
14109  hardcode_libdir_flag_spec='-L$libdir'
14110  ;;
14111
14112# This must be glibc/ELF.
14113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14114  version_type=linux # correct to gnu/linux during the next big refactor
14115  need_lib_prefix=no
14116  need_version=no
14117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14118  soname_spec='$libname$release$shared_ext$major'
14119  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14120  shlibpath_var=LD_LIBRARY_PATH
14121  shlibpath_overrides_runpath=no
14122
14123  # Some binutils ld are patched to set DT_RUNPATH
14124  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14125  $as_echo_n "(cached) " >&6
14126else
14127  lt_cv_shlibpath_overrides_runpath=no
14128    save_LDFLAGS=$LDFLAGS
14129    save_libdir=$libdir
14130    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14131	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133/* end confdefs.h.  */
14134
14135int
14136main ()
14137{
14138
14139  ;
14140  return 0;
14141}
14142_ACEOF
14143if ac_fn_c_try_link "$LINENO"; then :
14144  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14145  lt_cv_shlibpath_overrides_runpath=yes
14146fi
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149    conftest$ac_exeext conftest.$ac_ext
14150    LDFLAGS=$save_LDFLAGS
14151    libdir=$save_libdir
14152
14153fi
14154
14155  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14156
14157  # This implies no fast_install, which is unacceptable.
14158  # Some rework will be needed to allow for fast_install
14159  # before this can be enabled.
14160  hardcode_into_libs=yes
14161
14162  # Ideally, we could use ldconfig to report *all* directores which are
14163  # searched for libraries, however this is still not possible.  Aside from not
14164  # being certain /sbin/ldconfig is available, command
14165  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14166  # even though it is searched at run-time.  Try to do the best guess by
14167  # appending ld.so.conf contents (and includes) to the search path.
14168  if test -f /etc/ld.so.conf; then
14169    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' ' '`
14170    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14171  fi
14172
14173  # We used to test for /lib/ld.so.1 and disable shared libraries on
14174  # powerpc, because MkLinux only supported shared libraries with the
14175  # GNU dynamic linker.  Since this was broken with cross compilers,
14176  # most powerpc-linux boxes support dynamic linking these days and
14177  # people can always --disable-shared, the test was removed, and we
14178  # assume the GNU/Linux dynamic linker is in use.
14179  dynamic_linker='GNU/Linux ld.so'
14180  ;;
14181
14182netbsd*)
14183  version_type=sunos
14184  need_lib_prefix=no
14185  need_version=no
14186  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14187    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14188    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14189    dynamic_linker='NetBSD (a.out) ld.so'
14190  else
14191    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14192    soname_spec='$libname$release$shared_ext$major'
14193    dynamic_linker='NetBSD ld.elf_so'
14194  fi
14195  shlibpath_var=LD_LIBRARY_PATH
14196  shlibpath_overrides_runpath=yes
14197  hardcode_into_libs=yes
14198  ;;
14199
14200newsos6)
14201  version_type=linux # correct to gnu/linux during the next big refactor
14202  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14203  shlibpath_var=LD_LIBRARY_PATH
14204  shlibpath_overrides_runpath=yes
14205  ;;
14206
14207*nto* | *qnx*)
14208  version_type=qnx
14209  need_lib_prefix=no
14210  need_version=no
14211  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14212  soname_spec='$libname$release$shared_ext$major'
14213  shlibpath_var=LD_LIBRARY_PATH
14214  shlibpath_overrides_runpath=no
14215  hardcode_into_libs=yes
14216  dynamic_linker='ldqnx.so'
14217  ;;
14218
14219openbsd* | bitrig*)
14220  version_type=sunos
14221  sys_lib_dlsearch_path_spec=/usr/lib
14222  need_lib_prefix=no
14223  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14224    need_version=no
14225  else
14226    need_version=yes
14227  fi
14228  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14229  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14230  shlibpath_var=LD_LIBRARY_PATH
14231  shlibpath_overrides_runpath=yes
14232  ;;
14233
14234os2*)
14235  libname_spec='$name'
14236  version_type=windows
14237  shrext_cmds=.dll
14238  need_version=no
14239  need_lib_prefix=no
14240  # OS/2 can only load a DLL with a base name of 8 characters or less.
14241  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14242    v=$($ECHO $release$versuffix | tr -d .-);
14243    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14244    $ECHO $n$v`$shared_ext'
14245  library_names_spec='${libname}_dll.$libext'
14246  dynamic_linker='OS/2 ld.exe'
14247  shlibpath_var=BEGINLIBPATH
14248  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14249  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14250  postinstall_cmds='base_file=`basename \$file`~
14251    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14252    dldir=$destdir/`dirname \$dlpath`~
14253    test -d \$dldir || mkdir -p \$dldir~
14254    $install_prog $dir/$dlname \$dldir/$dlname~
14255    chmod a+x \$dldir/$dlname~
14256    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14257      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14258    fi'
14259  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14260    dlpath=$dir/\$dldll~
14261    $RM \$dlpath'
14262  ;;
14263
14264osf3* | osf4* | osf5*)
14265  version_type=osf
14266  need_lib_prefix=no
14267  need_version=no
14268  soname_spec='$libname$release$shared_ext$major'
14269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14270  shlibpath_var=LD_LIBRARY_PATH
14271  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14272  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14273  ;;
14274
14275rdos*)
14276  dynamic_linker=no
14277  ;;
14278
14279solaris*)
14280  version_type=linux # correct to gnu/linux during the next big refactor
14281  need_lib_prefix=no
14282  need_version=no
14283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14284  soname_spec='$libname$release$shared_ext$major'
14285  shlibpath_var=LD_LIBRARY_PATH
14286  shlibpath_overrides_runpath=yes
14287  hardcode_into_libs=yes
14288  # ldd complains unless libraries are executable
14289  postinstall_cmds='chmod +x $lib'
14290  ;;
14291
14292sunos4*)
14293  version_type=sunos
14294  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14295  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14296  shlibpath_var=LD_LIBRARY_PATH
14297  shlibpath_overrides_runpath=yes
14298  if test yes = "$with_gnu_ld"; then
14299    need_lib_prefix=no
14300  fi
14301  need_version=yes
14302  ;;
14303
14304sysv4 | sysv4.3*)
14305  version_type=linux # correct to gnu/linux during the next big refactor
14306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14307  soname_spec='$libname$release$shared_ext$major'
14308  shlibpath_var=LD_LIBRARY_PATH
14309  case $host_vendor in
14310    sni)
14311      shlibpath_overrides_runpath=no
14312      need_lib_prefix=no
14313      runpath_var=LD_RUN_PATH
14314      ;;
14315    siemens)
14316      need_lib_prefix=no
14317      ;;
14318    motorola)
14319      need_lib_prefix=no
14320      need_version=no
14321      shlibpath_overrides_runpath=no
14322      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14323      ;;
14324  esac
14325  ;;
14326
14327sysv4*MP*)
14328  if test -d /usr/nec; then
14329    version_type=linux # correct to gnu/linux during the next big refactor
14330    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14331    soname_spec='$libname$shared_ext.$major'
14332    shlibpath_var=LD_LIBRARY_PATH
14333  fi
14334  ;;
14335
14336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14337  version_type=sco
14338  need_lib_prefix=no
14339  need_version=no
14340  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14341  soname_spec='$libname$release$shared_ext$major'
14342  shlibpath_var=LD_LIBRARY_PATH
14343  shlibpath_overrides_runpath=yes
14344  hardcode_into_libs=yes
14345  if test yes = "$with_gnu_ld"; then
14346    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14347  else
14348    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14349    case $host_os in
14350      sco3.2v5*)
14351        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14352	;;
14353    esac
14354  fi
14355  sys_lib_dlsearch_path_spec='/usr/lib'
14356  ;;
14357
14358tpf*)
14359  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14360  version_type=linux # correct to gnu/linux during the next big refactor
14361  need_lib_prefix=no
14362  need_version=no
14363  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14364  shlibpath_var=LD_LIBRARY_PATH
14365  shlibpath_overrides_runpath=no
14366  hardcode_into_libs=yes
14367  ;;
14368
14369uts4*)
14370  version_type=linux # correct to gnu/linux during the next big refactor
14371  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372  soname_spec='$libname$release$shared_ext$major'
14373  shlibpath_var=LD_LIBRARY_PATH
14374  ;;
14375
14376*)
14377  dynamic_linker=no
14378  ;;
14379esac
14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14381$as_echo "$dynamic_linker" >&6; }
14382test no = "$dynamic_linker" && can_build_shared=no
14383
14384variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14385if test yes = "$GCC"; then
14386  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14387fi
14388
14389if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14390  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14391fi
14392
14393if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14394  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14395fi
14396
14397# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14398configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14399
14400# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14401func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14402
14403# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14404configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14503$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14504hardcode_action=
14505if test -n "$hardcode_libdir_flag_spec" ||
14506   test -n "$runpath_var" ||
14507   test yes = "$hardcode_automatic"; then
14508
14509  # We can hardcode non-existent directories.
14510  if test no != "$hardcode_direct" &&
14511     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14512     # have to relink, otherwise we might link with an installed library
14513     # when we should be linking with a yet-to-be-installed one
14514     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14515     test no != "$hardcode_minus_L"; then
14516    # Linking always hardcodes the temporary library directory.
14517    hardcode_action=relink
14518  else
14519    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14520    hardcode_action=immediate
14521  fi
14522else
14523  # We cannot hardcode anything, or else we can only hardcode existing
14524  # directories.
14525  hardcode_action=unsupported
14526fi
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14528$as_echo "$hardcode_action" >&6; }
14529
14530if test relink = "$hardcode_action" ||
14531   test yes = "$inherit_rpath"; then
14532  # Fast installation is not supported
14533  enable_fast_install=no
14534elif test yes = "$shlibpath_overrides_runpath" ||
14535     test no = "$enable_shared"; then
14536  # Fast installation is not necessary
14537  enable_fast_install=needless
14538fi
14539
14540
14541
14542
14543
14544
14545  if test yes != "$enable_dlopen"; then
14546  enable_dlopen=unknown
14547  enable_dlopen_self=unknown
14548  enable_dlopen_self_static=unknown
14549else
14550  lt_cv_dlopen=no
14551  lt_cv_dlopen_libs=
14552
14553  case $host_os in
14554  beos*)
14555    lt_cv_dlopen=load_add_on
14556    lt_cv_dlopen_libs=
14557    lt_cv_dlopen_self=yes
14558    ;;
14559
14560  mingw* | pw32* | cegcc*)
14561    lt_cv_dlopen=LoadLibrary
14562    lt_cv_dlopen_libs=
14563    ;;
14564
14565  cygwin*)
14566    lt_cv_dlopen=dlopen
14567    lt_cv_dlopen_libs=
14568    ;;
14569
14570  darwin*)
14571    # if libdl is installed we need to link against it
14572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14573$as_echo_n "checking for dlopen in -ldl... " >&6; }
14574if ${ac_cv_lib_dl_dlopen+:} false; then :
14575  $as_echo_n "(cached) " >&6
14576else
14577  ac_check_lib_save_LIBS=$LIBS
14578LIBS="-ldl  $LIBS"
14579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581
14582/* Override any GCC internal prototype to avoid an error.
14583   Use char because int might match the return type of a GCC
14584   builtin and then its argument prototype would still apply.  */
14585#ifdef __cplusplus
14586extern "C"
14587#endif
14588char dlopen ();
14589int
14590main ()
14591{
14592return dlopen ();
14593  ;
14594  return 0;
14595}
14596_ACEOF
14597if ac_fn_c_try_link "$LINENO"; then :
14598  ac_cv_lib_dl_dlopen=yes
14599else
14600  ac_cv_lib_dl_dlopen=no
14601fi
14602rm -f core conftest.err conftest.$ac_objext \
14603    conftest$ac_exeext conftest.$ac_ext
14604LIBS=$ac_check_lib_save_LIBS
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14607$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14608if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14609  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14610else
14611
14612    lt_cv_dlopen=dyld
14613    lt_cv_dlopen_libs=
14614    lt_cv_dlopen_self=yes
14615
14616fi
14617
14618    ;;
14619
14620  tpf*)
14621    # Don't try to run any link tests for TPF.  We know it's impossible
14622    # because TPF is a cross-compiler, and we know how we open DSOs.
14623    lt_cv_dlopen=dlopen
14624    lt_cv_dlopen_libs=
14625    lt_cv_dlopen_self=no
14626    ;;
14627
14628  *)
14629    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14630if test "x$ac_cv_func_shl_load" = xyes; then :
14631  lt_cv_dlopen=shl_load
14632else
14633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14634$as_echo_n "checking for shl_load in -ldld... " >&6; }
14635if ${ac_cv_lib_dld_shl_load+:} false; then :
14636  $as_echo_n "(cached) " >&6
14637else
14638  ac_check_lib_save_LIBS=$LIBS
14639LIBS="-ldld  $LIBS"
14640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h.  */
14642
14643/* Override any GCC internal prototype to avoid an error.
14644   Use char because int might match the return type of a GCC
14645   builtin and then its argument prototype would still apply.  */
14646#ifdef __cplusplus
14647extern "C"
14648#endif
14649char shl_load ();
14650int
14651main ()
14652{
14653return shl_load ();
14654  ;
14655  return 0;
14656}
14657_ACEOF
14658if ac_fn_c_try_link "$LINENO"; then :
14659  ac_cv_lib_dld_shl_load=yes
14660else
14661  ac_cv_lib_dld_shl_load=no
14662fi
14663rm -f core conftest.err conftest.$ac_objext \
14664    conftest$ac_exeext conftest.$ac_ext
14665LIBS=$ac_check_lib_save_LIBS
14666fi
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14668$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14669if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14670  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14671else
14672  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14673if test "x$ac_cv_func_dlopen" = xyes; then :
14674  lt_cv_dlopen=dlopen
14675else
14676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14677$as_echo_n "checking for dlopen in -ldl... " >&6; }
14678if ${ac_cv_lib_dl_dlopen+:} false; then :
14679  $as_echo_n "(cached) " >&6
14680else
14681  ac_check_lib_save_LIBS=$LIBS
14682LIBS="-ldl  $LIBS"
14683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h.  */
14685
14686/* Override any GCC internal prototype to avoid an error.
14687   Use char because int might match the return type of a GCC
14688   builtin and then its argument prototype would still apply.  */
14689#ifdef __cplusplus
14690extern "C"
14691#endif
14692char dlopen ();
14693int
14694main ()
14695{
14696return dlopen ();
14697  ;
14698  return 0;
14699}
14700_ACEOF
14701if ac_fn_c_try_link "$LINENO"; then :
14702  ac_cv_lib_dl_dlopen=yes
14703else
14704  ac_cv_lib_dl_dlopen=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext \
14707    conftest$ac_exeext conftest.$ac_ext
14708LIBS=$ac_check_lib_save_LIBS
14709fi
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14711$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14712if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14713  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14714else
14715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14716$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14717if ${ac_cv_lib_svld_dlopen+:} false; then :
14718  $as_echo_n "(cached) " >&6
14719else
14720  ac_check_lib_save_LIBS=$LIBS
14721LIBS="-lsvld  $LIBS"
14722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723/* end confdefs.h.  */
14724
14725/* Override any GCC internal prototype to avoid an error.
14726   Use char because int might match the return type of a GCC
14727   builtin and then its argument prototype would still apply.  */
14728#ifdef __cplusplus
14729extern "C"
14730#endif
14731char dlopen ();
14732int
14733main ()
14734{
14735return dlopen ();
14736  ;
14737  return 0;
14738}
14739_ACEOF
14740if ac_fn_c_try_link "$LINENO"; then :
14741  ac_cv_lib_svld_dlopen=yes
14742else
14743  ac_cv_lib_svld_dlopen=no
14744fi
14745rm -f core conftest.err conftest.$ac_objext \
14746    conftest$ac_exeext conftest.$ac_ext
14747LIBS=$ac_check_lib_save_LIBS
14748fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14750$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14751if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14752  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14753else
14754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14755$as_echo_n "checking for dld_link in -ldld... " >&6; }
14756if ${ac_cv_lib_dld_dld_link+:} false; then :
14757  $as_echo_n "(cached) " >&6
14758else
14759  ac_check_lib_save_LIBS=$LIBS
14760LIBS="-ldld  $LIBS"
14761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762/* end confdefs.h.  */
14763
14764/* Override any GCC internal prototype to avoid an error.
14765   Use char because int might match the return type of a GCC
14766   builtin and then its argument prototype would still apply.  */
14767#ifdef __cplusplus
14768extern "C"
14769#endif
14770char dld_link ();
14771int
14772main ()
14773{
14774return dld_link ();
14775  ;
14776  return 0;
14777}
14778_ACEOF
14779if ac_fn_c_try_link "$LINENO"; then :
14780  ac_cv_lib_dld_dld_link=yes
14781else
14782  ac_cv_lib_dld_dld_link=no
14783fi
14784rm -f core conftest.err conftest.$ac_objext \
14785    conftest$ac_exeext conftest.$ac_ext
14786LIBS=$ac_check_lib_save_LIBS
14787fi
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14789$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14790if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14791  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14792fi
14793
14794
14795fi
14796
14797
14798fi
14799
14800
14801fi
14802
14803
14804fi
14805
14806
14807fi
14808
14809    ;;
14810  esac
14811
14812  if test no = "$lt_cv_dlopen"; then
14813    enable_dlopen=no
14814  else
14815    enable_dlopen=yes
14816  fi
14817
14818  case $lt_cv_dlopen in
14819  dlopen)
14820    save_CPPFLAGS=$CPPFLAGS
14821    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14822
14823    save_LDFLAGS=$LDFLAGS
14824    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14825
14826    save_LIBS=$LIBS
14827    LIBS="$lt_cv_dlopen_libs $LIBS"
14828
14829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14830$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14831if ${lt_cv_dlopen_self+:} false; then :
14832  $as_echo_n "(cached) " >&6
14833else
14834  	  if test yes = "$cross_compiling"; then :
14835  lt_cv_dlopen_self=cross
14836else
14837  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14838  lt_status=$lt_dlunknown
14839  cat > conftest.$ac_ext <<_LT_EOF
14840#line $LINENO "configure"
14841#include "confdefs.h"
14842
14843#if HAVE_DLFCN_H
14844#include <dlfcn.h>
14845#endif
14846
14847#include <stdio.h>
14848
14849#ifdef RTLD_GLOBAL
14850#  define LT_DLGLOBAL		RTLD_GLOBAL
14851#else
14852#  ifdef DL_GLOBAL
14853#    define LT_DLGLOBAL		DL_GLOBAL
14854#  else
14855#    define LT_DLGLOBAL		0
14856#  endif
14857#endif
14858
14859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14860   find out it does not work in some platform. */
14861#ifndef LT_DLLAZY_OR_NOW
14862#  ifdef RTLD_LAZY
14863#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14864#  else
14865#    ifdef DL_LAZY
14866#      define LT_DLLAZY_OR_NOW		DL_LAZY
14867#    else
14868#      ifdef RTLD_NOW
14869#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14870#      else
14871#        ifdef DL_NOW
14872#          define LT_DLLAZY_OR_NOW	DL_NOW
14873#        else
14874#          define LT_DLLAZY_OR_NOW	0
14875#        endif
14876#      endif
14877#    endif
14878#  endif
14879#endif
14880
14881/* When -fvisibility=hidden is used, assume the code has been annotated
14882   correspondingly for the symbols needed.  */
14883#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14884int fnord () __attribute__((visibility("default")));
14885#endif
14886
14887int fnord () { return 42; }
14888int main ()
14889{
14890  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14891  int status = $lt_dlunknown;
14892
14893  if (self)
14894    {
14895      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14896      else
14897        {
14898	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14899          else puts (dlerror ());
14900	}
14901      /* dlclose (self); */
14902    }
14903  else
14904    puts (dlerror ());
14905
14906  return status;
14907}
14908_LT_EOF
14909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14910  (eval $ac_link) 2>&5
14911  ac_status=$?
14912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14914    (./conftest; exit; ) >&5 2>/dev/null
14915    lt_status=$?
14916    case x$lt_status in
14917      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14918      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14919      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14920    esac
14921  else :
14922    # compilation failed
14923    lt_cv_dlopen_self=no
14924  fi
14925fi
14926rm -fr conftest*
14927
14928
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14931$as_echo "$lt_cv_dlopen_self" >&6; }
14932
14933    if test yes = "$lt_cv_dlopen_self"; then
14934      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14936$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14937if ${lt_cv_dlopen_self_static+:} false; then :
14938  $as_echo_n "(cached) " >&6
14939else
14940  	  if test yes = "$cross_compiling"; then :
14941  lt_cv_dlopen_self_static=cross
14942else
14943  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14944  lt_status=$lt_dlunknown
14945  cat > conftest.$ac_ext <<_LT_EOF
14946#line $LINENO "configure"
14947#include "confdefs.h"
14948
14949#if HAVE_DLFCN_H
14950#include <dlfcn.h>
14951#endif
14952
14953#include <stdio.h>
14954
14955#ifdef RTLD_GLOBAL
14956#  define LT_DLGLOBAL		RTLD_GLOBAL
14957#else
14958#  ifdef DL_GLOBAL
14959#    define LT_DLGLOBAL		DL_GLOBAL
14960#  else
14961#    define LT_DLGLOBAL		0
14962#  endif
14963#endif
14964
14965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14966   find out it does not work in some platform. */
14967#ifndef LT_DLLAZY_OR_NOW
14968#  ifdef RTLD_LAZY
14969#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14970#  else
14971#    ifdef DL_LAZY
14972#      define LT_DLLAZY_OR_NOW		DL_LAZY
14973#    else
14974#      ifdef RTLD_NOW
14975#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14976#      else
14977#        ifdef DL_NOW
14978#          define LT_DLLAZY_OR_NOW	DL_NOW
14979#        else
14980#          define LT_DLLAZY_OR_NOW	0
14981#        endif
14982#      endif
14983#    endif
14984#  endif
14985#endif
14986
14987/* When -fvisibility=hidden is used, assume the code has been annotated
14988   correspondingly for the symbols needed.  */
14989#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14990int fnord () __attribute__((visibility("default")));
14991#endif
14992
14993int fnord () { return 42; }
14994int main ()
14995{
14996  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14997  int status = $lt_dlunknown;
14998
14999  if (self)
15000    {
15001      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15002      else
15003        {
15004	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15005          else puts (dlerror ());
15006	}
15007      /* dlclose (self); */
15008    }
15009  else
15010    puts (dlerror ());
15011
15012  return status;
15013}
15014_LT_EOF
15015  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15016  (eval $ac_link) 2>&5
15017  ac_status=$?
15018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15020    (./conftest; exit; ) >&5 2>/dev/null
15021    lt_status=$?
15022    case x$lt_status in
15023      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15024      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15025      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15026    esac
15027  else :
15028    # compilation failed
15029    lt_cv_dlopen_self_static=no
15030  fi
15031fi
15032rm -fr conftest*
15033
15034
15035fi
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15037$as_echo "$lt_cv_dlopen_self_static" >&6; }
15038    fi
15039
15040    CPPFLAGS=$save_CPPFLAGS
15041    LDFLAGS=$save_LDFLAGS
15042    LIBS=$save_LIBS
15043    ;;
15044  esac
15045
15046  case $lt_cv_dlopen_self in
15047  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15048  *) enable_dlopen_self=unknown ;;
15049  esac
15050
15051  case $lt_cv_dlopen_self_static in
15052  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15053  *) enable_dlopen_self_static=unknown ;;
15054  esac
15055fi
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073striplib=
15074old_striplib=
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15076$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15077if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15078  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15079  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15081$as_echo "yes" >&6; }
15082else
15083# FIXME - insert some real tests, host_os isn't really good enough
15084  case $host_os in
15085  darwin*)
15086    if test -n "$STRIP"; then
15087      striplib="$STRIP -x"
15088      old_striplib="$STRIP -S"
15089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15090$as_echo "yes" >&6; }
15091    else
15092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093$as_echo "no" >&6; }
15094    fi
15095    ;;
15096  *)
15097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098$as_echo "no" >&6; }
15099    ;;
15100  esac
15101fi
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114  # Report what library types will actually be built
15115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15116$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15118$as_echo "$can_build_shared" >&6; }
15119
15120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15121$as_echo_n "checking whether to build shared libraries... " >&6; }
15122  test no = "$can_build_shared" && enable_shared=no
15123
15124  # On AIX, shared libraries and static libraries use the same namespace, and
15125  # are all built from PIC.
15126  case $host_os in
15127  aix3*)
15128    test yes = "$enable_shared" && enable_static=no
15129    if test -n "$RANLIB"; then
15130      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15131      postinstall_cmds='$RANLIB $lib'
15132    fi
15133    ;;
15134
15135  aix[4-9]*)
15136    if test ia64 != "$host_cpu"; then
15137      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15138      yes,aix,yes) ;;			# shared object as lib.so file only
15139      yes,svr4,*) ;;			# shared object as lib.so archive member only
15140      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15141      esac
15142    fi
15143    ;;
15144  esac
15145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15146$as_echo "$enable_shared" >&6; }
15147
15148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15149$as_echo_n "checking whether to build static libraries... " >&6; }
15150  # Make sure either enable_shared or enable_static is yes.
15151  test yes = "$enable_shared" || enable_static=yes
15152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15153$as_echo "$enable_static" >&6; }
15154
15155
15156
15157
15158fi
15159ac_ext=c
15160ac_cpp='$CPP $CPPFLAGS'
15161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163ac_compiler_gnu=$ac_cv_c_compiler_gnu
15164
15165CC=$lt_save_CC
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181        ac_config_commands="$ac_config_commands libtool"
15182
15183
15184
15185
15186# Only expand once:
15187
15188
15189
15190if test -n "$ac_tool_prefix"; then
15191  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15192set dummy ${ac_tool_prefix}windres; ac_word=$2
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194$as_echo_n "checking for $ac_word... " >&6; }
15195if ${ac_cv_prog_RC+:} false; then :
15196  $as_echo_n "(cached) " >&6
15197else
15198  if test -n "$RC"; then
15199  ac_cv_prog_RC="$RC" # Let the user override the test.
15200else
15201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202for as_dir in $PATH
15203do
15204  IFS=$as_save_IFS
15205  test -z "$as_dir" && as_dir=.
15206    for ac_exec_ext in '' $ac_executable_extensions; do
15207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208    ac_cv_prog_RC="${ac_tool_prefix}windres"
15209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210    break 2
15211  fi
15212done
15213  done
15214IFS=$as_save_IFS
15215
15216fi
15217fi
15218RC=$ac_cv_prog_RC
15219if test -n "$RC"; then
15220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15221$as_echo "$RC" >&6; }
15222else
15223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224$as_echo "no" >&6; }
15225fi
15226
15227
15228fi
15229if test -z "$ac_cv_prog_RC"; then
15230  ac_ct_RC=$RC
15231  # Extract the first word of "windres", so it can be a program name with args.
15232set dummy windres; ac_word=$2
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15234$as_echo_n "checking for $ac_word... " >&6; }
15235if ${ac_cv_prog_ac_ct_RC+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  if test -n "$ac_ct_RC"; then
15239  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15240else
15241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242for as_dir in $PATH
15243do
15244  IFS=$as_save_IFS
15245  test -z "$as_dir" && as_dir=.
15246    for ac_exec_ext in '' $ac_executable_extensions; do
15247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15248    ac_cv_prog_ac_ct_RC="windres"
15249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15250    break 2
15251  fi
15252done
15253  done
15254IFS=$as_save_IFS
15255
15256fi
15257fi
15258ac_ct_RC=$ac_cv_prog_ac_ct_RC
15259if test -n "$ac_ct_RC"; then
15260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15261$as_echo "$ac_ct_RC" >&6; }
15262else
15263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264$as_echo "no" >&6; }
15265fi
15266
15267  if test "x$ac_ct_RC" = x; then
15268    RC=""
15269  else
15270    case $cross_compiling:$ac_tool_warned in
15271yes:)
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15274ac_tool_warned=yes ;;
15275esac
15276    RC=$ac_ct_RC
15277  fi
15278else
15279  RC="$ac_cv_prog_RC"
15280fi
15281
15282
15283
15284
15285# Source file extension for RC test sources.
15286ac_ext=rc
15287
15288# Object file extension for compiled RC test sources.
15289objext=o
15290objext_RC=$objext
15291
15292# Code to be used in simple compile tests
15293lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15294
15295# Code to be used in simple link tests
15296lt_simple_link_test_code=$lt_simple_compile_test_code
15297
15298# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15299
15300
15301
15302
15303
15304
15305# If no C compiler was specified, use CC.
15306LTCC=${LTCC-"$CC"}
15307
15308# If no C compiler flags were specified, use CFLAGS.
15309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15310
15311# Allow CC to be a program name with arguments.
15312compiler=$CC
15313
15314
15315# save warnings/boilerplate of simple test code
15316ac_outfile=conftest.$ac_objext
15317echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15319_lt_compiler_boilerplate=`cat conftest.err`
15320$RM conftest*
15321
15322ac_outfile=conftest.$ac_objext
15323echo "$lt_simple_link_test_code" >conftest.$ac_ext
15324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15325_lt_linker_boilerplate=`cat conftest.err`
15326$RM -r conftest*
15327
15328
15329# Allow CC to be a program name with arguments.
15330lt_save_CC=$CC
15331lt_save_CFLAGS=$CFLAGS
15332lt_save_GCC=$GCC
15333GCC=
15334CC=${RC-"windres"}
15335CFLAGS=
15336compiler=$CC
15337compiler_RC=$CC
15338func_cc_basename $compiler
15339cc_basename=$func_cc_basename_result
15340
15341lt_cv_prog_compiler_c_o_RC=yes
15342
15343if test -n "$compiler"; then
15344  :
15345
15346
15347
15348fi
15349
15350GCC=$lt_save_GCC
15351ac_ext=c
15352ac_cpp='$CPP $CPPFLAGS'
15353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15355ac_compiler_gnu=$ac_cv_c_compiler_gnu
15356
15357CC=$lt_save_CC
15358CFLAGS=$lt_save_CFLAGS
15359
15360
15361case "$host_os" in
15362  mingw* | cygwin*) is_woe32=yes ;;
15363  *) is_woe32=no ;;
15364esac
15365 if test $is_woe32 = yes; then
15366  WOE32_TRUE=
15367  WOE32_FALSE='#'
15368else
15369  WOE32_TRUE='#'
15370  WOE32_FALSE=
15371fi
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383                        # Check whether --enable-cross-guesses was given.
15384if test "${enable_cross_guesses+set}" = set; then :
15385  enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
15386       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
15387$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
15388       enableval=conservative
15389     fi
15390     gl_cross_guesses="$enableval"
15391else
15392  gl_cross_guesses=conservative
15393fi
15394
15395  if test $gl_cross_guesses = risky; then
15396    gl_cross_guess_normal="guessing yes"
15397    gl_cross_guess_inverted="guessing no"
15398  else
15399    gl_cross_guess_normal="guessing no"
15400    gl_cross_guess_inverted="guessing yes"
15401  fi
15402          LIBC_FATAL_STDERR_=1
15403  export LIBC_FATAL_STDERR_
15404
15405
15406ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15407if test "x$ac_cv_type_size_t" = xyes; then :
15408
15409else
15410
15411cat >>confdefs.h <<_ACEOF
15412#define size_t unsigned int
15413_ACEOF
15414
15415fi
15416
15417# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15418# for constant arguments.  Useless!
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15420$as_echo_n "checking for working alloca.h... " >&6; }
15421if ${ac_cv_working_alloca_h+:} false; then :
15422  $as_echo_n "(cached) " >&6
15423else
15424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425/* end confdefs.h.  */
15426#include <alloca.h>
15427int
15428main ()
15429{
15430char *p = (char *) alloca (2 * sizeof (int));
15431			  if (p) return 0;
15432  ;
15433  return 0;
15434}
15435_ACEOF
15436if ac_fn_c_try_link "$LINENO"; then :
15437  ac_cv_working_alloca_h=yes
15438else
15439  ac_cv_working_alloca_h=no
15440fi
15441rm -f core conftest.err conftest.$ac_objext \
15442    conftest$ac_exeext conftest.$ac_ext
15443fi
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15445$as_echo "$ac_cv_working_alloca_h" >&6; }
15446if test $ac_cv_working_alloca_h = yes; then
15447
15448$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15449
15450fi
15451
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15453$as_echo_n "checking for alloca... " >&6; }
15454if ${ac_cv_func_alloca_works+:} false; then :
15455  $as_echo_n "(cached) " >&6
15456else
15457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458/* end confdefs.h.  */
15459#ifdef __GNUC__
15460# define alloca __builtin_alloca
15461#else
15462# ifdef _MSC_VER
15463#  include <malloc.h>
15464#  define alloca _alloca
15465# else
15466#  ifdef HAVE_ALLOCA_H
15467#   include <alloca.h>
15468#  else
15469#   ifdef _AIX
15470 #pragma alloca
15471#   else
15472#    ifndef alloca /* predefined by HP cc +Olibcalls */
15473void *alloca (size_t);
15474#    endif
15475#   endif
15476#  endif
15477# endif
15478#endif
15479
15480int
15481main ()
15482{
15483char *p = (char *) alloca (1);
15484				    if (p) return 0;
15485  ;
15486  return 0;
15487}
15488_ACEOF
15489if ac_fn_c_try_link "$LINENO"; then :
15490  ac_cv_func_alloca_works=yes
15491else
15492  ac_cv_func_alloca_works=no
15493fi
15494rm -f core conftest.err conftest.$ac_objext \
15495    conftest$ac_exeext conftest.$ac_ext
15496fi
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15498$as_echo "$ac_cv_func_alloca_works" >&6; }
15499
15500if test $ac_cv_func_alloca_works = yes; then
15501
15502$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15503
15504else
15505  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15506# that cause trouble.  Some versions do not even contain alloca or
15507# contain a buggy version.  If you still want to use their alloca,
15508# use ar to extract alloca.o from them instead of compiling alloca.c.
15509
15510
15511
15512
15513
15514ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15515
15516$as_echo "#define C_ALLOCA 1" >>confdefs.h
15517
15518
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15520$as_echo_n "checking stack direction for C alloca... " >&6; }
15521if ${ac_cv_c_stack_direction+:} false; then :
15522  $as_echo_n "(cached) " >&6
15523else
15524  if test "$cross_compiling" = yes; then :
15525  ac_cv_c_stack_direction=0
15526else
15527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528/* end confdefs.h.  */
15529$ac_includes_default
15530int
15531find_stack_direction (int *addr, int depth)
15532{
15533  int dir, dummy = 0;
15534  if (! addr)
15535    addr = &dummy;
15536  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15537  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15538  return dir + dummy;
15539}
15540
15541int
15542main (int argc, char **argv)
15543{
15544  return find_stack_direction (0, argc + !argv + 20) < 0;
15545}
15546_ACEOF
15547if ac_fn_c_try_run "$LINENO"; then :
15548  ac_cv_c_stack_direction=1
15549else
15550  ac_cv_c_stack_direction=-1
15551fi
15552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15553  conftest.$ac_objext conftest.beam conftest.$ac_ext
15554fi
15555
15556fi
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15558$as_echo "$ac_cv_c_stack_direction" >&6; }
15559cat >>confdefs.h <<_ACEOF
15560#define STACK_DIRECTION $ac_cv_c_stack_direction
15561_ACEOF
15562
15563
15564fi
15565
15566
15567  GNULIB_ACCESS=0;
15568  GNULIB_CHDIR=0;
15569  GNULIB_CHOWN=0;
15570  GNULIB_CLOSE=0;
15571  GNULIB_COPY_FILE_RANGE=0;
15572  GNULIB_DUP=0;
15573  GNULIB_DUP2=0;
15574  GNULIB_DUP3=0;
15575  GNULIB_ENVIRON=0;
15576  GNULIB_EUIDACCESS=0;
15577  GNULIB_FACCESSAT=0;
15578  GNULIB_FCHDIR=0;
15579  GNULIB_FCHOWNAT=0;
15580  GNULIB_FDATASYNC=0;
15581  GNULIB_FSYNC=0;
15582  GNULIB_FTRUNCATE=0;
15583  GNULIB_GETCWD=0;
15584  GNULIB_GETDOMAINNAME=0;
15585  GNULIB_GETDTABLESIZE=0;
15586  GNULIB_GETENTROPY=0;
15587  GNULIB_GETGROUPS=0;
15588  GNULIB_GETHOSTNAME=0;
15589  GNULIB_GETLOGIN=0;
15590  GNULIB_GETLOGIN_R=0;
15591  GNULIB_GETOPT_POSIX=0;
15592  GNULIB_GETPAGESIZE=0;
15593  GNULIB_GETPASS=0;
15594  GNULIB_GETUSERSHELL=0;
15595  GNULIB_GROUP_MEMBER=0;
15596  GNULIB_ISATTY=0;
15597  GNULIB_LCHOWN=0;
15598  GNULIB_LINK=0;
15599  GNULIB_LINKAT=0;
15600  GNULIB_LSEEK=0;
15601  GNULIB_PIPE=0;
15602  GNULIB_PIPE2=0;
15603  GNULIB_PREAD=0;
15604  GNULIB_PWRITE=0;
15605  GNULIB_READ=0;
15606  GNULIB_READLINK=0;
15607  GNULIB_READLINKAT=0;
15608  GNULIB_RMDIR=0;
15609  GNULIB_SETHOSTNAME=0;
15610  GNULIB_SLEEP=0;
15611  GNULIB_SYMLINK=0;
15612  GNULIB_SYMLINKAT=0;
15613  GNULIB_TRUNCATE=0;
15614  GNULIB_TTYNAME_R=0;
15615  GNULIB_UNISTD_H_NONBLOCKING=0;
15616  GNULIB_UNISTD_H_SIGPIPE=0;
15617  GNULIB_UNLINK=0;
15618  GNULIB_UNLINKAT=0;
15619  GNULIB_USLEEP=0;
15620  GNULIB_WRITE=0;
15621    HAVE_CHOWN=1;
15622  HAVE_COPY_FILE_RANGE=1;
15623  HAVE_DUP3=1;
15624  HAVE_EUIDACCESS=1;
15625  HAVE_FACCESSAT=1;
15626  HAVE_FCHDIR=1;
15627  HAVE_FCHOWNAT=1;
15628  HAVE_FDATASYNC=1;
15629  HAVE_FSYNC=1;
15630  HAVE_FTRUNCATE=1;
15631  HAVE_GETDTABLESIZE=1;
15632  HAVE_GETENTROPY=1;
15633  HAVE_GETGROUPS=1;
15634  HAVE_GETHOSTNAME=1;
15635  HAVE_GETLOGIN=1;
15636  HAVE_GETPAGESIZE=1;
15637  HAVE_GETPASS=1;
15638  HAVE_GROUP_MEMBER=1;
15639  HAVE_LCHOWN=1;
15640  HAVE_LINK=1;
15641  HAVE_LINKAT=1;
15642  HAVE_PIPE=1;
15643  HAVE_PIPE2=1;
15644  HAVE_PREAD=1;
15645  HAVE_PWRITE=1;
15646  HAVE_READLINK=1;
15647  HAVE_READLINKAT=1;
15648  HAVE_SETHOSTNAME=1;
15649  HAVE_SLEEP=1;
15650  HAVE_SYMLINK=1;
15651  HAVE_SYMLINKAT=1;
15652  HAVE_UNLINKAT=1;
15653  HAVE_USLEEP=1;
15654  HAVE_DECL_ENVIRON=1;
15655  HAVE_DECL_FCHDIR=1;
15656  HAVE_DECL_FDATASYNC=1;
15657  HAVE_DECL_GETDOMAINNAME=1;
15658  HAVE_DECL_GETLOGIN=1;
15659  HAVE_DECL_GETLOGIN_R=1;
15660  HAVE_DECL_GETPAGESIZE=1;
15661  HAVE_DECL_GETUSERSHELL=1;
15662  HAVE_DECL_SETHOSTNAME=1;
15663  HAVE_DECL_TRUNCATE=1;
15664  HAVE_DECL_TTYNAME_R=1;
15665  HAVE_OS_H=0;
15666  HAVE_SYS_PARAM_H=0;
15667  REPLACE_ACCESS=0;
15668  REPLACE_CHOWN=0;
15669  REPLACE_CLOSE=0;
15670  REPLACE_DUP=0;
15671  REPLACE_DUP2=0;
15672  REPLACE_FACCESSAT=0;
15673  REPLACE_FCHOWNAT=0;
15674  REPLACE_FTRUNCATE=0;
15675  REPLACE_GETCWD=0;
15676  REPLACE_GETDOMAINNAME=0;
15677  REPLACE_GETDTABLESIZE=0;
15678  REPLACE_GETLOGIN_R=0;
15679  REPLACE_GETGROUPS=0;
15680  REPLACE_GETPAGESIZE=0;
15681  REPLACE_GETPASS=0;
15682  REPLACE_ISATTY=0;
15683  REPLACE_LCHOWN=0;
15684  REPLACE_LINK=0;
15685  REPLACE_LINKAT=0;
15686  REPLACE_LSEEK=0;
15687  REPLACE_PREAD=0;
15688  REPLACE_PWRITE=0;
15689  REPLACE_READ=0;
15690  REPLACE_READLINK=0;
15691  REPLACE_READLINKAT=0;
15692  REPLACE_RMDIR=0;
15693  REPLACE_SLEEP=0;
15694  REPLACE_SYMLINK=0;
15695  REPLACE_SYMLINKAT=0;
15696  REPLACE_TRUNCATE=0;
15697  REPLACE_TTYNAME_R=0;
15698  REPLACE_UNLINK=0;
15699  REPLACE_UNLINKAT=0;
15700  REPLACE_USLEEP=0;
15701  REPLACE_WRITE=0;
15702  UNISTD_H_HAVE_SYS_RANDOM_H=0;
15703  UNISTD_H_HAVE_WINSOCK2_H=0;
15704  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15705
15706
15707
15708
15709
15710  for ac_func in $ac_func_list
15711do :
15712  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15713ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15714if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15715  cat >>confdefs.h <<_ACEOF
15716#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15717_ACEOF
15718
15719fi
15720done
15721
15722
15723
15724
15725
15726  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
15727    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
15728
15729$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
15730
15731  else
15732    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
15733  fi
15734
15735
15736
15737
15738
15739  for ac_header in $ac_header_list
15740do :
15741  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15743"
15744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15745  cat >>confdefs.h <<_ACEOF
15746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15747_ACEOF
15748
15749fi
15750
15751done
15752
15753
15754
15755
15756
15757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15758$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15759if ${gl_cv_have_include_next+:} false; then :
15760  $as_echo_n "(cached) " >&6
15761else
15762  rm -rf conftestd1a conftestd1b conftestd2
15763     mkdir conftestd1a conftestd1b conftestd2
15764                                                  cat <<EOF > conftestd1a/conftest.h
15765#define DEFINED_IN_CONFTESTD1
15766#include_next <conftest.h>
15767#ifdef DEFINED_IN_CONFTESTD2
15768int foo;
15769#else
15770#error "include_next doesn't work"
15771#endif
15772EOF
15773     cat <<EOF > conftestd1b/conftest.h
15774#define DEFINED_IN_CONFTESTD1
15775#include <stdio.h>
15776#include_next <conftest.h>
15777#ifdef DEFINED_IN_CONFTESTD2
15778int foo;
15779#else
15780#error "include_next doesn't work"
15781#endif
15782EOF
15783     cat <<EOF > conftestd2/conftest.h
15784#ifndef DEFINED_IN_CONFTESTD1
15785#error "include_next test doesn't work"
15786#endif
15787#define DEFINED_IN_CONFTESTD2
15788EOF
15789     gl_save_CPPFLAGS="$CPPFLAGS"
15790     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15791     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792/* end confdefs.h.  */
15793#include <conftest.h>
15794_ACEOF
15795if ac_fn_c_try_compile "$LINENO"; then :
15796  gl_cv_have_include_next=yes
15797else
15798  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15799        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800/* end confdefs.h.  */
15801#include <conftest.h>
15802_ACEOF
15803if ac_fn_c_try_compile "$LINENO"; then :
15804  gl_cv_have_include_next=buggy
15805else
15806  gl_cv_have_include_next=no
15807fi
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812     CPPFLAGS="$gl_save_CPPFLAGS"
15813     rm -rf conftestd1a conftestd1b conftestd2
15814
15815fi
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15817$as_echo "$gl_cv_have_include_next" >&6; }
15818  PRAGMA_SYSTEM_HEADER=
15819  if test $gl_cv_have_include_next = yes; then
15820    INCLUDE_NEXT=include_next
15821    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15822    if test -n "$GCC"; then
15823      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15824    fi
15825  else
15826    if test $gl_cv_have_include_next = buggy; then
15827      INCLUDE_NEXT=include
15828      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15829    else
15830      INCLUDE_NEXT=include
15831      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15832    fi
15833  fi
15834
15835
15836
15837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15838$as_echo_n "checking whether system header files limit the line length... " >&6; }
15839if ${gl_cv_pragma_columns+:} false; then :
15840  $as_echo_n "(cached) " >&6
15841else
15842       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844
15845#ifdef __TANDEM
15846choke me
15847#endif
15848
15849_ACEOF
15850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15851  $EGREP "choke me" >/dev/null 2>&1; then :
15852  gl_cv_pragma_columns=yes
15853else
15854  gl_cv_pragma_columns=no
15855fi
15856rm -f conftest*
15857
15858
15859fi
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15861$as_echo "$gl_cv_pragma_columns" >&6; }
15862  if test $gl_cv_pragma_columns = yes; then
15863    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15864  else
15865    PRAGMA_COLUMNS=
15866  fi
15867
15868
15869
15870
15871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15872$as_echo_n "checking for complete errno.h... " >&6; }
15873if ${gl_cv_header_errno_h_complete+:} false; then :
15874  $as_echo_n "(cached) " >&6
15875else
15876
15877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h.  */
15879
15880#include <errno.h>
15881#if !defined ETXTBSY
15882booboo
15883#endif
15884#if !defined ENOMSG
15885booboo
15886#endif
15887#if !defined EIDRM
15888booboo
15889#endif
15890#if !defined ENOLINK
15891booboo
15892#endif
15893#if !defined EPROTO
15894booboo
15895#endif
15896#if !defined EMULTIHOP
15897booboo
15898#endif
15899#if !defined EBADMSG
15900booboo
15901#endif
15902#if !defined EOVERFLOW
15903booboo
15904#endif
15905#if !defined ENOTSUP
15906booboo
15907#endif
15908#if !defined ENETRESET
15909booboo
15910#endif
15911#if !defined ECONNABORTED
15912booboo
15913#endif
15914#if !defined ESTALE
15915booboo
15916#endif
15917#if !defined EDQUOT
15918booboo
15919#endif
15920#if !defined ECANCELED
15921booboo
15922#endif
15923#if !defined EOWNERDEAD
15924booboo
15925#endif
15926#if !defined ENOTRECOVERABLE
15927booboo
15928#endif
15929#if !defined EILSEQ
15930booboo
15931#endif
15932
15933_ACEOF
15934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15935  $EGREP "booboo" >/dev/null 2>&1; then :
15936  gl_cv_header_errno_h_complete=no
15937else
15938  gl_cv_header_errno_h_complete=yes
15939fi
15940rm -f conftest*
15941
15942
15943fi
15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15945$as_echo "$gl_cv_header_errno_h_complete" >&6; }
15946  if test $gl_cv_header_errno_h_complete = yes; then
15947    ERRNO_H=''
15948  else
15949
15950
15951
15952
15953
15954
15955
15956
15957     if test $gl_cv_have_include_next = yes; then
15958       gl_cv_next_errno_h='<'errno.h'>'
15959     else
15960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15961$as_echo_n "checking absolute name of <errno.h>... " >&6; }
15962if ${gl_cv_next_errno_h+:} false; then :
15963  $as_echo_n "(cached) " >&6
15964else
15965
15966
15967
15968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969/* end confdefs.h.  */
15970#include <errno.h>
15971_ACEOF
15972                case "$host_os" in
15973    aix*) gl_absname_cpp="$ac_cpp -C" ;;
15974    *)    gl_absname_cpp="$ac_cpp" ;;
15975  esac
15976
15977  case "$host_os" in
15978    mingw*)
15979                                          gl_dirsep_regex='[/\\]'
15980      ;;
15981    *)
15982      gl_dirsep_regex='\/'
15983      ;;
15984  esac
15985      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15986  gl_header_literal_regex=`echo 'errno.h' \
15987                           | sed -e "$gl_make_literal_regex_sed"`
15988  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15989      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15990      s|^/[^/]|//&|
15991      p
15992      q
15993    }'
15994
15995        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15996  sed -n "$gl_absolute_header_sed"`
15997
15998           gl_header=$gl_cv_absolute_errno_h
15999           gl_cv_next_errno_h='"'$gl_header'"'
16000
16001
16002fi
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16004$as_echo "$gl_cv_next_errno_h" >&6; }
16005     fi
16006     NEXT_ERRNO_H=$gl_cv_next_errno_h
16007
16008     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16009       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16010       gl_next_as_first_directive='<'errno.h'>'
16011     else
16012       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16013       gl_next_as_first_directive=$gl_cv_next_errno_h
16014     fi
16015     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16016
16017
16018
16019
16020    ERRNO_H='errno.h'
16021  fi
16022
16023   if test -n "$ERRNO_H"; then
16024  GL_GENERATE_ERRNO_H_TRUE=
16025  GL_GENERATE_ERRNO_H_FALSE='#'
16026else
16027  GL_GENERATE_ERRNO_H_TRUE='#'
16028  GL_GENERATE_ERRNO_H_FALSE=
16029fi
16030
16031
16032  if test -n "$ERRNO_H"; then
16033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16034$as_echo_n "checking for EMULTIHOP value... " >&6; }
16035if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038
16039      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h.  */
16041
16042#include <errno.h>
16043#ifdef EMULTIHOP
16044yes
16045#endif
16046
16047_ACEOF
16048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16049  $EGREP "yes" >/dev/null 2>&1; then :
16050  gl_cv_header_errno_h_EMULTIHOP=yes
16051else
16052  gl_cv_header_errno_h_EMULTIHOP=no
16053fi
16054rm -f conftest*
16055
16056      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16057        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058/* end confdefs.h.  */
16059
16060#define _XOPEN_SOURCE_EXTENDED 1
16061#include <errno.h>
16062#ifdef EMULTIHOP
16063yes
16064#endif
16065
16066_ACEOF
16067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16068  $EGREP "yes" >/dev/null 2>&1; then :
16069  gl_cv_header_errno_h_EMULTIHOP=hidden
16070fi
16071rm -f conftest*
16072
16073        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16074                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16075#define _XOPEN_SOURCE_EXTENDED 1
16076#include <errno.h>
16077/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16078#include <stdio.h>
16079#include <stdlib.h>
16080"; then :
16081
16082fi
16083
16084        fi
16085      fi
16086
16087fi
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16089$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16090    case $gl_cv_header_errno_h_EMULTIHOP in
16091      yes | no)
16092        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16093        ;;
16094      *)
16095        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16096        ;;
16097    esac
16098
16099
16100  fi
16101
16102
16103  if test -n "$ERRNO_H"; then
16104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16105$as_echo_n "checking for ENOLINK value... " >&6; }
16106if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16107  $as_echo_n "(cached) " >&6
16108else
16109
16110      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111/* end confdefs.h.  */
16112
16113#include <errno.h>
16114#ifdef ENOLINK
16115yes
16116#endif
16117
16118_ACEOF
16119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16120  $EGREP "yes" >/dev/null 2>&1; then :
16121  gl_cv_header_errno_h_ENOLINK=yes
16122else
16123  gl_cv_header_errno_h_ENOLINK=no
16124fi
16125rm -f conftest*
16126
16127      if test $gl_cv_header_errno_h_ENOLINK = no; then
16128        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129/* end confdefs.h.  */
16130
16131#define _XOPEN_SOURCE_EXTENDED 1
16132#include <errno.h>
16133#ifdef ENOLINK
16134yes
16135#endif
16136
16137_ACEOF
16138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16139  $EGREP "yes" >/dev/null 2>&1; then :
16140  gl_cv_header_errno_h_ENOLINK=hidden
16141fi
16142rm -f conftest*
16143
16144        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16145                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16146#define _XOPEN_SOURCE_EXTENDED 1
16147#include <errno.h>
16148/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16149#include <stdio.h>
16150#include <stdlib.h>
16151"; then :
16152
16153fi
16154
16155        fi
16156      fi
16157
16158fi
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16160$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16161    case $gl_cv_header_errno_h_ENOLINK in
16162      yes | no)
16163        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16164        ;;
16165      *)
16166        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16167        ;;
16168    esac
16169
16170
16171  fi
16172
16173
16174  if test -n "$ERRNO_H"; then
16175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16176$as_echo_n "checking for EOVERFLOW value... " >&6; }
16177if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180
16181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h.  */
16183
16184#include <errno.h>
16185#ifdef EOVERFLOW
16186yes
16187#endif
16188
16189_ACEOF
16190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16191  $EGREP "yes" >/dev/null 2>&1; then :
16192  gl_cv_header_errno_h_EOVERFLOW=yes
16193else
16194  gl_cv_header_errno_h_EOVERFLOW=no
16195fi
16196rm -f conftest*
16197
16198      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16199        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201
16202#define _XOPEN_SOURCE_EXTENDED 1
16203#include <errno.h>
16204#ifdef EOVERFLOW
16205yes
16206#endif
16207
16208_ACEOF
16209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16210  $EGREP "yes" >/dev/null 2>&1; then :
16211  gl_cv_header_errno_h_EOVERFLOW=hidden
16212fi
16213rm -f conftest*
16214
16215        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16216                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16217#define _XOPEN_SOURCE_EXTENDED 1
16218#include <errno.h>
16219/* The following two lines are a workaround against an autoconf-2.52 bug.  */
16220#include <stdio.h>
16221#include <stdlib.h>
16222"; then :
16223
16224fi
16225
16226        fi
16227      fi
16228
16229fi
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16231$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16232    case $gl_cv_header_errno_h_EOVERFLOW in
16233      yes | no)
16234        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16235        ;;
16236      *)
16237        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16238        ;;
16239    esac
16240
16241
16242  fi
16243
16244
16245ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16246if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16247  ac_have_decl=1
16248else
16249  ac_have_decl=0
16250fi
16251
16252cat >>confdefs.h <<_ACEOF
16253#define HAVE_DECL_STRERROR_R $ac_have_decl
16254_ACEOF
16255
16256for ac_func in strerror_r
16257do :
16258  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16259if test "x$ac_cv_func_strerror_r" = xyes; then :
16260  cat >>confdefs.h <<_ACEOF
16261#define HAVE_STRERROR_R 1
16262_ACEOF
16263
16264fi
16265done
16266
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16268$as_echo_n "checking whether strerror_r returns char *... " >&6; }
16269if ${ac_cv_func_strerror_r_char_p+:} false; then :
16270  $as_echo_n "(cached) " >&6
16271else
16272
16273    ac_cv_func_strerror_r_char_p=no
16274    if test $ac_cv_have_decl_strerror_r = yes; then
16275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276/* end confdefs.h.  */
16277$ac_includes_default
16278int
16279main ()
16280{
16281
16282	  char buf[100];
16283	  char x = *strerror_r (0, buf, sizeof buf);
16284	  char *p = strerror_r (0, buf, sizeof buf);
16285	  return !p || x;
16286
16287  ;
16288  return 0;
16289}
16290_ACEOF
16291if ac_fn_c_try_compile "$LINENO"; then :
16292  ac_cv_func_strerror_r_char_p=yes
16293fi
16294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295    else
16296      # strerror_r is not declared.  Choose between
16297      # systems that have relatively inaccessible declarations for the
16298      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
16299      # former has a strerror_r that returns char*, while the latter
16300      # has a strerror_r that returns `int'.
16301      # This test should segfault on the DEC system.
16302      if test "$cross_compiling" = yes; then :
16303  :
16304else
16305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307$ac_includes_default
16308	extern char *strerror_r ();
16309int
16310main ()
16311{
16312char buf[100];
16313	  char x = *strerror_r (0, buf, sizeof buf);
16314	  return ! isalpha (x);
16315  ;
16316  return 0;
16317}
16318_ACEOF
16319if ac_fn_c_try_run "$LINENO"; then :
16320  ac_cv_func_strerror_r_char_p=yes
16321fi
16322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16323  conftest.$ac_objext conftest.beam conftest.$ac_ext
16324fi
16325
16326    fi
16327
16328fi
16329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16330$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16331if test $ac_cv_func_strerror_r_char_p = yes; then
16332
16333$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16334
16335fi
16336
16337
16338
16339
16340
16341  ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
16342"
16343if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
16344
16345cat >>confdefs.h <<_ACEOF
16346#define HAVE_SIG_ATOMIC_T 1
16347_ACEOF
16348
16349
16350else
16351
16352$as_echo "#define sig_atomic_t int" >>confdefs.h
16353
16354fi
16355
16356
16357
16358
16359
16360  GNULIB_CREAT=0;
16361  GNULIB_FCNTL=0;
16362  GNULIB_NONBLOCKING=0;
16363  GNULIB_OPEN=0;
16364  GNULIB_OPENAT=0;
16365    HAVE_FCNTL=1;
16366  HAVE_OPENAT=1;
16367  REPLACE_CREAT=0;
16368  REPLACE_FCNTL=0;
16369  REPLACE_OPEN=0;
16370  REPLACE_OPENAT=0;
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
16382$as_echo_n "checking for working fcntl.h... " >&6; }
16383if ${gl_cv_header_working_fcntl_h+:} false; then :
16384  $as_echo_n "(cached) " >&6
16385else
16386  if test "$cross_compiling" = yes; then :
16387  case "$host_os" in
16388                  # Guess 'no' on native Windows.
16389          mingw*) gl_cv_header_working_fcntl_h='no' ;;
16390          *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
16391        esac
16392
16393else
16394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395/* end confdefs.h.  */
16396#include <sys/types.h>
16397           #include <sys/stat.h>
16398           #if HAVE_UNISTD_H
16399           # include <unistd.h>
16400           #else /* on Windows with MSVC */
16401           # include <io.h>
16402           # include <stdlib.h>
16403           # defined sleep(n) _sleep ((n) * 1000)
16404           #endif
16405           #include <fcntl.h>
16406           #ifndef O_NOATIME
16407            #define O_NOATIME 0
16408           #endif
16409           #ifndef O_NOFOLLOW
16410            #define O_NOFOLLOW 0
16411           #endif
16412           static int const constants[] =
16413            {
16414              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
16415              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
16416            };
16417
16418int
16419main ()
16420{
16421
16422            int result = !constants;
16423            #if HAVE_SYMLINK
16424            {
16425              static char const sym[] = "conftest.sym";
16426              if (symlink ("/dev/null", sym) != 0)
16427                result |= 2;
16428              else
16429                {
16430                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
16431                  if (fd >= 0)
16432                    {
16433                      close (fd);
16434                      result |= 4;
16435                    }
16436                }
16437              if (unlink (sym) != 0 || symlink (".", sym) != 0)
16438                result |= 2;
16439              else
16440                {
16441                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
16442                  if (fd >= 0)
16443                    {
16444                      close (fd);
16445                      result |= 4;
16446                    }
16447                }
16448              unlink (sym);
16449            }
16450            #endif
16451            {
16452              static char const file[] = "confdefs.h";
16453              int fd = open (file, O_RDONLY | O_NOATIME);
16454              if (fd < 0)
16455                result |= 8;
16456              else
16457                {
16458                  struct stat st0;
16459                  if (fstat (fd, &st0) != 0)
16460                    result |= 16;
16461                  else
16462                    {
16463                      char c;
16464                      sleep (1);
16465                      if (read (fd, &c, 1) != 1)
16466                        result |= 24;
16467                      else
16468                        {
16469                          if (close (fd) != 0)
16470                            result |= 32;
16471                          else
16472                            {
16473                              struct stat st1;
16474                              if (stat (file, &st1) != 0)
16475                                result |= 40;
16476                              else
16477                                if (st0.st_atime != st1.st_atime)
16478                                  result |= 64;
16479                            }
16480                        }
16481                    }
16482                }
16483            }
16484            return result;
16485  ;
16486  return 0;
16487}
16488_ACEOF
16489if ac_fn_c_try_run "$LINENO"; then :
16490  gl_cv_header_working_fcntl_h=yes
16491else
16492  case $? in #(
16493        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
16494        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
16495        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
16496         *) gl_cv_header_working_fcntl_h='no';;
16497        esac
16498fi
16499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16500  conftest.$ac_objext conftest.beam conftest.$ac_ext
16501fi
16502
16503
16504fi
16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
16506$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
16507
16508  case $gl_cv_header_working_fcntl_h in #(
16509  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
16510  *) ac_val=1;;
16511  esac
16512
16513cat >>confdefs.h <<_ACEOF
16514#define HAVE_WORKING_O_NOATIME $ac_val
16515_ACEOF
16516
16517
16518  case $gl_cv_header_working_fcntl_h in #(
16519  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
16520  *) ac_val=1;;
16521  esac
16522
16523cat >>confdefs.h <<_ACEOF
16524#define HAVE_WORKING_O_NOFOLLOW $ac_val
16525_ACEOF
16526
16527
16528ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16529if test "x$ac_cv_type_pid_t" = xyes; then :
16530
16531else
16532
16533cat >>confdefs.h <<_ACEOF
16534#define pid_t int
16535_ACEOF
16536
16537fi
16538
16539ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16540if test "x$ac_cv_type_mode_t" = xyes; then :
16541
16542else
16543
16544cat >>confdefs.h <<_ACEOF
16545#define mode_t int
16546_ACEOF
16547
16548fi
16549
16550
16551
16552
16553  GNULIB_ACOSF=0;
16554  GNULIB_ACOSL=0;
16555  GNULIB_ASINF=0;
16556  GNULIB_ASINL=0;
16557  GNULIB_ATANF=0;
16558  GNULIB_ATANL=0;
16559  GNULIB_ATAN2F=0;
16560  GNULIB_CBRT=0;
16561  GNULIB_CBRTF=0;
16562  GNULIB_CBRTL=0;
16563  GNULIB_CEIL=0;
16564  GNULIB_CEILF=0;
16565  GNULIB_CEILL=0;
16566  GNULIB_COPYSIGN=0;
16567  GNULIB_COPYSIGNF=0;
16568  GNULIB_COPYSIGNL=0;
16569  GNULIB_COSF=0;
16570  GNULIB_COSL=0;
16571  GNULIB_COSHF=0;
16572  GNULIB_EXPF=0;
16573  GNULIB_EXPL=0;
16574  GNULIB_EXP2=0;
16575  GNULIB_EXP2F=0;
16576  GNULIB_EXP2L=0;
16577  GNULIB_EXPM1=0;
16578  GNULIB_EXPM1F=0;
16579  GNULIB_EXPM1L=0;
16580  GNULIB_FABSF=0;
16581  GNULIB_FABSL=0;
16582  GNULIB_FLOOR=0;
16583  GNULIB_FLOORF=0;
16584  GNULIB_FLOORL=0;
16585  GNULIB_FMA=0;
16586  GNULIB_FMAF=0;
16587  GNULIB_FMAL=0;
16588  GNULIB_FMOD=0;
16589  GNULIB_FMODF=0;
16590  GNULIB_FMODL=0;
16591  GNULIB_FREXPF=0;
16592  GNULIB_FREXP=0;
16593  GNULIB_FREXPL=0;
16594  GNULIB_HYPOT=0;
16595  GNULIB_HYPOTF=0;
16596  GNULIB_HYPOTL=0;
16597  GNULIB_ILOGB=0;
16598  GNULIB_ILOGBF=0;
16599  GNULIB_ILOGBL=0;
16600  GNULIB_ISFINITE=0;
16601  GNULIB_ISINF=0;
16602  GNULIB_ISNAN=0;
16603  GNULIB_ISNANF=0;
16604  GNULIB_ISNAND=0;
16605  GNULIB_ISNANL=0;
16606  GNULIB_LDEXPF=0;
16607  GNULIB_LDEXPL=0;
16608  GNULIB_LOG=0;
16609  GNULIB_LOGF=0;
16610  GNULIB_LOGL=0;
16611  GNULIB_LOG10=0;
16612  GNULIB_LOG10F=0;
16613  GNULIB_LOG10L=0;
16614  GNULIB_LOG1P=0;
16615  GNULIB_LOG1PF=0;
16616  GNULIB_LOG1PL=0;
16617  GNULIB_LOG2=0;
16618  GNULIB_LOG2F=0;
16619  GNULIB_LOG2L=0;
16620  GNULIB_LOGB=0;
16621  GNULIB_LOGBF=0;
16622  GNULIB_LOGBL=0;
16623  GNULIB_MODF=0;
16624  GNULIB_MODFF=0;
16625  GNULIB_MODFL=0;
16626  GNULIB_POWF=0;
16627  GNULIB_REMAINDER=0;
16628  GNULIB_REMAINDERF=0;
16629  GNULIB_REMAINDERL=0;
16630  GNULIB_RINT=0;
16631  GNULIB_RINTF=0;
16632  GNULIB_RINTL=0;
16633  GNULIB_ROUND=0;
16634  GNULIB_ROUNDF=0;
16635  GNULIB_ROUNDL=0;
16636  GNULIB_SIGNBIT=0;
16637  GNULIB_SINF=0;
16638  GNULIB_SINL=0;
16639  GNULIB_SINHF=0;
16640  GNULIB_SQRTF=0;
16641  GNULIB_SQRTL=0;
16642  GNULIB_TANF=0;
16643  GNULIB_TANL=0;
16644  GNULIB_TANHF=0;
16645  GNULIB_TRUNC=0;
16646  GNULIB_TRUNCF=0;
16647  GNULIB_TRUNCL=0;
16648    HAVE_ACOSF=1;
16649  HAVE_ACOSL=1;
16650  HAVE_ASINF=1;
16651  HAVE_ASINL=1;
16652  HAVE_ATANF=1;
16653  HAVE_ATANL=1;
16654  HAVE_ATAN2F=1;
16655  HAVE_CBRT=1;
16656  HAVE_CBRTF=1;
16657  HAVE_CBRTL=1;
16658  HAVE_COPYSIGN=1;
16659  HAVE_COPYSIGNL=1;
16660  HAVE_COSF=1;
16661  HAVE_COSL=1;
16662  HAVE_COSHF=1;
16663  HAVE_EXPF=1;
16664  HAVE_EXPL=1;
16665  HAVE_EXPM1=1;
16666  HAVE_EXPM1F=1;
16667  HAVE_FABSF=1;
16668  HAVE_FABSL=1;
16669  HAVE_FMA=1;
16670  HAVE_FMAF=1;
16671  HAVE_FMAL=1;
16672  HAVE_FMODF=1;
16673  HAVE_FMODL=1;
16674  HAVE_FREXPF=1;
16675  HAVE_HYPOTF=1;
16676  HAVE_HYPOTL=1;
16677  HAVE_ILOGB=1;
16678  HAVE_ILOGBF=1;
16679  HAVE_ILOGBL=1;
16680  HAVE_ISNANF=1;
16681  HAVE_ISNAND=1;
16682  HAVE_ISNANL=1;
16683  HAVE_LDEXPF=1;
16684  HAVE_LOGF=1;
16685  HAVE_LOGL=1;
16686  HAVE_LOG10F=1;
16687  HAVE_LOG10L=1;
16688  HAVE_LOG1P=1;
16689  HAVE_LOG1PF=1;
16690  HAVE_LOG1PL=1;
16691  HAVE_LOGBF=1;
16692  HAVE_LOGBL=1;
16693  HAVE_MODFF=1;
16694  HAVE_MODFL=1;
16695  HAVE_POWF=1;
16696  HAVE_REMAINDER=1;
16697  HAVE_REMAINDERF=1;
16698  HAVE_RINT=1;
16699  HAVE_RINTL=1;
16700  HAVE_SINF=1;
16701  HAVE_SINL=1;
16702  HAVE_SINHF=1;
16703  HAVE_SQRTF=1;
16704  HAVE_SQRTL=1;
16705  HAVE_TANF=1;
16706  HAVE_TANL=1;
16707  HAVE_TANHF=1;
16708  HAVE_DECL_ACOSL=1;
16709  HAVE_DECL_ASINL=1;
16710  HAVE_DECL_ATANL=1;
16711  HAVE_DECL_CBRTF=1;
16712  HAVE_DECL_CBRTL=1;
16713  HAVE_DECL_CEILF=1;
16714  HAVE_DECL_CEILL=1;
16715  HAVE_DECL_COPYSIGNF=1;
16716  HAVE_DECL_COSL=1;
16717  HAVE_DECL_EXPL=1;
16718  HAVE_DECL_EXP2=1;
16719  HAVE_DECL_EXP2F=1;
16720  HAVE_DECL_EXP2L=1;
16721  HAVE_DECL_EXPM1L=1;
16722  HAVE_DECL_FLOORF=1;
16723  HAVE_DECL_FLOORL=1;
16724  HAVE_DECL_FREXPL=1;
16725  HAVE_DECL_LDEXPL=1;
16726  HAVE_DECL_LOGL=1;
16727  HAVE_DECL_LOG10L=1;
16728  HAVE_DECL_LOG2=1;
16729  HAVE_DECL_LOG2F=1;
16730  HAVE_DECL_LOG2L=1;
16731  HAVE_DECL_LOGB=1;
16732  HAVE_DECL_REMAINDER=1;
16733  HAVE_DECL_REMAINDERL=1;
16734  HAVE_DECL_RINTF=1;
16735  HAVE_DECL_ROUND=1;
16736  HAVE_DECL_ROUNDF=1;
16737  HAVE_DECL_ROUNDL=1;
16738  HAVE_DECL_SINL=1;
16739  HAVE_DECL_SQRTL=1;
16740  HAVE_DECL_TANL=1;
16741  HAVE_DECL_TRUNC=1;
16742  HAVE_DECL_TRUNCF=1;
16743  HAVE_DECL_TRUNCL=1;
16744  REPLACE_ACOSF=0;
16745  REPLACE_ASINF=0;
16746  REPLACE_ATANF=0;
16747  REPLACE_ATAN2F=0;
16748  REPLACE_CBRTF=0;
16749  REPLACE_CBRTL=0;
16750  REPLACE_CEIL=0;
16751  REPLACE_CEILF=0;
16752  REPLACE_CEILL=0;
16753  REPLACE_COSF=0;
16754  REPLACE_COSHF=0;
16755  REPLACE_EXPF=0;
16756  REPLACE_EXPL=0;
16757  REPLACE_EXPM1=0;
16758  REPLACE_EXPM1F=0;
16759  REPLACE_EXPM1L=0;
16760  REPLACE_EXP2=0;
16761  REPLACE_EXP2L=0;
16762  REPLACE_FABSL=0;
16763  REPLACE_FLOOR=0;
16764  REPLACE_FLOORF=0;
16765  REPLACE_FLOORL=0;
16766  REPLACE_FMA=0;
16767  REPLACE_FMAF=0;
16768  REPLACE_FMAL=0;
16769  REPLACE_FMOD=0;
16770  REPLACE_FMODF=0;
16771  REPLACE_FMODL=0;
16772  REPLACE_FREXPF=0;
16773  REPLACE_FREXP=0;
16774  REPLACE_FREXPL=0;
16775  REPLACE_HUGE_VAL=0;
16776  REPLACE_HYPOT=0;
16777  REPLACE_HYPOTF=0;
16778  REPLACE_HYPOTL=0;
16779  REPLACE_ILOGB=0;
16780  REPLACE_ILOGBF=0;
16781  REPLACE_ILOGBL=0;
16782  REPLACE_ISFINITE=0;
16783  REPLACE_ISINF=0;
16784  REPLACE_ISNAN=0;
16785  REPLACE_LDEXPL=0;
16786  REPLACE_LOG=0;
16787  REPLACE_LOGF=0;
16788  REPLACE_LOGL=0;
16789  REPLACE_LOG10=0;
16790  REPLACE_LOG10F=0;
16791  REPLACE_LOG10L=0;
16792  REPLACE_LOG1P=0;
16793  REPLACE_LOG1PF=0;
16794  REPLACE_LOG1PL=0;
16795  REPLACE_LOG2=0;
16796  REPLACE_LOG2F=0;
16797  REPLACE_LOG2L=0;
16798  REPLACE_LOGB=0;
16799  REPLACE_LOGBF=0;
16800  REPLACE_LOGBL=0;
16801  REPLACE_MODF=0;
16802  REPLACE_MODFF=0;
16803  REPLACE_MODFL=0;
16804  REPLACE_NAN=0;
16805  REPLACE_REMAINDER=0;
16806  REPLACE_REMAINDERF=0;
16807  REPLACE_REMAINDERL=0;
16808  REPLACE_RINTL=0;
16809  REPLACE_ROUND=0;
16810  REPLACE_ROUNDF=0;
16811  REPLACE_ROUNDL=0;
16812  REPLACE_SIGNBIT=0;
16813  REPLACE_SIGNBIT_USING_GCC=0;
16814  REPLACE_SINF=0;
16815  REPLACE_SINHF=0;
16816  REPLACE_SQRTF=0;
16817  REPLACE_SQRTL=0;
16818  REPLACE_TANF=0;
16819  REPLACE_TANHF=0;
16820  REPLACE_TRUNC=0;
16821  REPLACE_TRUNCF=0;
16822  REPLACE_TRUNCL=0;
16823
16824
16825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
16826$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
16827if ${gl_cv_func_frexp_no_libm+:} false; then :
16828  $as_echo_n "(cached) " >&6
16829else
16830
16831      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h.  */
16833#include <math.h>
16834             double x;
16835int
16836main ()
16837{
16838int e; return frexp (x, &e) > 0;
16839  ;
16840  return 0;
16841}
16842_ACEOF
16843if ac_fn_c_try_link "$LINENO"; then :
16844  gl_cv_func_frexp_no_libm=yes
16845else
16846  gl_cv_func_frexp_no_libm=no
16847fi
16848rm -f core conftest.err conftest.$ac_objext \
16849    conftest$ac_exeext conftest.$ac_ext
16850
16851fi
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
16853$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
16854
16855ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
16856if test "x$ac_cv_have_decl_alarm" = xyes; then :
16857  ac_have_decl=1
16858else
16859  ac_have_decl=0
16860fi
16861
16862cat >>confdefs.h <<_ACEOF
16863#define HAVE_DECL_ALARM $ac_have_decl
16864_ACEOF
16865
16866
16867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
16868$as_echo_n "checking whether long double and double are the same... " >&6; }
16869if ${gl_cv_long_double_equals_double+:} false; then :
16870  $as_echo_n "(cached) " >&6
16871else
16872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873/* end confdefs.h.  */
16874#include <float.h>
16875int
16876main ()
16877{
16878typedef int check[sizeof (long double) == sizeof (double)
16879                              && LDBL_MANT_DIG == DBL_MANT_DIG
16880                              && LDBL_MAX_EXP == DBL_MAX_EXP
16881                              && LDBL_MIN_EXP == DBL_MIN_EXP
16882                              ? 1 : -1];
16883
16884  ;
16885  return 0;
16886}
16887_ACEOF
16888if ac_fn_c_try_compile "$LINENO"; then :
16889  gl_cv_long_double_equals_double=yes
16890else
16891  gl_cv_long_double_equals_double=no
16892fi
16893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894
16895fi
16896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
16897$as_echo "$gl_cv_long_double_equals_double" >&6; }
16898  if test $gl_cv_long_double_equals_double = yes; then
16899
16900$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
16901
16902    HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
16903  else
16904    HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
16905  fi
16906
16907
16908
16909     GNULIB_FCHMODAT=0;
16910  GNULIB_FSTAT=0;
16911  GNULIB_FSTATAT=0;
16912  GNULIB_FUTIMENS=0;
16913  GNULIB_GETUMASK=0;
16914  GNULIB_LCHMOD=0;
16915  GNULIB_LSTAT=0;
16916  GNULIB_MKDIRAT=0;
16917  GNULIB_MKFIFO=0;
16918  GNULIB_MKFIFOAT=0;
16919  GNULIB_MKNOD=0;
16920  GNULIB_MKNODAT=0;
16921  GNULIB_STAT=0;
16922  GNULIB_UTIMENSAT=0;
16923  GNULIB_OVERRIDES_STRUCT_STAT=0;
16924    HAVE_FCHMODAT=1;
16925  HAVE_FSTATAT=1;
16926  HAVE_FUTIMENS=1;
16927  HAVE_GETUMASK=1;
16928  HAVE_LCHMOD=1;
16929  HAVE_LSTAT=1;
16930  HAVE_MKDIRAT=1;
16931  HAVE_MKFIFO=1;
16932  HAVE_MKFIFOAT=1;
16933  HAVE_MKNOD=1;
16934  HAVE_MKNODAT=1;
16935  HAVE_UTIMENSAT=1;
16936  REPLACE_FCHMODAT=0;
16937  REPLACE_FSTAT=0;
16938  REPLACE_FSTATAT=0;
16939  REPLACE_FUTIMENS=0;
16940  REPLACE_LSTAT=0;
16941  REPLACE_MKDIR=0;
16942  REPLACE_MKFIFO=0;
16943  REPLACE_MKNOD=0;
16944  REPLACE_STAT=0;
16945  REPLACE_UTIMENSAT=0;
16946
16947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16948$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16949if ${ac_cv_header_stat_broken+:} false; then :
16950  $as_echo_n "(cached) " >&6
16951else
16952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953/* end confdefs.h.  */
16954#include <sys/types.h>
16955#include <sys/stat.h>
16956
16957#if defined S_ISBLK && defined S_IFDIR
16958extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16959#endif
16960
16961#if defined S_ISBLK && defined S_IFCHR
16962extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16963#endif
16964
16965#if defined S_ISLNK && defined S_IFREG
16966extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16967#endif
16968
16969#if defined S_ISSOCK && defined S_IFREG
16970extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16971#endif
16972
16973_ACEOF
16974if ac_fn_c_try_compile "$LINENO"; then :
16975  ac_cv_header_stat_broken=no
16976else
16977  ac_cv_header_stat_broken=yes
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980fi
16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16982$as_echo "$ac_cv_header_stat_broken" >&6; }
16983if test $ac_cv_header_stat_broken = yes; then
16984
16985$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16986
16987fi
16988
16989
16990
16991
16992
16993  case "$host_os" in
16994    mingw*)
16995                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16996$as_echo_n "checking for 64-bit off_t... " >&6; }
16997if ${gl_cv_type_off_t_64+:} false; then :
16998  $as_echo_n "(cached) " >&6
16999else
17000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001/* end confdefs.h.  */
17002#include <sys/types.h>
17003                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17004
17005int
17006main ()
17007{
17008
17009  ;
17010  return 0;
17011}
17012_ACEOF
17013if ac_fn_c_try_compile "$LINENO"; then :
17014  gl_cv_type_off_t_64=yes
17015else
17016  gl_cv_type_off_t_64=no
17017fi
17018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019
17020fi
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17022$as_echo "$gl_cv_type_off_t_64" >&6; }
17023      if test $gl_cv_type_off_t_64 = no; then
17024        WINDOWS_64_BIT_OFF_T=1
17025      else
17026        WINDOWS_64_BIT_OFF_T=0
17027      fi
17028                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17029$as_echo_n "checking for 64-bit st_size... " >&6; }
17030if ${gl_cv_member_st_size_64+:} false; then :
17031  $as_echo_n "(cached) " >&6
17032else
17033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h.  */
17035#include <sys/types.h>
17036                struct stat buf;
17037                int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17038
17039int
17040main ()
17041{
17042
17043  ;
17044  return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_compile "$LINENO"; then :
17048  gl_cv_member_st_size_64=yes
17049else
17050  gl_cv_member_st_size_64=no
17051fi
17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053
17054fi
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17056$as_echo "$gl_cv_member_st_size_64" >&6; }
17057      if test $gl_cv_member_st_size_64 = no; then
17058        WINDOWS_64_BIT_ST_SIZE=1
17059      else
17060        WINDOWS_64_BIT_ST_SIZE=0
17061      fi
17062      ;;
17063    *)
17064                                                      WINDOWS_64_BIT_OFF_T=0
17065      WINDOWS_64_BIT_ST_SIZE=0
17066      ;;
17067  esac
17068
17069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17070$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17071if ${ac_cv_c_restrict+:} false; then :
17072  $as_echo_n "(cached) " >&6
17073else
17074  ac_cv_c_restrict=no
17075   # The order here caters to the fact that C++ does not require restrict.
17076   for ac_kw in __restrict __restrict__ _Restrict restrict; do
17077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078/* end confdefs.h.  */
17079typedef int *int_ptr;
17080           int foo (int_ptr $ac_kw ip) { return ip[0]; }
17081           int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
17082           int bar (int ip[$ac_kw]) { return ip[0]; }
17083
17084int
17085main ()
17086{
17087int s[1];
17088           int *$ac_kw t = s;
17089           t[0] = 0;
17090           return foo (t) + bar (t);
17091
17092  ;
17093  return 0;
17094}
17095_ACEOF
17096if ac_fn_c_try_compile "$LINENO"; then :
17097  ac_cv_c_restrict=$ac_kw
17098fi
17099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100     test "$ac_cv_c_restrict" != no && break
17101   done
17102
17103fi
17104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17105$as_echo "$ac_cv_c_restrict" >&6; }
17106
17107 case $ac_cv_c_restrict in
17108   restrict) ;;
17109   no) $as_echo "#define restrict /**/" >>confdefs.h
17110 ;;
17111   *)  cat >>confdefs.h <<_ACEOF
17112#define restrict $ac_cv_c_restrict
17113_ACEOF
17114 ;;
17115 esac
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131     if test $gl_cv_have_include_next = yes; then
17132       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17133     else
17134       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17135$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17136if ${gl_cv_next_sys_stat_h+:} false; then :
17137  $as_echo_n "(cached) " >&6
17138else
17139
17140             if test $ac_cv_header_sys_stat_h = yes; then
17141
17142
17143
17144
17145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146/* end confdefs.h.  */
17147#include <sys/stat.h>
17148_ACEOF
17149                case "$host_os" in
17150    aix*) gl_absname_cpp="$ac_cpp -C" ;;
17151    *)    gl_absname_cpp="$ac_cpp" ;;
17152  esac
17153
17154  case "$host_os" in
17155    mingw*)
17156                                          gl_dirsep_regex='[/\\]'
17157      ;;
17158    *)
17159      gl_dirsep_regex='\/'
17160      ;;
17161  esac
17162      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17163  gl_header_literal_regex=`echo 'sys/stat.h' \
17164                           | sed -e "$gl_make_literal_regex_sed"`
17165  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17166      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17167      s|^/[^/]|//&|
17168      p
17169      q
17170    }'
17171
17172        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17173  sed -n "$gl_absolute_header_sed"`
17174
17175           gl_header=$gl_cv_absolute_sys_stat_h
17176           gl_cv_next_sys_stat_h='"'$gl_header'"'
17177          else
17178               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17179             fi
17180
17181
17182fi
17183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17184$as_echo "$gl_cv_next_sys_stat_h" >&6; }
17185     fi
17186     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17187
17188     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17189       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17190       gl_next_as_first_directive='<'sys/stat.h'>'
17191     else
17192       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17193       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17194     fi
17195     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17196
17197
17198
17199
17200
17201
17202
17203
17204    WINDOWS_STAT_TIMESPEC=0
17205
17206
17207
17208
17209
17210
17211
17212
17213      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17214     #include <sys/stat.h>
17215"
17216if test "x$ac_cv_type_nlink_t" = xyes; then :
17217
17218else
17219
17220$as_echo "#define nlink_t int" >>confdefs.h
17221
17222fi
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
17236if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
17237  ac_have_decl=1
17238else
17239  ac_have_decl=0
17240fi
17241
17242cat >>confdefs.h <<_ACEOF
17243#define HAVE_DECL_GETDTABLESIZE $ac_have_decl
17244_ACEOF
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255  GNULIB_GETTIMEOFDAY=0;
17256    HAVE_GETTIMEOFDAY=1;
17257  HAVE_STRUCT_TIMEVAL=1;
17258  HAVE_SYS_TIME_H=1;
17259  REPLACE_GETTIMEOFDAY=0;
17260  REPLACE_STRUCT_TIMEVAL=0;
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277     if test $gl_cv_have_include_next = yes; then
17278       gl_cv_next_sys_time_h='<'sys/time.h'>'
17279     else
17280       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17281$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17282if ${gl_cv_next_sys_time_h+:} false; then :
17283  $as_echo_n "(cached) " >&6
17284else
17285
17286             if test $ac_cv_header_sys_time_h = yes; then
17287
17288
17289
17290
17291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292/* end confdefs.h.  */
17293#include <sys/time.h>
17294_ACEOF
17295                case "$host_os" in
17296    aix*) gl_absname_cpp="$ac_cpp -C" ;;
17297    *)    gl_absname_cpp="$ac_cpp" ;;
17298  esac
17299
17300  case "$host_os" in
17301    mingw*)
17302                                          gl_dirsep_regex='[/\\]'
17303      ;;
17304    *)
17305      gl_dirsep_regex='\/'
17306      ;;
17307  esac
17308      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17309  gl_header_literal_regex=`echo 'sys/time.h' \
17310                           | sed -e "$gl_make_literal_regex_sed"`
17311  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17312      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17313      s|^/[^/]|//&|
17314      p
17315      q
17316    }'
17317
17318        gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17319  sed -n "$gl_absolute_header_sed"`
17320
17321           gl_header=$gl_cv_absolute_sys_time_h
17322           gl_cv_next_sys_time_h='"'$gl_header'"'
17323          else
17324               gl_cv_next_sys_time_h='<'sys/time.h'>'
17325             fi
17326
17327
17328fi
17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17330$as_echo "$gl_cv_next_sys_time_h" >&6; }
17331     fi
17332     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17333
17334     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17335       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17336       gl_next_as_first_directive='<'sys/time.h'>'
17337     else
17338       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17339       gl_next_as_first_directive=$gl_cv_next_sys_time_h
17340     fi
17341     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17342
17343
17344
17345
17346
17347  if test $ac_cv_header_sys_time_h != yes; then
17348    HAVE_SYS_TIME_H=0
17349  fi
17350
17351
17352
17353
17354
17355  if test $ac_cv_header_sys_socket_h != yes; then
17356                    for ac_header in winsock2.h
17357do :
17358  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17359if test "x$ac_cv_header_winsock2_h" = xyes; then :
17360  cat >>confdefs.h <<_ACEOF
17361#define HAVE_WINSOCK2_H 1
17362_ACEOF
17363
17364fi
17365
17366done
17367
17368  fi
17369  if test "$ac_cv_header_winsock2_h" = yes; then
17370    HAVE_WINSOCK2_H=1
17371    UNISTD_H_HAVE_WINSOCK2_H=1
17372    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17373  else
17374    HAVE_WINSOCK2_H=0
17375  fi
17376
17377
17378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17379$as_echo_n "checking for struct timeval... " >&6; }
17380if ${gl_cv_sys_struct_timeval+:} false; then :
17381  $as_echo_n "(cached) " >&6
17382else
17383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384/* end confdefs.h.  */
17385#if HAVE_SYS_TIME_H
17386             #include <sys/time.h>
17387            #endif
17388            #include <time.h>
17389            #if HAVE_WINSOCK2_H
17390            # include <winsock2.h>
17391            #endif
17392
17393int
17394main ()
17395{
17396static struct timeval x; x.tv_sec = x.tv_usec;
17397  ;
17398  return 0;
17399}
17400_ACEOF
17401if ac_fn_c_try_compile "$LINENO"; then :
17402  gl_cv_sys_struct_timeval=yes
17403else
17404  gl_cv_sys_struct_timeval=no
17405fi
17406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407
17408fi
17409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17410$as_echo "$gl_cv_sys_struct_timeval" >&6; }
17411  if test $gl_cv_sys_struct_timeval != yes; then
17412    HAVE_STRUCT_TIMEVAL=0
17413  else
17414                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17415$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17416if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17417  $as_echo_n "(cached) " >&6
17418else
17419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420/* end confdefs.h.  */
17421#if HAVE_SYS_TIME_H
17422               #include <sys/time.h>
17423              #endif
17424              #include <time.h>
17425              #if HAVE_WINSOCK2_H
17426              # include <winsock2.h>
17427              #endif
17428
17429int
17430main ()
17431{
17432static struct timeval x;
17433              typedef int verify_tv_sec_type[
17434                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17435              ];
17436
17437  ;
17438  return 0;
17439}
17440_ACEOF
17441if ac_fn_c_try_compile "$LINENO"; then :
17442  gl_cv_sys_struct_timeval_tv_sec=yes
17443else
17444  gl_cv_sys_struct_timeval_tv_sec=no
17445fi
17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447
17448fi
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17450$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17451    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17452      REPLACE_STRUCT_TIMEVAL=1
17453    fi
17454  fi
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466      if test "X$prefix" = "XNONE"; then
17467    acl_final_prefix="$ac_default_prefix"
17468  else
17469    acl_final_prefix="$prefix"
17470  fi
17471  if test "X$exec_prefix" = "XNONE"; then
17472    acl_final_exec_prefix='${prefix}'
17473  else
17474    acl_final_exec_prefix="$exec_prefix"
17475  fi
17476  acl_save_prefix="$prefix"
17477  prefix="$acl_final_prefix"
17478  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17479  prefix="$acl_save_prefix"
17480
17481
17482
17483# Check whether --with-gnu-ld was given.
17484if test "${with_gnu_ld+set}" = set; then :
17485  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17486else
17487  with_gnu_ld=no
17488fi
17489
17490# Prepare PATH_SEPARATOR.
17491# The user is always right.
17492if test "${PATH_SEPARATOR+set}" != set; then
17493  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17494  # contains only /bin. Note that ksh looks also at the FPATH variable,
17495  # so we have to set that as well for the test.
17496  PATH_SEPARATOR=:
17497  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17498    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17499           || PATH_SEPARATOR=';'
17500       }
17501fi
17502
17503if test -n "$LD"; then
17504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17505$as_echo_n "checking for ld... " >&6; }
17506elif test "$GCC" = yes; then
17507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17508$as_echo_n "checking for ld used by $CC... " >&6; }
17509elif test "$with_gnu_ld" = yes; then
17510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17511$as_echo_n "checking for GNU ld... " >&6; }
17512else
17513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17514$as_echo_n "checking for non-GNU ld... " >&6; }
17515fi
17516if test -n "$LD"; then
17517  # Let the user override the test with a path.
17518  :
17519else
17520  if ${acl_cv_path_LD+:} false; then :
17521  $as_echo_n "(cached) " >&6
17522else
17523
17524    acl_cv_path_LD= # Final result of this test
17525    ac_prog=ld # Program to search in $PATH
17526    if test "$GCC" = yes; then
17527      # Check if gcc -print-prog-name=ld gives a path.
17528      case $host in
17529        *-*-mingw*)
17530          # gcc leaves a trailing carriage return which upsets mingw
17531          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17532        *)
17533          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17534      esac
17535      case $acl_output in
17536        # Accept absolute paths.
17537        [\\/]* | ?:[\\/]*)
17538          re_direlt='/[^/][^/]*/\.\./'
17539          # Canonicalize the pathname of ld
17540          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17541          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17542            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17543          done
17544          # Got the pathname. No search in PATH is needed.
17545          acl_cv_path_LD="$acl_output"
17546          ac_prog=
17547          ;;
17548        "")
17549          # If it fails, then pretend we aren't using GCC.
17550          ;;
17551        *)
17552          # If it is relative, then search for the first ld in PATH.
17553          with_gnu_ld=unknown
17554          ;;
17555      esac
17556    fi
17557    if test -n "$ac_prog"; then
17558      # Search for $ac_prog in $PATH.
17559      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17560      for ac_dir in $PATH; do
17561        IFS="$acl_save_ifs"
17562        test -z "$ac_dir" && ac_dir=.
17563        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17564          acl_cv_path_LD="$ac_dir/$ac_prog"
17565          # Check to see if the program is GNU ld.  I'd rather use --version,
17566          # but apparently some variants of GNU ld only accept -v.
17567          # Break only if it was the GNU/non-GNU ld that we prefer.
17568          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17569            *GNU* | *'with BFD'*)
17570              test "$with_gnu_ld" != no && break
17571              ;;
17572            *)
17573              test "$with_gnu_ld" != yes && break
17574              ;;
17575          esac
17576        fi
17577      done
17578      IFS="$acl_save_ifs"
17579    fi
17580    case $host in
17581      *-*-aix*)
17582        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583/* end confdefs.h.  */
17584#if defined __powerpc64__ || defined _ARCH_PPC64
17585                int ok;
17586               #else
17587                error fail
17588               #endif
17589
17590_ACEOF
17591if ac_fn_c_try_compile "$LINENO"; then :
17592  # The compiler produces 64-bit code. Add option '-b64' so that the
17593           # linker groks 64-bit object files.
17594           case "$acl_cv_path_LD " in
17595             *" -b64 "*) ;;
17596             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
17597           esac
17598
17599fi
17600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17601        ;;
17602      sparc64-*-netbsd*)
17603        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604/* end confdefs.h.  */
17605#if defined __sparcv9 || defined __arch64__
17606                int ok;
17607               #else
17608                error fail
17609               #endif
17610
17611_ACEOF
17612if ac_fn_c_try_compile "$LINENO"; then :
17613
17614else
17615  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
17616           # so that the linker groks 32-bit object files.
17617           case "$acl_cv_path_LD " in
17618             *" -m elf32_sparc "*) ;;
17619             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
17620           esac
17621
17622fi
17623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624        ;;
17625    esac
17626
17627fi
17628
17629  LD="$acl_cv_path_LD"
17630fi
17631if test -n "$LD"; then
17632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17633$as_echo "$LD" >&6; }
17634else
17635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17636$as_echo "no" >&6; }
17637  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17638fi
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17640$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17641if ${acl_cv_prog_gnu_ld+:} false; then :
17642  $as_echo_n "(cached) " >&6
17643else
17644  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17645case `$LD -v 2>&1 </dev/null` in
17646*GNU* | *'with BFD'*)
17647  acl_cv_prog_gnu_ld=yes
17648  ;;
17649*)
17650  acl_cv_prog_gnu_ld=no
17651  ;;
17652esac
17653fi
17654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17655$as_echo "$acl_cv_prog_gnu_ld" >&6; }
17656with_gnu_ld=$acl_cv_prog_gnu_ld
17657
17658
17659
17660
17661                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17662$as_echo_n "checking for shared library run path origin... " >&6; }
17663if ${acl_cv_rpath+:} false; then :
17664  $as_echo_n "(cached) " >&6
17665else
17666
17667    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17668    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17669    . ./conftest.sh
17670    rm -f ./conftest.sh
17671    acl_cv_rpath=done
17672
17673fi
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17675$as_echo "$acl_cv_rpath" >&6; }
17676  wl="$acl_cv_wl"
17677  acl_libext="$acl_cv_libext"
17678  acl_shlibext="$acl_cv_shlibext"
17679  acl_libname_spec="$acl_cv_libname_spec"
17680  acl_library_names_spec="$acl_cv_library_names_spec"
17681  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17682  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17683  acl_hardcode_direct="$acl_cv_hardcode_direct"
17684  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17685    # Check whether --enable-rpath was given.
17686if test "${enable_rpath+set}" = set; then :
17687  enableval=$enable_rpath; :
17688else
17689  enable_rpath=yes
17690fi
17691
17692
17693
17694
17695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
17696$as_echo_n "checking 32-bit host C ABI... " >&6; }
17697if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
17698  $as_echo_n "(cached) " >&6
17699else
17700  if test -n "$gl_cv_host_cpu_c_abi"; then
17701       case "$gl_cv_host_cpu_c_abi" in
17702         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
17703           gl_cv_host_cpu_c_abi_32bit=yes ;;
17704         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
17705           gl_cv_host_cpu_c_abi_32bit=no ;;
17706         *)
17707           gl_cv_host_cpu_c_abi_32bit=unknown ;;
17708       esac
17709     else
17710       case "$host_cpu" in
17711
17712         # CPUs that only support a 32-bit ABI.
17713         arc \
17714         | bfin \
17715         | cris* \
17716         | csky \
17717         | epiphany \
17718         | ft32 \
17719         | h8300 \
17720         | m68k \
17721         | microblaze | microblazeel \
17722         | nds32 | nds32le | nds32be \
17723         | nios2 | nios2eb | nios2el \
17724         | or1k* \
17725         | or32 \
17726         | sh | sh1234 | sh1234elb \
17727         | tic6x \
17728         | xtensa* )
17729           gl_cv_host_cpu_c_abi_32bit=yes
17730           ;;
17731
17732         # CPUs that only support a 64-bit ABI.
17733         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
17734         | mmix )
17735           gl_cv_host_cpu_c_abi_32bit=no
17736           ;;
17737
17738         i[34567]86 )
17739           gl_cv_host_cpu_c_abi_32bit=yes
17740           ;;
17741
17742         x86_64 )
17743           # On x86_64 systems, the C compiler may be generating code in one of
17744           # these ABIs:
17745           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
17746           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
17747           #   with native Windows (mingw, MSVC).
17748           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
17749           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
17750           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751/* end confdefs.h.  */
17752#if (defined __x86_64__ || defined __amd64__ \
17753                       || defined _M_X64 || defined _M_AMD64) \
17754                      && !(defined __ILP32__ || defined _ILP32)
17755                   int ok;
17756                  #else
17757                   error fail
17758                  #endif
17759
17760_ACEOF
17761if ac_fn_c_try_compile "$LINENO"; then :
17762  gl_cv_host_cpu_c_abi_32bit=no
17763else
17764  gl_cv_host_cpu_c_abi_32bit=yes
17765fi
17766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767           ;;
17768
17769         arm* | aarch64 )
17770           # Assume arm with EABI.
17771           # On arm64 systems, the C compiler may be generating code in one of
17772           # these ABIs:
17773           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
17774           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
17775           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
17776           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777/* end confdefs.h.  */
17778#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
17779                   int ok;
17780                  #else
17781                   error fail
17782                  #endif
17783
17784_ACEOF
17785if ac_fn_c_try_compile "$LINENO"; then :
17786  gl_cv_host_cpu_c_abi_32bit=no
17787else
17788  gl_cv_host_cpu_c_abi_32bit=yes
17789fi
17790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791           ;;
17792
17793         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
17794           # On hppa, the C compiler may be generating 32-bit code or 64-bit
17795           # code. In the latter case, it defines _LP64 and __LP64__.
17796           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h.  */
17798#ifdef __LP64__
17799                   int ok;
17800                  #else
17801                   error fail
17802                  #endif
17803
17804_ACEOF
17805if ac_fn_c_try_compile "$LINENO"; then :
17806  gl_cv_host_cpu_c_abi_32bit=no
17807else
17808  gl_cv_host_cpu_c_abi_32bit=yes
17809fi
17810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811           ;;
17812
17813         ia64* )
17814           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
17815           # 32-bit code. In the latter case, it defines _ILP32.
17816           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817/* end confdefs.h.  */
17818#ifdef _ILP32
17819                   int ok;
17820                  #else
17821                   error fail
17822                  #endif
17823
17824_ACEOF
17825if ac_fn_c_try_compile "$LINENO"; then :
17826  gl_cv_host_cpu_c_abi_32bit=yes
17827else
17828  gl_cv_host_cpu_c_abi_32bit=no
17829fi
17830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831           ;;
17832
17833         mips* )
17834           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
17835           # at 32.
17836           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837/* end confdefs.h.  */
17838#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
17839                   int ok;
17840                  #else
17841                   error fail
17842                  #endif
17843
17844_ACEOF
17845if ac_fn_c_try_compile "$LINENO"; then :
17846  gl_cv_host_cpu_c_abi_32bit=no
17847else
17848  gl_cv_host_cpu_c_abi_32bit=yes
17849fi
17850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851           ;;
17852
17853         powerpc* )
17854           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
17855           # No need to distinguish them here; the caller may distinguish
17856           # them based on the OS.
17857           # On powerpc64 systems, the C compiler may still be generating
17858           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
17859           # be generating 64-bit code.
17860           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861/* end confdefs.h.  */
17862#if defined __powerpc64__ || defined _ARCH_PPC64
17863                   int ok;
17864                  #else
17865                   error fail
17866                  #endif
17867
17868_ACEOF
17869if ac_fn_c_try_compile "$LINENO"; then :
17870  gl_cv_host_cpu_c_abi_32bit=no
17871else
17872  gl_cv_host_cpu_c_abi_32bit=yes
17873fi
17874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875           ;;
17876
17877         rs6000 )
17878           gl_cv_host_cpu_c_abi_32bit=yes
17879           ;;
17880
17881         riscv32 | riscv64 )
17882           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
17883           # Size of 'long' and 'void *':
17884           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885/* end confdefs.h.  */
17886#if defined __LP64__
17887                    int ok;
17888                  #else
17889                    error fail
17890                  #endif
17891
17892_ACEOF
17893if ac_fn_c_try_compile "$LINENO"; then :
17894  gl_cv_host_cpu_c_abi_32bit=no
17895else
17896  gl_cv_host_cpu_c_abi_32bit=yes
17897fi
17898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899           ;;
17900
17901         s390* )
17902           # On s390x, the C compiler may be generating 64-bit (= s390x) code
17903           # or 31-bit (= s390) code.
17904           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905/* end confdefs.h.  */
17906#if defined __LP64__ || defined __s390x__
17907                    int ok;
17908                  #else
17909                    error fail
17910                  #endif
17911
17912_ACEOF
17913if ac_fn_c_try_compile "$LINENO"; then :
17914  gl_cv_host_cpu_c_abi_32bit=no
17915else
17916  gl_cv_host_cpu_c_abi_32bit=yes
17917fi
17918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919           ;;
17920
17921         sparc | sparc64 )
17922           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
17923           # C compiler still generates 32-bit code.
17924           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h.  */
17926#if defined __sparcv9 || defined __arch64__
17927                   int ok;
17928                  #else
17929                   error fail
17930                  #endif
17931
17932_ACEOF
17933if ac_fn_c_try_compile "$LINENO"; then :
17934  gl_cv_host_cpu_c_abi_32bit=no
17935else
17936  gl_cv_host_cpu_c_abi_32bit=yes
17937fi
17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939           ;;
17940
17941         *)
17942           gl_cv_host_cpu_c_abi_32bit=unknown
17943           ;;
17944       esac
17945     fi
17946
17947fi
17948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
17949$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
17950
17951  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
17952
17953
17954
17955
17956
17957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
17958$as_echo_n "checking for ELF binary format... " >&6; }
17959if ${gl_cv_elf+:} false; then :
17960  $as_echo_n "(cached) " >&6
17961else
17962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h.  */
17964#ifdef __ELF__
17965        Extensible Linking Format
17966        #endif
17967
17968_ACEOF
17969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17970  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
17971  gl_cv_elf=yes
17972else
17973  gl_cv_elf=no
17974fi
17975rm -f conftest*
17976
17977
17978fi
17979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
17980$as_echo "$gl_cv_elf" >&6; }
17981  if test $gl_cv_elf; then
17982    # Extract the ELF class of a file (5th byte) in decimal.
17983    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
17984    if od -A x < /dev/null >/dev/null 2>/dev/null; then
17985      # Use POSIX od.
17986      func_elfclass ()
17987      {
17988        od -A n -t d1 -j 4 -N 1
17989      }
17990    else
17991      # Use BSD hexdump.
17992      func_elfclass ()
17993      {
17994        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
17995        echo
17996      }
17997    fi
17998    case $HOST_CPU_C_ABI_32BIT in
17999      yes)
18000        # 32-bit ABI.
18001        acl_is_expected_elfclass ()
18002        {
18003          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
18004        }
18005        ;;
18006      no)
18007        # 64-bit ABI.
18008        acl_is_expected_elfclass ()
18009        {
18010          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
18011        }
18012        ;;
18013      *)
18014        # Unknown.
18015        acl_is_expected_elfclass ()
18016        {
18017          :
18018        }
18019        ;;
18020    esac
18021  else
18022    acl_is_expected_elfclass ()
18023    {
18024      :
18025    }
18026  fi
18027
18028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18029$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
18030if ${acl_cv_libdirstems+:} false; then :
18031  $as_echo_n "(cached) " >&6
18032else
18033            acl_libdirstem=lib
18034     acl_libdirstem2=
18035     acl_libdirstem3=
18036     case "$host_os" in
18037       solaris*)
18038                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
18039           acl_libdirstem2=lib/64
18040           case "$host_cpu" in
18041             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
18042             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
18043           esac
18044         fi
18045         ;;
18046       *)
18047                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
18048                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18049         if test $HOST_CPU_C_ABI_32BIT != no; then
18050           # 32-bit or unknown ABI.
18051           if test -d /usr/lib32; then
18052             acl_libdirstem2=lib32
18053           fi
18054         fi
18055         if test $HOST_CPU_C_ABI_32BIT != yes; then
18056           # 64-bit or unknown ABI.
18057           if test -d /usr/lib64; then
18058             acl_libdirstem3=lib64
18059           fi
18060         fi
18061         if test -n "$searchpath"; then
18062           acl_save_IFS="${IFS= 	}"; IFS=":"
18063           for searchdir in $searchpath; do
18064             if test -d "$searchdir"; then
18065               case "$searchdir" in
18066                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
18067                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
18068                 */../ | */.. )
18069                   # Better ignore directories of this form. They are misleading.
18070                   ;;
18071                 *) searchdir=`cd "$searchdir" && pwd`
18072                    case "$searchdir" in
18073                      */lib32 ) acl_libdirstem2=lib32 ;;
18074                      */lib64 ) acl_libdirstem3=lib64 ;;
18075                    esac ;;
18076               esac
18077             fi
18078           done
18079           IFS="$acl_save_IFS"
18080           if test $HOST_CPU_C_ABI_32BIT = yes; then
18081             # 32-bit ABI.
18082             acl_libdirstem3=
18083           fi
18084           if test $HOST_CPU_C_ABI_32BIT = no; then
18085             # 64-bit ABI.
18086             acl_libdirstem2=
18087           fi
18088         fi
18089         ;;
18090     esac
18091     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18092     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
18093     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
18094
18095fi
18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18097$as_echo "$acl_cv_libdirstems" >&6; }
18098      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18099  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
18100  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112    use_additional=yes
18113
18114  acl_save_prefix="$prefix"
18115  prefix="$acl_final_prefix"
18116  acl_save_exec_prefix="$exec_prefix"
18117  exec_prefix="$acl_final_exec_prefix"
18118
18119    eval additional_includedir=\"$includedir\"
18120    eval additional_libdir=\"$libdir\"
18121    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18122    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18123
18124  exec_prefix="$acl_save_exec_prefix"
18125  prefix="$acl_save_prefix"
18126
18127
18128# Check whether --with-libiconv-prefix was given.
18129if test "${with_libiconv_prefix+set}" = set; then :
18130  withval=$with_libiconv_prefix;
18131    if test "X$withval" = "Xno"; then
18132      use_additional=no
18133    else
18134      if test "X$withval" = "X"; then
18135
18136  acl_save_prefix="$prefix"
18137  prefix="$acl_final_prefix"
18138  acl_save_exec_prefix="$exec_prefix"
18139  exec_prefix="$acl_final_exec_prefix"
18140
18141          eval additional_includedir=\"$includedir\"
18142          eval additional_libdir=\"$libdir\"
18143          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18144          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18145
18146  exec_prefix="$acl_save_exec_prefix"
18147  prefix="$acl_save_prefix"
18148
18149      else
18150        additional_includedir="$withval/include"
18151        additional_libdir="$withval/$acl_libdirstem"
18152        additional_libdir2="$withval/$acl_libdirstem2"
18153        additional_libdir3="$withval/$acl_libdirstem3"
18154      fi
18155    fi
18156
18157fi
18158
18159  if test "X$additional_libdir2" = "X$additional_libdir"; then
18160    additional_libdir2=
18161  fi
18162  if test "X$additional_libdir3" = "X$additional_libdir"; then
18163    additional_libdir3=
18164  fi
18165      LIBICONV=
18166  LTLIBICONV=
18167  INCICONV=
18168  LIBICONV_PREFIX=
18169      HAVE_LIBICONV=
18170  rpathdirs=
18171  ltrpathdirs=
18172  names_already_handled=
18173  names_next_round='iconv '
18174  while test -n "$names_next_round"; do
18175    names_this_round="$names_next_round"
18176    names_next_round=
18177    for name in $names_this_round; do
18178      already_handled=
18179      for n in $names_already_handled; do
18180        if test "$n" = "$name"; then
18181          already_handled=yes
18182          break
18183        fi
18184      done
18185      if test -z "$already_handled"; then
18186        names_already_handled="$names_already_handled $name"
18187                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18188        eval value=\"\$HAVE_LIB$uppername\"
18189        if test -n "$value"; then
18190          if test "$value" = yes; then
18191            eval value=\"\$LIB$uppername\"
18192            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18193            eval value=\"\$LTLIB$uppername\"
18194            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18195          else
18196                                    :
18197          fi
18198        else
18199                              found_dir=
18200          found_la=
18201          found_so=
18202          found_a=
18203          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18204          if test -n "$acl_shlibext"; then
18205            shrext=".$acl_shlibext"             # typically: shrext=.so
18206          else
18207            shrext=
18208          fi
18209          if test $use_additional = yes; then
18210            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18211              if test "X$found_dir" = "X"; then
18212                eval dir=\$$additional_libdir_variable
18213                if test -n "$dir"; then
18214                                                      if test -n "$acl_shlibext"; then
18215                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18216                      found_dir="$dir"
18217                      found_so="$dir/$libname$shrext"
18218                    else
18219                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18220                        ver=`(cd "$dir" && \
18221                              for f in "$libname$shrext".*; do echo "$f"; done \
18222                              | sed -e "s,^$libname$shrext\\\\.,," \
18223                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18224                              | sed 1q ) 2>/dev/null`
18225                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18226                          found_dir="$dir"
18227                          found_so="$dir/$libname$shrext.$ver"
18228                        fi
18229                      else
18230                        eval library_names=\"$acl_library_names_spec\"
18231                        for f in $library_names; do
18232                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18233                            found_dir="$dir"
18234                            found_so="$dir/$f"
18235                            break
18236                          fi
18237                        done
18238                      fi
18239                    fi
18240                  fi
18241                                    if test "X$found_dir" = "X"; then
18242                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18243                      found_dir="$dir"
18244                      found_a="$dir/$libname.$acl_libext"
18245                    fi
18246                  fi
18247                  if test "X$found_dir" != "X"; then
18248                    if test -f "$dir/$libname.la"; then
18249                      found_la="$dir/$libname.la"
18250                    fi
18251                  fi
18252                fi
18253              fi
18254            done
18255          fi
18256          if test "X$found_dir" = "X"; then
18257            for x in $LDFLAGS $LTLIBICONV; do
18258
18259  acl_save_prefix="$prefix"
18260  prefix="$acl_final_prefix"
18261  acl_save_exec_prefix="$exec_prefix"
18262  exec_prefix="$acl_final_exec_prefix"
18263  eval x=\"$x\"
18264  exec_prefix="$acl_save_exec_prefix"
18265  prefix="$acl_save_prefix"
18266
18267              case "$x" in
18268                -L*)
18269                  dir=`echo "X$x" | sed -e 's/^X-L//'`
18270                                    if test -n "$acl_shlibext"; then
18271                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18272                      found_dir="$dir"
18273                      found_so="$dir/$libname$shrext"
18274                    else
18275                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18276                        ver=`(cd "$dir" && \
18277                              for f in "$libname$shrext".*; do echo "$f"; done \
18278                              | sed -e "s,^$libname$shrext\\\\.,," \
18279                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18280                              | sed 1q ) 2>/dev/null`
18281                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18282                          found_dir="$dir"
18283                          found_so="$dir/$libname$shrext.$ver"
18284                        fi
18285                      else
18286                        eval library_names=\"$acl_library_names_spec\"
18287                        for f in $library_names; do
18288                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18289                            found_dir="$dir"
18290                            found_so="$dir/$f"
18291                            break
18292                          fi
18293                        done
18294                      fi
18295                    fi
18296                  fi
18297                                    if test "X$found_dir" = "X"; then
18298                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18299                      found_dir="$dir"
18300                      found_a="$dir/$libname.$acl_libext"
18301                    fi
18302                  fi
18303                  if test "X$found_dir" != "X"; then
18304                    if test -f "$dir/$libname.la"; then
18305                      found_la="$dir/$libname.la"
18306                    fi
18307                  fi
18308                  ;;
18309              esac
18310              if test "X$found_dir" != "X"; then
18311                break
18312              fi
18313            done
18314          fi
18315          if test "X$found_dir" != "X"; then
18316                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18317            if test "X$found_so" != "X"; then
18318                                                        if test "$enable_rpath" = no \
18319                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18320                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
18321                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
18322                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18323              else
18324                                                                                haveit=
18325                for x in $ltrpathdirs; do
18326                  if test "X$x" = "X$found_dir"; then
18327                    haveit=yes
18328                    break
18329                  fi
18330                done
18331                if test -z "$haveit"; then
18332                  ltrpathdirs="$ltrpathdirs $found_dir"
18333                fi
18334                                if test "$acl_hardcode_direct" = yes; then
18335                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18336                else
18337                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18338                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18339                                                            haveit=
18340                    for x in $rpathdirs; do
18341                      if test "X$x" = "X$found_dir"; then
18342                        haveit=yes
18343                        break
18344                      fi
18345                    done
18346                    if test -z "$haveit"; then
18347                      rpathdirs="$rpathdirs $found_dir"
18348                    fi
18349                  else
18350                                                                                haveit=
18351                    for x in $LDFLAGS $LIBICONV; do
18352
18353  acl_save_prefix="$prefix"
18354  prefix="$acl_final_prefix"
18355  acl_save_exec_prefix="$exec_prefix"
18356  exec_prefix="$acl_final_exec_prefix"
18357  eval x=\"$x\"
18358  exec_prefix="$acl_save_exec_prefix"
18359  prefix="$acl_save_prefix"
18360
18361                      if test "X$x" = "X-L$found_dir"; then
18362                        haveit=yes
18363                        break
18364                      fi
18365                    done
18366                    if test -z "$haveit"; then
18367                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18368                    fi
18369                    if test "$acl_hardcode_minus_L" != no; then
18370                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18371                    else
18372                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18373                    fi
18374                  fi
18375                fi
18376              fi
18377            else
18378              if test "X$found_a" != "X"; then
18379                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18380              else
18381                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18382              fi
18383            fi
18384                        additional_includedir=
18385            case "$found_dir" in
18386              */$acl_libdirstem | */$acl_libdirstem/)
18387                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18388                if test "$name" = 'iconv'; then
18389                  LIBICONV_PREFIX="$basedir"
18390                fi
18391                additional_includedir="$basedir/include"
18392                ;;
18393              */$acl_libdirstem2 | */$acl_libdirstem2/)
18394                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18395                if test "$name" = 'iconv'; then
18396                  LIBICONV_PREFIX="$basedir"
18397                fi
18398                additional_includedir="$basedir/include"
18399                ;;
18400              */$acl_libdirstem3 | */$acl_libdirstem3/)
18401                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18402                if test "$name" = 'iconv'; then
18403                  LIBICONV_PREFIX="$basedir"
18404                fi
18405                additional_includedir="$basedir/include"
18406                ;;
18407            esac
18408            if test "X$additional_includedir" != "X"; then
18409                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
18410                haveit=
18411                if test "X$additional_includedir" = "X/usr/local/include"; then
18412                  if test -n "$GCC"; then
18413                    case $host_os in
18414                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18415                    esac
18416                  fi
18417                fi
18418                if test -z "$haveit"; then
18419                  for x in $CPPFLAGS $INCICONV; do
18420
18421  acl_save_prefix="$prefix"
18422  prefix="$acl_final_prefix"
18423  acl_save_exec_prefix="$exec_prefix"
18424  exec_prefix="$acl_final_exec_prefix"
18425  eval x=\"$x\"
18426  exec_prefix="$acl_save_exec_prefix"
18427  prefix="$acl_save_prefix"
18428
18429                    if test "X$x" = "X-I$additional_includedir"; then
18430                      haveit=yes
18431                      break
18432                    fi
18433                  done
18434                  if test -z "$haveit"; then
18435                    if test -d "$additional_includedir"; then
18436                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18437                    fi
18438                  fi
18439                fi
18440              fi
18441            fi
18442                        if test -n "$found_la"; then
18443                                                        save_libdir="$libdir"
18444              case "$found_la" in
18445                */* | *\\*) . "$found_la" ;;
18446                *) . "./$found_la" ;;
18447              esac
18448              libdir="$save_libdir"
18449                            for dep in $dependency_libs; do
18450                case "$dep" in
18451                  -L*)
18452                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18453                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18454                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18455                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18456                      haveit=
18457                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18458                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18459                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18460                        if test -n "$GCC"; then
18461                          case $host_os in
18462                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18463                          esac
18464                        fi
18465                      fi
18466                      if test -z "$haveit"; then
18467                        haveit=
18468                        for x in $LDFLAGS $LIBICONV; do
18469
18470  acl_save_prefix="$prefix"
18471  prefix="$acl_final_prefix"
18472  acl_save_exec_prefix="$exec_prefix"
18473  exec_prefix="$acl_final_exec_prefix"
18474  eval x=\"$x\"
18475  exec_prefix="$acl_save_exec_prefix"
18476  prefix="$acl_save_prefix"
18477
18478                          if test "X$x" = "X-L$dependency_libdir"; then
18479                            haveit=yes
18480                            break
18481                          fi
18482                        done
18483                        if test -z "$haveit"; then
18484                          if test -d "$dependency_libdir"; then
18485                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
18486                          fi
18487                        fi
18488                        haveit=
18489                        for x in $LDFLAGS $LTLIBICONV; do
18490
18491  acl_save_prefix="$prefix"
18492  prefix="$acl_final_prefix"
18493  acl_save_exec_prefix="$exec_prefix"
18494  exec_prefix="$acl_final_exec_prefix"
18495  eval x=\"$x\"
18496  exec_prefix="$acl_save_exec_prefix"
18497  prefix="$acl_save_prefix"
18498
18499                          if test "X$x" = "X-L$dependency_libdir"; then
18500                            haveit=yes
18501                            break
18502                          fi
18503                        done
18504                        if test -z "$haveit"; then
18505                          if test -d "$dependency_libdir"; then
18506                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
18507                          fi
18508                        fi
18509                      fi
18510                    fi
18511                    ;;
18512                  -R*)
18513                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
18514                    if test "$enable_rpath" != no; then
18515                                                                  haveit=
18516                      for x in $rpathdirs; do
18517                        if test "X$x" = "X$dir"; then
18518                          haveit=yes
18519                          break
18520                        fi
18521                      done
18522                      if test -z "$haveit"; then
18523                        rpathdirs="$rpathdirs $dir"
18524                      fi
18525                                                                  haveit=
18526                      for x in $ltrpathdirs; do
18527                        if test "X$x" = "X$dir"; then
18528                          haveit=yes
18529                          break
18530                        fi
18531                      done
18532                      if test -z "$haveit"; then
18533                        ltrpathdirs="$ltrpathdirs $dir"
18534                      fi
18535                    fi
18536                    ;;
18537                  -l*)
18538                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18539                    ;;
18540                  *.la)
18541                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18542                    ;;
18543                  *)
18544                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18545                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18546                    ;;
18547                esac
18548              done
18549            fi
18550          else
18551                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18552            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18553          fi
18554        fi
18555      fi
18556    done
18557  done
18558  if test "X$rpathdirs" != "X"; then
18559    if test -n "$acl_hardcode_libdir_separator"; then
18560                        alldirs=
18561      for found_dir in $rpathdirs; do
18562        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18563      done
18564            acl_save_libdir="$libdir"
18565      libdir="$alldirs"
18566      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18567      libdir="$acl_save_libdir"
18568      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18569    else
18570            for found_dir in $rpathdirs; do
18571        acl_save_libdir="$libdir"
18572        libdir="$found_dir"
18573        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18574        libdir="$acl_save_libdir"
18575        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18576      done
18577    fi
18578  fi
18579  if test "X$ltrpathdirs" != "X"; then
18580            for found_dir in $ltrpathdirs; do
18581      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18582    done
18583  fi
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595          am_save_CPPFLAGS="$CPPFLAGS"
18596
18597  for element in $INCICONV; do
18598    haveit=
18599    for x in $CPPFLAGS; do
18600
18601  acl_save_prefix="$prefix"
18602  prefix="$acl_final_prefix"
18603  acl_save_exec_prefix="$exec_prefix"
18604  exec_prefix="$acl_final_exec_prefix"
18605  eval x=\"$x\"
18606  exec_prefix="$acl_save_exec_prefix"
18607  prefix="$acl_save_prefix"
18608
18609      if test "X$x" = "X$element"; then
18610        haveit=yes
18611        break
18612      fi
18613    done
18614    if test -z "$haveit"; then
18615      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18616    fi
18617  done
18618
18619
18620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18621$as_echo_n "checking for iconv... " >&6; }
18622if ${am_cv_func_iconv+:} false; then :
18623  $as_echo_n "(cached) " >&6
18624else
18625
18626    am_cv_func_iconv="no, consider installing GNU libiconv"
18627    am_cv_lib_iconv=no
18628    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629/* end confdefs.h.  */
18630
18631#include <stdlib.h>
18632#include <iconv.h>
18633
18634int
18635main ()
18636{
18637iconv_t cd = iconv_open("","");
18638           iconv(cd,NULL,NULL,NULL,NULL);
18639           iconv_close(cd);
18640  ;
18641  return 0;
18642}
18643_ACEOF
18644if ac_fn_c_try_link "$LINENO"; then :
18645  am_cv_func_iconv=yes
18646fi
18647rm -f core conftest.err conftest.$ac_objext \
18648    conftest$ac_exeext conftest.$ac_ext
18649    if test "$am_cv_func_iconv" != yes; then
18650      am_save_LIBS="$LIBS"
18651      LIBS="$LIBS $LIBICONV"
18652      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653/* end confdefs.h.  */
18654
18655#include <stdlib.h>
18656#include <iconv.h>
18657
18658int
18659main ()
18660{
18661iconv_t cd = iconv_open("","");
18662             iconv(cd,NULL,NULL,NULL,NULL);
18663             iconv_close(cd);
18664  ;
18665  return 0;
18666}
18667_ACEOF
18668if ac_fn_c_try_link "$LINENO"; then :
18669  am_cv_lib_iconv=yes
18670        am_cv_func_iconv=yes
18671fi
18672rm -f core conftest.err conftest.$ac_objext \
18673    conftest$ac_exeext conftest.$ac_ext
18674      LIBS="$am_save_LIBS"
18675    fi
18676
18677fi
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18679$as_echo "$am_cv_func_iconv" >&6; }
18680  if test "$am_cv_func_iconv" = yes; then
18681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18682$as_echo_n "checking for working iconv... " >&6; }
18683if ${am_cv_func_iconv_works+:} false; then :
18684  $as_echo_n "(cached) " >&6
18685else
18686
18687                  am_save_LIBS="$LIBS"
18688      if test $am_cv_lib_iconv = yes; then
18689        LIBS="$LIBS $LIBICONV"
18690      fi
18691      am_cv_func_iconv_works=no
18692      for ac_iconv_const in '' 'const'; do
18693        if test "$cross_compiling" = yes; then :
18694  case "$host_os" in
18695             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18696             *)            am_cv_func_iconv_works="guessing yes" ;;
18697           esac
18698else
18699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700/* end confdefs.h.  */
18701
18702#include <iconv.h>
18703#include <string.h>
18704
18705#ifndef ICONV_CONST
18706# define ICONV_CONST $ac_iconv_const
18707#endif
18708
18709int
18710main ()
18711{
18712int result = 0;
18713  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18714     returns.  */
18715  {
18716    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18717    if (cd_utf8_to_88591 != (iconv_t)(-1))
18718      {
18719        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18720        char buf[10];
18721        ICONV_CONST char *inptr = input;
18722        size_t inbytesleft = strlen (input);
18723        char *outptr = buf;
18724        size_t outbytesleft = sizeof (buf);
18725        size_t res = iconv (cd_utf8_to_88591,
18726                            &inptr, &inbytesleft,
18727                            &outptr, &outbytesleft);
18728        if (res == 0)
18729          result |= 1;
18730        iconv_close (cd_utf8_to_88591);
18731      }
18732  }
18733  /* Test against Solaris 10 bug: Failures are not distinguishable from
18734     successful returns.  */
18735  {
18736    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18737    if (cd_ascii_to_88591 != (iconv_t)(-1))
18738      {
18739        static ICONV_CONST char input[] = "\263";
18740        char buf[10];
18741        ICONV_CONST char *inptr = input;
18742        size_t inbytesleft = strlen (input);
18743        char *outptr = buf;
18744        size_t outbytesleft = sizeof (buf);
18745        size_t res = iconv (cd_ascii_to_88591,
18746                            &inptr, &inbytesleft,
18747                            &outptr, &outbytesleft);
18748        if (res == 0)
18749          result |= 2;
18750        iconv_close (cd_ascii_to_88591);
18751      }
18752  }
18753  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
18754  {
18755    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18756    if (cd_88591_to_utf8 != (iconv_t)(-1))
18757      {
18758        static ICONV_CONST char input[] = "\304";
18759        static char buf[2] = { (char)0xDE, (char)0xAD };
18760        ICONV_CONST char *inptr = input;
18761        size_t inbytesleft = 1;
18762        char *outptr = buf;
18763        size_t outbytesleft = 1;
18764        size_t res = iconv (cd_88591_to_utf8,
18765                            &inptr, &inbytesleft,
18766                            &outptr, &outbytesleft);
18767        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18768          result |= 4;
18769        iconv_close (cd_88591_to_utf8);
18770      }
18771  }
18772#if 0 /* This bug could be worked around by the caller.  */
18773  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
18774  {
18775    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18776    if (cd_88591_to_utf8 != (iconv_t)(-1))
18777      {
18778        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18779        char buf[50];
18780        ICONV_CONST char *inptr = input;
18781        size_t inbytesleft = strlen (input);
18782        char *outptr = buf;
18783        size_t outbytesleft = sizeof (buf);
18784        size_t res = iconv (cd_88591_to_utf8,
18785                            &inptr, &inbytesleft,
18786                            &outptr, &outbytesleft);
18787        if ((int)res > 0)
18788          result |= 8;
18789        iconv_close (cd_88591_to_utf8);
18790      }
18791  }
18792#endif
18793  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18794     provided.  */
18795  {
18796    /* Try standardized names.  */
18797    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
18798    /* Try IRIX, OSF/1 names.  */
18799    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
18800    /* Try AIX names.  */
18801    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
18802    /* Try HP-UX names.  */
18803    iconv_t cd4 = iconv_open ("utf8", "eucJP");
18804    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
18805        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
18806      result |= 16;
18807    if (cd1 != (iconv_t)(-1))
18808      iconv_close (cd1);
18809    if (cd2 != (iconv_t)(-1))
18810      iconv_close (cd2);
18811    if (cd3 != (iconv_t)(-1))
18812      iconv_close (cd3);
18813    if (cd4 != (iconv_t)(-1))
18814      iconv_close (cd4);
18815  }
18816  return result;
18817
18818  ;
18819  return 0;
18820}
18821_ACEOF
18822if ac_fn_c_try_run "$LINENO"; then :
18823  am_cv_func_iconv_works=yes
18824fi
18825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18826  conftest.$ac_objext conftest.beam conftest.$ac_ext
18827fi
18828
18829        test "$am_cv_func_iconv_works" = no || break
18830      done
18831      LIBS="$am_save_LIBS"
18832
18833fi
18834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18835$as_echo "$am_cv_func_iconv_works" >&6; }
18836    case "$am_cv_func_iconv_works" in
18837      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18838      *)   am_func_iconv=yes ;;
18839    esac
18840  else
18841    am_func_iconv=no am_cv_lib_iconv=no
18842  fi
18843  if test "$am_func_iconv" = yes; then
18844
18845$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18846
18847  fi
18848  if test "$am_cv_lib_iconv" = yes; then
18849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18850$as_echo_n "checking how to link with libiconv... " >&6; }
18851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18852$as_echo "$LIBICONV" >&6; }
18853  else
18854            CPPFLAGS="$am_save_CPPFLAGS"
18855    LIBICONV=
18856    LTLIBICONV=
18857  fi
18858
18859
18860
18861  if test "$am_cv_func_iconv" = yes; then
18862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18863$as_echo_n "checking for iconv declaration... " >&6; }
18864    if ${am_cv_proto_iconv+:} false; then :
18865  $as_echo_n "(cached) " >&6
18866else
18867
18868      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869/* end confdefs.h.  */
18870
18871#include <stdlib.h>
18872#include <iconv.h>
18873extern
18874#ifdef __cplusplus
18875"C"
18876#endif
18877#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
18878size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18879#else
18880size_t iconv();
18881#endif
18882
18883int
18884main ()
18885{
18886
18887  ;
18888  return 0;
18889}
18890_ACEOF
18891if ac_fn_c_try_compile "$LINENO"; then :
18892  am_cv_proto_iconv_arg1=""
18893else
18894  am_cv_proto_iconv_arg1="const"
18895fi
18896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897      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);"
18898fi
18899
18900    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18901    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18902         $am_cv_proto_iconv" >&5
18903$as_echo "
18904         $am_cv_proto_iconv" >&6; }
18905  else
18906            am_cv_proto_iconv_arg1=""
18907  fi
18908
18909cat >>confdefs.h <<_ACEOF
18910#define ICONV_CONST $am_cv_proto_iconv_arg1
18911_ACEOF
18912
18913
18914
18915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18916$as_echo_n "checking for inline... " >&6; }
18917if ${ac_cv_c_inline+:} false; then :
18918  $as_echo_n "(cached) " >&6
18919else
18920  ac_cv_c_inline=no
18921for ac_kw in inline __inline__ __inline; do
18922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923/* end confdefs.h.  */
18924#ifndef __cplusplus
18925typedef int foo_t;
18926static $ac_kw foo_t static_foo () {return 0; }
18927$ac_kw foo_t foo () {return 0; }
18928#endif
18929
18930_ACEOF
18931if ac_fn_c_try_compile "$LINENO"; then :
18932  ac_cv_c_inline=$ac_kw
18933fi
18934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935  test "$ac_cv_c_inline" != no && break
18936done
18937
18938fi
18939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18940$as_echo "$ac_cv_c_inline" >&6; }
18941
18942case $ac_cv_c_inline in
18943  inline | yes) ;;
18944  *)
18945    case $ac_cv_c_inline in
18946      no) ac_val=;;
18947      *) ac_val=$ac_cv_c_inline;;
18948    esac
18949    cat >>confdefs.h <<_ACEOF
18950#ifndef __cplusplus
18951#define inline $ac_val
18952#endif
18953_ACEOF
18954    ;;
18955esac
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969     if test $gl_cv_have_include_next = yes; then
18970       gl_cv_next_limits_h='<'limits.h'>'
18971     else
18972       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
18973$as_echo_n "checking absolute name of <limits.h>... " >&6; }
18974if ${gl_cv_next_limits_h+:} false; then :
18975  $as_echo_n "(cached) " >&6
18976else
18977
18978             if test $ac_cv_header_limits_h = yes; then
18979
18980
18981
18982
18983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984/* end confdefs.h.  */
18985#include <limits.h>
18986_ACEOF
18987                case "$host_os" in
18988    aix*) gl_absname_cpp="$ac_cpp -C" ;;
18989    *)    gl_absname_cpp="$ac_cpp" ;;
18990  esac
18991
18992  case "$host_os" in
18993    mingw*)
18994                                          gl_dirsep_regex='[/\\]'
18995      ;;
18996    *)
18997      gl_dirsep_regex='\/'
18998      ;;
18999  esac
19000      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19001  gl_header_literal_regex=`echo 'limits.h' \
19002                           | sed -e "$gl_make_literal_regex_sed"`
19003  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19004      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19005      s|^/[^/]|//&|
19006      p
19007      q
19008    }'
19009
19010        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19011  sed -n "$gl_absolute_header_sed"`
19012
19013           gl_header=$gl_cv_absolute_limits_h
19014           gl_cv_next_limits_h='"'$gl_header'"'
19015          else
19016               gl_cv_next_limits_h='<'limits.h'>'
19017             fi
19018
19019
19020fi
19021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
19022$as_echo "$gl_cv_next_limits_h" >&6; }
19023     fi
19024     NEXT_LIMITS_H=$gl_cv_next_limits_h
19025
19026     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19027       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19028       gl_next_as_first_directive='<'limits.h'>'
19029     else
19030       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19031       gl_next_as_first_directive=$gl_cv_next_limits_h
19032     fi
19033     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
19034
19035
19036
19037
19038
19039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
19040$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
19041if ${gl_cv_header_limits_width+:} false; then :
19042  $as_echo_n "(cached) " >&6
19043else
19044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045/* end confdefs.h.  */
19046#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
19047             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
19048            #endif
19049            #include <limits.h>
19050            long long llm = LLONG_MAX;
19051            int wb = WORD_BIT;
19052            int ullw = ULLONG_WIDTH;
19053
19054int
19055main ()
19056{
19057
19058  ;
19059  return 0;
19060}
19061_ACEOF
19062if ac_fn_c_try_compile "$LINENO"; then :
19063  gl_cv_header_limits_width=yes
19064else
19065  gl_cv_header_limits_width=no
19066fi
19067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068fi
19069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
19070$as_echo "$gl_cv_header_limits_width" >&6; }
19071  if test "$gl_cv_header_limits_width" = yes; then
19072    LIMITS_H=
19073  else
19074    LIMITS_H=limits.h
19075  fi
19076
19077   if test -n "$LIMITS_H"; then
19078  GL_GENERATE_LIMITS_H_TRUE=
19079  GL_GENERATE_LIMITS_H_FALSE='#'
19080else
19081  GL_GENERATE_LIMITS_H_TRUE='#'
19082  GL_GENERATE_LIMITS_H_FALSE=
19083fi
19084
19085
19086
19087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19088$as_echo_n "checking for wint_t... " >&6; }
19089if ${gt_cv_c_wint_t+:} false; then :
19090  $as_echo_n "(cached) " >&6
19091else
19092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093/* end confdefs.h.  */
19094
19095/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19096   <wchar.h>.
19097   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19098   before <wchar.h>.  */
19099#include <stddef.h>
19100#include <stdio.h>
19101#include <time.h>
19102#include <wchar.h>
19103            wint_t foo = (wchar_t)'\0';
19104int
19105main ()
19106{
19107
19108  ;
19109  return 0;
19110}
19111_ACEOF
19112if ac_fn_c_try_compile "$LINENO"; then :
19113  gt_cv_c_wint_t=yes
19114else
19115  gt_cv_c_wint_t=no
19116fi
19117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19118fi
19119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19120$as_echo "$gt_cv_c_wint_t" >&6; }
19121  if test $gt_cv_c_wint_t = yes; then
19122
19123$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19124
19125
19126            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
19127$as_echo_n "checking whether wint_t is too small... " >&6; }
19128if ${gl_cv_type_wint_t_too_small+:} false; then :
19129  $as_echo_n "(cached) " >&6
19130else
19131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19132/* end confdefs.h.  */
19133
19134/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19135   <wchar.h>.
19136   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19137   included before <wchar.h>.  */
19138#if !(defined __GLIBC__ && !defined __UCLIBC__)
19139# include <stddef.h>
19140# include <stdio.h>
19141# include <time.h>
19142#endif
19143#include <wchar.h>
19144            int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
19145
19146int
19147main ()
19148{
19149
19150  ;
19151  return 0;
19152}
19153_ACEOF
19154if ac_fn_c_try_compile "$LINENO"; then :
19155  gl_cv_type_wint_t_too_small=no
19156else
19157  gl_cv_type_wint_t_too_small=yes
19158fi
19159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160fi
19161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
19162$as_echo "$gl_cv_type_wint_t_too_small" >&6; }
19163    if test $gl_cv_type_wint_t_too_small = yes; then
19164      GNULIB_OVERRIDES_WINT_T=1
19165    else
19166      GNULIB_OVERRIDES_WINT_T=0
19167    fi
19168  else
19169    GNULIB_OVERRIDES_WINT_T=0
19170  fi
19171
19172
19173
19174
19175
19176
19177
19178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
19179$as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
19180if ${gl_cv_c_multiarch+:} false; then :
19181  $as_echo_n "(cached) " >&6
19182else
19183  gl_cv_c_multiarch=no
19184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185/* end confdefs.h.  */
19186#ifndef __APPLE_CC__
19187            not a universal capable compiler
19188           #endif
19189           typedef int dummy;
19190
19191_ACEOF
19192if ac_fn_c_try_compile "$LINENO"; then :
19193
19194                        arch=
19195        prev=
19196        for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19197          if test -n "$prev"; then
19198            case $word in
19199              i?86 | x86_64 | ppc | ppc64 | arm | arm64)
19200                if test -z "$arch" || test "$arch" = "$word"; then
19201                  arch="$word"
19202                else
19203                  gl_cv_c_multiarch=yes
19204                fi
19205                ;;
19206            esac
19207            prev=
19208          else
19209            if test "x$word" = "x-arch"; then
19210              prev=arch
19211            fi
19212          fi
19213        done
19214
19215fi
19216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217
19218fi
19219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
19220$as_echo "$gl_cv_c_multiarch" >&6; }
19221  if test $gl_cv_c_multiarch = yes; then
19222    APPLE_UNIVERSAL_BUILD=1
19223  else
19224    APPLE_UNIVERSAL_BUILD=0
19225  fi
19226
19227
19228
19229
19230
19231
19232
19233
19234$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19235
19236
19237$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19238
19239
19240
19241  if test $ac_cv_header_wchar_h = yes; then
19242    HAVE_WCHAR_H=1
19243  else
19244    HAVE_WCHAR_H=0
19245  fi
19246
19247
19248      if test $ac_cv_header_inttypes_h = yes; then
19249    HAVE_INTTYPES_H=1
19250  else
19251    HAVE_INTTYPES_H=0
19252  fi
19253
19254
19255      if test $ac_cv_header_sys_types_h = yes; then
19256    HAVE_SYS_TYPES_H=1
19257  else
19258    HAVE_SYS_TYPES_H=0
19259  fi
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271     if test $gl_cv_have_include_next = yes; then
19272       gl_cv_next_stdint_h='<'stdint.h'>'
19273     else
19274       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19275$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19276if ${gl_cv_next_stdint_h+:} false; then :
19277  $as_echo_n "(cached) " >&6
19278else
19279
19280             if test $ac_cv_header_stdint_h = yes; then
19281
19282
19283
19284
19285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286/* end confdefs.h.  */
19287#include <stdint.h>
19288_ACEOF
19289                case "$host_os" in
19290    aix*) gl_absname_cpp="$ac_cpp -C" ;;
19291    *)    gl_absname_cpp="$ac_cpp" ;;
19292  esac
19293
19294  case "$host_os" in
19295    mingw*)
19296                                          gl_dirsep_regex='[/\\]'
19297      ;;
19298    *)
19299      gl_dirsep_regex='\/'
19300      ;;
19301  esac
19302      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19303  gl_header_literal_regex=`echo 'stdint.h' \
19304                           | sed -e "$gl_make_literal_regex_sed"`
19305  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19306      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19307      s|^/[^/]|//&|
19308      p
19309      q
19310    }'
19311
19312        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19313  sed -n "$gl_absolute_header_sed"`
19314
19315           gl_header=$gl_cv_absolute_stdint_h
19316           gl_cv_next_stdint_h='"'$gl_header'"'
19317          else
19318               gl_cv_next_stdint_h='<'stdint.h'>'
19319             fi
19320
19321
19322fi
19323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19324$as_echo "$gl_cv_next_stdint_h" >&6; }
19325     fi
19326     NEXT_STDINT_H=$gl_cv_next_stdint_h
19327
19328     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19329       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19330       gl_next_as_first_directive='<'stdint.h'>'
19331     else
19332       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19333       gl_next_as_first_directive=$gl_cv_next_stdint_h
19334     fi
19335     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19336
19337
19338
19339
19340  if test $ac_cv_header_stdint_h = yes; then
19341    HAVE_STDINT_H=1
19342  else
19343    HAVE_STDINT_H=0
19344  fi
19345
19346
19347    if test $ac_cv_header_stdint_h = yes; then
19348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19349$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19350if ${gl_cv_header_working_stdint_h+:} false; then :
19351  $as_echo_n "(cached) " >&6
19352else
19353  gl_cv_header_working_stdint_h=no
19354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355/* end confdefs.h.  */
19356
19357
19358#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19359#define __STDC_CONSTANT_MACROS 1
19360#define __STDC_LIMIT_MACROS 1
19361#include <stdint.h>
19362/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
19363#if !(defined WCHAR_MIN && defined WCHAR_MAX)
19364#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19365#endif
19366
19367
19368  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19369     included before <wchar.h>.  */
19370  #include <stddef.h>
19371  #include <signal.h>
19372  #if HAVE_WCHAR_H
19373  # include <stdio.h>
19374  # include <time.h>
19375  # include <wchar.h>
19376  #endif
19377
19378
19379#ifdef INT8_MAX
19380int8_t a1 = INT8_MAX;
19381int8_t a1min = INT8_MIN;
19382#endif
19383#ifdef INT16_MAX
19384int16_t a2 = INT16_MAX;
19385int16_t a2min = INT16_MIN;
19386#endif
19387#ifdef INT32_MAX
19388int32_t a3 = INT32_MAX;
19389int32_t a3min = INT32_MIN;
19390#endif
19391#ifdef INT64_MAX
19392int64_t a4 = INT64_MAX;
19393int64_t a4min = INT64_MIN;
19394#endif
19395#ifdef UINT8_MAX
19396uint8_t b1 = UINT8_MAX;
19397#else
19398typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19399#endif
19400#ifdef UINT16_MAX
19401uint16_t b2 = UINT16_MAX;
19402#endif
19403#ifdef UINT32_MAX
19404uint32_t b3 = UINT32_MAX;
19405#endif
19406#ifdef UINT64_MAX
19407uint64_t b4 = UINT64_MAX;
19408#endif
19409int_least8_t c1 = INT8_C (0x7f);
19410int_least8_t c1max = INT_LEAST8_MAX;
19411int_least8_t c1min = INT_LEAST8_MIN;
19412int_least16_t c2 = INT16_C (0x7fff);
19413int_least16_t c2max = INT_LEAST16_MAX;
19414int_least16_t c2min = INT_LEAST16_MIN;
19415int_least32_t c3 = INT32_C (0x7fffffff);
19416int_least32_t c3max = INT_LEAST32_MAX;
19417int_least32_t c3min = INT_LEAST32_MIN;
19418int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19419int_least64_t c4max = INT_LEAST64_MAX;
19420int_least64_t c4min = INT_LEAST64_MIN;
19421uint_least8_t d1 = UINT8_C (0xff);
19422uint_least8_t d1max = UINT_LEAST8_MAX;
19423uint_least16_t d2 = UINT16_C (0xffff);
19424uint_least16_t d2max = UINT_LEAST16_MAX;
19425uint_least32_t d3 = UINT32_C (0xffffffff);
19426uint_least32_t d3max = UINT_LEAST32_MAX;
19427uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19428uint_least64_t d4max = UINT_LEAST64_MAX;
19429int_fast8_t e1 = INT_FAST8_MAX;
19430int_fast8_t e1min = INT_FAST8_MIN;
19431int_fast16_t e2 = INT_FAST16_MAX;
19432int_fast16_t e2min = INT_FAST16_MIN;
19433int_fast32_t e3 = INT_FAST32_MAX;
19434int_fast32_t e3min = INT_FAST32_MIN;
19435int_fast64_t e4 = INT_FAST64_MAX;
19436int_fast64_t e4min = INT_FAST64_MIN;
19437uint_fast8_t f1 = UINT_FAST8_MAX;
19438uint_fast16_t f2 = UINT_FAST16_MAX;
19439uint_fast32_t f3 = UINT_FAST32_MAX;
19440uint_fast64_t f4 = UINT_FAST64_MAX;
19441#ifdef INTPTR_MAX
19442intptr_t g = INTPTR_MAX;
19443intptr_t gmin = INTPTR_MIN;
19444#endif
19445#ifdef UINTPTR_MAX
19446uintptr_t h = UINTPTR_MAX;
19447#endif
19448intmax_t i = INTMAX_MAX;
19449uintmax_t j = UINTMAX_MAX;
19450
19451/* Check that SIZE_MAX has the correct type, if possible.  */
19452#if 201112 <= __STDC_VERSION__
19453int k = _Generic (SIZE_MAX, size_t: 0);
19454#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
19455       || (0x5110 <= __SUNPRO_C && !__STDC__))
19456extern size_t k;
19457extern __typeof__ (SIZE_MAX) k;
19458#endif
19459
19460#include <limits.h> /* for CHAR_BIT */
19461#define TYPE_MINIMUM(t) \
19462  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19463#define TYPE_MAXIMUM(t) \
19464  ((t) ((t) 0 < (t) -1 \
19465        ? (t) -1 \
19466        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19467struct s {
19468  int check_PTRDIFF:
19469      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19470      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19471      ? 1 : -1;
19472  /* Detect bug in FreeBSD 6.0 / ia64.  */
19473  int check_SIG_ATOMIC:
19474      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19475      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19476      ? 1 : -1;
19477  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19478  int check_WCHAR:
19479      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19480      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19481      ? 1 : -1;
19482  /* Detect bug in mingw.  */
19483  int check_WINT:
19484      WINT_MIN == TYPE_MINIMUM (wint_t)
19485      && WINT_MAX == TYPE_MAXIMUM (wint_t)
19486      ? 1 : -1;
19487
19488  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
19489  int check_UINT8_C:
19490        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19491  int check_UINT16_C:
19492        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19493
19494  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
19495#ifdef UINT8_MAX
19496  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19497#endif
19498#ifdef UINT16_MAX
19499  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19500#endif
19501#ifdef UINT32_MAX
19502  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19503#endif
19504#ifdef UINT64_MAX
19505  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19506#endif
19507  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19508  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19509  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19510  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19511  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19512  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19513  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19514  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19515  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19516  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19517  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19518};
19519
19520int
19521main ()
19522{
19523
19524  ;
19525  return 0;
19526}
19527_ACEOF
19528if ac_fn_c_try_compile "$LINENO"; then :
19529                                                    if test "$cross_compiling" = yes; then :
19530  case "$host_os" in
19531                         # Guess yes on native Windows.
19532                 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
19533                         # In general, assume it works.
19534                 *)      gl_cv_header_working_stdint_h="guessing yes" ;;
19535               esac
19536
19537else
19538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539/* end confdefs.h.  */
19540
19541
19542#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19543#define __STDC_CONSTANT_MACROS 1
19544#define __STDC_LIMIT_MACROS 1
19545#include <stdint.h>
19546
19547
19548  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19549     included before <wchar.h>.  */
19550  #include <stddef.h>
19551  #include <signal.h>
19552  #if HAVE_WCHAR_H
19553  # include <stdio.h>
19554  # include <time.h>
19555  # include <wchar.h>
19556  #endif
19557
19558
19559#include <stdio.h>
19560#include <string.h>
19561#define MVAL(macro) MVAL1(macro)
19562#define MVAL1(expression) #expression
19563static const char *macro_values[] =
19564  {
19565#ifdef INT8_MAX
19566    MVAL (INT8_MAX),
19567#endif
19568#ifdef INT16_MAX
19569    MVAL (INT16_MAX),
19570#endif
19571#ifdef INT32_MAX
19572    MVAL (INT32_MAX),
19573#endif
19574#ifdef INT64_MAX
19575    MVAL (INT64_MAX),
19576#endif
19577#ifdef UINT8_MAX
19578    MVAL (UINT8_MAX),
19579#endif
19580#ifdef UINT16_MAX
19581    MVAL (UINT16_MAX),
19582#endif
19583#ifdef UINT32_MAX
19584    MVAL (UINT32_MAX),
19585#endif
19586#ifdef UINT64_MAX
19587    MVAL (UINT64_MAX),
19588#endif
19589    NULL
19590  };
19591
19592int
19593main ()
19594{
19595
19596  const char **mv;
19597  for (mv = macro_values; *mv != NULL; mv++)
19598    {
19599      const char *value = *mv;
19600      /* Test whether it looks like a cast expression.  */
19601      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19602          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19603          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19604          || strncmp (value, "((int)"/*)*/, 6) == 0
19605          || strncmp (value, "((signed short)"/*)*/, 15) == 0
19606          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19607        return mv - macro_values + 1;
19608    }
19609  return 0;
19610
19611  ;
19612  return 0;
19613}
19614_ACEOF
19615if ac_fn_c_try_run "$LINENO"; then :
19616  gl_cv_header_working_stdint_h=yes
19617fi
19618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19619  conftest.$ac_objext conftest.beam conftest.$ac_ext
19620fi
19621
19622
19623fi
19624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625
19626fi
19627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19628$as_echo "$gl_cv_header_working_stdint_h" >&6; }
19629  fi
19630
19631  HAVE_C99_STDINT_H=0
19632  HAVE_SYS_BITYPES_H=0
19633  HAVE_SYS_INTTYPES_H=0
19634  STDINT_H=stdint.h
19635  case "$gl_cv_header_working_stdint_h" in
19636    *yes)
19637      HAVE_C99_STDINT_H=1
19638                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
19639$as_echo_n "checking whether stdint.h predates C++11... " >&6; }
19640if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
19641  $as_echo_n "(cached) " >&6
19642else
19643  gl_cv_header_stdint_predates_cxx11_h=yes
19644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645/* end confdefs.h.  */
19646
19647
19648#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19649#include <stdint.h>
19650
19651
19652  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19653     included before <wchar.h>.  */
19654  #include <stddef.h>
19655  #include <signal.h>
19656  #if HAVE_WCHAR_H
19657  # include <stdio.h>
19658  # include <time.h>
19659  # include <wchar.h>
19660  #endif
19661
19662
19663intmax_t im = INTMAX_MAX;
19664int32_t i32 = INT32_C (0x7fffffff);
19665
19666int
19667main ()
19668{
19669
19670  ;
19671  return 0;
19672}
19673_ACEOF
19674if ac_fn_c_try_compile "$LINENO"; then :
19675  gl_cv_header_stdint_predates_cxx11_h=no
19676fi
19677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19678fi
19679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
19680$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
19681
19682      if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
19683
19684$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
19685
19686
19687$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
19688
19689      fi
19690      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
19691$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
19692if ${gl_cv_header_stdint_width+:} false; then :
19693  $as_echo_n "(cached) " >&6
19694else
19695  gl_cv_header_stdint_width=no
19696         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697/* end confdefs.h.  */
19698
19699              /* Work if build is not clean.  */
19700              #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
19701              #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
19702               #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
19703              #endif
19704              #include <stdint.h>
19705
19706  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19707     included before <wchar.h>.  */
19708  #include <stddef.h>
19709  #include <signal.h>
19710  #if HAVE_WCHAR_H
19711  # include <stdio.h>
19712  # include <time.h>
19713  # include <wchar.h>
19714  #endif
19715
19716              int iw = UINTMAX_WIDTH;
19717
19718int
19719main ()
19720{
19721
19722  ;
19723  return 0;
19724}
19725_ACEOF
19726if ac_fn_c_try_compile "$LINENO"; then :
19727  gl_cv_header_stdint_width=yes
19728fi
19729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19730fi
19731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
19732$as_echo "$gl_cv_header_stdint_width" >&6; }
19733      if test "$gl_cv_header_stdint_width" = yes; then
19734        STDINT_H=
19735      fi
19736      ;;
19737    *)
19738                  for ac_header in sys/inttypes.h sys/bitypes.h
19739do :
19740  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19741ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19743  cat >>confdefs.h <<_ACEOF
19744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19745_ACEOF
19746
19747fi
19748
19749done
19750
19751      if test $ac_cv_header_sys_inttypes_h = yes; then
19752        HAVE_SYS_INTTYPES_H=1
19753      fi
19754      if test $ac_cv_header_sys_bitypes_h = yes; then
19755        HAVE_SYS_BITYPES_H=1
19756      fi
19757
19758
19759  if test $APPLE_UNIVERSAL_BUILD = 0; then
19760
19761
19762  for gltype in ptrdiff_t size_t ; do
19763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19764$as_echo_n "checking for bit size of $gltype... " >&6; }
19765if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19766  $as_echo_n "(cached) " >&6
19767else
19768  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19769  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19770     included before <wchar.h>.  */
19771  #include <stddef.h>
19772  #include <signal.h>
19773  #if HAVE_WCHAR_H
19774  # include <stdio.h>
19775  # include <time.h>
19776  # include <wchar.h>
19777  #endif
19778
19779#include <limits.h>"; then :
19780
19781else
19782  result=unknown
19783fi
19784
19785       eval gl_cv_bitsizeof_${gltype}=\$result
19786
19787fi
19788eval ac_res=\$gl_cv_bitsizeof_${gltype}
19789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19790$as_echo "$ac_res" >&6; }
19791    eval result=\$gl_cv_bitsizeof_${gltype}
19792    if test $result = unknown; then
19793                                                result=0
19794    fi
19795    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19796    cat >>confdefs.h <<_ACEOF
19797#define BITSIZEOF_${GLTYPE} $result
19798_ACEOF
19799
19800    eval BITSIZEOF_${GLTYPE}=\$result
19801  done
19802
19803
19804  fi
19805
19806
19807  for gltype in sig_atomic_t wchar_t wint_t ; do
19808    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19809$as_echo_n "checking for bit size of $gltype... " >&6; }
19810if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19811  $as_echo_n "(cached) " >&6
19812else
19813  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19814  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19815     included before <wchar.h>.  */
19816  #include <stddef.h>
19817  #include <signal.h>
19818  #if HAVE_WCHAR_H
19819  # include <stdio.h>
19820  # include <time.h>
19821  # include <wchar.h>
19822  #endif
19823
19824#include <limits.h>"; then :
19825
19826else
19827  result=unknown
19828fi
19829
19830       eval gl_cv_bitsizeof_${gltype}=\$result
19831
19832fi
19833eval ac_res=\$gl_cv_bitsizeof_${gltype}
19834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19835$as_echo "$ac_res" >&6; }
19836    eval result=\$gl_cv_bitsizeof_${gltype}
19837    if test $result = unknown; then
19838                                                result=0
19839    fi
19840    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19841    cat >>confdefs.h <<_ACEOF
19842#define BITSIZEOF_${GLTYPE} $result
19843_ACEOF
19844
19845    eval BITSIZEOF_${GLTYPE}=\$result
19846  done
19847
19848
19849
19850
19851  for gltype in sig_atomic_t wchar_t wint_t ; do
19852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19853$as_echo_n "checking whether $gltype is signed... " >&6; }
19854if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19855  $as_echo_n "(cached) " >&6
19856else
19857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19858/* end confdefs.h.  */
19859
19860  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19861     included before <wchar.h>.  */
19862  #include <stddef.h>
19863  #include <signal.h>
19864  #if HAVE_WCHAR_H
19865  # include <stdio.h>
19866  # include <time.h>
19867  # include <wchar.h>
19868  #endif
19869
19870            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19871int
19872main ()
19873{
19874
19875  ;
19876  return 0;
19877}
19878_ACEOF
19879if ac_fn_c_try_compile "$LINENO"; then :
19880  result=yes
19881else
19882  result=no
19883fi
19884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885       eval gl_cv_type_${gltype}_signed=\$result
19886
19887fi
19888eval ac_res=\$gl_cv_type_${gltype}_signed
19889	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19890$as_echo "$ac_res" >&6; }
19891    eval result=\$gl_cv_type_${gltype}_signed
19892    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19893    if test "$result" = yes; then
19894      cat >>confdefs.h <<_ACEOF
19895#define HAVE_SIGNED_${GLTYPE} 1
19896_ACEOF
19897
19898      eval HAVE_SIGNED_${GLTYPE}=1
19899    else
19900      eval HAVE_SIGNED_${GLTYPE}=0
19901    fi
19902  done
19903
19904
19905  gl_cv_type_ptrdiff_t_signed=yes
19906  gl_cv_type_size_t_signed=no
19907  if test $APPLE_UNIVERSAL_BUILD = 0; then
19908
19909
19910  for gltype in ptrdiff_t size_t ; do
19911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19912$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19913if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19914  $as_echo_n "(cached) " >&6
19915else
19916  eval gl_cv_type_${gltype}_suffix=no
19917       eval result=\$gl_cv_type_${gltype}_signed
19918       if test "$result" = yes; then
19919         glsufu=
19920       else
19921         glsufu=u
19922       fi
19923       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19924         case $glsuf in
19925           '')  gltype1='int';;
19926           l)   gltype1='long int';;
19927           ll)  gltype1='long long int';;
19928           i64) gltype1='__int64';;
19929           u)   gltype1='unsigned int';;
19930           ul)  gltype1='unsigned long int';;
19931           ull) gltype1='unsigned long long int';;
19932           ui64)gltype1='unsigned __int64';;
19933         esac
19934         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935/* end confdefs.h.  */
19936
19937  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19938     included before <wchar.h>.  */
19939  #include <stddef.h>
19940  #include <signal.h>
19941  #if HAVE_WCHAR_H
19942  # include <stdio.h>
19943  # include <time.h>
19944  # include <wchar.h>
19945  #endif
19946
19947              extern $gltype foo;
19948              extern $gltype1 foo;
19949int
19950main ()
19951{
19952
19953  ;
19954  return 0;
19955}
19956_ACEOF
19957if ac_fn_c_try_compile "$LINENO"; then :
19958  eval gl_cv_type_${gltype}_suffix=\$glsuf
19959fi
19960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961         eval result=\$gl_cv_type_${gltype}_suffix
19962         test "$result" != no && break
19963       done
19964fi
19965eval ac_res=\$gl_cv_type_${gltype}_suffix
19966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19967$as_echo "$ac_res" >&6; }
19968    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19969    eval result=\$gl_cv_type_${gltype}_suffix
19970    test "$result" = no && result=
19971    eval ${GLTYPE}_SUFFIX=\$result
19972    cat >>confdefs.h <<_ACEOF
19973#define ${GLTYPE}_SUFFIX $result
19974_ACEOF
19975
19976  done
19977
19978
19979  fi
19980
19981
19982  for gltype in sig_atomic_t wchar_t wint_t ; do
19983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19984$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19985if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19986  $as_echo_n "(cached) " >&6
19987else
19988  eval gl_cv_type_${gltype}_suffix=no
19989       eval result=\$gl_cv_type_${gltype}_signed
19990       if test "$result" = yes; then
19991         glsufu=
19992       else
19993         glsufu=u
19994       fi
19995       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19996         case $glsuf in
19997           '')  gltype1='int';;
19998           l)   gltype1='long int';;
19999           ll)  gltype1='long long int';;
20000           i64) gltype1='__int64';;
20001           u)   gltype1='unsigned int';;
20002           ul)  gltype1='unsigned long int';;
20003           ull) gltype1='unsigned long long int';;
20004           ui64)gltype1='unsigned __int64';;
20005         esac
20006         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007/* end confdefs.h.  */
20008
20009  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20010     included before <wchar.h>.  */
20011  #include <stddef.h>
20012  #include <signal.h>
20013  #if HAVE_WCHAR_H
20014  # include <stdio.h>
20015  # include <time.h>
20016  # include <wchar.h>
20017  #endif
20018
20019              extern $gltype foo;
20020              extern $gltype1 foo;
20021int
20022main ()
20023{
20024
20025  ;
20026  return 0;
20027}
20028_ACEOF
20029if ac_fn_c_try_compile "$LINENO"; then :
20030  eval gl_cv_type_${gltype}_suffix=\$glsuf
20031fi
20032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033         eval result=\$gl_cv_type_${gltype}_suffix
20034         test "$result" != no && break
20035       done
20036fi
20037eval ac_res=\$gl_cv_type_${gltype}_suffix
20038	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20039$as_echo "$ac_res" >&6; }
20040    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20041    eval result=\$gl_cv_type_${gltype}_suffix
20042    test "$result" = no && result=
20043    eval ${GLTYPE}_SUFFIX=\$result
20044    cat >>confdefs.h <<_ACEOF
20045#define ${GLTYPE}_SUFFIX $result
20046_ACEOF
20047
20048  done
20049
20050
20051
20052          if test $GNULIB_OVERRIDES_WINT_T = 1; then
20053    BITSIZEOF_WINT_T=32
20054  fi
20055
20056      ;;
20057  esac
20058
20059
20060
20061  LIMITS_H='limits.h'
20062   if test -n "$LIMITS_H"; then
20063  GL_GENERATE_LIMITS_H_TRUE=
20064  GL_GENERATE_LIMITS_H_FALSE='#'
20065else
20066  GL_GENERATE_LIMITS_H_TRUE='#'
20067  GL_GENERATE_LIMITS_H_FALSE=
20068fi
20069
20070
20071
20072
20073
20074
20075
20076   if test -n "$STDINT_H"; then
20077  GL_GENERATE_STDINT_H_TRUE=
20078  GL_GENERATE_STDINT_H_FALSE='#'
20079else
20080  GL_GENERATE_STDINT_H_TRUE='#'
20081  GL_GENERATE_STDINT_H_FALSE=
20082fi
20083
20084
20085
20086
20087
20088  GNULIB_IMAXABS=0;
20089  GNULIB_IMAXDIV=0;
20090  GNULIB_STRTOIMAX=0;
20091  GNULIB_STRTOUMAX=0;
20092    HAVE_DECL_IMAXABS=1;
20093  HAVE_DECL_IMAXDIV=1;
20094  HAVE_DECL_STRTOIMAX=1;
20095  HAVE_DECL_STRTOUMAX=1;
20096  HAVE_IMAXDIV_T=1;
20097  REPLACE_STRTOIMAX=0;
20098  REPLACE_STRTOUMAX=0;
20099  INT32_MAX_LT_INTMAX_MAX=1;
20100  INT64_MAX_EQ_LONG_MAX='defined _LP64';
20101  PRIPTR_PREFIX=__PRIPTR_PREFIX;
20102  UINT32_MAX_LT_UINTMAX_MAX=1;
20103  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119     if test $gl_cv_have_include_next = yes; then
20120       gl_cv_next_inttypes_h='<'inttypes.h'>'
20121     else
20122       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20123$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20124if ${gl_cv_next_inttypes_h+:} false; then :
20125  $as_echo_n "(cached) " >&6
20126else
20127
20128             if test $ac_cv_header_inttypes_h = yes; then
20129
20130
20131
20132
20133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h.  */
20135#include <inttypes.h>
20136_ACEOF
20137                case "$host_os" in
20138    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20139    *)    gl_absname_cpp="$ac_cpp" ;;
20140  esac
20141
20142  case "$host_os" in
20143    mingw*)
20144                                          gl_dirsep_regex='[/\\]'
20145      ;;
20146    *)
20147      gl_dirsep_regex='\/'
20148      ;;
20149  esac
20150      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20151  gl_header_literal_regex=`echo 'inttypes.h' \
20152                           | sed -e "$gl_make_literal_regex_sed"`
20153  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20154      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20155      s|^/[^/]|//&|
20156      p
20157      q
20158    }'
20159
20160        gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20161  sed -n "$gl_absolute_header_sed"`
20162
20163           gl_header=$gl_cv_absolute_inttypes_h
20164           gl_cv_next_inttypes_h='"'$gl_header'"'
20165          else
20166               gl_cv_next_inttypes_h='<'inttypes.h'>'
20167             fi
20168
20169
20170fi
20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20172$as_echo "$gl_cv_next_inttypes_h" >&6; }
20173     fi
20174     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20175
20176     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20177       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20178       gl_next_as_first_directive='<'inttypes.h'>'
20179     else
20180       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20181       gl_next_as_first_directive=$gl_cv_next_inttypes_h
20182     fi
20183     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20199$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20200if ${ac_cv_c_bigendian+:} false; then :
20201  $as_echo_n "(cached) " >&6
20202else
20203  ac_cv_c_bigendian=unknown
20204    # See if we're dealing with a universal compiler.
20205    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206/* end confdefs.h.  */
20207#ifndef __APPLE_CC__
20208	       not a universal capable compiler
20209	     #endif
20210	     typedef int dummy;
20211
20212_ACEOF
20213if ac_fn_c_try_compile "$LINENO"; then :
20214
20215	# Check for potential -arch flags.  It is not universal unless
20216	# there are at least two -arch flags with different values.
20217	ac_arch=
20218	ac_prev=
20219	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20220	 if test -n "$ac_prev"; then
20221	   case $ac_word in
20222	     i?86 | x86_64 | ppc | ppc64)
20223	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20224		 ac_arch=$ac_word
20225	       else
20226		 ac_cv_c_bigendian=universal
20227		 break
20228	       fi
20229	       ;;
20230	   esac
20231	   ac_prev=
20232	 elif test "x$ac_word" = "x-arch"; then
20233	   ac_prev=arch
20234	 fi
20235       done
20236fi
20237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20238    if test $ac_cv_c_bigendian = unknown; then
20239      # See if sys/param.h defines the BYTE_ORDER macro.
20240      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241/* end confdefs.h.  */
20242#include <sys/types.h>
20243	     #include <sys/param.h>
20244
20245int
20246main ()
20247{
20248#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20249		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20250		     && LITTLE_ENDIAN)
20251	      bogus endian macros
20252	     #endif
20253
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258if ac_fn_c_try_compile "$LINENO"; then :
20259  # It does; now see whether it defined to BIG_ENDIAN or not.
20260	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261/* end confdefs.h.  */
20262#include <sys/types.h>
20263		#include <sys/param.h>
20264
20265int
20266main ()
20267{
20268#if BYTE_ORDER != BIG_ENDIAN
20269		 not big endian
20270		#endif
20271
20272  ;
20273  return 0;
20274}
20275_ACEOF
20276if ac_fn_c_try_compile "$LINENO"; then :
20277  ac_cv_c_bigendian=yes
20278else
20279  ac_cv_c_bigendian=no
20280fi
20281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282fi
20283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284    fi
20285    if test $ac_cv_c_bigendian = unknown; then
20286      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20287      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h.  */
20289#include <limits.h>
20290
20291int
20292main ()
20293{
20294#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20295	      bogus endian macros
20296	     #endif
20297
20298  ;
20299  return 0;
20300}
20301_ACEOF
20302if ac_fn_c_try_compile "$LINENO"; then :
20303  # It does; now see whether it defined to _BIG_ENDIAN or not.
20304	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305/* end confdefs.h.  */
20306#include <limits.h>
20307
20308int
20309main ()
20310{
20311#ifndef _BIG_ENDIAN
20312		 not big endian
20313		#endif
20314
20315  ;
20316  return 0;
20317}
20318_ACEOF
20319if ac_fn_c_try_compile "$LINENO"; then :
20320  ac_cv_c_bigendian=yes
20321else
20322  ac_cv_c_bigendian=no
20323fi
20324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325fi
20326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327    fi
20328    if test $ac_cv_c_bigendian = unknown; then
20329      # Compile a test program.
20330      if test "$cross_compiling" = yes; then :
20331  # Try to guess by grepping values from an object file.
20332	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333/* end confdefs.h.  */
20334short int ascii_mm[] =
20335		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20336		short int ascii_ii[] =
20337		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20338		int use_ascii (int i) {
20339		  return ascii_mm[i] + ascii_ii[i];
20340		}
20341		short int ebcdic_ii[] =
20342		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20343		short int ebcdic_mm[] =
20344		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20345		int use_ebcdic (int i) {
20346		  return ebcdic_mm[i] + ebcdic_ii[i];
20347		}
20348		extern int foo;
20349
20350int
20351main ()
20352{
20353return use_ascii (foo) == use_ebcdic (foo);
20354  ;
20355  return 0;
20356}
20357_ACEOF
20358if ac_fn_c_try_compile "$LINENO"; then :
20359  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20360	      ac_cv_c_bigendian=yes
20361	    fi
20362	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20363	      if test "$ac_cv_c_bigendian" = unknown; then
20364		ac_cv_c_bigendian=no
20365	      else
20366		# finding both strings is unlikely to happen, but who knows?
20367		ac_cv_c_bigendian=unknown
20368	      fi
20369	    fi
20370fi
20371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372else
20373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374/* end confdefs.h.  */
20375$ac_includes_default
20376int
20377main ()
20378{
20379
20380	     /* Are we little or big endian?  From Harbison&Steele.  */
20381	     union
20382	     {
20383	       long int l;
20384	       char c[sizeof (long int)];
20385	     } u;
20386	     u.l = 1;
20387	     return u.c[sizeof (long int) - 1] == 1;
20388
20389  ;
20390  return 0;
20391}
20392_ACEOF
20393if ac_fn_c_try_run "$LINENO"; then :
20394  ac_cv_c_bigendian=no
20395else
20396  ac_cv_c_bigendian=yes
20397fi
20398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20399  conftest.$ac_objext conftest.beam conftest.$ac_ext
20400fi
20401
20402    fi
20403fi
20404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20405$as_echo "$ac_cv_c_bigendian" >&6; }
20406 case $ac_cv_c_bigendian in #(
20407   yes)
20408     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20409;; #(
20410   no)
20411      ;; #(
20412   universal)
20413
20414$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20415
20416     ;; #(
20417   *)
20418     as_fn_error $? "unknown endianness
20419 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20420 esac
20421
20422
20423
20424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
20425$as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
20426if ${gl_cv_cc_float_expbit0+:} false; then :
20427  $as_echo_n "(cached) " >&6
20428else
20429
20430      if test "$cross_compiling" = yes; then :
20431  gl_cv_cc_float_expbit0="word 0 bit 23"
20432else
20433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434/* end confdefs.h.  */
20435
20436#include <float.h>
20437#include <stddef.h>
20438#include <stdio.h>
20439#include <string.h>
20440#define NWORDS \
20441  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20442typedef union { float value; unsigned int word[NWORDS]; } memory_float;
20443static unsigned int ored_words[NWORDS];
20444static unsigned int anded_words[NWORDS];
20445static void add_to_ored_words (float x)
20446{
20447  memory_float m;
20448  size_t i;
20449  /* Clear it first, in case
20450     sizeof (float) < sizeof (memory_float).  */
20451  memset (&m, 0, sizeof (memory_float));
20452  m.value = x;
20453  for (i = 0; i < NWORDS; i++)
20454    {
20455      ored_words[i] |= m.word[i];
20456      anded_words[i] &= m.word[i];
20457    }
20458}
20459int main ()
20460{
20461  size_t j;
20462  FILE *fp = fopen ("conftest.out", "w");
20463  if (fp == NULL)
20464    return 1;
20465  for (j = 0; j < NWORDS; j++)
20466    anded_words[j] = ~ (unsigned int) 0;
20467  add_to_ored_words (0.25f);
20468  add_to_ored_words (0.5f);
20469  add_to_ored_words (1.0f);
20470  add_to_ored_words (2.0f);
20471  add_to_ored_words (4.0f);
20472  /* Remove bits that are common (e.g. if representation of the first mantissa
20473     bit is explicit).  */
20474  for (j = 0; j < NWORDS; j++)
20475    ored_words[j] &= ~anded_words[j];
20476  /* Now find the nonzero word.  */
20477  for (j = 0; j < NWORDS; j++)
20478    if (ored_words[j] != 0)
20479      break;
20480  if (j < NWORDS)
20481    {
20482      size_t i;
20483      for (i = j + 1; i < NWORDS; i++)
20484        if (ored_words[i] != 0)
20485          {
20486            fprintf (fp, "unknown");
20487            return (fclose (fp) != 0);
20488          }
20489      for (i = 0; ; i++)
20490        if ((ored_words[j] >> i) & 1)
20491          {
20492            fprintf (fp, "word %d bit %d", (int) j, (int) i);
20493            return (fclose (fp) != 0);
20494          }
20495    }
20496  fprintf (fp, "unknown");
20497  return (fclose (fp) != 0);
20498}
20499
20500_ACEOF
20501if ac_fn_c_try_run "$LINENO"; then :
20502  gl_cv_cc_float_expbit0=`cat conftest.out`
20503else
20504  gl_cv_cc_float_expbit0="unknown"
20505fi
20506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20507  conftest.$ac_objext conftest.beam conftest.$ac_ext
20508fi
20509
20510      rm -f conftest.out
20511
20512fi
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
20514$as_echo "$gl_cv_cc_float_expbit0" >&6; }
20515  case "$gl_cv_cc_float_expbit0" in
20516    word*bit*)
20517      word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20518      bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
20519
20520cat >>confdefs.h <<_ACEOF
20521#define FLT_EXPBIT0_WORD $word
20522_ACEOF
20523
20524
20525cat >>confdefs.h <<_ACEOF
20526#define FLT_EXPBIT0_BIT $bit
20527_ACEOF
20528
20529      ;;
20530  esac
20531
20532
20533
20534  ISNANF_LIBM=
20535
20536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
20537$as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
20538if ${gl_cv_func_isnanf_no_libm+:} false; then :
20539  $as_echo_n "(cached) " >&6
20540else
20541
20542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543/* end confdefs.h.  */
20544#include <math.h>
20545             #ifndef __has_builtin
20546             # define __has_builtin(name) 0
20547             #endif
20548             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
20549             # undef isnanf
20550             # define isnanf(x) __builtin_isnanf ((float)(x))
20551             #elif defined isnan
20552             # undef isnanf
20553             # define isnanf(x) isnan ((float)(x))
20554             #endif
20555             float x;
20556int
20557main ()
20558{
20559return isnanf (x);
20560  ;
20561  return 0;
20562}
20563_ACEOF
20564if ac_fn_c_try_link "$LINENO"; then :
20565  gl_cv_func_isnanf_no_libm=yes
20566else
20567  gl_cv_func_isnanf_no_libm=no
20568fi
20569rm -f core conftest.err conftest.$ac_objext \
20570    conftest$ac_exeext conftest.$ac_ext
20571
20572fi
20573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
20574$as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
20575
20576  if test $gl_cv_func_isnanf_no_libm = no; then
20577
20578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
20579$as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
20580if ${gl_cv_func_isnanf_in_libm+:} false; then :
20581  $as_echo_n "(cached) " >&6
20582else
20583
20584      save_LIBS="$LIBS"
20585      LIBS="$LIBS -lm"
20586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20587/* end confdefs.h.  */
20588#include <math.h>
20589             #ifndef __has_builtin
20590             # define __has_builtin(name) 0
20591             #endif
20592             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
20593             # undef isnanf
20594             # define isnanf(x) __builtin_isnanf ((float)(x))
20595             #elif defined isnan
20596             # undef isnanf
20597             # define isnanf(x) isnan ((float)(x))
20598             #endif
20599             float x;
20600int
20601main ()
20602{
20603return isnanf (x);
20604  ;
20605  return 0;
20606}
20607_ACEOF
20608if ac_fn_c_try_link "$LINENO"; then :
20609  gl_cv_func_isnanf_in_libm=yes
20610else
20611  gl_cv_func_isnanf_in_libm=no
20612fi
20613rm -f core conftest.err conftest.$ac_objext \
20614    conftest$ac_exeext conftest.$ac_ext
20615      LIBS="$save_LIBS"
20616
20617fi
20618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
20619$as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
20620
20621    if test $gl_cv_func_isnanf_in_libm = yes; then
20622      ISNANF_LIBM=-lm
20623    fi
20624  fi
20625    if test $gl_cv_func_isnanf_no_libm = yes \
20626     || test $gl_cv_func_isnanf_in_libm = yes; then
20627    save_LIBS="$LIBS"
20628    LIBS="$LIBS $ISNANF_LIBM"
20629
20630
20631
20632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
20633$as_echo_n "checking whether isnan(float) works... " >&6; }
20634if ${gl_cv_func_isnanf_works+:} false; then :
20635  $as_echo_n "(cached) " >&6
20636else
20637
20638      if test "$cross_compiling" = yes; then :
20639  case "$host_os" in
20640           irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
20641           mingw*) # Guess yes on mingw, no on MSVC.
20642             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643/* end confdefs.h.  */
20644
20645#ifdef __MINGW32__
20646 Known
20647#endif
20648
20649_ACEOF
20650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20651  $EGREP "Known" >/dev/null 2>&1; then :
20652  gl_cv_func_isnanf_works="guessing yes"
20653else
20654  gl_cv_func_isnanf_works="guessing no"
20655fi
20656rm -f conftest*
20657
20658             ;;
20659           *) gl_cv_func_isnanf_works="guessing yes" ;;
20660         esac
20661
20662else
20663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664/* end confdefs.h.  */
20665
20666#include <math.h>
20667#ifndef __has_builtin
20668# define __has_builtin(name) 0
20669#endif
20670#if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
20671# undef isnanf
20672# define isnanf(x) __builtin_isnanf ((float)(x))
20673#elif defined isnan
20674# undef isnanf
20675# define isnanf(x) isnan ((float)(x))
20676#endif
20677/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
20678#ifdef __DECC
20679static float
20680NaN ()
20681{
20682  static float zero = 0.0f;
20683  return zero / zero;
20684}
20685#else
20686# define NaN() (0.0f / 0.0f)
20687#endif
20688#define NWORDS \
20689  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20690typedef union { unsigned int word[NWORDS]; float value; } memory_float;
20691int main()
20692{
20693  int result = 0;
20694
20695  if (isnanf (1.0f / 0.0f))
20696    result |= 1;
20697
20698  if (!isnanf (NaN ()))
20699    result |= 2;
20700
20701#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
20702  /* The isnanf function should be immune against changes in the sign bit and
20703     in the mantissa bits.  The xor operation twiddles a bit that can only be
20704     a sign bit or a mantissa bit.  */
20705  if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
20706    {
20707      memory_float m;
20708
20709      m.value = NaN ();
20710      /* Set the bits below the exponent to 01111...111.  */
20711      m.word[0] &= -1U << FLT_EXPBIT0_BIT;
20712      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
20713      if (!isnanf (m.value))
20714        result |= 4;
20715    }
20716#endif
20717
20718  return result;
20719}
20720_ACEOF
20721if ac_fn_c_try_run "$LINENO"; then :
20722  gl_cv_func_isnanf_works=yes
20723else
20724  gl_cv_func_isnanf_works=no
20725fi
20726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20727  conftest.$ac_objext conftest.beam conftest.$ac_ext
20728fi
20729
20730
20731fi
20732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
20733$as_echo "$gl_cv_func_isnanf_works" >&6; }
20734
20735    LIBS="$save_LIBS"
20736    case "$gl_cv_func_isnanf_works" in
20737      *yes) gl_func_isnanf=yes ;;
20738      *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
20739    esac
20740  else
20741    gl_func_isnanf=no
20742  fi
20743  if test $gl_func_isnanf != yes; then
20744    HAVE_ISNANF=0
20745  fi
20746
20747
20748
20749
20750  ISNAND_LIBM=
20751
20752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
20753$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
20754if ${gl_cv_func_isnand_no_libm+:} false; then :
20755  $as_echo_n "(cached) " >&6
20756else
20757
20758      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759/* end confdefs.h.  */
20760#include <math.h>
20761             #if __GNUC__ >= 4
20762             # undef isnand
20763             # define isnand(x) __builtin_isnan ((double)(x))
20764             #else
20765             # undef isnand
20766             # define isnand(x) isnan ((double)(x))
20767             #endif
20768             double x;
20769int
20770main ()
20771{
20772return isnand (x);
20773  ;
20774  return 0;
20775}
20776_ACEOF
20777if ac_fn_c_try_link "$LINENO"; then :
20778  gl_cv_func_isnand_no_libm=yes
20779else
20780  gl_cv_func_isnand_no_libm=no
20781fi
20782rm -f core conftest.err conftest.$ac_objext \
20783    conftest$ac_exeext conftest.$ac_ext
20784
20785fi
20786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
20787$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
20788
20789  if test $gl_cv_func_isnand_no_libm = no; then
20790
20791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
20792$as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
20793if ${gl_cv_func_isnand_in_libm+:} false; then :
20794  $as_echo_n "(cached) " >&6
20795else
20796
20797      save_LIBS="$LIBS"
20798      LIBS="$LIBS -lm"
20799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800/* end confdefs.h.  */
20801#include <math.h>
20802             #if __GNUC__ >= 4
20803             # undef isnand
20804             # define isnand(x) __builtin_isnan ((double)(x))
20805             #elif defined isnan
20806             # undef isnand
20807             # define isnand(x) isnan ((double)(x))
20808             #endif
20809             double x;
20810int
20811main ()
20812{
20813return isnand (x);
20814  ;
20815  return 0;
20816}
20817_ACEOF
20818if ac_fn_c_try_link "$LINENO"; then :
20819  gl_cv_func_isnand_in_libm=yes
20820else
20821  gl_cv_func_isnand_in_libm=no
20822fi
20823rm -f core conftest.err conftest.$ac_objext \
20824    conftest$ac_exeext conftest.$ac_ext
20825      LIBS="$save_LIBS"
20826
20827fi
20828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
20829$as_echo "$gl_cv_func_isnand_in_libm" >&6; }
20830
20831    if test $gl_cv_func_isnand_in_libm = yes; then
20832      ISNAND_LIBM=-lm
20833    fi
20834  fi
20835    if test $gl_cv_func_isnand_no_libm = yes \
20836     || test $gl_cv_func_isnand_in_libm = yes; then
20837    gl_func_isnand=yes
20838  else
20839    gl_func_isnand=no
20840    HAVE_ISNAND=0
20841  fi
20842
20843
20844
20845
20846  ISNANL_LIBM=
20847
20848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
20849$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
20850if ${gl_cv_func_isnanl_no_libm+:} false; then :
20851  $as_echo_n "(cached) " >&6
20852else
20853
20854      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855/* end confdefs.h.  */
20856#include <math.h>
20857             #ifndef __has_builtin
20858             # define __has_builtin(name) 0
20859             #endif
20860             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
20861             # undef isnanl
20862             # define isnanl(x) __builtin_isnanl ((long double)(x))
20863             #elif defined isnan
20864             # undef isnanl
20865             # define isnanl(x) isnan ((long double)(x))
20866             #endif
20867             long double x;
20868int
20869main ()
20870{
20871return isnanl (x);
20872  ;
20873  return 0;
20874}
20875_ACEOF
20876if ac_fn_c_try_link "$LINENO"; then :
20877  gl_cv_func_isnanl_no_libm=yes
20878else
20879  gl_cv_func_isnanl_no_libm=no
20880fi
20881rm -f core conftest.err conftest.$ac_objext \
20882    conftest$ac_exeext conftest.$ac_ext
20883
20884fi
20885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
20886$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
20887
20888  if test $gl_cv_func_isnanl_no_libm = no; then
20889
20890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
20891$as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
20892if ${gl_cv_func_isnanl_in_libm+:} false; then :
20893  $as_echo_n "(cached) " >&6
20894else
20895
20896      save_LIBS="$LIBS"
20897      LIBS="$LIBS -lm"
20898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899/* end confdefs.h.  */
20900#include <math.h>
20901             #ifndef __has_builtin
20902             # define __has_builtin(name) 0
20903             #endif
20904             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
20905             # undef isnanl
20906             # define isnanl(x) __builtin_isnanl ((long double)(x))
20907             #elif defined isnan
20908             # undef isnanl
20909             # define isnanl(x) isnan ((long double)(x))
20910             #endif
20911             long double x;
20912int
20913main ()
20914{
20915return isnanl (x);
20916  ;
20917  return 0;
20918}
20919_ACEOF
20920if ac_fn_c_try_link "$LINENO"; then :
20921  gl_cv_func_isnanl_in_libm=yes
20922else
20923  gl_cv_func_isnanl_in_libm=no
20924fi
20925rm -f core conftest.err conftest.$ac_objext \
20926    conftest$ac_exeext conftest.$ac_ext
20927      LIBS="$save_LIBS"
20928
20929fi
20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
20931$as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
20932
20933    if test $gl_cv_func_isnanl_in_libm = yes; then
20934      ISNANL_LIBM=-lm
20935    fi
20936  fi
20937    if test $gl_cv_func_isnanl_no_libm = yes \
20938     || test $gl_cv_func_isnanl_in_libm = yes; then
20939    save_LIBS="$LIBS"
20940    LIBS="$LIBS $ISNANL_LIBM"
20941
20942
20943
20944
20945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
20946$as_echo_n "checking whether isnanl works... " >&6; }
20947if ${gl_cv_func_isnanl_works+:} false; then :
20948  $as_echo_n "(cached) " >&6
20949else
20950
20951      if test "$cross_compiling" = yes; then :
20952  case "$host_os" in
20953           mingw*) # Guess yes on mingw, no on MSVC.
20954             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955/* end confdefs.h.  */
20956
20957#ifdef __MINGW32__
20958 Known
20959#endif
20960
20961_ACEOF
20962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20963  $EGREP "Known" >/dev/null 2>&1; then :
20964  gl_cv_func_isnanl_works="guessing yes"
20965else
20966  gl_cv_func_isnanl_works="guessing no"
20967fi
20968rm -f conftest*
20969
20970             ;;
20971           *) gl_cv_func_isnanl_works="guessing yes" ;;
20972         esac
20973
20974else
20975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976/* end confdefs.h.  */
20977
20978#include <float.h>
20979#include <limits.h>
20980#include <math.h>
20981#ifndef __has_builtin
20982# define __has_builtin(name) 0
20983#endif
20984#if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
20985# undef isnanl
20986# define isnanl(x) __builtin_isnanl ((long double)(x))
20987#elif defined isnan
20988# undef isnanl
20989# define isnanl(x) isnan ((long double)(x))
20990#endif
20991#define NWORDS \
20992  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20993typedef union { unsigned int word[NWORDS]; long double value; }
20994        memory_long_double;
20995/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
20996   runtime type conversion.  */
20997#ifdef __sgi
20998static long double NaNl ()
20999{
21000  double zero = 0.0;
21001  return zero / zero;
21002}
21003#else
21004# define NaNl() (0.0L / 0.0L)
21005#endif
21006int main ()
21007{
21008  int result = 0;
21009
21010  if (!isnanl (NaNl ()))
21011    result |= 1;
21012
21013  {
21014    memory_long_double m;
21015    unsigned int i;
21016
21017    /* The isnanl function should be immune against changes in the sign bit and
21018       in the mantissa bits.  The xor operation twiddles a bit that can only be
21019       a sign bit or a mantissa bit (since the exponent never extends to
21020       bit 31).  */
21021    m.value = NaNl ();
21022    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21023    for (i = 0; i < NWORDS; i++)
21024      m.word[i] |= 1;
21025    if (!isnanl (m.value))
21026      result |= 1;
21027  }
21028
21029#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
21030/* Representation of an 80-bit 'long double' as an initializer for a sequence
21031   of 'unsigned int' words.  */
21032# ifdef WORDS_BIGENDIAN
21033#  define LDBL80_WORDS(exponent,manthi,mantlo) \
21034     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21035       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
21036       (unsigned int) (mantlo) << 16                                        \
21037     }
21038# else
21039#  define LDBL80_WORDS(exponent,manthi,mantlo) \
21040     { mantlo, manthi, exponent }
21041# endif
21042  { /* Quiet NaN.  */
21043    static memory_long_double x =
21044      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21045    if (!isnanl (x.value))
21046      result |= 2;
21047  }
21048  {
21049    /* Signalling NaN.  */
21050    static memory_long_double x =
21051      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21052    if (!isnanl (x.value))
21053      result |= 2;
21054  }
21055  /* isnanl should return something even for noncanonical values.  */
21056  { /* Pseudo-NaN.  */
21057    static memory_long_double x =
21058      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21059    if (isnanl (x.value) && !isnanl (x.value))
21060      result |= 4;
21061  }
21062  { /* Pseudo-Infinity.  */
21063    static memory_long_double x =
21064      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21065    if (isnanl (x.value) && !isnanl (x.value))
21066      result |= 8;
21067  }
21068  { /* Pseudo-Zero.  */
21069    static memory_long_double x =
21070      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21071    if (isnanl (x.value) && !isnanl (x.value))
21072      result |= 16;
21073  }
21074  { /* Unnormalized number.  */
21075    static memory_long_double x =
21076      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21077    if (isnanl (x.value) && !isnanl (x.value))
21078      result |= 32;
21079  }
21080  { /* Pseudo-Denormal.  */
21081    static memory_long_double x =
21082      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21083    if (isnanl (x.value) && !isnanl (x.value))
21084      result |= 64;
21085  }
21086#endif
21087
21088  return result;
21089}
21090_ACEOF
21091if ac_fn_c_try_run "$LINENO"; then :
21092  gl_cv_func_isnanl_works=yes
21093else
21094  gl_cv_func_isnanl_works=no
21095fi
21096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21097  conftest.$ac_objext conftest.beam conftest.$ac_ext
21098fi
21099
21100
21101fi
21102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21103$as_echo "$gl_cv_func_isnanl_works" >&6; }
21104
21105    LIBS="$save_LIBS"
21106    case "$gl_cv_func_isnanl_works" in
21107      *yes) gl_func_isnanl=yes ;;
21108      *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
21109    esac
21110  else
21111    gl_func_isnanl=no
21112  fi
21113  if test $gl_func_isnanl != yes; then
21114    HAVE_ISNANL=0
21115  fi
21116
21117
21118
21119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
21120$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
21121if ${gl_cv_cc_double_expbit0+:} false; then :
21122  $as_echo_n "(cached) " >&6
21123else
21124
21125      if test "$cross_compiling" = yes; then :
21126
21127                                                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128/* end confdefs.h.  */
21129
21130#if defined arm || defined __arm || defined __arm__
21131  mixed_endianness
21132#endif
21133
21134_ACEOF
21135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21136  $EGREP "mixed_endianness" >/dev/null 2>&1; then :
21137  gl_cv_cc_double_expbit0="unknown"
21138else
21139
21140                                                         :
21141if ${ac_cv_c_bigendian+:} false; then :
21142  $as_echo_n "(cached) " >&6
21143else
21144  ac_cv_c_bigendian=unknown
21145    # See if we're dealing with a universal compiler.
21146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147/* end confdefs.h.  */
21148#ifndef __APPLE_CC__
21149	       not a universal capable compiler
21150	     #endif
21151	     typedef int dummy;
21152
21153_ACEOF
21154if ac_fn_c_try_compile "$LINENO"; then :
21155
21156	# Check for potential -arch flags.  It is not universal unless
21157	# there are at least two -arch flags with different values.
21158	ac_arch=
21159	ac_prev=
21160	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21161	 if test -n "$ac_prev"; then
21162	   case $ac_word in
21163	     i?86 | x86_64 | ppc | ppc64)
21164	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21165		 ac_arch=$ac_word
21166	       else
21167		 ac_cv_c_bigendian=universal
21168		 break
21169	       fi
21170	       ;;
21171	   esac
21172	   ac_prev=
21173	 elif test "x$ac_word" = "x-arch"; then
21174	   ac_prev=arch
21175	 fi
21176       done
21177fi
21178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21179    if test $ac_cv_c_bigendian = unknown; then
21180      # See if sys/param.h defines the BYTE_ORDER macro.
21181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21182/* end confdefs.h.  */
21183#include <sys/types.h>
21184	     #include <sys/param.h>
21185
21186int
21187main ()
21188{
21189#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21190		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21191		     && LITTLE_ENDIAN)
21192	      bogus endian macros
21193	     #endif
21194
21195  ;
21196  return 0;
21197}
21198_ACEOF
21199if ac_fn_c_try_compile "$LINENO"; then :
21200  # It does; now see whether it defined to BIG_ENDIAN or not.
21201	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202/* end confdefs.h.  */
21203#include <sys/types.h>
21204		#include <sys/param.h>
21205
21206int
21207main ()
21208{
21209#if BYTE_ORDER != BIG_ENDIAN
21210		 not big endian
21211		#endif
21212
21213  ;
21214  return 0;
21215}
21216_ACEOF
21217if ac_fn_c_try_compile "$LINENO"; then :
21218  ac_cv_c_bigendian=yes
21219else
21220  ac_cv_c_bigendian=no
21221fi
21222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223fi
21224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225    fi
21226    if test $ac_cv_c_bigendian = unknown; then
21227      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229/* end confdefs.h.  */
21230#include <limits.h>
21231
21232int
21233main ()
21234{
21235#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21236	      bogus endian macros
21237	     #endif
21238
21239  ;
21240  return 0;
21241}
21242_ACEOF
21243if ac_fn_c_try_compile "$LINENO"; then :
21244  # It does; now see whether it defined to _BIG_ENDIAN or not.
21245	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246/* end confdefs.h.  */
21247#include <limits.h>
21248
21249int
21250main ()
21251{
21252#ifndef _BIG_ENDIAN
21253		 not big endian
21254		#endif
21255
21256  ;
21257  return 0;
21258}
21259_ACEOF
21260if ac_fn_c_try_compile "$LINENO"; then :
21261  ac_cv_c_bigendian=yes
21262else
21263  ac_cv_c_bigendian=no
21264fi
21265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266fi
21267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268    fi
21269    if test $ac_cv_c_bigendian = unknown; then
21270      # Compile a test program.
21271      if test "$cross_compiling" = yes; then :
21272  # Try to guess by grepping values from an object file.
21273	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274/* end confdefs.h.  */
21275short int ascii_mm[] =
21276		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21277		short int ascii_ii[] =
21278		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21279		int use_ascii (int i) {
21280		  return ascii_mm[i] + ascii_ii[i];
21281		}
21282		short int ebcdic_ii[] =
21283		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21284		short int ebcdic_mm[] =
21285		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21286		int use_ebcdic (int i) {
21287		  return ebcdic_mm[i] + ebcdic_ii[i];
21288		}
21289		extern int foo;
21290
21291int
21292main ()
21293{
21294return use_ascii (foo) == use_ebcdic (foo);
21295  ;
21296  return 0;
21297}
21298_ACEOF
21299if ac_fn_c_try_compile "$LINENO"; then :
21300  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21301	      ac_cv_c_bigendian=yes
21302	    fi
21303	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21304	      if test "$ac_cv_c_bigendian" = unknown; then
21305		ac_cv_c_bigendian=no
21306	      else
21307		# finding both strings is unlikely to happen, but who knows?
21308		ac_cv_c_bigendian=unknown
21309	      fi
21310	    fi
21311fi
21312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313else
21314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315/* end confdefs.h.  */
21316$ac_includes_default
21317int
21318main ()
21319{
21320
21321	     /* Are we little or big endian?  From Harbison&Steele.  */
21322	     union
21323	     {
21324	       long int l;
21325	       char c[sizeof (long int)];
21326	     } u;
21327	     u.l = 1;
21328	     return u.c[sizeof (long int) - 1] == 1;
21329
21330  ;
21331  return 0;
21332}
21333_ACEOF
21334if ac_fn_c_try_run "$LINENO"; then :
21335  ac_cv_c_bigendian=no
21336else
21337  ac_cv_c_bigendian=yes
21338fi
21339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21340  conftest.$ac_objext conftest.beam conftest.$ac_ext
21341fi
21342
21343    fi
21344fi
21345:
21346 case $ac_cv_c_bigendian in #(
21347   yes)
21348     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
21349   no)
21350     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
21351   universal)
21352
21353$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21354
21355     ;; #(
21356   *)
21357     gl_cv_cc_double_expbit0="unknown" ;;
21358 esac
21359
21360
21361fi
21362rm -f conftest*
21363
21364
21365else
21366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367/* end confdefs.h.  */
21368
21369#include <float.h>
21370#include <stddef.h>
21371#include <stdio.h>
21372#include <string.h>
21373#define NWORDS \
21374  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21375typedef union { double value; unsigned int word[NWORDS]; } memory_double;
21376static unsigned int ored_words[NWORDS];
21377static unsigned int anded_words[NWORDS];
21378static void add_to_ored_words (double x)
21379{
21380  memory_double m;
21381  size_t i;
21382  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
21383  memset (&m, 0, sizeof (memory_double));
21384  m.value = x;
21385  for (i = 0; i < NWORDS; i++)
21386    {
21387      ored_words[i] |= m.word[i];
21388      anded_words[i] &= m.word[i];
21389    }
21390}
21391int main ()
21392{
21393  size_t j;
21394  FILE *fp = fopen ("conftest.out", "w");
21395  if (fp == NULL)
21396    return 1;
21397  for (j = 0; j < NWORDS; j++)
21398    anded_words[j] = ~ (unsigned int) 0;
21399  add_to_ored_words (0.25);
21400  add_to_ored_words (0.5);
21401  add_to_ored_words (1.0);
21402  add_to_ored_words (2.0);
21403  add_to_ored_words (4.0);
21404  /* Remove bits that are common (e.g. if representation of the first mantissa
21405     bit is explicit).  */
21406  for (j = 0; j < NWORDS; j++)
21407    ored_words[j] &= ~anded_words[j];
21408  /* Now find the nonzero word.  */
21409  for (j = 0; j < NWORDS; j++)
21410    if (ored_words[j] != 0)
21411      break;
21412  if (j < NWORDS)
21413    {
21414      size_t i;
21415      for (i = j + 1; i < NWORDS; i++)
21416        if (ored_words[i] != 0)
21417          {
21418            fprintf (fp, "unknown");
21419            return (fclose (fp) != 0);
21420          }
21421      for (i = 0; ; i++)
21422        if ((ored_words[j] >> i) & 1)
21423          {
21424            fprintf (fp, "word %d bit %d", (int) j, (int) i);
21425            return (fclose (fp) != 0);
21426          }
21427    }
21428  fprintf (fp, "unknown");
21429  return (fclose (fp) != 0);
21430}
21431
21432_ACEOF
21433if ac_fn_c_try_run "$LINENO"; then :
21434  gl_cv_cc_double_expbit0=`cat conftest.out`
21435else
21436  gl_cv_cc_double_expbit0="unknown"
21437fi
21438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21439  conftest.$ac_objext conftest.beam conftest.$ac_ext
21440fi
21441
21442      rm -f conftest.out
21443
21444fi
21445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
21446$as_echo "$gl_cv_cc_double_expbit0" >&6; }
21447  case "$gl_cv_cc_double_expbit0" in
21448    word*bit*)
21449      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21450      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
21451
21452cat >>confdefs.h <<_ACEOF
21453#define DBL_EXPBIT0_WORD $word
21454_ACEOF
21455
21456
21457cat >>confdefs.h <<_ACEOF
21458#define DBL_EXPBIT0_BIT $bit
21459_ACEOF
21460
21461      ;;
21462  esac
21463
21464
21465
21466
21467
21468  gl_threads_api=none
21469  LIBTHREAD=
21470  LTLIBTHREAD=
21471  LIBMULTITHREAD=
21472  LTLIBMULTITHREAD=
21473  if test "$gl_use_threads" != no; then
21474
21475
21476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
21477$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
21478if ${gl_cv_have_weak+:} false; then :
21479  $as_echo_n "(cached) " >&6
21480else
21481  gl_cv_have_weak=no
21482          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21483/* end confdefs.h.  */
21484extern void xyzzy ();
21485#pragma weak xyzzy
21486int
21487main ()
21488{
21489xyzzy();
21490  ;
21491  return 0;
21492}
21493_ACEOF
21494if ac_fn_c_try_link "$LINENO"; then :
21495  gl_cv_have_weak=maybe
21496fi
21497rm -f core conftest.err conftest.$ac_objext \
21498    conftest$ac_exeext conftest.$ac_ext
21499     if test $gl_cv_have_weak = maybe; then
21500                     if test "$cross_compiling" = yes; then :
21501                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21502/* end confdefs.h.  */
21503#ifdef __ELF__
21504             Extensible Linking Format
21505             #endif
21506
21507_ACEOF
21508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21509  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
21510  gl_cv_have_weak="guessing yes"
21511else
21512  gl_cv_have_weak="guessing no"
21513fi
21514rm -f conftest*
21515
21516
21517else
21518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519/* end confdefs.h.  */
21520
21521#include <stdio.h>
21522#pragma weak fputs
21523int main ()
21524{
21525  return (fputs == NULL);
21526}
21527_ACEOF
21528if ac_fn_c_try_run "$LINENO"; then :
21529  gl_cv_have_weak=yes
21530else
21531  gl_cv_have_weak=no
21532fi
21533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21534  conftest.$ac_objext conftest.beam conftest.$ac_ext
21535fi
21536
21537     fi
21538          case " $LDFLAGS " in
21539       *" -static "*) gl_cv_have_weak=no ;;
21540     esac
21541                    case "$gl_cv_have_weak" in
21542       *yes)
21543         case "$host_os" in
21544           freebsd* | dragonfly*)
21545             : > conftest1.c
21546             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
21547             cat <<EOF > conftest2.c
21548#include <pthread.h>
21549#pragma weak pthread_mutexattr_gettype
21550int main ()
21551{
21552  return (pthread_mutexattr_gettype != NULL);
21553}
21554EOF
21555             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
21556               || gl_cv_have_weak=no
21557             rm -f conftest1.c libempty.so conftest2.c conftest
21558             ;;
21559         esac
21560         ;;
21561     esac
21562
21563fi
21564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
21565$as_echo "$gl_cv_have_weak" >&6; }
21566  case "$gl_cv_have_weak" in
21567    *yes)
21568
21569$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
21570
21571      ;;
21572  esac
21573
21574    if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
21575
21576      :
21577    fi
21578    if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
21579
21580      gl_have_isoc_threads="$ac_cv_header_threads_h"
21581    fi
21582    if test "$gl_use_threads" = yes \
21583       || test "$gl_use_threads" = posix \
21584       || test "$gl_use_threads" = isoc+posix; then
21585
21586
21587  if test -z "$gl_pthreadlib_body_done"; then
21588    gl_pthread_api=no
21589    LIBPTHREAD=
21590    LIBPMULTITHREAD=
21591    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
21592    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
21593    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
21594if test "x$ac_cv_header_pthread_h" = xyes; then :
21595  gl_have_pthread_h=yes
21596else
21597  gl_have_pthread_h=no
21598fi
21599
21600
21601    if test "$gl_have_pthread_h" = yes; then
21602      # Other possible tests:
21603      #   -lpthreads (FSU threads, PCthreads)
21604      #   -lgthreads
21605      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
21606      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
21607      # the second one only in libpthread, and lock.c needs it.
21608      #
21609      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
21610      # needs -pthread for some reason.  See:
21611      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
21612      save_LIBS=$LIBS
21613      for gl_pthread in '' '-pthread'; do
21614        LIBS="$LIBS $gl_pthread"
21615        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616/* end confdefs.h.  */
21617#include <pthread.h>
21618               pthread_mutex_t m;
21619               pthread_mutexattr_t ma;
21620
21621int
21622main ()
21623{
21624pthread_mutex_lock (&m);
21625               pthread_mutexattr_init (&ma);
21626  ;
21627  return 0;
21628}
21629_ACEOF
21630if ac_fn_c_try_link "$LINENO"; then :
21631  gl_pthread_api=yes
21632           LIBPTHREAD=$gl_pthread
21633           LIBPMULTITHREAD=$gl_pthread
21634fi
21635rm -f core conftest.err conftest.$ac_objext \
21636    conftest$ac_exeext conftest.$ac_ext
21637        LIBS=$save_LIBS
21638        test $gl_pthread_api = yes && break
21639      done
21640
21641      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
21642      # since it is defined as a macro on OSF/1.)
21643      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
21644        # The program links fine without libpthread. But it may actually
21645        # need to link with libpthread in order to create multiple threads.
21646        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
21647$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
21648if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
21649  $as_echo_n "(cached) " >&6
21650else
21651  ac_check_lib_save_LIBS=$LIBS
21652LIBS="-lpthread  $LIBS"
21653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21654/* end confdefs.h.  */
21655
21656/* Override any GCC internal prototype to avoid an error.
21657   Use char because int might match the return type of a GCC
21658   builtin and then its argument prototype would still apply.  */
21659#ifdef __cplusplus
21660extern "C"
21661#endif
21662char pthread_kill ();
21663int
21664main ()
21665{
21666return pthread_kill ();
21667  ;
21668  return 0;
21669}
21670_ACEOF
21671if ac_fn_c_try_link "$LINENO"; then :
21672  ac_cv_lib_pthread_pthread_kill=yes
21673else
21674  ac_cv_lib_pthread_pthread_kill=no
21675fi
21676rm -f core conftest.err conftest.$ac_objext \
21677    conftest$ac_exeext conftest.$ac_ext
21678LIBS=$ac_check_lib_save_LIBS
21679fi
21680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
21681$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
21682if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
21683  LIBPMULTITHREAD=-lpthread
21684           # On Solaris and HP-UX, most pthread functions exist also in libc.
21685           # Therefore pthread_in_use() needs to actually try to create a
21686           # thread: pthread_create from libc will fail, whereas
21687           # pthread_create will actually create a thread.
21688           # On Solaris 10 or newer, this test is no longer needed, because
21689           # libc contains the fully functional pthread functions.
21690           case "$host_os" in
21691             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
21692
21693$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
21694
21695           esac
21696
21697fi
21698
21699      elif test $gl_pthread_api != yes; then
21700        # Some library is needed. Try libpthread and libc_r.
21701        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
21702$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
21703if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
21704  $as_echo_n "(cached) " >&6
21705else
21706  ac_check_lib_save_LIBS=$LIBS
21707LIBS="-lpthread  $LIBS"
21708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709/* end confdefs.h.  */
21710
21711/* Override any GCC internal prototype to avoid an error.
21712   Use char because int might match the return type of a GCC
21713   builtin and then its argument prototype would still apply.  */
21714#ifdef __cplusplus
21715extern "C"
21716#endif
21717char pthread_kill ();
21718int
21719main ()
21720{
21721return pthread_kill ();
21722  ;
21723  return 0;
21724}
21725_ACEOF
21726if ac_fn_c_try_link "$LINENO"; then :
21727  ac_cv_lib_pthread_pthread_kill=yes
21728else
21729  ac_cv_lib_pthread_pthread_kill=no
21730fi
21731rm -f core conftest.err conftest.$ac_objext \
21732    conftest$ac_exeext conftest.$ac_ext
21733LIBS=$ac_check_lib_save_LIBS
21734fi
21735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
21736$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
21737if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
21738  gl_pthread_api=yes
21739           LIBPTHREAD=-lpthread
21740           LIBPMULTITHREAD=-lpthread
21741fi
21742
21743        if test $gl_pthread_api != yes; then
21744          # For FreeBSD 4.
21745          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
21746$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
21747if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
21748  $as_echo_n "(cached) " >&6
21749else
21750  ac_check_lib_save_LIBS=$LIBS
21751LIBS="-lc_r  $LIBS"
21752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21753/* end confdefs.h.  */
21754
21755/* Override any GCC internal prototype to avoid an error.
21756   Use char because int might match the return type of a GCC
21757   builtin and then its argument prototype would still apply.  */
21758#ifdef __cplusplus
21759extern "C"
21760#endif
21761char pthread_kill ();
21762int
21763main ()
21764{
21765return pthread_kill ();
21766  ;
21767  return 0;
21768}
21769_ACEOF
21770if ac_fn_c_try_link "$LINENO"; then :
21771  ac_cv_lib_c_r_pthread_kill=yes
21772else
21773  ac_cv_lib_c_r_pthread_kill=no
21774fi
21775rm -f core conftest.err conftest.$ac_objext \
21776    conftest$ac_exeext conftest.$ac_ext
21777LIBS=$ac_check_lib_save_LIBS
21778fi
21779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
21780$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
21781if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
21782  gl_pthread_api=yes
21783             LIBPTHREAD=-lc_r
21784             LIBPMULTITHREAD=-lc_r
21785fi
21786
21787        fi
21788      fi
21789    fi
21790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
21791$as_echo_n "checking whether POSIX threads API is available... " >&6; }
21792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
21793$as_echo "$gl_pthread_api" >&6; }
21794
21795
21796    if test $gl_pthread_api = yes; then
21797
21798$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
21799
21800    fi
21801
21802        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803/* end confdefs.h.  */
21804#include <sched.h>
21805int
21806main ()
21807{
21808sched_yield ();
21809  ;
21810  return 0;
21811}
21812_ACEOF
21813if ac_fn_c_try_link "$LINENO"; then :
21814  LIB_SCHED_YIELD=
21815
21816else
21817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21818$as_echo_n "checking for sched_yield in -lrt... " >&6; }
21819if ${ac_cv_lib_rt_sched_yield+:} false; then :
21820  $as_echo_n "(cached) " >&6
21821else
21822  ac_check_lib_save_LIBS=$LIBS
21823LIBS="-lrt  $LIBS"
21824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21825/* end confdefs.h.  */
21826
21827/* Override any GCC internal prototype to avoid an error.
21828   Use char because int might match the return type of a GCC
21829   builtin and then its argument prototype would still apply.  */
21830#ifdef __cplusplus
21831extern "C"
21832#endif
21833char sched_yield ();
21834int
21835main ()
21836{
21837return sched_yield ();
21838  ;
21839  return 0;
21840}
21841_ACEOF
21842if ac_fn_c_try_link "$LINENO"; then :
21843  ac_cv_lib_rt_sched_yield=yes
21844else
21845  ac_cv_lib_rt_sched_yield=no
21846fi
21847rm -f core conftest.err conftest.$ac_objext \
21848    conftest$ac_exeext conftest.$ac_ext
21849LIBS=$ac_check_lib_save_LIBS
21850fi
21851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
21852$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
21853if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
21854  LIB_SCHED_YIELD=-lrt
21855else
21856            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
21857$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
21858if ${ac_cv_lib_posix4_sched_yield+:} false; then :
21859  $as_echo_n "(cached) " >&6
21860else
21861  ac_check_lib_save_LIBS=$LIBS
21862LIBS="-lposix4  $LIBS"
21863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864/* end confdefs.h.  */
21865
21866/* Override any GCC internal prototype to avoid an error.
21867   Use char because int might match the return type of a GCC
21868   builtin and then its argument prototype would still apply.  */
21869#ifdef __cplusplus
21870extern "C"
21871#endif
21872char sched_yield ();
21873int
21874main ()
21875{
21876return sched_yield ();
21877  ;
21878  return 0;
21879}
21880_ACEOF
21881if ac_fn_c_try_link "$LINENO"; then :
21882  ac_cv_lib_posix4_sched_yield=yes
21883else
21884  ac_cv_lib_posix4_sched_yield=no
21885fi
21886rm -f core conftest.err conftest.$ac_objext \
21887    conftest$ac_exeext conftest.$ac_ext
21888LIBS=$ac_check_lib_save_LIBS
21889fi
21890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
21891$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
21892if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
21893  LIB_SCHED_YIELD=-lposix4
21894fi
21895
21896fi
21897
21898
21899fi
21900rm -f core conftest.err conftest.$ac_objext \
21901    conftest$ac_exeext conftest.$ac_ext
21902
21903
21904    gl_pthreadlib_body_done=done
21905  fi
21906
21907      LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
21908      LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
21909      if test $gl_pthread_api = yes; then
21910        if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
21911          gl_threads_api='isoc+posix'
21912
21913$as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
21914
21915          LIBTHREAD= LTLIBTHREAD=
21916        else
21917          gl_threads_api=posix
21918
21919$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
21920
21921          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
21922            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
21923
21924$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
21925
21926              LIBTHREAD= LTLIBTHREAD=
21927            fi
21928          fi
21929        fi
21930      fi
21931    fi
21932    if test $gl_threads_api = none; then
21933      if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
21934
21935
21936
21937  if test -z "$gl_stdthreadlib_body_done"; then
21938
21939
21940    case "$host_os" in
21941      mingw*)
21942        LIBSTDTHREAD=
21943        ;;
21944      *)
21945
21946
21947  if test -z "$gl_pthreadlib_body_done"; then
21948    gl_pthread_api=no
21949    LIBPTHREAD=
21950    LIBPMULTITHREAD=
21951    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
21952    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
21953    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
21954if test "x$ac_cv_header_pthread_h" = xyes; then :
21955  gl_have_pthread_h=yes
21956else
21957  gl_have_pthread_h=no
21958fi
21959
21960
21961    if test "$gl_have_pthread_h" = yes; then
21962      # Other possible tests:
21963      #   -lpthreads (FSU threads, PCthreads)
21964      #   -lgthreads
21965      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
21966      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
21967      # the second one only in libpthread, and lock.c needs it.
21968      #
21969      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
21970      # needs -pthread for some reason.  See:
21971      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
21972      save_LIBS=$LIBS
21973      for gl_pthread in '' '-pthread'; do
21974        LIBS="$LIBS $gl_pthread"
21975        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976/* end confdefs.h.  */
21977#include <pthread.h>
21978               pthread_mutex_t m;
21979               pthread_mutexattr_t ma;
21980
21981int
21982main ()
21983{
21984pthread_mutex_lock (&m);
21985               pthread_mutexattr_init (&ma);
21986  ;
21987  return 0;
21988}
21989_ACEOF
21990if ac_fn_c_try_link "$LINENO"; then :
21991  gl_pthread_api=yes
21992           LIBPTHREAD=$gl_pthread
21993           LIBPMULTITHREAD=$gl_pthread
21994fi
21995rm -f core conftest.err conftest.$ac_objext \
21996    conftest$ac_exeext conftest.$ac_ext
21997        LIBS=$save_LIBS
21998        test $gl_pthread_api = yes && break
21999      done
22000
22001      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
22002      # since it is defined as a macro on OSF/1.)
22003      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
22004        # The program links fine without libpthread. But it may actually
22005        # need to link with libpthread in order to create multiple threads.
22006        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22007$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
22008if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
22009  $as_echo_n "(cached) " >&6
22010else
22011  ac_check_lib_save_LIBS=$LIBS
22012LIBS="-lpthread  $LIBS"
22013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014/* end confdefs.h.  */
22015
22016/* Override any GCC internal prototype to avoid an error.
22017   Use char because int might match the return type of a GCC
22018   builtin and then its argument prototype would still apply.  */
22019#ifdef __cplusplus
22020extern "C"
22021#endif
22022char pthread_kill ();
22023int
22024main ()
22025{
22026return pthread_kill ();
22027  ;
22028  return 0;
22029}
22030_ACEOF
22031if ac_fn_c_try_link "$LINENO"; then :
22032  ac_cv_lib_pthread_pthread_kill=yes
22033else
22034  ac_cv_lib_pthread_pthread_kill=no
22035fi
22036rm -f core conftest.err conftest.$ac_objext \
22037    conftest$ac_exeext conftest.$ac_ext
22038LIBS=$ac_check_lib_save_LIBS
22039fi
22040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22041$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
22042if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
22043  LIBPMULTITHREAD=-lpthread
22044           # On Solaris and HP-UX, most pthread functions exist also in libc.
22045           # Therefore pthread_in_use() needs to actually try to create a
22046           # thread: pthread_create from libc will fail, whereas
22047           # pthread_create will actually create a thread.
22048           # On Solaris 10 or newer, this test is no longer needed, because
22049           # libc contains the fully functional pthread functions.
22050           case "$host_os" in
22051             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
22052
22053$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
22054
22055           esac
22056
22057fi
22058
22059      elif test $gl_pthread_api != yes; then
22060        # Some library is needed. Try libpthread and libc_r.
22061        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22062$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
22063if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
22064  $as_echo_n "(cached) " >&6
22065else
22066  ac_check_lib_save_LIBS=$LIBS
22067LIBS="-lpthread  $LIBS"
22068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22069/* end confdefs.h.  */
22070
22071/* Override any GCC internal prototype to avoid an error.
22072   Use char because int might match the return type of a GCC
22073   builtin and then its argument prototype would still apply.  */
22074#ifdef __cplusplus
22075extern "C"
22076#endif
22077char pthread_kill ();
22078int
22079main ()
22080{
22081return pthread_kill ();
22082  ;
22083  return 0;
22084}
22085_ACEOF
22086if ac_fn_c_try_link "$LINENO"; then :
22087  ac_cv_lib_pthread_pthread_kill=yes
22088else
22089  ac_cv_lib_pthread_pthread_kill=no
22090fi
22091rm -f core conftest.err conftest.$ac_objext \
22092    conftest$ac_exeext conftest.$ac_ext
22093LIBS=$ac_check_lib_save_LIBS
22094fi
22095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22096$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
22097if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
22098  gl_pthread_api=yes
22099           LIBPTHREAD=-lpthread
22100           LIBPMULTITHREAD=-lpthread
22101fi
22102
22103        if test $gl_pthread_api != yes; then
22104          # For FreeBSD 4.
22105          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
22106$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
22107if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
22108  $as_echo_n "(cached) " >&6
22109else
22110  ac_check_lib_save_LIBS=$LIBS
22111LIBS="-lc_r  $LIBS"
22112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22113/* end confdefs.h.  */
22114
22115/* Override any GCC internal prototype to avoid an error.
22116   Use char because int might match the return type of a GCC
22117   builtin and then its argument prototype would still apply.  */
22118#ifdef __cplusplus
22119extern "C"
22120#endif
22121char pthread_kill ();
22122int
22123main ()
22124{
22125return pthread_kill ();
22126  ;
22127  return 0;
22128}
22129_ACEOF
22130if ac_fn_c_try_link "$LINENO"; then :
22131  ac_cv_lib_c_r_pthread_kill=yes
22132else
22133  ac_cv_lib_c_r_pthread_kill=no
22134fi
22135rm -f core conftest.err conftest.$ac_objext \
22136    conftest$ac_exeext conftest.$ac_ext
22137LIBS=$ac_check_lib_save_LIBS
22138fi
22139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
22140$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
22141if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
22142  gl_pthread_api=yes
22143             LIBPTHREAD=-lc_r
22144             LIBPMULTITHREAD=-lc_r
22145fi
22146
22147        fi
22148      fi
22149    fi
22150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
22151$as_echo_n "checking whether POSIX threads API is available... " >&6; }
22152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
22153$as_echo "$gl_pthread_api" >&6; }
22154
22155
22156    if test $gl_pthread_api = yes; then
22157
22158$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
22159
22160    fi
22161
22162        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163/* end confdefs.h.  */
22164#include <sched.h>
22165int
22166main ()
22167{
22168sched_yield ();
22169  ;
22170  return 0;
22171}
22172_ACEOF
22173if ac_fn_c_try_link "$LINENO"; then :
22174  LIB_SCHED_YIELD=
22175
22176else
22177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22178$as_echo_n "checking for sched_yield in -lrt... " >&6; }
22179if ${ac_cv_lib_rt_sched_yield+:} false; then :
22180  $as_echo_n "(cached) " >&6
22181else
22182  ac_check_lib_save_LIBS=$LIBS
22183LIBS="-lrt  $LIBS"
22184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185/* end confdefs.h.  */
22186
22187/* Override any GCC internal prototype to avoid an error.
22188   Use char because int might match the return type of a GCC
22189   builtin and then its argument prototype would still apply.  */
22190#ifdef __cplusplus
22191extern "C"
22192#endif
22193char sched_yield ();
22194int
22195main ()
22196{
22197return sched_yield ();
22198  ;
22199  return 0;
22200}
22201_ACEOF
22202if ac_fn_c_try_link "$LINENO"; then :
22203  ac_cv_lib_rt_sched_yield=yes
22204else
22205  ac_cv_lib_rt_sched_yield=no
22206fi
22207rm -f core conftest.err conftest.$ac_objext \
22208    conftest$ac_exeext conftest.$ac_ext
22209LIBS=$ac_check_lib_save_LIBS
22210fi
22211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22212$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22213if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
22214  LIB_SCHED_YIELD=-lrt
22215else
22216            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22217$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22218if ${ac_cv_lib_posix4_sched_yield+:} false; then :
22219  $as_echo_n "(cached) " >&6
22220else
22221  ac_check_lib_save_LIBS=$LIBS
22222LIBS="-lposix4  $LIBS"
22223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224/* end confdefs.h.  */
22225
22226/* Override any GCC internal prototype to avoid an error.
22227   Use char because int might match the return type of a GCC
22228   builtin and then its argument prototype would still apply.  */
22229#ifdef __cplusplus
22230extern "C"
22231#endif
22232char sched_yield ();
22233int
22234main ()
22235{
22236return sched_yield ();
22237  ;
22238  return 0;
22239}
22240_ACEOF
22241if ac_fn_c_try_link "$LINENO"; then :
22242  ac_cv_lib_posix4_sched_yield=yes
22243else
22244  ac_cv_lib_posix4_sched_yield=no
22245fi
22246rm -f core conftest.err conftest.$ac_objext \
22247    conftest$ac_exeext conftest.$ac_ext
22248LIBS=$ac_check_lib_save_LIBS
22249fi
22250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22251$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22252if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
22253  LIB_SCHED_YIELD=-lposix4
22254fi
22255
22256fi
22257
22258
22259fi
22260rm -f core conftest.err conftest.$ac_objext \
22261    conftest$ac_exeext conftest.$ac_ext
22262
22263
22264    gl_pthreadlib_body_done=done
22265  fi
22266
22267        if test $ac_cv_header_threads_h = yes; then
22268                                                  for ac_func in thrd_create
22269do :
22270  ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
22271if test "x$ac_cv_func_thrd_create" = xyes; then :
22272  cat >>confdefs.h <<_ACEOF
22273#define HAVE_THRD_CREATE 1
22274_ACEOF
22275
22276fi
22277done
22278
22279          if test $ac_cv_func_thrd_create = yes; then
22280            LIBSTDTHREAD=
22281          else
22282            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
22283$as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
22284if ${ac_cv_lib_stdthreads_thrd_create+:} false; then :
22285  $as_echo_n "(cached) " >&6
22286else
22287  ac_check_lib_save_LIBS=$LIBS
22288LIBS="-lstdthreads  $LIBS"
22289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22290/* end confdefs.h.  */
22291
22292/* Override any GCC internal prototype to avoid an error.
22293   Use char because int might match the return type of a GCC
22294   builtin and then its argument prototype would still apply.  */
22295#ifdef __cplusplus
22296extern "C"
22297#endif
22298char thrd_create ();
22299int
22300main ()
22301{
22302return thrd_create ();
22303  ;
22304  return 0;
22305}
22306_ACEOF
22307if ac_fn_c_try_link "$LINENO"; then :
22308  ac_cv_lib_stdthreads_thrd_create=yes
22309else
22310  ac_cv_lib_stdthreads_thrd_create=no
22311fi
22312rm -f core conftest.err conftest.$ac_objext \
22313    conftest$ac_exeext conftest.$ac_ext
22314LIBS=$ac_check_lib_save_LIBS
22315fi
22316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
22317$as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
22318if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes; then :
22319
22320              LIBSTDTHREAD='-lstdthreads -lpthread'
22321
22322else
22323
22324                            LIBSTDTHREAD="$LIBPMULTITHREAD"
22325
22326fi
22327
22328          fi
22329        else
22330                    LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
22331        fi
22332        ;;
22333    esac
22334
22335
22336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
22337$as_echo_n "checking whether ISO C threads API is available... " >&6; }
22338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
22339$as_echo "$ac_cv_header_threads_h" >&6; }
22340    gl_stdthreadlib_body_done=done
22341  fi
22342
22343        LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
22344        LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
22345        gl_threads_api=isoc
22346
22347$as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
22348
22349      fi
22350    fi
22351    if test $gl_threads_api = none; then
22352      case "$gl_use_threads" in
22353        yes | windows | win32) # The 'win32' is for backward compatibility.
22354          if { case "$host_os" in
22355                 mingw*) true;;
22356                 *) false;;
22357               esac
22358             }; then
22359            gl_threads_api=windows
22360
22361$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
22362
22363          fi
22364          ;;
22365      esac
22366    fi
22367  fi
22368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
22369$as_echo_n "checking for multithread API to use... " >&6; }
22370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
22371$as_echo "$gl_threads_api" >&6; }
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386  POW_LIBM=
22387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pow can be used without linking with libm" >&5
22388$as_echo_n "checking whether pow can be used without linking with libm... " >&6; }
22389if ${gl_cv_func_pow_no_libm+:} false; then :
22390  $as_echo_n "(cached) " >&6
22391else
22392
22393      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394/* end confdefs.h.  */
22395#ifndef __NO_MATH_INLINES
22396             # define __NO_MATH_INLINES 1 /* for glibc */
22397             #endif
22398             #include <math.h>
22399
22400             double (* volatile funcptr) (double, double) = pow;
22401             int i_ret;
22402             float f_ret;
22403             double d_ret;
22404             long double l_ret;
22405int
22406main ()
22407{
22408double y = funcptr (1.6180339887, 1.6180339887) + pow (1.6180339887, 1.6180339887);
22409
22410             return y < 0.3 || y > 1.7;
22411
22412  ;
22413  return 0;
22414}
22415_ACEOF
22416if ac_fn_c_try_link "$LINENO"; then :
22417  gl_cv_func_pow_no_libm=yes
22418else
22419  gl_cv_func_pow_no_libm=no
22420fi
22421rm -f core conftest.err conftest.$ac_objext \
22422    conftest$ac_exeext conftest.$ac_ext
22423
22424fi
22425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pow_no_libm" >&5
22426$as_echo "$gl_cv_func_pow_no_libm" >&6; }
22427  if test $gl_cv_func_pow_no_libm = no; then
22428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pow can be used with libm" >&5
22429$as_echo_n "checking whether pow can be used with libm... " >&6; }
22430if ${gl_cv_func_pow_in_libm+:} false; then :
22431  $as_echo_n "(cached) " >&6
22432else
22433
22434        save_LIBS="$LIBS"
22435        LIBS="$LIBS -lm"
22436        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22437/* end confdefs.h.  */
22438#ifndef __NO_MATH_INLINES
22439               # define __NO_MATH_INLINES 1 /* for glibc */
22440               #endif
22441               #include <math.h>
22442
22443               double (* volatile funcptr) (double, double) = pow;
22444               int i_ret;
22445               float f_ret;
22446               double d_ret;
22447               long double l_ret;
22448int
22449main ()
22450{
22451double y = funcptr (1.6180339887, 1.6180339887) + pow (1.6180339887, 1.6180339887);
22452
22453               return y < 0.3 || y > 1.7;
22454
22455  ;
22456  return 0;
22457}
22458_ACEOF
22459if ac_fn_c_try_link "$LINENO"; then :
22460  gl_cv_func_pow_in_libm=yes
22461else
22462  gl_cv_func_pow_in_libm=no
22463fi
22464rm -f core conftest.err conftest.$ac_objext \
22465    conftest$ac_exeext conftest.$ac_ext
22466        LIBS="$save_LIBS"
22467
22468fi
22469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pow_in_libm" >&5
22470$as_echo "$gl_cv_func_pow_in_libm" >&6; }
22471    if test $gl_cv_func_pow_in_libm = yes; then
22472      POW_LIBM=-lm
22473    fi
22474  fi
22475
22476
22477
22478
22479
22480
22481
22482  GNULIB__EXIT=0;
22483  GNULIB_ATOLL=0;
22484  GNULIB_CALLOC_POSIX=0;
22485  GNULIB_CANONICALIZE_FILE_NAME=0;
22486  GNULIB_GETLOADAVG=0;
22487  GNULIB_GETSUBOPT=0;
22488  GNULIB_GRANTPT=0;
22489  GNULIB_MALLOC_POSIX=0;
22490  GNULIB_MBTOWC=0;
22491  GNULIB_MKDTEMP=0;
22492  GNULIB_MKOSTEMP=0;
22493  GNULIB_MKOSTEMPS=0;
22494  GNULIB_MKSTEMP=0;
22495  GNULIB_MKSTEMPS=0;
22496  GNULIB_POSIX_OPENPT=0;
22497  GNULIB_PTSNAME=0;
22498  GNULIB_PTSNAME_R=0;
22499  GNULIB_PUTENV=0;
22500  GNULIB_QSORT_R=0;
22501  GNULIB_RANDOM=0;
22502  GNULIB_RANDOM_R=0;
22503  GNULIB_REALLOCARRAY=0;
22504  GNULIB_REALLOC_POSIX=0;
22505  GNULIB_REALPATH=0;
22506  GNULIB_RPMATCH=0;
22507  GNULIB_SECURE_GETENV=0;
22508  GNULIB_SETENV=0;
22509  GNULIB_STRTOD=0;
22510  GNULIB_STRTOLD=0;
22511  GNULIB_STRTOLL=0;
22512  GNULIB_STRTOULL=0;
22513  GNULIB_SYSTEM_POSIX=0;
22514  GNULIB_UNLOCKPT=0;
22515  GNULIB_UNSETENV=0;
22516  GNULIB_WCTOMB=0;
22517    HAVE__EXIT=1;
22518  HAVE_ATOLL=1;
22519  HAVE_CANONICALIZE_FILE_NAME=1;
22520  HAVE_DECL_GETLOADAVG=1;
22521  HAVE_GETSUBOPT=1;
22522  HAVE_GRANTPT=1;
22523  HAVE_INITSTATE=1;
22524  HAVE_DECL_INITSTATE=1;
22525  HAVE_MBTOWC=1;
22526  HAVE_MKDTEMP=1;
22527  HAVE_MKOSTEMP=1;
22528  HAVE_MKOSTEMPS=1;
22529  HAVE_MKSTEMP=1;
22530  HAVE_MKSTEMPS=1;
22531  HAVE_POSIX_OPENPT=1;
22532  HAVE_PTSNAME=1;
22533  HAVE_PTSNAME_R=1;
22534  HAVE_QSORT_R=1;
22535  HAVE_RANDOM=1;
22536  HAVE_RANDOM_H=1;
22537  HAVE_RANDOM_R=1;
22538  HAVE_REALLOCARRAY=1;
22539  HAVE_REALPATH=1;
22540  HAVE_RPMATCH=1;
22541  HAVE_SECURE_GETENV=1;
22542  HAVE_SETENV=1;
22543  HAVE_DECL_SETENV=1;
22544  HAVE_SETSTATE=1;
22545  HAVE_DECL_SETSTATE=1;
22546  HAVE_STRTOD=1;
22547  HAVE_STRTOLD=1;
22548  HAVE_STRTOLL=1;
22549  HAVE_STRTOULL=1;
22550  HAVE_STRUCT_RANDOM_DATA=1;
22551  HAVE_SYS_LOADAVG_H=0;
22552  HAVE_UNLOCKPT=1;
22553  HAVE_DECL_UNSETENV=1;
22554  REPLACE_CALLOC=0;
22555  REPLACE_CANONICALIZE_FILE_NAME=0;
22556  REPLACE_INITSTATE=0;
22557  REPLACE_MALLOC=0;
22558  REPLACE_MBTOWC=0;
22559  REPLACE_MKSTEMP=0;
22560  REPLACE_PTSNAME=0;
22561  REPLACE_PTSNAME_R=0;
22562  REPLACE_PUTENV=0;
22563  REPLACE_QSORT_R=0;
22564  REPLACE_RANDOM=0;
22565  REPLACE_RANDOM_R=0;
22566  REPLACE_REALLOC=0;
22567  REPLACE_REALPATH=0;
22568  REPLACE_SETENV=0;
22569  REPLACE_SETSTATE=0;
22570  REPLACE_STRTOD=0;
22571  REPLACE_STRTOLD=0;
22572  REPLACE_UNSETENV=0;
22573  REPLACE_WCTOMB=0;
22574
22575
22576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
22577$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
22578if ${gl_cv_func_malloc_posix+:} false; then :
22579  $as_echo_n "(cached) " >&6
22580else
22581
22582                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583/* end confdefs.h.  */
22584
22585int
22586main ()
22587{
22588#if defined _WIN32 && ! defined __CYGWIN__
22589             choke me
22590             #endif
22591
22592  ;
22593  return 0;
22594}
22595_ACEOF
22596if ac_fn_c_try_compile "$LINENO"; then :
22597  gl_cv_func_malloc_posix=yes
22598else
22599  gl_cv_func_malloc_posix=no
22600fi
22601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22602
22603fi
22604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
22605$as_echo "$gl_cv_func_malloc_posix" >&6; }
22606
22607
22608
22609      for ac_header in stdlib.h
22610do :
22611  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22612if test "x$ac_cv_header_stdlib_h" = xyes; then :
22613  cat >>confdefs.h <<_ACEOF
22614#define HAVE_STDLIB_H 1
22615_ACEOF
22616
22617fi
22618
22619done
22620
22621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
22622$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22623if ${ac_cv_func_malloc_0_nonnull+:} false; then :
22624  $as_echo_n "(cached) " >&6
22625else
22626  if test "$cross_compiling" = yes; then :
22627  case "$host_os" in
22628          # Guess yes on platforms where we know the result.
22629          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
22630          | hpux* | solaris* | cygwin* | mingw*)
22631            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
22632          # If we don't know, obey --enable-cross-guesses.
22633          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
22634        esac
22635
22636else
22637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638/* end confdefs.h.  */
22639#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22640            # include <stdlib.h>
22641            #else
22642            char *malloc ();
22643            #endif
22644
22645int
22646main ()
22647{
22648char *p = malloc (0);
22649            int result = !p;
22650            free (p);
22651            return result;
22652  ;
22653  return 0;
22654}
22655
22656_ACEOF
22657if ac_fn_c_try_run "$LINENO"; then :
22658  ac_cv_func_malloc_0_nonnull=yes
22659else
22660  ac_cv_func_malloc_0_nonnull=no
22661fi
22662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22663  conftest.$ac_objext conftest.beam conftest.$ac_ext
22664fi
22665
22666
22667fi
22668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
22669$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22670  case "$ac_cv_func_malloc_0_nonnull" in
22671    *yes)
22672      gl_cv_func_malloc_0_nonnull=1
22673      ;;
22674    *)
22675      gl_cv_func_malloc_0_nonnull=0
22676      ;;
22677  esac
22678
22679
22680cat >>confdefs.h <<_ACEOF
22681#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
22682_ACEOF
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692  GNULIB_EXPLICIT_BZERO=0;
22693  GNULIB_FFSL=0;
22694  GNULIB_FFSLL=0;
22695  GNULIB_MEMCHR=0;
22696  GNULIB_MEMMEM=0;
22697  GNULIB_MEMPCPY=0;
22698  GNULIB_MEMRCHR=0;
22699  GNULIB_RAWMEMCHR=0;
22700  GNULIB_STPCPY=0;
22701  GNULIB_STPNCPY=0;
22702  GNULIB_STRCHRNUL=0;
22703  GNULIB_STRDUP=0;
22704  GNULIB_STRNCAT=0;
22705  GNULIB_STRNDUP=0;
22706  GNULIB_STRNLEN=0;
22707  GNULIB_STRPBRK=0;
22708  GNULIB_STRSEP=0;
22709  GNULIB_STRSTR=0;
22710  GNULIB_STRCASESTR=0;
22711  GNULIB_STRTOK_R=0;
22712  GNULIB_MBSLEN=0;
22713  GNULIB_MBSNLEN=0;
22714  GNULIB_MBSCHR=0;
22715  GNULIB_MBSRCHR=0;
22716  GNULIB_MBSSTR=0;
22717  GNULIB_MBSCASECMP=0;
22718  GNULIB_MBSNCASECMP=0;
22719  GNULIB_MBSPCASECMP=0;
22720  GNULIB_MBSCASESTR=0;
22721  GNULIB_MBSCSPN=0;
22722  GNULIB_MBSPBRK=0;
22723  GNULIB_MBSSPN=0;
22724  GNULIB_MBSSEP=0;
22725  GNULIB_MBSTOK_R=0;
22726  GNULIB_STRERROR=0;
22727  GNULIB_STRERROR_R=0;
22728  GNULIB_STRSIGNAL=0;
22729  GNULIB_STRVERSCMP=0;
22730  HAVE_MBSLEN=0;
22731    HAVE_EXPLICIT_BZERO=1;
22732  HAVE_FFSL=1;
22733  HAVE_FFSLL=1;
22734  HAVE_DECL_MEMMEM=1;
22735  HAVE_MEMPCPY=1;
22736  HAVE_DECL_MEMRCHR=1;
22737  HAVE_RAWMEMCHR=1;
22738  HAVE_STPCPY=1;
22739  HAVE_STPNCPY=1;
22740  HAVE_STRCHRNUL=1;
22741  HAVE_DECL_STRDUP=1;
22742  HAVE_DECL_STRNDUP=1;
22743  HAVE_DECL_STRNLEN=1;
22744  HAVE_STRPBRK=1;
22745  HAVE_STRSEP=1;
22746  HAVE_STRCASESTR=1;
22747  HAVE_DECL_STRTOK_R=1;
22748  HAVE_DECL_STRERROR_R=1;
22749  HAVE_DECL_STRSIGNAL=1;
22750  HAVE_STRVERSCMP=1;
22751  REPLACE_MEMCHR=0;
22752  REPLACE_MEMMEM=0;
22753  REPLACE_STPNCPY=0;
22754  REPLACE_STRCHRNUL=0;
22755  REPLACE_STRDUP=0;
22756  REPLACE_STRNCAT=0;
22757  REPLACE_STRNDUP=0;
22758  REPLACE_STRNLEN=0;
22759  REPLACE_STRSTR=0;
22760  REPLACE_STRCASESTR=0;
22761  REPLACE_STRTOK_R=0;
22762  REPLACE_STRERROR=0;
22763  REPLACE_STRERROR_R=0;
22764  REPLACE_STRSIGNAL=0;
22765  UNDEFINE_STRTOK_R=0;
22766
22767
22768
22769
22770
22771
22772  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
22773  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
22774  # irrelevant for anonymous mappings.
22775  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22776if test "x$ac_cv_func_mmap" = xyes; then :
22777  gl_have_mmap=yes
22778else
22779  gl_have_mmap=no
22780fi
22781
22782
22783  # Try to allow MAP_ANONYMOUS.
22784  gl_have_mmap_anonymous=no
22785  if test $gl_have_mmap = yes; then
22786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
22787$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
22788    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22789/* end confdefs.h.  */
22790
22791#include <sys/mman.h>
22792#ifdef MAP_ANONYMOUS
22793    I cannot identify this map
22794#endif
22795
22796_ACEOF
22797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22798  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
22799  gl_have_mmap_anonymous=yes
22800fi
22801rm -f conftest*
22802
22803    if test $gl_have_mmap_anonymous != yes; then
22804      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22805/* end confdefs.h.  */
22806
22807#include <sys/mman.h>
22808#ifdef MAP_ANON
22809    I cannot identify this map
22810#endif
22811
22812_ACEOF
22813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22814  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
22815
22816$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
22817
22818         gl_have_mmap_anonymous=yes
22819fi
22820rm -f conftest*
22821
22822    fi
22823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
22824$as_echo "$gl_have_mmap_anonymous" >&6; }
22825    if test $gl_have_mmap_anonymous = yes; then
22826
22827$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
22828
22829    fi
22830  fi
22831
22832
22833
22834
22835
22836  # Detect platform-specific bugs in some versions of glibc:
22837  # memchr should not dereference anything with length 0
22838  #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
22839  # memchr should not dereference overestimated length after a match
22840  #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
22841  #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
22842  # memchr should cast the second argument to 'unsigned char'.
22843  #   This bug exists in Android 4.3.
22844  # Assume that memchr works on platforms that lack mprotect.
22845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
22846$as_echo_n "checking whether memchr works... " >&6; }
22847if ${gl_cv_func_memchr_works+:} false; then :
22848  $as_echo_n "(cached) " >&6
22849else
22850  if test "$cross_compiling" = yes; then :
22851  case "$host_os" in
22852                           # Guess no on Android.
22853          linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
22854                           # Guess yes on native Windows.
22855          mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
22856                           # If we don't know, obey --enable-cross-guesses.
22857          *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
22858        esac
22859
22860else
22861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862/* end confdefs.h.  */
22863
22864#include <string.h>
22865#if HAVE_SYS_MMAN_H
22866# include <fcntl.h>
22867# include <unistd.h>
22868# include <sys/types.h>
22869# include <sys/mman.h>
22870# ifndef MAP_FILE
22871#  define MAP_FILE 0
22872# endif
22873#endif
22874
22875int
22876main ()
22877{
22878
22879  int result = 0;
22880  char *fence = NULL;
22881#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
22882# if HAVE_MAP_ANONYMOUS
22883  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
22884  const int fd = -1;
22885# else /* !HAVE_MAP_ANONYMOUS */
22886  const int flags = MAP_FILE | MAP_PRIVATE;
22887  int fd = open ("/dev/zero", O_RDONLY, 0666);
22888  if (fd >= 0)
22889# endif
22890    {
22891      int pagesize = getpagesize ();
22892      char *two_pages =
22893        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
22894                       flags, fd, 0);
22895      if (two_pages != (char *)(-1)
22896          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
22897        fence = two_pages + pagesize;
22898    }
22899#endif
22900  if (fence)
22901    {
22902      if (memchr (fence, 0, 0))
22903        result |= 1;
22904      strcpy (fence - 9, "12345678");
22905      if (memchr (fence - 9, 0, 79) != fence - 1)
22906        result |= 2;
22907      if (memchr (fence - 1, 0, 3) != fence - 1)
22908        result |= 4;
22909    }
22910  /* Test against bug on Android 4.3.  */
22911  {
22912    char input[3];
22913    input[0] = 'a';
22914    input[1] = 'b';
22915    input[2] = 'c';
22916    if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
22917      result |= 8;
22918  }
22919  return result;
22920
22921  ;
22922  return 0;
22923}
22924_ACEOF
22925if ac_fn_c_try_run "$LINENO"; then :
22926  gl_cv_func_memchr_works=yes
22927else
22928  gl_cv_func_memchr_works=no
22929fi
22930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22931  conftest.$ac_objext conftest.beam conftest.$ac_ext
22932fi
22933
22934
22935fi
22936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
22937$as_echo "$gl_cv_func_memchr_works" >&6; }
22938  case "$gl_cv_func_memchr_works" in
22939    *yes) ;;
22940    *) REPLACE_MEMCHR=1 ;;
22941  esac
22942
22943
22944
22945
22946
22947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
22948$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
22949if ${gl_cv_minmax_in_limits_h+:} false; then :
22950  $as_echo_n "(cached) " >&6
22951else
22952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953/* end confdefs.h.  */
22954#include <limits.h>
22955            int x = MIN (42, 17);
22956int
22957main ()
22958{
22959
22960  ;
22961  return 0;
22962}
22963_ACEOF
22964if ac_fn_c_try_compile "$LINENO"; then :
22965  gl_cv_minmax_in_limits_h=yes
22966else
22967  gl_cv_minmax_in_limits_h=no
22968fi
22969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970fi
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
22972$as_echo "$gl_cv_minmax_in_limits_h" >&6; }
22973  if test $gl_cv_minmax_in_limits_h = yes; then
22974
22975$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
22976
22977  fi
22978
22979
22980
22981
22982
22983
22984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
22985$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
22986if ${gl_cv_minmax_in_sys_param_h+:} false; then :
22987  $as_echo_n "(cached) " >&6
22988else
22989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22990/* end confdefs.h.  */
22991#include <sys/param.h>
22992            int x = MIN (42, 17);
22993int
22994main ()
22995{
22996
22997  ;
22998  return 0;
22999}
23000_ACEOF
23001if ac_fn_c_try_compile "$LINENO"; then :
23002  gl_cv_minmax_in_sys_param_h=yes
23003else
23004  gl_cv_minmax_in_sys_param_h=no
23005fi
23006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007fi
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
23009$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
23010  if test $gl_cv_minmax_in_sys_param_h = yes; then
23011
23012$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
23013
23014  fi
23015
23016
23017
23018
23019
23020
23021
23022
23023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
23024$as_echo_n "checking for O_CLOEXEC... " >&6; }
23025if ${gl_cv_macro_O_CLOEXEC+:} false; then :
23026  $as_echo_n "(cached) " >&6
23027else
23028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029/* end confdefs.h.  */
23030#include <fcntl.h>
23031                          #ifndef O_CLOEXEC
23032                            choke me;
23033                          #endif
23034
23035int
23036main ()
23037{
23038return O_CLOEXEC;
23039  ;
23040  return 0;
23041}
23042_ACEOF
23043if ac_fn_c_try_compile "$LINENO"; then :
23044  gl_cv_macro_O_CLOEXEC=yes
23045else
23046  gl_cv_macro_O_CLOEXEC=no
23047fi
23048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23049fi
23050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
23051$as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
23052
23053
23054
23055
23056
23057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
23058$as_echo_n "checking for promoted mode_t type... " >&6; }
23059if ${gl_cv_promoted_mode_t+:} false; then :
23060  $as_echo_n "(cached) " >&6
23061else
23062
23063                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23064/* end confdefs.h.  */
23065#include <sys/types.h>
23066int
23067main ()
23068{
23069typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
23070  ;
23071  return 0;
23072}
23073_ACEOF
23074if ac_fn_c_try_compile "$LINENO"; then :
23075  gl_cv_promoted_mode_t='int'
23076else
23077  gl_cv_promoted_mode_t='mode_t'
23078fi
23079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080
23081fi
23082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
23083$as_echo "$gl_cv_promoted_mode_t" >&6; }
23084
23085cat >>confdefs.h <<_ACEOF
23086#define PROMOTED_MODE_T $gl_cv_promoted_mode_t
23087_ACEOF
23088
23089
23090
23091  GNULIB_PTHREAD_SIGMASK=0;
23092  GNULIB_RAISE=0;
23093  GNULIB_SIGNAL_H_SIGPIPE=0;
23094  GNULIB_SIGPROCMASK=0;
23095  GNULIB_SIGACTION=0;
23096    HAVE_POSIX_SIGNALBLOCKING=1;
23097  HAVE_PTHREAD_SIGMASK=1;
23098  HAVE_RAISE=1;
23099  HAVE_SIGSET_T=1;
23100  HAVE_SIGINFO_T=1;
23101  HAVE_SIGACTION=1;
23102  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
23103
23104  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
23105
23106  HAVE_SIGHANDLER_T=1;
23107  REPLACE_PTHREAD_SIGMASK=0;
23108  REPLACE_RAISE=0;
23109
23110
23111  ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
23112      #include <signal.h>
23113      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
23114      #include <sys/types.h>
23115
23116"
23117if test "x$ac_cv_type_sigset_t" = xyes; then :
23118
23119cat >>confdefs.h <<_ACEOF
23120#define HAVE_SIGSET_T 1
23121_ACEOF
23122
23123gl_cv_type_sigset_t=yes
23124else
23125  gl_cv_type_sigset_t=no
23126fi
23127
23128  if test $gl_cv_type_sigset_t != yes; then
23129    HAVE_SIGSET_T=0
23130  fi
23131
23132
23133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23134$as_echo_n "checking for ssize_t... " >&6; }
23135if ${gt_cv_ssize_t+:} false; then :
23136  $as_echo_n "(cached) " >&6
23137else
23138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139/* end confdefs.h.  */
23140#include <sys/types.h>
23141int
23142main ()
23143{
23144int x = sizeof (ssize_t *) + sizeof (ssize_t);
23145            return !x;
23146  ;
23147  return 0;
23148}
23149_ACEOF
23150if ac_fn_c_try_compile "$LINENO"; then :
23151  gt_cv_ssize_t=yes
23152else
23153  gt_cv_ssize_t=no
23154fi
23155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156fi
23157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23158$as_echo "$gt_cv_ssize_t" >&6; }
23159  if test $gt_cv_ssize_t = no; then
23160
23161$as_echo "#define ssize_t int" >>confdefs.h
23162
23163  fi
23164
23165
23166
23167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23168$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23169if ${ac_cv_type_uid_t+:} false; then :
23170  $as_echo_n "(cached) " >&6
23171else
23172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23173/* end confdefs.h.  */
23174#include <sys/types.h>
23175
23176_ACEOF
23177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23178  $EGREP "uid_t" >/dev/null 2>&1; then :
23179  ac_cv_type_uid_t=yes
23180else
23181  ac_cv_type_uid_t=no
23182fi
23183rm -f conftest*
23184
23185fi
23186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23187$as_echo "$ac_cv_type_uid_t" >&6; }
23188if test $ac_cv_type_uid_t = no; then
23189
23190$as_echo "#define uid_t int" >>confdefs.h
23191
23192
23193$as_echo "#define gid_t int" >>confdefs.h
23194
23195fi
23196
23197
23198
23199
23200
23201
23202  GNULIB_DPRINTF=0;
23203  GNULIB_FCLOSE=0;
23204  GNULIB_FDOPEN=0;
23205  GNULIB_FFLUSH=0;
23206  GNULIB_FGETC=0;
23207  GNULIB_FGETS=0;
23208  GNULIB_FOPEN=0;
23209  GNULIB_FPRINTF=0;
23210  GNULIB_FPRINTF_POSIX=0;
23211  GNULIB_FPURGE=0;
23212  GNULIB_FPUTC=0;
23213  GNULIB_FPUTS=0;
23214  GNULIB_FREAD=0;
23215  GNULIB_FREOPEN=0;
23216  GNULIB_FSCANF=0;
23217  GNULIB_FSEEK=0;
23218  GNULIB_FSEEKO=0;
23219  GNULIB_FTELL=0;
23220  GNULIB_FTELLO=0;
23221  GNULIB_FWRITE=0;
23222  GNULIB_GETC=0;
23223  GNULIB_GETCHAR=0;
23224  GNULIB_GETDELIM=0;
23225  GNULIB_GETLINE=0;
23226  GNULIB_OBSTACK_PRINTF=0;
23227  GNULIB_OBSTACK_PRINTF_POSIX=0;
23228  GNULIB_PCLOSE=0;
23229  GNULIB_PERROR=0;
23230  GNULIB_POPEN=0;
23231  GNULIB_PRINTF=0;
23232  GNULIB_PRINTF_POSIX=0;
23233  GNULIB_PUTC=0;
23234  GNULIB_PUTCHAR=0;
23235  GNULIB_PUTS=0;
23236  GNULIB_REMOVE=0;
23237  GNULIB_RENAME=0;
23238  GNULIB_RENAMEAT=0;
23239  GNULIB_SCANF=0;
23240  GNULIB_SNPRINTF=0;
23241  GNULIB_SPRINTF_POSIX=0;
23242  GNULIB_STDIO_H_NONBLOCKING=0;
23243  GNULIB_STDIO_H_SIGPIPE=0;
23244  GNULIB_TMPFILE=0;
23245  GNULIB_VASPRINTF=0;
23246  GNULIB_VFSCANF=0;
23247  GNULIB_VSCANF=0;
23248  GNULIB_VDPRINTF=0;
23249  GNULIB_VFPRINTF=0;
23250  GNULIB_VFPRINTF_POSIX=0;
23251  GNULIB_VPRINTF=0;
23252  GNULIB_VPRINTF_POSIX=0;
23253  GNULIB_VSNPRINTF=0;
23254  GNULIB_VSPRINTF_POSIX=0;
23255    HAVE_DECL_FPURGE=1;
23256  HAVE_DECL_FSEEKO=1;
23257  HAVE_DECL_FTELLO=1;
23258  HAVE_DECL_GETDELIM=1;
23259  HAVE_DECL_GETLINE=1;
23260  HAVE_DECL_OBSTACK_PRINTF=1;
23261  HAVE_DECL_SNPRINTF=1;
23262  HAVE_DECL_VSNPRINTF=1;
23263  HAVE_DPRINTF=1;
23264  HAVE_FSEEKO=1;
23265  HAVE_FTELLO=1;
23266  HAVE_PCLOSE=1;
23267  HAVE_POPEN=1;
23268  HAVE_RENAMEAT=1;
23269  HAVE_VASPRINTF=1;
23270  HAVE_VDPRINTF=1;
23271  REPLACE_DPRINTF=0;
23272  REPLACE_FCLOSE=0;
23273  REPLACE_FDOPEN=0;
23274  REPLACE_FFLUSH=0;
23275  REPLACE_FOPEN=0;
23276  REPLACE_FPRINTF=0;
23277  REPLACE_FPURGE=0;
23278  REPLACE_FREOPEN=0;
23279  REPLACE_FSEEK=0;
23280  REPLACE_FSEEKO=0;
23281  REPLACE_FTELL=0;
23282  REPLACE_FTELLO=0;
23283  REPLACE_GETDELIM=0;
23284  REPLACE_GETLINE=0;
23285  REPLACE_OBSTACK_PRINTF=0;
23286  REPLACE_PERROR=0;
23287  REPLACE_POPEN=0;
23288  REPLACE_PRINTF=0;
23289  REPLACE_REMOVE=0;
23290  REPLACE_RENAME=0;
23291  REPLACE_RENAMEAT=0;
23292  REPLACE_SNPRINTF=0;
23293  REPLACE_SPRINTF=0;
23294  REPLACE_STDIO_READ_FUNCS=0;
23295  REPLACE_STDIO_WRITE_FUNCS=0;
23296  REPLACE_TMPFILE=0;
23297  REPLACE_VASPRINTF=0;
23298  REPLACE_VDPRINTF=0;
23299  REPLACE_VFPRINTF=0;
23300  REPLACE_VPRINTF=0;
23301  REPLACE_VSNPRINTF=0;
23302  REPLACE_VSPRINTF=0;
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
23313$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
23314if ${gl_cv_func_snprintf_retval_c99+:} false; then :
23315  $as_echo_n "(cached) " >&6
23316else
23317
23318      if test "$cross_compiling" = yes; then :
23319  case "$host_os" in
23320                                 # Guess yes on glibc systems.
23321           *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
23322                                 # Guess yes on musl systems.
23323           *-musl*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23324                                 # Guess yes on FreeBSD >= 5.
23325           freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
23326           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23327                                 # Guess yes on Mac OS X >= 10.3.
23328           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
23329           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23330                                 # Guess yes on OpenBSD >= 3.9.
23331           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
23332                                 gl_cv_func_snprintf_retval_c99="guessing no";;
23333           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
23334                                 # Guess yes on Solaris >= 2.10.
23335           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
23336           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
23337                                 # Guess yes on AIX >= 4.
23338           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
23339           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
23340                                 # Guess yes on NetBSD >= 3.
23341           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
23342                                 gl_cv_func_snprintf_retval_c99="guessing no";;
23343           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23344                                 # Guess yes on BeOS.
23345           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
23346                                 # Guess yes on Android.
23347           linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
23348                                 # Guess yes on MSVC, no on mingw.
23349           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350/* end confdefs.h.  */
23351
23352#ifdef _MSC_VER
23353 Known
23354#endif
23355
23356_ACEOF
23357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23358  $EGREP "Known" >/dev/null 2>&1; then :
23359  gl_cv_func_snprintf_retval_c99="guessing yes"
23360else
23361  gl_cv_func_snprintf_retval_c99="guessing no"
23362fi
23363rm -f conftest*
23364
23365                                 ;;
23366                                 # If we don't know, obey --enable-cross-guesses.
23367           *)                    gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
23368         esac
23369
23370else
23371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23372/* end confdefs.h.  */
23373
23374#include <stdio.h>
23375#include <string.h>
23376#if HAVE_SNPRINTF
23377# define my_snprintf snprintf
23378#else
23379# include <stdarg.h>
23380static int my_snprintf (char *buf, int size, const char *format, ...)
23381{
23382  va_list args;
23383  int ret;
23384  va_start (args, format);
23385  ret = vsnprintf (buf, size, format, args);
23386  va_end (args);
23387  return ret;
23388}
23389#endif
23390static char buf[100];
23391int main ()
23392{
23393  strcpy (buf, "ABCDEF");
23394  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
23395    return 1;
23396  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
23397    return 2;
23398  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
23399    return 3;
23400  return 0;
23401}
23402_ACEOF
23403if ac_fn_c_try_run "$LINENO"; then :
23404  gl_cv_func_snprintf_retval_c99=yes
23405else
23406  gl_cv_func_snprintf_retval_c99=no
23407fi
23408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23409  conftest.$ac_objext conftest.beam conftest.$ac_ext
23410fi
23411
23412
23413fi
23414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
23415$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
23416
23417ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23418if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23419  ac_have_decl=1
23420else
23421  ac_have_decl=0
23422fi
23423
23424cat >>confdefs.h <<_ACEOF
23425#define HAVE_DECL_SNPRINTF $ac_have_decl
23426_ACEOF
23427
23428
23429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
23430$as_echo_n "checking for stdint.h... " >&6; }
23431if ${gl_cv_header_stdint_h+:} false; then :
23432  $as_echo_n "(cached) " >&6
23433else
23434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23435/* end confdefs.h.  */
23436#include <sys/types.h>
23437            #include <stdint.h>
23438int
23439main ()
23440{
23441uintmax_t i = (uintmax_t) -1; return !i;
23442  ;
23443  return 0;
23444}
23445_ACEOF
23446if ac_fn_c_try_compile "$LINENO"; then :
23447  gl_cv_header_stdint_h=yes
23448else
23449  gl_cv_header_stdint_h=no
23450fi
23451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23452fi
23453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
23454$as_echo "$gl_cv_header_stdint_h" >&6; }
23455  if test $gl_cv_header_stdint_h = yes; then
23456
23457cat >>confdefs.h <<_ACEOF
23458#define HAVE_STDINT_H_WITH_UINTMAX 1
23459_ACEOF
23460
23461  fi
23462
23463
23464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
23465$as_echo_n "checking for inttypes.h... " >&6; }
23466if ${gl_cv_header_inttypes_h+:} false; then :
23467  $as_echo_n "(cached) " >&6
23468else
23469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470/* end confdefs.h.  */
23471
23472#include <sys/types.h>
23473#include <inttypes.h>
23474
23475int
23476main ()
23477{
23478uintmax_t i = (uintmax_t) -1; return !i;
23479  ;
23480  return 0;
23481}
23482_ACEOF
23483if ac_fn_c_try_compile "$LINENO"; then :
23484  gl_cv_header_inttypes_h=yes
23485else
23486  gl_cv_header_inttypes_h=no
23487fi
23488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489fi
23490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
23491$as_echo "$gl_cv_header_inttypes_h" >&6; }
23492  if test $gl_cv_header_inttypes_h = yes; then
23493
23494cat >>confdefs.h <<_ACEOF
23495#define HAVE_INTTYPES_H_WITH_UINTMAX 1
23496_ACEOF
23497
23498  fi
23499
23500
23501
23502
23503
23504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
23505$as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
23506if ${gl_cv_func_printf_sizes_c99+:} false; then :
23507  $as_echo_n "(cached) " >&6
23508else
23509
23510      if test "$cross_compiling" = yes; then :
23511
23512         case "$host_os" in
23513                                 # Guess yes on glibc systems.
23514           *-gnu* | gnu*)        gl_cv_func_printf_sizes_c99="guessing yes";;
23515                                 # Guess yes on musl systems.
23516           *-musl*)              gl_cv_func_printf_sizes_c99="guessing yes";;
23517                                 # Guess yes on FreeBSD >= 5.
23518           freebsd[1-4].*)       gl_cv_func_printf_sizes_c99="guessing no";;
23519           freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
23520                                 # Guess yes on Mac OS X >= 10.3.
23521           darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
23522           darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
23523                                 # Guess yes on OpenBSD >= 3.9.
23524           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
23525                                 gl_cv_func_printf_sizes_c99="guessing no";;
23526           openbsd*)             gl_cv_func_printf_sizes_c99="guessing yes";;
23527                                 # Guess yes on Solaris >= 2.10.
23528           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
23529           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
23530                                 # Guess yes on NetBSD >= 3.
23531           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
23532                                 gl_cv_func_printf_sizes_c99="guessing no";;
23533           netbsd*)              gl_cv_func_printf_sizes_c99="guessing yes";;
23534                                 # Guess yes on Android.
23535           linux*-android*)      gl_cv_func_printf_sizes_c99="guessing yes";;
23536                                 # Guess yes on MSVC, no on mingw.
23537           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538/* end confdefs.h.  */
23539
23540#ifdef _MSC_VER
23541 Known
23542#endif
23543
23544_ACEOF
23545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23546  $EGREP "Known" >/dev/null 2>&1; then :
23547  gl_cv_func_printf_sizes_c99="guessing yes"
23548else
23549  gl_cv_func_printf_sizes_c99="guessing no"
23550fi
23551rm -f conftest*
23552
23553                                 ;;
23554                                 # If we don't know, obey --enable-cross-guesses.
23555           *)                    gl_cv_func_printf_sizes_c99="$gl_cross_guess_normal";;
23556         esac
23557
23558else
23559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560/* end confdefs.h.  */
23561
23562#include <stddef.h>
23563#include <stdio.h>
23564#include <string.h>
23565#include <sys/types.h>
23566#if HAVE_STDINT_H_WITH_UINTMAX
23567# include <stdint.h>
23568#endif
23569#if HAVE_INTTYPES_H_WITH_UINTMAX
23570# include <inttypes.h>
23571#endif
23572static char buf[100];
23573int main ()
23574{
23575  int result = 0;
23576#if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
23577  buf[0] = '\0';
23578  if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
23579      || strcmp (buf, "12345671 33") != 0)
23580    result |= 1;
23581#else
23582  result |= 1;
23583#endif
23584  buf[0] = '\0';
23585  if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
23586      || strcmp (buf, "12345672 33") != 0)
23587    result |= 2;
23588  buf[0] = '\0';
23589  if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
23590      || strcmp (buf, "12345673 33") != 0)
23591    result |= 4;
23592  buf[0] = '\0';
23593  if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
23594      || strcmp (buf, "1.5 33") != 0)
23595    result |= 8;
23596  return result;
23597}
23598_ACEOF
23599if ac_fn_c_try_run "$LINENO"; then :
23600  gl_cv_func_printf_sizes_c99=yes
23601else
23602  gl_cv_func_printf_sizes_c99=no
23603fi
23604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23605  conftest.$ac_objext conftest.beam conftest.$ac_ext
23606fi
23607
23608
23609fi
23610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
23611$as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
23612
23613
23614
23615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
23616$as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
23617if ${gl_cv_func_printf_long_double+:} false; then :
23618  $as_echo_n "(cached) " >&6
23619else
23620
23621      if test "$cross_compiling" = yes; then :
23622  case "$host_os" in
23623                            # Guess no on BeOS.
23624           beos*)           gl_cv_func_printf_long_double="guessing no";;
23625                            # Guess yes on Android.
23626           linux*-android*) gl_cv_func_printf_long_double="guessing yes";;
23627                            # Guess yes on MSVC, no on mingw.
23628           mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23629/* end confdefs.h.  */
23630
23631#ifdef _MSC_VER
23632 Known
23633#endif
23634
23635_ACEOF
23636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23637  $EGREP "Known" >/dev/null 2>&1; then :
23638  gl_cv_func_printf_long_double="guessing yes"
23639else
23640  gl_cv_func_printf_long_double="guessing no"
23641fi
23642rm -f conftest*
23643
23644                            ;;
23645           *)               gl_cv_func_printf_long_double="guessing yes";;
23646         esac
23647
23648else
23649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650/* end confdefs.h.  */
23651
23652#include <stdio.h>
23653#include <string.h>
23654static char buf[10000];
23655int main ()
23656{
23657  int result = 0;
23658  buf[0] = '\0';
23659  if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
23660      || strcmp (buf, "1.750000 33") != 0)
23661    result |= 1;
23662  buf[0] = '\0';
23663  if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
23664      || strcmp (buf, "1.750000e+00 33") != 0)
23665    result |= 2;
23666  buf[0] = '\0';
23667  if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
23668      || strcmp (buf, "1.75 33") != 0)
23669    result |= 4;
23670  return result;
23671}
23672_ACEOF
23673if ac_fn_c_try_run "$LINENO"; then :
23674  gl_cv_func_printf_long_double=yes
23675else
23676  gl_cv_func_printf_long_double=no
23677fi
23678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23679  conftest.$ac_objext conftest.beam conftest.$ac_ext
23680fi
23681
23682
23683fi
23684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
23685$as_echo "$gl_cv_func_printf_long_double" >&6; }
23686
23687
23688
23689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
23690$as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
23691if ${gl_cv_func_printf_infinite+:} false; then :
23692  $as_echo_n "(cached) " >&6
23693else
23694
23695      if test "$cross_compiling" = yes; then :
23696
23697         case "$host_os" in
23698                                 # Guess yes on glibc systems.
23699           *-gnu* | gnu*)        gl_cv_func_printf_infinite="guessing yes";;
23700                                 # Guess yes on musl systems.
23701           *-musl*)              gl_cv_func_printf_infinite="guessing yes";;
23702                                 # Guess yes on FreeBSD >= 6.
23703           freebsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
23704           freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
23705                                 # Guess yes on Mac OS X >= 10.3.
23706           darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
23707           darwin*)              gl_cv_func_printf_infinite="guessing yes";;
23708                                 # Guess yes on HP-UX >= 11.
23709           hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
23710           hpux*)                gl_cv_func_printf_infinite="guessing yes";;
23711                                 # Guess yes on NetBSD >= 3.
23712           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
23713                                 gl_cv_func_printf_infinite="guessing no";;
23714           netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
23715                                 # Guess yes on BeOS.
23716           beos*)                gl_cv_func_printf_infinite="guessing yes";;
23717                                 # Guess no on Android.
23718           linux*-android*)      gl_cv_func_printf_infinite="guessing no";;
23719                                 # Guess yes on MSVC, no on mingw.
23720           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721/* end confdefs.h.  */
23722
23723#ifdef _MSC_VER
23724 Known
23725#endif
23726
23727_ACEOF
23728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23729  $EGREP "Known" >/dev/null 2>&1; then :
23730  gl_cv_func_printf_infinite="guessing yes"
23731else
23732  gl_cv_func_printf_infinite="guessing no"
23733fi
23734rm -f conftest*
23735
23736                                 ;;
23737                                 # If we don't know, obey --enable-cross-guesses.
23738           *)                    gl_cv_func_printf_infinite="$gl_cross_guess_normal";;
23739         esac
23740
23741else
23742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743/* end confdefs.h.  */
23744
23745#include <stdio.h>
23746#include <string.h>
23747static int
23748strisnan (const char *string, size_t start_index, size_t end_index)
23749{
23750  if (start_index < end_index)
23751    {
23752      if (string[start_index] == '-')
23753        start_index++;
23754      if (start_index + 3 <= end_index
23755          && memcmp (string + start_index, "nan", 3) == 0)
23756        {
23757          start_index += 3;
23758          if (start_index == end_index
23759              || (string[start_index] == '(' && string[end_index - 1] == ')'))
23760            return 1;
23761        }
23762    }
23763  return 0;
23764}
23765static int
23766have_minus_zero ()
23767{
23768  static double plus_zero = 0.0;
23769  double minus_zero = - plus_zero;
23770  return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
23771}
23772static char buf[10000];
23773static double zero = 0.0;
23774int main ()
23775{
23776  int result = 0;
23777  if (sprintf (buf, "%f", 1.0 / zero) < 0
23778      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
23779    result |= 1;
23780  if (sprintf (buf, "%f", -1.0 / zero) < 0
23781      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
23782    result |= 1;
23783  if (sprintf (buf, "%f", zero / zero) < 0
23784      || !strisnan (buf, 0, strlen (buf)))
23785    result |= 2;
23786  if (sprintf (buf, "%e", 1.0 / zero) < 0
23787      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
23788    result |= 4;
23789  if (sprintf (buf, "%e", -1.0 / zero) < 0
23790      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
23791    result |= 4;
23792  if (sprintf (buf, "%e", zero / zero) < 0
23793      || !strisnan (buf, 0, strlen (buf)))
23794    result |= 8;
23795  if (sprintf (buf, "%g", 1.0 / zero) < 0
23796      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
23797    result |= 16;
23798  if (sprintf (buf, "%g", -1.0 / zero) < 0
23799      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
23800    result |= 16;
23801  if (sprintf (buf, "%g", zero / zero) < 0
23802      || !strisnan (buf, 0, strlen (buf)))
23803    result |= 32;
23804  /* This test fails on HP-UX 10.20.  */
23805  if (have_minus_zero ())
23806    if (sprintf (buf, "%g", - zero) < 0
23807        || strcmp (buf, "-0") != 0)
23808    result |= 64;
23809  return result;
23810}
23811_ACEOF
23812if ac_fn_c_try_run "$LINENO"; then :
23813  gl_cv_func_printf_infinite=yes
23814else
23815  gl_cv_func_printf_infinite=no
23816fi
23817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23818  conftest.$ac_objext conftest.beam conftest.$ac_ext
23819fi
23820
23821
23822fi
23823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
23824$as_echo "$gl_cv_func_printf_infinite" >&6; }
23825
23826
23827
23828
23829
23830
23831         if test -n "$gl_printf_safe"; then
23832
23833$as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
23834
23835  fi
23836  case "$gl_cv_func_printf_long_double" in
23837    *yes)
23838      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
23839$as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
23840if ${gl_cv_func_printf_infinite_long_double+:} false; then :
23841  $as_echo_n "(cached) " >&6
23842else
23843
23844          if test "$cross_compiling" = yes; then :
23845  case "$host_cpu" in
23846                                     # Guess no on ia64, x86_64, i386.
23847               ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
23848               *)
23849                 case "$host_os" in
23850                                         # Guess yes on glibc systems.
23851                   *-gnu* | gnu*)        gl_cv_func_printf_infinite_long_double="guessing yes";;
23852                                         # Guess yes on musl systems.
23853                   *-musl*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
23854                                         # Guess yes on FreeBSD >= 6.
23855                   freebsd[1-5].*)       gl_cv_func_printf_infinite_long_double="guessing no";;
23856                   freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
23857                                         # Guess yes on HP-UX >= 11.
23858                   hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
23859                   hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
23860                                         # Guess no on Android.
23861                   linux*-android*)      gl_cv_func_printf_infinite_long_double="guessing no";;
23862                                         # Guess yes on MSVC, no on mingw.
23863                   mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864/* end confdefs.h.  */
23865
23866#ifdef _MSC_VER
23867 Known
23868#endif
23869
23870_ACEOF
23871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23872  $EGREP "Known" >/dev/null 2>&1; then :
23873  gl_cv_func_printf_infinite_long_double="guessing yes"
23874else
23875  gl_cv_func_printf_infinite_long_double="guessing no"
23876fi
23877rm -f conftest*
23878
23879                                         ;;
23880                                         # If we don't know, obey --enable-cross-guesses.
23881                   *)                    gl_cv_func_printf_infinite_long_double="$gl_cross_guess_normal";;
23882                 esac
23883                 ;;
23884             esac
23885
23886else
23887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23888/* end confdefs.h.  */
23889
23890
23891#include <stdlib.h>
23892#if defined __MACH__ && defined __APPLE__
23893/* Avoid a crash on Mac OS X.  */
23894#include <mach/mach.h>
23895#include <mach/mach_error.h>
23896#include <mach/thread_status.h>
23897#include <mach/exception.h>
23898#include <mach/task.h>
23899#include <pthread.h>
23900/* The exception port on which our thread listens.  */
23901static mach_port_t our_exception_port;
23902/* The main function of the thread listening for exceptions of type
23903   EXC_BAD_ACCESS.  */
23904static void *
23905mach_exception_thread (void *arg)
23906{
23907  /* Buffer for a message to be received.  */
23908  struct {
23909    mach_msg_header_t head;
23910    mach_msg_body_t msgh_body;
23911    char data[1024];
23912  } msg;
23913  mach_msg_return_t retval;
23914  /* Wait for a message on the exception port.  */
23915  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23916                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23917  if (retval != MACH_MSG_SUCCESS)
23918    abort ();
23919  exit (1);
23920}
23921static void
23922nocrash_init (void)
23923{
23924  mach_port_t self = mach_task_self ();
23925  /* Allocate a port on which the thread shall listen for exceptions.  */
23926  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23927      == KERN_SUCCESS) {
23928    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
23929    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23930                                MACH_MSG_TYPE_MAKE_SEND)
23931        == KERN_SUCCESS) {
23932      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
23933         for us.  */
23934      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23935      /* Create the thread listening on the exception port.  */
23936      pthread_attr_t attr;
23937      pthread_t thread;
23938      if (pthread_attr_init (&attr) == 0
23939          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23940          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23941        pthread_attr_destroy (&attr);
23942        /* Replace the exception port info for these exceptions with our own.
23943           Note that we replace the exception port for the entire task, not only
23944           for a particular thread.  This has the effect that when our exception
23945           port gets the message, the thread specific exception port has already
23946           been asked, and we don't need to bother about it.
23947           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
23948        task_set_exception_ports (self, mask, our_exception_port,
23949                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23950      }
23951    }
23952  }
23953}
23954#elif defined _WIN32 && ! defined __CYGWIN__
23955/* Avoid a crash on native Windows.  */
23956#define WIN32_LEAN_AND_MEAN
23957#include <windows.h>
23958#include <winerror.h>
23959static LONG WINAPI
23960exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23961{
23962  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23963    {
23964    case EXCEPTION_ACCESS_VIOLATION:
23965    case EXCEPTION_IN_PAGE_ERROR:
23966    case EXCEPTION_STACK_OVERFLOW:
23967    case EXCEPTION_GUARD_PAGE:
23968    case EXCEPTION_PRIV_INSTRUCTION:
23969    case EXCEPTION_ILLEGAL_INSTRUCTION:
23970    case EXCEPTION_DATATYPE_MISALIGNMENT:
23971    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23972    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23973      exit (1);
23974    }
23975  return EXCEPTION_CONTINUE_SEARCH;
23976}
23977static void
23978nocrash_init (void)
23979{
23980  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23981}
23982#else
23983/* Avoid a crash on POSIX systems.  */
23984#include <signal.h>
23985#include <unistd.h>
23986/* A POSIX signal handler.  */
23987static void
23988exception_handler (int sig)
23989{
23990  _exit (1);
23991}
23992static void
23993nocrash_init (void)
23994{
23995#ifdef SIGSEGV
23996  signal (SIGSEGV, exception_handler);
23997#endif
23998#ifdef SIGBUS
23999  signal (SIGBUS, exception_handler);
24000#endif
24001}
24002#endif
24003
24004#include <float.h>
24005#include <stdio.h>
24006#include <string.h>
24007static int
24008strisnan (const char *string, size_t start_index, size_t end_index)
24009{
24010  if (start_index < end_index)
24011    {
24012      if (string[start_index] == '-')
24013        start_index++;
24014      if (start_index + 3 <= end_index
24015          && memcmp (string + start_index, "nan", 3) == 0)
24016        {
24017          start_index += 3;
24018          if (start_index == end_index
24019              || (string[start_index] == '(' && string[end_index - 1] == ')'))
24020            return 1;
24021        }
24022    }
24023  return 0;
24024}
24025static char buf[10000];
24026static long double zeroL = 0.0L;
24027int main ()
24028{
24029  int result = 0;
24030  nocrash_init();
24031  if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
24032      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
24033    result |= 1;
24034  if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
24035      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
24036    result |= 1;
24037  if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
24038      || !strisnan (buf, 0, strlen (buf)))
24039    result |= 1;
24040  if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
24041      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
24042    result |= 1;
24043  if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
24044      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
24045    result |= 1;
24046  if (sprintf (buf, "%Le", zeroL / zeroL) < 0
24047      || !strisnan (buf, 0, strlen (buf)))
24048    result |= 1;
24049  if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
24050      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
24051    result |= 1;
24052  if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
24053      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
24054    result |= 1;
24055  if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
24056      || !strisnan (buf, 0, strlen (buf)))
24057    result |= 1;
24058#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
24059/* Representation of an 80-bit 'long double' as an initializer for a sequence
24060   of 'unsigned int' words.  */
24061# ifdef WORDS_BIGENDIAN
24062#  define LDBL80_WORDS(exponent,manthi,mantlo) \
24063     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
24064       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
24065       (unsigned int) (mantlo) << 16                                        \
24066     }
24067# else
24068#  define LDBL80_WORDS(exponent,manthi,mantlo) \
24069     { mantlo, manthi, exponent }
24070# endif
24071  { /* Quiet NaN.  */
24072    static union { unsigned int word[4]; long double value; } x =
24073      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
24074    if (sprintf (buf, "%Lf", x.value) < 0
24075        || !strisnan (buf, 0, strlen (buf)))
24076      result |= 2;
24077    if (sprintf (buf, "%Le", x.value) < 0
24078        || !strisnan (buf, 0, strlen (buf)))
24079      result |= 2;
24080    if (sprintf (buf, "%Lg", x.value) < 0
24081        || !strisnan (buf, 0, strlen (buf)))
24082      result |= 2;
24083  }
24084  {
24085    /* Signalling NaN.  */
24086    static union { unsigned int word[4]; long double value; } x =
24087      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
24088    if (sprintf (buf, "%Lf", x.value) < 0
24089        || !strisnan (buf, 0, strlen (buf)))
24090      result |= 2;
24091    if (sprintf (buf, "%Le", x.value) < 0
24092        || !strisnan (buf, 0, strlen (buf)))
24093      result |= 2;
24094    if (sprintf (buf, "%Lg", x.value) < 0
24095        || !strisnan (buf, 0, strlen (buf)))
24096      result |= 2;
24097  }
24098  { /* Pseudo-NaN.  */
24099    static union { unsigned int word[4]; long double value; } x =
24100      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
24101    if (sprintf (buf, "%Lf", x.value) <= 0)
24102      result |= 4;
24103    if (sprintf (buf, "%Le", x.value) <= 0)
24104      result |= 4;
24105    if (sprintf (buf, "%Lg", x.value) <= 0)
24106      result |= 4;
24107  }
24108  { /* Pseudo-Infinity.  */
24109    static union { unsigned int word[4]; long double value; } x =
24110      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
24111    if (sprintf (buf, "%Lf", x.value) <= 0)
24112      result |= 8;
24113    if (sprintf (buf, "%Le", x.value) <= 0)
24114      result |= 8;
24115    if (sprintf (buf, "%Lg", x.value) <= 0)
24116      result |= 8;
24117  }
24118  { /* Pseudo-Zero.  */
24119    static union { unsigned int word[4]; long double value; } x =
24120      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
24121    if (sprintf (buf, "%Lf", x.value) <= 0)
24122      result |= 16;
24123    if (sprintf (buf, "%Le", x.value) <= 0)
24124      result |= 16;
24125    if (sprintf (buf, "%Lg", x.value) <= 0)
24126      result |= 16;
24127  }
24128  { /* Unnormalized number.  */
24129    static union { unsigned int word[4]; long double value; } x =
24130      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
24131    if (sprintf (buf, "%Lf", x.value) <= 0)
24132      result |= 32;
24133    if (sprintf (buf, "%Le", x.value) <= 0)
24134      result |= 32;
24135    if (sprintf (buf, "%Lg", x.value) <= 0)
24136      result |= 32;
24137  }
24138  { /* Pseudo-Denormal.  */
24139    static union { unsigned int word[4]; long double value; } x =
24140      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
24141    if (sprintf (buf, "%Lf", x.value) <= 0)
24142      result |= 64;
24143    if (sprintf (buf, "%Le", x.value) <= 0)
24144      result |= 64;
24145    if (sprintf (buf, "%Lg", x.value) <= 0)
24146      result |= 64;
24147  }
24148#endif
24149  return result;
24150}
24151_ACEOF
24152if ac_fn_c_try_run "$LINENO"; then :
24153  gl_cv_func_printf_infinite_long_double=yes
24154else
24155  gl_cv_func_printf_infinite_long_double=no
24156fi
24157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24158  conftest.$ac_objext conftest.beam conftest.$ac_ext
24159fi
24160
24161
24162fi
24163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
24164$as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
24165      ;;
24166    *)
24167      gl_cv_func_printf_infinite_long_double="irrelevant"
24168      ;;
24169  esac
24170
24171
24172
24173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
24174$as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
24175if ${gl_cv_func_printf_directive_a+:} false; then :
24176  $as_echo_n "(cached) " >&6
24177else
24178
24179      if test "$cross_compiling" = yes; then :
24180
24181         case "$host_os" in
24182                                 # Guess yes on glibc >= 2.5 systems.
24183           *-gnu* | gnu*)
24184             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185/* end confdefs.h.  */
24186
24187               #include <features.h>
24188               #ifdef __GNU_LIBRARY__
24189                #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
24190                 BZ2908
24191                #endif
24192               #endif
24193
24194_ACEOF
24195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24196  $EGREP "BZ2908" >/dev/null 2>&1; then :
24197  gl_cv_func_printf_directive_a="guessing yes"
24198else
24199  gl_cv_func_printf_directive_a="guessing no"
24200fi
24201rm -f conftest*
24202
24203             ;;
24204                                 # Guess yes on musl systems.
24205           *-musl*)              gl_cv_func_printf_directive_a="guessing yes";;
24206                                 # Guess no on Android.
24207           linux*-android*)      gl_cv_func_printf_directive_a="guessing no";;
24208                                 # Guess no on native Windows.
24209           mingw*)               gl_cv_func_printf_directive_a="guessing no";;
24210                                 # If we don't know, obey --enable-cross-guesses.
24211           *)                    gl_cv_func_printf_directive_a="$gl_cross_guess_normal";;
24212         esac
24213
24214else
24215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216/* end confdefs.h.  */
24217
24218#include <stdio.h>
24219#include <string.h>
24220static char buf[100];
24221static double zero = 0.0;
24222int main ()
24223{
24224  int result = 0;
24225  if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
24226      || (strcmp (buf, "0x1.922p+1 33") != 0
24227          && strcmp (buf, "0x3.244p+0 33") != 0
24228          && strcmp (buf, "0x6.488p-1 33") != 0
24229          && strcmp (buf, "0xc.91p-2 33") != 0))
24230    result |= 1;
24231  if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
24232      || (strcmp (buf, "-0X1.922P+1 33") != 0
24233          && strcmp (buf, "-0X3.244P+0 33") != 0
24234          && strcmp (buf, "-0X6.488P-1 33") != 0
24235          && strcmp (buf, "-0XC.91P-2 33") != 0))
24236    result |= 2;
24237  /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
24238  if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
24239      || (strcmp (buf, "0x1.83p+0 33") != 0
24240          && strcmp (buf, "0x3.05p-1 33") != 0
24241          && strcmp (buf, "0x6.0ap-2 33") != 0
24242          && strcmp (buf, "0xc.14p-3 33") != 0))
24243    result |= 4;
24244  /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round.  */
24245  if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0
24246      || (strcmp (buf, "0x2p+0 33") != 0
24247          && strcmp (buf, "0x3p-1 33") != 0
24248          && strcmp (buf, "0x6p-2 33") != 0
24249          && strcmp (buf, "0xcp-3 33") != 0))
24250    result |= 4;
24251  /* This catches a FreeBSD 6.1 bug.  See
24252     <https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html> */
24253  if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
24254      || buf[0] == '0')
24255    result |= 8;
24256  /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug.  */
24257  if (sprintf (buf, "%.1a", 1.999) < 0
24258      || (strcmp (buf, "0x1.0p+1") != 0
24259          && strcmp (buf, "0x2.0p+0") != 0
24260          && strcmp (buf, "0x4.0p-1") != 0
24261          && strcmp (buf, "0x8.0p-2") != 0))
24262    result |= 16;
24263  /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
24264     glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
24265  if (sprintf (buf, "%.1La", 1.999L) < 0
24266      || (strcmp (buf, "0x1.0p+1") != 0
24267          && strcmp (buf, "0x2.0p+0") != 0
24268          && strcmp (buf, "0x4.0p-1") != 0
24269          && strcmp (buf, "0x8.0p-2") != 0))
24270    result |= 32;
24271  return result;
24272}
24273_ACEOF
24274if ac_fn_c_try_run "$LINENO"; then :
24275  gl_cv_func_printf_directive_a=yes
24276else
24277  gl_cv_func_printf_directive_a=no
24278fi
24279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24280  conftest.$ac_objext conftest.beam conftest.$ac_ext
24281fi
24282
24283
24284fi
24285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
24286$as_echo "$gl_cv_func_printf_directive_a" >&6; }
24287
24288
24289
24290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
24291$as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
24292if ${gl_cv_func_printf_directive_f+:} false; then :
24293  $as_echo_n "(cached) " >&6
24294else
24295
24296      if test "$cross_compiling" = yes; then :
24297
24298         case "$host_os" in
24299                                 # Guess yes on glibc systems.
24300           *-gnu* | gnu*)        gl_cv_func_printf_directive_f="guessing yes";;
24301                                 # Guess yes on musl systems.
24302           *-musl*)              gl_cv_func_printf_directive_f="guessing yes";;
24303                                 # Guess yes on FreeBSD >= 6.
24304           freebsd[1-5].*)       gl_cv_func_printf_directive_f="guessing no";;
24305           freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
24306                                 # Guess yes on Mac OS X >= 10.3.
24307           darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
24308           darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
24309                                 # Guess yes on Solaris >= 2.10.
24310           solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
24311           solaris*)             gl_cv_func_printf_directive_f="guessing no";;
24312                                 # Guess no on Android.
24313           linux*-android*)      gl_cv_func_printf_directive_f="guessing no";;
24314                                 # Guess yes on MSVC, no on mingw.
24315           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316/* end confdefs.h.  */
24317
24318#ifdef _MSC_VER
24319 Known
24320#endif
24321
24322_ACEOF
24323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24324  $EGREP "Known" >/dev/null 2>&1; then :
24325  gl_cv_func_printf_directive_f="guessing yes"
24326else
24327  gl_cv_func_printf_directive_f="guessing no"
24328fi
24329rm -f conftest*
24330
24331                                 ;;
24332                                 # If we don't know, obey --enable-cross-guesses.
24333           *)                    gl_cv_func_printf_directive_f="$gl_cross_guess_normal";;
24334         esac
24335
24336else
24337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338/* end confdefs.h.  */
24339
24340#include <stdio.h>
24341#include <string.h>
24342static char buf[100];
24343static double zero = 0.0;
24344int main ()
24345{
24346  int result = 0;
24347  if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
24348      || strcmp (buf, "1234567.000000 33") != 0)
24349    result |= 1;
24350  if (sprintf (buf, "%F", 1.0 / zero) < 0
24351      || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
24352    result |= 2;
24353  /* This catches a Cygwin 1.5.x bug.  */
24354  if (sprintf (buf, "%.F", 1234.0) < 0
24355      || strcmp (buf, "1234") != 0)
24356    result |= 4;
24357  return result;
24358}
24359_ACEOF
24360if ac_fn_c_try_run "$LINENO"; then :
24361  gl_cv_func_printf_directive_f=yes
24362else
24363  gl_cv_func_printf_directive_f=no
24364fi
24365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24366  conftest.$ac_objext conftest.beam conftest.$ac_ext
24367fi
24368
24369
24370fi
24371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
24372$as_echo "$gl_cv_func_printf_directive_f" >&6; }
24373
24374
24375
24376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
24377$as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
24378if ${gl_cv_func_printf_directive_n+:} false; then :
24379  $as_echo_n "(cached) " >&6
24380else
24381
24382      if test "$cross_compiling" = yes; then :
24383  case "$host_os" in
24384                            # Guess no on glibc when _FORTIFY_SOURCE >= 2.
24385           *-gnu* | gnu*)   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386/* end confdefs.h.  */
24387#if _FORTIFY_SOURCE >= 2
24388                                    error fail
24389                                   #endif
24390
24391_ACEOF
24392if ac_fn_c_try_compile "$LINENO"; then :
24393  gl_cv_func_printf_directive_n="guessing yes"
24394else
24395  gl_cv_func_printf_directive_n="guessing no"
24396fi
24397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24398                            ;;
24399                            # Guess no on Android.
24400           linux*-android*) gl_cv_func_printf_directive_n="guessing no";;
24401                            # Guess no on native Windows.
24402           mingw*)          gl_cv_func_printf_directive_n="guessing no";;
24403           *)               gl_cv_func_printf_directive_n="guessing yes";;
24404         esac
24405
24406else
24407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24408/* end confdefs.h.  */
24409
24410#include <stdio.h>
24411#include <stdlib.h>
24412#include <string.h>
24413#ifdef _MSC_VER
24414#include <inttypes.h>
24415/* See page about "Parameter Validation" on msdn.microsoft.com.
24416   <https://docs.microsoft.com/en-us/cpp/c-runtime-library/parameter-validation>
24417   <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler>  */
24418static void cdecl
24419invalid_parameter_handler (const wchar_t *expression,
24420                           const wchar_t *function,
24421                           const wchar_t *file, unsigned int line,
24422                           uintptr_t dummy)
24423{
24424  exit (1);
24425}
24426#endif
24427static char fmtstring[10];
24428static char buf[100];
24429int main ()
24430{
24431  int count = -1;
24432#ifdef _MSC_VER
24433  _set_invalid_parameter_handler (invalid_parameter_handler);
24434#endif
24435  /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
24436     support %n in format strings in read-only memory but not in writable
24437     memory.  */
24438  strcpy (fmtstring, "%d %n");
24439  if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
24440      || strcmp (buf, "123 ") != 0
24441      || count != 4)
24442    return 1;
24443  return 0;
24444}
24445_ACEOF
24446if ac_fn_c_try_run "$LINENO"; then :
24447  gl_cv_func_printf_directive_n=yes
24448else
24449  gl_cv_func_printf_directive_n=no
24450fi
24451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24452  conftest.$ac_objext conftest.beam conftest.$ac_ext
24453fi
24454
24455
24456fi
24457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
24458$as_echo "$gl_cv_func_printf_directive_n" >&6; }
24459
24460
24461
24462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
24463$as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
24464if ${gl_cv_func_printf_directive_ls+:} false; then :
24465  $as_echo_n "(cached) " >&6
24466else
24467
24468      if test "$cross_compiling" = yes; then :
24469
24470         case "$host_os" in
24471           openbsd*)        gl_cv_func_printf_directive_ls="guessing no";;
24472           irix*)           gl_cv_func_printf_directive_ls="guessing no";;
24473           solaris*)        gl_cv_func_printf_directive_ls="guessing no";;
24474           cygwin*)         gl_cv_func_printf_directive_ls="guessing no";;
24475           beos* | haiku*)  gl_cv_func_printf_directive_ls="guessing no";;
24476                            # Guess no on Android.
24477           linux*-android*) gl_cv_func_printf_directive_ls="guessing no";;
24478                            # Guess yes on native Windows.
24479           mingw*)          gl_cv_func_printf_directive_ls="guessing yes";;
24480           *)               gl_cv_func_printf_directive_ls="guessing yes";;
24481         esac
24482
24483else
24484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24485/* end confdefs.h.  */
24486
24487/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24488   <wchar.h>.
24489   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24490   included before <wchar.h>.  */
24491#include <stddef.h>
24492#include <stdio.h>
24493#include <time.h>
24494#include <wchar.h>
24495#include <string.h>
24496int main ()
24497{
24498  int result = 0;
24499  char buf[100];
24500  /* Test whether %ls works at all.
24501     This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
24502     Cygwin 1.5.  */
24503  {
24504    static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
24505    buf[0] = '\0';
24506    if (sprintf (buf, "%ls", wstring) < 0
24507        || strcmp (buf, "abc") != 0)
24508      result |= 1;
24509  }
24510  /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
24511     assertion failure inside libc), but not on OpenBSD 4.0.  */
24512  {
24513    static const wchar_t wstring[] = { 'a', 0 };
24514    buf[0] = '\0';
24515    if (sprintf (buf, "%ls", wstring) < 0
24516        || strcmp (buf, "a") != 0)
24517      result |= 2;
24518  }
24519  /* Test whether precisions in %ls are supported as specified in ISO C 99
24520     section 7.19.6.1:
24521       "If a precision is specified, no more than that many bytes are written
24522        (including shift sequences, if any), and the array shall contain a
24523        null wide character if, to equal the multibyte character sequence
24524        length given by the precision, the function would need to access a
24525        wide character one past the end of the array."
24526     This test fails on Solaris 10.  */
24527  {
24528    static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
24529    buf[0] = '\0';
24530    if (sprintf (buf, "%.2ls", wstring) < 0
24531        || strcmp (buf, "ab") != 0)
24532      result |= 8;
24533  }
24534  return result;
24535}
24536_ACEOF
24537if ac_fn_c_try_run "$LINENO"; then :
24538  gl_cv_func_printf_directive_ls=yes
24539else
24540  gl_cv_func_printf_directive_ls=no
24541fi
24542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24543  conftest.$ac_objext conftest.beam conftest.$ac_ext
24544fi
24545
24546
24547fi
24548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
24549$as_echo "$gl_cv_func_printf_directive_ls" >&6; }
24550
24551
24552
24553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
24554$as_echo_n "checking whether printf supports the grouping flag... " >&6; }
24555if ${gl_cv_func_printf_flag_grouping+:} false; then :
24556  $as_echo_n "(cached) " >&6
24557else
24558
24559      if test "$cross_compiling" = yes; then :
24560
24561         case "$host_os" in
24562           cygwin*)         gl_cv_func_printf_flag_grouping="guessing no";;
24563           netbsd*)         gl_cv_func_printf_flag_grouping="guessing no";;
24564                            # Guess no on Android.
24565           linux*-android*) gl_cv_func_printf_flag_grouping="guessing no";;
24566                            # Guess no on native Windows.
24567           mingw* | pw*)    gl_cv_func_printf_flag_grouping="guessing no";;
24568           *)               gl_cv_func_printf_flag_grouping="guessing yes";;
24569         esac
24570
24571else
24572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24573/* end confdefs.h.  */
24574
24575#include <stdio.h>
24576#include <string.h>
24577static char buf[100];
24578int main ()
24579{
24580  if (sprintf (buf, "%'d %d", 1234567, 99) < 0
24581      || buf[strlen (buf) - 1] != '9')
24582    return 1;
24583  return 0;
24584}
24585_ACEOF
24586if ac_fn_c_try_run "$LINENO"; then :
24587  gl_cv_func_printf_flag_grouping=yes
24588else
24589  gl_cv_func_printf_flag_grouping=no
24590fi
24591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24592  conftest.$ac_objext conftest.beam conftest.$ac_ext
24593fi
24594
24595
24596fi
24597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
24598$as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
24599
24600
24601
24602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
24603$as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
24604if ${gl_cv_func_printf_flag_leftadjust+:} false; then :
24605  $as_echo_n "(cached) " >&6
24606else
24607
24608      if test "$cross_compiling" = yes; then :
24609
24610         case "$host_os" in
24611                            # Guess yes on HP-UX 11.
24612           hpux11*)         gl_cv_func_printf_flag_leftadjust="guessing yes";;
24613                            # Guess no on HP-UX 10 and older.
24614           hpux*)           gl_cv_func_printf_flag_leftadjust="guessing no";;
24615                            # Guess yes on Android.
24616           linux*-android*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
24617                            # Guess yes on native Windows.
24618           mingw*)          gl_cv_func_printf_flag_leftadjust="guessing yes";;
24619                            # Guess yes otherwise.
24620           *)               gl_cv_func_printf_flag_leftadjust="guessing yes";;
24621         esac
24622
24623else
24624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625/* end confdefs.h.  */
24626
24627#include <stdio.h>
24628#include <string.h>
24629static char buf[100];
24630int main ()
24631{
24632  /* Check that a '-' flag is not annihilated by a negative width.  */
24633  if (sprintf (buf, "a%-*sc", -3, "b") < 0
24634      || strcmp (buf, "ab  c") != 0)
24635    return 1;
24636  return 0;
24637}
24638_ACEOF
24639if ac_fn_c_try_run "$LINENO"; then :
24640  gl_cv_func_printf_flag_leftadjust=yes
24641else
24642  gl_cv_func_printf_flag_leftadjust=no
24643fi
24644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24645  conftest.$ac_objext conftest.beam conftest.$ac_ext
24646fi
24647
24648
24649fi
24650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
24651$as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
24652
24653
24654
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
24656$as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
24657if ${gl_cv_func_printf_flag_zero+:} false; then :
24658  $as_echo_n "(cached) " >&6
24659else
24660
24661      if test "$cross_compiling" = yes; then :
24662
24663         case "$host_os" in
24664                            # Guess yes on glibc systems.
24665           *-gnu* | gnu*)   gl_cv_func_printf_flag_zero="guessing yes";;
24666                            # Guess yes on musl systems.
24667           *-musl*)         gl_cv_func_printf_flag_zero="guessing yes";;
24668                            # Guess yes on BeOS.
24669           beos*)           gl_cv_func_printf_flag_zero="guessing yes";;
24670                            # Guess no on Android.
24671           linux*-android*) gl_cv_func_printf_flag_zero="guessing no";;
24672                            # Guess no on native Windows.
24673           mingw*)          gl_cv_func_printf_flag_zero="guessing no";;
24674                            # If we don't know, obey --enable-cross-guesses.
24675           *)               gl_cv_func_printf_flag_zero="$gl_cross_guess_normal";;
24676         esac
24677
24678else
24679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24680/* end confdefs.h.  */
24681
24682#include <stdio.h>
24683#include <string.h>
24684static char buf[100];
24685static double zero = 0.0;
24686int main ()
24687{
24688  if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
24689      || (strcmp (buf, "       inf") != 0
24690          && strcmp (buf, "  infinity") != 0))
24691    return 1;
24692  return 0;
24693}
24694_ACEOF
24695if ac_fn_c_try_run "$LINENO"; then :
24696  gl_cv_func_printf_flag_zero=yes
24697else
24698  gl_cv_func_printf_flag_zero=no
24699fi
24700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24701  conftest.$ac_objext conftest.beam conftest.$ac_ext
24702fi
24703
24704
24705fi
24706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
24707$as_echo "$gl_cv_func_printf_flag_zero" >&6; }
24708
24709
24710
24711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
24712$as_echo_n "checking whether printf supports large precisions... " >&6; }
24713if ${gl_cv_func_printf_precision+:} false; then :
24714  $as_echo_n "(cached) " >&6
24715else
24716
24717      if test "$cross_compiling" = yes; then :
24718
24719         case "$host_os" in
24720           # Guess no only on Solaris, native Windows, and BeOS systems.
24721           solaris*)        gl_cv_func_printf_precision="guessing no" ;;
24722           mingw* | pw*)    gl_cv_func_printf_precision="guessing no" ;;
24723           beos*)           gl_cv_func_printf_precision="guessing no" ;;
24724                            # Guess yes on Android.
24725           linux*-android*) gl_cv_func_printf_precision="guessing yes" ;;
24726           *)               gl_cv_func_printf_precision="guessing yes" ;;
24727         esac
24728
24729else
24730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731/* end confdefs.h.  */
24732
24733#include <stdio.h>
24734#include <string.h>
24735static char buf[5000];
24736int main ()
24737{
24738  int result = 0;
24739#ifdef __BEOS__
24740  /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
24741  return 1;
24742#endif
24743  if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
24744    result |= 1;
24745  if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
24746    result |= 2;
24747  if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
24748      || buf[0] != '1')
24749    result |= 4;
24750  if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
24751      || buf[0] != '1')
24752    result |= 4;
24753  return result;
24754}
24755_ACEOF
24756if ac_fn_c_try_run "$LINENO"; then :
24757  gl_cv_func_printf_precision=yes
24758else
24759  gl_cv_func_printf_precision=no
24760fi
24761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24762  conftest.$ac_objext conftest.beam conftest.$ac_ext
24763fi
24764
24765
24766fi
24767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
24768$as_echo "$gl_cv_func_printf_precision" >&6; }
24769
24770
24771
24772
24773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
24774$as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
24775if ${gl_cv_func_printf_enomem+:} false; then :
24776  $as_echo_n "(cached) " >&6
24777else
24778
24779      gl_cv_func_printf_enomem="guessing no"
24780      if test "$cross_compiling" = no; then
24781        if test $APPLE_UNIVERSAL_BUILD = 0; then
24782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24783/* end confdefs.h.  */
24784
24785
24786#include <stdlib.h>
24787#if defined __MACH__ && defined __APPLE__
24788/* Avoid a crash on Mac OS X.  */
24789#include <mach/mach.h>
24790#include <mach/mach_error.h>
24791#include <mach/thread_status.h>
24792#include <mach/exception.h>
24793#include <mach/task.h>
24794#include <pthread.h>
24795/* The exception port on which our thread listens.  */
24796static mach_port_t our_exception_port;
24797/* The main function of the thread listening for exceptions of type
24798   EXC_BAD_ACCESS.  */
24799static void *
24800mach_exception_thread (void *arg)
24801{
24802  /* Buffer for a message to be received.  */
24803  struct {
24804    mach_msg_header_t head;
24805    mach_msg_body_t msgh_body;
24806    char data1024;
24807  } msg;
24808  mach_msg_return_t retval;
24809  /* Wait for a message on the exception port.  */
24810  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
24811                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
24812  if (retval != MACH_MSG_SUCCESS)
24813    abort ();
24814  exit (1);
24815}
24816static void
24817nocrash_init (void)
24818{
24819  mach_port_t self = mach_task_self ();
24820  /* Allocate a port on which the thread shall listen for exceptions.  */
24821  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
24822      == KERN_SUCCESS) {
24823    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
24824    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
24825                                MACH_MSG_TYPE_MAKE_SEND)
24826        == KERN_SUCCESS) {
24827      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
24828         for us.  */
24829      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
24830      /* Create the thread listening on the exception port.  */
24831      pthread_attr_t attr;
24832      pthread_t thread;
24833      if (pthread_attr_init (&attr) == 0
24834          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
24835          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
24836        pthread_attr_destroy (&attr);
24837        /* Replace the exception port info for these exceptions with our own.
24838           Note that we replace the exception port for the entire task, not only
24839           for a particular thread.  This has the effect that when our exception
24840           port gets the message, the thread specific exception port has already
24841           been asked, and we don't need to bother about it.
24842           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
24843        task_set_exception_ports (self, mask, our_exception_port,
24844                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
24845      }
24846    }
24847  }
24848}
24849#elif defined _WIN32 && ! defined __CYGWIN__
24850/* Avoid a crash on native Windows.  */
24851#define WIN32_LEAN_AND_MEAN
24852#include <windows.h>
24853#include <winerror.h>
24854static LONG WINAPI
24855exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
24856{
24857  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
24858    {
24859    case EXCEPTION_ACCESS_VIOLATION:
24860    case EXCEPTION_IN_PAGE_ERROR:
24861    case EXCEPTION_STACK_OVERFLOW:
24862    case EXCEPTION_GUARD_PAGE:
24863    case EXCEPTION_PRIV_INSTRUCTION:
24864    case EXCEPTION_ILLEGAL_INSTRUCTION:
24865    case EXCEPTION_DATATYPE_MISALIGNMENT:
24866    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
24867    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
24868      exit (1);
24869    }
24870  return EXCEPTION_CONTINUE_SEARCH;
24871}
24872static void
24873nocrash_init (void)
24874{
24875  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
24876}
24877#else
24878/* Avoid a crash on POSIX systems.  */
24879#include <signal.h>
24880#include <unistd.h>
24881/* A POSIX signal handler.  */
24882static void
24883exception_handler (int sig)
24884{
24885  _exit (1);
24886}
24887static void
24888nocrash_init (void)
24889{
24890#ifdef SIGSEGV
24891  signal (SIGSEGV, exception_handler);
24892#endif
24893#ifdef SIGBUS
24894  signal (SIGBUS, exception_handler);
24895#endif
24896}
24897#endif
24898
24899#include <stdio.h>
24900#include <sys/types.h>
24901#include <sys/time.h>
24902#include <sys/resource.h>
24903#include <errno.h>
24904int main()
24905{
24906  struct rlimit limit;
24907  int ret;
24908  nocrash_init ();
24909  /* Some printf implementations allocate temporary space with malloc.  */
24910  /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
24911#ifdef RLIMIT_DATA
24912  if (getrlimit (RLIMIT_DATA, &limit) < 0)
24913    return 77;
24914  if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
24915    limit.rlim_max = 5000000;
24916  limit.rlim_cur = limit.rlim_max;
24917  if (setrlimit (RLIMIT_DATA, &limit) < 0)
24918    return 77;
24919#endif
24920  /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
24921#ifdef RLIMIT_AS
24922  if (getrlimit (RLIMIT_AS, &limit) < 0)
24923    return 77;
24924  if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
24925    limit.rlim_max = 5000000;
24926  limit.rlim_cur = limit.rlim_max;
24927  if (setrlimit (RLIMIT_AS, &limit) < 0)
24928    return 77;
24929#endif
24930  /* Some printf implementations allocate temporary space on the stack.  */
24931#ifdef RLIMIT_STACK
24932  if (getrlimit (RLIMIT_STACK, &limit) < 0)
24933    return 77;
24934  if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
24935    limit.rlim_max = 5000000;
24936  limit.rlim_cur = limit.rlim_max;
24937  if (setrlimit (RLIMIT_STACK, &limit) < 0)
24938    return 77;
24939#endif
24940  ret = printf ("%.5000000f", 1.0);
24941  return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
24942}
24943
24944_ACEOF
24945          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24946  (eval $ac_link) 2>&5
24947  ac_status=$?
24948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24949  test $ac_status = 0; } && test -s conftest$ac_exeext; then
24950            (./conftest 2>&5
24951             result=$?
24952             $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
24953             if test $result != 0 && test $result != 77; then result=1; fi
24954             exit $result
24955            ) >/dev/null 2>/dev/null
24956            case $? in
24957              0) gl_cv_func_printf_enomem="yes" ;;
24958              77) gl_cv_func_printf_enomem="guessing no" ;;
24959              *) gl_cv_func_printf_enomem="no" ;;
24960            esac
24961          else
24962            gl_cv_func_printf_enomem="guessing no"
24963          fi
24964          rm -fr conftest*
24965        else
24966                                        gl_cv_func_printf_enomem="guessing no"
24967        fi
24968      fi
24969      if test "$gl_cv_func_printf_enomem" = "guessing no"; then
24970        case "$host_os" in
24971                           # Guess yes on glibc systems.
24972          *-gnu* | gnu*)   gl_cv_func_printf_enomem="guessing yes";;
24973                           # Guess yes on Solaris.
24974          solaris*)        gl_cv_func_printf_enomem="guessing yes";;
24975                           # Guess yes on AIX.
24976          aix*)            gl_cv_func_printf_enomem="guessing yes";;
24977                           # Guess yes on HP-UX/hppa.
24978          hpux*)           case "$host_cpu" in
24979                             hppa*) gl_cv_func_printf_enomem="guessing yes";;
24980                             *)     gl_cv_func_printf_enomem="guessing no";;
24981                           esac
24982                           ;;
24983                           # Guess yes on IRIX.
24984          irix*)           gl_cv_func_printf_enomem="guessing yes";;
24985                           # Guess yes on OSF/1.
24986          osf*)            gl_cv_func_printf_enomem="guessing yes";;
24987                           # Guess yes on BeOS.
24988          beos*)           gl_cv_func_printf_enomem="guessing yes";;
24989                           # Guess yes on Haiku.
24990          haiku*)          gl_cv_func_printf_enomem="guessing yes";;
24991                           # Guess no on Android.
24992          linux*-android*) gl_cv_func_printf_enomem="guessing no";;
24993                           # If we don't know, obey --enable-cross-guesses.
24994          *)               gl_cv_func_printf_enomem="$gl_cross_guess_normal";;
24995        esac
24996      fi
24997
24998fi
24999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
25000$as_echo "$gl_cv_func_printf_enomem" >&6; }
25001
25002
25003
25004  case "$gl_cv_func_printf_long_double" in
25005    *yes)
25006      ;;
25007    *)
25008
25009$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25010
25011      ;;
25012  esac
25013
25014
25015
25016
25017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
25018$as_echo_n "checking for wchar_t... " >&6; }
25019if ${gt_cv_c_wchar_t+:} false; then :
25020  $as_echo_n "(cached) " >&6
25021else
25022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25023/* end confdefs.h.  */
25024#include <stddef.h>
25025            wchar_t foo = (wchar_t)'\0';
25026int
25027main ()
25028{
25029
25030  ;
25031  return 0;
25032}
25033_ACEOF
25034if ac_fn_c_try_compile "$LINENO"; then :
25035  gt_cv_c_wchar_t=yes
25036else
25037  gt_cv_c_wchar_t=no
25038fi
25039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25040fi
25041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
25042$as_echo "$gt_cv_c_wchar_t" >&6; }
25043  if test $gt_cv_c_wchar_t = yes; then
25044
25045$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
25046
25047  fi
25048
25049
25050
25051
25052
25053  if test $ac_cv_header_features_h = yes; then
25054    HAVE_FEATURES_H=1
25055  else
25056    HAVE_FEATURES_H=0
25057  fi
25058
25059
25060
25061
25062
25063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
25064$as_echo_n "checking for intmax_t... " >&6; }
25065if ${gt_cv_c_intmax_t+:} false; then :
25066  $as_echo_n "(cached) " >&6
25067else
25068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25069/* end confdefs.h.  */
25070
25071#include <stddef.h>
25072#include <stdlib.h>
25073#if HAVE_STDINT_H_WITH_UINTMAX
25074#include <stdint.h>
25075#endif
25076#if HAVE_INTTYPES_H_WITH_UINTMAX
25077#include <inttypes.h>
25078#endif
25079
25080int
25081main ()
25082{
25083intmax_t x = -1; return !x;
25084  ;
25085  return 0;
25086}
25087_ACEOF
25088if ac_fn_c_try_compile "$LINENO"; then :
25089  gt_cv_c_intmax_t=yes
25090else
25091  gt_cv_c_intmax_t=no
25092fi
25093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094fi
25095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
25096$as_echo "$gt_cv_c_intmax_t" >&6; }
25097  if test $gt_cv_c_intmax_t = yes; then
25098
25099$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
25100
25101  else
25102
25103cat >>confdefs.h <<_ACEOF
25104#define intmax_t long long
25105_ACEOF
25106
25107  fi
25108
25109
25110
25111
25112
25113  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
25114do :
25115  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25116ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25117if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25118  cat >>confdefs.h <<_ACEOF
25119#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25120_ACEOF
25121
25122fi
25123done
25124
25125      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
25126"
25127if test "x$ac_cv_have_decl__snprintf" = xyes; then :
25128  ac_have_decl=1
25129else
25130  ac_have_decl=0
25131fi
25132
25133cat >>confdefs.h <<_ACEOF
25134#define HAVE_DECL__SNPRINTF $ac_have_decl
25135_ACEOF
25136
25137
25138
25139  case "$gl_cv_func_snprintf_retval_c99" in
25140    *yes)
25141
25142$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
25143
25144      ;;
25145  esac
25146
25147
25148
25149
25150
25151
25152  if test $ac_cv_header_sys_socket_h != yes; then
25153                    for ac_header in winsock2.h
25154do :
25155  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25156if test "x$ac_cv_header_winsock2_h" = xyes; then :
25157  cat >>confdefs.h <<_ACEOF
25158#define HAVE_WINSOCK2_H 1
25159_ACEOF
25160
25161fi
25162
25163done
25164
25165  fi
25166  if test "$ac_cv_header_winsock2_h" = yes; then
25167    HAVE_WINSOCK2_H=1
25168    UNISTD_H_HAVE_WINSOCK2_H=1
25169    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25170  else
25171    HAVE_WINSOCK2_H=0
25172  fi
25173
25174   LIBSOCKET=
25175  if test $HAVE_WINSOCK2_H = 1; then
25176        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
25177$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
25178if ${gl_cv_func_wsastartup+:} false; then :
25179  $as_echo_n "(cached) " >&6
25180else
25181
25182      gl_save_LIBS="$LIBS"
25183      LIBS="$LIBS -lws2_32"
25184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25185/* end confdefs.h.  */
25186
25187#ifdef HAVE_WINSOCK2_H
25188# include <winsock2.h>
25189#endif
25190int
25191main ()
25192{
25193
25194          WORD wVersionRequested = MAKEWORD(1, 1);
25195          WSADATA wsaData;
25196          int err = WSAStartup(wVersionRequested, &wsaData);
25197          WSACleanup ();
25198  ;
25199  return 0;
25200}
25201_ACEOF
25202if ac_fn_c_try_link "$LINENO"; then :
25203  gl_cv_func_wsastartup=yes
25204else
25205  gl_cv_func_wsastartup=no
25206fi
25207rm -f core conftest.err conftest.$ac_objext \
25208    conftest$ac_exeext conftest.$ac_ext
25209      LIBS="$gl_save_LIBS"
25210
25211fi
25212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
25213$as_echo "$gl_cv_func_wsastartup" >&6; }
25214    if test "$gl_cv_func_wsastartup" = "yes"; then
25215
25216$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
25217
25218      LIBSOCKET='-lws2_32'
25219    fi
25220  else
25221                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
25222$as_echo_n "checking for library containing setsockopt... " >&6; }
25223if ${gl_cv_lib_socket+:} false; then :
25224  $as_echo_n "(cached) " >&6
25225else
25226
25227      gl_cv_lib_socket=
25228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229/* end confdefs.h.  */
25230extern
25231#ifdef __cplusplus
25232"C"
25233#endif
25234char setsockopt();
25235int
25236main ()
25237{
25238setsockopt();
25239  ;
25240  return 0;
25241}
25242_ACEOF
25243if ac_fn_c_try_link "$LINENO"; then :
25244
25245else
25246  gl_save_LIBS="$LIBS"
25247         LIBS="$gl_save_LIBS -lsocket"
25248         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25249/* end confdefs.h.  */
25250extern
25251#ifdef __cplusplus
25252"C"
25253#endif
25254char setsockopt();
25255int
25256main ()
25257{
25258setsockopt();
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263if ac_fn_c_try_link "$LINENO"; then :
25264  gl_cv_lib_socket="-lsocket"
25265fi
25266rm -f core conftest.err conftest.$ac_objext \
25267    conftest$ac_exeext conftest.$ac_ext
25268         if test -z "$gl_cv_lib_socket"; then
25269           LIBS="$gl_save_LIBS -lnetwork"
25270           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271/* end confdefs.h.  */
25272extern
25273#ifdef __cplusplus
25274"C"
25275#endif
25276char setsockopt();
25277int
25278main ()
25279{
25280setsockopt();
25281  ;
25282  return 0;
25283}
25284_ACEOF
25285if ac_fn_c_try_link "$LINENO"; then :
25286  gl_cv_lib_socket="-lnetwork"
25287fi
25288rm -f core conftest.err conftest.$ac_objext \
25289    conftest$ac_exeext conftest.$ac_ext
25290           if test -z "$gl_cv_lib_socket"; then
25291             LIBS="$gl_save_LIBS -lnet"
25292             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25293/* end confdefs.h.  */
25294extern
25295#ifdef __cplusplus
25296"C"
25297#endif
25298char setsockopt();
25299int
25300main ()
25301{
25302setsockopt();
25303  ;
25304  return 0;
25305}
25306_ACEOF
25307if ac_fn_c_try_link "$LINENO"; then :
25308  gl_cv_lib_socket="-lnet"
25309fi
25310rm -f core conftest.err conftest.$ac_objext \
25311    conftest$ac_exeext conftest.$ac_ext
25312           fi
25313         fi
25314         LIBS="$gl_save_LIBS"
25315
25316fi
25317rm -f core conftest.err conftest.$ac_objext \
25318    conftest$ac_exeext conftest.$ac_ext
25319      if test -z "$gl_cv_lib_socket"; then
25320        gl_cv_lib_socket="none needed"
25321      fi
25322
25323fi
25324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
25325$as_echo "$gl_cv_lib_socket" >&6; }
25326    if test "$gl_cv_lib_socket" != "none needed"; then
25327      LIBSOCKET="$gl_cv_lib_socket"
25328    fi
25329  fi
25330
25331
25332
25333
25334
25335
25336  :
25337
25338
25339
25340   if test $ac_cv_header_sys_socket_h = no; then
25341                         for ac_header in ws2tcpip.h
25342do :
25343  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
25344if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
25345  cat >>confdefs.h <<_ACEOF
25346#define HAVE_WS2TCPIP_H 1
25347_ACEOF
25348
25349fi
25350
25351done
25352
25353   fi
25354
25355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25356$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25357if ${ac_cv_header_stdbool_h+:} false; then :
25358  $as_echo_n "(cached) " >&6
25359else
25360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361/* end confdefs.h.  */
25362
25363             #include <stdbool.h>
25364
25365             #ifdef __cplusplus
25366              typedef bool Bool;
25367             #else
25368              typedef _Bool Bool;
25369              #ifndef bool
25370               "error: bool is not defined"
25371              #endif
25372              #ifndef false
25373               "error: false is not defined"
25374              #endif
25375              #if false
25376               "error: false is not 0"
25377              #endif
25378              #ifndef true
25379               "error: true is not defined"
25380              #endif
25381              #if true != 1
25382               "error: true is not 1"
25383              #endif
25384             #endif
25385
25386             #ifndef __bool_true_false_are_defined
25387              "error: __bool_true_false_are_defined is not defined"
25388             #endif
25389
25390             struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
25391
25392             char a[true == 1 ? 1 : -1];
25393             char b[false == 0 ? 1 : -1];
25394             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25395             char d[(bool) 0.5 == true ? 1 : -1];
25396             /* See body of main program for 'e'.  */
25397             char f[(Bool) 0.0 == false ? 1 : -1];
25398             char g[true];
25399             char h[sizeof (Bool)];
25400             char i[sizeof s.t];
25401             enum { j = false, k = true, l = false * true, m = true * 256 };
25402             /* The following fails for
25403                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25404             Bool n[m];
25405             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25406             char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25407             /* Catch a bug in an HP-UX C compiler.  See
25408                https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25409                https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
25410              */
25411             Bool q = true;
25412             Bool *pq = &q;
25413             bool *qq = &q;
25414
25415int
25416main ()
25417{
25418
25419             bool e = &s;
25420             *pq |= q; *pq |= ! q;
25421             *qq |= q; *qq |= ! q;
25422             /* Refer to every declared value, to avoid compiler optimizations.  */
25423             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25424                     + !m + !n + !o + !p + !q + !pq + !qq);
25425
25426  ;
25427  return 0;
25428}
25429_ACEOF
25430if ac_fn_c_try_compile "$LINENO"; then :
25431  ac_cv_header_stdbool_h=yes
25432else
25433  ac_cv_header_stdbool_h=no
25434fi
25435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436fi
25437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25438$as_echo "$ac_cv_header_stdbool_h" >&6; }
25439   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25440if test "x$ac_cv_type__Bool" = xyes; then :
25441
25442cat >>confdefs.h <<_ACEOF
25443#define HAVE__BOOL 1
25444_ACEOF
25445
25446
25447fi
25448
25449
25450
25451    REPLACE_NULL=0;
25452  HAVE_MAX_ALIGN_T=1;
25453  HAVE_WCHAR_T=1;
25454
25455
25456     REPLACE_STRERROR_0=0
25457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
25458$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
25459if ${gl_cv_func_strerror_0_works+:} false; then :
25460  $as_echo_n "(cached) " >&6
25461else
25462  if test "$cross_compiling" = yes; then :
25463  case "$host_os" in
25464                        # Guess yes on glibc systems.
25465         *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
25466                        # Guess yes on musl systems.
25467         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
25468                        # Guess yes on native Windows.
25469         mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
25470                        # If we don't know, obey --enable-cross-guesses.
25471         *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
25472       esac
25473
25474else
25475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25476/* end confdefs.h.  */
25477#include <string.h>
25478           #include <errno.h>
25479
25480int
25481main ()
25482{
25483int result = 0;
25484           char *str;
25485           errno = 0;
25486           str = strerror (0);
25487           if (!*str) result |= 1;
25488           if (errno) result |= 2;
25489           if (strstr (str, "nknown") || strstr (str, "ndefined"))
25490             result |= 4;
25491           return result;
25492  ;
25493  return 0;
25494}
25495_ACEOF
25496if ac_fn_c_try_run "$LINENO"; then :
25497  gl_cv_func_strerror_0_works=yes
25498else
25499  gl_cv_func_strerror_0_works=no
25500fi
25501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25502  conftest.$ac_objext conftest.beam conftest.$ac_ext
25503fi
25504
25505
25506fi
25507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
25508$as_echo "$gl_cv_func_strerror_0_works" >&6; }
25509  case "$gl_cv_func_strerror_0_works" in
25510    *yes) ;;
25511    *)
25512      REPLACE_STRERROR_0=1
25513
25514$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
25515
25516      ;;
25517  esac
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529     if test $gl_cv_have_include_next = yes; then
25530       gl_cv_next_string_h='<'string.h'>'
25531     else
25532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
25533$as_echo_n "checking absolute name of <string.h>... " >&6; }
25534if ${gl_cv_next_string_h+:} false; then :
25535  $as_echo_n "(cached) " >&6
25536else
25537
25538
25539
25540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541/* end confdefs.h.  */
25542#include <string.h>
25543_ACEOF
25544                case "$host_os" in
25545    aix*) gl_absname_cpp="$ac_cpp -C" ;;
25546    *)    gl_absname_cpp="$ac_cpp" ;;
25547  esac
25548
25549  case "$host_os" in
25550    mingw*)
25551                                          gl_dirsep_regex='[/\\]'
25552      ;;
25553    *)
25554      gl_dirsep_regex='\/'
25555      ;;
25556  esac
25557      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25558  gl_header_literal_regex=`echo 'string.h' \
25559                           | sed -e "$gl_make_literal_regex_sed"`
25560  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25561      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25562      s|^/[^/]|//&|
25563      p
25564      q
25565    }'
25566
25567        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25568  sed -n "$gl_absolute_header_sed"`
25569
25570           gl_header=$gl_cv_absolute_string_h
25571           gl_cv_next_string_h='"'$gl_header'"'
25572
25573
25574fi
25575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
25576$as_echo "$gl_cv_next_string_h" >&6; }
25577     fi
25578     NEXT_STRING_H=$gl_cv_next_string_h
25579
25580     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25581       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25582       gl_next_as_first_directive='<'string.h'>'
25583     else
25584       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25585       gl_next_as_first_directive=$gl_cv_next_string_h
25586     fi
25587     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600  GNULIB_SOCKET=0;
25601  GNULIB_CONNECT=0;
25602  GNULIB_ACCEPT=0;
25603  GNULIB_BIND=0;
25604  GNULIB_GETPEERNAME=0;
25605  GNULIB_GETSOCKNAME=0;
25606  GNULIB_GETSOCKOPT=0;
25607  GNULIB_LISTEN=0;
25608  GNULIB_RECV=0;
25609  GNULIB_SEND=0;
25610  GNULIB_RECVFROM=0;
25611  GNULIB_SENDTO=0;
25612  GNULIB_SETSOCKOPT=0;
25613  GNULIB_SHUTDOWN=0;
25614  GNULIB_ACCEPT4=0;
25615  HAVE_STRUCT_SOCKADDR_STORAGE=1;
25616  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
25617
25618  HAVE_SA_FAMILY_T=1;
25619  HAVE_ACCEPT4=1;
25620
25621
25622
25623
25624
25625        case "$host_os" in
25626    osf*)
25627
25628$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
25629
25630      ;;
25631  esac
25632
25633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
25634$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
25635if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
25636  $as_echo_n "(cached) " >&6
25637else
25638
25639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25640/* end confdefs.h.  */
25641#include <sys/socket.h>
25642int
25643main ()
25644{
25645
25646  ;
25647  return 0;
25648}
25649_ACEOF
25650if ac_fn_c_try_compile "$LINENO"; then :
25651  gl_cv_header_sys_socket_h_selfcontained=yes
25652else
25653  gl_cv_header_sys_socket_h_selfcontained=no
25654fi
25655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656
25657fi
25658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
25659$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
25660  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
25661            for ac_func in shutdown
25662do :
25663  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
25664if test "x$ac_cv_func_shutdown" = xyes; then :
25665  cat >>confdefs.h <<_ACEOF
25666#define HAVE_SHUTDOWN 1
25667_ACEOF
25668
25669fi
25670done
25671
25672    if test $ac_cv_func_shutdown = yes; then
25673      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
25674$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
25675if ${gl_cv_header_sys_socket_h_shut+:} false; then :
25676  $as_echo_n "(cached) " >&6
25677else
25678
25679          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680/* end confdefs.h.  */
25681#include <sys/socket.h>
25682int
25683main ()
25684{
25685int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
25686  ;
25687  return 0;
25688}
25689_ACEOF
25690if ac_fn_c_try_compile "$LINENO"; then :
25691  gl_cv_header_sys_socket_h_shut=yes
25692else
25693  gl_cv_header_sys_socket_h_shut=no
25694fi
25695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696
25697fi
25698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
25699$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
25700      if test $gl_cv_header_sys_socket_h_shut = no; then
25701        SYS_SOCKET_H='sys/socket.h'
25702      fi
25703    fi
25704  fi
25705  # We need to check for ws2tcpip.h now.
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717     if test $gl_cv_have_include_next = yes; then
25718       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
25719     else
25720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
25721$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
25722if ${gl_cv_next_sys_socket_h+:} false; then :
25723  $as_echo_n "(cached) " >&6
25724else
25725
25726             if test $ac_cv_header_sys_socket_h = yes; then
25727
25728
25729
25730
25731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25732/* end confdefs.h.  */
25733#include <sys/socket.h>
25734_ACEOF
25735                case "$host_os" in
25736    aix*) gl_absname_cpp="$ac_cpp -C" ;;
25737    *)    gl_absname_cpp="$ac_cpp" ;;
25738  esac
25739
25740  case "$host_os" in
25741    mingw*)
25742                                          gl_dirsep_regex='[/\\]'
25743      ;;
25744    *)
25745      gl_dirsep_regex='\/'
25746      ;;
25747  esac
25748      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25749  gl_header_literal_regex=`echo 'sys/socket.h' \
25750                           | sed -e "$gl_make_literal_regex_sed"`
25751  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25752      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25753      s|^/[^/]|//&|
25754      p
25755      q
25756    }'
25757
25758        gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25759  sed -n "$gl_absolute_header_sed"`
25760
25761           gl_header=$gl_cv_absolute_sys_socket_h
25762           gl_cv_next_sys_socket_h='"'$gl_header'"'
25763          else
25764               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
25765             fi
25766
25767
25768fi
25769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
25770$as_echo "$gl_cv_next_sys_socket_h" >&6; }
25771     fi
25772     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
25773
25774     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25775       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25776       gl_next_as_first_directive='<'sys/socket.h'>'
25777     else
25778       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25779       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
25780     fi
25781     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
25782
25783
25784
25785
25786  if test $ac_cv_header_sys_socket_h = yes; then
25787    HAVE_SYS_SOCKET_H=1
25788  else
25789    HAVE_SYS_SOCKET_H=0
25790  fi
25791
25792
25793
25794  if test $ac_cv_header_sys_socket_h = yes; then
25795    HAVE_WS2TCPIP_H=0
25796  else
25797    if test $ac_cv_header_ws2tcpip_h = yes; then
25798      HAVE_WS2TCPIP_H=1
25799    else
25800      HAVE_WS2TCPIP_H=0
25801    fi
25802  fi
25803
25804
25805
25806  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
25807  /* sys/types.h is not needed according to POSIX, but the
25808     sys/socket.h in i386-unknown-freebsd4.10 and
25809     powerpc-apple-darwin5.5 required it. */
25810#include <sys/types.h>
25811#ifdef HAVE_SYS_SOCKET_H
25812#include <sys/socket.h>
25813#endif
25814#ifdef HAVE_WS2TCPIP_H
25815#include <ws2tcpip.h>
25816#endif
25817
25818"
25819if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
25820
25821cat >>confdefs.h <<_ACEOF
25822#define HAVE_STRUCT_SOCKADDR_STORAGE 1
25823_ACEOF
25824
25825
25826fi
25827ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
25828  /* sys/types.h is not needed according to POSIX, but the
25829     sys/socket.h in i386-unknown-freebsd4.10 and
25830     powerpc-apple-darwin5.5 required it. */
25831#include <sys/types.h>
25832#ifdef HAVE_SYS_SOCKET_H
25833#include <sys/socket.h>
25834#endif
25835#ifdef HAVE_WS2TCPIP_H
25836#include <ws2tcpip.h>
25837#endif
25838
25839"
25840if test "x$ac_cv_type_sa_family_t" = xyes; then :
25841
25842cat >>confdefs.h <<_ACEOF
25843#define HAVE_SA_FAMILY_T 1
25844_ACEOF
25845
25846
25847fi
25848
25849  if test $ac_cv_type_struct_sockaddr_storage = no; then
25850    HAVE_STRUCT_SOCKADDR_STORAGE=0
25851  fi
25852  if test $ac_cv_type_sa_family_t = no; then
25853    HAVE_SA_FAMILY_T=0
25854  fi
25855  if test $ac_cv_type_struct_sockaddr_storage != no; then
25856    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
25857       #ifdef HAVE_SYS_SOCKET_H
25858       #include <sys/socket.h>
25859       #endif
25860       #ifdef HAVE_WS2TCPIP_H
25861       #include <ws2tcpip.h>
25862       #endif
25863
25864"
25865if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
25866
25867cat >>confdefs.h <<_ACEOF
25868#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
25869_ACEOF
25870
25871
25872else
25873  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
25874fi
25875
25876  fi
25877  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
25878     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
25879    SYS_SOCKET_H='sys/socket.h'
25880  fi
25881
25882
25883
25884
25885  if test $ac_cv_header_sys_socket_h != yes; then
25886                    for ac_header in winsock2.h
25887do :
25888  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25889if test "x$ac_cv_header_winsock2_h" = xyes; then :
25890  cat >>confdefs.h <<_ACEOF
25891#define HAVE_WINSOCK2_H 1
25892_ACEOF
25893
25894fi
25895
25896done
25897
25898  fi
25899  if test "$ac_cv_header_winsock2_h" = yes; then
25900    HAVE_WINSOCK2_H=1
25901    UNISTD_H_HAVE_WINSOCK2_H=1
25902    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25903  else
25904    HAVE_WINSOCK2_H=0
25905  fi
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925$as_echo "#define _USE_STD_STAT 1" >>confdefs.h
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937     if test $gl_cv_have_include_next = yes; then
25938       gl_cv_next_sys_types_h='<'sys/types.h'>'
25939     else
25940       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
25941$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
25942if ${gl_cv_next_sys_types_h+:} false; then :
25943  $as_echo_n "(cached) " >&6
25944else
25945
25946
25947
25948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949/* end confdefs.h.  */
25950#include <sys/types.h>
25951_ACEOF
25952                case "$host_os" in
25953    aix*) gl_absname_cpp="$ac_cpp -C" ;;
25954    *)    gl_absname_cpp="$ac_cpp" ;;
25955  esac
25956
25957  case "$host_os" in
25958    mingw*)
25959                                          gl_dirsep_regex='[/\\]'
25960      ;;
25961    *)
25962      gl_dirsep_regex='\/'
25963      ;;
25964  esac
25965      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25966  gl_header_literal_regex=`echo 'sys/types.h' \
25967                           | sed -e "$gl_make_literal_regex_sed"`
25968  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25969      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25970      s|^/[^/]|//&|
25971      p
25972      q
25973    }'
25974
25975        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25976  sed -n "$gl_absolute_header_sed"`
25977
25978           gl_header=$gl_cv_absolute_sys_types_h
25979           gl_cv_next_sys_types_h='"'$gl_header'"'
25980
25981
25982fi
25983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
25984$as_echo "$gl_cv_next_sys_types_h" >&6; }
25985     fi
25986     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
25987
25988     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25989       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25990       gl_next_as_first_directive='<'sys/types.h'>'
25991     else
25992       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25993       gl_next_as_first_directive=$gl_cv_next_sys_types_h
25994     fi
25995     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008    WINDOWS_STAT_INODES=0
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5
26022$as_echo_n "checking whether curses libraries may be used... " >&6; }
26023  # Check whether --enable-curses was given.
26024if test "${enable_curses+set}" = set; then :
26025  enableval=$enable_curses; gl_curses_allowed="$enableval"
26026else
26027  gl_curses_allowed=yes
26028fi
26029
26030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5
26031$as_echo "$gl_curses_allowed" >&6; }
26032
26033
26034
26035
26036
26037
26038
26039
26040  if test "$gl_curses_allowed" != no; then
26041
26042
26043
26044
26045
26046
26047
26048    use_additional=yes
26049
26050  acl_save_prefix="$prefix"
26051  prefix="$acl_final_prefix"
26052  acl_save_exec_prefix="$exec_prefix"
26053  exec_prefix="$acl_final_exec_prefix"
26054
26055    eval additional_includedir=\"$includedir\"
26056    eval additional_libdir=\"$libdir\"
26057    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
26058    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
26059
26060  exec_prefix="$acl_save_exec_prefix"
26061  prefix="$acl_save_prefix"
26062
26063
26064# Check whether --with-libncurses-prefix was given.
26065if test "${with_libncurses_prefix+set}" = set; then :
26066  withval=$with_libncurses_prefix;
26067    if test "X$withval" = "Xno"; then
26068      use_additional=no
26069    else
26070      if test "X$withval" = "X"; then
26071
26072  acl_save_prefix="$prefix"
26073  prefix="$acl_final_prefix"
26074  acl_save_exec_prefix="$exec_prefix"
26075  exec_prefix="$acl_final_exec_prefix"
26076
26077          eval additional_includedir=\"$includedir\"
26078          eval additional_libdir=\"$libdir\"
26079          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
26080          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
26081
26082  exec_prefix="$acl_save_exec_prefix"
26083  prefix="$acl_save_prefix"
26084
26085      else
26086        additional_includedir="$withval/include"
26087        additional_libdir="$withval/$acl_libdirstem"
26088        additional_libdir2="$withval/$acl_libdirstem2"
26089        additional_libdir3="$withval/$acl_libdirstem3"
26090      fi
26091    fi
26092
26093fi
26094
26095  if test "X$additional_libdir2" = "X$additional_libdir"; then
26096    additional_libdir2=
26097  fi
26098  if test "X$additional_libdir3" = "X$additional_libdir"; then
26099    additional_libdir3=
26100  fi
26101      LIBNCURSES=
26102  LTLIBNCURSES=
26103  INCNCURSES=
26104  LIBNCURSES_PREFIX=
26105      HAVE_LIBNCURSES=
26106  rpathdirs=
26107  ltrpathdirs=
26108  names_already_handled=
26109  names_next_round='ncurses '
26110  while test -n "$names_next_round"; do
26111    names_this_round="$names_next_round"
26112    names_next_round=
26113    for name in $names_this_round; do
26114      already_handled=
26115      for n in $names_already_handled; do
26116        if test "$n" = "$name"; then
26117          already_handled=yes
26118          break
26119        fi
26120      done
26121      if test -z "$already_handled"; then
26122        names_already_handled="$names_already_handled $name"
26123                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
26124        eval value=\"\$HAVE_LIB$uppername\"
26125        if test -n "$value"; then
26126          if test "$value" = yes; then
26127            eval value=\"\$LIB$uppername\"
26128            test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
26129            eval value=\"\$LTLIB$uppername\"
26130            test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
26131          else
26132                                    :
26133          fi
26134        else
26135                              found_dir=
26136          found_la=
26137          found_so=
26138          found_a=
26139          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26140          if test -n "$acl_shlibext"; then
26141            shrext=".$acl_shlibext"             # typically: shrext=.so
26142          else
26143            shrext=
26144          fi
26145          if test $use_additional = yes; then
26146            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
26147              if test "X$found_dir" = "X"; then
26148                eval dir=\$$additional_libdir_variable
26149                if test -n "$dir"; then
26150                                                      if test -n "$acl_shlibext"; then
26151                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
26152                      found_dir="$dir"
26153                      found_so="$dir/$libname$shrext"
26154                    else
26155                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26156                        ver=`(cd "$dir" && \
26157                              for f in "$libname$shrext".*; do echo "$f"; done \
26158                              | sed -e "s,^$libname$shrext\\\\.,," \
26159                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26160                              | sed 1q ) 2>/dev/null`
26161                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
26162                          found_dir="$dir"
26163                          found_so="$dir/$libname$shrext.$ver"
26164                        fi
26165                      else
26166                        eval library_names=\"$acl_library_names_spec\"
26167                        for f in $library_names; do
26168                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
26169                            found_dir="$dir"
26170                            found_so="$dir/$f"
26171                            break
26172                          fi
26173                        done
26174                      fi
26175                    fi
26176                  fi
26177                                    if test "X$found_dir" = "X"; then
26178                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
26179                      found_dir="$dir"
26180                      found_a="$dir/$libname.$acl_libext"
26181                    fi
26182                  fi
26183                  if test "X$found_dir" != "X"; then
26184                    if test -f "$dir/$libname.la"; then
26185                      found_la="$dir/$libname.la"
26186                    fi
26187                  fi
26188                fi
26189              fi
26190            done
26191          fi
26192          if test "X$found_dir" = "X"; then
26193            for x in $LDFLAGS $LTLIBNCURSES; do
26194
26195  acl_save_prefix="$prefix"
26196  prefix="$acl_final_prefix"
26197  acl_save_exec_prefix="$exec_prefix"
26198  exec_prefix="$acl_final_exec_prefix"
26199  eval x=\"$x\"
26200  exec_prefix="$acl_save_exec_prefix"
26201  prefix="$acl_save_prefix"
26202
26203              case "$x" in
26204                -L*)
26205                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26206                                    if test -n "$acl_shlibext"; then
26207                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
26208                      found_dir="$dir"
26209                      found_so="$dir/$libname$shrext"
26210                    else
26211                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26212                        ver=`(cd "$dir" && \
26213                              for f in "$libname$shrext".*; do echo "$f"; done \
26214                              | sed -e "s,^$libname$shrext\\\\.,," \
26215                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26216                              | sed 1q ) 2>/dev/null`
26217                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
26218                          found_dir="$dir"
26219                          found_so="$dir/$libname$shrext.$ver"
26220                        fi
26221                      else
26222                        eval library_names=\"$acl_library_names_spec\"
26223                        for f in $library_names; do
26224                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
26225                            found_dir="$dir"
26226                            found_so="$dir/$f"
26227                            break
26228                          fi
26229                        done
26230                      fi
26231                    fi
26232                  fi
26233                                    if test "X$found_dir" = "X"; then
26234                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
26235                      found_dir="$dir"
26236                      found_a="$dir/$libname.$acl_libext"
26237                    fi
26238                  fi
26239                  if test "X$found_dir" != "X"; then
26240                    if test -f "$dir/$libname.la"; then
26241                      found_la="$dir/$libname.la"
26242                    fi
26243                  fi
26244                  ;;
26245              esac
26246              if test "X$found_dir" != "X"; then
26247                break
26248              fi
26249            done
26250          fi
26251          if test "X$found_dir" != "X"; then
26252                        LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
26253            if test "X$found_so" != "X"; then
26254                                                        if test "$enable_rpath" = no \
26255                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
26256                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
26257                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
26258                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
26259              else
26260                                                                                haveit=
26261                for x in $ltrpathdirs; do
26262                  if test "X$x" = "X$found_dir"; then
26263                    haveit=yes
26264                    break
26265                  fi
26266                done
26267                if test -z "$haveit"; then
26268                  ltrpathdirs="$ltrpathdirs $found_dir"
26269                fi
26270                                if test "$acl_hardcode_direct" = yes; then
26271                                                      LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
26272                else
26273                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26274                                                            LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
26275                                                            haveit=
26276                    for x in $rpathdirs; do
26277                      if test "X$x" = "X$found_dir"; then
26278                        haveit=yes
26279                        break
26280                      fi
26281                    done
26282                    if test -z "$haveit"; then
26283                      rpathdirs="$rpathdirs $found_dir"
26284                    fi
26285                  else
26286                                                                                haveit=
26287                    for x in $LDFLAGS $LIBNCURSES; do
26288
26289  acl_save_prefix="$prefix"
26290  prefix="$acl_final_prefix"
26291  acl_save_exec_prefix="$exec_prefix"
26292  exec_prefix="$acl_final_exec_prefix"
26293  eval x=\"$x\"
26294  exec_prefix="$acl_save_exec_prefix"
26295  prefix="$acl_save_prefix"
26296
26297                      if test "X$x" = "X-L$found_dir"; then
26298                        haveit=yes
26299                        break
26300                      fi
26301                    done
26302                    if test -z "$haveit"; then
26303                      LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
26304                    fi
26305                    if test "$acl_hardcode_minus_L" != no; then
26306                                                                                        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
26307                    else
26308                                                                                                                                                                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
26309                    fi
26310                  fi
26311                fi
26312              fi
26313            else
26314              if test "X$found_a" != "X"; then
26315                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
26316              else
26317                                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
26318              fi
26319            fi
26320                        additional_includedir=
26321            case "$found_dir" in
26322              */$acl_libdirstem | */$acl_libdirstem/)
26323                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26324                if test "$name" = 'ncurses'; then
26325                  LIBNCURSES_PREFIX="$basedir"
26326                fi
26327                additional_includedir="$basedir/include"
26328                ;;
26329              */$acl_libdirstem2 | */$acl_libdirstem2/)
26330                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
26331                if test "$name" = 'ncurses'; then
26332                  LIBNCURSES_PREFIX="$basedir"
26333                fi
26334                additional_includedir="$basedir/include"
26335                ;;
26336              */$acl_libdirstem3 | */$acl_libdirstem3/)
26337                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
26338                if test "$name" = 'ncurses'; then
26339                  LIBNCURSES_PREFIX="$basedir"
26340                fi
26341                additional_includedir="$basedir/include"
26342                ;;
26343            esac
26344            if test "X$additional_includedir" != "X"; then
26345                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26346                haveit=
26347                if test "X$additional_includedir" = "X/usr/local/include"; then
26348                  if test -n "$GCC"; then
26349                    case $host_os in
26350                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26351                    esac
26352                  fi
26353                fi
26354                if test -z "$haveit"; then
26355                  for x in $CPPFLAGS $INCNCURSES; do
26356
26357  acl_save_prefix="$prefix"
26358  prefix="$acl_final_prefix"
26359  acl_save_exec_prefix="$exec_prefix"
26360  exec_prefix="$acl_final_exec_prefix"
26361  eval x=\"$x\"
26362  exec_prefix="$acl_save_exec_prefix"
26363  prefix="$acl_save_prefix"
26364
26365                    if test "X$x" = "X-I$additional_includedir"; then
26366                      haveit=yes
26367                      break
26368                    fi
26369                  done
26370                  if test -z "$haveit"; then
26371                    if test -d "$additional_includedir"; then
26372                                            INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
26373                    fi
26374                  fi
26375                fi
26376              fi
26377            fi
26378                        if test -n "$found_la"; then
26379                                                        save_libdir="$libdir"
26380              case "$found_la" in
26381                */* | *\\*) . "$found_la" ;;
26382                *) . "./$found_la" ;;
26383              esac
26384              libdir="$save_libdir"
26385                            for dep in $dependency_libs; do
26386                case "$dep" in
26387                  -L*)
26388                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26389                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
26390                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
26391                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
26392                      haveit=
26393                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
26394                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
26395                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
26396                        if test -n "$GCC"; then
26397                          case $host_os in
26398                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26399                          esac
26400                        fi
26401                      fi
26402                      if test -z "$haveit"; then
26403                        haveit=
26404                        for x in $LDFLAGS $LIBNCURSES; do
26405
26406  acl_save_prefix="$prefix"
26407  prefix="$acl_final_prefix"
26408  acl_save_exec_prefix="$exec_prefix"
26409  exec_prefix="$acl_final_exec_prefix"
26410  eval x=\"$x\"
26411  exec_prefix="$acl_save_exec_prefix"
26412  prefix="$acl_save_prefix"
26413
26414                          if test "X$x" = "X-L$dependency_libdir"; then
26415                            haveit=yes
26416                            break
26417                          fi
26418                        done
26419                        if test -z "$haveit"; then
26420                          if test -d "$dependency_libdir"; then
26421                                                        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$dependency_libdir"
26422                          fi
26423                        fi
26424                        haveit=
26425                        for x in $LDFLAGS $LTLIBNCURSES; do
26426
26427  acl_save_prefix="$prefix"
26428  prefix="$acl_final_prefix"
26429  acl_save_exec_prefix="$exec_prefix"
26430  exec_prefix="$acl_final_exec_prefix"
26431  eval x=\"$x\"
26432  exec_prefix="$acl_save_exec_prefix"
26433  prefix="$acl_save_prefix"
26434
26435                          if test "X$x" = "X-L$dependency_libdir"; then
26436                            haveit=yes
26437                            break
26438                          fi
26439                        done
26440                        if test -z "$haveit"; then
26441                          if test -d "$dependency_libdir"; then
26442                                                        LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$dependency_libdir"
26443                          fi
26444                        fi
26445                      fi
26446                    fi
26447                    ;;
26448                  -R*)
26449                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26450                    if test "$enable_rpath" != no; then
26451                                                                  haveit=
26452                      for x in $rpathdirs; do
26453                        if test "X$x" = "X$dir"; then
26454                          haveit=yes
26455                          break
26456                        fi
26457                      done
26458                      if test -z "$haveit"; then
26459                        rpathdirs="$rpathdirs $dir"
26460                      fi
26461                                                                  haveit=
26462                      for x in $ltrpathdirs; do
26463                        if test "X$x" = "X$dir"; then
26464                          haveit=yes
26465                          break
26466                        fi
26467                      done
26468                      if test -z "$haveit"; then
26469                        ltrpathdirs="$ltrpathdirs $dir"
26470                      fi
26471                    fi
26472                    ;;
26473                  -l*)
26474                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26475                    ;;
26476                  *.la)
26477                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26478                    ;;
26479                  *)
26480                                        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
26481                    LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
26482                    ;;
26483                esac
26484              done
26485            fi
26486          else
26487                                                            LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
26488            LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
26489          fi
26490        fi
26491      fi
26492    done
26493  done
26494  if test "X$rpathdirs" != "X"; then
26495    if test -n "$acl_hardcode_libdir_separator"; then
26496                        alldirs=
26497      for found_dir in $rpathdirs; do
26498        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
26499      done
26500            acl_save_libdir="$libdir"
26501      libdir="$alldirs"
26502      eval flag=\"$acl_hardcode_libdir_flag_spec\"
26503      libdir="$acl_save_libdir"
26504      LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
26505    else
26506            for found_dir in $rpathdirs; do
26507        acl_save_libdir="$libdir"
26508        libdir="$found_dir"
26509        eval flag=\"$acl_hardcode_libdir_flag_spec\"
26510        libdir="$acl_save_libdir"
26511        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
26512      done
26513    fi
26514  fi
26515  if test "X$ltrpathdirs" != "X"; then
26516            for found_dir in $ltrpathdirs; do
26517      LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
26518    done
26519  fi
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532    use_additional=yes
26533
26534  acl_save_prefix="$prefix"
26535  prefix="$acl_final_prefix"
26536  acl_save_exec_prefix="$exec_prefix"
26537  exec_prefix="$acl_final_exec_prefix"
26538
26539    eval additional_includedir=\"$includedir\"
26540    eval additional_libdir=\"$libdir\"
26541    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
26542    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
26543
26544  exec_prefix="$acl_save_exec_prefix"
26545  prefix="$acl_save_prefix"
26546
26547
26548# Check whether --with-libtermcap-prefix was given.
26549if test "${with_libtermcap_prefix+set}" = set; then :
26550  withval=$with_libtermcap_prefix;
26551    if test "X$withval" = "Xno"; then
26552      use_additional=no
26553    else
26554      if test "X$withval" = "X"; then
26555
26556  acl_save_prefix="$prefix"
26557  prefix="$acl_final_prefix"
26558  acl_save_exec_prefix="$exec_prefix"
26559  exec_prefix="$acl_final_exec_prefix"
26560
26561          eval additional_includedir=\"$includedir\"
26562          eval additional_libdir=\"$libdir\"
26563          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
26564          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
26565
26566  exec_prefix="$acl_save_exec_prefix"
26567  prefix="$acl_save_prefix"
26568
26569      else
26570        additional_includedir="$withval/include"
26571        additional_libdir="$withval/$acl_libdirstem"
26572        additional_libdir2="$withval/$acl_libdirstem2"
26573        additional_libdir3="$withval/$acl_libdirstem3"
26574      fi
26575    fi
26576
26577fi
26578
26579  if test "X$additional_libdir2" = "X$additional_libdir"; then
26580    additional_libdir2=
26581  fi
26582  if test "X$additional_libdir3" = "X$additional_libdir"; then
26583    additional_libdir3=
26584  fi
26585      LIBTERMCAP=
26586  LTLIBTERMCAP=
26587  INCTERMCAP=
26588  LIBTERMCAP_PREFIX=
26589      HAVE_LIBTERMCAP=
26590  rpathdirs=
26591  ltrpathdirs=
26592  names_already_handled=
26593  names_next_round='termcap '
26594  while test -n "$names_next_round"; do
26595    names_this_round="$names_next_round"
26596    names_next_round=
26597    for name in $names_this_round; do
26598      already_handled=
26599      for n in $names_already_handled; do
26600        if test "$n" = "$name"; then
26601          already_handled=yes
26602          break
26603        fi
26604      done
26605      if test -z "$already_handled"; then
26606        names_already_handled="$names_already_handled $name"
26607                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
26608        eval value=\"\$HAVE_LIB$uppername\"
26609        if test -n "$value"; then
26610          if test "$value" = yes; then
26611            eval value=\"\$LIB$uppername\"
26612            test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
26613            eval value=\"\$LTLIB$uppername\"
26614            test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
26615          else
26616                                    :
26617          fi
26618        else
26619                              found_dir=
26620          found_la=
26621          found_so=
26622          found_a=
26623          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26624          if test -n "$acl_shlibext"; then
26625            shrext=".$acl_shlibext"             # typically: shrext=.so
26626          else
26627            shrext=
26628          fi
26629          if test $use_additional = yes; then
26630            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
26631              if test "X$found_dir" = "X"; then
26632                eval dir=\$$additional_libdir_variable
26633                if test -n "$dir"; then
26634                                                      if test -n "$acl_shlibext"; then
26635                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
26636                      found_dir="$dir"
26637                      found_so="$dir/$libname$shrext"
26638                    else
26639                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26640                        ver=`(cd "$dir" && \
26641                              for f in "$libname$shrext".*; do echo "$f"; done \
26642                              | sed -e "s,^$libname$shrext\\\\.,," \
26643                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26644                              | sed 1q ) 2>/dev/null`
26645                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
26646                          found_dir="$dir"
26647                          found_so="$dir/$libname$shrext.$ver"
26648                        fi
26649                      else
26650                        eval library_names=\"$acl_library_names_spec\"
26651                        for f in $library_names; do
26652                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
26653                            found_dir="$dir"
26654                            found_so="$dir/$f"
26655                            break
26656                          fi
26657                        done
26658                      fi
26659                    fi
26660                  fi
26661                                    if test "X$found_dir" = "X"; then
26662                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
26663                      found_dir="$dir"
26664                      found_a="$dir/$libname.$acl_libext"
26665                    fi
26666                  fi
26667                  if test "X$found_dir" != "X"; then
26668                    if test -f "$dir/$libname.la"; then
26669                      found_la="$dir/$libname.la"
26670                    fi
26671                  fi
26672                fi
26673              fi
26674            done
26675          fi
26676          if test "X$found_dir" = "X"; then
26677            for x in $LDFLAGS $LTLIBTERMCAP; do
26678
26679  acl_save_prefix="$prefix"
26680  prefix="$acl_final_prefix"
26681  acl_save_exec_prefix="$exec_prefix"
26682  exec_prefix="$acl_final_exec_prefix"
26683  eval x=\"$x\"
26684  exec_prefix="$acl_save_exec_prefix"
26685  prefix="$acl_save_prefix"
26686
26687              case "$x" in
26688                -L*)
26689                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26690                                    if test -n "$acl_shlibext"; then
26691                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
26692                      found_dir="$dir"
26693                      found_so="$dir/$libname$shrext"
26694                    else
26695                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26696                        ver=`(cd "$dir" && \
26697                              for f in "$libname$shrext".*; do echo "$f"; done \
26698                              | sed -e "s,^$libname$shrext\\\\.,," \
26699                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26700                              | sed 1q ) 2>/dev/null`
26701                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
26702                          found_dir="$dir"
26703                          found_so="$dir/$libname$shrext.$ver"
26704                        fi
26705                      else
26706                        eval library_names=\"$acl_library_names_spec\"
26707                        for f in $library_names; do
26708                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
26709                            found_dir="$dir"
26710                            found_so="$dir/$f"
26711                            break
26712                          fi
26713                        done
26714                      fi
26715                    fi
26716                  fi
26717                                    if test "X$found_dir" = "X"; then
26718                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
26719                      found_dir="$dir"
26720                      found_a="$dir/$libname.$acl_libext"
26721                    fi
26722                  fi
26723                  if test "X$found_dir" != "X"; then
26724                    if test -f "$dir/$libname.la"; then
26725                      found_la="$dir/$libname.la"
26726                    fi
26727                  fi
26728                  ;;
26729              esac
26730              if test "X$found_dir" != "X"; then
26731                break
26732              fi
26733            done
26734          fi
26735          if test "X$found_dir" != "X"; then
26736                        LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
26737            if test "X$found_so" != "X"; then
26738                                                        if test "$enable_rpath" = no \
26739                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
26740                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
26741                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
26742                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
26743              else
26744                                                                                haveit=
26745                for x in $ltrpathdirs; do
26746                  if test "X$x" = "X$found_dir"; then
26747                    haveit=yes
26748                    break
26749                  fi
26750                done
26751                if test -z "$haveit"; then
26752                  ltrpathdirs="$ltrpathdirs $found_dir"
26753                fi
26754                                if test "$acl_hardcode_direct" = yes; then
26755                                                      LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
26756                else
26757                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26758                                                            LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
26759                                                            haveit=
26760                    for x in $rpathdirs; do
26761                      if test "X$x" = "X$found_dir"; then
26762                        haveit=yes
26763                        break
26764                      fi
26765                    done
26766                    if test -z "$haveit"; then
26767                      rpathdirs="$rpathdirs $found_dir"
26768                    fi
26769                  else
26770                                                                                haveit=
26771                    for x in $LDFLAGS $LIBTERMCAP; do
26772
26773  acl_save_prefix="$prefix"
26774  prefix="$acl_final_prefix"
26775  acl_save_exec_prefix="$exec_prefix"
26776  exec_prefix="$acl_final_exec_prefix"
26777  eval x=\"$x\"
26778  exec_prefix="$acl_save_exec_prefix"
26779  prefix="$acl_save_prefix"
26780
26781                      if test "X$x" = "X-L$found_dir"; then
26782                        haveit=yes
26783                        break
26784                      fi
26785                    done
26786                    if test -z "$haveit"; then
26787                      LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
26788                    fi
26789                    if test "$acl_hardcode_minus_L" != no; then
26790                                                                                        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
26791                    else
26792                                                                                                                                                                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
26793                    fi
26794                  fi
26795                fi
26796              fi
26797            else
26798              if test "X$found_a" != "X"; then
26799                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
26800              else
26801                                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
26802              fi
26803            fi
26804                        additional_includedir=
26805            case "$found_dir" in
26806              */$acl_libdirstem | */$acl_libdirstem/)
26807                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26808                if test "$name" = 'termcap'; then
26809                  LIBTERMCAP_PREFIX="$basedir"
26810                fi
26811                additional_includedir="$basedir/include"
26812                ;;
26813              */$acl_libdirstem2 | */$acl_libdirstem2/)
26814                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
26815                if test "$name" = 'termcap'; then
26816                  LIBTERMCAP_PREFIX="$basedir"
26817                fi
26818                additional_includedir="$basedir/include"
26819                ;;
26820              */$acl_libdirstem3 | */$acl_libdirstem3/)
26821                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
26822                if test "$name" = 'termcap'; then
26823                  LIBTERMCAP_PREFIX="$basedir"
26824                fi
26825                additional_includedir="$basedir/include"
26826                ;;
26827            esac
26828            if test "X$additional_includedir" != "X"; then
26829                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26830                haveit=
26831                if test "X$additional_includedir" = "X/usr/local/include"; then
26832                  if test -n "$GCC"; then
26833                    case $host_os in
26834                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26835                    esac
26836                  fi
26837                fi
26838                if test -z "$haveit"; then
26839                  for x in $CPPFLAGS $INCTERMCAP; do
26840
26841  acl_save_prefix="$prefix"
26842  prefix="$acl_final_prefix"
26843  acl_save_exec_prefix="$exec_prefix"
26844  exec_prefix="$acl_final_exec_prefix"
26845  eval x=\"$x\"
26846  exec_prefix="$acl_save_exec_prefix"
26847  prefix="$acl_save_prefix"
26848
26849                    if test "X$x" = "X-I$additional_includedir"; then
26850                      haveit=yes
26851                      break
26852                    fi
26853                  done
26854                  if test -z "$haveit"; then
26855                    if test -d "$additional_includedir"; then
26856                                            INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
26857                    fi
26858                  fi
26859                fi
26860              fi
26861            fi
26862                        if test -n "$found_la"; then
26863                                                        save_libdir="$libdir"
26864              case "$found_la" in
26865                */* | *\\*) . "$found_la" ;;
26866                *) . "./$found_la" ;;
26867              esac
26868              libdir="$save_libdir"
26869                            for dep in $dependency_libs; do
26870                case "$dep" in
26871                  -L*)
26872                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26873                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
26874                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
26875                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
26876                      haveit=
26877                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
26878                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
26879                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
26880                        if test -n "$GCC"; then
26881                          case $host_os in
26882                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26883                          esac
26884                        fi
26885                      fi
26886                      if test -z "$haveit"; then
26887                        haveit=
26888                        for x in $LDFLAGS $LIBTERMCAP; do
26889
26890  acl_save_prefix="$prefix"
26891  prefix="$acl_final_prefix"
26892  acl_save_exec_prefix="$exec_prefix"
26893  exec_prefix="$acl_final_exec_prefix"
26894  eval x=\"$x\"
26895  exec_prefix="$acl_save_exec_prefix"
26896  prefix="$acl_save_prefix"
26897
26898                          if test "X$x" = "X-L$dependency_libdir"; then
26899                            haveit=yes
26900                            break
26901                          fi
26902                        done
26903                        if test -z "$haveit"; then
26904                          if test -d "$dependency_libdir"; then
26905                                                        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$dependency_libdir"
26906                          fi
26907                        fi
26908                        haveit=
26909                        for x in $LDFLAGS $LTLIBTERMCAP; do
26910
26911  acl_save_prefix="$prefix"
26912  prefix="$acl_final_prefix"
26913  acl_save_exec_prefix="$exec_prefix"
26914  exec_prefix="$acl_final_exec_prefix"
26915  eval x=\"$x\"
26916  exec_prefix="$acl_save_exec_prefix"
26917  prefix="$acl_save_prefix"
26918
26919                          if test "X$x" = "X-L$dependency_libdir"; then
26920                            haveit=yes
26921                            break
26922                          fi
26923                        done
26924                        if test -z "$haveit"; then
26925                          if test -d "$dependency_libdir"; then
26926                                                        LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$dependency_libdir"
26927                          fi
26928                        fi
26929                      fi
26930                    fi
26931                    ;;
26932                  -R*)
26933                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26934                    if test "$enable_rpath" != no; then
26935                                                                  haveit=
26936                      for x in $rpathdirs; do
26937                        if test "X$x" = "X$dir"; then
26938                          haveit=yes
26939                          break
26940                        fi
26941                      done
26942                      if test -z "$haveit"; then
26943                        rpathdirs="$rpathdirs $dir"
26944                      fi
26945                                                                  haveit=
26946                      for x in $ltrpathdirs; do
26947                        if test "X$x" = "X$dir"; then
26948                          haveit=yes
26949                          break
26950                        fi
26951                      done
26952                      if test -z "$haveit"; then
26953                        ltrpathdirs="$ltrpathdirs $dir"
26954                      fi
26955                    fi
26956                    ;;
26957                  -l*)
26958                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26959                    ;;
26960                  *.la)
26961                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26962                    ;;
26963                  *)
26964                                        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
26965                    LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
26966                    ;;
26967                esac
26968              done
26969            fi
26970          else
26971                                                            LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
26972            LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
26973          fi
26974        fi
26975      fi
26976    done
26977  done
26978  if test "X$rpathdirs" != "X"; then
26979    if test -n "$acl_hardcode_libdir_separator"; then
26980                        alldirs=
26981      for found_dir in $rpathdirs; do
26982        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
26983      done
26984            acl_save_libdir="$libdir"
26985      libdir="$alldirs"
26986      eval flag=\"$acl_hardcode_libdir_flag_spec\"
26987      libdir="$acl_save_libdir"
26988      LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
26989    else
26990            for found_dir in $rpathdirs; do
26991        acl_save_libdir="$libdir"
26992        libdir="$found_dir"
26993        eval flag=\"$acl_hardcode_libdir_flag_spec\"
26994        libdir="$acl_save_libdir"
26995        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
26996      done
26997    fi
26998  fi
26999  if test "X$ltrpathdirs" != "X"; then
27000            for found_dir in $ltrpathdirs; do
27001      LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
27002    done
27003  fi
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016    use_additional=yes
27017
27018  acl_save_prefix="$prefix"
27019  prefix="$acl_final_prefix"
27020  acl_save_exec_prefix="$exec_prefix"
27021  exec_prefix="$acl_final_exec_prefix"
27022
27023    eval additional_includedir=\"$includedir\"
27024    eval additional_libdir=\"$libdir\"
27025    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
27026    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
27027
27028  exec_prefix="$acl_save_exec_prefix"
27029  prefix="$acl_save_prefix"
27030
27031
27032# Check whether --with-libxcurses-prefix was given.
27033if test "${with_libxcurses_prefix+set}" = set; then :
27034  withval=$with_libxcurses_prefix;
27035    if test "X$withval" = "Xno"; then
27036      use_additional=no
27037    else
27038      if test "X$withval" = "X"; then
27039
27040  acl_save_prefix="$prefix"
27041  prefix="$acl_final_prefix"
27042  acl_save_exec_prefix="$exec_prefix"
27043  exec_prefix="$acl_final_exec_prefix"
27044
27045          eval additional_includedir=\"$includedir\"
27046          eval additional_libdir=\"$libdir\"
27047          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
27048          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
27049
27050  exec_prefix="$acl_save_exec_prefix"
27051  prefix="$acl_save_prefix"
27052
27053      else
27054        additional_includedir="$withval/include"
27055        additional_libdir="$withval/$acl_libdirstem"
27056        additional_libdir2="$withval/$acl_libdirstem2"
27057        additional_libdir3="$withval/$acl_libdirstem3"
27058      fi
27059    fi
27060
27061fi
27062
27063  if test "X$additional_libdir2" = "X$additional_libdir"; then
27064    additional_libdir2=
27065  fi
27066  if test "X$additional_libdir3" = "X$additional_libdir"; then
27067    additional_libdir3=
27068  fi
27069      LIBXCURSES=
27070  LTLIBXCURSES=
27071  INCXCURSES=
27072  LIBXCURSES_PREFIX=
27073      HAVE_LIBXCURSES=
27074  rpathdirs=
27075  ltrpathdirs=
27076  names_already_handled=
27077  names_next_round='xcurses '
27078  while test -n "$names_next_round"; do
27079    names_this_round="$names_next_round"
27080    names_next_round=
27081    for name in $names_this_round; do
27082      already_handled=
27083      for n in $names_already_handled; do
27084        if test "$n" = "$name"; then
27085          already_handled=yes
27086          break
27087        fi
27088      done
27089      if test -z "$already_handled"; then
27090        names_already_handled="$names_already_handled $name"
27091                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
27092        eval value=\"\$HAVE_LIB$uppername\"
27093        if test -n "$value"; then
27094          if test "$value" = yes; then
27095            eval value=\"\$LIB$uppername\"
27096            test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
27097            eval value=\"\$LTLIB$uppername\"
27098            test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
27099          else
27100                                    :
27101          fi
27102        else
27103                              found_dir=
27104          found_la=
27105          found_so=
27106          found_a=
27107          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27108          if test -n "$acl_shlibext"; then
27109            shrext=".$acl_shlibext"             # typically: shrext=.so
27110          else
27111            shrext=
27112          fi
27113          if test $use_additional = yes; then
27114            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
27115              if test "X$found_dir" = "X"; then
27116                eval dir=\$$additional_libdir_variable
27117                if test -n "$dir"; then
27118                                                      if test -n "$acl_shlibext"; then
27119                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
27120                      found_dir="$dir"
27121                      found_so="$dir/$libname$shrext"
27122                    else
27123                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27124                        ver=`(cd "$dir" && \
27125                              for f in "$libname$shrext".*; do echo "$f"; done \
27126                              | sed -e "s,^$libname$shrext\\\\.,," \
27127                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27128                              | sed 1q ) 2>/dev/null`
27129                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
27130                          found_dir="$dir"
27131                          found_so="$dir/$libname$shrext.$ver"
27132                        fi
27133                      else
27134                        eval library_names=\"$acl_library_names_spec\"
27135                        for f in $library_names; do
27136                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
27137                            found_dir="$dir"
27138                            found_so="$dir/$f"
27139                            break
27140                          fi
27141                        done
27142                      fi
27143                    fi
27144                  fi
27145                                    if test "X$found_dir" = "X"; then
27146                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
27147                      found_dir="$dir"
27148                      found_a="$dir/$libname.$acl_libext"
27149                    fi
27150                  fi
27151                  if test "X$found_dir" != "X"; then
27152                    if test -f "$dir/$libname.la"; then
27153                      found_la="$dir/$libname.la"
27154                    fi
27155                  fi
27156                fi
27157              fi
27158            done
27159          fi
27160          if test "X$found_dir" = "X"; then
27161            for x in $LDFLAGS $LTLIBXCURSES; do
27162
27163  acl_save_prefix="$prefix"
27164  prefix="$acl_final_prefix"
27165  acl_save_exec_prefix="$exec_prefix"
27166  exec_prefix="$acl_final_exec_prefix"
27167  eval x=\"$x\"
27168  exec_prefix="$acl_save_exec_prefix"
27169  prefix="$acl_save_prefix"
27170
27171              case "$x" in
27172                -L*)
27173                  dir=`echo "X$x" | sed -e 's/^X-L//'`
27174                                    if test -n "$acl_shlibext"; then
27175                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
27176                      found_dir="$dir"
27177                      found_so="$dir/$libname$shrext"
27178                    else
27179                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27180                        ver=`(cd "$dir" && \
27181                              for f in "$libname$shrext".*; do echo "$f"; done \
27182                              | sed -e "s,^$libname$shrext\\\\.,," \
27183                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27184                              | sed 1q ) 2>/dev/null`
27185                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
27186                          found_dir="$dir"
27187                          found_so="$dir/$libname$shrext.$ver"
27188                        fi
27189                      else
27190                        eval library_names=\"$acl_library_names_spec\"
27191                        for f in $library_names; do
27192                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
27193                            found_dir="$dir"
27194                            found_so="$dir/$f"
27195                            break
27196                          fi
27197                        done
27198                      fi
27199                    fi
27200                  fi
27201                                    if test "X$found_dir" = "X"; then
27202                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
27203                      found_dir="$dir"
27204                      found_a="$dir/$libname.$acl_libext"
27205                    fi
27206                  fi
27207                  if test "X$found_dir" != "X"; then
27208                    if test -f "$dir/$libname.la"; then
27209                      found_la="$dir/$libname.la"
27210                    fi
27211                  fi
27212                  ;;
27213              esac
27214              if test "X$found_dir" != "X"; then
27215                break
27216              fi
27217            done
27218          fi
27219          if test "X$found_dir" != "X"; then
27220                        LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
27221            if test "X$found_so" != "X"; then
27222                                                        if test "$enable_rpath" = no \
27223                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
27224                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
27225                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
27226                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
27227              else
27228                                                                                haveit=
27229                for x in $ltrpathdirs; do
27230                  if test "X$x" = "X$found_dir"; then
27231                    haveit=yes
27232                    break
27233                  fi
27234                done
27235                if test -z "$haveit"; then
27236                  ltrpathdirs="$ltrpathdirs $found_dir"
27237                fi
27238                                if test "$acl_hardcode_direct" = yes; then
27239                                                      LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
27240                else
27241                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27242                                                            LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
27243                                                            haveit=
27244                    for x in $rpathdirs; do
27245                      if test "X$x" = "X$found_dir"; then
27246                        haveit=yes
27247                        break
27248                      fi
27249                    done
27250                    if test -z "$haveit"; then
27251                      rpathdirs="$rpathdirs $found_dir"
27252                    fi
27253                  else
27254                                                                                haveit=
27255                    for x in $LDFLAGS $LIBXCURSES; do
27256
27257  acl_save_prefix="$prefix"
27258  prefix="$acl_final_prefix"
27259  acl_save_exec_prefix="$exec_prefix"
27260  exec_prefix="$acl_final_exec_prefix"
27261  eval x=\"$x\"
27262  exec_prefix="$acl_save_exec_prefix"
27263  prefix="$acl_save_prefix"
27264
27265                      if test "X$x" = "X-L$found_dir"; then
27266                        haveit=yes
27267                        break
27268                      fi
27269                    done
27270                    if test -z "$haveit"; then
27271                      LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
27272                    fi
27273                    if test "$acl_hardcode_minus_L" != no; then
27274                                                                                        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
27275                    else
27276                                                                                                                                                                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
27277                    fi
27278                  fi
27279                fi
27280              fi
27281            else
27282              if test "X$found_a" != "X"; then
27283                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
27284              else
27285                                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
27286              fi
27287            fi
27288                        additional_includedir=
27289            case "$found_dir" in
27290              */$acl_libdirstem | */$acl_libdirstem/)
27291                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27292                if test "$name" = 'xcurses'; then
27293                  LIBXCURSES_PREFIX="$basedir"
27294                fi
27295                additional_includedir="$basedir/include"
27296                ;;
27297              */$acl_libdirstem2 | */$acl_libdirstem2/)
27298                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
27299                if test "$name" = 'xcurses'; then
27300                  LIBXCURSES_PREFIX="$basedir"
27301                fi
27302                additional_includedir="$basedir/include"
27303                ;;
27304              */$acl_libdirstem3 | */$acl_libdirstem3/)
27305                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
27306                if test "$name" = 'xcurses'; then
27307                  LIBXCURSES_PREFIX="$basedir"
27308                fi
27309                additional_includedir="$basedir/include"
27310                ;;
27311            esac
27312            if test "X$additional_includedir" != "X"; then
27313                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
27314                haveit=
27315                if test "X$additional_includedir" = "X/usr/local/include"; then
27316                  if test -n "$GCC"; then
27317                    case $host_os in
27318                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27319                    esac
27320                  fi
27321                fi
27322                if test -z "$haveit"; then
27323                  for x in $CPPFLAGS $INCXCURSES; do
27324
27325  acl_save_prefix="$prefix"
27326  prefix="$acl_final_prefix"
27327  acl_save_exec_prefix="$exec_prefix"
27328  exec_prefix="$acl_final_exec_prefix"
27329  eval x=\"$x\"
27330  exec_prefix="$acl_save_exec_prefix"
27331  prefix="$acl_save_prefix"
27332
27333                    if test "X$x" = "X-I$additional_includedir"; then
27334                      haveit=yes
27335                      break
27336                    fi
27337                  done
27338                  if test -z "$haveit"; then
27339                    if test -d "$additional_includedir"; then
27340                                            INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
27341                    fi
27342                  fi
27343                fi
27344              fi
27345            fi
27346                        if test -n "$found_la"; then
27347                                                        save_libdir="$libdir"
27348              case "$found_la" in
27349                */* | *\\*) . "$found_la" ;;
27350                *) . "./$found_la" ;;
27351              esac
27352              libdir="$save_libdir"
27353                            for dep in $dependency_libs; do
27354                case "$dep" in
27355                  -L*)
27356                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27357                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
27358                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
27359                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
27360                      haveit=
27361                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
27362                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
27363                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
27364                        if test -n "$GCC"; then
27365                          case $host_os in
27366                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27367                          esac
27368                        fi
27369                      fi
27370                      if test -z "$haveit"; then
27371                        haveit=
27372                        for x in $LDFLAGS $LIBXCURSES; do
27373
27374  acl_save_prefix="$prefix"
27375  prefix="$acl_final_prefix"
27376  acl_save_exec_prefix="$exec_prefix"
27377  exec_prefix="$acl_final_exec_prefix"
27378  eval x=\"$x\"
27379  exec_prefix="$acl_save_exec_prefix"
27380  prefix="$acl_save_prefix"
27381
27382                          if test "X$x" = "X-L$dependency_libdir"; then
27383                            haveit=yes
27384                            break
27385                          fi
27386                        done
27387                        if test -z "$haveit"; then
27388                          if test -d "$dependency_libdir"; then
27389                                                        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$dependency_libdir"
27390                          fi
27391                        fi
27392                        haveit=
27393                        for x in $LDFLAGS $LTLIBXCURSES; do
27394
27395  acl_save_prefix="$prefix"
27396  prefix="$acl_final_prefix"
27397  acl_save_exec_prefix="$exec_prefix"
27398  exec_prefix="$acl_final_exec_prefix"
27399  eval x=\"$x\"
27400  exec_prefix="$acl_save_exec_prefix"
27401  prefix="$acl_save_prefix"
27402
27403                          if test "X$x" = "X-L$dependency_libdir"; then
27404                            haveit=yes
27405                            break
27406                          fi
27407                        done
27408                        if test -z "$haveit"; then
27409                          if test -d "$dependency_libdir"; then
27410                                                        LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$dependency_libdir"
27411                          fi
27412                        fi
27413                      fi
27414                    fi
27415                    ;;
27416                  -R*)
27417                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
27418                    if test "$enable_rpath" != no; then
27419                                                                  haveit=
27420                      for x in $rpathdirs; do
27421                        if test "X$x" = "X$dir"; then
27422                          haveit=yes
27423                          break
27424                        fi
27425                      done
27426                      if test -z "$haveit"; then
27427                        rpathdirs="$rpathdirs $dir"
27428                      fi
27429                                                                  haveit=
27430                      for x in $ltrpathdirs; do
27431                        if test "X$x" = "X$dir"; then
27432                          haveit=yes
27433                          break
27434                        fi
27435                      done
27436                      if test -z "$haveit"; then
27437                        ltrpathdirs="$ltrpathdirs $dir"
27438                      fi
27439                    fi
27440                    ;;
27441                  -l*)
27442                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27443                    ;;
27444                  *.la)
27445                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27446                    ;;
27447                  *)
27448                                        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
27449                    LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
27450                    ;;
27451                esac
27452              done
27453            fi
27454          else
27455                                                            LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
27456            LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
27457          fi
27458        fi
27459      fi
27460    done
27461  done
27462  if test "X$rpathdirs" != "X"; then
27463    if test -n "$acl_hardcode_libdir_separator"; then
27464                        alldirs=
27465      for found_dir in $rpathdirs; do
27466        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27467      done
27468            acl_save_libdir="$libdir"
27469      libdir="$alldirs"
27470      eval flag=\"$acl_hardcode_libdir_flag_spec\"
27471      libdir="$acl_save_libdir"
27472      LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
27473    else
27474            for found_dir in $rpathdirs; do
27475        acl_save_libdir="$libdir"
27476        libdir="$found_dir"
27477        eval flag=\"$acl_hardcode_libdir_flag_spec\"
27478        libdir="$acl_save_libdir"
27479        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
27480      done
27481    fi
27482  fi
27483  if test "X$ltrpathdirs" != "X"; then
27484            for found_dir in $ltrpathdirs; do
27485      LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
27486    done
27487  fi
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500    use_additional=yes
27501
27502  acl_save_prefix="$prefix"
27503  prefix="$acl_final_prefix"
27504  acl_save_exec_prefix="$exec_prefix"
27505  exec_prefix="$acl_final_exec_prefix"
27506
27507    eval additional_includedir=\"$includedir\"
27508    eval additional_libdir=\"$libdir\"
27509    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
27510    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
27511
27512  exec_prefix="$acl_save_exec_prefix"
27513  prefix="$acl_save_prefix"
27514
27515
27516# Check whether --with-libcurses-prefix was given.
27517if test "${with_libcurses_prefix+set}" = set; then :
27518  withval=$with_libcurses_prefix;
27519    if test "X$withval" = "Xno"; then
27520      use_additional=no
27521    else
27522      if test "X$withval" = "X"; then
27523
27524  acl_save_prefix="$prefix"
27525  prefix="$acl_final_prefix"
27526  acl_save_exec_prefix="$exec_prefix"
27527  exec_prefix="$acl_final_exec_prefix"
27528
27529          eval additional_includedir=\"$includedir\"
27530          eval additional_libdir=\"$libdir\"
27531          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
27532          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
27533
27534  exec_prefix="$acl_save_exec_prefix"
27535  prefix="$acl_save_prefix"
27536
27537      else
27538        additional_includedir="$withval/include"
27539        additional_libdir="$withval/$acl_libdirstem"
27540        additional_libdir2="$withval/$acl_libdirstem2"
27541        additional_libdir3="$withval/$acl_libdirstem3"
27542      fi
27543    fi
27544
27545fi
27546
27547  if test "X$additional_libdir2" = "X$additional_libdir"; then
27548    additional_libdir2=
27549  fi
27550  if test "X$additional_libdir3" = "X$additional_libdir"; then
27551    additional_libdir3=
27552  fi
27553      LIBCURSES=
27554  LTLIBCURSES=
27555  INCCURSES=
27556  LIBCURSES_PREFIX=
27557      HAVE_LIBCURSES=
27558  rpathdirs=
27559  ltrpathdirs=
27560  names_already_handled=
27561  names_next_round='curses '
27562  while test -n "$names_next_round"; do
27563    names_this_round="$names_next_round"
27564    names_next_round=
27565    for name in $names_this_round; do
27566      already_handled=
27567      for n in $names_already_handled; do
27568        if test "$n" = "$name"; then
27569          already_handled=yes
27570          break
27571        fi
27572      done
27573      if test -z "$already_handled"; then
27574        names_already_handled="$names_already_handled $name"
27575                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
27576        eval value=\"\$HAVE_LIB$uppername\"
27577        if test -n "$value"; then
27578          if test "$value" = yes; then
27579            eval value=\"\$LIB$uppername\"
27580            test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
27581            eval value=\"\$LTLIB$uppername\"
27582            test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
27583          else
27584                                    :
27585          fi
27586        else
27587                              found_dir=
27588          found_la=
27589          found_so=
27590          found_a=
27591          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27592          if test -n "$acl_shlibext"; then
27593            shrext=".$acl_shlibext"             # typically: shrext=.so
27594          else
27595            shrext=
27596          fi
27597          if test $use_additional = yes; then
27598            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
27599              if test "X$found_dir" = "X"; then
27600                eval dir=\$$additional_libdir_variable
27601                if test -n "$dir"; then
27602                                                      if test -n "$acl_shlibext"; then
27603                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
27604                      found_dir="$dir"
27605                      found_so="$dir/$libname$shrext"
27606                    else
27607                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27608                        ver=`(cd "$dir" && \
27609                              for f in "$libname$shrext".*; do echo "$f"; done \
27610                              | sed -e "s,^$libname$shrext\\\\.,," \
27611                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27612                              | sed 1q ) 2>/dev/null`
27613                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
27614                          found_dir="$dir"
27615                          found_so="$dir/$libname$shrext.$ver"
27616                        fi
27617                      else
27618                        eval library_names=\"$acl_library_names_spec\"
27619                        for f in $library_names; do
27620                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
27621                            found_dir="$dir"
27622                            found_so="$dir/$f"
27623                            break
27624                          fi
27625                        done
27626                      fi
27627                    fi
27628                  fi
27629                                    if test "X$found_dir" = "X"; then
27630                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
27631                      found_dir="$dir"
27632                      found_a="$dir/$libname.$acl_libext"
27633                    fi
27634                  fi
27635                  if test "X$found_dir" != "X"; then
27636                    if test -f "$dir/$libname.la"; then
27637                      found_la="$dir/$libname.la"
27638                    fi
27639                  fi
27640                fi
27641              fi
27642            done
27643          fi
27644          if test "X$found_dir" = "X"; then
27645            for x in $LDFLAGS $LTLIBCURSES; do
27646
27647  acl_save_prefix="$prefix"
27648  prefix="$acl_final_prefix"
27649  acl_save_exec_prefix="$exec_prefix"
27650  exec_prefix="$acl_final_exec_prefix"
27651  eval x=\"$x\"
27652  exec_prefix="$acl_save_exec_prefix"
27653  prefix="$acl_save_prefix"
27654
27655              case "$x" in
27656                -L*)
27657                  dir=`echo "X$x" | sed -e 's/^X-L//'`
27658                                    if test -n "$acl_shlibext"; then
27659                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
27660                      found_dir="$dir"
27661                      found_so="$dir/$libname$shrext"
27662                    else
27663                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27664                        ver=`(cd "$dir" && \
27665                              for f in "$libname$shrext".*; do echo "$f"; done \
27666                              | sed -e "s,^$libname$shrext\\\\.,," \
27667                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27668                              | sed 1q ) 2>/dev/null`
27669                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
27670                          found_dir="$dir"
27671                          found_so="$dir/$libname$shrext.$ver"
27672                        fi
27673                      else
27674                        eval library_names=\"$acl_library_names_spec\"
27675                        for f in $library_names; do
27676                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
27677                            found_dir="$dir"
27678                            found_so="$dir/$f"
27679                            break
27680                          fi
27681                        done
27682                      fi
27683                    fi
27684                  fi
27685                                    if test "X$found_dir" = "X"; then
27686                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
27687                      found_dir="$dir"
27688                      found_a="$dir/$libname.$acl_libext"
27689                    fi
27690                  fi
27691                  if test "X$found_dir" != "X"; then
27692                    if test -f "$dir/$libname.la"; then
27693                      found_la="$dir/$libname.la"
27694                    fi
27695                  fi
27696                  ;;
27697              esac
27698              if test "X$found_dir" != "X"; then
27699                break
27700              fi
27701            done
27702          fi
27703          if test "X$found_dir" != "X"; then
27704                        LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
27705            if test "X$found_so" != "X"; then
27706                                                        if test "$enable_rpath" = no \
27707                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
27708                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
27709                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
27710                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
27711              else
27712                                                                                haveit=
27713                for x in $ltrpathdirs; do
27714                  if test "X$x" = "X$found_dir"; then
27715                    haveit=yes
27716                    break
27717                  fi
27718                done
27719                if test -z "$haveit"; then
27720                  ltrpathdirs="$ltrpathdirs $found_dir"
27721                fi
27722                                if test "$acl_hardcode_direct" = yes; then
27723                                                      LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
27724                else
27725                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27726                                                            LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
27727                                                            haveit=
27728                    for x in $rpathdirs; do
27729                      if test "X$x" = "X$found_dir"; then
27730                        haveit=yes
27731                        break
27732                      fi
27733                    done
27734                    if test -z "$haveit"; then
27735                      rpathdirs="$rpathdirs $found_dir"
27736                    fi
27737                  else
27738                                                                                haveit=
27739                    for x in $LDFLAGS $LIBCURSES; do
27740
27741  acl_save_prefix="$prefix"
27742  prefix="$acl_final_prefix"
27743  acl_save_exec_prefix="$exec_prefix"
27744  exec_prefix="$acl_final_exec_prefix"
27745  eval x=\"$x\"
27746  exec_prefix="$acl_save_exec_prefix"
27747  prefix="$acl_save_prefix"
27748
27749                      if test "X$x" = "X-L$found_dir"; then
27750                        haveit=yes
27751                        break
27752                      fi
27753                    done
27754                    if test -z "$haveit"; then
27755                      LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
27756                    fi
27757                    if test "$acl_hardcode_minus_L" != no; then
27758                                                                                        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
27759                    else
27760                                                                                                                                                                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
27761                    fi
27762                  fi
27763                fi
27764              fi
27765            else
27766              if test "X$found_a" != "X"; then
27767                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
27768              else
27769                                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
27770              fi
27771            fi
27772                        additional_includedir=
27773            case "$found_dir" in
27774              */$acl_libdirstem | */$acl_libdirstem/)
27775                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27776                if test "$name" = 'curses'; then
27777                  LIBCURSES_PREFIX="$basedir"
27778                fi
27779                additional_includedir="$basedir/include"
27780                ;;
27781              */$acl_libdirstem2 | */$acl_libdirstem2/)
27782                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
27783                if test "$name" = 'curses'; then
27784                  LIBCURSES_PREFIX="$basedir"
27785                fi
27786                additional_includedir="$basedir/include"
27787                ;;
27788              */$acl_libdirstem3 | */$acl_libdirstem3/)
27789                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
27790                if test "$name" = 'curses'; then
27791                  LIBCURSES_PREFIX="$basedir"
27792                fi
27793                additional_includedir="$basedir/include"
27794                ;;
27795            esac
27796            if test "X$additional_includedir" != "X"; then
27797                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
27798                haveit=
27799                if test "X$additional_includedir" = "X/usr/local/include"; then
27800                  if test -n "$GCC"; then
27801                    case $host_os in
27802                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27803                    esac
27804                  fi
27805                fi
27806                if test -z "$haveit"; then
27807                  for x in $CPPFLAGS $INCCURSES; do
27808
27809  acl_save_prefix="$prefix"
27810  prefix="$acl_final_prefix"
27811  acl_save_exec_prefix="$exec_prefix"
27812  exec_prefix="$acl_final_exec_prefix"
27813  eval x=\"$x\"
27814  exec_prefix="$acl_save_exec_prefix"
27815  prefix="$acl_save_prefix"
27816
27817                    if test "X$x" = "X-I$additional_includedir"; then
27818                      haveit=yes
27819                      break
27820                    fi
27821                  done
27822                  if test -z "$haveit"; then
27823                    if test -d "$additional_includedir"; then
27824                                            INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
27825                    fi
27826                  fi
27827                fi
27828              fi
27829            fi
27830                        if test -n "$found_la"; then
27831                                                        save_libdir="$libdir"
27832              case "$found_la" in
27833                */* | *\\*) . "$found_la" ;;
27834                *) . "./$found_la" ;;
27835              esac
27836              libdir="$save_libdir"
27837                            for dep in $dependency_libs; do
27838                case "$dep" in
27839                  -L*)
27840                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27841                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
27842                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
27843                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
27844                      haveit=
27845                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
27846                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
27847                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
27848                        if test -n "$GCC"; then
27849                          case $host_os in
27850                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27851                          esac
27852                        fi
27853                      fi
27854                      if test -z "$haveit"; then
27855                        haveit=
27856                        for x in $LDFLAGS $LIBCURSES; do
27857
27858  acl_save_prefix="$prefix"
27859  prefix="$acl_final_prefix"
27860  acl_save_exec_prefix="$exec_prefix"
27861  exec_prefix="$acl_final_exec_prefix"
27862  eval x=\"$x\"
27863  exec_prefix="$acl_save_exec_prefix"
27864  prefix="$acl_save_prefix"
27865
27866                          if test "X$x" = "X-L$dependency_libdir"; then
27867                            haveit=yes
27868                            break
27869                          fi
27870                        done
27871                        if test -z "$haveit"; then
27872                          if test -d "$dependency_libdir"; then
27873                                                        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$dependency_libdir"
27874                          fi
27875                        fi
27876                        haveit=
27877                        for x in $LDFLAGS $LTLIBCURSES; do
27878
27879  acl_save_prefix="$prefix"
27880  prefix="$acl_final_prefix"
27881  acl_save_exec_prefix="$exec_prefix"
27882  exec_prefix="$acl_final_exec_prefix"
27883  eval x=\"$x\"
27884  exec_prefix="$acl_save_exec_prefix"
27885  prefix="$acl_save_prefix"
27886
27887                          if test "X$x" = "X-L$dependency_libdir"; then
27888                            haveit=yes
27889                            break
27890                          fi
27891                        done
27892                        if test -z "$haveit"; then
27893                          if test -d "$dependency_libdir"; then
27894                                                        LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$dependency_libdir"
27895                          fi
27896                        fi
27897                      fi
27898                    fi
27899                    ;;
27900                  -R*)
27901                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
27902                    if test "$enable_rpath" != no; then
27903                                                                  haveit=
27904                      for x in $rpathdirs; do
27905                        if test "X$x" = "X$dir"; then
27906                          haveit=yes
27907                          break
27908                        fi
27909                      done
27910                      if test -z "$haveit"; then
27911                        rpathdirs="$rpathdirs $dir"
27912                      fi
27913                                                                  haveit=
27914                      for x in $ltrpathdirs; do
27915                        if test "X$x" = "X$dir"; then
27916                          haveit=yes
27917                          break
27918                        fi
27919                      done
27920                      if test -z "$haveit"; then
27921                        ltrpathdirs="$ltrpathdirs $dir"
27922                      fi
27923                    fi
27924                    ;;
27925                  -l*)
27926                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27927                    ;;
27928                  *.la)
27929                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27930                    ;;
27931                  *)
27932                                        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
27933                    LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
27934                    ;;
27935                esac
27936              done
27937            fi
27938          else
27939                                                            LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
27940            LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
27941          fi
27942        fi
27943      fi
27944    done
27945  done
27946  if test "X$rpathdirs" != "X"; then
27947    if test -n "$acl_hardcode_libdir_separator"; then
27948                        alldirs=
27949      for found_dir in $rpathdirs; do
27950        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27951      done
27952            acl_save_libdir="$libdir"
27953      libdir="$alldirs"
27954      eval flag=\"$acl_hardcode_libdir_flag_spec\"
27955      libdir="$acl_save_libdir"
27956      LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
27957    else
27958            for found_dir in $rpathdirs; do
27959        acl_save_libdir="$libdir"
27960        libdir="$found_dir"
27961        eval flag=\"$acl_hardcode_libdir_flag_spec\"
27962        libdir="$acl_save_libdir"
27963        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
27964      done
27965    fi
27966  fi
27967  if test "X$ltrpathdirs" != "X"; then
27968            for found_dir in $ltrpathdirs; do
27969      LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
27970    done
27971  fi
27972
27973
27974
27975
27976
27977
27978  else
27979
27980    LIBNCURSES=
27981    LTLIBNCURSES=
27982    INCNCURSES=
27983
27984    LIBTERMCAP=
27985    LTLIBTERMCAP=
27986    INCTERMCAP=
27987
27988    LIBXCURSES=
27989    LTLIBXCURSES=
27990    INCXCURSES=
27991
27992    LIBCURSES=
27993    LTLIBCURSES=
27994    INCCURSES=
27995
27996  fi
27997
27998      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5
27999$as_echo_n "checking where terminfo library functions come from... " >&6; }
28000if ${gl_cv_terminfo+:} false; then :
28001  $as_echo_n "(cached) " >&6
28002else
28003
28004    gl_cv_terminfo="not found, consider installing GNU ncurses"
28005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006/* end confdefs.h.  */
28007extern
28008      #ifdef __cplusplus
28009      "C"
28010      #endif
28011      int setupterm (const char *, int, int *);
28012      extern
28013      #ifdef __cplusplus
28014      "C"
28015      #endif
28016      int tigetnum (const char *);
28017      extern
28018      #ifdef __cplusplus
28019      "C"
28020      #endif
28021      int tigetflag (const char *);
28022      extern
28023      #ifdef __cplusplus
28024      "C"
28025      #endif
28026      const char * tigetstr (const char *);
28027
28028int
28029main ()
28030{
28031return setupterm ("xterm", 0, (int *)0)
28032                 + tigetnum ("colors")
28033                 + tigetflag ("hc") + * tigetstr("oc");
28034  ;
28035  return 0;
28036}
28037_ACEOF
28038if ac_fn_c_try_link "$LINENO"; then :
28039  gl_cv_terminfo=libc
28040fi
28041rm -f core conftest.err conftest.$ac_objext \
28042    conftest$ac_exeext conftest.$ac_ext
28043    if test "$gl_cv_terminfo" != libc; then
28044      gl_save_LIBS="$LIBS"
28045      LIBS="$LIBS $LIBNCURSES"
28046      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047/* end confdefs.h.  */
28048extern
28049        #ifdef __cplusplus
28050        "C"
28051        #endif
28052        int setupterm (const char *, int, int *);
28053        extern
28054        #ifdef __cplusplus
28055        "C"
28056        #endif
28057        int tigetnum (const char *);
28058        extern
28059        #ifdef __cplusplus
28060        "C"
28061        #endif
28062        int tigetflag (const char *);
28063        extern
28064        #ifdef __cplusplus
28065        "C"
28066        #endif
28067        const char * tigetstr (const char *);
28068
28069int
28070main ()
28071{
28072return setupterm ("xterm", 0, (int *)0)
28073                   + tigetnum ("colors")
28074                   + tigetflag ("hc") + * tigetstr("oc");
28075  ;
28076  return 0;
28077}
28078_ACEOF
28079if ac_fn_c_try_link "$LINENO"; then :
28080  gl_cv_terminfo=libncurses
28081fi
28082rm -f core conftest.err conftest.$ac_objext \
28083    conftest$ac_exeext conftest.$ac_ext
28084      LIBS="$gl_save_LIBS"
28085      if test "$gl_cv_terminfo" != libncurses; then
28086        gl_save_LIBS="$LIBS"
28087        LIBS="$LIBS $LIBTERMCAP"
28088        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28089/* end confdefs.h.  */
28090extern
28091          #ifdef __cplusplus
28092          "C"
28093          #endif
28094          int setupterm (const char *, int, int *);
28095          extern
28096          #ifdef __cplusplus
28097          "C"
28098          #endif
28099          int tigetnum (const char *);
28100          extern
28101          #ifdef __cplusplus
28102          "C"
28103          #endif
28104          int tigetflag (const char *);
28105          extern
28106          #ifdef __cplusplus
28107          "C"
28108          #endif
28109          const char * tigetstr (const char *);
28110
28111int
28112main ()
28113{
28114return setupterm ("xterm", 0, (int *)0)
28115                     + tigetnum ("colors")
28116                     + tigetflag ("hc") + * tigetstr("oc");
28117  ;
28118  return 0;
28119}
28120_ACEOF
28121if ac_fn_c_try_link "$LINENO"; then :
28122  gl_cv_terminfo=libtermcap
28123fi
28124rm -f core conftest.err conftest.$ac_objext \
28125    conftest$ac_exeext conftest.$ac_ext
28126        LIBS="$gl_save_LIBS"
28127        if test "$gl_cv_terminfo" != libtermcap; then
28128          gl_save_LIBS="$LIBS"
28129          LIBS="$LIBS $LIBXCURSES"
28130          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28131/* end confdefs.h.  */
28132extern
28133            #ifdef __cplusplus
28134            "C"
28135            #endif
28136            int setupterm (const char *, int, int *);
28137            extern
28138            #ifdef __cplusplus
28139            "C"
28140            #endif
28141            int tigetnum (const char *);
28142            extern
28143            #ifdef __cplusplus
28144            "C"
28145            #endif
28146            int tigetflag (const char *);
28147            extern
28148            #ifdef __cplusplus
28149            "C"
28150            #endif
28151            const char * tigetstr (const char *);
28152
28153int
28154main ()
28155{
28156return setupterm ("xterm", 0, (int *)0)
28157                       + tigetnum ("colors")
28158                       + tigetflag ("hc") + * tigetstr("oc");
28159  ;
28160  return 0;
28161}
28162_ACEOF
28163if ac_fn_c_try_link "$LINENO"; then :
28164  gl_cv_terminfo=libxcurses
28165fi
28166rm -f core conftest.err conftest.$ac_objext \
28167    conftest$ac_exeext conftest.$ac_ext
28168          LIBS="$gl_save_LIBS"
28169          if test "$gl_cv_terminfo" != libxcurses; then
28170            gl_save_LIBS="$LIBS"
28171            LIBS="$LIBS $LIBCURSES"
28172            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173/* end confdefs.h.  */
28174extern
28175              #ifdef __cplusplus
28176              "C"
28177              #endif
28178              int setupterm (const char *, int, int *);
28179              extern
28180              #ifdef __cplusplus
28181              "C"
28182              #endif
28183              int tigetnum (const char *);
28184              extern
28185              #ifdef __cplusplus
28186              "C"
28187              #endif
28188              int tigetflag (const char *);
28189              extern
28190              #ifdef __cplusplus
28191              "C"
28192              #endif
28193              const char * tigetstr (const char *);
28194
28195int
28196main ()
28197{
28198return setupterm ("xterm", 0, (int *)0)
28199                         + tigetnum ("colors")
28200                         + tigetflag ("hc") + * tigetstr("oc");
28201  ;
28202  return 0;
28203}
28204_ACEOF
28205if ac_fn_c_try_link "$LINENO"; then :
28206  gl_cv_terminfo=libcurses
28207fi
28208rm -f core conftest.err conftest.$ac_objext \
28209    conftest$ac_exeext conftest.$ac_ext
28210            LIBS="$gl_save_LIBS"
28211          fi
28212        fi
28213      fi
28214    fi
28215
28216fi
28217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5
28218$as_echo "$gl_cv_terminfo" >&6; }
28219  case "$gl_cv_terminfo" in
28220    libc)
28221      LIBTERMINFO=
28222      LTLIBTERMINFO=
28223      INCTERMINFO=
28224      ;;
28225    libncurses)
28226      LIBTERMINFO="$LIBNCURSES"
28227      LTLIBTERMINFO="$LTLIBNCURSES"
28228      INCTERMINFO="$INCNCURSES"
28229      ;;
28230    libtermcap)
28231      LIBTERMINFO="$LIBTERMCAP"
28232      LTLIBTERMINFO="$LTLIBTERMCAP"
28233      INCTERMINFO="$INCTERMCAP"
28234      ;;
28235    libxcurses)
28236      LIBTERMINFO="$LIBXCURSES"
28237      LTLIBTERMINFO="$LTLIBXCURSES"
28238      INCTERMINFO="$INCXCURSES"
28239      ;;
28240    libcurses)
28241      LIBTERMINFO="$LIBCURSES"
28242      LTLIBTERMINFO="$LTLIBCURSES"
28243      INCTERMINFO="$INCCURSES"
28244      ;;
28245  esac
28246  case "$gl_cv_terminfo" in
28247    libc | libncurses | libtermcap | libxcurses | libcurses)
28248
28249$as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
28250
28251      ;;
28252    *)
28253            { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5
28254$as_echo_n "checking where termcap library functions come from... " >&6; }
28255if ${gl_cv_termcap+:} false; then :
28256  $as_echo_n "(cached) " >&6
28257else
28258
28259        gl_cv_termcap="not found, consider installing GNU ncurses"
28260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28261/* end confdefs.h.  */
28262extern
28263          #ifdef __cplusplus
28264          "C"
28265          #endif
28266          int tgetent (char *, const char *);
28267
28268int
28269main ()
28270{
28271return tgetent ((char *) 0, "xterm");
28272  ;
28273  return 0;
28274}
28275_ACEOF
28276if ac_fn_c_try_link "$LINENO"; then :
28277  gl_cv_termcap=libc
28278fi
28279rm -f core conftest.err conftest.$ac_objext \
28280    conftest$ac_exeext conftest.$ac_ext
28281        if test "$gl_cv_termcap" != libc; then
28282          gl_save_LIBS="$LIBS"
28283          LIBS="$LIBS $LIBNCURSES"
28284          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28285/* end confdefs.h.  */
28286extern
28287            #ifdef __cplusplus
28288            "C"
28289            #endif
28290            int tgetent (char *, const char *);
28291
28292int
28293main ()
28294{
28295return tgetent ((char *) 0, "xterm");
28296  ;
28297  return 0;
28298}
28299_ACEOF
28300if ac_fn_c_try_link "$LINENO"; then :
28301  gl_cv_termcap=libncurses
28302fi
28303rm -f core conftest.err conftest.$ac_objext \
28304    conftest$ac_exeext conftest.$ac_ext
28305          LIBS="$gl_save_LIBS"
28306          if test "$gl_cv_termcap" != libncurses; then
28307            gl_save_LIBS="$LIBS"
28308            LIBS="$LIBS $LIBTERMCAP"
28309            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28310/* end confdefs.h.  */
28311extern
28312              #ifdef __cplusplus
28313              "C"
28314              #endif
28315              int tgetent (char *, const char *);
28316
28317int
28318main ()
28319{
28320return tgetent ((char *) 0, "xterm");
28321  ;
28322  return 0;
28323}
28324_ACEOF
28325if ac_fn_c_try_link "$LINENO"; then :
28326  gl_cv_termcap=libtermcap
28327fi
28328rm -f core conftest.err conftest.$ac_objext \
28329    conftest$ac_exeext conftest.$ac_ext
28330            LIBS="$gl_save_LIBS"
28331          fi
28332        fi
28333
28334fi
28335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5
28336$as_echo "$gl_cv_termcap" >&6; }
28337      case "$gl_cv_termcap" in
28338        libc)
28339          LIBTERMINFO=
28340          LTLIBTERMINFO=
28341          INCTERMINFO=
28342          ;;
28343        libncurses)
28344          LIBTERMINFO="$LIBNCURSES"
28345          LTLIBTERMINFO="$LTLIBNCURSES"
28346          INCTERMINFO="$INCNCURSES"
28347          ;;
28348        libtermcap)
28349          LIBTERMINFO="$LIBTERMCAP"
28350          LTLIBTERMINFO="$LTLIBTERMCAP"
28351          INCTERMINFO="$INCTERMCAP"
28352          ;;
28353      esac
28354      case "$gl_cv_termcap" in
28355        libc | libncurses | libtermcap)
28356
28357$as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
28358
28359          ;;
28360      esac
28361      ;;
28362  esac
28363
28364
28365
28366
28367      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5
28368$as_echo_n "checking for tparam... " >&6; }
28369if ${gl_cv_terminfo_tparam+:} false; then :
28370  $as_echo_n "(cached) " >&6
28371else
28372
28373    gl_save_LIBS="$LIBS"
28374    LIBS="$LIBS $LIBTERMINFO"
28375    gl_save_CPPFLAGS="$CPPFLAGS"
28376    CPPFLAGS="$CPPFLAGS $INCTERMINFO"
28377    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28378/* end confdefs.h.  */
28379extern
28380      #ifdef __cplusplus
28381      "C"
28382      #endif
28383      char * tparam (const char *, void *, int, ...);
28384      char buf;
28385
28386int
28387main ()
28388{
28389return tparam ("\033\133%dm", &buf, 1, 8);
28390  ;
28391  return 0;
28392}
28393_ACEOF
28394if ac_fn_c_try_link "$LINENO"; then :
28395  gl_cv_terminfo_tparam=yes
28396else
28397  gl_cv_terminfo_tparam=no
28398fi
28399rm -f core conftest.err conftest.$ac_objext \
28400    conftest$ac_exeext conftest.$ac_ext
28401    CPPFLAGS="$gl_save_CPPFLAGS"
28402    LIBS="$gl_save_LIBS"
28403
28404fi
28405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5
28406$as_echo "$gl_cv_terminfo_tparam" >&6; }
28407  if test $gl_cv_terminfo_tparam = yes; then
28408
28409$as_echo "#define HAVE_TPARAM 1" >>confdefs.h
28410
28411  else
28412            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5
28413$as_echo_n "checking for tparm... " >&6; }
28414if ${gl_cv_terminfo_tparm+:} false; then :
28415  $as_echo_n "(cached) " >&6
28416else
28417
28418      gl_save_LIBS="$LIBS"
28419      LIBS="$LIBS $LIBTERMINFO"
28420      gl_save_CPPFLAGS="$CPPFLAGS"
28421      CPPFLAGS="$CPPFLAGS $INCTERMINFO"
28422      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28423/* end confdefs.h.  */
28424extern
28425        #ifdef __cplusplus
28426        "C"
28427        #endif
28428        char * tparm (const char *, ...);
28429
28430int
28431main ()
28432{
28433return tparm ("\033\133%dm", 8);
28434  ;
28435  return 0;
28436}
28437_ACEOF
28438if ac_fn_c_try_link "$LINENO"; then :
28439  gl_cv_terminfo_tparm=yes
28440else
28441  gl_cv_terminfo_tparm=no
28442fi
28443rm -f core conftest.err conftest.$ac_objext \
28444    conftest$ac_exeext conftest.$ac_ext
28445      CPPFLAGS="$gl_save_CPPFLAGS"
28446      LIBS="$gl_save_LIBS"
28447
28448fi
28449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5
28450$as_echo "$gl_cv_terminfo_tparm" >&6; }
28451  fi
28452
28453
28454  GNULIB_CTIME=0;
28455  GNULIB_MKTIME=0;
28456  GNULIB_LOCALTIME=0;
28457  GNULIB_NANOSLEEP=0;
28458  GNULIB_STRFTIME=0;
28459  GNULIB_STRPTIME=0;
28460  GNULIB_TIMEGM=0;
28461  GNULIB_TIME_R=0;
28462  GNULIB_TIME_RZ=0;
28463  GNULIB_TZSET=0;
28464    HAVE_DECL_LOCALTIME_R=1;
28465  HAVE_NANOSLEEP=1;
28466  HAVE_STRPTIME=1;
28467  HAVE_TIMEGM=1;
28468  HAVE_TZSET=1;
28469    HAVE_TIMEZONE_T=0;
28470        REPLACE_CTIME=GNULIB_PORTCHECK;
28471  REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
28472  REPLACE_MKTIME=GNULIB_PORTCHECK;
28473  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
28474  REPLACE_STRFTIME=GNULIB_PORTCHECK;
28475  REPLACE_TIMEGM=GNULIB_PORTCHECK;
28476  REPLACE_TZSET=GNULIB_PORTCHECK;
28477
28478      : ${GNULIB_GETTIMEOFDAY=0};
28479        REPLACE_GMTIME=0;
28480  REPLACE_LOCALTIME=0;
28481
28482
28483
28484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
28485$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
28486if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
28487  $as_echo_n "(cached) " >&6
28488else
28489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28490/* end confdefs.h.  */
28491#include <time.h>
28492
28493int
28494main ()
28495{
28496static struct timespec x; x.tv_sec = x.tv_nsec;
28497  ;
28498  return 0;
28499}
28500_ACEOF
28501if ac_fn_c_try_compile "$LINENO"; then :
28502  gl_cv_sys_struct_timespec_in_time_h=yes
28503else
28504  gl_cv_sys_struct_timespec_in_time_h=no
28505fi
28506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507fi
28508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
28509$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
28510
28511  TIME_H_DEFINES_STRUCT_TIMESPEC=0
28512  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
28513  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
28514  UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
28515  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
28516    TIME_H_DEFINES_STRUCT_TIMESPEC=1
28517  else
28518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
28519$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
28520if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
28521  $as_echo_n "(cached) " >&6
28522else
28523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28524/* end confdefs.h.  */
28525#include <sys/time.h>
28526
28527int
28528main ()
28529{
28530static struct timespec x; x.tv_sec = x.tv_nsec;
28531  ;
28532  return 0;
28533}
28534_ACEOF
28535if ac_fn_c_try_compile "$LINENO"; then :
28536  gl_cv_sys_struct_timespec_in_sys_time_h=yes
28537else
28538  gl_cv_sys_struct_timespec_in_sys_time_h=no
28539fi
28540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28541fi
28542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
28543$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
28544    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
28545      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
28546    else
28547      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
28548$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
28549if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
28550  $as_echo_n "(cached) " >&6
28551else
28552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28553/* end confdefs.h.  */
28554#include <pthread.h>
28555
28556int
28557main ()
28558{
28559static struct timespec x; x.tv_sec = x.tv_nsec;
28560  ;
28561  return 0;
28562}
28563_ACEOF
28564if ac_fn_c_try_compile "$LINENO"; then :
28565  gl_cv_sys_struct_timespec_in_pthread_h=yes
28566else
28567  gl_cv_sys_struct_timespec_in_pthread_h=no
28568fi
28569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28570fi
28571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
28572$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
28573      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
28574        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
28575      else
28576        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
28577$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
28578if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
28579  $as_echo_n "(cached) " >&6
28580else
28581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28582/* end confdefs.h.  */
28583#include <unistd.h>
28584
28585int
28586main ()
28587{
28588static struct timespec x; x.tv_sec = x.tv_nsec;
28589  ;
28590  return 0;
28591}
28592_ACEOF
28593if ac_fn_c_try_compile "$LINENO"; then :
28594  gl_cv_sys_struct_timespec_in_unistd_h=yes
28595else
28596  gl_cv_sys_struct_timespec_in_unistd_h=no
28597fi
28598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599fi
28600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
28601$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
28602        if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
28603          UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
28604        fi
28605      fi
28606    fi
28607  fi
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624     if test $gl_cv_have_include_next = yes; then
28625       gl_cv_next_time_h='<'time.h'>'
28626     else
28627       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
28628$as_echo_n "checking absolute name of <time.h>... " >&6; }
28629if ${gl_cv_next_time_h+:} false; then :
28630  $as_echo_n "(cached) " >&6
28631else
28632
28633
28634
28635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28636/* end confdefs.h.  */
28637#include <time.h>
28638_ACEOF
28639                case "$host_os" in
28640    aix*) gl_absname_cpp="$ac_cpp -C" ;;
28641    *)    gl_absname_cpp="$ac_cpp" ;;
28642  esac
28643
28644  case "$host_os" in
28645    mingw*)
28646                                          gl_dirsep_regex='[/\\]'
28647      ;;
28648    *)
28649      gl_dirsep_regex='\/'
28650      ;;
28651  esac
28652      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28653  gl_header_literal_regex=`echo 'time.h' \
28654                           | sed -e "$gl_make_literal_regex_sed"`
28655  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28656      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28657      s|^/[^/]|//&|
28658      p
28659      q
28660    }'
28661
28662        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28663  sed -n "$gl_absolute_header_sed"`
28664
28665           gl_header=$gl_cv_absolute_time_h
28666           gl_cv_next_time_h='"'$gl_header'"'
28667
28668
28669fi
28670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
28671$as_echo "$gl_cv_next_time_h" >&6; }
28672     fi
28673     NEXT_TIME_H=$gl_cv_next_time_h
28674
28675     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28676       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28677       gl_next_as_first_directive='<'time.h'>'
28678     else
28679       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28680       gl_next_as_first_directive=$gl_cv_next_time_h
28681     fi
28682     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
28698i\
286990
28700q
28701'
28702gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
28703i\
287040
28705q
28706'
28707gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
28708i\
287090
28710q
28711'
28712
28713
28714  if test "$HAVE_LIBUNISTRING" = yes; then
28715    LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
28716    LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
28717    LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
28718  fi
28719
28720ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
28721if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
28722  ac_have_decl=1
28723else
28724  ac_have_decl=0
28725fi
28726
28727cat >>confdefs.h <<_ACEOF
28728#define HAVE_DECL_VSNPRINTF $ac_have_decl
28729_ACEOF
28730
28731
28732  GNULIB_BTOWC=0;
28733  GNULIB_WCTOB=0;
28734  GNULIB_MBSINIT=0;
28735  GNULIB_MBRTOWC=0;
28736  GNULIB_MBRLEN=0;
28737  GNULIB_MBSRTOWCS=0;
28738  GNULIB_MBSNRTOWCS=0;
28739  GNULIB_WCRTOMB=0;
28740  GNULIB_WCSRTOMBS=0;
28741  GNULIB_WCSNRTOMBS=0;
28742  GNULIB_WCWIDTH=0;
28743  GNULIB_WMEMCHR=0;
28744  GNULIB_WMEMCMP=0;
28745  GNULIB_WMEMCPY=0;
28746  GNULIB_WMEMMOVE=0;
28747  GNULIB_WMEMPCPY=0;
28748  GNULIB_WMEMSET=0;
28749  GNULIB_WCSLEN=0;
28750  GNULIB_WCSNLEN=0;
28751  GNULIB_WCSCPY=0;
28752  GNULIB_WCPCPY=0;
28753  GNULIB_WCSNCPY=0;
28754  GNULIB_WCPNCPY=0;
28755  GNULIB_WCSCAT=0;
28756  GNULIB_WCSNCAT=0;
28757  GNULIB_WCSCMP=0;
28758  GNULIB_WCSNCMP=0;
28759  GNULIB_WCSCASECMP=0;
28760  GNULIB_WCSNCASECMP=0;
28761  GNULIB_WCSCOLL=0;
28762  GNULIB_WCSXFRM=0;
28763  GNULIB_WCSDUP=0;
28764  GNULIB_WCSCHR=0;
28765  GNULIB_WCSRCHR=0;
28766  GNULIB_WCSCSPN=0;
28767  GNULIB_WCSSPN=0;
28768  GNULIB_WCSPBRK=0;
28769  GNULIB_WCSSTR=0;
28770  GNULIB_WCSTOK=0;
28771  GNULIB_WCSWIDTH=0;
28772  GNULIB_WCSFTIME=0;
28773    HAVE_BTOWC=1;
28774  HAVE_MBSINIT=1;
28775  HAVE_MBRTOWC=1;
28776  HAVE_MBRLEN=1;
28777  HAVE_MBSRTOWCS=1;
28778  HAVE_MBSNRTOWCS=1;
28779  HAVE_WCRTOMB=1;
28780  HAVE_WCSRTOMBS=1;
28781  HAVE_WCSNRTOMBS=1;
28782  HAVE_WMEMCHR=1;
28783  HAVE_WMEMCMP=1;
28784  HAVE_WMEMCPY=1;
28785  HAVE_WMEMMOVE=1;
28786  HAVE_WMEMPCPY=1;
28787  HAVE_WMEMSET=1;
28788  HAVE_WCSLEN=1;
28789  HAVE_WCSNLEN=1;
28790  HAVE_WCSCPY=1;
28791  HAVE_WCPCPY=1;
28792  HAVE_WCSNCPY=1;
28793  HAVE_WCPNCPY=1;
28794  HAVE_WCSCAT=1;
28795  HAVE_WCSNCAT=1;
28796  HAVE_WCSCMP=1;
28797  HAVE_WCSNCMP=1;
28798  HAVE_WCSCASECMP=1;
28799  HAVE_WCSNCASECMP=1;
28800  HAVE_WCSCOLL=1;
28801  HAVE_WCSXFRM=1;
28802  HAVE_WCSDUP=1;
28803  HAVE_WCSCHR=1;
28804  HAVE_WCSRCHR=1;
28805  HAVE_WCSCSPN=1;
28806  HAVE_WCSSPN=1;
28807  HAVE_WCSPBRK=1;
28808  HAVE_WCSSTR=1;
28809  HAVE_WCSTOK=1;
28810  HAVE_WCSWIDTH=1;
28811  HAVE_WCSFTIME=1;
28812  HAVE_DECL_WCTOB=1;
28813  HAVE_DECL_WCWIDTH=1;
28814  REPLACE_MBSTATE_T=0;
28815  REPLACE_BTOWC=0;
28816  REPLACE_WCTOB=0;
28817  REPLACE_MBSINIT=0;
28818  REPLACE_MBRTOWC=0;
28819  REPLACE_MBRLEN=0;
28820  REPLACE_MBSRTOWCS=0;
28821  REPLACE_MBSNRTOWCS=0;
28822  REPLACE_WCRTOMB=0;
28823  REPLACE_WCSRTOMBS=0;
28824  REPLACE_WCSNRTOMBS=0;
28825  REPLACE_WCWIDTH=0;
28826  REPLACE_WCSWIDTH=0;
28827  REPLACE_WCSFTIME=0;
28828  REPLACE_WCSTOK=0;
28829
28830
28831            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
28832$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
28833if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
28834  $as_echo_n "(cached) " >&6
28835else
28836  gl_cv_header_wchar_h_correct_inline=yes
28837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28838/* end confdefs.h.  */
28839
28840       #define wcstod renamed_wcstod
28841/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28842   <wchar.h>.
28843   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28844   included before <wchar.h>.  */
28845#include <stddef.h>
28846#include <stdio.h>
28847#include <time.h>
28848#include <wchar.h>
28849extern int zero (void);
28850int main () { return zero(); }
28851
28852_ACEOF
28853                              save_ac_compile="$ac_compile"
28854     ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
28855     if echo '#include "conftest.c"' >conftest1.c &&
28856        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28857  (eval $ac_compile) 2>&5
28858  ac_status=$?
28859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28860  test $ac_status = 0; }; then
28861       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862/* end confdefs.h.  */
28863
28864         #define wcstod renamed_wcstod
28865/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28866   <wchar.h>.
28867   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28868   included before <wchar.h>.  */
28869#include <stddef.h>
28870#include <stdio.h>
28871#include <time.h>
28872#include <wchar.h>
28873int zero (void) { return 0; }
28874
28875_ACEOF
28876              ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
28877       if echo '#include "conftest.c"' >conftest2.c &&
28878          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28879  (eval $ac_compile) 2>&5
28880  ac_status=$?
28881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882  test $ac_status = 0; }; then
28883         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
28884           :
28885         else
28886           gl_cv_header_wchar_h_correct_inline=no
28887         fi
28888       fi
28889     fi
28890     ac_compile="$save_ac_compile"
28891     rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
28892
28893fi
28894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
28895$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
28896  if test $gl_cv_header_wchar_h_correct_inline = no; then
28897    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
28898This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
28899C99 mode. You have four options:
28900  - Add the flag -fgnu89-inline to CC and reconfigure, or
28901  - Fix your include files, using parts of
28902    <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
28903  - Use a gcc version older than 4.3, or
28904  - Don't use the flags -std=c99 or -std=gnu99.
28905Configuration aborted." "$LINENO" 5
28906  fi
28907
28908
28909
28910
28911
28912  if test $ac_cv_header_crtdefs_h = yes; then
28913    HAVE_CRTDEFS_H=1
28914  else
28915    HAVE_CRTDEFS_H=0
28916  fi
28917
28918
28919
28920   if true; then
28921  GL_COND_LIBTOOL_TRUE=
28922  GL_COND_LIBTOOL_FALSE='#'
28923else
28924  GL_COND_LIBTOOL_TRUE='#'
28925  GL_COND_LIBTOOL_FALSE=
28926fi
28927
28928  gl_cond_libtool=true
28929  gl_m4_base='gnulib-m4'
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940  gl_source_base='lib'
28941
28942
28943  if test $ac_cv_func_alloca_works = no; then
28944    :
28945  fi
28946
28947  # Define an additional variable used in the Makefile substitution.
28948  if test $ac_cv_working_alloca_h = yes; then
28949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
28950$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
28951if ${gl_cv_rpl_alloca+:} false; then :
28952  $as_echo_n "(cached) " >&6
28953else
28954
28955      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28956/* end confdefs.h.  */
28957
28958#if defined __GNUC__ || defined _AIX || defined _MSC_VER
28959        Need own alloca
28960#endif
28961
28962_ACEOF
28963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28964  $EGREP "Need own alloca" >/dev/null 2>&1; then :
28965  gl_cv_rpl_alloca=yes
28966else
28967  gl_cv_rpl_alloca=no
28968fi
28969rm -f conftest*
28970
28971
28972fi
28973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
28974$as_echo "$gl_cv_rpl_alloca" >&6; }
28975    if test $gl_cv_rpl_alloca = yes; then
28976
28977$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28978
28979      ALLOCA_H=alloca.h
28980    else
28981                  ALLOCA_H=
28982    fi
28983  else
28984    ALLOCA_H=alloca.h
28985  fi
28986
28987   if test -n "$ALLOCA_H"; then
28988  GL_GENERATE_ALLOCA_H_TRUE=
28989  GL_GENERATE_ALLOCA_H_FALSE='#'
28990else
28991  GL_GENERATE_ALLOCA_H_TRUE='#'
28992  GL_GENERATE_ALLOCA_H_FALSE=
28993fi
28994
28995
28996  if test $ac_cv_working_alloca_h = yes; then
28997    HAVE_ALLOCA_H=1
28998  else
28999    HAVE_ALLOCA_H=0
29000  fi
29001
29002
29003
29004
29005$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
29006
29007
29008
29009
29010
29011
29012    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29013      REPLACE_CLOSE=1
29014    fi
29015
29016
29017
29018
29019
29020
29021  if test $ac_cv_header_sys_socket_h != yes; then
29022                    for ac_header in winsock2.h
29023do :
29024  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29025if test "x$ac_cv_header_winsock2_h" = xyes; then :
29026  cat >>confdefs.h <<_ACEOF
29027#define HAVE_WINSOCK2_H 1
29028_ACEOF
29029
29030fi
29031
29032done
29033
29034  fi
29035  if test "$ac_cv_header_winsock2_h" = yes; then
29036    HAVE_WINSOCK2_H=1
29037    UNISTD_H_HAVE_WINSOCK2_H=1
29038    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29039  else
29040    HAVE_WINSOCK2_H=0
29041  fi
29042
29043
29044    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
29045                        REPLACE_CLOSE=1
29046    fi
29047
29048
29049
29050  if test $REPLACE_CLOSE = 1; then
29051
29052
29053
29054
29055
29056
29057
29058
29059  lts_LIBOBJS="$lts_LIBOBJS close.$ac_objext"
29060
29061  fi
29062
29063
29064
29065
29066
29067          GNULIB_CLOSE=1
29068
29069
29070
29071
29072
29073$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
29074
29075
29076
29077
29078
29079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
29080$as_echo_n "checking whether // is distinct from /... " >&6; }
29081if ${gl_cv_double_slash_root+:} false; then :
29082  $as_echo_n "(cached) " >&6
29083else
29084   if test x"$cross_compiling" = xyes ; then
29085        # When cross-compiling, there is no way to tell whether // is special
29086        # short of a list of hosts.  However, the only known hosts to date
29087        # that have a distinct // are Apollo DomainOS (too old to port to),
29088        # Cygwin, and z/OS.  If anyone knows of another system for which // has
29089        # special semantics and is distinct from /, please report it to
29090        # <bug-gnulib@gnu.org>.
29091        case $host in
29092          *-cygwin | i370-ibm-openedition)
29093            gl_cv_double_slash_root=yes ;;
29094          *)
29095            # Be optimistic and assume that / and // are the same when we
29096            # don't know.
29097            gl_cv_double_slash_root='unknown, assuming no' ;;
29098        esac
29099      else
29100        set x `ls -di / // 2>/dev/null`
29101        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
29102          gl_cv_double_slash_root=no
29103        else
29104          gl_cv_double_slash_root=yes
29105        fi
29106      fi
29107fi
29108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
29109$as_echo "$gl_cv_double_slash_root" >&6; }
29110  if test "$gl_cv_double_slash_root" = yes; then
29111
29112$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
29113
29114  fi
29115
29116
29117
29118
29119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
29120$as_echo_n "checking whether dup2 works... " >&6; }
29121if ${gl_cv_func_dup2_works+:} false; then :
29122  $as_echo_n "(cached) " >&6
29123else
29124  if test "$cross_compiling" = yes; then :
29125  case "$host_os" in
29126         mingw*) # on this platform, dup2 always returns 0 for success
29127           gl_cv_func_dup2_works="guessing no" ;;
29128         cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
29129           gl_cv_func_dup2_works="guessing no" ;;
29130         aix* | freebsd*)
29131                 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
29132                 # not EBADF.
29133           gl_cv_func_dup2_works="guessing no" ;;
29134         haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
29135           gl_cv_func_dup2_works="guessing no" ;;
29136         *-android*) # implemented using dup3(), which fails if oldfd == newfd
29137           gl_cv_func_dup2_works="guessing no" ;;
29138         os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
29139           gl_cv_func_dup2_works="guessing no" ;;
29140         *) gl_cv_func_dup2_works="guessing yes" ;;
29141       esac
29142else
29143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29144/* end confdefs.h.  */
29145
29146       #include <errno.h>
29147           #include <fcntl.h>
29148           #include <limits.h>
29149           #include <sys/resource.h>
29150           #include <unistd.h>
29151           #ifndef RLIM_SAVED_CUR
29152           # define RLIM_SAVED_CUR RLIM_INFINITY
29153           #endif
29154           #ifndef RLIM_SAVED_MAX
29155           # define RLIM_SAVED_MAX RLIM_INFINITY
29156           #endif
29157
29158int
29159main ()
29160{
29161int result = 0;
29162           int bad_fd = INT_MAX;
29163           struct rlimit rlim;
29164           if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
29165               && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
29166               && rlim.rlim_cur != RLIM_INFINITY
29167               && rlim.rlim_cur != RLIM_SAVED_MAX
29168               && rlim.rlim_cur != RLIM_SAVED_CUR)
29169             bad_fd = rlim.rlim_cur;
29170           #ifdef FD_CLOEXEC
29171             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
29172               result |= 1;
29173           #endif
29174           if (dup2 (1, 1) != 1)
29175             result |= 2;
29176           #ifdef FD_CLOEXEC
29177             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
29178               result |= 4;
29179           #endif
29180           close (0);
29181           if (dup2 (0, 0) != -1)
29182             result |= 8;
29183           /* Many gnulib modules require POSIX conformance of EBADF.  */
29184           if (dup2 (2, bad_fd) == -1 && errno != EBADF)
29185             result |= 16;
29186           /* Flush out some cygwin core dumps.  */
29187           if (dup2 (2, -1) != -1 || errno != EBADF)
29188             result |= 32;
29189           dup2 (2, 255);
29190           dup2 (2, 256);
29191           /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
29192           {
29193             int fd = open (".", O_RDONLY);
29194             if (fd == -1)
29195               result |= 64;
29196             else if (dup2 (fd, fd + 1) == -1)
29197               result |= 128;
29198             close (fd);
29199           }
29200           return result;
29201  ;
29202  return 0;
29203}
29204
29205_ACEOF
29206if ac_fn_c_try_run "$LINENO"; then :
29207  gl_cv_func_dup2_works=yes
29208else
29209  gl_cv_func_dup2_works=no
29210fi
29211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29212  conftest.$ac_objext conftest.beam conftest.$ac_ext
29213fi
29214
29215
29216fi
29217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
29218$as_echo "$gl_cv_func_dup2_works" >&6; }
29219  case "$gl_cv_func_dup2_works" in
29220    *yes) ;;
29221    *)
29222      REPLACE_DUP2=1
29223      for ac_func in setdtablesize
29224do :
29225  ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
29226if test "x$ac_cv_func_setdtablesize" = xyes; then :
29227  cat >>confdefs.h <<_ACEOF
29228#define HAVE_SETDTABLESIZE 1
29229_ACEOF
29230
29231fi
29232done
29233
29234      ;;
29235  esac
29236
29237
29238  if test $REPLACE_DUP2 = 1; then
29239
29240
29241
29242
29243
29244
29245
29246
29247  lts_LIBOBJS="$lts_LIBOBJS dup2.$ac_objext"
29248
29249
29250  fi
29251
29252
29253
29254
29255
29256          GNULIB_DUP2=1
29257
29258
29259
29260
29261
29262$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
29263
29264
29265
29266
29267
29268      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
29269$as_echo_n "checking for error_at_line... " >&6; }
29270if ${ac_cv_lib_error_at_line+:} false; then :
29271  $as_echo_n "(cached) " >&6
29272else
29273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29274/* end confdefs.h.  */
29275#include <error.h>
29276int
29277main ()
29278{
29279error_at_line (0, 0, "", 0, "an error occurred");
29280  ;
29281  return 0;
29282}
29283_ACEOF
29284if ac_fn_c_try_link "$LINENO"; then :
29285  ac_cv_lib_error_at_line=yes
29286else
29287  ac_cv_lib_error_at_line=no
29288fi
29289rm -f core conftest.err conftest.$ac_objext \
29290    conftest$ac_exeext conftest.$ac_ext
29291fi
29292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
29293$as_echo "$ac_cv_lib_error_at_line" >&6; }
29294
29295  if test $ac_cv_lib_error_at_line = no; then
29296
29297
29298
29299
29300
29301
29302
29303
29304  lts_LIBOBJS="$lts_LIBOBJS error.$ac_objext"
29305
29306
29307
29308  :
29309
29310  fi
29311
29312
29313
29314
29315
29316
29317
29318  FABS_LIBM=
29319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fabs can be used without linking with libm" >&5
29320$as_echo_n "checking whether fabs can be used without linking with libm... " >&6; }
29321if ${gl_cv_func_fabs_no_libm+:} false; then :
29322  $as_echo_n "(cached) " >&6
29323else
29324
29325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29326/* end confdefs.h.  */
29327#ifndef __NO_MATH_INLINES
29328             # define __NO_MATH_INLINES 1 /* for glibc */
29329             #endif
29330             #include <math.h>
29331
29332             double (* volatile funcptr) (double) = fabs;
29333             int i_ret;
29334             float f_ret;
29335             double d_ret;
29336             long double l_ret;
29337int
29338main ()
29339{
29340double y = funcptr (1.6180339887) + fabs (1.6180339887);
29341
29342             return y < 0.3 || y > 1.7;
29343
29344  ;
29345  return 0;
29346}
29347_ACEOF
29348if ac_fn_c_try_link "$LINENO"; then :
29349  gl_cv_func_fabs_no_libm=yes
29350else
29351  gl_cv_func_fabs_no_libm=no
29352fi
29353rm -f core conftest.err conftest.$ac_objext \
29354    conftest$ac_exeext conftest.$ac_ext
29355
29356fi
29357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fabs_no_libm" >&5
29358$as_echo "$gl_cv_func_fabs_no_libm" >&6; }
29359  if test $gl_cv_func_fabs_no_libm = no; then
29360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fabs can be used with libm" >&5
29361$as_echo_n "checking whether fabs can be used with libm... " >&6; }
29362if ${gl_cv_func_fabs_in_libm+:} false; then :
29363  $as_echo_n "(cached) " >&6
29364else
29365
29366        save_LIBS="$LIBS"
29367        LIBS="$LIBS -lm"
29368        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29369/* end confdefs.h.  */
29370#ifndef __NO_MATH_INLINES
29371               # define __NO_MATH_INLINES 1 /* for glibc */
29372               #endif
29373               #include <math.h>
29374
29375               double (* volatile funcptr) (double) = fabs;
29376               int i_ret;
29377               float f_ret;
29378               double d_ret;
29379               long double l_ret;
29380int
29381main ()
29382{
29383double y = funcptr (1.6180339887) + fabs (1.6180339887);
29384
29385               return y < 0.3 || y > 1.7;
29386
29387  ;
29388  return 0;
29389}
29390_ACEOF
29391if ac_fn_c_try_link "$LINENO"; then :
29392  gl_cv_func_fabs_in_libm=yes
29393else
29394  gl_cv_func_fabs_in_libm=no
29395fi
29396rm -f core conftest.err conftest.$ac_objext \
29397    conftest$ac_exeext conftest.$ac_ext
29398        LIBS="$save_LIBS"
29399
29400fi
29401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fabs_in_libm" >&5
29402$as_echo "$gl_cv_func_fabs_in_libm" >&6; }
29403    if test $gl_cv_func_fabs_in_libm = yes; then
29404      FABS_LIBM=-lm
29405    fi
29406  fi
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416  :
29417
29418
29419
29420
29421
29422
29423  if test $ac_cv_func_fcntl = no; then
29424
29425
29426
29427  if test $ac_cv_func_fcntl = no; then
29428    HAVE_FCNTL=0
29429  else
29430    REPLACE_FCNTL=1
29431  fi
29432
29433  else
29434            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
29435$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
29436if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
29437  $as_echo_n "(cached) " >&6
29438else
29439  if test "$cross_compiling" = yes; then :
29440  case $host_os in
29441            aix* | cygwin* | haiku*)
29442               gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
29443            *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
29444          esac
29445else
29446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29447/* end confdefs.h.  */
29448#include <errno.h>
29449              #include <fcntl.h>
29450              #include <limits.h>
29451              #include <sys/resource.h>
29452              #include <unistd.h>
29453              #ifndef RLIM_SAVED_CUR
29454              # define RLIM_SAVED_CUR RLIM_INFINITY
29455              #endif
29456              #ifndef RLIM_SAVED_MAX
29457              # define RLIM_SAVED_MAX RLIM_INFINITY
29458              #endif
29459
29460int
29461main ()
29462{
29463int result = 0;
29464              int bad_fd = INT_MAX;
29465              struct rlimit rlim;
29466              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
29467                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
29468                  && rlim.rlim_cur != RLIM_INFINITY
29469                  && rlim.rlim_cur != RLIM_SAVED_MAX
29470                  && rlim.rlim_cur != RLIM_SAVED_CUR)
29471                bad_fd = rlim.rlim_cur;
29472              if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
29473              if (errno != EINVAL) result |= 2;
29474              if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
29475              if (errno != EINVAL) result |= 8;
29476              /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
29477              {
29478                int fd;
29479                fd = open (".", O_RDONLY);
29480                if (fd == -1)
29481                  result |= 16;
29482                else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
29483                  result |= 32;
29484
29485                close (fd);
29486              }
29487              return result;
29488  ;
29489  return 0;
29490}
29491_ACEOF
29492if ac_fn_c_try_run "$LINENO"; then :
29493  gl_cv_func_fcntl_f_dupfd_works=yes
29494else
29495  gl_cv_func_fcntl_f_dupfd_works=no
29496fi
29497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29498  conftest.$ac_objext conftest.beam conftest.$ac_ext
29499fi
29500
29501fi
29502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
29503$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
29504    case $gl_cv_func_fcntl_f_dupfd_works in
29505      *yes) ;;
29506      *)
29507
29508
29509  if test $ac_cv_func_fcntl = no; then
29510    HAVE_FCNTL=0
29511  else
29512    REPLACE_FCNTL=1
29513  fi
29514
29515
29516$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
29517 ;;
29518    esac
29519
29520        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
29521$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
29522if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
29523  $as_echo_n "(cached) " >&6
29524else
29525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29526/* end confdefs.h.  */
29527
29528#include <fcntl.h>
29529#ifndef F_DUPFD_CLOEXEC
29530choke me
29531#endif
29532
29533int
29534main ()
29535{
29536
29537  ;
29538  return 0;
29539}
29540_ACEOF
29541if ac_fn_c_try_compile "$LINENO"; then :
29542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29543/* end confdefs.h.  */
29544
29545#ifdef __linux__
29546/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
29547   it to support the semantics on older kernels that failed with EINVAL.  */
29548choke me
29549#endif
29550
29551int
29552main ()
29553{
29554
29555  ;
29556  return 0;
29557}
29558_ACEOF
29559if ac_fn_c_try_compile "$LINENO"; then :
29560  gl_cv_func_fcntl_f_dupfd_cloexec=yes
29561else
29562  gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
29563fi
29564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29565else
29566  gl_cv_func_fcntl_f_dupfd_cloexec=no
29567fi
29568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569fi
29570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
29571$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
29572    if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
29573
29574
29575
29576  if test $ac_cv_func_fcntl = no; then
29577    HAVE_FCNTL=0
29578  else
29579    REPLACE_FCNTL=1
29580  fi
29581
29582          fi
29583  fi
29584
29585
29586  if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
29587
29588
29589
29590
29591
29592
29593
29594
29595  lts_LIBOBJS="$lts_LIBOBJS fcntl.$ac_objext"
29596
29597  fi
29598
29599
29600
29601
29602
29603          GNULIB_FCNTL=1
29604
29605
29606
29607
29608
29609$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624     if test $gl_cv_have_include_next = yes; then
29625       gl_cv_next_fcntl_h='<'fcntl.h'>'
29626     else
29627       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
29628$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
29629if ${gl_cv_next_fcntl_h+:} false; then :
29630  $as_echo_n "(cached) " >&6
29631else
29632
29633
29634
29635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636/* end confdefs.h.  */
29637#include <fcntl.h>
29638_ACEOF
29639                case "$host_os" in
29640    aix*) gl_absname_cpp="$ac_cpp -C" ;;
29641    *)    gl_absname_cpp="$ac_cpp" ;;
29642  esac
29643
29644  case "$host_os" in
29645    mingw*)
29646                                          gl_dirsep_regex='[/\\]'
29647      ;;
29648    *)
29649      gl_dirsep_regex='\/'
29650      ;;
29651  esac
29652      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29653  gl_header_literal_regex=`echo 'fcntl.h' \
29654                           | sed -e "$gl_make_literal_regex_sed"`
29655  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29656      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29657      s|^/[^/]|//&|
29658      p
29659      q
29660    }'
29661
29662        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29663  sed -n "$gl_absolute_header_sed"`
29664
29665           gl_header=$gl_cv_absolute_fcntl_h
29666           gl_cv_next_fcntl_h='"'$gl_header'"'
29667
29668
29669fi
29670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
29671$as_echo "$gl_cv_next_fcntl_h" >&6; }
29672     fi
29673     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
29674
29675     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29676       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29677       gl_next_as_first_directive='<'fcntl.h'>'
29678     else
29679       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29680       gl_next_as_first_directive=$gl_cv_next_fcntl_h
29681     fi
29682     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701  FLOAT_H=
29702  REPLACE_FLOAT_LDBL=0
29703  case "$host_os" in
29704    aix* | beos* | openbsd* | mirbsd* | irix*)
29705      FLOAT_H=float.h
29706      ;;
29707    freebsd* | dragonfly*)
29708      case "$host_cpu" in
29709        i[34567]86 )
29710          FLOAT_H=float.h
29711          ;;
29712        x86_64 )
29713          # On x86_64 systems, the C compiler may still be generating
29714          # 32-bit code.
29715          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29716/* end confdefs.h.  */
29717#if defined __LP64__ || defined __x86_64__ || defined __amd64__
29718                  int ok;
29719                 #else
29720                  error fail
29721                 #endif
29722
29723_ACEOF
29724if ac_fn_c_try_compile "$LINENO"; then :
29725
29726else
29727  FLOAT_H=float.h
29728fi
29729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29730          ;;
29731      esac
29732      ;;
29733    linux*)
29734      case "$host_cpu" in
29735        powerpc*)
29736          FLOAT_H=float.h
29737          ;;
29738      esac
29739      ;;
29740  esac
29741  case "$host_os" in
29742    aix* | freebsd* | dragonfly* | linux*)
29743      if test -n "$FLOAT_H"; then
29744        REPLACE_FLOAT_LDBL=1
29745      fi
29746      ;;
29747  esac
29748
29749    REPLACE_ITOLD=0
29750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
29751$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
29752if ${gl_cv_func_itold_works+:} false; then :
29753  $as_echo_n "(cached) " >&6
29754else
29755
29756      if test "$cross_compiling" = yes; then :
29757  case "$host" in
29758           sparc*-*-linux*)
29759             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760/* end confdefs.h.  */
29761#if defined __LP64__ || defined __arch64__
29762                    int ok;
29763                   #else
29764                    error fail
29765                   #endif
29766
29767_ACEOF
29768if ac_fn_c_try_compile "$LINENO"; then :
29769  gl_cv_func_itold_works="guessing no"
29770else
29771  gl_cv_func_itold_works="guessing yes"
29772fi
29773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29774             ;;
29775                   # Guess yes on native Windows.
29776           mingw*) gl_cv_func_itold_works="guessing yes" ;;
29777           *)      gl_cv_func_itold_works="guessing yes" ;;
29778         esac
29779
29780else
29781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29782/* end confdefs.h.  */
29783
29784int i = -1;
29785volatile long double ld;
29786int main ()
29787{
29788  ld += i * 1.0L;
29789  if (ld > 0)
29790    return 1;
29791  return 0;
29792}
29793_ACEOF
29794if ac_fn_c_try_run "$LINENO"; then :
29795  gl_cv_func_itold_works=yes
29796else
29797  gl_cv_func_itold_works=no
29798fi
29799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29800  conftest.$ac_objext conftest.beam conftest.$ac_ext
29801fi
29802
29803
29804fi
29805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
29806$as_echo "$gl_cv_func_itold_works" >&6; }
29807  case "$gl_cv_func_itold_works" in
29808    *no)
29809      REPLACE_ITOLD=1
29810                  FLOAT_H=float.h
29811      ;;
29812  esac
29813
29814  if test -n "$FLOAT_H"; then
29815
29816
29817
29818
29819
29820
29821
29822
29823     if test $gl_cv_have_include_next = yes; then
29824       gl_cv_next_float_h='<'float.h'>'
29825     else
29826       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
29827$as_echo_n "checking absolute name of <float.h>... " >&6; }
29828if ${gl_cv_next_float_h+:} false; then :
29829  $as_echo_n "(cached) " >&6
29830else
29831
29832
29833
29834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29835/* end confdefs.h.  */
29836#include <float.h>
29837_ACEOF
29838                case "$host_os" in
29839    aix*) gl_absname_cpp="$ac_cpp -C" ;;
29840    *)    gl_absname_cpp="$ac_cpp" ;;
29841  esac
29842
29843  case "$host_os" in
29844    mingw*)
29845                                          gl_dirsep_regex='[/\\]'
29846      ;;
29847    *)
29848      gl_dirsep_regex='\/'
29849      ;;
29850  esac
29851      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29852  gl_header_literal_regex=`echo 'float.h' \
29853                           | sed -e "$gl_make_literal_regex_sed"`
29854  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29855      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29856      s|^/[^/]|//&|
29857      p
29858      q
29859    }'
29860
29861        gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29862  sed -n "$gl_absolute_header_sed"`
29863
29864           gl_header=$gl_cv_absolute_float_h
29865           gl_cv_next_float_h='"'$gl_header'"'
29866
29867
29868fi
29869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
29870$as_echo "$gl_cv_next_float_h" >&6; }
29871     fi
29872     NEXT_FLOAT_H=$gl_cv_next_float_h
29873
29874     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29875       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29876       gl_next_as_first_directive='<'float.h'>'
29877     else
29878       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29879       gl_next_as_first_directive=$gl_cv_next_float_h
29880     fi
29881     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
29882
29883
29884
29885
29886  fi
29887
29888   if test -n "$FLOAT_H"; then
29889  GL_GENERATE_FLOAT_H_TRUE=
29890  GL_GENERATE_FLOAT_H_FALSE='#'
29891else
29892  GL_GENERATE_FLOAT_H_TRUE='#'
29893  GL_GENERATE_FLOAT_H_FALSE=
29894fi
29895
29896
29897
29898  if test $REPLACE_FLOAT_LDBL = 1; then
29899
29900
29901
29902
29903
29904
29905
29906
29907  lts_LIBOBJS="$lts_LIBOBJS float.$ac_objext"
29908
29909  fi
29910  if test $REPLACE_ITOLD = 1; then
29911
29912
29913
29914
29915
29916
29917
29918
29919  lts_LIBOBJS="$lts_LIBOBJS itold.$ac_objext"
29920
29921  fi
29922
29923
29924
29925  if test $gl_cv_func_frexp_no_libm = yes; then
29926
29927
29928
29929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
29930$as_echo_n "checking whether frexp works... " >&6; }
29931if ${gl_cv_func_frexp_works+:} false; then :
29932  $as_echo_n "(cached) " >&6
29933else
29934
29935      if test "$cross_compiling" = yes; then :
29936  case "$host_os" in
29937           netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
29938           mingw*) # Guess yes with MSVC, no with mingw.
29939             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29940/* end confdefs.h.  */
29941
29942#ifdef _MSC_VER
29943 Good
29944#endif
29945
29946_ACEOF
29947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29948  $EGREP "Good" >/dev/null 2>&1; then :
29949  gl_cv_func_frexp_works="guessing yes"
29950else
29951  gl_cv_func_frexp_works="guessing no"
29952fi
29953rm -f conftest*
29954
29955             ;;
29956           *) gl_cv_func_frexp_works="guessing yes" ;;
29957         esac
29958
29959else
29960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29961/* end confdefs.h.  */
29962
29963#include <float.h>
29964#include <math.h>
29965#include <string.h>
29966#if HAVE_DECL_ALARM
29967# include <signal.h>
29968# include <unistd.h>
29969#endif
29970/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
29971   ICC 10.0 has a bug when optimizing the expression -zero.
29972   The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
29973   to PowerPC on Mac OS X 10.5.  */
29974#if defined __hpux || defined __sgi || defined __ICC
29975static double
29976compute_minus_zero (void)
29977{
29978  return -DBL_MIN * DBL_MIN;
29979}
29980# define minus_zero compute_minus_zero ()
29981#else
29982double minus_zero = -0.0;
29983#endif
29984int main()
29985{
29986  int result = 0;
29987  int i;
29988  volatile double x;
29989  double zero = 0.0;
29990#if HAVE_DECL_ALARM
29991  /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
29992     number.  Let the test fail in this case.  */
29993  signal (SIGALRM, SIG_DFL);
29994  alarm (5);
29995#endif
29996  /* Test on denormalized numbers.  */
29997  for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
29998    ;
29999  if (x > 0.0)
30000    {
30001      int exp;
30002      double y = frexp (x, &exp);
30003      /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
30004         On NetBSD: y = 0.75. Correct: y = 0.5.  */
30005      if (y != 0.5)
30006        result |= 1;
30007    }
30008  /* Test on infinite numbers.  */
30009  x = 1.0 / zero;
30010  {
30011    int exp;
30012    double y = frexp (x, &exp);
30013    if (y != x)
30014      result |= 2;
30015  }
30016  /* Test on negative zero.  */
30017  x = minus_zero;
30018  {
30019    int exp;
30020    double y = frexp (x, &exp);
30021    if (memcmp (&y, &x, sizeof x))
30022      result |= 4;
30023  }
30024  return result;
30025}
30026_ACEOF
30027if ac_fn_c_try_run "$LINENO"; then :
30028  gl_cv_func_frexp_works=yes
30029else
30030  gl_cv_func_frexp_works=no
30031fi
30032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30033  conftest.$ac_objext conftest.beam conftest.$ac_ext
30034fi
30035
30036
30037fi
30038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
30039$as_echo "$gl_cv_func_frexp_works" >&6; }
30040
30041    case "$gl_cv_func_frexp_works" in
30042      *yes) gl_func_frexp_no_libm=yes ;;
30043      *)    gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
30044    esac
30045  else
30046    gl_func_frexp_no_libm=no
30047        REPLACE_FREXP=1
30048  fi
30049  if test $gl_func_frexp_no_libm = yes; then
30050
30051$as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
30052
30053  fi
30054
30055  if test $gl_func_frexp_no_libm != yes; then
30056
30057
30058
30059
30060
30061
30062
30063
30064  lts_LIBOBJS="$lts_LIBOBJS frexp.$ac_objext"
30065
30066  fi
30067
30068
30069
30070
30071
30072          GNULIB_FREXP=1
30073
30074
30075
30076
30077
30078$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
30079
30080
30081
30082
30083
30084
30085      ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
30086"
30087if test "x$ac_cv_have_decl_frexpl" = xyes; then :
30088
30089else
30090  HAVE_DECL_FREXPL=0
30091fi
30092
30093  if test $HAVE_DECL_FREXPL = 1; then
30094
30095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
30096$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
30097if ${gl_cv_func_frexpl_no_libm+:} false; then :
30098  $as_echo_n "(cached) " >&6
30099else
30100
30101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30102/* end confdefs.h.  */
30103#include <math.h>
30104             long double x;
30105int
30106main ()
30107{
30108int e; return frexpl (x, &e) > 0;
30109  ;
30110  return 0;
30111}
30112_ACEOF
30113if ac_fn_c_try_link "$LINENO"; then :
30114  gl_cv_func_frexpl_no_libm=yes
30115else
30116  gl_cv_func_frexpl_no_libm=no
30117fi
30118rm -f core conftest.err conftest.$ac_objext \
30119    conftest$ac_exeext conftest.$ac_ext
30120
30121fi
30122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
30123$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
30124
30125    if test $gl_cv_func_frexpl_no_libm = yes; then
30126
30127
30128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
30129$as_echo_n "checking whether frexpl works... " >&6; }
30130if ${gl_cv_func_frexpl_works+:} false; then :
30131  $as_echo_n "(cached) " >&6
30132else
30133
30134      if test "$cross_compiling" = yes; then :
30135
30136         case "$host_os" in
30137           aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
30138              gl_cv_func_frexpl_works="guessing no";;
30139           *) gl_cv_func_frexpl_works="guessing yes";;
30140         esac
30141
30142else
30143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30144/* end confdefs.h.  */
30145
30146#include <float.h>
30147#include <math.h>
30148/* Override the values of <float.h>, like done in float.in.h.  */
30149#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
30150# undef LDBL_MIN_EXP
30151# define LDBL_MIN_EXP    (-16381)
30152#endif
30153#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
30154# undef LDBL_MIN_EXP
30155# define LDBL_MIN_EXP    (-16381)
30156#endif
30157#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
30158# undef LDBL_MIN_EXP
30159# define LDBL_MIN_EXP DBL_MIN_EXP
30160#endif
30161#if defined __sgi && (LDBL_MANT_DIG >= 106)
30162# if defined __GNUC__
30163#  undef LDBL_MIN_EXP
30164#  define LDBL_MIN_EXP DBL_MIN_EXP
30165# endif
30166#endif
30167extern
30168#ifdef __cplusplus
30169"C"
30170#endif
30171long double frexpl (long double, int *);
30172int main()
30173{
30174  int result = 0;
30175  volatile long double x;
30176  /* Test on finite numbers that fails on AIX 5.1.  */
30177  x = 16.0L;
30178  {
30179    int exp = -9999;
30180    frexpl (x, &exp);
30181    if (exp != 5)
30182      result |= 1;
30183  }
30184  /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
30185     function returns an invalid (incorrectly normalized) value: it returns
30186               y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
30187     but the correct result is
30188          0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
30189  x = 1.01L;
30190  {
30191    int exp = -9999;
30192    long double y = frexpl (x, &exp);
30193    if (!(exp == 1 && y == 0.505L))
30194      result |= 2;
30195  }
30196  /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
30197     LDBL_MAX_EXP = 16384.
30198     In the loop end test, we test x against Infinity, rather than comparing
30199     i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
30200  {
30201    int i;
30202    for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
30203      {
30204        int exp = -9999;
30205        frexpl (x, &exp);
30206        if (exp != i)
30207          {
30208            result |= 4;
30209            break;
30210          }
30211      }
30212  }
30213  /* Test on denormalized numbers.  */
30214  {
30215    int i;
30216    for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
30217      ;
30218    if (x > 0.0L)
30219      {
30220        int exp;
30221        long double y = frexpl (x, &exp);
30222        /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
30223           exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
30224        if (exp != LDBL_MIN_EXP - 1)
30225          result |= 8;
30226      }
30227  }
30228  /* Test on infinite numbers.  */
30229  x = 1.0L / 0.0L;
30230  {
30231    int exp;
30232    long double y = frexpl (x, &exp);
30233    if (y != x)
30234      result |= 16;
30235  }
30236  return result;
30237}
30238_ACEOF
30239if ac_fn_c_try_run "$LINENO"; then :
30240  gl_cv_func_frexpl_works=yes
30241else
30242  gl_cv_func_frexpl_works=no
30243fi
30244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30245  conftest.$ac_objext conftest.beam conftest.$ac_ext
30246fi
30247
30248
30249fi
30250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
30251$as_echo "$gl_cv_func_frexpl_works" >&6; }
30252
30253      case "$gl_cv_func_frexpl_works" in
30254        *yes) gl_func_frexpl_no_libm=yes ;;
30255        *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
30256      esac
30257    else
30258      gl_func_frexpl_no_libm=no
30259            REPLACE_FREXPL=1
30260    fi
30261    if test $gl_func_frexpl_no_libm = yes; then
30262
30263$as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
30264
30265    fi
30266  fi
30267
30268  if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
30269
30270
30271
30272
30273
30274
30275
30276
30277  lts_LIBOBJS="$lts_LIBOBJS frexpl.$ac_objext"
30278
30279  fi
30280
30281
30282
30283
30284
30285          GNULIB_FREXPL=1
30286
30287
30288
30289
30290
30291$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
30292
30293
30294
30295
30296
30297
30298
30299  case "$host_os" in
30300    mingw* | solaris*)
30301                        REPLACE_FSTAT=1
30302      ;;
30303  esac
30304
30305
30306
30307  if test $REPLACE_FSTAT = 1; then
30308
30309
30310
30311
30312
30313
30314
30315
30316  lts_LIBOBJS="$lts_LIBOBJS fstat.$ac_objext"
30317
30318    case "$host_os" in
30319      mingw*)
30320
30321
30322
30323
30324
30325
30326
30327
30328  lts_LIBOBJS="$lts_LIBOBJS stat-w32.$ac_objext"
30329
30330        ;;
30331    esac
30332
30333
30334  :
30335
30336  fi
30337
30338
30339
30340
30341
30342          GNULIB_FSTAT=1
30343
30344
30345
30346
30347
30348$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
30349
30350
30351
30352
30353
30354
30355  if test $ac_cv_func_fsync = no; then
30356    HAVE_FSYNC=0
30357  fi
30358
30359  if test $HAVE_FSYNC = 0; then
30360
30361
30362
30363
30364
30365
30366
30367
30368  lts_LIBOBJS="$lts_LIBOBJS fsync.$ac_objext"
30369
30370    :
30371  fi
30372
30373
30374
30375
30376
30377          GNULIB_FSYNC=1
30378
30379
30380
30381
30382
30383$as_echo "#define GNULIB_TEST_FSYNC 1" >>confdefs.h
30384
30385
30386
30387
30388
30389
30390
30391
30392  if test $ac_cv_func_getdtablesize = yes &&
30393     test $ac_cv_have_decl_getdtablesize = yes; then
30394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
30395$as_echo_n "checking whether getdtablesize works... " >&6; }
30396if ${gl_cv_func_getdtablesize_works+:} false; then :
30397  $as_echo_n "(cached) " >&6
30398else
30399                                                   case "$host_os" in
30400         vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
30401         *)
30402                                                       if test "$cross_compiling" = yes; then :
30403  case "$host_os" in
30404                cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
30405                  gl_cv_func_getdtablesize_works="guessing no" ;;
30406                *) gl_cv_func_getdtablesize_works="guessing yes" ;;
30407              esac
30408
30409else
30410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30411/* end confdefs.h.  */
30412
30413             #include <unistd.h>
30414int
30415main ()
30416{
30417int size = getdtablesize();
30418                if (dup2 (0, getdtablesize()) != -1)
30419                  return 1;
30420                if (size != getdtablesize())
30421                  return 2;
30422
30423  ;
30424  return 0;
30425}
30426_ACEOF
30427if ac_fn_c_try_run "$LINENO"; then :
30428  gl_cv_func_getdtablesize_works=yes
30429else
30430  gl_cv_func_getdtablesize_works=no
30431fi
30432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30433  conftest.$ac_objext conftest.beam conftest.$ac_ext
30434fi
30435
30436           ;;
30437       esac
30438
30439fi
30440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
30441$as_echo "$gl_cv_func_getdtablesize_works" >&6; }
30442    case "$gl_cv_func_getdtablesize_works" in
30443      *yes | "no (limitation)") ;;
30444      *) REPLACE_GETDTABLESIZE=1 ;;
30445    esac
30446  else
30447    HAVE_GETDTABLESIZE=0
30448  fi
30449
30450  if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
30451
30452
30453
30454
30455
30456
30457
30458
30459  lts_LIBOBJS="$lts_LIBOBJS getdtablesize.$ac_objext"
30460
30461    :
30462  fi
30463
30464
30465
30466
30467
30468          GNULIB_GETDTABLESIZE=1
30469
30470
30471
30472
30473
30474$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484  if test $ac_cv_header_sys_socket_h != yes; then
30485                    for ac_header in winsock2.h
30486do :
30487  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30488if test "x$ac_cv_header_winsock2_h" = xyes; then :
30489  cat >>confdefs.h <<_ACEOF
30490#define HAVE_WINSOCK2_H 1
30491_ACEOF
30492
30493fi
30494
30495done
30496
30497  fi
30498  if test "$ac_cv_header_winsock2_h" = yes; then
30499    HAVE_WINSOCK2_H=1
30500    UNISTD_H_HAVE_WINSOCK2_H=1
30501    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30502  else
30503    HAVE_WINSOCK2_H=0
30504  fi
30505
30506
30507
30508        GETHOSTNAME_LIB=
30509  for ac_func in gethostname
30510do :
30511  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
30512if test "x$ac_cv_func_gethostname" = xyes; then :
30513  cat >>confdefs.h <<_ACEOF
30514#define HAVE_GETHOSTNAME 1
30515_ACEOF
30516
30517else
30518
30519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in winsock2.h and -lws2_32" >&5
30520$as_echo_n "checking for gethostname in winsock2.h and -lws2_32... " >&6; }
30521if ${gl_cv_w32_gethostname+:} false; then :
30522  $as_echo_n "(cached) " >&6
30523else
30524  gl_cv_w32_gethostname=no
30525       gl_save_LIBS="$LIBS"
30526       LIBS="$LIBS -lws2_32"
30527       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30528/* end confdefs.h.  */
30529
30530#ifdef HAVE_WINSOCK2_H
30531#include <winsock2.h>
30532#endif
30533#include <stddef.h>
30534
30535int
30536main ()
30537{
30538gethostname(NULL, 0);
30539  ;
30540  return 0;
30541}
30542_ACEOF
30543if ac_fn_c_try_link "$LINENO"; then :
30544  gl_cv_w32_gethostname=yes
30545fi
30546rm -f core conftest.err conftest.$ac_objext \
30547    conftest$ac_exeext conftest.$ac_ext
30548       LIBS="$gl_save_LIBS"
30549
30550fi
30551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostname" >&5
30552$as_echo "$gl_cv_w32_gethostname" >&6; }
30553    if test "$gl_cv_w32_gethostname" = "yes"; then
30554      GETHOSTNAME_LIB="-lws2_32"
30555    fi
30556
30557fi
30558done
30559
30560
30561
30562  if test "$ac_cv_func_gethostname" = no; then
30563    HAVE_GETHOSTNAME=0
30564  fi
30565
30566
30567
30568
30569
30570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOST_NAME_MAX" >&5
30571$as_echo_n "checking for HOST_NAME_MAX... " >&6; }
30572if ${gl_cv_decl_HOST_NAME_MAX+:} false; then :
30573  $as_echo_n "(cached) " >&6
30574else
30575
30576    gl_cv_decl_HOST_NAME_MAX=
30577    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30578/* end confdefs.h.  */
30579
30580#include <limits.h>
30581#ifdef HOST_NAME_MAX
30582lucky
30583#endif
30584
30585_ACEOF
30586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30587  $EGREP "lucky" >/dev/null 2>&1; then :
30588  gl_cv_decl_HOST_NAME_MAX=yes
30589fi
30590rm -f conftest*
30591
30592    if test -z "$gl_cv_decl_HOST_NAME_MAX"; then
30593            if test "$gl_cv_w32_gethostname" = yes; then
30594                gl_cv_decl_HOST_NAME_MAX=256
30595      else
30596        if ac_fn_c_compute_int "$LINENO" "MAXHOSTNAMELEN" "gl_cv_decl_HOST_NAME_MAX"        "
30597#include <sys/types.h>
30598#if HAVE_SYS_PARAM_H
30599# include <sys/param.h>
30600#endif
30601#if HAVE_SYS_SOCKET_H
30602# include <sys/socket.h>
30603#endif
30604#if HAVE_NETDB_H
30605# include <netdb.h>
30606#endif
30607"; then :
30608
30609else
30610                        gl_cv_decl_HOST_NAME_MAX=256
30611
30612fi
30613
30614
30615      fi
30616    fi
30617
30618fi
30619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_HOST_NAME_MAX" >&5
30620$as_echo "$gl_cv_decl_HOST_NAME_MAX" >&6; }
30621  if test "$gl_cv_decl_HOST_NAME_MAX" != yes; then
30622
30623cat >>confdefs.h <<_ACEOF
30624#define HOST_NAME_MAX $gl_cv_decl_HOST_NAME_MAX
30625_ACEOF
30626
30627  fi
30628
30629
30630  if test $HAVE_GETHOSTNAME = 0; then
30631
30632
30633
30634
30635
30636
30637
30638
30639  lts_LIBOBJS="$lts_LIBOBJS gethostname.$ac_objext"
30640
30641
30642  if test "$gl_cv_w32_gethostname" != "yes"; then
30643    for ac_func in uname
30644do :
30645  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
30646if test "x$ac_cv_func_uname" = xyes; then :
30647  cat >>confdefs.h <<_ACEOF
30648#define HAVE_UNAME 1
30649_ACEOF
30650
30651fi
30652done
30653
30654  fi
30655
30656  fi
30657
30658
30659
30660
30661
30662          GNULIB_GETHOSTNAME=1
30663
30664
30665
30666
30667
30668$as_echo "#define GNULIB_TEST_GETHOSTNAME 1" >>confdefs.h
30669
30670
30671
30672
30673
30674
30675  ac_found=0
30676  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
30677"
30678if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
30679  ac_have_decl=1
30680else
30681  ac_have_decl=0
30682fi
30683
30684cat >>confdefs.h <<_ACEOF
30685#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
30686_ACEOF
30687if test $ac_have_decl = 1; then :
30688  ac_found=1
30689fi
30690
30691  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
30692"
30693if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
30694  ac_have_decl=1
30695else
30696  ac_have_decl=0
30697fi
30698
30699cat >>confdefs.h <<_ACEOF
30700#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
30701_ACEOF
30702if test $ac_have_decl = 1; then :
30703  ac_found=1
30704fi
30705
30706  ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
30707"
30708if test "x$ac_cv_have_decl___argv" = xyes; then :
30709  ac_have_decl=1
30710else
30711  ac_have_decl=0
30712fi
30713
30714cat >>confdefs.h <<_ACEOF
30715#define HAVE_DECL___ARGV $ac_have_decl
30716_ACEOF
30717if test $ac_have_decl = 1; then :
30718  ac_found=1
30719fi
30720
30721
30722  # Incur the cost of this test only if none of the above worked.
30723  if test $ac_found = 0; then
30724    # On OpenBSD 5.1, using the global __progname variable appears to be
30725    # the only way to implement getprogname.
30726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
30727$as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
30728if ${gl_cv_var___progname+:} false; then :
30729  $as_echo_n "(cached) " >&6
30730else
30731
30732        gl_cv_var___progname=
30733        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734/* end confdefs.h.  */
30735extern char *__progname;
30736int
30737main ()
30738{
30739return *__progname;
30740
30741  ;
30742  return 0;
30743}
30744_ACEOF
30745if ac_fn_c_try_link "$LINENO"; then :
30746  gl_cv_var___progname=yes
30747
30748fi
30749rm -f core conftest.err conftest.$ac_objext \
30750    conftest$ac_exeext conftest.$ac_ext
30751
30752
30753fi
30754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
30755$as_echo "$gl_cv_var___progname" >&6; }
30756    if test "$gl_cv_var___progname" = yes; then
30757
30758$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
30759
30760    fi
30761  fi
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772  gl_gettimeofday_timezone=void
30773  if test $ac_cv_func_gettimeofday != yes; then
30774    HAVE_GETTIMEOFDAY=0
30775  else
30776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
30777$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
30778if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
30779  $as_echo_n "(cached) " >&6
30780else
30781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30782/* end confdefs.h.  */
30783#include <sys/time.h>
30784              struct timeval c;
30785              int gettimeofday (struct timeval *restrict, void *restrict);
30786
30787int
30788main ()
30789{
30790/* glibc uses struct timezone * rather than the POSIX void *
30791                 if _GNU_SOURCE is defined.  However, since the only portable
30792                 use of gettimeofday uses NULL as the second parameter, and
30793                 since the glibc definition is actually more typesafe, it is
30794                 not worth wrapping this to get a compliant signature.  */
30795              int (*f) (struct timeval *restrict, void *restrict)
30796                = gettimeofday;
30797              int x = f (&c, 0);
30798              return !(x | c.tv_sec | c.tv_usec);
30799
30800  ;
30801  return 0;
30802}
30803_ACEOF
30804if ac_fn_c_try_compile "$LINENO"; then :
30805  gl_cv_func_gettimeofday_posix_signature=yes
30806else
30807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30808/* end confdefs.h.  */
30809#include <sys/time.h>
30810int gettimeofday (struct timeval *restrict, struct timezone *restrict);
30811
30812int
30813main ()
30814{
30815
30816  ;
30817  return 0;
30818}
30819_ACEOF
30820if ac_fn_c_try_compile "$LINENO"; then :
30821  gl_cv_func_gettimeofday_posix_signature=almost
30822else
30823  gl_cv_func_gettimeofday_posix_signature=no
30824fi
30825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30826fi
30827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30828fi
30829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
30830$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
30831    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
30832      gl_gettimeofday_timezone='struct timezone'
30833    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
30834      REPLACE_GETTIMEOFDAY=1
30835    fi
30836        if test $REPLACE_STRUCT_TIMEVAL = 1; then
30837      REPLACE_GETTIMEOFDAY=1
30838    fi
30839            case "$host_os" in
30840      mingw*) REPLACE_GETTIMEOFDAY=1 ;;
30841    esac
30842  fi
30843
30844cat >>confdefs.h <<_ACEOF
30845#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
30846_ACEOF
30847
30848
30849  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
30850
30851
30852
30853
30854
30855
30856
30857
30858  lts_LIBOBJS="$lts_LIBOBJS gettimeofday.$ac_objext"
30859
30860    :
30861  fi
30862
30863
30864
30865
30866
30867          GNULIB_GETTIMEOFDAY=1
30868
30869
30870
30871
30872
30873$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
30874
30875
30876
30877
30878
30879
30880
30881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
30882$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
30883if ${gl_cv_c_inline_effective+:} false; then :
30884  $as_echo_n "(cached) " >&6
30885else
30886  if test $ac_cv_c_inline = no; then
30887       gl_cv_c_inline_effective=no
30888     else
30889                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30890/* end confdefs.h.  */
30891
30892int
30893main ()
30894{
30895#ifdef __NO_INLINE__
30896               #error "inline is not effective"
30897             #endif
30898  ;
30899  return 0;
30900}
30901_ACEOF
30902if ac_fn_c_try_compile "$LINENO"; then :
30903  gl_cv_c_inline_effective=yes
30904else
30905  gl_cv_c_inline_effective=no
30906fi
30907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30908     fi
30909
30910fi
30911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
30912$as_echo "$gl_cv_c_inline_effective" >&6; }
30913  if test $gl_cv_c_inline_effective = yes; then
30914
30915$as_echo "#define HAVE_INLINE 1" >>confdefs.h
30916
30917  fi
30918
30919
30920
30921
30922         case $host_os in
30923    mingw*) REPLACE_ISATTY=1 ;;
30924  esac
30925
30926  if test $REPLACE_ISATTY = 1; then
30927
30928
30929
30930
30931
30932
30933
30934
30935  lts_LIBOBJS="$lts_LIBOBJS isatty.$ac_objext"
30936
30937    :
30938  fi
30939
30940
30941
30942
30943
30944          GNULIB_ISATTY=1
30945
30946
30947
30948
30949
30950$as_echo "#define GNULIB_TEST_ISATTY 1" >>confdefs.h
30951
30952
30953
30954
30955
30956
30957
30958  ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
30959      #ifndef isinf
30960      #error \"isinf must be a macro, not a function\"
30961      #endif
30962
30963"
30964if test "x$ac_cv_have_decl_isinf" = xyes; then :
30965  ac_have_decl=1
30966else
30967  ac_have_decl=0
30968fi
30969
30970cat >>confdefs.h <<_ACEOF
30971#define HAVE_DECL_ISINF $ac_have_decl
30972_ACEOF
30973
30974  if test "$ac_cv_have_decl_isinf" = yes; then
30975
30976  save_LIBS=$LIBS
30977  ISINF_LIBM=missing
30978  for libm in "" "-lm"; do
30979    LIBS="$save_LIBS $libm"
30980    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30981/* end confdefs.h.  */
30982
30983         #ifndef __NO_MATH_INLINES
30984         # define __NO_MATH_INLINES 1 /* for glibc */
30985         #endif
30986         #include <math.h>
30987
30988         double x;
30989int
30990main ()
30991{
30992x = isinf (x) + isinf ((float) x);
30993  ;
30994  return 0;
30995}
30996_ACEOF
30997if ac_fn_c_try_link "$LINENO"; then :
30998  ISINF_LIBM=$libm
30999break
31000fi
31001rm -f core conftest.err conftest.$ac_objext \
31002    conftest$ac_exeext conftest.$ac_ext
31003  done
31004  LIBS=$save_LIBS
31005
31006    if test "$ISINF_LIBM" != missing; then
31007
31008
31009
31010
31011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isinf(long double) works" >&5
31012$as_echo_n "checking whether isinf(long double) works... " >&6; }
31013if ${gl_cv_func_isinfl_works+:} false; then :
31014  $as_echo_n "(cached) " >&6
31015else
31016
31017      if test "$cross_compiling" = yes; then :
31018  case "$host_os" in
31019         mingw*) # Guess yes on mingw, no on MSVC.
31020           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31021/* end confdefs.h.  */
31022
31023#ifdef __MINGW32__
31024 Known
31025#endif
31026
31027_ACEOF
31028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31029  $EGREP "Known" >/dev/null 2>&1; then :
31030  gl_cv_func_isinfl_works="guessing yes"
31031else
31032  gl_cv_func_isinfl_works="guessing no"
31033fi
31034rm -f conftest*
31035
31036           ;;
31037         *)
31038           gl_cv_func_isinfl_works="guessing yes"
31039           ;;
31040       esac
31041
31042else
31043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31044/* end confdefs.h.  */
31045
31046#include <float.h>
31047#include <limits.h>
31048#include <math.h>
31049#define NWORDS \
31050  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
31051typedef union { unsigned int word[NWORDS]; long double value; }
31052        memory_long_double;
31053/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
31054   runtime type conversion.  */
31055#ifdef __sgi
31056static long double NaNl ()
31057{
31058  double zero = 0.0;
31059  return zero / zero;
31060}
31061#else
31062# define NaNl() (0.0L / 0.0L)
31063#endif
31064int main ()
31065{
31066  int result = 0;
31067
31068  if (isinf (LDBL_MAX))
31069    result |= 1;
31070
31071  {
31072    memory_long_double m;
31073    unsigned int i;
31074
31075    /* The isinf macro should be immune against changes in the sign bit and
31076       in the mantissa bits.  The xor operation twiddles a bit that can only be
31077       a sign bit or a mantissa bit (since the exponent never extends to
31078       bit 31).  */
31079    m.value = NaNl ();
31080    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
31081    for (i = 0; i < NWORDS; i++)
31082      m.word[i] |= 1;
31083    if (isinf (m.value))
31084      result |= 2;
31085  }
31086
31087#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
31088/* Representation of an 80-bit 'long double' as an initializer for a sequence
31089   of 'unsigned int' words.  */
31090# ifdef WORDS_BIGENDIAN
31091#  define LDBL80_WORDS(exponent,manthi,mantlo) \
31092     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
31093       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
31094       (unsigned int) (mantlo) << 16                                        \
31095     }
31096# else
31097#  define LDBL80_WORDS(exponent,manthi,mantlo) \
31098     { mantlo, manthi, exponent }
31099# endif
31100  { /* Quiet NaN.  */
31101    static memory_long_double x =
31102      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
31103    if (isinf (x.value))
31104      result |= 2;
31105  }
31106  {
31107    /* Signalling NaN.  */
31108    static memory_long_double x =
31109      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
31110    if (isinf (x.value))
31111      result |= 2;
31112  }
31113  /* isinf should return something even for noncanonical values.  */
31114  { /* Pseudo-NaN.  */
31115    static memory_long_double x =
31116      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
31117    if (isinf (x.value) && !isinf (x.value))
31118      result |= 4;
31119  }
31120  { /* Pseudo-Infinity.  */
31121    static memory_long_double x =
31122      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
31123    if (isinf (x.value) && !isinf (x.value))
31124      result |= 8;
31125  }
31126  { /* Pseudo-Zero.  */
31127    static memory_long_double x =
31128      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
31129    if (isinf (x.value) && !isinf (x.value))
31130      result |= 16;
31131  }
31132  { /* Unnormalized number.  */
31133    static memory_long_double x =
31134      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
31135    if (isinf (x.value) && !isinf (x.value))
31136      result |= 32;
31137  }
31138  { /* Pseudo-Denormal.  */
31139    static memory_long_double x =
31140      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
31141    if (isinf (x.value) && !isinf (x.value))
31142      result |= 64;
31143  }
31144#endif
31145
31146  return result;
31147}
31148_ACEOF
31149if ac_fn_c_try_run "$LINENO"; then :
31150  gl_cv_func_isinfl_works=yes
31151else
31152  gl_cv_func_isinfl_works=no
31153fi
31154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31155  conftest.$ac_objext conftest.beam conftest.$ac_ext
31156fi
31157
31158
31159fi
31160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isinfl_works" >&5
31161$as_echo "$gl_cv_func_isinfl_works" >&6; }
31162
31163      case "$gl_cv_func_isinfl_works" in
31164        *yes) ;;
31165        *)    ISINF_LIBM=missing;;
31166      esac
31167    fi
31168  fi
31169          if test "$ac_cv_have_decl_isinf" != yes \
31170     || test "$ISINF_LIBM" = missing \
31171     || { case "$host_os" in solaris*) true;; *) false;; esac; }; then
31172    REPLACE_ISINF=1
31173        ISINF_LIBM=
31174  fi
31175
31176
31177  if test $REPLACE_ISINF = 1; then
31178
31179
31180
31181
31182
31183
31184
31185
31186  lts_LIBOBJS="$lts_LIBOBJS isinf.$ac_objext"
31187
31188  fi
31189
31190
31191
31192
31193
31194          GNULIB_ISINF=1
31195
31196
31197
31198
31199
31200$as_echo "#define GNULIB_TEST_ISINF 1" >>confdefs.h
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210  # If we replaced any of the underlying isnan* functions, replace
31211  # the isnan macro; it undoubtedly suffers from the same flaws.
31212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan macro works" >&5
31213$as_echo_n "checking whether isnan macro works... " >&6; }
31214  if test $gl_func_isnanf = yes \
31215     && test $gl_func_isnand = yes \
31216     && test $gl_func_isnanl = yes; then
31217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31218$as_echo "yes" >&6; }
31219    ISNAN_LIBM=
31220        case " $ISNAN_LIBM " in
31221      *" $ISNANF_LIBM "*) ;;
31222      *) ISNAN_LIBM="$ISNAN_LIBM $ISNANF_LIBM" ;;
31223    esac
31224        case " $ISNAN_LIBM " in
31225      *" $ISNAND_LIBM "*) ;;
31226      *) ISNAN_LIBM="$ISNAN_LIBM $ISNAND_LIBM" ;;
31227    esac
31228        case " $ISNAN_LIBM " in
31229      *" $ISNANL_LIBM "*) ;;
31230      *) ISNAN_LIBM="$ISNAN_LIBM $ISNANL_LIBM" ;;
31231    esac
31232  else
31233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31234$as_echo "no" >&6; }
31235        REPLACE_ISNAN=1
31236    ISNAN_LIBM=
31237  fi
31238
31239
31240
31241
31242
31243
31244
31245          GNULIB_ISNAN=1
31246
31247
31248
31249
31250
31251$as_echo "#define GNULIB_TEST_ISNAN 1" >>confdefs.h
31252
31253
31254
31255
31256
31257  ISNAND_LIBM=
31258
31259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
31260$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
31261if ${gl_cv_func_isnand_no_libm+:} false; then :
31262  $as_echo_n "(cached) " >&6
31263else
31264
31265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31266/* end confdefs.h.  */
31267#include <math.h>
31268             #if __GNUC__ >= 4
31269             # undef isnand
31270             # define isnand(x) __builtin_isnan ((double)(x))
31271             #else
31272             # undef isnand
31273             # define isnand(x) isnan ((double)(x))
31274             #endif
31275             double x;
31276int
31277main ()
31278{
31279return isnand (x);
31280  ;
31281  return 0;
31282}
31283_ACEOF
31284if ac_fn_c_try_link "$LINENO"; then :
31285  gl_cv_func_isnand_no_libm=yes
31286else
31287  gl_cv_func_isnand_no_libm=no
31288fi
31289rm -f core conftest.err conftest.$ac_objext \
31290    conftest$ac_exeext conftest.$ac_ext
31291
31292fi
31293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
31294$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
31295
31296  if test $gl_cv_func_isnand_no_libm = no; then
31297
31298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
31299$as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
31300if ${gl_cv_func_isnand_in_libm+:} false; then :
31301  $as_echo_n "(cached) " >&6
31302else
31303
31304      save_LIBS="$LIBS"
31305      LIBS="$LIBS -lm"
31306      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31307/* end confdefs.h.  */
31308#include <math.h>
31309             #if __GNUC__ >= 4
31310             # undef isnand
31311             # define isnand(x) __builtin_isnan ((double)(x))
31312             #elif defined isnan
31313             # undef isnand
31314             # define isnand(x) isnan ((double)(x))
31315             #endif
31316             double x;
31317int
31318main ()
31319{
31320return isnand (x);
31321  ;
31322  return 0;
31323}
31324_ACEOF
31325if ac_fn_c_try_link "$LINENO"; then :
31326  gl_cv_func_isnand_in_libm=yes
31327else
31328  gl_cv_func_isnand_in_libm=no
31329fi
31330rm -f core conftest.err conftest.$ac_objext \
31331    conftest$ac_exeext conftest.$ac_ext
31332      LIBS="$save_LIBS"
31333
31334fi
31335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
31336$as_echo "$gl_cv_func_isnand_in_libm" >&6; }
31337
31338    if test $gl_cv_func_isnand_in_libm = yes; then
31339      ISNAND_LIBM=-lm
31340    fi
31341  fi
31342    if test $gl_cv_func_isnand_no_libm = yes \
31343     || test $gl_cv_func_isnand_in_libm = yes; then
31344    gl_func_isnand=yes
31345  else
31346    gl_func_isnand=no
31347    HAVE_ISNAND=0
31348  fi
31349
31350
31351
31352
31353
31354  if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
31355
31356
31357
31358
31359
31360
31361
31362
31363  lts_LIBOBJS="$lts_LIBOBJS isnand.$ac_objext"
31364
31365
31366
31367
31368  fi
31369
31370
31371
31372
31373
31374          GNULIB_ISNAND=1
31375
31376
31377
31378
31379
31380$as_echo "#define GNULIB_TEST_ISNAND 1" >>confdefs.h
31381
31382
31383
31384
31385
31386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
31387$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
31388if ${gl_cv_func_isnand_no_libm+:} false; then :
31389  $as_echo_n "(cached) " >&6
31390else
31391
31392      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31393/* end confdefs.h.  */
31394#include <math.h>
31395             #if __GNUC__ >= 4
31396             # undef isnand
31397             # define isnand(x) __builtin_isnan ((double)(x))
31398             #else
31399             # undef isnand
31400             # define isnand(x) isnan ((double)(x))
31401             #endif
31402             double x;
31403int
31404main ()
31405{
31406return isnand (x);
31407  ;
31408  return 0;
31409}
31410_ACEOF
31411if ac_fn_c_try_link "$LINENO"; then :
31412  gl_cv_func_isnand_no_libm=yes
31413else
31414  gl_cv_func_isnand_no_libm=no
31415fi
31416rm -f core conftest.err conftest.$ac_objext \
31417    conftest$ac_exeext conftest.$ac_ext
31418
31419fi
31420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
31421$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
31422
31423  gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
31424  if test $gl_cv_func_isnand_no_libm = yes; then
31425
31426$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
31427
31428  fi
31429
31430  if test $gl_func_isnand_no_libm != yes; then
31431
31432
31433
31434
31435
31436
31437
31438
31439  lts_LIBOBJS="$lts_LIBOBJS isnand.$ac_objext"
31440
31441
31442
31443
31444  fi
31445
31446
31447  ISNANF_LIBM=
31448
31449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
31450$as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
31451if ${gl_cv_func_isnanf_no_libm+:} false; then :
31452  $as_echo_n "(cached) " >&6
31453else
31454
31455      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456/* end confdefs.h.  */
31457#include <math.h>
31458             #ifndef __has_builtin
31459             # define __has_builtin(name) 0
31460             #endif
31461             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
31462             # undef isnanf
31463             # define isnanf(x) __builtin_isnanf ((float)(x))
31464             #elif defined isnan
31465             # undef isnanf
31466             # define isnanf(x) isnan ((float)(x))
31467             #endif
31468             float x;
31469int
31470main ()
31471{
31472return isnanf (x);
31473  ;
31474  return 0;
31475}
31476_ACEOF
31477if ac_fn_c_try_link "$LINENO"; then :
31478  gl_cv_func_isnanf_no_libm=yes
31479else
31480  gl_cv_func_isnanf_no_libm=no
31481fi
31482rm -f core conftest.err conftest.$ac_objext \
31483    conftest$ac_exeext conftest.$ac_ext
31484
31485fi
31486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
31487$as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
31488
31489  if test $gl_cv_func_isnanf_no_libm = no; then
31490
31491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
31492$as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
31493if ${gl_cv_func_isnanf_in_libm+:} false; then :
31494  $as_echo_n "(cached) " >&6
31495else
31496
31497      save_LIBS="$LIBS"
31498      LIBS="$LIBS -lm"
31499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31500/* end confdefs.h.  */
31501#include <math.h>
31502             #ifndef __has_builtin
31503             # define __has_builtin(name) 0
31504             #endif
31505             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
31506             # undef isnanf
31507             # define isnanf(x) __builtin_isnanf ((float)(x))
31508             #elif defined isnan
31509             # undef isnanf
31510             # define isnanf(x) isnan ((float)(x))
31511             #endif
31512             float x;
31513int
31514main ()
31515{
31516return isnanf (x);
31517  ;
31518  return 0;
31519}
31520_ACEOF
31521if ac_fn_c_try_link "$LINENO"; then :
31522  gl_cv_func_isnanf_in_libm=yes
31523else
31524  gl_cv_func_isnanf_in_libm=no
31525fi
31526rm -f core conftest.err conftest.$ac_objext \
31527    conftest$ac_exeext conftest.$ac_ext
31528      LIBS="$save_LIBS"
31529
31530fi
31531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
31532$as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
31533
31534    if test $gl_cv_func_isnanf_in_libm = yes; then
31535      ISNANF_LIBM=-lm
31536    fi
31537  fi
31538    if test $gl_cv_func_isnanf_no_libm = yes \
31539     || test $gl_cv_func_isnanf_in_libm = yes; then
31540    save_LIBS="$LIBS"
31541    LIBS="$LIBS $ISNANF_LIBM"
31542
31543
31544
31545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
31546$as_echo_n "checking whether isnan(float) works... " >&6; }
31547if ${gl_cv_func_isnanf_works+:} false; then :
31548  $as_echo_n "(cached) " >&6
31549else
31550
31551      if test "$cross_compiling" = yes; then :
31552  case "$host_os" in
31553           irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
31554           mingw*) # Guess yes on mingw, no on MSVC.
31555             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31556/* end confdefs.h.  */
31557
31558#ifdef __MINGW32__
31559 Known
31560#endif
31561
31562_ACEOF
31563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31564  $EGREP "Known" >/dev/null 2>&1; then :
31565  gl_cv_func_isnanf_works="guessing yes"
31566else
31567  gl_cv_func_isnanf_works="guessing no"
31568fi
31569rm -f conftest*
31570
31571             ;;
31572           *) gl_cv_func_isnanf_works="guessing yes" ;;
31573         esac
31574
31575else
31576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31577/* end confdefs.h.  */
31578
31579#include <math.h>
31580#ifndef __has_builtin
31581# define __has_builtin(name) 0
31582#endif
31583#if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
31584# undef isnanf
31585# define isnanf(x) __builtin_isnanf ((float)(x))
31586#elif defined isnan
31587# undef isnanf
31588# define isnanf(x) isnan ((float)(x))
31589#endif
31590/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
31591#ifdef __DECC
31592static float
31593NaN ()
31594{
31595  static float zero = 0.0f;
31596  return zero / zero;
31597}
31598#else
31599# define NaN() (0.0f / 0.0f)
31600#endif
31601#define NWORDS \
31602  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
31603typedef union { unsigned int word[NWORDS]; float value; } memory_float;
31604int main()
31605{
31606  int result = 0;
31607
31608  if (isnanf (1.0f / 0.0f))
31609    result |= 1;
31610
31611  if (!isnanf (NaN ()))
31612    result |= 2;
31613
31614#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
31615  /* The isnanf function should be immune against changes in the sign bit and
31616     in the mantissa bits.  The xor operation twiddles a bit that can only be
31617     a sign bit or a mantissa bit.  */
31618  if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
31619    {
31620      memory_float m;
31621
31622      m.value = NaN ();
31623      /* Set the bits below the exponent to 01111...111.  */
31624      m.word[0] &= -1U << FLT_EXPBIT0_BIT;
31625      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
31626      if (!isnanf (m.value))
31627        result |= 4;
31628    }
31629#endif
31630
31631  return result;
31632}
31633_ACEOF
31634if ac_fn_c_try_run "$LINENO"; then :
31635  gl_cv_func_isnanf_works=yes
31636else
31637  gl_cv_func_isnanf_works=no
31638fi
31639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31640  conftest.$ac_objext conftest.beam conftest.$ac_ext
31641fi
31642
31643
31644fi
31645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
31646$as_echo "$gl_cv_func_isnanf_works" >&6; }
31647
31648    LIBS="$save_LIBS"
31649    case "$gl_cv_func_isnanf_works" in
31650      *yes) gl_func_isnanf=yes ;;
31651      *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
31652    esac
31653  else
31654    gl_func_isnanf=no
31655  fi
31656  if test $gl_func_isnanf != yes; then
31657    HAVE_ISNANF=0
31658  fi
31659
31660
31661
31662
31663
31664  if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
31665
31666
31667
31668
31669
31670
31671
31672
31673  lts_LIBOBJS="$lts_LIBOBJS isnanf.$ac_objext"
31674
31675
31676
31677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
31678$as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
31679if ${gl_cv_cc_float_expbit0+:} false; then :
31680  $as_echo_n "(cached) " >&6
31681else
31682
31683      if test "$cross_compiling" = yes; then :
31684  gl_cv_cc_float_expbit0="word 0 bit 23"
31685else
31686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31687/* end confdefs.h.  */
31688
31689#include <float.h>
31690#include <stddef.h>
31691#include <stdio.h>
31692#include <string.h>
31693#define NWORDS \
31694  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
31695typedef union { float value; unsigned int word[NWORDS]; } memory_float;
31696static unsigned int ored_words[NWORDS];
31697static unsigned int anded_words[NWORDS];
31698static void add_to_ored_words (float x)
31699{
31700  memory_float m;
31701  size_t i;
31702  /* Clear it first, in case
31703     sizeof (float) < sizeof (memory_float).  */
31704  memset (&m, 0, sizeof (memory_float));
31705  m.value = x;
31706  for (i = 0; i < NWORDS; i++)
31707    {
31708      ored_words[i] |= m.word[i];
31709      anded_words[i] &= m.word[i];
31710    }
31711}
31712int main ()
31713{
31714  size_t j;
31715  FILE *fp = fopen ("conftest.out", "w");
31716  if (fp == NULL)
31717    return 1;
31718  for (j = 0; j < NWORDS; j++)
31719    anded_words[j] = ~ (unsigned int) 0;
31720  add_to_ored_words (0.25f);
31721  add_to_ored_words (0.5f);
31722  add_to_ored_words (1.0f);
31723  add_to_ored_words (2.0f);
31724  add_to_ored_words (4.0f);
31725  /* Remove bits that are common (e.g. if representation of the first mantissa
31726     bit is explicit).  */
31727  for (j = 0; j < NWORDS; j++)
31728    ored_words[j] &= ~anded_words[j];
31729  /* Now find the nonzero word.  */
31730  for (j = 0; j < NWORDS; j++)
31731    if (ored_words[j] != 0)
31732      break;
31733  if (j < NWORDS)
31734    {
31735      size_t i;
31736      for (i = j + 1; i < NWORDS; i++)
31737        if (ored_words[i] != 0)
31738          {
31739            fprintf (fp, "unknown");
31740            return (fclose (fp) != 0);
31741          }
31742      for (i = 0; ; i++)
31743        if ((ored_words[j] >> i) & 1)
31744          {
31745            fprintf (fp, "word %d bit %d", (int) j, (int) i);
31746            return (fclose (fp) != 0);
31747          }
31748    }
31749  fprintf (fp, "unknown");
31750  return (fclose (fp) != 0);
31751}
31752
31753_ACEOF
31754if ac_fn_c_try_run "$LINENO"; then :
31755  gl_cv_cc_float_expbit0=`cat conftest.out`
31756else
31757  gl_cv_cc_float_expbit0="unknown"
31758fi
31759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31760  conftest.$ac_objext conftest.beam conftest.$ac_ext
31761fi
31762
31763      rm -f conftest.out
31764
31765fi
31766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
31767$as_echo "$gl_cv_cc_float_expbit0" >&6; }
31768  case "$gl_cv_cc_float_expbit0" in
31769    word*bit*)
31770      word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
31771      bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
31772
31773cat >>confdefs.h <<_ACEOF
31774#define FLT_EXPBIT0_WORD $word
31775_ACEOF
31776
31777
31778cat >>confdefs.h <<_ACEOF
31779#define FLT_EXPBIT0_BIT $bit
31780_ACEOF
31781
31782      ;;
31783  esac
31784
31785
31786  fi
31787
31788
31789
31790
31791
31792          GNULIB_ISNANF=1
31793
31794
31795
31796
31797
31798$as_echo "#define GNULIB_TEST_ISNANF 1" >>confdefs.h
31799
31800
31801
31802
31803
31804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
31805$as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
31806if ${gl_cv_func_isnanf_no_libm+:} false; then :
31807  $as_echo_n "(cached) " >&6
31808else
31809
31810      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31811/* end confdefs.h.  */
31812#include <math.h>
31813             #ifndef __has_builtin
31814             # define __has_builtin(name) 0
31815             #endif
31816             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
31817             # undef isnanf
31818             # define isnanf(x) __builtin_isnanf ((float)(x))
31819             #elif defined isnan
31820             # undef isnanf
31821             # define isnanf(x) isnan ((float)(x))
31822             #endif
31823             float x;
31824int
31825main ()
31826{
31827return isnanf (x);
31828  ;
31829  return 0;
31830}
31831_ACEOF
31832if ac_fn_c_try_link "$LINENO"; then :
31833  gl_cv_func_isnanf_no_libm=yes
31834else
31835  gl_cv_func_isnanf_no_libm=no
31836fi
31837rm -f core conftest.err conftest.$ac_objext \
31838    conftest$ac_exeext conftest.$ac_ext
31839
31840fi
31841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
31842$as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
31843
31844  if test $gl_cv_func_isnanf_no_libm = yes; then
31845
31846
31847
31848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
31849$as_echo_n "checking whether isnan(float) works... " >&6; }
31850if ${gl_cv_func_isnanf_works+:} false; then :
31851  $as_echo_n "(cached) " >&6
31852else
31853
31854      if test "$cross_compiling" = yes; then :
31855  case "$host_os" in
31856           irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
31857           mingw*) # Guess yes on mingw, no on MSVC.
31858             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31859/* end confdefs.h.  */
31860
31861#ifdef __MINGW32__
31862 Known
31863#endif
31864
31865_ACEOF
31866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31867  $EGREP "Known" >/dev/null 2>&1; then :
31868  gl_cv_func_isnanf_works="guessing yes"
31869else
31870  gl_cv_func_isnanf_works="guessing no"
31871fi
31872rm -f conftest*
31873
31874             ;;
31875           *) gl_cv_func_isnanf_works="guessing yes" ;;
31876         esac
31877
31878else
31879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31880/* end confdefs.h.  */
31881
31882#include <math.h>
31883#ifndef __has_builtin
31884# define __has_builtin(name) 0
31885#endif
31886#if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
31887# undef isnanf
31888# define isnanf(x) __builtin_isnanf ((float)(x))
31889#elif defined isnan
31890# undef isnanf
31891# define isnanf(x) isnan ((float)(x))
31892#endif
31893/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
31894#ifdef __DECC
31895static float
31896NaN ()
31897{
31898  static float zero = 0.0f;
31899  return zero / zero;
31900}
31901#else
31902# define NaN() (0.0f / 0.0f)
31903#endif
31904#define NWORDS \
31905  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
31906typedef union { unsigned int word[NWORDS]; float value; } memory_float;
31907int main()
31908{
31909  int result = 0;
31910
31911  if (isnanf (1.0f / 0.0f))
31912    result |= 1;
31913
31914  if (!isnanf (NaN ()))
31915    result |= 2;
31916
31917#if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
31918  /* The isnanf function should be immune against changes in the sign bit and
31919     in the mantissa bits.  The xor operation twiddles a bit that can only be
31920     a sign bit or a mantissa bit.  */
31921  if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
31922    {
31923      memory_float m;
31924
31925      m.value = NaN ();
31926      /* Set the bits below the exponent to 01111...111.  */
31927      m.word[0] &= -1U << FLT_EXPBIT0_BIT;
31928      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
31929      if (!isnanf (m.value))
31930        result |= 4;
31931    }
31932#endif
31933
31934  return result;
31935}
31936_ACEOF
31937if ac_fn_c_try_run "$LINENO"; then :
31938  gl_cv_func_isnanf_works=yes
31939else
31940  gl_cv_func_isnanf_works=no
31941fi
31942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31943  conftest.$ac_objext conftest.beam conftest.$ac_ext
31944fi
31945
31946
31947fi
31948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
31949$as_echo "$gl_cv_func_isnanf_works" >&6; }
31950
31951  fi
31952  if test $gl_cv_func_isnanf_no_libm = yes \
31953     && { case "$gl_cv_func_isnanf_works" in
31954            *yes) true;;
31955            *) false;;
31956          esac
31957        }; then
31958    gl_func_isnanf_no_libm=yes
31959
31960$as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
31961
31962  else
31963    gl_func_isnanf_no_libm=no
31964  fi
31965
31966  if test $gl_func_isnanf_no_libm != yes; then
31967
31968
31969
31970
31971
31972
31973
31974
31975  lts_LIBOBJS="$lts_LIBOBJS isnanf.$ac_objext"
31976
31977
31978
31979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
31980$as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
31981if ${gl_cv_cc_float_expbit0+:} false; then :
31982  $as_echo_n "(cached) " >&6
31983else
31984
31985      if test "$cross_compiling" = yes; then :
31986  gl_cv_cc_float_expbit0="word 0 bit 23"
31987else
31988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31989/* end confdefs.h.  */
31990
31991#include <float.h>
31992#include <stddef.h>
31993#include <stdio.h>
31994#include <string.h>
31995#define NWORDS \
31996  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
31997typedef union { float value; unsigned int word[NWORDS]; } memory_float;
31998static unsigned int ored_words[NWORDS];
31999static unsigned int anded_words[NWORDS];
32000static void add_to_ored_words (float x)
32001{
32002  memory_float m;
32003  size_t i;
32004  /* Clear it first, in case
32005     sizeof (float) < sizeof (memory_float).  */
32006  memset (&m, 0, sizeof (memory_float));
32007  m.value = x;
32008  for (i = 0; i < NWORDS; i++)
32009    {
32010      ored_words[i] |= m.word[i];
32011      anded_words[i] &= m.word[i];
32012    }
32013}
32014int main ()
32015{
32016  size_t j;
32017  FILE *fp = fopen ("conftest.out", "w");
32018  if (fp == NULL)
32019    return 1;
32020  for (j = 0; j < NWORDS; j++)
32021    anded_words[j] = ~ (unsigned int) 0;
32022  add_to_ored_words (0.25f);
32023  add_to_ored_words (0.5f);
32024  add_to_ored_words (1.0f);
32025  add_to_ored_words (2.0f);
32026  add_to_ored_words (4.0f);
32027  /* Remove bits that are common (e.g. if representation of the first mantissa
32028     bit is explicit).  */
32029  for (j = 0; j < NWORDS; j++)
32030    ored_words[j] &= ~anded_words[j];
32031  /* Now find the nonzero word.  */
32032  for (j = 0; j < NWORDS; j++)
32033    if (ored_words[j] != 0)
32034      break;
32035  if (j < NWORDS)
32036    {
32037      size_t i;
32038      for (i = j + 1; i < NWORDS; i++)
32039        if (ored_words[i] != 0)
32040          {
32041            fprintf (fp, "unknown");
32042            return (fclose (fp) != 0);
32043          }
32044      for (i = 0; ; i++)
32045        if ((ored_words[j] >> i) & 1)
32046          {
32047            fprintf (fp, "word %d bit %d", (int) j, (int) i);
32048            return (fclose (fp) != 0);
32049          }
32050    }
32051  fprintf (fp, "unknown");
32052  return (fclose (fp) != 0);
32053}
32054
32055_ACEOF
32056if ac_fn_c_try_run "$LINENO"; then :
32057  gl_cv_cc_float_expbit0=`cat conftest.out`
32058else
32059  gl_cv_cc_float_expbit0="unknown"
32060fi
32061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32062  conftest.$ac_objext conftest.beam conftest.$ac_ext
32063fi
32064
32065      rm -f conftest.out
32066
32067fi
32068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
32069$as_echo "$gl_cv_cc_float_expbit0" >&6; }
32070  case "$gl_cv_cc_float_expbit0" in
32071    word*bit*)
32072      word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
32073      bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
32074
32075cat >>confdefs.h <<_ACEOF
32076#define FLT_EXPBIT0_WORD $word
32077_ACEOF
32078
32079
32080cat >>confdefs.h <<_ACEOF
32081#define FLT_EXPBIT0_BIT $bit
32082_ACEOF
32083
32084      ;;
32085  esac
32086
32087
32088  fi
32089
32090
32091  ISNANL_LIBM=
32092
32093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
32094$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
32095if ${gl_cv_func_isnanl_no_libm+:} false; then :
32096  $as_echo_n "(cached) " >&6
32097else
32098
32099      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32100/* end confdefs.h.  */
32101#include <math.h>
32102             #ifndef __has_builtin
32103             # define __has_builtin(name) 0
32104             #endif
32105             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
32106             # undef isnanl
32107             # define isnanl(x) __builtin_isnanl ((long double)(x))
32108             #elif defined isnan
32109             # undef isnanl
32110             # define isnanl(x) isnan ((long double)(x))
32111             #endif
32112             long double x;
32113int
32114main ()
32115{
32116return isnanl (x);
32117  ;
32118  return 0;
32119}
32120_ACEOF
32121if ac_fn_c_try_link "$LINENO"; then :
32122  gl_cv_func_isnanl_no_libm=yes
32123else
32124  gl_cv_func_isnanl_no_libm=no
32125fi
32126rm -f core conftest.err conftest.$ac_objext \
32127    conftest$ac_exeext conftest.$ac_ext
32128
32129fi
32130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
32131$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
32132
32133  if test $gl_cv_func_isnanl_no_libm = no; then
32134
32135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
32136$as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
32137if ${gl_cv_func_isnanl_in_libm+:} false; then :
32138  $as_echo_n "(cached) " >&6
32139else
32140
32141      save_LIBS="$LIBS"
32142      LIBS="$LIBS -lm"
32143      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32144/* end confdefs.h.  */
32145#include <math.h>
32146             #ifndef __has_builtin
32147             # define __has_builtin(name) 0
32148             #endif
32149             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
32150             # undef isnanl
32151             # define isnanl(x) __builtin_isnanl ((long double)(x))
32152             #elif defined isnan
32153             # undef isnanl
32154             # define isnanl(x) isnan ((long double)(x))
32155             #endif
32156             long double x;
32157int
32158main ()
32159{
32160return isnanl (x);
32161  ;
32162  return 0;
32163}
32164_ACEOF
32165if ac_fn_c_try_link "$LINENO"; then :
32166  gl_cv_func_isnanl_in_libm=yes
32167else
32168  gl_cv_func_isnanl_in_libm=no
32169fi
32170rm -f core conftest.err conftest.$ac_objext \
32171    conftest$ac_exeext conftest.$ac_ext
32172      LIBS="$save_LIBS"
32173
32174fi
32175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
32176$as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
32177
32178    if test $gl_cv_func_isnanl_in_libm = yes; then
32179      ISNANL_LIBM=-lm
32180    fi
32181  fi
32182    if test $gl_cv_func_isnanl_no_libm = yes \
32183     || test $gl_cv_func_isnanl_in_libm = yes; then
32184    save_LIBS="$LIBS"
32185    LIBS="$LIBS $ISNANL_LIBM"
32186
32187
32188
32189
32190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
32191$as_echo_n "checking whether isnanl works... " >&6; }
32192if ${gl_cv_func_isnanl_works+:} false; then :
32193  $as_echo_n "(cached) " >&6
32194else
32195
32196      if test "$cross_compiling" = yes; then :
32197  case "$host_os" in
32198           mingw*) # Guess yes on mingw, no on MSVC.
32199             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32200/* end confdefs.h.  */
32201
32202#ifdef __MINGW32__
32203 Known
32204#endif
32205
32206_ACEOF
32207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32208  $EGREP "Known" >/dev/null 2>&1; then :
32209  gl_cv_func_isnanl_works="guessing yes"
32210else
32211  gl_cv_func_isnanl_works="guessing no"
32212fi
32213rm -f conftest*
32214
32215             ;;
32216           *) gl_cv_func_isnanl_works="guessing yes" ;;
32217         esac
32218
32219else
32220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32221/* end confdefs.h.  */
32222
32223#include <float.h>
32224#include <limits.h>
32225#include <math.h>
32226#ifndef __has_builtin
32227# define __has_builtin(name) 0
32228#endif
32229#if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
32230# undef isnanl
32231# define isnanl(x) __builtin_isnanl ((long double)(x))
32232#elif defined isnan
32233# undef isnanl
32234# define isnanl(x) isnan ((long double)(x))
32235#endif
32236#define NWORDS \
32237  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
32238typedef union { unsigned int word[NWORDS]; long double value; }
32239        memory_long_double;
32240/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
32241   runtime type conversion.  */
32242#ifdef __sgi
32243static long double NaNl ()
32244{
32245  double zero = 0.0;
32246  return zero / zero;
32247}
32248#else
32249# define NaNl() (0.0L / 0.0L)
32250#endif
32251int main ()
32252{
32253  int result = 0;
32254
32255  if (!isnanl (NaNl ()))
32256    result |= 1;
32257
32258  {
32259    memory_long_double m;
32260    unsigned int i;
32261
32262    /* The isnanl function should be immune against changes in the sign bit and
32263       in the mantissa bits.  The xor operation twiddles a bit that can only be
32264       a sign bit or a mantissa bit (since the exponent never extends to
32265       bit 31).  */
32266    m.value = NaNl ();
32267    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
32268    for (i = 0; i < NWORDS; i++)
32269      m.word[i] |= 1;
32270    if (!isnanl (m.value))
32271      result |= 1;
32272  }
32273
32274#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
32275/* Representation of an 80-bit 'long double' as an initializer for a sequence
32276   of 'unsigned int' words.  */
32277# ifdef WORDS_BIGENDIAN
32278#  define LDBL80_WORDS(exponent,manthi,mantlo) \
32279     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
32280       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
32281       (unsigned int) (mantlo) << 16                                        \
32282     }
32283# else
32284#  define LDBL80_WORDS(exponent,manthi,mantlo) \
32285     { mantlo, manthi, exponent }
32286# endif
32287  { /* Quiet NaN.  */
32288    static memory_long_double x =
32289      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
32290    if (!isnanl (x.value))
32291      result |= 2;
32292  }
32293  {
32294    /* Signalling NaN.  */
32295    static memory_long_double x =
32296      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
32297    if (!isnanl (x.value))
32298      result |= 2;
32299  }
32300  /* isnanl should return something even for noncanonical values.  */
32301  { /* Pseudo-NaN.  */
32302    static memory_long_double x =
32303      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
32304    if (isnanl (x.value) && !isnanl (x.value))
32305      result |= 4;
32306  }
32307  { /* Pseudo-Infinity.  */
32308    static memory_long_double x =
32309      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
32310    if (isnanl (x.value) && !isnanl (x.value))
32311      result |= 8;
32312  }
32313  { /* Pseudo-Zero.  */
32314    static memory_long_double x =
32315      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
32316    if (isnanl (x.value) && !isnanl (x.value))
32317      result |= 16;
32318  }
32319  { /* Unnormalized number.  */
32320    static memory_long_double x =
32321      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
32322    if (isnanl (x.value) && !isnanl (x.value))
32323      result |= 32;
32324  }
32325  { /* Pseudo-Denormal.  */
32326    static memory_long_double x =
32327      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
32328    if (isnanl (x.value) && !isnanl (x.value))
32329      result |= 64;
32330  }
32331#endif
32332
32333  return result;
32334}
32335_ACEOF
32336if ac_fn_c_try_run "$LINENO"; then :
32337  gl_cv_func_isnanl_works=yes
32338else
32339  gl_cv_func_isnanl_works=no
32340fi
32341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32342  conftest.$ac_objext conftest.beam conftest.$ac_ext
32343fi
32344
32345
32346fi
32347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
32348$as_echo "$gl_cv_func_isnanl_works" >&6; }
32349
32350    LIBS="$save_LIBS"
32351    case "$gl_cv_func_isnanl_works" in
32352      *yes) gl_func_isnanl=yes ;;
32353      *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
32354    esac
32355  else
32356    gl_func_isnanl=no
32357  fi
32358  if test $gl_func_isnanl != yes; then
32359    HAVE_ISNANL=0
32360  fi
32361
32362
32363
32364
32365
32366  if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
32367
32368
32369
32370
32371
32372
32373
32374
32375  lts_LIBOBJS="$lts_LIBOBJS isnanl.$ac_objext"
32376
32377
32378
32379
32380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
32381$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
32382if ${gl_cv_cc_long_double_expbit0+:} false; then :
32383  $as_echo_n "(cached) " >&6
32384else
32385
32386      if test "$cross_compiling" = yes; then :
32387
32388                              gl_cv_cc_long_double_expbit0="unknown"
32389          case "$host_os" in
32390            mingw*) # On native Windows (little-endian), we know the result
32391                    # in two cases: mingw, MSVC.
32392              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32393/* end confdefs.h.  */
32394
32395#ifdef __MINGW32__
32396 Known
32397#endif
32398
32399_ACEOF
32400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32401  $EGREP "Known" >/dev/null 2>&1; then :
32402  gl_cv_cc_long_double_expbit0="word 2 bit 0"
32403fi
32404rm -f conftest*
32405
32406              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32407/* end confdefs.h.  */
32408
32409#ifdef _MSC_VER
32410 Known
32411#endif
32412
32413_ACEOF
32414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32415  $EGREP "Known" >/dev/null 2>&1; then :
32416  gl_cv_cc_long_double_expbit0="word 1 bit 20"
32417fi
32418rm -f conftest*
32419
32420              ;;
32421          esac
32422
32423else
32424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32425/* end confdefs.h.  */
32426
32427#include <float.h>
32428#include <stddef.h>
32429#include <stdio.h>
32430#include <string.h>
32431#define NWORDS \
32432  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
32433typedef union { long double value; unsigned int word[NWORDS]; }
32434        memory_long_double;
32435static unsigned int ored_words[NWORDS];
32436static unsigned int anded_words[NWORDS];
32437static void add_to_ored_words (long double *x)
32438{
32439  memory_long_double m;
32440  size_t i;
32441  /* Clear it first, in case
32442     sizeof (long double) < sizeof (memory_long_double).  */
32443  memset (&m, 0, sizeof (memory_long_double));
32444  m.value = *x;
32445  for (i = 0; i < NWORDS; i++)
32446    {
32447      ored_words[i] |= m.word[i];
32448      anded_words[i] &= m.word[i];
32449    }
32450}
32451int main ()
32452{
32453  static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
32454  size_t j;
32455  FILE *fp = fopen ("conftest.out", "w");
32456  if (fp == NULL)
32457    return 1;
32458  for (j = 0; j < NWORDS; j++)
32459    anded_words[j] = ~ (unsigned int) 0;
32460  for (j = 0; j < 5; j++)
32461    add_to_ored_words (&samples[j]);
32462  /* Remove bits that are common (e.g. if representation of the first mantissa
32463     bit is explicit).  */
32464  for (j = 0; j < NWORDS; j++)
32465    ored_words[j] &= ~anded_words[j];
32466  /* Now find the nonzero word.  */
32467  for (j = 0; j < NWORDS; j++)
32468    if (ored_words[j] != 0)
32469      break;
32470  if (j < NWORDS)
32471    {
32472      size_t i;
32473      for (i = j + 1; i < NWORDS; i++)
32474        if (ored_words[i] != 0)
32475          {
32476            fprintf (fp, "unknown");
32477            return (fclose (fp) != 0);
32478          }
32479      for (i = 0; ; i++)
32480        if ((ored_words[j] >> i) & 1)
32481          {
32482            fprintf (fp, "word %d bit %d", (int) j, (int) i);
32483            return (fclose (fp) != 0);
32484          }
32485    }
32486  fprintf (fp, "unknown");
32487  return (fclose (fp) != 0);
32488}
32489
32490_ACEOF
32491if ac_fn_c_try_run "$LINENO"; then :
32492  gl_cv_cc_long_double_expbit0=`cat conftest.out`
32493else
32494  gl_cv_cc_long_double_expbit0="unknown"
32495fi
32496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32497  conftest.$ac_objext conftest.beam conftest.$ac_ext
32498fi
32499
32500      rm -f conftest.out
32501
32502fi
32503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
32504$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
32505  case "$gl_cv_cc_long_double_expbit0" in
32506    word*bit*)
32507      word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
32508      bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
32509
32510cat >>confdefs.h <<_ACEOF
32511#define LDBL_EXPBIT0_WORD $word
32512_ACEOF
32513
32514
32515cat >>confdefs.h <<_ACEOF
32516#define LDBL_EXPBIT0_BIT $bit
32517_ACEOF
32518
32519      ;;
32520  esac
32521
32522
32523
32524  fi
32525
32526
32527
32528
32529
32530          GNULIB_ISNANL=1
32531
32532
32533
32534
32535
32536$as_echo "#define GNULIB_TEST_ISNANL 1" >>confdefs.h
32537
32538
32539
32540
32541
32542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
32543$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
32544if ${gl_cv_func_isnanl_no_libm+:} false; then :
32545  $as_echo_n "(cached) " >&6
32546else
32547
32548      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32549/* end confdefs.h.  */
32550#include <math.h>
32551             #ifndef __has_builtin
32552             # define __has_builtin(name) 0
32553             #endif
32554             #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
32555             # undef isnanl
32556             # define isnanl(x) __builtin_isnanl ((long double)(x))
32557             #elif defined isnan
32558             # undef isnanl
32559             # define isnanl(x) isnan ((long double)(x))
32560             #endif
32561             long double x;
32562int
32563main ()
32564{
32565return isnanl (x);
32566  ;
32567  return 0;
32568}
32569_ACEOF
32570if ac_fn_c_try_link "$LINENO"; then :
32571  gl_cv_func_isnanl_no_libm=yes
32572else
32573  gl_cv_func_isnanl_no_libm=no
32574fi
32575rm -f core conftest.err conftest.$ac_objext \
32576    conftest$ac_exeext conftest.$ac_ext
32577
32578fi
32579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
32580$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
32581
32582  gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
32583  if test $gl_func_isnanl_no_libm = yes; then
32584
32585
32586
32587
32588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
32589$as_echo_n "checking whether isnanl works... " >&6; }
32590if ${gl_cv_func_isnanl_works+:} false; then :
32591  $as_echo_n "(cached) " >&6
32592else
32593
32594      if test "$cross_compiling" = yes; then :
32595  case "$host_os" in
32596           mingw*) # Guess yes on mingw, no on MSVC.
32597             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32598/* end confdefs.h.  */
32599
32600#ifdef __MINGW32__
32601 Known
32602#endif
32603
32604_ACEOF
32605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32606  $EGREP "Known" >/dev/null 2>&1; then :
32607  gl_cv_func_isnanl_works="guessing yes"
32608else
32609  gl_cv_func_isnanl_works="guessing no"
32610fi
32611rm -f conftest*
32612
32613             ;;
32614           *) gl_cv_func_isnanl_works="guessing yes" ;;
32615         esac
32616
32617else
32618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32619/* end confdefs.h.  */
32620
32621#include <float.h>
32622#include <limits.h>
32623#include <math.h>
32624#ifndef __has_builtin
32625# define __has_builtin(name) 0
32626#endif
32627#if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
32628# undef isnanl
32629# define isnanl(x) __builtin_isnanl ((long double)(x))
32630#elif defined isnan
32631# undef isnanl
32632# define isnanl(x) isnan ((long double)(x))
32633#endif
32634#define NWORDS \
32635  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
32636typedef union { unsigned int word[NWORDS]; long double value; }
32637        memory_long_double;
32638/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
32639   runtime type conversion.  */
32640#ifdef __sgi
32641static long double NaNl ()
32642{
32643  double zero = 0.0;
32644  return zero / zero;
32645}
32646#else
32647# define NaNl() (0.0L / 0.0L)
32648#endif
32649int main ()
32650{
32651  int result = 0;
32652
32653  if (!isnanl (NaNl ()))
32654    result |= 1;
32655
32656  {
32657    memory_long_double m;
32658    unsigned int i;
32659
32660    /* The isnanl function should be immune against changes in the sign bit and
32661       in the mantissa bits.  The xor operation twiddles a bit that can only be
32662       a sign bit or a mantissa bit (since the exponent never extends to
32663       bit 31).  */
32664    m.value = NaNl ();
32665    m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
32666    for (i = 0; i < NWORDS; i++)
32667      m.word[i] |= 1;
32668    if (!isnanl (m.value))
32669      result |= 1;
32670  }
32671
32672#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
32673/* Representation of an 80-bit 'long double' as an initializer for a sequence
32674   of 'unsigned int' words.  */
32675# ifdef WORDS_BIGENDIAN
32676#  define LDBL80_WORDS(exponent,manthi,mantlo) \
32677     { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
32678       ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
32679       (unsigned int) (mantlo) << 16                                        \
32680     }
32681# else
32682#  define LDBL80_WORDS(exponent,manthi,mantlo) \
32683     { mantlo, manthi, exponent }
32684# endif
32685  { /* Quiet NaN.  */
32686    static memory_long_double x =
32687      { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
32688    if (!isnanl (x.value))
32689      result |= 2;
32690  }
32691  {
32692    /* Signalling NaN.  */
32693    static memory_long_double x =
32694      { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
32695    if (!isnanl (x.value))
32696      result |= 2;
32697  }
32698  /* isnanl should return something even for noncanonical values.  */
32699  { /* Pseudo-NaN.  */
32700    static memory_long_double x =
32701      { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
32702    if (isnanl (x.value) && !isnanl (x.value))
32703      result |= 4;
32704  }
32705  { /* Pseudo-Infinity.  */
32706    static memory_long_double x =
32707      { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
32708    if (isnanl (x.value) && !isnanl (x.value))
32709      result |= 8;
32710  }
32711  { /* Pseudo-Zero.  */
32712    static memory_long_double x =
32713      { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
32714    if (isnanl (x.value) && !isnanl (x.value))
32715      result |= 16;
32716  }
32717  { /* Unnormalized number.  */
32718    static memory_long_double x =
32719      { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
32720    if (isnanl (x.value) && !isnanl (x.value))
32721      result |= 32;
32722  }
32723  { /* Pseudo-Denormal.  */
32724    static memory_long_double x =
32725      { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
32726    if (isnanl (x.value) && !isnanl (x.value))
32727      result |= 64;
32728  }
32729#endif
32730
32731  return result;
32732}
32733_ACEOF
32734if ac_fn_c_try_run "$LINENO"; then :
32735  gl_cv_func_isnanl_works=yes
32736else
32737  gl_cv_func_isnanl_works=no
32738fi
32739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32740  conftest.$ac_objext conftest.beam conftest.$ac_ext
32741fi
32742
32743
32744fi
32745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
32746$as_echo "$gl_cv_func_isnanl_works" >&6; }
32747
32748    case "$gl_cv_func_isnanl_works" in
32749      *yes) ;;
32750      *)    gl_func_isnanl_no_libm=no ;;
32751    esac
32752  fi
32753  if test $gl_func_isnanl_no_libm = yes; then
32754
32755$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
32756
32757  fi
32758
32759  if test $gl_func_isnanl_no_libm != yes; then
32760
32761
32762
32763
32764
32765
32766
32767
32768  lts_LIBOBJS="$lts_LIBOBJS isnanl.$ac_objext"
32769
32770
32771
32772
32773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
32774$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
32775if ${gl_cv_cc_long_double_expbit0+:} false; then :
32776  $as_echo_n "(cached) " >&6
32777else
32778
32779      if test "$cross_compiling" = yes; then :
32780
32781                              gl_cv_cc_long_double_expbit0="unknown"
32782          case "$host_os" in
32783            mingw*) # On native Windows (little-endian), we know the result
32784                    # in two cases: mingw, MSVC.
32785              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32786/* end confdefs.h.  */
32787
32788#ifdef __MINGW32__
32789 Known
32790#endif
32791
32792_ACEOF
32793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32794  $EGREP "Known" >/dev/null 2>&1; then :
32795  gl_cv_cc_long_double_expbit0="word 2 bit 0"
32796fi
32797rm -f conftest*
32798
32799              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32800/* end confdefs.h.  */
32801
32802#ifdef _MSC_VER
32803 Known
32804#endif
32805
32806_ACEOF
32807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32808  $EGREP "Known" >/dev/null 2>&1; then :
32809  gl_cv_cc_long_double_expbit0="word 1 bit 20"
32810fi
32811rm -f conftest*
32812
32813              ;;
32814          esac
32815
32816else
32817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32818/* end confdefs.h.  */
32819
32820#include <float.h>
32821#include <stddef.h>
32822#include <stdio.h>
32823#include <string.h>
32824#define NWORDS \
32825  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
32826typedef union { long double value; unsigned int word[NWORDS]; }
32827        memory_long_double;
32828static unsigned int ored_words[NWORDS];
32829static unsigned int anded_words[NWORDS];
32830static void add_to_ored_words (long double *x)
32831{
32832  memory_long_double m;
32833  size_t i;
32834  /* Clear it first, in case
32835     sizeof (long double) < sizeof (memory_long_double).  */
32836  memset (&m, 0, sizeof (memory_long_double));
32837  m.value = *x;
32838  for (i = 0; i < NWORDS; i++)
32839    {
32840      ored_words[i] |= m.word[i];
32841      anded_words[i] &= m.word[i];
32842    }
32843}
32844int main ()
32845{
32846  static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
32847  size_t j;
32848  FILE *fp = fopen ("conftest.out", "w");
32849  if (fp == NULL)
32850    return 1;
32851  for (j = 0; j < NWORDS; j++)
32852    anded_words[j] = ~ (unsigned int) 0;
32853  for (j = 0; j < 5; j++)
32854    add_to_ored_words (&samples[j]);
32855  /* Remove bits that are common (e.g. if representation of the first mantissa
32856     bit is explicit).  */
32857  for (j = 0; j < NWORDS; j++)
32858    ored_words[j] &= ~anded_words[j];
32859  /* Now find the nonzero word.  */
32860  for (j = 0; j < NWORDS; j++)
32861    if (ored_words[j] != 0)
32862      break;
32863  if (j < NWORDS)
32864    {
32865      size_t i;
32866      for (i = j + 1; i < NWORDS; i++)
32867        if (ored_words[i] != 0)
32868          {
32869            fprintf (fp, "unknown");
32870            return (fclose (fp) != 0);
32871          }
32872      for (i = 0; ; i++)
32873        if ((ored_words[j] >> i) & 1)
32874          {
32875            fprintf (fp, "word %d bit %d", (int) j, (int) i);
32876            return (fclose (fp) != 0);
32877          }
32878    }
32879  fprintf (fp, "unknown");
32880  return (fclose (fp) != 0);
32881}
32882
32883_ACEOF
32884if ac_fn_c_try_run "$LINENO"; then :
32885  gl_cv_cc_long_double_expbit0=`cat conftest.out`
32886else
32887  gl_cv_cc_long_double_expbit0="unknown"
32888fi
32889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32890  conftest.$ac_objext conftest.beam conftest.$ac_ext
32891fi
32892
32893      rm -f conftest.out
32894
32895fi
32896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
32897$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
32898  case "$gl_cv_cc_long_double_expbit0" in
32899    word*bit*)
32900      word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
32901      bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
32902
32903cat >>confdefs.h <<_ACEOF
32904#define LDBL_EXPBIT0_WORD $word
32905_ACEOF
32906
32907
32908cat >>confdefs.h <<_ACEOF
32909#define LDBL_EXPBIT0_BIT $bit
32910_ACEOF
32911
32912      ;;
32913  esac
32914
32915
32916
32917  fi
32918
32919  # In libtextstyle, we don't want to use an external libcroco, because its
32920  # dependencies and their dynamic relocations have an impact on the startup
32921  # time of a program that is linked with it. As you can see by using
32922  # 'readelf -r ... | wc -l' and 'readelf -d ... | grep NEEDED':
32923  # - libcroco.so depends on libxml2.
32924  #   - libxml2.so has more than 3300 relocations and depends on libicuuc.
32925  #     - libicuuc.so has more than 4900 relocations and depends on libstdc++.
32926  #       - libstdc++.so has more than 4600 relocations.
32927  # These are more than 12800 relocations, to perform at program startup.
32928  # So, force the use of the included libcroco part.
32929
32930
32931
32932  gl_cv_libcroco_force_included=yes
32933
32934  gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
32935  LIBCROCO=
32936  LTLIBCROCO=
32937  INCCROCO=
32938
32939
32940
32941
32942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5
32943$as_echo_n "checking whether to use the included libcroco... " >&6; }
32944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5
32945$as_echo "$gl_cv_libcroco_use_included" >&6; }
32946
32947   if test "$gl_cv_libcroco_use_included" = yes; then
32948  INCLUDED_LIBCROCO_TRUE=
32949  INCLUDED_LIBCROCO_FALSE='#'
32950else
32951  INCLUDED_LIBCROCO_TRUE='#'
32952  INCLUDED_LIBCROCO_FALSE=
32953fi
32954
32955
32956  # In libtextstyle, we don't want to use an external libglib, because its
32957  # dynamic relocations have an impact on the startup time of a program that
32958  # is linked with it. As you can see by using 'readelf -r ... | wc -l',
32959  # 'readelf -d ... | grep NEEDED', and 'nm --dynamic ...':
32960  # - libglib-2.0.so has more than 300 relocations and depends on libpcre.
32961  # - But libtextstyle needs only less than 10% of libglib: out of the more
32962  #   than 1600 exported symbols, libtextstyle needs less than 160.
32963  # So, force the use of the included libglib part.
32964
32965  gl_cv_libglib_force_included=yes
32966
32967  gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
32968  LIBGLIB=
32969  LTLIBGLIB=
32970  INCGLIB=
32971
32972
32973
32974
32975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
32976$as_echo_n "checking whether to use the included glib... " >&6; }
32977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
32978$as_echo "$gl_cv_libglib_use_included" >&6; }
32979
32980  if test "$gl_cv_libglib_use_included" = yes; then
32981    LIBGLIB_H=
32982    LIBGLIB_H="$LIBGLIB_H glib.h"
32983    LIBGLIB_H="$LIBGLIB_H glibconfig.h"
32984    LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
32985    LIBGLIB_H="$LIBGLIB_H glib/glist.h"
32986    LIBGLIB_H="$LIBGLIB_H glib/gmacros.h"
32987    LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
32988    LIBGLIB_H="$LIBGLIB_H glib/gprintfint.h"
32989    LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
32990    LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
32991    LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
32992
32993    for ac_header in unistd.h
32994do :
32995  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
32996if test "x$ac_cv_header_unistd_h" = xyes; then :
32997  cat >>confdefs.h <<_ACEOF
32998#define HAVE_UNISTD_H 1
32999_ACEOF
33000
33001fi
33002
33003done
33004
33005      else
33006    LIBGLIB_H=
33007  fi
33008
33009
33010   if test "$gl_cv_libglib_use_included" = yes; then
33011  INCLUDED_LIBGLIB_TRUE=
33012  INCLUDED_LIBGLIB_FALSE='#'
33013else
33014  INCLUDED_LIBGLIB_TRUE='#'
33015  INCLUDED_LIBGLIB_FALSE=
33016fi
33017
33018
33019  # In libtextstyle, we don't want to use an external libxml, because its
33020  # dependencies and their dynamic relocations have an impact on the startup
33021  # time of a program that is linked with it. As you can see by using
33022  # 'readelf -r ... | wc -l' and 'readelf -d ... | grep NEEDED':
33023  # - libxml2.so has more than 3300 relocations and depends on libicuuc.
33024  #   - libicuuc.so has more than 4900 relocations and depends on libstdc++.
33025  #     - libstdc++.so has more than 4600 relocations.
33026  # These are more than 12800 relocations, to perform at program startup.
33027  # So, force the use of the included libxml part.
33028
33029
33030
33031  gl_cv_libxml_force_included=yes
33032
33033  gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
33034  LIBXML=
33035  LTLIBXML=
33036  INCXML=
33037
33038
33039
33040
33041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5
33042$as_echo_n "checking whether to use the included libxml... " >&6; }
33043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5
33044$as_echo "$gl_cv_libxml_use_included" >&6; }
33045
33046  if test "$gl_cv_libxml_use_included" = yes; then
33047    LIBXML_H=
33048    LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
33049    LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
33050    LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
33051    LIBXML_H="$LIBXML_H libxml/SAX2.h"
33052    LIBXML_H="$LIBXML_H libxml/SAX.h"
33053    LIBXML_H="$LIBXML_H libxml/c14n.h"
33054    LIBXML_H="$LIBXML_H libxml/catalog.h"
33055    LIBXML_H="$LIBXML_H libxml/chvalid.h"
33056    LIBXML_H="$LIBXML_H libxml/debugXML.h"
33057    LIBXML_H="$LIBXML_H libxml/dict.h"
33058    LIBXML_H="$LIBXML_H libxml/encoding.h"
33059    LIBXML_H="$LIBXML_H libxml/entities.h"
33060    LIBXML_H="$LIBXML_H libxml/globals.h"
33061    LIBXML_H="$LIBXML_H libxml/hash.h"
33062    LIBXML_H="$LIBXML_H libxml/list.h"
33063    LIBXML_H="$LIBXML_H libxml/nanoftp.h"
33064    LIBXML_H="$LIBXML_H libxml/nanohttp.h"
33065    LIBXML_H="$LIBXML_H libxml/parser.h"
33066    LIBXML_H="$LIBXML_H libxml/parserInternals.h"
33067    LIBXML_H="$LIBXML_H libxml/pattern.h"
33068    LIBXML_H="$LIBXML_H libxml/relaxng.h"
33069    LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
33070    LIBXML_H="$LIBXML_H libxml/schematron.h"
33071    LIBXML_H="$LIBXML_H libxml/threads.h"
33072    LIBXML_H="$LIBXML_H libxml/tree.h"
33073    LIBXML_H="$LIBXML_H libxml/uri.h"
33074    LIBXML_H="$LIBXML_H libxml/valid.h"
33075    LIBXML_H="$LIBXML_H libxml/xinclude.h"
33076    LIBXML_H="$LIBXML_H libxml/xlink.h"
33077    LIBXML_H="$LIBXML_H libxml/xmlIO.h"
33078    LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
33079    LIBXML_H="$LIBXML_H libxml/xmlerror.h"
33080    LIBXML_H="$LIBXML_H libxml/xmlexports.h"
33081    LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
33082    LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
33083    LIBXML_H="$LIBXML_H libxml/xmlreader.h"
33084    LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
33085    LIBXML_H="$LIBXML_H libxml/xmlsave.h"
33086    LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
33087    LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
33088    LIBXML_H="$LIBXML_H libxml/xmlstring.h"
33089    LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
33090    LIBXML_H="$LIBXML_H libxml/xmlversion.h"
33091    LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
33092    LIBXML_H="$LIBXML_H libxml/xpath.h"
33093    LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
33094    LIBXML_H="$LIBXML_H libxml/xpointer.h"
33095    for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
33096                      fcntl.h float.h limits.h malloc.h math.h netdb.h \
33097                      netinet/in.h signal.h stdlib.h string.h \
33098                      strings.h sys/select.h sys/socket.h sys/stat.h \
33099                      sys/time.h sys/types.h time.h unistd.h
33100do :
33101  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33102ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33104  cat >>confdefs.h <<_ACEOF
33105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33106_ACEOF
33107
33108fi
33109
33110done
33111
33112    for ac_header in arpa/nameser.h
33113do :
33114  ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
33115      #if HAVE_SYS_TYPES_H
33116      # include <sys/types.h>
33117      #endif
33118
33119"
33120if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
33121  cat >>confdefs.h <<_ACEOF
33122#define HAVE_ARPA_NAMESER_H 1
33123_ACEOF
33124
33125fi
33126
33127done
33128
33129    for ac_header in resolv.h
33130do :
33131  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
33132      #if HAVE_SYS_TYPES_H
33133      # include <sys/types.h>
33134      #endif
33135      #if HAVE_NETINET_IN_H
33136      # include <netinet/in.h>
33137      #endif
33138      #if HAVE_ARPA_NAMESER_H
33139      # include <arpa/nameser.h>
33140      #endif
33141
33142"
33143if test "x$ac_cv_header_resolv_h" = xyes; then :
33144  cat >>confdefs.h <<_ACEOF
33145#define HAVE_RESOLV_H 1
33146_ACEOF
33147
33148fi
33149
33150done
33151
33152    for ac_func in getaddrinfo localtime stat strftime
33153do :
33154  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33155ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33156if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33157  cat >>confdefs.h <<_ACEOF
33158#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33159_ACEOF
33160
33161fi
33162done
33163
33164
33165$as_echo "#define VA_COPY va_copy" >>confdefs.h
33166
33167          else
33168    LIBXML_H=
33169  fi
33170
33171
33172   if test "$gl_cv_libxml_use_included" = yes; then
33173  INCLUDED_LIBXML_TRUE=
33174  INCLUDED_LIBXML_FALSE='#'
33175else
33176  INCLUDED_LIBXML_TRUE='#'
33177  INCLUDED_LIBXML_FALSE=
33178fi
33179
33180
33181
33182
33183
33184  if test "$gl_threads_api" = posix; then
33185    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
33186    # pthread_rwlock_* functions.
33187    has_rwlock=false
33188    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
33189"
33190if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
33191  has_rwlock=true
33192
33193$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
33194
33195fi
33196
33197    if $has_rwlock; then
33198
33199
33200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
33201$as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
33202if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
33203  $as_echo_n "(cached) " >&6
33204else
33205  save_LIBS="$LIBS"
33206     LIBS="$LIBS $LIBMULTITHREAD"
33207     if test "$cross_compiling" = yes; then :
33208  case "$host_os" in
33209                         # Guess no on glibc systems.
33210          *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
33211                         # Guess no on musl systems.
33212          *-musl*)       gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
33213                         # Guess no on bionic systems.
33214          *-android*)    gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
33215                         # Guess yes on native Windows with the mingw-w64 winpthreads library.
33216                         # Guess no on native Windows with the gnulib windows-rwlock module.
33217          mingw*)        if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
33218                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
33219                         else
33220                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
33221                         fi
33222                         ;;
33223                         # If we don't know, obey --enable-cross-guesses.
33224          *)             gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
33225         esac
33226
33227else
33228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33229/* end confdefs.h.  */
33230
33231#include <errno.h>
33232#include <pthread.h>
33233#include <stdlib.h>
33234#include <unistd.h>
33235
33236#define SUCCEED() exit (0)
33237#define FAILURE() exit (1)
33238#define UNEXPECTED(n) (exit (10 + (n)))
33239
33240/* The main thread creates the waiting writer and the requesting reader threads
33241   in the default way; this guarantees that they have the same priority.
33242   We can reuse the main thread as first reader thread.  */
33243
33244static pthread_rwlock_t lock;
33245static pthread_t reader1;
33246static pthread_t writer;
33247static pthread_t reader2;
33248static pthread_t timer;
33249/* Used to pass control from writer to reader2 and from reader2 to timer,
33250   as in a relay race.
33251   Passing control from one running thread to another running thread
33252   is most likely faster than to create the second thread.  */
33253static pthread_mutex_t baton;
33254
33255static void *
33256timer_func (void *ignored)
33257{
33258  /* Step 13 (can be before or after step 12):
33259     The timer thread takes the baton, then waits a moment to make sure
33260     it can tell whether the second reader thread is blocked at step 12.  */
33261  if (pthread_mutex_lock (&baton))
33262    UNEXPECTED (13);
33263  usleep (100000);
33264  /* By the time we get here, it's clear that the second reader thread is
33265     blocked at step 12.  This is the desired behaviour.  */
33266  SUCCEED ();
33267}
33268
33269static void *
33270reader2_func (void *ignored)
33271{
33272  int err;
33273
33274  /* Step 8 (can be before or after step 7):
33275     The second reader thread takes the baton, then waits a moment to make sure
33276     the writer thread has reached step 7.  */
33277  if (pthread_mutex_lock (&baton))
33278    UNEXPECTED (8);
33279  usleep (100000);
33280  /* Step 9: The second reader thread requests the lock.  */
33281  err = pthread_rwlock_tryrdlock (&lock);
33282  if (err == 0)
33283    FAILURE ();
33284  else if (err != EBUSY)
33285    UNEXPECTED (9);
33286  /* Step 10: Launch a timer, to test whether the next call blocks.  */
33287  if (pthread_create (&timer, NULL, timer_func, NULL))
33288    UNEXPECTED (10);
33289  /* Step 11: Release the baton.  */
33290  if (pthread_mutex_unlock (&baton))
33291    UNEXPECTED (11);
33292  /* Step 12: The second reader thread requests the lock.  */
33293  err = pthread_rwlock_rdlock (&lock);
33294  if (err == 0)
33295    FAILURE ();
33296  else
33297    UNEXPECTED (12);
33298}
33299
33300static void *
33301writer_func (void *ignored)
33302{
33303  /* Step 4: Take the baton, so that the second reader thread does not go ahead
33304     too early.  */
33305  if (pthread_mutex_lock (&baton))
33306    UNEXPECTED (4);
33307  /* Step 5: Create the second reader thread.  */
33308  if (pthread_create (&reader2, NULL, reader2_func, NULL))
33309    UNEXPECTED (5);
33310  /* Step 6: Release the baton.  */
33311  if (pthread_mutex_unlock (&baton))
33312    UNEXPECTED (6);
33313  /* Step 7: The writer thread requests the lock.  */
33314  if (pthread_rwlock_wrlock (&lock))
33315    UNEXPECTED (7);
33316  return NULL;
33317}
33318
33319int
33320main ()
33321{
33322  reader1 = pthread_self ();
33323
33324  /* Step 1: The main thread initializes the lock and the baton.  */
33325  if (pthread_rwlock_init (&lock, NULL))
33326    UNEXPECTED (1);
33327  if (pthread_mutex_init (&baton, NULL))
33328    UNEXPECTED (1);
33329  /* Step 2: The main thread acquires the lock as a reader.  */
33330  if (pthread_rwlock_rdlock (&lock))
33331    UNEXPECTED (2);
33332  /* Step 3: Create the writer thread.  */
33333  if (pthread_create (&writer, NULL, writer_func, NULL))
33334    UNEXPECTED (3);
33335  /* Job done.  Go to sleep.  */
33336  for (;;)
33337    {
33338      sleep (1);
33339    }
33340}
33341
33342_ACEOF
33343if ac_fn_c_try_run "$LINENO"; then :
33344  gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
33345else
33346  gl_cv_pthread_rwlock_rdlock_prefer_writer=no
33347fi
33348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33349  conftest.$ac_objext conftest.beam conftest.$ac_ext
33350fi
33351
33352     LIBS="$save_LIBS"
33353
33354fi
33355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
33356$as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
33357  case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
33358    *yes)
33359
33360$as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
33361
33362      ;;
33363  esac
33364
33365    fi
33366    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
33367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33368/* end confdefs.h.  */
33369
33370      #include <pthread.h>
33371int
33372main ()
33373{
33374
33375#if __FreeBSD__ == 4
33376error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
33377#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
33378       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
33379error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
33380#else
33381int x = (int)PTHREAD_MUTEX_RECURSIVE;
33382return !x;
33383#endif
33384
33385  ;
33386  return 0;
33387}
33388_ACEOF
33389if ac_fn_c_try_compile "$LINENO"; then :
33390
33391$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
33392
33393fi
33394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33395  fi
33396  :
33397
33398
33399
33400cat >>confdefs.h <<_ACEOF
33401#define GNULIB_LOCK 1
33402_ACEOF
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412  LOG10_LIBM="$POW_LIBM"
33413
33414
33415
33416
33417  save_LIBS="$LIBS"
33418  LIBS="$LIBS $LOG10_LIBM"
33419
33420
33421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log10 works" >&5
33422$as_echo_n "checking whether log10 works... " >&6; }
33423if ${gl_cv_func_log10_works+:} false; then :
33424  $as_echo_n "(cached) " >&6
33425else
33426
33427      if test "$cross_compiling" = yes; then :
33428  case "$host_os" in
33429           osf*)   gl_cv_func_log10_works="guessing no" ;;
33430                   # Guess yes on native Windows.
33431           mingw*) gl_cv_func_log10_works="guessing yes" ;;
33432           *)      gl_cv_func_log10_works="guessing yes" ;;
33433         esac
33434
33435else
33436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33437/* end confdefs.h.  */
33438
33439#include <math.h>
33440volatile double x;
33441double y;
33442int main ()
33443{
33444  x = -0.0;
33445  y = log10 (x);
33446  if (!(y + y == y))
33447    return 1;
33448  return 0;
33449}
33450
33451_ACEOF
33452if ac_fn_c_try_run "$LINENO"; then :
33453  gl_cv_func_log10_works=yes
33454else
33455  gl_cv_func_log10_works=no
33456fi
33457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33458  conftest.$ac_objext conftest.beam conftest.$ac_ext
33459fi
33460
33461
33462fi
33463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_log10_works" >&5
33464$as_echo "$gl_cv_func_log10_works" >&6; }
33465
33466  LIBS="$save_LIBS"
33467  case "$gl_cv_func_log10_works" in
33468    *yes) ;;
33469    *) REPLACE_LOG10=1 ;;
33470  esac
33471
33472
33473
33474  if test $REPLACE_LOG10 = 1; then
33475
33476
33477
33478
33479
33480
33481
33482
33483  lts_LIBOBJS="$lts_LIBOBJS log10.$ac_objext"
33484
33485  fi
33486
33487
33488
33489
33490
33491          GNULIB_LOG10=1
33492
33493
33494
33495
33496
33497$as_echo "#define GNULIB_TEST_LOG10 1" >>confdefs.h
33498
33499
33500
33501
33502
33503
33504  if test $gl_cv_func_malloc_posix = yes; then
33505
33506$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
33507
33508  else
33509    REPLACE_MALLOC=1
33510  fi
33511
33512  if test $REPLACE_MALLOC = 1; then
33513
33514
33515
33516
33517
33518
33519
33520
33521  lts_LIBOBJS="$lts_LIBOBJS malloc.$ac_objext"
33522
33523  fi
33524
33525
33526
33527
33528
33529          GNULIB_MALLOC_POSIX=1
33530
33531
33532
33533
33534
33535$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553     if test $gl_cv_have_include_next = yes; then
33554       gl_cv_next_math_h='<'math.h'>'
33555     else
33556       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
33557$as_echo_n "checking absolute name of <math.h>... " >&6; }
33558if ${gl_cv_next_math_h+:} false; then :
33559  $as_echo_n "(cached) " >&6
33560else
33561
33562             if test $ac_cv_header_math_h = yes; then
33563
33564
33565
33566
33567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33568/* end confdefs.h.  */
33569#include <math.h>
33570_ACEOF
33571                case "$host_os" in
33572    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33573    *)    gl_absname_cpp="$ac_cpp" ;;
33574  esac
33575
33576  case "$host_os" in
33577    mingw*)
33578                                          gl_dirsep_regex='[/\\]'
33579      ;;
33580    *)
33581      gl_dirsep_regex='\/'
33582      ;;
33583  esac
33584      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33585  gl_header_literal_regex=`echo 'math.h' \
33586                           | sed -e "$gl_make_literal_regex_sed"`
33587  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33588      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33589      s|^/[^/]|//&|
33590      p
33591      q
33592    }'
33593
33594        gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33595  sed -n "$gl_absolute_header_sed"`
33596
33597           gl_header=$gl_cv_absolute_math_h
33598           gl_cv_next_math_h='"'$gl_header'"'
33599          else
33600               gl_cv_next_math_h='<'math.h'>'
33601             fi
33602
33603
33604fi
33605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
33606$as_echo "$gl_cv_next_math_h" >&6; }
33607     fi
33608     NEXT_MATH_H=$gl_cv_next_math_h
33609
33610     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33611       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33612       gl_next_as_first_directive='<'math.h'>'
33613     else
33614       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33615       gl_next_as_first_directive=$gl_cv_next_math_h
33616     fi
33617     NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
33618
33619
33620
33621
33622
33623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
33624$as_echo_n "checking whether NAN macro works... " >&6; }
33625if ${gl_cv_header_math_nan_works+:} false; then :
33626  $as_echo_n "(cached) " >&6
33627else
33628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33629/* end confdefs.h.  */
33630#include <math.h>
33631int
33632main ()
33633{
33634/* Solaris 10 has a broken definition of NAN.  Other platforms
33635        fail to provide NAN, or provide it only in C99 mode; this
33636        test only needs to fail when NAN is provided but wrong.  */
33637         float f = 1.0f;
33638#ifdef NAN
33639         f = NAN;
33640#endif
33641         return f == 0;
33642  ;
33643  return 0;
33644}
33645_ACEOF
33646if ac_fn_c_try_compile "$LINENO"; then :
33647  gl_cv_header_math_nan_works=yes
33648else
33649  gl_cv_header_math_nan_works=no
33650fi
33651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33652fi
33653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
33654$as_echo "$gl_cv_header_math_nan_works" >&6; }
33655  if test $gl_cv_header_math_nan_works = no; then
33656    REPLACE_NAN=1
33657  fi
33658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
33659$as_echo_n "checking whether HUGE_VAL works... " >&6; }
33660if ${gl_cv_header_math_huge_val_works+:} false; then :
33661  $as_echo_n "(cached) " >&6
33662else
33663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33664/* end confdefs.h.  */
33665#include <math.h>
33666int
33667main ()
33668{
33669/* Solaris 10 has a broken definition of HUGE_VAL.  */
33670         double d = HUGE_VAL;
33671         return d == 0;
33672  ;
33673  return 0;
33674}
33675_ACEOF
33676if ac_fn_c_try_compile "$LINENO"; then :
33677  gl_cv_header_math_huge_val_works=yes
33678else
33679  gl_cv_header_math_huge_val_works=no
33680fi
33681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682fi
33683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
33684$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
33685  if test $gl_cv_header_math_huge_val_works = no; then
33686    REPLACE_HUGE_VAL=1
33687  fi
33688
33689
33690
33691
33692
33693
33694  if test $REPLACE_MEMCHR = 1; then
33695
33696
33697
33698
33699
33700
33701
33702
33703  lts_LIBOBJS="$lts_LIBOBJS memchr.$ac_objext"
33704
33705
33706  for ac_header in bp-sym.h
33707do :
33708  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
33709if test "x$ac_cv_header_bp_sym_h" = xyes; then :
33710  cat >>confdefs.h <<_ACEOF
33711#define HAVE_BP_SYM_H 1
33712_ACEOF
33713
33714fi
33715
33716done
33717
33718
33719  fi
33720
33721
33722
33723
33724
33725          GNULIB_MEMCHR=1
33726
33727
33728
33729
33730
33731$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
33732
33733
33734
33735
33736
33737
33738
33739
33740          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
33741$as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
33742if ${gl_cv_c_cplusplus+:} false; then :
33743  $as_echo_n "(cached) " >&6
33744else
33745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33746/* end confdefs.h.  */
33747
33748#ifdef __cplusplus
33749  Is c++
33750#endif
33751
33752_ACEOF
33753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33754  $EGREP "Is c++" >/dev/null 2>&1; then :
33755  gl_cv_c_cplusplus=yes
33756else
33757  gl_cv_c_cplusplus=no
33758fi
33759rm -f conftest*
33760
33761fi
33762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
33763$as_echo "$gl_cv_c_cplusplus" >&6; }
33764  if test $gl_cv_c_cplusplus = yes; then
33765
33766$as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
33767
33768  fi
33769
33770
33771  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33772
33773
33774
33775
33776
33777
33778
33779
33780  lts_LIBOBJS="$lts_LIBOBJS msvc-inval.$ac_objext"
33781
33782  fi
33783
33784  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33785
33786
33787
33788
33789
33790
33791
33792
33793  lts_LIBOBJS="$lts_LIBOBJS msvc-nothrow.$ac_objext"
33794
33795  fi
33796
33797
33798cat >>confdefs.h <<_ACEOF
33799#define GNULIB_MSVC_NOTHROW 1
33800_ACEOF
33801
33802
33803
33804
33805  NO_CXX=
33806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33807/* end confdefs.h.  */
33808
33809#if defined __GNUC__ && defined __cplusplus
33810  Is_g_plus_plus
33811#endif
33812
33813_ACEOF
33814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33815  $EGREP "Is_g_plus_plus" >/dev/null 2>&1; then :
33816  NO_CXX="-x c"
33817fi
33818rm -f conftest*
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
33835$as_echo_n "checking for obstacks that work with any size object... " >&6; }
33836if ${ac_cv_func_obstack+:} false; then :
33837  $as_echo_n "(cached) " >&6
33838else
33839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33840/* end confdefs.h.  */
33841#include "obstack.h"
33842             void *obstack_chunk_alloc (size_t n) { return 0; }
33843             void obstack_chunk_free (void *p) { }
33844             /* Check that an internal function returns size_t, not int.  */
33845             size_t _obstack_memory_used (struct obstack *);
33846
33847int
33848main ()
33849{
33850struct obstack mem;
33851             obstack_init (&mem);
33852             obstack_free (&mem, 0);
33853
33854  ;
33855  return 0;
33856}
33857_ACEOF
33858if ac_fn_c_try_link "$LINENO"; then :
33859  ac_cv_func_obstack=yes
33860else
33861  ac_cv_func_obstack=no
33862fi
33863rm -f core conftest.err conftest.$ac_objext \
33864    conftest$ac_exeext conftest.$ac_ext
33865fi
33866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
33867$as_echo "$ac_cv_func_obstack" >&6; }
33868   if test "$ac_cv_func_obstack" = yes; then
33869
33870$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
33871
33872   else
33873
33874
33875
33876
33877
33878
33879
33880
33881  lts_LIBOBJS="$lts_LIBOBJS obstack.$ac_objext"
33882
33883   fi
33884
33885
33886
33887
33888  case "$host_os" in
33889    mingw* | pw*)
33890      REPLACE_OPEN=1
33891      ;;
33892    *)
33893
33894      if test "$gl_cv_macro_O_CLOEXEC" != yes; then
33895        REPLACE_OPEN=1
33896      fi
33897
33898
33899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
33900$as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
33901if ${gl_cv_func_open_slash+:} false; then :
33902  $as_echo_n "(cached) " >&6
33903else
33904  # Assume that if we have lstat, we can also check symlinks.
33905     if test $ac_cv_func_lstat = yes; then
33906       touch conftest.tmp
33907       ln -s conftest.tmp conftest.lnk
33908     fi
33909     if test "$cross_compiling" = yes; then :
33910
33911        case "$host_os" in
33912          freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
33913            gl_cv_func_open_slash="guessing no" ;;
33914          *)
33915            gl_cv_func_open_slash="guessing yes" ;;
33916        esac
33917
33918else
33919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33920/* end confdefs.h.  */
33921
33922#include <fcntl.h>
33923#if HAVE_UNISTD_H
33924# include <unistd.h>
33925#endif
33926int main ()
33927{
33928  int result = 0;
33929#if HAVE_LSTAT
33930  if (open ("conftest.lnk/", O_RDONLY) != -1)
33931    result |= 1;
33932#endif
33933  if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
33934    result |= 2;
33935  return result;
33936}
33937_ACEOF
33938if ac_fn_c_try_run "$LINENO"; then :
33939  gl_cv_func_open_slash=yes
33940else
33941  gl_cv_func_open_slash=no
33942fi
33943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33944  conftest.$ac_objext conftest.beam conftest.$ac_ext
33945fi
33946
33947     rm -f conftest.sl conftest.tmp conftest.lnk
33948
33949fi
33950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
33951$as_echo "$gl_cv_func_open_slash" >&6; }
33952  case "$gl_cv_func_open_slash" in
33953    *no)
33954
33955$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
33956
33957      ;;
33958  esac
33959
33960      case "$gl_cv_func_open_slash" in
33961        *no)
33962          REPLACE_OPEN=1
33963          ;;
33964      esac
33965      ;;
33966  esac
33967
33968
33969
33970  if test $REPLACE_OPEN = 1; then
33971
33972
33973
33974
33975
33976
33977
33978
33979  lts_LIBOBJS="$lts_LIBOBJS open.$ac_objext"
33980
33981
33982
33983  :
33984
33985  fi
33986
33987
33988
33989
33990
33991          GNULIB_OPEN=1
33992
33993
33994
33995
33996
33997$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008  POW_LIBM="$POW_LIBM"
34009
34010
34011
34012
34013
34014
34015  if test $gl_cv_func_frexp_no_libm = yes; then
34016
34017
34018
34019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
34020$as_echo_n "checking whether frexp works... " >&6; }
34021if ${gl_cv_func_frexp_works+:} false; then :
34022  $as_echo_n "(cached) " >&6
34023else
34024
34025      if test "$cross_compiling" = yes; then :
34026  case "$host_os" in
34027           netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
34028           mingw*) # Guess yes with MSVC, no with mingw.
34029             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34030/* end confdefs.h.  */
34031
34032#ifdef _MSC_VER
34033 Good
34034#endif
34035
34036_ACEOF
34037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34038  $EGREP "Good" >/dev/null 2>&1; then :
34039  gl_cv_func_frexp_works="guessing yes"
34040else
34041  gl_cv_func_frexp_works="guessing no"
34042fi
34043rm -f conftest*
34044
34045             ;;
34046           *) gl_cv_func_frexp_works="guessing yes" ;;
34047         esac
34048
34049else
34050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34051/* end confdefs.h.  */
34052
34053#include <float.h>
34054#include <math.h>
34055#include <string.h>
34056#if HAVE_DECL_ALARM
34057# include <signal.h>
34058# include <unistd.h>
34059#endif
34060/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
34061   ICC 10.0 has a bug when optimizing the expression -zero.
34062   The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
34063   to PowerPC on Mac OS X 10.5.  */
34064#if defined __hpux || defined __sgi || defined __ICC
34065static double
34066compute_minus_zero (void)
34067{
34068  return -DBL_MIN * DBL_MIN;
34069}
34070# define minus_zero compute_minus_zero ()
34071#else
34072double minus_zero = -0.0;
34073#endif
34074int main()
34075{
34076  int result = 0;
34077  int i;
34078  volatile double x;
34079  double zero = 0.0;
34080#if HAVE_DECL_ALARM
34081  /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
34082     number.  Let the test fail in this case.  */
34083  signal (SIGALRM, SIG_DFL);
34084  alarm (5);
34085#endif
34086  /* Test on denormalized numbers.  */
34087  for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
34088    ;
34089  if (x > 0.0)
34090    {
34091      int exp;
34092      double y = frexp (x, &exp);
34093      /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
34094         On NetBSD: y = 0.75. Correct: y = 0.5.  */
34095      if (y != 0.5)
34096        result |= 1;
34097    }
34098  /* Test on infinite numbers.  */
34099  x = 1.0 / zero;
34100  {
34101    int exp;
34102    double y = frexp (x, &exp);
34103    if (y != x)
34104      result |= 2;
34105  }
34106  /* Test on negative zero.  */
34107  x = minus_zero;
34108  {
34109    int exp;
34110    double y = frexp (x, &exp);
34111    if (memcmp (&y, &x, sizeof x))
34112      result |= 4;
34113  }
34114  return result;
34115}
34116_ACEOF
34117if ac_fn_c_try_run "$LINENO"; then :
34118  gl_cv_func_frexp_works=yes
34119else
34120  gl_cv_func_frexp_works=no
34121fi
34122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34123  conftest.$ac_objext conftest.beam conftest.$ac_ext
34124fi
34125
34126
34127fi
34128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
34129$as_echo "$gl_cv_func_frexp_works" >&6; }
34130
34131    case "$gl_cv_func_frexp_works" in
34132      *yes)
34133
34134$as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
34135
34136        ;;
34137    esac
34138  fi
34139
34140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
34141$as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
34142if ${gl_cv_func_ldexp_no_libm+:} false; then :
34143  $as_echo_n "(cached) " >&6
34144else
34145
34146      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34147/* end confdefs.h.  */
34148#include <math.h>
34149             double x;
34150             int y;
34151int
34152main ()
34153{
34154return ldexp (x, y) < 1;
34155  ;
34156  return 0;
34157}
34158_ACEOF
34159if ac_fn_c_try_link "$LINENO"; then :
34160  gl_cv_func_ldexp_no_libm=yes
34161else
34162  gl_cv_func_ldexp_no_libm=no
34163fi
34164rm -f core conftest.err conftest.$ac_objext \
34165    conftest$ac_exeext conftest.$ac_ext
34166
34167fi
34168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
34169$as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
34170  if test $gl_cv_func_ldexp_no_libm = yes; then
34171
34172$as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
34173
34174  fi
34175
34176
34177
34178
34179
34180
34181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
34182$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
34183if ${gl_cv_func_frexpl_no_libm+:} false; then :
34184  $as_echo_n "(cached) " >&6
34185else
34186
34187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34188/* end confdefs.h.  */
34189#include <math.h>
34190             long double x;
34191int
34192main ()
34193{
34194int e; return frexpl (x, &e) > 0;
34195  ;
34196  return 0;
34197}
34198_ACEOF
34199if ac_fn_c_try_link "$LINENO"; then :
34200  gl_cv_func_frexpl_no_libm=yes
34201else
34202  gl_cv_func_frexpl_no_libm=no
34203fi
34204rm -f core conftest.err conftest.$ac_objext \
34205    conftest$ac_exeext conftest.$ac_ext
34206
34207fi
34208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
34209$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
34210
34211  if test $gl_cv_func_frexpl_no_libm = yes; then
34212
34213
34214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
34215$as_echo_n "checking whether frexpl works... " >&6; }
34216if ${gl_cv_func_frexpl_works+:} false; then :
34217  $as_echo_n "(cached) " >&6
34218else
34219
34220      if test "$cross_compiling" = yes; then :
34221
34222         case "$host_os" in
34223           aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
34224              gl_cv_func_frexpl_works="guessing no";;
34225           *) gl_cv_func_frexpl_works="guessing yes";;
34226         esac
34227
34228else
34229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34230/* end confdefs.h.  */
34231
34232#include <float.h>
34233#include <math.h>
34234/* Override the values of <float.h>, like done in float.in.h.  */
34235#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
34236# undef LDBL_MIN_EXP
34237# define LDBL_MIN_EXP    (-16381)
34238#endif
34239#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
34240# undef LDBL_MIN_EXP
34241# define LDBL_MIN_EXP    (-16381)
34242#endif
34243#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
34244# undef LDBL_MIN_EXP
34245# define LDBL_MIN_EXP DBL_MIN_EXP
34246#endif
34247#if defined __sgi && (LDBL_MANT_DIG >= 106)
34248# if defined __GNUC__
34249#  undef LDBL_MIN_EXP
34250#  define LDBL_MIN_EXP DBL_MIN_EXP
34251# endif
34252#endif
34253extern
34254#ifdef __cplusplus
34255"C"
34256#endif
34257long double frexpl (long double, int *);
34258int main()
34259{
34260  int result = 0;
34261  volatile long double x;
34262  /* Test on finite numbers that fails on AIX 5.1.  */
34263  x = 16.0L;
34264  {
34265    int exp = -9999;
34266    frexpl (x, &exp);
34267    if (exp != 5)
34268      result |= 1;
34269  }
34270  /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
34271     function returns an invalid (incorrectly normalized) value: it returns
34272               y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
34273     but the correct result is
34274          0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
34275  x = 1.01L;
34276  {
34277    int exp = -9999;
34278    long double y = frexpl (x, &exp);
34279    if (!(exp == 1 && y == 0.505L))
34280      result |= 2;
34281  }
34282  /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
34283     LDBL_MAX_EXP = 16384.
34284     In the loop end test, we test x against Infinity, rather than comparing
34285     i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
34286  {
34287    int i;
34288    for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
34289      {
34290        int exp = -9999;
34291        frexpl (x, &exp);
34292        if (exp != i)
34293          {
34294            result |= 4;
34295            break;
34296          }
34297      }
34298  }
34299  /* Test on denormalized numbers.  */
34300  {
34301    int i;
34302    for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
34303      ;
34304    if (x > 0.0L)
34305      {
34306        int exp;
34307        long double y = frexpl (x, &exp);
34308        /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
34309           exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
34310        if (exp != LDBL_MIN_EXP - 1)
34311          result |= 8;
34312      }
34313  }
34314  /* Test on infinite numbers.  */
34315  x = 1.0L / 0.0L;
34316  {
34317    int exp;
34318    long double y = frexpl (x, &exp);
34319    if (y != x)
34320      result |= 16;
34321  }
34322  return result;
34323}
34324_ACEOF
34325if ac_fn_c_try_run "$LINENO"; then :
34326  gl_cv_func_frexpl_works=yes
34327else
34328  gl_cv_func_frexpl_works=no
34329fi
34330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34331  conftest.$ac_objext conftest.beam conftest.$ac_ext
34332fi
34333
34334
34335fi
34336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
34337$as_echo "$gl_cv_func_frexpl_works" >&6; }
34338
34339    case "$gl_cv_func_frexpl_works" in
34340      *yes) gl_func_frexpl_no_libm=yes ;;
34341      *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
34342    esac
34343  else
34344    gl_func_frexpl_no_libm=no
34345        REPLACE_FREXPL=1
34346  fi
34347  if test $gl_func_frexpl_no_libm = yes; then
34348
34349$as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
34350
34351            ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
34352"
34353if test "x$ac_cv_have_decl_frexpl" = xyes; then :
34354
34355else
34356  HAVE_DECL_FREXPL=0
34357fi
34358
34359  fi
34360
34361
34362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
34363$as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
34364if ${gl_cv_func_ldexpl_no_libm+:} false; then :
34365  $as_echo_n "(cached) " >&6
34366else
34367
34368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34369/* end confdefs.h.  */
34370#include <math.h>
34371             long double x;
34372int
34373main ()
34374{
34375return ldexpl (x, -1) > 0;
34376  ;
34377  return 0;
34378}
34379_ACEOF
34380if ac_fn_c_try_link "$LINENO"; then :
34381  gl_cv_func_ldexpl_no_libm=yes
34382else
34383  gl_cv_func_ldexpl_no_libm=no
34384fi
34385rm -f core conftest.err conftest.$ac_objext \
34386    conftest$ac_exeext conftest.$ac_ext
34387
34388fi
34389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
34390$as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
34391
34392  if test $gl_cv_func_ldexpl_no_libm = yes; then
34393
34394
34395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
34396$as_echo_n "checking whether ldexpl works... " >&6; }
34397if ${gl_cv_func_ldexpl_works+:} false; then :
34398  $as_echo_n "(cached) " >&6
34399else
34400
34401      if test "$cross_compiling" = yes; then :
34402
34403         case "$host_os" in
34404           aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;;
34405                            # Guess yes on native Windows.
34406           mingw*)          gl_cv_func_ldexpl_works="guessing yes" ;;
34407           *)               gl_cv_func_ldexpl_works="guessing yes" ;;
34408         esac
34409
34410else
34411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34412/* end confdefs.h.  */
34413
34414#include <math.h>
34415extern
34416#ifdef __cplusplus
34417"C"
34418#endif
34419long double ldexpl (long double, int);
34420int main()
34421{
34422  int result = 0;
34423  {
34424    volatile long double x = 1.0;
34425    volatile long double y = ldexpl (x, -1);
34426    if (y != 0.5L)
34427      result |= 1;
34428  }
34429  {
34430    volatile long double x = 1.73205L;
34431    volatile long double y = ldexpl (x, 0);
34432    if (y != x)
34433      result |= 2;
34434  }
34435  return result;
34436}
34437_ACEOF
34438if ac_fn_c_try_run "$LINENO"; then :
34439  gl_cv_func_ldexpl_works=yes
34440else
34441  gl_cv_func_ldexpl_works=no
34442fi
34443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34444  conftest.$ac_objext conftest.beam conftest.$ac_ext
34445fi
34446
34447
34448fi
34449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
34450$as_echo "$gl_cv_func_ldexpl_works" >&6; }
34451
34452    case "$gl_cv_func_ldexpl_works" in
34453      *yes)
34454
34455$as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
34456
34457                        ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
34458"
34459if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
34460
34461else
34462  HAVE_DECL_LDEXPL=0
34463fi
34464
34465        ;;
34466    esac
34467  fi
34468
34469
34470
34471
34472
34473  for ac_func in raise
34474do :
34475  ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
34476if test "x$ac_cv_func_raise" = xyes; then :
34477  cat >>confdefs.h <<_ACEOF
34478#define HAVE_RAISE 1
34479_ACEOF
34480
34481fi
34482done
34483
34484  if test $ac_cv_func_raise = no; then
34485    HAVE_RAISE=0
34486  else
34487
34488
34489      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
34490        REPLACE_RAISE=1
34491      fi
34492
34493
34494
34495
34496
34497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigprocmask" >&5
34498$as_echo_n "checking for sigprocmask... " >&6; }
34499if ${gl_cv_func_sigprocmask+:} false; then :
34500  $as_echo_n "(cached) " >&6
34501else
34502  if test $gl_cv_type_sigset_t = yes; then
34503
34504  {
34505
34506         ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
34507if test "x$ac_cv_func_sigprocmask" = xyes; then :
34508  gl_cv_func_sigprocmask=yes
34509else
34510  gl_cv_func_sigprocmask=no
34511fi
34512
34513
34514  } 6>/dev/null
34515
34516     else
34517       gl_cv_func_sigprocmask=no
34518     fi
34519
34520fi
34521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sigprocmask" >&5
34522$as_echo "$gl_cv_func_sigprocmask" >&6; }
34523  if test $gl_cv_func_sigprocmask != yes; then
34524    HAVE_POSIX_SIGNALBLOCKING=0
34525  fi
34526
34527      if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
34528        :
34529      fi
34530
34531  fi
34532
34533  if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
34534
34535
34536
34537
34538
34539
34540
34541
34542  lts_LIBOBJS="$lts_LIBOBJS raise.$ac_objext"
34543
34544    :
34545  fi
34546
34547
34548
34549
34550
34551          GNULIB_RAISE=1
34552
34553
34554
34555
34556
34557$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
34558
34559
34560
34561
34562
34563
34564
34565    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
34566      REPLACE_READ=1
34567    fi
34568
34569
34570
34571  if test $REPLACE_READ = 1; then
34572
34573
34574
34575
34576
34577
34578
34579
34580  lts_LIBOBJS="$lts_LIBOBJS read.$ac_objext"
34581
34582    :
34583  fi
34584
34585
34586
34587
34588
34589          GNULIB_READ=1
34590
34591
34592
34593
34594
34595$as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610  if test $ac_cv_func_sigaction = yes; then
34611    ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
34612"
34613if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
34614
34615cat >>confdefs.h <<_ACEOF
34616#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
34617_ACEOF
34618
34619
34620fi
34621
34622    if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
34623      HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
34624    fi
34625  else
34626    HAVE_SIGACTION=0
34627  fi
34628
34629  if test $HAVE_SIGACTION = 0; then
34630
34631
34632
34633
34634
34635
34636
34637
34638  lts_LIBOBJS="$lts_LIBOBJS sigaction.$ac_objext"
34639
34640
34641
34642
34643
34644
34645
34646  ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
34647#include <signal.h>
34648
34649"
34650if test "x$ac_cv_type_siginfo_t" = xyes; then :
34651
34652cat >>confdefs.h <<_ACEOF
34653#define HAVE_SIGINFO_T 1
34654_ACEOF
34655
34656
34657fi
34658
34659  if test $ac_cv_type_siginfo_t = no; then
34660    HAVE_SIGINFO_T=0
34661  fi
34662
34663  fi
34664
34665
34666
34667
34668
34669          GNULIB_SIGACTION=1
34670
34671
34672
34673
34674
34675$as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690     if test $gl_cv_have_include_next = yes; then
34691       gl_cv_next_signal_h='<'signal.h'>'
34692     else
34693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
34694$as_echo_n "checking absolute name of <signal.h>... " >&6; }
34695if ${gl_cv_next_signal_h+:} false; then :
34696  $as_echo_n "(cached) " >&6
34697else
34698
34699
34700
34701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34702/* end confdefs.h.  */
34703#include <signal.h>
34704_ACEOF
34705                case "$host_os" in
34706    aix*) gl_absname_cpp="$ac_cpp -C" ;;
34707    *)    gl_absname_cpp="$ac_cpp" ;;
34708  esac
34709
34710  case "$host_os" in
34711    mingw*)
34712                                          gl_dirsep_regex='[/\\]'
34713      ;;
34714    *)
34715      gl_dirsep_regex='\/'
34716      ;;
34717  esac
34718      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34719  gl_header_literal_regex=`echo 'signal.h' \
34720                           | sed -e "$gl_make_literal_regex_sed"`
34721  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34722      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34723      s|^/[^/]|//&|
34724      p
34725      q
34726    }'
34727
34728        gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34729  sed -n "$gl_absolute_header_sed"`
34730
34731           gl_header=$gl_cv_absolute_signal_h
34732           gl_cv_next_signal_h='"'$gl_header'"'
34733
34734
34735fi
34736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
34737$as_echo "$gl_cv_next_signal_h" >&6; }
34738     fi
34739     NEXT_SIGNAL_H=$gl_cv_next_signal_h
34740
34741     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34742       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34743       gl_next_as_first_directive='<'signal.h'>'
34744     else
34745       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34746       gl_next_as_first_directive=$gl_cv_next_signal_h
34747     fi
34748     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
34749
34750
34751
34752
34753
34754# AIX declares sig_atomic_t to already include volatile, and C89 compilers
34755# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
34756  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
34757#include <signal.h>
34758
34759"
34760if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
34761
34762else
34763  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
34764fi
34765
34766
34767
34768
34769
34770
34771
34772  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
34773#include <signal.h>
34774
34775"
34776if test "x$ac_cv_type_sighandler_t" = xyes; then :
34777
34778else
34779  HAVE_SIGHANDLER_T=0
34780fi
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
34793$as_echo_n "checking for signbit macro... " >&6; }
34794if ${gl_cv_func_signbit+:} false; then :
34795  $as_echo_n "(cached) " >&6
34796else
34797
34798      if test "$cross_compiling" = yes; then :
34799  case "$host_os" in
34800                          # Guess yes on glibc systems.
34801           *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
34802                          # Guess yes on musl systems.
34803           *-musl*)       gl_cv_func_signbit="guessing yes" ;;
34804                          # Guess yes on native Windows.
34805           mingw*)        gl_cv_func_signbit="guessing yes" ;;
34806                          # If we don't know, obey --enable-cross-guesses.
34807           *)             gl_cv_func_signbit="$gl_cross_guess_normal" ;;
34808         esac
34809
34810else
34811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34812/* end confdefs.h.  */
34813
34814#include <math.h>
34815/* If signbit is defined as a function, don't use it, since calling it for
34816   'float' or 'long double' arguments would involve conversions.
34817   If signbit is not declared at all but exists as a library function, don't
34818   use it, since the prototype may not match.
34819   If signbit is not declared at all but exists as a compiler built-in, don't
34820   use it, since it's preferable to use __builtin_signbit* (no warnings,
34821   no conversions).  */
34822#ifndef signbit
34823# error "signbit should be a macro"
34824#endif
34825#include <string.h>
34826
34827/* Global variables.
34828   Needed because GCC 4 constant-folds __builtin_signbitl (literal)
34829   but cannot constant-fold            __builtin_signbitl (variable).  */
34830float vf;
34831double vd;
34832long double vl;
34833int main ()
34834{
34835/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
34836   So we use -p0f and -p0d instead.  */
34837float p0f = 0.0f;
34838float m0f = -p0f;
34839double p0d = 0.0;
34840double m0d = -p0d;
34841/* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
34842   So we use another constant expression instead.
34843   But that expression does not work on other platforms, such as when
34844   cross-compiling to PowerPC on Mac OS X 10.5.  */
34845long double p0l = 0.0L;
34846#if defined __hpux || defined __sgi
34847long double m0l = -LDBL_MIN * LDBL_MIN;
34848#else
34849long double m0l = -p0l;
34850#endif
34851  int result = 0;
34852  if (signbit (vf)) /* link check */
34853    vf++;
34854  {
34855    float plus_inf = 1.0f / p0f;
34856    float minus_inf = -1.0f / p0f;
34857    if (!(!signbit (255.0f)
34858          && signbit (-255.0f)
34859          && !signbit (p0f)
34860          && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
34861          && !signbit (plus_inf)
34862          && signbit (minus_inf)))
34863      result |= 1;
34864  }
34865  if (signbit (vd)) /* link check */
34866    vd++;
34867  {
34868    double plus_inf = 1.0 / p0d;
34869    double minus_inf = -1.0 / p0d;
34870    if (!(!signbit (255.0)
34871          && signbit (-255.0)
34872          && !signbit (p0d)
34873          && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
34874          && !signbit (plus_inf)
34875          && signbit (minus_inf)))
34876      result |= 2;
34877  }
34878  if (signbit (vl)) /* link check */
34879    vl++;
34880  {
34881    long double plus_inf = 1.0L / p0l;
34882    long double minus_inf = -1.0L / p0l;
34883    if (signbit (255.0L))
34884      result |= 4;
34885    if (!signbit (-255.0L))
34886      result |= 4;
34887    if (signbit (p0l))
34888      result |= 8;
34889    if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
34890      result |= 16;
34891    if (signbit (plus_inf))
34892      result |= 32;
34893    if (!signbit (minus_inf))
34894      result |= 64;
34895  }
34896  return result;
34897}
34898
34899
34900_ACEOF
34901if ac_fn_c_try_run "$LINENO"; then :
34902  gl_cv_func_signbit=yes
34903else
34904  gl_cv_func_signbit=no
34905fi
34906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34907  conftest.$ac_objext conftest.beam conftest.$ac_ext
34908fi
34909
34910
34911fi
34912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
34913$as_echo "$gl_cv_func_signbit" >&6; }
34914          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
34915$as_echo_n "checking for signbit compiler built-ins... " >&6; }
34916if ${gl_cv_func_signbit_gcc+:} false; then :
34917  $as_echo_n "(cached) " >&6
34918else
34919
34920      if test "$cross_compiling" = yes; then :
34921  case "$host_os" in
34922                          # Guess yes on glibc systems.
34923           *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
34924                          # Guess yes on musl systems.
34925           *-musl*)       gl_cv_func_signbit_gcc="guessing yes" ;;
34926                          # Guess yes on mingw, no on MSVC.
34927           mingw*)        if test -n "$GCC"; then
34928                            gl_cv_func_signbit_gcc="guessing yes"
34929                          else
34930                            gl_cv_func_signbit_gcc="guessing no"
34931                          fi
34932                          ;;
34933                          # If we don't know, obey --enable-cross-guesses.
34934           *)             gl_cv_func_signbit_gcc="$gl_cross_guess_normal" ;;
34935         esac
34936
34937else
34938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34939/* end confdefs.h.  */
34940
34941#if __GNUC__ >= 4
34942# define signbit(x) \
34943   (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
34944    sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
34945    __builtin_signbitf (x))
34946#else
34947# error "signbit should be three compiler built-ins"
34948#endif
34949#include <string.h>
34950
34951/* Global variables.
34952   Needed because GCC 4 constant-folds __builtin_signbitl (literal)
34953   but cannot constant-fold            __builtin_signbitl (variable).  */
34954float vf;
34955double vd;
34956long double vl;
34957int main ()
34958{
34959/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
34960   So we use -p0f and -p0d instead.  */
34961float p0f = 0.0f;
34962float m0f = -p0f;
34963double p0d = 0.0;
34964double m0d = -p0d;
34965/* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
34966   So we use another constant expression instead.
34967   But that expression does not work on other platforms, such as when
34968   cross-compiling to PowerPC on Mac OS X 10.5.  */
34969long double p0l = 0.0L;
34970#if defined __hpux || defined __sgi
34971long double m0l = -LDBL_MIN * LDBL_MIN;
34972#else
34973long double m0l = -p0l;
34974#endif
34975  int result = 0;
34976  if (signbit (vf)) /* link check */
34977    vf++;
34978  {
34979    float plus_inf = 1.0f / p0f;
34980    float minus_inf = -1.0f / p0f;
34981    if (!(!signbit (255.0f)
34982          && signbit (-255.0f)
34983          && !signbit (p0f)
34984          && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
34985          && !signbit (plus_inf)
34986          && signbit (minus_inf)))
34987      result |= 1;
34988  }
34989  if (signbit (vd)) /* link check */
34990    vd++;
34991  {
34992    double plus_inf = 1.0 / p0d;
34993    double minus_inf = -1.0 / p0d;
34994    if (!(!signbit (255.0)
34995          && signbit (-255.0)
34996          && !signbit (p0d)
34997          && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
34998          && !signbit (plus_inf)
34999          && signbit (minus_inf)))
35000      result |= 2;
35001  }
35002  if (signbit (vl)) /* link check */
35003    vl++;
35004  {
35005    long double plus_inf = 1.0L / p0l;
35006    long double minus_inf = -1.0L / p0l;
35007    if (signbit (255.0L))
35008      result |= 4;
35009    if (!signbit (-255.0L))
35010      result |= 4;
35011    if (signbit (p0l))
35012      result |= 8;
35013    if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
35014      result |= 16;
35015    if (signbit (plus_inf))
35016      result |= 32;
35017    if (!signbit (minus_inf))
35018      result |= 64;
35019  }
35020  return result;
35021}
35022
35023
35024_ACEOF
35025if ac_fn_c_try_run "$LINENO"; then :
35026  gl_cv_func_signbit_gcc=yes
35027else
35028  gl_cv_func_signbit_gcc=no
35029fi
35030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35031  conftest.$ac_objext conftest.beam conftest.$ac_ext
35032fi
35033
35034
35035fi
35036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
35037$as_echo "$gl_cv_func_signbit_gcc" >&6; }
35038      case "$gl_cv_func_signbit_gcc" in
35039    *yes)
35040      REPLACE_SIGNBIT_USING_GCC=1
35041      ;;
35042    *)
35043      case "$gl_cv_func_signbit" in
35044        *yes) ;;
35045        *)
35046                    REPLACE_SIGNBIT=1
35047          ;;
35048      esac
35049      ;;
35050  esac
35051          case "$host_os" in
35052    solaris*)
35053      REPLACE_SIGNBIT=1
35054      ;;
35055  esac
35056  if test $REPLACE_SIGNBIT = 1; then
35057
35058
35059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
35060$as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
35061if ${gl_cv_cc_float_signbit+:} false; then :
35062  $as_echo_n "(cached) " >&6
35063else
35064
35065      if test "$cross_compiling" = yes; then :
35066
35067                              gl_cv_cc_float_signbit="unknown"
35068
35069else
35070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35071/* end confdefs.h.  */
35072
35073#include <stddef.h>
35074#include <stdio.h>
35075#define NWORDS \
35076  ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
35077typedef union { float value; unsigned int word[NWORDS]; }
35078        memory_float;
35079static memory_float plus = { 1.0f };
35080static memory_float minus = { -1.0f };
35081int main ()
35082{
35083  size_t j, k, i;
35084  unsigned int m;
35085  FILE *fp = fopen ("conftest.out", "w");
35086  if (fp == NULL)
35087    return 1;
35088  /* Find the different bit.  */
35089  k = 0; m = 0;
35090  for (j = 0; j < NWORDS; j++)
35091    {
35092      unsigned int x = plus.word[j] ^ minus.word[j];
35093      if ((x & (x - 1)) || (x && m))
35094        {
35095          /* More than one bit difference.  */
35096          fprintf (fp, "unknown");
35097          fclose (fp);
35098          return 2;
35099        }
35100      if (x)
35101        {
35102          k = j;
35103          m = x;
35104        }
35105    }
35106  if (m == 0)
35107    {
35108      /* No difference.  */
35109      fprintf (fp, "unknown");
35110      fclose (fp);
35111      return 3;
35112    }
35113  /* Now m = plus.word[k] ^ ~minus.word[k].  */
35114  if (plus.word[k] & ~minus.word[k])
35115    {
35116      /* Oh? The sign bit is set in the positive and cleared in the negative
35117         numbers?  */
35118      fprintf (fp, "unknown");
35119      fclose (fp);
35120      return 4;
35121    }
35122  for (i = 0; ; i++)
35123    if ((m >> i) & 1)
35124      break;
35125  fprintf (fp, "word %d bit %d", (int) k, (int) i);
35126  if (fclose (fp) != 0)
35127    return 5;
35128  return 0;
35129}
35130
35131_ACEOF
35132if ac_fn_c_try_run "$LINENO"; then :
35133  gl_cv_cc_float_signbit=`cat conftest.out`
35134else
35135  gl_cv_cc_float_signbit="unknown"
35136fi
35137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35138  conftest.$ac_objext conftest.beam conftest.$ac_ext
35139fi
35140
35141      rm -f conftest.out
35142
35143fi
35144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
35145$as_echo "$gl_cv_cc_float_signbit" >&6; }
35146  case "$gl_cv_cc_float_signbit" in
35147    word*bit*)
35148      word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
35149      bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
35150
35151cat >>confdefs.h <<_ACEOF
35152#define FLT_SIGNBIT_WORD $word
35153_ACEOF
35154
35155
35156cat >>confdefs.h <<_ACEOF
35157#define FLT_SIGNBIT_BIT $bit
35158_ACEOF
35159
35160      ;;
35161  esac
35162
35163
35164
35165
35166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
35167$as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
35168if ${gl_cv_cc_double_signbit+:} false; then :
35169  $as_echo_n "(cached) " >&6
35170else
35171
35172      if test "$cross_compiling" = yes; then :
35173
35174                              gl_cv_cc_double_signbit="unknown"
35175
35176else
35177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35178/* end confdefs.h.  */
35179
35180#include <stddef.h>
35181#include <stdio.h>
35182#define NWORDS \
35183  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
35184typedef union { double value; unsigned int word[NWORDS]; }
35185        memory_float;
35186static memory_float plus = { 1.0 };
35187static memory_float minus = { -1.0 };
35188int main ()
35189{
35190  size_t j, k, i;
35191  unsigned int m;
35192  FILE *fp = fopen ("conftest.out", "w");
35193  if (fp == NULL)
35194    return 1;
35195  /* Find the different bit.  */
35196  k = 0; m = 0;
35197  for (j = 0; j < NWORDS; j++)
35198    {
35199      unsigned int x = plus.word[j] ^ minus.word[j];
35200      if ((x & (x - 1)) || (x && m))
35201        {
35202          /* More than one bit difference.  */
35203          fprintf (fp, "unknown");
35204          fclose (fp);
35205          return 2;
35206        }
35207      if (x)
35208        {
35209          k = j;
35210          m = x;
35211        }
35212    }
35213  if (m == 0)
35214    {
35215      /* No difference.  */
35216      fprintf (fp, "unknown");
35217      fclose (fp);
35218      return 3;
35219    }
35220  /* Now m = plus.word[k] ^ ~minus.word[k].  */
35221  if (plus.word[k] & ~minus.word[k])
35222    {
35223      /* Oh? The sign bit is set in the positive and cleared in the negative
35224         numbers?  */
35225      fprintf (fp, "unknown");
35226      fclose (fp);
35227      return 4;
35228    }
35229  for (i = 0; ; i++)
35230    if ((m >> i) & 1)
35231      break;
35232  fprintf (fp, "word %d bit %d", (int) k, (int) i);
35233  if (fclose (fp) != 0)
35234    return 5;
35235  return 0;
35236}
35237
35238_ACEOF
35239if ac_fn_c_try_run "$LINENO"; then :
35240  gl_cv_cc_double_signbit=`cat conftest.out`
35241else
35242  gl_cv_cc_double_signbit="unknown"
35243fi
35244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35245  conftest.$ac_objext conftest.beam conftest.$ac_ext
35246fi
35247
35248      rm -f conftest.out
35249
35250fi
35251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
35252$as_echo "$gl_cv_cc_double_signbit" >&6; }
35253  case "$gl_cv_cc_double_signbit" in
35254    word*bit*)
35255      word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
35256      bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
35257
35258cat >>confdefs.h <<_ACEOF
35259#define DBL_SIGNBIT_WORD $word
35260_ACEOF
35261
35262
35263cat >>confdefs.h <<_ACEOF
35264#define DBL_SIGNBIT_BIT $bit
35265_ACEOF
35266
35267      ;;
35268  esac
35269
35270
35271
35272
35273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
35274$as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
35275if ${gl_cv_cc_long_double_signbit+:} false; then :
35276  $as_echo_n "(cached) " >&6
35277else
35278
35279      if test "$cross_compiling" = yes; then :
35280
35281                              gl_cv_cc_long_double_signbit="unknown"
35282
35283else
35284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35285/* end confdefs.h.  */
35286
35287#include <stddef.h>
35288#include <stdio.h>
35289#define NWORDS \
35290  ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
35291typedef union { long double value; unsigned int word[NWORDS]; }
35292        memory_float;
35293static memory_float plus = { 1.0L };
35294static memory_float minus = { -1.0L };
35295int main ()
35296{
35297  size_t j, k, i;
35298  unsigned int m;
35299  FILE *fp = fopen ("conftest.out", "w");
35300  if (fp == NULL)
35301    return 1;
35302  /* Find the different bit.  */
35303  k = 0; m = 0;
35304  for (j = 0; j < NWORDS; j++)
35305    {
35306      unsigned int x = plus.word[j] ^ minus.word[j];
35307      if ((x & (x - 1)) || (x && m))
35308        {
35309          /* More than one bit difference.  */
35310          fprintf (fp, "unknown");
35311          fclose (fp);
35312          return 2;
35313        }
35314      if (x)
35315        {
35316          k = j;
35317          m = x;
35318        }
35319    }
35320  if (m == 0)
35321    {
35322      /* No difference.  */
35323      fprintf (fp, "unknown");
35324      fclose (fp);
35325      return 3;
35326    }
35327  /* Now m = plus.word[k] ^ ~minus.word[k].  */
35328  if (plus.word[k] & ~minus.word[k])
35329    {
35330      /* Oh? The sign bit is set in the positive and cleared in the negative
35331         numbers?  */
35332      fprintf (fp, "unknown");
35333      fclose (fp);
35334      return 4;
35335    }
35336  for (i = 0; ; i++)
35337    if ((m >> i) & 1)
35338      break;
35339  fprintf (fp, "word %d bit %d", (int) k, (int) i);
35340  if (fclose (fp) != 0)
35341    return 5;
35342  return 0;
35343}
35344
35345_ACEOF
35346if ac_fn_c_try_run "$LINENO"; then :
35347  gl_cv_cc_long_double_signbit=`cat conftest.out`
35348else
35349  gl_cv_cc_long_double_signbit="unknown"
35350fi
35351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35352  conftest.$ac_objext conftest.beam conftest.$ac_ext
35353fi
35354
35355      rm -f conftest.out
35356
35357fi
35358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
35359$as_echo "$gl_cv_cc_long_double_signbit" >&6; }
35360  case "$gl_cv_cc_long_double_signbit" in
35361    word*bit*)
35362      word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
35363      bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
35364
35365cat >>confdefs.h <<_ACEOF
35366#define LDBL_SIGNBIT_WORD $word
35367_ACEOF
35368
35369
35370cat >>confdefs.h <<_ACEOF
35371#define LDBL_SIGNBIT_BIT $bit
35372_ACEOF
35373
35374      ;;
35375  esac
35376
35377
35378    if test "$gl_cv_cc_float_signbit" = unknown; then
35379            ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
35380"
35381if test "x$ac_cv_have_decl_copysignf" = xyes; then :
35382  ac_have_decl=1
35383else
35384  ac_have_decl=0
35385fi
35386
35387cat >>confdefs.h <<_ACEOF
35388#define HAVE_DECL_COPYSIGNF $ac_have_decl
35389_ACEOF
35390
35391      if test "$ac_cv_have_decl_copysignf" = yes; then
35392                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
35393$as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
35394if ${gl_cv_func_copysignf_no_libm+:} false; then :
35395  $as_echo_n "(cached) " >&6
35396else
35397
35398            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35399/* end confdefs.h.  */
35400#include <math.h>
35401                   float x, y;
35402int
35403main ()
35404{
35405return copysignf (x, y) < 0;
35406  ;
35407  return 0;
35408}
35409_ACEOF
35410if ac_fn_c_try_link "$LINENO"; then :
35411  gl_cv_func_copysignf_no_libm=yes
35412else
35413  gl_cv_func_copysignf_no_libm=no
35414fi
35415rm -f core conftest.err conftest.$ac_objext \
35416    conftest$ac_exeext conftest.$ac_ext
35417
35418fi
35419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
35420$as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
35421        if test $gl_cv_func_copysignf_no_libm = yes; then
35422
35423$as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
35424
35425        fi
35426      fi
35427    fi
35428    if test "$gl_cv_cc_double_signbit" = unknown; then
35429            ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
35430"
35431if test "x$ac_cv_have_decl_copysign" = xyes; then :
35432  ac_have_decl=1
35433else
35434  ac_have_decl=0
35435fi
35436
35437cat >>confdefs.h <<_ACEOF
35438#define HAVE_DECL_COPYSIGN $ac_have_decl
35439_ACEOF
35440
35441      if test "$ac_cv_have_decl_copysign" = yes; then
35442                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
35443$as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
35444if ${gl_cv_func_copysign_no_libm+:} false; then :
35445  $as_echo_n "(cached) " >&6
35446else
35447
35448            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35449/* end confdefs.h.  */
35450#include <math.h>
35451                   double x, y;
35452int
35453main ()
35454{
35455return copysign (x, y) < 0;
35456  ;
35457  return 0;
35458}
35459_ACEOF
35460if ac_fn_c_try_link "$LINENO"; then :
35461  gl_cv_func_copysign_no_libm=yes
35462else
35463  gl_cv_func_copysign_no_libm=no
35464fi
35465rm -f core conftest.err conftest.$ac_objext \
35466    conftest$ac_exeext conftest.$ac_ext
35467
35468fi
35469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
35470$as_echo "$gl_cv_func_copysign_no_libm" >&6; }
35471        if test $gl_cv_func_copysign_no_libm = yes; then
35472
35473$as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
35474
35475        fi
35476      fi
35477    fi
35478    if test "$gl_cv_cc_long_double_signbit" = unknown; then
35479            ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
35480"
35481if test "x$ac_cv_have_decl_copysignl" = xyes; then :
35482  ac_have_decl=1
35483else
35484  ac_have_decl=0
35485fi
35486
35487cat >>confdefs.h <<_ACEOF
35488#define HAVE_DECL_COPYSIGNL $ac_have_decl
35489_ACEOF
35490
35491      if test "$ac_cv_have_decl_copysignl" = yes; then
35492                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
35493$as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
35494if ${gl_cv_func_copysignl_no_libm+:} false; then :
35495  $as_echo_n "(cached) " >&6
35496else
35497
35498            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35499/* end confdefs.h.  */
35500#include <math.h>
35501                   long double x, y;
35502int
35503main ()
35504{
35505return copysignl (x, y) < 0;
35506  ;
35507  return 0;
35508}
35509_ACEOF
35510if ac_fn_c_try_link "$LINENO"; then :
35511  gl_cv_func_copysignl_no_libm=yes
35512else
35513  gl_cv_func_copysignl_no_libm=no
35514fi
35515rm -f core conftest.err conftest.$ac_objext \
35516    conftest$ac_exeext conftest.$ac_ext
35517
35518fi
35519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
35520$as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
35521        if test $gl_cv_func_copysignl_no_libm = yes; then
35522
35523$as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
35524
35525        fi
35526      fi
35527    fi
35528  fi
35529
35530  if test $REPLACE_SIGNBIT = 1; then
35531
35532
35533
35534
35535
35536
35537
35538
35539  lts_LIBOBJS="$lts_LIBOBJS signbitf.$ac_objext"
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549  lts_LIBOBJS="$lts_LIBOBJS signbitd.$ac_objext"
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559  lts_LIBOBJS="$lts_LIBOBJS signbitl.$ac_objext"
35560
35561  fi
35562
35563
35564
35565
35566
35567          GNULIB_SIGNBIT=1
35568
35569
35570
35571
35572
35573$as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
35574
35575
35576
35577
35578
35579
35580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigprocmask" >&5
35581$as_echo_n "checking for sigprocmask... " >&6; }
35582if ${gl_cv_func_sigprocmask+:} false; then :
35583  $as_echo_n "(cached) " >&6
35584else
35585  if test $gl_cv_type_sigset_t = yes; then
35586
35587  {
35588
35589         ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
35590if test "x$ac_cv_func_sigprocmask" = xyes; then :
35591  gl_cv_func_sigprocmask=yes
35592else
35593  gl_cv_func_sigprocmask=no
35594fi
35595
35596
35597  } 6>/dev/null
35598
35599     else
35600       gl_cv_func_sigprocmask=no
35601     fi
35602
35603fi
35604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sigprocmask" >&5
35605$as_echo "$gl_cv_func_sigprocmask" >&6; }
35606  if test $gl_cv_func_sigprocmask != yes; then
35607    HAVE_POSIX_SIGNALBLOCKING=0
35608  fi
35609
35610  if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
35611
35612
35613
35614
35615
35616
35617
35618
35619  lts_LIBOBJS="$lts_LIBOBJS sigprocmask.$ac_objext"
35620
35621    :
35622  fi
35623
35624
35625
35626
35627
35628          GNULIB_SIGPROCMASK=1
35629
35630
35631
35632
35633
35634$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
35635
35636
35637
35638
35639  for ac_header in stdint.h
35640do :
35641  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
35642if test "x$ac_cv_header_stdint_h" = xyes; then :
35643  cat >>confdefs.h <<_ACEOF
35644#define HAVE_STDINT_H 1
35645_ACEOF
35646
35647fi
35648
35649done
35650
35651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
35652$as_echo_n "checking for SIZE_MAX... " >&6; }
35653if ${gl_cv_size_max+:} false; then :
35654  $as_echo_n "(cached) " >&6
35655else
35656
35657    gl_cv_size_max=no
35658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35659/* end confdefs.h.  */
35660
35661#include <limits.h>
35662#if HAVE_STDINT_H
35663#include <stdint.h>
35664#endif
35665#ifdef SIZE_MAX
35666Found it
35667#endif
35668
35669_ACEOF
35670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35671  $EGREP "Found it" >/dev/null 2>&1; then :
35672  gl_cv_size_max=yes
35673fi
35674rm -f conftest*
35675
35676    if test $gl_cv_size_max != yes; then
35677                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
35678#include <limits.h>"; then :
35679
35680else
35681  size_t_bits_minus_1=
35682fi
35683
35684      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
35685
35686else
35687  fits_in_uint=
35688fi
35689
35690      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
35691        if test $fits_in_uint = 1; then
35692                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35693/* end confdefs.h.  */
35694#include <stddef.h>
35695                 extern size_t foo;
35696                 extern unsigned long foo;
35697
35698int
35699main ()
35700{
35701
35702  ;
35703  return 0;
35704}
35705_ACEOF
35706if ac_fn_c_try_compile "$LINENO"; then :
35707  fits_in_uint=0
35708fi
35709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35710        fi
35711                                if test $fits_in_uint = 1; then
35712          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
35713        else
35714          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
35715        fi
35716      else
35717                gl_cv_size_max='((size_t)~(size_t)0)'
35718      fi
35719    fi
35720
35721fi
35722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
35723$as_echo "$gl_cv_size_max" >&6; }
35724  if test "$gl_cv_size_max" != yes; then
35725
35726cat >>confdefs.h <<_ACEOF
35727#define SIZE_MAX $gl_cv_size_max
35728_ACEOF
35729
35730  fi
35731
35732
35733
35734
35735  gl_cv_func_snprintf_usable=no
35736  for ac_func in snprintf
35737do :
35738  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
35739if test "x$ac_cv_func_snprintf" = xyes; then :
35740  cat >>confdefs.h <<_ACEOF
35741#define HAVE_SNPRINTF 1
35742_ACEOF
35743
35744fi
35745done
35746
35747  if test $ac_cv_func_snprintf = yes; then
35748
35749
35750
35751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
35752$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
35753if ${gl_cv_func_snprintf_size1+:} false; then :
35754  $as_echo_n "(cached) " >&6
35755else
35756
35757      if test "$cross_compiling" = yes; then :
35758  case "$host_os" in
35759                            # Guess yes on Android.
35760           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
35761                            # Guess yes on native Windows.
35762           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
35763           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
35764         esac
35765
35766else
35767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35768/* end confdefs.h.  */
35769
35770#include <stdio.h>
35771#if HAVE_SNPRINTF
35772# define my_snprintf snprintf
35773#else
35774# include <stdarg.h>
35775static int my_snprintf (char *buf, int size, const char *format, ...)
35776{
35777  va_list args;
35778  int ret;
35779  va_start (args, format);
35780  ret = vsnprintf (buf, size, format, args);
35781  va_end (args);
35782  return ret;
35783}
35784#endif
35785int main()
35786{
35787  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
35788  my_snprintf (buf, 1, "%d", 12345);
35789  return buf[1] != 'E';
35790}
35791_ACEOF
35792if ac_fn_c_try_run "$LINENO"; then :
35793  gl_cv_func_snprintf_size1=yes
35794else
35795  gl_cv_func_snprintf_size1=no
35796fi
35797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35798  conftest.$ac_objext conftest.beam conftest.$ac_ext
35799fi
35800
35801
35802fi
35803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
35804$as_echo "$gl_cv_func_snprintf_size1" >&6; }
35805
35806    case "$gl_cv_func_snprintf_size1" in
35807      *yes)
35808
35809        case "$gl_cv_func_snprintf_retval_c99" in
35810          *yes)
35811
35812
35813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
35814$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
35815if ${gl_cv_func_printf_positions+:} false; then :
35816  $as_echo_n "(cached) " >&6
35817else
35818
35819      if test "$cross_compiling" = yes; then :
35820
35821         case "$host_os" in
35822           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
35823                            gl_cv_func_printf_positions="guessing no";;
35824           beos*)           gl_cv_func_printf_positions="guessing no";;
35825                            # Guess yes on Android.
35826           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
35827                            # Guess no on native Windows.
35828           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
35829           *)               gl_cv_func_printf_positions="guessing yes";;
35830         esac
35831
35832else
35833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35834/* end confdefs.h.  */
35835
35836#include <stdio.h>
35837#include <string.h>
35838/* The string "%2$d %1$d", with dollar characters protected from the shell's
35839   dollar expansion (possibly an autoconf bug).  */
35840static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
35841static char buf[100];
35842int main ()
35843{
35844  sprintf (buf, format, 33, 55);
35845  return (strcmp (buf, "55 33") != 0);
35846}
35847_ACEOF
35848if ac_fn_c_try_run "$LINENO"; then :
35849  gl_cv_func_printf_positions=yes
35850else
35851  gl_cv_func_printf_positions=no
35852fi
35853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35854  conftest.$ac_objext conftest.beam conftest.$ac_ext
35855fi
35856
35857
35858fi
35859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
35860$as_echo "$gl_cv_func_printf_positions" >&6; }
35861
35862            case "$gl_cv_func_printf_positions" in
35863              *yes)
35864                gl_cv_func_snprintf_usable=yes
35865                ;;
35866            esac
35867            ;;
35868        esac
35869        ;;
35870    esac
35871  fi
35872  if test $gl_cv_func_snprintf_usable = no; then
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883  lts_LIBOBJS="$lts_LIBOBJS snprintf.$ac_objext"
35884
35885  if test $ac_cv_func_snprintf = yes; then
35886    REPLACE_SNPRINTF=1
35887  else
35888
35889    if test $ac_cv_have_decl_snprintf = yes; then
35890                        REPLACE_SNPRINTF=1
35891    fi
35892  fi
35893  :
35894
35895  fi
35896
35897  if test $ac_cv_have_decl_snprintf = no; then
35898    HAVE_DECL_SNPRINTF=0
35899  fi
35900
35901
35902
35903
35904
35905
35906          GNULIB_SNPRINTF=1
35907
35908
35909
35910
35911
35912$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
35913
35914
35915
35916
35917
35918cat >>confdefs.h <<_ACEOF
35919#define GNULIB_SNPRINTF 1
35920_ACEOF
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938  gl_cv_func_snprintf_posix=no
35939  for ac_func in snprintf
35940do :
35941  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
35942if test "x$ac_cv_func_snprintf" = xyes; then :
35943  cat >>confdefs.h <<_ACEOF
35944#define HAVE_SNPRINTF 1
35945_ACEOF
35946
35947fi
35948done
35949
35950  if test $ac_cv_func_snprintf = yes; then
35951
35952
35953
35954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
35955$as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; }
35956if ${gl_cv_func_snprintf_truncation_c99+:} false; then :
35957  $as_echo_n "(cached) " >&6
35958else
35959
35960      if test "$cross_compiling" = yes; then :
35961
35962         case "$host_os" in
35963                                 # Guess yes on glibc systems.
35964           *-gnu* | gnu*)        gl_cv_func_snprintf_truncation_c99="guessing yes";;
35965                                 # Guess yes on musl systems.
35966           *-musl*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
35967                                 # Guess yes on FreeBSD >= 5.
35968           freebsd[1-4].*)       gl_cv_func_snprintf_truncation_c99="guessing no";;
35969           freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
35970                                 # Guess yes on Mac OS X >= 10.3.
35971           darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
35972           darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
35973                                 # Guess yes on OpenBSD >= 3.9.
35974           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
35975                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
35976           openbsd*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
35977                                 # Guess yes on Solaris >= 2.6.
35978           solaris2.[0-5] | solaris2.[0-5].*)
35979                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
35980           solaris*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
35981                                 # Guess yes on AIX >= 4.
35982           aix[1-3]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
35983           aix*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
35984                                 # Guess yes on HP-UX >= 11.
35985           hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
35986           hpux*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
35987                                 # Guess yes on IRIX >= 6.5.
35988           irix6.5)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
35989                                 # Guess yes on OSF/1 >= 5.
35990           osf[3-4]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
35991           osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
35992                                 # Guess yes on NetBSD >= 3.
35993           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
35994                                 gl_cv_func_snprintf_truncation_c99="guessing no";;
35995           netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
35996                                 # Guess yes on BeOS.
35997           beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
35998                                 # Guess yes on Android.
35999           linux*-android*)      gl_cv_func_snprintf_truncation_c99="guessing yes";;
36000                                 # Guess no on native Windows.
36001           mingw*)               gl_cv_func_snprintf_truncation_c99="guessing no";;
36002                                 # If we don't know, obey --enable-cross-guesses.
36003           *)                    gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
36004         esac
36005
36006else
36007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36008/* end confdefs.h.  */
36009
36010#include <stdio.h>
36011#include <string.h>
36012#if HAVE_SNPRINTF
36013# define my_snprintf snprintf
36014#else
36015# include <stdarg.h>
36016static int my_snprintf (char *buf, int size, const char *format, ...)
36017{
36018  va_list args;
36019  int ret;
36020  va_start (args, format);
36021  ret = vsnprintf (buf, size, format, args);
36022  va_end (args);
36023  return ret;
36024}
36025#endif
36026static char buf[100];
36027int main ()
36028{
36029  strcpy (buf, "ABCDEF");
36030  my_snprintf (buf, 3, "%d %d", 4567, 89);
36031  if (memcmp (buf, "45\0DEF", 6) != 0)
36032    return 1;
36033  return 0;
36034}
36035_ACEOF
36036if ac_fn_c_try_run "$LINENO"; then :
36037  gl_cv_func_snprintf_truncation_c99=yes
36038else
36039  gl_cv_func_snprintf_truncation_c99=no
36040fi
36041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36042  conftest.$ac_objext conftest.beam conftest.$ac_ext
36043fi
36044
36045
36046fi
36047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
36048$as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; }
36049
36050
36051
36052
36053
36054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf fully supports the 'n' directive" >&5
36055$as_echo_n "checking whether snprintf fully supports the 'n' directive... " >&6; }
36056if ${gl_cv_func_snprintf_directive_n+:} false; then :
36057  $as_echo_n "(cached) " >&6
36058else
36059
36060      if test "$cross_compiling" = yes; then :
36061
36062         case "$host_os" in
36063                                 # Guess no on glibc when _FORTIFY_SOURCE >= 2.
36064           *-gnu* | gnu*)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36065/* end confdefs.h.  */
36066#if _FORTIFY_SOURCE >= 2
36067                                         error fail
36068                                        #endif
36069
36070_ACEOF
36071if ac_fn_c_try_compile "$LINENO"; then :
36072  gl_cv_func_snprintf_directive_n="guessing yes"
36073else
36074  gl_cv_func_snprintf_directive_n="guessing no"
36075fi
36076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36077                                 ;;
36078                                 # Guess yes on musl systems.
36079           *-musl*)              gl_cv_func_snprintf_directive_n="guessing yes";;
36080                                 # Guess yes on FreeBSD >= 5.
36081           freebsd[1-4].*)       gl_cv_func_snprintf_directive_n="guessing no";;
36082           freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
36083                                 # Guess yes on Mac OS X >= 10.3.
36084           darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
36085           darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
36086                                 # Guess yes on Solaris >= 2.6.
36087           solaris2.[0-5] | solaris2.[0-5].*)
36088                                 gl_cv_func_snprintf_directive_n="guessing no";;
36089           solaris*)             gl_cv_func_snprintf_directive_n="guessing yes";;
36090                                 # Guess yes on AIX >= 4.
36091           aix[1-3]*)            gl_cv_func_snprintf_directive_n="guessing no";;
36092           aix*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
36093                                 # Guess yes on IRIX >= 6.5.
36094           irix6.5)              gl_cv_func_snprintf_directive_n="guessing yes";;
36095                                 # Guess yes on OSF/1 >= 5.
36096           osf[3-4]*)            gl_cv_func_snprintf_directive_n="guessing no";;
36097           osf*)                 gl_cv_func_snprintf_directive_n="guessing yes";;
36098                                 # Guess yes on NetBSD >= 3.
36099           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
36100                                 gl_cv_func_snprintf_directive_n="guessing no";;
36101           netbsd*)              gl_cv_func_snprintf_directive_n="guessing yes";;
36102                                 # Guess yes on BeOS.
36103           beos*)                gl_cv_func_snprintf_directive_n="guessing yes";;
36104                                 # Guess no on Android.
36105           linux*-android*)      gl_cv_func_snprintf_directive_n="guessing no";;
36106                                 # Guess no on native Windows.
36107           mingw*)               gl_cv_func_snprintf_directive_n="guessing no";;
36108                                 # If we don't know, obey --enable-cross-guesses.
36109           *)                    gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";;
36110         esac
36111
36112else
36113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36114/* end confdefs.h.  */
36115
36116#include <stdio.h>
36117#include <string.h>
36118#if HAVE_SNPRINTF
36119# define my_snprintf snprintf
36120#else
36121# include <stdarg.h>
36122static int my_snprintf (char *buf, int size, const char *format, ...)
36123{
36124  va_list args;
36125  int ret;
36126  va_start (args, format);
36127  ret = vsnprintf (buf, size, format, args);
36128  va_end (args);
36129  return ret;
36130}
36131#endif
36132static char fmtstring[10];
36133static char buf[100];
36134int main ()
36135{
36136  int count = -1;
36137  /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
36138     support %n in format strings in read-only memory but not in writable
36139     memory.  */
36140  strcpy (fmtstring, "%d %n");
36141  my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
36142  if (count != 6)
36143    return 1;
36144  return 0;
36145}
36146_ACEOF
36147if ac_fn_c_try_run "$LINENO"; then :
36148  gl_cv_func_snprintf_directive_n=yes
36149else
36150  gl_cv_func_snprintf_directive_n=no
36151fi
36152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36153  conftest.$ac_objext conftest.beam conftest.$ac_ext
36154fi
36155
36156
36157fi
36158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_directive_n" >&5
36159$as_echo "$gl_cv_func_snprintf_directive_n" >&6; }
36160
36161
36162
36163
36164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
36165$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
36166if ${gl_cv_func_snprintf_size1+:} false; then :
36167  $as_echo_n "(cached) " >&6
36168else
36169
36170      if test "$cross_compiling" = yes; then :
36171  case "$host_os" in
36172                            # Guess yes on Android.
36173           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
36174                            # Guess yes on native Windows.
36175           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
36176           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
36177         esac
36178
36179else
36180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36181/* end confdefs.h.  */
36182
36183#include <stdio.h>
36184#if HAVE_SNPRINTF
36185# define my_snprintf snprintf
36186#else
36187# include <stdarg.h>
36188static int my_snprintf (char *buf, int size, const char *format, ...)
36189{
36190  va_list args;
36191  int ret;
36192  va_start (args, format);
36193  ret = vsnprintf (buf, size, format, args);
36194  va_end (args);
36195  return ret;
36196}
36197#endif
36198int main()
36199{
36200  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
36201  my_snprintf (buf, 1, "%d", 12345);
36202  return buf[1] != 'E';
36203}
36204_ACEOF
36205if ac_fn_c_try_run "$LINENO"; then :
36206  gl_cv_func_snprintf_size1=yes
36207else
36208  gl_cv_func_snprintf_size1=no
36209fi
36210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36211  conftest.$ac_objext conftest.beam conftest.$ac_ext
36212fi
36213
36214
36215fi
36216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
36217$as_echo "$gl_cv_func_snprintf_size1" >&6; }
36218
36219
36220
36221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf respects a zero size as in C99" >&5
36222$as_echo_n "checking whether vsnprintf respects a zero size as in C99... " >&6; }
36223if ${gl_cv_func_vsnprintf_zerosize_c99+:} false; then :
36224  $as_echo_n "(cached) " >&6
36225else
36226
36227      if test "$cross_compiling" = yes; then :
36228
36229         case "$host_os" in
36230                                 # Guess yes on glibc systems.
36231           *-gnu* | gnu*)        gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36232                                 # Guess yes on musl systems.
36233           *-musl*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36234                                 # Guess yes on FreeBSD >= 5.
36235           freebsd[1-4].*)       gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
36236           freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36237                                 # Guess yes on Mac OS X >= 10.3.
36238           darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
36239           darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36240                                 # Guess yes on Cygwin.
36241           cygwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36242                                 # Guess yes on Solaris >= 2.6.
36243           solaris2.[0-5] | solaris2.[0-5].*)
36244                                 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
36245           solaris*)             gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36246                                 # Guess yes on AIX >= 4.
36247           aix[1-3]*)            gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
36248           aix*)                 gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36249                                 # Guess yes on IRIX >= 6.5.
36250           irix6.5)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36251                                 # Guess yes on NetBSD >= 3.
36252           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
36253                                 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
36254           netbsd*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36255                                 # Guess yes on BeOS.
36256           beos*)                gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36257                                 # Guess yes on Android.
36258           linux*-android*)      gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36259                                 # Guess yes on native Windows.
36260           mingw* | pw*)         gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
36261                                 # If we don't know, obey --enable-cross-guesses.
36262           *)                    gl_cv_func_vsnprintf_zerosize_c99="$gl_cross_guess_normal";;
36263         esac
36264
36265else
36266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36267/* end confdefs.h.  */
36268
36269#include <stdarg.h>
36270#include <stdio.h>
36271static int my_snprintf (char *buf, int size, const char *format, ...)
36272{
36273  va_list args;
36274  int ret;
36275  va_start (args, format);
36276  ret = vsnprintf (buf, size, format, args);
36277  va_end (args);
36278  return ret;
36279}
36280int main()
36281{
36282  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
36283  my_snprintf (buf, 0, "%d", 12345);
36284  return buf[0] != 'D';
36285}
36286_ACEOF
36287if ac_fn_c_try_run "$LINENO"; then :
36288  gl_cv_func_vsnprintf_zerosize_c99=yes
36289else
36290  gl_cv_func_vsnprintf_zerosize_c99=no
36291fi
36292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36293  conftest.$ac_objext conftest.beam conftest.$ac_ext
36294fi
36295
36296
36297fi
36298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_vsnprintf_zerosize_c99" >&5
36299$as_echo "$gl_cv_func_vsnprintf_zerosize_c99" >&6; }
36300
36301    case "$gl_cv_func_printf_sizes_c99" in
36302      *yes)
36303        case "$gl_cv_func_printf_long_double" in
36304          *yes)
36305            case "$gl_cv_func_printf_infinite" in
36306              *yes)
36307                case "$gl_cv_func_printf_infinite_long_double" in
36308                  *yes)
36309                    case "$gl_cv_func_printf_directive_a" in
36310                      *yes)
36311                        case "$gl_cv_func_printf_directive_f" in
36312                          *yes)
36313                            case "$gl_cv_func_printf_directive_n" in
36314                              *yes)
36315                                case "$gl_cv_func_printf_directive_ls" in
36316                                  *yes)
36317                                    case "$gl_cv_func_printf_positions" in
36318                                      *yes)
36319                                        case "$gl_cv_func_printf_flag_grouping" in
36320                                          *yes)
36321                                            case "$gl_cv_func_printf_flag_leftadjust" in
36322                                              *yes)
36323                                                case "$gl_cv_func_printf_flag_zero" in
36324                                                  *yes)
36325                                                    case "$gl_cv_func_printf_precision" in
36326                                                      *yes)
36327                                                        case "$gl_cv_func_printf_enomem" in
36328                                                          *yes)
36329                                                            case "$gl_cv_func_snprintf_truncation_c99" in
36330                                                              *yes)
36331                                                                case "$gl_cv_func_snprintf_retval_c99" in
36332                                                                  *yes)
36333                                                                    case "$gl_cv_func_snprintf_directive_n" in
36334                                                                      *yes)
36335                                                                        case "$gl_cv_func_snprintf_size1" in
36336                                                                          *yes)
36337                                                                            case "$gl_cv_func_vsnprintf_zerosize_c99" in
36338                                                                              *yes)
36339                                                                                # snprintf exists and is
36340                                                                                # already POSIX compliant.
36341                                                                                gl_cv_func_snprintf_posix=yes
36342                                                                                ;;
36343                                                                            esac
36344                                                                            ;;
36345                                                                        esac
36346                                                                        ;;
36347                                                                    esac
36348                                                                    ;;
36349                                                                esac
36350                                                                ;;
36351                                                            esac
36352                                                            ;;
36353                                                        esac
36354                                                        ;;
36355                                                    esac
36356                                                    ;;
36357                                                esac
36358                                                ;;
36359                                            esac
36360                                            ;;
36361                                        esac
36362                                        ;;
36363                                    esac
36364                                    ;;
36365                                esac
36366                                ;;
36367                            esac
36368                            ;;
36369                        esac
36370                        ;;
36371                    esac
36372                    ;;
36373                esac
36374                ;;
36375            esac
36376            ;;
36377        esac
36378        ;;
36379    esac
36380  fi
36381  if test $gl_cv_func_snprintf_posix = no; then
36382
36383
36384
36385  case "$gl_cv_func_printf_infinite" in
36386    *yes)
36387      ;;
36388    *)
36389
36390$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
36391
36392      ;;
36393  esac
36394
36395
36396
36397
36398  case "$gl_cv_func_printf_long_double" in
36399    *yes)
36400      case "$gl_cv_func_printf_infinite_long_double" in
36401        *yes)
36402          ;;
36403        *)
36404
36405$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
36406
36407          ;;
36408      esac
36409      ;;
36410  esac
36411
36412
36413
36414  case "$gl_cv_func_printf_directive_a" in
36415    *yes)
36416      ;;
36417    *)
36418
36419$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
36420
36421      for ac_func in nl_langinfo
36422do :
36423  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
36424if test "x$ac_cv_func_nl_langinfo" = xyes; then :
36425  cat >>confdefs.h <<_ACEOF
36426#define HAVE_NL_LANGINFO 1
36427_ACEOF
36428
36429fi
36430done
36431
36432      ;;
36433  esac
36434
36435
36436
36437  case "$gl_cv_func_printf_directive_f" in
36438    *yes)
36439      ;;
36440    *)
36441
36442$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
36443
36444      ;;
36445  esac
36446
36447
36448
36449  case "$gl_cv_func_printf_directive_ls" in
36450    *yes)
36451      ;;
36452    *)
36453
36454$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
36455
36456      ;;
36457  esac
36458
36459
36460
36461  case "$gl_cv_func_printf_flag_grouping" in
36462    *yes)
36463      ;;
36464    *)
36465
36466$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
36467
36468      ;;
36469  esac
36470
36471
36472
36473  case "$gl_cv_func_printf_flag_leftadjust" in
36474    *yes)
36475      ;;
36476    *)
36477
36478$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
36479
36480      ;;
36481  esac
36482
36483
36484
36485  case "$gl_cv_func_printf_flag_zero" in
36486    *yes)
36487      ;;
36488    *)
36489
36490$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
36491
36492      ;;
36493  esac
36494
36495
36496
36497  case "$gl_cv_func_printf_precision" in
36498    *yes)
36499      ;;
36500    *)
36501
36502$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
36503
36504
36505$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
36506
36507
36508$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
36509
36510      ;;
36511  esac
36512
36513
36514
36515  case "$gl_cv_func_printf_enomem" in
36516    *yes)
36517      ;;
36518    *)
36519
36520$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
36521
36522
36523$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
36524
36525
36526$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
36527
36528      ;;
36529  esac
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541  lts_LIBOBJS="$lts_LIBOBJS vasnprintf.$ac_objext"
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551  lts_LIBOBJS="$lts_LIBOBJS printf-args.$ac_objext"
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561  lts_LIBOBJS="$lts_LIBOBJS printf-parse.$ac_objext"
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571  lts_LIBOBJS="$lts_LIBOBJS asnprintf.$ac_objext"
36572
36573  if test $ac_cv_func_vasnprintf = yes; then
36574
36575$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
36576
36577  fi
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
36588if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
36589
36590else
36591
36592$as_echo "#define ptrdiff_t long" >>confdefs.h
36593
36594
36595fi
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613  lts_LIBOBJS="$lts_LIBOBJS snprintf.$ac_objext"
36614
36615  if test $ac_cv_func_snprintf = yes; then
36616    REPLACE_SNPRINTF=1
36617  else
36618
36619    if test $ac_cv_have_decl_snprintf = yes; then
36620                        REPLACE_SNPRINTF=1
36621    fi
36622  fi
36623  :
36624
36625  fi
36626
36627
36628
36629     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
36630/* <sys/types.h> is not needed according to POSIX, but the
36631   <sys/socket.h> in i386-unknown-freebsd4.10 and
36632   powerpc-apple-darwin5.5 required it. */
36633#include <sys/types.h>
36634#if HAVE_SYS_SOCKET_H
36635# include <sys/socket.h>
36636#elif HAVE_WS2TCPIP_H
36637# include <ws2tcpip.h>
36638#endif
36639
36640"
36641if test "x$ac_cv_type_socklen_t" = xyes; then :
36642
36643else
36644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
36645$as_echo_n "checking for socklen_t equivalent... " >&6; }
36646if ${gl_cv_socklen_t_equiv+:} false; then :
36647  $as_echo_n "(cached) " >&6
36648else
36649  # Systems have either "struct sockaddr *" or
36650         # "void *" as the second argument to getpeername
36651         gl_cv_socklen_t_equiv=
36652         for arg2 in "struct sockaddr" void; do
36653           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
36654             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36655/* end confdefs.h.  */
36656#include <sys/types.h>
36657                   #include <sys/socket.h>
36658
36659                   int getpeername (int, $arg2 *, $t *);
36660int
36661main ()
36662{
36663$t len;
36664                  getpeername (0, 0, &len);
36665  ;
36666  return 0;
36667}
36668_ACEOF
36669if ac_fn_c_try_compile "$LINENO"; then :
36670  gl_cv_socklen_t_equiv="$t"
36671fi
36672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36673             test "$gl_cv_socklen_t_equiv" != "" && break
36674           done
36675           test "$gl_cv_socklen_t_equiv" != "" && break
36676         done
36677         if test "$gl_cv_socklen_t_equiv" = ""; then
36678           as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
36679         fi
36680
36681fi
36682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
36683$as_echo "$gl_cv_socklen_t_equiv" >&6; }
36684
36685cat >>confdefs.h <<_ACEOF
36686#define socklen_t $gl_cv_socklen_t_equiv
36687_ACEOF
36688
36689fi
36690
36691
36692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
36693$as_echo_n "checking for ssize_t... " >&6; }
36694if ${gt_cv_ssize_t+:} false; then :
36695  $as_echo_n "(cached) " >&6
36696else
36697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36698/* end confdefs.h.  */
36699#include <sys/types.h>
36700int
36701main ()
36702{
36703int x = sizeof (ssize_t *) + sizeof (ssize_t);
36704            return !x;
36705  ;
36706  return 0;
36707}
36708_ACEOF
36709if ac_fn_c_try_compile "$LINENO"; then :
36710  gt_cv_ssize_t=yes
36711else
36712  gt_cv_ssize_t=no
36713fi
36714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36715fi
36716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
36717$as_echo "$gt_cv_ssize_t" >&6; }
36718  if test $gt_cv_ssize_t = no; then
36719
36720$as_echo "#define ssize_t int" >>confdefs.h
36721
36722  fi
36723
36724
36725
36726
36727
36728  case "$host_os" in
36729    mingw*)
36730                  REPLACE_STAT=1
36731      ;;
36732    *)
36733                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
36734$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
36735if ${gl_cv_func_stat_file_slash+:} false; then :
36736  $as_echo_n "(cached) " >&6
36737else
36738  touch conftest.tmp
36739         # Assume that if we have lstat, we can also check symlinks.
36740         if test $ac_cv_func_lstat = yes; then
36741           ln -s conftest.tmp conftest.lnk
36742         fi
36743         if test "$cross_compiling" = yes; then :
36744  case "$host_os" in
36745                               # Guess yes on Linux systems.
36746              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
36747                               # Guess yes on glibc systems.
36748              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
36749                               # If we don't know, obey --enable-cross-guesses.
36750              *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
36751            esac
36752
36753else
36754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36755/* end confdefs.h.  */
36756#include <sys/stat.h>
36757
36758int
36759main ()
36760{
36761int result = 0;
36762               struct stat st;
36763               if (!stat ("conftest.tmp/", &st))
36764                 result |= 1;
36765#if HAVE_LSTAT
36766               if (!stat ("conftest.lnk/", &st))
36767                 result |= 2;
36768#endif
36769               return result;
36770
36771  ;
36772  return 0;
36773}
36774_ACEOF
36775if ac_fn_c_try_run "$LINENO"; then :
36776  gl_cv_func_stat_file_slash=yes
36777else
36778  gl_cv_func_stat_file_slash=no
36779fi
36780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36781  conftest.$ac_objext conftest.beam conftest.$ac_ext
36782fi
36783
36784         rm -f conftest.tmp conftest.lnk
36785fi
36786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
36787$as_echo "$gl_cv_func_stat_file_slash" >&6; }
36788      case $gl_cv_func_stat_file_slash in
36789        *no)
36790          REPLACE_STAT=1
36791
36792$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
36793;;
36794      esac
36795      case $host_os in
36796                solaris*)
36797          REPLACE_FSTAT=1 ;;
36798      esac
36799      ;;
36800  esac
36801
36802  if test $REPLACE_STAT = 1; then
36803
36804
36805
36806
36807
36808
36809
36810
36811  lts_LIBOBJS="$lts_LIBOBJS stat.$ac_objext"
36812
36813    case "$host_os" in
36814      mingw*)
36815
36816
36817
36818
36819
36820
36821
36822
36823  lts_LIBOBJS="$lts_LIBOBJS stat-w32.$ac_objext"
36824
36825        ;;
36826    esac
36827
36828
36829  :
36830
36831  fi
36832
36833
36834
36835
36836
36837          GNULIB_STAT=1
36838
36839
36840
36841
36842
36843$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
36844
36845
36846
36847
36848
36849
36850
36851  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>
36852     #include <sys/stat.h>
36853"
36854if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
36855
36856cat >>confdefs.h <<_ACEOF
36857#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
36858_ACEOF
36859
36860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
36861$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
36862if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
36863  $as_echo_n "(cached) " >&6
36864else
36865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36866/* end confdefs.h.  */
36867
36868            #include <sys/types.h>
36869            #include <sys/stat.h>
36870            #if HAVE_SYS_TIME_H
36871            # include <sys/time.h>
36872            #endif
36873            #include <time.h>
36874            struct timespec ts;
36875            struct stat st;
36876
36877int
36878main ()
36879{
36880
36881            st.st_atim = ts;
36882
36883  ;
36884  return 0;
36885}
36886_ACEOF
36887if ac_fn_c_try_compile "$LINENO"; then :
36888  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
36889else
36890  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
36891fi
36892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893fi
36894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
36895$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
36896     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
36897
36898$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
36899
36900     fi
36901else
36902  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>
36903        #include <sys/stat.h>
36904"
36905if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
36906
36907cat >>confdefs.h <<_ACEOF
36908#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
36909_ACEOF
36910
36911
36912else
36913  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
36914           #include <sys/stat.h>
36915"
36916if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
36917
36918cat >>confdefs.h <<_ACEOF
36919#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
36920_ACEOF
36921
36922
36923else
36924  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>
36925              #include <sys/stat.h>
36926"
36927if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
36928
36929cat >>confdefs.h <<_ACEOF
36930#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
36931_ACEOF
36932
36933
36934fi
36935
36936fi
36937
36938fi
36939
36940fi
36941
36942
36943
36944
36945
36946  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>
36947     #include <sys/stat.h>
36948"
36949if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
36950
36951cat >>confdefs.h <<_ACEOF
36952#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
36953_ACEOF
36954
36955
36956else
36957  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
36958        #include <sys/stat.h>
36959"
36960if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
36961
36962cat >>confdefs.h <<_ACEOF
36963#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
36964_ACEOF
36965
36966
36967else
36968  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>
36969          #include <sys/stat.h>
36970"
36971if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
36972
36973cat >>confdefs.h <<_ACEOF
36974#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
36975_ACEOF
36976
36977
36978fi
36979
36980fi
36981
36982fi
36983
36984
36985
36986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
36987$as_echo_n "checking for working stdalign.h... " >&6; }
36988if ${gl_cv_header_working_stdalign_h+:} false; then :
36989  $as_echo_n "(cached) " >&6
36990else
36991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36992/* end confdefs.h.  */
36993#include <stdalign.h>
36994            #include <stddef.h>
36995
36996            /* Test that alignof yields a result consistent with offsetof.
36997               This catches GCC bug 52023
36998               <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
36999            #ifdef __cplusplus
37000               template <class t> struct alignof_helper { char a; t b; };
37001            # define ao(type) offsetof (alignof_helper<type>, b)
37002            #else
37003            # define ao(type) offsetof (struct { char a; type b; }, b)
37004            #endif
37005            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
37006            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
37007            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
37008
37009            /* Test _Alignas only on platforms where gnulib can help.  */
37010            #if \
37011                ((defined __cplusplus && 201103 <= __cplusplus) \
37012                 || (defined __APPLE__ && defined __MACH__ \
37013                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
37014                     : __GNUC__) \
37015                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
37016                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
37017                 || 1300 <= _MSC_VER)
37018              struct alignas_test { char c; char alignas (8) alignas_8; };
37019              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
37020                                ? 1 : -1];
37021            #endif
37022
37023int
37024main ()
37025{
37026
37027  ;
37028  return 0;
37029}
37030_ACEOF
37031if ac_fn_c_try_compile "$LINENO"; then :
37032  gl_cv_header_working_stdalign_h=yes
37033else
37034  gl_cv_header_working_stdalign_h=no
37035fi
37036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37037fi
37038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
37039$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
37040
37041  if test $gl_cv_header_working_stdalign_h = yes; then
37042    STDALIGN_H=''
37043  else
37044    STDALIGN_H='stdalign.h'
37045  fi
37046
37047
37048   if test -n "$STDALIGN_H"; then
37049  GL_GENERATE_STDALIGN_H_TRUE=
37050  GL_GENERATE_STDALIGN_H_FALSE='#'
37051else
37052  GL_GENERATE_STDALIGN_H_TRUE='#'
37053  GL_GENERATE_STDALIGN_H_FALSE=
37054fi
37055
37056
37057
37058  STDARG_H=''
37059  NEXT_STDARG_H='<stdarg.h>'
37060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
37061$as_echo_n "checking for va_copy... " >&6; }
37062if ${gl_cv_func_va_copy+:} false; then :
37063  $as_echo_n "(cached) " >&6
37064else
37065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37066/* end confdefs.h.  */
37067#include <stdarg.h>
37068int
37069main ()
37070{
37071
37072#ifndef va_copy
37073void (*func) (va_list, va_list) = va_copy;
37074#endif
37075
37076  ;
37077  return 0;
37078}
37079_ACEOF
37080if ac_fn_c_try_compile "$LINENO"; then :
37081  gl_cv_func_va_copy=yes
37082else
37083  gl_cv_func_va_copy=no
37084fi
37085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37086
37087fi
37088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
37089$as_echo "$gl_cv_func_va_copy" >&6; }
37090  if test $gl_cv_func_va_copy = no; then
37091                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37092/* end confdefs.h.  */
37093#if defined _AIX && !defined __GNUC__
37094        AIX vaccine
37095       #endif
37096
37097_ACEOF
37098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37099  $EGREP "vaccine" >/dev/null 2>&1; then :
37100  gl_aixcc=yes
37101else
37102  gl_aixcc=no
37103fi
37104rm -f conftest*
37105
37106    if test $gl_aixcc = yes; then
37107            STDARG_H=stdarg.h
37108
37109
37110
37111
37112
37113
37114
37115
37116     if test $gl_cv_have_include_next = yes; then
37117       gl_cv_next_stdarg_h='<'stdarg.h'>'
37118     else
37119       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
37120$as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
37121if ${gl_cv_next_stdarg_h+:} false; then :
37122  $as_echo_n "(cached) " >&6
37123else
37124
37125
37126
37127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37128/* end confdefs.h.  */
37129#include <stdarg.h>
37130_ACEOF
37131                case "$host_os" in
37132    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37133    *)    gl_absname_cpp="$ac_cpp" ;;
37134  esac
37135
37136  case "$host_os" in
37137    mingw*)
37138                                          gl_dirsep_regex='[/\\]'
37139      ;;
37140    *)
37141      gl_dirsep_regex='\/'
37142      ;;
37143  esac
37144      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37145  gl_header_literal_regex=`echo 'stdarg.h' \
37146                           | sed -e "$gl_make_literal_regex_sed"`
37147  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37148      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37149      s|^/[^/]|//&|
37150      p
37151      q
37152    }'
37153
37154        gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37155  sed -n "$gl_absolute_header_sed"`
37156
37157           gl_header=$gl_cv_absolute_stdarg_h
37158           gl_cv_next_stdarg_h='"'$gl_header'"'
37159
37160
37161fi
37162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
37163$as_echo "$gl_cv_next_stdarg_h" >&6; }
37164     fi
37165     NEXT_STDARG_H=$gl_cv_next_stdarg_h
37166
37167     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37168       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37169       gl_next_as_first_directive='<'stdarg.h'>'
37170     else
37171       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37172       gl_next_as_first_directive=$gl_cv_next_stdarg_h
37173     fi
37174     NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
37175
37176
37177
37178
37179            if test "$gl_cv_next_stdarg_h" = '""'; then
37180        gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
37181        NEXT_STDARG_H="$gl_cv_next_stdarg_h"
37182      fi
37183    else
37184
37185  saved_as_echo_n="$as_echo_n"
37186  as_echo_n=':'
37187  if ${gl_cv_func___va_copy+:} false; then :
37188  $as_echo_n "(cached) " >&6
37189else
37190
37191        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37192/* end confdefs.h.  */
37193#include <stdarg.h>
37194int
37195main ()
37196{
37197
37198#ifndef __va_copy
37199error, bail out
37200#endif
37201
37202  ;
37203  return 0;
37204}
37205_ACEOF
37206if ac_fn_c_try_compile "$LINENO"; then :
37207  gl_cv_func___va_copy=yes
37208else
37209  gl_cv_func___va_copy=no
37210fi
37211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37212fi
37213
37214  as_echo_n="$saved_as_echo_n"
37215
37216      if test $gl_cv_func___va_copy = yes; then
37217
37218$as_echo "#define va_copy __va_copy" >>confdefs.h
37219
37220      else
37221
37222
37223$as_echo "#define va_copy gl_va_copy" >>confdefs.h
37224
37225      fi
37226    fi
37227  fi
37228
37229   if test -n "$STDARG_H"; then
37230  GL_GENERATE_STDARG_H_TRUE=
37231  GL_GENERATE_STDARG_H_FALSE='#'
37232else
37233  GL_GENERATE_STDARG_H_TRUE='#'
37234  GL_GENERATE_STDARG_H_FALSE=
37235fi
37236
37237
37238
37239
37240
37241
37242
37243          if test "$ac_cv_header_stdbool_h" = yes; then
37244    case "$host_os" in
37245      solaris*)
37246        if test -z "$GCC"; then
37247          STDBOOL_H='stdbool.h'
37248        else
37249          STDBOOL_H=''
37250        fi
37251        ;;
37252      *)
37253        STDBOOL_H=''
37254        ;;
37255    esac
37256  else
37257    STDBOOL_H='stdbool.h'
37258  fi
37259
37260   if test -n "$STDBOOL_H"; then
37261  GL_GENERATE_STDBOOL_H_TRUE=
37262  GL_GENERATE_STDBOOL_H_FALSE='#'
37263else
37264  GL_GENERATE_STDBOOL_H_TRUE='#'
37265  GL_GENERATE_STDBOOL_H_FALSE=
37266fi
37267
37268
37269  if test "$ac_cv_type__Bool" = yes; then
37270    HAVE__BOOL=1
37271  else
37272    HAVE__BOOL=0
37273  fi
37274
37275
37276
37277
37278
37279  STDDEF_H=
37280
37281      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
37282$as_echo_n "checking for good max_align_t... " >&6; }
37283if ${gl_cv_type_max_align_t+:} false; then :
37284  $as_echo_n "(cached) " >&6
37285else
37286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37287/* end confdefs.h.  */
37288#include <stddef.h>
37289            unsigned int s = sizeof (max_align_t);
37290            #if defined __GNUC__ || defined __IBM__ALIGNOF__
37291            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
37292            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
37293            #endif
37294
37295int
37296main ()
37297{
37298
37299  ;
37300  return 0;
37301}
37302_ACEOF
37303if ac_fn_c_try_compile "$LINENO"; then :
37304  gl_cv_type_max_align_t=yes
37305else
37306  gl_cv_type_max_align_t=no
37307fi
37308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37309
37310fi
37311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
37312$as_echo "$gl_cv_type_max_align_t" >&6; }
37313  if test $gl_cv_type_max_align_t = no; then
37314    HAVE_MAX_ALIGN_T=0
37315    STDDEF_H=stddef.h
37316  fi
37317
37318  if test $gt_cv_c_wchar_t = no; then
37319    HAVE_WCHAR_T=0
37320    STDDEF_H=stddef.h
37321  fi
37322
37323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
37324$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
37325if ${gl_cv_decl_null_works+:} false; then :
37326  $as_echo_n "(cached) " >&6
37327else
37328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37329/* end confdefs.h.  */
37330#include <stddef.h>
37331      int test[2 * (sizeof NULL == sizeof (void *)) -1];
37332
37333int
37334main ()
37335{
37336
37337  ;
37338  return 0;
37339}
37340_ACEOF
37341if ac_fn_c_try_compile "$LINENO"; then :
37342  gl_cv_decl_null_works=yes
37343else
37344  gl_cv_decl_null_works=no
37345fi
37346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37347fi
37348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
37349$as_echo "$gl_cv_decl_null_works" >&6; }
37350  if test $gl_cv_decl_null_works = no; then
37351    REPLACE_NULL=1
37352    STDDEF_H=stddef.h
37353  fi
37354
37355
37356   if test -n "$STDDEF_H"; then
37357  GL_GENERATE_STDDEF_H_TRUE=
37358  GL_GENERATE_STDDEF_H_FALSE='#'
37359else
37360  GL_GENERATE_STDDEF_H_TRUE='#'
37361  GL_GENERATE_STDDEF_H_FALSE=
37362fi
37363
37364  if test -n "$STDDEF_H"; then
37365
37366
37367
37368
37369
37370
37371
37372
37373     if test $gl_cv_have_include_next = yes; then
37374       gl_cv_next_stddef_h='<'stddef.h'>'
37375     else
37376       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
37377$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
37378if ${gl_cv_next_stddef_h+:} false; then :
37379  $as_echo_n "(cached) " >&6
37380else
37381
37382
37383
37384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37385/* end confdefs.h.  */
37386#include <stddef.h>
37387_ACEOF
37388                case "$host_os" in
37389    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37390    *)    gl_absname_cpp="$ac_cpp" ;;
37391  esac
37392
37393  case "$host_os" in
37394    mingw*)
37395                                          gl_dirsep_regex='[/\\]'
37396      ;;
37397    *)
37398      gl_dirsep_regex='\/'
37399      ;;
37400  esac
37401      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37402  gl_header_literal_regex=`echo 'stddef.h' \
37403                           | sed -e "$gl_make_literal_regex_sed"`
37404  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37405      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37406      s|^/[^/]|//&|
37407      p
37408      q
37409    }'
37410
37411        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37412  sed -n "$gl_absolute_header_sed"`
37413
37414           gl_header=$gl_cv_absolute_stddef_h
37415           gl_cv_next_stddef_h='"'$gl_header'"'
37416
37417
37418fi
37419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
37420$as_echo "$gl_cv_next_stddef_h" >&6; }
37421     fi
37422     NEXT_STDDEF_H=$gl_cv_next_stddef_h
37423
37424     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37425       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37426       gl_next_as_first_directive='<'stddef.h'>'
37427     else
37428       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37429       gl_next_as_first_directive=$gl_cv_next_stddef_h
37430     fi
37431     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
37432
37433
37434
37435
37436  fi
37437
37438
37439
37440
37441  $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452     if test $gl_cv_have_include_next = yes; then
37453       gl_cv_next_stdio_h='<'stdio.h'>'
37454     else
37455       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
37456$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
37457if ${gl_cv_next_stdio_h+:} false; then :
37458  $as_echo_n "(cached) " >&6
37459else
37460
37461
37462
37463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37464/* end confdefs.h.  */
37465#include <stdio.h>
37466_ACEOF
37467                case "$host_os" in
37468    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37469    *)    gl_absname_cpp="$ac_cpp" ;;
37470  esac
37471
37472  case "$host_os" in
37473    mingw*)
37474                                          gl_dirsep_regex='[/\\]'
37475      ;;
37476    *)
37477      gl_dirsep_regex='\/'
37478      ;;
37479  esac
37480      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37481  gl_header_literal_regex=`echo 'stdio.h' \
37482                           | sed -e "$gl_make_literal_regex_sed"`
37483  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37484      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37485      s|^/[^/]|//&|
37486      p
37487      q
37488    }'
37489
37490        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37491  sed -n "$gl_absolute_header_sed"`
37492
37493           gl_header=$gl_cv_absolute_stdio_h
37494           gl_cv_next_stdio_h='"'$gl_header'"'
37495
37496
37497fi
37498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
37499$as_echo "$gl_cv_next_stdio_h" >&6; }
37500     fi
37501     NEXT_STDIO_H=$gl_cv_next_stdio_h
37502
37503     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37504       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37505       gl_next_as_first_directive='<'stdio.h'>'
37506     else
37507       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37508       gl_next_as_first_directive=$gl_cv_next_stdio_h
37509     fi
37510     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
37511
37512
37513
37514
37515
37516        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
37517$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
37518if ${gl_cv_func_printf_attribute_flavor+:} false; then :
37519  $as_echo_n "(cached) " >&6
37520else
37521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37522/* end confdefs.h.  */
37523
37524       #define __STDC_FORMAT_MACROS 1
37525       #include <stdio.h>
37526       #include <inttypes.h>
37527       /* For non-mingw systems, compilation will trivially succeed.
37528          For mingw, compilation will succeed for older mingw (system
37529          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
37530       #if (defined _WIN32 && ! defined __CYGWIN__) && \
37531         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
37532       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
37533       #endif
37534
37535int
37536main ()
37537{
37538
37539  ;
37540  return 0;
37541}
37542_ACEOF
37543if ac_fn_c_try_compile "$LINENO"; then :
37544  gl_cv_func_printf_attribute_flavor=system
37545else
37546  gl_cv_func_printf_attribute_flavor=gnu
37547fi
37548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37549fi
37550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
37551$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
37552  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
37553
37554$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
37555
37556  fi
37557
37558      GNULIB_FSCANF=1
37559
37560
37561cat >>confdefs.h <<_ACEOF
37562#define GNULIB_FSCANF 1
37563_ACEOF
37564
37565
37566  GNULIB_SCANF=1
37567
37568
37569cat >>confdefs.h <<_ACEOF
37570#define GNULIB_SCANF 1
37571_ACEOF
37572
37573
37574  GNULIB_FGETC=1
37575  GNULIB_GETC=1
37576  GNULIB_GETCHAR=1
37577  GNULIB_FGETS=1
37578  GNULIB_FREAD=1
37579
37580
37581      GNULIB_FPRINTF=1
37582  GNULIB_PRINTF=1
37583  GNULIB_VFPRINTF=1
37584  GNULIB_VPRINTF=1
37585  GNULIB_FPUTC=1
37586  GNULIB_PUTC=1
37587  GNULIB_PUTCHAR=1
37588  GNULIB_FPUTS=1
37589  GNULIB_PUTS=1
37590  GNULIB_FWRITE=1
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610     if test $gl_cv_have_include_next = yes; then
37611       gl_cv_next_stdlib_h='<'stdlib.h'>'
37612     else
37613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
37614$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
37615if ${gl_cv_next_stdlib_h+:} false; then :
37616  $as_echo_n "(cached) " >&6
37617else
37618
37619
37620
37621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37622/* end confdefs.h.  */
37623#include <stdlib.h>
37624_ACEOF
37625                case "$host_os" in
37626    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37627    *)    gl_absname_cpp="$ac_cpp" ;;
37628  esac
37629
37630  case "$host_os" in
37631    mingw*)
37632                                          gl_dirsep_regex='[/\\]'
37633      ;;
37634    *)
37635      gl_dirsep_regex='\/'
37636      ;;
37637  esac
37638      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37639  gl_header_literal_regex=`echo 'stdlib.h' \
37640                           | sed -e "$gl_make_literal_regex_sed"`
37641  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37642      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37643      s|^/[^/]|//&|
37644      p
37645      q
37646    }'
37647
37648        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37649  sed -n "$gl_absolute_header_sed"`
37650
37651           gl_header=$gl_cv_absolute_stdlib_h
37652           gl_cv_next_stdlib_h='"'$gl_header'"'
37653
37654
37655fi
37656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
37657$as_echo "$gl_cv_next_stdlib_h" >&6; }
37658     fi
37659     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
37660
37661     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37662       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37663       gl_next_as_first_directive='<'stdlib.h'>'
37664     else
37665       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37666       gl_next_as_first_directive=$gl_cv_next_stdlib_h
37667     fi
37668     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686  for ac_func in stpcpy
37687do :
37688  ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
37689if test "x$ac_cv_func_stpcpy" = xyes; then :
37690  cat >>confdefs.h <<_ACEOF
37691#define HAVE_STPCPY 1
37692_ACEOF
37693
37694fi
37695done
37696
37697  if test $ac_cv_func_stpcpy = no; then
37698    HAVE_STPCPY=0
37699  fi
37700
37701  if test $HAVE_STPCPY = 0; then
37702
37703
37704
37705
37706
37707
37708
37709
37710  lts_LIBOBJS="$lts_LIBOBJS stpcpy.$ac_objext"
37711
37712
37713  :
37714
37715  fi
37716
37717
37718
37719
37720
37721          GNULIB_STPCPY=1
37722
37723
37724
37725
37726
37727$as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
37728
37729
37730
37731
37732
37733
37734
37735
37736  if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
37737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
37738$as_echo_n "checking for working strerror function... " >&6; }
37739if ${gl_cv_func_working_strerror+:} false; then :
37740  $as_echo_n "(cached) " >&6
37741else
37742  if test "$cross_compiling" = yes; then :
37743  case "$host_os" in
37744                          # Guess yes on glibc systems.
37745           *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
37746                          # Guess yes on musl systems.
37747           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
37748                          # If we don't know, obey --enable-cross-guesses.
37749           *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
37750         esac
37751
37752else
37753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37754/* end confdefs.h.  */
37755#include <string.h>
37756
37757int
37758main ()
37759{
37760if (!*strerror (-2)) return 1;
37761  ;
37762  return 0;
37763}
37764_ACEOF
37765if ac_fn_c_try_run "$LINENO"; then :
37766  gl_cv_func_working_strerror=yes
37767else
37768  gl_cv_func_working_strerror=no
37769fi
37770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37771  conftest.$ac_objext conftest.beam conftest.$ac_ext
37772fi
37773
37774
37775fi
37776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
37777$as_echo "$gl_cv_func_working_strerror" >&6; }
37778    case "$gl_cv_func_working_strerror" in
37779      *yes) ;;
37780      *)
37781                        REPLACE_STRERROR=1
37782        ;;
37783    esac
37784
37785  else
37786            REPLACE_STRERROR=1
37787  fi
37788
37789  if test $REPLACE_STRERROR = 1; then
37790
37791
37792
37793
37794
37795
37796
37797
37798  lts_LIBOBJS="$lts_LIBOBJS strerror.$ac_objext"
37799
37800  fi
37801
37802
37803cat >>confdefs.h <<_ACEOF
37804#define GNULIB_STRERROR 1
37805_ACEOF
37806
37807
37808
37809
37810
37811
37812
37813          GNULIB_STRERROR=1
37814
37815
37816
37817
37818
37819$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
37820
37821
37822
37823
37824
37825  if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
37826
37827
37828
37829
37830
37831
37832
37833
37834  lts_LIBOBJS="$lts_LIBOBJS strerror-override.$ac_objext"
37835
37836
37837
37838
37839
37840  if test $ac_cv_header_sys_socket_h != yes; then
37841                    for ac_header in winsock2.h
37842do :
37843  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
37844if test "x$ac_cv_header_winsock2_h" = xyes; then :
37845  cat >>confdefs.h <<_ACEOF
37846#define HAVE_WINSOCK2_H 1
37847_ACEOF
37848
37849fi
37850
37851done
37852
37853  fi
37854  if test "$ac_cv_header_winsock2_h" = yes; then
37855    HAVE_WINSOCK2_H=1
37856    UNISTD_H_HAVE_WINSOCK2_H=1
37857    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
37858  else
37859    HAVE_WINSOCK2_H=0
37860  fi
37861
37862
37863  fi
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883     if test $gl_cv_have_include_next = yes; then
37884       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
37885     else
37886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
37887$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
37888if ${gl_cv_next_sys_stat_h+:} false; then :
37889  $as_echo_n "(cached) " >&6
37890else
37891
37892             if test $ac_cv_header_sys_stat_h = yes; then
37893
37894
37895
37896
37897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37898/* end confdefs.h.  */
37899#include <sys/stat.h>
37900_ACEOF
37901                case "$host_os" in
37902    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37903    *)    gl_absname_cpp="$ac_cpp" ;;
37904  esac
37905
37906  case "$host_os" in
37907    mingw*)
37908                                          gl_dirsep_regex='[/\\]'
37909      ;;
37910    *)
37911      gl_dirsep_regex='\/'
37912      ;;
37913  esac
37914      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37915  gl_header_literal_regex=`echo 'sys/stat.h' \
37916                           | sed -e "$gl_make_literal_regex_sed"`
37917  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37918      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37919      s|^/[^/]|//&|
37920      p
37921      q
37922    }'
37923
37924        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37925  sed -n "$gl_absolute_header_sed"`
37926
37927           gl_header=$gl_cv_absolute_sys_stat_h
37928           gl_cv_next_sys_stat_h='"'$gl_header'"'
37929          else
37930               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
37931             fi
37932
37933
37934fi
37935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
37936$as_echo "$gl_cv_next_sys_stat_h" >&6; }
37937     fi
37938     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
37939
37940     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37941       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37942       gl_next_as_first_directive='<'sys/stat.h'>'
37943     else
37944       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37945       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
37946     fi
37947     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
37948
37949
37950
37951
37952
37953
37954
37955
37956    WINDOWS_STAT_TIMESPEC=0
37957
37958
37959
37960
37961
37962
37963
37964
37965      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
37966     #include <sys/stat.h>
37967"
37968if test "x$ac_cv_type_nlink_t" = xyes; then :
37969
37970else
37971
37972$as_echo "#define nlink_t int" >>confdefs.h
37973
37974fi
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999
38000
38001     if test $gl_cv_have_include_next = yes; then
38002       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
38003     else
38004       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
38005$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
38006if ${gl_cv_next_sys_uio_h+:} false; then :
38007  $as_echo_n "(cached) " >&6
38008else
38009
38010             if test $ac_cv_header_sys_uio_h = yes; then
38011
38012
38013
38014
38015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38016/* end confdefs.h.  */
38017#include <sys/uio.h>
38018_ACEOF
38019                case "$host_os" in
38020    aix*) gl_absname_cpp="$ac_cpp -C" ;;
38021    *)    gl_absname_cpp="$ac_cpp" ;;
38022  esac
38023
38024  case "$host_os" in
38025    mingw*)
38026                                          gl_dirsep_regex='[/\\]'
38027      ;;
38028    *)
38029      gl_dirsep_regex='\/'
38030      ;;
38031  esac
38032      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38033  gl_header_literal_regex=`echo 'sys/uio.h' \
38034                           | sed -e "$gl_make_literal_regex_sed"`
38035  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38036      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38037      s|^/[^/]|//&|
38038      p
38039      q
38040    }'
38041
38042        gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38043  sed -n "$gl_absolute_header_sed"`
38044
38045           gl_header=$gl_cv_absolute_sys_uio_h
38046           gl_cv_next_sys_uio_h='"'$gl_header'"'
38047          else
38048               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
38049             fi
38050
38051
38052fi
38053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
38054$as_echo "$gl_cv_next_sys_uio_h" >&6; }
38055     fi
38056     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
38057
38058     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38059       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38060       gl_next_as_first_directive='<'sys/uio.h'>'
38061     else
38062       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38063       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
38064     fi
38065     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
38066
38067
38068
38069
38070  if test $ac_cv_header_sys_uio_h = yes; then
38071    HAVE_SYS_UIO_H=1
38072  else
38073    HAVE_SYS_UIO_H=0
38074  fi
38075
38076
38077
38078
38079
38080
38081
38082
38083
38084
38085
38086  if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
38087
38088
38089
38090
38091
38092
38093
38094
38095  lts_LIBOBJS="$lts_LIBOBJS tparm.$ac_objext"
38096
38097  fi
38098  case "$gl_cv_terminfo" in
38099    no*)
38100      case "$gl_cv_termcap" in
38101        no*)
38102
38103
38104
38105
38106
38107
38108
38109
38110  lts_LIBOBJS="$lts_LIBOBJS tputs.$ac_objext"
38111
38112          ;;
38113      esac
38114      ;;
38115  esac
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133     if test $gl_cv_have_include_next = yes; then
38134       gl_cv_next_unistd_h='<'unistd.h'>'
38135     else
38136       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
38137$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
38138if ${gl_cv_next_unistd_h+:} false; then :
38139  $as_echo_n "(cached) " >&6
38140else
38141
38142             if test $ac_cv_header_unistd_h = yes; then
38143
38144
38145
38146
38147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38148/* end confdefs.h.  */
38149#include <unistd.h>
38150_ACEOF
38151                case "$host_os" in
38152    aix*) gl_absname_cpp="$ac_cpp -C" ;;
38153    *)    gl_absname_cpp="$ac_cpp" ;;
38154  esac
38155
38156  case "$host_os" in
38157    mingw*)
38158                                          gl_dirsep_regex='[/\\]'
38159      ;;
38160    *)
38161      gl_dirsep_regex='\/'
38162      ;;
38163  esac
38164      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38165  gl_header_literal_regex=`echo 'unistd.h' \
38166                           | sed -e "$gl_make_literal_regex_sed"`
38167  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38168      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38169      s|^/[^/]|//&|
38170      p
38171      q
38172    }'
38173
38174        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38175  sed -n "$gl_absolute_header_sed"`
38176
38177           gl_header=$gl_cv_absolute_unistd_h
38178           gl_cv_next_unistd_h='"'$gl_header'"'
38179          else
38180               gl_cv_next_unistd_h='<'unistd.h'>'
38181             fi
38182
38183
38184fi
38185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
38186$as_echo "$gl_cv_next_unistd_h" >&6; }
38187     fi
38188     NEXT_UNISTD_H=$gl_cv_next_unistd_h
38189
38190     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38191       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38192       gl_next_as_first_directive='<'unistd.h'>'
38193     else
38194       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38195       gl_next_as_first_directive=$gl_cv_next_unistd_h
38196     fi
38197     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
38198
38199
38200
38201
38202  if test $ac_cv_header_unistd_h = yes; then
38203    HAVE_UNISTD_H=1
38204  else
38205    HAVE_UNISTD_H=0
38206  fi
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219
38220
38221      if  { test "$HAVE_LIBUNISTRING" != yes \
38222    || {
38223
38224
38225
38226            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
38227            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
38228                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
38229                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
38230                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
38231                         }
38232                    }
38233               }
38234
38235
38236
38237
38238       }
38239  }; then
38240    LIBUNISTRING_UNISTR_H='unistr.h'
38241  else
38242    LIBUNISTRING_UNISTR_H=
38243  fi
38244
38245
38246
38247
38248cat >>confdefs.h <<_ACEOF
38249#define GNULIB_UNISTR_U8_MBTOUC 1
38250_ACEOF
38251
38252
38253
38254
38255       if  { test "$HAVE_LIBUNISTRING" != yes \
38256    || {
38257
38258
38259
38260            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
38261            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
38262                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
38263                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
38264                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
38265                         }
38266                    }
38267               }
38268
38269
38270
38271
38272       }
38273  }; then
38274  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
38275  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
38276else
38277  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
38278  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
38279fi
38280
38281
38282
38283
38284      if  { test "$HAVE_LIBUNISTRING" != yes \
38285    || {
38286
38287
38288
38289            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
38290            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
38291                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
38292                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
38293                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
38294                         }
38295                    }
38296               }
38297
38298
38299
38300
38301       }
38302  }; then
38303    LIBUNISTRING_UNITYPES_H='unitypes.h'
38304  else
38305    LIBUNISTRING_UNITYPES_H=
38306  fi
38307
38308
38309
38310
38311
38312  if test $ac_cv_func_vasnprintf = no; then
38313
38314
38315
38316
38317
38318
38319
38320
38321
38322
38323  lts_LIBOBJS="$lts_LIBOBJS vasnprintf.$ac_objext"
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333  lts_LIBOBJS="$lts_LIBOBJS printf-args.$ac_objext"
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343  lts_LIBOBJS="$lts_LIBOBJS printf-parse.$ac_objext"
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353  lts_LIBOBJS="$lts_LIBOBJS asnprintf.$ac_objext"
38354
38355  if test $ac_cv_func_vasnprintf = yes; then
38356
38357$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
38358
38359  fi
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
38370if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
38371
38372else
38373
38374$as_echo "#define ptrdiff_t long" >>confdefs.h
38375
38376
38377fi
38378
38379
38380
38381
38382
38383
38384
38385  fi
38386
38387
38388  for ac_func in vasprintf
38389do :
38390  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
38391if test "x$ac_cv_func_vasprintf" = xyes; then :
38392  cat >>confdefs.h <<_ACEOF
38393#define HAVE_VASPRINTF 1
38394_ACEOF
38395
38396fi
38397done
38398
38399  if test $ac_cv_func_vasprintf = no; then
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409  lts_LIBOBJS="$lts_LIBOBJS vasprintf.$ac_objext"
38410
38411
38412
38413
38414
38415
38416
38417
38418
38419  lts_LIBOBJS="$lts_LIBOBJS asprintf.$ac_objext"
38420
38421
38422  if test $ac_cv_func_vasprintf = yes; then
38423    REPLACE_VASPRINTF=1
38424  else
38425    HAVE_VASPRINTF=0
38426  fi
38427
38428
38429
38430
38431
38432
38433
38434
38435  fi
38436
38437
38438
38439
38440
38441
38442          GNULIB_VASPRINTF=1
38443
38444
38445
38446
38447
38448$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468  gl_cv_func_vasprintf_posix=no
38469  for ac_func in vasprintf
38470do :
38471  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
38472if test "x$ac_cv_func_vasprintf" = xyes; then :
38473  cat >>confdefs.h <<_ACEOF
38474#define HAVE_VASPRINTF 1
38475_ACEOF
38476
38477fi
38478done
38479
38480  case "$gl_cv_func_printf_sizes_c99" in
38481    *yes)
38482      case "$gl_cv_func_printf_long_double" in
38483        *yes)
38484          case "$gl_cv_func_printf_infinite" in
38485            *yes)
38486              case "$gl_cv_func_printf_infinite_long_double" in
38487                *yes)
38488                  case "$gl_cv_func_printf_directive_a" in
38489                    *yes)
38490                      case "$gl_cv_func_printf_directive_f" in
38491                        *yes)
38492                          case "$gl_cv_func_printf_directive_n" in
38493                            *yes)
38494                              case "$gl_cv_func_printf_directive_ls" in
38495                                *yes)
38496                                  case "$gl_cv_func_printf_positions" in
38497                                    *yes)
38498                                      case "$gl_cv_func_printf_flag_grouping" in
38499                                        *yes)
38500                                          case "$gl_cv_func_printf_flag_leftadjust" in
38501                                            *yes)
38502                                              case "$gl_cv_func_printf_flag_zero" in
38503                                                *yes)
38504                                                  case "$gl_cv_func_printf_precision" in
38505                                                    *yes)
38506                                                      case "$gl_cv_func_printf_enomem" in
38507                                                        *yes)
38508                                                          if test $ac_cv_func_vasprintf = yes; then
38509                                                            # vasprintf exists and is
38510                                                            # already POSIX compliant.
38511                                                            gl_cv_func_vasprintf_posix=yes
38512                                                          fi
38513                                                          ;;
38514                                                      esac
38515                                                      ;;
38516                                                  esac
38517                                                  ;;
38518                                              esac
38519                                              ;;
38520                                          esac
38521                                          ;;
38522                                      esac
38523                                      ;;
38524                                  esac
38525                                  ;;
38526                              esac
38527                              ;;
38528                          esac
38529                          ;;
38530                      esac
38531                      ;;
38532                  esac
38533                  ;;
38534              esac
38535              ;;
38536          esac
38537          ;;
38538      esac
38539      ;;
38540  esac
38541  if test $gl_cv_func_vasprintf_posix = no; then
38542
38543
38544
38545  case "$gl_cv_func_printf_infinite" in
38546    *yes)
38547      ;;
38548    *)
38549
38550$as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
38551
38552      ;;
38553  esac
38554
38555
38556
38557
38558  case "$gl_cv_func_printf_long_double" in
38559    *yes)
38560      case "$gl_cv_func_printf_infinite_long_double" in
38561        *yes)
38562          ;;
38563        *)
38564
38565$as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
38566
38567          ;;
38568      esac
38569      ;;
38570  esac
38571
38572
38573
38574  case "$gl_cv_func_printf_directive_a" in
38575    *yes)
38576      ;;
38577    *)
38578
38579$as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
38580
38581      for ac_func in nl_langinfo
38582do :
38583  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
38584if test "x$ac_cv_func_nl_langinfo" = xyes; then :
38585  cat >>confdefs.h <<_ACEOF
38586#define HAVE_NL_LANGINFO 1
38587_ACEOF
38588
38589fi
38590done
38591
38592      ;;
38593  esac
38594
38595
38596
38597  case "$gl_cv_func_printf_directive_f" in
38598    *yes)
38599      ;;
38600    *)
38601
38602$as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
38603
38604      ;;
38605  esac
38606
38607
38608
38609  case "$gl_cv_func_printf_directive_ls" in
38610    *yes)
38611      ;;
38612    *)
38613
38614$as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
38615
38616      ;;
38617  esac
38618
38619
38620
38621  case "$gl_cv_func_printf_flag_grouping" in
38622    *yes)
38623      ;;
38624    *)
38625
38626$as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
38627
38628      ;;
38629  esac
38630
38631
38632
38633  case "$gl_cv_func_printf_flag_leftadjust" in
38634    *yes)
38635      ;;
38636    *)
38637
38638$as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
38639
38640      ;;
38641  esac
38642
38643
38644
38645  case "$gl_cv_func_printf_flag_zero" in
38646    *yes)
38647      ;;
38648    *)
38649
38650$as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
38651
38652      ;;
38653  esac
38654
38655
38656
38657  case "$gl_cv_func_printf_precision" in
38658    *yes)
38659      ;;
38660    *)
38661
38662$as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
38663
38664
38665$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
38666
38667
38668$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
38669
38670      ;;
38671  esac
38672
38673
38674
38675  case "$gl_cv_func_printf_enomem" in
38676    *yes)
38677      ;;
38678    *)
38679
38680$as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
38681
38682
38683$as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
38684
38685
38686$as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
38687
38688      ;;
38689  esac
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701  lts_LIBOBJS="$lts_LIBOBJS vasnprintf.$ac_objext"
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711  lts_LIBOBJS="$lts_LIBOBJS printf-args.$ac_objext"
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721  lts_LIBOBJS="$lts_LIBOBJS printf-parse.$ac_objext"
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731  lts_LIBOBJS="$lts_LIBOBJS asnprintf.$ac_objext"
38732
38733  if test $ac_cv_func_vasnprintf = yes; then
38734
38735$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
38736
38737  fi
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
38748if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
38749
38750else
38751
38752$as_echo "#define ptrdiff_t long" >>confdefs.h
38753
38754
38755fi
38756
38757
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772  lts_LIBOBJS="$lts_LIBOBJS vasprintf.$ac_objext"
38773
38774
38775
38776
38777
38778
38779
38780
38781
38782  lts_LIBOBJS="$lts_LIBOBJS asprintf.$ac_objext"
38783
38784
38785  if test $ac_cv_func_vasprintf = yes; then
38786    REPLACE_VASPRINTF=1
38787  else
38788    HAVE_VASPRINTF=0
38789  fi
38790
38791
38792
38793
38794
38795
38796
38797
38798  fi
38799
38800
38801
38802  gl_cv_func_vsnprintf_usable=no
38803  for ac_func in vsnprintf
38804do :
38805  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
38806if test "x$ac_cv_func_vsnprintf" = xyes; then :
38807  cat >>confdefs.h <<_ACEOF
38808#define HAVE_VSNPRINTF 1
38809_ACEOF
38810
38811fi
38812done
38813
38814  if test $ac_cv_func_vsnprintf = yes; then
38815
38816
38817
38818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
38819$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
38820if ${gl_cv_func_snprintf_size1+:} false; then :
38821  $as_echo_n "(cached) " >&6
38822else
38823
38824      if test "$cross_compiling" = yes; then :
38825  case "$host_os" in
38826                            # Guess yes on Android.
38827           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
38828                            # Guess yes on native Windows.
38829           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
38830           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
38831         esac
38832
38833else
38834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38835/* end confdefs.h.  */
38836
38837#include <stdio.h>
38838#if HAVE_SNPRINTF
38839# define my_snprintf snprintf
38840#else
38841# include <stdarg.h>
38842static int my_snprintf (char *buf, int size, const char *format, ...)
38843{
38844  va_list args;
38845  int ret;
38846  va_start (args, format);
38847  ret = vsnprintf (buf, size, format, args);
38848  va_end (args);
38849  return ret;
38850}
38851#endif
38852int main()
38853{
38854  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
38855  my_snprintf (buf, 1, "%d", 12345);
38856  return buf[1] != 'E';
38857}
38858_ACEOF
38859if ac_fn_c_try_run "$LINENO"; then :
38860  gl_cv_func_snprintf_size1=yes
38861else
38862  gl_cv_func_snprintf_size1=no
38863fi
38864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38865  conftest.$ac_objext conftest.beam conftest.$ac_ext
38866fi
38867
38868
38869fi
38870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
38871$as_echo "$gl_cv_func_snprintf_size1" >&6; }
38872
38873    case "$gl_cv_func_snprintf_size1" in
38874      *yes)
38875
38876        case "$gl_cv_func_snprintf_retval_c99" in
38877          *yes)
38878
38879
38880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
38881$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
38882if ${gl_cv_func_printf_positions+:} false; then :
38883  $as_echo_n "(cached) " >&6
38884else
38885
38886      if test "$cross_compiling" = yes; then :
38887
38888         case "$host_os" in
38889           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
38890                            gl_cv_func_printf_positions="guessing no";;
38891           beos*)           gl_cv_func_printf_positions="guessing no";;
38892                            # Guess yes on Android.
38893           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
38894                            # Guess no on native Windows.
38895           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
38896           *)               gl_cv_func_printf_positions="guessing yes";;
38897         esac
38898
38899else
38900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38901/* end confdefs.h.  */
38902
38903#include <stdio.h>
38904#include <string.h>
38905/* The string "%2$d %1$d", with dollar characters protected from the shell's
38906   dollar expansion (possibly an autoconf bug).  */
38907static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
38908static char buf[100];
38909int main ()
38910{
38911  sprintf (buf, format, 33, 55);
38912  return (strcmp (buf, "55 33") != 0);
38913}
38914_ACEOF
38915if ac_fn_c_try_run "$LINENO"; then :
38916  gl_cv_func_printf_positions=yes
38917else
38918  gl_cv_func_printf_positions=no
38919fi
38920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38921  conftest.$ac_objext conftest.beam conftest.$ac_ext
38922fi
38923
38924
38925fi
38926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
38927$as_echo "$gl_cv_func_printf_positions" >&6; }
38928
38929            case "$gl_cv_func_printf_positions" in
38930              *yes)
38931                gl_cv_func_vsnprintf_usable=yes
38932                ;;
38933            esac
38934            ;;
38935        esac
38936        ;;
38937    esac
38938  fi
38939  if test $gl_cv_func_vsnprintf_usable = no; then
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950  lts_LIBOBJS="$lts_LIBOBJS vsnprintf.$ac_objext"
38951
38952  if test $ac_cv_func_vsnprintf = yes; then
38953    REPLACE_VSNPRINTF=1
38954  else
38955
38956    if test $ac_cv_have_decl_vsnprintf = yes; then
38957                        REPLACE_VSNPRINTF=1
38958    fi
38959  fi
38960  :
38961
38962  fi
38963
38964  if test $ac_cv_have_decl_vsnprintf = no; then
38965    HAVE_DECL_VSNPRINTF=0
38966  fi
38967
38968
38969
38970
38971
38972
38973          GNULIB_VSNPRINTF=1
38974
38975
38976
38977
38978
38979$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995     if test $gl_cv_have_include_next = yes; then
38996       gl_cv_next_wchar_h='<'wchar.h'>'
38997     else
38998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
38999$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
39000if ${gl_cv_next_wchar_h+:} false; then :
39001  $as_echo_n "(cached) " >&6
39002else
39003
39004             if test $ac_cv_header_wchar_h = yes; then
39005
39006
39007
39008
39009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39010/* end confdefs.h.  */
39011#include <wchar.h>
39012_ACEOF
39013                case "$host_os" in
39014    aix*) gl_absname_cpp="$ac_cpp -C" ;;
39015    *)    gl_absname_cpp="$ac_cpp" ;;
39016  esac
39017
39018  case "$host_os" in
39019    mingw*)
39020                                          gl_dirsep_regex='[/\\]'
39021      ;;
39022    *)
39023      gl_dirsep_regex='\/'
39024      ;;
39025  esac
39026      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39027  gl_header_literal_regex=`echo 'wchar.h' \
39028                           | sed -e "$gl_make_literal_regex_sed"`
39029  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39030      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39031      s|^/[^/]|//&|
39032      p
39033      q
39034    }'
39035
39036        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39037  sed -n "$gl_absolute_header_sed"`
39038
39039           gl_header=$gl_cv_absolute_wchar_h
39040           gl_cv_next_wchar_h='"'$gl_header'"'
39041          else
39042               gl_cv_next_wchar_h='<'wchar.h'>'
39043             fi
39044
39045
39046fi
39047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
39048$as_echo "$gl_cv_next_wchar_h" >&6; }
39049     fi
39050     NEXT_WCHAR_H=$gl_cv_next_wchar_h
39051
39052     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39053       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39054       gl_next_as_first_directive='<'wchar.h'>'
39055     else
39056       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39057       gl_next_as_first_directive=$gl_cv_next_wchar_h
39058     fi
39059     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
39060
39061
39062
39063
39064  if test $ac_cv_header_wchar_h = yes; then
39065    HAVE_WCHAR_H=1
39066  else
39067    HAVE_WCHAR_H=0
39068  fi
39069
39070
39071
39072
39073
39074  if test $gt_cv_c_wint_t = yes; then
39075    HAVE_WINT_T=1
39076  else
39077    HAVE_WINT_T=0
39078  fi
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090  case "$host_os" in
39091    mingw*)
39092
39093
39094
39095
39096
39097
39098
39099
39100  lts_LIBOBJS="$lts_LIBOBJS windows-mutex.$ac_objext"
39101
39102      ;;
39103  esac
39104
39105  case "$host_os" in
39106    mingw*)
39107
39108
39109
39110
39111
39112
39113
39114
39115  lts_LIBOBJS="$lts_LIBOBJS windows-once.$ac_objext"
39116
39117      ;;
39118  esac
39119
39120  case "$host_os" in
39121    mingw*)
39122
39123
39124
39125
39126
39127
39128
39129
39130  lts_LIBOBJS="$lts_LIBOBJS windows-recmutex.$ac_objext"
39131
39132      ;;
39133  esac
39134
39135  case "$host_os" in
39136    mingw*)
39137
39138
39139
39140
39141
39142
39143
39144
39145  lts_LIBOBJS="$lts_LIBOBJS windows-rwlock.$ac_objext"
39146
39147      ;;
39148  esac
39149
39150
39151
39152
39153    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
39154      REPLACE_WRITE=1
39155    fi
39156
39157
39158
39159
39160  if test $REPLACE_WRITE = 1; then
39161
39162
39163
39164
39165
39166
39167
39168
39169  lts_LIBOBJS="$lts_LIBOBJS write.$ac_objext"
39170
39171    :
39172  fi
39173
39174
39175
39176
39177
39178          GNULIB_WRITE=1
39179
39180
39181
39182
39183
39184$as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
39185
39186
39187
39188
39189
39190
39191  for ac_header in stdint.h
39192do :
39193  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
39194if test "x$ac_cv_header_stdint_h" = xyes; then :
39195  cat >>confdefs.h <<_ACEOF
39196#define HAVE_STDINT_H 1
39197_ACEOF
39198
39199fi
39200
39201done
39202
39203
39204  :
39205
39206  # End of code from modules
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216  gltests_libdeps=
39217  gltests_ltlibdeps=
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228  gl_source_base='tests'
39229  ltstests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
39230
39231  gl_module_indicator_condition=$ltstests_WITNESS
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241  LIBTESTS_LIBDEPS="$gltests_libdeps"
39242
39243
39244
39245GNULIB_ISATTY=0
39246
39247if test "$enable_shared" = yes; then
39248  case "$host_os" in
39249    mingw* | cygwin*) is_woe32dll=yes ;;
39250    *) is_woe32dll=no ;;
39251  esac
39252else
39253  is_woe32dll=no
39254fi
39255 if test $is_woe32dll = yes; then
39256  WOE32DLL_TRUE=
39257  WOE32DLL_FALSE='#'
39258else
39259  WOE32DLL_TRUE='#'
39260  WOE32DLL_FALSE=
39261fi
39262
39263if test $is_woe32dll = yes; then
39264  DLL_VARIABLE='__declspec (dllimport)'
39265else
39266  DLL_VARIABLE=
39267fi
39268
39269
39270
39271
39272# Check whether --enable-namespacing was given.
39273if test "${enable_namespacing+set}" = set; then :
39274  enableval=$enable_namespacing; :
39275else
39276  enable_namespacing=yes
39277fi
39278
39279if test "$enable_namespacing" != no; then
39280  NAMESPACING=yes
39281else
39282  NAMESPACING=
39283fi
39284
39285
39286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
39287$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
39288if ${lt_cv_path_NM+:} false; then :
39289  $as_echo_n "(cached) " >&6
39290else
39291  if test -n "$NM"; then
39292  # Let the user override the test.
39293  lt_cv_path_NM=$NM
39294else
39295  lt_nm_to_check=${ac_tool_prefix}nm
39296  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
39297    lt_nm_to_check="$lt_nm_to_check nm"
39298  fi
39299  for lt_tmp_nm in $lt_nm_to_check; do
39300    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
39301    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
39302      IFS=$lt_save_ifs
39303      test -z "$ac_dir" && ac_dir=.
39304      tmp_nm=$ac_dir/$lt_tmp_nm
39305      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
39306	# Check to see if the nm accepts a BSD-compat flag.
39307	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
39308	#   nm: unknown option "B" ignored
39309	# Tru64's nm complains that /dev/null is an invalid object file
39310	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
39311	case $build_os in
39312	mingw*) lt_bad_file=conftest.nm/nofile ;;
39313	*) lt_bad_file=/dev/null ;;
39314	esac
39315	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
39316	*$lt_bad_file* | *'Invalid file or object type'*)
39317	  lt_cv_path_NM="$tmp_nm -B"
39318	  break 2
39319	  ;;
39320	*)
39321	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
39322	  */dev/null*)
39323	    lt_cv_path_NM="$tmp_nm -p"
39324	    break 2
39325	    ;;
39326	  *)
39327	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
39328	    continue # so that we can try to find one that supports BSD flags
39329	    ;;
39330	  esac
39331	  ;;
39332	esac
39333      fi
39334    done
39335    IFS=$lt_save_ifs
39336  done
39337  : ${lt_cv_path_NM=no}
39338fi
39339fi
39340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
39341$as_echo "$lt_cv_path_NM" >&6; }
39342if test no != "$lt_cv_path_NM"; then
39343  NM=$lt_cv_path_NM
39344else
39345  # Didn't find any BSD compatible name lister, look for dumpbin.
39346  if test -n "$DUMPBIN"; then :
39347    # Let the user override the test.
39348  else
39349    if test -n "$ac_tool_prefix"; then
39350  for ac_prog in dumpbin "link -dump"
39351  do
39352    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39353set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39355$as_echo_n "checking for $ac_word... " >&6; }
39356if ${ac_cv_prog_DUMPBIN+:} false; then :
39357  $as_echo_n "(cached) " >&6
39358else
39359  if test -n "$DUMPBIN"; then
39360  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
39361else
39362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39363for as_dir in $PATH
39364do
39365  IFS=$as_save_IFS
39366  test -z "$as_dir" && as_dir=.
39367    for ac_exec_ext in '' $ac_executable_extensions; do
39368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39369    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
39370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39371    break 2
39372  fi
39373done
39374  done
39375IFS=$as_save_IFS
39376
39377fi
39378fi
39379DUMPBIN=$ac_cv_prog_DUMPBIN
39380if test -n "$DUMPBIN"; then
39381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
39382$as_echo "$DUMPBIN" >&6; }
39383else
39384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39385$as_echo "no" >&6; }
39386fi
39387
39388
39389    test -n "$DUMPBIN" && break
39390  done
39391fi
39392if test -z "$DUMPBIN"; then
39393  ac_ct_DUMPBIN=$DUMPBIN
39394  for ac_prog in dumpbin "link -dump"
39395do
39396  # Extract the first word of "$ac_prog", so it can be a program name with args.
39397set dummy $ac_prog; ac_word=$2
39398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39399$as_echo_n "checking for $ac_word... " >&6; }
39400if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
39401  $as_echo_n "(cached) " >&6
39402else
39403  if test -n "$ac_ct_DUMPBIN"; then
39404  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
39405else
39406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39407for as_dir in $PATH
39408do
39409  IFS=$as_save_IFS
39410  test -z "$as_dir" && as_dir=.
39411    for ac_exec_ext in '' $ac_executable_extensions; do
39412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39413    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
39414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39415    break 2
39416  fi
39417done
39418  done
39419IFS=$as_save_IFS
39420
39421fi
39422fi
39423ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
39424if test -n "$ac_ct_DUMPBIN"; then
39425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
39426$as_echo "$ac_ct_DUMPBIN" >&6; }
39427else
39428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39429$as_echo "no" >&6; }
39430fi
39431
39432
39433  test -n "$ac_ct_DUMPBIN" && break
39434done
39435
39436  if test "x$ac_ct_DUMPBIN" = x; then
39437    DUMPBIN=":"
39438  else
39439    case $cross_compiling:$ac_tool_warned in
39440yes:)
39441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39443ac_tool_warned=yes ;;
39444esac
39445    DUMPBIN=$ac_ct_DUMPBIN
39446  fi
39447fi
39448
39449    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
39450    *COFF*)
39451      DUMPBIN="$DUMPBIN -symbols -headers"
39452      ;;
39453    *)
39454      DUMPBIN=:
39455      ;;
39456    esac
39457  fi
39458
39459  if test : != "$DUMPBIN"; then
39460    NM=$DUMPBIN
39461  fi
39462fi
39463test -z "$NM" && NM=nm
39464
39465
39466
39467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
39468$as_echo_n "checking the name lister ($NM) interface... " >&6; }
39469if ${lt_cv_nm_interface+:} false; then :
39470  $as_echo_n "(cached) " >&6
39471else
39472  lt_cv_nm_interface="BSD nm"
39473  echo "int some_variable = 0;" > conftest.$ac_ext
39474  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
39475  (eval "$ac_compile" 2>conftest.err)
39476  cat conftest.err >&5
39477  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
39478  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
39479  cat conftest.err >&5
39480  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
39481  cat conftest.out >&5
39482  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
39483    lt_cv_nm_interface="MS dumpbin"
39484  fi
39485  rm -f conftest*
39486fi
39487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
39488$as_echo "$lt_cv_nm_interface" >&6; }
39489
39490
39491
39492     GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
39493
39494  if test -n "$GLOBAL_SYMBOL_PIPE"; then
39495    HAVE_GLOBAL_SYMBOL_PIPE=1
39496  else
39497    HAVE_GLOBAL_SYMBOL_PIPE=
39498  fi
39499
39500
39501
39502for ac_prog in gawk mawk nawk awk
39503do
39504  # Extract the first word of "$ac_prog", so it can be a program name with args.
39505set dummy $ac_prog; ac_word=$2
39506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39507$as_echo_n "checking for $ac_word... " >&6; }
39508if ${ac_cv_prog_AWK+:} false; then :
39509  $as_echo_n "(cached) " >&6
39510else
39511  if test -n "$AWK"; then
39512  ac_cv_prog_AWK="$AWK" # Let the user override the test.
39513else
39514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39515for as_dir in $PATH
39516do
39517  IFS=$as_save_IFS
39518  test -z "$as_dir" && as_dir=.
39519    for ac_exec_ext in '' $ac_executable_extensions; do
39520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39521    ac_cv_prog_AWK="$ac_prog"
39522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39523    break 2
39524  fi
39525done
39526  done
39527IFS=$as_save_IFS
39528
39529fi
39530fi
39531AWK=$ac_cv_prog_AWK
39532if test -n "$AWK"; then
39533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
39534$as_echo "$AWK" >&6; }
39535else
39536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39537$as_echo "no" >&6; }
39538fi
39539
39540
39541  test -n "$AWK" && break
39542done
39543
39544
39545sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
39546i\
395470
39548q
39549'
39550sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
39551i\
395520
39553q
39554'
39555sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
39556i\
395570
39558q
39559'
39560
39561version_major=`echo "${VERSION}" | sed -n -e "$sed_extract_major"`
39562version_minor=`echo "${VERSION}" | sed -n -e "$sed_extract_minor"`
39563version_subminor=`echo "${VERSION}" | sed -n -e "$sed_extract_subminor"`
39564HEXVERSION=0x`$AWK 'BEGIN { printf("%02X%02X%02X"',"$version_major","$version_minor","$version_subminor"') }'`
39565
39566
39567if test "$am_func_iconv" = yes; then
39568  HAVE_ICONV=1
39569else
39570  HAVE_ICONV=0
39571fi
39572
39573
39574ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
39575# Extract the first word of "texi2dvi", so it can be a program name with args.
39576set dummy texi2dvi; ac_word=$2
39577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39578$as_echo_n "checking for $ac_word... " >&6; }
39579if ${ac_cv_path_TEXI2DVI+:} false; then :
39580  $as_echo_n "(cached) " >&6
39581else
39582  case $TEXI2DVI in
39583  [\\/]* | ?:[\\/]*)
39584  ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
39585  ;;
39586  *)
39587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39588for as_dir in $PATH
39589do
39590  IFS=$as_save_IFS
39591  test -z "$as_dir" && as_dir=.
39592    for ac_exec_ext in '' $ac_executable_extensions; do
39593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39594    ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
39595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39596    break 2
39597  fi
39598done
39599  done
39600IFS=$as_save_IFS
39601
39602  test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$ac_aux_dir_abs/missing texi2dvi"
39603  ;;
39604esac
39605fi
39606TEXI2DVI=$ac_cv_path_TEXI2DVI
39607if test -n "$TEXI2DVI"; then
39608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
39609$as_echo "$TEXI2DVI" >&6; }
39610else
39611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39612$as_echo "no" >&6; }
39613fi
39614
39615
39616# Extract the first word of "dvips", so it can be a program name with args.
39617set dummy dvips; ac_word=$2
39618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39619$as_echo_n "checking for $ac_word... " >&6; }
39620if ${ac_cv_path_DVIPS+:} false; then :
39621  $as_echo_n "(cached) " >&6
39622else
39623  case $DVIPS in
39624  [\\/]* | ?:[\\/]*)
39625  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
39626  ;;
39627  *)
39628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39629for as_dir in $PATH
39630do
39631  IFS=$as_save_IFS
39632  test -z "$as_dir" && as_dir=.
39633    for ac_exec_ext in '' $ac_executable_extensions; do
39634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39635    ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
39636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39637    break 2
39638  fi
39639done
39640  done
39641IFS=$as_save_IFS
39642
39643  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
39644  ;;
39645esac
39646fi
39647DVIPS=$ac_cv_path_DVIPS
39648if test -n "$DVIPS"; then
39649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
39650$as_echo "$DVIPS" >&6; }
39651else
39652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39653$as_echo "no" >&6; }
39654fi
39655
39656
39657# Extract the first word of "perl", so it can be a program name with args.
39658set dummy perl; ac_word=$2
39659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39660$as_echo_n "checking for $ac_word... " >&6; }
39661if ${ac_cv_path_PERL+:} false; then :
39662  $as_echo_n "(cached) " >&6
39663else
39664  case $PERL in
39665  [\\/]* | ?:[\\/]*)
39666  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39667  ;;
39668  *)
39669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39670for as_dir in $PATH
39671do
39672  IFS=$as_save_IFS
39673  test -z "$as_dir" && as_dir=.
39674    for ac_exec_ext in '' $ac_executable_extensions; do
39675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39676    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39678    break 2
39679  fi
39680done
39681  done
39682IFS=$as_save_IFS
39683
39684  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
39685  ;;
39686esac
39687fi
39688PERL=$ac_cv_path_PERL
39689if test -n "$PERL"; then
39690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39691$as_echo "$PERL" >&6; }
39692else
39693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39694$as_echo "no" >&6; }
39695fi
39696
39697
39698
39699ac_config_files="$ac_config_files Makefile"
39700
39701ac_config_files="$ac_config_files doc/Makefile"
39702
39703ac_config_files="$ac_config_files lib/Makefile"
39704
39705ac_config_files="$ac_config_files lib/exported.sh"
39706
39707ac_config_files="$ac_config_files lib/textstyle/version.h:lib/textstyle/version.in.h"
39708
39709ac_config_files="$ac_config_files lib/textstyle/woe32dll.h:lib/textstyle/woe32dll.in.h"
39710
39711ac_config_files="$ac_config_files tests/Makefile"
39712
39713ac_config_files="$ac_config_files adhoc-tests/Makefile"
39714
39715cat >confcache <<\_ACEOF
39716# This file is a shell script that caches the results of configure
39717# tests run on this system so they can be shared between configure
39718# scripts and configure runs, see configure's option --config-cache.
39719# It is not useful on other systems.  If it contains results you don't
39720# want to keep, you may remove or edit it.
39721#
39722# config.status only pays attention to the cache file if you give it
39723# the --recheck option to rerun configure.
39724#
39725# `ac_cv_env_foo' variables (set or unset) will be overridden when
39726# loading this file, other *unset* `ac_cv_foo' will be assigned the
39727# following values.
39728
39729_ACEOF
39730
39731# The following way of writing the cache mishandles newlines in values,
39732# but we know of no workaround that is simple, portable, and efficient.
39733# So, we kill variables containing newlines.
39734# Ultrix sh set writes to stderr and can't be redirected directly,
39735# and sets the high bit in the cache file unless we assign to the vars.
39736(
39737  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39738    eval ac_val=\$$ac_var
39739    case $ac_val in #(
39740    *${as_nl}*)
39741      case $ac_var in #(
39742      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39743$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39744      esac
39745      case $ac_var in #(
39746      _ | IFS | as_nl) ;; #(
39747      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39748      *) { eval $ac_var=; unset $ac_var;} ;;
39749      esac ;;
39750    esac
39751  done
39752
39753  (set) 2>&1 |
39754    case $as_nl`(ac_space=' '; set) 2>&1` in #(
39755    *${as_nl}ac_space=\ *)
39756      # `set' does not quote correctly, so add quotes: double-quote
39757      # substitution turns \\\\ into \\, and sed turns \\ into \.
39758      sed -n \
39759	"s/'/'\\\\''/g;
39760	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39761      ;; #(
39762    *)
39763      # `set' quotes correctly as required by POSIX, so do not add quotes.
39764      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39765      ;;
39766    esac |
39767    sort
39768) |
39769  sed '
39770     /^ac_cv_env_/b end
39771     t clear
39772     :clear
39773     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39774     t end
39775     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39776     :end' >>confcache
39777if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39778  if test -w "$cache_file"; then
39779    if test "x$cache_file" != "x/dev/null"; then
39780      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39781$as_echo "$as_me: updating cache $cache_file" >&6;}
39782      if test ! -f "$cache_file" || test -h "$cache_file"; then
39783	cat confcache >"$cache_file"
39784      else
39785        case $cache_file in #(
39786        */* | ?:*)
39787	  mv -f confcache "$cache_file"$$ &&
39788	  mv -f "$cache_file"$$ "$cache_file" ;; #(
39789        *)
39790	  mv -f confcache "$cache_file" ;;
39791	esac
39792      fi
39793    fi
39794  else
39795    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39796$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39797  fi
39798fi
39799rm -f confcache
39800
39801test "x$prefix" = xNONE && prefix=$ac_default_prefix
39802# Let make expand exec_prefix.
39803test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39804
39805DEFS=-DHAVE_CONFIG_H
39806
39807ac_libobjs=
39808ac_ltlibobjs=
39809for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39810  # 1. Remove the extension, and $U if already installed.
39811  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39812  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
39813  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39814  #    will be set to the directory where LIBOBJS objects are built.
39815  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39816  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
39817done
39818LIBOBJS=$ac_libobjs
39819
39820LTLIBOBJS=$ac_ltlibobjs
39821
39822
39823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
39824$as_echo_n "checking that generated files are newer than configure... " >&6; }
39825   if test -n "$am_sleep_pid"; then
39826     # Hide warnings about reused PIDs.
39827     wait $am_sleep_pid 2>/dev/null
39828   fi
39829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
39830$as_echo "done" >&6; }
39831 if test -n "$EXEEXT"; then
39832  am__EXEEXT_TRUE=
39833  am__EXEEXT_FALSE='#'
39834else
39835  am__EXEEXT_TRUE='#'
39836  am__EXEEXT_FALSE=
39837fi
39838
39839if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39840  as_fn_error $? "conditional \"AMDEP\" was never defined.
39841Usually this means the macro was only invoked conditionally." "$LINENO" 5
39842fi
39843if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39844  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
39845Usually this means the macro was only invoked conditionally." "$LINENO" 5
39846fi
39847if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
39848  as_fn_error $? "conditional \"WOE32\" was never defined.
39849Usually this means the macro was only invoked conditionally." "$LINENO" 5
39850fi
39851if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
39852  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
39853Usually this means the macro was only invoked conditionally." "$LINENO" 5
39854fi
39855if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
39856  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
39857Usually this means the macro was only invoked conditionally." "$LINENO" 5
39858fi
39859if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
39860  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
39861Usually this means the macro was only invoked conditionally." "$LINENO" 5
39862fi
39863if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
39864  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
39865Usually this means the macro was only invoked conditionally." "$LINENO" 5
39866fi
39867if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
39868  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
39869Usually this means the macro was only invoked conditionally." "$LINENO" 5
39870fi
39871if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
39872  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
39873Usually this means the macro was only invoked conditionally." "$LINENO" 5
39874fi
39875if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
39876  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
39877Usually this means the macro was only invoked conditionally." "$LINENO" 5
39878fi
39879
39880
39881if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
39882  as_fn_error $? "conditional \"INCLUDED_LIBCROCO\" was never defined.
39883Usually this means the macro was only invoked conditionally." "$LINENO" 5
39884fi
39885if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
39886  as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
39887Usually this means the macro was only invoked conditionally." "$LINENO" 5
39888fi
39889if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
39890  as_fn_error $? "conditional \"INCLUDED_LIBXML\" was never defined.
39891Usually this means the macro was only invoked conditionally." "$LINENO" 5
39892fi
39893if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
39894  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
39895Usually this means the macro was only invoked conditionally." "$LINENO" 5
39896fi
39897if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
39898  as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
39899Usually this means the macro was only invoked conditionally." "$LINENO" 5
39900fi
39901if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
39902  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
39903Usually this means the macro was only invoked conditionally." "$LINENO" 5
39904fi
39905if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
39906  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
39907Usually this means the macro was only invoked conditionally." "$LINENO" 5
39908fi
39909if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
39910  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
39911Usually this means the macro was only invoked conditionally." "$LINENO" 5
39912fi
39913
39914    lts_libobjs=
39915    lts_ltlibobjs=
39916    if test -n "$lts_LIBOBJS"; then
39917      # Remove the extension.
39918      sed_drop_objext='s/\.o$//;s/\.obj$//'
39919      for i in `for i in $lts_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
39920        lts_libobjs="$lts_libobjs $i.$ac_objext"
39921        lts_ltlibobjs="$lts_ltlibobjs $i.lo"
39922      done
39923    fi
39924    lts_LIBOBJS=$lts_libobjs
39925
39926    lts_LTLIBOBJS=$lts_ltlibobjs
39927
39928
39929
39930    ltstests_libobjs=
39931    ltstests_ltlibobjs=
39932    if test -n "$ltstests_LIBOBJS"; then
39933      # Remove the extension.
39934      sed_drop_objext='s/\.o$//;s/\.obj$//'
39935      for i in `for i in $ltstests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
39936        ltstests_libobjs="$ltstests_libobjs $i.$ac_objext"
39937        ltstests_ltlibobjs="$ltstests_ltlibobjs $i.lo"
39938      done
39939    fi
39940    ltstests_LIBOBJS=$ltstests_libobjs
39941
39942    ltstests_LTLIBOBJS=$ltstests_ltlibobjs
39943
39944
39945if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
39946  as_fn_error $? "conditional \"WOE32DLL\" was never defined.
39947Usually this means the macro was only invoked conditionally." "$LINENO" 5
39948fi
39949
39950: "${CONFIG_STATUS=./config.status}"
39951ac_write_fail=0
39952ac_clean_files_save=$ac_clean_files
39953ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39954{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39955$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
39956as_write_fail=0
39957cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
39958#! $SHELL
39959# Generated by $as_me.
39960# Run this file to recreate the current configuration.
39961# Compiler output produced by configure, useful for debugging
39962# configure, is in config.log if it exists.
39963
39964debug=false
39965ac_cs_recheck=false
39966ac_cs_silent=false
39967
39968SHELL=\${CONFIG_SHELL-$SHELL}
39969export SHELL
39970_ASEOF
39971cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
39972## -------------------- ##
39973## M4sh Initialization. ##
39974## -------------------- ##
39975
39976# Be more Bourne compatible
39977DUALCASE=1; export DUALCASE # for MKS sh
39978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39979  emulate sh
39980  NULLCMD=:
39981  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
39982  # is contrary to our usage.  Disable this feature.
39983  alias -g '${1+"$@"}'='"$@"'
39984  setopt NO_GLOB_SUBST
39985else
39986  case `(set -o) 2>/dev/null` in #(
39987  *posix*) :
39988    set -o posix ;; #(
39989  *) :
39990     ;;
39991esac
39992fi
39993
39994
39995as_nl='
39996'
39997export as_nl
39998# Printing a long string crashes Solaris 7 /usr/bin/printf.
39999as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40000as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40001as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40002# Prefer a ksh shell builtin over an external printf program on Solaris,
40003# but without wasting forks for bash or zsh.
40004if test -z "$BASH_VERSION$ZSH_VERSION" \
40005    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40006  as_echo='print -r --'
40007  as_echo_n='print -rn --'
40008elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40009  as_echo='printf %s\n'
40010  as_echo_n='printf %s'
40011else
40012  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40013    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
40014    as_echo_n='/usr/ucb/echo -n'
40015  else
40016    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40017    as_echo_n_body='eval
40018      arg=$1;
40019      case $arg in #(
40020      *"$as_nl"*)
40021	expr "X$arg" : "X\\(.*\\)$as_nl";
40022	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40023      esac;
40024      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
40025    '
40026    export as_echo_n_body
40027    as_echo_n='sh -c $as_echo_n_body as_echo'
40028  fi
40029  export as_echo_body
40030  as_echo='sh -c $as_echo_body as_echo'
40031fi
40032
40033# The user is always right.
40034if test "${PATH_SEPARATOR+set}" != set; then
40035  PATH_SEPARATOR=:
40036  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
40037    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
40038      PATH_SEPARATOR=';'
40039  }
40040fi
40041
40042
40043# IFS
40044# We need space, tab and new line, in precisely that order.  Quoting is
40045# there to prevent editors from complaining about space-tab.
40046# (If _AS_PATH_WALK were called with IFS unset, it would disable word
40047# splitting by setting IFS to empty value.)
40048IFS=" ""	$as_nl"
40049
40050# Find who we are.  Look in the path if we contain no directory separator.
40051as_myself=
40052case $0 in #((
40053  *[\\/]* ) as_myself=$0 ;;
40054  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40055for as_dir in $PATH
40056do
40057  IFS=$as_save_IFS
40058  test -z "$as_dir" && as_dir=.
40059    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40060  done
40061IFS=$as_save_IFS
40062
40063     ;;
40064esac
40065# We did not find ourselves, most probably we were run as `sh COMMAND'
40066# in which case we are not to be found in the path.
40067if test "x$as_myself" = x; then
40068  as_myself=$0
40069fi
40070if test ! -f "$as_myself"; then
40071  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40072  exit 1
40073fi
40074
40075# Unset variables that we do not need and which cause bugs (e.g. in
40076# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
40077# suppresses any "Segmentation fault" message there.  '((' could
40078# trigger a bug in pdksh 5.2.14.
40079for as_var in BASH_ENV ENV MAIL MAILPATH
40080do eval test x\${$as_var+set} = xset \
40081  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40082done
40083PS1='$ '
40084PS2='> '
40085PS4='+ '
40086
40087# NLS nuisances.
40088LC_ALL=C
40089export LC_ALL
40090LANGUAGE=C
40091export LANGUAGE
40092
40093# CDPATH.
40094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40095
40096
40097# as_fn_error STATUS ERROR [LINENO LOG_FD]
40098# ----------------------------------------
40099# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40100# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40101# script with STATUS, using 1 if that was 0.
40102as_fn_error ()
40103{
40104  as_status=$1; test $as_status -eq 0 && as_status=1
40105  if test "$4"; then
40106    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
40107    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40108  fi
40109  $as_echo "$as_me: error: $2" >&2
40110  as_fn_exit $as_status
40111} # as_fn_error
40112
40113
40114# as_fn_set_status STATUS
40115# -----------------------
40116# Set $? to STATUS, without forking.
40117as_fn_set_status ()
40118{
40119  return $1
40120} # as_fn_set_status
40121
40122# as_fn_exit STATUS
40123# -----------------
40124# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40125as_fn_exit ()
40126{
40127  set +e
40128  as_fn_set_status $1
40129  exit $1
40130} # as_fn_exit
40131
40132# as_fn_unset VAR
40133# ---------------
40134# Portably unset VAR.
40135as_fn_unset ()
40136{
40137  { eval $1=; unset $1;}
40138}
40139as_unset=as_fn_unset
40140# as_fn_append VAR VALUE
40141# ----------------------
40142# Append the text in VALUE to the end of the definition contained in VAR. Take
40143# advantage of any shell optimizations that allow amortized linear growth over
40144# repeated appends, instead of the typical quadratic growth present in naive
40145# implementations.
40146if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
40147  eval 'as_fn_append ()
40148  {
40149    eval $1+=\$2
40150  }'
40151else
40152  as_fn_append ()
40153  {
40154    eval $1=\$$1\$2
40155  }
40156fi # as_fn_append
40157
40158# as_fn_arith ARG...
40159# ------------------
40160# Perform arithmetic evaluation on the ARGs, and store the result in the
40161# global $as_val. Take advantage of shells that can avoid forks. The arguments
40162# must be portable across $(()) and expr.
40163if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
40164  eval 'as_fn_arith ()
40165  {
40166    as_val=$(( $* ))
40167  }'
40168else
40169  as_fn_arith ()
40170  {
40171    as_val=`expr "$@" || test $? -eq 1`
40172  }
40173fi # as_fn_arith
40174
40175
40176if expr a : '\(a\)' >/dev/null 2>&1 &&
40177   test "X`expr 00001 : '.*\(...\)'`" = X001; then
40178  as_expr=expr
40179else
40180  as_expr=false
40181fi
40182
40183if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40184  as_basename=basename
40185else
40186  as_basename=false
40187fi
40188
40189if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40190  as_dirname=dirname
40191else
40192  as_dirname=false
40193fi
40194
40195as_me=`$as_basename -- "$0" ||
40196$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40197	 X"$0" : 'X\(//\)$' \| \
40198	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40199$as_echo X/"$0" |
40200    sed '/^.*\/\([^/][^/]*\)\/*$/{
40201	    s//\1/
40202	    q
40203	  }
40204	  /^X\/\(\/\/\)$/{
40205	    s//\1/
40206	    q
40207	  }
40208	  /^X\/\(\/\).*/{
40209	    s//\1/
40210	    q
40211	  }
40212	  s/.*/./; q'`
40213
40214# Avoid depending upon Character Ranges.
40215as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40216as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40217as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40218as_cr_digits='0123456789'
40219as_cr_alnum=$as_cr_Letters$as_cr_digits
40220
40221ECHO_C= ECHO_N= ECHO_T=
40222case `echo -n x` in #(((((
40223-n*)
40224  case `echo 'xy\c'` in
40225  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
40226  xy)  ECHO_C='\c';;
40227  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
40228       ECHO_T='	';;
40229  esac;;
40230*)
40231  ECHO_N='-n';;
40232esac
40233
40234rm -f conf$$ conf$$.exe conf$$.file
40235if test -d conf$$.dir; then
40236  rm -f conf$$.dir/conf$$.file
40237else
40238  rm -f conf$$.dir
40239  mkdir conf$$.dir 2>/dev/null
40240fi
40241if (echo >conf$$.file) 2>/dev/null; then
40242  if ln -s conf$$.file conf$$ 2>/dev/null; then
40243    as_ln_s='ln -s'
40244    # ... but there are two gotchas:
40245    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40246    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40247    # In both cases, we have to default to `cp -pR'.
40248    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40249      as_ln_s='cp -pR'
40250  elif ln conf$$.file conf$$ 2>/dev/null; then
40251    as_ln_s=ln
40252  else
40253    as_ln_s='cp -pR'
40254  fi
40255else
40256  as_ln_s='cp -pR'
40257fi
40258rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40259rmdir conf$$.dir 2>/dev/null
40260
40261
40262# as_fn_mkdir_p
40263# -------------
40264# Create "$as_dir" as a directory, including parents if necessary.
40265as_fn_mkdir_p ()
40266{
40267
40268  case $as_dir in #(
40269  -*) as_dir=./$as_dir;;
40270  esac
40271  test -d "$as_dir" || eval $as_mkdir_p || {
40272    as_dirs=
40273    while :; do
40274      case $as_dir in #(
40275      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40276      *) as_qdir=$as_dir;;
40277      esac
40278      as_dirs="'$as_qdir' $as_dirs"
40279      as_dir=`$as_dirname -- "$as_dir" ||
40280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40281	 X"$as_dir" : 'X\(//\)[^/]' \| \
40282	 X"$as_dir" : 'X\(//\)$' \| \
40283	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40284$as_echo X"$as_dir" |
40285    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40286	    s//\1/
40287	    q
40288	  }
40289	  /^X\(\/\/\)[^/].*/{
40290	    s//\1/
40291	    q
40292	  }
40293	  /^X\(\/\/\)$/{
40294	    s//\1/
40295	    q
40296	  }
40297	  /^X\(\/\).*/{
40298	    s//\1/
40299	    q
40300	  }
40301	  s/.*/./; q'`
40302      test -d "$as_dir" && break
40303    done
40304    test -z "$as_dirs" || eval "mkdir $as_dirs"
40305  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40306
40307
40308} # as_fn_mkdir_p
40309if mkdir -p . 2>/dev/null; then
40310  as_mkdir_p='mkdir -p "$as_dir"'
40311else
40312  test -d ./-p && rmdir ./-p
40313  as_mkdir_p=false
40314fi
40315
40316
40317# as_fn_executable_p FILE
40318# -----------------------
40319# Test if FILE is an executable regular file.
40320as_fn_executable_p ()
40321{
40322  test -f "$1" && test -x "$1"
40323} # as_fn_executable_p
40324as_test_x='test -x'
40325as_executable_p=as_fn_executable_p
40326
40327# Sed expression to map a string onto a valid CPP name.
40328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40329
40330# Sed expression to map a string onto a valid variable name.
40331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40332
40333
40334exec 6>&1
40335## ----------------------------------- ##
40336## Main body of $CONFIG_STATUS script. ##
40337## ----------------------------------- ##
40338_ASEOF
40339test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40340
40341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40342# Save the log message, to keep $0 and so on meaningful, and to
40343# report actual input values of CONFIG_FILES etc. instead of their
40344# values after options handling.
40345ac_log="
40346This file was extended by $as_me, which was
40347generated by GNU Autoconf 2.69.  Invocation command line was
40348
40349  CONFIG_FILES    = $CONFIG_FILES
40350  CONFIG_HEADERS  = $CONFIG_HEADERS
40351  CONFIG_LINKS    = $CONFIG_LINKS
40352  CONFIG_COMMANDS = $CONFIG_COMMANDS
40353  $ $0 $@
40354
40355on `(hostname || uname -n) 2>/dev/null | sed 1q`
40356"
40357
40358_ACEOF
40359
40360case $ac_config_files in *"
40361"*) set x $ac_config_files; shift; ac_config_files=$*;;
40362esac
40363
40364case $ac_config_headers in *"
40365"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40366esac
40367
40368
40369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40370# Files that config.status was made for.
40371config_files="$ac_config_files"
40372config_headers="$ac_config_headers"
40373config_commands="$ac_config_commands"
40374
40375_ACEOF
40376
40377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40378ac_cs_usage="\
40379\`$as_me' instantiates files and other configuration actions
40380from templates according to the current configuration.  Unless the files
40381and actions are specified as TAGs, all are instantiated by default.
40382
40383Usage: $0 [OPTION]... [TAG]...
40384
40385  -h, --help       print this help, then exit
40386  -V, --version    print version number and configuration settings, then exit
40387      --config     print configuration, then exit
40388  -q, --quiet, --silent
40389                   do not print progress messages
40390  -d, --debug      don't remove temporary files
40391      --recheck    update $as_me by reconfiguring in the same conditions
40392      --file=FILE[:TEMPLATE]
40393                   instantiate the configuration file FILE
40394      --header=FILE[:TEMPLATE]
40395                   instantiate the configuration header FILE
40396
40397Configuration files:
40398$config_files
40399
40400Configuration headers:
40401$config_headers
40402
40403Configuration commands:
40404$config_commands
40405
40406Report bugs to the package provider."
40407
40408_ACEOF
40409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40410ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40411ac_cs_version="\\
40412config.status
40413configured by $0, generated by GNU Autoconf 2.69,
40414  with options \\"\$ac_cs_config\\"
40415
40416Copyright (C) 2012 Free Software Foundation, Inc.
40417This config.status script is free software; the Free Software Foundation
40418gives unlimited permission to copy, distribute and modify it."
40419
40420ac_pwd='$ac_pwd'
40421srcdir='$srcdir'
40422INSTALL='$INSTALL'
40423MKDIR_P='$MKDIR_P'
40424AWK='$AWK'
40425test -n "\$AWK" || AWK=awk
40426_ACEOF
40427
40428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40429# The default lists apply if the user does not specify any file.
40430ac_need_defaults=:
40431while test $# != 0
40432do
40433  case $1 in
40434  --*=?*)
40435    ac_option=`expr "X$1" : 'X\([^=]*\)='`
40436    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40437    ac_shift=:
40438    ;;
40439  --*=)
40440    ac_option=`expr "X$1" : 'X\([^=]*\)='`
40441    ac_optarg=
40442    ac_shift=:
40443    ;;
40444  *)
40445    ac_option=$1
40446    ac_optarg=$2
40447    ac_shift=shift
40448    ;;
40449  esac
40450
40451  case $ac_option in
40452  # Handling of the options.
40453  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40454    ac_cs_recheck=: ;;
40455  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40456    $as_echo "$ac_cs_version"; exit ;;
40457  --config | --confi | --conf | --con | --co | --c )
40458    $as_echo "$ac_cs_config"; exit ;;
40459  --debug | --debu | --deb | --de | --d | -d )
40460    debug=: ;;
40461  --file | --fil | --fi | --f )
40462    $ac_shift
40463    case $ac_optarg in
40464    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40465    '') as_fn_error $? "missing file argument" ;;
40466    esac
40467    as_fn_append CONFIG_FILES " '$ac_optarg'"
40468    ac_need_defaults=false;;
40469  --header | --heade | --head | --hea )
40470    $ac_shift
40471    case $ac_optarg in
40472    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40473    esac
40474    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40475    ac_need_defaults=false;;
40476  --he | --h)
40477    # Conflict between --help and --header
40478    as_fn_error $? "ambiguous option: \`$1'
40479Try \`$0 --help' for more information.";;
40480  --help | --hel | -h )
40481    $as_echo "$ac_cs_usage"; exit ;;
40482  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40483  | -silent | --silent | --silen | --sile | --sil | --si | --s)
40484    ac_cs_silent=: ;;
40485
40486  # This is an error.
40487  -*) as_fn_error $? "unrecognized option: \`$1'
40488Try \`$0 --help' for more information." ;;
40489
40490  *) as_fn_append ac_config_targets " $1"
40491     ac_need_defaults=false ;;
40492
40493  esac
40494  shift
40495done
40496
40497ac_configure_extra_args=
40498
40499if $ac_cs_silent; then
40500  exec 6>/dev/null
40501  ac_configure_extra_args="$ac_configure_extra_args --silent"
40502fi
40503
40504_ACEOF
40505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40506if \$ac_cs_recheck; then
40507  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40508  shift
40509  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40510  CONFIG_SHELL='$SHELL'
40511  export CONFIG_SHELL
40512  exec "\$@"
40513fi
40514
40515_ACEOF
40516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40517exec 5>>config.log
40518{
40519  echo
40520  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40521## Running $as_me. ##
40522_ASBOX
40523  $as_echo "$ac_log"
40524} >&5
40525
40526_ACEOF
40527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40528#
40529# INIT-COMMANDS
40530#
40531AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
40532
40533
40534# The HP-UX ksh and POSIX shell print the target directory to stdout
40535# if CDPATH is set.
40536(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40537
40538sed_quote_subst='$sed_quote_subst'
40539double_quote_subst='$double_quote_subst'
40540delay_variable_subst='$delay_variable_subst'
40541macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40542macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40543AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40544DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40545OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40546enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40547enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40548pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40549enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40550shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
40551SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40552ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40553PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40554host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40555host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40556host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40557build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40558build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40559build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40560SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40561Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40562GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40563EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40564FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40565LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40566NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40567LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40568max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40569ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40570exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40571lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40572lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40573lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40574lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40575lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40576reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40577reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40578deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40579file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40580file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40581want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40582sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40583AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40584AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40585archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40586STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40587RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40588old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40589old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40590old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40591lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40592CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40593CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40594compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40595GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40596lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40597lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40598lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
40599lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40600lt_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"`'
40601lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
40602nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40603lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40604lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
40605objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40606MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40607lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40608lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40609lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40610lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40611lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40612need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40613MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40614DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40615NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40616LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40617OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40618OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40619libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40620shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40621extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40622archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40623enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40624export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40625whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40626compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40627old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40628old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40629archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40630archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40631module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40632module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40633with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40634allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40635no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40636hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40637hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40638hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40639hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40640hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40641hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40642hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40643inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40644link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40645always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40646export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40647exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40648include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40649prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40650postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40651file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40652variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40653need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40654need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40655version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40656runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40657shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40658shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40659libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40660library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40661soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40662install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40663postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40664postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40665finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40666finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40667hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40668sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40669configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
40670configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
40671hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40672enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40673enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40674enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40675old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40676striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40677LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
40678reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
40679reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
40680old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
40681compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
40682GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
40683lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
40684lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
40685lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
40686lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
40687lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
40688archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
40689enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
40690export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
40691whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
40692compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
40693old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
40694old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
40695archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
40696archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
40697module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
40698module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
40699with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
40700allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
40701no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
40702hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
40703hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
40704hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
40705hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
40706hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
40707hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
40708hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
40709inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
40710link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
40711always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
40712export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
40713exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
40714include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
40715prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
40716postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
40717file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
40718hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
40719
40720LTCC='$LTCC'
40721LTCFLAGS='$LTCFLAGS'
40722compiler='$compiler_DEFAULT'
40723
40724# A function that is used when there is no print builtin or printf.
40725func_fallback_echo ()
40726{
40727  eval 'cat <<_LTECHO_EOF
40728\$1
40729_LTECHO_EOF'
40730}
40731
40732# Quote evaled strings.
40733for var in AS \
40734DLLTOOL \
40735OBJDUMP \
40736SHELL \
40737ECHO \
40738PATH_SEPARATOR \
40739SED \
40740GREP \
40741EGREP \
40742FGREP \
40743LD \
40744NM \
40745LN_S \
40746lt_SP2NL \
40747lt_NL2SP \
40748reload_flag \
40749deplibs_check_method \
40750file_magic_cmd \
40751file_magic_glob \
40752want_nocaseglob \
40753sharedlib_from_linklib_cmd \
40754AR \
40755AR_FLAGS \
40756archiver_list_spec \
40757STRIP \
40758RANLIB \
40759CC \
40760CFLAGS \
40761compiler \
40762lt_cv_sys_global_symbol_pipe \
40763lt_cv_sys_global_symbol_to_cdecl \
40764lt_cv_sys_global_symbol_to_import \
40765lt_cv_sys_global_symbol_to_c_name_address \
40766lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40767lt_cv_nm_interface \
40768nm_file_list_spec \
40769lt_cv_truncate_bin \
40770lt_prog_compiler_no_builtin_flag \
40771lt_prog_compiler_pic \
40772lt_prog_compiler_wl \
40773lt_prog_compiler_static \
40774lt_cv_prog_compiler_c_o \
40775need_locks \
40776MANIFEST_TOOL \
40777DSYMUTIL \
40778NMEDIT \
40779LIPO \
40780OTOOL \
40781OTOOL64 \
40782shrext_cmds \
40783export_dynamic_flag_spec \
40784whole_archive_flag_spec \
40785compiler_needs_object \
40786with_gnu_ld \
40787allow_undefined_flag \
40788no_undefined_flag \
40789hardcode_libdir_flag_spec \
40790hardcode_libdir_separator \
40791exclude_expsyms \
40792include_expsyms \
40793file_list_spec \
40794variables_saved_for_relink \
40795libname_spec \
40796library_names_spec \
40797soname_spec \
40798install_override_mode \
40799finish_eval \
40800old_striplib \
40801striplib \
40802LD_RC \
40803reload_flag_RC \
40804compiler_RC \
40805lt_prog_compiler_no_builtin_flag_RC \
40806lt_prog_compiler_pic_RC \
40807lt_prog_compiler_wl_RC \
40808lt_prog_compiler_static_RC \
40809lt_cv_prog_compiler_c_o_RC \
40810export_dynamic_flag_spec_RC \
40811whole_archive_flag_spec_RC \
40812compiler_needs_object_RC \
40813with_gnu_ld_RC \
40814allow_undefined_flag_RC \
40815no_undefined_flag_RC \
40816hardcode_libdir_flag_spec_RC \
40817hardcode_libdir_separator_RC \
40818exclude_expsyms_RC \
40819include_expsyms_RC \
40820file_list_spec_RC; do
40821    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40822    *[\\\\\\\`\\"\\\$]*)
40823      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
40824      ;;
40825    *)
40826      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40827      ;;
40828    esac
40829done
40830
40831# Double-quote double-evaled strings.
40832for var in reload_cmds \
40833old_postinstall_cmds \
40834old_postuninstall_cmds \
40835old_archive_cmds \
40836extract_expsyms_cmds \
40837old_archive_from_new_cmds \
40838old_archive_from_expsyms_cmds \
40839archive_cmds \
40840archive_expsym_cmds \
40841module_cmds \
40842module_expsym_cmds \
40843export_symbols_cmds \
40844prelink_cmds \
40845postlink_cmds \
40846postinstall_cmds \
40847postuninstall_cmds \
40848finish_cmds \
40849sys_lib_search_path_spec \
40850configure_time_dlsearch_path \
40851configure_time_lt_sys_library_path \
40852reload_cmds_RC \
40853old_archive_cmds_RC \
40854old_archive_from_new_cmds_RC \
40855old_archive_from_expsyms_cmds_RC \
40856archive_cmds_RC \
40857archive_expsym_cmds_RC \
40858module_cmds_RC \
40859module_expsym_cmds_RC \
40860export_symbols_cmds_RC \
40861prelink_cmds_RC \
40862postlink_cmds_RC; do
40863    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40864    *[\\\\\\\`\\"\\\$]*)
40865      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
40866      ;;
40867    *)
40868      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40869      ;;
40870    esac
40871done
40872
40873ac_aux_dir='$ac_aux_dir'
40874
40875# See if we are running on zsh, and set the options that allow our
40876# commands through without removal of \ escapes INIT.
40877if test -n "\${ZSH_VERSION+set}"; then
40878   setopt NO_GLOB_SUBST
40879fi
40880
40881
40882    PACKAGE='$PACKAGE'
40883    VERSION='$VERSION'
40884    RM='$RM'
40885    ofile='$ofile'
40886
40887
40888
40889
40890
40891
40892_ACEOF
40893
40894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40895
40896# Handling of arguments.
40897for ac_config_target in $ac_config_targets
40898do
40899  case $ac_config_target in
40900    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
40901    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40902    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40903    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40904    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
40905    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40906    "lib/exported.sh") CONFIG_FILES="$CONFIG_FILES lib/exported.sh" ;;
40907    "lib/textstyle/version.h") CONFIG_FILES="$CONFIG_FILES lib/textstyle/version.h:lib/textstyle/version.in.h" ;;
40908    "lib/textstyle/woe32dll.h") CONFIG_FILES="$CONFIG_FILES lib/textstyle/woe32dll.h:lib/textstyle/woe32dll.in.h" ;;
40909    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40910    "adhoc-tests/Makefile") CONFIG_FILES="$CONFIG_FILES adhoc-tests/Makefile" ;;
40911
40912  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40913  esac
40914done
40915
40916
40917# If the user did not use the arguments to specify the items to instantiate,
40918# then the envvar interface is used.  Set only those that are not.
40919# We use the long form for the default assignment because of an extremely
40920# bizarre bug on SunOS 4.1.3.
40921if $ac_need_defaults; then
40922  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40923  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40924  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40925fi
40926
40927# Have a temporary directory for convenience.  Make it in the build tree
40928# simply because there is no reason against having it here, and in addition,
40929# creating and moving files from /tmp can sometimes cause problems.
40930# Hook for its removal unless debugging.
40931# Note that there is a small window in which the directory will not be cleaned:
40932# after its creation but before its name has been assigned to `$tmp'.
40933$debug ||
40934{
40935  tmp= ac_tmp=
40936  trap 'exit_status=$?
40937  : "${ac_tmp:=$tmp}"
40938  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
40939' 0
40940  trap 'as_fn_exit 1' 1 2 13 15
40941}
40942# Create a (secure) tmp directory for tmp files.
40943
40944{
40945  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40946  test -d "$tmp"
40947}  ||
40948{
40949  tmp=./conf$$-$RANDOM
40950  (umask 077 && mkdir "$tmp")
40951} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
40952ac_tmp=$tmp
40953
40954# Set up the scripts for CONFIG_FILES section.
40955# No need to generate them if there are no CONFIG_FILES.
40956# This happens for instance with `./config.status config.h'.
40957if test -n "$CONFIG_FILES"; then
40958
40959
40960ac_cr=`echo X | tr X '\015'`
40961# On cygwin, bash can eat \r inside `` if the user requested igncr.
40962# But we know of no other shell where ac_cr would be empty at this
40963# point, so we can use a bashism as a fallback.
40964if test "x$ac_cr" = x; then
40965  eval ac_cr=\$\'\\r\'
40966fi
40967ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
40968if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
40969  ac_cs_awk_cr='\\r'
40970else
40971  ac_cs_awk_cr=$ac_cr
40972fi
40973
40974echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
40975_ACEOF
40976
40977
40978{
40979  echo "cat >conf$$subs.awk <<_ACEOF" &&
40980  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
40981  echo "_ACEOF"
40982} >conf$$subs.sh ||
40983  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40984ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
40985ac_delim='%!_!# '
40986for ac_last_try in false false false false false :; do
40987  . ./conf$$subs.sh ||
40988    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40989
40990  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40991  if test $ac_delim_n = $ac_delim_num; then
40992    break
40993  elif $ac_last_try; then
40994    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40995  else
40996    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40997  fi
40998done
40999rm -f conf$$subs.sh
41000
41001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41002cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
41003_ACEOF
41004sed -n '
41005h
41006s/^/S["/; s/!.*/"]=/
41007p
41008g
41009s/^[^!]*!//
41010:repl
41011t repl
41012s/'"$ac_delim"'$//
41013t delim
41014:nl
41015h
41016s/\(.\{148\}\)..*/\1/
41017t more1
41018s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
41019p
41020n
41021b repl
41022:more1
41023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41024p
41025g
41026s/.\{148\}//
41027t nl
41028:delim
41029h
41030s/\(.\{148\}\)..*/\1/
41031t more2
41032s/["\\]/\\&/g; s/^/"/; s/$/"/
41033p
41034b
41035:more2
41036s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41037p
41038g
41039s/.\{148\}//
41040t delim
41041' <conf$$subs.awk | sed '
41042/^[^""]/{
41043  N
41044  s/\n//
41045}
41046' >>$CONFIG_STATUS || ac_write_fail=1
41047rm -f conf$$subs.awk
41048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41049_ACAWK
41050cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
41051  for (key in S) S_is_set[key] = 1
41052  FS = ""
41053
41054}
41055{
41056  line = $ 0
41057  nfields = split(line, field, "@")
41058  substed = 0
41059  len = length(field[1])
41060  for (i = 2; i < nfields; i++) {
41061    key = field[i]
41062    keylen = length(key)
41063    if (S_is_set[key]) {
41064      value = S[key]
41065      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41066      len += length(value) + length(field[++i])
41067      substed = 1
41068    } else
41069      len += 1 + keylen
41070  }
41071
41072  print line
41073}
41074
41075_ACAWK
41076_ACEOF
41077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41078if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41079  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
41080else
41081  cat
41082fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
41083  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
41084_ACEOF
41085
41086# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41087# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
41088# trailing colons and then remove the whole line if VPATH becomes empty
41089# (actually we leave an empty line to preserve line numbers).
41090if test "x$srcdir" = x.; then
41091  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
41092h
41093s///
41094s/^/:/
41095s/[	 ]*$/:/
41096s/:\$(srcdir):/:/g
41097s/:\${srcdir}:/:/g
41098s/:@srcdir@:/:/g
41099s/^:*//
41100s/:*$//
41101x
41102s/\(=[	 ]*\).*/\1/
41103G
41104s/\n//
41105s/^[^=]*=[	 ]*$//
41106}'
41107fi
41108
41109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41110fi # test -n "$CONFIG_FILES"
41111
41112# Set up the scripts for CONFIG_HEADERS section.
41113# No need to generate them if there are no CONFIG_HEADERS.
41114# This happens for instance with `./config.status Makefile'.
41115if test -n "$CONFIG_HEADERS"; then
41116cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
41117BEGIN {
41118_ACEOF
41119
41120# Transform confdefs.h into an awk script `defines.awk', embedded as
41121# here-document in config.status, that substitutes the proper values into
41122# config.h.in to produce config.h.
41123
41124# Create a delimiter string that does not exist in confdefs.h, to ease
41125# handling of long lines.
41126ac_delim='%!_!# '
41127for ac_last_try in false false :; do
41128  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
41129  if test -z "$ac_tt"; then
41130    break
41131  elif $ac_last_try; then
41132    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
41133  else
41134    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41135  fi
41136done
41137
41138# For the awk script, D is an array of macro values keyed by name,
41139# likewise P contains macro parameters if any.  Preserve backslash
41140# newline sequences.
41141
41142ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41143sed -n '
41144s/.\{148\}/&'"$ac_delim"'/g
41145t rset
41146:rset
41147s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
41148t def
41149d
41150:def
41151s/\\$//
41152t bsnl
41153s/["\\]/\\&/g
41154s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
41155D["\1"]=" \3"/p
41156s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
41157d
41158:bsnl
41159s/["\\]/\\&/g
41160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
41161D["\1"]=" \3\\\\\\n"\\/p
41162t cont
41163s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
41164t cont
41165d
41166:cont
41167n
41168s/.\{148\}/&'"$ac_delim"'/g
41169t clear
41170:clear
41171s/\\$//
41172t bsnlc
41173s/["\\]/\\&/g; s/^/"/; s/$/"/p
41174d
41175:bsnlc
41176s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
41177b cont
41178' <confdefs.h | sed '
41179s/'"$ac_delim"'/"\\\
41180"/g' >>$CONFIG_STATUS || ac_write_fail=1
41181
41182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41183  for (key in D) D_is_set[key] = 1
41184  FS = ""
41185}
41186/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41187  line = \$ 0
41188  split(line, arg, " ")
41189  if (arg[1] == "#") {
41190    defundef = arg[2]
41191    mac1 = arg[3]
41192  } else {
41193    defundef = substr(arg[1], 2)
41194    mac1 = arg[2]
41195  }
41196  split(mac1, mac2, "(") #)
41197  macro = mac2[1]
41198  prefix = substr(line, 1, index(line, defundef) - 1)
41199  if (D_is_set[macro]) {
41200    # Preserve the white space surrounding the "#".
41201    print prefix "define", macro P[macro] D[macro]
41202    next
41203  } else {
41204    # Replace #undef with comments.  This is necessary, for example,
41205    # in the case of _POSIX_SOURCE, which is predefined and required
41206    # on some systems where configure will not decide to define it.
41207    if (defundef == "undef") {
41208      print "/*", prefix defundef, macro, "*/"
41209      next
41210    }
41211  }
41212}
41213{ print }
41214_ACAWK
41215_ACEOF
41216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41217  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
41218fi # test -n "$CONFIG_HEADERS"
41219
41220
41221eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
41222shift
41223for ac_tag
41224do
41225  case $ac_tag in
41226  :[FHLC]) ac_mode=$ac_tag; continue;;
41227  esac
41228  case $ac_mode$ac_tag in
41229  :[FHL]*:*);;
41230  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
41231  :[FH]-) ac_tag=-:-;;
41232  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41233  esac
41234  ac_save_IFS=$IFS
41235  IFS=:
41236  set x $ac_tag
41237  IFS=$ac_save_IFS
41238  shift
41239  ac_file=$1
41240  shift
41241
41242  case $ac_mode in
41243  :L) ac_source=$1;;
41244  :[FH])
41245    ac_file_inputs=
41246    for ac_f
41247    do
41248      case $ac_f in
41249      -) ac_f="$ac_tmp/stdin";;
41250      *) # Look for the file first in the build tree, then in the source tree
41251	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
41252	 # because $ac_f cannot contain `:'.
41253	 test -f "$ac_f" ||
41254	   case $ac_f in
41255	   [\\/$]*) false;;
41256	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41257	   esac ||
41258	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41259      esac
41260      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41261      as_fn_append ac_file_inputs " '$ac_f'"
41262    done
41263
41264    # Let's still pretend it is `configure' which instantiates (i.e., don't
41265    # use $as_me), people would be surprised to read:
41266    #    /* config.h.  Generated by config.status.  */
41267    configure_input='Generated from '`
41268	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
41269	`' by configure.'
41270    if test x"$ac_file" != x-; then
41271      configure_input="$ac_file.  $configure_input"
41272      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
41273$as_echo "$as_me: creating $ac_file" >&6;}
41274    fi
41275    # Neutralize special characters interpreted by sed in replacement strings.
41276    case $configure_input in #(
41277    *\&* | *\|* | *\\* )
41278       ac_sed_conf_input=`$as_echo "$configure_input" |
41279       sed 's/[\\\\&|]/\\\\&/g'`;; #(
41280    *) ac_sed_conf_input=$configure_input;;
41281    esac
41282
41283    case $ac_tag in
41284    *:-:* | *:-) cat >"$ac_tmp/stdin" \
41285      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
41286    esac
41287    ;;
41288  esac
41289
41290  ac_dir=`$as_dirname -- "$ac_file" ||
41291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41292	 X"$ac_file" : 'X\(//\)[^/]' \| \
41293	 X"$ac_file" : 'X\(//\)$' \| \
41294	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41295$as_echo X"$ac_file" |
41296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41297	    s//\1/
41298	    q
41299	  }
41300	  /^X\(\/\/\)[^/].*/{
41301	    s//\1/
41302	    q
41303	  }
41304	  /^X\(\/\/\)$/{
41305	    s//\1/
41306	    q
41307	  }
41308	  /^X\(\/\).*/{
41309	    s//\1/
41310	    q
41311	  }
41312	  s/.*/./; q'`
41313  as_dir="$ac_dir"; as_fn_mkdir_p
41314  ac_builddir=.
41315
41316case "$ac_dir" in
41317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41318*)
41319  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41320  # A ".." for each directory in $ac_dir_suffix.
41321  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41322  case $ac_top_builddir_sub in
41323  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41324  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41325  esac ;;
41326esac
41327ac_abs_top_builddir=$ac_pwd
41328ac_abs_builddir=$ac_pwd$ac_dir_suffix
41329# for backward compatibility:
41330ac_top_builddir=$ac_top_build_prefix
41331
41332case $srcdir in
41333  .)  # We are building in place.
41334    ac_srcdir=.
41335    ac_top_srcdir=$ac_top_builddir_sub
41336    ac_abs_top_srcdir=$ac_pwd ;;
41337  [\\/]* | ?:[\\/]* )  # Absolute name.
41338    ac_srcdir=$srcdir$ac_dir_suffix;
41339    ac_top_srcdir=$srcdir
41340    ac_abs_top_srcdir=$srcdir ;;
41341  *) # Relative name.
41342    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41343    ac_top_srcdir=$ac_top_build_prefix$srcdir
41344    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41345esac
41346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41347
41348
41349  case $ac_mode in
41350  :F)
41351  #
41352  # CONFIG_FILE
41353  #
41354
41355  case $INSTALL in
41356  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41357  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41358  esac
41359  ac_MKDIR_P=$MKDIR_P
41360  case $MKDIR_P in
41361  [\\/$]* | ?:[\\/]* ) ;;
41362  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41363  esac
41364_ACEOF
41365
41366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41367# If the template does not know about datarootdir, expand it.
41368# FIXME: This hack should be removed a few years after 2.60.
41369ac_datarootdir_hack=; ac_datarootdir_seen=
41370ac_sed_dataroot='
41371/datarootdir/ {
41372  p
41373  q
41374}
41375/@datadir@/p
41376/@docdir@/p
41377/@infodir@/p
41378/@localedir@/p
41379/@mandir@/p'
41380case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41381*datarootdir*) ac_datarootdir_seen=yes;;
41382*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41383  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41384$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41385_ACEOF
41386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41387  ac_datarootdir_hack='
41388  s&@datadir@&$datadir&g
41389  s&@docdir@&$docdir&g
41390  s&@infodir@&$infodir&g
41391  s&@localedir@&$localedir&g
41392  s&@mandir@&$mandir&g
41393  s&\\\${datarootdir}&$datarootdir&g' ;;
41394esac
41395_ACEOF
41396
41397# Neutralize VPATH when `$srcdir' = `.'.
41398# Shell code in configure.ac might set extrasub.
41399# FIXME: do we really want to maintain this feature?
41400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41401ac_sed_extra="$ac_vpsub
41402$extrasub
41403_ACEOF
41404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41405:t
41406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41407s|@configure_input@|$ac_sed_conf_input|;t t
41408s&@top_builddir@&$ac_top_builddir_sub&;t t
41409s&@top_build_prefix@&$ac_top_build_prefix&;t t
41410s&@srcdir@&$ac_srcdir&;t t
41411s&@abs_srcdir@&$ac_abs_srcdir&;t t
41412s&@top_srcdir@&$ac_top_srcdir&;t t
41413s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41414s&@builddir@&$ac_builddir&;t t
41415s&@abs_builddir@&$ac_abs_builddir&;t t
41416s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41417s&@INSTALL@&$ac_INSTALL&;t t
41418s&@MKDIR_P@&$ac_MKDIR_P&;t t
41419$ac_datarootdir_hack
41420"
41421eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
41422  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41423
41424test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41425  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
41426  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
41427      "$ac_tmp/out"`; test -z "$ac_out"; } &&
41428  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41429which seems to be undefined.  Please make sure it is defined" >&5
41430$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41431which seems to be undefined.  Please make sure it is defined" >&2;}
41432
41433  rm -f "$ac_tmp/stdin"
41434  case $ac_file in
41435  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
41436  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
41437  esac \
41438  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41439 ;;
41440  :H)
41441  #
41442  # CONFIG_HEADER
41443  #
41444  if test x"$ac_file" != x-; then
41445    {
41446      $as_echo "/* $configure_input  */" \
41447      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
41448    } >"$ac_tmp/config.h" \
41449      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41450    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
41451      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
41452$as_echo "$as_me: $ac_file is unchanged" >&6;}
41453    else
41454      rm -f "$ac_file"
41455      mv "$ac_tmp/config.h" "$ac_file" \
41456	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
41457    fi
41458  else
41459    $as_echo "/* $configure_input  */" \
41460      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
41461      || as_fn_error $? "could not create -" "$LINENO" 5
41462  fi
41463# Compute "$ac_file"'s index in $config_headers.
41464_am_arg="$ac_file"
41465_am_stamp_count=1
41466for _am_header in $config_headers :; do
41467  case $_am_header in
41468    $_am_arg | $_am_arg:* )
41469      break ;;
41470    * )
41471      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41472  esac
41473done
41474echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41475$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41476	 X"$_am_arg" : 'X\(//\)[^/]' \| \
41477	 X"$_am_arg" : 'X\(//\)$' \| \
41478	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41479$as_echo X"$_am_arg" |
41480    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41481	    s//\1/
41482	    q
41483	  }
41484	  /^X\(\/\/\)[^/].*/{
41485	    s//\1/
41486	    q
41487	  }
41488	  /^X\(\/\/\)$/{
41489	    s//\1/
41490	    q
41491	  }
41492	  /^X\(\/\).*/{
41493	    s//\1/
41494	    q
41495	  }
41496	  s/.*/./; q'`/stamp-h$_am_stamp_count
41497 ;;
41498
41499  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41500$as_echo "$as_me: executing $ac_file commands" >&6;}
41501 ;;
41502  esac
41503
41504
41505  case $ac_file$ac_mode in
41506    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41507  # Older Autoconf quotes --file arguments for eval, but not when files
41508  # are listed without --file.  Let's play safe and only enable the eval
41509  # if we detect the quoting.
41510  # TODO: see whether this extra hack can be removed once we start
41511  # requiring Autoconf 2.70 or later.
41512  case $CONFIG_FILES in #(
41513  *\'*) :
41514    eval set x "$CONFIG_FILES" ;; #(
41515  *) :
41516    set x $CONFIG_FILES ;; #(
41517  *) :
41518     ;;
41519esac
41520  shift
41521  # Used to flag and report bootstrapping failures.
41522  am_rc=0
41523  for am_mf
41524  do
41525    # Strip MF so we end up with the name of the file.
41526    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
41527    # Check whether this is an Automake generated Makefile which includes
41528    # dependency-tracking related rules and includes.
41529    # Grep'ing the whole file directly is not great: AIX grep has a line
41530    # limit of 2048, but all sed's we know have understand at least 4000.
41531    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
41532      || continue
41533    am_dirpart=`$as_dirname -- "$am_mf" ||
41534$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41535	 X"$am_mf" : 'X\(//\)[^/]' \| \
41536	 X"$am_mf" : 'X\(//\)$' \| \
41537	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
41538$as_echo X"$am_mf" |
41539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41540	    s//\1/
41541	    q
41542	  }
41543	  /^X\(\/\/\)[^/].*/{
41544	    s//\1/
41545	    q
41546	  }
41547	  /^X\(\/\/\)$/{
41548	    s//\1/
41549	    q
41550	  }
41551	  /^X\(\/\).*/{
41552	    s//\1/
41553	    q
41554	  }
41555	  s/.*/./; q'`
41556    am_filepart=`$as_basename -- "$am_mf" ||
41557$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
41558	 X"$am_mf" : 'X\(//\)$' \| \
41559	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
41560$as_echo X/"$am_mf" |
41561    sed '/^.*\/\([^/][^/]*\)\/*$/{
41562	    s//\1/
41563	    q
41564	  }
41565	  /^X\/\(\/\/\)$/{
41566	    s//\1/
41567	    q
41568	  }
41569	  /^X\/\(\/\).*/{
41570	    s//\1/
41571	    q
41572	  }
41573	  s/.*/./; q'`
41574    { echo "$as_me:$LINENO: cd "$am_dirpart" \
41575      && sed -e '/# am--include-marker/d' "$am_filepart" \
41576        | $MAKE -f - am--depfiles" >&5
41577   (cd "$am_dirpart" \
41578      && sed -e '/# am--include-marker/d' "$am_filepart" \
41579        | $MAKE -f - am--depfiles) >&5 2>&5
41580   ac_status=$?
41581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41582   (exit $ac_status); } || am_rc=$?
41583  done
41584  if test $am_rc -ne 0; then
41585    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41587as_fn_error $? "Something went wrong bootstrapping makefile fragments
41588    for automatic dependency tracking.  If GNU make was not used, consider
41589    re-running the configure script with MAKE=\"gmake\" (or whatever is
41590    necessary).  You can also try re-running configure with the
41591    '--disable-dependency-tracking' option to at least be able to build
41592    the package (albeit without support for automatic dependency tracking).
41593See \`config.log' for more details" "$LINENO" 5; }
41594  fi
41595  { am_dirpart=; unset am_dirpart;}
41596  { am_filepart=; unset am_filepart;}
41597  { am_mf=; unset am_mf;}
41598  { am_rc=; unset am_rc;}
41599  rm -f conftest-deps.mk
41600}
41601 ;;
41602    "libtool":C)
41603
41604    # See if we are running on zsh, and set the options that allow our
41605    # commands through without removal of \ escapes.
41606    if test -n "${ZSH_VERSION+set}"; then
41607      setopt NO_GLOB_SUBST
41608    fi
41609
41610    cfgfile=${ofile}T
41611    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41612    $RM "$cfgfile"
41613
41614    cat <<_LT_EOF >> "$cfgfile"
41615#! $SHELL
41616# Generated automatically by $as_me ($PACKAGE) $VERSION
41617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41618# NOTE: Changes made to this file will be lost: look at ltmain.sh.
41619
41620# Provide generalized library-building support services.
41621# Written by Gordon Matzigkeit, 1996
41622
41623# Copyright (C) 2014 Free Software Foundation, Inc.
41624# This is free software; see the source for copying conditions.  There is NO
41625# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
41626
41627# GNU Libtool is free software; you can redistribute it and/or modify
41628# it under the terms of the GNU General Public License as published by
41629# the Free Software Foundation; either version 2 of of the License, or
41630# (at your option) any later version.
41631#
41632# As a special exception to the GNU General Public License, if you
41633# distribute this file as part of a program or library that is built
41634# using GNU Libtool, you may include this file under the  same
41635# distribution terms that you use for the rest of that program.
41636#
41637# GNU Libtool is distributed in the hope that it will be useful, but
41638# WITHOUT ANY WARRANTY; without even the implied warranty of
41639# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41640# GNU General Public License for more details.
41641#
41642# You should have received a copy of the GNU General Public License
41643# along with this program.  If not, see <https://www.gnu.org/licenses/>.
41644
41645
41646# The names of the tagged configurations supported by this script.
41647available_tags='RC '
41648
41649# Configured defaults for sys_lib_dlsearch_path munging.
41650: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
41651
41652# ### BEGIN LIBTOOL CONFIG
41653
41654# Which release of libtool.m4 was used?
41655macro_version=$macro_version
41656macro_revision=$macro_revision
41657
41658# Assembler program.
41659AS=$lt_AS
41660
41661# DLL creation program.
41662DLLTOOL=$lt_DLLTOOL
41663
41664# Object dumper program.
41665OBJDUMP=$lt_OBJDUMP
41666
41667# Whether or not to build shared libraries.
41668build_libtool_libs=$enable_shared
41669
41670# Whether or not to build static libraries.
41671build_old_libs=$enable_static
41672
41673# What type of objects to build.
41674pic_mode=$pic_mode
41675
41676# Whether or not to optimize for fast installation.
41677fast_install=$enable_fast_install
41678
41679# Shared archive member basename,for filename based shared library versioning on AIX.
41680shared_archive_member_spec=$shared_archive_member_spec
41681
41682# Shell to use when invoking shell scripts.
41683SHELL=$lt_SHELL
41684
41685# An echo program that protects backslashes.
41686ECHO=$lt_ECHO
41687
41688# The PATH separator for the build system.
41689PATH_SEPARATOR=$lt_PATH_SEPARATOR
41690
41691# The host system.
41692host_alias=$host_alias
41693host=$host
41694host_os=$host_os
41695
41696# The build system.
41697build_alias=$build_alias
41698build=$build
41699build_os=$build_os
41700
41701# A sed program that does not truncate output.
41702SED=$lt_SED
41703
41704# Sed that helps us avoid accidentally triggering echo(1) options like -n.
41705Xsed="\$SED -e 1s/^X//"
41706
41707# A grep program that handles long lines.
41708GREP=$lt_GREP
41709
41710# An ERE matcher.
41711EGREP=$lt_EGREP
41712
41713# A literal string matcher.
41714FGREP=$lt_FGREP
41715
41716# A BSD- or MS-compatible name lister.
41717NM=$lt_NM
41718
41719# Whether we need soft or hard links.
41720LN_S=$lt_LN_S
41721
41722# What is the maximum length of a command?
41723max_cmd_len=$max_cmd_len
41724
41725# Object file suffix (normally "o").
41726objext=$ac_objext
41727
41728# Executable file suffix (normally "").
41729exeext=$exeext
41730
41731# whether the shell understands "unset".
41732lt_unset=$lt_unset
41733
41734# turn spaces into newlines.
41735SP2NL=$lt_lt_SP2NL
41736
41737# turn newlines into spaces.
41738NL2SP=$lt_lt_NL2SP
41739
41740# convert \$build file names to \$host format.
41741to_host_file_cmd=$lt_cv_to_host_file_cmd
41742
41743# convert \$build files to toolchain format.
41744to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41745
41746# Method to check whether dependent libraries are shared objects.
41747deplibs_check_method=$lt_deplibs_check_method
41748
41749# Command to use when deplibs_check_method = "file_magic".
41750file_magic_cmd=$lt_file_magic_cmd
41751
41752# How to find potential files when deplibs_check_method = "file_magic".
41753file_magic_glob=$lt_file_magic_glob
41754
41755# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41756want_nocaseglob=$lt_want_nocaseglob
41757
41758# Command to associate shared and link libraries.
41759sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41760
41761# The archiver.
41762AR=$lt_AR
41763
41764# Flags to create an archive.
41765AR_FLAGS=$lt_AR_FLAGS
41766
41767# How to feed a file listing to the archiver.
41768archiver_list_spec=$lt_archiver_list_spec
41769
41770# A symbol stripping program.
41771STRIP=$lt_STRIP
41772
41773# Commands used to install an old-style archive.
41774RANLIB=$lt_RANLIB
41775old_postinstall_cmds=$lt_old_postinstall_cmds
41776old_postuninstall_cmds=$lt_old_postuninstall_cmds
41777
41778# Whether to use a lock for old archive extraction.
41779lock_old_archive_extraction=$lock_old_archive_extraction
41780
41781# A C compiler.
41782LTCC=$lt_CC
41783
41784# LTCC compiler flags.
41785LTCFLAGS=$lt_CFLAGS
41786
41787# Take the output of nm and produce a listing of raw symbols and C names.
41788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41789
41790# Transform the output of nm in a proper C declaration.
41791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41792
41793# Transform the output of nm into a list of symbols to manually relocate.
41794global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
41795
41796# Transform the output of nm in a C name address pair.
41797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41798
41799# Transform the output of nm in a C name address pair when lib prefix is needed.
41800global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41801
41802# The name lister interface.
41803nm_interface=$lt_lt_cv_nm_interface
41804
41805# Specify filename containing input files for \$NM.
41806nm_file_list_spec=$lt_nm_file_list_spec
41807
41808# The root where to search for dependent libraries,and where our libraries should be installed.
41809lt_sysroot=$lt_sysroot
41810
41811# Command to truncate a binary pipe.
41812lt_truncate_bin=$lt_lt_cv_truncate_bin
41813
41814# The name of the directory that contains temporary libtool files.
41815objdir=$objdir
41816
41817# Used to examine libraries when file_magic_cmd begins with "file".
41818MAGIC_CMD=$MAGIC_CMD
41819
41820# Must we lock files when doing compilation?
41821need_locks=$lt_need_locks
41822
41823# Manifest tool.
41824MANIFEST_TOOL=$lt_MANIFEST_TOOL
41825
41826# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41827DSYMUTIL=$lt_DSYMUTIL
41828
41829# Tool to change global to local symbols on Mac OS X.
41830NMEDIT=$lt_NMEDIT
41831
41832# Tool to manipulate fat objects and archives on Mac OS X.
41833LIPO=$lt_LIPO
41834
41835# ldd/readelf like tool for Mach-O binaries on Mac OS X.
41836OTOOL=$lt_OTOOL
41837
41838# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41839OTOOL64=$lt_OTOOL64
41840
41841# Old archive suffix (normally "a").
41842libext=$libext
41843
41844# Shared library suffix (normally ".so").
41845shrext_cmds=$lt_shrext_cmds
41846
41847# The commands to extract the exported symbol list from a shared archive.
41848extract_expsyms_cmds=$lt_extract_expsyms_cmds
41849
41850# Variables whose values should be saved in libtool wrapper scripts and
41851# restored at link time.
41852variables_saved_for_relink=$lt_variables_saved_for_relink
41853
41854# Do we need the "lib" prefix for modules?
41855need_lib_prefix=$need_lib_prefix
41856
41857# Do we need a version for libraries?
41858need_version=$need_version
41859
41860# Library versioning type.
41861version_type=$version_type
41862
41863# Shared library runtime path variable.
41864runpath_var=$runpath_var
41865
41866# Shared library path variable.
41867shlibpath_var=$shlibpath_var
41868
41869# Is shlibpath searched before the hard-coded library search path?
41870shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41871
41872# Format of library name prefix.
41873libname_spec=$lt_libname_spec
41874
41875# List of archive names.  First name is the real one, the rest are links.
41876# The last name is the one that the linker finds with -lNAME
41877library_names_spec=$lt_library_names_spec
41878
41879# The coded name of the library, if different from the real name.
41880soname_spec=$lt_soname_spec
41881
41882# Permission mode override for installation of shared libraries.
41883install_override_mode=$lt_install_override_mode
41884
41885# Command to use after installation of a shared archive.
41886postinstall_cmds=$lt_postinstall_cmds
41887
41888# Command to use after uninstallation of a shared archive.
41889postuninstall_cmds=$lt_postuninstall_cmds
41890
41891# Commands used to finish a libtool library installation in a directory.
41892finish_cmds=$lt_finish_cmds
41893
41894# As "finish_cmds", except a single script fragment to be evaled but
41895# not shown.
41896finish_eval=$lt_finish_eval
41897
41898# Whether we should hardcode library paths into libraries.
41899hardcode_into_libs=$hardcode_into_libs
41900
41901# Compile-time system search path for libraries.
41902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41903
41904# Detected run-time system search path for libraries.
41905sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
41906
41907# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
41908configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
41909
41910# Whether dlopen is supported.
41911dlopen_support=$enable_dlopen
41912
41913# Whether dlopen of programs is supported.
41914dlopen_self=$enable_dlopen_self
41915
41916# Whether dlopen of statically linked programs is supported.
41917dlopen_self_static=$enable_dlopen_self_static
41918
41919# Commands to strip libraries.
41920old_striplib=$lt_old_striplib
41921striplib=$lt_striplib
41922
41923
41924# The linker used to build libraries.
41925LD=$lt_LD
41926
41927# How to create reloadable object files.
41928reload_flag=$lt_reload_flag
41929reload_cmds=$lt_reload_cmds
41930
41931# Commands used to build an old-style archive.
41932old_archive_cmds=$lt_old_archive_cmds
41933
41934# A language specific compiler.
41935CC=$lt_compiler
41936
41937# Is the compiler the GNU compiler?
41938with_gcc=$GCC
41939
41940# Compiler flag to turn off builtin functions.
41941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
41942
41943# Additional compiler flags for building library objects.
41944pic_flag=$lt_lt_prog_compiler_pic
41945
41946# How to pass a linker flag through the compiler.
41947wl=$lt_lt_prog_compiler_wl
41948
41949# Compiler flag to prevent dynamic linking.
41950link_static_flag=$lt_lt_prog_compiler_static
41951
41952# Does compiler simultaneously support -c and -o options?
41953compiler_c_o=$lt_lt_cv_prog_compiler_c_o
41954
41955# Whether or not to add -lc for building shared libraries.
41956build_libtool_need_lc=$archive_cmds_need_lc
41957
41958# Whether or not to disallow shared libs when runtime libs are static.
41959allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
41960
41961# Compiler flag to allow reflexive dlopens.
41962export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
41963
41964# Compiler flag to generate shared objects directly from archives.
41965whole_archive_flag_spec=$lt_whole_archive_flag_spec
41966
41967# Whether the compiler copes with passing no objects directly.
41968compiler_needs_object=$lt_compiler_needs_object
41969
41970# Create an old-style archive from a shared archive.
41971old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
41972
41973# Create a temporary old-style archive to link instead of a shared archive.
41974old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
41975
41976# Commands used to build a shared archive.
41977archive_cmds=$lt_archive_cmds
41978archive_expsym_cmds=$lt_archive_expsym_cmds
41979
41980# Commands used to build a loadable module if different from building
41981# a shared archive.
41982module_cmds=$lt_module_cmds
41983module_expsym_cmds=$lt_module_expsym_cmds
41984
41985# Whether we are building with GNU ld or not.
41986with_gnu_ld=$lt_with_gnu_ld
41987
41988# Flag that allows shared libraries with undefined symbols to be built.
41989allow_undefined_flag=$lt_allow_undefined_flag
41990
41991# Flag that enforces no undefined symbols.
41992no_undefined_flag=$lt_no_undefined_flag
41993
41994# Flag to hardcode \$libdir into a binary during linking.
41995# This must work even if \$libdir does not exist
41996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
41997
41998# Whether we need a single "-rpath" flag with a separated argument.
41999hardcode_libdir_separator=$lt_hardcode_libdir_separator
42000
42001# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42002# DIR into the resulting binary.
42003hardcode_direct=$hardcode_direct
42004
42005# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42006# DIR into the resulting binary and the resulting library dependency is
42007# "absolute",i.e impossible to change by setting \$shlibpath_var if the
42008# library is relocated.
42009hardcode_direct_absolute=$hardcode_direct_absolute
42010
42011# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42012# into the resulting binary.
42013hardcode_minus_L=$hardcode_minus_L
42014
42015# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42016# into the resulting binary.
42017hardcode_shlibpath_var=$hardcode_shlibpath_var
42018
42019# Set to "yes" if building a shared library automatically hardcodes DIR
42020# into the library and all subsequent libraries and executables linked
42021# against it.
42022hardcode_automatic=$hardcode_automatic
42023
42024# Set to yes if linker adds runtime paths of dependent libraries
42025# to runtime path list.
42026inherit_rpath=$inherit_rpath
42027
42028# Whether libtool must link a program against all its dependency libraries.
42029link_all_deplibs=$link_all_deplibs
42030
42031# Set to "yes" if exported symbols are required.
42032always_export_symbols=$always_export_symbols
42033
42034# The commands to list exported symbols.
42035export_symbols_cmds=$lt_export_symbols_cmds
42036
42037# Symbols that should not be listed in the preloaded symbols.
42038exclude_expsyms=$lt_exclude_expsyms
42039
42040# Symbols that must always be exported.
42041include_expsyms=$lt_include_expsyms
42042
42043# Commands necessary for linking programs (against libraries) with templates.
42044prelink_cmds=$lt_prelink_cmds
42045
42046# Commands necessary for finishing linking programs.
42047postlink_cmds=$lt_postlink_cmds
42048
42049# Specify filename containing input files.
42050file_list_spec=$lt_file_list_spec
42051
42052# How to hardcode a shared library path into an executable.
42053hardcode_action=$hardcode_action
42054
42055# ### END LIBTOOL CONFIG
42056
42057_LT_EOF
42058
42059    cat <<'_LT_EOF' >> "$cfgfile"
42060
42061# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
42062
42063# func_munge_path_list VARIABLE PATH
42064# -----------------------------------
42065# VARIABLE is name of variable containing _space_ separated list of
42066# directories to be munged by the contents of PATH, which is string
42067# having a format:
42068# "DIR[:DIR]:"
42069#       string "DIR[ DIR]" will be prepended to VARIABLE
42070# ":DIR[:DIR]"
42071#       string "DIR[ DIR]" will be appended to VARIABLE
42072# "DIRP[:DIRP]::[DIRA:]DIRA"
42073#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
42074#       "DIRA[ DIRA]" will be appended to VARIABLE
42075# "DIR[:DIR]"
42076#       VARIABLE will be replaced by "DIR[ DIR]"
42077func_munge_path_list ()
42078{
42079    case x$2 in
42080    x)
42081        ;;
42082    *:)
42083        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
42084        ;;
42085    x:*)
42086        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
42087        ;;
42088    *::*)
42089        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
42090        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
42091        ;;
42092    *)
42093        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
42094        ;;
42095    esac
42096}
42097
42098
42099# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
42100func_cc_basename ()
42101{
42102    for cc_temp in $*""; do
42103      case $cc_temp in
42104        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42105        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42106        \-*) ;;
42107        *) break;;
42108      esac
42109    done
42110    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
42111}
42112
42113
42114# ### END FUNCTIONS SHARED WITH CONFIGURE
42115
42116_LT_EOF
42117
42118  case $host_os in
42119  aix3*)
42120    cat <<\_LT_EOF >> "$cfgfile"
42121# AIX sometimes has problems with the GCC collect2 program.  For some
42122# reason, if we set the COLLECT_NAMES environment variable, the problems
42123# vanish in a puff of smoke.
42124if test set != "${COLLECT_NAMES+set}"; then
42125  COLLECT_NAMES=
42126  export COLLECT_NAMES
42127fi
42128_LT_EOF
42129    ;;
42130  esac
42131
42132
42133ltmain=$ac_aux_dir/ltmain.sh
42134
42135
42136  # We use sed instead of cat because bash on DJGPP gets confused if
42137  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
42138  # text mode, it properly converts lines to CR/LF.  This bash problem
42139  # is reportedly fixed, but why not run on old versions too?
42140  sed '$q' "$ltmain" >> "$cfgfile" \
42141     || (rm -f "$cfgfile"; exit 1)
42142
42143   mv -f "$cfgfile" "$ofile" ||
42144    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42145  chmod +x "$ofile"
42146
42147
42148    cat <<_LT_EOF >> "$ofile"
42149
42150# ### BEGIN LIBTOOL TAG CONFIG: RC
42151
42152# The linker used to build libraries.
42153LD=$lt_LD_RC
42154
42155# How to create reloadable object files.
42156reload_flag=$lt_reload_flag_RC
42157reload_cmds=$lt_reload_cmds_RC
42158
42159# Commands used to build an old-style archive.
42160old_archive_cmds=$lt_old_archive_cmds_RC
42161
42162# A language specific compiler.
42163CC=$lt_compiler_RC
42164
42165# Is the compiler the GNU compiler?
42166with_gcc=$GCC_RC
42167
42168# Compiler flag to turn off builtin functions.
42169no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
42170
42171# Additional compiler flags for building library objects.
42172pic_flag=$lt_lt_prog_compiler_pic_RC
42173
42174# How to pass a linker flag through the compiler.
42175wl=$lt_lt_prog_compiler_wl_RC
42176
42177# Compiler flag to prevent dynamic linking.
42178link_static_flag=$lt_lt_prog_compiler_static_RC
42179
42180# Does compiler simultaneously support -c and -o options?
42181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
42182
42183# Whether or not to add -lc for building shared libraries.
42184build_libtool_need_lc=$archive_cmds_need_lc_RC
42185
42186# Whether or not to disallow shared libs when runtime libs are static.
42187allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
42188
42189# Compiler flag to allow reflexive dlopens.
42190export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
42191
42192# Compiler flag to generate shared objects directly from archives.
42193whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
42194
42195# Whether the compiler copes with passing no objects directly.
42196compiler_needs_object=$lt_compiler_needs_object_RC
42197
42198# Create an old-style archive from a shared archive.
42199old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
42200
42201# Create a temporary old-style archive to link instead of a shared archive.
42202old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
42203
42204# Commands used to build a shared archive.
42205archive_cmds=$lt_archive_cmds_RC
42206archive_expsym_cmds=$lt_archive_expsym_cmds_RC
42207
42208# Commands used to build a loadable module if different from building
42209# a shared archive.
42210module_cmds=$lt_module_cmds_RC
42211module_expsym_cmds=$lt_module_expsym_cmds_RC
42212
42213# Whether we are building with GNU ld or not.
42214with_gnu_ld=$lt_with_gnu_ld_RC
42215
42216# Flag that allows shared libraries with undefined symbols to be built.
42217allow_undefined_flag=$lt_allow_undefined_flag_RC
42218
42219# Flag that enforces no undefined symbols.
42220no_undefined_flag=$lt_no_undefined_flag_RC
42221
42222# Flag to hardcode \$libdir into a binary during linking.
42223# This must work even if \$libdir does not exist
42224hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
42225
42226# Whether we need a single "-rpath" flag with a separated argument.
42227hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
42228
42229# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42230# DIR into the resulting binary.
42231hardcode_direct=$hardcode_direct_RC
42232
42233# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42234# DIR into the resulting binary and the resulting library dependency is
42235# "absolute",i.e impossible to change by setting \$shlibpath_var if the
42236# library is relocated.
42237hardcode_direct_absolute=$hardcode_direct_absolute_RC
42238
42239# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42240# into the resulting binary.
42241hardcode_minus_L=$hardcode_minus_L_RC
42242
42243# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42244# into the resulting binary.
42245hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
42246
42247# Set to "yes" if building a shared library automatically hardcodes DIR
42248# into the library and all subsequent libraries and executables linked
42249# against it.
42250hardcode_automatic=$hardcode_automatic_RC
42251
42252# Set to yes if linker adds runtime paths of dependent libraries
42253# to runtime path list.
42254inherit_rpath=$inherit_rpath_RC
42255
42256# Whether libtool must link a program against all its dependency libraries.
42257link_all_deplibs=$link_all_deplibs_RC
42258
42259# Set to "yes" if exported symbols are required.
42260always_export_symbols=$always_export_symbols_RC
42261
42262# The commands to list exported symbols.
42263export_symbols_cmds=$lt_export_symbols_cmds_RC
42264
42265# Symbols that should not be listed in the preloaded symbols.
42266exclude_expsyms=$lt_exclude_expsyms_RC
42267
42268# Symbols that must always be exported.
42269include_expsyms=$lt_include_expsyms_RC
42270
42271# Commands necessary for linking programs (against libraries) with templates.
42272prelink_cmds=$lt_prelink_cmds_RC
42273
42274# Commands necessary for finishing linking programs.
42275postlink_cmds=$lt_postlink_cmds_RC
42276
42277# Specify filename containing input files.
42278file_list_spec=$lt_file_list_spec_RC
42279
42280# How to hardcode a shared library path into an executable.
42281hardcode_action=$hardcode_action_RC
42282
42283# ### END LIBTOOL TAG CONFIG: RC
42284_LT_EOF
42285
42286 ;;
42287
42288  esac
42289done # for ac_tag
42290
42291
42292as_fn_exit 0
42293_ACEOF
42294ac_clean_files=$ac_clean_files_save
42295
42296test $ac_write_fail = 0 ||
42297  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
42298
42299
42300# configure is writing to config.log, and then calls config.status.
42301# config.status does its own redirection, appending to config.log.
42302# Unfortunately, on DOS this fails, as config.log is still kept open
42303# by configure, so config.status won't be able to write to it; its
42304# output is simply discarded.  So we exec the FD to /dev/null,
42305# effectively closing config.log, so it can be properly (re)opened and
42306# appended to by config.status.  When coming back to configure, we
42307# need to make the FD available again.
42308if test "$no_create" != yes; then
42309  ac_cs_success=:
42310  ac_config_status_args=
42311  test "$silent" = yes &&
42312    ac_config_status_args="$ac_config_status_args --quiet"
42313  exec 5>/dev/null
42314  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42315  exec 5>>config.log
42316  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42317  # would make configure fail if this is the last instruction.
42318  $ac_cs_success || as_fn_exit 1
42319fi
42320if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
42321  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42322$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42323fi
42324
42325