1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for wget 1.12.
4#
5# Report bugs to <bug-wget@gnu.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIBOBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME='wget'
598PACKAGE_TARNAME='wget'
599PACKAGE_VERSION='1.12'
600PACKAGE_STRING='wget 1.12'
601PACKAGE_BUGREPORT='bug-wget@gnu.org'
602
603# Factoring default headers for most tests.
604ac_includes_default="\
605#include <stdio.h>
606#ifdef HAVE_SYS_TYPES_H
607# include <sys/types.h>
608#endif
609#ifdef HAVE_SYS_STAT_H
610# include <sys/stat.h>
611#endif
612#ifdef STDC_HEADERS
613# include <stdlib.h>
614# include <stddef.h>
615#else
616# ifdef HAVE_STDLIB_H
617#  include <stdlib.h>
618# endif
619#endif
620#ifdef HAVE_STRING_H
621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622#  include <memory.h>
623# endif
624# include <string.h>
625#endif
626#ifdef HAVE_STRINGS_H
627# include <strings.h>
628#endif
629#ifdef HAVE_INTTYPES_H
630# include <inttypes.h>
631#endif
632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_UNISTD_H
636# include <unistd.h>
637#endif"
638
639gt_needs=
640ac_header_list=
641gl_getopt_required=POSIX
642gl_getopt_required=POSIX
643ac_func_list=
644ac_subst_vars='md5tests_LTLIBOBJS
645md5tests_LIBOBJS
646md5_LTLIBOBJS
647md5_LIBOBJS
648gltests_LTLIBOBJS
649gltests_LIBOBJS
650gl_LTLIBOBJS
651gl_LIBOBJS
652LTLIBOBJS
653IRI_IS_ENABLED_FALSE
654IRI_IS_ENABLED_TRUE
655COMMENT_IF_NO_POD2MAN
656POD2MAN
657PERL
658LIBMD5_LTLIBDEPS
659LIBMD5_LIBDEPS
660MD5_SUBDIR
661MD5_LDADD
662MD5_CPPFLAGS
663LIBSSL_PREFIX
664LTLIBSSL
665LIBSSL
666HAVE_LIBSSL
667LIBGNUTLS_PREFIX
668LTLIBGNUTLS
669LIBGNUTLS
670HAVE_LIBGNUTLS
671LIBOBJS
672LIBGNU_LTLIBDEPS
673LIBGNU_LIBDEPS
674REPLACE_ISWCNTRL
675WCTYPE_H
676HAVE_WCTYPE_H
677NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
678NEXT_WCTYPE_H
679HAVE_ISWCNTRL
680NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
681NEXT_WCHAR_H
682HAVE_WCHAR_H
683HAVE_WINT_T
684HAVE_UNISTD_H
685NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
686NEXT_UNISTD_H
687NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
688NEXT_STRINGS_H
689NEXT_AS_FIRST_DIRECTIVE_STRING_H
690NEXT_STRING_H
691HAVE_DECL_STRNCASECMP
692HAVE_STRCASECMP
693HAVE_RANDOM_H
694NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
695NEXT_STDLIB_H
696NEXT_AS_FIRST_DIRECTIVE_STDIO_H
697NEXT_STDIO_H
698STDINT_H
699WINT_T_SUFFIX
700WCHAR_T_SUFFIX
701SIG_ATOMIC_T_SUFFIX
702SIZE_T_SUFFIX
703PTRDIFF_T_SUFFIX
704HAVE_SIGNED_WINT_T
705HAVE_SIGNED_WCHAR_T
706HAVE_SIGNED_SIG_ATOMIC_T
707BITSIZEOF_WINT_T
708BITSIZEOF_WCHAR_T
709BITSIZEOF_SIG_ATOMIC_T
710BITSIZEOF_SIZE_T
711BITSIZEOF_PTRDIFF_T
712HAVE_SYS_BITYPES_H
713HAVE_SYS_INTTYPES_H
714HAVE_STDINT_H
715NEXT_AS_FIRST_DIRECTIVE_STDINT_H
716NEXT_STDINT_H
717HAVE_SYS_TYPES_H
718HAVE_INTTYPES_H
719HAVE_UNSIGNED_LONG_LONG_INT
720HAVE_LONG_LONG_INT
721NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
722NEXT_STDDEF_H
723STDDEF_H
724HAVE_WCHAR_T
725REPLACE_NULL
726HAVE__BOOL
727STDBOOL_H
728VOID_UNSETENV
729REPLACE_STRTOD
730REPLACE_PUTENV
731REPLACE_MKSTEMP
732HAVE_DECL_GETLOADAVG
733HAVE_UNSETENV
734HAVE_SYS_LOADAVG_H
735HAVE_STRUCT_RANDOM_DATA
736HAVE_STRTOULL
737HAVE_STRTOLL
738HAVE_STRTOD
739HAVE_SETENV
740HAVE_RPMATCH
741HAVE_RANDOM_R
742HAVE_MKOSTEMP
743HAVE_MKDTEMP
744HAVE_MALLOC_POSIX
745HAVE_GETSUBOPT
746HAVE_CALLOC_POSIX
747HAVE_ATOLL
748GNULIB_UNSETENV
749GNULIB_STRTOULL
750GNULIB_STRTOLL
751GNULIB_STRTOD
752GNULIB_SETENV
753GNULIB_RPMATCH
754GNULIB_RANDOM_R
755GNULIB_PUTENV
756GNULIB_MKSTEMP
757GNULIB_MKOSTEMP
758GNULIB_MKDTEMP
759GNULIB_GETSUBOPT
760GNULIB_GETLOADAVG
761GNULIB_ATOLL
762GNULIB_CALLOC_POSIX
763GNULIB_REALLOC_POSIX
764GNULIB_MALLOC_POSIX
765HAVE_REALLOC_POSIX
766APPLE_UNIVERSAL_BUILD
767REPLACE_STRSIGNAL
768REPLACE_STRERROR
769REPLACE_STRCASESTR
770REPLACE_STRSTR
771REPLACE_STRDUP
772REPLACE_MEMMEM
773REPLACE_MEMCHR
774HAVE_STRVERSCMP
775HAVE_DECL_STRSIGNAL
776HAVE_DECL_STRERROR
777HAVE_DECL_STRTOK_R
778HAVE_STRCASESTR
779HAVE_STRSEP
780HAVE_STRPBRK
781HAVE_DECL_STRNLEN
782HAVE_DECL_STRNDUP
783HAVE_STRNDUP
784HAVE_DECL_STRDUP
785HAVE_STRCHRNUL
786HAVE_STPNCPY
787HAVE_STPCPY
788HAVE_RAWMEMCHR
789HAVE_DECL_MEMRCHR
790HAVE_MEMPCPY
791HAVE_DECL_MEMMEM
792GNULIB_STRVERSCMP
793GNULIB_STRSIGNAL
794GNULIB_STRERROR
795GNULIB_MBSTOK_R
796GNULIB_MBSSEP
797GNULIB_MBSSPN
798GNULIB_MBSPBRK
799GNULIB_MBSCSPN
800GNULIB_MBSCASESTR
801GNULIB_MBSPCASECMP
802GNULIB_MBSNCASECMP
803GNULIB_MBSCASECMP
804GNULIB_MBSSTR
805GNULIB_MBSRCHR
806GNULIB_MBSCHR
807GNULIB_MBSNLEN
808GNULIB_MBSLEN
809GNULIB_STRTOK_R
810GNULIB_STRCASESTR
811GNULIB_STRSTR
812GNULIB_STRSEP
813GNULIB_STRPBRK
814GNULIB_STRNLEN
815GNULIB_STRNDUP
816GNULIB_STRDUP
817GNULIB_STRCHRNUL
818GNULIB_STPNCPY
819GNULIB_STPCPY
820GNULIB_RAWMEMCHR
821GNULIB_MEMRCHR
822GNULIB_MEMPCPY
823GNULIB_MEMMEM
824GNULIB_MEMCHR
825LOCALE_FR_UTF8
826LOCALE_ZH_CN
827LOCALE_JA
828WCHAR_H
829REPLACE_WCWIDTH
830REPLACE_WCSNRTOMBS
831REPLACE_WCSRTOMBS
832REPLACE_WCRTOMB
833REPLACE_MBSNRTOWCS
834REPLACE_MBSRTOWCS
835REPLACE_MBRLEN
836REPLACE_MBRTOWC
837REPLACE_MBSINIT
838REPLACE_WCTOB
839REPLACE_BTOWC
840REPLACE_MBSTATE_T
841HAVE_DECL_WCWIDTH
842HAVE_DECL_WCTOB
843HAVE_WCSNRTOMBS
844HAVE_WCSRTOMBS
845HAVE_WCRTOMB
846HAVE_MBSNRTOWCS
847HAVE_MBSRTOWCS
848HAVE_MBRLEN
849HAVE_MBRTOWC
850HAVE_MBSINIT
851HAVE_BTOWC
852GNULIB_WCWIDTH
853GNULIB_WCSNRTOMBS
854GNULIB_WCSRTOMBS
855GNULIB_WCRTOMB
856GNULIB_MBSNRTOWCS
857GNULIB_MBSRTOWCS
858GNULIB_MBRLEN
859GNULIB_MBRTOWC
860GNULIB_MBSINIT
861GNULIB_WCTOB
862GNULIB_BTOWC
863LOCALCHARSET_TESTS_ENVIRONMENT
864GLIBC21
865GETOPT_H
866UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
867UNISTD_H_HAVE_WINSOCK2_H
868REPLACE_WRITE
869REPLACE_LSEEK
870REPLACE_LCHOWN
871REPLACE_GETPAGESIZE
872REPLACE_GETCWD
873REPLACE_FCHDIR
874REPLACE_DUP2
875REPLACE_CLOSE
876REPLACE_CHOWN
877HAVE_SYS_PARAM_H
878HAVE_OS_H
879HAVE_DECL_GETLOGIN_R
880HAVE_DECL_ENVIRON
881HAVE_SLEEP
882HAVE_READLINK
883HAVE_PIPE2
884HAVE_LINK
885HAVE_GETUSERSHELL
886HAVE_GETPAGESIZE
887HAVE_GETHOSTNAME
888HAVE_GETDTABLESIZE
889HAVE_GETDOMAINNAME
890HAVE_FTRUNCATE
891HAVE_FSYNC
892HAVE_EUIDACCESS
893HAVE_DUP3
894HAVE_DUP2
895GNULIB_WRITE
896GNULIB_UNISTD_H_SIGPIPE
897GNULIB_UNISTD_H_GETOPT
898GNULIB_SLEEP
899GNULIB_READLINK
900GNULIB_PIPE2
901GNULIB_LSEEK
902GNULIB_LINK
903GNULIB_LCHOWN
904GNULIB_GETUSERSHELL
905GNULIB_GETPAGESIZE
906GNULIB_GETLOGIN_R
907GNULIB_GETHOSTNAME
908GNULIB_GETDTABLESIZE
909GNULIB_GETDOMAINNAME
910GNULIB_GETCWD
911GNULIB_FTRUNCATE
912GNULIB_FSYNC
913GNULIB_FCHDIR
914GNULIB_EUIDACCESS
915GNULIB_ENVIRON
916GNULIB_DUP3
917GNULIB_DUP2
918GNULIB_CLOSE
919GNULIB_CHOWN
920REPLACE_PERROR
921REPLACE_GETLINE
922HAVE_DECL_GETLINE
923HAVE_DECL_GETDELIM
924REPLACE_POPEN
925REPLACE_FCLOSE
926HAVE_DECL_FPURGE
927REPLACE_FPURGE
928REPLACE_FFLUSH
929REPLACE_FTELL
930REPLACE_FTELLO
931HAVE_FTELLO
932REPLACE_FSEEK
933REPLACE_FSEEKO
934HAVE_FSEEKO
935REPLACE_FREOPEN
936REPLACE_FOPEN
937REPLACE_OBSTACK_PRINTF
938HAVE_DECL_OBSTACK_PRINTF
939REPLACE_VASPRINTF
940HAVE_VASPRINTF
941REPLACE_VDPRINTF
942HAVE_VDPRINTF
943REPLACE_DPRINTF
944HAVE_DPRINTF
945REPLACE_VSPRINTF
946REPLACE_SPRINTF
947HAVE_DECL_VSNPRINTF
948REPLACE_VSNPRINTF
949HAVE_DECL_SNPRINTF
950REPLACE_SNPRINTF
951REPLACE_VPRINTF
952REPLACE_PRINTF
953REPLACE_VFPRINTF
954REPLACE_FPRINTF
955REPLACE_STDIO_WRITE_FUNCS
956GNULIB_STDIO_H_SIGPIPE
957GNULIB_PERROR
958GNULIB_GETLINE
959GNULIB_GETDELIM
960GNULIB_POPEN
961GNULIB_FWRITE
962GNULIB_PUTS
963GNULIB_FPUTS
964GNULIB_PUTCHAR
965GNULIB_PUTC
966GNULIB_FPUTC
967GNULIB_FCLOSE
968GNULIB_FPURGE
969GNULIB_FFLUSH
970GNULIB_FTELLO
971GNULIB_FTELL
972GNULIB_FSEEKO
973GNULIB_FSEEK
974GNULIB_FREOPEN
975GNULIB_FOPEN
976GNULIB_OBSTACK_PRINTF_POSIX
977GNULIB_OBSTACK_PRINTF
978GNULIB_VASPRINTF
979GNULIB_VDPRINTF
980GNULIB_DPRINTF
981GNULIB_VSPRINTF_POSIX
982GNULIB_VSNPRINTF
983GNULIB_VPRINTF_POSIX
984GNULIB_VPRINTF
985GNULIB_VFPRINTF_POSIX
986GNULIB_VFPRINTF
987GNULIB_SPRINTF_POSIX
988GNULIB_SNPRINTF
989GNULIB_PRINTF_POSIX
990GNULIB_PRINTF
991GNULIB_FPRINTF_POSIX
992GNULIB_FPRINTF
993EOVERFLOW_VALUE
994EOVERFLOW_HIDDEN
995ENOLINK_VALUE
996ENOLINK_HIDDEN
997EMULTIHOP_VALUE
998EMULTIHOP_HIDDEN
999ERRNO_H
1000NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1001NEXT_ERRNO_H
1002PRAGMA_SYSTEM_HEADER
1003INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1004INCLUDE_NEXT
1005ALLOCA_H
1006ALLOCA
1007GL_COND_LIBTOOL_FALSE
1008GL_COND_LIBTOOL_TRUE
1009LEXLIB
1010LEX_OUTPUT_ROOT
1011LEX
1012POSUB
1013LTLIBINTL
1014LIBINTL
1015INTLLIBS
1016LTLIBICONV
1017LIBICONV
1018INTL_MACOSX_LIBS
1019XGETTEXT_EXTRA_OPTIONS
1020MSGMERGE
1021XGETTEXT_015
1022XGETTEXT
1023GMSGFMT_015
1024MSGFMT_015
1025GMSGFMT
1026MSGFMT
1027GETTEXT_MACRO_VERSION
1028USE_NLS
1029RANLIB
1030EGREP
1031GREP
1032CPP
1033am__fastdepCC_FALSE
1034am__fastdepCC_TRUE
1035CCDEPMODE
1036AMDEPBACKSLASH
1037AMDEP_FALSE
1038AMDEP_TRUE
1039am__quote
1040am__include
1041DEPDIR
1042OBJEXT
1043EXEEXT
1044ac_ct_CC
1045CPPFLAGS
1046LDFLAGS
1047CFLAGS
1048CC
1049host_os
1050host_vendor
1051host_cpu
1052host
1053build_os
1054build_vendor
1055build_cpu
1056build
1057am__untar
1058am__tar
1059AMTAR
1060am__leading_dot
1061SET_MAKE
1062AWK
1063mkdir_p
1064MKDIR_P
1065INSTALL_STRIP_PROGRAM
1066STRIP
1067install_sh
1068MAKEINFO
1069AUTOHEADER
1070AUTOMAKE
1071AUTOCONF
1072ACLOCAL
1073VERSION
1074PACKAGE
1075CYGPATH_W
1076am__isrc
1077INSTALL_DATA
1078INSTALL_SCRIPT
1079INSTALL_PROGRAM
1080target_alias
1081host_alias
1082build_alias
1083LIBS
1084ECHO_T
1085ECHO_N
1086ECHO_C
1087DEFS
1088mandir
1089localedir
1090libdir
1091psdir
1092pdfdir
1093dvidir
1094htmldir
1095infodir
1096docdir
1097oldincludedir
1098includedir
1099localstatedir
1100sharedstatedir
1101sysconfdir
1102datadir
1103datarootdir
1104libexecdir
1105sbindir
1106bindir
1107program_transform_name
1108prefix
1109exec_prefix
1110PACKAGE_BUGREPORT
1111PACKAGE_STRING
1112PACKAGE_VERSION
1113PACKAGE_TARNAME
1114PACKAGE_NAME
1115PATH_SEPARATOR
1116SHELL'
1117ac_subst_files=''
1118ac_user_opts='
1119enable_option_checking
1120with_ssl
1121enable_opie
1122enable_digest
1123enable_ntlm
1124enable_debug
1125enable_dependency_tracking
1126enable_nls
1127with_gnu_ld
1128enable_rpath
1129with_libiconv_prefix
1130with_libintl_prefix
1131enable_largefile
1132with_libgnutls_prefix
1133with_libssl_prefix
1134enable_ipv6
1135enable_iri
1136with_libidn
1137'
1138      ac_precious_vars='build_alias
1139host_alias
1140target_alias
1141CC
1142CFLAGS
1143LDFLAGS
1144LIBS
1145CPPFLAGS
1146CPP'
1147
1148
1149# Initialize some variables set by options.
1150ac_init_help=
1151ac_init_version=false
1152ac_unrecognized_opts=
1153ac_unrecognized_sep=
1154# The variables have the same names as the options, with
1155# dashes changed to underlines.
1156cache_file=/dev/null
1157exec_prefix=NONE
1158no_create=
1159no_recursion=
1160prefix=NONE
1161program_prefix=NONE
1162program_suffix=NONE
1163program_transform_name=s,x,x,
1164silent=
1165site=
1166srcdir=
1167verbose=
1168x_includes=NONE
1169x_libraries=NONE
1170
1171# Installation directory options.
1172# These are left unexpanded so users can "make install exec_prefix=/foo"
1173# and all the variables that are supposed to be based on exec_prefix
1174# by default will actually change.
1175# Use braces instead of parens because sh, perl, etc. also accept them.
1176# (The list follows the same order as the GNU Coding Standards.)
1177bindir='${exec_prefix}/bin'
1178sbindir='${exec_prefix}/sbin'
1179libexecdir='${exec_prefix}/libexec'
1180datarootdir='${prefix}/share'
1181datadir='${datarootdir}'
1182sysconfdir='${prefix}/etc'
1183sharedstatedir='${prefix}/com'
1184localstatedir='${prefix}/var'
1185includedir='${prefix}/include'
1186oldincludedir='/usr/include'
1187docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1188infodir='${datarootdir}/info'
1189htmldir='${docdir}'
1190dvidir='${docdir}'
1191pdfdir='${docdir}'
1192psdir='${docdir}'
1193libdir='${exec_prefix}/lib'
1194localedir='${datarootdir}/locale'
1195mandir='${datarootdir}/man'
1196
1197ac_prev=
1198ac_dashdash=
1199for ac_option
1200do
1201  # If the previous option needs an argument, assign it.
1202  if test -n "$ac_prev"; then
1203    eval $ac_prev=\$ac_option
1204    ac_prev=
1205    continue
1206  fi
1207
1208  case $ac_option in
1209  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1210  *)	ac_optarg=yes ;;
1211  esac
1212
1213  # Accept the important Cygnus configure options, so we can diagnose typos.
1214
1215  case $ac_dashdash$ac_option in
1216  --)
1217    ac_dashdash=yes ;;
1218
1219  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1220    ac_prev=bindir ;;
1221  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1222    bindir=$ac_optarg ;;
1223
1224  -build | --build | --buil | --bui | --bu)
1225    ac_prev=build_alias ;;
1226  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1227    build_alias=$ac_optarg ;;
1228
1229  -cache-file | --cache-file | --cache-fil | --cache-fi \
1230  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1231    ac_prev=cache_file ;;
1232  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1233  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1234    cache_file=$ac_optarg ;;
1235
1236  --config-cache | -C)
1237    cache_file=config.cache ;;
1238
1239  -datadir | --datadir | --datadi | --datad)
1240    ac_prev=datadir ;;
1241  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1242    datadir=$ac_optarg ;;
1243
1244  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1245  | --dataroo | --dataro | --datar)
1246    ac_prev=datarootdir ;;
1247  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1248  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1249    datarootdir=$ac_optarg ;;
1250
1251  -disable-* | --disable-*)
1252    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1256   { (exit 1); exit 1; }; }
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"enable_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval enable_$ac_useropt=no ;;
1267
1268  -docdir | --docdir | --docdi | --doc | --do)
1269    ac_prev=docdir ;;
1270  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1271    docdir=$ac_optarg ;;
1272
1273  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1274    ac_prev=dvidir ;;
1275  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1276    dvidir=$ac_optarg ;;
1277
1278  -enable-* | --enable-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1283   { (exit 1); exit 1; }; }
1284    ac_useropt_orig=$ac_useropt
1285    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286    case $ac_user_opts in
1287      *"
1288"enable_$ac_useropt"
1289"*) ;;
1290      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1291	 ac_unrecognized_sep=', ';;
1292    esac
1293    eval enable_$ac_useropt=\$ac_optarg ;;
1294
1295  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1296  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1297  | --exec | --exe | --ex)
1298    ac_prev=exec_prefix ;;
1299  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1300  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1301  | --exec=* | --exe=* | --ex=*)
1302    exec_prefix=$ac_optarg ;;
1303
1304  -gas | --gas | --ga | --g)
1305    # Obsolete; use --with-gas.
1306    with_gas=yes ;;
1307
1308  -help | --help | --hel | --he | -h)
1309    ac_init_help=long ;;
1310  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1311    ac_init_help=recursive ;;
1312  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1313    ac_init_help=short ;;
1314
1315  -host | --host | --hos | --ho)
1316    ac_prev=host_alias ;;
1317  -host=* | --host=* | --hos=* | --ho=*)
1318    host_alias=$ac_optarg ;;
1319
1320  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1321    ac_prev=htmldir ;;
1322  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1323  | --ht=*)
1324    htmldir=$ac_optarg ;;
1325
1326  -includedir | --includedir | --includedi | --included | --include \
1327  | --includ | --inclu | --incl | --inc)
1328    ac_prev=includedir ;;
1329  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1330  | --includ=* | --inclu=* | --incl=* | --inc=*)
1331    includedir=$ac_optarg ;;
1332
1333  -infodir | --infodir | --infodi | --infod | --info | --inf)
1334    ac_prev=infodir ;;
1335  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1336    infodir=$ac_optarg ;;
1337
1338  -libdir | --libdir | --libdi | --libd)
1339    ac_prev=libdir ;;
1340  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1341    libdir=$ac_optarg ;;
1342
1343  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1344  | --libexe | --libex | --libe)
1345    ac_prev=libexecdir ;;
1346  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1347  | --libexe=* | --libex=* | --libe=*)
1348    libexecdir=$ac_optarg ;;
1349
1350  -localedir | --localedir | --localedi | --localed | --locale)
1351    ac_prev=localedir ;;
1352  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1353    localedir=$ac_optarg ;;
1354
1355  -localstatedir | --localstatedir | --localstatedi | --localstated \
1356  | --localstate | --localstat | --localsta | --localst | --locals)
1357    ac_prev=localstatedir ;;
1358  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1359  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1360    localstatedir=$ac_optarg ;;
1361
1362  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1363    ac_prev=mandir ;;
1364  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1365    mandir=$ac_optarg ;;
1366
1367  -nfp | --nfp | --nf)
1368    # Obsolete; use --without-fp.
1369    with_fp=no ;;
1370
1371  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1372  | --no-cr | --no-c | -n)
1373    no_create=yes ;;
1374
1375  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1376  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1377    no_recursion=yes ;;
1378
1379  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1380  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1381  | --oldin | --oldi | --old | --ol | --o)
1382    ac_prev=oldincludedir ;;
1383  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1384  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1385  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1386    oldincludedir=$ac_optarg ;;
1387
1388  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1389    ac_prev=prefix ;;
1390  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1391    prefix=$ac_optarg ;;
1392
1393  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1394  | --program-pre | --program-pr | --program-p)
1395    ac_prev=program_prefix ;;
1396  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1397  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1398    program_prefix=$ac_optarg ;;
1399
1400  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1401  | --program-suf | --program-su | --program-s)
1402    ac_prev=program_suffix ;;
1403  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1404  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1405    program_suffix=$ac_optarg ;;
1406
1407  -program-transform-name | --program-transform-name \
1408  | --program-transform-nam | --program-transform-na \
1409  | --program-transform-n | --program-transform- \
1410  | --program-transform | --program-transfor \
1411  | --program-transfo | --program-transf \
1412  | --program-trans | --program-tran \
1413  | --progr-tra | --program-tr | --program-t)
1414    ac_prev=program_transform_name ;;
1415  -program-transform-name=* | --program-transform-name=* \
1416  | --program-transform-nam=* | --program-transform-na=* \
1417  | --program-transform-n=* | --program-transform-=* \
1418  | --program-transform=* | --program-transfor=* \
1419  | --program-transfo=* | --program-transf=* \
1420  | --program-trans=* | --program-tran=* \
1421  | --progr-tra=* | --program-tr=* | --program-t=*)
1422    program_transform_name=$ac_optarg ;;
1423
1424  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1425    ac_prev=pdfdir ;;
1426  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1427    pdfdir=$ac_optarg ;;
1428
1429  -psdir | --psdir | --psdi | --psd | --ps)
1430    ac_prev=psdir ;;
1431  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1432    psdir=$ac_optarg ;;
1433
1434  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1435  | -silent | --silent | --silen | --sile | --sil)
1436    silent=yes ;;
1437
1438  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1439    ac_prev=sbindir ;;
1440  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1441  | --sbi=* | --sb=*)
1442    sbindir=$ac_optarg ;;
1443
1444  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1445  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1446  | --sharedst | --shareds | --shared | --share | --shar \
1447  | --sha | --sh)
1448    ac_prev=sharedstatedir ;;
1449  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1450  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1451  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1452  | --sha=* | --sh=*)
1453    sharedstatedir=$ac_optarg ;;
1454
1455  -site | --site | --sit)
1456    ac_prev=site ;;
1457  -site=* | --site=* | --sit=*)
1458    site=$ac_optarg ;;
1459
1460  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1461    ac_prev=srcdir ;;
1462  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1463    srcdir=$ac_optarg ;;
1464
1465  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1466  | --syscon | --sysco | --sysc | --sys | --sy)
1467    ac_prev=sysconfdir ;;
1468  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1469  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1470    sysconfdir=$ac_optarg ;;
1471
1472  -target | --target | --targe | --targ | --tar | --ta | --t)
1473    ac_prev=target_alias ;;
1474  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1475    target_alias=$ac_optarg ;;
1476
1477  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1478    verbose=yes ;;
1479
1480  -version | --version | --versio | --versi | --vers | -V)
1481    ac_init_version=: ;;
1482
1483  -with-* | --with-*)
1484    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1485    # Reject names that are not valid shell variable names.
1486    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1488   { (exit 1); exit 1; }; }
1489    ac_useropt_orig=$ac_useropt
1490    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491    case $ac_user_opts in
1492      *"
1493"with_$ac_useropt"
1494"*) ;;
1495      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496	 ac_unrecognized_sep=', ';;
1497    esac
1498    eval with_$ac_useropt=\$ac_optarg ;;
1499
1500  -without-* | --without-*)
1501    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502    # Reject names that are not valid shell variable names.
1503    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1505   { (exit 1); exit 1; }; }
1506    ac_useropt_orig=$ac_useropt
1507    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508    case $ac_user_opts in
1509      *"
1510"with_$ac_useropt"
1511"*) ;;
1512      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1513	 ac_unrecognized_sep=', ';;
1514    esac
1515    eval with_$ac_useropt=no ;;
1516
1517  --x)
1518    # Obsolete; use --with-x.
1519    with_x=yes ;;
1520
1521  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1522  | --x-incl | --x-inc | --x-in | --x-i)
1523    ac_prev=x_includes ;;
1524  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1525  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1526    x_includes=$ac_optarg ;;
1527
1528  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1529  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1530    ac_prev=x_libraries ;;
1531  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1532  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1533    x_libraries=$ac_optarg ;;
1534
1535  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1536Try \`$0 --help' for more information." >&2
1537   { (exit 1); exit 1; }; }
1538    ;;
1539
1540  *=*)
1541    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542    # Reject names that are not valid shell variable names.
1543    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1544      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1545   { (exit 1); exit 1; }; }
1546    eval $ac_envvar=\$ac_optarg
1547    export $ac_envvar ;;
1548
1549  *)
1550    # FIXME: should be removed in autoconf 3.0.
1551    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1552    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1553      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1554    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1555    ;;
1556
1557  esac
1558done
1559
1560if test -n "$ac_prev"; then
1561  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1562  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1563   { (exit 1); exit 1; }; }
1564fi
1565
1566if test -n "$ac_unrecognized_opts"; then
1567  case $enable_option_checking in
1568    no) ;;
1569    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1570   { (exit 1); exit 1; }; } ;;
1571    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1572  esac
1573fi
1574
1575# Check all directory arguments for consistency.
1576for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1577		datadir sysconfdir sharedstatedir localstatedir includedir \
1578		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1579		libdir localedir mandir
1580do
1581  eval ac_val=\$$ac_var
1582  # Remove trailing slashes.
1583  case $ac_val in
1584    */ )
1585      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1586      eval $ac_var=\$ac_val;;
1587  esac
1588  # Be sure to have absolute directory names.
1589  case $ac_val in
1590    [\\/$]* | ?:[\\/]* )  continue;;
1591    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1592  esac
1593  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1594   { (exit 1); exit 1; }; }
1595done
1596
1597# There might be people who depend on the old broken behavior: `$host'
1598# used to hold the argument of --host etc.
1599# FIXME: To remove some day.
1600build=$build_alias
1601host=$host_alias
1602target=$target_alias
1603
1604# FIXME: To remove some day.
1605if test "x$host_alias" != x; then
1606  if test "x$build_alias" = x; then
1607    cross_compiling=maybe
1608    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1609    If a cross compiler is detected then cross compile mode will be used." >&2
1610  elif test "x$build_alias" != "x$host_alias"; then
1611    cross_compiling=yes
1612  fi
1613fi
1614
1615ac_tool_prefix=
1616test -n "$host_alias" && ac_tool_prefix=$host_alias-
1617
1618test "$silent" = yes && exec 6>/dev/null
1619
1620
1621ac_pwd=`pwd` && test -n "$ac_pwd" &&
1622ac_ls_di=`ls -di .` &&
1623ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1624  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1625   { (exit 1); exit 1; }; }
1626test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1627  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1628   { (exit 1); exit 1; }; }
1629
1630
1631# Find the source files, if location was not specified.
1632if test -z "$srcdir"; then
1633  ac_srcdir_defaulted=yes
1634  # Try the directory containing this script, then the parent directory.
1635  ac_confdir=`$as_dirname -- "$as_myself" ||
1636$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1637	 X"$as_myself" : 'X\(//\)[^/]' \| \
1638	 X"$as_myself" : 'X\(//\)$' \| \
1639	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1640$as_echo X"$as_myself" |
1641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1642	    s//\1/
1643	    q
1644	  }
1645	  /^X\(\/\/\)[^/].*/{
1646	    s//\1/
1647	    q
1648	  }
1649	  /^X\(\/\/\)$/{
1650	    s//\1/
1651	    q
1652	  }
1653	  /^X\(\/\).*/{
1654	    s//\1/
1655	    q
1656	  }
1657	  s/.*/./; q'`
1658  srcdir=$ac_confdir
1659  if test ! -r "$srcdir/$ac_unique_file"; then
1660    srcdir=..
1661  fi
1662else
1663  ac_srcdir_defaulted=no
1664fi
1665if test ! -r "$srcdir/$ac_unique_file"; then
1666  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1667  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1668   { (exit 1); exit 1; }; }
1669fi
1670ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1671ac_abs_confdir=`(
1672	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1673   { (exit 1); exit 1; }; }
1674	pwd)`
1675# When building in place, set srcdir=.
1676if test "$ac_abs_confdir" = "$ac_pwd"; then
1677  srcdir=.
1678fi
1679# Remove unnecessary trailing slashes from srcdir.
1680# Double slashes in file names in object file debugging info
1681# mess up M-x gdb in Emacs.
1682case $srcdir in
1683*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1684esac
1685for ac_var in $ac_precious_vars; do
1686  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1687  eval ac_env_${ac_var}_value=\$${ac_var}
1688  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1689  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1690done
1691
1692#
1693# Report the --help message.
1694#
1695if test "$ac_init_help" = "long"; then
1696  # Omit some internal or obsolete options to make the list less imposing.
1697  # This message is too long to be a string in the A/UX 3.1 sh.
1698  cat <<_ACEOF
1699\`configure' configures wget 1.12 to adapt to many kinds of systems.
1700
1701Usage: $0 [OPTION]... [VAR=VALUE]...
1702
1703To assign environment variables (e.g., CC, CFLAGS...), specify them as
1704VAR=VALUE.  See below for descriptions of some of the useful variables.
1705
1706Defaults for the options are specified in brackets.
1707
1708Configuration:
1709  -h, --help              display this help and exit
1710      --help=short        display options specific to this package
1711      --help=recursive    display the short help of all the included packages
1712  -V, --version           display version information and exit
1713  -q, --quiet, --silent   do not print \`checking...' messages
1714      --cache-file=FILE   cache test results in FILE [disabled]
1715  -C, --config-cache      alias for \`--cache-file=config.cache'
1716  -n, --no-create         do not create output files
1717      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1718
1719Installation directories:
1720  --prefix=PREFIX         install architecture-independent files in PREFIX
1721                          [$ac_default_prefix]
1722  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1723                          [PREFIX]
1724
1725By default, \`make install' will install all the files in
1726\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1727an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1728for instance \`--prefix=\$HOME'.
1729
1730For better control, use the options below.
1731
1732Fine tuning of the installation directories:
1733  --bindir=DIR            user executables [EPREFIX/bin]
1734  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1735  --libexecdir=DIR        program executables [EPREFIX/libexec]
1736  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1737  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1738  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1739  --libdir=DIR            object code libraries [EPREFIX/lib]
1740  --includedir=DIR        C header files [PREFIX/include]
1741  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1742  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1743  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1744  --infodir=DIR           info documentation [DATAROOTDIR/info]
1745  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1746  --mandir=DIR            man documentation [DATAROOTDIR/man]
1747  --docdir=DIR            documentation root [DATAROOTDIR/doc/wget]
1748  --htmldir=DIR           html documentation [DOCDIR]
1749  --dvidir=DIR            dvi documentation [DOCDIR]
1750  --pdfdir=DIR            pdf documentation [DOCDIR]
1751  --psdir=DIR             ps documentation [DOCDIR]
1752_ACEOF
1753
1754  cat <<\_ACEOF
1755
1756Program names:
1757  --program-prefix=PREFIX            prepend PREFIX to installed program names
1758  --program-suffix=SUFFIX            append SUFFIX to installed program names
1759  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1760
1761System types:
1762  --build=BUILD     configure for building on BUILD [guessed]
1763  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1764_ACEOF
1765fi
1766
1767if test -n "$ac_init_help"; then
1768  case $ac_init_help in
1769     short | recursive ) echo "Configuration of wget 1.12:";;
1770   esac
1771  cat <<\_ACEOF
1772
1773Optional Features:
1774  --disable-option-checking  ignore unrecognized --enable/--with options
1775  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1776  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1777  --disable-opie          disable support for opie or s/key FTP login
1778  --disable-digest        disable support for HTTP digest authorization
1779  --disable-ntlm          disable support for NTLM authorization
1780  --disable-debug         disable support for debugging output
1781  --disable-dependency-tracking  speeds up one-time build
1782  --enable-dependency-tracking   do not reject slow dependency extractors
1783  --disable-nls           do not use Native Language Support
1784  --disable-rpath         do not hardcode runtime library paths
1785  --disable-largefile     omit support for large files
1786  --disable-ipv6          disable IPv6 support
1787  --disable-iri           disable IDN/IRIs support
1788
1789Optional Packages:
1790  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1791  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1792  --without-ssl           disable SSL autodetection
1793  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1794  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1795  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1796  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1797  --without-libintl-prefix     don't search for libintl in includedir and libdir
1798  --with-libgnutls-prefix[=DIR]  search for libgnutls in DIR/include and DIR/lib
1799  --without-libgnutls-prefix     don't search for libgnutls in includedir and libdir
1800  --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
1801  --without-libssl-prefix     don't search for libssl in includedir and libdir
1802  --with-libidn=DIR       Support IDN/IRIs (needs GNU Libidn)
1803
1804Some influential environment variables:
1805  CC          C compiler command
1806  CFLAGS      C compiler flags
1807  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1808              nonstandard directory <lib dir>
1809  LIBS        libraries to pass to the linker, e.g. -l<library>
1810  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1811              you have headers in a nonstandard directory <include dir>
1812  CPP         C preprocessor
1813
1814Use these variables to override the choices made by `configure' or to help
1815it to find libraries and programs with nonstandard names/locations.
1816
1817Report bugs to <bug-wget@gnu.org>.
1818_ACEOF
1819ac_status=$?
1820fi
1821
1822if test "$ac_init_help" = "recursive"; then
1823  # If there are subdirs, report their specific --help.
1824  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1825    test -d "$ac_dir" ||
1826      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1827      continue
1828    ac_builddir=.
1829
1830case "$ac_dir" in
1831.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1832*)
1833  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1834  # A ".." for each directory in $ac_dir_suffix.
1835  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1836  case $ac_top_builddir_sub in
1837  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1838  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1839  esac ;;
1840esac
1841ac_abs_top_builddir=$ac_pwd
1842ac_abs_builddir=$ac_pwd$ac_dir_suffix
1843# for backward compatibility:
1844ac_top_builddir=$ac_top_build_prefix
1845
1846case $srcdir in
1847  .)  # We are building in place.
1848    ac_srcdir=.
1849    ac_top_srcdir=$ac_top_builddir_sub
1850    ac_abs_top_srcdir=$ac_pwd ;;
1851  [\\/]* | ?:[\\/]* )  # Absolute name.
1852    ac_srcdir=$srcdir$ac_dir_suffix;
1853    ac_top_srcdir=$srcdir
1854    ac_abs_top_srcdir=$srcdir ;;
1855  *) # Relative name.
1856    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1857    ac_top_srcdir=$ac_top_build_prefix$srcdir
1858    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1859esac
1860ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1861
1862    cd "$ac_dir" || { ac_status=$?; continue; }
1863    # Check for guested configure.
1864    if test -f "$ac_srcdir/configure.gnu"; then
1865      echo &&
1866      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1867    elif test -f "$ac_srcdir/configure"; then
1868      echo &&
1869      $SHELL "$ac_srcdir/configure" --help=recursive
1870    else
1871      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1872    fi || ac_status=$?
1873    cd "$ac_pwd" || { ac_status=$?; break; }
1874  done
1875fi
1876
1877test -n "$ac_init_help" && exit $ac_status
1878if $ac_init_version; then
1879  cat <<\_ACEOF
1880wget configure 1.12
1881generated by GNU Autoconf 2.63
1882
1883Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18842002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1885This configure script is free software; the Free Software Foundation
1886gives unlimited permission to copy, distribute and modify it.
1887_ACEOF
1888  exit
1889fi
1890cat >config.log <<_ACEOF
1891This file contains any messages produced by compilers while
1892running configure, to aid debugging if configure makes a mistake.
1893
1894It was created by wget $as_me 1.12, which was
1895generated by GNU Autoconf 2.63.  Invocation command line was
1896
1897  $ $0 $@
1898
1899_ACEOF
1900exec 5>>config.log
1901{
1902cat <<_ASUNAME
1903## --------- ##
1904## Platform. ##
1905## --------- ##
1906
1907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915
1916/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1917/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1920/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1921/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1922/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923
1924_ASUNAME
1925
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931  $as_echo "PATH: $as_dir"
1932done
1933IFS=$as_save_IFS
1934
1935} >&5
1936
1937cat >&5 <<_ACEOF
1938
1939
1940## ----------- ##
1941## Core tests. ##
1942## ----------- ##
1943
1944_ACEOF
1945
1946
1947# Keep a trace of the command line.
1948# Strip out --no-create and --no-recursion so they do not pile up.
1949# Strip out --silent because we don't want to record it for future runs.
1950# Also quote any args containing shell meta-characters.
1951# Make two passes to allow for proper duplicate-argument suppression.
1952ac_configure_args=
1953ac_configure_args0=
1954ac_configure_args1=
1955ac_must_keep_next=false
1956for ac_pass in 1 2
1957do
1958  for ac_arg
1959  do
1960    case $ac_arg in
1961    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963    | -silent | --silent | --silen | --sile | --sil)
1964      continue ;;
1965    *\'*)
1966      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967    esac
1968    case $ac_pass in
1969    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1970    2)
1971      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1972      if test $ac_must_keep_next = true; then
1973	ac_must_keep_next=false # Got value, back to normal.
1974      else
1975	case $ac_arg in
1976	  *=* | --config-cache | -C | -disable-* | --disable-* \
1977	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979	  | -with-* | --with-* | -without-* | --without-* | --x)
1980	    case "$ac_configure_args0 " in
1981	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982	    esac
1983	    ;;
1984	  -* ) ac_must_keep_next=true ;;
1985	esac
1986      fi
1987      ac_configure_args="$ac_configure_args '$ac_arg'"
1988      ;;
1989    esac
1990  done
1991done
1992$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1993$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1994
1995# When interrupted or exit'd, cleanup temporary files, and complete
1996# config.log.  We remove comments because anyway the quotes in there
1997# would cause problems or look ugly.
1998# WARNING: Use '\'' to represent an apostrophe within the trap.
1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000trap 'exit_status=$?
2001  # Save into config.log some information that might help in debugging.
2002  {
2003    echo
2004
2005    cat <<\_ASBOX
2006## ---------------- ##
2007## Cache variables. ##
2008## ---------------- ##
2009_ASBOX
2010    echo
2011    # The following way of writing the cache mishandles newlines in values,
2012(
2013  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014    eval ac_val=\$$ac_var
2015    case $ac_val in #(
2016    *${as_nl}*)
2017      case $ac_var in #(
2018      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2019$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020      esac
2021      case $ac_var in #(
2022      _ | IFS | as_nl) ;; #(
2023      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024      *) $as_unset $ac_var ;;
2025      esac ;;
2026    esac
2027  done
2028  (set) 2>&1 |
2029    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030    *${as_nl}ac_space=\ *)
2031      sed -n \
2032	"s/'\''/'\''\\\\'\'''\''/g;
2033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034      ;; #(
2035    *)
2036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037      ;;
2038    esac |
2039    sort
2040)
2041    echo
2042
2043    cat <<\_ASBOX
2044## ----------------- ##
2045## Output variables. ##
2046## ----------------- ##
2047_ASBOX
2048    echo
2049    for ac_var in $ac_subst_vars
2050    do
2051      eval ac_val=\$$ac_var
2052      case $ac_val in
2053      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054      esac
2055      $as_echo "$ac_var='\''$ac_val'\''"
2056    done | sort
2057    echo
2058
2059    if test -n "$ac_subst_files"; then
2060      cat <<\_ASBOX
2061## ------------------- ##
2062## File substitutions. ##
2063## ------------------- ##
2064_ASBOX
2065      echo
2066      for ac_var in $ac_subst_files
2067      do
2068	eval ac_val=\$$ac_var
2069	case $ac_val in
2070	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071	esac
2072	$as_echo "$ac_var='\''$ac_val'\''"
2073      done | sort
2074      echo
2075    fi
2076
2077    if test -s confdefs.h; then
2078      cat <<\_ASBOX
2079## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##
2082_ASBOX
2083      echo
2084      cat confdefs.h
2085      echo
2086    fi
2087    test "$ac_signal" != 0 &&
2088      $as_echo "$as_me: caught signal $ac_signal"
2089    $as_echo "$as_me: exit $exit_status"
2090  } >&5
2091  rm -f core *.core core.conftest.* &&
2092    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093    exit $exit_status
2094' 0
2095for ac_signal in 1 2 13 15; do
2096  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2097done
2098ac_signal=0
2099
2100# confdefs.h avoids OS command line length limits that DEFS can exceed.
2101rm -f -r conftest* confdefs.h
2102
2103# Predefined preprocessor variables.
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_NAME "$PACKAGE_NAME"
2107_ACEOF
2108
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_VERSION "$PACKAGE_VERSION"
2117_ACEOF
2118
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
2124
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2127_ACEOF
2128
2129
2130# Let the site file select an alternate cache file if it wants to.
2131# Prefer an explicitly selected file to automatically selected ones.
2132ac_site_file1=NONE
2133ac_site_file2=NONE
2134if test -n "$CONFIG_SITE"; then
2135  ac_site_file1=$CONFIG_SITE
2136elif test "x$prefix" != xNONE; then
2137  ac_site_file1=$prefix/share/config.site
2138  ac_site_file2=$prefix/etc/config.site
2139else
2140  ac_site_file1=$ac_default_prefix/share/config.site
2141  ac_site_file2=$ac_default_prefix/etc/config.site
2142fi
2143for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144do
2145  test "x$ac_site_file" = xNONE && continue
2146  if test -r "$ac_site_file"; then
2147    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2148$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149    sed 's/^/| /' "$ac_site_file" >&5
2150    . "$ac_site_file"
2151  fi
2152done
2153
2154if test -r "$cache_file"; then
2155  # Some versions of bash will fail to source /dev/null (special
2156  # files actually), so we avoid doing that.
2157  if test -f "$cache_file"; then
2158    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2159$as_echo "$as_me: loading cache $cache_file" >&6;}
2160    case $cache_file in
2161      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2162      *)                      . "./$cache_file";;
2163    esac
2164  fi
2165else
2166  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2167$as_echo "$as_me: creating cache $cache_file" >&6;}
2168  >$cache_file
2169fi
2170
2171gt_needs="$gt_needs need-ngettext"
2172ac_header_list="$ac_header_list errno.h"
2173gl_getopt_required=GNU
2174ac_header_list="$ac_header_list stdio_ext.h"
2175ac_header_list="$ac_header_list termios.h"
2176ac_func_list="$ac_func_list __fsetlocking"
2177ac_func_list="$ac_func_list tcgetattr"
2178ac_func_list="$ac_func_list tcsetattr"
2179ac_func_list="$ac_func_list mbsinit"
2180ac_func_list="$ac_func_list mbrtowc"
2181ac_header_list="$ac_header_list sys/mman.h"
2182ac_func_list="$ac_func_list mprotect"
2183ac_header_list="$ac_header_list stddef.h"
2184ac_header_list="$ac_header_list stdint.h"
2185ac_header_list="$ac_header_list wchar.h"
2186ac_header_list="$ac_header_list stdio.h"
2187ac_header_list="$ac_header_list stdlib.h"
2188ac_header_list="$ac_header_list sys/socket.h"
2189ac_header_list="$ac_header_list string.h"
2190ac_header_list="$ac_header_list strings.h"
2191ac_header_list="$ac_header_list unistd.h"
2192ac_func_list="$ac_func_list iswcntrl"
2193ac_header_list="$ac_header_list wctype.h"
2194# Check that the precious variables saved in the cache have kept the same
2195# value.
2196ac_cache_corrupted=false
2197for ac_var in $ac_precious_vars; do
2198  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2199  eval ac_new_set=\$ac_env_${ac_var}_set
2200  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2201  eval ac_new_val=\$ac_env_${ac_var}_value
2202  case $ac_old_set,$ac_new_set in
2203    set,)
2204      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2205$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2206      ac_cache_corrupted=: ;;
2207    ,set)
2208      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2209$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2210      ac_cache_corrupted=: ;;
2211    ,);;
2212    *)
2213      if test "x$ac_old_val" != "x$ac_new_val"; then
2214	# differences in whitespace do not lead to failure.
2215	ac_old_val_w=`echo x $ac_old_val`
2216	ac_new_val_w=`echo x $ac_new_val`
2217	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2218	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2219$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2220	  ac_cache_corrupted=:
2221	else
2222	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2223$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2224	  eval $ac_var=\$ac_old_val
2225	fi
2226	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2227$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2228	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2229$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2230      fi;;
2231  esac
2232  # Pass precious variables to config.status.
2233  if test "$ac_new_set" = set; then
2234    case $ac_new_val in
2235    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2236    *) ac_arg=$ac_var=$ac_new_val ;;
2237    esac
2238    case " $ac_configure_args " in
2239      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2240      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2241    esac
2242  fi
2243done
2244if $ac_cache_corrupted; then
2245  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2248$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2249  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2250$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2251   { (exit 1); exit 1; }; }
2252fi
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278ac_ext=c
2279ac_cpp='$CPP $CPPFLAGS'
2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
2286
2287{ $as_echo "$as_me:$LINENO: configuring for GNU Wget $PACKAGE_VERSION" >&5
2288$as_echo "$as_me: configuring for GNU Wget $PACKAGE_VERSION" >&6;}
2289
2290
2291ac_aux_dir=
2292for ac_dir in build-aux "$srcdir"/build-aux; do
2293  if test -f "$ac_dir/install-sh"; then
2294    ac_aux_dir=$ac_dir
2295    ac_install_sh="$ac_aux_dir/install-sh -c"
2296    break
2297  elif test -f "$ac_dir/install.sh"; then
2298    ac_aux_dir=$ac_dir
2299    ac_install_sh="$ac_aux_dir/install.sh -c"
2300    break
2301  elif test -f "$ac_dir/shtool"; then
2302    ac_aux_dir=$ac_dir
2303    ac_install_sh="$ac_aux_dir/shtool install -c"
2304    break
2305  fi
2306done
2307if test -z "$ac_aux_dir"; then
2308  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2309$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2310   { (exit 1); exit 1; }; }
2311fi
2312
2313# These three variables are undocumented and unsupported,
2314# and are intended to be withdrawn in a future Autoconf release.
2315# They can cause serious problems if a builder's source tree is in a directory
2316# whose full name contains unusual characters.
2317ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2318ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2319ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2320
2321
2322
2323am__api_version='1.10'
2324
2325# Find a good install program.  We prefer a C program (faster),
2326# so one script is as good as another.  But avoid the broken or
2327# incompatible versions:
2328# SysV /etc/install, /usr/sbin/install
2329# SunOS /usr/etc/install
2330# IRIX /sbin/install
2331# AIX /bin/install
2332# AmigaOS /C/install, which installs bootblocks on floppy discs
2333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336# OS/2's system install, which has a completely different semantic
2337# ./install, which can be erroneously created by make from ./install.sh.
2338# Reject install programs that cannot install multiple files.
2339{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2340$as_echo_n "checking for a BSD-compatible install... " >&6; }
2341if test -z "$INSTALL"; then
2342if test "${ac_cv_path_install+set}" = set; then
2343  $as_echo_n "(cached) " >&6
2344else
2345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350  # Account for people who put trailing slashes in PATH elements.
2351case $as_dir/ in
2352  ./ | .// | /cC/* | \
2353  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2355  /usr/ucb/* ) ;;
2356  *)
2357    # OSF1 and SCO ODT 3.0 have their own names for install.
2358    # Don't use installbsd from OSF since it installs stuff as root
2359    # by default.
2360    for ac_prog in ginstall scoinst install; do
2361      for ac_exec_ext in '' $ac_executable_extensions; do
2362	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2363	  if test $ac_prog = install &&
2364	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365	    # AIX install.  It has an incompatible calling convention.
2366	    :
2367	  elif test $ac_prog = install &&
2368	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369	    # program-specific install script used by HP pwplus--don't use.
2370	    :
2371	  else
2372	    rm -rf conftest.one conftest.two conftest.dir
2373	    echo one > conftest.one
2374	    echo two > conftest.two
2375	    mkdir conftest.dir
2376	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377	      test -s conftest.one && test -s conftest.two &&
2378	      test -s conftest.dir/conftest.one &&
2379	      test -s conftest.dir/conftest.two
2380	    then
2381	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382	      break 3
2383	    fi
2384	  fi
2385	fi
2386      done
2387    done
2388    ;;
2389esac
2390
2391done
2392IFS=$as_save_IFS
2393
2394rm -rf conftest.one conftest.two conftest.dir
2395
2396fi
2397  if test "${ac_cv_path_install+set}" = set; then
2398    INSTALL=$ac_cv_path_install
2399  else
2400    # As a last resort, use the slow shell script.  Don't cache a
2401    # value for INSTALL within a source directory, because that will
2402    # break other packages using the cache if that directory is
2403    # removed, or if the value is a relative name.
2404    INSTALL=$ac_install_sh
2405  fi
2406fi
2407{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2408$as_echo "$INSTALL" >&6; }
2409
2410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411# It thinks the first close brace ends the variable substitution.
2412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2419$as_echo_n "checking whether build environment is sane... " >&6; }
2420# Just in case
2421sleep 1
2422echo timestamp > conftest.file
2423# Do `set' in a subshell so we don't clobber the current shell's
2424# arguments.  Must try -L first in case configure is actually a
2425# symlink; some systems play weird games with the mod time of symlinks
2426# (eg FreeBSD returns the mod time of the symlink's containing
2427# directory).
2428if (
2429   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2430   if test "$*" = "X"; then
2431      # -L didn't work.
2432      set X `ls -t $srcdir/configure conftest.file`
2433   fi
2434   rm -f conftest.file
2435   if test "$*" != "X $srcdir/configure conftest.file" \
2436      && test "$*" != "X conftest.file $srcdir/configure"; then
2437
2438      # If neither matched, then we have a broken ls.  This can happen
2439      # if, for instance, CONFIG_SHELL is bash and it inherits a
2440      # broken ls alias from the environment.  This has actually
2441      # happened.  Such a system could not be considered "sane".
2442      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2443alias in your environment" >&5
2444$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2445alias in your environment" >&2;}
2446   { (exit 1); exit 1; }; }
2447   fi
2448
2449   test "$2" = conftest.file
2450   )
2451then
2452   # Ok.
2453   :
2454else
2455   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2456Check your system clock" >&5
2457$as_echo "$as_me: error: newly created file is older than distributed files!
2458Check your system clock" >&2;}
2459   { (exit 1); exit 1; }; }
2460fi
2461{ $as_echo "$as_me:$LINENO: result: yes" >&5
2462$as_echo "yes" >&6; }
2463test "$program_prefix" != NONE &&
2464  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465# Use a double $ so make ignores it.
2466test "$program_suffix" != NONE &&
2467  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468# Double any \ or $.
2469# By default was `s,x,x', remove it if useless.
2470ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2472
2473# expand $ac_aux_dir to an absolute path
2474am_aux_dir=`cd $ac_aux_dir && pwd`
2475
2476test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2477# Use eval to expand $SHELL
2478if eval "$MISSING --run true"; then
2479  am_missing_run="$MISSING --run "
2480else
2481  am_missing_run=
2482  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2483$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2484fi
2485
2486{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2487$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488if test -z "$MKDIR_P"; then
2489  if test "${ac_cv_path_mkdir+set}" = set; then
2490  $as_echo_n "(cached) " >&6
2491else
2492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_prog in mkdir gmkdir; do
2498	 for ac_exec_ext in '' $ac_executable_extensions; do
2499	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2500	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501	     'mkdir (GNU coreutils) '* | \
2502	     'mkdir (coreutils) '* | \
2503	     'mkdir (fileutils) '4.1*)
2504	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2505	       break 3;;
2506	   esac
2507	 done
2508       done
2509done
2510IFS=$as_save_IFS
2511
2512fi
2513
2514  if test "${ac_cv_path_mkdir+set}" = set; then
2515    MKDIR_P="$ac_cv_path_mkdir -p"
2516  else
2517    # As a last resort, use the slow shell script.  Don't cache a
2518    # value for MKDIR_P within a source directory, because that will
2519    # break other packages using the cache if that directory is
2520    # removed, or if the value is a relative name.
2521    test -d ./--version && rmdir ./--version
2522    MKDIR_P="$ac_install_sh -d"
2523  fi
2524fi
2525{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2526$as_echo "$MKDIR_P" >&6; }
2527
2528mkdir_p="$MKDIR_P"
2529case $mkdir_p in
2530  [\\/$]* | ?:[\\/]*) ;;
2531  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2532esac
2533
2534for ac_prog in gawk mawk nawk awk
2535do
2536  # Extract the first word of "$ac_prog", so it can be a program name with args.
2537set dummy $ac_prog; ac_word=$2
2538{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if test "${ac_cv_prog_AWK+set}" = set; then
2541  $as_echo_n "(cached) " >&6
2542else
2543  if test -n "$AWK"; then
2544  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549  IFS=$as_save_IFS
2550  test -z "$as_dir" && as_dir=.
2551  for ac_exec_ext in '' $ac_executable_extensions; do
2552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553    ac_cv_prog_AWK="$ac_prog"
2554    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555    break 2
2556  fi
2557done
2558done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563AWK=$ac_cv_prog_AWK
2564if test -n "$AWK"; then
2565  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2566$as_echo "$AWK" >&6; }
2567else
2568  { $as_echo "$as_me:$LINENO: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572
2573  test -n "$AWK" && break
2574done
2575
2576{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2578set x ${MAKE-make}
2579ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2581  $as_echo_n "(cached) " >&6
2582else
2583  cat >conftest.make <<\_ACEOF
2584SHELL = /bin/sh
2585all:
2586	@echo '@@@%%%=$(MAKE)=@@@%%%'
2587_ACEOF
2588# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2589case `${MAKE-make} -f conftest.make 2>/dev/null` in
2590  *@@@%%%=?*=@@@%%%*)
2591    eval ac_cv_prog_make_${ac_make}_set=yes;;
2592  *)
2593    eval ac_cv_prog_make_${ac_make}_set=no;;
2594esac
2595rm -f conftest.make
2596fi
2597if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598  { $as_echo "$as_me:$LINENO: result: yes" >&5
2599$as_echo "yes" >&6; }
2600  SET_MAKE=
2601else
2602  { $as_echo "$as_me:$LINENO: result: no" >&5
2603$as_echo "no" >&6; }
2604  SET_MAKE="MAKE=${MAKE-make}"
2605fi
2606
2607rm -rf .tst 2>/dev/null
2608mkdir .tst 2>/dev/null
2609if test -d .tst; then
2610  am__leading_dot=.
2611else
2612  am__leading_dot=_
2613fi
2614rmdir .tst 2>/dev/null
2615
2616if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618  # is not polluted with repeated "-I."
2619  am__isrc=' -I$(srcdir)'
2620  # test to see if srcdir already configured
2621  if test -f $srcdir/config.status; then
2622    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2623$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2624   { (exit 1); exit 1; }; }
2625  fi
2626fi
2627
2628# test whether we have cygpath
2629if test -z "$CYGPATH_W"; then
2630  if (cygpath --version) >/dev/null 2>/dev/null; then
2631    CYGPATH_W='cygpath -w'
2632  else
2633    CYGPATH_W=echo
2634  fi
2635fi
2636
2637
2638# Define the identity of the package.
2639 PACKAGE='wget'
2640 VERSION='1.12'
2641
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE "$PACKAGE"
2645_ACEOF
2646
2647
2648cat >>confdefs.h <<_ACEOF
2649#define VERSION "$VERSION"
2650_ACEOF
2651
2652# Some tools Automake needs.
2653
2654ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2669
2670# Installed binaries are usually stripped using `strip' when the user
2671# run `make install-strip'.  However `strip' might not be the right
2672# tool to use in cross-compilation environments, therefore Automake
2673# will honor the `STRIP' environment variable to overrule this program.
2674if test "$cross_compiling" != no; then
2675  if test -n "$ac_tool_prefix"; then
2676  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677set dummy ${ac_tool_prefix}strip; ac_word=$2
2678{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if test "${ac_cv_prog_STRIP+set}" = set; then
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$STRIP"; then
2684  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691  for ac_exec_ext in '' $ac_executable_extensions; do
2692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703STRIP=$ac_cv_prog_STRIP
2704if test -n "$STRIP"; then
2705  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2706$as_echo "$STRIP" >&6; }
2707else
2708  { $as_echo "$as_me:$LINENO: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712
2713fi
2714if test -z "$ac_cv_prog_STRIP"; then
2715  ac_ct_STRIP=$STRIP
2716  # Extract the first word of "strip", so it can be a program name with args.
2717set dummy strip; ac_word=$2
2718{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$ac_ct_STRIP"; then
2724  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731  for ac_exec_ext in '' $ac_executable_extensions; do
2732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733    ac_cv_prog_ac_ct_STRIP="strip"
2734    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744if test -n "$ac_ct_STRIP"; then
2745  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2746$as_echo "$ac_ct_STRIP" >&6; }
2747else
2748  { $as_echo "$as_me:$LINENO: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752  if test "x$ac_ct_STRIP" = x; then
2753    STRIP=":"
2754  else
2755    case $cross_compiling:$ac_tool_warned in
2756yes:)
2757{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761    STRIP=$ac_ct_STRIP
2762  fi
2763else
2764  STRIP="$ac_cv_prog_STRIP"
2765fi
2766
2767fi
2768INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770# We need awk for the "check" target.  The system "awk" is bad on
2771# some platforms.
2772# Always define AMTAR for backward compatibility.
2773
2774AMTAR=${AMTAR-"${am_missing_run}tar"}
2775
2776am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2777
2778
2779
2780
2781
2782
2783# Make sure we can run config.sub.
2784$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2785  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2786$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2787   { (exit 1); exit 1; }; }
2788
2789{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2790$as_echo_n "checking build system type... " >&6; }
2791if test "${ac_cv_build+set}" = set; then
2792  $as_echo_n "(cached) " >&6
2793else
2794  ac_build_alias=$build_alias
2795test "x$ac_build_alias" = x &&
2796  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797test "x$ac_build_alias" = x &&
2798  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2799$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2800   { (exit 1); exit 1; }; }
2801ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2803$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2804   { (exit 1); exit 1; }; }
2805
2806fi
2807{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2808$as_echo "$ac_cv_build" >&6; }
2809case $ac_cv_build in
2810*-*-*) ;;
2811*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2812$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2813   { (exit 1); exit 1; }; };;
2814esac
2815build=$ac_cv_build
2816ac_save_IFS=$IFS; IFS='-'
2817set x $ac_cv_build
2818shift
2819build_cpu=$1
2820build_vendor=$2
2821shift; shift
2822# Remember, the first character of IFS is used to create $*,
2823# except with old shells:
2824build_os=$*
2825IFS=$ac_save_IFS
2826case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2827
2828
2829{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2830$as_echo_n "checking host system type... " >&6; }
2831if test "${ac_cv_host+set}" = set; then
2832  $as_echo_n "(cached) " >&6
2833else
2834  if test "x$host_alias" = x; then
2835  ac_cv_host=$ac_cv_build
2836else
2837  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2839$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2840   { (exit 1); exit 1; }; }
2841fi
2842
2843fi
2844{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2845$as_echo "$ac_cv_host" >&6; }
2846case $ac_cv_host in
2847*-*-*) ;;
2848*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2849$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2850   { (exit 1); exit 1; }; };;
2851esac
2852host=$ac_cv_host
2853ac_save_IFS=$IFS; IFS='-'
2854set x $ac_cv_host
2855shift
2856host_cpu=$1
2857host_vendor=$2
2858shift; shift
2859# Remember, the first character of IFS is used to create $*,
2860# except with old shells:
2861host_os=$*
2862IFS=$ac_save_IFS
2863case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864
2865
2866
2867cat >>confdefs.h <<_ACEOF
2868#define OS_TYPE "$host_os"
2869_ACEOF
2870
2871
2872
2873
2874# Check whether --with-ssl was given.
2875if test "${with_ssl+set}" = set; then
2876  withval=$with_ssl;
2877fi
2878
2879
2880# Check whether --enable-opie was given.
2881if test "${enable_opie+set}" = set; then
2882  enableval=$enable_opie; ENABLE_OPIE=$enableval
2883else
2884  ENABLE_OPIE=yes
2885fi
2886
2887test x"${ENABLE_OPIE}" = xyes &&
2888cat >>confdefs.h <<\_ACEOF
2889#define ENABLE_OPIE 1
2890_ACEOF
2891
2892
2893# Check whether --enable-digest was given.
2894if test "${enable_digest+set}" = set; then
2895  enableval=$enable_digest; ENABLE_DIGEST=$enableval
2896else
2897  ENABLE_DIGEST=yes
2898fi
2899
2900test x"${ENABLE_DIGEST}" = xyes &&
2901cat >>confdefs.h <<\_ACEOF
2902#define ENABLE_DIGEST 1
2903_ACEOF
2904
2905
2906# Check whether --enable-ntlm was given.
2907if test "${enable_ntlm+set}" = set; then
2908  enableval=$enable_ntlm; ENABLE_NTLM=$enableval
2909else
2910  ENABLE_NTLM=auto
2911fi
2912
2913
2914# Check whether --enable-debug was given.
2915if test "${enable_debug+set}" = set; then
2916  enableval=$enable_debug; ENABLE_DEBUG=$enableval
2917else
2918  ENABLE_DEBUG=yes
2919fi
2920
2921test x"${ENABLE_DEBUG}" = xyes &&
2922cat >>confdefs.h <<\_ACEOF
2923#define ENABLE_DEBUG 1
2924_ACEOF
2925
2926
2927wget_need_md5=no
2928
2929case "${ENABLE_OPIE}${ENABLE_DIGEST}" in
2930*yes*)
2931	wget_need_md5=yes
2932esac
2933
2934
2935test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
2936test -z "$CC" && cc_specified=yes
2937
2938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943if test -n "$ac_tool_prefix"; then
2944  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}gcc; ac_word=$2
2946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if test "${ac_cv_prog_CC+set}" = set; then
2949  $as_echo_n "(cached) " >&6
2950else
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2962    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
2973  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2974$as_echo "$CC" >&6; }
2975else
2976  { $as_echo "$as_me:$LINENO: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981fi
2982if test -z "$ac_cv_prog_CC"; then
2983  ac_ct_CC=$CC
2984  # Extract the first word of "gcc", so it can be a program name with args.
2985set dummy gcc; ac_word=$2
2986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$ac_ct_CC"; then
2992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999  for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_ac_ct_CC="gcc"
3002    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
3013  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3014$as_echo "$ac_ct_CC" >&6; }
3015else
3016  { $as_echo "$as_me:$LINENO: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020  if test "x$ac_ct_CC" = x; then
3021    CC=""
3022  else
3023    case $cross_compiling:$ac_tool_warned in
3024yes:)
3025{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027ac_tool_warned=yes ;;
3028esac
3029    CC=$ac_ct_CC
3030  fi
3031else
3032  CC="$ac_cv_prog_CC"
3033fi
3034
3035if test -z "$CC"; then
3036          if test -n "$ac_tool_prefix"; then
3037    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038set dummy ${ac_tool_prefix}cc; ac_word=$2
3039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if test "${ac_cv_prog_CC+set}" = set; then
3042  $as_echo_n "(cached) " >&6
3043else
3044  if test -n "$CC"; then
3045  ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052  for ac_exec_ext in '' $ac_executable_extensions; do
3053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054    ac_cv_prog_CC="${ac_tool_prefix}cc"
3055    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059done
3060IFS=$as_save_IFS
3061
3062fi
3063fi
3064CC=$ac_cv_prog_CC
3065if test -n "$CC"; then
3066  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067$as_echo "$CC" >&6; }
3068else
3069  { $as_echo "$as_me:$LINENO: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073
3074  fi
3075fi
3076if test -z "$CC"; then
3077  # Extract the first word of "cc", so it can be a program name with args.
3078set dummy cc; ac_word=$2
3079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_CC+set}" = set; then
3082  $as_echo_n "(cached) " >&6
3083else
3084  if test -n "$CC"; then
3085  ac_cv_prog_CC="$CC" # Let the user override the test.
3086else
3087  ac_prog_rejected=no
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093  for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096       ac_prog_rejected=yes
3097       continue
3098     fi
3099    ac_cv_prog_CC="cc"
3100    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104done
3105IFS=$as_save_IFS
3106
3107if test $ac_prog_rejected = yes; then
3108  # We found a bogon in the path, so make sure we never use it.
3109  set dummy $ac_cv_prog_CC
3110  shift
3111  if test $# != 0; then
3112    # We chose a different compiler from the bogus one.
3113    # However, it has the same basename, so the bogon will be chosen
3114    # first if we set CC to just the basename; use the full file name.
3115    shift
3116    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117  fi
3118fi
3119fi
3120fi
3121CC=$ac_cv_prog_CC
3122if test -n "$CC"; then
3123  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3124$as_echo "$CC" >&6; }
3125else
3126  { $as_echo "$as_me:$LINENO: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130
3131fi
3132if test -z "$CC"; then
3133  if test -n "$ac_tool_prefix"; then
3134  for ac_prog in cl.exe
3135  do
3136    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_CC+set}" = set; then
3141  $as_echo_n "(cached) " >&6
3142else
3143  if test -n "$CC"; then
3144  ac_cv_prog_CC="$CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149  IFS=$as_save_IFS
3150  test -z "$as_dir" && as_dir=.
3151  for ac_exec_ext in '' $ac_executable_extensions; do
3152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3154    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155    break 2
3156  fi
3157done
3158done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
3165  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3166$as_echo "$CC" >&6; }
3167else
3168  { $as_echo "$as_me:$LINENO: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173    test -n "$CC" && break
3174  done
3175fi
3176if test -z "$CC"; then
3177  ac_ct_CC=$CC
3178  for ac_prog in cl.exe
3179do
3180  # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
3182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$ac_ct_CC"; then
3188  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195  for ac_exec_ext in '' $ac_executable_extensions; do
3196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197    ac_cv_prog_ac_ct_CC="$ac_prog"
3198    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208if test -n "$ac_ct_CC"; then
3209  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210$as_echo "$ac_ct_CC" >&6; }
3211else
3212  { $as_echo "$as_me:$LINENO: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217  test -n "$ac_ct_CC" && break
3218done
3219
3220  if test "x$ac_ct_CC" = x; then
3221    CC=""
3222  else
3223    case $cross_compiling:$ac_tool_warned in
3224yes:)
3225{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227ac_tool_warned=yes ;;
3228esac
3229    CC=$ac_ct_CC
3230  fi
3231fi
3232
3233fi
3234
3235
3236test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3239See \`config.log' for more details." >&5
3240$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3241See \`config.log' for more details." >&2;}
3242   { (exit 1); exit 1; }; }; }
3243
3244# Provide some information about the compiler.
3245$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3246set X $ac_compile
3247ac_compiler=$2
3248{ (ac_try="$ac_compiler --version >&5"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254$as_echo "$ac_try_echo") >&5
3255  (eval "$ac_compiler --version >&5") 2>&5
3256  ac_status=$?
3257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); }
3259{ (ac_try="$ac_compiler -v >&5"
3260case "(($ac_try" in
3261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262  *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265$as_echo "$ac_try_echo") >&5
3266  (eval "$ac_compiler -v >&5") 2>&5
3267  ac_status=$?
3268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); }
3270{ (ac_try="$ac_compiler -V >&5"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276$as_echo "$ac_try_echo") >&5
3277  (eval "$ac_compiler -V >&5") 2>&5
3278  ac_status=$?
3279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }
3281
3282cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h.  */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h.  */
3288
3289int
3290main ()
3291{
3292
3293  ;
3294  return 0;
3295}
3296_ACEOF
3297ac_clean_files_save=$ac_clean_files
3298ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299# Try to create an executable without -o first, disregard a.out.
3300# It will help us diagnose broken compilers, and finding out an intuition
3301# of exeext.
3302{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3303$as_echo_n "checking for C compiler default output file name... " >&6; }
3304ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306# The possible output files:
3307ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309ac_rmfiles=
3310for ac_file in $ac_files
3311do
3312  case $ac_file in
3313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315  esac
3316done
3317rm -f $ac_rmfiles
3318
3319if { (ac_try="$ac_link_default"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325$as_echo "$ac_try_echo") >&5
3326  (eval "$ac_link_default") 2>&5
3327  ac_status=$?
3328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; then
3330  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3333# so that the user can short-circuit this test for compilers unknown to
3334# Autoconf.
3335for ac_file in $ac_files ''
3336do
3337  test -f "$ac_file" || continue
3338  case $ac_file in
3339    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340	;;
3341    [ab].out )
3342	# We found the default executable, but exeext='' is most
3343	# certainly right.
3344	break;;
3345    *.* )
3346        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347	then :; else
3348	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349	fi
3350	# We set ac_cv_exeext here because the later test for it is not
3351	# safe: cross compilers may not add the suffix if given an `-o'
3352	# argument, so we may need to know it at that point already.
3353	# Even if this section looks crufty: it has the advantage of
3354	# actually working.
3355	break;;
3356    * )
3357	break;;
3358  esac
3359done
3360test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362else
3363  ac_file=''
3364fi
3365
3366{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3367$as_echo "$ac_file" >&6; }
3368if test -z "$ac_file"; then
3369  $as_echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3375See \`config.log' for more details." >&5
3376$as_echo "$as_me: error: C compiler cannot create executables
3377See \`config.log' for more details." >&2;}
3378   { (exit 77); exit 77; }; }; }
3379fi
3380
3381ac_exeext=$ac_cv_exeext
3382
3383# Check that the compiler produces executables we can run.  If not, either
3384# the compiler is broken, or we cross compile.
3385{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386$as_echo_n "checking whether the C compiler works... " >&6; }
3387# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388# If not cross compiling, check that we can run a simple program.
3389if test "$cross_compiling" != yes; then
3390  if { ac_try='./$ac_file'
3391  { (case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396$as_echo "$ac_try_echo") >&5
3397  (eval "$ac_try") 2>&5
3398  ac_status=$?
3399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; }; then
3401    cross_compiling=no
3402  else
3403    if test "$cross_compiling" = maybe; then
3404	cross_compiling=yes
3405    else
3406	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409If you meant to cross compile, use \`--host'.
3410See \`config.log' for more details." >&5
3411$as_echo "$as_me: error: cannot run C compiled programs.
3412If you meant to cross compile, use \`--host'.
3413See \`config.log' for more details." >&2;}
3414   { (exit 1); exit 1; }; }; }
3415    fi
3416  fi
3417fi
3418{ $as_echo "$as_me:$LINENO: result: yes" >&5
3419$as_echo "yes" >&6; }
3420
3421rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422ac_clean_files=$ac_clean_files_save
3423# Check that the compiler produces executables we can run.  If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428$as_echo "$cross_compiling" >&6; }
3429
3430{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431$as_echo_n "checking for suffix of executables... " >&6; }
3432if { (ac_try="$ac_link"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438$as_echo "$ac_try_echo") >&5
3439  (eval "$ac_link") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }; then
3443  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3445# work properly (i.e., refer to `conftest.exe'), while it won't with
3446# `rm'.
3447for ac_file in conftest.exe conftest conftest.*; do
3448  test -f "$ac_file" || continue
3449  case $ac_file in
3450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452	  break;;
3453    * ) break;;
3454  esac
3455done
3456else
3457  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460See \`config.log' for more details." >&5
3461$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462See \`config.log' for more details." >&2;}
3463   { (exit 1); exit 1; }; }; }
3464fi
3465
3466rm -f conftest$ac_cv_exeext
3467{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468$as_echo "$ac_cv_exeext" >&6; }
3469
3470rm -f conftest.$ac_ext
3471EXEEXT=$ac_cv_exeext
3472ac_exeext=$EXEEXT
3473{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474$as_echo_n "checking for suffix of object files... " >&6; }
3475if test "${ac_cv_objext+set}" = set; then
3476  $as_echo_n "(cached) " >&6
3477else
3478  cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h.  */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h.  */
3484
3485int
3486main ()
3487{
3488
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493rm -f conftest.o conftest.obj
3494if { (ac_try="$ac_compile"
3495case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500$as_echo "$ac_try_echo") >&5
3501  (eval "$ac_compile") 2>&5
3502  ac_status=$?
3503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; then
3505  for ac_file in conftest.o conftest.obj conftest.*; do
3506  test -f "$ac_file" || continue;
3507  case $ac_file in
3508    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510       break;;
3511  esac
3512done
3513else
3514  $as_echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3520See \`config.log' for more details." >&5
3521$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3522See \`config.log' for more details." >&2;}
3523   { (exit 1); exit 1; }; }; }
3524fi
3525
3526rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527fi
3528{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529$as_echo "$ac_cv_objext" >&6; }
3530OBJEXT=$ac_cv_objext
3531ac_objext=$OBJEXT
3532{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3533$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534if test "${ac_cv_c_compiler_gnu+set}" = set; then
3535  $as_echo_n "(cached) " >&6
3536else
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547#ifndef __GNUC__
3548       choke me
3549#endif
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext
3556if { (ac_try="$ac_compile"
3557case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562$as_echo "$ac_try_echo") >&5
3563  (eval "$ac_compile") 2>conftest.er1
3564  ac_status=$?
3565  grep -v '^ *+' conftest.er1 >conftest.err
3566  rm -f conftest.er1
3567  cat conftest.err >&5
3568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); } && {
3570	 test -z "$ac_c_werror_flag" ||
3571	 test ! -s conftest.err
3572       } && test -s conftest.$ac_objext; then
3573  ac_compiler_gnu=yes
3574else
3575  $as_echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5
3577
3578	ac_compiler_gnu=no
3579fi
3580
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583
3584fi
3585{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3586$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587if test $ac_compiler_gnu = yes; then
3588  GCC=yes
3589else
3590  GCC=
3591fi
3592ac_test_CFLAGS=${CFLAGS+set}
3593ac_save_CFLAGS=$CFLAGS
3594{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3595$as_echo_n "checking whether $CC accepts -g... " >&6; }
3596if test "${ac_cv_prog_cc_g+set}" = set; then
3597  $as_echo_n "(cached) " >&6
3598else
3599  ac_save_c_werror_flag=$ac_c_werror_flag
3600   ac_c_werror_flag=yes
3601   ac_cv_prog_cc_g=no
3602   CFLAGS="-g"
3603   cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h.  */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext
3619if { (ac_try="$ac_compile"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625$as_echo "$ac_try_echo") >&5
3626  (eval "$ac_compile") 2>conftest.er1
3627  ac_status=$?
3628  grep -v '^ *+' conftest.er1 >conftest.err
3629  rm -f conftest.er1
3630  cat conftest.err >&5
3631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); } && {
3633	 test -z "$ac_c_werror_flag" ||
3634	 test ! -s conftest.err
3635       } && test -s conftest.$ac_objext; then
3636  ac_cv_prog_cc_g=yes
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641	CFLAGS=""
3642      cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h.  */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (ac_try="$ac_compile"
3659case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664$as_echo "$ac_try_echo") >&5
3665  (eval "$ac_compile") 2>conftest.er1
3666  ac_status=$?
3667  grep -v '^ *+' conftest.er1 >conftest.err
3668  rm -f conftest.er1
3669  cat conftest.err >&5
3670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); } && {
3672	 test -z "$ac_c_werror_flag" ||
3673	 test ! -s conftest.err
3674       } && test -s conftest.$ac_objext; then
3675  :
3676else
3677  $as_echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680	ac_c_werror_flag=$ac_save_c_werror_flag
3681	 CFLAGS="-g"
3682	 cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688
3689int
3690main ()
3691{
3692
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext
3698if { (ac_try="$ac_compile"
3699case "(($ac_try" in
3700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701  *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704$as_echo "$ac_try_echo") >&5
3705  (eval "$ac_compile") 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } && {
3712	 test -z "$ac_c_werror_flag" ||
3713	 test ! -s conftest.err
3714       } && test -s conftest.$ac_objext; then
3715  ac_cv_prog_cc_g=yes
3716else
3717  $as_echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720
3721fi
3722
3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724fi
3725
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727fi
3728
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730   ac_c_werror_flag=$ac_save_c_werror_flag
3731fi
3732{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3733$as_echo "$ac_cv_prog_cc_g" >&6; }
3734if test "$ac_test_CFLAGS" = set; then
3735  CFLAGS=$ac_save_CFLAGS
3736elif test $ac_cv_prog_cc_g = yes; then
3737  if test "$GCC" = yes; then
3738    CFLAGS="-g -O2"
3739  else
3740    CFLAGS="-g"
3741  fi
3742else
3743  if test "$GCC" = yes; then
3744    CFLAGS="-O2"
3745  else
3746    CFLAGS=
3747  fi
3748fi
3749{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3750$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751if test "${ac_cv_prog_cc_c89+set}" = set; then
3752  $as_echo_n "(cached) " >&6
3753else
3754  ac_cv_prog_cc_c89=no
3755ac_save_CC=$CC
3756cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h.  */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h.  */
3762#include <stdarg.h>
3763#include <stdio.h>
3764#include <sys/types.h>
3765#include <sys/stat.h>
3766/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3767struct buf { int x; };
3768FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769static char *e (p, i)
3770     char **p;
3771     int i;
3772{
3773  return p[i];
3774}
3775static char *f (char * (*g) (char **, int), char **p, ...)
3776{
3777  char *s;
3778  va_list v;
3779  va_start (v,p);
3780  s = g (p, va_arg (v,int));
3781  va_end (v);
3782  return s;
3783}
3784
3785/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3786   function prototypes and stuff, but not '\xHH' hex character constants.
3787   These don't provoke an error unfortunately, instead are silently treated
3788   as 'x'.  The following induces an error, until -std is added to get
3789   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3790   array size at least.  It's necessary to write '\x00'==0 to get something
3791   that's true only with -std.  */
3792int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793
3794/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795   inside strings and character constants.  */
3796#define FOO(x) 'x'
3797int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798
3799int test (int i, double x);
3800struct s1 {int (*f) (int a);};
3801struct s2 {int (*f) (double a);};
3802int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803int argc;
3804char **argv;
3805int
3806main ()
3807{
3808return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815do
3816  CC="$ac_save_CC $ac_arg"
3817  rm -f conftest.$ac_objext
3818if { (ac_try="$ac_compile"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824$as_echo "$ac_try_echo") >&5
3825  (eval "$ac_compile") 2>conftest.er1
3826  ac_status=$?
3827  grep -v '^ *+' conftest.er1 >conftest.err
3828  rm -f conftest.er1
3829  cat conftest.err >&5
3830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); } && {
3832	 test -z "$ac_c_werror_flag" ||
3833	 test ! -s conftest.err
3834       } && test -s conftest.$ac_objext; then
3835  ac_cv_prog_cc_c89=$ac_arg
3836else
3837  $as_echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840
3841fi
3842
3843rm -f core conftest.err conftest.$ac_objext
3844  test "x$ac_cv_prog_cc_c89" != "xno" && break
3845done
3846rm -f conftest.$ac_ext
3847CC=$ac_save_CC
3848
3849fi
3850# AC_CACHE_VAL
3851case "x$ac_cv_prog_cc_c89" in
3852  x)
3853    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3854$as_echo "none needed" >&6; } ;;
3855  xno)
3856    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3857$as_echo "unsupported" >&6; } ;;
3858  *)
3859    CC="$CC $ac_cv_prog_cc_c89"
3860    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3861$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862esac
3863
3864
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870DEPDIR="${am__leading_dot}deps"
3871
3872ac_config_commands="$ac_config_commands depfiles"
3873
3874
3875am_make=${MAKE-make}
3876cat > confinc << 'END'
3877am__doit:
3878	@echo done
3879.PHONY: am__doit
3880END
3881# If we don't find an include directive, just comment out the code.
3882{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3883$as_echo_n "checking for style of include used by $am_make... " >&6; }
3884am__include="#"
3885am__quote=
3886_am_result=none
3887# First try GNU make style include.
3888echo "include confinc" > confmf
3889# We grep out `Entering directory' and `Leaving directory'
3890# messages which can occur if `w' ends up in MAKEFLAGS.
3891# In particular we don't look at `^make:' because GNU make might
3892# be invoked under some other name (usually "gmake"), in which
3893# case it prints its new name instead of `make'.
3894if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3895   am__include=include
3896   am__quote=
3897   _am_result=GNU
3898fi
3899# Now try BSD make style include.
3900if test "$am__include" = "#"; then
3901   echo '.include "confinc"' > confmf
3902   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3903      am__include=.include
3904      am__quote="\""
3905      _am_result=BSD
3906   fi
3907fi
3908
3909
3910{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3911$as_echo "$_am_result" >&6; }
3912rm -f confinc confmf
3913
3914# Check whether --enable-dependency-tracking was given.
3915if test "${enable_dependency_tracking+set}" = set; then
3916  enableval=$enable_dependency_tracking;
3917fi
3918
3919if test "x$enable_dependency_tracking" != xno; then
3920  am_depcomp="$ac_aux_dir/depcomp"
3921  AMDEPBACKSLASH='\'
3922fi
3923 if test "x$enable_dependency_tracking" != xno; then
3924  AMDEP_TRUE=
3925  AMDEP_FALSE='#'
3926else
3927  AMDEP_TRUE='#'
3928  AMDEP_FALSE=
3929fi
3930
3931
3932
3933depcc="$CC"   am_compiler_list=
3934
3935{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3936$as_echo_n "checking dependency style of $depcc... " >&6; }
3937if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3938  $as_echo_n "(cached) " >&6
3939else
3940  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941  # We make a subdir and do the tests there.  Otherwise we can end up
3942  # making bogus files that we don't know about and never remove.  For
3943  # instance it was reported that on HP-UX the gcc test will end up
3944  # making a dummy file named `D' -- because `-MD' means `put the output
3945  # in D'.
3946  mkdir conftest.dir
3947  # Copy depcomp to subdir because otherwise we won't find it if we're
3948  # using a relative directory.
3949  cp "$am_depcomp" conftest.dir
3950  cd conftest.dir
3951  # We will build objects and dependencies in a subdirectory because
3952  # it helps to detect inapplicable dependency modes.  For instance
3953  # both Tru64's cc and ICC support -MD to output dependencies as a
3954  # side effect of compilation, but ICC will put the dependencies in
3955  # the current directory while Tru64 will put them in the object
3956  # directory.
3957  mkdir sub
3958
3959  am_cv_CC_dependencies_compiler_type=none
3960  if test "$am_compiler_list" = ""; then
3961     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962  fi
3963  for depmode in $am_compiler_list; do
3964    # Setup a source with many dependencies, because some compilers
3965    # like to wrap large dependency lists on column 80 (with \), and
3966    # we should not choose a depcomp mode which is confused by this.
3967    #
3968    # We need to recreate these files for each test, as the compiler may
3969    # overwrite some of them when testing with obscure command lines.
3970    # This happens at least with the AIX C compiler.
3971    : > sub/conftest.c
3972    for i in 1 2 3 4 5 6; do
3973      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975      # Solaris 8's {/usr,}/bin/sh.
3976      touch sub/conftst$i.h
3977    done
3978    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980    case $depmode in
3981    nosideeffect)
3982      # after this tag, mechanisms are not by side-effect, so they'll
3983      # only be used when explicitly requested
3984      if test "x$enable_dependency_tracking" = xyes; then
3985	continue
3986      else
3987	break
3988      fi
3989      ;;
3990    none) break ;;
3991    esac
3992    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993    # mode.  It turns out that the SunPro C++ compiler does not properly
3994    # handle `-M -o', and we need to detect this.
3995    if depmode=$depmode \
3996       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3997       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3999         >/dev/null 2>conftest.err &&
4000       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4003       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004      # icc doesn't choke on unknown options, it will just issue warnings
4005      # or remarks (even with -Werror).  So we grep stderr for any message
4006      # that says an option was ignored or not supported.
4007      # When given -MP, icc 7.0 and 7.1 complain thusly:
4008      #   icc: Command line warning: ignoring option '-M'; no argument required
4009      # The diagnosis changed in icc 8.0:
4010      #   icc: Command line remark: option '-MP' not supported
4011      if (grep 'ignoring option' conftest.err ||
4012          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013        am_cv_CC_dependencies_compiler_type=$depmode
4014        break
4015      fi
4016    fi
4017  done
4018
4019  cd ..
4020  rm -rf conftest.dir
4021else
4022  am_cv_CC_dependencies_compiler_type=none
4023fi
4024
4025fi
4026{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4027$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4029
4030 if
4031  test "x$enable_dependency_tracking" != xno \
4032  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4033  am__fastdepCC_TRUE=
4034  am__fastdepCC_FALSE='#'
4035else
4036  am__fastdepCC_TRUE='#'
4037  am__fastdepCC_FALSE=
4038fi
4039
4040
4041if test "x$CC" != xcc; then
4042  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4043$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4044else
4045  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4046$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4047fi
4048set dummy $CC; ac_cc=`$as_echo "$2" |
4049		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4050if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4051  $as_echo_n "(cached) " >&6
4052else
4053  cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h.  */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h.  */
4059
4060int
4061main ()
4062{
4063
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068# Make sure it works both with $CC and with simple cc.
4069# We do the test twice because some compilers refuse to overwrite an
4070# existing .o file with -o, though they will create one.
4071ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4072rm -f conftest2.*
4073if { (case "(($ac_try" in
4074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075  *) ac_try_echo=$ac_try;;
4076esac
4077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078$as_echo "$ac_try_echo") >&5
4079  (eval "$ac_try") 2>&5
4080  ac_status=$?
4081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082  (exit $ac_status); } &&
4083   test -f conftest2.$ac_objext && { (case "(($ac_try" in
4084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085  *) ac_try_echo=$ac_try;;
4086esac
4087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088$as_echo "$ac_try_echo") >&5
4089  (eval "$ac_try") 2>&5
4090  ac_status=$?
4091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); };
4093then
4094  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4095  if test "x$CC" != xcc; then
4096    # Test first that cc exists at all.
4097    if { ac_try='cc -c conftest.$ac_ext >&5'
4098  { (case "(($ac_try" in
4099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100  *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103$as_echo "$ac_try_echo") >&5
4104  (eval "$ac_try") 2>&5
4105  ac_status=$?
4106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); }; }; then
4108      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4109      rm -f conftest2.*
4110      if { (case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115$as_echo "$ac_try_echo") >&5
4116  (eval "$ac_try") 2>&5
4117  ac_status=$?
4118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); } &&
4120	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125$as_echo "$ac_try_echo") >&5
4126  (eval "$ac_try") 2>&5
4127  ac_status=$?
4128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); };
4130      then
4131	# cc works too.
4132	:
4133      else
4134	# cc exists but doesn't like -o.
4135	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4136      fi
4137    fi
4138  fi
4139else
4140  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4141fi
4142rm -f core conftest*
4143
4144fi
4145if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4146  { $as_echo "$as_me:$LINENO: result: yes" >&5
4147$as_echo "yes" >&6; }
4148else
4149  { $as_echo "$as_me:$LINENO: result: no" >&5
4150$as_echo "no" >&6; }
4151
4152cat >>confdefs.h <<\_ACEOF
4153#define NO_MINUS_C_MINUS_O 1
4154_ACEOF
4155
4156fi
4157
4158# FIXME: we rely on the cache variable name because
4159# there is no other way.
4160set dummy $CC
4161am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4162eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4163if test "$am_t" != yes; then
4164   # Losing compiler, so override with the script.
4165   # FIXME: It is wrong to rewrite CC.
4166   # But if we don't then we get into trouble of one sort or another.
4167   # A longer-term fix would be to have automake use am__CC in this case,
4168   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4169   CC="$am_aux_dir/compile $CC"
4170fi
4171
4172
4173
4174ac_ext=c
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4180$as_echo_n "checking how to run the C preprocessor... " >&6; }
4181# On Suns, sometimes $CPP names a directory.
4182if test -n "$CPP" && test -d "$CPP"; then
4183  CPP=
4184fi
4185if test -z "$CPP"; then
4186  if test "${ac_cv_prog_CPP+set}" = set; then
4187  $as_echo_n "(cached) " >&6
4188else
4189      # Double quotes because CPP needs to be expanded
4190    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4191    do
4192      ac_preproc_ok=false
4193for ac_c_preproc_warn_flag in '' yes
4194do
4195  # Use a header file that comes with gcc, so configuring glibc
4196  # with a fresh cross-compiler works.
4197  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198  # <limits.h> exists even on freestanding compilers.
4199  # On the NeXT, cc -E runs the code through the compiler's parser,
4200  # not just through cpp. "Syntax error" is here to catch this case.
4201  cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h.  */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h.  */
4207#ifdef __STDC__
4208# include <limits.h>
4209#else
4210# include <assert.h>
4211#endif
4212		     Syntax error
4213_ACEOF
4214if { (ac_try="$ac_cpp conftest.$ac_ext"
4215case "(($ac_try" in
4216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217  *) ac_try_echo=$ac_try;;
4218esac
4219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4220$as_echo "$ac_try_echo") >&5
4221  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4222  ac_status=$?
4223  grep -v '^ *+' conftest.er1 >conftest.err
4224  rm -f conftest.er1
4225  cat conftest.err >&5
4226  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } >/dev/null && {
4228	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229	 test ! -s conftest.err
4230       }; then
4231  :
4232else
4233  $as_echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236  # Broken: fails on valid input.
4237continue
4238fi
4239
4240rm -f conftest.err conftest.$ac_ext
4241
4242  # OK, works on sane cases.  Now check whether nonexistent headers
4243  # can be detected and how.
4244  cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h.  */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h.  */
4250#include <ac_nonexistent.h>
4251_ACEOF
4252if { (ac_try="$ac_cpp conftest.$ac_ext"
4253case "(($ac_try" in
4254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255  *) ac_try_echo=$ac_try;;
4256esac
4257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4258$as_echo "$ac_try_echo") >&5
4259  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4260  ac_status=$?
4261  grep -v '^ *+' conftest.er1 >conftest.err
4262  rm -f conftest.er1
4263  cat conftest.err >&5
4264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); } >/dev/null && {
4266	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267	 test ! -s conftest.err
4268       }; then
4269  # Broken: success on invalid input.
4270continue
4271else
4272  $as_echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275  # Passes both tests.
4276ac_preproc_ok=:
4277break
4278fi
4279
4280rm -f conftest.err conftest.$ac_ext
4281
4282done
4283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284rm -f conftest.err conftest.$ac_ext
4285if $ac_preproc_ok; then
4286  break
4287fi
4288
4289    done
4290    ac_cv_prog_CPP=$CPP
4291
4292fi
4293  CPP=$ac_cv_prog_CPP
4294else
4295  ac_cv_prog_CPP=$CPP
4296fi
4297{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4298$as_echo "$CPP" >&6; }
4299ac_preproc_ok=false
4300for ac_c_preproc_warn_flag in '' yes
4301do
4302  # Use a header file that comes with gcc, so configuring glibc
4303  # with a fresh cross-compiler works.
4304  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305  # <limits.h> exists even on freestanding compilers.
4306  # On the NeXT, cc -E runs the code through the compiler's parser,
4307  # not just through cpp. "Syntax error" is here to catch this case.
4308  cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h.  */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h.  */
4314#ifdef __STDC__
4315# include <limits.h>
4316#else
4317# include <assert.h>
4318#endif
4319		     Syntax error
4320_ACEOF
4321if { (ac_try="$ac_cpp conftest.$ac_ext"
4322case "(($ac_try" in
4323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324  *) ac_try_echo=$ac_try;;
4325esac
4326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327$as_echo "$ac_try_echo") >&5
4328  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329  ac_status=$?
4330  grep -v '^ *+' conftest.er1 >conftest.err
4331  rm -f conftest.er1
4332  cat conftest.err >&5
4333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); } >/dev/null && {
4335	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336	 test ! -s conftest.err
4337       }; then
4338  :
4339else
4340  $as_echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343  # Broken: fails on valid input.
4344continue
4345fi
4346
4347rm -f conftest.err conftest.$ac_ext
4348
4349  # OK, works on sane cases.  Now check whether nonexistent headers
4350  # can be detected and how.
4351  cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h.  */
4353_ACEOF
4354cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF
4356/* end confdefs.h.  */
4357#include <ac_nonexistent.h>
4358_ACEOF
4359if { (ac_try="$ac_cpp conftest.$ac_ext"
4360case "(($ac_try" in
4361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362  *) ac_try_echo=$ac_try;;
4363esac
4364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4365$as_echo "$ac_try_echo") >&5
4366  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4367  ac_status=$?
4368  grep -v '^ *+' conftest.er1 >conftest.err
4369  rm -f conftest.er1
4370  cat conftest.err >&5
4371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); } >/dev/null && {
4373	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374	 test ! -s conftest.err
4375       }; then
4376  # Broken: success on invalid input.
4377continue
4378else
4379  $as_echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382  # Passes both tests.
4383ac_preproc_ok=:
4384break
4385fi
4386
4387rm -f conftest.err conftest.$ac_ext
4388
4389done
4390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4391rm -f conftest.err conftest.$ac_ext
4392if $ac_preproc_ok; then
4393  :
4394else
4395  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398See \`config.log' for more details." >&5
4399$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400See \`config.log' for more details." >&2;}
4401   { (exit 1); exit 1; }; }; }
4402fi
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4412$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4413if test "${ac_cv_path_GREP+set}" = set; then
4414  $as_echo_n "(cached) " >&6
4415else
4416  if test -z "$GREP"; then
4417  ac_path_GREP_found=false
4418  # Loop through the user's path and test for each of PROGNAME-LIST
4419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424  for ac_prog in grep ggrep; do
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4428# Check for GNU ac_path_GREP and select it if it is found.
4429  # Check for GNU $ac_path_GREP
4430case `"$ac_path_GREP" --version 2>&1` in
4431*GNU*)
4432  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433*)
4434  ac_count=0
4435  $as_echo_n 0123456789 >"conftest.in"
4436  while :
4437  do
4438    cat "conftest.in" "conftest.in" >"conftest.tmp"
4439    mv "conftest.tmp" "conftest.in"
4440    cp "conftest.in" "conftest.nl"
4441    $as_echo 'GREP' >> "conftest.nl"
4442    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444    ac_count=`expr $ac_count + 1`
4445    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446      # Best one so far, save it but keep looking for a better one
4447      ac_cv_path_GREP="$ac_path_GREP"
4448      ac_path_GREP_max=$ac_count
4449    fi
4450    # 10*(2^10) chars as input seems more than enough
4451    test $ac_count -gt 10 && break
4452  done
4453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454esac
4455
4456      $ac_path_GREP_found && break 3
4457    done
4458  done
4459done
4460IFS=$as_save_IFS
4461  if test -z "$ac_cv_path_GREP"; then
4462    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4463$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4464   { (exit 1); exit 1; }; }
4465  fi
4466else
4467  ac_cv_path_GREP=$GREP
4468fi
4469
4470fi
4471{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4472$as_echo "$ac_cv_path_GREP" >&6; }
4473 GREP="$ac_cv_path_GREP"
4474
4475
4476{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4477$as_echo_n "checking for egrep... " >&6; }
4478if test "${ac_cv_path_EGREP+set}" = set; then
4479  $as_echo_n "(cached) " >&6
4480else
4481  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4482   then ac_cv_path_EGREP="$GREP -E"
4483   else
4484     if test -z "$EGREP"; then
4485  ac_path_EGREP_found=false
4486  # Loop through the user's path and test for each of PROGNAME-LIST
4487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489do
4490  IFS=$as_save_IFS
4491  test -z "$as_dir" && as_dir=.
4492  for ac_prog in egrep; do
4493    for ac_exec_ext in '' $ac_executable_extensions; do
4494      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4495      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4496# Check for GNU ac_path_EGREP and select it if it is found.
4497  # Check for GNU $ac_path_EGREP
4498case `"$ac_path_EGREP" --version 2>&1` in
4499*GNU*)
4500  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4501*)
4502  ac_count=0
4503  $as_echo_n 0123456789 >"conftest.in"
4504  while :
4505  do
4506    cat "conftest.in" "conftest.in" >"conftest.tmp"
4507    mv "conftest.tmp" "conftest.in"
4508    cp "conftest.in" "conftest.nl"
4509    $as_echo 'EGREP' >> "conftest.nl"
4510    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512    ac_count=`expr $ac_count + 1`
4513    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4514      # Best one so far, save it but keep looking for a better one
4515      ac_cv_path_EGREP="$ac_path_EGREP"
4516      ac_path_EGREP_max=$ac_count
4517    fi
4518    # 10*(2^10) chars as input seems more than enough
4519    test $ac_count -gt 10 && break
4520  done
4521  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522esac
4523
4524      $ac_path_EGREP_found && break 3
4525    done
4526  done
4527done
4528IFS=$as_save_IFS
4529  if test -z "$ac_cv_path_EGREP"; then
4530    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4531$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4532   { (exit 1); exit 1; }; }
4533  fi
4534else
4535  ac_cv_path_EGREP=$EGREP
4536fi
4537
4538   fi
4539fi
4540{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4541$as_echo "$ac_cv_path_EGREP" >&6; }
4542 EGREP="$ac_cv_path_EGREP"
4543
4544
4545{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4546$as_echo_n "checking for ANSI C header files... " >&6; }
4547if test "${ac_cv_header_stdc+set}" = set; then
4548  $as_echo_n "(cached) " >&6
4549else
4550  cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h.  */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h.  */
4556#include <stdlib.h>
4557#include <stdarg.h>
4558#include <string.h>
4559#include <float.h>
4560
4561int
4562main ()
4563{
4564
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext
4570if { (ac_try="$ac_compile"
4571case "(($ac_try" in
4572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573  *) ac_try_echo=$ac_try;;
4574esac
4575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576$as_echo "$ac_try_echo") >&5
4577  (eval "$ac_compile") 2>conftest.er1
4578  ac_status=$?
4579  grep -v '^ *+' conftest.er1 >conftest.err
4580  rm -f conftest.er1
4581  cat conftest.err >&5
4582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); } && {
4584	 test -z "$ac_c_werror_flag" ||
4585	 test ! -s conftest.err
4586       } && test -s conftest.$ac_objext; then
4587  ac_cv_header_stdc=yes
4588else
4589  $as_echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592	ac_cv_header_stdc=no
4593fi
4594
4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596
4597if test $ac_cv_header_stdc = yes; then
4598  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599  cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605#include <string.h>
4606
4607_ACEOF
4608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609  $EGREP "memchr" >/dev/null 2>&1; then
4610  :
4611else
4612  ac_cv_header_stdc=no
4613fi
4614rm -f conftest*
4615
4616fi
4617
4618if test $ac_cv_header_stdc = yes; then
4619  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620  cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h.  */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h.  */
4626#include <stdlib.h>
4627
4628_ACEOF
4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630  $EGREP "free" >/dev/null 2>&1; then
4631  :
4632else
4633  ac_cv_header_stdc=no
4634fi
4635rm -f conftest*
4636
4637fi
4638
4639if test $ac_cv_header_stdc = yes; then
4640  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641  if test "$cross_compiling" = yes; then
4642  :
4643else
4644  cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h.  */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h.  */
4650#include <ctype.h>
4651#include <stdlib.h>
4652#if ((' ' & 0x0FF) == 0x020)
4653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655#else
4656# define ISLOWER(c) \
4657		   (('a' <= (c) && (c) <= 'i') \
4658		     || ('j' <= (c) && (c) <= 'r') \
4659		     || ('s' <= (c) && (c) <= 'z'))
4660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661#endif
4662
4663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664int
4665main ()
4666{
4667  int i;
4668  for (i = 0; i < 256; i++)
4669    if (XOR (islower (i), ISLOWER (i))
4670	|| toupper (i) != TOUPPER (i))
4671      return 2;
4672  return 0;
4673}
4674_ACEOF
4675rm -f conftest$ac_exeext
4676if { (ac_try="$ac_link"
4677case "(($ac_try" in
4678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679  *) ac_try_echo=$ac_try;;
4680esac
4681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682$as_echo "$ac_try_echo") >&5
4683  (eval "$ac_link") 2>&5
4684  ac_status=$?
4685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687  { (case "(($ac_try" in
4688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689  *) ac_try_echo=$ac_try;;
4690esac
4691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692$as_echo "$ac_try_echo") >&5
4693  (eval "$ac_try") 2>&5
4694  ac_status=$?
4695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); }; }; then
4697  :
4698else
4699  $as_echo "$as_me: program exited with status $ac_status" >&5
4700$as_echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703( exit $ac_status )
4704ac_cv_header_stdc=no
4705fi
4706rm -rf conftest.dSYM
4707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4708fi
4709
4710
4711fi
4712fi
4713{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714$as_echo "$ac_cv_header_stdc" >&6; }
4715if test $ac_cv_header_stdc = yes; then
4716
4717cat >>confdefs.h <<\_ACEOF
4718#define STDC_HEADERS 1
4719_ACEOF
4720
4721fi
4722
4723# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734		  inttypes.h stdint.h unistd.h
4735do
4736as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4738$as_echo_n "checking for $ac_header... " >&6; }
4739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4740  $as_echo_n "(cached) " >&6
4741else
4742  cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h.  */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h.  */
4748$ac_includes_default
4749
4750#include <$ac_header>
4751_ACEOF
4752rm -f conftest.$ac_objext
4753if { (ac_try="$ac_compile"
4754case "(($ac_try" in
4755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756  *) ac_try_echo=$ac_try;;
4757esac
4758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759$as_echo "$ac_try_echo") >&5
4760  (eval "$ac_compile") 2>conftest.er1
4761  ac_status=$?
4762  grep -v '^ *+' conftest.er1 >conftest.err
4763  rm -f conftest.er1
4764  cat conftest.err >&5
4765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); } && {
4767	 test -z "$ac_c_werror_flag" ||
4768	 test ! -s conftest.err
4769       } && test -s conftest.$ac_objext; then
4770  eval "$as_ac_Header=yes"
4771else
4772  $as_echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775	eval "$as_ac_Header=no"
4776fi
4777
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779fi
4780ac_res=`eval 'as_val=${'$as_ac_Header'}
4781		 $as_echo "$as_val"'`
4782	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4783$as_echo "$ac_res" >&6; }
4784as_val=`eval 'as_val=${'$as_ac_Header'}
4785		 $as_echo "$as_val"'`
4786   if test "x$as_val" = x""yes; then
4787  cat >>confdefs.h <<_ACEOF
4788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4789_ACEOF
4790
4791fi
4792
4793done
4794
4795
4796
4797
4798
4799  if test "${ac_cv_header_minix_config_h+set}" = set; then
4800  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801$as_echo_n "checking for minix/config.h... " >&6; }
4802if test "${ac_cv_header_minix_config_h+set}" = set; then
4803  $as_echo_n "(cached) " >&6
4804fi
4805{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4806$as_echo "$ac_cv_header_minix_config_h" >&6; }
4807else
4808  # Is the header compilable?
4809{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4810$as_echo_n "checking minix/config.h usability... " >&6; }
4811cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h.  */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h.  */
4817$ac_includes_default
4818#include <minix/config.h>
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (ac_try="$ac_compile"
4822case "(($ac_try" in
4823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824  *) ac_try_echo=$ac_try;;
4825esac
4826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827$as_echo "$ac_try_echo") >&5
4828  (eval "$ac_compile") 2>conftest.er1
4829  ac_status=$?
4830  grep -v '^ *+' conftest.er1 >conftest.err
4831  rm -f conftest.er1
4832  cat conftest.err >&5
4833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); } && {
4835	 test -z "$ac_c_werror_flag" ||
4836	 test ! -s conftest.err
4837       } && test -s conftest.$ac_objext; then
4838  ac_header_compiler=yes
4839else
4840  $as_echo "$as_me: failed program was:" >&5
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
4843	ac_header_compiler=no
4844fi
4845
4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848$as_echo "$ac_header_compiler" >&6; }
4849
4850# Is the header present?
4851{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4852$as_echo_n "checking minix/config.h presence... " >&6; }
4853cat >conftest.$ac_ext <<_ACEOF
4854/* confdefs.h.  */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h.  */
4859#include <minix/config.h>
4860_ACEOF
4861if { (ac_try="$ac_cpp conftest.$ac_ext"
4862case "(($ac_try" in
4863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864  *) ac_try_echo=$ac_try;;
4865esac
4866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867$as_echo "$ac_try_echo") >&5
4868  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869  ac_status=$?
4870  grep -v '^ *+' conftest.er1 >conftest.err
4871  rm -f conftest.er1
4872  cat conftest.err >&5
4873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); } >/dev/null && {
4875	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876	 test ! -s conftest.err
4877       }; then
4878  ac_header_preproc=yes
4879else
4880  $as_echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883  ac_header_preproc=no
4884fi
4885
4886rm -f conftest.err conftest.$ac_ext
4887{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888$as_echo "$ac_header_preproc" >&6; }
4889
4890# So?  What about this header?
4891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4892  yes:no: )
4893    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4894$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4896$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4897    ac_header_preproc=yes
4898    ;;
4899  no:yes:* )
4900    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4901$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4902    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4903$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4904    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4905$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4906    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4907$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4908    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4909$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4910    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4911$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4912    ( cat <<\_ASBOX
4913## ------------------------------- ##
4914## Report this to bug-wget@gnu.org ##
4915## ------------------------------- ##
4916_ASBOX
4917     ) | sed "s/^/$as_me: WARNING:     /" >&2
4918    ;;
4919esac
4920{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4921$as_echo_n "checking for minix/config.h... " >&6; }
4922if test "${ac_cv_header_minix_config_h+set}" = set; then
4923  $as_echo_n "(cached) " >&6
4924else
4925  ac_cv_header_minix_config_h=$ac_header_preproc
4926fi
4927{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4928$as_echo "$ac_cv_header_minix_config_h" >&6; }
4929
4930fi
4931if test "x$ac_cv_header_minix_config_h" = x""yes; then
4932  MINIX=yes
4933else
4934  MINIX=
4935fi
4936
4937
4938  if test "$MINIX" = yes; then
4939
4940cat >>confdefs.h <<\_ACEOF
4941#define _POSIX_SOURCE 1
4942_ACEOF
4943
4944
4945cat >>confdefs.h <<\_ACEOF
4946#define _POSIX_1_SOURCE 2
4947_ACEOF
4948
4949
4950cat >>confdefs.h <<\_ACEOF
4951#define _MINIX 1
4952_ACEOF
4953
4954  fi
4955
4956        case "$host_os" in
4957    hpux*)
4958
4959cat >>confdefs.h <<\_ACEOF
4960#define _XOPEN_SOURCE 500
4961_ACEOF
4962
4963      ;;
4964  esac
4965
4966
4967
4968  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4969$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4970if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4971  $as_echo_n "(cached) " >&6
4972else
4973  cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979
4980#	  define __EXTENSIONS__ 1
4981	  $ac_includes_default
4982int
4983main ()
4984{
4985
4986  ;
4987  return 0;
4988}
4989_ACEOF
4990rm -f conftest.$ac_objext
4991if { (ac_try="$ac_compile"
4992case "(($ac_try" in
4993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994  *) ac_try_echo=$ac_try;;
4995esac
4996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997$as_echo "$ac_try_echo") >&5
4998  (eval "$ac_compile") 2>conftest.er1
4999  ac_status=$?
5000  grep -v '^ *+' conftest.er1 >conftest.err
5001  rm -f conftest.er1
5002  cat conftest.err >&5
5003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); } && {
5005	 test -z "$ac_c_werror_flag" ||
5006	 test ! -s conftest.err
5007       } && test -s conftest.$ac_objext; then
5008  ac_cv_safe_to_define___extensions__=yes
5009else
5010  $as_echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013	ac_cv_safe_to_define___extensions__=no
5014fi
5015
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017fi
5018{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5019$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5020  test $ac_cv_safe_to_define___extensions__ = yes &&
5021    cat >>confdefs.h <<\_ACEOF
5022#define __EXTENSIONS__ 1
5023_ACEOF
5024
5025  cat >>confdefs.h <<\_ACEOF
5026#define _ALL_SOURCE 1
5027_ACEOF
5028
5029  cat >>confdefs.h <<\_ACEOF
5030#define _GNU_SOURCE 1
5031_ACEOF
5032
5033  cat >>confdefs.h <<\_ACEOF
5034#define _POSIX_PTHREAD_SEMANTICS 1
5035_ACEOF
5036
5037  cat >>confdefs.h <<\_ACEOF
5038#define _TANDEM_SOURCE 1
5039_ACEOF
5040
5041
5042
5043
5044if test -n "$ac_tool_prefix"; then
5045  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5048$as_echo_n "checking for $ac_word... " >&6; }
5049if test "${ac_cv_prog_RANLIB+set}" = set; then
5050  $as_echo_n "(cached) " >&6
5051else
5052  if test -n "$RANLIB"; then
5053  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058  IFS=$as_save_IFS
5059  test -z "$as_dir" && as_dir=.
5060  for ac_exec_ext in '' $ac_executable_extensions; do
5061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5063    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064    break 2
5065  fi
5066done
5067done
5068IFS=$as_save_IFS
5069
5070fi
5071fi
5072RANLIB=$ac_cv_prog_RANLIB
5073if test -n "$RANLIB"; then
5074  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5075$as_echo "$RANLIB" >&6; }
5076else
5077  { $as_echo "$as_me:$LINENO: result: no" >&5
5078$as_echo "no" >&6; }
5079fi
5080
5081
5082fi
5083if test -z "$ac_cv_prog_RANLIB"; then
5084  ac_ct_RANLIB=$RANLIB
5085  # Extract the first word of "ranlib", so it can be a program name with args.
5086set dummy ranlib; ac_word=$2
5087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5088$as_echo_n "checking for $ac_word... " >&6; }
5089if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5090  $as_echo_n "(cached) " >&6
5091else
5092  if test -n "$ac_ct_RANLIB"; then
5093  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5094else
5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096for as_dir in $PATH
5097do
5098  IFS=$as_save_IFS
5099  test -z "$as_dir" && as_dir=.
5100  for ac_exec_ext in '' $ac_executable_extensions; do
5101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102    ac_cv_prog_ac_ct_RANLIB="ranlib"
5103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104    break 2
5105  fi
5106done
5107done
5108IFS=$as_save_IFS
5109
5110fi
5111fi
5112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5113if test -n "$ac_ct_RANLIB"; then
5114  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5115$as_echo "$ac_ct_RANLIB" >&6; }
5116else
5117  { $as_echo "$as_me:$LINENO: result: no" >&5
5118$as_echo "no" >&6; }
5119fi
5120
5121  if test "x$ac_ct_RANLIB" = x; then
5122    RANLIB=":"
5123  else
5124    case $cross_compiling:$ac_tool_warned in
5125yes:)
5126{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128ac_tool_warned=yes ;;
5129esac
5130    RANLIB=$ac_ct_RANLIB
5131  fi
5132else
5133  RANLIB="$ac_cv_prog_RANLIB"
5134fi
5135
5136
5137
5138
5139
5140
5141
5142
5143{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5144$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5145if test "${ac_cv_sys_largefile_source+set}" = set; then
5146  $as_echo_n "(cached) " >&6
5147else
5148  while :; do
5149  cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h.  */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h.  */
5155#include <sys/types.h> /* for off_t */
5156     #include <stdio.h>
5157int
5158main ()
5159{
5160int (*fp) (FILE *, off_t, int) = fseeko;
5161     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5162  ;
5163  return 0;
5164}
5165_ACEOF
5166rm -f conftest.$ac_objext conftest$ac_exeext
5167if { (ac_try="$ac_link"
5168case "(($ac_try" in
5169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170  *) ac_try_echo=$ac_try;;
5171esac
5172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173$as_echo "$ac_try_echo") >&5
5174  (eval "$ac_link") 2>conftest.er1
5175  ac_status=$?
5176  grep -v '^ *+' conftest.er1 >conftest.err
5177  rm -f conftest.er1
5178  cat conftest.err >&5
5179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); } && {
5181	 test -z "$ac_c_werror_flag" ||
5182	 test ! -s conftest.err
5183       } && test -s conftest$ac_exeext && {
5184	 test "$cross_compiling" = yes ||
5185	 $as_test_x conftest$ac_exeext
5186       }; then
5187  ac_cv_sys_largefile_source=no; break
5188else
5189  $as_echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
5192
5193fi
5194
5195rm -rf conftest.dSYM
5196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5197      conftest$ac_exeext conftest.$ac_ext
5198  cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h.  */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h.  */
5204#define _LARGEFILE_SOURCE 1
5205#include <sys/types.h> /* for off_t */
5206     #include <stdio.h>
5207int
5208main ()
5209{
5210int (*fp) (FILE *, off_t, int) = fseeko;
5211     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5212  ;
5213  return 0;
5214}
5215_ACEOF
5216rm -f conftest.$ac_objext conftest$ac_exeext
5217if { (ac_try="$ac_link"
5218case "(($ac_try" in
5219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220  *) ac_try_echo=$ac_try;;
5221esac
5222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223$as_echo "$ac_try_echo") >&5
5224  (eval "$ac_link") 2>conftest.er1
5225  ac_status=$?
5226  grep -v '^ *+' conftest.er1 >conftest.err
5227  rm -f conftest.er1
5228  cat conftest.err >&5
5229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); } && {
5231	 test -z "$ac_c_werror_flag" ||
5232	 test ! -s conftest.err
5233       } && test -s conftest$ac_exeext && {
5234	 test "$cross_compiling" = yes ||
5235	 $as_test_x conftest$ac_exeext
5236       }; then
5237  ac_cv_sys_largefile_source=1; break
5238else
5239  $as_echo "$as_me: failed program was:" >&5
5240sed 's/^/| /' conftest.$ac_ext >&5
5241
5242
5243fi
5244
5245rm -rf conftest.dSYM
5246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5247      conftest$ac_exeext conftest.$ac_ext
5248  ac_cv_sys_largefile_source=unknown
5249  break
5250done
5251fi
5252{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5253$as_echo "$ac_cv_sys_largefile_source" >&6; }
5254case $ac_cv_sys_largefile_source in #(
5255  no | unknown) ;;
5256  *)
5257cat >>confdefs.h <<_ACEOF
5258#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5259_ACEOF
5260;;
5261esac
5262rm -rf conftest*
5263
5264# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5265# in glibc 2.1.3, but that breaks too many other things.
5266# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5267if test $ac_cv_sys_largefile_source != unknown; then
5268
5269cat >>confdefs.h <<\_ACEOF
5270#define HAVE_FSEEKO 1
5271_ACEOF
5272
5273fi
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5286$as_echo_n "checking whether NLS is requested... " >&6; }
5287    # Check whether --enable-nls was given.
5288if test "${enable_nls+set}" = set; then
5289  enableval=$enable_nls; USE_NLS=$enableval
5290else
5291  USE_NLS=yes
5292fi
5293
5294  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5295$as_echo "$USE_NLS" >&6; }
5296
5297
5298
5299
5300      GETTEXT_MACRO_VERSION=0.17
5301
5302
5303
5304        # Extract the first word of "msgfmt", so it can be a program name with args.
5305set dummy msgfmt; ac_word=$2
5306{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5307$as_echo_n "checking for $ac_word... " >&6; }
5308if test "${ac_cv_path_MSGFMT+set}" = set; then
5309  $as_echo_n "(cached) " >&6
5310else
5311  case "$MSGFMT" in
5312  /*)
5313  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5314  ;;
5315  *)
5316  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5317  for ac_dir in $PATH; do
5318    test -z "$ac_dir" && ac_dir=.
5319    if test -f $ac_dir/$ac_word; then
5320      if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5321     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5322	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5323	break
5324      fi
5325    fi
5326  done
5327  IFS="$ac_save_ifs"
5328  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5329  ;;
5330esac
5331fi
5332MSGFMT="$ac_cv_path_MSGFMT"
5333if test -n "$MSGFMT"; then
5334  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5335$as_echo "$MSGFMT" >&6; }
5336else
5337  { $as_echo "$as_me:$LINENO: result: no" >&5
5338$as_echo "no" >&6; }
5339fi
5340
5341  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5342set dummy gmsgfmt; ac_word=$2
5343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
5345if test "${ac_cv_path_GMSGFMT+set}" = set; then
5346  $as_echo_n "(cached) " >&6
5347else
5348  case $GMSGFMT in
5349  [\\/]* | ?:[\\/]*)
5350  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5351  ;;
5352  *)
5353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358  for ac_exec_ext in '' $ac_executable_extensions; do
5359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5361    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365done
5366IFS=$as_save_IFS
5367
5368  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5369  ;;
5370esac
5371fi
5372GMSGFMT=$ac_cv_path_GMSGFMT
5373if test -n "$GMSGFMT"; then
5374  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5375$as_echo "$GMSGFMT" >&6; }
5376else
5377  { $as_echo "$as_me:$LINENO: result: no" >&5
5378$as_echo "no" >&6; }
5379fi
5380
5381
5382
5383    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5384    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5385    *) MSGFMT_015=$MSGFMT ;;
5386  esac
5387
5388  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5389    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5390    *) GMSGFMT_015=$GMSGFMT ;;
5391  esac
5392
5393
5394        # Extract the first word of "xgettext", so it can be a program name with args.
5395set dummy xgettext; ac_word=$2
5396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if test "${ac_cv_path_XGETTEXT+set}" = set; then
5399  $as_echo_n "(cached) " >&6
5400else
5401  case "$XGETTEXT" in
5402  /*)
5403  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5404  ;;
5405  *)
5406  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5407  for ac_dir in $PATH; do
5408    test -z "$ac_dir" && ac_dir=.
5409    if test -f $ac_dir/$ac_word; then
5410      if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5411     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5412	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5413	break
5414      fi
5415    fi
5416  done
5417  IFS="$ac_save_ifs"
5418  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5419  ;;
5420esac
5421fi
5422XGETTEXT="$ac_cv_path_XGETTEXT"
5423if test -n "$XGETTEXT"; then
5424  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5425$as_echo "$XGETTEXT" >&6; }
5426else
5427  { $as_echo "$as_me:$LINENO: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431    rm -f messages.po
5432
5433    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5434    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5435    *) XGETTEXT_015=$XGETTEXT ;;
5436  esac
5437
5438
5439    # Extract the first word of "msgmerge", so it can be a program name with args.
5440set dummy msgmerge; ac_word=$2
5441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if test "${ac_cv_path_MSGMERGE+set}" = set; then
5444  $as_echo_n "(cached) " >&6
5445else
5446  case "$MSGMERGE" in
5447  /*)
5448  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5449  ;;
5450  *)
5451  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5452  for ac_dir in $PATH; do
5453    test -z "$ac_dir" && ac_dir=.
5454    if test -f $ac_dir/$ac_word; then
5455      if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5456	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5457	break
5458      fi
5459    fi
5460  done
5461  IFS="$ac_save_ifs"
5462  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5463  ;;
5464esac
5465fi
5466MSGMERGE="$ac_cv_path_MSGMERGE"
5467if test -n "$MSGMERGE"; then
5468  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5469$as_echo "$MSGMERGE" >&6; }
5470else
5471  { $as_echo "$as_me:$LINENO: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476        test -n "$localedir" || localedir='${datadir}/locale'
5477
5478
5479    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5480
5481
5482  ac_config_commands="$ac_config_commands po-directories"
5483
5484
5485
5486      if test "X$prefix" = "XNONE"; then
5487    acl_final_prefix="$ac_default_prefix"
5488  else
5489    acl_final_prefix="$prefix"
5490  fi
5491  if test "X$exec_prefix" = "XNONE"; then
5492    acl_final_exec_prefix='${prefix}'
5493  else
5494    acl_final_exec_prefix="$exec_prefix"
5495  fi
5496  acl_save_prefix="$prefix"
5497  prefix="$acl_final_prefix"
5498  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5499  prefix="$acl_save_prefix"
5500
5501
5502# Check whether --with-gnu-ld was given.
5503if test "${with_gnu_ld+set}" = set; then
5504  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5505else
5506  with_gnu_ld=no
5507fi
5508
5509# Prepare PATH_SEPARATOR.
5510# The user is always right.
5511if test "${PATH_SEPARATOR+set}" != set; then
5512  echo "#! /bin/sh" >conf$$.sh
5513  echo  "exit 0"   >>conf$$.sh
5514  chmod +x conf$$.sh
5515  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5516    PATH_SEPARATOR=';'
5517  else
5518    PATH_SEPARATOR=:
5519  fi
5520  rm -f conf$$.sh
5521fi
5522ac_prog=ld
5523if test "$GCC" = yes; then
5524  # Check if gcc -print-prog-name=ld gives a path.
5525  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5526$as_echo_n "checking for ld used by GCC... " >&6; }
5527  case $host in
5528  *-*-mingw*)
5529    # gcc leaves a trailing carriage return which upsets mingw
5530    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5531  *)
5532    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5533  esac
5534  case $ac_prog in
5535    # Accept absolute paths.
5536    [\\/]* | [A-Za-z]:[\\/]*)
5537      re_direlt='/[^/][^/]*/\.\./'
5538      # Canonicalize the path of ld
5539      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5540      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5541	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5542      done
5543      test -z "$LD" && LD="$ac_prog"
5544      ;;
5545  "")
5546    # If it fails, then pretend we aren't using GCC.
5547    ac_prog=ld
5548    ;;
5549  *)
5550    # If it is relative, then search for the first ld in PATH.
5551    with_gnu_ld=unknown
5552    ;;
5553  esac
5554elif test "$with_gnu_ld" = yes; then
5555  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5556$as_echo_n "checking for GNU ld... " >&6; }
5557else
5558  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5559$as_echo_n "checking for non-GNU ld... " >&6; }
5560fi
5561if test "${acl_cv_path_LD+set}" = set; then
5562  $as_echo_n "(cached) " >&6
5563else
5564  if test -z "$LD"; then
5565  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5566  for ac_dir in $PATH; do
5567    test -z "$ac_dir" && ac_dir=.
5568    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5569      acl_cv_path_LD="$ac_dir/$ac_prog"
5570      # Check to see if the program is GNU ld.  I'd rather use --version,
5571      # but apparently some GNU ld's only accept -v.
5572      # Break only if it was the GNU/non-GNU ld that we prefer.
5573      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5574      *GNU* | *'with BFD'*)
5575	test "$with_gnu_ld" != no && break ;;
5576      *)
5577	test "$with_gnu_ld" != yes && break ;;
5578      esac
5579    fi
5580  done
5581  IFS="$ac_save_ifs"
5582else
5583  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5584fi
5585fi
5586
5587LD="$acl_cv_path_LD"
5588if test -n "$LD"; then
5589  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5590$as_echo "$LD" >&6; }
5591else
5592  { $as_echo "$as_me:$LINENO: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5596$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5597   { (exit 1); exit 1; }; }
5598{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5599$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5600if test "${acl_cv_prog_gnu_ld+set}" = set; then
5601  $as_echo_n "(cached) " >&6
5602else
5603  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5604case `$LD -v 2>&1 </dev/null` in
5605*GNU* | *'with BFD'*)
5606  acl_cv_prog_gnu_ld=yes ;;
5607*)
5608  acl_cv_prog_gnu_ld=no ;;
5609esac
5610fi
5611{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5612$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5613with_gnu_ld=$acl_cv_prog_gnu_ld
5614
5615
5616
5617
5618                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5619$as_echo_n "checking for shared library run path origin... " >&6; }
5620if test "${acl_cv_rpath+set}" = set; then
5621  $as_echo_n "(cached) " >&6
5622else
5623
5624    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5625    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5626    . ./conftest.sh
5627    rm -f ./conftest.sh
5628    acl_cv_rpath=done
5629
5630fi
5631{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5632$as_echo "$acl_cv_rpath" >&6; }
5633  wl="$acl_cv_wl"
5634  acl_libext="$acl_cv_libext"
5635  acl_shlibext="$acl_cv_shlibext"
5636  acl_libname_spec="$acl_cv_libname_spec"
5637  acl_library_names_spec="$acl_cv_library_names_spec"
5638  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5639  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5640  acl_hardcode_direct="$acl_cv_hardcode_direct"
5641  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5642    # Check whether --enable-rpath was given.
5643if test "${enable_rpath+set}" = set; then
5644  enableval=$enable_rpath; :
5645else
5646  enable_rpath=yes
5647fi
5648
5649
5650
5651                  acl_libdirstem=lib
5652  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5653  if test -n "$searchpath"; then
5654    acl_save_IFS="${IFS= 	}"; IFS=":"
5655    for searchdir in $searchpath; do
5656      if test -d "$searchdir"; then
5657        case "$searchdir" in
5658          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5659          *) searchdir=`cd "$searchdir" && pwd`
5660             case "$searchdir" in
5661               */lib64 ) acl_libdirstem=lib64 ;;
5662             esac ;;
5663        esac
5664      fi
5665    done
5666    IFS="$acl_save_IFS"
5667  fi
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677    use_additional=yes
5678
5679  acl_save_prefix="$prefix"
5680  prefix="$acl_final_prefix"
5681  acl_save_exec_prefix="$exec_prefix"
5682  exec_prefix="$acl_final_exec_prefix"
5683
5684    eval additional_includedir=\"$includedir\"
5685    eval additional_libdir=\"$libdir\"
5686
5687  exec_prefix="$acl_save_exec_prefix"
5688  prefix="$acl_save_prefix"
5689
5690
5691# Check whether --with-libiconv-prefix was given.
5692if test "${with_libiconv_prefix+set}" = set; then
5693  withval=$with_libiconv_prefix;
5694    if test "X$withval" = "Xno"; then
5695      use_additional=no
5696    else
5697      if test "X$withval" = "X"; then
5698
5699  acl_save_prefix="$prefix"
5700  prefix="$acl_final_prefix"
5701  acl_save_exec_prefix="$exec_prefix"
5702  exec_prefix="$acl_final_exec_prefix"
5703
5704          eval additional_includedir=\"$includedir\"
5705          eval additional_libdir=\"$libdir\"
5706
5707  exec_prefix="$acl_save_exec_prefix"
5708  prefix="$acl_save_prefix"
5709
5710      else
5711        additional_includedir="$withval/include"
5712        additional_libdir="$withval/$acl_libdirstem"
5713      fi
5714    fi
5715
5716fi
5717
5718      LIBICONV=
5719  LTLIBICONV=
5720  INCICONV=
5721  LIBICONV_PREFIX=
5722  rpathdirs=
5723  ltrpathdirs=
5724  names_already_handled=
5725  names_next_round='iconv '
5726  while test -n "$names_next_round"; do
5727    names_this_round="$names_next_round"
5728    names_next_round=
5729    for name in $names_this_round; do
5730      already_handled=
5731      for n in $names_already_handled; do
5732        if test "$n" = "$name"; then
5733          already_handled=yes
5734          break
5735        fi
5736      done
5737      if test -z "$already_handled"; then
5738        names_already_handled="$names_already_handled $name"
5739                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5740        eval value=\"\$HAVE_LIB$uppername\"
5741        if test -n "$value"; then
5742          if test "$value" = yes; then
5743            eval value=\"\$LIB$uppername\"
5744            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5745            eval value=\"\$LTLIB$uppername\"
5746            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5747          else
5748                                    :
5749          fi
5750        else
5751                              found_dir=
5752          found_la=
5753          found_so=
5754          found_a=
5755          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5756          if test -n "$acl_shlibext"; then
5757            shrext=".$acl_shlibext"             # typically: shrext=.so
5758          else
5759            shrext=
5760          fi
5761          if test $use_additional = yes; then
5762            dir="$additional_libdir"
5763                                    if test -n "$acl_shlibext"; then
5764              if test -f "$dir/$libname$shrext"; then
5765                found_dir="$dir"
5766                found_so="$dir/$libname$shrext"
5767              else
5768                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5769                  ver=`(cd "$dir" && \
5770                        for f in "$libname$shrext".*; do echo "$f"; done \
5771                        | sed -e "s,^$libname$shrext\\\\.,," \
5772                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5773                        | sed 1q ) 2>/dev/null`
5774                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5775                    found_dir="$dir"
5776                    found_so="$dir/$libname$shrext.$ver"
5777                  fi
5778                else
5779                  eval library_names=\"$acl_library_names_spec\"
5780                  for f in $library_names; do
5781                    if test -f "$dir/$f"; then
5782                      found_dir="$dir"
5783                      found_so="$dir/$f"
5784                      break
5785                    fi
5786                  done
5787                fi
5788              fi
5789            fi
5790                        if test "X$found_dir" = "X"; then
5791              if test -f "$dir/$libname.$acl_libext"; then
5792                found_dir="$dir"
5793                found_a="$dir/$libname.$acl_libext"
5794              fi
5795            fi
5796            if test "X$found_dir" != "X"; then
5797              if test -f "$dir/$libname.la"; then
5798                found_la="$dir/$libname.la"
5799              fi
5800            fi
5801          fi
5802          if test "X$found_dir" = "X"; then
5803            for x in $LDFLAGS $LTLIBICONV; do
5804
5805  acl_save_prefix="$prefix"
5806  prefix="$acl_final_prefix"
5807  acl_save_exec_prefix="$exec_prefix"
5808  exec_prefix="$acl_final_exec_prefix"
5809  eval x=\"$x\"
5810  exec_prefix="$acl_save_exec_prefix"
5811  prefix="$acl_save_prefix"
5812
5813              case "$x" in
5814                -L*)
5815                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5816                                    if test -n "$acl_shlibext"; then
5817                    if test -f "$dir/$libname$shrext"; then
5818                      found_dir="$dir"
5819                      found_so="$dir/$libname$shrext"
5820                    else
5821                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5822                        ver=`(cd "$dir" && \
5823                              for f in "$libname$shrext".*; do echo "$f"; done \
5824                              | sed -e "s,^$libname$shrext\\\\.,," \
5825                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5826                              | sed 1q ) 2>/dev/null`
5827                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5828                          found_dir="$dir"
5829                          found_so="$dir/$libname$shrext.$ver"
5830                        fi
5831                      else
5832                        eval library_names=\"$acl_library_names_spec\"
5833                        for f in $library_names; do
5834                          if test -f "$dir/$f"; then
5835                            found_dir="$dir"
5836                            found_so="$dir/$f"
5837                            break
5838                          fi
5839                        done
5840                      fi
5841                    fi
5842                  fi
5843                                    if test "X$found_dir" = "X"; then
5844                    if test -f "$dir/$libname.$acl_libext"; then
5845                      found_dir="$dir"
5846                      found_a="$dir/$libname.$acl_libext"
5847                    fi
5848                  fi
5849                  if test "X$found_dir" != "X"; then
5850                    if test -f "$dir/$libname.la"; then
5851                      found_la="$dir/$libname.la"
5852                    fi
5853                  fi
5854                  ;;
5855              esac
5856              if test "X$found_dir" != "X"; then
5857                break
5858              fi
5859            done
5860          fi
5861          if test "X$found_dir" != "X"; then
5862                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5863            if test "X$found_so" != "X"; then
5864                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5865                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5866              else
5867                                                                                haveit=
5868                for x in $ltrpathdirs; do
5869                  if test "X$x" = "X$found_dir"; then
5870                    haveit=yes
5871                    break
5872                  fi
5873                done
5874                if test -z "$haveit"; then
5875                  ltrpathdirs="$ltrpathdirs $found_dir"
5876                fi
5877                                if test "$acl_hardcode_direct" = yes; then
5878                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5879                else
5880                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5881                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5882                                                            haveit=
5883                    for x in $rpathdirs; do
5884                      if test "X$x" = "X$found_dir"; then
5885                        haveit=yes
5886                        break
5887                      fi
5888                    done
5889                    if test -z "$haveit"; then
5890                      rpathdirs="$rpathdirs $found_dir"
5891                    fi
5892                  else
5893                                                                                haveit=
5894                    for x in $LDFLAGS $LIBICONV; do
5895
5896  acl_save_prefix="$prefix"
5897  prefix="$acl_final_prefix"
5898  acl_save_exec_prefix="$exec_prefix"
5899  exec_prefix="$acl_final_exec_prefix"
5900  eval x=\"$x\"
5901  exec_prefix="$acl_save_exec_prefix"
5902  prefix="$acl_save_prefix"
5903
5904                      if test "X$x" = "X-L$found_dir"; then
5905                        haveit=yes
5906                        break
5907                      fi
5908                    done
5909                    if test -z "$haveit"; then
5910                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5911                    fi
5912                    if test "$acl_hardcode_minus_L" != no; then
5913                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5914                    else
5915                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5916                    fi
5917                  fi
5918                fi
5919              fi
5920            else
5921              if test "X$found_a" != "X"; then
5922                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5923              else
5924                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5925              fi
5926            fi
5927                        additional_includedir=
5928            case "$found_dir" in
5929              */$acl_libdirstem | */$acl_libdirstem/)
5930                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5931                LIBICONV_PREFIX="$basedir"
5932                additional_includedir="$basedir/include"
5933                ;;
5934            esac
5935            if test "X$additional_includedir" != "X"; then
5936                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5937                haveit=
5938                if test "X$additional_includedir" = "X/usr/local/include"; then
5939                  if test -n "$GCC"; then
5940                    case $host_os in
5941                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5942                    esac
5943                  fi
5944                fi
5945                if test -z "$haveit"; then
5946                  for x in $CPPFLAGS $INCICONV; do
5947
5948  acl_save_prefix="$prefix"
5949  prefix="$acl_final_prefix"
5950  acl_save_exec_prefix="$exec_prefix"
5951  exec_prefix="$acl_final_exec_prefix"
5952  eval x=\"$x\"
5953  exec_prefix="$acl_save_exec_prefix"
5954  prefix="$acl_save_prefix"
5955
5956                    if test "X$x" = "X-I$additional_includedir"; then
5957                      haveit=yes
5958                      break
5959                    fi
5960                  done
5961                  if test -z "$haveit"; then
5962                    if test -d "$additional_includedir"; then
5963                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5964                    fi
5965                  fi
5966                fi
5967              fi
5968            fi
5969                        if test -n "$found_la"; then
5970                                                        save_libdir="$libdir"
5971              case "$found_la" in
5972                */* | *\\*) . "$found_la" ;;
5973                *) . "./$found_la" ;;
5974              esac
5975              libdir="$save_libdir"
5976                            for dep in $dependency_libs; do
5977                case "$dep" in
5978                  -L*)
5979                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5980                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5981                      haveit=
5982                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5983                        if test -n "$GCC"; then
5984                          case $host_os in
5985                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5986                          esac
5987                        fi
5988                      fi
5989                      if test -z "$haveit"; then
5990                        haveit=
5991                        for x in $LDFLAGS $LIBICONV; do
5992
5993  acl_save_prefix="$prefix"
5994  prefix="$acl_final_prefix"
5995  acl_save_exec_prefix="$exec_prefix"
5996  exec_prefix="$acl_final_exec_prefix"
5997  eval x=\"$x\"
5998  exec_prefix="$acl_save_exec_prefix"
5999  prefix="$acl_save_prefix"
6000
6001                          if test "X$x" = "X-L$additional_libdir"; then
6002                            haveit=yes
6003                            break
6004                          fi
6005                        done
6006                        if test -z "$haveit"; then
6007                          if test -d "$additional_libdir"; then
6008                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6009                          fi
6010                        fi
6011                        haveit=
6012                        for x in $LDFLAGS $LTLIBICONV; do
6013
6014  acl_save_prefix="$prefix"
6015  prefix="$acl_final_prefix"
6016  acl_save_exec_prefix="$exec_prefix"
6017  exec_prefix="$acl_final_exec_prefix"
6018  eval x=\"$x\"
6019  exec_prefix="$acl_save_exec_prefix"
6020  prefix="$acl_save_prefix"
6021
6022                          if test "X$x" = "X-L$additional_libdir"; then
6023                            haveit=yes
6024                            break
6025                          fi
6026                        done
6027                        if test -z "$haveit"; then
6028                          if test -d "$additional_libdir"; then
6029                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6030                          fi
6031                        fi
6032                      fi
6033                    fi
6034                    ;;
6035                  -R*)
6036                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6037                    if test "$enable_rpath" != no; then
6038                                                                  haveit=
6039                      for x in $rpathdirs; do
6040                        if test "X$x" = "X$dir"; then
6041                          haveit=yes
6042                          break
6043                        fi
6044                      done
6045                      if test -z "$haveit"; then
6046                        rpathdirs="$rpathdirs $dir"
6047                      fi
6048                                                                  haveit=
6049                      for x in $ltrpathdirs; do
6050                        if test "X$x" = "X$dir"; then
6051                          haveit=yes
6052                          break
6053                        fi
6054                      done
6055                      if test -z "$haveit"; then
6056                        ltrpathdirs="$ltrpathdirs $dir"
6057                      fi
6058                    fi
6059                    ;;
6060                  -l*)
6061                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6062                    ;;
6063                  *.la)
6064                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6065                    ;;
6066                  *)
6067                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6068                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6069                    ;;
6070                esac
6071              done
6072            fi
6073          else
6074                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6075            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6076          fi
6077        fi
6078      fi
6079    done
6080  done
6081  if test "X$rpathdirs" != "X"; then
6082    if test -n "$acl_hardcode_libdir_separator"; then
6083                        alldirs=
6084      for found_dir in $rpathdirs; do
6085        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6086      done
6087            acl_save_libdir="$libdir"
6088      libdir="$alldirs"
6089      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6090      libdir="$acl_save_libdir"
6091      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6092    else
6093            for found_dir in $rpathdirs; do
6094        acl_save_libdir="$libdir"
6095        libdir="$found_dir"
6096        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6097        libdir="$acl_save_libdir"
6098        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6099      done
6100    fi
6101  fi
6102  if test "X$ltrpathdirs" != "X"; then
6103            for found_dir in $ltrpathdirs; do
6104      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6105    done
6106  fi
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6133$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6134if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6135  $as_echo_n "(cached) " >&6
6136else
6137  gt_save_LIBS="$LIBS"
6138     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6139     cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h.  */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h.  */
6145#include <CoreFoundation/CFPreferences.h>
6146int
6147main ()
6148{
6149CFPreferencesCopyAppValue(NULL, NULL)
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext conftest$ac_exeext
6155if { (ac_try="$ac_link"
6156case "(($ac_try" in
6157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158  *) ac_try_echo=$ac_try;;
6159esac
6160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161$as_echo "$ac_try_echo") >&5
6162  (eval "$ac_link") 2>conftest.er1
6163  ac_status=$?
6164  grep -v '^ *+' conftest.er1 >conftest.err
6165  rm -f conftest.er1
6166  cat conftest.err >&5
6167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168  (exit $ac_status); } && {
6169	 test -z "$ac_c_werror_flag" ||
6170	 test ! -s conftest.err
6171       } && test -s conftest$ac_exeext && {
6172	 test "$cross_compiling" = yes ||
6173	 $as_test_x conftest$ac_exeext
6174       }; then
6175  gt_cv_func_CFPreferencesCopyAppValue=yes
6176else
6177  $as_echo "$as_me: failed program was:" >&5
6178sed 's/^/| /' conftest.$ac_ext >&5
6179
6180	gt_cv_func_CFPreferencesCopyAppValue=no
6181fi
6182
6183rm -rf conftest.dSYM
6184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185      conftest$ac_exeext conftest.$ac_ext
6186     LIBS="$gt_save_LIBS"
6187fi
6188{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6189$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6190  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6191
6192cat >>confdefs.h <<\_ACEOF
6193#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6194_ACEOF
6195
6196  fi
6197    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6198$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6199if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6200  $as_echo_n "(cached) " >&6
6201else
6202  gt_save_LIBS="$LIBS"
6203     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6204     cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h.  */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h.  */
6210#include <CoreFoundation/CFLocale.h>
6211int
6212main ()
6213{
6214CFLocaleCopyCurrent();
6215  ;
6216  return 0;
6217}
6218_ACEOF
6219rm -f conftest.$ac_objext conftest$ac_exeext
6220if { (ac_try="$ac_link"
6221case "(($ac_try" in
6222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223  *) ac_try_echo=$ac_try;;
6224esac
6225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226$as_echo "$ac_try_echo") >&5
6227  (eval "$ac_link") 2>conftest.er1
6228  ac_status=$?
6229  grep -v '^ *+' conftest.er1 >conftest.err
6230  rm -f conftest.er1
6231  cat conftest.err >&5
6232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } && {
6234	 test -z "$ac_c_werror_flag" ||
6235	 test ! -s conftest.err
6236       } && test -s conftest$ac_exeext && {
6237	 test "$cross_compiling" = yes ||
6238	 $as_test_x conftest$ac_exeext
6239       }; then
6240  gt_cv_func_CFLocaleCopyCurrent=yes
6241else
6242  $as_echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245	gt_cv_func_CFLocaleCopyCurrent=no
6246fi
6247
6248rm -rf conftest.dSYM
6249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6250      conftest$ac_exeext conftest.$ac_ext
6251     LIBS="$gt_save_LIBS"
6252fi
6253{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6254$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6255  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6256
6257cat >>confdefs.h <<\_ACEOF
6258#define HAVE_CFLOCALECOPYCURRENT 1
6259_ACEOF
6260
6261  fi
6262  INTL_MACOSX_LIBS=
6263  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6264    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6265  fi
6266
6267
6268
6269
6270
6271
6272  LIBINTL=
6273  LTLIBINTL=
6274  POSUB=
6275
6276    case " $gt_needs " in
6277    *" need-formatstring-macros "*) gt_api_version=3 ;;
6278    *" need-ngettext "*) gt_api_version=2 ;;
6279    *) gt_api_version=1 ;;
6280  esac
6281  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6282  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6283
6284    if test "$USE_NLS" = "yes"; then
6285    gt_use_preinstalled_gnugettext=no
6286
6287
6288        if test $gt_api_version -ge 3; then
6289          gt_revision_test_code='
6290#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6291#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6292#endif
6293typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6294'
6295        else
6296          gt_revision_test_code=
6297        fi
6298        if test $gt_api_version -ge 2; then
6299          gt_expression_test_code=' + * ngettext ("", "", 0)'
6300        else
6301          gt_expression_test_code=
6302        fi
6303
6304        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6305$as_echo_n "checking for GNU gettext in libc... " >&6; }
6306if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
6307  $as_echo_n "(cached) " >&6
6308else
6309  cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315#include <libintl.h>
6316$gt_revision_test_code
6317extern int _nl_msg_cat_cntr;
6318extern int *_nl_domain_bindings;
6319int
6320main ()
6321{
6322bindtextdomain ("", "");
6323return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6324  ;
6325  return 0;
6326}
6327_ACEOF
6328rm -f conftest.$ac_objext conftest$ac_exeext
6329if { (ac_try="$ac_link"
6330case "(($ac_try" in
6331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332  *) ac_try_echo=$ac_try;;
6333esac
6334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335$as_echo "$ac_try_echo") >&5
6336  (eval "$ac_link") 2>conftest.er1
6337  ac_status=$?
6338  grep -v '^ *+' conftest.er1 >conftest.err
6339  rm -f conftest.er1
6340  cat conftest.err >&5
6341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); } && {
6343	 test -z "$ac_c_werror_flag" ||
6344	 test ! -s conftest.err
6345       } && test -s conftest$ac_exeext && {
6346	 test "$cross_compiling" = yes ||
6347	 $as_test_x conftest$ac_exeext
6348       }; then
6349  eval "$gt_func_gnugettext_libc=yes"
6350else
6351  $as_echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354	eval "$gt_func_gnugettext_libc=no"
6355fi
6356
6357rm -rf conftest.dSYM
6358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6359      conftest$ac_exeext conftest.$ac_ext
6360fi
6361ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
6362		 $as_echo "$as_val"'`
6363	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6364$as_echo "$ac_res" >&6; }
6365
6366        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6367
6368
6369
6370
6371
6372          am_save_CPPFLAGS="$CPPFLAGS"
6373
6374  for element in $INCICONV; do
6375    haveit=
6376    for x in $CPPFLAGS; do
6377
6378  acl_save_prefix="$prefix"
6379  prefix="$acl_final_prefix"
6380  acl_save_exec_prefix="$exec_prefix"
6381  exec_prefix="$acl_final_exec_prefix"
6382  eval x=\"$x\"
6383  exec_prefix="$acl_save_exec_prefix"
6384  prefix="$acl_save_prefix"
6385
6386      if test "X$x" = "X$element"; then
6387        haveit=yes
6388        break
6389      fi
6390    done
6391    if test -z "$haveit"; then
6392      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6393    fi
6394  done
6395
6396
6397  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
6398$as_echo_n "checking for iconv... " >&6; }
6399if test "${am_cv_func_iconv+set}" = set; then
6400  $as_echo_n "(cached) " >&6
6401else
6402
6403    am_cv_func_iconv="no, consider installing GNU libiconv"
6404    am_cv_lib_iconv=no
6405    cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411#include <stdlib.h>
6412#include <iconv.h>
6413int
6414main ()
6415{
6416iconv_t cd = iconv_open("","");
6417       iconv(cd,NULL,NULL,NULL,NULL);
6418       iconv_close(cd);
6419  ;
6420  return 0;
6421}
6422_ACEOF
6423rm -f conftest.$ac_objext conftest$ac_exeext
6424if { (ac_try="$ac_link"
6425case "(($ac_try" in
6426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427  *) ac_try_echo=$ac_try;;
6428esac
6429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6430$as_echo "$ac_try_echo") >&5
6431  (eval "$ac_link") 2>conftest.er1
6432  ac_status=$?
6433  grep -v '^ *+' conftest.er1 >conftest.err
6434  rm -f conftest.er1
6435  cat conftest.err >&5
6436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); } && {
6438	 test -z "$ac_c_werror_flag" ||
6439	 test ! -s conftest.err
6440       } && test -s conftest$ac_exeext && {
6441	 test "$cross_compiling" = yes ||
6442	 $as_test_x conftest$ac_exeext
6443       }; then
6444  am_cv_func_iconv=yes
6445else
6446  $as_echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449
6450fi
6451
6452rm -rf conftest.dSYM
6453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454      conftest$ac_exeext conftest.$ac_ext
6455    if test "$am_cv_func_iconv" != yes; then
6456      am_save_LIBS="$LIBS"
6457      LIBS="$LIBS $LIBICONV"
6458      cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464#include <stdlib.h>
6465#include <iconv.h>
6466int
6467main ()
6468{
6469iconv_t cd = iconv_open("","");
6470         iconv(cd,NULL,NULL,NULL,NULL);
6471         iconv_close(cd);
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476rm -f conftest.$ac_objext conftest$ac_exeext
6477if { (ac_try="$ac_link"
6478case "(($ac_try" in
6479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480  *) ac_try_echo=$ac_try;;
6481esac
6482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483$as_echo "$ac_try_echo") >&5
6484  (eval "$ac_link") 2>conftest.er1
6485  ac_status=$?
6486  grep -v '^ *+' conftest.er1 >conftest.err
6487  rm -f conftest.er1
6488  cat conftest.err >&5
6489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); } && {
6491	 test -z "$ac_c_werror_flag" ||
6492	 test ! -s conftest.err
6493       } && test -s conftest$ac_exeext && {
6494	 test "$cross_compiling" = yes ||
6495	 $as_test_x conftest$ac_exeext
6496       }; then
6497  am_cv_lib_iconv=yes
6498        am_cv_func_iconv=yes
6499else
6500  $as_echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503
6504fi
6505
6506rm -rf conftest.dSYM
6507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508      conftest$ac_exeext conftest.$ac_ext
6509      LIBS="$am_save_LIBS"
6510    fi
6511
6512fi
6513{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6514$as_echo "$am_cv_func_iconv" >&6; }
6515  if test "$am_cv_func_iconv" = yes; then
6516    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
6517$as_echo_n "checking for working iconv... " >&6; }
6518if test "${am_cv_func_iconv_works+set}" = set; then
6519  $as_echo_n "(cached) " >&6
6520else
6521
6522            am_save_LIBS="$LIBS"
6523      if test $am_cv_lib_iconv = yes; then
6524        LIBS="$LIBS $LIBICONV"
6525      fi
6526      if test "$cross_compiling" = yes; then
6527  case "$host_os" in
6528           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6529           *)            am_cv_func_iconv_works="guessing yes" ;;
6530         esac
6531else
6532  cat >conftest.$ac_ext <<_ACEOF
6533/* confdefs.h.  */
6534_ACEOF
6535cat confdefs.h >>conftest.$ac_ext
6536cat >>conftest.$ac_ext <<_ACEOF
6537/* end confdefs.h.  */
6538
6539#include <iconv.h>
6540#include <string.h>
6541int main ()
6542{
6543  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6544     returns.  */
6545  {
6546    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6547    if (cd_utf8_to_88591 != (iconv_t)(-1))
6548      {
6549        static const char input[] = "\342\202\254"; /* EURO SIGN */
6550        char buf[10];
6551        const char *inptr = input;
6552        size_t inbytesleft = strlen (input);
6553        char *outptr = buf;
6554        size_t outbytesleft = sizeof (buf);
6555        size_t res = iconv (cd_utf8_to_88591,
6556                            (char **) &inptr, &inbytesleft,
6557                            &outptr, &outbytesleft);
6558        if (res == 0)
6559          return 1;
6560      }
6561  }
6562#if 0 /* This bug could be worked around by the caller.  */
6563  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6564  {
6565    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6566    if (cd_88591_to_utf8 != (iconv_t)(-1))
6567      {
6568        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6569        char buf[50];
6570        const char *inptr = input;
6571        size_t inbytesleft = strlen (input);
6572        char *outptr = buf;
6573        size_t outbytesleft = sizeof (buf);
6574        size_t res = iconv (cd_88591_to_utf8,
6575                            (char **) &inptr, &inbytesleft,
6576                            &outptr, &outbytesleft);
6577        if ((int)res > 0)
6578          return 1;
6579      }
6580  }
6581#endif
6582  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6583     provided.  */
6584  if (/* Try standardized names.  */
6585      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6586      /* Try IRIX, OSF/1 names.  */
6587      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6588      /* Try AIX names.  */
6589      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6590      /* Try HP-UX names.  */
6591      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6592    return 1;
6593  return 0;
6594}
6595_ACEOF
6596rm -f conftest$ac_exeext
6597if { (ac_try="$ac_link"
6598case "(($ac_try" in
6599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600  *) ac_try_echo=$ac_try;;
6601esac
6602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603$as_echo "$ac_try_echo") >&5
6604  (eval "$ac_link") 2>&5
6605  ac_status=$?
6606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6608  { (case "(($ac_try" in
6609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610  *) ac_try_echo=$ac_try;;
6611esac
6612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613$as_echo "$ac_try_echo") >&5
6614  (eval "$ac_try") 2>&5
6615  ac_status=$?
6616  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); }; }; then
6618  am_cv_func_iconv_works=yes
6619else
6620  $as_echo "$as_me: program exited with status $ac_status" >&5
6621$as_echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624( exit $ac_status )
6625am_cv_func_iconv_works=no
6626fi
6627rm -rf conftest.dSYM
6628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6629fi
6630
6631
6632      LIBS="$am_save_LIBS"
6633
6634fi
6635{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
6636$as_echo "$am_cv_func_iconv_works" >&6; }
6637    case "$am_cv_func_iconv_works" in
6638      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6639      *)   am_func_iconv=yes ;;
6640    esac
6641  else
6642    am_func_iconv=no am_cv_lib_iconv=no
6643  fi
6644  if test "$am_func_iconv" = yes; then
6645
6646cat >>confdefs.h <<\_ACEOF
6647#define HAVE_ICONV 1
6648_ACEOF
6649
6650  fi
6651  if test "$am_cv_lib_iconv" = yes; then
6652    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6653$as_echo_n "checking how to link with libiconv... " >&6; }
6654    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
6655$as_echo "$LIBICONV" >&6; }
6656  else
6657            CPPFLAGS="$am_save_CPPFLAGS"
6658    LIBICONV=
6659    LTLIBICONV=
6660  fi
6661
6662
6663
6664
6665
6666
6667
6668
6669    use_additional=yes
6670
6671  acl_save_prefix="$prefix"
6672  prefix="$acl_final_prefix"
6673  acl_save_exec_prefix="$exec_prefix"
6674  exec_prefix="$acl_final_exec_prefix"
6675
6676    eval additional_includedir=\"$includedir\"
6677    eval additional_libdir=\"$libdir\"
6678
6679  exec_prefix="$acl_save_exec_prefix"
6680  prefix="$acl_save_prefix"
6681
6682
6683# Check whether --with-libintl-prefix was given.
6684if test "${with_libintl_prefix+set}" = set; then
6685  withval=$with_libintl_prefix;
6686    if test "X$withval" = "Xno"; then
6687      use_additional=no
6688    else
6689      if test "X$withval" = "X"; then
6690
6691  acl_save_prefix="$prefix"
6692  prefix="$acl_final_prefix"
6693  acl_save_exec_prefix="$exec_prefix"
6694  exec_prefix="$acl_final_exec_prefix"
6695
6696          eval additional_includedir=\"$includedir\"
6697          eval additional_libdir=\"$libdir\"
6698
6699  exec_prefix="$acl_save_exec_prefix"
6700  prefix="$acl_save_prefix"
6701
6702      else
6703        additional_includedir="$withval/include"
6704        additional_libdir="$withval/$acl_libdirstem"
6705      fi
6706    fi
6707
6708fi
6709
6710      LIBINTL=
6711  LTLIBINTL=
6712  INCINTL=
6713  LIBINTL_PREFIX=
6714  rpathdirs=
6715  ltrpathdirs=
6716  names_already_handled=
6717  names_next_round='intl '
6718  while test -n "$names_next_round"; do
6719    names_this_round="$names_next_round"
6720    names_next_round=
6721    for name in $names_this_round; do
6722      already_handled=
6723      for n in $names_already_handled; do
6724        if test "$n" = "$name"; then
6725          already_handled=yes
6726          break
6727        fi
6728      done
6729      if test -z "$already_handled"; then
6730        names_already_handled="$names_already_handled $name"
6731                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6732        eval value=\"\$HAVE_LIB$uppername\"
6733        if test -n "$value"; then
6734          if test "$value" = yes; then
6735            eval value=\"\$LIB$uppername\"
6736            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6737            eval value=\"\$LTLIB$uppername\"
6738            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6739          else
6740                                    :
6741          fi
6742        else
6743                              found_dir=
6744          found_la=
6745          found_so=
6746          found_a=
6747          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6748          if test -n "$acl_shlibext"; then
6749            shrext=".$acl_shlibext"             # typically: shrext=.so
6750          else
6751            shrext=
6752          fi
6753          if test $use_additional = yes; then
6754            dir="$additional_libdir"
6755                                    if test -n "$acl_shlibext"; then
6756              if test -f "$dir/$libname$shrext"; then
6757                found_dir="$dir"
6758                found_so="$dir/$libname$shrext"
6759              else
6760                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6761                  ver=`(cd "$dir" && \
6762                        for f in "$libname$shrext".*; do echo "$f"; done \
6763                        | sed -e "s,^$libname$shrext\\\\.,," \
6764                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6765                        | sed 1q ) 2>/dev/null`
6766                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6767                    found_dir="$dir"
6768                    found_so="$dir/$libname$shrext.$ver"
6769                  fi
6770                else
6771                  eval library_names=\"$acl_library_names_spec\"
6772                  for f in $library_names; do
6773                    if test -f "$dir/$f"; then
6774                      found_dir="$dir"
6775                      found_so="$dir/$f"
6776                      break
6777                    fi
6778                  done
6779                fi
6780              fi
6781            fi
6782                        if test "X$found_dir" = "X"; then
6783              if test -f "$dir/$libname.$acl_libext"; then
6784                found_dir="$dir"
6785                found_a="$dir/$libname.$acl_libext"
6786              fi
6787            fi
6788            if test "X$found_dir" != "X"; then
6789              if test -f "$dir/$libname.la"; then
6790                found_la="$dir/$libname.la"
6791              fi
6792            fi
6793          fi
6794          if test "X$found_dir" = "X"; then
6795            for x in $LDFLAGS $LTLIBINTL; do
6796
6797  acl_save_prefix="$prefix"
6798  prefix="$acl_final_prefix"
6799  acl_save_exec_prefix="$exec_prefix"
6800  exec_prefix="$acl_final_exec_prefix"
6801  eval x=\"$x\"
6802  exec_prefix="$acl_save_exec_prefix"
6803  prefix="$acl_save_prefix"
6804
6805              case "$x" in
6806                -L*)
6807                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6808                                    if test -n "$acl_shlibext"; then
6809                    if test -f "$dir/$libname$shrext"; then
6810                      found_dir="$dir"
6811                      found_so="$dir/$libname$shrext"
6812                    else
6813                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6814                        ver=`(cd "$dir" && \
6815                              for f in "$libname$shrext".*; do echo "$f"; done \
6816                              | sed -e "s,^$libname$shrext\\\\.,," \
6817                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6818                              | sed 1q ) 2>/dev/null`
6819                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6820                          found_dir="$dir"
6821                          found_so="$dir/$libname$shrext.$ver"
6822                        fi
6823                      else
6824                        eval library_names=\"$acl_library_names_spec\"
6825                        for f in $library_names; do
6826                          if test -f "$dir/$f"; then
6827                            found_dir="$dir"
6828                            found_so="$dir/$f"
6829                            break
6830                          fi
6831                        done
6832                      fi
6833                    fi
6834                  fi
6835                                    if test "X$found_dir" = "X"; then
6836                    if test -f "$dir/$libname.$acl_libext"; then
6837                      found_dir="$dir"
6838                      found_a="$dir/$libname.$acl_libext"
6839                    fi
6840                  fi
6841                  if test "X$found_dir" != "X"; then
6842                    if test -f "$dir/$libname.la"; then
6843                      found_la="$dir/$libname.la"
6844                    fi
6845                  fi
6846                  ;;
6847              esac
6848              if test "X$found_dir" != "X"; then
6849                break
6850              fi
6851            done
6852          fi
6853          if test "X$found_dir" != "X"; then
6854                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6855            if test "X$found_so" != "X"; then
6856                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6857                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6858              else
6859                                                                                haveit=
6860                for x in $ltrpathdirs; do
6861                  if test "X$x" = "X$found_dir"; then
6862                    haveit=yes
6863                    break
6864                  fi
6865                done
6866                if test -z "$haveit"; then
6867                  ltrpathdirs="$ltrpathdirs $found_dir"
6868                fi
6869                                if test "$acl_hardcode_direct" = yes; then
6870                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6871                else
6872                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6873                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6874                                                            haveit=
6875                    for x in $rpathdirs; do
6876                      if test "X$x" = "X$found_dir"; then
6877                        haveit=yes
6878                        break
6879                      fi
6880                    done
6881                    if test -z "$haveit"; then
6882                      rpathdirs="$rpathdirs $found_dir"
6883                    fi
6884                  else
6885                                                                                haveit=
6886                    for x in $LDFLAGS $LIBINTL; do
6887
6888  acl_save_prefix="$prefix"
6889  prefix="$acl_final_prefix"
6890  acl_save_exec_prefix="$exec_prefix"
6891  exec_prefix="$acl_final_exec_prefix"
6892  eval x=\"$x\"
6893  exec_prefix="$acl_save_exec_prefix"
6894  prefix="$acl_save_prefix"
6895
6896                      if test "X$x" = "X-L$found_dir"; then
6897                        haveit=yes
6898                        break
6899                      fi
6900                    done
6901                    if test -z "$haveit"; then
6902                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6903                    fi
6904                    if test "$acl_hardcode_minus_L" != no; then
6905                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6906                    else
6907                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6908                    fi
6909                  fi
6910                fi
6911              fi
6912            else
6913              if test "X$found_a" != "X"; then
6914                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6915              else
6916                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6917              fi
6918            fi
6919                        additional_includedir=
6920            case "$found_dir" in
6921              */$acl_libdirstem | */$acl_libdirstem/)
6922                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6923                LIBINTL_PREFIX="$basedir"
6924                additional_includedir="$basedir/include"
6925                ;;
6926            esac
6927            if test "X$additional_includedir" != "X"; then
6928                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6929                haveit=
6930                if test "X$additional_includedir" = "X/usr/local/include"; then
6931                  if test -n "$GCC"; then
6932                    case $host_os in
6933                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6934                    esac
6935                  fi
6936                fi
6937                if test -z "$haveit"; then
6938                  for x in $CPPFLAGS $INCINTL; do
6939
6940  acl_save_prefix="$prefix"
6941  prefix="$acl_final_prefix"
6942  acl_save_exec_prefix="$exec_prefix"
6943  exec_prefix="$acl_final_exec_prefix"
6944  eval x=\"$x\"
6945  exec_prefix="$acl_save_exec_prefix"
6946  prefix="$acl_save_prefix"
6947
6948                    if test "X$x" = "X-I$additional_includedir"; then
6949                      haveit=yes
6950                      break
6951                    fi
6952                  done
6953                  if test -z "$haveit"; then
6954                    if test -d "$additional_includedir"; then
6955                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6956                    fi
6957                  fi
6958                fi
6959              fi
6960            fi
6961                        if test -n "$found_la"; then
6962                                                        save_libdir="$libdir"
6963              case "$found_la" in
6964                */* | *\\*) . "$found_la" ;;
6965                *) . "./$found_la" ;;
6966              esac
6967              libdir="$save_libdir"
6968                            for dep in $dependency_libs; do
6969                case "$dep" in
6970                  -L*)
6971                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6972                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6973                      haveit=
6974                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6975                        if test -n "$GCC"; then
6976                          case $host_os in
6977                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6978                          esac
6979                        fi
6980                      fi
6981                      if test -z "$haveit"; then
6982                        haveit=
6983                        for x in $LDFLAGS $LIBINTL; do
6984
6985  acl_save_prefix="$prefix"
6986  prefix="$acl_final_prefix"
6987  acl_save_exec_prefix="$exec_prefix"
6988  exec_prefix="$acl_final_exec_prefix"
6989  eval x=\"$x\"
6990  exec_prefix="$acl_save_exec_prefix"
6991  prefix="$acl_save_prefix"
6992
6993                          if test "X$x" = "X-L$additional_libdir"; then
6994                            haveit=yes
6995                            break
6996                          fi
6997                        done
6998                        if test -z "$haveit"; then
6999                          if test -d "$additional_libdir"; then
7000                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7001                          fi
7002                        fi
7003                        haveit=
7004                        for x in $LDFLAGS $LTLIBINTL; do
7005
7006  acl_save_prefix="$prefix"
7007  prefix="$acl_final_prefix"
7008  acl_save_exec_prefix="$exec_prefix"
7009  exec_prefix="$acl_final_exec_prefix"
7010  eval x=\"$x\"
7011  exec_prefix="$acl_save_exec_prefix"
7012  prefix="$acl_save_prefix"
7013
7014                          if test "X$x" = "X-L$additional_libdir"; then
7015                            haveit=yes
7016                            break
7017                          fi
7018                        done
7019                        if test -z "$haveit"; then
7020                          if test -d "$additional_libdir"; then
7021                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7022                          fi
7023                        fi
7024                      fi
7025                    fi
7026                    ;;
7027                  -R*)
7028                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7029                    if test "$enable_rpath" != no; then
7030                                                                  haveit=
7031                      for x in $rpathdirs; do
7032                        if test "X$x" = "X$dir"; then
7033                          haveit=yes
7034                          break
7035                        fi
7036                      done
7037                      if test -z "$haveit"; then
7038                        rpathdirs="$rpathdirs $dir"
7039                      fi
7040                                                                  haveit=
7041                      for x in $ltrpathdirs; do
7042                        if test "X$x" = "X$dir"; then
7043                          haveit=yes
7044                          break
7045                        fi
7046                      done
7047                      if test -z "$haveit"; then
7048                        ltrpathdirs="$ltrpathdirs $dir"
7049                      fi
7050                    fi
7051                    ;;
7052                  -l*)
7053                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7054                    ;;
7055                  *.la)
7056                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7057                    ;;
7058                  *)
7059                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7060                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7061                    ;;
7062                esac
7063              done
7064            fi
7065          else
7066                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7067            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7068          fi
7069        fi
7070      fi
7071    done
7072  done
7073  if test "X$rpathdirs" != "X"; then
7074    if test -n "$acl_hardcode_libdir_separator"; then
7075                        alldirs=
7076      for found_dir in $rpathdirs; do
7077        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7078      done
7079            acl_save_libdir="$libdir"
7080      libdir="$alldirs"
7081      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7082      libdir="$acl_save_libdir"
7083      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7084    else
7085            for found_dir in $rpathdirs; do
7086        acl_save_libdir="$libdir"
7087        libdir="$found_dir"
7088        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7089        libdir="$acl_save_libdir"
7090        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7091      done
7092    fi
7093  fi
7094  if test "X$ltrpathdirs" != "X"; then
7095            for found_dir in $ltrpathdirs; do
7096      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7097    done
7098  fi
7099
7100          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7101$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7102if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
7103  $as_echo_n "(cached) " >&6
7104else
7105  gt_save_CPPFLAGS="$CPPFLAGS"
7106            CPPFLAGS="$CPPFLAGS $INCINTL"
7107            gt_save_LIBS="$LIBS"
7108            LIBS="$LIBS $LIBINTL"
7109                        cat >conftest.$ac_ext <<_ACEOF
7110/* confdefs.h.  */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h.  */
7115#include <libintl.h>
7116$gt_revision_test_code
7117extern int _nl_msg_cat_cntr;
7118extern
7119#ifdef __cplusplus
7120"C"
7121#endif
7122const char *_nl_expand_alias (const char *);
7123int
7124main ()
7125{
7126bindtextdomain ("", "");
7127return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7128  ;
7129  return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext conftest$ac_exeext
7133if { (ac_try="$ac_link"
7134case "(($ac_try" in
7135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136  *) ac_try_echo=$ac_try;;
7137esac
7138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139$as_echo "$ac_try_echo") >&5
7140  (eval "$ac_link") 2>conftest.er1
7141  ac_status=$?
7142  grep -v '^ *+' conftest.er1 >conftest.err
7143  rm -f conftest.er1
7144  cat conftest.err >&5
7145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); } && {
7147	 test -z "$ac_c_werror_flag" ||
7148	 test ! -s conftest.err
7149       } && test -s conftest$ac_exeext && {
7150	 test "$cross_compiling" = yes ||
7151	 $as_test_x conftest$ac_exeext
7152       }; then
7153  eval "$gt_func_gnugettext_libintl=yes"
7154else
7155  $as_echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158	eval "$gt_func_gnugettext_libintl=no"
7159fi
7160
7161rm -rf conftest.dSYM
7162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7163      conftest$ac_exeext conftest.$ac_ext
7164                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7165              LIBS="$LIBS $LIBICONV"
7166              cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h.  */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h.  */
7172#include <libintl.h>
7173$gt_revision_test_code
7174extern int _nl_msg_cat_cntr;
7175extern
7176#ifdef __cplusplus
7177"C"
7178#endif
7179const char *_nl_expand_alias (const char *);
7180int
7181main ()
7182{
7183bindtextdomain ("", "");
7184return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext conftest$ac_exeext
7190if { (ac_try="$ac_link"
7191case "(($ac_try" in
7192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193  *) ac_try_echo=$ac_try;;
7194esac
7195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196$as_echo "$ac_try_echo") >&5
7197  (eval "$ac_link") 2>conftest.er1
7198  ac_status=$?
7199  grep -v '^ *+' conftest.er1 >conftest.err
7200  rm -f conftest.er1
7201  cat conftest.err >&5
7202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203  (exit $ac_status); } && {
7204	 test -z "$ac_c_werror_flag" ||
7205	 test ! -s conftest.err
7206       } && test -s conftest$ac_exeext && {
7207	 test "$cross_compiling" = yes ||
7208	 $as_test_x conftest$ac_exeext
7209       }; then
7210  LIBINTL="$LIBINTL $LIBICONV"
7211                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7212                eval "$gt_func_gnugettext_libintl=yes"
7213
7214else
7215  $as_echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218
7219fi
7220
7221rm -rf conftest.dSYM
7222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223      conftest$ac_exeext conftest.$ac_ext
7224            fi
7225            CPPFLAGS="$gt_save_CPPFLAGS"
7226            LIBS="$gt_save_LIBS"
7227fi
7228ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
7229		 $as_echo "$as_val"'`
7230	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7231$as_echo "$ac_res" >&6; }
7232        fi
7233
7234                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7235           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7236                && test "$PACKAGE" != gettext-runtime \
7237                && test "$PACKAGE" != gettext-tools; }; then
7238          gt_use_preinstalled_gnugettext=yes
7239        else
7240                    LIBINTL=
7241          LTLIBINTL=
7242          INCINTL=
7243        fi
7244
7245
7246
7247    if test -n "$INTL_MACOSX_LIBS"; then
7248      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7249         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7250                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7251        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7252      fi
7253    fi
7254
7255    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7256       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7257
7258cat >>confdefs.h <<\_ACEOF
7259#define ENABLE_NLS 1
7260_ACEOF
7261
7262    else
7263      USE_NLS=no
7264    fi
7265  fi
7266
7267  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
7268$as_echo_n "checking whether to use NLS... " >&6; }
7269  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7270$as_echo "$USE_NLS" >&6; }
7271  if test "$USE_NLS" = "yes"; then
7272    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7273$as_echo_n "checking where the gettext function comes from... " >&6; }
7274    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7275      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7276        gt_source="external libintl"
7277      else
7278        gt_source="libc"
7279      fi
7280    else
7281      gt_source="included intl directory"
7282    fi
7283    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
7284$as_echo "$gt_source" >&6; }
7285  fi
7286
7287  if test "$USE_NLS" = "yes"; then
7288
7289    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7290      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7291        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
7292$as_echo_n "checking how to link with libintl... " >&6; }
7293        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
7294$as_echo "$LIBINTL" >&6; }
7295
7296  for element in $INCINTL; do
7297    haveit=
7298    for x in $CPPFLAGS; do
7299
7300  acl_save_prefix="$prefix"
7301  prefix="$acl_final_prefix"
7302  acl_save_exec_prefix="$exec_prefix"
7303  exec_prefix="$acl_final_exec_prefix"
7304  eval x=\"$x\"
7305  exec_prefix="$acl_save_exec_prefix"
7306  prefix="$acl_save_prefix"
7307
7308      if test "X$x" = "X$element"; then
7309        haveit=yes
7310        break
7311      fi
7312    done
7313    if test -z "$haveit"; then
7314      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7315    fi
7316  done
7317
7318      fi
7319
7320
7321cat >>confdefs.h <<\_ACEOF
7322#define HAVE_GETTEXT 1
7323_ACEOF
7324
7325
7326cat >>confdefs.h <<\_ACEOF
7327#define HAVE_DCGETTEXT 1
7328_ACEOF
7329
7330    fi
7331
7332        POSUB=po
7333  fi
7334
7335
7336
7337    INTLLIBS="$LIBINTL"
7338
7339
7340
7341
7342
7343
7344
7345
7346if test -n "$ac_tool_prefix"; then
7347  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if test "${ac_cv_prog_RANLIB+set}" = set; then
7352  $as_echo_n "(cached) " >&6
7353else
7354  if test -n "$RANLIB"; then
7355  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362  for ac_exec_ext in '' $ac_executable_extensions; do
7363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374RANLIB=$ac_cv_prog_RANLIB
7375if test -n "$RANLIB"; then
7376  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7377$as_echo "$RANLIB" >&6; }
7378else
7379  { $as_echo "$as_me:$LINENO: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384fi
7385if test -z "$ac_cv_prog_RANLIB"; then
7386  ac_ct_RANLIB=$RANLIB
7387  # Extract the first word of "ranlib", so it can be a program name with args.
7388set dummy ranlib; ac_word=$2
7389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392  $as_echo_n "(cached) " >&6
7393else
7394  if test -n "$ac_ct_RANLIB"; then
7395  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402  for ac_exec_ext in '' $ac_executable_extensions; do
7403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404    ac_cv_prog_ac_ct_RANLIB="ranlib"
7405    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415if test -n "$ac_ct_RANLIB"; then
7416  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417$as_echo "$ac_ct_RANLIB" >&6; }
7418else
7419  { $as_echo "$as_me:$LINENO: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423  if test "x$ac_ct_RANLIB" = x; then
7424    RANLIB=":"
7425  else
7426    case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430ac_tool_warned=yes ;;
7431esac
7432    RANLIB=$ac_ct_RANLIB
7433  fi
7434else
7435  RANLIB="$ac_cv_prog_RANLIB"
7436fi
7437
7438
7439for ac_prog in flex lex
7440do
7441  # Extract the first word of "$ac_prog", so it can be a program name with args.
7442set dummy $ac_prog; ac_word=$2
7443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
7445if test "${ac_cv_prog_LEX+set}" = set; then
7446  $as_echo_n "(cached) " >&6
7447else
7448  if test -n "$LEX"; then
7449  ac_cv_prog_LEX="$LEX" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454  IFS=$as_save_IFS
7455  test -z "$as_dir" && as_dir=.
7456  for ac_exec_ext in '' $ac_executable_extensions; do
7457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458    ac_cv_prog_LEX="$ac_prog"
7459    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460    break 2
7461  fi
7462done
7463done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
7468LEX=$ac_cv_prog_LEX
7469if test -n "$LEX"; then
7470  { $as_echo "$as_me:$LINENO: result: $LEX" >&5
7471$as_echo "$LEX" >&6; }
7472else
7473  { $as_echo "$as_me:$LINENO: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
7477
7478  test -n "$LEX" && break
7479done
7480test -n "$LEX" || LEX=":"
7481
7482if test "x$LEX" != "x:"; then
7483  cat >conftest.l <<_ACEOF
7484%%
7485a { ECHO; }
7486b { REJECT; }
7487c { yymore (); }
7488d { yyless (1); }
7489e { yyless (input () != 0); }
7490f { unput (yytext[0]); }
7491. { BEGIN INITIAL; }
7492%%
7493#ifdef YYTEXT_POINTER
7494extern char *yytext;
7495#endif
7496int
7497main (void)
7498{
7499  return ! yylex () + ! yywrap ();
7500}
7501_ACEOF
7502{ (ac_try="$LEX conftest.l"
7503case "(($ac_try" in
7504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505  *) ac_try_echo=$ac_try;;
7506esac
7507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7508$as_echo "$ac_try_echo") >&5
7509  (eval "$LEX conftest.l") 2>&5
7510  ac_status=$?
7511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); }
7513{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
7514$as_echo_n "checking lex output file root... " >&6; }
7515if test "${ac_cv_prog_lex_root+set}" = set; then
7516  $as_echo_n "(cached) " >&6
7517else
7518
7519if test -f lex.yy.c; then
7520  ac_cv_prog_lex_root=lex.yy
7521elif test -f lexyy.c; then
7522  ac_cv_prog_lex_root=lexyy
7523else
7524  { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7525$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7526   { (exit 1); exit 1; }; }
7527fi
7528fi
7529{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7530$as_echo "$ac_cv_prog_lex_root" >&6; }
7531LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7532
7533if test -z "${LEXLIB+set}"; then
7534  { $as_echo "$as_me:$LINENO: checking lex library" >&5
7535$as_echo_n "checking lex library... " >&6; }
7536if test "${ac_cv_lib_lex+set}" = set; then
7537  $as_echo_n "(cached) " >&6
7538else
7539
7540    ac_save_LIBS=$LIBS
7541    ac_cv_lib_lex='none needed'
7542    for ac_lib in '' -lfl -ll; do
7543      LIBS="$ac_lib $ac_save_LIBS"
7544      cat >conftest.$ac_ext <<_ACEOF
7545`cat $LEX_OUTPUT_ROOT.c`
7546_ACEOF
7547rm -f conftest.$ac_objext conftest$ac_exeext
7548if { (ac_try="$ac_link"
7549case "(($ac_try" in
7550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551  *) ac_try_echo=$ac_try;;
7552esac
7553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554$as_echo "$ac_try_echo") >&5
7555  (eval "$ac_link") 2>conftest.er1
7556  ac_status=$?
7557  grep -v '^ *+' conftest.er1 >conftest.err
7558  rm -f conftest.er1
7559  cat conftest.err >&5
7560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } && {
7562	 test -z "$ac_c_werror_flag" ||
7563	 test ! -s conftest.err
7564       } && test -s conftest$ac_exeext && {
7565	 test "$cross_compiling" = yes ||
7566	 $as_test_x conftest$ac_exeext
7567       }; then
7568  ac_cv_lib_lex=$ac_lib
7569else
7570  $as_echo "$as_me: failed program was:" >&5
7571sed 's/^/| /' conftest.$ac_ext >&5
7572
7573
7574fi
7575
7576rm -rf conftest.dSYM
7577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7578      conftest$ac_exeext conftest.$ac_ext
7579      test "$ac_cv_lib_lex" != 'none needed' && break
7580    done
7581    LIBS=$ac_save_LIBS
7582
7583fi
7584{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
7585$as_echo "$ac_cv_lib_lex" >&6; }
7586  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7587fi
7588
7589
7590{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7591$as_echo_n "checking whether yytext is a pointer... " >&6; }
7592if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7593  $as_echo_n "(cached) " >&6
7594else
7595  # POSIX says lex can declare yytext either as a pointer or an array; the
7596# default is implementation-dependent.  Figure out which it is, since
7597# not all implementations provide the %pointer and %array declarations.
7598ac_cv_prog_lex_yytext_pointer=no
7599ac_save_LIBS=$LIBS
7600LIBS="$LEXLIB $ac_save_LIBS"
7601cat >conftest.$ac_ext <<_ACEOF
7602#define YYTEXT_POINTER 1
7603`cat $LEX_OUTPUT_ROOT.c`
7604_ACEOF
7605rm -f conftest.$ac_objext conftest$ac_exeext
7606if { (ac_try="$ac_link"
7607case "(($ac_try" in
7608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609  *) ac_try_echo=$ac_try;;
7610esac
7611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612$as_echo "$ac_try_echo") >&5
7613  (eval "$ac_link") 2>conftest.er1
7614  ac_status=$?
7615  grep -v '^ *+' conftest.er1 >conftest.err
7616  rm -f conftest.er1
7617  cat conftest.err >&5
7618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); } && {
7620	 test -z "$ac_c_werror_flag" ||
7621	 test ! -s conftest.err
7622       } && test -s conftest$ac_exeext && {
7623	 test "$cross_compiling" = yes ||
7624	 $as_test_x conftest$ac_exeext
7625       }; then
7626  ac_cv_prog_lex_yytext_pointer=yes
7627else
7628  $as_echo "$as_me: failed program was:" >&5
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7631
7632fi
7633
7634rm -rf conftest.dSYM
7635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7636      conftest$ac_exeext conftest.$ac_ext
7637LIBS=$ac_save_LIBS
7638
7639fi
7640{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7641$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7642if test $ac_cv_prog_lex_yytext_pointer = yes; then
7643
7644cat >>confdefs.h <<\_ACEOF
7645#define YYTEXT_POINTER 1
7646_ACEOF
7647
7648fi
7649rm -f conftest.l $LEX_OUTPUT_ROOT.c
7650
7651fi
7652
7653if test -n "$auto_cflags"; then
7654  if test -n "$GCC"; then
7655    CFLAGS="$CFLAGS -O2 -Wall"
7656  else
7657    case "$host_os" in
7658      *hpux*)  CFLAGS="$CFLAGS +O3"                      ;;
7659      *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
7660      *)       CFLAGS="$CFLAGS -O" ;;
7661    esac
7662  fi
7663fi
7664
7665{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7666$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7667if test "${ac_cv_c_const+set}" = set; then
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h.  */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h.  */
7676
7677int
7678main ()
7679{
7680/* FIXME: Include the comments suggested by Paul. */
7681#ifndef __cplusplus
7682  /* Ultrix mips cc rejects this.  */
7683  typedef int charset[2];
7684  const charset cs;
7685  /* SunOS 4.1.1 cc rejects this.  */
7686  char const *const *pcpcc;
7687  char **ppc;
7688  /* NEC SVR4.0.2 mips cc rejects this.  */
7689  struct point {int x, y;};
7690  static struct point const zero = {0,0};
7691  /* AIX XL C 1.02.0.0 rejects this.
7692     It does not let you subtract one const X* pointer from another in
7693     an arm of an if-expression whose if-part is not a constant
7694     expression */
7695  const char *g = "string";
7696  pcpcc = &g + (g ? g-g : 0);
7697  /* HPUX 7.0 cc rejects these. */
7698  ++pcpcc;
7699  ppc = (char**) pcpcc;
7700  pcpcc = (char const *const *) ppc;
7701  { /* SCO 3.2v4 cc rejects this.  */
7702    char *t;
7703    char const *s = 0 ? (char *) 0 : (char const *) 0;
7704
7705    *t++ = 0;
7706    if (s) return 0;
7707  }
7708  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7709    int x[] = {25, 17};
7710    const int *foo = &x[0];
7711    ++foo;
7712  }
7713  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7714    typedef const int *iptr;
7715    iptr p = 0;
7716    ++p;
7717  }
7718  { /* AIX XL C 1.02.0.0 rejects this saying
7719       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7720    struct s { int j; const int *ap[3]; };
7721    struct s *b; b->j = 5;
7722  }
7723  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7724    const int foo = 10;
7725    if (!foo) return 0;
7726  }
7727  return !cs[0] && !zero.x;
7728#endif
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
7735if { (ac_try="$ac_compile"
7736case "(($ac_try" in
7737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738  *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7741$as_echo "$ac_try_echo") >&5
7742  (eval "$ac_compile") 2>conftest.er1
7743  ac_status=$?
7744  grep -v '^ *+' conftest.er1 >conftest.err
7745  rm -f conftest.er1
7746  cat conftest.err >&5
7747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); } && {
7749	 test -z "$ac_c_werror_flag" ||
7750	 test ! -s conftest.err
7751       } && test -s conftest.$ac_objext; then
7752  ac_cv_c_const=yes
7753else
7754  $as_echo "$as_me: failed program was:" >&5
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
7757	ac_cv_c_const=no
7758fi
7759
7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761fi
7762{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7763$as_echo "$ac_cv_c_const" >&6; }
7764if test $ac_cv_c_const = no; then
7765
7766cat >>confdefs.h <<\_ACEOF
7767#define const /**/
7768_ACEOF
7769
7770fi
7771
7772{ $as_echo "$as_me:$LINENO: checking for inline" >&5
7773$as_echo_n "checking for inline... " >&6; }
7774if test "${ac_cv_c_inline+set}" = set; then
7775  $as_echo_n "(cached) " >&6
7776else
7777  ac_cv_c_inline=no
7778for ac_kw in inline __inline__ __inline; do
7779  cat >conftest.$ac_ext <<_ACEOF
7780/* confdefs.h.  */
7781_ACEOF
7782cat confdefs.h >>conftest.$ac_ext
7783cat >>conftest.$ac_ext <<_ACEOF
7784/* end confdefs.h.  */
7785#ifndef __cplusplus
7786typedef int foo_t;
7787static $ac_kw foo_t static_foo () {return 0; }
7788$ac_kw foo_t foo () {return 0; }
7789#endif
7790
7791_ACEOF
7792rm -f conftest.$ac_objext
7793if { (ac_try="$ac_compile"
7794case "(($ac_try" in
7795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796  *) ac_try_echo=$ac_try;;
7797esac
7798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799$as_echo "$ac_try_echo") >&5
7800  (eval "$ac_compile") 2>conftest.er1
7801  ac_status=$?
7802  grep -v '^ *+' conftest.er1 >conftest.err
7803  rm -f conftest.er1
7804  cat conftest.err >&5
7805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806  (exit $ac_status); } && {
7807	 test -z "$ac_c_werror_flag" ||
7808	 test ! -s conftest.err
7809       } && test -s conftest.$ac_objext; then
7810  ac_cv_c_inline=$ac_kw
7811else
7812  $as_echo "$as_me: failed program was:" >&5
7813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815
7816fi
7817
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819  test "$ac_cv_c_inline" != no && break
7820done
7821
7822fi
7823{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7824$as_echo "$ac_cv_c_inline" >&6; }
7825
7826
7827case $ac_cv_c_inline in
7828  inline | yes) ;;
7829  *)
7830    case $ac_cv_c_inline in
7831      no) ac_val=;;
7832      *) ac_val=$ac_cv_c_inline;;
7833    esac
7834    cat >>confdefs.h <<_ACEOF
7835#ifndef __cplusplus
7836#define inline $ac_val
7837#endif
7838_ACEOF
7839    ;;
7840esac
7841
7842{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
7843$as_echo_n "checking for working volatile... " >&6; }
7844if test "${ac_cv_c_volatile+set}" = set; then
7845  $as_echo_n "(cached) " >&6
7846else
7847  cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h.  */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h.  */
7853
7854int
7855main ()
7856{
7857
7858volatile int x;
7859int * volatile y = (int *) 0;
7860return !x && !y;
7861  ;
7862  return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext
7866if { (ac_try="$ac_compile"
7867case "(($ac_try" in
7868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869  *) ac_try_echo=$ac_try;;
7870esac
7871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872$as_echo "$ac_try_echo") >&5
7873  (eval "$ac_compile") 2>conftest.er1
7874  ac_status=$?
7875  grep -v '^ *+' conftest.er1 >conftest.err
7876  rm -f conftest.er1
7877  cat conftest.err >&5
7878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); } && {
7880	 test -z "$ac_c_werror_flag" ||
7881	 test ! -s conftest.err
7882       } && test -s conftest.$ac_objext; then
7883  ac_cv_c_volatile=yes
7884else
7885  $as_echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888	ac_cv_c_volatile=no
7889fi
7890
7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892fi
7893{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7894$as_echo "$ac_cv_c_volatile" >&6; }
7895if test $ac_cv_c_volatile = no; then
7896
7897cat >>confdefs.h <<\_ACEOF
7898#define volatile /**/
7899_ACEOF
7900
7901fi
7902
7903
7904{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7905$as_echo_n "checking for ANSI C header files... " >&6; }
7906if test "${ac_cv_header_stdc+set}" = set; then
7907  $as_echo_n "(cached) " >&6
7908else
7909  cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h.  */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h.  */
7915#include <stdlib.h>
7916#include <stdarg.h>
7917#include <string.h>
7918#include <float.h>
7919
7920int
7921main ()
7922{
7923
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (ac_try="$ac_compile"
7930case "(($ac_try" in
7931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932  *) ac_try_echo=$ac_try;;
7933esac
7934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7935$as_echo "$ac_try_echo") >&5
7936  (eval "$ac_compile") 2>conftest.er1
7937  ac_status=$?
7938  grep -v '^ *+' conftest.er1 >conftest.err
7939  rm -f conftest.er1
7940  cat conftest.err >&5
7941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942  (exit $ac_status); } && {
7943	 test -z "$ac_c_werror_flag" ||
7944	 test ! -s conftest.err
7945       } && test -s conftest.$ac_objext; then
7946  ac_cv_header_stdc=yes
7947else
7948  $as_echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951	ac_cv_header_stdc=no
7952fi
7953
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955
7956if test $ac_cv_header_stdc = yes; then
7957  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7958  cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964#include <string.h>
7965
7966_ACEOF
7967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968  $EGREP "memchr" >/dev/null 2>&1; then
7969  :
7970else
7971  ac_cv_header_stdc=no
7972fi
7973rm -f conftest*
7974
7975fi
7976
7977if test $ac_cv_header_stdc = yes; then
7978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7979  cat >conftest.$ac_ext <<_ACEOF
7980/* confdefs.h.  */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h.  */
7985#include <stdlib.h>
7986
7987_ACEOF
7988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7989  $EGREP "free" >/dev/null 2>&1; then
7990  :
7991else
7992  ac_cv_header_stdc=no
7993fi
7994rm -f conftest*
7995
7996fi
7997
7998if test $ac_cv_header_stdc = yes; then
7999  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8000  if test "$cross_compiling" = yes; then
8001  :
8002else
8003  cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h.  */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h.  */
8009#include <ctype.h>
8010#include <stdlib.h>
8011#if ((' ' & 0x0FF) == 0x020)
8012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8014#else
8015# define ISLOWER(c) \
8016		   (('a' <= (c) && (c) <= 'i') \
8017		     || ('j' <= (c) && (c) <= 'r') \
8018		     || ('s' <= (c) && (c) <= 'z'))
8019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8020#endif
8021
8022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8023int
8024main ()
8025{
8026  int i;
8027  for (i = 0; i < 256; i++)
8028    if (XOR (islower (i), ISLOWER (i))
8029	|| toupper (i) != TOUPPER (i))
8030      return 2;
8031  return 0;
8032}
8033_ACEOF
8034rm -f conftest$ac_exeext
8035if { (ac_try="$ac_link"
8036case "(($ac_try" in
8037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038  *) ac_try_echo=$ac_try;;
8039esac
8040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041$as_echo "$ac_try_echo") >&5
8042  (eval "$ac_link") 2>&5
8043  ac_status=$?
8044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8046  { (case "(($ac_try" in
8047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048  *) ac_try_echo=$ac_try;;
8049esac
8050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8051$as_echo "$ac_try_echo") >&5
8052  (eval "$ac_try") 2>&5
8053  ac_status=$?
8054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055  (exit $ac_status); }; }; then
8056  :
8057else
8058  $as_echo "$as_me: program exited with status $ac_status" >&5
8059$as_echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062( exit $ac_status )
8063ac_cv_header_stdc=no
8064fi
8065rm -rf conftest.dSYM
8066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8067fi
8068
8069
8070fi
8071fi
8072{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8073$as_echo "$ac_cv_header_stdc" >&6; }
8074if test $ac_cv_header_stdc = yes; then
8075
8076cat >>confdefs.h <<\_ACEOF
8077#define STDC_HEADERS 1
8078_ACEOF
8079
8080fi
8081
8082
8083# Check whether --enable-largefile was given.
8084if test "${enable_largefile+set}" = set; then
8085  enableval=$enable_largefile;
8086fi
8087
8088if test "$enable_largefile" != no; then
8089
8090  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8091$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8092if test "${ac_cv_sys_largefile_CC+set}" = set; then
8093  $as_echo_n "(cached) " >&6
8094else
8095  ac_cv_sys_largefile_CC=no
8096     if test "$GCC" != yes; then
8097       ac_save_CC=$CC
8098       while :; do
8099	 # IRIX 6.2 and later do not support large files by default,
8100	 # so use the C compiler's -n32 option if that helps.
8101	 cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h.  */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h.  */
8107#include <sys/types.h>
8108 /* Check that off_t can represent 2**63 - 1 correctly.
8109    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8110    since some C++ compilers masquerading as C compilers
8111    incorrectly reject 9223372036854775807.  */
8112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8113  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8114		       && LARGE_OFF_T % 2147483647 == 1)
8115		      ? 1 : -1];
8116int
8117main ()
8118{
8119
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124	 rm -f conftest.$ac_objext
8125if { (ac_try="$ac_compile"
8126case "(($ac_try" in
8127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128  *) ac_try_echo=$ac_try;;
8129esac
8130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8131$as_echo "$ac_try_echo") >&5
8132  (eval "$ac_compile") 2>conftest.er1
8133  ac_status=$?
8134  grep -v '^ *+' conftest.er1 >conftest.err
8135  rm -f conftest.er1
8136  cat conftest.err >&5
8137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); } && {
8139	 test -z "$ac_c_werror_flag" ||
8140	 test ! -s conftest.err
8141       } && test -s conftest.$ac_objext; then
8142  break
8143else
8144  $as_echo "$as_me: failed program was:" >&5
8145sed 's/^/| /' conftest.$ac_ext >&5
8146
8147
8148fi
8149
8150rm -f core conftest.err conftest.$ac_objext
8151	 CC="$CC -n32"
8152	 rm -f conftest.$ac_objext
8153if { (ac_try="$ac_compile"
8154case "(($ac_try" in
8155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156  *) ac_try_echo=$ac_try;;
8157esac
8158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159$as_echo "$ac_try_echo") >&5
8160  (eval "$ac_compile") 2>conftest.er1
8161  ac_status=$?
8162  grep -v '^ *+' conftest.er1 >conftest.err
8163  rm -f conftest.er1
8164  cat conftest.err >&5
8165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166  (exit $ac_status); } && {
8167	 test -z "$ac_c_werror_flag" ||
8168	 test ! -s conftest.err
8169       } && test -s conftest.$ac_objext; then
8170  ac_cv_sys_largefile_CC=' -n32'; break
8171else
8172  $as_echo "$as_me: failed program was:" >&5
8173sed 's/^/| /' conftest.$ac_ext >&5
8174
8175
8176fi
8177
8178rm -f core conftest.err conftest.$ac_objext
8179	 break
8180       done
8181       CC=$ac_save_CC
8182       rm -f conftest.$ac_ext
8183    fi
8184fi
8185{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8186$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8187  if test "$ac_cv_sys_largefile_CC" != no; then
8188    CC=$CC$ac_cv_sys_largefile_CC
8189  fi
8190
8191  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8192$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8193if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8194  $as_echo_n "(cached) " >&6
8195else
8196  while :; do
8197  cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h.  */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h.  */
8203#include <sys/types.h>
8204 /* Check that off_t can represent 2**63 - 1 correctly.
8205    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8206    since some C++ compilers masquerading as C compilers
8207    incorrectly reject 9223372036854775807.  */
8208#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8209  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8210		       && LARGE_OFF_T % 2147483647 == 1)
8211		      ? 1 : -1];
8212int
8213main ()
8214{
8215
8216  ;
8217  return 0;
8218}
8219_ACEOF
8220rm -f conftest.$ac_objext
8221if { (ac_try="$ac_compile"
8222case "(($ac_try" in
8223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224  *) ac_try_echo=$ac_try;;
8225esac
8226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8227$as_echo "$ac_try_echo") >&5
8228  (eval "$ac_compile") 2>conftest.er1
8229  ac_status=$?
8230  grep -v '^ *+' conftest.er1 >conftest.err
8231  rm -f conftest.er1
8232  cat conftest.err >&5
8233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); } && {
8235	 test -z "$ac_c_werror_flag" ||
8236	 test ! -s conftest.err
8237       } && test -s conftest.$ac_objext; then
8238  ac_cv_sys_file_offset_bits=no; break
8239else
8240  $as_echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243
8244fi
8245
8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247  cat >conftest.$ac_ext <<_ACEOF
8248/* confdefs.h.  */
8249_ACEOF
8250cat confdefs.h >>conftest.$ac_ext
8251cat >>conftest.$ac_ext <<_ACEOF
8252/* end confdefs.h.  */
8253#define _FILE_OFFSET_BITS 64
8254#include <sys/types.h>
8255 /* Check that off_t can represent 2**63 - 1 correctly.
8256    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8257    since some C++ compilers masquerading as C compilers
8258    incorrectly reject 9223372036854775807.  */
8259#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8260  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8261		       && LARGE_OFF_T % 2147483647 == 1)
8262		      ? 1 : -1];
8263int
8264main ()
8265{
8266
8267  ;
8268  return 0;
8269}
8270_ACEOF
8271rm -f conftest.$ac_objext
8272if { (ac_try="$ac_compile"
8273case "(($ac_try" in
8274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275  *) ac_try_echo=$ac_try;;
8276esac
8277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278$as_echo "$ac_try_echo") >&5
8279  (eval "$ac_compile") 2>conftest.er1
8280  ac_status=$?
8281  grep -v '^ *+' conftest.er1 >conftest.err
8282  rm -f conftest.er1
8283  cat conftest.err >&5
8284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285  (exit $ac_status); } && {
8286	 test -z "$ac_c_werror_flag" ||
8287	 test ! -s conftest.err
8288       } && test -s conftest.$ac_objext; then
8289  ac_cv_sys_file_offset_bits=64; break
8290else
8291  $as_echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
8293
8294
8295fi
8296
8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298  ac_cv_sys_file_offset_bits=unknown
8299  break
8300done
8301fi
8302{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8303$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8304case $ac_cv_sys_file_offset_bits in #(
8305  no | unknown) ;;
8306  *)
8307cat >>confdefs.h <<_ACEOF
8308#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8309_ACEOF
8310;;
8311esac
8312rm -rf conftest*
8313  if test $ac_cv_sys_file_offset_bits = unknown; then
8314    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8315$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8316if test "${ac_cv_sys_large_files+set}" = set; then
8317  $as_echo_n "(cached) " >&6
8318else
8319  while :; do
8320  cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h.  */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h.  */
8326#include <sys/types.h>
8327 /* Check that off_t can represent 2**63 - 1 correctly.
8328    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8329    since some C++ compilers masquerading as C compilers
8330    incorrectly reject 9223372036854775807.  */
8331#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8332  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8333		       && LARGE_OFF_T % 2147483647 == 1)
8334		      ? 1 : -1];
8335int
8336main ()
8337{
8338
8339  ;
8340  return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext
8344if { (ac_try="$ac_compile"
8345case "(($ac_try" in
8346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347  *) ac_try_echo=$ac_try;;
8348esac
8349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350$as_echo "$ac_try_echo") >&5
8351  (eval "$ac_compile") 2>conftest.er1
8352  ac_status=$?
8353  grep -v '^ *+' conftest.er1 >conftest.err
8354  rm -f conftest.er1
8355  cat conftest.err >&5
8356  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); } && {
8358	 test -z "$ac_c_werror_flag" ||
8359	 test ! -s conftest.err
8360       } && test -s conftest.$ac_objext; then
8361  ac_cv_sys_large_files=no; break
8362else
8363  $as_echo "$as_me: failed program was:" >&5
8364sed 's/^/| /' conftest.$ac_ext >&5
8365
8366
8367fi
8368
8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370  cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h.  */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h.  */
8376#define _LARGE_FILES 1
8377#include <sys/types.h>
8378 /* Check that off_t can represent 2**63 - 1 correctly.
8379    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8380    since some C++ compilers masquerading as C compilers
8381    incorrectly reject 9223372036854775807.  */
8382#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8383  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8384		       && LARGE_OFF_T % 2147483647 == 1)
8385		      ? 1 : -1];
8386int
8387main ()
8388{
8389
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext
8395if { (ac_try="$ac_compile"
8396case "(($ac_try" in
8397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398  *) ac_try_echo=$ac_try;;
8399esac
8400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401$as_echo "$ac_try_echo") >&5
8402  (eval "$ac_compile") 2>conftest.er1
8403  ac_status=$?
8404  grep -v '^ *+' conftest.er1 >conftest.err
8405  rm -f conftest.er1
8406  cat conftest.err >&5
8407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); } && {
8409	 test -z "$ac_c_werror_flag" ||
8410	 test ! -s conftest.err
8411       } && test -s conftest.$ac_objext; then
8412  ac_cv_sys_large_files=1; break
8413else
8414  $as_echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
8418fi
8419
8420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421  ac_cv_sys_large_files=unknown
8422  break
8423done
8424fi
8425{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8426$as_echo "$ac_cv_sys_large_files" >&6; }
8427case $ac_cv_sys_large_files in #(
8428  no | unknown) ;;
8429  *)
8430cat >>confdefs.h <<_ACEOF
8431#define _LARGE_FILES $ac_cv_sys_large_files
8432_ACEOF
8433;;
8434esac
8435rm -rf conftest*
8436  fi
8437fi
8438
8439# The cast to long int works around a bug in the HP C Compiler
8440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8442# This bug is HP SR number 8606223364.
8443{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8444$as_echo_n "checking size of off_t... " >&6; }
8445if test "${ac_cv_sizeof_off_t+set}" = set; then
8446  $as_echo_n "(cached) " >&6
8447else
8448  if test "$cross_compiling" = yes; then
8449  # Depending upon the size, compute the lo and hi bounds.
8450cat >conftest.$ac_ext <<_ACEOF
8451/* confdefs.h.  */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h.  */
8456$ac_includes_default
8457int
8458main ()
8459{
8460static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8461test_array [0] = 0
8462
8463  ;
8464  return 0;
8465}
8466_ACEOF
8467rm -f conftest.$ac_objext
8468if { (ac_try="$ac_compile"
8469case "(($ac_try" in
8470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471  *) ac_try_echo=$ac_try;;
8472esac
8473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474$as_echo "$ac_try_echo") >&5
8475  (eval "$ac_compile") 2>conftest.er1
8476  ac_status=$?
8477  grep -v '^ *+' conftest.er1 >conftest.err
8478  rm -f conftest.er1
8479  cat conftest.err >&5
8480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); } && {
8482	 test -z "$ac_c_werror_flag" ||
8483	 test ! -s conftest.err
8484       } && test -s conftest.$ac_objext; then
8485  ac_lo=0 ac_mid=0
8486  while :; do
8487    cat >conftest.$ac_ext <<_ACEOF
8488/* confdefs.h.  */
8489_ACEOF
8490cat confdefs.h >>conftest.$ac_ext
8491cat >>conftest.$ac_ext <<_ACEOF
8492/* end confdefs.h.  */
8493$ac_includes_default
8494int
8495main ()
8496{
8497static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8498test_array [0] = 0
8499
8500  ;
8501  return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext
8505if { (ac_try="$ac_compile"
8506case "(($ac_try" in
8507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508  *) ac_try_echo=$ac_try;;
8509esac
8510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511$as_echo "$ac_try_echo") >&5
8512  (eval "$ac_compile") 2>conftest.er1
8513  ac_status=$?
8514  grep -v '^ *+' conftest.er1 >conftest.err
8515  rm -f conftest.er1
8516  cat conftest.err >&5
8517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518  (exit $ac_status); } && {
8519	 test -z "$ac_c_werror_flag" ||
8520	 test ! -s conftest.err
8521       } && test -s conftest.$ac_objext; then
8522  ac_hi=$ac_mid; break
8523else
8524  $as_echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527	ac_lo=`expr $ac_mid + 1`
8528			if test $ac_lo -le $ac_mid; then
8529			  ac_lo= ac_hi=
8530			  break
8531			fi
8532			ac_mid=`expr 2 '*' $ac_mid + 1`
8533fi
8534
8535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536  done
8537else
8538  $as_echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541	cat >conftest.$ac_ext <<_ACEOF
8542/* confdefs.h.  */
8543_ACEOF
8544cat confdefs.h >>conftest.$ac_ext
8545cat >>conftest.$ac_ext <<_ACEOF
8546/* end confdefs.h.  */
8547$ac_includes_default
8548int
8549main ()
8550{
8551static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8552test_array [0] = 0
8553
8554  ;
8555  return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext
8559if { (ac_try="$ac_compile"
8560case "(($ac_try" in
8561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562  *) ac_try_echo=$ac_try;;
8563esac
8564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565$as_echo "$ac_try_echo") >&5
8566  (eval "$ac_compile") 2>conftest.er1
8567  ac_status=$?
8568  grep -v '^ *+' conftest.er1 >conftest.err
8569  rm -f conftest.er1
8570  cat conftest.err >&5
8571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); } && {
8573	 test -z "$ac_c_werror_flag" ||
8574	 test ! -s conftest.err
8575       } && test -s conftest.$ac_objext; then
8576  ac_hi=-1 ac_mid=-1
8577  while :; do
8578    cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h.  */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h.  */
8584$ac_includes_default
8585int
8586main ()
8587{
8588static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
8589test_array [0] = 0
8590
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595rm -f conftest.$ac_objext
8596if { (ac_try="$ac_compile"
8597case "(($ac_try" in
8598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599  *) ac_try_echo=$ac_try;;
8600esac
8601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602$as_echo "$ac_try_echo") >&5
8603  (eval "$ac_compile") 2>conftest.er1
8604  ac_status=$?
8605  grep -v '^ *+' conftest.er1 >conftest.err
8606  rm -f conftest.er1
8607  cat conftest.err >&5
8608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609  (exit $ac_status); } && {
8610	 test -z "$ac_c_werror_flag" ||
8611	 test ! -s conftest.err
8612       } && test -s conftest.$ac_objext; then
8613  ac_lo=$ac_mid; break
8614else
8615  $as_echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618	ac_hi=`expr '(' $ac_mid ')' - 1`
8619			if test $ac_mid -le $ac_hi; then
8620			  ac_lo= ac_hi=
8621			  break
8622			fi
8623			ac_mid=`expr 2 '*' $ac_mid`
8624fi
8625
8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627  done
8628else
8629  $as_echo "$as_me: failed program was:" >&5
8630sed 's/^/| /' conftest.$ac_ext >&5
8631
8632	ac_lo= ac_hi=
8633fi
8634
8635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636fi
8637
8638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639# Binary search between lo and hi bounds.
8640while test "x$ac_lo" != "x$ac_hi"; do
8641  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8642  cat >conftest.$ac_ext <<_ACEOF
8643/* confdefs.h.  */
8644_ACEOF
8645cat confdefs.h >>conftest.$ac_ext
8646cat >>conftest.$ac_ext <<_ACEOF
8647/* end confdefs.h.  */
8648$ac_includes_default
8649int
8650main ()
8651{
8652static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8653test_array [0] = 0
8654
8655  ;
8656  return 0;
8657}
8658_ACEOF
8659rm -f conftest.$ac_objext
8660if { (ac_try="$ac_compile"
8661case "(($ac_try" in
8662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663  *) ac_try_echo=$ac_try;;
8664esac
8665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8666$as_echo "$ac_try_echo") >&5
8667  (eval "$ac_compile") 2>conftest.er1
8668  ac_status=$?
8669  grep -v '^ *+' conftest.er1 >conftest.err
8670  rm -f conftest.er1
8671  cat conftest.err >&5
8672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673  (exit $ac_status); } && {
8674	 test -z "$ac_c_werror_flag" ||
8675	 test ! -s conftest.err
8676       } && test -s conftest.$ac_objext; then
8677  ac_hi=$ac_mid
8678else
8679  $as_echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682	ac_lo=`expr '(' $ac_mid ')' + 1`
8683fi
8684
8685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686done
8687case $ac_lo in
8688?*) ac_cv_sizeof_off_t=$ac_lo;;
8689'') if test "$ac_cv_type_off_t" = yes; then
8690     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8692{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8693See \`config.log' for more details." >&5
8694$as_echo "$as_me: error: cannot compute sizeof (off_t)
8695See \`config.log' for more details." >&2;}
8696   { (exit 77); exit 77; }; }; }
8697   else
8698     ac_cv_sizeof_off_t=0
8699   fi ;;
8700esac
8701else
8702  cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h.  */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h.  */
8708$ac_includes_default
8709static long int longval () { return (long int) (sizeof (off_t)); }
8710static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
8711#include <stdio.h>
8712#include <stdlib.h>
8713int
8714main ()
8715{
8716
8717  FILE *f = fopen ("conftest.val", "w");
8718  if (! f)
8719    return 1;
8720  if (((long int) (sizeof (off_t))) < 0)
8721    {
8722      long int i = longval ();
8723      if (i != ((long int) (sizeof (off_t))))
8724	return 1;
8725      fprintf (f, "%ld", i);
8726    }
8727  else
8728    {
8729      unsigned long int i = ulongval ();
8730      if (i != ((long int) (sizeof (off_t))))
8731	return 1;
8732      fprintf (f, "%lu", i);
8733    }
8734  /* Do not output a trailing newline, as this causes \r\n confusion
8735     on some platforms.  */
8736  return ferror (f) || fclose (f) != 0;
8737
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742rm -f conftest$ac_exeext
8743if { (ac_try="$ac_link"
8744case "(($ac_try" in
8745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746  *) ac_try_echo=$ac_try;;
8747esac
8748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749$as_echo "$ac_try_echo") >&5
8750  (eval "$ac_link") 2>&5
8751  ac_status=$?
8752  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8754  { (case "(($ac_try" in
8755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756  *) ac_try_echo=$ac_try;;
8757esac
8758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8759$as_echo "$ac_try_echo") >&5
8760  (eval "$ac_try") 2>&5
8761  ac_status=$?
8762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763  (exit $ac_status); }; }; then
8764  ac_cv_sizeof_off_t=`cat conftest.val`
8765else
8766  $as_echo "$as_me: program exited with status $ac_status" >&5
8767$as_echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770( exit $ac_status )
8771if test "$ac_cv_type_off_t" = yes; then
8772     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8774{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8775See \`config.log' for more details." >&5
8776$as_echo "$as_me: error: cannot compute sizeof (off_t)
8777See \`config.log' for more details." >&2;}
8778   { (exit 77); exit 77; }; }; }
8779   else
8780     ac_cv_sizeof_off_t=0
8781   fi
8782fi
8783rm -rf conftest.dSYM
8784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8785fi
8786rm -f conftest.val
8787fi
8788{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8789$as_echo "$ac_cv_sizeof_off_t" >&6; }
8790
8791
8792
8793cat >>confdefs.h <<_ACEOF
8794#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8795_ACEOF
8796
8797
8798
8799{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8800$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8801if test "${ac_cv_header_stdbool_h+set}" = set; then
8802  $as_echo_n "(cached) " >&6
8803else
8804  cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h.  */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h.  */
8810
8811	  #include <stdbool.h>
8812	  #ifndef bool
8813	   "error: bool is not defined"
8814	  #endif
8815	  #ifndef false
8816	   "error: false is not defined"
8817	  #endif
8818	  #if false
8819	   "error: false is not 0"
8820	  #endif
8821	  #ifndef true
8822	   "error: true is not defined"
8823	  #endif
8824	  #if true != 1
8825	   "error: true is not 1"
8826	  #endif
8827	  #ifndef __bool_true_false_are_defined
8828	   "error: __bool_true_false_are_defined is not defined"
8829	  #endif
8830
8831	  struct s { _Bool s: 1; _Bool t; } s;
8832
8833	  char a[true == 1 ? 1 : -1];
8834	  char b[false == 0 ? 1 : -1];
8835	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8836	  char d[(bool) 0.5 == true ? 1 : -1];
8837	  bool e = &s;
8838	  char f[(_Bool) 0.0 == false ? 1 : -1];
8839	  char g[true];
8840	  char h[sizeof (_Bool)];
8841	  char i[sizeof s.t];
8842	  enum { j = false, k = true, l = false * true, m = true * 256 };
8843	  _Bool n[m];
8844	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8845	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8846	  #if defined __xlc__ || defined __GNUC__
8847	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8848	      reported by James Lemley on 2005-10-05; see
8849	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8850	      This test is not quite right, since xlc is allowed to
8851	      reject this program, as the initializer for xlcbug is
8852	      not one of the forms that C requires support for.
8853	      However, doing the test right would require a run-time
8854	      test, and that would make cross-compilation harder.
8855	      Let us hope that IBM fixes the xlc bug, and also adds
8856	      support for this kind of constant expression.  In the
8857	      meantime, this test will reject xlc, which is OK, since
8858	      our stdbool.h substitute should suffice.  We also test
8859	      this with GCC, where it should work, to detect more
8860	      quickly whether someone messes up the test in the
8861	      future.  */
8862	   char digs[] = "0123456789";
8863	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8864	  #endif
8865	  /* Catch a bug in an HP-UX C compiler.  See
8866	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8867	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8868	   */
8869	  _Bool q = true;
8870	  _Bool *pq = &q;
8871
8872int
8873main ()
8874{
8875
8876	  *pq |= q;
8877	  *pq |= ! q;
8878	  /* Refer to every declared value, to avoid compiler optimizations.  */
8879	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8880		  + !m + !n + !o + !p + !q + !pq);
8881
8882  ;
8883  return 0;
8884}
8885_ACEOF
8886rm -f conftest.$ac_objext
8887if { (ac_try="$ac_compile"
8888case "(($ac_try" in
8889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890  *) ac_try_echo=$ac_try;;
8891esac
8892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893$as_echo "$ac_try_echo") >&5
8894  (eval "$ac_compile") 2>conftest.er1
8895  ac_status=$?
8896  grep -v '^ *+' conftest.er1 >conftest.err
8897  rm -f conftest.er1
8898  cat conftest.err >&5
8899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900  (exit $ac_status); } && {
8901	 test -z "$ac_c_werror_flag" ||
8902	 test ! -s conftest.err
8903       } && test -s conftest.$ac_objext; then
8904  ac_cv_header_stdbool_h=yes
8905else
8906  $as_echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
8909	ac_cv_header_stdbool_h=no
8910fi
8911
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913fi
8914{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8915$as_echo "$ac_cv_header_stdbool_h" >&6; }
8916   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
8917$as_echo_n "checking for _Bool... " >&6; }
8918if test "${ac_cv_type__Bool+set}" = set; then
8919  $as_echo_n "(cached) " >&6
8920else
8921  ac_cv_type__Bool=no
8922cat >conftest.$ac_ext <<_ACEOF
8923/* confdefs.h.  */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>conftest.$ac_ext <<_ACEOF
8927/* end confdefs.h.  */
8928$ac_includes_default
8929int
8930main ()
8931{
8932if (sizeof (_Bool))
8933       return 0;
8934  ;
8935  return 0;
8936}
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (ac_try="$ac_compile"
8940case "(($ac_try" in
8941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942  *) ac_try_echo=$ac_try;;
8943esac
8944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8945$as_echo "$ac_try_echo") >&5
8946  (eval "$ac_compile") 2>conftest.er1
8947  ac_status=$?
8948  grep -v '^ *+' conftest.er1 >conftest.err
8949  rm -f conftest.er1
8950  cat conftest.err >&5
8951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952  (exit $ac_status); } && {
8953	 test -z "$ac_c_werror_flag" ||
8954	 test ! -s conftest.err
8955       } && test -s conftest.$ac_objext; then
8956  cat >conftest.$ac_ext <<_ACEOF
8957/* confdefs.h.  */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h.  */
8962$ac_includes_default
8963int
8964main ()
8965{
8966if (sizeof ((_Bool)))
8967	  return 0;
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext
8973if { (ac_try="$ac_compile"
8974case "(($ac_try" in
8975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976  *) ac_try_echo=$ac_try;;
8977esac
8978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8979$as_echo "$ac_try_echo") >&5
8980  (eval "$ac_compile") 2>conftest.er1
8981  ac_status=$?
8982  grep -v '^ *+' conftest.er1 >conftest.err
8983  rm -f conftest.er1
8984  cat conftest.err >&5
8985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986  (exit $ac_status); } && {
8987	 test -z "$ac_c_werror_flag" ||
8988	 test ! -s conftest.err
8989       } && test -s conftest.$ac_objext; then
8990  :
8991else
8992  $as_echo "$as_me: failed program was:" >&5
8993sed 's/^/| /' conftest.$ac_ext >&5
8994
8995	ac_cv_type__Bool=yes
8996fi
8997
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999else
9000  $as_echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003
9004fi
9005
9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007fi
9008{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9009$as_echo "$ac_cv_type__Bool" >&6; }
9010if test "x$ac_cv_type__Bool" = x""yes; then
9011
9012cat >>confdefs.h <<_ACEOF
9013#define HAVE__BOOL 1
9014_ACEOF
9015
9016
9017fi
9018
9019   if test $ac_cv_header_stdbool_h = yes; then
9020
9021cat >>confdefs.h <<\_ACEOF
9022#define HAVE_STDBOOL_H 1
9023_ACEOF
9024
9025   fi
9026
9027
9028for ac_header in unistd.h sys/time.h
9029do
9030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9033$as_echo_n "checking for $ac_header... " >&6; }
9034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9035  $as_echo_n "(cached) " >&6
9036fi
9037ac_res=`eval 'as_val=${'$as_ac_Header'}
9038		 $as_echo "$as_val"'`
9039	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9040$as_echo "$ac_res" >&6; }
9041else
9042  # Is the header compilable?
9043{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044$as_echo_n "checking $ac_header usability... " >&6; }
9045cat >conftest.$ac_ext <<_ACEOF
9046/* confdefs.h.  */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h.  */
9051$ac_includes_default
9052#include <$ac_header>
9053_ACEOF
9054rm -f conftest.$ac_objext
9055if { (ac_try="$ac_compile"
9056case "(($ac_try" in
9057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058  *) ac_try_echo=$ac_try;;
9059esac
9060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9061$as_echo "$ac_try_echo") >&5
9062  (eval "$ac_compile") 2>conftest.er1
9063  ac_status=$?
9064  grep -v '^ *+' conftest.er1 >conftest.err
9065  rm -f conftest.er1
9066  cat conftest.err >&5
9067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); } && {
9069	 test -z "$ac_c_werror_flag" ||
9070	 test ! -s conftest.err
9071       } && test -s conftest.$ac_objext; then
9072  ac_header_compiler=yes
9073else
9074  $as_echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077	ac_header_compiler=no
9078fi
9079
9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9082$as_echo "$ac_header_compiler" >&6; }
9083
9084# Is the header present?
9085{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9086$as_echo_n "checking $ac_header presence... " >&6; }
9087cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h.  */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h.  */
9093#include <$ac_header>
9094_ACEOF
9095if { (ac_try="$ac_cpp conftest.$ac_ext"
9096case "(($ac_try" in
9097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098  *) ac_try_echo=$ac_try;;
9099esac
9100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9101$as_echo "$ac_try_echo") >&5
9102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9103  ac_status=$?
9104  grep -v '^ *+' conftest.er1 >conftest.err
9105  rm -f conftest.er1
9106  cat conftest.err >&5
9107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108  (exit $ac_status); } >/dev/null && {
9109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9110	 test ! -s conftest.err
9111       }; then
9112  ac_header_preproc=yes
9113else
9114  $as_echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117  ac_header_preproc=no
9118fi
9119
9120rm -f conftest.err conftest.$ac_ext
9121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122$as_echo "$ac_header_preproc" >&6; }
9123
9124# So?  What about this header?
9125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9126  yes:no: )
9127    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9128$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9130$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9131    ac_header_preproc=yes
9132    ;;
9133  no:yes:* )
9134    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9135$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9136    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9137$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9138    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9139$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9140    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9141$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9142    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9145$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9146    ( cat <<\_ASBOX
9147## ------------------------------- ##
9148## Report this to bug-wget@gnu.org ##
9149## ------------------------------- ##
9150_ASBOX
9151     ) | sed "s/^/$as_me: WARNING:     /" >&2
9152    ;;
9153esac
9154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9155$as_echo_n "checking for $ac_header... " >&6; }
9156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9157  $as_echo_n "(cached) " >&6
9158else
9159  eval "$as_ac_Header=\$ac_header_preproc"
9160fi
9161ac_res=`eval 'as_val=${'$as_ac_Header'}
9162		 $as_echo "$as_val"'`
9163	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9164$as_echo "$ac_res" >&6; }
9165
9166fi
9167as_val=`eval 'as_val=${'$as_ac_Header'}
9168		 $as_echo "$as_val"'`
9169   if test "x$as_val" = x""yes; then
9170  cat >>confdefs.h <<_ACEOF
9171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172_ACEOF
9173
9174fi
9175
9176done
9177
9178
9179
9180
9181
9182
9183for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
9184do
9185as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9188$as_echo_n "checking for $ac_header... " >&6; }
9189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190  $as_echo_n "(cached) " >&6
9191fi
9192ac_res=`eval 'as_val=${'$as_ac_Header'}
9193		 $as_echo "$as_val"'`
9194	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9195$as_echo "$ac_res" >&6; }
9196else
9197  # Is the header compilable?
9198{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199$as_echo_n "checking $ac_header usability... " >&6; }
9200cat >conftest.$ac_ext <<_ACEOF
9201/* confdefs.h.  */
9202_ACEOF
9203cat confdefs.h >>conftest.$ac_ext
9204cat >>conftest.$ac_ext <<_ACEOF
9205/* end confdefs.h.  */
9206$ac_includes_default
9207#include <$ac_header>
9208_ACEOF
9209rm -f conftest.$ac_objext
9210if { (ac_try="$ac_compile"
9211case "(($ac_try" in
9212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213  *) ac_try_echo=$ac_try;;
9214esac
9215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216$as_echo "$ac_try_echo") >&5
9217  (eval "$ac_compile") 2>conftest.er1
9218  ac_status=$?
9219  grep -v '^ *+' conftest.er1 >conftest.err
9220  rm -f conftest.er1
9221  cat conftest.err >&5
9222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223  (exit $ac_status); } && {
9224	 test -z "$ac_c_werror_flag" ||
9225	 test ! -s conftest.err
9226       } && test -s conftest.$ac_objext; then
9227  ac_header_compiler=yes
9228else
9229  $as_echo "$as_me: failed program was:" >&5
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
9232	ac_header_compiler=no
9233fi
9234
9235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237$as_echo "$ac_header_compiler" >&6; }
9238
9239# Is the header present?
9240{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9241$as_echo_n "checking $ac_header presence... " >&6; }
9242cat >conftest.$ac_ext <<_ACEOF
9243/* confdefs.h.  */
9244_ACEOF
9245cat confdefs.h >>conftest.$ac_ext
9246cat >>conftest.$ac_ext <<_ACEOF
9247/* end confdefs.h.  */
9248#include <$ac_header>
9249_ACEOF
9250if { (ac_try="$ac_cpp conftest.$ac_ext"
9251case "(($ac_try" in
9252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253  *) ac_try_echo=$ac_try;;
9254esac
9255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9256$as_echo "$ac_try_echo") >&5
9257  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9258  ac_status=$?
9259  grep -v '^ *+' conftest.er1 >conftest.err
9260  rm -f conftest.er1
9261  cat conftest.err >&5
9262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263  (exit $ac_status); } >/dev/null && {
9264	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9265	 test ! -s conftest.err
9266       }; then
9267  ac_header_preproc=yes
9268else
9269  $as_echo "$as_me: failed program was:" >&5
9270sed 's/^/| /' conftest.$ac_ext >&5
9271
9272  ac_header_preproc=no
9273fi
9274
9275rm -f conftest.err conftest.$ac_ext
9276{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277$as_echo "$ac_header_preproc" >&6; }
9278
9279# So?  What about this header?
9280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9281  yes:no: )
9282    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9285$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9286    ac_header_preproc=yes
9287    ;;
9288  no:yes:* )
9289    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9292$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9294$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9296$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9297    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9300$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9301    ( cat <<\_ASBOX
9302## ------------------------------- ##
9303## Report this to bug-wget@gnu.org ##
9304## ------------------------------- ##
9305_ASBOX
9306     ) | sed "s/^/$as_me: WARNING:     /" >&2
9307    ;;
9308esac
9309{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9310$as_echo_n "checking for $ac_header... " >&6; }
9311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9312  $as_echo_n "(cached) " >&6
9313else
9314  eval "$as_ac_Header=\$ac_header_preproc"
9315fi
9316ac_res=`eval 'as_val=${'$as_ac_Header'}
9317		 $as_echo "$as_val"'`
9318	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9319$as_echo "$ac_res" >&6; }
9320
9321fi
9322as_val=`eval 'as_val=${'$as_ac_Header'}
9323		 $as_echo "$as_val"'`
9324   if test "x$as_val" = x""yes; then
9325  cat >>confdefs.h <<_ACEOF
9326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9327_ACEOF
9328
9329fi
9330
9331done
9332
9333
9334
9335
9336
9337for ac_header in stdint.h inttypes.h pwd.h wchar.h
9338do
9339as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9342$as_echo_n "checking for $ac_header... " >&6; }
9343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9344  $as_echo_n "(cached) " >&6
9345fi
9346ac_res=`eval 'as_val=${'$as_ac_Header'}
9347		 $as_echo "$as_val"'`
9348	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9349$as_echo "$ac_res" >&6; }
9350else
9351  # Is the header compilable?
9352{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9353$as_echo_n "checking $ac_header usability... " >&6; }
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h.  */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h.  */
9360$ac_includes_default
9361#include <$ac_header>
9362_ACEOF
9363rm -f conftest.$ac_objext
9364if { (ac_try="$ac_compile"
9365case "(($ac_try" in
9366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367  *) ac_try_echo=$ac_try;;
9368esac
9369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9370$as_echo "$ac_try_echo") >&5
9371  (eval "$ac_compile") 2>conftest.er1
9372  ac_status=$?
9373  grep -v '^ *+' conftest.er1 >conftest.err
9374  rm -f conftest.er1
9375  cat conftest.err >&5
9376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); } && {
9378	 test -z "$ac_c_werror_flag" ||
9379	 test ! -s conftest.err
9380       } && test -s conftest.$ac_objext; then
9381  ac_header_compiler=yes
9382else
9383  $as_echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386	ac_header_compiler=no
9387fi
9388
9389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391$as_echo "$ac_header_compiler" >&6; }
9392
9393# Is the header present?
9394{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395$as_echo_n "checking $ac_header presence... " >&6; }
9396cat >conftest.$ac_ext <<_ACEOF
9397/* confdefs.h.  */
9398_ACEOF
9399cat confdefs.h >>conftest.$ac_ext
9400cat >>conftest.$ac_ext <<_ACEOF
9401/* end confdefs.h.  */
9402#include <$ac_header>
9403_ACEOF
9404if { (ac_try="$ac_cpp conftest.$ac_ext"
9405case "(($ac_try" in
9406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407  *) ac_try_echo=$ac_try;;
9408esac
9409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9410$as_echo "$ac_try_echo") >&5
9411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9412  ac_status=$?
9413  grep -v '^ *+' conftest.er1 >conftest.err
9414  rm -f conftest.er1
9415  cat conftest.err >&5
9416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417  (exit $ac_status); } >/dev/null && {
9418	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9419	 test ! -s conftest.err
9420       }; then
9421  ac_header_preproc=yes
9422else
9423  $as_echo "$as_me: failed program was:" >&5
9424sed 's/^/| /' conftest.$ac_ext >&5
9425
9426  ac_header_preproc=no
9427fi
9428
9429rm -f conftest.err conftest.$ac_ext
9430{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431$as_echo "$ac_header_preproc" >&6; }
9432
9433# So?  What about this header?
9434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9435  yes:no: )
9436    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9437$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9439$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9440    ac_header_preproc=yes
9441    ;;
9442  no:yes:* )
9443    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9444$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9445    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9446$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9447    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9448$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9449    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9450$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9451    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9452$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9453    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9454$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9455    ( cat <<\_ASBOX
9456## ------------------------------- ##
9457## Report this to bug-wget@gnu.org ##
9458## ------------------------------- ##
9459_ASBOX
9460     ) | sed "s/^/$as_me: WARNING:     /" >&2
9461    ;;
9462esac
9463{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9464$as_echo_n "checking for $ac_header... " >&6; }
9465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9466  $as_echo_n "(cached) " >&6
9467else
9468  eval "$as_ac_Header=\$ac_header_preproc"
9469fi
9470ac_res=`eval 'as_val=${'$as_ac_Header'}
9471		 $as_echo "$as_val"'`
9472	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9473$as_echo "$ac_res" >&6; }
9474
9475fi
9476as_val=`eval 'as_val=${'$as_ac_Header'}
9477		 $as_echo "$as_val"'`
9478   if test "x$as_val" = x""yes; then
9479  cat >>confdefs.h <<_ACEOF
9480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481_ACEOF
9482
9483fi
9484
9485done
9486
9487
9488{ $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
9489$as_echo_n "checking whether h_errno is declared... " >&6; }
9490if test "${ac_cv_have_decl_h_errno+set}" = set; then
9491  $as_echo_n "(cached) " >&6
9492else
9493  cat >conftest.$ac_ext <<_ACEOF
9494/* confdefs.h.  */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h.  */
9499#include <netdb.h>
9500
9501int
9502main ()
9503{
9504#ifndef h_errno
9505  (void) h_errno;
9506#endif
9507
9508  ;
9509  return 0;
9510}
9511_ACEOF
9512rm -f conftest.$ac_objext
9513if { (ac_try="$ac_compile"
9514case "(($ac_try" in
9515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516  *) ac_try_echo=$ac_try;;
9517esac
9518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9519$as_echo "$ac_try_echo") >&5
9520  (eval "$ac_compile") 2>conftest.er1
9521  ac_status=$?
9522  grep -v '^ *+' conftest.er1 >conftest.err
9523  rm -f conftest.er1
9524  cat conftest.err >&5
9525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526  (exit $ac_status); } && {
9527	 test -z "$ac_c_werror_flag" ||
9528	 test ! -s conftest.err
9529       } && test -s conftest.$ac_objext; then
9530  ac_cv_have_decl_h_errno=yes
9531else
9532  $as_echo "$as_me: failed program was:" >&5
9533sed 's/^/| /' conftest.$ac_ext >&5
9534
9535	ac_cv_have_decl_h_errno=no
9536fi
9537
9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539fi
9540{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
9541$as_echo "$ac_cv_have_decl_h_errno" >&6; }
9542if test "x$ac_cv_have_decl_h_errno" = x""yes; then
9543
9544cat >>confdefs.h <<_ACEOF
9545#define HAVE_DECL_H_ERRNO 1
9546_ACEOF
9547
9548
9549else
9550  cat >>confdefs.h <<_ACEOF
9551#define HAVE_DECL_H_ERRNO 0
9552_ACEOF
9553
9554
9555fi
9556
9557
9558
9559# The cast to long int works around a bug in the HP C Compiler
9560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9562# This bug is HP SR number 8606223364.
9563{ $as_echo "$as_me:$LINENO: checking size of short" >&5
9564$as_echo_n "checking size of short... " >&6; }
9565if test "${ac_cv_sizeof_short+set}" = set; then
9566  $as_echo_n "(cached) " >&6
9567else
9568  if test "$cross_compiling" = yes; then
9569  # Depending upon the size, compute the lo and hi bounds.
9570cat >conftest.$ac_ext <<_ACEOF
9571/* confdefs.h.  */
9572_ACEOF
9573cat confdefs.h >>conftest.$ac_ext
9574cat >>conftest.$ac_ext <<_ACEOF
9575/* end confdefs.h.  */
9576$ac_includes_default
9577int
9578main ()
9579{
9580static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9581test_array [0] = 0
9582
9583  ;
9584  return 0;
9585}
9586_ACEOF
9587rm -f conftest.$ac_objext
9588if { (ac_try="$ac_compile"
9589case "(($ac_try" in
9590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591  *) ac_try_echo=$ac_try;;
9592esac
9593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594$as_echo "$ac_try_echo") >&5
9595  (eval "$ac_compile") 2>conftest.er1
9596  ac_status=$?
9597  grep -v '^ *+' conftest.er1 >conftest.err
9598  rm -f conftest.er1
9599  cat conftest.err >&5
9600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); } && {
9602	 test -z "$ac_c_werror_flag" ||
9603	 test ! -s conftest.err
9604       } && test -s conftest.$ac_objext; then
9605  ac_lo=0 ac_mid=0
9606  while :; do
9607    cat >conftest.$ac_ext <<_ACEOF
9608/* confdefs.h.  */
9609_ACEOF
9610cat confdefs.h >>conftest.$ac_ext
9611cat >>conftest.$ac_ext <<_ACEOF
9612/* end confdefs.h.  */
9613$ac_includes_default
9614int
9615main ()
9616{
9617static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9618test_array [0] = 0
9619
9620  ;
9621  return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (ac_try="$ac_compile"
9626case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9631$as_echo "$ac_try_echo") >&5
9632  (eval "$ac_compile") 2>conftest.er1
9633  ac_status=$?
9634  grep -v '^ *+' conftest.er1 >conftest.err
9635  rm -f conftest.er1
9636  cat conftest.err >&5
9637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638  (exit $ac_status); } && {
9639	 test -z "$ac_c_werror_flag" ||
9640	 test ! -s conftest.err
9641       } && test -s conftest.$ac_objext; then
9642  ac_hi=$ac_mid; break
9643else
9644  $as_echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
9647	ac_lo=`expr $ac_mid + 1`
9648			if test $ac_lo -le $ac_mid; then
9649			  ac_lo= ac_hi=
9650			  break
9651			fi
9652			ac_mid=`expr 2 '*' $ac_mid + 1`
9653fi
9654
9655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656  done
9657else
9658  $as_echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661	cat >conftest.$ac_ext <<_ACEOF
9662/* confdefs.h.  */
9663_ACEOF
9664cat confdefs.h >>conftest.$ac_ext
9665cat >>conftest.$ac_ext <<_ACEOF
9666/* end confdefs.h.  */
9667$ac_includes_default
9668int
9669main ()
9670{
9671static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9672test_array [0] = 0
9673
9674  ;
9675  return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (ac_try="$ac_compile"
9680case "(($ac_try" in
9681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682  *) ac_try_echo=$ac_try;;
9683esac
9684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685$as_echo "$ac_try_echo") >&5
9686  (eval "$ac_compile") 2>conftest.er1
9687  ac_status=$?
9688  grep -v '^ *+' conftest.er1 >conftest.err
9689  rm -f conftest.er1
9690  cat conftest.err >&5
9691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692  (exit $ac_status); } && {
9693	 test -z "$ac_c_werror_flag" ||
9694	 test ! -s conftest.err
9695       } && test -s conftest.$ac_objext; then
9696  ac_hi=-1 ac_mid=-1
9697  while :; do
9698    cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h.  */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h.  */
9704$ac_includes_default
9705int
9706main ()
9707{
9708static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9709test_array [0] = 0
9710
9711  ;
9712  return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext
9716if { (ac_try="$ac_compile"
9717case "(($ac_try" in
9718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719  *) ac_try_echo=$ac_try;;
9720esac
9721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722$as_echo "$ac_try_echo") >&5
9723  (eval "$ac_compile") 2>conftest.er1
9724  ac_status=$?
9725  grep -v '^ *+' conftest.er1 >conftest.err
9726  rm -f conftest.er1
9727  cat conftest.err >&5
9728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729  (exit $ac_status); } && {
9730	 test -z "$ac_c_werror_flag" ||
9731	 test ! -s conftest.err
9732       } && test -s conftest.$ac_objext; then
9733  ac_lo=$ac_mid; break
9734else
9735  $as_echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738	ac_hi=`expr '(' $ac_mid ')' - 1`
9739			if test $ac_mid -le $ac_hi; then
9740			  ac_lo= ac_hi=
9741			  break
9742			fi
9743			ac_mid=`expr 2 '*' $ac_mid`
9744fi
9745
9746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747  done
9748else
9749  $as_echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
9752	ac_lo= ac_hi=
9753fi
9754
9755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759# Binary search between lo and hi bounds.
9760while test "x$ac_lo" != "x$ac_hi"; do
9761  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9762  cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h.  */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h.  */
9768$ac_includes_default
9769int
9770main ()
9771{
9772static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9773test_array [0] = 0
9774
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext
9780if { (ac_try="$ac_compile"
9781case "(($ac_try" in
9782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783  *) ac_try_echo=$ac_try;;
9784esac
9785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9786$as_echo "$ac_try_echo") >&5
9787  (eval "$ac_compile") 2>conftest.er1
9788  ac_status=$?
9789  grep -v '^ *+' conftest.er1 >conftest.err
9790  rm -f conftest.er1
9791  cat conftest.err >&5
9792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793  (exit $ac_status); } && {
9794	 test -z "$ac_c_werror_flag" ||
9795	 test ! -s conftest.err
9796       } && test -s conftest.$ac_objext; then
9797  ac_hi=$ac_mid
9798else
9799  $as_echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
9802	ac_lo=`expr '(' $ac_mid ')' + 1`
9803fi
9804
9805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806done
9807case $ac_lo in
9808?*) ac_cv_sizeof_short=$ac_lo;;
9809'') if test "$ac_cv_type_short" = yes; then
9810     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9812{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9813See \`config.log' for more details." >&5
9814$as_echo "$as_me: error: cannot compute sizeof (short)
9815See \`config.log' for more details." >&2;}
9816   { (exit 77); exit 77; }; }; }
9817   else
9818     ac_cv_sizeof_short=0
9819   fi ;;
9820esac
9821else
9822  cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h.  */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h.  */
9828$ac_includes_default
9829static long int longval () { return (long int) (sizeof (short)); }
9830static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9831#include <stdio.h>
9832#include <stdlib.h>
9833int
9834main ()
9835{
9836
9837  FILE *f = fopen ("conftest.val", "w");
9838  if (! f)
9839    return 1;
9840  if (((long int) (sizeof (short))) < 0)
9841    {
9842      long int i = longval ();
9843      if (i != ((long int) (sizeof (short))))
9844	return 1;
9845      fprintf (f, "%ld", i);
9846    }
9847  else
9848    {
9849      unsigned long int i = ulongval ();
9850      if (i != ((long int) (sizeof (short))))
9851	return 1;
9852      fprintf (f, "%lu", i);
9853    }
9854  /* Do not output a trailing newline, as this causes \r\n confusion
9855     on some platforms.  */
9856  return ferror (f) || fclose (f) != 0;
9857
9858  ;
9859  return 0;
9860}
9861_ACEOF
9862rm -f conftest$ac_exeext
9863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866  *) ac_try_echo=$ac_try;;
9867esac
9868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869$as_echo "$ac_try_echo") >&5
9870  (eval "$ac_link") 2>&5
9871  ac_status=$?
9872  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874  { (case "(($ac_try" in
9875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876  *) ac_try_echo=$ac_try;;
9877esac
9878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9879$as_echo "$ac_try_echo") >&5
9880  (eval "$ac_try") 2>&5
9881  ac_status=$?
9882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883  (exit $ac_status); }; }; then
9884  ac_cv_sizeof_short=`cat conftest.val`
9885else
9886  $as_echo "$as_me: program exited with status $ac_status" >&5
9887$as_echo "$as_me: failed program was:" >&5
9888sed 's/^/| /' conftest.$ac_ext >&5
9889
9890( exit $ac_status )
9891if test "$ac_cv_type_short" = yes; then
9892     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9894{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9895See \`config.log' for more details." >&5
9896$as_echo "$as_me: error: cannot compute sizeof (short)
9897See \`config.log' for more details." >&2;}
9898   { (exit 77); exit 77; }; }; }
9899   else
9900     ac_cv_sizeof_short=0
9901   fi
9902fi
9903rm -rf conftest.dSYM
9904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9905fi
9906rm -f conftest.val
9907fi
9908{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9909$as_echo "$ac_cv_sizeof_short" >&6; }
9910
9911
9912
9913cat >>confdefs.h <<_ACEOF
9914#define SIZEOF_SHORT $ac_cv_sizeof_short
9915_ACEOF
9916
9917
9918# The cast to long int works around a bug in the HP C Compiler
9919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9921# This bug is HP SR number 8606223364.
9922{ $as_echo "$as_me:$LINENO: checking size of int" >&5
9923$as_echo_n "checking size of int... " >&6; }
9924if test "${ac_cv_sizeof_int+set}" = set; then
9925  $as_echo_n "(cached) " >&6
9926else
9927  if test "$cross_compiling" = yes; then
9928  # Depending upon the size, compute the lo and hi bounds.
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h.  */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h.  */
9935$ac_includes_default
9936int
9937main ()
9938{
9939static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
9940test_array [0] = 0
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (ac_try="$ac_compile"
9948case "(($ac_try" in
9949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950  *) ac_try_echo=$ac_try;;
9951esac
9952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953$as_echo "$ac_try_echo") >&5
9954  (eval "$ac_compile") 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } && {
9961	 test -z "$ac_c_werror_flag" ||
9962	 test ! -s conftest.err
9963       } && test -s conftest.$ac_objext; then
9964  ac_lo=0 ac_mid=0
9965  while :; do
9966    cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972$ac_includes_default
9973int
9974main ()
9975{
9976static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9977test_array [0] = 0
9978
9979  ;
9980  return 0;
9981}
9982_ACEOF
9983rm -f conftest.$ac_objext
9984if { (ac_try="$ac_compile"
9985case "(($ac_try" in
9986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987  *) ac_try_echo=$ac_try;;
9988esac
9989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990$as_echo "$ac_try_echo") >&5
9991  (eval "$ac_compile") 2>conftest.er1
9992  ac_status=$?
9993  grep -v '^ *+' conftest.er1 >conftest.err
9994  rm -f conftest.er1
9995  cat conftest.err >&5
9996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); } && {
9998	 test -z "$ac_c_werror_flag" ||
9999	 test ! -s conftest.err
10000       } && test -s conftest.$ac_objext; then
10001  ac_hi=$ac_mid; break
10002else
10003  $as_echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006	ac_lo=`expr $ac_mid + 1`
10007			if test $ac_lo -le $ac_mid; then
10008			  ac_lo= ac_hi=
10009			  break
10010			fi
10011			ac_mid=`expr 2 '*' $ac_mid + 1`
10012fi
10013
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015  done
10016else
10017  $as_echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
10020	cat >conftest.$ac_ext <<_ACEOF
10021/* confdefs.h.  */
10022_ACEOF
10023cat confdefs.h >>conftest.$ac_ext
10024cat >>conftest.$ac_ext <<_ACEOF
10025/* end confdefs.h.  */
10026$ac_includes_default
10027int
10028main ()
10029{
10030static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
10031test_array [0] = 0
10032
10033  ;
10034  return 0;
10035}
10036_ACEOF
10037rm -f conftest.$ac_objext
10038if { (ac_try="$ac_compile"
10039case "(($ac_try" in
10040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041  *) ac_try_echo=$ac_try;;
10042esac
10043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10044$as_echo "$ac_try_echo") >&5
10045  (eval "$ac_compile") 2>conftest.er1
10046  ac_status=$?
10047  grep -v '^ *+' conftest.er1 >conftest.err
10048  rm -f conftest.er1
10049  cat conftest.err >&5
10050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); } && {
10052	 test -z "$ac_c_werror_flag" ||
10053	 test ! -s conftest.err
10054       } && test -s conftest.$ac_objext; then
10055  ac_hi=-1 ac_mid=-1
10056  while :; do
10057    cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h.  */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h.  */
10063$ac_includes_default
10064int
10065main ()
10066{
10067static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
10068test_array [0] = 0
10069
10070  ;
10071  return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext
10075if { (ac_try="$ac_compile"
10076case "(($ac_try" in
10077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078  *) ac_try_echo=$ac_try;;
10079esac
10080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081$as_echo "$ac_try_echo") >&5
10082  (eval "$ac_compile") 2>conftest.er1
10083  ac_status=$?
10084  grep -v '^ *+' conftest.er1 >conftest.err
10085  rm -f conftest.er1
10086  cat conftest.err >&5
10087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); } && {
10089	 test -z "$ac_c_werror_flag" ||
10090	 test ! -s conftest.err
10091       } && test -s conftest.$ac_objext; then
10092  ac_lo=$ac_mid; break
10093else
10094  $as_echo "$as_me: failed program was:" >&5
10095sed 's/^/| /' conftest.$ac_ext >&5
10096
10097	ac_hi=`expr '(' $ac_mid ')' - 1`
10098			if test $ac_mid -le $ac_hi; then
10099			  ac_lo= ac_hi=
10100			  break
10101			fi
10102			ac_mid=`expr 2 '*' $ac_mid`
10103fi
10104
10105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106  done
10107else
10108  $as_echo "$as_me: failed program was:" >&5
10109sed 's/^/| /' conftest.$ac_ext >&5
10110
10111	ac_lo= ac_hi=
10112fi
10113
10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115fi
10116
10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118# Binary search between lo and hi bounds.
10119while test "x$ac_lo" != "x$ac_hi"; do
10120  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10121  cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h.  */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h.  */
10127$ac_includes_default
10128int
10129main ()
10130{
10131static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
10132test_array [0] = 0
10133
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext
10139if { (ac_try="$ac_compile"
10140case "(($ac_try" in
10141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142  *) ac_try_echo=$ac_try;;
10143esac
10144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10145$as_echo "$ac_try_echo") >&5
10146  (eval "$ac_compile") 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } && {
10153	 test -z "$ac_c_werror_flag" ||
10154	 test ! -s conftest.err
10155       } && test -s conftest.$ac_objext; then
10156  ac_hi=$ac_mid
10157else
10158  $as_echo "$as_me: failed program was:" >&5
10159sed 's/^/| /' conftest.$ac_ext >&5
10160
10161	ac_lo=`expr '(' $ac_mid ')' + 1`
10162fi
10163
10164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165done
10166case $ac_lo in
10167?*) ac_cv_sizeof_int=$ac_lo;;
10168'') if test "$ac_cv_type_int" = yes; then
10169     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10171{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10172See \`config.log' for more details." >&5
10173$as_echo "$as_me: error: cannot compute sizeof (int)
10174See \`config.log' for more details." >&2;}
10175   { (exit 77); exit 77; }; }; }
10176   else
10177     ac_cv_sizeof_int=0
10178   fi ;;
10179esac
10180else
10181  cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h.  */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h.  */
10187$ac_includes_default
10188static long int longval () { return (long int) (sizeof (int)); }
10189static unsigned long int ulongval () { return (long int) (sizeof (int)); }
10190#include <stdio.h>
10191#include <stdlib.h>
10192int
10193main ()
10194{
10195
10196  FILE *f = fopen ("conftest.val", "w");
10197  if (! f)
10198    return 1;
10199  if (((long int) (sizeof (int))) < 0)
10200    {
10201      long int i = longval ();
10202      if (i != ((long int) (sizeof (int))))
10203	return 1;
10204      fprintf (f, "%ld", i);
10205    }
10206  else
10207    {
10208      unsigned long int i = ulongval ();
10209      if (i != ((long int) (sizeof (int))))
10210	return 1;
10211      fprintf (f, "%lu", i);
10212    }
10213  /* Do not output a trailing newline, as this causes \r\n confusion
10214     on some platforms.  */
10215  return ferror (f) || fclose (f) != 0;
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221rm -f conftest$ac_exeext
10222if { (ac_try="$ac_link"
10223case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228$as_echo "$ac_try_echo") >&5
10229  (eval "$ac_link") 2>&5
10230  ac_status=$?
10231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10233  { (case "(($ac_try" in
10234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235  *) ac_try_echo=$ac_try;;
10236esac
10237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10238$as_echo "$ac_try_echo") >&5
10239  (eval "$ac_try") 2>&5
10240  ac_status=$?
10241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); }; }; then
10243  ac_cv_sizeof_int=`cat conftest.val`
10244else
10245  $as_echo "$as_me: program exited with status $ac_status" >&5
10246$as_echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249( exit $ac_status )
10250if test "$ac_cv_type_int" = yes; then
10251     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10253{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10254See \`config.log' for more details." >&5
10255$as_echo "$as_me: error: cannot compute sizeof (int)
10256See \`config.log' for more details." >&2;}
10257   { (exit 77); exit 77; }; }; }
10258   else
10259     ac_cv_sizeof_int=0
10260   fi
10261fi
10262rm -rf conftest.dSYM
10263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10264fi
10265rm -f conftest.val
10266fi
10267{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10268$as_echo "$ac_cv_sizeof_int" >&6; }
10269
10270
10271
10272cat >>confdefs.h <<_ACEOF
10273#define SIZEOF_INT $ac_cv_sizeof_int
10274_ACEOF
10275
10276
10277# The cast to long int works around a bug in the HP C Compiler
10278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10280# This bug is HP SR number 8606223364.
10281{ $as_echo "$as_me:$LINENO: checking size of long" >&5
10282$as_echo_n "checking size of long... " >&6; }
10283if test "${ac_cv_sizeof_long+set}" = set; then
10284  $as_echo_n "(cached) " >&6
10285else
10286  if test "$cross_compiling" = yes; then
10287  # Depending upon the size, compute the lo and hi bounds.
10288cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h.  */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h.  */
10294$ac_includes_default
10295int
10296main ()
10297{
10298static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
10299test_array [0] = 0
10300
10301  ;
10302  return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext
10306if { (ac_try="$ac_compile"
10307case "(($ac_try" in
10308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309  *) ac_try_echo=$ac_try;;
10310esac
10311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312$as_echo "$ac_try_echo") >&5
10313  (eval "$ac_compile") 2>conftest.er1
10314  ac_status=$?
10315  grep -v '^ *+' conftest.er1 >conftest.err
10316  rm -f conftest.er1
10317  cat conftest.err >&5
10318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319  (exit $ac_status); } && {
10320	 test -z "$ac_c_werror_flag" ||
10321	 test ! -s conftest.err
10322       } && test -s conftest.$ac_objext; then
10323  ac_lo=0 ac_mid=0
10324  while :; do
10325    cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h.  */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h.  */
10331$ac_includes_default
10332int
10333main ()
10334{
10335static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
10336test_array [0] = 0
10337
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342rm -f conftest.$ac_objext
10343if { (ac_try="$ac_compile"
10344case "(($ac_try" in
10345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346  *) ac_try_echo=$ac_try;;
10347esac
10348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10349$as_echo "$ac_try_echo") >&5
10350  (eval "$ac_compile") 2>conftest.er1
10351  ac_status=$?
10352  grep -v '^ *+' conftest.er1 >conftest.err
10353  rm -f conftest.er1
10354  cat conftest.err >&5
10355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); } && {
10357	 test -z "$ac_c_werror_flag" ||
10358	 test ! -s conftest.err
10359       } && test -s conftest.$ac_objext; then
10360  ac_hi=$ac_mid; break
10361else
10362  $as_echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365	ac_lo=`expr $ac_mid + 1`
10366			if test $ac_lo -le $ac_mid; then
10367			  ac_lo= ac_hi=
10368			  break
10369			fi
10370			ac_mid=`expr 2 '*' $ac_mid + 1`
10371fi
10372
10373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374  done
10375else
10376  $as_echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379	cat >conftest.$ac_ext <<_ACEOF
10380/* confdefs.h.  */
10381_ACEOF
10382cat confdefs.h >>conftest.$ac_ext
10383cat >>conftest.$ac_ext <<_ACEOF
10384/* end confdefs.h.  */
10385$ac_includes_default
10386int
10387main ()
10388{
10389static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
10390test_array [0] = 0
10391
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396rm -f conftest.$ac_objext
10397if { (ac_try="$ac_compile"
10398case "(($ac_try" in
10399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400  *) ac_try_echo=$ac_try;;
10401esac
10402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403$as_echo "$ac_try_echo") >&5
10404  (eval "$ac_compile") 2>conftest.er1
10405  ac_status=$?
10406  grep -v '^ *+' conftest.er1 >conftest.err
10407  rm -f conftest.er1
10408  cat conftest.err >&5
10409  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } && {
10411	 test -z "$ac_c_werror_flag" ||
10412	 test ! -s conftest.err
10413       } && test -s conftest.$ac_objext; then
10414  ac_hi=-1 ac_mid=-1
10415  while :; do
10416    cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h.  */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h.  */
10422$ac_includes_default
10423int
10424main ()
10425{
10426static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
10427test_array [0] = 0
10428
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433rm -f conftest.$ac_objext
10434if { (ac_try="$ac_compile"
10435case "(($ac_try" in
10436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437  *) ac_try_echo=$ac_try;;
10438esac
10439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10440$as_echo "$ac_try_echo") >&5
10441  (eval "$ac_compile") 2>conftest.er1
10442  ac_status=$?
10443  grep -v '^ *+' conftest.er1 >conftest.err
10444  rm -f conftest.er1
10445  cat conftest.err >&5
10446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447  (exit $ac_status); } && {
10448	 test -z "$ac_c_werror_flag" ||
10449	 test ! -s conftest.err
10450       } && test -s conftest.$ac_objext; then
10451  ac_lo=$ac_mid; break
10452else
10453  $as_echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456	ac_hi=`expr '(' $ac_mid ')' - 1`
10457			if test $ac_mid -le $ac_hi; then
10458			  ac_lo= ac_hi=
10459			  break
10460			fi
10461			ac_mid=`expr 2 '*' $ac_mid`
10462fi
10463
10464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465  done
10466else
10467  $as_echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
10470	ac_lo= ac_hi=
10471fi
10472
10473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474fi
10475
10476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10477# Binary search between lo and hi bounds.
10478while test "x$ac_lo" != "x$ac_hi"; do
10479  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10480  cat >conftest.$ac_ext <<_ACEOF
10481/* confdefs.h.  */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h.  */
10486$ac_includes_default
10487int
10488main ()
10489{
10490static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
10491test_array [0] = 0
10492
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext
10498if { (ac_try="$ac_compile"
10499case "(($ac_try" in
10500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501  *) ac_try_echo=$ac_try;;
10502esac
10503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504$as_echo "$ac_try_echo") >&5
10505  (eval "$ac_compile") 2>conftest.er1
10506  ac_status=$?
10507  grep -v '^ *+' conftest.er1 >conftest.err
10508  rm -f conftest.er1
10509  cat conftest.err >&5
10510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); } && {
10512	 test -z "$ac_c_werror_flag" ||
10513	 test ! -s conftest.err
10514       } && test -s conftest.$ac_objext; then
10515  ac_hi=$ac_mid
10516else
10517  $as_echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520	ac_lo=`expr '(' $ac_mid ')' + 1`
10521fi
10522
10523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524done
10525case $ac_lo in
10526?*) ac_cv_sizeof_long=$ac_lo;;
10527'') if test "$ac_cv_type_long" = yes; then
10528     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10530{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10531See \`config.log' for more details." >&5
10532$as_echo "$as_me: error: cannot compute sizeof (long)
10533See \`config.log' for more details." >&2;}
10534   { (exit 77); exit 77; }; }; }
10535   else
10536     ac_cv_sizeof_long=0
10537   fi ;;
10538esac
10539else
10540  cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h.  */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h.  */
10546$ac_includes_default
10547static long int longval () { return (long int) (sizeof (long)); }
10548static unsigned long int ulongval () { return (long int) (sizeof (long)); }
10549#include <stdio.h>
10550#include <stdlib.h>
10551int
10552main ()
10553{
10554
10555  FILE *f = fopen ("conftest.val", "w");
10556  if (! f)
10557    return 1;
10558  if (((long int) (sizeof (long))) < 0)
10559    {
10560      long int i = longval ();
10561      if (i != ((long int) (sizeof (long))))
10562	return 1;
10563      fprintf (f, "%ld", i);
10564    }
10565  else
10566    {
10567      unsigned long int i = ulongval ();
10568      if (i != ((long int) (sizeof (long))))
10569	return 1;
10570      fprintf (f, "%lu", i);
10571    }
10572  /* Do not output a trailing newline, as this causes \r\n confusion
10573     on some platforms.  */
10574  return ferror (f) || fclose (f) != 0;
10575
10576  ;
10577  return 0;
10578}
10579_ACEOF
10580rm -f conftest$ac_exeext
10581if { (ac_try="$ac_link"
10582case "(($ac_try" in
10583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584  *) ac_try_echo=$ac_try;;
10585esac
10586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587$as_echo "$ac_try_echo") >&5
10588  (eval "$ac_link") 2>&5
10589  ac_status=$?
10590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10592  { (case "(($ac_try" in
10593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594  *) ac_try_echo=$ac_try;;
10595esac
10596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597$as_echo "$ac_try_echo") >&5
10598  (eval "$ac_try") 2>&5
10599  ac_status=$?
10600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); }; }; then
10602  ac_cv_sizeof_long=`cat conftest.val`
10603else
10604  $as_echo "$as_me: program exited with status $ac_status" >&5
10605$as_echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608( exit $ac_status )
10609if test "$ac_cv_type_long" = yes; then
10610     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10612{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10613See \`config.log' for more details." >&5
10614$as_echo "$as_me: error: cannot compute sizeof (long)
10615See \`config.log' for more details." >&2;}
10616   { (exit 77); exit 77; }; }; }
10617   else
10618     ac_cv_sizeof_long=0
10619   fi
10620fi
10621rm -rf conftest.dSYM
10622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10623fi
10624rm -f conftest.val
10625fi
10626{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10627$as_echo "$ac_cv_sizeof_long" >&6; }
10628
10629
10630
10631cat >>confdefs.h <<_ACEOF
10632#define SIZEOF_LONG $ac_cv_sizeof_long
10633_ACEOF
10634
10635
10636# The cast to long int works around a bug in the HP C Compiler
10637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10639# This bug is HP SR number 8606223364.
10640{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
10641$as_echo_n "checking size of long long... " >&6; }
10642if test "${ac_cv_sizeof_long_long+set}" = set; then
10643  $as_echo_n "(cached) " >&6
10644else
10645  if test "$cross_compiling" = yes; then
10646  # Depending upon the size, compute the lo and hi bounds.
10647cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h.  */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h.  */
10653$ac_includes_default
10654int
10655main ()
10656{
10657static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
10658test_array [0] = 0
10659
10660  ;
10661  return 0;
10662}
10663_ACEOF
10664rm -f conftest.$ac_objext
10665if { (ac_try="$ac_compile"
10666case "(($ac_try" in
10667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668  *) ac_try_echo=$ac_try;;
10669esac
10670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10671$as_echo "$ac_try_echo") >&5
10672  (eval "$ac_compile") 2>conftest.er1
10673  ac_status=$?
10674  grep -v '^ *+' conftest.er1 >conftest.err
10675  rm -f conftest.er1
10676  cat conftest.err >&5
10677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678  (exit $ac_status); } && {
10679	 test -z "$ac_c_werror_flag" ||
10680	 test ! -s conftest.err
10681       } && test -s conftest.$ac_objext; then
10682  ac_lo=0 ac_mid=0
10683  while :; do
10684    cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690$ac_includes_default
10691int
10692main ()
10693{
10694static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
10695test_array [0] = 0
10696
10697  ;
10698  return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext
10702if { (ac_try="$ac_compile"
10703case "(($ac_try" in
10704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705  *) ac_try_echo=$ac_try;;
10706esac
10707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708$as_echo "$ac_try_echo") >&5
10709  (eval "$ac_compile") 2>conftest.er1
10710  ac_status=$?
10711  grep -v '^ *+' conftest.er1 >conftest.err
10712  rm -f conftest.er1
10713  cat conftest.err >&5
10714  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715  (exit $ac_status); } && {
10716	 test -z "$ac_c_werror_flag" ||
10717	 test ! -s conftest.err
10718       } && test -s conftest.$ac_objext; then
10719  ac_hi=$ac_mid; break
10720else
10721  $as_echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724	ac_lo=`expr $ac_mid + 1`
10725			if test $ac_lo -le $ac_mid; then
10726			  ac_lo= ac_hi=
10727			  break
10728			fi
10729			ac_mid=`expr 2 '*' $ac_mid + 1`
10730fi
10731
10732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733  done
10734else
10735  $as_echo "$as_me: failed program was:" >&5
10736sed 's/^/| /' conftest.$ac_ext >&5
10737
10738	cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h.  */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h.  */
10744$ac_includes_default
10745int
10746main ()
10747{
10748static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
10749test_array [0] = 0
10750
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext
10756if { (ac_try="$ac_compile"
10757case "(($ac_try" in
10758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759  *) ac_try_echo=$ac_try;;
10760esac
10761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10762$as_echo "$ac_try_echo") >&5
10763  (eval "$ac_compile") 2>conftest.er1
10764  ac_status=$?
10765  grep -v '^ *+' conftest.er1 >conftest.err
10766  rm -f conftest.er1
10767  cat conftest.err >&5
10768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); } && {
10770	 test -z "$ac_c_werror_flag" ||
10771	 test ! -s conftest.err
10772       } && test -s conftest.$ac_objext; then
10773  ac_hi=-1 ac_mid=-1
10774  while :; do
10775    cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h.  */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h.  */
10781$ac_includes_default
10782int
10783main ()
10784{
10785static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
10786test_array [0] = 0
10787
10788  ;
10789  return 0;
10790}
10791_ACEOF
10792rm -f conftest.$ac_objext
10793if { (ac_try="$ac_compile"
10794case "(($ac_try" in
10795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796  *) ac_try_echo=$ac_try;;
10797esac
10798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10799$as_echo "$ac_try_echo") >&5
10800  (eval "$ac_compile") 2>conftest.er1
10801  ac_status=$?
10802  grep -v '^ *+' conftest.er1 >conftest.err
10803  rm -f conftest.er1
10804  cat conftest.err >&5
10805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806  (exit $ac_status); } && {
10807	 test -z "$ac_c_werror_flag" ||
10808	 test ! -s conftest.err
10809       } && test -s conftest.$ac_objext; then
10810  ac_lo=$ac_mid; break
10811else
10812  $as_echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
10815	ac_hi=`expr '(' $ac_mid ')' - 1`
10816			if test $ac_mid -le $ac_hi; then
10817			  ac_lo= ac_hi=
10818			  break
10819			fi
10820			ac_mid=`expr 2 '*' $ac_mid`
10821fi
10822
10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824  done
10825else
10826  $as_echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829	ac_lo= ac_hi=
10830fi
10831
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833fi
10834
10835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836# Binary search between lo and hi bounds.
10837while test "x$ac_lo" != "x$ac_hi"; do
10838  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10839  cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h.  */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h.  */
10845$ac_includes_default
10846int
10847main ()
10848{
10849static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
10850test_array [0] = 0
10851
10852  ;
10853  return 0;
10854}
10855_ACEOF
10856rm -f conftest.$ac_objext
10857if { (ac_try="$ac_compile"
10858case "(($ac_try" in
10859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860  *) ac_try_echo=$ac_try;;
10861esac
10862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10863$as_echo "$ac_try_echo") >&5
10864  (eval "$ac_compile") 2>conftest.er1
10865  ac_status=$?
10866  grep -v '^ *+' conftest.er1 >conftest.err
10867  rm -f conftest.er1
10868  cat conftest.err >&5
10869  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870  (exit $ac_status); } && {
10871	 test -z "$ac_c_werror_flag" ||
10872	 test ! -s conftest.err
10873       } && test -s conftest.$ac_objext; then
10874  ac_hi=$ac_mid
10875else
10876  $as_echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
10878
10879	ac_lo=`expr '(' $ac_mid ')' + 1`
10880fi
10881
10882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883done
10884case $ac_lo in
10885?*) ac_cv_sizeof_long_long=$ac_lo;;
10886'') if test "$ac_cv_type_long_long" = yes; then
10887     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10889{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10890See \`config.log' for more details." >&5
10891$as_echo "$as_me: error: cannot compute sizeof (long long)
10892See \`config.log' for more details." >&2;}
10893   { (exit 77); exit 77; }; }; }
10894   else
10895     ac_cv_sizeof_long_long=0
10896   fi ;;
10897esac
10898else
10899  cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h.  */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h.  */
10905$ac_includes_default
10906static long int longval () { return (long int) (sizeof (long long)); }
10907static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
10908#include <stdio.h>
10909#include <stdlib.h>
10910int
10911main ()
10912{
10913
10914  FILE *f = fopen ("conftest.val", "w");
10915  if (! f)
10916    return 1;
10917  if (((long int) (sizeof (long long))) < 0)
10918    {
10919      long int i = longval ();
10920      if (i != ((long int) (sizeof (long long))))
10921	return 1;
10922      fprintf (f, "%ld", i);
10923    }
10924  else
10925    {
10926      unsigned long int i = ulongval ();
10927      if (i != ((long int) (sizeof (long long))))
10928	return 1;
10929      fprintf (f, "%lu", i);
10930    }
10931  /* Do not output a trailing newline, as this causes \r\n confusion
10932     on some platforms.  */
10933  return ferror (f) || fclose (f) != 0;
10934
10935  ;
10936  return 0;
10937}
10938_ACEOF
10939rm -f conftest$ac_exeext
10940if { (ac_try="$ac_link"
10941case "(($ac_try" in
10942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943  *) ac_try_echo=$ac_try;;
10944esac
10945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10946$as_echo "$ac_try_echo") >&5
10947  (eval "$ac_link") 2>&5
10948  ac_status=$?
10949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10951  { (case "(($ac_try" in
10952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953  *) ac_try_echo=$ac_try;;
10954esac
10955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10956$as_echo "$ac_try_echo") >&5
10957  (eval "$ac_try") 2>&5
10958  ac_status=$?
10959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960  (exit $ac_status); }; }; then
10961  ac_cv_sizeof_long_long=`cat conftest.val`
10962else
10963  $as_echo "$as_me: program exited with status $ac_status" >&5
10964$as_echo "$as_me: failed program was:" >&5
10965sed 's/^/| /' conftest.$ac_ext >&5
10966
10967( exit $ac_status )
10968if test "$ac_cv_type_long_long" = yes; then
10969     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10971{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10972See \`config.log' for more details." >&5
10973$as_echo "$as_me: error: cannot compute sizeof (long long)
10974See \`config.log' for more details." >&2;}
10975   { (exit 77); exit 77; }; }; }
10976   else
10977     ac_cv_sizeof_long_long=0
10978   fi
10979fi
10980rm -rf conftest.dSYM
10981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10982fi
10983rm -f conftest.val
10984fi
10985{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10986$as_echo "$ac_cv_sizeof_long_long" >&6; }
10987
10988
10989
10990cat >>confdefs.h <<_ACEOF
10991#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10992_ACEOF
10993
10994
10995# The cast to long int works around a bug in the HP C Compiler
10996# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10997# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10998# This bug is HP SR number 8606223364.
10999{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
11000$as_echo_n "checking size of void *... " >&6; }
11001if test "${ac_cv_sizeof_void_p+set}" = set; then
11002  $as_echo_n "(cached) " >&6
11003else
11004  if test "$cross_compiling" = yes; then
11005  # Depending upon the size, compute the lo and hi bounds.
11006cat >conftest.$ac_ext <<_ACEOF
11007/* confdefs.h.  */
11008_ACEOF
11009cat confdefs.h >>conftest.$ac_ext
11010cat >>conftest.$ac_ext <<_ACEOF
11011/* end confdefs.h.  */
11012$ac_includes_default
11013int
11014main ()
11015{
11016static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
11017test_array [0] = 0
11018
11019  ;
11020  return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027  *) ac_try_echo=$ac_try;;
11028esac
11029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030$as_echo "$ac_try_echo") >&5
11031  (eval "$ac_compile") 2>conftest.er1
11032  ac_status=$?
11033  grep -v '^ *+' conftest.er1 >conftest.err
11034  rm -f conftest.er1
11035  cat conftest.err >&5
11036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037  (exit $ac_status); } && {
11038	 test -z "$ac_c_werror_flag" ||
11039	 test ! -s conftest.err
11040       } && test -s conftest.$ac_objext; then
11041  ac_lo=0 ac_mid=0
11042  while :; do
11043    cat >conftest.$ac_ext <<_ACEOF
11044/* confdefs.h.  */
11045_ACEOF
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
11048/* end confdefs.h.  */
11049$ac_includes_default
11050int
11051main ()
11052{
11053static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11054test_array [0] = 0
11055
11056  ;
11057  return 0;
11058}
11059_ACEOF
11060rm -f conftest.$ac_objext
11061if { (ac_try="$ac_compile"
11062case "(($ac_try" in
11063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064  *) ac_try_echo=$ac_try;;
11065esac
11066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067$as_echo "$ac_try_echo") >&5
11068  (eval "$ac_compile") 2>conftest.er1
11069  ac_status=$?
11070  grep -v '^ *+' conftest.er1 >conftest.err
11071  rm -f conftest.er1
11072  cat conftest.err >&5
11073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074  (exit $ac_status); } && {
11075	 test -z "$ac_c_werror_flag" ||
11076	 test ! -s conftest.err
11077       } && test -s conftest.$ac_objext; then
11078  ac_hi=$ac_mid; break
11079else
11080  $as_echo "$as_me: failed program was:" >&5
11081sed 's/^/| /' conftest.$ac_ext >&5
11082
11083	ac_lo=`expr $ac_mid + 1`
11084			if test $ac_lo -le $ac_mid; then
11085			  ac_lo= ac_hi=
11086			  break
11087			fi
11088			ac_mid=`expr 2 '*' $ac_mid + 1`
11089fi
11090
11091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092  done
11093else
11094  $as_echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097	cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h.  */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h.  */
11103$ac_includes_default
11104int
11105main ()
11106{
11107static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
11108test_array [0] = 0
11109
11110  ;
11111  return 0;
11112}
11113_ACEOF
11114rm -f conftest.$ac_objext
11115if { (ac_try="$ac_compile"
11116case "(($ac_try" in
11117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118  *) ac_try_echo=$ac_try;;
11119esac
11120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121$as_echo "$ac_try_echo") >&5
11122  (eval "$ac_compile") 2>conftest.er1
11123  ac_status=$?
11124  grep -v '^ *+' conftest.er1 >conftest.err
11125  rm -f conftest.er1
11126  cat conftest.err >&5
11127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128  (exit $ac_status); } && {
11129	 test -z "$ac_c_werror_flag" ||
11130	 test ! -s conftest.err
11131       } && test -s conftest.$ac_objext; then
11132  ac_hi=-1 ac_mid=-1
11133  while :; do
11134    cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h.  */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h.  */
11140$ac_includes_default
11141int
11142main ()
11143{
11144static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
11145test_array [0] = 0
11146
11147  ;
11148  return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext
11152if { (ac_try="$ac_compile"
11153case "(($ac_try" in
11154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155  *) ac_try_echo=$ac_try;;
11156esac
11157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158$as_echo "$ac_try_echo") >&5
11159  (eval "$ac_compile") 2>conftest.er1
11160  ac_status=$?
11161  grep -v '^ *+' conftest.er1 >conftest.err
11162  rm -f conftest.er1
11163  cat conftest.err >&5
11164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); } && {
11166	 test -z "$ac_c_werror_flag" ||
11167	 test ! -s conftest.err
11168       } && test -s conftest.$ac_objext; then
11169  ac_lo=$ac_mid; break
11170else
11171  $as_echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174	ac_hi=`expr '(' $ac_mid ')' - 1`
11175			if test $ac_mid -le $ac_hi; then
11176			  ac_lo= ac_hi=
11177			  break
11178			fi
11179			ac_mid=`expr 2 '*' $ac_mid`
11180fi
11181
11182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183  done
11184else
11185  $as_echo "$as_me: failed program was:" >&5
11186sed 's/^/| /' conftest.$ac_ext >&5
11187
11188	ac_lo= ac_hi=
11189fi
11190
11191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192fi
11193
11194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195# Binary search between lo and hi bounds.
11196while test "x$ac_lo" != "x$ac_hi"; do
11197  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11198  cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h.  */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h.  */
11204$ac_includes_default
11205int
11206main ()
11207{
11208static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11209test_array [0] = 0
11210
11211  ;
11212  return 0;
11213}
11214_ACEOF
11215rm -f conftest.$ac_objext
11216if { (ac_try="$ac_compile"
11217case "(($ac_try" in
11218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219  *) ac_try_echo=$ac_try;;
11220esac
11221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222$as_echo "$ac_try_echo") >&5
11223  (eval "$ac_compile") 2>conftest.er1
11224  ac_status=$?
11225  grep -v '^ *+' conftest.er1 >conftest.err
11226  rm -f conftest.er1
11227  cat conftest.err >&5
11228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229  (exit $ac_status); } && {
11230	 test -z "$ac_c_werror_flag" ||
11231	 test ! -s conftest.err
11232       } && test -s conftest.$ac_objext; then
11233  ac_hi=$ac_mid
11234else
11235  $as_echo "$as_me: failed program was:" >&5
11236sed 's/^/| /' conftest.$ac_ext >&5
11237
11238	ac_lo=`expr '(' $ac_mid ')' + 1`
11239fi
11240
11241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242done
11243case $ac_lo in
11244?*) ac_cv_sizeof_void_p=$ac_lo;;
11245'') if test "$ac_cv_type_void_p" = yes; then
11246     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11248{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11249See \`config.log' for more details." >&5
11250$as_echo "$as_me: error: cannot compute sizeof (void *)
11251See \`config.log' for more details." >&2;}
11252   { (exit 77); exit 77; }; }; }
11253   else
11254     ac_cv_sizeof_void_p=0
11255   fi ;;
11256esac
11257else
11258  cat >conftest.$ac_ext <<_ACEOF
11259/* confdefs.h.  */
11260_ACEOF
11261cat confdefs.h >>conftest.$ac_ext
11262cat >>conftest.$ac_ext <<_ACEOF
11263/* end confdefs.h.  */
11264$ac_includes_default
11265static long int longval () { return (long int) (sizeof (void *)); }
11266static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
11267#include <stdio.h>
11268#include <stdlib.h>
11269int
11270main ()
11271{
11272
11273  FILE *f = fopen ("conftest.val", "w");
11274  if (! f)
11275    return 1;
11276  if (((long int) (sizeof (void *))) < 0)
11277    {
11278      long int i = longval ();
11279      if (i != ((long int) (sizeof (void *))))
11280	return 1;
11281      fprintf (f, "%ld", i);
11282    }
11283  else
11284    {
11285      unsigned long int i = ulongval ();
11286      if (i != ((long int) (sizeof (void *))))
11287	return 1;
11288      fprintf (f, "%lu", i);
11289    }
11290  /* Do not output a trailing newline, as this causes \r\n confusion
11291     on some platforms.  */
11292  return ferror (f) || fclose (f) != 0;
11293
11294  ;
11295  return 0;
11296}
11297_ACEOF
11298rm -f conftest$ac_exeext
11299if { (ac_try="$ac_link"
11300case "(($ac_try" in
11301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302  *) ac_try_echo=$ac_try;;
11303esac
11304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305$as_echo "$ac_try_echo") >&5
11306  (eval "$ac_link") 2>&5
11307  ac_status=$?
11308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11310  { (case "(($ac_try" in
11311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312  *) ac_try_echo=$ac_try;;
11313esac
11314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315$as_echo "$ac_try_echo") >&5
11316  (eval "$ac_try") 2>&5
11317  ac_status=$?
11318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319  (exit $ac_status); }; }; then
11320  ac_cv_sizeof_void_p=`cat conftest.val`
11321else
11322  $as_echo "$as_me: program exited with status $ac_status" >&5
11323$as_echo "$as_me: failed program was:" >&5
11324sed 's/^/| /' conftest.$ac_ext >&5
11325
11326( exit $ac_status )
11327if test "$ac_cv_type_void_p" = yes; then
11328     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11330{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11331See \`config.log' for more details." >&5
11332$as_echo "$as_me: error: cannot compute sizeof (void *)
11333See \`config.log' for more details." >&2;}
11334   { (exit 77); exit 77; }; }; }
11335   else
11336     ac_cv_sizeof_void_p=0
11337   fi
11338fi
11339rm -rf conftest.dSYM
11340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11341fi
11342rm -f conftest.val
11343fi
11344{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11345$as_echo "$ac_cv_sizeof_void_p" >&6; }
11346
11347
11348
11349cat >>confdefs.h <<_ACEOF
11350#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11351_ACEOF
11352
11353
11354
11355{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11356$as_echo_n "checking for size_t... " >&6; }
11357if test "${ac_cv_type_size_t+set}" = set; then
11358  $as_echo_n "(cached) " >&6
11359else
11360  ac_cv_type_size_t=no
11361cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h.  */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h.  */
11367$ac_includes_default
11368int
11369main ()
11370{
11371if (sizeof (size_t))
11372       return 0;
11373  ;
11374  return 0;
11375}
11376_ACEOF
11377rm -f conftest.$ac_objext
11378if { (ac_try="$ac_compile"
11379case "(($ac_try" in
11380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381  *) ac_try_echo=$ac_try;;
11382esac
11383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384$as_echo "$ac_try_echo") >&5
11385  (eval "$ac_compile") 2>conftest.er1
11386  ac_status=$?
11387  grep -v '^ *+' conftest.er1 >conftest.err
11388  rm -f conftest.er1
11389  cat conftest.err >&5
11390  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391  (exit $ac_status); } && {
11392	 test -z "$ac_c_werror_flag" ||
11393	 test ! -s conftest.err
11394       } && test -s conftest.$ac_objext; then
11395  cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h.  */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h.  */
11401$ac_includes_default
11402int
11403main ()
11404{
11405if (sizeof ((size_t)))
11406	  return 0;
11407  ;
11408  return 0;
11409}
11410_ACEOF
11411rm -f conftest.$ac_objext
11412if { (ac_try="$ac_compile"
11413case "(($ac_try" in
11414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415  *) ac_try_echo=$ac_try;;
11416esac
11417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418$as_echo "$ac_try_echo") >&5
11419  (eval "$ac_compile") 2>conftest.er1
11420  ac_status=$?
11421  grep -v '^ *+' conftest.er1 >conftest.err
11422  rm -f conftest.er1
11423  cat conftest.err >&5
11424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425  (exit $ac_status); } && {
11426	 test -z "$ac_c_werror_flag" ||
11427	 test ! -s conftest.err
11428       } && test -s conftest.$ac_objext; then
11429  :
11430else
11431  $as_echo "$as_me: failed program was:" >&5
11432sed 's/^/| /' conftest.$ac_ext >&5
11433
11434	ac_cv_type_size_t=yes
11435fi
11436
11437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438else
11439  $as_echo "$as_me: failed program was:" >&5
11440sed 's/^/| /' conftest.$ac_ext >&5
11441
11442
11443fi
11444
11445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446fi
11447{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11448$as_echo "$ac_cv_type_size_t" >&6; }
11449if test "x$ac_cv_type_size_t" = x""yes; then
11450  :
11451else
11452
11453cat >>confdefs.h <<_ACEOF
11454#define size_t unsigned int
11455_ACEOF
11456
11457fi
11458
11459{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11460$as_echo_n "checking for pid_t... " >&6; }
11461if test "${ac_cv_type_pid_t+set}" = set; then
11462  $as_echo_n "(cached) " >&6
11463else
11464  ac_cv_type_pid_t=no
11465cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h.  */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h.  */
11471$ac_includes_default
11472int
11473main ()
11474{
11475if (sizeof (pid_t))
11476       return 0;
11477  ;
11478  return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext
11482if { (ac_try="$ac_compile"
11483case "(($ac_try" in
11484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485  *) ac_try_echo=$ac_try;;
11486esac
11487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11488$as_echo "$ac_try_echo") >&5
11489  (eval "$ac_compile") 2>conftest.er1
11490  ac_status=$?
11491  grep -v '^ *+' conftest.er1 >conftest.err
11492  rm -f conftest.er1
11493  cat conftest.err >&5
11494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495  (exit $ac_status); } && {
11496	 test -z "$ac_c_werror_flag" ||
11497	 test ! -s conftest.err
11498       } && test -s conftest.$ac_objext; then
11499  cat >conftest.$ac_ext <<_ACEOF
11500/* confdefs.h.  */
11501_ACEOF
11502cat confdefs.h >>conftest.$ac_ext
11503cat >>conftest.$ac_ext <<_ACEOF
11504/* end confdefs.h.  */
11505$ac_includes_default
11506int
11507main ()
11508{
11509if (sizeof ((pid_t)))
11510	  return 0;
11511  ;
11512  return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext
11516if { (ac_try="$ac_compile"
11517case "(($ac_try" in
11518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519  *) ac_try_echo=$ac_try;;
11520esac
11521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522$as_echo "$ac_try_echo") >&5
11523  (eval "$ac_compile") 2>conftest.er1
11524  ac_status=$?
11525  grep -v '^ *+' conftest.er1 >conftest.err
11526  rm -f conftest.er1
11527  cat conftest.err >&5
11528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529  (exit $ac_status); } && {
11530	 test -z "$ac_c_werror_flag" ||
11531	 test ! -s conftest.err
11532       } && test -s conftest.$ac_objext; then
11533  :
11534else
11535  $as_echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538	ac_cv_type_pid_t=yes
11539fi
11540
11541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542else
11543  $as_echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546
11547fi
11548
11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550fi
11551{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11552$as_echo "$ac_cv_type_pid_t" >&6; }
11553if test "x$ac_cv_type_pid_t" = x""yes; then
11554  :
11555else
11556
11557cat >>confdefs.h <<_ACEOF
11558#define pid_t int
11559_ACEOF
11560
11561fi
11562
11563{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11564$as_echo_n "checking for uint32_t... " >&6; }
11565if test "${ac_cv_type_uint32_t+set}" = set; then
11566  $as_echo_n "(cached) " >&6
11567else
11568  ac_cv_type_uint32_t=no
11569cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h.  */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h.  */
11575$ac_includes_default
11576int
11577main ()
11578{
11579if (sizeof (uint32_t))
11580       return 0;
11581  ;
11582  return 0;
11583}
11584_ACEOF
11585rm -f conftest.$ac_objext
11586if { (ac_try="$ac_compile"
11587case "(($ac_try" in
11588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589  *) ac_try_echo=$ac_try;;
11590esac
11591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11592$as_echo "$ac_try_echo") >&5
11593  (eval "$ac_compile") 2>conftest.er1
11594  ac_status=$?
11595  grep -v '^ *+' conftest.er1 >conftest.err
11596  rm -f conftest.er1
11597  cat conftest.err >&5
11598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599  (exit $ac_status); } && {
11600	 test -z "$ac_c_werror_flag" ||
11601	 test ! -s conftest.err
11602       } && test -s conftest.$ac_objext; then
11603  cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h.  */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h.  */
11609$ac_includes_default
11610int
11611main ()
11612{
11613if (sizeof ((uint32_t)))
11614	  return 0;
11615  ;
11616  return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (ac_try="$ac_compile"
11621case "(($ac_try" in
11622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623  *) ac_try_echo=$ac_try;;
11624esac
11625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626$as_echo "$ac_try_echo") >&5
11627  (eval "$ac_compile") 2>conftest.er1
11628  ac_status=$?
11629  grep -v '^ *+' conftest.er1 >conftest.err
11630  rm -f conftest.er1
11631  cat conftest.err >&5
11632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633  (exit $ac_status); } && {
11634	 test -z "$ac_c_werror_flag" ||
11635	 test ! -s conftest.err
11636       } && test -s conftest.$ac_objext; then
11637  :
11638else
11639  $as_echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642	ac_cv_type_uint32_t=yes
11643fi
11644
11645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11646else
11647  $as_echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650
11651fi
11652
11653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654fi
11655{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11656$as_echo "$ac_cv_type_uint32_t" >&6; }
11657if test "x$ac_cv_type_uint32_t" = x""yes; then
11658
11659cat >>confdefs.h <<_ACEOF
11660#define HAVE_UINT32_T 1
11661_ACEOF
11662
11663
11664fi
11665{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11666$as_echo_n "checking for uintptr_t... " >&6; }
11667if test "${ac_cv_type_uintptr_t+set}" = set; then
11668  $as_echo_n "(cached) " >&6
11669else
11670  ac_cv_type_uintptr_t=no
11671cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h.  */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h.  */
11677$ac_includes_default
11678int
11679main ()
11680{
11681if (sizeof (uintptr_t))
11682       return 0;
11683  ;
11684  return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext
11688if { (ac_try="$ac_compile"
11689case "(($ac_try" in
11690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691  *) ac_try_echo=$ac_try;;
11692esac
11693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11694$as_echo "$ac_try_echo") >&5
11695  (eval "$ac_compile") 2>conftest.er1
11696  ac_status=$?
11697  grep -v '^ *+' conftest.er1 >conftest.err
11698  rm -f conftest.er1
11699  cat conftest.err >&5
11700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701  (exit $ac_status); } && {
11702	 test -z "$ac_c_werror_flag" ||
11703	 test ! -s conftest.err
11704       } && test -s conftest.$ac_objext; then
11705  cat >conftest.$ac_ext <<_ACEOF
11706/* confdefs.h.  */
11707_ACEOF
11708cat confdefs.h >>conftest.$ac_ext
11709cat >>conftest.$ac_ext <<_ACEOF
11710/* end confdefs.h.  */
11711$ac_includes_default
11712int
11713main ()
11714{
11715if (sizeof ((uintptr_t)))
11716	  return 0;
11717  ;
11718  return 0;
11719}
11720_ACEOF
11721rm -f conftest.$ac_objext
11722if { (ac_try="$ac_compile"
11723case "(($ac_try" in
11724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725  *) ac_try_echo=$ac_try;;
11726esac
11727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728$as_echo "$ac_try_echo") >&5
11729  (eval "$ac_compile") 2>conftest.er1
11730  ac_status=$?
11731  grep -v '^ *+' conftest.er1 >conftest.err
11732  rm -f conftest.er1
11733  cat conftest.err >&5
11734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); } && {
11736	 test -z "$ac_c_werror_flag" ||
11737	 test ! -s conftest.err
11738       } && test -s conftest.$ac_objext; then
11739  :
11740else
11741  $as_echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744	ac_cv_type_uintptr_t=yes
11745fi
11746
11747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748else
11749  $as_echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752
11753fi
11754
11755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756fi
11757{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11758$as_echo "$ac_cv_type_uintptr_t" >&6; }
11759if test "x$ac_cv_type_uintptr_t" = x""yes; then
11760
11761cat >>confdefs.h <<_ACEOF
11762#define HAVE_UINTPTR_T 1
11763_ACEOF
11764
11765
11766fi
11767{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11768$as_echo_n "checking for intptr_t... " >&6; }
11769if test "${ac_cv_type_intptr_t+set}" = set; then
11770  $as_echo_n "(cached) " >&6
11771else
11772  ac_cv_type_intptr_t=no
11773cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h.  */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h.  */
11779$ac_includes_default
11780int
11781main ()
11782{
11783if (sizeof (intptr_t))
11784       return 0;
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext
11790if { (ac_try="$ac_compile"
11791case "(($ac_try" in
11792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793  *) ac_try_echo=$ac_try;;
11794esac
11795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796$as_echo "$ac_try_echo") >&5
11797  (eval "$ac_compile") 2>conftest.er1
11798  ac_status=$?
11799  grep -v '^ *+' conftest.er1 >conftest.err
11800  rm -f conftest.er1
11801  cat conftest.err >&5
11802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803  (exit $ac_status); } && {
11804	 test -z "$ac_c_werror_flag" ||
11805	 test ! -s conftest.err
11806       } && test -s conftest.$ac_objext; then
11807  cat >conftest.$ac_ext <<_ACEOF
11808/* confdefs.h.  */
11809_ACEOF
11810cat confdefs.h >>conftest.$ac_ext
11811cat >>conftest.$ac_ext <<_ACEOF
11812/* end confdefs.h.  */
11813$ac_includes_default
11814int
11815main ()
11816{
11817if (sizeof ((intptr_t)))
11818	  return 0;
11819  ;
11820  return 0;
11821}
11822_ACEOF
11823rm -f conftest.$ac_objext
11824if { (ac_try="$ac_compile"
11825case "(($ac_try" in
11826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827  *) ac_try_echo=$ac_try;;
11828esac
11829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830$as_echo "$ac_try_echo") >&5
11831  (eval "$ac_compile") 2>conftest.er1
11832  ac_status=$?
11833  grep -v '^ *+' conftest.er1 >conftest.err
11834  rm -f conftest.er1
11835  cat conftest.err >&5
11836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837  (exit $ac_status); } && {
11838	 test -z "$ac_c_werror_flag" ||
11839	 test ! -s conftest.err
11840       } && test -s conftest.$ac_objext; then
11841  :
11842else
11843  $as_echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846	ac_cv_type_intptr_t=yes
11847fi
11848
11849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850else
11851  $as_echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854
11855fi
11856
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858fi
11859{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11860$as_echo "$ac_cv_type_intptr_t" >&6; }
11861if test "x$ac_cv_type_intptr_t" = x""yes; then
11862
11863cat >>confdefs.h <<_ACEOF
11864#define HAVE_INTPTR_T 1
11865_ACEOF
11866
11867
11868fi
11869{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11870$as_echo_n "checking for int64_t... " >&6; }
11871if test "${ac_cv_type_int64_t+set}" = set; then
11872  $as_echo_n "(cached) " >&6
11873else
11874  ac_cv_type_int64_t=no
11875cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h.  */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h.  */
11881$ac_includes_default
11882int
11883main ()
11884{
11885if (sizeof (int64_t))
11886       return 0;
11887  ;
11888  return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (ac_try="$ac_compile"
11893case "(($ac_try" in
11894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895  *) ac_try_echo=$ac_try;;
11896esac
11897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898$as_echo "$ac_try_echo") >&5
11899  (eval "$ac_compile") 2>conftest.er1
11900  ac_status=$?
11901  grep -v '^ *+' conftest.er1 >conftest.err
11902  rm -f conftest.er1
11903  cat conftest.err >&5
11904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905  (exit $ac_status); } && {
11906	 test -z "$ac_c_werror_flag" ||
11907	 test ! -s conftest.err
11908       } && test -s conftest.$ac_objext; then
11909  cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h.  */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h.  */
11915$ac_includes_default
11916int
11917main ()
11918{
11919if (sizeof ((int64_t)))
11920	  return 0;
11921  ;
11922  return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext
11926if { (ac_try="$ac_compile"
11927case "(($ac_try" in
11928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929  *) ac_try_echo=$ac_try;;
11930esac
11931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11932$as_echo "$ac_try_echo") >&5
11933  (eval "$ac_compile") 2>conftest.er1
11934  ac_status=$?
11935  grep -v '^ *+' conftest.er1 >conftest.err
11936  rm -f conftest.er1
11937  cat conftest.err >&5
11938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939  (exit $ac_status); } && {
11940	 test -z "$ac_c_werror_flag" ||
11941	 test ! -s conftest.err
11942       } && test -s conftest.$ac_objext; then
11943  :
11944else
11945  $as_echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948	ac_cv_type_int64_t=yes
11949fi
11950
11951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11952else
11953  $as_echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
11956
11957fi
11958
11959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960fi
11961{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11962$as_echo "$ac_cv_type_int64_t" >&6; }
11963if test "x$ac_cv_type_int64_t" = x""yes; then
11964
11965cat >>confdefs.h <<_ACEOF
11966#define HAVE_INT64_T 1
11967_ACEOF
11968
11969
11970fi
11971
11972{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
11973$as_echo_n "checking for sig_atomic_t... " >&6; }
11974if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11975  $as_echo_n "(cached) " >&6
11976else
11977  ac_cv_type_sig_atomic_t=no
11978cat >conftest.$ac_ext <<_ACEOF
11979/* confdefs.h.  */
11980_ACEOF
11981cat confdefs.h >>conftest.$ac_ext
11982cat >>conftest.$ac_ext <<_ACEOF
11983/* end confdefs.h.  */
11984
11985#include <stdio.h>
11986#include <sys/types.h>
11987#if HAVE_INTTYPES_H
11988# include <inttypes.h>
11989#endif
11990#include <signal.h>
11991
11992
11993int
11994main ()
11995{
11996if (sizeof (sig_atomic_t))
11997       return 0;
11998  ;
11999  return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext
12003if { (ac_try="$ac_compile"
12004case "(($ac_try" in
12005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006  *) ac_try_echo=$ac_try;;
12007esac
12008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009$as_echo "$ac_try_echo") >&5
12010  (eval "$ac_compile") 2>conftest.er1
12011  ac_status=$?
12012  grep -v '^ *+' conftest.er1 >conftest.err
12013  rm -f conftest.er1
12014  cat conftest.err >&5
12015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016  (exit $ac_status); } && {
12017	 test -z "$ac_c_werror_flag" ||
12018	 test ! -s conftest.err
12019       } && test -s conftest.$ac_objext; then
12020  cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h.  */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h.  */
12026
12027#include <stdio.h>
12028#include <sys/types.h>
12029#if HAVE_INTTYPES_H
12030# include <inttypes.h>
12031#endif
12032#include <signal.h>
12033
12034
12035int
12036main ()
12037{
12038if (sizeof ((sig_atomic_t)))
12039	  return 0;
12040  ;
12041  return 0;
12042}
12043_ACEOF
12044rm -f conftest.$ac_objext
12045if { (ac_try="$ac_compile"
12046case "(($ac_try" in
12047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048  *) ac_try_echo=$ac_try;;
12049esac
12050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051$as_echo "$ac_try_echo") >&5
12052  (eval "$ac_compile") 2>conftest.er1
12053  ac_status=$?
12054  grep -v '^ *+' conftest.er1 >conftest.err
12055  rm -f conftest.er1
12056  cat conftest.err >&5
12057  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058  (exit $ac_status); } && {
12059	 test -z "$ac_c_werror_flag" ||
12060	 test ! -s conftest.err
12061       } && test -s conftest.$ac_objext; then
12062  :
12063else
12064  $as_echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
12066
12067	ac_cv_type_sig_atomic_t=yes
12068fi
12069
12070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071else
12072  $as_echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075
12076fi
12077
12078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079fi
12080{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12081$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
12082if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
12083
12084cat >>confdefs.h <<_ACEOF
12085#define HAVE_SIG_ATOMIC_T 1
12086_ACEOF
12087
12088
12089fi
12090
12091
12092# gnulib
12093
12094
12095
12096
12097
12098
12099
12100# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12101# for constant arguments.  Useless!
12102{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12103$as_echo_n "checking for working alloca.h... " >&6; }
12104if test "${ac_cv_working_alloca_h+set}" = set; then
12105  $as_echo_n "(cached) " >&6
12106else
12107  cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h.  */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h.  */
12113#include <alloca.h>
12114int
12115main ()
12116{
12117char *p = (char *) alloca (2 * sizeof (int));
12118			  if (p) return 0;
12119  ;
12120  return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext conftest$ac_exeext
12124if { (ac_try="$ac_link"
12125case "(($ac_try" in
12126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127  *) ac_try_echo=$ac_try;;
12128esac
12129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12130$as_echo "$ac_try_echo") >&5
12131  (eval "$ac_link") 2>conftest.er1
12132  ac_status=$?
12133  grep -v '^ *+' conftest.er1 >conftest.err
12134  rm -f conftest.er1
12135  cat conftest.err >&5
12136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137  (exit $ac_status); } && {
12138	 test -z "$ac_c_werror_flag" ||
12139	 test ! -s conftest.err
12140       } && test -s conftest$ac_exeext && {
12141	 test "$cross_compiling" = yes ||
12142	 $as_test_x conftest$ac_exeext
12143       }; then
12144  ac_cv_working_alloca_h=yes
12145else
12146  $as_echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149	ac_cv_working_alloca_h=no
12150fi
12151
12152rm -rf conftest.dSYM
12153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154      conftest$ac_exeext conftest.$ac_ext
12155fi
12156{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12157$as_echo "$ac_cv_working_alloca_h" >&6; }
12158if test $ac_cv_working_alloca_h = yes; then
12159
12160cat >>confdefs.h <<\_ACEOF
12161#define HAVE_ALLOCA_H 1
12162_ACEOF
12163
12164fi
12165
12166{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
12167$as_echo_n "checking for alloca... " >&6; }
12168if test "${ac_cv_func_alloca_works+set}" = set; then
12169  $as_echo_n "(cached) " >&6
12170else
12171  cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h.  */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h.  */
12177#ifdef __GNUC__
12178# define alloca __builtin_alloca
12179#else
12180# ifdef _MSC_VER
12181#  include <malloc.h>
12182#  define alloca _alloca
12183# else
12184#  ifdef HAVE_ALLOCA_H
12185#   include <alloca.h>
12186#  else
12187#   ifdef _AIX
12188 #pragma alloca
12189#   else
12190#    ifndef alloca /* predefined by HP cc +Olibcalls */
12191char *alloca ();
12192#    endif
12193#   endif
12194#  endif
12195# endif
12196#endif
12197
12198int
12199main ()
12200{
12201char *p = (char *) alloca (1);
12202				    if (p) return 0;
12203  ;
12204  return 0;
12205}
12206_ACEOF
12207rm -f conftest.$ac_objext conftest$ac_exeext
12208if { (ac_try="$ac_link"
12209case "(($ac_try" in
12210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211  *) ac_try_echo=$ac_try;;
12212esac
12213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214$as_echo "$ac_try_echo") >&5
12215  (eval "$ac_link") 2>conftest.er1
12216  ac_status=$?
12217  grep -v '^ *+' conftest.er1 >conftest.err
12218  rm -f conftest.er1
12219  cat conftest.err >&5
12220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221  (exit $ac_status); } && {
12222	 test -z "$ac_c_werror_flag" ||
12223	 test ! -s conftest.err
12224       } && test -s conftest$ac_exeext && {
12225	 test "$cross_compiling" = yes ||
12226	 $as_test_x conftest$ac_exeext
12227       }; then
12228  ac_cv_func_alloca_works=yes
12229else
12230  $as_echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233	ac_cv_func_alloca_works=no
12234fi
12235
12236rm -rf conftest.dSYM
12237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238      conftest$ac_exeext conftest.$ac_ext
12239fi
12240{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12241$as_echo "$ac_cv_func_alloca_works" >&6; }
12242
12243if test $ac_cv_func_alloca_works = yes; then
12244
12245cat >>confdefs.h <<\_ACEOF
12246#define HAVE_ALLOCA 1
12247_ACEOF
12248
12249else
12250  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12251# that cause trouble.  Some versions do not even contain alloca or
12252# contain a buggy version.  If you still want to use their alloca,
12253# use ar to extract alloca.o from them instead of compiling alloca.c.
12254
12255
12256
12257
12258
12259ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12260
12261cat >>confdefs.h <<\_ACEOF
12262#define C_ALLOCA 1
12263_ACEOF
12264
12265
12266{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12267$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12268if test "${ac_cv_os_cray+set}" = set; then
12269  $as_echo_n "(cached) " >&6
12270else
12271  cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h.  */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h.  */
12277#if defined CRAY && ! defined CRAY2
12278webecray
12279#else
12280wenotbecray
12281#endif
12282
12283_ACEOF
12284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285  $EGREP "webecray" >/dev/null 2>&1; then
12286  ac_cv_os_cray=yes
12287else
12288  ac_cv_os_cray=no
12289fi
12290rm -f conftest*
12291
12292fi
12293{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12294$as_echo "$ac_cv_os_cray" >&6; }
12295if test $ac_cv_os_cray = yes; then
12296  for ac_func in _getb67 GETB67 getb67; do
12297    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12298{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12299$as_echo_n "checking for $ac_func... " >&6; }
12300if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12301  $as_echo_n "(cached) " >&6
12302else
12303  cat >conftest.$ac_ext <<_ACEOF
12304/* confdefs.h.  */
12305_ACEOF
12306cat confdefs.h >>conftest.$ac_ext
12307cat >>conftest.$ac_ext <<_ACEOF
12308/* end confdefs.h.  */
12309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12310   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12311#define $ac_func innocuous_$ac_func
12312
12313/* System header to define __stub macros and hopefully few prototypes,
12314    which can conflict with char $ac_func (); below.
12315    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12316    <limits.h> exists even on freestanding compilers.  */
12317
12318#ifdef __STDC__
12319# include <limits.h>
12320#else
12321# include <assert.h>
12322#endif
12323
12324#undef $ac_func
12325
12326/* Override any GCC internal prototype to avoid an error.
12327   Use char because int might match the return type of a GCC
12328   builtin and then its argument prototype would still apply.  */
12329#ifdef __cplusplus
12330extern "C"
12331#endif
12332char $ac_func ();
12333/* The GNU C library defines this for functions which it implements
12334    to always fail with ENOSYS.  Some functions are actually named
12335    something starting with __ and the normal name is an alias.  */
12336#if defined __stub_$ac_func || defined __stub___$ac_func
12337choke me
12338#endif
12339
12340int
12341main ()
12342{
12343return $ac_func ();
12344  ;
12345  return 0;
12346}
12347_ACEOF
12348rm -f conftest.$ac_objext conftest$ac_exeext
12349if { (ac_try="$ac_link"
12350case "(($ac_try" in
12351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352  *) ac_try_echo=$ac_try;;
12353esac
12354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12355$as_echo "$ac_try_echo") >&5
12356  (eval "$ac_link") 2>conftest.er1
12357  ac_status=$?
12358  grep -v '^ *+' conftest.er1 >conftest.err
12359  rm -f conftest.er1
12360  cat conftest.err >&5
12361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362  (exit $ac_status); } && {
12363	 test -z "$ac_c_werror_flag" ||
12364	 test ! -s conftest.err
12365       } && test -s conftest$ac_exeext && {
12366	 test "$cross_compiling" = yes ||
12367	 $as_test_x conftest$ac_exeext
12368       }; then
12369  eval "$as_ac_var=yes"
12370else
12371  $as_echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374	eval "$as_ac_var=no"
12375fi
12376
12377rm -rf conftest.dSYM
12378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379      conftest$ac_exeext conftest.$ac_ext
12380fi
12381ac_res=`eval 'as_val=${'$as_ac_var'}
12382		 $as_echo "$as_val"'`
12383	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12384$as_echo "$ac_res" >&6; }
12385as_val=`eval 'as_val=${'$as_ac_var'}
12386		 $as_echo "$as_val"'`
12387   if test "x$as_val" = x""yes; then
12388
12389cat >>confdefs.h <<_ACEOF
12390#define CRAY_STACKSEG_END $ac_func
12391_ACEOF
12392
12393    break
12394fi
12395
12396  done
12397fi
12398
12399{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12400$as_echo_n "checking stack direction for C alloca... " >&6; }
12401if test "${ac_cv_c_stack_direction+set}" = set; then
12402  $as_echo_n "(cached) " >&6
12403else
12404  if test "$cross_compiling" = yes; then
12405  ac_cv_c_stack_direction=0
12406else
12407  cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h.  */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h.  */
12413$ac_includes_default
12414int
12415find_stack_direction ()
12416{
12417  static char *addr = 0;
12418  auto char dummy;
12419  if (addr == 0)
12420    {
12421      addr = &dummy;
12422      return find_stack_direction ();
12423    }
12424  else
12425    return (&dummy > addr) ? 1 : -1;
12426}
12427
12428int
12429main ()
12430{
12431  return find_stack_direction () < 0;
12432}
12433_ACEOF
12434rm -f conftest$ac_exeext
12435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438  *) ac_try_echo=$ac_try;;
12439esac
12440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12441$as_echo "$ac_try_echo") >&5
12442  (eval "$ac_link") 2>&5
12443  ac_status=$?
12444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12446  { (case "(($ac_try" in
12447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448  *) ac_try_echo=$ac_try;;
12449esac
12450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12451$as_echo "$ac_try_echo") >&5
12452  (eval "$ac_try") 2>&5
12453  ac_status=$?
12454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455  (exit $ac_status); }; }; then
12456  ac_cv_c_stack_direction=1
12457else
12458  $as_echo "$as_me: program exited with status $ac_status" >&5
12459$as_echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
12462( exit $ac_status )
12463ac_cv_c_stack_direction=-1
12464fi
12465rm -rf conftest.dSYM
12466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12467fi
12468
12469
12470fi
12471{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12472$as_echo "$ac_cv_c_stack_direction" >&6; }
12473
12474cat >>confdefs.h <<_ACEOF
12475#define STACK_DIRECTION $ac_cv_c_stack_direction
12476_ACEOF
12477
12478
12479fi
12480
12481
12482
12483  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12484$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12485if test "${gl_cv_have_include_next+set}" = set; then
12486  $as_echo_n "(cached) " >&6
12487else
12488  rm -rf conftestd1a conftestd1b conftestd2
12489     mkdir conftestd1a conftestd1b conftestd2
12490                                                  cat <<EOF > conftestd1a/conftest.h
12491#define DEFINED_IN_CONFTESTD1
12492#include_next <conftest.h>
12493#ifdef DEFINED_IN_CONFTESTD2
12494int foo;
12495#else
12496#error "include_next doesn't work"
12497#endif
12498EOF
12499     cat <<EOF > conftestd1b/conftest.h
12500#define DEFINED_IN_CONFTESTD1
12501#include <stdio.h>
12502#include_next <conftest.h>
12503#ifdef DEFINED_IN_CONFTESTD2
12504int foo;
12505#else
12506#error "include_next doesn't work"
12507#endif
12508EOF
12509     cat <<EOF > conftestd2/conftest.h
12510#ifndef DEFINED_IN_CONFTESTD1
12511#error "include_next test doesn't work"
12512#endif
12513#define DEFINED_IN_CONFTESTD2
12514EOF
12515     gl_save_CPPFLAGS="$CPPFLAGS"
12516     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12517     cat >conftest.$ac_ext <<_ACEOF
12518#include <conftest.h>
12519_ACEOF
12520rm -f conftest.$ac_objext
12521if { (ac_try="$ac_compile"
12522case "(($ac_try" in
12523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524  *) ac_try_echo=$ac_try;;
12525esac
12526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12527$as_echo "$ac_try_echo") >&5
12528  (eval "$ac_compile") 2>conftest.er1
12529  ac_status=$?
12530  grep -v '^ *+' conftest.er1 >conftest.err
12531  rm -f conftest.er1
12532  cat conftest.err >&5
12533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534  (exit $ac_status); } && {
12535	 test -z "$ac_c_werror_flag" ||
12536	 test ! -s conftest.err
12537       } && test -s conftest.$ac_objext; then
12538  gl_cv_have_include_next=yes
12539else
12540  $as_echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
12543	CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12544        cat >conftest.$ac_ext <<_ACEOF
12545#include <conftest.h>
12546_ACEOF
12547rm -f conftest.$ac_objext
12548if { (ac_try="$ac_compile"
12549case "(($ac_try" in
12550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551  *) ac_try_echo=$ac_try;;
12552esac
12553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554$as_echo "$ac_try_echo") >&5
12555  (eval "$ac_compile") 2>conftest.er1
12556  ac_status=$?
12557  grep -v '^ *+' conftest.er1 >conftest.err
12558  rm -f conftest.er1
12559  cat conftest.err >&5
12560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561  (exit $ac_status); } && {
12562	 test -z "$ac_c_werror_flag" ||
12563	 test ! -s conftest.err
12564       } && test -s conftest.$ac_objext; then
12565  gl_cv_have_include_next=buggy
12566else
12567  $as_echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570	gl_cv_have_include_next=no
12571fi
12572
12573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574
12575fi
12576
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578     CPPFLAGS="$gl_save_CPPFLAGS"
12579     rm -rf conftestd1a conftestd1b conftestd2
12580
12581fi
12582{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12583$as_echo "$gl_cv_have_include_next" >&6; }
12584  PRAGMA_SYSTEM_HEADER=
12585  if test $gl_cv_have_include_next = yes; then
12586    INCLUDE_NEXT=include_next
12587    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12588    if test -n "$GCC"; then
12589      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12590    fi
12591  else
12592    if test $gl_cv_have_include_next = buggy; then
12593      INCLUDE_NEXT=include
12594      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12595    else
12596      INCLUDE_NEXT=include
12597      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12598    fi
12599  fi
12600
12601
12602
12603
12604
12605
12606
12607
12608for ac_header in $ac_header_list
12609do
12610as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12613$as_echo_n "checking for $ac_header... " >&6; }
12614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12615  $as_echo_n "(cached) " >&6
12616fi
12617ac_res=`eval 'as_val=${'$as_ac_Header'}
12618		 $as_echo "$as_val"'`
12619	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12620$as_echo "$ac_res" >&6; }
12621else
12622  # Is the header compilable?
12623{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12624$as_echo_n "checking $ac_header usability... " >&6; }
12625cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h.  */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h.  */
12631$ac_includes_default
12632#include <$ac_header>
12633_ACEOF
12634rm -f conftest.$ac_objext
12635if { (ac_try="$ac_compile"
12636case "(($ac_try" in
12637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638  *) ac_try_echo=$ac_try;;
12639esac
12640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641$as_echo "$ac_try_echo") >&5
12642  (eval "$ac_compile") 2>conftest.er1
12643  ac_status=$?
12644  grep -v '^ *+' conftest.er1 >conftest.err
12645  rm -f conftest.er1
12646  cat conftest.err >&5
12647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648  (exit $ac_status); } && {
12649	 test -z "$ac_c_werror_flag" ||
12650	 test ! -s conftest.err
12651       } && test -s conftest.$ac_objext; then
12652  ac_header_compiler=yes
12653else
12654  $as_echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657	ac_header_compiler=no
12658fi
12659
12660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12662$as_echo "$ac_header_compiler" >&6; }
12663
12664# Is the header present?
12665{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12666$as_echo_n "checking $ac_header presence... " >&6; }
12667cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h.  */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h.  */
12673#include <$ac_header>
12674_ACEOF
12675if { (ac_try="$ac_cpp conftest.$ac_ext"
12676case "(($ac_try" in
12677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678  *) ac_try_echo=$ac_try;;
12679esac
12680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12681$as_echo "$ac_try_echo") >&5
12682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12683  ac_status=$?
12684  grep -v '^ *+' conftest.er1 >conftest.err
12685  rm -f conftest.er1
12686  cat conftest.err >&5
12687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688  (exit $ac_status); } >/dev/null && {
12689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12690	 test ! -s conftest.err
12691       }; then
12692  ac_header_preproc=yes
12693else
12694  $as_echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697  ac_header_preproc=no
12698fi
12699
12700rm -f conftest.err conftest.$ac_ext
12701{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12702$as_echo "$ac_header_preproc" >&6; }
12703
12704# So?  What about this header?
12705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12706  yes:no: )
12707    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12708$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12709    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12710$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12711    ac_header_preproc=yes
12712    ;;
12713  no:yes:* )
12714    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12715$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12716    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12717$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12718    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12719$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12720    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12721$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12722    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12723$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12724    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12725$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12726    ( cat <<\_ASBOX
12727## ------------------------------- ##
12728## Report this to bug-wget@gnu.org ##
12729## ------------------------------- ##
12730_ASBOX
12731     ) | sed "s/^/$as_me: WARNING:     /" >&2
12732    ;;
12733esac
12734{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12735$as_echo_n "checking for $ac_header... " >&6; }
12736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12737  $as_echo_n "(cached) " >&6
12738else
12739  eval "$as_ac_Header=\$ac_header_preproc"
12740fi
12741ac_res=`eval 'as_val=${'$as_ac_Header'}
12742		 $as_echo "$as_val"'`
12743	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12744$as_echo "$ac_res" >&6; }
12745
12746fi
12747as_val=`eval 'as_val=${'$as_ac_Header'}
12748		 $as_echo "$as_val"'`
12749   if test "x$as_val" = x""yes; then
12750  cat >>confdefs.h <<_ACEOF
12751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12752_ACEOF
12753
12754fi
12755
12756done
12757
12758
12759
12760
12761
12762  { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12763$as_echo_n "checking for complete errno.h... " >&6; }
12764if test "${gl_cv_header_errno_h_complete+set}" = set; then
12765  $as_echo_n "(cached) " >&6
12766else
12767
12768    cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h.  */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h.  */
12774
12775#include <errno.h>
12776#if !defined ENOMSG
12777booboo
12778#endif
12779#if !defined EIDRM
12780booboo
12781#endif
12782#if !defined ENOLINK
12783booboo
12784#endif
12785#if !defined EPROTO
12786booboo
12787#endif
12788#if !defined EMULTIHOP
12789booboo
12790#endif
12791#if !defined EBADMSG
12792booboo
12793#endif
12794#if !defined EOVERFLOW
12795booboo
12796#endif
12797#if !defined ENOTSUP
12798booboo
12799#endif
12800#if !defined ESTALE
12801booboo
12802#endif
12803#if !defined ECANCELED
12804booboo
12805#endif
12806
12807_ACEOF
12808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809  $EGREP "booboo" >/dev/null 2>&1; then
12810  gl_cv_header_errno_h_complete=no
12811else
12812  gl_cv_header_errno_h_complete=yes
12813fi
12814rm -f conftest*
12815
12816
12817fi
12818{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12819$as_echo "$gl_cv_header_errno_h_complete" >&6; }
12820  if test $gl_cv_header_errno_h_complete = yes; then
12821    ERRNO_H=''
12822  else
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834     if test $gl_cv_have_include_next = yes; then
12835       gl_cv_next_errno_h='<'errno.h'>'
12836     else
12837       { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12838$as_echo_n "checking absolute name of <errno.h>... " >&6; }
12839if test "${gl_cv_next_errno_h+set}" = set; then
12840  $as_echo_n "(cached) " >&6
12841else
12842
12843	  if test $ac_cv_header_errno_h = yes; then
12844	    cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h.  */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h.  */
12850#include <errno.h>
12851
12852_ACEOF
12853	    	    	    	    	    	    	    	    case "$host_os" in
12854	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
12855	      *)    gl_absname_cpp="$ac_cpp" ;;
12856	    esac
12857	    	    	    	    gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12858	       sed -n '\#/errno.h#{
12859		 s#.*"\(.*/errno.h\)".*#\1#
12860		 s#^/[^/]#//&#
12861		 p
12862		 q
12863	       }'`'"'
12864	  else
12865	    gl_cv_next_errno_h='<'errno.h'>'
12866	  fi
12867
12868fi
12869{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12870$as_echo "$gl_cv_next_errno_h" >&6; }
12871     fi
12872     NEXT_ERRNO_H=$gl_cv_next_errno_h
12873
12874     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12875       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12876       gl_next_as_first_directive='<'errno.h'>'
12877     else
12878       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12879       gl_next_as_first_directive=$gl_cv_next_errno_h
12880     fi
12881     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12882
12883
12884
12885    ERRNO_H='errno.h'
12886  fi
12887
12888
12889  if test -n "$ERRNO_H"; then
12890    { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12891$as_echo_n "checking for EMULTIHOP value... " >&6; }
12892if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12893  $as_echo_n "(cached) " >&6
12894else
12895
12896      cat >conftest.$ac_ext <<_ACEOF
12897/* confdefs.h.  */
12898_ACEOF
12899cat confdefs.h >>conftest.$ac_ext
12900cat >>conftest.$ac_ext <<_ACEOF
12901/* end confdefs.h.  */
12902
12903#include <errno.h>
12904#ifdef EMULTIHOP
12905yes
12906#endif
12907
12908_ACEOF
12909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12910  $EGREP "yes" >/dev/null 2>&1; then
12911  gl_cv_header_errno_h_EMULTIHOP=yes
12912else
12913  gl_cv_header_errno_h_EMULTIHOP=no
12914fi
12915rm -f conftest*
12916
12917      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12918        cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h.  */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
12923/* end confdefs.h.  */
12924
12925#define _XOPEN_SOURCE_EXTENDED 1
12926#include <errno.h>
12927#ifdef EMULTIHOP
12928yes
12929#endif
12930
12931_ACEOF
12932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12933  $EGREP "yes" >/dev/null 2>&1; then
12934  gl_cv_header_errno_h_EMULTIHOP=hidden
12935fi
12936rm -f conftest*
12937
12938        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12939                              if test "$cross_compiling" = yes; then
12940  # Depending upon the size, compute the lo and hi bounds.
12941cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h.  */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h.  */
12947
12948#define _XOPEN_SOURCE_EXTENDED 1
12949#include <errno.h>
12950/* The following two lines are a workaround against an autoconf-2.52 bug.  */
12951#include <stdio.h>
12952#include <stdlib.h>
12953
12954int
12955main ()
12956{
12957static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12958test_array [0] = 0
12959
12960  ;
12961  return 0;
12962}
12963_ACEOF
12964rm -f conftest.$ac_objext
12965if { (ac_try="$ac_compile"
12966case "(($ac_try" in
12967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968  *) ac_try_echo=$ac_try;;
12969esac
12970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971$as_echo "$ac_try_echo") >&5
12972  (eval "$ac_compile") 2>conftest.er1
12973  ac_status=$?
12974  grep -v '^ *+' conftest.er1 >conftest.err
12975  rm -f conftest.er1
12976  cat conftest.err >&5
12977  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978  (exit $ac_status); } && {
12979	 test -z "$ac_c_werror_flag" ||
12980	 test ! -s conftest.err
12981       } && test -s conftest.$ac_objext; then
12982  ac_lo=0 ac_mid=0
12983  while :; do
12984    cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h.  */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
12989/* end confdefs.h.  */
12990
12991#define _XOPEN_SOURCE_EXTENDED 1
12992#include <errno.h>
12993/* The following two lines are a workaround against an autoconf-2.52 bug.  */
12994#include <stdio.h>
12995#include <stdlib.h>
12996
12997int
12998main ()
12999{
13000static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13001test_array [0] = 0
13002
13003  ;
13004  return 0;
13005}
13006_ACEOF
13007rm -f conftest.$ac_objext
13008if { (ac_try="$ac_compile"
13009case "(($ac_try" in
13010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011  *) ac_try_echo=$ac_try;;
13012esac
13013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014$as_echo "$ac_try_echo") >&5
13015  (eval "$ac_compile") 2>conftest.er1
13016  ac_status=$?
13017  grep -v '^ *+' conftest.er1 >conftest.err
13018  rm -f conftest.er1
13019  cat conftest.err >&5
13020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021  (exit $ac_status); } && {
13022	 test -z "$ac_c_werror_flag" ||
13023	 test ! -s conftest.err
13024       } && test -s conftest.$ac_objext; then
13025  ac_hi=$ac_mid; break
13026else
13027  $as_echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030	ac_lo=`expr $ac_mid + 1`
13031			if test $ac_lo -le $ac_mid; then
13032			  ac_lo= ac_hi=
13033			  break
13034			fi
13035			ac_mid=`expr 2 '*' $ac_mid + 1`
13036fi
13037
13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039  done
13040else
13041  $as_echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044	cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h.  */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h.  */
13050
13051#define _XOPEN_SOURCE_EXTENDED 1
13052#include <errno.h>
13053/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13054#include <stdio.h>
13055#include <stdlib.h>
13056
13057int
13058main ()
13059{
13060static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
13061test_array [0] = 0
13062
13063  ;
13064  return 0;
13065}
13066_ACEOF
13067rm -f conftest.$ac_objext
13068if { (ac_try="$ac_compile"
13069case "(($ac_try" in
13070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071  *) ac_try_echo=$ac_try;;
13072esac
13073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074$as_echo "$ac_try_echo") >&5
13075  (eval "$ac_compile") 2>conftest.er1
13076  ac_status=$?
13077  grep -v '^ *+' conftest.er1 >conftest.err
13078  rm -f conftest.er1
13079  cat conftest.err >&5
13080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081  (exit $ac_status); } && {
13082	 test -z "$ac_c_werror_flag" ||
13083	 test ! -s conftest.err
13084       } && test -s conftest.$ac_objext; then
13085  ac_hi=-1 ac_mid=-1
13086  while :; do
13087    cat >conftest.$ac_ext <<_ACEOF
13088/* confdefs.h.  */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h.  */
13093
13094#define _XOPEN_SOURCE_EXTENDED 1
13095#include <errno.h>
13096/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13097#include <stdio.h>
13098#include <stdlib.h>
13099
13100int
13101main ()
13102{
13103static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
13104test_array [0] = 0
13105
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110rm -f conftest.$ac_objext
13111if { (ac_try="$ac_compile"
13112case "(($ac_try" in
13113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114  *) ac_try_echo=$ac_try;;
13115esac
13116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13117$as_echo "$ac_try_echo") >&5
13118  (eval "$ac_compile") 2>conftest.er1
13119  ac_status=$?
13120  grep -v '^ *+' conftest.er1 >conftest.err
13121  rm -f conftest.er1
13122  cat conftest.err >&5
13123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124  (exit $ac_status); } && {
13125	 test -z "$ac_c_werror_flag" ||
13126	 test ! -s conftest.err
13127       } && test -s conftest.$ac_objext; then
13128  ac_lo=$ac_mid; break
13129else
13130  $as_echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
13133	ac_hi=`expr '(' $ac_mid ')' - 1`
13134			if test $ac_mid -le $ac_hi; then
13135			  ac_lo= ac_hi=
13136			  break
13137			fi
13138			ac_mid=`expr 2 '*' $ac_mid`
13139fi
13140
13141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142  done
13143else
13144  $as_echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
13147	ac_lo= ac_hi=
13148fi
13149
13150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151fi
13152
13153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154# Binary search between lo and hi bounds.
13155while test "x$ac_lo" != "x$ac_hi"; do
13156  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13157  cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h.  */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h.  */
13163
13164#define _XOPEN_SOURCE_EXTENDED 1
13165#include <errno.h>
13166/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13167#include <stdio.h>
13168#include <stdlib.h>
13169
13170int
13171main ()
13172{
13173static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13174test_array [0] = 0
13175
13176  ;
13177  return 0;
13178}
13179_ACEOF
13180rm -f conftest.$ac_objext
13181if { (ac_try="$ac_compile"
13182case "(($ac_try" in
13183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184  *) ac_try_echo=$ac_try;;
13185esac
13186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187$as_echo "$ac_try_echo") >&5
13188  (eval "$ac_compile") 2>conftest.er1
13189  ac_status=$?
13190  grep -v '^ *+' conftest.er1 >conftest.err
13191  rm -f conftest.er1
13192  cat conftest.err >&5
13193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194  (exit $ac_status); } && {
13195	 test -z "$ac_c_werror_flag" ||
13196	 test ! -s conftest.err
13197       } && test -s conftest.$ac_objext; then
13198  ac_hi=$ac_mid
13199else
13200  $as_echo "$as_me: failed program was:" >&5
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
13203	ac_lo=`expr '(' $ac_mid ')' + 1`
13204fi
13205
13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207done
13208case $ac_lo in
13209?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
13210'')  ;;
13211esac
13212else
13213  cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h.  */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h.  */
13219
13220#define _XOPEN_SOURCE_EXTENDED 1
13221#include <errno.h>
13222/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13223#include <stdio.h>
13224#include <stdlib.h>
13225
13226static long int longval () { return EMULTIHOP; }
13227static unsigned long int ulongval () { return EMULTIHOP; }
13228#include <stdio.h>
13229#include <stdlib.h>
13230int
13231main ()
13232{
13233
13234  FILE *f = fopen ("conftest.val", "w");
13235  if (! f)
13236    return 1;
13237  if ((EMULTIHOP) < 0)
13238    {
13239      long int i = longval ();
13240      if (i != (EMULTIHOP))
13241	return 1;
13242      fprintf (f, "%ld", i);
13243    }
13244  else
13245    {
13246      unsigned long int i = ulongval ();
13247      if (i != (EMULTIHOP))
13248	return 1;
13249      fprintf (f, "%lu", i);
13250    }
13251  /* Do not output a trailing newline, as this causes \r\n confusion
13252     on some platforms.  */
13253  return ferror (f) || fclose (f) != 0;
13254
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259rm -f conftest$ac_exeext
13260if { (ac_try="$ac_link"
13261case "(($ac_try" in
13262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263  *) ac_try_echo=$ac_try;;
13264esac
13265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266$as_echo "$ac_try_echo") >&5
13267  (eval "$ac_link") 2>&5
13268  ac_status=$?
13269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13271  { (case "(($ac_try" in
13272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273  *) ac_try_echo=$ac_try;;
13274esac
13275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276$as_echo "$ac_try_echo") >&5
13277  (eval "$ac_try") 2>&5
13278  ac_status=$?
13279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280  (exit $ac_status); }; }; then
13281  gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
13282else
13283  $as_echo "$as_me: program exited with status $ac_status" >&5
13284$as_echo "$as_me: failed program was:" >&5
13285sed 's/^/| /' conftest.$ac_ext >&5
13286
13287fi
13288rm -rf conftest.dSYM
13289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13290fi
13291rm -f conftest.val
13292        fi
13293      fi
13294
13295fi
13296{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
13297$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
13298    case $gl_cv_header_errno_h_EMULTIHOP in
13299      yes | no)
13300        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
13301        ;;
13302      *)
13303        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
13304        ;;
13305    esac
13306
13307
13308  fi
13309
13310
13311  if test -n "$ERRNO_H"; then
13312    { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
13313$as_echo_n "checking for ENOLINK value... " >&6; }
13314if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
13315  $as_echo_n "(cached) " >&6
13316else
13317
13318      cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h.  */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h.  */
13324
13325#include <errno.h>
13326#ifdef ENOLINK
13327yes
13328#endif
13329
13330_ACEOF
13331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332  $EGREP "yes" >/dev/null 2>&1; then
13333  gl_cv_header_errno_h_ENOLINK=yes
13334else
13335  gl_cv_header_errno_h_ENOLINK=no
13336fi
13337rm -f conftest*
13338
13339      if test $gl_cv_header_errno_h_ENOLINK = no; then
13340        cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h.  */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h.  */
13346
13347#define _XOPEN_SOURCE_EXTENDED 1
13348#include <errno.h>
13349#ifdef ENOLINK
13350yes
13351#endif
13352
13353_ACEOF
13354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355  $EGREP "yes" >/dev/null 2>&1; then
13356  gl_cv_header_errno_h_ENOLINK=hidden
13357fi
13358rm -f conftest*
13359
13360        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13361                              if test "$cross_compiling" = yes; then
13362  # Depending upon the size, compute the lo and hi bounds.
13363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h.  */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h.  */
13369
13370#define _XOPEN_SOURCE_EXTENDED 1
13371#include <errno.h>
13372/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13373#include <stdio.h>
13374#include <stdlib.h>
13375
13376int
13377main ()
13378{
13379static int test_array [1 - 2 * !((ENOLINK) >= 0)];
13380test_array [0] = 0
13381
13382  ;
13383  return 0;
13384}
13385_ACEOF
13386rm -f conftest.$ac_objext
13387if { (ac_try="$ac_compile"
13388case "(($ac_try" in
13389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390  *) ac_try_echo=$ac_try;;
13391esac
13392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393$as_echo "$ac_try_echo") >&5
13394  (eval "$ac_compile") 2>conftest.er1
13395  ac_status=$?
13396  grep -v '^ *+' conftest.er1 >conftest.err
13397  rm -f conftest.er1
13398  cat conftest.err >&5
13399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400  (exit $ac_status); } && {
13401	 test -z "$ac_c_werror_flag" ||
13402	 test ! -s conftest.err
13403       } && test -s conftest.$ac_objext; then
13404  ac_lo=0 ac_mid=0
13405  while :; do
13406    cat >conftest.$ac_ext <<_ACEOF
13407/* confdefs.h.  */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h.  */
13412
13413#define _XOPEN_SOURCE_EXTENDED 1
13414#include <errno.h>
13415/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13416#include <stdio.h>
13417#include <stdlib.h>
13418
13419int
13420main ()
13421{
13422static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13423test_array [0] = 0
13424
13425  ;
13426  return 0;
13427}
13428_ACEOF
13429rm -f conftest.$ac_objext
13430if { (ac_try="$ac_compile"
13431case "(($ac_try" in
13432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433  *) ac_try_echo=$ac_try;;
13434esac
13435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436$as_echo "$ac_try_echo") >&5
13437  (eval "$ac_compile") 2>conftest.er1
13438  ac_status=$?
13439  grep -v '^ *+' conftest.er1 >conftest.err
13440  rm -f conftest.er1
13441  cat conftest.err >&5
13442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443  (exit $ac_status); } && {
13444	 test -z "$ac_c_werror_flag" ||
13445	 test ! -s conftest.err
13446       } && test -s conftest.$ac_objext; then
13447  ac_hi=$ac_mid; break
13448else
13449  $as_echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452	ac_lo=`expr $ac_mid + 1`
13453			if test $ac_lo -le $ac_mid; then
13454			  ac_lo= ac_hi=
13455			  break
13456			fi
13457			ac_mid=`expr 2 '*' $ac_mid + 1`
13458fi
13459
13460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461  done
13462else
13463  $as_echo "$as_me: failed program was:" >&5
13464sed 's/^/| /' conftest.$ac_ext >&5
13465
13466	cat >conftest.$ac_ext <<_ACEOF
13467/* confdefs.h.  */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h.  */
13472
13473#define _XOPEN_SOURCE_EXTENDED 1
13474#include <errno.h>
13475/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13476#include <stdio.h>
13477#include <stdlib.h>
13478
13479int
13480main ()
13481{
13482static int test_array [1 - 2 * !((ENOLINK) < 0)];
13483test_array [0] = 0
13484
13485  ;
13486  return 0;
13487}
13488_ACEOF
13489rm -f conftest.$ac_objext
13490if { (ac_try="$ac_compile"
13491case "(($ac_try" in
13492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493  *) ac_try_echo=$ac_try;;
13494esac
13495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496$as_echo "$ac_try_echo") >&5
13497  (eval "$ac_compile") 2>conftest.er1
13498  ac_status=$?
13499  grep -v '^ *+' conftest.er1 >conftest.err
13500  rm -f conftest.er1
13501  cat conftest.err >&5
13502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503  (exit $ac_status); } && {
13504	 test -z "$ac_c_werror_flag" ||
13505	 test ! -s conftest.err
13506       } && test -s conftest.$ac_objext; then
13507  ac_hi=-1 ac_mid=-1
13508  while :; do
13509    cat >conftest.$ac_ext <<_ACEOF
13510/* confdefs.h.  */
13511_ACEOF
13512cat confdefs.h >>conftest.$ac_ext
13513cat >>conftest.$ac_ext <<_ACEOF
13514/* end confdefs.h.  */
13515
13516#define _XOPEN_SOURCE_EXTENDED 1
13517#include <errno.h>
13518/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13519#include <stdio.h>
13520#include <stdlib.h>
13521
13522int
13523main ()
13524{
13525static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13526test_array [0] = 0
13527
13528  ;
13529  return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext
13533if { (ac_try="$ac_compile"
13534case "(($ac_try" in
13535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536  *) ac_try_echo=$ac_try;;
13537esac
13538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13539$as_echo "$ac_try_echo") >&5
13540  (eval "$ac_compile") 2>conftest.er1
13541  ac_status=$?
13542  grep -v '^ *+' conftest.er1 >conftest.err
13543  rm -f conftest.er1
13544  cat conftest.err >&5
13545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546  (exit $ac_status); } && {
13547	 test -z "$ac_c_werror_flag" ||
13548	 test ! -s conftest.err
13549       } && test -s conftest.$ac_objext; then
13550  ac_lo=$ac_mid; break
13551else
13552  $as_echo "$as_me: failed program was:" >&5
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
13555	ac_hi=`expr '(' $ac_mid ')' - 1`
13556			if test $ac_mid -le $ac_hi; then
13557			  ac_lo= ac_hi=
13558			  break
13559			fi
13560			ac_mid=`expr 2 '*' $ac_mid`
13561fi
13562
13563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564  done
13565else
13566  $as_echo "$as_me: failed program was:" >&5
13567sed 's/^/| /' conftest.$ac_ext >&5
13568
13569	ac_lo= ac_hi=
13570fi
13571
13572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573fi
13574
13575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576# Binary search between lo and hi bounds.
13577while test "x$ac_lo" != "x$ac_hi"; do
13578  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13579  cat >conftest.$ac_ext <<_ACEOF
13580/* confdefs.h.  */
13581_ACEOF
13582cat confdefs.h >>conftest.$ac_ext
13583cat >>conftest.$ac_ext <<_ACEOF
13584/* end confdefs.h.  */
13585
13586#define _XOPEN_SOURCE_EXTENDED 1
13587#include <errno.h>
13588/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13589#include <stdio.h>
13590#include <stdlib.h>
13591
13592int
13593main ()
13594{
13595static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13596test_array [0] = 0
13597
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
13603if { (ac_try="$ac_compile"
13604case "(($ac_try" in
13605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606  *) ac_try_echo=$ac_try;;
13607esac
13608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609$as_echo "$ac_try_echo") >&5
13610  (eval "$ac_compile") 2>conftest.er1
13611  ac_status=$?
13612  grep -v '^ *+' conftest.er1 >conftest.err
13613  rm -f conftest.er1
13614  cat conftest.err >&5
13615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616  (exit $ac_status); } && {
13617	 test -z "$ac_c_werror_flag" ||
13618	 test ! -s conftest.err
13619       } && test -s conftest.$ac_objext; then
13620  ac_hi=$ac_mid
13621else
13622  $as_echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
13624
13625	ac_lo=`expr '(' $ac_mid ')' + 1`
13626fi
13627
13628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629done
13630case $ac_lo in
13631?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13632'')  ;;
13633esac
13634else
13635  cat >conftest.$ac_ext <<_ACEOF
13636/* confdefs.h.  */
13637_ACEOF
13638cat confdefs.h >>conftest.$ac_ext
13639cat >>conftest.$ac_ext <<_ACEOF
13640/* end confdefs.h.  */
13641
13642#define _XOPEN_SOURCE_EXTENDED 1
13643#include <errno.h>
13644/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13645#include <stdio.h>
13646#include <stdlib.h>
13647
13648static long int longval () { return ENOLINK; }
13649static unsigned long int ulongval () { return ENOLINK; }
13650#include <stdio.h>
13651#include <stdlib.h>
13652int
13653main ()
13654{
13655
13656  FILE *f = fopen ("conftest.val", "w");
13657  if (! f)
13658    return 1;
13659  if ((ENOLINK) < 0)
13660    {
13661      long int i = longval ();
13662      if (i != (ENOLINK))
13663	return 1;
13664      fprintf (f, "%ld", i);
13665    }
13666  else
13667    {
13668      unsigned long int i = ulongval ();
13669      if (i != (ENOLINK))
13670	return 1;
13671      fprintf (f, "%lu", i);
13672    }
13673  /* Do not output a trailing newline, as this causes \r\n confusion
13674     on some platforms.  */
13675  return ferror (f) || fclose (f) != 0;
13676
13677  ;
13678  return 0;
13679}
13680_ACEOF
13681rm -f conftest$ac_exeext
13682if { (ac_try="$ac_link"
13683case "(($ac_try" in
13684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685  *) ac_try_echo=$ac_try;;
13686esac
13687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688$as_echo "$ac_try_echo") >&5
13689  (eval "$ac_link") 2>&5
13690  ac_status=$?
13691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13693  { (case "(($ac_try" in
13694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695  *) ac_try_echo=$ac_try;;
13696esac
13697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698$as_echo "$ac_try_echo") >&5
13699  (eval "$ac_try") 2>&5
13700  ac_status=$?
13701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702  (exit $ac_status); }; }; then
13703  gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13704else
13705  $as_echo "$as_me: program exited with status $ac_status" >&5
13706$as_echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709fi
13710rm -rf conftest.dSYM
13711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13712fi
13713rm -f conftest.val
13714        fi
13715      fi
13716
13717fi
13718{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13719$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13720    case $gl_cv_header_errno_h_ENOLINK in
13721      yes | no)
13722        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13723        ;;
13724      *)
13725        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13726        ;;
13727    esac
13728
13729
13730  fi
13731
13732
13733  if test -n "$ERRNO_H"; then
13734    { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13735$as_echo_n "checking for EOVERFLOW value... " >&6; }
13736if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13737  $as_echo_n "(cached) " >&6
13738else
13739
13740      cat >conftest.$ac_ext <<_ACEOF
13741/* confdefs.h.  */
13742_ACEOF
13743cat confdefs.h >>conftest.$ac_ext
13744cat >>conftest.$ac_ext <<_ACEOF
13745/* end confdefs.h.  */
13746
13747#include <errno.h>
13748#ifdef EOVERFLOW
13749yes
13750#endif
13751
13752_ACEOF
13753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754  $EGREP "yes" >/dev/null 2>&1; then
13755  gl_cv_header_errno_h_EOVERFLOW=yes
13756else
13757  gl_cv_header_errno_h_EOVERFLOW=no
13758fi
13759rm -f conftest*
13760
13761      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13762        cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h.  */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h.  */
13768
13769#define _XOPEN_SOURCE_EXTENDED 1
13770#include <errno.h>
13771#ifdef EOVERFLOW
13772yes
13773#endif
13774
13775_ACEOF
13776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13777  $EGREP "yes" >/dev/null 2>&1; then
13778  gl_cv_header_errno_h_EOVERFLOW=hidden
13779fi
13780rm -f conftest*
13781
13782        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13783                              if test "$cross_compiling" = yes; then
13784  # Depending upon the size, compute the lo and hi bounds.
13785cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h.  */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h.  */
13791
13792#define _XOPEN_SOURCE_EXTENDED 1
13793#include <errno.h>
13794/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13795#include <stdio.h>
13796#include <stdlib.h>
13797
13798int
13799main ()
13800{
13801static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13802test_array [0] = 0
13803
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808rm -f conftest.$ac_objext
13809if { (ac_try="$ac_compile"
13810case "(($ac_try" in
13811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812  *) ac_try_echo=$ac_try;;
13813esac
13814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815$as_echo "$ac_try_echo") >&5
13816  (eval "$ac_compile") 2>conftest.er1
13817  ac_status=$?
13818  grep -v '^ *+' conftest.er1 >conftest.err
13819  rm -f conftest.er1
13820  cat conftest.err >&5
13821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822  (exit $ac_status); } && {
13823	 test -z "$ac_c_werror_flag" ||
13824	 test ! -s conftest.err
13825       } && test -s conftest.$ac_objext; then
13826  ac_lo=0 ac_mid=0
13827  while :; do
13828    cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h.  */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h.  */
13834
13835#define _XOPEN_SOURCE_EXTENDED 1
13836#include <errno.h>
13837/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13838#include <stdio.h>
13839#include <stdlib.h>
13840
13841int
13842main ()
13843{
13844static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13845test_array [0] = 0
13846
13847  ;
13848  return 0;
13849}
13850_ACEOF
13851rm -f conftest.$ac_objext
13852if { (ac_try="$ac_compile"
13853case "(($ac_try" in
13854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855  *) ac_try_echo=$ac_try;;
13856esac
13857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13858$as_echo "$ac_try_echo") >&5
13859  (eval "$ac_compile") 2>conftest.er1
13860  ac_status=$?
13861  grep -v '^ *+' conftest.er1 >conftest.err
13862  rm -f conftest.er1
13863  cat conftest.err >&5
13864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865  (exit $ac_status); } && {
13866	 test -z "$ac_c_werror_flag" ||
13867	 test ! -s conftest.err
13868       } && test -s conftest.$ac_objext; then
13869  ac_hi=$ac_mid; break
13870else
13871  $as_echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874	ac_lo=`expr $ac_mid + 1`
13875			if test $ac_lo -le $ac_mid; then
13876			  ac_lo= ac_hi=
13877			  break
13878			fi
13879			ac_mid=`expr 2 '*' $ac_mid + 1`
13880fi
13881
13882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883  done
13884else
13885  $as_echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
13888	cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h.  */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h.  */
13894
13895#define _XOPEN_SOURCE_EXTENDED 1
13896#include <errno.h>
13897/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13898#include <stdio.h>
13899#include <stdlib.h>
13900
13901int
13902main ()
13903{
13904static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13905test_array [0] = 0
13906
13907  ;
13908  return 0;
13909}
13910_ACEOF
13911rm -f conftest.$ac_objext
13912if { (ac_try="$ac_compile"
13913case "(($ac_try" in
13914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915  *) ac_try_echo=$ac_try;;
13916esac
13917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13918$as_echo "$ac_try_echo") >&5
13919  (eval "$ac_compile") 2>conftest.er1
13920  ac_status=$?
13921  grep -v '^ *+' conftest.er1 >conftest.err
13922  rm -f conftest.er1
13923  cat conftest.err >&5
13924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925  (exit $ac_status); } && {
13926	 test -z "$ac_c_werror_flag" ||
13927	 test ! -s conftest.err
13928       } && test -s conftest.$ac_objext; then
13929  ac_hi=-1 ac_mid=-1
13930  while :; do
13931    cat >conftest.$ac_ext <<_ACEOF
13932/* confdefs.h.  */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h.  */
13937
13938#define _XOPEN_SOURCE_EXTENDED 1
13939#include <errno.h>
13940/* The following two lines are a workaround against an autoconf-2.52 bug.  */
13941#include <stdio.h>
13942#include <stdlib.h>
13943
13944int
13945main ()
13946{
13947static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13948test_array [0] = 0
13949
13950  ;
13951  return 0;
13952}
13953_ACEOF
13954rm -f conftest.$ac_objext
13955if { (ac_try="$ac_compile"
13956case "(($ac_try" in
13957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958  *) ac_try_echo=$ac_try;;
13959esac
13960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961$as_echo "$ac_try_echo") >&5
13962  (eval "$ac_compile") 2>conftest.er1
13963  ac_status=$?
13964  grep -v '^ *+' conftest.er1 >conftest.err
13965  rm -f conftest.er1
13966  cat conftest.err >&5
13967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968  (exit $ac_status); } && {
13969	 test -z "$ac_c_werror_flag" ||
13970	 test ! -s conftest.err
13971       } && test -s conftest.$ac_objext; then
13972  ac_lo=$ac_mid; break
13973else
13974  $as_echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977	ac_hi=`expr '(' $ac_mid ')' - 1`
13978			if test $ac_mid -le $ac_hi; then
13979			  ac_lo= ac_hi=
13980			  break
13981			fi
13982			ac_mid=`expr 2 '*' $ac_mid`
13983fi
13984
13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986  done
13987else
13988  $as_echo "$as_me: failed program was:" >&5
13989sed 's/^/| /' conftest.$ac_ext >&5
13990
13991	ac_lo= ac_hi=
13992fi
13993
13994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995fi
13996
13997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998# Binary search between lo and hi bounds.
13999while test "x$ac_lo" != "x$ac_hi"; do
14000  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14001  cat >conftest.$ac_ext <<_ACEOF
14002/* confdefs.h.  */
14003_ACEOF
14004cat confdefs.h >>conftest.$ac_ext
14005cat >>conftest.$ac_ext <<_ACEOF
14006/* end confdefs.h.  */
14007
14008#define _XOPEN_SOURCE_EXTENDED 1
14009#include <errno.h>
14010/* The following two lines are a workaround against an autoconf-2.52 bug.  */
14011#include <stdio.h>
14012#include <stdlib.h>
14013
14014int
14015main ()
14016{
14017static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14018test_array [0] = 0
14019
14020  ;
14021  return 0;
14022}
14023_ACEOF
14024rm -f conftest.$ac_objext
14025if { (ac_try="$ac_compile"
14026case "(($ac_try" in
14027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028  *) ac_try_echo=$ac_try;;
14029esac
14030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031$as_echo "$ac_try_echo") >&5
14032  (eval "$ac_compile") 2>conftest.er1
14033  ac_status=$?
14034  grep -v '^ *+' conftest.er1 >conftest.err
14035  rm -f conftest.er1
14036  cat conftest.err >&5
14037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038  (exit $ac_status); } && {
14039	 test -z "$ac_c_werror_flag" ||
14040	 test ! -s conftest.err
14041       } && test -s conftest.$ac_objext; then
14042  ac_hi=$ac_mid
14043else
14044  $as_echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047	ac_lo=`expr '(' $ac_mid ')' + 1`
14048fi
14049
14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051done
14052case $ac_lo in
14053?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
14054'')  ;;
14055esac
14056else
14057  cat >conftest.$ac_ext <<_ACEOF
14058/* confdefs.h.  */
14059_ACEOF
14060cat confdefs.h >>conftest.$ac_ext
14061cat >>conftest.$ac_ext <<_ACEOF
14062/* end confdefs.h.  */
14063
14064#define _XOPEN_SOURCE_EXTENDED 1
14065#include <errno.h>
14066/* The following two lines are a workaround against an autoconf-2.52 bug.  */
14067#include <stdio.h>
14068#include <stdlib.h>
14069
14070static long int longval () { return EOVERFLOW; }
14071static unsigned long int ulongval () { return EOVERFLOW; }
14072#include <stdio.h>
14073#include <stdlib.h>
14074int
14075main ()
14076{
14077
14078  FILE *f = fopen ("conftest.val", "w");
14079  if (! f)
14080    return 1;
14081  if ((EOVERFLOW) < 0)
14082    {
14083      long int i = longval ();
14084      if (i != (EOVERFLOW))
14085	return 1;
14086      fprintf (f, "%ld", i);
14087    }
14088  else
14089    {
14090      unsigned long int i = ulongval ();
14091      if (i != (EOVERFLOW))
14092	return 1;
14093      fprintf (f, "%lu", i);
14094    }
14095  /* Do not output a trailing newline, as this causes \r\n confusion
14096     on some platforms.  */
14097  return ferror (f) || fclose (f) != 0;
14098
14099  ;
14100  return 0;
14101}
14102_ACEOF
14103rm -f conftest$ac_exeext
14104if { (ac_try="$ac_link"
14105case "(($ac_try" in
14106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107  *) ac_try_echo=$ac_try;;
14108esac
14109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14110$as_echo "$ac_try_echo") >&5
14111  (eval "$ac_link") 2>&5
14112  ac_status=$?
14113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115  { (case "(($ac_try" in
14116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117  *) ac_try_echo=$ac_try;;
14118esac
14119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120$as_echo "$ac_try_echo") >&5
14121  (eval "$ac_try") 2>&5
14122  ac_status=$?
14123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124  (exit $ac_status); }; }; then
14125  gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
14126else
14127  $as_echo "$as_me: program exited with status $ac_status" >&5
14128$as_echo "$as_me: failed program was:" >&5
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
14131fi
14132rm -rf conftest.dSYM
14133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134fi
14135rm -f conftest.val
14136        fi
14137      fi
14138
14139fi
14140{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14141$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14142    case $gl_cv_header_errno_h_EOVERFLOW in
14143      yes | no)
14144        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14145        ;;
14146      *)
14147        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14148        ;;
14149    esac
14150
14151
14152  fi
14153
14154
14155{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14156$as_echo_n "checking whether strerror_r is declared... " >&6; }
14157if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14158  $as_echo_n "(cached) " >&6
14159else
14160  cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h.  */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h.  */
14166$ac_includes_default
14167int
14168main ()
14169{
14170#ifndef strerror_r
14171  (void) strerror_r;
14172#endif
14173
14174  ;
14175  return 0;
14176}
14177_ACEOF
14178rm -f conftest.$ac_objext
14179if { (ac_try="$ac_compile"
14180case "(($ac_try" in
14181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182  *) ac_try_echo=$ac_try;;
14183esac
14184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185$as_echo "$ac_try_echo") >&5
14186  (eval "$ac_compile") 2>conftest.er1
14187  ac_status=$?
14188  grep -v '^ *+' conftest.er1 >conftest.err
14189  rm -f conftest.er1
14190  cat conftest.err >&5
14191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192  (exit $ac_status); } && {
14193	 test -z "$ac_c_werror_flag" ||
14194	 test ! -s conftest.err
14195       } && test -s conftest.$ac_objext; then
14196  ac_cv_have_decl_strerror_r=yes
14197else
14198  $as_echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
14201	ac_cv_have_decl_strerror_r=no
14202fi
14203
14204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205fi
14206{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14207$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14208if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14209
14210cat >>confdefs.h <<_ACEOF
14211#define HAVE_DECL_STRERROR_R 1
14212_ACEOF
14213
14214
14215else
14216  cat >>confdefs.h <<_ACEOF
14217#define HAVE_DECL_STRERROR_R 0
14218_ACEOF
14219
14220
14221fi
14222
14223
14224
14225for ac_func in strerror_r
14226do
14227as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14228{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14229$as_echo_n "checking for $ac_func... " >&6; }
14230if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14231  $as_echo_n "(cached) " >&6
14232else
14233  cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h.  */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h.  */
14239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14240   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14241#define $ac_func innocuous_$ac_func
14242
14243/* System header to define __stub macros and hopefully few prototypes,
14244    which can conflict with char $ac_func (); below.
14245    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14246    <limits.h> exists even on freestanding compilers.  */
14247
14248#ifdef __STDC__
14249# include <limits.h>
14250#else
14251# include <assert.h>
14252#endif
14253
14254#undef $ac_func
14255
14256/* Override any GCC internal prototype to avoid an error.
14257   Use char because int might match the return type of a GCC
14258   builtin and then its argument prototype would still apply.  */
14259#ifdef __cplusplus
14260extern "C"
14261#endif
14262char $ac_func ();
14263/* The GNU C library defines this for functions which it implements
14264    to always fail with ENOSYS.  Some functions are actually named
14265    something starting with __ and the normal name is an alias.  */
14266#if defined __stub_$ac_func || defined __stub___$ac_func
14267choke me
14268#endif
14269
14270int
14271main ()
14272{
14273return $ac_func ();
14274  ;
14275  return 0;
14276}
14277_ACEOF
14278rm -f conftest.$ac_objext conftest$ac_exeext
14279if { (ac_try="$ac_link"
14280case "(($ac_try" in
14281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282  *) ac_try_echo=$ac_try;;
14283esac
14284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14285$as_echo "$ac_try_echo") >&5
14286  (eval "$ac_link") 2>conftest.er1
14287  ac_status=$?
14288  grep -v '^ *+' conftest.er1 >conftest.err
14289  rm -f conftest.er1
14290  cat conftest.err >&5
14291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292  (exit $ac_status); } && {
14293	 test -z "$ac_c_werror_flag" ||
14294	 test ! -s conftest.err
14295       } && test -s conftest$ac_exeext && {
14296	 test "$cross_compiling" = yes ||
14297	 $as_test_x conftest$ac_exeext
14298       }; then
14299  eval "$as_ac_var=yes"
14300else
14301  $as_echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304	eval "$as_ac_var=no"
14305fi
14306
14307rm -rf conftest.dSYM
14308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309      conftest$ac_exeext conftest.$ac_ext
14310fi
14311ac_res=`eval 'as_val=${'$as_ac_var'}
14312		 $as_echo "$as_val"'`
14313	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14314$as_echo "$ac_res" >&6; }
14315as_val=`eval 'as_val=${'$as_ac_var'}
14316		 $as_echo "$as_val"'`
14317   if test "x$as_val" = x""yes; then
14318  cat >>confdefs.h <<_ACEOF
14319#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14320_ACEOF
14321
14322fi
14323done
14324
14325{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14326$as_echo_n "checking whether strerror_r returns char *... " >&6; }
14327if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14328  $as_echo_n "(cached) " >&6
14329else
14330
14331    ac_cv_func_strerror_r_char_p=no
14332    if test $ac_cv_have_decl_strerror_r = yes; then
14333      cat >conftest.$ac_ext <<_ACEOF
14334/* confdefs.h.  */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h.  */
14339$ac_includes_default
14340int
14341main ()
14342{
14343
14344	  char buf[100];
14345	  char x = *strerror_r (0, buf, sizeof buf);
14346	  char *p = strerror_r (0, buf, sizeof buf);
14347	  return !p || x;
14348
14349  ;
14350  return 0;
14351}
14352_ACEOF
14353rm -f conftest.$ac_objext
14354if { (ac_try="$ac_compile"
14355case "(($ac_try" in
14356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357  *) ac_try_echo=$ac_try;;
14358esac
14359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14360$as_echo "$ac_try_echo") >&5
14361  (eval "$ac_compile") 2>conftest.er1
14362  ac_status=$?
14363  grep -v '^ *+' conftest.er1 >conftest.err
14364  rm -f conftest.er1
14365  cat conftest.err >&5
14366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367  (exit $ac_status); } && {
14368	 test -z "$ac_c_werror_flag" ||
14369	 test ! -s conftest.err
14370       } && test -s conftest.$ac_objext; then
14371  ac_cv_func_strerror_r_char_p=yes
14372else
14373  $as_echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376
14377fi
14378
14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380    else
14381      # strerror_r is not declared.  Choose between
14382      # systems that have relatively inaccessible declarations for the
14383      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14384      # former has a strerror_r that returns char*, while the latter
14385      # has a strerror_r that returns `int'.
14386      # This test should segfault on the DEC system.
14387      if test "$cross_compiling" = yes; then
14388  :
14389else
14390  cat >conftest.$ac_ext <<_ACEOF
14391/* confdefs.h.  */
14392_ACEOF
14393cat confdefs.h >>conftest.$ac_ext
14394cat >>conftest.$ac_ext <<_ACEOF
14395/* end confdefs.h.  */
14396$ac_includes_default
14397	extern char *strerror_r ();
14398int
14399main ()
14400{
14401char buf[100];
14402	  char x = *strerror_r (0, buf, sizeof buf);
14403	  return ! isalpha (x);
14404  ;
14405  return 0;
14406}
14407_ACEOF
14408rm -f conftest$ac_exeext
14409if { (ac_try="$ac_link"
14410case "(($ac_try" in
14411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412  *) ac_try_echo=$ac_try;;
14413esac
14414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415$as_echo "$ac_try_echo") >&5
14416  (eval "$ac_link") 2>&5
14417  ac_status=$?
14418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14420  { (case "(($ac_try" in
14421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422  *) ac_try_echo=$ac_try;;
14423esac
14424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14425$as_echo "$ac_try_echo") >&5
14426  (eval "$ac_try") 2>&5
14427  ac_status=$?
14428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429  (exit $ac_status); }; }; then
14430  ac_cv_func_strerror_r_char_p=yes
14431else
14432  $as_echo "$as_me: program exited with status $ac_status" >&5
14433$as_echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
14436fi
14437rm -rf conftest.dSYM
14438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14439fi
14440
14441
14442    fi
14443
14444fi
14445{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14446$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14447if test $ac_cv_func_strerror_r_char_p = yes; then
14448
14449cat >>confdefs.h <<\_ACEOF
14450#define STRERROR_R_CHAR_P 1
14451_ACEOF
14452
14453fi
14454
14455
14456  XGETTEXT_EXTRA_OPTIONS=
14457
14458
14459  GNULIB_FPRINTF=0;
14460  GNULIB_FPRINTF_POSIX=0;
14461  GNULIB_PRINTF=0;
14462  GNULIB_PRINTF_POSIX=0;
14463  GNULIB_SNPRINTF=0;
14464  GNULIB_SPRINTF_POSIX=0;
14465  GNULIB_VFPRINTF=0;
14466  GNULIB_VFPRINTF_POSIX=0;
14467  GNULIB_VPRINTF=0;
14468  GNULIB_VPRINTF_POSIX=0;
14469  GNULIB_VSNPRINTF=0;
14470  GNULIB_VSPRINTF_POSIX=0;
14471  GNULIB_DPRINTF=0;
14472  GNULIB_VDPRINTF=0;
14473  GNULIB_VASPRINTF=0;
14474  GNULIB_OBSTACK_PRINTF=0;
14475  GNULIB_OBSTACK_PRINTF_POSIX=0;
14476  GNULIB_FOPEN=0;
14477  GNULIB_FREOPEN=0;
14478  GNULIB_FSEEK=0;
14479  GNULIB_FSEEKO=0;
14480  GNULIB_FTELL=0;
14481  GNULIB_FTELLO=0;
14482  GNULIB_FFLUSH=0;
14483  GNULIB_FPURGE=0;
14484  GNULIB_FCLOSE=0;
14485  GNULIB_FPUTC=0;
14486  GNULIB_PUTC=0;
14487  GNULIB_PUTCHAR=0;
14488  GNULIB_FPUTS=0;
14489  GNULIB_PUTS=0;
14490  GNULIB_FWRITE=0;
14491  GNULIB_POPEN=0;
14492  GNULIB_GETDELIM=0;
14493  GNULIB_GETLINE=0;
14494  GNULIB_PERROR=0;
14495  GNULIB_STDIO_H_SIGPIPE=0;
14496    REPLACE_STDIO_WRITE_FUNCS=0;
14497  REPLACE_FPRINTF=0;
14498  REPLACE_VFPRINTF=0;
14499  REPLACE_PRINTF=0;
14500  REPLACE_VPRINTF=0;
14501  REPLACE_SNPRINTF=0;
14502  HAVE_DECL_SNPRINTF=1;
14503  REPLACE_VSNPRINTF=0;
14504  HAVE_DECL_VSNPRINTF=1;
14505  REPLACE_SPRINTF=0;
14506  REPLACE_VSPRINTF=0;
14507  HAVE_DPRINTF=1;
14508  REPLACE_DPRINTF=0;
14509  HAVE_VDPRINTF=1;
14510  REPLACE_VDPRINTF=0;
14511  HAVE_VASPRINTF=1;
14512  REPLACE_VASPRINTF=0;
14513  HAVE_DECL_OBSTACK_PRINTF=1;
14514  REPLACE_OBSTACK_PRINTF=0;
14515  REPLACE_FOPEN=0;
14516  REPLACE_FREOPEN=0;
14517  HAVE_FSEEKO=1;
14518  REPLACE_FSEEKO=0;
14519  REPLACE_FSEEK=0;
14520  HAVE_FTELLO=1;
14521  REPLACE_FTELLO=0;
14522  REPLACE_FTELL=0;
14523  REPLACE_FFLUSH=0;
14524  REPLACE_FPURGE=0;
14525  HAVE_DECL_FPURGE=1;
14526  REPLACE_FCLOSE=0;
14527  REPLACE_POPEN=0;
14528  HAVE_DECL_GETDELIM=1;
14529  HAVE_DECL_GETLINE=1;
14530  REPLACE_GETLINE=0;
14531  REPLACE_PERROR=0;
14532
14533
14534    { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14535$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14536if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14537  $as_echo_n "(cached) " >&6
14538else
14539  cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h.  */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h.  */
14545#include <stdio.h>
14546int
14547main ()
14548{
14549#if defined __SL64 && defined __SCLE /* cygwin */
14550  /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14551     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
14552     it is easier to do a version check than building a runtime test.  */
14553# include <cygwin/version.h>
14554# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14555  choke me
14556# endif
14557#endif
14558  ;
14559  return 0;
14560}
14561_ACEOF
14562rm -f conftest.$ac_objext conftest$ac_exeext
14563if { (ac_try="$ac_link"
14564case "(($ac_try" in
14565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566  *) ac_try_echo=$ac_try;;
14567esac
14568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569$as_echo "$ac_try_echo") >&5
14570  (eval "$ac_link") 2>conftest.er1
14571  ac_status=$?
14572  grep -v '^ *+' conftest.er1 >conftest.err
14573  rm -f conftest.er1
14574  cat conftest.err >&5
14575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576  (exit $ac_status); } && {
14577	 test -z "$ac_c_werror_flag" ||
14578	 test ! -s conftest.err
14579       } && test -s conftest$ac_exeext && {
14580	 test "$cross_compiling" = yes ||
14581	 $as_test_x conftest$ac_exeext
14582       }; then
14583  gl_cv_var_stdin_large_offset=yes
14584else
14585  $as_echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
14588	gl_cv_var_stdin_large_offset=no
14589fi
14590
14591rm -rf conftest.dSYM
14592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593      conftest$ac_exeext conftest.$ac_ext
14594fi
14595{ $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14596$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14597
14598{ $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14599$as_echo_n "checking whether getdelim is declared... " >&6; }
14600if test "${ac_cv_have_decl_getdelim+set}" = set; then
14601  $as_echo_n "(cached) " >&6
14602else
14603  cat >conftest.$ac_ext <<_ACEOF
14604/* confdefs.h.  */
14605_ACEOF
14606cat confdefs.h >>conftest.$ac_ext
14607cat >>conftest.$ac_ext <<_ACEOF
14608/* end confdefs.h.  */
14609$ac_includes_default
14610int
14611main ()
14612{
14613#ifndef getdelim
14614  (void) getdelim;
14615#endif
14616
14617  ;
14618  return 0;
14619}
14620_ACEOF
14621rm -f conftest.$ac_objext
14622if { (ac_try="$ac_compile"
14623case "(($ac_try" in
14624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625  *) ac_try_echo=$ac_try;;
14626esac
14627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628$as_echo "$ac_try_echo") >&5
14629  (eval "$ac_compile") 2>conftest.er1
14630  ac_status=$?
14631  grep -v '^ *+' conftest.er1 >conftest.err
14632  rm -f conftest.er1
14633  cat conftest.err >&5
14634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635  (exit $ac_status); } && {
14636	 test -z "$ac_c_werror_flag" ||
14637	 test ! -s conftest.err
14638       } && test -s conftest.$ac_objext; then
14639  ac_cv_have_decl_getdelim=yes
14640else
14641  $as_echo "$as_me: failed program was:" >&5
14642sed 's/^/| /' conftest.$ac_ext >&5
14643
14644	ac_cv_have_decl_getdelim=no
14645fi
14646
14647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648fi
14649{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14650$as_echo "$ac_cv_have_decl_getdelim" >&6; }
14651if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14652
14653cat >>confdefs.h <<_ACEOF
14654#define HAVE_DECL_GETDELIM 1
14655_ACEOF
14656
14657
14658else
14659  cat >>confdefs.h <<_ACEOF
14660#define HAVE_DECL_GETDELIM 0
14661_ACEOF
14662
14663
14664fi
14665
14666
14667{ $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14668$as_echo_n "checking whether getline is declared... " >&6; }
14669if test "${ac_cv_have_decl_getline+set}" = set; then
14670  $as_echo_n "(cached) " >&6
14671else
14672  cat >conftest.$ac_ext <<_ACEOF
14673/* confdefs.h.  */
14674_ACEOF
14675cat confdefs.h >>conftest.$ac_ext
14676cat >>conftest.$ac_ext <<_ACEOF
14677/* end confdefs.h.  */
14678$ac_includes_default
14679int
14680main ()
14681{
14682#ifndef getline
14683  (void) getline;
14684#endif
14685
14686  ;
14687  return 0;
14688}
14689_ACEOF
14690rm -f conftest.$ac_objext
14691if { (ac_try="$ac_compile"
14692case "(($ac_try" in
14693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694  *) ac_try_echo=$ac_try;;
14695esac
14696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697$as_echo "$ac_try_echo") >&5
14698  (eval "$ac_compile") 2>conftest.er1
14699  ac_status=$?
14700  grep -v '^ *+' conftest.er1 >conftest.err
14701  rm -f conftest.er1
14702  cat conftest.err >&5
14703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704  (exit $ac_status); } && {
14705	 test -z "$ac_c_werror_flag" ||
14706	 test ! -s conftest.err
14707       } && test -s conftest.$ac_objext; then
14708  ac_cv_have_decl_getline=yes
14709else
14710  $as_echo "$as_me: failed program was:" >&5
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
14713	ac_cv_have_decl_getline=no
14714fi
14715
14716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717fi
14718{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14719$as_echo "$ac_cv_have_decl_getline" >&6; }
14720if test "x$ac_cv_have_decl_getline" = x""yes; then
14721
14722cat >>confdefs.h <<_ACEOF
14723#define HAVE_DECL_GETLINE 1
14724_ACEOF
14725
14726
14727else
14728  cat >>confdefs.h <<_ACEOF
14729#define HAVE_DECL_GETLINE 0
14730_ACEOF
14731
14732
14733fi
14734
14735
14736
14737  GNULIB_CHOWN=0;
14738  GNULIB_CLOSE=0;
14739  GNULIB_DUP2=0;
14740  GNULIB_DUP3=0;
14741  GNULIB_ENVIRON=0;
14742  GNULIB_EUIDACCESS=0;
14743  GNULIB_FCHDIR=0;
14744  GNULIB_FSYNC=0;
14745  GNULIB_FTRUNCATE=0;
14746  GNULIB_GETCWD=0;
14747  GNULIB_GETDOMAINNAME=0;
14748  GNULIB_GETDTABLESIZE=0;
14749  GNULIB_GETHOSTNAME=0;
14750  GNULIB_GETLOGIN_R=0;
14751  GNULIB_GETPAGESIZE=0;
14752  GNULIB_GETUSERSHELL=0;
14753  GNULIB_LCHOWN=0;
14754  GNULIB_LINK=0;
14755  GNULIB_LSEEK=0;
14756  GNULIB_PIPE2=0;
14757  GNULIB_READLINK=0;
14758  GNULIB_SLEEP=0;
14759  GNULIB_UNISTD_H_GETOPT=0;
14760  GNULIB_UNISTD_H_SIGPIPE=0;
14761  GNULIB_WRITE=0;
14762    HAVE_DUP2=1;
14763  HAVE_DUP3=1;
14764  HAVE_EUIDACCESS=1;
14765  HAVE_FSYNC=1;
14766  HAVE_FTRUNCATE=1;
14767  HAVE_GETDOMAINNAME=1;
14768  HAVE_GETDTABLESIZE=1;
14769  HAVE_GETHOSTNAME=1;
14770  HAVE_GETPAGESIZE=1;
14771  HAVE_GETUSERSHELL=1;
14772  HAVE_LINK=1;
14773  HAVE_PIPE2=1;
14774  HAVE_READLINK=1;
14775  HAVE_SLEEP=1;
14776  HAVE_DECL_ENVIRON=1;
14777  HAVE_DECL_GETLOGIN_R=1;
14778  HAVE_OS_H=0;
14779  HAVE_SYS_PARAM_H=0;
14780  REPLACE_CHOWN=0;
14781  REPLACE_CLOSE=0;
14782  REPLACE_DUP2=0;
14783  REPLACE_FCHDIR=0;
14784  REPLACE_GETCWD=0;
14785  REPLACE_GETPAGESIZE=0;
14786  REPLACE_LCHOWN=0;
14787  REPLACE_LSEEK=0;
14788  REPLACE_WRITE=0;
14789  UNISTD_H_HAVE_WINSOCK2_H=0;
14790  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14791
14792
14793
14794
14795
14796
14797  gl_replace_getopt=
14798
14799    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14800
14801for ac_header in getopt.h
14802do
14803as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14806$as_echo_n "checking for $ac_header... " >&6; }
14807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14808  $as_echo_n "(cached) " >&6
14809fi
14810ac_res=`eval 'as_val=${'$as_ac_Header'}
14811		 $as_echo "$as_val"'`
14812	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14813$as_echo "$ac_res" >&6; }
14814else
14815  # Is the header compilable?
14816{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14817$as_echo_n "checking $ac_header usability... " >&6; }
14818cat >conftest.$ac_ext <<_ACEOF
14819/* confdefs.h.  */
14820_ACEOF
14821cat confdefs.h >>conftest.$ac_ext
14822cat >>conftest.$ac_ext <<_ACEOF
14823/* end confdefs.h.  */
14824$ac_includes_default
14825#include <$ac_header>
14826_ACEOF
14827rm -f conftest.$ac_objext
14828if { (ac_try="$ac_compile"
14829case "(($ac_try" in
14830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831  *) ac_try_echo=$ac_try;;
14832esac
14833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834$as_echo "$ac_try_echo") >&5
14835  (eval "$ac_compile") 2>conftest.er1
14836  ac_status=$?
14837  grep -v '^ *+' conftest.er1 >conftest.err
14838  rm -f conftest.er1
14839  cat conftest.err >&5
14840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841  (exit $ac_status); } && {
14842	 test -z "$ac_c_werror_flag" ||
14843	 test ! -s conftest.err
14844       } && test -s conftest.$ac_objext; then
14845  ac_header_compiler=yes
14846else
14847  $as_echo "$as_me: failed program was:" >&5
14848sed 's/^/| /' conftest.$ac_ext >&5
14849
14850	ac_header_compiler=no
14851fi
14852
14853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855$as_echo "$ac_header_compiler" >&6; }
14856
14857# Is the header present?
14858{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859$as_echo_n "checking $ac_header presence... " >&6; }
14860cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h.  */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h.  */
14866#include <$ac_header>
14867_ACEOF
14868if { (ac_try="$ac_cpp conftest.$ac_ext"
14869case "(($ac_try" in
14870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871  *) ac_try_echo=$ac_try;;
14872esac
14873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874$as_echo "$ac_try_echo") >&5
14875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14876  ac_status=$?
14877  grep -v '^ *+' conftest.er1 >conftest.err
14878  rm -f conftest.er1
14879  cat conftest.err >&5
14880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881  (exit $ac_status); } >/dev/null && {
14882	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14883	 test ! -s conftest.err
14884       }; then
14885  ac_header_preproc=yes
14886else
14887  $as_echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890  ac_header_preproc=no
14891fi
14892
14893rm -f conftest.err conftest.$ac_ext
14894{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14895$as_echo "$ac_header_preproc" >&6; }
14896
14897# So?  What about this header?
14898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899  yes:no: )
14900    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14901$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14902    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14903$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14904    ac_header_preproc=yes
14905    ;;
14906  no:yes:* )
14907    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14908$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14909    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14910$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14911    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14912$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14913    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14914$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14915    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14916$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14917    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14918$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14919    ( cat <<\_ASBOX
14920## ------------------------------- ##
14921## Report this to bug-wget@gnu.org ##
14922## ------------------------------- ##
14923_ASBOX
14924     ) | sed "s/^/$as_me: WARNING:     /" >&2
14925    ;;
14926esac
14927{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14928$as_echo_n "checking for $ac_header... " >&6; }
14929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930  $as_echo_n "(cached) " >&6
14931else
14932  eval "$as_ac_Header=\$ac_header_preproc"
14933fi
14934ac_res=`eval 'as_val=${'$as_ac_Header'}
14935		 $as_echo "$as_val"'`
14936	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14937$as_echo "$ac_res" >&6; }
14938
14939fi
14940as_val=`eval 'as_val=${'$as_ac_Header'}
14941		 $as_echo "$as_val"'`
14942   if test "x$as_val" = x""yes; then
14943  cat >>confdefs.h <<_ACEOF
14944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945_ACEOF
14946
14947else
14948  gl_replace_getopt=yes
14949fi
14950
14951done
14952
14953  fi
14954
14955    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14956
14957for ac_func in getopt_long_only
14958do
14959as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14960{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14961$as_echo_n "checking for $ac_func... " >&6; }
14962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14963  $as_echo_n "(cached) " >&6
14964else
14965  cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h.  */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h.  */
14971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14973#define $ac_func innocuous_$ac_func
14974
14975/* System header to define __stub macros and hopefully few prototypes,
14976    which can conflict with char $ac_func (); below.
14977    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978    <limits.h> exists even on freestanding compilers.  */
14979
14980#ifdef __STDC__
14981# include <limits.h>
14982#else
14983# include <assert.h>
14984#endif
14985
14986#undef $ac_func
14987
14988/* Override any GCC internal prototype to avoid an error.
14989   Use char because int might match the return type of a GCC
14990   builtin and then its argument prototype would still apply.  */
14991#ifdef __cplusplus
14992extern "C"
14993#endif
14994char $ac_func ();
14995/* The GNU C library defines this for functions which it implements
14996    to always fail with ENOSYS.  Some functions are actually named
14997    something starting with __ and the normal name is an alias.  */
14998#if defined __stub_$ac_func || defined __stub___$ac_func
14999choke me
15000#endif
15001
15002int
15003main ()
15004{
15005return $ac_func ();
15006  ;
15007  return 0;
15008}
15009_ACEOF
15010rm -f conftest.$ac_objext conftest$ac_exeext
15011if { (ac_try="$ac_link"
15012case "(($ac_try" in
15013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014  *) ac_try_echo=$ac_try;;
15015esac
15016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15017$as_echo "$ac_try_echo") >&5
15018  (eval "$ac_link") 2>conftest.er1
15019  ac_status=$?
15020  grep -v '^ *+' conftest.er1 >conftest.err
15021  rm -f conftest.er1
15022  cat conftest.err >&5
15023  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024  (exit $ac_status); } && {
15025	 test -z "$ac_c_werror_flag" ||
15026	 test ! -s conftest.err
15027       } && test -s conftest$ac_exeext && {
15028	 test "$cross_compiling" = yes ||
15029	 $as_test_x conftest$ac_exeext
15030       }; then
15031  eval "$as_ac_var=yes"
15032else
15033  $as_echo "$as_me: failed program was:" >&5
15034sed 's/^/| /' conftest.$ac_ext >&5
15035
15036	eval "$as_ac_var=no"
15037fi
15038
15039rm -rf conftest.dSYM
15040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15041      conftest$ac_exeext conftest.$ac_ext
15042fi
15043ac_res=`eval 'as_val=${'$as_ac_var'}
15044		 $as_echo "$as_val"'`
15045	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046$as_echo "$ac_res" >&6; }
15047as_val=`eval 'as_val=${'$as_ac_var'}
15048		 $as_echo "$as_val"'`
15049   if test "x$as_val" = x""yes; then
15050  cat >>confdefs.h <<_ACEOF
15051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15052_ACEOF
15053
15054else
15055  gl_replace_getopt=yes
15056fi
15057done
15058
15059  fi
15060
15061      if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15062    { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15063$as_echo_n "checking whether optreset is declared... " >&6; }
15064if test "${ac_cv_have_decl_optreset+set}" = set; then
15065  $as_echo_n "(cached) " >&6
15066else
15067  cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h.  */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h.  */
15073#include <getopt.h>
15074
15075int
15076main ()
15077{
15078#ifndef optreset
15079  (void) optreset;
15080#endif
15081
15082  ;
15083  return 0;
15084}
15085_ACEOF
15086rm -f conftest.$ac_objext
15087if { (ac_try="$ac_compile"
15088case "(($ac_try" in
15089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090  *) ac_try_echo=$ac_try;;
15091esac
15092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093$as_echo "$ac_try_echo") >&5
15094  (eval "$ac_compile") 2>conftest.er1
15095  ac_status=$?
15096  grep -v '^ *+' conftest.er1 >conftest.err
15097  rm -f conftest.er1
15098  cat conftest.err >&5
15099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100  (exit $ac_status); } && {
15101	 test -z "$ac_c_werror_flag" ||
15102	 test ! -s conftest.err
15103       } && test -s conftest.$ac_objext; then
15104  ac_cv_have_decl_optreset=yes
15105else
15106  $as_echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
15109	ac_cv_have_decl_optreset=no
15110fi
15111
15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113fi
15114{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15115$as_echo "$ac_cv_have_decl_optreset" >&6; }
15116if test "x$ac_cv_have_decl_optreset" = x""yes; then
15117  gl_replace_getopt=yes
15118fi
15119
15120  fi
15121
15122          if test -z "$gl_replace_getopt"; then
15123    { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15124$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15125if test "${gl_cv_func_getopt_posix+set}" = set; then
15126  $as_echo_n "(cached) " >&6
15127else
15128
15129                if test "$cross_compiling" = yes; then
15130  case "$host_os" in
15131             mingw*) gl_cv_func_getopt_posix="guessing no";;
15132             *)      gl_cv_func_getopt_posix="guessing yes";;
15133           esac
15134
15135else
15136  cat >conftest.$ac_ext <<_ACEOF
15137/* confdefs.h.  */
15138_ACEOF
15139cat confdefs.h >>conftest.$ac_ext
15140cat >>conftest.$ac_ext <<_ACEOF
15141/* end confdefs.h.  */
15142
15143#include <unistd.h>
15144#include <stdlib.h>
15145#include <string.h>
15146
15147/* The glibc implementation of getopt supports setting optind = 0 as a means
15148   of clearing the internal state, but other implementations don't.  */
15149#if (__GLIBC__ >= 2)
15150# define OPTIND_MIN 0
15151#else
15152# define OPTIND_MIN 1
15153#endif
15154
15155int
15156main ()
15157{
15158  {
15159    int argc = 0;
15160    char *argv[10];
15161    int c;
15162
15163    argv[argc++] = "program";
15164    argv[argc++] = "-a";
15165    argv[argc++] = "foo";
15166    argv[argc++] = "bar";
15167    optind = OPTIND_MIN;
15168    opterr = 0;
15169
15170    c = getopt (argc, argv, "ab");
15171    if (!(c == 'a'))
15172      return 1;
15173    c = getopt (argc, argv, "ab");
15174    if (!(c == -1))
15175      return 2;
15176    if (!(optind == 2))
15177      return 3;
15178  }
15179  /* Some internal state exists at this point.  */
15180  {
15181    int argc = 0;
15182    char *argv[10];
15183    int c;
15184
15185    argv[argc++] = "program";
15186    argv[argc++] = "donald";
15187    argv[argc++] = "-p";
15188    argv[argc++] = "billy";
15189    argv[argc++] = "duck";
15190    argv[argc++] = "-a";
15191    argv[argc++] = "bar";
15192    optind = OPTIND_MIN;
15193    opterr = 0;
15194
15195    c = getopt (argc, argv, "+abp:q:");
15196    if (!(c == -1))
15197      return 4;
15198    if (!(strcmp (argv[0], "program") == 0))
15199      return 5;
15200    if (!(strcmp (argv[1], "donald") == 0))
15201      return 6;
15202    if (!(strcmp (argv[2], "-p") == 0))
15203      return 7;
15204    if (!(strcmp (argv[3], "billy") == 0))
15205      return 8;
15206    if (!(strcmp (argv[4], "duck") == 0))
15207      return 9;
15208    if (!(strcmp (argv[5], "-a") == 0))
15209      return 10;
15210    if (!(strcmp (argv[6], "bar") == 0))
15211      return 11;
15212    if (!(optind == 1))
15213      return 12;
15214  }
15215
15216  return 0;
15217}
15218
15219_ACEOF
15220rm -f conftest$ac_exeext
15221if { (ac_try="$ac_link"
15222case "(($ac_try" in
15223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224  *) ac_try_echo=$ac_try;;
15225esac
15226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227$as_echo "$ac_try_echo") >&5
15228  (eval "$ac_link") 2>&5
15229  ac_status=$?
15230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15232  { (case "(($ac_try" in
15233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234  *) ac_try_echo=$ac_try;;
15235esac
15236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237$as_echo "$ac_try_echo") >&5
15238  (eval "$ac_try") 2>&5
15239  ac_status=$?
15240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241  (exit $ac_status); }; }; then
15242  gl_cv_func_getopt_posix=yes
15243else
15244  $as_echo "$as_me: program exited with status $ac_status" >&5
15245$as_echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248( exit $ac_status )
15249gl_cv_func_getopt_posix=no
15250fi
15251rm -rf conftest.dSYM
15252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15253fi
15254
15255
15256
15257fi
15258{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15259$as_echo "$gl_cv_func_getopt_posix" >&6; }
15260    case "$gl_cv_func_getopt_posix" in
15261      *no) gl_replace_getopt=yes ;;
15262    esac
15263  fi
15264
15265  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15266    { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15267$as_echo_n "checking for working GNU getopt function... " >&6; }
15268if test "${gl_cv_func_getopt_gnu+set}" = set; then
15269  $as_echo_n "(cached) " >&6
15270else
15271  if test "$cross_compiling" = yes; then
15272           case "$host_os" in
15273           *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
15274           *)               gl_cv_func_getopt_gnu=yes;;
15275         esac
15276
15277else
15278  cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h.  */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h.  */
15284#include <getopt.h>
15285			   #include <stddef.h>
15286			   #include <string.h>
15287int
15288main ()
15289{
15290
15291             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15292                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15293                OSF/1 5.1, Solaris 10.  */
15294             {
15295               char *myargv[3];
15296               myargv[0] = "conftest";
15297               myargv[1] = "-+";
15298               myargv[2] = 0;
15299               opterr = 0;
15300               if (getopt (2, myargv, "+a") != '?')
15301                 return 1;
15302             }
15303             /* This code succeeds on glibc 2.8, mingw,
15304                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15305                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin.  */
15306             {
15307               char *argv[] = { "program", "-p", "foo", "bar" };
15308
15309               optind = 1;
15310               if (getopt (4, argv, "p::") != 'p')
15311                 return 2;
15312               if (optarg != NULL)
15313                 return 3;
15314               if (getopt (4, argv, "p::") != -1)
15315                 return 4;
15316               if (optind != 2)
15317                 return 5;
15318             }
15319             return 0;
15320
15321  ;
15322  return 0;
15323}
15324_ACEOF
15325rm -f conftest$ac_exeext
15326if { (ac_try="$ac_link"
15327case "(($ac_try" in
15328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329  *) ac_try_echo=$ac_try;;
15330esac
15331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332$as_echo "$ac_try_echo") >&5
15333  (eval "$ac_link") 2>&5
15334  ac_status=$?
15335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15337  { (case "(($ac_try" in
15338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339  *) ac_try_echo=$ac_try;;
15340esac
15341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15342$as_echo "$ac_try_echo") >&5
15343  (eval "$ac_try") 2>&5
15344  ac_status=$?
15345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); }; }; then
15347  gl_cv_func_getopt_gnu=yes
15348else
15349  $as_echo "$as_me: program exited with status $ac_status" >&5
15350$as_echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353( exit $ac_status )
15354gl_cv_func_getopt_gnu=no
15355fi
15356rm -rf conftest.dSYM
15357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15358fi
15359
15360
15361
15362fi
15363{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15364$as_echo "$gl_cv_func_getopt_gnu" >&6; }
15365    if test "$gl_cv_func_getopt_gnu" = "no"; then
15366      gl_replace_getopt=yes
15367    fi
15368  fi
15369
15370{ $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15371$as_echo_n "checking whether getenv is declared... " >&6; }
15372if test "${ac_cv_have_decl_getenv+set}" = set; then
15373  $as_echo_n "(cached) " >&6
15374else
15375  cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h.  */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h.  */
15381$ac_includes_default
15382int
15383main ()
15384{
15385#ifndef getenv
15386  (void) getenv;
15387#endif
15388
15389  ;
15390  return 0;
15391}
15392_ACEOF
15393rm -f conftest.$ac_objext
15394if { (ac_try="$ac_compile"
15395case "(($ac_try" in
15396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397  *) ac_try_echo=$ac_try;;
15398esac
15399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15400$as_echo "$ac_try_echo") >&5
15401  (eval "$ac_compile") 2>conftest.er1
15402  ac_status=$?
15403  grep -v '^ *+' conftest.er1 >conftest.err
15404  rm -f conftest.er1
15405  cat conftest.err >&5
15406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407  (exit $ac_status); } && {
15408	 test -z "$ac_c_werror_flag" ||
15409	 test ! -s conftest.err
15410       } && test -s conftest.$ac_objext; then
15411  ac_cv_have_decl_getenv=yes
15412else
15413  $as_echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416	ac_cv_have_decl_getenv=no
15417fi
15418
15419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15420fi
15421{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15422$as_echo "$ac_cv_have_decl_getenv" >&6; }
15423if test "x$ac_cv_have_decl_getenv" = x""yes; then
15424
15425cat >>confdefs.h <<_ACEOF
15426#define HAVE_DECL_GETENV 1
15427_ACEOF
15428
15429
15430else
15431  cat >>confdefs.h <<_ACEOF
15432#define HAVE_DECL_GETENV 0
15433_ACEOF
15434
15435
15436fi
15437
15438
15439
15440
15441
15442
15443
15444  if test -n "$gl_replace_getopt"; then
15445
15446
15447
15448  GETOPT_H=getopt.h
15449
15450cat >>confdefs.h <<\_ACEOF
15451#define __GETOPT_PREFIX rpl_
15452_ACEOF
15453
15454
15455
15456    GNULIB_UNISTD_H_GETOPT=1
15457
15458
15459
15460
15461
15462
15463
15464
15465  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485fi
15486
15487
15488
15489{ $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
15490$as_echo_n "checking whether getpass is declared... " >&6; }
15491if test "${ac_cv_have_decl_getpass+set}" = set; then
15492  $as_echo_n "(cached) " >&6
15493else
15494  cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h.  */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h.  */
15500$ac_includes_default
15501int
15502main ()
15503{
15504#ifndef getpass
15505  (void) getpass;
15506#endif
15507
15508  ;
15509  return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (ac_try="$ac_compile"
15514case "(($ac_try" in
15515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516  *) ac_try_echo=$ac_try;;
15517esac
15518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519$as_echo "$ac_try_echo") >&5
15520  (eval "$ac_compile") 2>conftest.er1
15521  ac_status=$?
15522  grep -v '^ *+' conftest.er1 >conftest.err
15523  rm -f conftest.er1
15524  cat conftest.err >&5
15525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526  (exit $ac_status); } && {
15527	 test -z "$ac_c_werror_flag" ||
15528	 test ! -s conftest.err
15529       } && test -s conftest.$ac_objext; then
15530  ac_cv_have_decl_getpass=yes
15531else
15532  $as_echo "$as_me: failed program was:" >&5
15533sed 's/^/| /' conftest.$ac_ext >&5
15534
15535	ac_cv_have_decl_getpass=no
15536fi
15537
15538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539fi
15540{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
15541$as_echo "$ac_cv_have_decl_getpass" >&6; }
15542if test "x$ac_cv_have_decl_getpass" = x""yes; then
15543
15544cat >>confdefs.h <<_ACEOF
15545#define HAVE_DECL_GETPASS 1
15546_ACEOF
15547
15548
15549else
15550  cat >>confdefs.h <<_ACEOF
15551#define HAVE_DECL_GETPASS 0
15552_ACEOF
15553
15554
15555fi
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566for ac_func in $ac_func_list
15567do
15568as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15570$as_echo_n "checking for $ac_func... " >&6; }
15571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15572  $as_echo_n "(cached) " >&6
15573else
15574  cat >conftest.$ac_ext <<_ACEOF
15575/* confdefs.h.  */
15576_ACEOF
15577cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h.  */
15580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15582#define $ac_func innocuous_$ac_func
15583
15584/* System header to define __stub macros and hopefully few prototypes,
15585    which can conflict with char $ac_func (); below.
15586    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587    <limits.h> exists even on freestanding compilers.  */
15588
15589#ifdef __STDC__
15590# include <limits.h>
15591#else
15592# include <assert.h>
15593#endif
15594
15595#undef $ac_func
15596
15597/* Override any GCC internal prototype to avoid an error.
15598   Use char because int might match the return type of a GCC
15599   builtin and then its argument prototype would still apply.  */
15600#ifdef __cplusplus
15601extern "C"
15602#endif
15603char $ac_func ();
15604/* The GNU C library defines this for functions which it implements
15605    to always fail with ENOSYS.  Some functions are actually named
15606    something starting with __ and the normal name is an alias.  */
15607#if defined __stub_$ac_func || defined __stub___$ac_func
15608choke me
15609#endif
15610
15611int
15612main ()
15613{
15614return $ac_func ();
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext conftest$ac_exeext
15620if { (ac_try="$ac_link"
15621case "(($ac_try" in
15622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623  *) ac_try_echo=$ac_try;;
15624esac
15625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626$as_echo "$ac_try_echo") >&5
15627  (eval "$ac_link") 2>conftest.er1
15628  ac_status=$?
15629  grep -v '^ *+' conftest.er1 >conftest.err
15630  rm -f conftest.er1
15631  cat conftest.err >&5
15632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633  (exit $ac_status); } && {
15634	 test -z "$ac_c_werror_flag" ||
15635	 test ! -s conftest.err
15636       } && test -s conftest$ac_exeext && {
15637	 test "$cross_compiling" = yes ||
15638	 $as_test_x conftest$ac_exeext
15639       }; then
15640  eval "$as_ac_var=yes"
15641else
15642  $as_echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645	eval "$as_ac_var=no"
15646fi
15647
15648rm -rf conftest.dSYM
15649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650      conftest$ac_exeext conftest.$ac_ext
15651fi
15652ac_res=`eval 'as_val=${'$as_ac_var'}
15653		 $as_echo "$as_val"'`
15654	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15655$as_echo "$ac_res" >&6; }
15656as_val=`eval 'as_val=${'$as_ac_var'}
15657		 $as_echo "$as_val"'`
15658   if test "x$as_val" = x""yes; then
15659  cat >>confdefs.h <<_ACEOF
15660#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15661_ACEOF
15662
15663fi
15664done
15665
15666
15667
15668
15669
15670
15671
15672{ $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
15673$as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
15674if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
15675  $as_echo_n "(cached) " >&6
15676else
15677  cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h.  */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h.  */
15683$ac_includes_default
15684int
15685main ()
15686{
15687#ifndef fflush_unlocked
15688  (void) fflush_unlocked;
15689#endif
15690
15691  ;
15692  return 0;
15693}
15694_ACEOF
15695rm -f conftest.$ac_objext
15696if { (ac_try="$ac_compile"
15697case "(($ac_try" in
15698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699  *) ac_try_echo=$ac_try;;
15700esac
15701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702$as_echo "$ac_try_echo") >&5
15703  (eval "$ac_compile") 2>conftest.er1
15704  ac_status=$?
15705  grep -v '^ *+' conftest.er1 >conftest.err
15706  rm -f conftest.er1
15707  cat conftest.err >&5
15708  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709  (exit $ac_status); } && {
15710	 test -z "$ac_c_werror_flag" ||
15711	 test ! -s conftest.err
15712       } && test -s conftest.$ac_objext; then
15713  ac_cv_have_decl_fflush_unlocked=yes
15714else
15715  $as_echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718	ac_cv_have_decl_fflush_unlocked=no
15719fi
15720
15721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722fi
15723{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
15724$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
15725if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
15726
15727cat >>confdefs.h <<_ACEOF
15728#define HAVE_DECL_FFLUSH_UNLOCKED 1
15729_ACEOF
15730
15731
15732else
15733  cat >>confdefs.h <<_ACEOF
15734#define HAVE_DECL_FFLUSH_UNLOCKED 0
15735_ACEOF
15736
15737
15738fi
15739
15740
15741{ $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
15742$as_echo_n "checking whether flockfile is declared... " >&6; }
15743if test "${ac_cv_have_decl_flockfile+set}" = set; then
15744  $as_echo_n "(cached) " >&6
15745else
15746  cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h.  */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h.  */
15752$ac_includes_default
15753int
15754main ()
15755{
15756#ifndef flockfile
15757  (void) flockfile;
15758#endif
15759
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext
15765if { (ac_try="$ac_compile"
15766case "(($ac_try" in
15767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768  *) ac_try_echo=$ac_try;;
15769esac
15770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15771$as_echo "$ac_try_echo") >&5
15772  (eval "$ac_compile") 2>conftest.er1
15773  ac_status=$?
15774  grep -v '^ *+' conftest.er1 >conftest.err
15775  rm -f conftest.er1
15776  cat conftest.err >&5
15777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778  (exit $ac_status); } && {
15779	 test -z "$ac_c_werror_flag" ||
15780	 test ! -s conftest.err
15781       } && test -s conftest.$ac_objext; then
15782  ac_cv_have_decl_flockfile=yes
15783else
15784  $as_echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
15787	ac_cv_have_decl_flockfile=no
15788fi
15789
15790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791fi
15792{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
15793$as_echo "$ac_cv_have_decl_flockfile" >&6; }
15794if test "x$ac_cv_have_decl_flockfile" = x""yes; then
15795
15796cat >>confdefs.h <<_ACEOF
15797#define HAVE_DECL_FLOCKFILE 1
15798_ACEOF
15799
15800
15801else
15802  cat >>confdefs.h <<_ACEOF
15803#define HAVE_DECL_FLOCKFILE 0
15804_ACEOF
15805
15806
15807fi
15808
15809
15810{ $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
15811$as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
15812if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
15813  $as_echo_n "(cached) " >&6
15814else
15815  cat >conftest.$ac_ext <<_ACEOF
15816/* confdefs.h.  */
15817_ACEOF
15818cat confdefs.h >>conftest.$ac_ext
15819cat >>conftest.$ac_ext <<_ACEOF
15820/* end confdefs.h.  */
15821$ac_includes_default
15822int
15823main ()
15824{
15825#ifndef fputs_unlocked
15826  (void) fputs_unlocked;
15827#endif
15828
15829  ;
15830  return 0;
15831}
15832_ACEOF
15833rm -f conftest.$ac_objext
15834if { (ac_try="$ac_compile"
15835case "(($ac_try" in
15836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837  *) ac_try_echo=$ac_try;;
15838esac
15839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15840$as_echo "$ac_try_echo") >&5
15841  (eval "$ac_compile") 2>conftest.er1
15842  ac_status=$?
15843  grep -v '^ *+' conftest.er1 >conftest.err
15844  rm -f conftest.er1
15845  cat conftest.err >&5
15846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847  (exit $ac_status); } && {
15848	 test -z "$ac_c_werror_flag" ||
15849	 test ! -s conftest.err
15850       } && test -s conftest.$ac_objext; then
15851  ac_cv_have_decl_fputs_unlocked=yes
15852else
15853  $as_echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
15856	ac_cv_have_decl_fputs_unlocked=no
15857fi
15858
15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860fi
15861{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
15862$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
15863if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
15864
15865cat >>confdefs.h <<_ACEOF
15866#define HAVE_DECL_FPUTS_UNLOCKED 1
15867_ACEOF
15868
15869
15870else
15871  cat >>confdefs.h <<_ACEOF
15872#define HAVE_DECL_FPUTS_UNLOCKED 0
15873_ACEOF
15874
15875
15876fi
15877
15878
15879{ $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
15880$as_echo_n "checking whether funlockfile is declared... " >&6; }
15881if test "${ac_cv_have_decl_funlockfile+set}" = set; then
15882  $as_echo_n "(cached) " >&6
15883else
15884  cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h.  */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h.  */
15890$ac_includes_default
15891int
15892main ()
15893{
15894#ifndef funlockfile
15895  (void) funlockfile;
15896#endif
15897
15898  ;
15899  return 0;
15900}
15901_ACEOF
15902rm -f conftest.$ac_objext
15903if { (ac_try="$ac_compile"
15904case "(($ac_try" in
15905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906  *) ac_try_echo=$ac_try;;
15907esac
15908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909$as_echo "$ac_try_echo") >&5
15910  (eval "$ac_compile") 2>conftest.er1
15911  ac_status=$?
15912  grep -v '^ *+' conftest.er1 >conftest.err
15913  rm -f conftest.er1
15914  cat conftest.err >&5
15915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916  (exit $ac_status); } && {
15917	 test -z "$ac_c_werror_flag" ||
15918	 test ! -s conftest.err
15919       } && test -s conftest.$ac_objext; then
15920  ac_cv_have_decl_funlockfile=yes
15921else
15922  $as_echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925	ac_cv_have_decl_funlockfile=no
15926fi
15927
15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929fi
15930{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
15931$as_echo "$ac_cv_have_decl_funlockfile" >&6; }
15932if test "x$ac_cv_have_decl_funlockfile" = x""yes; then
15933
15934cat >>confdefs.h <<_ACEOF
15935#define HAVE_DECL_FUNLOCKFILE 1
15936_ACEOF
15937
15938
15939else
15940  cat >>confdefs.h <<_ACEOF
15941#define HAVE_DECL_FUNLOCKFILE 0
15942_ACEOF
15943
15944
15945fi
15946
15947
15948{ $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
15949$as_echo_n "checking whether putc_unlocked is declared... " >&6; }
15950if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
15951  $as_echo_n "(cached) " >&6
15952else
15953  cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h.  */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h.  */
15959$ac_includes_default
15960int
15961main ()
15962{
15963#ifndef putc_unlocked
15964  (void) putc_unlocked;
15965#endif
15966
15967  ;
15968  return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext
15972if { (ac_try="$ac_compile"
15973case "(($ac_try" in
15974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975  *) ac_try_echo=$ac_try;;
15976esac
15977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978$as_echo "$ac_try_echo") >&5
15979  (eval "$ac_compile") 2>conftest.er1
15980  ac_status=$?
15981  grep -v '^ *+' conftest.er1 >conftest.err
15982  rm -f conftest.er1
15983  cat conftest.err >&5
15984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985  (exit $ac_status); } && {
15986	 test -z "$ac_c_werror_flag" ||
15987	 test ! -s conftest.err
15988       } && test -s conftest.$ac_objext; then
15989  ac_cv_have_decl_putc_unlocked=yes
15990else
15991  $as_echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994	ac_cv_have_decl_putc_unlocked=no
15995fi
15996
15997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15998fi
15999{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
16000$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
16001if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
16002
16003cat >>confdefs.h <<_ACEOF
16004#define HAVE_DECL_PUTC_UNLOCKED 1
16005_ACEOF
16006
16007
16008else
16009  cat >>confdefs.h <<_ACEOF
16010#define HAVE_DECL_PUTC_UNLOCKED 0
16011_ACEOF
16012
16013
16014fi
16015
16016
16017
16018  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16019$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16020if test "${am_cv_langinfo_codeset+set}" = set; then
16021  $as_echo_n "(cached) " >&6
16022else
16023  cat >conftest.$ac_ext <<_ACEOF
16024/* confdefs.h.  */
16025_ACEOF
16026cat confdefs.h >>conftest.$ac_ext
16027cat >>conftest.$ac_ext <<_ACEOF
16028/* end confdefs.h.  */
16029#include <langinfo.h>
16030int
16031main ()
16032{
16033char* cs = nl_langinfo(CODESET); return !cs;
16034  ;
16035  return 0;
16036}
16037_ACEOF
16038rm -f conftest.$ac_objext conftest$ac_exeext
16039if { (ac_try="$ac_link"
16040case "(($ac_try" in
16041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042  *) ac_try_echo=$ac_try;;
16043esac
16044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16045$as_echo "$ac_try_echo") >&5
16046  (eval "$ac_link") 2>conftest.er1
16047  ac_status=$?
16048  grep -v '^ *+' conftest.er1 >conftest.err
16049  rm -f conftest.er1
16050  cat conftest.err >&5
16051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052  (exit $ac_status); } && {
16053	 test -z "$ac_c_werror_flag" ||
16054	 test ! -s conftest.err
16055       } && test -s conftest$ac_exeext && {
16056	 test "$cross_compiling" = yes ||
16057	 $as_test_x conftest$ac_exeext
16058       }; then
16059  am_cv_langinfo_codeset=yes
16060else
16061  $as_echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064	am_cv_langinfo_codeset=no
16065fi
16066
16067rm -rf conftest.dSYM
16068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069      conftest$ac_exeext conftest.$ac_ext
16070
16071fi
16072{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16073$as_echo "$am_cv_langinfo_codeset" >&6; }
16074  if test $am_cv_langinfo_codeset = yes; then
16075
16076cat >>confdefs.h <<\_ACEOF
16077#define HAVE_LANGINFO_CODESET 1
16078_ACEOF
16079
16080  fi
16081
16082{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
16083$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
16084if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
16085  $as_echo_n "(cached) " >&6
16086else
16087  cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h.  */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h.  */
16093$ac_includes_default
16094int
16095main ()
16096{
16097#ifndef getc_unlocked
16098  (void) getc_unlocked;
16099#endif
16100
16101  ;
16102  return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext
16106if { (ac_try="$ac_compile"
16107case "(($ac_try" in
16108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109  *) ac_try_echo=$ac_try;;
16110esac
16111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16112$as_echo "$ac_try_echo") >&5
16113  (eval "$ac_compile") 2>conftest.er1
16114  ac_status=$?
16115  grep -v '^ *+' conftest.er1 >conftest.err
16116  rm -f conftest.er1
16117  cat conftest.err >&5
16118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119  (exit $ac_status); } && {
16120	 test -z "$ac_c_werror_flag" ||
16121	 test ! -s conftest.err
16122       } && test -s conftest.$ac_objext; then
16123  ac_cv_have_decl_getc_unlocked=yes
16124else
16125  $as_echo "$as_me: failed program was:" >&5
16126sed 's/^/| /' conftest.$ac_ext >&5
16127
16128	ac_cv_have_decl_getc_unlocked=no
16129fi
16130
16131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132fi
16133{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
16134$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
16135if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
16136
16137cat >>confdefs.h <<_ACEOF
16138#define HAVE_DECL_GETC_UNLOCKED 1
16139_ACEOF
16140
16141
16142else
16143  cat >>confdefs.h <<_ACEOF
16144#define HAVE_DECL_GETC_UNLOCKED 0
16145_ACEOF
16146
16147
16148fi
16149
16150
16151
16152    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16153$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
16154if test "${ac_cv_gnu_library_2_1+set}" = set; then
16155  $as_echo_n "(cached) " >&6
16156else
16157  cat >conftest.$ac_ext <<_ACEOF
16158/* confdefs.h.  */
16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h.  */
16163
16164#include <features.h>
16165#ifdef __GNU_LIBRARY__
16166 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16167  Lucky GNU user
16168 #endif
16169#endif
16170
16171_ACEOF
16172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
16174  ac_cv_gnu_library_2_1=yes
16175else
16176  ac_cv_gnu_library_2_1=no
16177fi
16178rm -f conftest*
16179
16180
16181
16182fi
16183{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16184$as_echo "$ac_cv_gnu_library_2_1" >&6; }
16185
16186    GLIBC21="$ac_cv_gnu_library_2_1"
16187
16188
16189
16190  GNULIB_BTOWC=0;
16191  GNULIB_WCTOB=0;
16192  GNULIB_MBSINIT=0;
16193  GNULIB_MBRTOWC=0;
16194  GNULIB_MBRLEN=0;
16195  GNULIB_MBSRTOWCS=0;
16196  GNULIB_MBSNRTOWCS=0;
16197  GNULIB_WCRTOMB=0;
16198  GNULIB_WCSRTOMBS=0;
16199  GNULIB_WCSNRTOMBS=0;
16200  GNULIB_WCWIDTH=0;
16201    HAVE_BTOWC=1;
16202  HAVE_MBSINIT=1;
16203  HAVE_MBRTOWC=1;
16204  HAVE_MBRLEN=1;
16205  HAVE_MBSRTOWCS=1;
16206  HAVE_MBSNRTOWCS=1;
16207  HAVE_WCRTOMB=1;
16208  HAVE_WCSRTOMBS=1;
16209  HAVE_WCSNRTOMBS=1;
16210  HAVE_DECL_WCTOB=1;
16211  HAVE_DECL_WCWIDTH=1;
16212  REPLACE_MBSTATE_T=0;
16213  REPLACE_BTOWC=0;
16214  REPLACE_WCTOB=0;
16215  REPLACE_MBSINIT=0;
16216  REPLACE_MBRTOWC=0;
16217  REPLACE_MBRLEN=0;
16218  REPLACE_MBSRTOWCS=0;
16219  REPLACE_MBSNRTOWCS=0;
16220  REPLACE_WCRTOMB=0;
16221  REPLACE_WCSRTOMBS=0;
16222  REPLACE_WCSNRTOMBS=0;
16223  REPLACE_WCWIDTH=0;
16224  WCHAR_H='';
16225
16226
16227
16228   { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
16229$as_echo_n "checking for mbstate_t... " >&6; }
16230if test "${ac_cv_type_mbstate_t+set}" = set; then
16231  $as_echo_n "(cached) " >&6
16232else
16233  cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h.  */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h.  */
16239$ac_includes_default
16240#	    include <wchar.h>
16241int
16242main ()
16243{
16244mbstate_t x; return sizeof x;
16245  ;
16246  return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (ac_try="$ac_compile"
16251case "(($ac_try" in
16252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253  *) ac_try_echo=$ac_try;;
16254esac
16255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256$as_echo "$ac_try_echo") >&5
16257  (eval "$ac_compile") 2>conftest.er1
16258  ac_status=$?
16259  grep -v '^ *+' conftest.er1 >conftest.err
16260  rm -f conftest.er1
16261  cat conftest.err >&5
16262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263  (exit $ac_status); } && {
16264	 test -z "$ac_c_werror_flag" ||
16265	 test ! -s conftest.err
16266       } && test -s conftest.$ac_objext; then
16267  ac_cv_type_mbstate_t=yes
16268else
16269  $as_echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272	ac_cv_type_mbstate_t=no
16273fi
16274
16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276fi
16277{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
16278$as_echo "$ac_cv_type_mbstate_t" >&6; }
16279   if test $ac_cv_type_mbstate_t = yes; then
16280
16281cat >>confdefs.h <<\_ACEOF
16282#define HAVE_MBSTATE_T 1
16283_ACEOF
16284
16285   else
16286
16287cat >>confdefs.h <<\_ACEOF
16288#define mbstate_t int
16289_ACEOF
16290
16291   fi
16292
16293
16294
16295
16296
16297
16298
16299
16300  { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
16301$as_echo_n "checking for a traditional japanese locale... " >&6; }
16302if test "${gt_cv_locale_ja+set}" = set; then
16303  $as_echo_n "(cached) " >&6
16304else
16305
16306    cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h.  */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h.  */
16312
16313#include <locale.h>
16314#include <time.h>
16315#if HAVE_LANGINFO_CODESET
16316# include <langinfo.h>
16317#endif
16318#include <stdlib.h>
16319#include <string.h>
16320struct tm t;
16321char buf[16];
16322int main ()
16323{
16324  const char *p;
16325  /* Check whether the given locale name is recognized by the system.  */
16326  if (setlocale (LC_ALL, "") == NULL) return 1;
16327  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16328     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16329     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16330     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16331     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16332     some unit tests fail.  */
16333#if HAVE_LANGINFO_CODESET
16334  {
16335    const char *cs = nl_langinfo (CODESET);
16336    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16337      return 1;
16338  }
16339#endif
16340#ifdef __CYGWIN__
16341  /* On Cygwin, avoid locale names without encoding suffix, because the
16342     locale_charset() function relies on the encoding suffix.  Note that
16343     LC_ALL is set on the command line.  */
16344  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16345#endif
16346  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
16347     on Cygwin 1.5.x.  */
16348  if (MB_CUR_MAX == 1)
16349    return 1;
16350  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16351     This excludes the UTF-8 encoding.  */
16352  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16353  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16354  for (p = buf; *p != '\0'; p++)
16355    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16356      return 1;
16357  return 0;
16358}
16359
16360_ACEOF
16361    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362  (eval $ac_link) 2>&5
16363  ac_status=$?
16364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365  (exit $ac_status); } && test -s conftest$ac_exeext; then
16366      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16367      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16368      # configure script would override the LC_ALL setting. Likewise for
16369      # LC_CTYPE, which is also set at the beginning of the configure script.
16370      # Test for the AIX locale name.
16371      if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16372        gt_cv_locale_ja=ja_JP
16373      else
16374        # Test for the locale name with explicit encoding suffix.
16375        if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16376          gt_cv_locale_ja=ja_JP.EUC-JP
16377        else
16378          # Test for the HP-UX, OSF/1, NetBSD locale name.
16379          if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16380            gt_cv_locale_ja=ja_JP.eucJP
16381          else
16382            # Test for the IRIX, FreeBSD locale name.
16383            if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16384              gt_cv_locale_ja=ja_JP.EUC
16385            else
16386              # Test for the Solaris 7 locale name.
16387              if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16388                gt_cv_locale_ja=ja
16389              else
16390                # Special test for NetBSD 1.6.
16391                if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16392                  gt_cv_locale_ja=ja_JP.eucJP
16393                else
16394                  # None found.
16395                  gt_cv_locale_ja=none
16396                fi
16397              fi
16398            fi
16399          fi
16400        fi
16401      fi
16402    fi
16403    rm -fr conftest*
16404
16405fi
16406{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
16407$as_echo "$gt_cv_locale_ja" >&6; }
16408  LOCALE_JA=$gt_cv_locale_ja
16409
16410
16411
16412
16413
16414  { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
16415$as_echo_n "checking for a transitional chinese locale... " >&6; }
16416if test "${gt_cv_locale_zh_CN+set}" = set; then
16417  $as_echo_n "(cached) " >&6
16418else
16419
16420    cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h.  */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h.  */
16426
16427#include <locale.h>
16428#include <stdlib.h>
16429#include <time.h>
16430#if HAVE_LANGINFO_CODESET
16431# include <langinfo.h>
16432#endif
16433#include <stdlib.h>
16434#include <string.h>
16435struct tm t;
16436char buf[16];
16437int main ()
16438{
16439  const char *p;
16440  /* Check whether the given locale name is recognized by the system.  */
16441  if (setlocale (LC_ALL, "") == NULL) return 1;
16442  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16443     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16444     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16445     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16446     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16447     some unit tests fail.  */
16448#if HAVE_LANGINFO_CODESET
16449  {
16450    const char *cs = nl_langinfo (CODESET);
16451    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16452      return 1;
16453  }
16454#endif
16455#ifdef __CYGWIN__
16456  /* On Cygwin, avoid locale names without encoding suffix, because the
16457     locale_charset() function relies on the encoding suffix.  Note that
16458     LC_ALL is set on the command line.  */
16459  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16460#endif
16461  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16462     This excludes the UTF-8 encoding.  */
16463  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16464  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16465  for (p = buf; *p != '\0'; p++)
16466    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16467      return 1;
16468  /* Check whether a typical GB18030 multibyte sequence is recognized as a
16469     single wide character.  This excludes the GB2312 and GBK encodings.  */
16470  if (mblen ("\203\062\332\066", 5) != 4)
16471    return 1;
16472  return 0;
16473}
16474
16475_ACEOF
16476    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477  (eval $ac_link) 2>&5
16478  ac_status=$?
16479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480  (exit $ac_status); } && test -s conftest$ac_exeext; then
16481      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16482      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16483      # configure script would override the LC_ALL setting. Likewise for
16484      # LC_CTYPE, which is also set at the beginning of the configure script.
16485      # Test for the locale name without encoding suffix.
16486      if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16487        gt_cv_locale_zh_CN=zh_CN
16488      else
16489        # Test for the locale name with explicit encoding suffix.
16490        if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16491          gt_cv_locale_zh_CN=zh_CN.GB18030
16492        else
16493          # None found.
16494          gt_cv_locale_zh_CN=none
16495        fi
16496      fi
16497    else
16498      # If there was a link error, due to mblen(), the system is so old that
16499      # it certainly doesn't have a chinese locale.
16500      gt_cv_locale_zh_CN=none
16501    fi
16502    rm -fr conftest*
16503
16504fi
16505{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
16506$as_echo "$gt_cv_locale_zh_CN" >&6; }
16507  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16508
16509
16510
16511
16512  { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
16513$as_echo_n "checking for a french Unicode locale... " >&6; }
16514if test "${gt_cv_locale_fr_utf8+set}" = set; then
16515  $as_echo_n "(cached) " >&6
16516else
16517
16518    cat >conftest.$ac_ext <<_ACEOF
16519/* confdefs.h.  */
16520_ACEOF
16521cat confdefs.h >>conftest.$ac_ext
16522cat >>conftest.$ac_ext <<_ACEOF
16523/* end confdefs.h.  */
16524
16525#include <locale.h>
16526#include <time.h>
16527#if HAVE_LANGINFO_CODESET
16528# include <langinfo.h>
16529#endif
16530#include <stdlib.h>
16531#include <string.h>
16532struct tm t;
16533char buf[16];
16534int main () {
16535  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
16536     imitates locale dependent behaviour by looking at the environment
16537     variables, and all locales use the UTF-8 encoding.  */
16538#if !(defined __BEOS__ || defined __HAIKU__)
16539  /* Check whether the given locale name is recognized by the system.  */
16540  if (setlocale (LC_ALL, "") == NULL) return 1;
16541  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16542     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16543     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16544     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16545     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16546     some unit tests fail.  */
16547# if HAVE_LANGINFO_CODESET
16548  {
16549    const char *cs = nl_langinfo (CODESET);
16550    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16551      return 1;
16552  }
16553# endif
16554# ifdef __CYGWIN__
16555  /* On Cygwin, avoid locale names without encoding suffix, because the
16556     locale_charset() function relies on the encoding suffix.  Note that
16557     LC_ALL is set on the command line.  */
16558  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16559# endif
16560  /* Check whether in the abbreviation of the second month, the second
16561     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16562     two bytes long, with UTF-8 encoding.  */
16563  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16564  if (strftime (buf, sizeof (buf), "%b", &t) < 4
16565      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16566    return 1;
16567#endif
16568  /* Check whether the decimal separator is a comma.
16569     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16570     are nl_langinfo(RADIXCHAR) are both ".".  */
16571  if (localeconv () ->decimal_point[0] != ',') return 1;
16572  return 0;
16573}
16574
16575_ACEOF
16576    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577  (eval $ac_link) 2>&5
16578  ac_status=$?
16579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580  (exit $ac_status); } && test -s conftest$ac_exeext; then
16581      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16582      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16583      # configure script would override the LC_ALL setting. Likewise for
16584      # LC_CTYPE, which is also set at the beginning of the configure script.
16585      # Test for the usual locale name.
16586      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16587        gt_cv_locale_fr_utf8=fr_FR
16588      else
16589        # Test for the locale name with explicit encoding suffix.
16590        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16591          gt_cv_locale_fr_utf8=fr_FR.UTF-8
16592        else
16593          # Test for the Solaris 7 locale name.
16594          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16595            gt_cv_locale_fr_utf8=fr.UTF-8
16596          else
16597            # None found.
16598            gt_cv_locale_fr_utf8=none
16599          fi
16600        fi
16601      fi
16602    fi
16603    rm -fr conftest*
16604
16605fi
16606{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
16607$as_echo "$gt_cv_locale_fr_utf8" >&6; }
16608  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16609
16610
16611
16612
16613
16614
16615
16616  GNULIB_MEMCHR=0;
16617  GNULIB_MEMMEM=0;
16618  GNULIB_MEMPCPY=0;
16619  GNULIB_MEMRCHR=0;
16620  GNULIB_RAWMEMCHR=0;
16621  GNULIB_STPCPY=0;
16622  GNULIB_STPNCPY=0;
16623  GNULIB_STRCHRNUL=0;
16624  GNULIB_STRDUP=0;
16625  GNULIB_STRNDUP=0;
16626  GNULIB_STRNLEN=0;
16627  GNULIB_STRPBRK=0;
16628  GNULIB_STRSEP=0;
16629  GNULIB_STRSTR=0;
16630  GNULIB_STRCASESTR=0;
16631  GNULIB_STRTOK_R=0;
16632  GNULIB_MBSLEN=0;
16633  GNULIB_MBSNLEN=0;
16634  GNULIB_MBSCHR=0;
16635  GNULIB_MBSRCHR=0;
16636  GNULIB_MBSSTR=0;
16637  GNULIB_MBSCASECMP=0;
16638  GNULIB_MBSNCASECMP=0;
16639  GNULIB_MBSPCASECMP=0;
16640  GNULIB_MBSCASESTR=0;
16641  GNULIB_MBSCSPN=0;
16642  GNULIB_MBSPBRK=0;
16643  GNULIB_MBSSPN=0;
16644  GNULIB_MBSSEP=0;
16645  GNULIB_MBSTOK_R=0;
16646  GNULIB_STRERROR=0;
16647  GNULIB_STRSIGNAL=0;
16648  GNULIB_STRVERSCMP=0;
16649    HAVE_DECL_MEMMEM=1;
16650  HAVE_MEMPCPY=1;
16651  HAVE_DECL_MEMRCHR=1;
16652  HAVE_RAWMEMCHR=1;
16653  HAVE_STPCPY=1;
16654  HAVE_STPNCPY=1;
16655  HAVE_STRCHRNUL=1;
16656  HAVE_DECL_STRDUP=1;
16657  HAVE_STRNDUP=1;
16658  HAVE_DECL_STRNDUP=1;
16659  HAVE_DECL_STRNLEN=1;
16660  HAVE_STRPBRK=1;
16661  HAVE_STRSEP=1;
16662  HAVE_STRCASESTR=1;
16663  HAVE_DECL_STRTOK_R=1;
16664  HAVE_DECL_STRERROR=1;
16665  HAVE_DECL_STRSIGNAL=1;
16666  HAVE_STRVERSCMP=1;
16667  REPLACE_MEMCHR=0;
16668  REPLACE_MEMMEM=0;
16669  REPLACE_STRDUP=0;
16670  REPLACE_STRSTR=0;
16671  REPLACE_STRCASESTR=0;
16672  REPLACE_STRERROR=0;
16673  REPLACE_STRSIGNAL=0;
16674
16675
16676
16677
16678
16679
16680
16681
16682  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16683  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16684  # irrelevant for anonymous mappings.
16685  { $as_echo "$as_me:$LINENO: checking for mmap" >&5
16686$as_echo_n "checking for mmap... " >&6; }
16687if test "${ac_cv_func_mmap+set}" = set; then
16688  $as_echo_n "(cached) " >&6
16689else
16690  cat >conftest.$ac_ext <<_ACEOF
16691/* confdefs.h.  */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h.  */
16696/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
16697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16698#define mmap innocuous_mmap
16699
16700/* System header to define __stub macros and hopefully few prototypes,
16701    which can conflict with char mmap (); below.
16702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703    <limits.h> exists even on freestanding compilers.  */
16704
16705#ifdef __STDC__
16706# include <limits.h>
16707#else
16708# include <assert.h>
16709#endif
16710
16711#undef mmap
16712
16713/* Override any GCC internal prototype to avoid an error.
16714   Use char because int might match the return type of a GCC
16715   builtin and then its argument prototype would still apply.  */
16716#ifdef __cplusplus
16717extern "C"
16718#endif
16719char mmap ();
16720/* The GNU C library defines this for functions which it implements
16721    to always fail with ENOSYS.  Some functions are actually named
16722    something starting with __ and the normal name is an alias.  */
16723#if defined __stub_mmap || defined __stub___mmap
16724choke me
16725#endif
16726
16727int
16728main ()
16729{
16730return mmap ();
16731  ;
16732  return 0;
16733}
16734_ACEOF
16735rm -f conftest.$ac_objext conftest$ac_exeext
16736if { (ac_try="$ac_link"
16737case "(($ac_try" in
16738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739  *) ac_try_echo=$ac_try;;
16740esac
16741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16742$as_echo "$ac_try_echo") >&5
16743  (eval "$ac_link") 2>conftest.er1
16744  ac_status=$?
16745  grep -v '^ *+' conftest.er1 >conftest.err
16746  rm -f conftest.er1
16747  cat conftest.err >&5
16748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749  (exit $ac_status); } && {
16750	 test -z "$ac_c_werror_flag" ||
16751	 test ! -s conftest.err
16752       } && test -s conftest$ac_exeext && {
16753	 test "$cross_compiling" = yes ||
16754	 $as_test_x conftest$ac_exeext
16755       }; then
16756  ac_cv_func_mmap=yes
16757else
16758  $as_echo "$as_me: failed program was:" >&5
16759sed 's/^/| /' conftest.$ac_ext >&5
16760
16761	ac_cv_func_mmap=no
16762fi
16763
16764rm -rf conftest.dSYM
16765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766      conftest$ac_exeext conftest.$ac_ext
16767fi
16768{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
16769$as_echo "$ac_cv_func_mmap" >&6; }
16770if test "x$ac_cv_func_mmap" = x""yes; then
16771  gl_have_mmap=yes
16772else
16773  gl_have_mmap=no
16774fi
16775
16776
16777  # Try to allow MAP_ANONYMOUS.
16778  gl_have_mmap_anonymous=no
16779  if test $gl_have_mmap = yes; then
16780    { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
16781$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16782    cat >conftest.$ac_ext <<_ACEOF
16783/* confdefs.h.  */
16784_ACEOF
16785cat confdefs.h >>conftest.$ac_ext
16786cat >>conftest.$ac_ext <<_ACEOF
16787/* end confdefs.h.  */
16788
16789#include <sys/mman.h>
16790#ifdef MAP_ANONYMOUS
16791    I cant identify this map.
16792#endif
16793
16794_ACEOF
16795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16796  $EGREP "I cant identify this map." >/dev/null 2>&1; then
16797  gl_have_mmap_anonymous=yes
16798fi
16799rm -f conftest*
16800
16801    if test $gl_have_mmap_anonymous != yes; then
16802      cat >conftest.$ac_ext <<_ACEOF
16803/* confdefs.h.  */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h.  */
16808
16809#include <sys/mman.h>
16810#ifdef MAP_ANON
16811    I cant identify this map.
16812#endif
16813
16814_ACEOF
16815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16816  $EGREP "I cant identify this map." >/dev/null 2>&1; then
16817
16818cat >>confdefs.h <<\_ACEOF
16819#define MAP_ANONYMOUS MAP_ANON
16820_ACEOF
16821
16822         gl_have_mmap_anonymous=yes
16823fi
16824rm -f conftest*
16825
16826    fi
16827    { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
16828$as_echo "$gl_have_mmap_anonymous" >&6; }
16829    if test $gl_have_mmap_anonymous = yes; then
16830
16831cat >>confdefs.h <<\_ACEOF
16832#define HAVE_MAP_ANONYMOUS 1
16833_ACEOF
16834
16835    fi
16836  fi
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861for ac_func in memchr
16862do
16863as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16865$as_echo_n "checking for $ac_func... " >&6; }
16866if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867  $as_echo_n "(cached) " >&6
16868else
16869  cat >conftest.$ac_ext <<_ACEOF
16870/* confdefs.h.  */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h.  */
16875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16877#define $ac_func innocuous_$ac_func
16878
16879/* System header to define __stub macros and hopefully few prototypes,
16880    which can conflict with char $ac_func (); below.
16881    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882    <limits.h> exists even on freestanding compilers.  */
16883
16884#ifdef __STDC__
16885# include <limits.h>
16886#else
16887# include <assert.h>
16888#endif
16889
16890#undef $ac_func
16891
16892/* Override any GCC internal prototype to avoid an error.
16893   Use char because int might match the return type of a GCC
16894   builtin and then its argument prototype would still apply.  */
16895#ifdef __cplusplus
16896extern "C"
16897#endif
16898char $ac_func ();
16899/* The GNU C library defines this for functions which it implements
16900    to always fail with ENOSYS.  Some functions are actually named
16901    something starting with __ and the normal name is an alias.  */
16902#if defined __stub_$ac_func || defined __stub___$ac_func
16903choke me
16904#endif
16905
16906int
16907main ()
16908{
16909return $ac_func ();
16910  ;
16911  return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext conftest$ac_exeext
16915if { (ac_try="$ac_link"
16916case "(($ac_try" in
16917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918  *) ac_try_echo=$ac_try;;
16919esac
16920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921$as_echo "$ac_try_echo") >&5
16922  (eval "$ac_link") 2>conftest.er1
16923  ac_status=$?
16924  grep -v '^ *+' conftest.er1 >conftest.err
16925  rm -f conftest.er1
16926  cat conftest.err >&5
16927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928  (exit $ac_status); } && {
16929	 test -z "$ac_c_werror_flag" ||
16930	 test ! -s conftest.err
16931       } && test -s conftest$ac_exeext && {
16932	 test "$cross_compiling" = yes ||
16933	 $as_test_x conftest$ac_exeext
16934       }; then
16935  eval "$as_ac_var=yes"
16936else
16937  $as_echo "$as_me: failed program was:" >&5
16938sed 's/^/| /' conftest.$ac_ext >&5
16939
16940	eval "$as_ac_var=no"
16941fi
16942
16943rm -rf conftest.dSYM
16944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945      conftest$ac_exeext conftest.$ac_ext
16946fi
16947ac_res=`eval 'as_val=${'$as_ac_var'}
16948		 $as_echo "$as_val"'`
16949	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16950$as_echo "$ac_res" >&6; }
16951as_val=`eval 'as_val=${'$as_ac_var'}
16952		 $as_echo "$as_val"'`
16953   if test "x$as_val" = x""yes; then
16954  cat >>confdefs.h <<_ACEOF
16955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16956_ACEOF
16957
16958else
16959
16960    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16961
16962fi
16963done
16964
16965
16966  if test $ac_cv_func_memchr = no; then
16967
16968
16969for ac_header in bp-sym.h
16970do
16971as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16973  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16974$as_echo_n "checking for $ac_header... " >&6; }
16975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976  $as_echo_n "(cached) " >&6
16977fi
16978ac_res=`eval 'as_val=${'$as_ac_Header'}
16979		 $as_echo "$as_val"'`
16980	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16981$as_echo "$ac_res" >&6; }
16982else
16983  # Is the header compilable?
16984{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16985$as_echo_n "checking $ac_header usability... " >&6; }
16986cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h.  */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h.  */
16992$ac_includes_default
16993#include <$ac_header>
16994_ACEOF
16995rm -f conftest.$ac_objext
16996if { (ac_try="$ac_compile"
16997case "(($ac_try" in
16998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999  *) ac_try_echo=$ac_try;;
17000esac
17001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17002$as_echo "$ac_try_echo") >&5
17003  (eval "$ac_compile") 2>conftest.er1
17004  ac_status=$?
17005  grep -v '^ *+' conftest.er1 >conftest.err
17006  rm -f conftest.er1
17007  cat conftest.err >&5
17008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009  (exit $ac_status); } && {
17010	 test -z "$ac_c_werror_flag" ||
17011	 test ! -s conftest.err
17012       } && test -s conftest.$ac_objext; then
17013  ac_header_compiler=yes
17014else
17015  $as_echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018	ac_header_compiler=no
17019fi
17020
17021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17023$as_echo "$ac_header_compiler" >&6; }
17024
17025# Is the header present?
17026{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17027$as_echo_n "checking $ac_header presence... " >&6; }
17028cat >conftest.$ac_ext <<_ACEOF
17029/* confdefs.h.  */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h.  */
17034#include <$ac_header>
17035_ACEOF
17036if { (ac_try="$ac_cpp conftest.$ac_ext"
17037case "(($ac_try" in
17038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039  *) ac_try_echo=$ac_try;;
17040esac
17041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042$as_echo "$ac_try_echo") >&5
17043  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17044  ac_status=$?
17045  grep -v '^ *+' conftest.er1 >conftest.err
17046  rm -f conftest.er1
17047  cat conftest.err >&5
17048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049  (exit $ac_status); } >/dev/null && {
17050	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17051	 test ! -s conftest.err
17052       }; then
17053  ac_header_preproc=yes
17054else
17055  $as_echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058  ac_header_preproc=no
17059fi
17060
17061rm -f conftest.err conftest.$ac_ext
17062{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17063$as_echo "$ac_header_preproc" >&6; }
17064
17065# So?  What about this header?
17066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17067  yes:no: )
17068    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17069$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17070    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17071$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17072    ac_header_preproc=yes
17073    ;;
17074  no:yes:* )
17075    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17076$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17077    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17078$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17080$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17082$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17084$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17085    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17086$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17087    ( cat <<\_ASBOX
17088## ------------------------------- ##
17089## Report this to bug-wget@gnu.org ##
17090## ------------------------------- ##
17091_ASBOX
17092     ) | sed "s/^/$as_me: WARNING:     /" >&2
17093    ;;
17094esac
17095{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17096$as_echo_n "checking for $ac_header... " >&6; }
17097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17098  $as_echo_n "(cached) " >&6
17099else
17100  eval "$as_ac_Header=\$ac_header_preproc"
17101fi
17102ac_res=`eval 'as_val=${'$as_ac_Header'}
17103		 $as_echo "$as_val"'`
17104	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17105$as_echo "$ac_res" >&6; }
17106
17107fi
17108as_val=`eval 'as_val=${'$as_ac_Header'}
17109		 $as_echo "$as_val"'`
17110   if test "x$as_val" = x""yes; then
17111  cat >>confdefs.h <<_ACEOF
17112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17113_ACEOF
17114
17115fi
17116
17117done
17118
17119
17120    REPLACE_MEMCHR=1
17121  fi
17122
17123  if test $ac_cv_func_memchr = yes; then
17124    # Detect platform-specific bugs in some versions of glibc:
17125    # memchr should not dereference anything with length 0
17126    #   http://bugzilla.redhat.com/499689
17127    # memchr should not dereference overestimated length after a match
17128    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17129    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17130    # Assume that memchr works on platforms that lack mprotect.
17131    { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
17132$as_echo_n "checking whether memchr works... " >&6; }
17133if test "${gl_cv_func_memchr_works+set}" = set; then
17134  $as_echo_n "(cached) " >&6
17135else
17136  if test "$cross_compiling" = yes; then
17137         gl_cv_func_memchr_works="guessing no"
17138else
17139  cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h.  */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h.  */
17145
17146#include <string.h>
17147#if HAVE_SYS_MMAN_H
17148# include <fcntl.h>
17149# include <unistd.h>
17150# include <sys/types.h>
17151# include <sys/mman.h>
17152# ifndef MAP_FILE
17153#  define MAP_FILE 0
17154# endif
17155#endif
17156
17157int
17158main ()
17159{
17160
17161  char *fence = NULL;
17162#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17163# if HAVE_MAP_ANONYMOUS
17164  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17165  const int fd = -1;
17166# else /* !HAVE_MAP_ANONYMOUS */
17167  const int flags = MAP_FILE | MAP_PRIVATE;
17168  int fd = open ("/dev/zero", O_RDONLY, 0666);
17169  if (fd >= 0)
17170# endif
17171    {
17172      int pagesize = getpagesize ();
17173      char *two_pages =
17174	(char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17175		       flags, fd, 0);
17176      if (two_pages != (char *)(-1)
17177	  && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17178	fence = two_pages + pagesize;
17179    }
17180#endif
17181  if (fence)
17182    {
17183      if (memchr (fence, 0, 0))
17184        return 1;
17185      strcpy (fence - 9, "12345678");
17186      if (memchr (fence - 9, 0, 79) != fence - 1)
17187        return 2;
17188    }
17189  return 0;
17190
17191  ;
17192  return 0;
17193}
17194_ACEOF
17195rm -f conftest$ac_exeext
17196if { (ac_try="$ac_link"
17197case "(($ac_try" in
17198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199  *) ac_try_echo=$ac_try;;
17200esac
17201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202$as_echo "$ac_try_echo") >&5
17203  (eval "$ac_link") 2>&5
17204  ac_status=$?
17205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207  { (case "(($ac_try" in
17208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209  *) ac_try_echo=$ac_try;;
17210esac
17211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212$as_echo "$ac_try_echo") >&5
17213  (eval "$ac_try") 2>&5
17214  ac_status=$?
17215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216  (exit $ac_status); }; }; then
17217  gl_cv_func_memchr_works=yes
17218else
17219  $as_echo "$as_me: program exited with status $ac_status" >&5
17220$as_echo "$as_me: failed program was:" >&5
17221sed 's/^/| /' conftest.$ac_ext >&5
17222
17223( exit $ac_status )
17224gl_cv_func_memchr_works=no
17225fi
17226rm -rf conftest.dSYM
17227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17228fi
17229
17230
17231fi
17232{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
17233$as_echo "$gl_cv_func_memchr_works" >&6; }
17234    if test "$gl_cv_func_memchr_works" != yes; then
17235
17236
17237for ac_header in bp-sym.h
17238do
17239as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17241  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17242$as_echo_n "checking for $ac_header... " >&6; }
17243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17244  $as_echo_n "(cached) " >&6
17245fi
17246ac_res=`eval 'as_val=${'$as_ac_Header'}
17247		 $as_echo "$as_val"'`
17248	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17249$as_echo "$ac_res" >&6; }
17250else
17251  # Is the header compilable?
17252{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17253$as_echo_n "checking $ac_header usability... " >&6; }
17254cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h.  */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h.  */
17260$ac_includes_default
17261#include <$ac_header>
17262_ACEOF
17263rm -f conftest.$ac_objext
17264if { (ac_try="$ac_compile"
17265case "(($ac_try" in
17266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267  *) ac_try_echo=$ac_try;;
17268esac
17269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17270$as_echo "$ac_try_echo") >&5
17271  (eval "$ac_compile") 2>conftest.er1
17272  ac_status=$?
17273  grep -v '^ *+' conftest.er1 >conftest.err
17274  rm -f conftest.er1
17275  cat conftest.err >&5
17276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277  (exit $ac_status); } && {
17278	 test -z "$ac_c_werror_flag" ||
17279	 test ! -s conftest.err
17280       } && test -s conftest.$ac_objext; then
17281  ac_header_compiler=yes
17282else
17283  $as_echo "$as_me: failed program was:" >&5
17284sed 's/^/| /' conftest.$ac_ext >&5
17285
17286	ac_header_compiler=no
17287fi
17288
17289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17291$as_echo "$ac_header_compiler" >&6; }
17292
17293# Is the header present?
17294{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17295$as_echo_n "checking $ac_header presence... " >&6; }
17296cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h.  */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h.  */
17302#include <$ac_header>
17303_ACEOF
17304if { (ac_try="$ac_cpp conftest.$ac_ext"
17305case "(($ac_try" in
17306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307  *) ac_try_echo=$ac_try;;
17308esac
17309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17310$as_echo "$ac_try_echo") >&5
17311  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17312  ac_status=$?
17313  grep -v '^ *+' conftest.er1 >conftest.err
17314  rm -f conftest.er1
17315  cat conftest.err >&5
17316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317  (exit $ac_status); } >/dev/null && {
17318	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17319	 test ! -s conftest.err
17320       }; then
17321  ac_header_preproc=yes
17322else
17323  $as_echo "$as_me: failed program was:" >&5
17324sed 's/^/| /' conftest.$ac_ext >&5
17325
17326  ac_header_preproc=no
17327fi
17328
17329rm -f conftest.err conftest.$ac_ext
17330{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331$as_echo "$ac_header_preproc" >&6; }
17332
17333# So?  What about this header?
17334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17335  yes:no: )
17336    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340    ac_header_preproc=yes
17341    ;;
17342  no:yes:* )
17343    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17346$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17347    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17350$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17351    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17355    ( cat <<\_ASBOX
17356## ------------------------------- ##
17357## Report this to bug-wget@gnu.org ##
17358## ------------------------------- ##
17359_ASBOX
17360     ) | sed "s/^/$as_me: WARNING:     /" >&2
17361    ;;
17362esac
17363{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17364$as_echo_n "checking for $ac_header... " >&6; }
17365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366  $as_echo_n "(cached) " >&6
17367else
17368  eval "$as_ac_Header=\$ac_header_preproc"
17369fi
17370ac_res=`eval 'as_val=${'$as_ac_Header'}
17371		 $as_echo "$as_val"'`
17372	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17373$as_echo "$ac_res" >&6; }
17374
17375fi
17376as_val=`eval 'as_val=${'$as_ac_Header'}
17377		 $as_echo "$as_val"'`
17378   if test "x$as_val" = x""yes; then
17379  cat >>confdefs.h <<_ACEOF
17380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17381_ACEOF
17382
17383fi
17384
17385done
17386
17387
17388      REPLACE_MEMCHR=1
17389
17390
17391
17392
17393
17394
17395
17396
17397  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
17398
17399    fi
17400  fi
17401
17402
17403    gl_cv_c_multiarch=no
17404  cat >conftest.$ac_ext <<_ACEOF
17405/* confdefs.h.  */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h.  */
17410#ifndef __APPLE_CC__
17411         not a universal capable compiler
17412        #endif
17413        typedef int dummy;
17414
17415_ACEOF
17416rm -f conftest.$ac_objext
17417if { (ac_try="$ac_compile"
17418case "(($ac_try" in
17419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420  *) ac_try_echo=$ac_try;;
17421esac
17422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17423$as_echo "$ac_try_echo") >&5
17424  (eval "$ac_compile") 2>conftest.er1
17425  ac_status=$?
17426  grep -v '^ *+' conftest.er1 >conftest.err
17427  rm -f conftest.er1
17428  cat conftest.err >&5
17429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430  (exit $ac_status); } && {
17431	 test -z "$ac_c_werror_flag" ||
17432	 test ! -s conftest.err
17433       } && test -s conftest.$ac_objext; then
17434
17435               arch=
17436     prev=
17437     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17438       if test -n "$prev"; then
17439         case $word in
17440           i?86 | x86_64 | ppc | ppc64)
17441             if test -z "$arch" || test "$arch" = "$word"; then
17442               arch="$word"
17443             else
17444               gl_cv_c_multiarch=yes
17445             fi
17446             ;;
17447         esac
17448         prev=
17449       else
17450         if test "x$word" = "x-arch"; then
17451           prev=arch
17452         fi
17453       fi
17454     done
17455
17456else
17457  $as_echo "$as_me: failed program was:" >&5
17458sed 's/^/| /' conftest.$ac_ext >&5
17459
17460
17461fi
17462
17463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464  if test $gl_cv_c_multiarch = yes; then
17465
17466cat >>confdefs.h <<\_ACEOF
17467#define AA_APPLE_UNIVERSAL_BUILD 1
17468_ACEOF
17469
17470    APPLE_UNIVERSAL_BUILD=1
17471  else
17472    APPLE_UNIVERSAL_BUILD=0
17473  fi
17474
17475
17476
17477  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17478$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17479if test "${gl_cv_func_malloc_posix+set}" = set; then
17480  $as_echo_n "(cached) " >&6
17481else
17482
17483                        cat >conftest.$ac_ext <<_ACEOF
17484/* confdefs.h.  */
17485_ACEOF
17486cat confdefs.h >>conftest.$ac_ext
17487cat >>conftest.$ac_ext <<_ACEOF
17488/* end confdefs.h.  */
17489
17490int
17491main ()
17492{
17493#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17494         choke me
17495         #endif
17496
17497  ;
17498  return 0;
17499}
17500_ACEOF
17501rm -f conftest.$ac_objext
17502if { (ac_try="$ac_compile"
17503case "(($ac_try" in
17504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505  *) ac_try_echo=$ac_try;;
17506esac
17507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17508$as_echo "$ac_try_echo") >&5
17509  (eval "$ac_compile") 2>conftest.er1
17510  ac_status=$?
17511  grep -v '^ *+' conftest.er1 >conftest.err
17512  rm -f conftest.er1
17513  cat conftest.err >&5
17514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515  (exit $ac_status); } && {
17516	 test -z "$ac_c_werror_flag" ||
17517	 test ! -s conftest.err
17518       } && test -s conftest.$ac_objext; then
17519  gl_cv_func_malloc_posix=yes
17520else
17521  $as_echo "$as_me: failed program was:" >&5
17522sed 's/^/| /' conftest.$ac_ext >&5
17523
17524	gl_cv_func_malloc_posix=no
17525fi
17526
17527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528
17529fi
17530{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
17531$as_echo "$gl_cv_func_malloc_posix" >&6; }
17532
17533
17534  GNULIB_MALLOC_POSIX=0;
17535  GNULIB_REALLOC_POSIX=0;
17536  GNULIB_CALLOC_POSIX=0;
17537  GNULIB_ATOLL=0;
17538  GNULIB_GETLOADAVG=0;
17539  GNULIB_GETSUBOPT=0;
17540  GNULIB_MKDTEMP=0;
17541  GNULIB_MKOSTEMP=0;
17542  GNULIB_MKSTEMP=0;
17543  GNULIB_PUTENV=0;
17544  GNULIB_RANDOM_R=0;
17545  GNULIB_RPMATCH=0;
17546  GNULIB_SETENV=0;
17547  GNULIB_STRTOD=0;
17548  GNULIB_STRTOLL=0;
17549  GNULIB_STRTOULL=0;
17550  GNULIB_UNSETENV=0;
17551    HAVE_ATOLL=1;
17552  HAVE_CALLOC_POSIX=1;
17553  HAVE_GETSUBOPT=1;
17554  HAVE_MALLOC_POSIX=1;
17555  HAVE_MKDTEMP=1;
17556  HAVE_MKOSTEMP=1;
17557  HAVE_REALLOC_POSIX=1;
17558  HAVE_RANDOM_R=1;
17559  HAVE_RPMATCH=1;
17560  HAVE_SETENV=1;
17561  HAVE_STRTOD=1;
17562  HAVE_STRTOLL=1;
17563  HAVE_STRTOULL=1;
17564  HAVE_STRUCT_RANDOM_DATA=1;
17565  HAVE_SYS_LOADAVG_H=0;
17566  HAVE_UNSETENV=1;
17567  HAVE_DECL_GETLOADAVG=1;
17568  REPLACE_MKSTEMP=0;
17569  REPLACE_PUTENV=0;
17570  REPLACE_STRTOD=0;
17571  VOID_UNSETENV=0;
17572
17573
17574    REPLACE_NULL=0;
17575  HAVE_WCHAR_T=1;
17576  STDDEF_H='';
17577
17578
17579  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
17580$as_echo_n "checking for wchar_t... " >&6; }
17581if test "${gt_cv_c_wchar_t+set}" = set; then
17582  $as_echo_n "(cached) " >&6
17583else
17584  cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h.  */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h.  */
17590#include <stddef.h>
17591       wchar_t foo = (wchar_t)'\0';
17592int
17593main ()
17594{
17595
17596  ;
17597  return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (ac_try="$ac_compile"
17602case "(($ac_try" in
17603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604  *) ac_try_echo=$ac_try;;
17605esac
17606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17607$as_echo "$ac_try_echo") >&5
17608  (eval "$ac_compile") 2>conftest.er1
17609  ac_status=$?
17610  grep -v '^ *+' conftest.er1 >conftest.err
17611  rm -f conftest.er1
17612  cat conftest.err >&5
17613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614  (exit $ac_status); } && {
17615	 test -z "$ac_c_werror_flag" ||
17616	 test ! -s conftest.err
17617       } && test -s conftest.$ac_objext; then
17618  gt_cv_c_wchar_t=yes
17619else
17620  $as_echo "$as_me: failed program was:" >&5
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623	gt_cv_c_wchar_t=no
17624fi
17625
17626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627fi
17628{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17629$as_echo "$gt_cv_c_wchar_t" >&6; }
17630  if test $gt_cv_c_wchar_t = yes; then
17631
17632cat >>confdefs.h <<\_ACEOF
17633#define HAVE_WCHAR_T 1
17634_ACEOF
17635
17636  fi
17637
17638
17639
17640
17641  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17642$as_echo_n "checking for long long int... " >&6; }
17643if test "${ac_cv_type_long_long_int+set}" = set; then
17644  $as_echo_n "(cached) " >&6
17645else
17646  cat >conftest.$ac_ext <<_ACEOF
17647
17648  /* confdefs.h.  */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h.  */
17653/* For now, do not test the preprocessor; as of 2007 there are too many
17654	 implementations with broken preprocessors.  Perhaps this can
17655	 be revisited in 2012.  In the meantime, code should not expect
17656	 #if to work with literals wider than 32 bits.  */
17657      /* Test literals.  */
17658      long long int ll = 9223372036854775807ll;
17659      long long int nll = -9223372036854775807LL;
17660      unsigned long long int ull = 18446744073709551615ULL;
17661      /* Test constant expressions.   */
17662      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17663		     ? 1 : -1)];
17664      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17665		     ? 1 : -1)];
17666      int i = 63;
17667int
17668main ()
17669{
17670/* Test availability of runtime routines for shift and division.  */
17671      long long int llmax = 9223372036854775807ll;
17672      unsigned long long int ullmax = 18446744073709551615ull;
17673      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17674	      | (llmax / ll) | (llmax % ll)
17675	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17676	      | (ullmax / ull) | (ullmax % ull));
17677  ;
17678  return 0;
17679}
17680
17681_ACEOF
17682rm -f conftest.$ac_objext conftest$ac_exeext
17683if { (ac_try="$ac_link"
17684case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689$as_echo "$ac_try_echo") >&5
17690  (eval "$ac_link") 2>conftest.er1
17691  ac_status=$?
17692  grep -v '^ *+' conftest.er1 >conftest.err
17693  rm -f conftest.er1
17694  cat conftest.err >&5
17695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696  (exit $ac_status); } && {
17697	 test -z "$ac_c_werror_flag" ||
17698	 test ! -s conftest.err
17699       } && test -s conftest$ac_exeext && {
17700	 test "$cross_compiling" = yes ||
17701	 $as_test_x conftest$ac_exeext
17702       }; then
17703  			if test "$cross_compiling" = yes; then
17704  ac_cv_type_long_long_int=yes
17705else
17706  cat >conftest.$ac_ext <<_ACEOF
17707/* confdefs.h.  */
17708_ACEOF
17709cat confdefs.h >>conftest.$ac_ext
17710cat >>conftest.$ac_ext <<_ACEOF
17711/* end confdefs.h.  */
17712#include <limits.h>
17713	       #ifndef LLONG_MAX
17714	       # define HALF \
17715			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
17716	       # define LLONG_MAX (HALF - 1 + HALF)
17717	       #endif
17718int
17719main ()
17720{
17721long long int n = 1;
17722	       int i;
17723	       for (i = 0; ; i++)
17724		 {
17725		   long long int m = n << i;
17726		   if (m >> i != n)
17727		     return 1;
17728		   if (LLONG_MAX / 2 < m)
17729		     break;
17730		 }
17731	       return 0;
17732  ;
17733  return 0;
17734}
17735_ACEOF
17736rm -f conftest$ac_exeext
17737if { (ac_try="$ac_link"
17738case "(($ac_try" in
17739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740  *) ac_try_echo=$ac_try;;
17741esac
17742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17743$as_echo "$ac_try_echo") >&5
17744  (eval "$ac_link") 2>&5
17745  ac_status=$?
17746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17748  { (case "(($ac_try" in
17749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750  *) ac_try_echo=$ac_try;;
17751esac
17752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753$as_echo "$ac_try_echo") >&5
17754  (eval "$ac_try") 2>&5
17755  ac_status=$?
17756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757  (exit $ac_status); }; }; then
17758  ac_cv_type_long_long_int=yes
17759else
17760  $as_echo "$as_me: program exited with status $ac_status" >&5
17761$as_echo "$as_me: failed program was:" >&5
17762sed 's/^/| /' conftest.$ac_ext >&5
17763
17764( exit $ac_status )
17765ac_cv_type_long_long_int=no
17766fi
17767rm -rf conftest.dSYM
17768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17769fi
17770
17771
17772else
17773  $as_echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776	ac_cv_type_long_long_int=no
17777fi
17778
17779rm -rf conftest.dSYM
17780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17781      conftest$ac_exeext conftest.$ac_ext
17782fi
17783{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17784$as_echo "$ac_cv_type_long_long_int" >&6; }
17785  if test $ac_cv_type_long_long_int = yes; then
17786
17787cat >>confdefs.h <<\_ACEOF
17788#define HAVE_LONG_LONG_INT 1
17789_ACEOF
17790
17791  fi
17792
17793
17794  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
17795$as_echo_n "checking for unsigned long long int... " >&6; }
17796if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
17797  $as_echo_n "(cached) " >&6
17798else
17799  cat >conftest.$ac_ext <<_ACEOF
17800
17801  /* confdefs.h.  */
17802_ACEOF
17803cat confdefs.h >>conftest.$ac_ext
17804cat >>conftest.$ac_ext <<_ACEOF
17805/* end confdefs.h.  */
17806/* For now, do not test the preprocessor; as of 2007 there are too many
17807	 implementations with broken preprocessors.  Perhaps this can
17808	 be revisited in 2012.  In the meantime, code should not expect
17809	 #if to work with literals wider than 32 bits.  */
17810      /* Test literals.  */
17811      long long int ll = 9223372036854775807ll;
17812      long long int nll = -9223372036854775807LL;
17813      unsigned long long int ull = 18446744073709551615ULL;
17814      /* Test constant expressions.   */
17815      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17816		     ? 1 : -1)];
17817      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17818		     ? 1 : -1)];
17819      int i = 63;
17820int
17821main ()
17822{
17823/* Test availability of runtime routines for shift and division.  */
17824      long long int llmax = 9223372036854775807ll;
17825      unsigned long long int ullmax = 18446744073709551615ull;
17826      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17827	      | (llmax / ll) | (llmax % ll)
17828	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17829	      | (ullmax / ull) | (ullmax % ull));
17830  ;
17831  return 0;
17832}
17833
17834_ACEOF
17835rm -f conftest.$ac_objext conftest$ac_exeext
17836if { (ac_try="$ac_link"
17837case "(($ac_try" in
17838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839  *) ac_try_echo=$ac_try;;
17840esac
17841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842$as_echo "$ac_try_echo") >&5
17843  (eval "$ac_link") 2>conftest.er1
17844  ac_status=$?
17845  grep -v '^ *+' conftest.er1 >conftest.err
17846  rm -f conftest.er1
17847  cat conftest.err >&5
17848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849  (exit $ac_status); } && {
17850	 test -z "$ac_c_werror_flag" ||
17851	 test ! -s conftest.err
17852       } && test -s conftest$ac_exeext && {
17853	 test "$cross_compiling" = yes ||
17854	 $as_test_x conftest$ac_exeext
17855       }; then
17856  ac_cv_type_unsigned_long_long_int=yes
17857else
17858  $as_echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861	ac_cv_type_unsigned_long_long_int=no
17862fi
17863
17864rm -rf conftest.dSYM
17865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866      conftest$ac_exeext conftest.$ac_ext
17867fi
17868{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
17869$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17870  if test $ac_cv_type_unsigned_long_long_int = yes; then
17871
17872cat >>confdefs.h <<\_ACEOF
17873#define HAVE_UNSIGNED_LONG_LONG_INT 1
17874_ACEOF
17875
17876  fi
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887    HAVE_STRCASECMP=1;
17888  HAVE_DECL_STRNCASECMP=1;
17889
17890
17891
17892
17893
17894
17895
17896
17897for ac_func in strcasestr
17898do
17899as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17901$as_echo_n "checking for $ac_func... " >&6; }
17902if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903  $as_echo_n "(cached) " >&6
17904else
17905  cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h.  */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h.  */
17911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17913#define $ac_func innocuous_$ac_func
17914
17915/* System header to define __stub macros and hopefully few prototypes,
17916    which can conflict with char $ac_func (); below.
17917    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918    <limits.h> exists even on freestanding compilers.  */
17919
17920#ifdef __STDC__
17921# include <limits.h>
17922#else
17923# include <assert.h>
17924#endif
17925
17926#undef $ac_func
17927
17928/* Override any GCC internal prototype to avoid an error.
17929   Use char because int might match the return type of a GCC
17930   builtin and then its argument prototype would still apply.  */
17931#ifdef __cplusplus
17932extern "C"
17933#endif
17934char $ac_func ();
17935/* The GNU C library defines this for functions which it implements
17936    to always fail with ENOSYS.  Some functions are actually named
17937    something starting with __ and the normal name is an alias.  */
17938#if defined __stub_$ac_func || defined __stub___$ac_func
17939choke me
17940#endif
17941
17942int
17943main ()
17944{
17945return $ac_func ();
17946  ;
17947  return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext conftest$ac_exeext
17951if { (ac_try="$ac_link"
17952case "(($ac_try" in
17953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954  *) ac_try_echo=$ac_try;;
17955esac
17956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17957$as_echo "$ac_try_echo") >&5
17958  (eval "$ac_link") 2>conftest.er1
17959  ac_status=$?
17960  grep -v '^ *+' conftest.er1 >conftest.err
17961  rm -f conftest.er1
17962  cat conftest.err >&5
17963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964  (exit $ac_status); } && {
17965	 test -z "$ac_c_werror_flag" ||
17966	 test ! -s conftest.err
17967       } && test -s conftest$ac_exeext && {
17968	 test "$cross_compiling" = yes ||
17969	 $as_test_x conftest$ac_exeext
17970       }; then
17971  eval "$as_ac_var=yes"
17972else
17973  $as_echo "$as_me: failed program was:" >&5
17974sed 's/^/| /' conftest.$ac_ext >&5
17975
17976	eval "$as_ac_var=no"
17977fi
17978
17979rm -rf conftest.dSYM
17980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17981      conftest$ac_exeext conftest.$ac_ext
17982fi
17983ac_res=`eval 'as_val=${'$as_ac_var'}
17984		 $as_echo "$as_val"'`
17985	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17986$as_echo "$ac_res" >&6; }
17987as_val=`eval 'as_val=${'$as_ac_var'}
17988		 $as_echo "$as_val"'`
17989   if test "x$as_val" = x""yes; then
17990  cat >>confdefs.h <<_ACEOF
17991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992_ACEOF
17993
17994fi
17995done
17996
17997  if test $ac_cv_func_strcasestr = no; then
17998    HAVE_STRCASESTR=0
17999  else
18000    if test "$gl_cv_func_memchr_works" != yes; then
18001      REPLACE_STRCASESTR=1
18002    fi
18003  fi
18004  if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
18005
18006
18007
18008
18009
18010
18011
18012
18013  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
18014
18015
18016  :
18017
18018  fi
18019
18020
18021
18022
18023
18024
18025  if test -z "$ERRNO_H"; then
18026    { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
18027$as_echo_n "checking for working strerror function... " >&6; }
18028if test "${gl_cv_func_working_strerror+set}" = set; then
18029  $as_echo_n "(cached) " >&6
18030else
18031  if test "$cross_compiling" = yes; then
18032           cat >conftest.$ac_ext <<_ACEOF
18033/* confdefs.h.  */
18034_ACEOF
18035cat confdefs.h >>conftest.$ac_ext
18036cat >>conftest.$ac_ext <<_ACEOF
18037/* end confdefs.h.  */
18038#include <string.h>
18039
18040int
18041main ()
18042{
18043return !*strerror (-2);
18044  ;
18045  return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (ac_try="$ac_compile"
18050case "(($ac_try" in
18051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052  *) ac_try_echo=$ac_try;;
18053esac
18054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18055$as_echo "$ac_try_echo") >&5
18056  (eval "$ac_compile") 2>conftest.er1
18057  ac_status=$?
18058  grep -v '^ *+' conftest.er1 >conftest.err
18059  rm -f conftest.er1
18060  cat conftest.err >&5
18061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062  (exit $ac_status); } && {
18063	 test -z "$ac_c_werror_flag" ||
18064	 test ! -s conftest.err
18065       } && test -s conftest.$ac_objext; then
18066  gl_cv_func_working_strerror=yes
18067else
18068  $as_echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
18071	gl_cv_func_working_strerror=no
18072fi
18073
18074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075
18076else
18077  cat >conftest.$ac_ext <<_ACEOF
18078/* confdefs.h.  */
18079_ACEOF
18080cat confdefs.h >>conftest.$ac_ext
18081cat >>conftest.$ac_ext <<_ACEOF
18082/* end confdefs.h.  */
18083#include <string.h>
18084
18085int
18086main ()
18087{
18088return !*strerror (-2);
18089  ;
18090  return 0;
18091}
18092_ACEOF
18093rm -f conftest$ac_exeext
18094if { (ac_try="$ac_link"
18095case "(($ac_try" in
18096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097  *) ac_try_echo=$ac_try;;
18098esac
18099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100$as_echo "$ac_try_echo") >&5
18101  (eval "$ac_link") 2>&5
18102  ac_status=$?
18103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18105  { (case "(($ac_try" in
18106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107  *) ac_try_echo=$ac_try;;
18108esac
18109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110$as_echo "$ac_try_echo") >&5
18111  (eval "$ac_try") 2>&5
18112  ac_status=$?
18113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114  (exit $ac_status); }; }; then
18115  gl_cv_func_working_strerror=yes
18116else
18117  $as_echo "$as_me: program exited with status $ac_status" >&5
18118$as_echo "$as_me: failed program was:" >&5
18119sed 's/^/| /' conftest.$ac_ext >&5
18120
18121( exit $ac_status )
18122gl_cv_func_working_strerror=no
18123fi
18124rm -rf conftest.dSYM
18125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18126fi
18127
18128
18129
18130fi
18131{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
18132$as_echo "$gl_cv_func_working_strerror" >&6; }
18133    if test $gl_cv_func_working_strerror = no; then
18134                  REPLACE_STRERROR=1
18135    fi
18136  else
18137            REPLACE_STRERROR=1
18138  fi
18139  if test $REPLACE_STRERROR = 1; then
18140
18141  { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
18142$as_echo_n "checking whether strerror is declared... " >&6; }
18143if test "${ac_cv_have_decl_strerror+set}" = set; then
18144  $as_echo_n "(cached) " >&6
18145else
18146  cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h.  */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h.  */
18152$ac_includes_default
18153int
18154main ()
18155{
18156#ifndef strerror
18157  (void) strerror;
18158#endif
18159
18160  ;
18161  return 0;
18162}
18163_ACEOF
18164rm -f conftest.$ac_objext
18165if { (ac_try="$ac_compile"
18166case "(($ac_try" in
18167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168  *) ac_try_echo=$ac_try;;
18169esac
18170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171$as_echo "$ac_try_echo") >&5
18172  (eval "$ac_compile") 2>conftest.er1
18173  ac_status=$?
18174  grep -v '^ *+' conftest.er1 >conftest.err
18175  rm -f conftest.er1
18176  cat conftest.err >&5
18177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178  (exit $ac_status); } && {
18179	 test -z "$ac_c_werror_flag" ||
18180	 test ! -s conftest.err
18181       } && test -s conftest.$ac_objext; then
18182  ac_cv_have_decl_strerror=yes
18183else
18184  $as_echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187	ac_cv_have_decl_strerror=no
18188fi
18189
18190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191fi
18192{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
18193$as_echo "$ac_cv_have_decl_strerror" >&6; }
18194if test "x$ac_cv_have_decl_strerror" = x""yes; then
18195
18196cat >>confdefs.h <<_ACEOF
18197#define HAVE_DECL_STRERROR 1
18198_ACEOF
18199
18200
18201else
18202  cat >>confdefs.h <<_ACEOF
18203#define HAVE_DECL_STRERROR 0
18204_ACEOF
18205
18206
18207fi
18208
18209
18210
18211
18212
18213
18214
18215
18216  if test $ac_cv_header_sys_socket_h != yes; then
18217
18218for ac_header in winsock2.h
18219do
18220as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18222  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18223$as_echo_n "checking for $ac_header... " >&6; }
18224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18225  $as_echo_n "(cached) " >&6
18226fi
18227ac_res=`eval 'as_val=${'$as_ac_Header'}
18228		 $as_echo "$as_val"'`
18229	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18230$as_echo "$ac_res" >&6; }
18231else
18232  # Is the header compilable?
18233{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18234$as_echo_n "checking $ac_header usability... " >&6; }
18235cat >conftest.$ac_ext <<_ACEOF
18236/* confdefs.h.  */
18237_ACEOF
18238cat confdefs.h >>conftest.$ac_ext
18239cat >>conftest.$ac_ext <<_ACEOF
18240/* end confdefs.h.  */
18241$ac_includes_default
18242#include <$ac_header>
18243_ACEOF
18244rm -f conftest.$ac_objext
18245if { (ac_try="$ac_compile"
18246case "(($ac_try" in
18247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248  *) ac_try_echo=$ac_try;;
18249esac
18250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251$as_echo "$ac_try_echo") >&5
18252  (eval "$ac_compile") 2>conftest.er1
18253  ac_status=$?
18254  grep -v '^ *+' conftest.er1 >conftest.err
18255  rm -f conftest.er1
18256  cat conftest.err >&5
18257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258  (exit $ac_status); } && {
18259	 test -z "$ac_c_werror_flag" ||
18260	 test ! -s conftest.err
18261       } && test -s conftest.$ac_objext; then
18262  ac_header_compiler=yes
18263else
18264  $as_echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
18267	ac_header_compiler=no
18268fi
18269
18270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18272$as_echo "$ac_header_compiler" >&6; }
18273
18274# Is the header present?
18275{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18276$as_echo_n "checking $ac_header presence... " >&6; }
18277cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h.  */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h.  */
18283#include <$ac_header>
18284_ACEOF
18285if { (ac_try="$ac_cpp conftest.$ac_ext"
18286case "(($ac_try" in
18287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288  *) ac_try_echo=$ac_try;;
18289esac
18290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291$as_echo "$ac_try_echo") >&5
18292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18293  ac_status=$?
18294  grep -v '^ *+' conftest.er1 >conftest.err
18295  rm -f conftest.er1
18296  cat conftest.err >&5
18297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298  (exit $ac_status); } >/dev/null && {
18299	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18300	 test ! -s conftest.err
18301       }; then
18302  ac_header_preproc=yes
18303else
18304  $as_echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307  ac_header_preproc=no
18308fi
18309
18310rm -f conftest.err conftest.$ac_ext
18311{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18312$as_echo "$ac_header_preproc" >&6; }
18313
18314# So?  What about this header?
18315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18316  yes:no: )
18317    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18318$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18319    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18320$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18321    ac_header_preproc=yes
18322    ;;
18323  no:yes:* )
18324    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18325$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18326    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18327$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18328    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18329$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18330    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18331$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18332    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18333$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18334    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18335$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18336    ( cat <<\_ASBOX
18337## ------------------------------- ##
18338## Report this to bug-wget@gnu.org ##
18339## ------------------------------- ##
18340_ASBOX
18341     ) | sed "s/^/$as_me: WARNING:     /" >&2
18342    ;;
18343esac
18344{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18345$as_echo_n "checking for $ac_header... " >&6; }
18346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18347  $as_echo_n "(cached) " >&6
18348else
18349  eval "$as_ac_Header=\$ac_header_preproc"
18350fi
18351ac_res=`eval 'as_val=${'$as_ac_Header'}
18352		 $as_echo "$as_val"'`
18353	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18354$as_echo "$ac_res" >&6; }
18355
18356fi
18357as_val=`eval 'as_val=${'$as_ac_Header'}
18358		 $as_echo "$as_val"'`
18359   if test "x$as_val" = x""yes; then
18360  cat >>confdefs.h <<_ACEOF
18361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18362_ACEOF
18363
18364fi
18365
18366done
18367
18368  fi
18369
18370  fi
18371
18372{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18373$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18374if test "${ac_cv_c_restrict+set}" = set; then
18375  $as_echo_n "(cached) " >&6
18376else
18377  ac_cv_c_restrict=no
18378   # The order here caters to the fact that C++ does not require restrict.
18379   for ac_kw in __restrict __restrict__ _Restrict restrict; do
18380     cat >conftest.$ac_ext <<_ACEOF
18381/* confdefs.h.  */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h.  */
18386typedef int * int_ptr;
18387	int foo (int_ptr $ac_kw ip) {
18388	return ip[0];
18389       }
18390int
18391main ()
18392{
18393int s[1];
18394	int * $ac_kw t = s;
18395	t[0] = 0;
18396	return foo(t)
18397  ;
18398  return 0;
18399}
18400_ACEOF
18401rm -f conftest.$ac_objext
18402if { (ac_try="$ac_compile"
18403case "(($ac_try" in
18404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405  *) ac_try_echo=$ac_try;;
18406esac
18407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408$as_echo "$ac_try_echo") >&5
18409  (eval "$ac_compile") 2>conftest.er1
18410  ac_status=$?
18411  grep -v '^ *+' conftest.er1 >conftest.err
18412  rm -f conftest.er1
18413  cat conftest.err >&5
18414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415  (exit $ac_status); } && {
18416	 test -z "$ac_c_werror_flag" ||
18417	 test ! -s conftest.err
18418       } && test -s conftest.$ac_objext; then
18419  ac_cv_c_restrict=$ac_kw
18420else
18421  $as_echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424
18425fi
18426
18427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428     test "$ac_cv_c_restrict" != no && break
18429   done
18430
18431fi
18432{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
18433$as_echo "$ac_cv_c_restrict" >&6; }
18434
18435
18436 case $ac_cv_c_restrict in
18437   restrict) ;;
18438   no) cat >>confdefs.h <<\_ACEOF
18439#define restrict /**/
18440_ACEOF
18441 ;;
18442   *)  cat >>confdefs.h <<_ACEOF
18443#define restrict $ac_cv_c_restrict
18444_ACEOF
18445 ;;
18446 esac
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464     if test $gl_cv_have_include_next = yes; then
18465       gl_cv_next_string_h='<'string.h'>'
18466     else
18467       { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
18468$as_echo_n "checking absolute name of <string.h>... " >&6; }
18469if test "${gl_cv_next_string_h+set}" = set; then
18470  $as_echo_n "(cached) " >&6
18471else
18472
18473	  if test $ac_cv_header_string_h = yes; then
18474	    cat >conftest.$ac_ext <<_ACEOF
18475/* confdefs.h.  */
18476_ACEOF
18477cat confdefs.h >>conftest.$ac_ext
18478cat >>conftest.$ac_ext <<_ACEOF
18479/* end confdefs.h.  */
18480#include <string.h>
18481
18482_ACEOF
18483	    	    	    	    	    	    	    	    case "$host_os" in
18484	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
18485	      *)    gl_absname_cpp="$ac_cpp" ;;
18486	    esac
18487	    	    	    	    gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18488	       sed -n '\#/string.h#{
18489		 s#.*"\(.*/string.h\)".*#\1#
18490		 s#^/[^/]#//&#
18491		 p
18492		 q
18493	       }'`'"'
18494	  else
18495	    gl_cv_next_string_h='<'string.h'>'
18496	  fi
18497
18498fi
18499{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
18500$as_echo "$gl_cv_next_string_h" >&6; }
18501     fi
18502     NEXT_STRING_H=$gl_cv_next_string_h
18503
18504     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18505       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18506       gl_next_as_first_directive='<'string.h'>'
18507     else
18508       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18509       gl_next_as_first_directive=$gl_cv_next_string_h
18510     fi
18511     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531     if test $gl_cv_have_include_next = yes; then
18532       gl_cv_next_strings_h='<'strings.h'>'
18533     else
18534       { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
18535$as_echo_n "checking absolute name of <strings.h>... " >&6; }
18536if test "${gl_cv_next_strings_h+set}" = set; then
18537  $as_echo_n "(cached) " >&6
18538else
18539
18540	  if test $ac_cv_header_strings_h = yes; then
18541	    cat >conftest.$ac_ext <<_ACEOF
18542/* confdefs.h.  */
18543_ACEOF
18544cat confdefs.h >>conftest.$ac_ext
18545cat >>conftest.$ac_ext <<_ACEOF
18546/* end confdefs.h.  */
18547#include <strings.h>
18548
18549_ACEOF
18550	    	    	    	    	    	    	    	    case "$host_os" in
18551	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
18552	      *)    gl_absname_cpp="$ac_cpp" ;;
18553	    esac
18554	    	    	    	    gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18555	       sed -n '\#/strings.h#{
18556		 s#.*"\(.*/strings.h\)".*#\1#
18557		 s#^/[^/]#//&#
18558		 p
18559		 q
18560	       }'`'"'
18561	  else
18562	    gl_cv_next_strings_h='<'strings.h'>'
18563	  fi
18564
18565fi
18566{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
18567$as_echo "$gl_cv_next_strings_h" >&6; }
18568     fi
18569     NEXT_STRINGS_H=$gl_cv_next_strings_h
18570
18571     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18572       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18573       gl_next_as_first_directive='<'strings.h'>'
18574     else
18575       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18576       gl_next_as_first_directive=$gl_cv_next_strings_h
18577     fi
18578     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
18579
18580
18581
18582
18583
18584
18585
18586  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18587$as_echo_n "checking for wint_t... " >&6; }
18588if test "${gt_cv_c_wint_t+set}" = set; then
18589  $as_echo_n "(cached) " >&6
18590else
18591  cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h.  */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h.  */
18597
18598/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18599   <wchar.h>.
18600   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18601   before <wchar.h>.  */
18602#include <stddef.h>
18603#include <stdio.h>
18604#include <time.h>
18605#include <wchar.h>
18606       wint_t foo = (wchar_t)'\0';
18607int
18608main ()
18609{
18610
18611  ;
18612  return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext
18616if { (ac_try="$ac_compile"
18617case "(($ac_try" in
18618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619  *) ac_try_echo=$ac_try;;
18620esac
18621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18622$as_echo "$ac_try_echo") >&5
18623  (eval "$ac_compile") 2>conftest.er1
18624  ac_status=$?
18625  grep -v '^ *+' conftest.er1 >conftest.err
18626  rm -f conftest.er1
18627  cat conftest.err >&5
18628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629  (exit $ac_status); } && {
18630	 test -z "$ac_c_werror_flag" ||
18631	 test ! -s conftest.err
18632       } && test -s conftest.$ac_objext; then
18633  gt_cv_c_wint_t=yes
18634else
18635  $as_echo "$as_me: failed program was:" >&5
18636sed 's/^/| /' conftest.$ac_ext >&5
18637
18638	gt_cv_c_wint_t=no
18639fi
18640
18641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18642fi
18643{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18644$as_echo "$gt_cv_c_wint_t" >&6; }
18645  if test $gt_cv_c_wint_t = yes; then
18646
18647cat >>confdefs.h <<\_ACEOF
18648#define HAVE_WINT_T 1
18649_ACEOF
18650
18651  fi
18652
18653
18654
18655
18656
18657
18658   if false; then
18659  GL_COND_LIBTOOL_TRUE=
18660  GL_COND_LIBTOOL_FALSE='#'
18661else
18662  GL_COND_LIBTOOL_TRUE='#'
18663  GL_COND_LIBTOOL_FALSE=
18664fi
18665
18666  gl_cond_libtool=false
18667  gl_libdeps=
18668  gl_ltlibdeps=
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678  gl_source_base='lib'
18679
18680
18681
18682
18683
18684  if test $ac_cv_func_alloca_works = no; then
18685    :
18686  fi
18687
18688  # Define an additional variable used in the Makefile substitution.
18689  if test $ac_cv_working_alloca_h = yes; then
18690    { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18691$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18692if test "${gl_cv_rpl_alloca+set}" = set; then
18693  $as_echo_n "(cached) " >&6
18694else
18695
18696      cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h.  */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h.  */
18702
18703#if defined __GNUC__ || defined _AIX || defined _MSC_VER
18704        Need own alloca
18705#endif
18706
18707_ACEOF
18708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18709  $EGREP "Need own alloca" >/dev/null 2>&1; then
18710  gl_cv_rpl_alloca=yes
18711else
18712  gl_cv_rpl_alloca=no
18713fi
18714rm -f conftest*
18715
18716
18717fi
18718{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18719$as_echo "$gl_cv_rpl_alloca" >&6; }
18720    if test $gl_cv_rpl_alloca = yes; then
18721
18722cat >>confdefs.h <<\_ACEOF
18723#define HAVE_ALLOCA 1
18724_ACEOF
18725
18726      ALLOCA_H=alloca.h
18727    else
18728                  ALLOCA_H=
18729    fi
18730  else
18731    ALLOCA_H=alloca.h
18732  fi
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
18750$as_echo_n "checking for error_at_line... " >&6; }
18751if test "${ac_cv_lib_error_at_line+set}" = set; then
18752  $as_echo_n "(cached) " >&6
18753else
18754  cat >conftest.$ac_ext <<_ACEOF
18755/* confdefs.h.  */
18756_ACEOF
18757cat confdefs.h >>conftest.$ac_ext
18758cat >>conftest.$ac_ext <<_ACEOF
18759/* end confdefs.h.  */
18760#include <error.h>
18761int
18762main ()
18763{
18764error_at_line (0, 0, "", 0, "an error occurred");
18765  ;
18766  return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext conftest$ac_exeext
18770if { (ac_try="$ac_link"
18771case "(($ac_try" in
18772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773  *) ac_try_echo=$ac_try;;
18774esac
18775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776$as_echo "$ac_try_echo") >&5
18777  (eval "$ac_link") 2>conftest.er1
18778  ac_status=$?
18779  grep -v '^ *+' conftest.er1 >conftest.err
18780  rm -f conftest.er1
18781  cat conftest.err >&5
18782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783  (exit $ac_status); } && {
18784	 test -z "$ac_c_werror_flag" ||
18785	 test ! -s conftest.err
18786       } && test -s conftest$ac_exeext && {
18787	 test "$cross_compiling" = yes ||
18788	 $as_test_x conftest$ac_exeext
18789       }; then
18790  ac_cv_lib_error_at_line=yes
18791else
18792  $as_echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
18794
18795	ac_cv_lib_error_at_line=no
18796fi
18797
18798rm -rf conftest.dSYM
18799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800      conftest$ac_exeext conftest.$ac_ext
18801fi
18802{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18803$as_echo "$ac_cv_lib_error_at_line" >&6; }
18804if test $ac_cv_lib_error_at_line = no; then
18805
18806
18807
18808
18809
18810
18811
18812
18813  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18814
18815fi
18816
18817
18818
18819  :
18820
18821
18822
18823
18824  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18825
18826
18827
18828  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839  gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18840
18841
18842    :
18843
18844
18845
18846
18847
18848
18849
18850
18851  { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
18852$as_echo_n "checking for fseeko... " >&6; }
18853if test "${gl_cv_func_fseeko+set}" = set; then
18854  $as_echo_n "(cached) " >&6
18855else
18856
18857      cat >conftest.$ac_ext <<_ACEOF
18858/* confdefs.h.  */
18859_ACEOF
18860cat confdefs.h >>conftest.$ac_ext
18861cat >>conftest.$ac_ext <<_ACEOF
18862/* end confdefs.h.  */
18863#include <stdio.h>
18864int
18865main ()
18866{
18867fseeko (stdin, 0, 0);
18868  ;
18869  return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext conftest$ac_exeext
18873if { (ac_try="$ac_link"
18874case "(($ac_try" in
18875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876  *) ac_try_echo=$ac_try;;
18877esac
18878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18879$as_echo "$ac_try_echo") >&5
18880  (eval "$ac_link") 2>conftest.er1
18881  ac_status=$?
18882  grep -v '^ *+' conftest.er1 >conftest.err
18883  rm -f conftest.er1
18884  cat conftest.err >&5
18885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886  (exit $ac_status); } && {
18887	 test -z "$ac_c_werror_flag" ||
18888	 test ! -s conftest.err
18889       } && test -s conftest$ac_exeext && {
18890	 test "$cross_compiling" = yes ||
18891	 $as_test_x conftest$ac_exeext
18892       }; then
18893  gl_cv_func_fseeko=yes
18894else
18895  $as_echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898	gl_cv_func_fseeko=no
18899fi
18900
18901rm -rf conftest.dSYM
18902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903      conftest$ac_exeext conftest.$ac_ext
18904
18905fi
18906{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
18907$as_echo "$gl_cv_func_fseeko" >&6; }
18908  if test $gl_cv_func_fseeko = no; then
18909    HAVE_FSEEKO=0
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18920
18921
18922  REPLACE_FSEEKO=1
18923
18924  elif test $gl_cv_var_stdin_large_offset = no; then
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18935
18936
18937  REPLACE_FSEEKO=1
18938
18939  fi
18940
18941
18942
18943  GNULIB_FSEEKO=1
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959for ac_func in getdelim
18960do
18961as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18962{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18963$as_echo_n "checking for $ac_func... " >&6; }
18964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18965  $as_echo_n "(cached) " >&6
18966else
18967  cat >conftest.$ac_ext <<_ACEOF
18968/* confdefs.h.  */
18969_ACEOF
18970cat confdefs.h >>conftest.$ac_ext
18971cat >>conftest.$ac_ext <<_ACEOF
18972/* end confdefs.h.  */
18973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18975#define $ac_func innocuous_$ac_func
18976
18977/* System header to define __stub macros and hopefully few prototypes,
18978    which can conflict with char $ac_func (); below.
18979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980    <limits.h> exists even on freestanding compilers.  */
18981
18982#ifdef __STDC__
18983# include <limits.h>
18984#else
18985# include <assert.h>
18986#endif
18987
18988#undef $ac_func
18989
18990/* Override any GCC internal prototype to avoid an error.
18991   Use char because int might match the return type of a GCC
18992   builtin and then its argument prototype would still apply.  */
18993#ifdef __cplusplus
18994extern "C"
18995#endif
18996char $ac_func ();
18997/* The GNU C library defines this for functions which it implements
18998    to always fail with ENOSYS.  Some functions are actually named
18999    something starting with __ and the normal name is an alias.  */
19000#if defined __stub_$ac_func || defined __stub___$ac_func
19001choke me
19002#endif
19003
19004int
19005main ()
19006{
19007return $ac_func ();
19008  ;
19009  return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext conftest$ac_exeext
19013if { (ac_try="$ac_link"
19014case "(($ac_try" in
19015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016  *) ac_try_echo=$ac_try;;
19017esac
19018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019$as_echo "$ac_try_echo") >&5
19020  (eval "$ac_link") 2>conftest.er1
19021  ac_status=$?
19022  grep -v '^ *+' conftest.er1 >conftest.err
19023  rm -f conftest.er1
19024  cat conftest.err >&5
19025  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026  (exit $ac_status); } && {
19027	 test -z "$ac_c_werror_flag" ||
19028	 test ! -s conftest.err
19029       } && test -s conftest$ac_exeext && {
19030	 test "$cross_compiling" = yes ||
19031	 $as_test_x conftest$ac_exeext
19032       }; then
19033  eval "$as_ac_var=yes"
19034else
19035  $as_echo "$as_me: failed program was:" >&5
19036sed 's/^/| /' conftest.$ac_ext >&5
19037
19038	eval "$as_ac_var=no"
19039fi
19040
19041rm -rf conftest.dSYM
19042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043      conftest$ac_exeext conftest.$ac_ext
19044fi
19045ac_res=`eval 'as_val=${'$as_ac_var'}
19046		 $as_echo "$as_val"'`
19047	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19048$as_echo "$ac_res" >&6; }
19049as_val=`eval 'as_val=${'$as_ac_var'}
19050		 $as_echo "$as_val"'`
19051   if test "x$as_val" = x""yes; then
19052  cat >>confdefs.h <<_ACEOF
19053#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19054_ACEOF
19055
19056else
19057
19058    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19059
19060fi
19061done
19062
19063
19064
19065
19066
19067
19068
19069  if test $ac_cv_func_getdelim = no; then
19070
19071
19072
19073for ac_func in flockfile funlockfile
19074do
19075as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19076{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19077$as_echo_n "checking for $ac_func... " >&6; }
19078if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19079  $as_echo_n "(cached) " >&6
19080else
19081  cat >conftest.$ac_ext <<_ACEOF
19082/* confdefs.h.  */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h.  */
19087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19088   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19089#define $ac_func innocuous_$ac_func
19090
19091/* System header to define __stub macros and hopefully few prototypes,
19092    which can conflict with char $ac_func (); below.
19093    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19094    <limits.h> exists even on freestanding compilers.  */
19095
19096#ifdef __STDC__
19097# include <limits.h>
19098#else
19099# include <assert.h>
19100#endif
19101
19102#undef $ac_func
19103
19104/* Override any GCC internal prototype to avoid an error.
19105   Use char because int might match the return type of a GCC
19106   builtin and then its argument prototype would still apply.  */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110char $ac_func ();
19111/* The GNU C library defines this for functions which it implements
19112    to always fail with ENOSYS.  Some functions are actually named
19113    something starting with __ and the normal name is an alias.  */
19114#if defined __stub_$ac_func || defined __stub___$ac_func
19115choke me
19116#endif
19117
19118int
19119main ()
19120{
19121return $ac_func ();
19122  ;
19123  return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext conftest$ac_exeext
19127if { (ac_try="$ac_link"
19128case "(($ac_try" in
19129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130  *) ac_try_echo=$ac_try;;
19131esac
19132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19133$as_echo "$ac_try_echo") >&5
19134  (eval "$ac_link") 2>conftest.er1
19135  ac_status=$?
19136  grep -v '^ *+' conftest.er1 >conftest.err
19137  rm -f conftest.er1
19138  cat conftest.err >&5
19139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140  (exit $ac_status); } && {
19141	 test -z "$ac_c_werror_flag" ||
19142	 test ! -s conftest.err
19143       } && test -s conftest$ac_exeext && {
19144	 test "$cross_compiling" = yes ||
19145	 $as_test_x conftest$ac_exeext
19146       }; then
19147  eval "$as_ac_var=yes"
19148else
19149  $as_echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152	eval "$as_ac_var=no"
19153fi
19154
19155rm -rf conftest.dSYM
19156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19157      conftest$ac_exeext conftest.$ac_ext
19158fi
19159ac_res=`eval 'as_val=${'$as_ac_var'}
19160		 $as_echo "$as_val"'`
19161	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19162$as_echo "$ac_res" >&6; }
19163as_val=`eval 'as_val=${'$as_ac_var'}
19164		 $as_echo "$as_val"'`
19165   if test "x$as_val" = x""yes; then
19166  cat >>confdefs.h <<_ACEOF
19167#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19168_ACEOF
19169
19170fi
19171done
19172
19173  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19174$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19175if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19176  $as_echo_n "(cached) " >&6
19177else
19178  cat >conftest.$ac_ext <<_ACEOF
19179/* confdefs.h.  */
19180_ACEOF
19181cat confdefs.h >>conftest.$ac_ext
19182cat >>conftest.$ac_ext <<_ACEOF
19183/* end confdefs.h.  */
19184$ac_includes_default
19185int
19186main ()
19187{
19188#ifndef getc_unlocked
19189  (void) getc_unlocked;
19190#endif
19191
19192  ;
19193  return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (ac_try="$ac_compile"
19198case "(($ac_try" in
19199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200  *) ac_try_echo=$ac_try;;
19201esac
19202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19203$as_echo "$ac_try_echo") >&5
19204  (eval "$ac_compile") 2>conftest.er1
19205  ac_status=$?
19206  grep -v '^ *+' conftest.er1 >conftest.err
19207  rm -f conftest.er1
19208  cat conftest.err >&5
19209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210  (exit $ac_status); } && {
19211	 test -z "$ac_c_werror_flag" ||
19212	 test ! -s conftest.err
19213       } && test -s conftest.$ac_objext; then
19214  ac_cv_have_decl_getc_unlocked=yes
19215else
19216  $as_echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219	ac_cv_have_decl_getc_unlocked=no
19220fi
19221
19222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223fi
19224{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19225$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19226if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19227
19228cat >>confdefs.h <<_ACEOF
19229#define HAVE_DECL_GETC_UNLOCKED 1
19230_ACEOF
19231
19232
19233else
19234  cat >>confdefs.h <<_ACEOF
19235#define HAVE_DECL_GETC_UNLOCKED 0
19236_ACEOF
19237
19238
19239fi
19240
19241
19242
19243  fi
19244
19245  if test $ac_cv_have_decl_getdelim = no; then
19246    HAVE_DECL_GETDELIM=0
19247  fi
19248
19249
19250
19251  GNULIB_GETDELIM=1
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263  gl_getline_needs_run_time_check=no
19264  { $as_echo "$as_me:$LINENO: checking for getline" >&5
19265$as_echo_n "checking for getline... " >&6; }
19266if test "${ac_cv_func_getline+set}" = set; then
19267  $as_echo_n "(cached) " >&6
19268else
19269  cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h.  */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h.  */
19275/* Define getline to an innocuous variant, in case <limits.h> declares getline.
19276   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19277#define getline innocuous_getline
19278
19279/* System header to define __stub macros and hopefully few prototypes,
19280    which can conflict with char getline (); below.
19281    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19282    <limits.h> exists even on freestanding compilers.  */
19283
19284#ifdef __STDC__
19285# include <limits.h>
19286#else
19287# include <assert.h>
19288#endif
19289
19290#undef getline
19291
19292/* Override any GCC internal prototype to avoid an error.
19293   Use char because int might match the return type of a GCC
19294   builtin and then its argument prototype would still apply.  */
19295#ifdef __cplusplus
19296extern "C"
19297#endif
19298char getline ();
19299/* The GNU C library defines this for functions which it implements
19300    to always fail with ENOSYS.  Some functions are actually named
19301    something starting with __ and the normal name is an alias.  */
19302#if defined __stub_getline || defined __stub___getline
19303choke me
19304#endif
19305
19306int
19307main ()
19308{
19309return getline ();
19310  ;
19311  return 0;
19312}
19313_ACEOF
19314rm -f conftest.$ac_objext conftest$ac_exeext
19315if { (ac_try="$ac_link"
19316case "(($ac_try" in
19317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318  *) ac_try_echo=$ac_try;;
19319esac
19320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321$as_echo "$ac_try_echo") >&5
19322  (eval "$ac_link") 2>conftest.er1
19323  ac_status=$?
19324  grep -v '^ *+' conftest.er1 >conftest.err
19325  rm -f conftest.er1
19326  cat conftest.err >&5
19327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328  (exit $ac_status); } && {
19329	 test -z "$ac_c_werror_flag" ||
19330	 test ! -s conftest.err
19331       } && test -s conftest$ac_exeext && {
19332	 test "$cross_compiling" = yes ||
19333	 $as_test_x conftest$ac_exeext
19334       }; then
19335  ac_cv_func_getline=yes
19336else
19337  $as_echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340	ac_cv_func_getline=no
19341fi
19342
19343rm -rf conftest.dSYM
19344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345      conftest$ac_exeext conftest.$ac_ext
19346fi
19347{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
19348$as_echo "$ac_cv_func_getline" >&6; }
19349if test "x$ac_cv_func_getline" = x""yes; then
19350  		gl_getline_needs_run_time_check=yes
19351else
19352  am_cv_func_working_getline=no
19353fi
19354
19355  if test $gl_getline_needs_run_time_check = yes; then
19356    { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
19357$as_echo_n "checking for working getline function... " >&6; }
19358if test "${am_cv_func_working_getline+set}" = set; then
19359  $as_echo_n "(cached) " >&6
19360else
19361  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
19362    if test "$cross_compiling" = yes; then
19363        cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h.  */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h.  */
19369
19370#include <features.h>
19371#ifdef __GNU_LIBRARY__
19372 #if (__GLIBC__ >= 2)
19373  Lucky GNU user
19374 #endif
19375#endif
19376
19377_ACEOF
19378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19379  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
19380  am_cv_func_working_getline=yes
19381else
19382  am_cv_func_working_getline=no
19383fi
19384rm -f conftest*
19385
19386
19387else
19388  cat >conftest.$ac_ext <<_ACEOF
19389/* confdefs.h.  */
19390_ACEOF
19391cat confdefs.h >>conftest.$ac_ext
19392cat >>conftest.$ac_ext <<_ACEOF
19393/* end confdefs.h.  */
19394
19395#    include <stdio.h>
19396#    include <stdlib.h>
19397#    include <string.h>
19398    int main ()
19399    { /* Based on a test program from Karl Heuer.  */
19400      char *line = NULL;
19401      size_t siz = 0;
19402      int len;
19403      FILE *in = fopen ("./conftest.data", "r");
19404      if (!in)
19405	return 1;
19406      len = getline (&line, &siz, in);
19407      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
19408    }
19409
19410_ACEOF
19411rm -f conftest$ac_exeext
19412if { (ac_try="$ac_link"
19413case "(($ac_try" in
19414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415  *) ac_try_echo=$ac_try;;
19416esac
19417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418$as_echo "$ac_try_echo") >&5
19419  (eval "$ac_link") 2>&5
19420  ac_status=$?
19421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423  { (case "(($ac_try" in
19424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425  *) ac_try_echo=$ac_try;;
19426esac
19427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428$as_echo "$ac_try_echo") >&5
19429  (eval "$ac_try") 2>&5
19430  ac_status=$?
19431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432  (exit $ac_status); }; }; then
19433  am_cv_func_working_getline=yes
19434else
19435  $as_echo "$as_me: program exited with status $ac_status" >&5
19436$as_echo "$as_me: failed program was:" >&5
19437sed 's/^/| /' conftest.$ac_ext >&5
19438
19439( exit $ac_status )
19440am_cv_func_working_getline=no
19441fi
19442rm -rf conftest.dSYM
19443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19444fi
19445
19446
19447fi
19448{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
19449$as_echo "$am_cv_func_working_getline" >&6; }
19450  fi
19451
19452  if test $ac_cv_have_decl_getline = no; then
19453    HAVE_DECL_GETLINE=0
19454  fi
19455
19456  if test $am_cv_func_working_getline = no; then
19457    REPLACE_GETLINE=1
19458
19459
19460
19461
19462
19463
19464
19465
19466  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484for ac_func in getdelim
19485do
19486as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19487{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19488$as_echo_n "checking for $ac_func... " >&6; }
19489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19490  $as_echo_n "(cached) " >&6
19491else
19492  cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h.  */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h.  */
19498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19499   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19500#define $ac_func innocuous_$ac_func
19501
19502/* System header to define __stub macros and hopefully few prototypes,
19503    which can conflict with char $ac_func (); below.
19504    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505    <limits.h> exists even on freestanding compilers.  */
19506
19507#ifdef __STDC__
19508# include <limits.h>
19509#else
19510# include <assert.h>
19511#endif
19512
19513#undef $ac_func
19514
19515/* Override any GCC internal prototype to avoid an error.
19516   Use char because int might match the return type of a GCC
19517   builtin and then its argument prototype would still apply.  */
19518#ifdef __cplusplus
19519extern "C"
19520#endif
19521char $ac_func ();
19522/* The GNU C library defines this for functions which it implements
19523    to always fail with ENOSYS.  Some functions are actually named
19524    something starting with __ and the normal name is an alias.  */
19525#if defined __stub_$ac_func || defined __stub___$ac_func
19526choke me
19527#endif
19528
19529int
19530main ()
19531{
19532return $ac_func ();
19533  ;
19534  return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext conftest$ac_exeext
19538if { (ac_try="$ac_link"
19539case "(($ac_try" in
19540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541  *) ac_try_echo=$ac_try;;
19542esac
19543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19544$as_echo "$ac_try_echo") >&5
19545  (eval "$ac_link") 2>conftest.er1
19546  ac_status=$?
19547  grep -v '^ *+' conftest.er1 >conftest.err
19548  rm -f conftest.er1
19549  cat conftest.err >&5
19550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551  (exit $ac_status); } && {
19552	 test -z "$ac_c_werror_flag" ||
19553	 test ! -s conftest.err
19554       } && test -s conftest$ac_exeext && {
19555	 test "$cross_compiling" = yes ||
19556	 $as_test_x conftest$ac_exeext
19557       }; then
19558  eval "$as_ac_var=yes"
19559else
19560  $as_echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563	eval "$as_ac_var=no"
19564fi
19565
19566rm -rf conftest.dSYM
19567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568      conftest$ac_exeext conftest.$ac_ext
19569fi
19570ac_res=`eval 'as_val=${'$as_ac_var'}
19571		 $as_echo "$as_val"'`
19572	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19573$as_echo "$ac_res" >&6; }
19574as_val=`eval 'as_val=${'$as_ac_var'}
19575		 $as_echo "$as_val"'`
19576   if test "x$as_val" = x""yes; then
19577  cat >>confdefs.h <<_ACEOF
19578#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579_ACEOF
19580
19581else
19582
19583    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19584
19585fi
19586done
19587
19588
19589
19590
19591
19592
19593
19594  if test $ac_cv_func_getdelim = no; then
19595
19596
19597
19598for ac_func in flockfile funlockfile
19599do
19600as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19602$as_echo_n "checking for $ac_func... " >&6; }
19603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19604  $as_echo_n "(cached) " >&6
19605else
19606  cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h.  */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h.  */
19612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19614#define $ac_func innocuous_$ac_func
19615
19616/* System header to define __stub macros and hopefully few prototypes,
19617    which can conflict with char $ac_func (); below.
19618    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619    <limits.h> exists even on freestanding compilers.  */
19620
19621#ifdef __STDC__
19622# include <limits.h>
19623#else
19624# include <assert.h>
19625#endif
19626
19627#undef $ac_func
19628
19629/* Override any GCC internal prototype to avoid an error.
19630   Use char because int might match the return type of a GCC
19631   builtin and then its argument prototype would still apply.  */
19632#ifdef __cplusplus
19633extern "C"
19634#endif
19635char $ac_func ();
19636/* The GNU C library defines this for functions which it implements
19637    to always fail with ENOSYS.  Some functions are actually named
19638    something starting with __ and the normal name is an alias.  */
19639#if defined __stub_$ac_func || defined __stub___$ac_func
19640choke me
19641#endif
19642
19643int
19644main ()
19645{
19646return $ac_func ();
19647  ;
19648  return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext conftest$ac_exeext
19652if { (ac_try="$ac_link"
19653case "(($ac_try" in
19654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655  *) ac_try_echo=$ac_try;;
19656esac
19657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658$as_echo "$ac_try_echo") >&5
19659  (eval "$ac_link") 2>conftest.er1
19660  ac_status=$?
19661  grep -v '^ *+' conftest.er1 >conftest.err
19662  rm -f conftest.er1
19663  cat conftest.err >&5
19664  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665  (exit $ac_status); } && {
19666	 test -z "$ac_c_werror_flag" ||
19667	 test ! -s conftest.err
19668       } && test -s conftest$ac_exeext && {
19669	 test "$cross_compiling" = yes ||
19670	 $as_test_x conftest$ac_exeext
19671       }; then
19672  eval "$as_ac_var=yes"
19673else
19674  $as_echo "$as_me: failed program was:" >&5
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
19677	eval "$as_ac_var=no"
19678fi
19679
19680rm -rf conftest.dSYM
19681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682      conftest$ac_exeext conftest.$ac_ext
19683fi
19684ac_res=`eval 'as_val=${'$as_ac_var'}
19685		 $as_echo "$as_val"'`
19686	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19687$as_echo "$ac_res" >&6; }
19688as_val=`eval 'as_val=${'$as_ac_var'}
19689		 $as_echo "$as_val"'`
19690   if test "x$as_val" = x""yes; then
19691  cat >>confdefs.h <<_ACEOF
19692#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19693_ACEOF
19694
19695fi
19696done
19697
19698  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19699$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19700if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19701  $as_echo_n "(cached) " >&6
19702else
19703  cat >conftest.$ac_ext <<_ACEOF
19704/* confdefs.h.  */
19705_ACEOF
19706cat confdefs.h >>conftest.$ac_ext
19707cat >>conftest.$ac_ext <<_ACEOF
19708/* end confdefs.h.  */
19709$ac_includes_default
19710int
19711main ()
19712{
19713#ifndef getc_unlocked
19714  (void) getc_unlocked;
19715#endif
19716
19717  ;
19718  return 0;
19719}
19720_ACEOF
19721rm -f conftest.$ac_objext
19722if { (ac_try="$ac_compile"
19723case "(($ac_try" in
19724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725  *) ac_try_echo=$ac_try;;
19726esac
19727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728$as_echo "$ac_try_echo") >&5
19729  (eval "$ac_compile") 2>conftest.er1
19730  ac_status=$?
19731  grep -v '^ *+' conftest.er1 >conftest.err
19732  rm -f conftest.er1
19733  cat conftest.err >&5
19734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735  (exit $ac_status); } && {
19736	 test -z "$ac_c_werror_flag" ||
19737	 test ! -s conftest.err
19738       } && test -s conftest.$ac_objext; then
19739  ac_cv_have_decl_getc_unlocked=yes
19740else
19741  $as_echo "$as_me: failed program was:" >&5
19742sed 's/^/| /' conftest.$ac_ext >&5
19743
19744	ac_cv_have_decl_getc_unlocked=no
19745fi
19746
19747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748fi
19749{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19750$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19751if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19752
19753cat >>confdefs.h <<_ACEOF
19754#define HAVE_DECL_GETC_UNLOCKED 1
19755_ACEOF
19756
19757
19758else
19759  cat >>confdefs.h <<_ACEOF
19760#define HAVE_DECL_GETC_UNLOCKED 0
19761_ACEOF
19762
19763
19764fi
19765
19766
19767
19768  fi
19769
19770  if test $ac_cv_have_decl_getdelim = no; then
19771    HAVE_DECL_GETDELIM=0
19772  fi
19773
19774
19775  fi
19776
19777
19778
19779  GNULIB_GETLINE=1
19780
19781
19782
19783
19784
19785
19786
19787
19788cat >>confdefs.h <<\_ACEOF
19789#define GNULIB_GETOPT_GNU 1
19790_ACEOF
19791
19792
19793
19794
19795
19796
19797
19798  if test -n "$gl_replace_getopt"; then
19799
19800
19801
19802  GETOPT_H=getopt.h
19803
19804cat >>confdefs.h <<\_ACEOF
19805#define __GETOPT_PREFIX rpl_
19806_ACEOF
19807
19808
19809
19810    GNULIB_UNISTD_H_GETOPT=1
19811
19812
19813
19814
19815
19816
19817
19818
19819  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839fi
19840
19841
19842
19843
19844
19845
19846
19847for ac_func in getpagesize
19848do
19849as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19850{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19851$as_echo_n "checking for $ac_func... " >&6; }
19852if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19853  $as_echo_n "(cached) " >&6
19854else
19855  cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h.  */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h.  */
19861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19862   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19863#define $ac_func innocuous_$ac_func
19864
19865/* System header to define __stub macros and hopefully few prototypes,
19866    which can conflict with char $ac_func (); below.
19867    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868    <limits.h> exists even on freestanding compilers.  */
19869
19870#ifdef __STDC__
19871# include <limits.h>
19872#else
19873# include <assert.h>
19874#endif
19875
19876#undef $ac_func
19877
19878/* Override any GCC internal prototype to avoid an error.
19879   Use char because int might match the return type of a GCC
19880   builtin and then its argument prototype would still apply.  */
19881#ifdef __cplusplus
19882extern "C"
19883#endif
19884char $ac_func ();
19885/* The GNU C library defines this for functions which it implements
19886    to always fail with ENOSYS.  Some functions are actually named
19887    something starting with __ and the normal name is an alias.  */
19888#if defined __stub_$ac_func || defined __stub___$ac_func
19889choke me
19890#endif
19891
19892int
19893main ()
19894{
19895return $ac_func ();
19896  ;
19897  return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext conftest$ac_exeext
19901if { (ac_try="$ac_link"
19902case "(($ac_try" in
19903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904  *) ac_try_echo=$ac_try;;
19905esac
19906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19907$as_echo "$ac_try_echo") >&5
19908  (eval "$ac_link") 2>conftest.er1
19909  ac_status=$?
19910  grep -v '^ *+' conftest.er1 >conftest.err
19911  rm -f conftest.er1
19912  cat conftest.err >&5
19913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914  (exit $ac_status); } && {
19915	 test -z "$ac_c_werror_flag" ||
19916	 test ! -s conftest.err
19917       } && test -s conftest$ac_exeext && {
19918	 test "$cross_compiling" = yes ||
19919	 $as_test_x conftest$ac_exeext
19920       }; then
19921  eval "$as_ac_var=yes"
19922else
19923  $as_echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926	eval "$as_ac_var=no"
19927fi
19928
19929rm -rf conftest.dSYM
19930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19931      conftest$ac_exeext conftest.$ac_ext
19932fi
19933ac_res=`eval 'as_val=${'$as_ac_var'}
19934		 $as_echo "$as_val"'`
19935	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19936$as_echo "$ac_res" >&6; }
19937as_val=`eval 'as_val=${'$as_ac_var'}
19938		 $as_echo "$as_val"'`
19939   if test "x$as_val" = x""yes; then
19940  cat >>confdefs.h <<_ACEOF
19941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19942_ACEOF
19943
19944fi
19945done
19946
19947  if test $ac_cv_func_getpagesize = no; then
19948    HAVE_GETPAGESIZE=0
19949
19950for ac_header in OS.h
19951do
19952as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19954  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19955$as_echo_n "checking for $ac_header... " >&6; }
19956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957  $as_echo_n "(cached) " >&6
19958fi
19959ac_res=`eval 'as_val=${'$as_ac_Header'}
19960		 $as_echo "$as_val"'`
19961	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19962$as_echo "$ac_res" >&6; }
19963else
19964  # Is the header compilable?
19965{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966$as_echo_n "checking $ac_header usability... " >&6; }
19967cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h.  */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h.  */
19973$ac_includes_default
19974#include <$ac_header>
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (ac_try="$ac_compile"
19978case "(($ac_try" in
19979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980  *) ac_try_echo=$ac_try;;
19981esac
19982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983$as_echo "$ac_try_echo") >&5
19984  (eval "$ac_compile") 2>conftest.er1
19985  ac_status=$?
19986  grep -v '^ *+' conftest.er1 >conftest.err
19987  rm -f conftest.er1
19988  cat conftest.err >&5
19989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); } && {
19991	 test -z "$ac_c_werror_flag" ||
19992	 test ! -s conftest.err
19993       } && test -s conftest.$ac_objext; then
19994  ac_header_compiler=yes
19995else
19996  $as_echo "$as_me: failed program was:" >&5
19997sed 's/^/| /' conftest.$ac_ext >&5
19998
19999	ac_header_compiler=no
20000fi
20001
20002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004$as_echo "$ac_header_compiler" >&6; }
20005
20006# Is the header present?
20007{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008$as_echo_n "checking $ac_header presence... " >&6; }
20009cat >conftest.$ac_ext <<_ACEOF
20010/* confdefs.h.  */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h.  */
20015#include <$ac_header>
20016_ACEOF
20017if { (ac_try="$ac_cpp conftest.$ac_ext"
20018case "(($ac_try" in
20019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020  *) ac_try_echo=$ac_try;;
20021esac
20022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023$as_echo "$ac_try_echo") >&5
20024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025  ac_status=$?
20026  grep -v '^ *+' conftest.er1 >conftest.err
20027  rm -f conftest.er1
20028  cat conftest.err >&5
20029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030  (exit $ac_status); } >/dev/null && {
20031	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032	 test ! -s conftest.err
20033       }; then
20034  ac_header_preproc=yes
20035else
20036  $as_echo "$as_me: failed program was:" >&5
20037sed 's/^/| /' conftest.$ac_ext >&5
20038
20039  ac_header_preproc=no
20040fi
20041
20042rm -f conftest.err conftest.$ac_ext
20043{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044$as_echo "$ac_header_preproc" >&6; }
20045
20046# So?  What about this header?
20047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20048  yes:no: )
20049    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053    ac_header_preproc=yes
20054    ;;
20055  no:yes:* )
20056    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20059$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20060    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20063$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20064    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20068    ( cat <<\_ASBOX
20069## ------------------------------- ##
20070## Report this to bug-wget@gnu.org ##
20071## ------------------------------- ##
20072_ASBOX
20073     ) | sed "s/^/$as_me: WARNING:     /" >&2
20074    ;;
20075esac
20076{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20077$as_echo_n "checking for $ac_header... " >&6; }
20078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079  $as_echo_n "(cached) " >&6
20080else
20081  eval "$as_ac_Header=\$ac_header_preproc"
20082fi
20083ac_res=`eval 'as_val=${'$as_ac_Header'}
20084		 $as_echo "$as_val"'`
20085	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20086$as_echo "$ac_res" >&6; }
20087
20088fi
20089as_val=`eval 'as_val=${'$as_ac_Header'}
20090		 $as_echo "$as_val"'`
20091   if test "x$as_val" = x""yes; then
20092  cat >>confdefs.h <<_ACEOF
20093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20094_ACEOF
20095
20096fi
20097
20098done
20099
20100    if test $ac_cv_header_OS_h = yes; then
20101      HAVE_OS_H=1
20102    fi
20103
20104for ac_header in sys/param.h
20105do
20106as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20108  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20109$as_echo_n "checking for $ac_header... " >&6; }
20110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111  $as_echo_n "(cached) " >&6
20112fi
20113ac_res=`eval 'as_val=${'$as_ac_Header'}
20114		 $as_echo "$as_val"'`
20115	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20116$as_echo "$ac_res" >&6; }
20117else
20118  # Is the header compilable?
20119{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120$as_echo_n "checking $ac_header usability... " >&6; }
20121cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h.  */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h.  */
20127$ac_includes_default
20128#include <$ac_header>
20129_ACEOF
20130rm -f conftest.$ac_objext
20131if { (ac_try="$ac_compile"
20132case "(($ac_try" in
20133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134  *) ac_try_echo=$ac_try;;
20135esac
20136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137$as_echo "$ac_try_echo") >&5
20138  (eval "$ac_compile") 2>conftest.er1
20139  ac_status=$?
20140  grep -v '^ *+' conftest.er1 >conftest.err
20141  rm -f conftest.er1
20142  cat conftest.err >&5
20143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144  (exit $ac_status); } && {
20145	 test -z "$ac_c_werror_flag" ||
20146	 test ! -s conftest.err
20147       } && test -s conftest.$ac_objext; then
20148  ac_header_compiler=yes
20149else
20150  $as_echo "$as_me: failed program was:" >&5
20151sed 's/^/| /' conftest.$ac_ext >&5
20152
20153	ac_header_compiler=no
20154fi
20155
20156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158$as_echo "$ac_header_compiler" >&6; }
20159
20160# Is the header present?
20161{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162$as_echo_n "checking $ac_header presence... " >&6; }
20163cat >conftest.$ac_ext <<_ACEOF
20164/* confdefs.h.  */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h.  */
20169#include <$ac_header>
20170_ACEOF
20171if { (ac_try="$ac_cpp conftest.$ac_ext"
20172case "(($ac_try" in
20173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174  *) ac_try_echo=$ac_try;;
20175esac
20176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20177$as_echo "$ac_try_echo") >&5
20178  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179  ac_status=$?
20180  grep -v '^ *+' conftest.er1 >conftest.err
20181  rm -f conftest.er1
20182  cat conftest.err >&5
20183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184  (exit $ac_status); } >/dev/null && {
20185	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186	 test ! -s conftest.err
20187       }; then
20188  ac_header_preproc=yes
20189else
20190  $as_echo "$as_me: failed program was:" >&5
20191sed 's/^/| /' conftest.$ac_ext >&5
20192
20193  ac_header_preproc=no
20194fi
20195
20196rm -f conftest.err conftest.$ac_ext
20197{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198$as_echo "$ac_header_preproc" >&6; }
20199
20200# So?  What about this header?
20201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202  yes:no: )
20203    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207    ac_header_preproc=yes
20208    ;;
20209  no:yes:* )
20210    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20213$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20214    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20217$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20218    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20222    ( cat <<\_ASBOX
20223## ------------------------------- ##
20224## Report this to bug-wget@gnu.org ##
20225## ------------------------------- ##
20226_ASBOX
20227     ) | sed "s/^/$as_me: WARNING:     /" >&2
20228    ;;
20229esac
20230{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20231$as_echo_n "checking for $ac_header... " >&6; }
20232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233  $as_echo_n "(cached) " >&6
20234else
20235  eval "$as_ac_Header=\$ac_header_preproc"
20236fi
20237ac_res=`eval 'as_val=${'$as_ac_Header'}
20238		 $as_echo "$as_val"'`
20239	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20240$as_echo "$ac_res" >&6; }
20241
20242fi
20243as_val=`eval 'as_val=${'$as_ac_Header'}
20244		 $as_echo "$as_val"'`
20245   if test "x$as_val" = x""yes; then
20246  cat >>confdefs.h <<_ACEOF
20247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20248_ACEOF
20249
20250fi
20251
20252done
20253
20254    if test $ac_cv_header_sys_param_h = yes; then
20255      HAVE_SYS_PARAM_H=1
20256    fi
20257  fi
20258  case "$host_os" in
20259    mingw*)
20260      REPLACE_GETPAGESIZE=1
20261
20262
20263
20264
20265
20266
20267
20268
20269  gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
20270
20271      ;;
20272  esac
20273
20274
20275
20276  GNULIB_GETPAGESIZE=1
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291  gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312  { $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
20313$as_echo_n "checking whether __fsetlocking is declared... " >&6; }
20314if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
20315  $as_echo_n "(cached) " >&6
20316else
20317  cat >conftest.$ac_ext <<_ACEOF
20318/* confdefs.h.  */
20319_ACEOF
20320cat confdefs.h >>conftest.$ac_ext
20321cat >>conftest.$ac_ext <<_ACEOF
20322/* end confdefs.h.  */
20323#include <stdio.h>
20324     #if HAVE_STDIO_EXT_H
20325      #include <stdio_ext.h>
20326     #endif
20327
20328int
20329main ()
20330{
20331#ifndef __fsetlocking
20332  (void) __fsetlocking;
20333#endif
20334
20335  ;
20336  return 0;
20337}
20338_ACEOF
20339rm -f conftest.$ac_objext
20340if { (ac_try="$ac_compile"
20341case "(($ac_try" in
20342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343  *) ac_try_echo=$ac_try;;
20344esac
20345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20346$as_echo "$ac_try_echo") >&5
20347  (eval "$ac_compile") 2>conftest.er1
20348  ac_status=$?
20349  grep -v '^ *+' conftest.er1 >conftest.err
20350  rm -f conftest.er1
20351  cat conftest.err >&5
20352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353  (exit $ac_status); } && {
20354	 test -z "$ac_c_werror_flag" ||
20355	 test ! -s conftest.err
20356       } && test -s conftest.$ac_objext; then
20357  ac_cv_have_decl___fsetlocking=yes
20358else
20359  $as_echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
20362	ac_cv_have_decl___fsetlocking=no
20363fi
20364
20365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366fi
20367{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
20368$as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
20369if test "x$ac_cv_have_decl___fsetlocking" = x""yes; then
20370
20371cat >>confdefs.h <<_ACEOF
20372#define HAVE_DECL___FSETLOCKING 1
20373_ACEOF
20374
20375
20376else
20377  cat >>confdefs.h <<_ACEOF
20378#define HAVE_DECL___FSETLOCKING 0
20379_ACEOF
20380
20381
20382fi
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405  :
20406
20407
20408cat >>confdefs.h <<\_ACEOF
20409#define getpass gnu_getpass
20410_ACEOF
20411
20412
20413
20414
20415  # Autoconf 2.61a.99 and earlier don't support linking a file only
20416  # in VPATH builds.  But since GNUmakefile is for maintainer use
20417  # only, it does not matter if we skip the link with older autoconf.
20418  # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
20419  # builds, so use a shell variable to bypass this.
20420  GNUmakefile=GNUmakefile
20421  ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
20422
20423
20424
20425  { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
20426$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20427if test "${gl_cv_c_inline_effective+set}" = set; then
20428  $as_echo_n "(cached) " >&6
20429else
20430  if test $ac_cv_c_inline = no; then
20431       gl_cv_c_inline_effective=no
20432     else
20433                                          cat >conftest.$ac_ext <<_ACEOF
20434/* confdefs.h.  */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h.  */
20439
20440int
20441main ()
20442{
20443#ifdef __NO_INLINE__
20444               #error "inline is not effective"
20445             #endif
20446  ;
20447  return 0;
20448}
20449_ACEOF
20450rm -f conftest.$ac_objext
20451if { (ac_try="$ac_compile"
20452case "(($ac_try" in
20453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454  *) ac_try_echo=$ac_try;;
20455esac
20456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20457$as_echo "$ac_try_echo") >&5
20458  (eval "$ac_compile") 2>conftest.er1
20459  ac_status=$?
20460  grep -v '^ *+' conftest.er1 >conftest.err
20461  rm -f conftest.er1
20462  cat conftest.err >&5
20463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464  (exit $ac_status); } && {
20465	 test -z "$ac_c_werror_flag" ||
20466	 test ! -s conftest.err
20467       } && test -s conftest.$ac_objext; then
20468  gl_cv_c_inline_effective=yes
20469else
20470  $as_echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473	gl_cv_c_inline_effective=no
20474fi
20475
20476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477     fi
20478
20479fi
20480{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
20481$as_echo "$gl_cv_c_inline_effective" >&6; }
20482  if test $gl_cv_c_inline_effective = yes; then
20483
20484cat >>confdefs.h <<\_ACEOF
20485#define HAVE_INLINE 1
20486_ACEOF
20487
20488  fi
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
20501
20502
20503
20504
20505  { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
20506$as_echo_n "checking whether lseek detects pipes... " >&6; }
20507if test "${gl_cv_func_lseek_pipe+set}" = set; then
20508  $as_echo_n "(cached) " >&6
20509else
20510  if test $cross_compiling = no; then
20511       cat >conftest.$ac_ext <<_ACEOF
20512
20513#include <sys/types.h> /* for off_t */
20514#include <stdio.h> /* for SEEK_CUR */
20515#include <unistd.h>
20516int main ()
20517{
20518  /* Exit with success only if stdin is seekable.  */
20519  return lseek (0, (off_t)0, SEEK_CUR) < 0;
20520}
20521_ACEOF
20522rm -f conftest.$ac_objext conftest$ac_exeext
20523if { (ac_try="$ac_link"
20524case "(($ac_try" in
20525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526  *) ac_try_echo=$ac_try;;
20527esac
20528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529$as_echo "$ac_try_echo") >&5
20530  (eval "$ac_link") 2>conftest.er1
20531  ac_status=$?
20532  grep -v '^ *+' conftest.er1 >conftest.err
20533  rm -f conftest.er1
20534  cat conftest.err >&5
20535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); } && {
20537	 test -z "$ac_c_werror_flag" ||
20538	 test ! -s conftest.err
20539       } && test -s conftest$ac_exeext && {
20540	 test "$cross_compiling" = yes ||
20541	 $as_test_x conftest$ac_exeext
20542       }; then
20543  if test -s conftest$ac_exeext \
20544	     && ./conftest$ac_exeext < conftest.$ac_ext \
20545	     && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
20546	    gl_cv_func_lseek_pipe=yes
20547	  else
20548	    gl_cv_func_lseek_pipe=no
20549	  fi
20550else
20551  $as_echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554	gl_cv_func_lseek_pipe=no
20555fi
20556
20557rm -rf conftest.dSYM
20558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559      conftest$ac_exeext conftest.$ac_ext
20560     else
20561       cat >conftest.$ac_ext <<_ACEOF
20562
20563#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
20564/* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
20565  Choke me.
20566#endif
20567_ACEOF
20568rm -f conftest.$ac_objext
20569if { (ac_try="$ac_compile"
20570case "(($ac_try" in
20571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572  *) ac_try_echo=$ac_try;;
20573esac
20574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575$as_echo "$ac_try_echo") >&5
20576  (eval "$ac_compile") 2>conftest.er1
20577  ac_status=$?
20578  grep -v '^ *+' conftest.er1 >conftest.err
20579  rm -f conftest.er1
20580  cat conftest.err >&5
20581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582  (exit $ac_status); } && {
20583	 test -z "$ac_c_werror_flag" ||
20584	 test ! -s conftest.err
20585       } && test -s conftest.$ac_objext; then
20586  gl_cv_func_lseek_pipe=yes
20587else
20588  $as_echo "$as_me: failed program was:" >&5
20589sed 's/^/| /' conftest.$ac_ext >&5
20590
20591	gl_cv_func_lseek_pipe=no
20592fi
20593
20594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595     fi
20596fi
20597{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
20598$as_echo "$gl_cv_func_lseek_pipe" >&6; }
20599  if test $gl_cv_func_lseek_pipe = no; then
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609  gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
20610
20611
20612  REPLACE_LSEEK=1
20613
20614cat >>confdefs.h <<\_ACEOF
20615#define LSEEK_PIPE_BROKEN 1
20616_ACEOF
20617
20618
20619  fi
20620
20621
20622
20623  GNULIB_LSEEK=1
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20646
20647
20648
20649     { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
20650$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20651if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
20652  $as_echo_n "(cached) " >&6
20653else
20654
20655                  case "$host_os" in
20656              # Guess no on AIX and OSF/1.
20657        osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20658              # Guess yes otherwise.
20659        *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20660      esac
20661      if test $LOCALE_JA != none; then
20662        if test "$cross_compiling" = yes; then
20663  :
20664else
20665  cat >conftest.$ac_ext <<_ACEOF
20666/* confdefs.h.  */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h.  */
20671
20672#include <locale.h>
20673#include <string.h>
20674#include <wchar.h>
20675int main ()
20676{
20677  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20678    {
20679      const char input[] = "B\217\253\344\217\251\316er"; /* "B����er" */
20680      mbstate_t state;
20681      wchar_t wc;
20682
20683      memset (&state, '\0', sizeof (mbstate_t));
20684      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20685        if (mbsinit (&state))
20686          return 1;
20687    }
20688  return 0;
20689}
20690_ACEOF
20691rm -f conftest$ac_exeext
20692if { (ac_try="$ac_link"
20693case "(($ac_try" in
20694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695  *) ac_try_echo=$ac_try;;
20696esac
20697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698$as_echo "$ac_try_echo") >&5
20699  (eval "$ac_link") 2>&5
20700  ac_status=$?
20701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703  { (case "(($ac_try" in
20704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705  *) ac_try_echo=$ac_try;;
20706esac
20707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20708$as_echo "$ac_try_echo") >&5
20709  (eval "$ac_try") 2>&5
20710  ac_status=$?
20711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712  (exit $ac_status); }; }; then
20713  gl_cv_func_mbrtowc_incomplete_state=yes
20714else
20715  $as_echo "$as_me: program exited with status $ac_status" >&5
20716$as_echo "$as_me: failed program was:" >&5
20717sed 's/^/| /' conftest.$ac_ext >&5
20718
20719( exit $ac_status )
20720gl_cv_func_mbrtowc_incomplete_state=no
20721fi
20722rm -rf conftest.dSYM
20723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724fi
20725
20726
20727      fi
20728
20729fi
20730{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20731$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20732
20733
20734
20735
20736     { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
20737$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20738if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
20739  $as_echo_n "(cached) " >&6
20740else
20741
20742                  case "$host_os" in
20743                    # Guess no on Solaris 8.
20744        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20745                    # Guess yes otherwise.
20746        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20747      esac
20748      if test $LOCALE_ZH_CN != none; then
20749        if test "$cross_compiling" = yes; then
20750  :
20751else
20752  cat >conftest.$ac_ext <<_ACEOF
20753/* confdefs.h.  */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h.  */
20758
20759#include <locale.h>
20760#include <stdlib.h>
20761#include <string.h>
20762#include <wchar.h>
20763int main ()
20764{
20765  /* This fails on Solaris 8:
20766     mbrtowc returns 2, and sets wc to 0x00F0.
20767     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
20768  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20769    {
20770      char input[] = "B\250\271\201\060\211\070er"; /* "B����er" */
20771      mbstate_t state;
20772      wchar_t wc;
20773
20774      memset (&state, '\0', sizeof (mbstate_t));
20775      if (mbrtowc (&wc, input + 3, 6, &state) != 4
20776          && mbtowc (&wc, input + 3, 6) == 4)
20777        return 1;
20778    }
20779  return 0;
20780}
20781_ACEOF
20782rm -f conftest$ac_exeext
20783if { (ac_try="$ac_link"
20784case "(($ac_try" in
20785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786  *) ac_try_echo=$ac_try;;
20787esac
20788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789$as_echo "$ac_try_echo") >&5
20790  (eval "$ac_link") 2>&5
20791  ac_status=$?
20792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20794  { (case "(($ac_try" in
20795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796  *) ac_try_echo=$ac_try;;
20797esac
20798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799$as_echo "$ac_try_echo") >&5
20800  (eval "$ac_try") 2>&5
20801  ac_status=$?
20802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803  (exit $ac_status); }; }; then
20804  gl_cv_func_mbrtowc_sanitycheck=yes
20805else
20806  $as_echo "$as_me: program exited with status $ac_status" >&5
20807$as_echo "$as_me: failed program was:" >&5
20808sed 's/^/| /' conftest.$ac_ext >&5
20809
20810( exit $ac_status )
20811gl_cv_func_mbrtowc_sanitycheck=no
20812fi
20813rm -rf conftest.dSYM
20814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20815fi
20816
20817
20818      fi
20819
20820fi
20821{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20822$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20823
20824    REPLACE_MBSTATE_T=0
20825    case "$gl_cv_func_mbrtowc_incomplete_state" in
20826      *yes) ;;
20827      *) REPLACE_MBSTATE_T=1 ;;
20828    esac
20829    case "$gl_cv_func_mbrtowc_sanitycheck" in
20830      *yes) ;;
20831      *) REPLACE_MBSTATE_T=1 ;;
20832    esac
20833  else
20834    REPLACE_MBSTATE_T=1
20835  fi
20836  if test $REPLACE_MBSTATE_T = 1; then
20837
20838
20839  WCHAR_H=wchar.h
20840
20841  fi
20842
20843  if test $REPLACE_MBSTATE_T = 1; then
20844    REPLACE_MBRTOWC=1
20845  fi
20846
20847
20848
20849
20850
20851
20852  if test $ac_cv_func_mbrtowc = no; then
20853    HAVE_MBRTOWC=0
20854  fi
20855  if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
20856
20857
20858
20859     { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
20860$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20861if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
20862  $as_echo_n "(cached) " >&6
20863else
20864
20865                  case "$host_os" in
20866              # Guess no on OSF/1.
20867        osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
20868              # Guess yes otherwise.
20869        *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
20870      esac
20871      if test $LOCALE_FR_UTF8 != none; then
20872        if test "$cross_compiling" = yes; then
20873  :
20874else
20875  cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h.  */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h.  */
20881
20882#include <locale.h>
20883#include <string.h>
20884#include <wchar.h>
20885int main ()
20886{
20887  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20888    {
20889      mbstate_t state;
20890      wchar_t wc;
20891      int ret;
20892
20893      memset (&state, '\0', sizeof (mbstate_t));
20894      wc = (wchar_t) 0xBADFACE;
20895      mbrtowc (&wc, NULL, 5, &state);
20896      /* Check that wc was not modified.  */
20897      if (wc != (wchar_t) 0xBADFACE)
20898        return 1;
20899    }
20900  return 0;
20901}
20902_ACEOF
20903rm -f conftest$ac_exeext
20904if { (ac_try="$ac_link"
20905case "(($ac_try" in
20906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907  *) ac_try_echo=$ac_try;;
20908esac
20909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20910$as_echo "$ac_try_echo") >&5
20911  (eval "$ac_link") 2>&5
20912  ac_status=$?
20913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20915  { (case "(($ac_try" in
20916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917  *) ac_try_echo=$ac_try;;
20918esac
20919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920$as_echo "$ac_try_echo") >&5
20921  (eval "$ac_try") 2>&5
20922  ac_status=$?
20923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924  (exit $ac_status); }; }; then
20925  gl_cv_func_mbrtowc_null_arg=yes
20926else
20927  $as_echo "$as_me: program exited with status $ac_status" >&5
20928$as_echo "$as_me: failed program was:" >&5
20929sed 's/^/| /' conftest.$ac_ext >&5
20930
20931( exit $ac_status )
20932gl_cv_func_mbrtowc_null_arg=no
20933fi
20934rm -rf conftest.dSYM
20935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20936fi
20937
20938
20939      fi
20940
20941fi
20942{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
20943$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
20944
20945
20946
20947
20948
20949     { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
20950$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20951if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
20952  $as_echo_n "(cached) " >&6
20953else
20954
20955                  case "$host_os" in
20956                          # Guess no on HP-UX and Solaris.
20957        hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20958                          # Guess yes otherwise.
20959        *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
20960      esac
20961      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
20962        if test "$cross_compiling" = yes; then
20963  :
20964else
20965  cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h.  */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h.  */
20971
20972#include <locale.h>
20973#include <string.h>
20974#include <wchar.h>
20975int main ()
20976{
20977  /* This fails on Solaris.  */
20978  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20979    {
20980      char input[] = "B\303\274\303\237er"; /* "B����er" */
20981      mbstate_t state;
20982      wchar_t wc;
20983
20984      memset (&state, '\0', sizeof (mbstate_t));
20985      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20986        {
20987          input[1] = '\0';
20988          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20989            return 1;
20990        }
20991    }
20992  /* This fails on HP-UX 11.11.  */
20993  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20994    {
20995      char input[] = "B\217\253\344\217\251\316er"; /* "B����er" */
20996      mbstate_t state;
20997      wchar_t wc;
20998
20999      memset (&state, '\0', sizeof (mbstate_t));
21000      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21001        {
21002          input[1] = '\0';
21003          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
21004            return 1;
21005        }
21006    }
21007  return 0;
21008}
21009_ACEOF
21010rm -f conftest$ac_exeext
21011if { (ac_try="$ac_link"
21012case "(($ac_try" in
21013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014  *) ac_try_echo=$ac_try;;
21015esac
21016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017$as_echo "$ac_try_echo") >&5
21018  (eval "$ac_link") 2>&5
21019  ac_status=$?
21020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022  { (case "(($ac_try" in
21023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024  *) ac_try_echo=$ac_try;;
21025esac
21026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027$as_echo "$ac_try_echo") >&5
21028  (eval "$ac_try") 2>&5
21029  ac_status=$?
21030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031  (exit $ac_status); }; }; then
21032  gl_cv_func_mbrtowc_retval=yes
21033else
21034  $as_echo "$as_me: program exited with status $ac_status" >&5
21035$as_echo "$as_me: failed program was:" >&5
21036sed 's/^/| /' conftest.$ac_ext >&5
21037
21038( exit $ac_status )
21039gl_cv_func_mbrtowc_retval=no
21040fi
21041rm -rf conftest.dSYM
21042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21043fi
21044
21045
21046      fi
21047
21048fi
21049{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
21050$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
21051
21052
21053
21054
21055     { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
21056$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
21057if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
21058  $as_echo_n "(cached) " >&6
21059else
21060
21061                  case "$host_os" in
21062                       # Guess no on Solaris 8 and 9.
21063        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
21064                       # Guess yes otherwise.
21065        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
21066      esac
21067      if test $LOCALE_ZH_CN != none; then
21068        if test "$cross_compiling" = yes; then
21069  :
21070else
21071  cat >conftest.$ac_ext <<_ACEOF
21072/* confdefs.h.  */
21073_ACEOF
21074cat confdefs.h >>conftest.$ac_ext
21075cat >>conftest.$ac_ext <<_ACEOF
21076/* end confdefs.h.  */
21077
21078#include <locale.h>
21079#include <string.h>
21080#include <wchar.h>
21081int main ()
21082{
21083  /* This fails on Solaris 8 and 9.  */
21084  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21085    {
21086      mbstate_t state;
21087      wchar_t wc;
21088
21089      memset (&state, '\0', sizeof (mbstate_t));
21090      if (mbrtowc (&wc, "", 1, &state) != 0)
21091        return 1;
21092    }
21093  return 0;
21094}
21095_ACEOF
21096rm -f conftest$ac_exeext
21097if { (ac_try="$ac_link"
21098case "(($ac_try" in
21099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100  *) ac_try_echo=$ac_try;;
21101esac
21102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103$as_echo "$ac_try_echo") >&5
21104  (eval "$ac_link") 2>&5
21105  ac_status=$?
21106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108  { (case "(($ac_try" in
21109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110  *) ac_try_echo=$ac_try;;
21111esac
21112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113$as_echo "$ac_try_echo") >&5
21114  (eval "$ac_try") 2>&5
21115  ac_status=$?
21116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117  (exit $ac_status); }; }; then
21118  gl_cv_func_mbrtowc_nul_retval=yes
21119else
21120  $as_echo "$as_me: program exited with status $ac_status" >&5
21121$as_echo "$as_me: failed program was:" >&5
21122sed 's/^/| /' conftest.$ac_ext >&5
21123
21124( exit $ac_status )
21125gl_cv_func_mbrtowc_nul_retval=no
21126fi
21127rm -rf conftest.dSYM
21128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21129fi
21130
21131
21132      fi
21133
21134fi
21135{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
21136$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
21137
21138    case "$gl_cv_func_mbrtowc_null_arg" in
21139      *yes) ;;
21140      *)
21141cat >>confdefs.h <<\_ACEOF
21142#define MBRTOWC_NULL_ARG_BUG 1
21143_ACEOF
21144
21145         REPLACE_MBRTOWC=1
21146         ;;
21147    esac
21148    case "$gl_cv_func_mbrtowc_retval" in
21149      *yes) ;;
21150      *)
21151cat >>confdefs.h <<\_ACEOF
21152#define MBRTOWC_RETVAL_BUG 1
21153_ACEOF
21154
21155         REPLACE_MBRTOWC=1
21156         ;;
21157    esac
21158    case "$gl_cv_func_mbrtowc_nul_retval" in
21159      *yes) ;;
21160      *)
21161cat >>confdefs.h <<\_ACEOF
21162#define MBRTOWC_NUL_RETVAL_BUG 1
21163_ACEOF
21164
21165         REPLACE_MBRTOWC=1
21166         ;;
21167    esac
21168  fi
21169  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
21170
21171
21172  WCHAR_H=wchar.h
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
21183
21184
21185  :
21186
21187  fi
21188
21189
21190
21191  GNULIB_MBRTOWC=1
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21214
21215
21216
21217     { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
21218$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21219if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
21220  $as_echo_n "(cached) " >&6
21221else
21222
21223                  case "$host_os" in
21224              # Guess no on AIX and OSF/1.
21225        osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21226              # Guess yes otherwise.
21227        *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21228      esac
21229      if test $LOCALE_JA != none; then
21230        if test "$cross_compiling" = yes; then
21231  :
21232else
21233  cat >conftest.$ac_ext <<_ACEOF
21234/* confdefs.h.  */
21235_ACEOF
21236cat confdefs.h >>conftest.$ac_ext
21237cat >>conftest.$ac_ext <<_ACEOF
21238/* end confdefs.h.  */
21239
21240#include <locale.h>
21241#include <string.h>
21242#include <wchar.h>
21243int main ()
21244{
21245  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21246    {
21247      const char input[] = "B\217\253\344\217\251\316er"; /* "B����er" */
21248      mbstate_t state;
21249      wchar_t wc;
21250
21251      memset (&state, '\0', sizeof (mbstate_t));
21252      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21253        if (mbsinit (&state))
21254          return 1;
21255    }
21256  return 0;
21257}
21258_ACEOF
21259rm -f conftest$ac_exeext
21260if { (ac_try="$ac_link"
21261case "(($ac_try" in
21262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263  *) ac_try_echo=$ac_try;;
21264esac
21265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21266$as_echo "$ac_try_echo") >&5
21267  (eval "$ac_link") 2>&5
21268  ac_status=$?
21269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271  { (case "(($ac_try" in
21272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273  *) ac_try_echo=$ac_try;;
21274esac
21275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21276$as_echo "$ac_try_echo") >&5
21277  (eval "$ac_try") 2>&5
21278  ac_status=$?
21279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280  (exit $ac_status); }; }; then
21281  gl_cv_func_mbrtowc_incomplete_state=yes
21282else
21283  $as_echo "$as_me: program exited with status $ac_status" >&5
21284$as_echo "$as_me: failed program was:" >&5
21285sed 's/^/| /' conftest.$ac_ext >&5
21286
21287( exit $ac_status )
21288gl_cv_func_mbrtowc_incomplete_state=no
21289fi
21290rm -rf conftest.dSYM
21291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21292fi
21293
21294
21295      fi
21296
21297fi
21298{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21299$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21300
21301
21302
21303
21304     { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
21305$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21306if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
21307  $as_echo_n "(cached) " >&6
21308else
21309
21310                  case "$host_os" in
21311                    # Guess no on Solaris 8.
21312        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21313                    # Guess yes otherwise.
21314        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21315      esac
21316      if test $LOCALE_ZH_CN != none; then
21317        if test "$cross_compiling" = yes; then
21318  :
21319else
21320  cat >conftest.$ac_ext <<_ACEOF
21321/* confdefs.h.  */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h.  */
21326
21327#include <locale.h>
21328#include <stdlib.h>
21329#include <string.h>
21330#include <wchar.h>
21331int main ()
21332{
21333  /* This fails on Solaris 8:
21334     mbrtowc returns 2, and sets wc to 0x00F0.
21335     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
21336  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21337    {
21338      char input[] = "B\250\271\201\060\211\070er"; /* "B����er" */
21339      mbstate_t state;
21340      wchar_t wc;
21341
21342      memset (&state, '\0', sizeof (mbstate_t));
21343      if (mbrtowc (&wc, input + 3, 6, &state) != 4
21344          && mbtowc (&wc, input + 3, 6) == 4)
21345        return 1;
21346    }
21347  return 0;
21348}
21349_ACEOF
21350rm -f conftest$ac_exeext
21351if { (ac_try="$ac_link"
21352case "(($ac_try" in
21353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354  *) ac_try_echo=$ac_try;;
21355esac
21356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21357$as_echo "$ac_try_echo") >&5
21358  (eval "$ac_link") 2>&5
21359  ac_status=$?
21360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362  { (case "(($ac_try" in
21363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364  *) ac_try_echo=$ac_try;;
21365esac
21366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21367$as_echo "$ac_try_echo") >&5
21368  (eval "$ac_try") 2>&5
21369  ac_status=$?
21370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371  (exit $ac_status); }; }; then
21372  gl_cv_func_mbrtowc_sanitycheck=yes
21373else
21374  $as_echo "$as_me: program exited with status $ac_status" >&5
21375$as_echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378( exit $ac_status )
21379gl_cv_func_mbrtowc_sanitycheck=no
21380fi
21381rm -rf conftest.dSYM
21382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21383fi
21384
21385
21386      fi
21387
21388fi
21389{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21390$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21391
21392    REPLACE_MBSTATE_T=0
21393    case "$gl_cv_func_mbrtowc_incomplete_state" in
21394      *yes) ;;
21395      *) REPLACE_MBSTATE_T=1 ;;
21396    esac
21397    case "$gl_cv_func_mbrtowc_sanitycheck" in
21398      *yes) ;;
21399      *) REPLACE_MBSTATE_T=1 ;;
21400    esac
21401  else
21402    REPLACE_MBSTATE_T=1
21403  fi
21404  if test $REPLACE_MBSTATE_T = 1; then
21405
21406
21407  WCHAR_H=wchar.h
21408
21409  fi
21410
21411  if test $REPLACE_MBSTATE_T = 1; then
21412    REPLACE_MBSINIT=1
21413  fi
21414
21415
21416
21417
21418
21419
21420  if test $ac_cv_func_mbsinit = no; then
21421    HAVE_MBSINIT=0
21422  fi
21423  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
21424
21425
21426  WCHAR_H=wchar.h
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
21437
21438
21439  :
21440
21441  fi
21442
21443
21444
21445  GNULIB_MBSINIT=1
21446
21447
21448
21449
21450  GNULIB_MEMCHR=1
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462  gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475  gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
21476
21477
21478
21479
21480  if test $gl_cv_func_malloc_posix = yes; then
21481    HAVE_REALLOC_POSIX=1
21482
21483cat >>confdefs.h <<\_ACEOF
21484#define HAVE_REALLOC_POSIX 1
21485_ACEOF
21486
21487  else
21488
21489
21490
21491
21492
21493
21494
21495
21496  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
21497
21498    HAVE_REALLOC_POSIX=0
21499  fi
21500
21501
21502
21503
21504  GNULIB_REALLOC_POSIX=1
21505
21506
21507
21508
21509  # Define two additional variables used in the Makefile substitution.
21510
21511  if test "$ac_cv_header_stdbool_h" = yes; then
21512    STDBOOL_H=''
21513  else
21514    STDBOOL_H='stdbool.h'
21515  fi
21516
21517
21518  if test "$ac_cv_type__Bool" = yes; then
21519    HAVE__BOOL=1
21520  else
21521    HAVE__BOOL=0
21522  fi
21523
21524
21525
21526
21527
21528  if test $gt_cv_c_wchar_t = no; then
21529    HAVE_WCHAR_T=0
21530    STDDEF_H=stddef.h
21531  fi
21532  { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
21533$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21534if test "${gl_cv_decl_null_works+set}" = set; then
21535  $as_echo_n "(cached) " >&6
21536else
21537  cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h.  */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h.  */
21543#include <stddef.h>
21544      int test[2 * (sizeof NULL == sizeof (void *)) -1];
21545
21546int
21547main ()
21548{
21549
21550  ;
21551  return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext
21555if { (ac_try="$ac_compile"
21556case "(($ac_try" in
21557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558  *) ac_try_echo=$ac_try;;
21559esac
21560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561$as_echo "$ac_try_echo") >&5
21562  (eval "$ac_compile") 2>conftest.er1
21563  ac_status=$?
21564  grep -v '^ *+' conftest.er1 >conftest.err
21565  rm -f conftest.er1
21566  cat conftest.err >&5
21567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568  (exit $ac_status); } && {
21569	 test -z "$ac_c_werror_flag" ||
21570	 test ! -s conftest.err
21571       } && test -s conftest.$ac_objext; then
21572  gl_cv_decl_null_works=yes
21573else
21574  $as_echo "$as_me: failed program was:" >&5
21575sed 's/^/| /' conftest.$ac_ext >&5
21576
21577	gl_cv_decl_null_works=no
21578fi
21579
21580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581fi
21582{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
21583$as_echo "$gl_cv_decl_null_works" >&6; }
21584  if test $gl_cv_decl_null_works = no; then
21585    REPLACE_NULL=1
21586    STDDEF_H=stddef.h
21587  fi
21588  if test -n "$STDDEF_H"; then
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600     if test $gl_cv_have_include_next = yes; then
21601       gl_cv_next_stddef_h='<'stddef.h'>'
21602     else
21603       { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
21604$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21605if test "${gl_cv_next_stddef_h+set}" = set; then
21606  $as_echo_n "(cached) " >&6
21607else
21608
21609	  if test $ac_cv_header_stddef_h = yes; then
21610	    cat >conftest.$ac_ext <<_ACEOF
21611/* confdefs.h.  */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h.  */
21616#include <stddef.h>
21617
21618_ACEOF
21619	    	    	    	    	    	    	    	    case "$host_os" in
21620	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
21621	      *)    gl_absname_cpp="$ac_cpp" ;;
21622	    esac
21623	    	    	    	    gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21624	       sed -n '\#/stddef.h#{
21625		 s#.*"\(.*/stddef.h\)".*#\1#
21626		 s#^/[^/]#//&#
21627		 p
21628		 q
21629	       }'`'"'
21630	  else
21631	    gl_cv_next_stddef_h='<'stddef.h'>'
21632	  fi
21633
21634fi
21635{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
21636$as_echo "$gl_cv_next_stddef_h" >&6; }
21637     fi
21638     NEXT_STDDEF_H=$gl_cv_next_stddef_h
21639
21640     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21641       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21642       gl_next_as_first_directive='<'stddef.h'>'
21643     else
21644       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21645       gl_next_as_first_directive=$gl_cv_next_stddef_h
21646     fi
21647     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21648
21649
21650
21651  fi
21652
21653
21654
21655
21656  if test $ac_cv_type_long_long_int = yes; then
21657    HAVE_LONG_LONG_INT=1
21658  else
21659    HAVE_LONG_LONG_INT=0
21660  fi
21661
21662
21663  if test $ac_cv_type_unsigned_long_long_int = yes; then
21664    HAVE_UNSIGNED_LONG_LONG_INT=1
21665  else
21666    HAVE_UNSIGNED_LONG_LONG_INT=0
21667  fi
21668
21669
21670      if test $ac_cv_header_inttypes_h = yes; then
21671    HAVE_INTTYPES_H=1
21672  else
21673    HAVE_INTTYPES_H=0
21674  fi
21675
21676
21677      if test $ac_cv_header_sys_types_h = yes; then
21678    HAVE_SYS_TYPES_H=1
21679  else
21680    HAVE_SYS_TYPES_H=0
21681  fi
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695     if test $gl_cv_have_include_next = yes; then
21696       gl_cv_next_stdint_h='<'stdint.h'>'
21697     else
21698       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
21699$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21700if test "${gl_cv_next_stdint_h+set}" = set; then
21701  $as_echo_n "(cached) " >&6
21702else
21703
21704	  if test $ac_cv_header_stdint_h = yes; then
21705	    cat >conftest.$ac_ext <<_ACEOF
21706/* confdefs.h.  */
21707_ACEOF
21708cat confdefs.h >>conftest.$ac_ext
21709cat >>conftest.$ac_ext <<_ACEOF
21710/* end confdefs.h.  */
21711#include <stdint.h>
21712
21713_ACEOF
21714	    	    	    	    	    	    	    	    case "$host_os" in
21715	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
21716	      *)    gl_absname_cpp="$ac_cpp" ;;
21717	    esac
21718	    	    	    	    gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21719	       sed -n '\#/stdint.h#{
21720		 s#.*"\(.*/stdint.h\)".*#\1#
21721		 s#^/[^/]#//&#
21722		 p
21723		 q
21724	       }'`'"'
21725	  else
21726	    gl_cv_next_stdint_h='<'stdint.h'>'
21727	  fi
21728
21729fi
21730{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
21731$as_echo "$gl_cv_next_stdint_h" >&6; }
21732     fi
21733     NEXT_STDINT_H=$gl_cv_next_stdint_h
21734
21735     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21736       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21737       gl_next_as_first_directive='<'stdint.h'>'
21738     else
21739       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21740       gl_next_as_first_directive=$gl_cv_next_stdint_h
21741     fi
21742     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21743
21744
21745
21746  if test $ac_cv_header_stdint_h = yes; then
21747    HAVE_STDINT_H=1
21748  else
21749    HAVE_STDINT_H=0
21750  fi
21751
21752
21753    if test $ac_cv_header_stdint_h = yes; then
21754    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
21755$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21756if test "${gl_cv_header_working_stdint_h+set}" = set; then
21757  $as_echo_n "(cached) " >&6
21758else
21759  gl_cv_header_working_stdint_h=no
21760       cat >conftest.$ac_ext <<_ACEOF
21761
21762         /* confdefs.h.  */
21763_ACEOF
21764cat confdefs.h >>conftest.$ac_ext
21765cat >>conftest.$ac_ext <<_ACEOF
21766/* end confdefs.h.  */
21767
21768#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21769#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21770#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21771#include <stdint.h>
21772/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
21773#if !(defined WCHAR_MIN && defined WCHAR_MAX)
21774#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21775#endif
21776
21777
21778  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21779     included before <wchar.h>.  */
21780  #include <stddef.h>
21781  #include <signal.h>
21782  #if HAVE_WCHAR_H
21783  # include <stdio.h>
21784  # include <time.h>
21785  # include <wchar.h>
21786  #endif
21787
21788
21789#ifdef INT8_MAX
21790int8_t a1 = INT8_MAX;
21791int8_t a1min = INT8_MIN;
21792#endif
21793#ifdef INT16_MAX
21794int16_t a2 = INT16_MAX;
21795int16_t a2min = INT16_MIN;
21796#endif
21797#ifdef INT32_MAX
21798int32_t a3 = INT32_MAX;
21799int32_t a3min = INT32_MIN;
21800#endif
21801#ifdef INT64_MAX
21802int64_t a4 = INT64_MAX;
21803int64_t a4min = INT64_MIN;
21804#endif
21805#ifdef UINT8_MAX
21806uint8_t b1 = UINT8_MAX;
21807#else
21808typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21809#endif
21810#ifdef UINT16_MAX
21811uint16_t b2 = UINT16_MAX;
21812#endif
21813#ifdef UINT32_MAX
21814uint32_t b3 = UINT32_MAX;
21815#endif
21816#ifdef UINT64_MAX
21817uint64_t b4 = UINT64_MAX;
21818#endif
21819int_least8_t c1 = INT8_C (0x7f);
21820int_least8_t c1max = INT_LEAST8_MAX;
21821int_least8_t c1min = INT_LEAST8_MIN;
21822int_least16_t c2 = INT16_C (0x7fff);
21823int_least16_t c2max = INT_LEAST16_MAX;
21824int_least16_t c2min = INT_LEAST16_MIN;
21825int_least32_t c3 = INT32_C (0x7fffffff);
21826int_least32_t c3max = INT_LEAST32_MAX;
21827int_least32_t c3min = INT_LEAST32_MIN;
21828int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21829int_least64_t c4max = INT_LEAST64_MAX;
21830int_least64_t c4min = INT_LEAST64_MIN;
21831uint_least8_t d1 = UINT8_C (0xff);
21832uint_least8_t d1max = UINT_LEAST8_MAX;
21833uint_least16_t d2 = UINT16_C (0xffff);
21834uint_least16_t d2max = UINT_LEAST16_MAX;
21835uint_least32_t d3 = UINT32_C (0xffffffff);
21836uint_least32_t d3max = UINT_LEAST32_MAX;
21837uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21838uint_least64_t d4max = UINT_LEAST64_MAX;
21839int_fast8_t e1 = INT_FAST8_MAX;
21840int_fast8_t e1min = INT_FAST8_MIN;
21841int_fast16_t e2 = INT_FAST16_MAX;
21842int_fast16_t e2min = INT_FAST16_MIN;
21843int_fast32_t e3 = INT_FAST32_MAX;
21844int_fast32_t e3min = INT_FAST32_MIN;
21845int_fast64_t e4 = INT_FAST64_MAX;
21846int_fast64_t e4min = INT_FAST64_MIN;
21847uint_fast8_t f1 = UINT_FAST8_MAX;
21848uint_fast16_t f2 = UINT_FAST16_MAX;
21849uint_fast32_t f3 = UINT_FAST32_MAX;
21850uint_fast64_t f4 = UINT_FAST64_MAX;
21851#ifdef INTPTR_MAX
21852intptr_t g = INTPTR_MAX;
21853intptr_t gmin = INTPTR_MIN;
21854#endif
21855#ifdef UINTPTR_MAX
21856uintptr_t h = UINTPTR_MAX;
21857#endif
21858intmax_t i = INTMAX_MAX;
21859uintmax_t j = UINTMAX_MAX;
21860
21861#include <limits.h> /* for CHAR_BIT */
21862#define TYPE_MINIMUM(t) \
21863  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
21864#define TYPE_MAXIMUM(t) \
21865  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
21866struct s {
21867  int check_PTRDIFF:
21868      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21869      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21870      ? 1 : -1;
21871  /* Detect bug in FreeBSD 6.0 / ia64.  */
21872  int check_SIG_ATOMIC:
21873      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21874      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21875      ? 1 : -1;
21876  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21877  int check_WCHAR:
21878      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21879      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21880      ? 1 : -1;
21881  /* Detect bug in mingw.  */
21882  int check_WINT:
21883      WINT_MIN == TYPE_MINIMUM (wint_t)
21884      && WINT_MAX == TYPE_MAXIMUM (wint_t)
21885      ? 1 : -1;
21886
21887  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
21888  int check_UINT8_C:
21889        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21890  int check_UINT16_C:
21891        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21892
21893  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
21894#ifdef UINT8_MAX
21895  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21896#endif
21897#ifdef UINT16_MAX
21898  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21899#endif
21900#ifdef UINT32_MAX
21901  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21902#endif
21903#ifdef UINT64_MAX
21904  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21905#endif
21906  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21907  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21908  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21909  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21910  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21911  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21912  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21913  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21914  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21915  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21916  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21917};
21918
21919int
21920main ()
21921{
21922
21923  ;
21924  return 0;
21925}
21926_ACEOF
21927rm -f conftest.$ac_objext
21928if { (ac_try="$ac_compile"
21929case "(($ac_try" in
21930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931  *) ac_try_echo=$ac_try;;
21932esac
21933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934$as_echo "$ac_try_echo") >&5
21935  (eval "$ac_compile") 2>conftest.er1
21936  ac_status=$?
21937  grep -v '^ *+' conftest.er1 >conftest.err
21938  rm -f conftest.er1
21939  cat conftest.err >&5
21940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941  (exit $ac_status); } && {
21942	 test -z "$ac_c_werror_flag" ||
21943	 test ! -s conftest.err
21944       } && test -s conftest.$ac_objext; then
21945                                                    if test "$cross_compiling" = yes; then
21946                 gl_cv_header_working_stdint_h=yes
21947
21948else
21949  cat >conftest.$ac_ext <<_ACEOF
21950
21951            /* confdefs.h.  */
21952_ACEOF
21953cat confdefs.h >>conftest.$ac_ext
21954cat >>conftest.$ac_ext <<_ACEOF
21955/* end confdefs.h.  */
21956
21957#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21958#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21959#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21960#include <stdint.h>
21961
21962
21963  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21964     included before <wchar.h>.  */
21965  #include <stddef.h>
21966  #include <signal.h>
21967  #if HAVE_WCHAR_H
21968  # include <stdio.h>
21969  # include <time.h>
21970  # include <wchar.h>
21971  #endif
21972
21973
21974#include <stdio.h>
21975#include <string.h>
21976#define MVAL(macro) MVAL1(macro)
21977#define MVAL1(expression) #expression
21978static const char *macro_values[] =
21979  {
21980#ifdef INT8_MAX
21981    MVAL (INT8_MAX),
21982#endif
21983#ifdef INT16_MAX
21984    MVAL (INT16_MAX),
21985#endif
21986#ifdef INT32_MAX
21987    MVAL (INT32_MAX),
21988#endif
21989#ifdef INT64_MAX
21990    MVAL (INT64_MAX),
21991#endif
21992#ifdef UINT8_MAX
21993    MVAL (UINT8_MAX),
21994#endif
21995#ifdef UINT16_MAX
21996    MVAL (UINT16_MAX),
21997#endif
21998#ifdef UINT32_MAX
21999    MVAL (UINT32_MAX),
22000#endif
22001#ifdef UINT64_MAX
22002    MVAL (UINT64_MAX),
22003#endif
22004    NULL
22005  };
22006
22007int
22008main ()
22009{
22010
22011  const char **mv;
22012  for (mv = macro_values; *mv != NULL; mv++)
22013    {
22014      const char *value = *mv;
22015      /* Test whether it looks like a cast expression.  */
22016      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
22017          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
22018          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
22019          || strncmp (value, "((int)"/*)*/, 6) == 0
22020          || strncmp (value, "((signed short)"/*)*/, 15) == 0
22021          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
22022        return 1;
22023    }
22024  return 0;
22025
22026  ;
22027  return 0;
22028}
22029_ACEOF
22030rm -f conftest$ac_exeext
22031if { (ac_try="$ac_link"
22032case "(($ac_try" in
22033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034  *) ac_try_echo=$ac_try;;
22035esac
22036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037$as_echo "$ac_try_echo") >&5
22038  (eval "$ac_link") 2>&5
22039  ac_status=$?
22040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22042  { (case "(($ac_try" in
22043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044  *) ac_try_echo=$ac_try;;
22045esac
22046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047$as_echo "$ac_try_echo") >&5
22048  (eval "$ac_try") 2>&5
22049  ac_status=$?
22050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051  (exit $ac_status); }; }; then
22052  gl_cv_header_working_stdint_h=yes
22053else
22054  $as_echo "$as_me: program exited with status $ac_status" >&5
22055$as_echo "$as_me: failed program was:" >&5
22056sed 's/^/| /' conftest.$ac_ext >&5
22057
22058fi
22059rm -rf conftest.dSYM
22060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22061fi
22062
22063
22064
22065else
22066  $as_echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069
22070fi
22071
22072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073
22074fi
22075{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
22076$as_echo "$gl_cv_header_working_stdint_h" >&6; }
22077  fi
22078  if test "$gl_cv_header_working_stdint_h" = yes; then
22079    STDINT_H=
22080  else
22081
22082
22083for ac_header in sys/inttypes.h sys/bitypes.h
22084do
22085as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22088$as_echo_n "checking for $ac_header... " >&6; }
22089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090  $as_echo_n "(cached) " >&6
22091fi
22092ac_res=`eval 'as_val=${'$as_ac_Header'}
22093		 $as_echo "$as_val"'`
22094	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22095$as_echo "$ac_res" >&6; }
22096else
22097  # Is the header compilable?
22098{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22099$as_echo_n "checking $ac_header usability... " >&6; }
22100cat >conftest.$ac_ext <<_ACEOF
22101/* confdefs.h.  */
22102_ACEOF
22103cat confdefs.h >>conftest.$ac_ext
22104cat >>conftest.$ac_ext <<_ACEOF
22105/* end confdefs.h.  */
22106$ac_includes_default
22107#include <$ac_header>
22108_ACEOF
22109rm -f conftest.$ac_objext
22110if { (ac_try="$ac_compile"
22111case "(($ac_try" in
22112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113  *) ac_try_echo=$ac_try;;
22114esac
22115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22116$as_echo "$ac_try_echo") >&5
22117  (eval "$ac_compile") 2>conftest.er1
22118  ac_status=$?
22119  grep -v '^ *+' conftest.er1 >conftest.err
22120  rm -f conftest.er1
22121  cat conftest.err >&5
22122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123  (exit $ac_status); } && {
22124	 test -z "$ac_c_werror_flag" ||
22125	 test ! -s conftest.err
22126       } && test -s conftest.$ac_objext; then
22127  ac_header_compiler=yes
22128else
22129  $as_echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132	ac_header_compiler=no
22133fi
22134
22135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22137$as_echo "$ac_header_compiler" >&6; }
22138
22139# Is the header present?
22140{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22141$as_echo_n "checking $ac_header presence... " >&6; }
22142cat >conftest.$ac_ext <<_ACEOF
22143/* confdefs.h.  */
22144_ACEOF
22145cat confdefs.h >>conftest.$ac_ext
22146cat >>conftest.$ac_ext <<_ACEOF
22147/* end confdefs.h.  */
22148#include <$ac_header>
22149_ACEOF
22150if { (ac_try="$ac_cpp conftest.$ac_ext"
22151case "(($ac_try" in
22152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153  *) ac_try_echo=$ac_try;;
22154esac
22155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156$as_echo "$ac_try_echo") >&5
22157  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22158  ac_status=$?
22159  grep -v '^ *+' conftest.er1 >conftest.err
22160  rm -f conftest.er1
22161  cat conftest.err >&5
22162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163  (exit $ac_status); } >/dev/null && {
22164	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165	 test ! -s conftest.err
22166       }; then
22167  ac_header_preproc=yes
22168else
22169  $as_echo "$as_me: failed program was:" >&5
22170sed 's/^/| /' conftest.$ac_ext >&5
22171
22172  ac_header_preproc=no
22173fi
22174
22175rm -f conftest.err conftest.$ac_ext
22176{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177$as_echo "$ac_header_preproc" >&6; }
22178
22179# So?  What about this header?
22180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22181  yes:no: )
22182    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186    ac_header_preproc=yes
22187    ;;
22188  no:yes:* )
22189    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22192$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22196$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22197    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22201    ( cat <<\_ASBOX
22202## ------------------------------- ##
22203## Report this to bug-wget@gnu.org ##
22204## ------------------------------- ##
22205_ASBOX
22206     ) | sed "s/^/$as_me: WARNING:     /" >&2
22207    ;;
22208esac
22209{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22210$as_echo_n "checking for $ac_header... " >&6; }
22211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22212  $as_echo_n "(cached) " >&6
22213else
22214  eval "$as_ac_Header=\$ac_header_preproc"
22215fi
22216ac_res=`eval 'as_val=${'$as_ac_Header'}
22217		 $as_echo "$as_val"'`
22218	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22219$as_echo "$ac_res" >&6; }
22220
22221fi
22222as_val=`eval 'as_val=${'$as_ac_Header'}
22223		 $as_echo "$as_val"'`
22224   if test "x$as_val" = x""yes; then
22225  cat >>confdefs.h <<_ACEOF
22226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227_ACEOF
22228
22229fi
22230
22231done
22232
22233    if test $ac_cv_header_sys_inttypes_h = yes; then
22234      HAVE_SYS_INTTYPES_H=1
22235    else
22236      HAVE_SYS_INTTYPES_H=0
22237    fi
22238
22239    if test $ac_cv_header_sys_bitypes_h = yes; then
22240      HAVE_SYS_BITYPES_H=1
22241    else
22242      HAVE_SYS_BITYPES_H=0
22243    fi
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255  if test $APPLE_UNIVERSAL_BUILD = 0; then
22256
22257
22258
22259
22260  for gltype in ptrdiff_t size_t ; do
22261    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22262$as_echo_n "checking for bit size of $gltype... " >&6; }
22263if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22264  $as_echo_n "(cached) " >&6
22265else
22266  if test "$cross_compiling" = yes; then
22267  # Depending upon the size, compute the lo and hi bounds.
22268cat >conftest.$ac_ext <<_ACEOF
22269/* confdefs.h.  */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h.  */
22274
22275  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22276     included before <wchar.h>.  */
22277  #include <stddef.h>
22278  #include <signal.h>
22279  #if HAVE_WCHAR_H
22280  # include <stdio.h>
22281  # include <time.h>
22282  # include <wchar.h>
22283  #endif
22284
22285#include <limits.h>
22286int
22287main ()
22288{
22289static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22290test_array [0] = 0
22291
22292  ;
22293  return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext
22297if { (ac_try="$ac_compile"
22298case "(($ac_try" in
22299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300  *) ac_try_echo=$ac_try;;
22301esac
22302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303$as_echo "$ac_try_echo") >&5
22304  (eval "$ac_compile") 2>conftest.er1
22305  ac_status=$?
22306  grep -v '^ *+' conftest.er1 >conftest.err
22307  rm -f conftest.er1
22308  cat conftest.err >&5
22309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310  (exit $ac_status); } && {
22311	 test -z "$ac_c_werror_flag" ||
22312	 test ! -s conftest.err
22313       } && test -s conftest.$ac_objext; then
22314  ac_lo=0 ac_mid=0
22315  while :; do
22316    cat >conftest.$ac_ext <<_ACEOF
22317/* confdefs.h.  */
22318_ACEOF
22319cat confdefs.h >>conftest.$ac_ext
22320cat >>conftest.$ac_ext <<_ACEOF
22321/* end confdefs.h.  */
22322
22323  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22324     included before <wchar.h>.  */
22325  #include <stddef.h>
22326  #include <signal.h>
22327  #if HAVE_WCHAR_H
22328  # include <stdio.h>
22329  # include <time.h>
22330  # include <wchar.h>
22331  #endif
22332
22333#include <limits.h>
22334int
22335main ()
22336{
22337static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22338test_array [0] = 0
22339
22340  ;
22341  return 0;
22342}
22343_ACEOF
22344rm -f conftest.$ac_objext
22345if { (ac_try="$ac_compile"
22346case "(($ac_try" in
22347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348  *) ac_try_echo=$ac_try;;
22349esac
22350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351$as_echo "$ac_try_echo") >&5
22352  (eval "$ac_compile") 2>conftest.er1
22353  ac_status=$?
22354  grep -v '^ *+' conftest.er1 >conftest.err
22355  rm -f conftest.er1
22356  cat conftest.err >&5
22357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358  (exit $ac_status); } && {
22359	 test -z "$ac_c_werror_flag" ||
22360	 test ! -s conftest.err
22361       } && test -s conftest.$ac_objext; then
22362  ac_hi=$ac_mid; break
22363else
22364  $as_echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
22367	ac_lo=`expr $ac_mid + 1`
22368			if test $ac_lo -le $ac_mid; then
22369			  ac_lo= ac_hi=
22370			  break
22371			fi
22372			ac_mid=`expr 2 '*' $ac_mid + 1`
22373fi
22374
22375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376  done
22377else
22378  $as_echo "$as_me: failed program was:" >&5
22379sed 's/^/| /' conftest.$ac_ext >&5
22380
22381	cat >conftest.$ac_ext <<_ACEOF
22382/* confdefs.h.  */
22383_ACEOF
22384cat confdefs.h >>conftest.$ac_ext
22385cat >>conftest.$ac_ext <<_ACEOF
22386/* end confdefs.h.  */
22387
22388  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22389     included before <wchar.h>.  */
22390  #include <stddef.h>
22391  #include <signal.h>
22392  #if HAVE_WCHAR_H
22393  # include <stdio.h>
22394  # include <time.h>
22395  # include <wchar.h>
22396  #endif
22397
22398#include <limits.h>
22399int
22400main ()
22401{
22402static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22403test_array [0] = 0
22404
22405  ;
22406  return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext
22410if { (ac_try="$ac_compile"
22411case "(($ac_try" in
22412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413  *) ac_try_echo=$ac_try;;
22414esac
22415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22416$as_echo "$ac_try_echo") >&5
22417  (eval "$ac_compile") 2>conftest.er1
22418  ac_status=$?
22419  grep -v '^ *+' conftest.er1 >conftest.err
22420  rm -f conftest.er1
22421  cat conftest.err >&5
22422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423  (exit $ac_status); } && {
22424	 test -z "$ac_c_werror_flag" ||
22425	 test ! -s conftest.err
22426       } && test -s conftest.$ac_objext; then
22427  ac_hi=-1 ac_mid=-1
22428  while :; do
22429    cat >conftest.$ac_ext <<_ACEOF
22430/* confdefs.h.  */
22431_ACEOF
22432cat confdefs.h >>conftest.$ac_ext
22433cat >>conftest.$ac_ext <<_ACEOF
22434/* end confdefs.h.  */
22435
22436  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22437     included before <wchar.h>.  */
22438  #include <stddef.h>
22439  #include <signal.h>
22440  #if HAVE_WCHAR_H
22441  # include <stdio.h>
22442  # include <time.h>
22443  # include <wchar.h>
22444  #endif
22445
22446#include <limits.h>
22447int
22448main ()
22449{
22450static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22451test_array [0] = 0
22452
22453  ;
22454  return 0;
22455}
22456_ACEOF
22457rm -f conftest.$ac_objext
22458if { (ac_try="$ac_compile"
22459case "(($ac_try" in
22460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461  *) ac_try_echo=$ac_try;;
22462esac
22463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22464$as_echo "$ac_try_echo") >&5
22465  (eval "$ac_compile") 2>conftest.er1
22466  ac_status=$?
22467  grep -v '^ *+' conftest.er1 >conftest.err
22468  rm -f conftest.er1
22469  cat conftest.err >&5
22470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471  (exit $ac_status); } && {
22472	 test -z "$ac_c_werror_flag" ||
22473	 test ! -s conftest.err
22474       } && test -s conftest.$ac_objext; then
22475  ac_lo=$ac_mid; break
22476else
22477  $as_echo "$as_me: failed program was:" >&5
22478sed 's/^/| /' conftest.$ac_ext >&5
22479
22480	ac_hi=`expr '(' $ac_mid ')' - 1`
22481			if test $ac_mid -le $ac_hi; then
22482			  ac_lo= ac_hi=
22483			  break
22484			fi
22485			ac_mid=`expr 2 '*' $ac_mid`
22486fi
22487
22488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489  done
22490else
22491  $as_echo "$as_me: failed program was:" >&5
22492sed 's/^/| /' conftest.$ac_ext >&5
22493
22494	ac_lo= ac_hi=
22495fi
22496
22497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498fi
22499
22500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501# Binary search between lo and hi bounds.
22502while test "x$ac_lo" != "x$ac_hi"; do
22503  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22504  cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h.  */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h.  */
22510
22511  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22512     included before <wchar.h>.  */
22513  #include <stddef.h>
22514  #include <signal.h>
22515  #if HAVE_WCHAR_H
22516  # include <stdio.h>
22517  # include <time.h>
22518  # include <wchar.h>
22519  #endif
22520
22521#include <limits.h>
22522int
22523main ()
22524{
22525static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22526test_array [0] = 0
22527
22528  ;
22529  return 0;
22530}
22531_ACEOF
22532rm -f conftest.$ac_objext
22533if { (ac_try="$ac_compile"
22534case "(($ac_try" in
22535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536  *) ac_try_echo=$ac_try;;
22537esac
22538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539$as_echo "$ac_try_echo") >&5
22540  (eval "$ac_compile") 2>conftest.er1
22541  ac_status=$?
22542  grep -v '^ *+' conftest.er1 >conftest.err
22543  rm -f conftest.er1
22544  cat conftest.err >&5
22545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546  (exit $ac_status); } && {
22547	 test -z "$ac_c_werror_flag" ||
22548	 test ! -s conftest.err
22549       } && test -s conftest.$ac_objext; then
22550  ac_hi=$ac_mid
22551else
22552  $as_echo "$as_me: failed program was:" >&5
22553sed 's/^/| /' conftest.$ac_ext >&5
22554
22555	ac_lo=`expr '(' $ac_mid ')' + 1`
22556fi
22557
22558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559done
22560case $ac_lo in
22561?*) result=$ac_lo;;
22562'') result=unknown ;;
22563esac
22564else
22565  cat >conftest.$ac_ext <<_ACEOF
22566/* confdefs.h.  */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h.  */
22571
22572  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22573     included before <wchar.h>.  */
22574  #include <stddef.h>
22575  #include <signal.h>
22576  #if HAVE_WCHAR_H
22577  # include <stdio.h>
22578  # include <time.h>
22579  # include <wchar.h>
22580  #endif
22581
22582#include <limits.h>
22583static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
22584static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
22585#include <stdio.h>
22586#include <stdlib.h>
22587int
22588main ()
22589{
22590
22591  FILE *f = fopen ("conftest.val", "w");
22592  if (! f)
22593    return 1;
22594  if ((sizeof ($gltype) * CHAR_BIT) < 0)
22595    {
22596      long int i = longval ();
22597      if (i != (sizeof ($gltype) * CHAR_BIT))
22598	return 1;
22599      fprintf (f, "%ld", i);
22600    }
22601  else
22602    {
22603      unsigned long int i = ulongval ();
22604      if (i != (sizeof ($gltype) * CHAR_BIT))
22605	return 1;
22606      fprintf (f, "%lu", i);
22607    }
22608  /* Do not output a trailing newline, as this causes \r\n confusion
22609     on some platforms.  */
22610  return ferror (f) || fclose (f) != 0;
22611
22612  ;
22613  return 0;
22614}
22615_ACEOF
22616rm -f conftest$ac_exeext
22617if { (ac_try="$ac_link"
22618case "(($ac_try" in
22619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620  *) ac_try_echo=$ac_try;;
22621esac
22622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22623$as_echo "$ac_try_echo") >&5
22624  (eval "$ac_link") 2>&5
22625  ac_status=$?
22626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22628  { (case "(($ac_try" in
22629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630  *) ac_try_echo=$ac_try;;
22631esac
22632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22633$as_echo "$ac_try_echo") >&5
22634  (eval "$ac_try") 2>&5
22635  ac_status=$?
22636  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637  (exit $ac_status); }; }; then
22638  result=`cat conftest.val`
22639else
22640  $as_echo "$as_me: program exited with status $ac_status" >&5
22641$as_echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
22644( exit $ac_status )
22645result=unknown
22646fi
22647rm -rf conftest.dSYM
22648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649fi
22650rm -f conftest.val
22651       eval gl_cv_bitsizeof_${gltype}=\$result
22652
22653fi
22654ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
22655		 $as_echo "$as_val"'`
22656	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22657$as_echo "$ac_res" >&6; }
22658    eval result=\$gl_cv_bitsizeof_${gltype}
22659    if test $result = unknown; then
22660                                                result=0
22661    fi
22662    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22663    cat >>confdefs.h <<_ACEOF
22664#define BITSIZEOF_${GLTYPE} $result
22665_ACEOF
22666
22667    eval BITSIZEOF_${GLTYPE}=\$result
22668  done
22669
22670
22671  fi
22672
22673
22674
22675
22676
22677  for gltype in sig_atomic_t wchar_t wint_t ; do
22678    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22679$as_echo_n "checking for bit size of $gltype... " >&6; }
22680if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22681  $as_echo_n "(cached) " >&6
22682else
22683  if test "$cross_compiling" = yes; then
22684  # Depending upon the size, compute the lo and hi bounds.
22685cat >conftest.$ac_ext <<_ACEOF
22686/* confdefs.h.  */
22687_ACEOF
22688cat confdefs.h >>conftest.$ac_ext
22689cat >>conftest.$ac_ext <<_ACEOF
22690/* end confdefs.h.  */
22691
22692  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22693     included before <wchar.h>.  */
22694  #include <stddef.h>
22695  #include <signal.h>
22696  #if HAVE_WCHAR_H
22697  # include <stdio.h>
22698  # include <time.h>
22699  # include <wchar.h>
22700  #endif
22701
22702#include <limits.h>
22703int
22704main ()
22705{
22706static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22707test_array [0] = 0
22708
22709  ;
22710  return 0;
22711}
22712_ACEOF
22713rm -f conftest.$ac_objext
22714if { (ac_try="$ac_compile"
22715case "(($ac_try" in
22716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717  *) ac_try_echo=$ac_try;;
22718esac
22719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22720$as_echo "$ac_try_echo") >&5
22721  (eval "$ac_compile") 2>conftest.er1
22722  ac_status=$?
22723  grep -v '^ *+' conftest.er1 >conftest.err
22724  rm -f conftest.er1
22725  cat conftest.err >&5
22726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727  (exit $ac_status); } && {
22728	 test -z "$ac_c_werror_flag" ||
22729	 test ! -s conftest.err
22730       } && test -s conftest.$ac_objext; then
22731  ac_lo=0 ac_mid=0
22732  while :; do
22733    cat >conftest.$ac_ext <<_ACEOF
22734/* confdefs.h.  */
22735_ACEOF
22736cat confdefs.h >>conftest.$ac_ext
22737cat >>conftest.$ac_ext <<_ACEOF
22738/* end confdefs.h.  */
22739
22740  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22741     included before <wchar.h>.  */
22742  #include <stddef.h>
22743  #include <signal.h>
22744  #if HAVE_WCHAR_H
22745  # include <stdio.h>
22746  # include <time.h>
22747  # include <wchar.h>
22748  #endif
22749
22750#include <limits.h>
22751int
22752main ()
22753{
22754static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22755test_array [0] = 0
22756
22757  ;
22758  return 0;
22759}
22760_ACEOF
22761rm -f conftest.$ac_objext
22762if { (ac_try="$ac_compile"
22763case "(($ac_try" in
22764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765  *) ac_try_echo=$ac_try;;
22766esac
22767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22768$as_echo "$ac_try_echo") >&5
22769  (eval "$ac_compile") 2>conftest.er1
22770  ac_status=$?
22771  grep -v '^ *+' conftest.er1 >conftest.err
22772  rm -f conftest.er1
22773  cat conftest.err >&5
22774  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775  (exit $ac_status); } && {
22776	 test -z "$ac_c_werror_flag" ||
22777	 test ! -s conftest.err
22778       } && test -s conftest.$ac_objext; then
22779  ac_hi=$ac_mid; break
22780else
22781  $as_echo "$as_me: failed program was:" >&5
22782sed 's/^/| /' conftest.$ac_ext >&5
22783
22784	ac_lo=`expr $ac_mid + 1`
22785			if test $ac_lo -le $ac_mid; then
22786			  ac_lo= ac_hi=
22787			  break
22788			fi
22789			ac_mid=`expr 2 '*' $ac_mid + 1`
22790fi
22791
22792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793  done
22794else
22795  $as_echo "$as_me: failed program was:" >&5
22796sed 's/^/| /' conftest.$ac_ext >&5
22797
22798	cat >conftest.$ac_ext <<_ACEOF
22799/* confdefs.h.  */
22800_ACEOF
22801cat confdefs.h >>conftest.$ac_ext
22802cat >>conftest.$ac_ext <<_ACEOF
22803/* end confdefs.h.  */
22804
22805  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22806     included before <wchar.h>.  */
22807  #include <stddef.h>
22808  #include <signal.h>
22809  #if HAVE_WCHAR_H
22810  # include <stdio.h>
22811  # include <time.h>
22812  # include <wchar.h>
22813  #endif
22814
22815#include <limits.h>
22816int
22817main ()
22818{
22819static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22820test_array [0] = 0
22821
22822  ;
22823  return 0;
22824}
22825_ACEOF
22826rm -f conftest.$ac_objext
22827if { (ac_try="$ac_compile"
22828case "(($ac_try" in
22829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830  *) ac_try_echo=$ac_try;;
22831esac
22832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833$as_echo "$ac_try_echo") >&5
22834  (eval "$ac_compile") 2>conftest.er1
22835  ac_status=$?
22836  grep -v '^ *+' conftest.er1 >conftest.err
22837  rm -f conftest.er1
22838  cat conftest.err >&5
22839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840  (exit $ac_status); } && {
22841	 test -z "$ac_c_werror_flag" ||
22842	 test ! -s conftest.err
22843       } && test -s conftest.$ac_objext; then
22844  ac_hi=-1 ac_mid=-1
22845  while :; do
22846    cat >conftest.$ac_ext <<_ACEOF
22847/* confdefs.h.  */
22848_ACEOF
22849cat confdefs.h >>conftest.$ac_ext
22850cat >>conftest.$ac_ext <<_ACEOF
22851/* end confdefs.h.  */
22852
22853  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22854     included before <wchar.h>.  */
22855  #include <stddef.h>
22856  #include <signal.h>
22857  #if HAVE_WCHAR_H
22858  # include <stdio.h>
22859  # include <time.h>
22860  # include <wchar.h>
22861  #endif
22862
22863#include <limits.h>
22864int
22865main ()
22866{
22867static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22868test_array [0] = 0
22869
22870  ;
22871  return 0;
22872}
22873_ACEOF
22874rm -f conftest.$ac_objext
22875if { (ac_try="$ac_compile"
22876case "(($ac_try" in
22877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878  *) ac_try_echo=$ac_try;;
22879esac
22880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22881$as_echo "$ac_try_echo") >&5
22882  (eval "$ac_compile") 2>conftest.er1
22883  ac_status=$?
22884  grep -v '^ *+' conftest.er1 >conftest.err
22885  rm -f conftest.er1
22886  cat conftest.err >&5
22887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888  (exit $ac_status); } && {
22889	 test -z "$ac_c_werror_flag" ||
22890	 test ! -s conftest.err
22891       } && test -s conftest.$ac_objext; then
22892  ac_lo=$ac_mid; break
22893else
22894  $as_echo "$as_me: failed program was:" >&5
22895sed 's/^/| /' conftest.$ac_ext >&5
22896
22897	ac_hi=`expr '(' $ac_mid ')' - 1`
22898			if test $ac_mid -le $ac_hi; then
22899			  ac_lo= ac_hi=
22900			  break
22901			fi
22902			ac_mid=`expr 2 '*' $ac_mid`
22903fi
22904
22905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906  done
22907else
22908  $as_echo "$as_me: failed program was:" >&5
22909sed 's/^/| /' conftest.$ac_ext >&5
22910
22911	ac_lo= ac_hi=
22912fi
22913
22914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915fi
22916
22917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918# Binary search between lo and hi bounds.
22919while test "x$ac_lo" != "x$ac_hi"; do
22920  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22921  cat >conftest.$ac_ext <<_ACEOF
22922/* confdefs.h.  */
22923_ACEOF
22924cat confdefs.h >>conftest.$ac_ext
22925cat >>conftest.$ac_ext <<_ACEOF
22926/* end confdefs.h.  */
22927
22928  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22929     included before <wchar.h>.  */
22930  #include <stddef.h>
22931  #include <signal.h>
22932  #if HAVE_WCHAR_H
22933  # include <stdio.h>
22934  # include <time.h>
22935  # include <wchar.h>
22936  #endif
22937
22938#include <limits.h>
22939int
22940main ()
22941{
22942static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22943test_array [0] = 0
22944
22945  ;
22946  return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext
22950if { (ac_try="$ac_compile"
22951case "(($ac_try" in
22952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953  *) ac_try_echo=$ac_try;;
22954esac
22955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956$as_echo "$ac_try_echo") >&5
22957  (eval "$ac_compile") 2>conftest.er1
22958  ac_status=$?
22959  grep -v '^ *+' conftest.er1 >conftest.err
22960  rm -f conftest.er1
22961  cat conftest.err >&5
22962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963  (exit $ac_status); } && {
22964	 test -z "$ac_c_werror_flag" ||
22965	 test ! -s conftest.err
22966       } && test -s conftest.$ac_objext; then
22967  ac_hi=$ac_mid
22968else
22969  $as_echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972	ac_lo=`expr '(' $ac_mid ')' + 1`
22973fi
22974
22975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976done
22977case $ac_lo in
22978?*) result=$ac_lo;;
22979'') result=unknown ;;
22980esac
22981else
22982  cat >conftest.$ac_ext <<_ACEOF
22983/* confdefs.h.  */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h.  */
22988
22989  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22990     included before <wchar.h>.  */
22991  #include <stddef.h>
22992  #include <signal.h>
22993  #if HAVE_WCHAR_H
22994  # include <stdio.h>
22995  # include <time.h>
22996  # include <wchar.h>
22997  #endif
22998
22999#include <limits.h>
23000static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
23001static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
23002#include <stdio.h>
23003#include <stdlib.h>
23004int
23005main ()
23006{
23007
23008  FILE *f = fopen ("conftest.val", "w");
23009  if (! f)
23010    return 1;
23011  if ((sizeof ($gltype) * CHAR_BIT) < 0)
23012    {
23013      long int i = longval ();
23014      if (i != (sizeof ($gltype) * CHAR_BIT))
23015	return 1;
23016      fprintf (f, "%ld", i);
23017    }
23018  else
23019    {
23020      unsigned long int i = ulongval ();
23021      if (i != (sizeof ($gltype) * CHAR_BIT))
23022	return 1;
23023      fprintf (f, "%lu", i);
23024    }
23025  /* Do not output a trailing newline, as this causes \r\n confusion
23026     on some platforms.  */
23027  return ferror (f) || fclose (f) != 0;
23028
23029  ;
23030  return 0;
23031}
23032_ACEOF
23033rm -f conftest$ac_exeext
23034if { (ac_try="$ac_link"
23035case "(($ac_try" in
23036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037  *) ac_try_echo=$ac_try;;
23038esac
23039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040$as_echo "$ac_try_echo") >&5
23041  (eval "$ac_link") 2>&5
23042  ac_status=$?
23043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23045  { (case "(($ac_try" in
23046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047  *) ac_try_echo=$ac_try;;
23048esac
23049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23050$as_echo "$ac_try_echo") >&5
23051  (eval "$ac_try") 2>&5
23052  ac_status=$?
23053  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054  (exit $ac_status); }; }; then
23055  result=`cat conftest.val`
23056else
23057  $as_echo "$as_me: program exited with status $ac_status" >&5
23058$as_echo "$as_me: failed program was:" >&5
23059sed 's/^/| /' conftest.$ac_ext >&5
23060
23061( exit $ac_status )
23062result=unknown
23063fi
23064rm -rf conftest.dSYM
23065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23066fi
23067rm -f conftest.val
23068       eval gl_cv_bitsizeof_${gltype}=\$result
23069
23070fi
23071ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
23072		 $as_echo "$as_val"'`
23073	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23074$as_echo "$ac_res" >&6; }
23075    eval result=\$gl_cv_bitsizeof_${gltype}
23076    if test $result = unknown; then
23077                                                result=0
23078    fi
23079    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23080    cat >>confdefs.h <<_ACEOF
23081#define BITSIZEOF_${GLTYPE} $result
23082_ACEOF
23083
23084    eval BITSIZEOF_${GLTYPE}=\$result
23085  done
23086
23087
23088
23089
23090
23091
23092
23093  for gltype in sig_atomic_t wchar_t wint_t ; do
23094    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
23095$as_echo_n "checking whether $gltype is signed... " >&6; }
23096if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
23097  $as_echo_n "(cached) " >&6
23098else
23099  cat >conftest.$ac_ext <<_ACEOF
23100/* confdefs.h.  */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>conftest.$ac_ext <<_ACEOF
23104/* end confdefs.h.  */
23105
23106  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23107     included before <wchar.h>.  */
23108  #include <stddef.h>
23109  #include <signal.h>
23110  #if HAVE_WCHAR_H
23111  # include <stdio.h>
23112  # include <time.h>
23113  # include <wchar.h>
23114  #endif
23115
23116            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
23117int
23118main ()
23119{
23120
23121  ;
23122  return 0;
23123}
23124_ACEOF
23125rm -f conftest.$ac_objext
23126if { (ac_try="$ac_compile"
23127case "(($ac_try" in
23128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129  *) ac_try_echo=$ac_try;;
23130esac
23131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23132$as_echo "$ac_try_echo") >&5
23133  (eval "$ac_compile") 2>conftest.er1
23134  ac_status=$?
23135  grep -v '^ *+' conftest.er1 >conftest.err
23136  rm -f conftest.er1
23137  cat conftest.err >&5
23138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139  (exit $ac_status); } && {
23140	 test -z "$ac_c_werror_flag" ||
23141	 test ! -s conftest.err
23142       } && test -s conftest.$ac_objext; then
23143  result=yes
23144else
23145  $as_echo "$as_me: failed program was:" >&5
23146sed 's/^/| /' conftest.$ac_ext >&5
23147
23148	result=no
23149fi
23150
23151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152       eval gl_cv_type_${gltype}_signed=\$result
23153
23154fi
23155ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
23156		 $as_echo "$as_val"'`
23157	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23158$as_echo "$ac_res" >&6; }
23159    eval result=\$gl_cv_type_${gltype}_signed
23160    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23161    if test "$result" = yes; then
23162      cat >>confdefs.h <<_ACEOF
23163#define HAVE_SIGNED_${GLTYPE} 1
23164_ACEOF
23165
23166      eval HAVE_SIGNED_${GLTYPE}=1
23167    else
23168      eval HAVE_SIGNED_${GLTYPE}=0
23169    fi
23170  done
23171
23172
23173  gl_cv_type_ptrdiff_t_signed=yes
23174  gl_cv_type_size_t_signed=no
23175  if test $APPLE_UNIVERSAL_BUILD = 0; then
23176
23177
23178
23179
23180  for gltype in ptrdiff_t size_t ; do
23181    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23182$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23183if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23184  $as_echo_n "(cached) " >&6
23185else
23186  eval gl_cv_type_${gltype}_suffix=no
23187       eval result=\$gl_cv_type_${gltype}_signed
23188       if test "$result" = yes; then
23189         glsufu=
23190       else
23191         glsufu=u
23192       fi
23193       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23194         case $glsuf in
23195           '')  gltype1='int';;
23196           l)	gltype1='long int';;
23197           ll)	gltype1='long long int';;
23198           i64)	gltype1='__int64';;
23199           u)	gltype1='unsigned int';;
23200           ul)	gltype1='unsigned long int';;
23201           ull)	gltype1='unsigned long long int';;
23202           ui64)gltype1='unsigned __int64';;
23203         esac
23204         cat >conftest.$ac_ext <<_ACEOF
23205/* confdefs.h.  */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h.  */
23210
23211  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23212     included before <wchar.h>.  */
23213  #include <stddef.h>
23214  #include <signal.h>
23215  #if HAVE_WCHAR_H
23216  # include <stdio.h>
23217  # include <time.h>
23218  # include <wchar.h>
23219  #endif
23220
23221              extern $gltype foo;
23222              extern $gltype1 foo;
23223int
23224main ()
23225{
23226
23227  ;
23228  return 0;
23229}
23230_ACEOF
23231rm -f conftest.$ac_objext
23232if { (ac_try="$ac_compile"
23233case "(($ac_try" in
23234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235  *) ac_try_echo=$ac_try;;
23236esac
23237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23238$as_echo "$ac_try_echo") >&5
23239  (eval "$ac_compile") 2>conftest.er1
23240  ac_status=$?
23241  grep -v '^ *+' conftest.er1 >conftest.err
23242  rm -f conftest.er1
23243  cat conftest.err >&5
23244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245  (exit $ac_status); } && {
23246	 test -z "$ac_c_werror_flag" ||
23247	 test ! -s conftest.err
23248       } && test -s conftest.$ac_objext; then
23249  eval gl_cv_type_${gltype}_suffix=\$glsuf
23250else
23251  $as_echo "$as_me: failed program was:" >&5
23252sed 's/^/| /' conftest.$ac_ext >&5
23253
23254
23255fi
23256
23257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258         eval result=\$gl_cv_type_${gltype}_suffix
23259         test "$result" != no && break
23260       done
23261fi
23262ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23263		 $as_echo "$as_val"'`
23264	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23265$as_echo "$ac_res" >&6; }
23266    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23267    eval result=\$gl_cv_type_${gltype}_suffix
23268    test "$result" = no && result=
23269    eval ${GLTYPE}_SUFFIX=\$result
23270    cat >>confdefs.h <<_ACEOF
23271#define ${GLTYPE}_SUFFIX $result
23272_ACEOF
23273
23274  done
23275
23276
23277  fi
23278
23279
23280
23281
23282
23283  for gltype in sig_atomic_t wchar_t wint_t ; do
23284    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23285$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23286if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23287  $as_echo_n "(cached) " >&6
23288else
23289  eval gl_cv_type_${gltype}_suffix=no
23290       eval result=\$gl_cv_type_${gltype}_signed
23291       if test "$result" = yes; then
23292         glsufu=
23293       else
23294         glsufu=u
23295       fi
23296       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23297         case $glsuf in
23298           '')  gltype1='int';;
23299           l)	gltype1='long int';;
23300           ll)	gltype1='long long int';;
23301           i64)	gltype1='__int64';;
23302           u)	gltype1='unsigned int';;
23303           ul)	gltype1='unsigned long int';;
23304           ull)	gltype1='unsigned long long int';;
23305           ui64)gltype1='unsigned __int64';;
23306         esac
23307         cat >conftest.$ac_ext <<_ACEOF
23308/* confdefs.h.  */
23309_ACEOF
23310cat confdefs.h >>conftest.$ac_ext
23311cat >>conftest.$ac_ext <<_ACEOF
23312/* end confdefs.h.  */
23313
23314  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23315     included before <wchar.h>.  */
23316  #include <stddef.h>
23317  #include <signal.h>
23318  #if HAVE_WCHAR_H
23319  # include <stdio.h>
23320  # include <time.h>
23321  # include <wchar.h>
23322  #endif
23323
23324              extern $gltype foo;
23325              extern $gltype1 foo;
23326int
23327main ()
23328{
23329
23330  ;
23331  return 0;
23332}
23333_ACEOF
23334rm -f conftest.$ac_objext
23335if { (ac_try="$ac_compile"
23336case "(($ac_try" in
23337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338  *) ac_try_echo=$ac_try;;
23339esac
23340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23341$as_echo "$ac_try_echo") >&5
23342  (eval "$ac_compile") 2>conftest.er1
23343  ac_status=$?
23344  grep -v '^ *+' conftest.er1 >conftest.err
23345  rm -f conftest.er1
23346  cat conftest.err >&5
23347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348  (exit $ac_status); } && {
23349	 test -z "$ac_c_werror_flag" ||
23350	 test ! -s conftest.err
23351       } && test -s conftest.$ac_objext; then
23352  eval gl_cv_type_${gltype}_suffix=\$glsuf
23353else
23354  $as_echo "$as_me: failed program was:" >&5
23355sed 's/^/| /' conftest.$ac_ext >&5
23356
23357
23358fi
23359
23360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361         eval result=\$gl_cv_type_${gltype}_suffix
23362         test "$result" != no && break
23363       done
23364fi
23365ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23366		 $as_echo "$as_val"'`
23367	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23368$as_echo "$ac_res" >&6; }
23369    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23370    eval result=\$gl_cv_type_${gltype}_suffix
23371    test "$result" = no && result=
23372    eval ${GLTYPE}_SUFFIX=\$result
23373    cat >>confdefs.h <<_ACEOF
23374#define ${GLTYPE}_SUFFIX $result
23375_ACEOF
23376
23377  done
23378
23379
23380
23381    STDINT_H=stdint.h
23382  fi
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398     if test $gl_cv_have_include_next = yes; then
23399       gl_cv_next_stdio_h='<'stdio.h'>'
23400     else
23401       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
23402$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23403if test "${gl_cv_next_stdio_h+set}" = set; then
23404  $as_echo_n "(cached) " >&6
23405else
23406
23407	  if test $ac_cv_header_stdio_h = yes; then
23408	    cat >conftest.$ac_ext <<_ACEOF
23409/* confdefs.h.  */
23410_ACEOF
23411cat confdefs.h >>conftest.$ac_ext
23412cat >>conftest.$ac_ext <<_ACEOF
23413/* end confdefs.h.  */
23414#include <stdio.h>
23415
23416_ACEOF
23417	    	    	    	    	    	    	    	    case "$host_os" in
23418	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
23419	      *)    gl_absname_cpp="$ac_cpp" ;;
23420	    esac
23421	    	    	    	    gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23422	       sed -n '\#/stdio.h#{
23423		 s#.*"\(.*/stdio.h\)".*#\1#
23424		 s#^/[^/]#//&#
23425		 p
23426		 q
23427	       }'`'"'
23428	  else
23429	    gl_cv_next_stdio_h='<'stdio.h'>'
23430	  fi
23431
23432fi
23433{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
23434$as_echo "$gl_cv_next_stdio_h" >&6; }
23435     fi
23436     NEXT_STDIO_H=$gl_cv_next_stdio_h
23437
23438     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23439       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23440       gl_next_as_first_directive='<'stdio.h'>'
23441     else
23442       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23443       gl_next_as_first_directive=$gl_cv_next_stdio_h
23444     fi
23445     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23446
23447
23448
23449      GNULIB_FPRINTF=1
23450  GNULIB_PRINTF=1
23451  GNULIB_VFPRINTF=1
23452  GNULIB_VPRINTF=1
23453  GNULIB_FPUTC=1
23454  GNULIB_PUTC=1
23455  GNULIB_PUTCHAR=1
23456  GNULIB_FPUTS=1
23457  GNULIB_PUTS=1
23458  GNULIB_FWRITE=1
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474     if test $gl_cv_have_include_next = yes; then
23475       gl_cv_next_stdlib_h='<'stdlib.h'>'
23476     else
23477       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
23478$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23479if test "${gl_cv_next_stdlib_h+set}" = set; then
23480  $as_echo_n "(cached) " >&6
23481else
23482
23483	  if test $ac_cv_header_stdlib_h = yes; then
23484	    cat >conftest.$ac_ext <<_ACEOF
23485/* confdefs.h.  */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h.  */
23490#include <stdlib.h>
23491
23492_ACEOF
23493	    	    	    	    	    	    	    	    case "$host_os" in
23494	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
23495	      *)    gl_absname_cpp="$ac_cpp" ;;
23496	    esac
23497	    	    	    	    gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23498	       sed -n '\#/stdlib.h#{
23499		 s#.*"\(.*/stdlib.h\)".*#\1#
23500		 s#^/[^/]#//&#
23501		 p
23502		 q
23503	       }'`'"'
23504	  else
23505	    gl_cv_next_stdlib_h='<'stdlib.h'>'
23506	  fi
23507
23508fi
23509{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
23510$as_echo "$gl_cv_next_stdlib_h" >&6; }
23511     fi
23512     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23513
23514     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23515       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23516       gl_next_as_first_directive='<'stdlib.h'>'
23517     else
23518       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23519       gl_next_as_first_directive=$gl_cv_next_stdlib_h
23520     fi
23521     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23522
23523
23524
23525
23526for ac_header in random.h
23527do
23528as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23529{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23530$as_echo_n "checking for $ac_header... " >&6; }
23531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23532  $as_echo_n "(cached) " >&6
23533else
23534  cat >conftest.$ac_ext <<_ACEOF
23535/* confdefs.h.  */
23536_ACEOF
23537cat confdefs.h >>conftest.$ac_ext
23538cat >>conftest.$ac_ext <<_ACEOF
23539/* end confdefs.h.  */
23540$ac_includes_default
23541
23542#include <$ac_header>
23543_ACEOF
23544rm -f conftest.$ac_objext
23545if { (ac_try="$ac_compile"
23546case "(($ac_try" in
23547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548  *) ac_try_echo=$ac_try;;
23549esac
23550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551$as_echo "$ac_try_echo") >&5
23552  (eval "$ac_compile") 2>conftest.er1
23553  ac_status=$?
23554  grep -v '^ *+' conftest.er1 >conftest.err
23555  rm -f conftest.er1
23556  cat conftest.err >&5
23557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558  (exit $ac_status); } && {
23559	 test -z "$ac_c_werror_flag" ||
23560	 test ! -s conftest.err
23561       } && test -s conftest.$ac_objext; then
23562  eval "$as_ac_Header=yes"
23563else
23564  $as_echo "$as_me: failed program was:" >&5
23565sed 's/^/| /' conftest.$ac_ext >&5
23566
23567	eval "$as_ac_Header=no"
23568fi
23569
23570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571fi
23572ac_res=`eval 'as_val=${'$as_ac_Header'}
23573		 $as_echo "$as_val"'`
23574	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23575$as_echo "$ac_res" >&6; }
23576as_val=`eval 'as_val=${'$as_ac_Header'}
23577		 $as_echo "$as_val"'`
23578   if test "x$as_val" = x""yes; then
23579  cat >>confdefs.h <<_ACEOF
23580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23581_ACEOF
23582
23583fi
23584
23585done
23586
23587  if test $ac_cv_header_random_h = yes; then
23588    HAVE_RANDOM_H=1
23589  else
23590    HAVE_RANDOM_H=0
23591  fi
23592
23593  { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
23594$as_echo_n "checking for struct random_data... " >&6; }
23595if test "${ac_cv_type_struct_random_data+set}" = set; then
23596  $as_echo_n "(cached) " >&6
23597else
23598  ac_cv_type_struct_random_data=no
23599cat >conftest.$ac_ext <<_ACEOF
23600/* confdefs.h.  */
23601_ACEOF
23602cat confdefs.h >>conftest.$ac_ext
23603cat >>conftest.$ac_ext <<_ACEOF
23604/* end confdefs.h.  */
23605#include <stdlib.h>
23606      #if HAVE_RANDOM_H
23607      # include <random.h>
23608      #endif
23609
23610
23611int
23612main ()
23613{
23614if (sizeof (struct random_data))
23615       return 0;
23616  ;
23617  return 0;
23618}
23619_ACEOF
23620rm -f conftest.$ac_objext
23621if { (ac_try="$ac_compile"
23622case "(($ac_try" in
23623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624  *) ac_try_echo=$ac_try;;
23625esac
23626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23627$as_echo "$ac_try_echo") >&5
23628  (eval "$ac_compile") 2>conftest.er1
23629  ac_status=$?
23630  grep -v '^ *+' conftest.er1 >conftest.err
23631  rm -f conftest.er1
23632  cat conftest.err >&5
23633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634  (exit $ac_status); } && {
23635	 test -z "$ac_c_werror_flag" ||
23636	 test ! -s conftest.err
23637       } && test -s conftest.$ac_objext; then
23638  cat >conftest.$ac_ext <<_ACEOF
23639/* confdefs.h.  */
23640_ACEOF
23641cat confdefs.h >>conftest.$ac_ext
23642cat >>conftest.$ac_ext <<_ACEOF
23643/* end confdefs.h.  */
23644#include <stdlib.h>
23645      #if HAVE_RANDOM_H
23646      # include <random.h>
23647      #endif
23648
23649
23650int
23651main ()
23652{
23653if (sizeof ((struct random_data)))
23654	  return 0;
23655  ;
23656  return 0;
23657}
23658_ACEOF
23659rm -f conftest.$ac_objext
23660if { (ac_try="$ac_compile"
23661case "(($ac_try" in
23662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663  *) ac_try_echo=$ac_try;;
23664esac
23665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23666$as_echo "$ac_try_echo") >&5
23667  (eval "$ac_compile") 2>conftest.er1
23668  ac_status=$?
23669  grep -v '^ *+' conftest.er1 >conftest.err
23670  rm -f conftest.er1
23671  cat conftest.err >&5
23672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673  (exit $ac_status); } && {
23674	 test -z "$ac_c_werror_flag" ||
23675	 test ! -s conftest.err
23676       } && test -s conftest.$ac_objext; then
23677  :
23678else
23679  $as_echo "$as_me: failed program was:" >&5
23680sed 's/^/| /' conftest.$ac_ext >&5
23681
23682	ac_cv_type_struct_random_data=yes
23683fi
23684
23685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686else
23687  $as_echo "$as_me: failed program was:" >&5
23688sed 's/^/| /' conftest.$ac_ext >&5
23689
23690
23691fi
23692
23693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694fi
23695{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
23696$as_echo "$ac_cv_type_struct_random_data" >&6; }
23697if test "x$ac_cv_type_struct_random_data" = x""yes; then
23698
23699cat >>confdefs.h <<_ACEOF
23700#define HAVE_STRUCT_RANDOM_DATA 1
23701_ACEOF
23702
23703
23704else
23705  HAVE_STRUCT_RANDOM_DATA=0
23706fi
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721for ac_func in strcasecmp
23722do
23723as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23724{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23725$as_echo_n "checking for $ac_func... " >&6; }
23726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23727  $as_echo_n "(cached) " >&6
23728else
23729  cat >conftest.$ac_ext <<_ACEOF
23730/* confdefs.h.  */
23731_ACEOF
23732cat confdefs.h >>conftest.$ac_ext
23733cat >>conftest.$ac_ext <<_ACEOF
23734/* end confdefs.h.  */
23735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23737#define $ac_func innocuous_$ac_func
23738
23739/* System header to define __stub macros and hopefully few prototypes,
23740    which can conflict with char $ac_func (); below.
23741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23742    <limits.h> exists even on freestanding compilers.  */
23743
23744#ifdef __STDC__
23745# include <limits.h>
23746#else
23747# include <assert.h>
23748#endif
23749
23750#undef $ac_func
23751
23752/* Override any GCC internal prototype to avoid an error.
23753   Use char because int might match the return type of a GCC
23754   builtin and then its argument prototype would still apply.  */
23755#ifdef __cplusplus
23756extern "C"
23757#endif
23758char $ac_func ();
23759/* The GNU C library defines this for functions which it implements
23760    to always fail with ENOSYS.  Some functions are actually named
23761    something starting with __ and the normal name is an alias.  */
23762#if defined __stub_$ac_func || defined __stub___$ac_func
23763choke me
23764#endif
23765
23766int
23767main ()
23768{
23769return $ac_func ();
23770  ;
23771  return 0;
23772}
23773_ACEOF
23774rm -f conftest.$ac_objext conftest$ac_exeext
23775if { (ac_try="$ac_link"
23776case "(($ac_try" in
23777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778  *) ac_try_echo=$ac_try;;
23779esac
23780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23781$as_echo "$ac_try_echo") >&5
23782  (eval "$ac_link") 2>conftest.er1
23783  ac_status=$?
23784  grep -v '^ *+' conftest.er1 >conftest.err
23785  rm -f conftest.er1
23786  cat conftest.err >&5
23787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788  (exit $ac_status); } && {
23789	 test -z "$ac_c_werror_flag" ||
23790	 test ! -s conftest.err
23791       } && test -s conftest$ac_exeext && {
23792	 test "$cross_compiling" = yes ||
23793	 $as_test_x conftest$ac_exeext
23794       }; then
23795  eval "$as_ac_var=yes"
23796else
23797  $as_echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
23800	eval "$as_ac_var=no"
23801fi
23802
23803rm -rf conftest.dSYM
23804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805      conftest$ac_exeext conftest.$ac_ext
23806fi
23807ac_res=`eval 'as_val=${'$as_ac_var'}
23808		 $as_echo "$as_val"'`
23809	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23810$as_echo "$ac_res" >&6; }
23811as_val=`eval 'as_val=${'$as_ac_var'}
23812		 $as_echo "$as_val"'`
23813   if test "x$as_val" = x""yes; then
23814  cat >>confdefs.h <<_ACEOF
23815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23816_ACEOF
23817
23818else
23819
23820    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23821
23822fi
23823done
23824
23825
23826  if test $ac_cv_func_strcasecmp = no; then
23827    HAVE_STRCASECMP=0
23828
23829  :
23830
23831  fi
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844for ac_func in strncasecmp
23845do
23846as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23847{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23848$as_echo_n "checking for $ac_func... " >&6; }
23849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23850  $as_echo_n "(cached) " >&6
23851else
23852  cat >conftest.$ac_ext <<_ACEOF
23853/* confdefs.h.  */
23854_ACEOF
23855cat confdefs.h >>conftest.$ac_ext
23856cat >>conftest.$ac_ext <<_ACEOF
23857/* end confdefs.h.  */
23858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23859   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23860#define $ac_func innocuous_$ac_func
23861
23862/* System header to define __stub macros and hopefully few prototypes,
23863    which can conflict with char $ac_func (); below.
23864    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23865    <limits.h> exists even on freestanding compilers.  */
23866
23867#ifdef __STDC__
23868# include <limits.h>
23869#else
23870# include <assert.h>
23871#endif
23872
23873#undef $ac_func
23874
23875/* Override any GCC internal prototype to avoid an error.
23876   Use char because int might match the return type of a GCC
23877   builtin and then its argument prototype would still apply.  */
23878#ifdef __cplusplus
23879extern "C"
23880#endif
23881char $ac_func ();
23882/* The GNU C library defines this for functions which it implements
23883    to always fail with ENOSYS.  Some functions are actually named
23884    something starting with __ and the normal name is an alias.  */
23885#if defined __stub_$ac_func || defined __stub___$ac_func
23886choke me
23887#endif
23888
23889int
23890main ()
23891{
23892return $ac_func ();
23893  ;
23894  return 0;
23895}
23896_ACEOF
23897rm -f conftest.$ac_objext conftest$ac_exeext
23898if { (ac_try="$ac_link"
23899case "(($ac_try" in
23900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901  *) ac_try_echo=$ac_try;;
23902esac
23903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904$as_echo "$ac_try_echo") >&5
23905  (eval "$ac_link") 2>conftest.er1
23906  ac_status=$?
23907  grep -v '^ *+' conftest.er1 >conftest.err
23908  rm -f conftest.er1
23909  cat conftest.err >&5
23910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911  (exit $ac_status); } && {
23912	 test -z "$ac_c_werror_flag" ||
23913	 test ! -s conftest.err
23914       } && test -s conftest$ac_exeext && {
23915	 test "$cross_compiling" = yes ||
23916	 $as_test_x conftest$ac_exeext
23917       }; then
23918  eval "$as_ac_var=yes"
23919else
23920  $as_echo "$as_me: failed program was:" >&5
23921sed 's/^/| /' conftest.$ac_ext >&5
23922
23923	eval "$as_ac_var=no"
23924fi
23925
23926rm -rf conftest.dSYM
23927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928      conftest$ac_exeext conftest.$ac_ext
23929fi
23930ac_res=`eval 'as_val=${'$as_ac_var'}
23931		 $as_echo "$as_val"'`
23932	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23933$as_echo "$ac_res" >&6; }
23934as_val=`eval 'as_val=${'$as_ac_var'}
23935		 $as_echo "$as_val"'`
23936   if test "x$as_val" = x""yes; then
23937  cat >>confdefs.h <<_ACEOF
23938#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23939_ACEOF
23940
23941else
23942
23943    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23944
23945fi
23946done
23947
23948
23949  if test $ac_cv_func_strncasecmp = no; then
23950
23951  :
23952
23953  fi
23954  { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
23955$as_echo_n "checking whether strncasecmp is declared... " >&6; }
23956if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
23957  $as_echo_n "(cached) " >&6
23958else
23959  cat >conftest.$ac_ext <<_ACEOF
23960/* confdefs.h.  */
23961_ACEOF
23962cat confdefs.h >>conftest.$ac_ext
23963cat >>conftest.$ac_ext <<_ACEOF
23964/* end confdefs.h.  */
23965$ac_includes_default
23966int
23967main ()
23968{
23969#ifndef strncasecmp
23970  (void) strncasecmp;
23971#endif
23972
23973  ;
23974  return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext
23978if { (ac_try="$ac_compile"
23979case "(($ac_try" in
23980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981  *) ac_try_echo=$ac_try;;
23982esac
23983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23984$as_echo "$ac_try_echo") >&5
23985  (eval "$ac_compile") 2>conftest.er1
23986  ac_status=$?
23987  grep -v '^ *+' conftest.er1 >conftest.err
23988  rm -f conftest.er1
23989  cat conftest.err >&5
23990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991  (exit $ac_status); } && {
23992	 test -z "$ac_c_werror_flag" ||
23993	 test ! -s conftest.err
23994       } && test -s conftest.$ac_objext; then
23995  ac_cv_have_decl_strncasecmp=yes
23996else
23997  $as_echo "$as_me: failed program was:" >&5
23998sed 's/^/| /' conftest.$ac_ext >&5
23999
24000	ac_cv_have_decl_strncasecmp=no
24001fi
24002
24003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004fi
24005{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
24006$as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
24007if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
24008
24009cat >>confdefs.h <<_ACEOF
24010#define HAVE_DECL_STRNCASECMP 1
24011_ACEOF
24012
24013
24014else
24015  cat >>confdefs.h <<_ACEOF
24016#define HAVE_DECL_STRNCASECMP 0
24017_ACEOF
24018
24019
24020fi
24021
24022
24023  if test $ac_cv_have_decl_strncasecmp = no; then
24024    HAVE_DECL_STRNCASECMP=0
24025  fi
24026
24027
24028
24029
24030  if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
24031    { $as_echo "$as_me:$LINENO: checking whether strcasestr works in linear time" >&5
24032$as_echo_n "checking whether strcasestr works in linear time... " >&6; }
24033if test "${gl_cv_func_strcasestr_linear+set}" = set; then
24034  $as_echo_n "(cached) " >&6
24035else
24036  if test "$cross_compiling" = yes; then
24037           	 cat >conftest.$ac_ext <<_ACEOF
24038/* confdefs.h.  */
24039_ACEOF
24040cat confdefs.h >>conftest.$ac_ext
24041cat >>conftest.$ac_ext <<_ACEOF
24042/* end confdefs.h.  */
24043
24044#include <features.h>
24045#ifdef __GNU_LIBRARY__
24046 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
24047  Lucky user
24048 #endif
24049#endif
24050#ifdef __CYGWIN__
24051 #include <cygwin/version.h>
24052 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
24053  Lucky user
24054 #endif
24055#endif
24056
24057_ACEOF
24058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24059  $EGREP "Lucky user" >/dev/null 2>&1; then
24060  gl_cv_func_strcasestr_linear=yes
24061else
24062  gl_cv_func_strcasestr_linear="guessing no"
24063fi
24064rm -f conftest*
24065
24066
24067else
24068  cat >conftest.$ac_ext <<_ACEOF
24069/* confdefs.h.  */
24070_ACEOF
24071cat confdefs.h >>conftest.$ac_ext
24072cat >>conftest.$ac_ext <<_ACEOF
24073/* end confdefs.h.  */
24074
24075#include <signal.h> /* for signal */
24076#include <string.h> /* for memmem */
24077#include <stdlib.h> /* for malloc */
24078#include <unistd.h> /* for alarm */
24079
24080int
24081main ()
24082{
24083size_t m = 1000000;
24084    char *haystack = (char *) malloc (2 * m + 2);
24085    char *needle = (char *) malloc (m + 2);
24086    void *result = 0;
24087    /* Failure to compile this test due to missing alarm is okay,
24088       since all such platforms (mingw) also lack strcasestr.  */
24089    signal (SIGALRM, SIG_DFL);
24090    alarm (5);
24091    /* Check for quadratic performance.  */
24092    if (haystack && needle)
24093      {
24094	memset (haystack, 'A', 2 * m);
24095	haystack[2 * m] = 'B';
24096	haystack[2 * m + 1] = 0;
24097	memset (needle, 'A', m);
24098	needle[m] = 'B';
24099	needle[m + 1] = 0;
24100	result = strcasestr (haystack, needle);
24101      }
24102    return !result;
24103  ;
24104  return 0;
24105}
24106_ACEOF
24107rm -f conftest$ac_exeext
24108if { (ac_try="$ac_link"
24109case "(($ac_try" in
24110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111  *) ac_try_echo=$ac_try;;
24112esac
24113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24114$as_echo "$ac_try_echo") >&5
24115  (eval "$ac_link") 2>&5
24116  ac_status=$?
24117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24119  { (case "(($ac_try" in
24120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121  *) ac_try_echo=$ac_try;;
24122esac
24123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24124$as_echo "$ac_try_echo") >&5
24125  (eval "$ac_try") 2>&5
24126  ac_status=$?
24127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128  (exit $ac_status); }; }; then
24129  gl_cv_func_strcasestr_linear=yes
24130else
24131  $as_echo "$as_me: program exited with status $ac_status" >&5
24132$as_echo "$as_me: failed program was:" >&5
24133sed 's/^/| /' conftest.$ac_ext >&5
24134
24135( exit $ac_status )
24136gl_cv_func_strcasestr_linear=no
24137fi
24138rm -rf conftest.dSYM
24139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24140fi
24141
24142
24143
24144fi
24145{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strcasestr_linear" >&5
24146$as_echo "$gl_cv_func_strcasestr_linear" >&6; }
24147    if test "$gl_cv_func_strcasestr_linear" != yes; then
24148      REPLACE_STRCASESTR=1
24149
24150
24151
24152
24153
24154
24155
24156
24157  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24158
24159
24160  :
24161
24162    fi
24163  fi
24164
24165
24166
24167
24168
24169
24170
24171
24172for ac_func in strcasestr
24173do
24174as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24176$as_echo_n "checking for $ac_func... " >&6; }
24177if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24178  $as_echo_n "(cached) " >&6
24179else
24180  cat >conftest.$ac_ext <<_ACEOF
24181/* confdefs.h.  */
24182_ACEOF
24183cat confdefs.h >>conftest.$ac_ext
24184cat >>conftest.$ac_ext <<_ACEOF
24185/* end confdefs.h.  */
24186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24188#define $ac_func innocuous_$ac_func
24189
24190/* System header to define __stub macros and hopefully few prototypes,
24191    which can conflict with char $ac_func (); below.
24192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193    <limits.h> exists even on freestanding compilers.  */
24194
24195#ifdef __STDC__
24196# include <limits.h>
24197#else
24198# include <assert.h>
24199#endif
24200
24201#undef $ac_func
24202
24203/* Override any GCC internal prototype to avoid an error.
24204   Use char because int might match the return type of a GCC
24205   builtin and then its argument prototype would still apply.  */
24206#ifdef __cplusplus
24207extern "C"
24208#endif
24209char $ac_func ();
24210/* The GNU C library defines this for functions which it implements
24211    to always fail with ENOSYS.  Some functions are actually named
24212    something starting with __ and the normal name is an alias.  */
24213#if defined __stub_$ac_func || defined __stub___$ac_func
24214choke me
24215#endif
24216
24217int
24218main ()
24219{
24220return $ac_func ();
24221  ;
24222  return 0;
24223}
24224_ACEOF
24225rm -f conftest.$ac_objext conftest$ac_exeext
24226if { (ac_try="$ac_link"
24227case "(($ac_try" in
24228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229  *) ac_try_echo=$ac_try;;
24230esac
24231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24232$as_echo "$ac_try_echo") >&5
24233  (eval "$ac_link") 2>conftest.er1
24234  ac_status=$?
24235  grep -v '^ *+' conftest.er1 >conftest.err
24236  rm -f conftest.er1
24237  cat conftest.err >&5
24238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239  (exit $ac_status); } && {
24240	 test -z "$ac_c_werror_flag" ||
24241	 test ! -s conftest.err
24242       } && test -s conftest$ac_exeext && {
24243	 test "$cross_compiling" = yes ||
24244	 $as_test_x conftest$ac_exeext
24245       }; then
24246  eval "$as_ac_var=yes"
24247else
24248  $as_echo "$as_me: failed program was:" >&5
24249sed 's/^/| /' conftest.$ac_ext >&5
24250
24251	eval "$as_ac_var=no"
24252fi
24253
24254rm -rf conftest.dSYM
24255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256      conftest$ac_exeext conftest.$ac_ext
24257fi
24258ac_res=`eval 'as_val=${'$as_ac_var'}
24259		 $as_echo "$as_val"'`
24260	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24261$as_echo "$ac_res" >&6; }
24262as_val=`eval 'as_val=${'$as_ac_var'}
24263		 $as_echo "$as_val"'`
24264   if test "x$as_val" = x""yes; then
24265  cat >>confdefs.h <<_ACEOF
24266#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24267_ACEOF
24268
24269fi
24270done
24271
24272  if test $ac_cv_func_strcasestr = no; then
24273    HAVE_STRCASESTR=0
24274  else
24275    if test "$gl_cv_func_memchr_works" != yes; then
24276      REPLACE_STRCASESTR=1
24277    fi
24278  fi
24279  if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
24280
24281
24282
24283
24284
24285
24286
24287
24288  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24289
24290
24291  :
24292
24293  fi
24294
24295
24296
24297  GNULIB_STRCASESTR=1
24298
24299
24300
24301  if test $REPLACE_STRERROR = 1; then
24302
24303
24304
24305
24306
24307
24308
24309
24310  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24311
24312
24313cat >>confdefs.h <<_ACEOF
24314#define REPLACE_STRERROR $REPLACE_STRERROR
24315_ACEOF
24316
24317  fi
24318
24319
24320
24321  GNULIB_STRERROR=1
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343     if test $gl_cv_have_include_next = yes; then
24344       gl_cv_next_unistd_h='<'unistd.h'>'
24345     else
24346       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
24347$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24348if test "${gl_cv_next_unistd_h+set}" = set; then
24349  $as_echo_n "(cached) " >&6
24350else
24351
24352	  if test $ac_cv_header_unistd_h = yes; then
24353	    cat >conftest.$ac_ext <<_ACEOF
24354/* confdefs.h.  */
24355_ACEOF
24356cat confdefs.h >>conftest.$ac_ext
24357cat >>conftest.$ac_ext <<_ACEOF
24358/* end confdefs.h.  */
24359#include <unistd.h>
24360
24361_ACEOF
24362	    	    	    	    	    	    	    	    case "$host_os" in
24363	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
24364	      *)    gl_absname_cpp="$ac_cpp" ;;
24365	    esac
24366	    	    	    	    gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24367	       sed -n '\#/unistd.h#{
24368		 s#.*"\(.*/unistd.h\)".*#\1#
24369		 s#^/[^/]#//&#
24370		 p
24371		 q
24372	       }'`'"'
24373	  else
24374	    gl_cv_next_unistd_h='<'unistd.h'>'
24375	  fi
24376
24377fi
24378{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
24379$as_echo "$gl_cv_next_unistd_h" >&6; }
24380     fi
24381     NEXT_UNISTD_H=$gl_cv_next_unistd_h
24382
24383     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24384       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24385       gl_next_as_first_directive='<'unistd.h'>'
24386     else
24387       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24388       gl_next_as_first_directive=$gl_cv_next_unistd_h
24389     fi
24390     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401  if test $ac_cv_header_unistd_h = yes; then
24402    HAVE_UNISTD_H=1
24403  else
24404    HAVE_UNISTD_H=0
24405  fi
24406
24407
24408
24409
24410  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
24411$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
24412if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
24413  $as_echo_n "(cached) " >&6
24414else
24415  cat >conftest.$ac_ext <<_ACEOF
24416#include <wchar.h>
24417wchar_t w;
24418_ACEOF
24419rm -f conftest.$ac_objext
24420if { (ac_try="$ac_compile"
24421case "(($ac_try" in
24422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423  *) ac_try_echo=$ac_try;;
24424esac
24425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24426$as_echo "$ac_try_echo") >&5
24427  (eval "$ac_compile") 2>conftest.er1
24428  ac_status=$?
24429  grep -v '^ *+' conftest.er1 >conftest.err
24430  rm -f conftest.er1
24431  cat conftest.err >&5
24432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433  (exit $ac_status); } && {
24434	 test -z "$ac_c_werror_flag" ||
24435	 test ! -s conftest.err
24436       } && test -s conftest.$ac_objext; then
24437  gl_cv_header_wchar_h_standalone=yes
24438else
24439  $as_echo "$as_me: failed program was:" >&5
24440sed 's/^/| /' conftest.$ac_ext >&5
24441
24442	gl_cv_header_wchar_h_standalone=no
24443fi
24444
24445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446fi
24447{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
24448$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
24449
24450
24451  if test $gt_cv_c_wint_t = yes; then
24452    HAVE_WINT_T=1
24453  else
24454    HAVE_WINT_T=0
24455  fi
24456
24457
24458
24459
24460  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
24461    WCHAR_H=wchar.h
24462  fi
24463
24464
24465
24466
24467
24468
24469
24470  if test $ac_cv_header_wchar_h = yes; then
24471    HAVE_WCHAR_H=1
24472  else
24473    HAVE_WCHAR_H=0
24474  fi
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487     if test $gl_cv_have_include_next = yes; then
24488       gl_cv_next_wchar_h='<'wchar.h'>'
24489     else
24490       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
24491$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24492if test "${gl_cv_next_wchar_h+set}" = set; then
24493  $as_echo_n "(cached) " >&6
24494else
24495
24496	  if test $ac_cv_header_wchar_h = yes; then
24497	    cat >conftest.$ac_ext <<_ACEOF
24498/* confdefs.h.  */
24499_ACEOF
24500cat confdefs.h >>conftest.$ac_ext
24501cat >>conftest.$ac_ext <<_ACEOF
24502/* end confdefs.h.  */
24503#include <wchar.h>
24504
24505_ACEOF
24506	    	    	    	    	    	    	    	    case "$host_os" in
24507	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
24508	      *)    gl_absname_cpp="$ac_cpp" ;;
24509	    esac
24510	    	    	    	    gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24511	       sed -n '\#/wchar.h#{
24512		 s#.*"\(.*/wchar.h\)".*#\1#
24513		 s#^/[^/]#//&#
24514		 p
24515		 q
24516	       }'`'"'
24517	  else
24518	    gl_cv_next_wchar_h='<'wchar.h'>'
24519	  fi
24520
24521fi
24522{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
24523$as_echo "$gl_cv_next_wchar_h" >&6; }
24524     fi
24525     NEXT_WCHAR_H=$gl_cv_next_wchar_h
24526
24527     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24528       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24529       gl_next_as_first_directive='<'wchar.h'>'
24530     else
24531       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24532       gl_next_as_first_directive=$gl_cv_next_wchar_h
24533     fi
24534     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547  if test $ac_cv_func_iswcntrl = yes; then
24548    HAVE_ISWCNTRL=1
24549  else
24550    HAVE_ISWCNTRL=0
24551  fi
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562  if test $gt_cv_c_wint_t = yes; then
24563    HAVE_WINT_T=1
24564  else
24565    HAVE_WINT_T=0
24566  fi
24567
24568
24569  WCTYPE_H=wctype.h
24570  if test $ac_cv_header_wctype_h = yes; then
24571    if test $ac_cv_func_iswcntrl = yes; then
24572                  { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
24573$as_echo_n "checking whether iswcntrl works... " >&6; }
24574if test "${gl_cv_func_iswcntrl_works+set}" = set; then
24575  $as_echo_n "(cached) " >&6
24576else
24577
24578          if test "$cross_compiling" = yes; then
24579  cat >conftest.$ac_ext <<_ACEOF
24580/* confdefs.h.  */
24581_ACEOF
24582cat confdefs.h >>conftest.$ac_ext
24583cat >>conftest.$ac_ext <<_ACEOF
24584/* end confdefs.h.  */
24585#include <stdlib.h>
24586                          #if __GNU_LIBRARY__ == 1
24587                          Linux libc5 i18n is broken.
24588                          #endif
24589int
24590main ()
24591{
24592
24593  ;
24594  return 0;
24595}
24596_ACEOF
24597rm -f conftest.$ac_objext
24598if { (ac_try="$ac_compile"
24599case "(($ac_try" in
24600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601  *) ac_try_echo=$ac_try;;
24602esac
24603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24604$as_echo "$ac_try_echo") >&5
24605  (eval "$ac_compile") 2>conftest.er1
24606  ac_status=$?
24607  grep -v '^ *+' conftest.er1 >conftest.err
24608  rm -f conftest.er1
24609  cat conftest.err >&5
24610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611  (exit $ac_status); } && {
24612	 test -z "$ac_c_werror_flag" ||
24613	 test ! -s conftest.err
24614       } && test -s conftest.$ac_objext; then
24615  gl_cv_func_iswcntrl_works=yes
24616else
24617  $as_echo "$as_me: failed program was:" >&5
24618sed 's/^/| /' conftest.$ac_ext >&5
24619
24620	gl_cv_func_iswcntrl_works=no
24621fi
24622
24623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624
24625else
24626  cat >conftest.$ac_ext <<_ACEOF
24627/* confdefs.h.  */
24628_ACEOF
24629cat confdefs.h >>conftest.$ac_ext
24630cat >>conftest.$ac_ext <<_ACEOF
24631/* end confdefs.h.  */
24632#include <stddef.h>
24633                      #include <stdio.h>
24634                      #include <time.h>
24635                      #include <wchar.h>
24636                      #include <wctype.h>
24637                      int main () { return iswprint ('x') == 0; }
24638_ACEOF
24639rm -f conftest$ac_exeext
24640if { (ac_try="$ac_link"
24641case "(($ac_try" in
24642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643  *) ac_try_echo=$ac_try;;
24644esac
24645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646$as_echo "$ac_try_echo") >&5
24647  (eval "$ac_link") 2>&5
24648  ac_status=$?
24649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24651  { (case "(($ac_try" in
24652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653  *) ac_try_echo=$ac_try;;
24654esac
24655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656$as_echo "$ac_try_echo") >&5
24657  (eval "$ac_try") 2>&5
24658  ac_status=$?
24659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660  (exit $ac_status); }; }; then
24661  gl_cv_func_iswcntrl_works=yes
24662else
24663  $as_echo "$as_me: program exited with status $ac_status" >&5
24664$as_echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667( exit $ac_status )
24668gl_cv_func_iswcntrl_works=no
24669fi
24670rm -rf conftest.dSYM
24671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24672fi
24673
24674
24675
24676fi
24677{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
24678$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24679      if test $gl_cv_func_iswcntrl_works = yes; then
24680        WCTYPE_H=
24681      fi
24682    fi
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694     if test $gl_cv_have_include_next = yes; then
24695       gl_cv_next_wctype_h='<'wctype.h'>'
24696     else
24697       { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
24698$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24699if test "${gl_cv_next_wctype_h+set}" = set; then
24700  $as_echo_n "(cached) " >&6
24701else
24702
24703	  if test $ac_cv_header_wctype_h = yes; then
24704	    cat >conftest.$ac_ext <<_ACEOF
24705/* confdefs.h.  */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h.  */
24710#include <wctype.h>
24711
24712_ACEOF
24713	    	    	    	    	    	    	    	    case "$host_os" in
24714	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
24715	      *)    gl_absname_cpp="$ac_cpp" ;;
24716	    esac
24717	    	    	    	    gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24718	       sed -n '\#/wctype.h#{
24719		 s#.*"\(.*/wctype.h\)".*#\1#
24720		 s#^/[^/]#//&#
24721		 p
24722		 q
24723	       }'`'"'
24724	  else
24725	    gl_cv_next_wctype_h='<'wctype.h'>'
24726	  fi
24727
24728fi
24729{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
24730$as_echo "$gl_cv_next_wctype_h" >&6; }
24731     fi
24732     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24733
24734     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24735       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24736       gl_next_as_first_directive='<'wctype.h'>'
24737     else
24738       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24739       gl_next_as_first_directive=$gl_cv_next_wctype_h
24740     fi
24741     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24742
24743
24744
24745    HAVE_WCTYPE_H=1
24746  else
24747    HAVE_WCTYPE_H=0
24748  fi
24749
24750
24751
24752  if test "$gl_cv_func_iswcntrl_works" = no; then
24753    REPLACE_ISWCNTRL=1
24754  else
24755    REPLACE_ISWCNTRL=0
24756  fi
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768  gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
24769
24770
24771
24772
24773  :
24774
24775
24776  :
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788  gltests_libdeps=
24789  gltests_ltlibdeps=
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799  gl_source_base='tests'
24800
24801
24802
24803
24804
24805
24806
24807  LIBGNU_LIBDEPS="$gl_libdeps"
24808
24809  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24810
24811
24812
24813
24814
24815for ac_header in stdlib.h unistd.h
24816do
24817as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24819  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24820$as_echo_n "checking for $ac_header... " >&6; }
24821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24822  $as_echo_n "(cached) " >&6
24823fi
24824ac_res=`eval 'as_val=${'$as_ac_Header'}
24825		 $as_echo "$as_val"'`
24826	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24827$as_echo "$ac_res" >&6; }
24828else
24829  # Is the header compilable?
24830{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24831$as_echo_n "checking $ac_header usability... " >&6; }
24832cat >conftest.$ac_ext <<_ACEOF
24833/* confdefs.h.  */
24834_ACEOF
24835cat confdefs.h >>conftest.$ac_ext
24836cat >>conftest.$ac_ext <<_ACEOF
24837/* end confdefs.h.  */
24838$ac_includes_default
24839#include <$ac_header>
24840_ACEOF
24841rm -f conftest.$ac_objext
24842if { (ac_try="$ac_compile"
24843case "(($ac_try" in
24844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845  *) ac_try_echo=$ac_try;;
24846esac
24847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24848$as_echo "$ac_try_echo") >&5
24849  (eval "$ac_compile") 2>conftest.er1
24850  ac_status=$?
24851  grep -v '^ *+' conftest.er1 >conftest.err
24852  rm -f conftest.er1
24853  cat conftest.err >&5
24854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855  (exit $ac_status); } && {
24856	 test -z "$ac_c_werror_flag" ||
24857	 test ! -s conftest.err
24858       } && test -s conftest.$ac_objext; then
24859  ac_header_compiler=yes
24860else
24861  $as_echo "$as_me: failed program was:" >&5
24862sed 's/^/| /' conftest.$ac_ext >&5
24863
24864	ac_header_compiler=no
24865fi
24866
24867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24869$as_echo "$ac_header_compiler" >&6; }
24870
24871# Is the header present?
24872{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24873$as_echo_n "checking $ac_header presence... " >&6; }
24874cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h.  */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h.  */
24880#include <$ac_header>
24881_ACEOF
24882if { (ac_try="$ac_cpp conftest.$ac_ext"
24883case "(($ac_try" in
24884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885  *) ac_try_echo=$ac_try;;
24886esac
24887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24888$as_echo "$ac_try_echo") >&5
24889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24890  ac_status=$?
24891  grep -v '^ *+' conftest.er1 >conftest.err
24892  rm -f conftest.er1
24893  cat conftest.err >&5
24894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895  (exit $ac_status); } >/dev/null && {
24896	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24897	 test ! -s conftest.err
24898       }; then
24899  ac_header_preproc=yes
24900else
24901  $as_echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
24904  ac_header_preproc=no
24905fi
24906
24907rm -f conftest.err conftest.$ac_ext
24908{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909$as_echo "$ac_header_preproc" >&6; }
24910
24911# So?  What about this header?
24912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24913  yes:no: )
24914    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918    ac_header_preproc=yes
24919    ;;
24920  no:yes:* )
24921    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24924$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24925    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24928$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24929    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24933    ( cat <<\_ASBOX
24934## ------------------------------- ##
24935## Report this to bug-wget@gnu.org ##
24936## ------------------------------- ##
24937_ASBOX
24938     ) | sed "s/^/$as_me: WARNING:     /" >&2
24939    ;;
24940esac
24941{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24942$as_echo_n "checking for $ac_header... " >&6; }
24943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24944  $as_echo_n "(cached) " >&6
24945else
24946  eval "$as_ac_Header=\$ac_header_preproc"
24947fi
24948ac_res=`eval 'as_val=${'$as_ac_Header'}
24949		 $as_echo "$as_val"'`
24950	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24951$as_echo "$ac_res" >&6; }
24952
24953fi
24954as_val=`eval 'as_val=${'$as_ac_Header'}
24955		 $as_echo "$as_val"'`
24956   if test "x$as_val" = x""yes; then
24957  cat >>confdefs.h <<_ACEOF
24958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24959_ACEOF
24960
24961fi
24962
24963done
24964
24965
24966for ac_func in getpagesize
24967do
24968as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24969{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24970$as_echo_n "checking for $ac_func... " >&6; }
24971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24972  $as_echo_n "(cached) " >&6
24973else
24974  cat >conftest.$ac_ext <<_ACEOF
24975/* confdefs.h.  */
24976_ACEOF
24977cat confdefs.h >>conftest.$ac_ext
24978cat >>conftest.$ac_ext <<_ACEOF
24979/* end confdefs.h.  */
24980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24981   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24982#define $ac_func innocuous_$ac_func
24983
24984/* System header to define __stub macros and hopefully few prototypes,
24985    which can conflict with char $ac_func (); below.
24986    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24987    <limits.h> exists even on freestanding compilers.  */
24988
24989#ifdef __STDC__
24990# include <limits.h>
24991#else
24992# include <assert.h>
24993#endif
24994
24995#undef $ac_func
24996
24997/* Override any GCC internal prototype to avoid an error.
24998   Use char because int might match the return type of a GCC
24999   builtin and then its argument prototype would still apply.  */
25000#ifdef __cplusplus
25001extern "C"
25002#endif
25003char $ac_func ();
25004/* The GNU C library defines this for functions which it implements
25005    to always fail with ENOSYS.  Some functions are actually named
25006    something starting with __ and the normal name is an alias.  */
25007#if defined __stub_$ac_func || defined __stub___$ac_func
25008choke me
25009#endif
25010
25011int
25012main ()
25013{
25014return $ac_func ();
25015  ;
25016  return 0;
25017}
25018_ACEOF
25019rm -f conftest.$ac_objext conftest$ac_exeext
25020if { (ac_try="$ac_link"
25021case "(($ac_try" in
25022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023  *) ac_try_echo=$ac_try;;
25024esac
25025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25026$as_echo "$ac_try_echo") >&5
25027  (eval "$ac_link") 2>conftest.er1
25028  ac_status=$?
25029  grep -v '^ *+' conftest.er1 >conftest.err
25030  rm -f conftest.er1
25031  cat conftest.err >&5
25032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033  (exit $ac_status); } && {
25034	 test -z "$ac_c_werror_flag" ||
25035	 test ! -s conftest.err
25036       } && test -s conftest$ac_exeext && {
25037	 test "$cross_compiling" = yes ||
25038	 $as_test_x conftest$ac_exeext
25039       }; then
25040  eval "$as_ac_var=yes"
25041else
25042  $as_echo "$as_me: failed program was:" >&5
25043sed 's/^/| /' conftest.$ac_ext >&5
25044
25045	eval "$as_ac_var=no"
25046fi
25047
25048rm -rf conftest.dSYM
25049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25050      conftest$ac_exeext conftest.$ac_ext
25051fi
25052ac_res=`eval 'as_val=${'$as_ac_var'}
25053		 $as_echo "$as_val"'`
25054	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25055$as_echo "$ac_res" >&6; }
25056as_val=`eval 'as_val=${'$as_ac_var'}
25057		 $as_echo "$as_val"'`
25058   if test "x$as_val" = x""yes; then
25059  cat >>confdefs.h <<_ACEOF
25060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25061_ACEOF
25062
25063fi
25064done
25065
25066{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
25067$as_echo_n "checking for working mmap... " >&6; }
25068if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25069  $as_echo_n "(cached) " >&6
25070else
25071  if test "$cross_compiling" = yes; then
25072  ac_cv_func_mmap_fixed_mapped=no
25073else
25074  cat >conftest.$ac_ext <<_ACEOF
25075/* confdefs.h.  */
25076_ACEOF
25077cat confdefs.h >>conftest.$ac_ext
25078cat >>conftest.$ac_ext <<_ACEOF
25079/* end confdefs.h.  */
25080$ac_includes_default
25081/* malloc might have been renamed as rpl_malloc. */
25082#undef malloc
25083
25084/* Thanks to Mike Haertel and Jim Avera for this test.
25085   Here is a matrix of mmap possibilities:
25086	mmap private not fixed
25087	mmap private fixed at somewhere currently unmapped
25088	mmap private fixed at somewhere already mapped
25089	mmap shared not fixed
25090	mmap shared fixed at somewhere currently unmapped
25091	mmap shared fixed at somewhere already mapped
25092   For private mappings, we should verify that changes cannot be read()
25093   back from the file, nor mmap's back from the file at a different
25094   address.  (There have been systems where private was not correctly
25095   implemented like the infamous i386 svr4.0, and systems where the
25096   VM page cache was not coherent with the file system buffer cache
25097   like early versions of FreeBSD and possibly contemporary NetBSD.)
25098   For shared mappings, we should conversely verify that changes get
25099   propagated back to all the places they're supposed to be.
25100
25101   Grep wants private fixed already mapped.
25102   The main things grep needs to know about mmap are:
25103   * does it exist and is it safe to write into the mmap'd area
25104   * how to use it (BSD variants)  */
25105
25106#include <fcntl.h>
25107#include <sys/mman.h>
25108
25109#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25110char *malloc ();
25111#endif
25112
25113/* This mess was copied from the GNU getpagesize.h.  */
25114#ifndef HAVE_GETPAGESIZE
25115/* Assume that all systems that can run configure have sys/param.h.  */
25116# ifndef HAVE_SYS_PARAM_H
25117#  define HAVE_SYS_PARAM_H 1
25118# endif
25119
25120# ifdef _SC_PAGESIZE
25121#  define getpagesize() sysconf(_SC_PAGESIZE)
25122# else /* no _SC_PAGESIZE */
25123#  ifdef HAVE_SYS_PARAM_H
25124#   include <sys/param.h>
25125#   ifdef EXEC_PAGESIZE
25126#    define getpagesize() EXEC_PAGESIZE
25127#   else /* no EXEC_PAGESIZE */
25128#    ifdef NBPG
25129#     define getpagesize() NBPG * CLSIZE
25130#     ifndef CLSIZE
25131#      define CLSIZE 1
25132#     endif /* no CLSIZE */
25133#    else /* no NBPG */
25134#     ifdef NBPC
25135#      define getpagesize() NBPC
25136#     else /* no NBPC */
25137#      ifdef PAGESIZE
25138#       define getpagesize() PAGESIZE
25139#      endif /* PAGESIZE */
25140#     endif /* no NBPC */
25141#    endif /* no NBPG */
25142#   endif /* no EXEC_PAGESIZE */
25143#  else /* no HAVE_SYS_PARAM_H */
25144#   define getpagesize() 8192	/* punt totally */
25145#  endif /* no HAVE_SYS_PARAM_H */
25146# endif /* no _SC_PAGESIZE */
25147
25148#endif /* no HAVE_GETPAGESIZE */
25149
25150int
25151main ()
25152{
25153  char *data, *data2, *data3;
25154  int i, pagesize;
25155  int fd;
25156
25157  pagesize = getpagesize ();
25158
25159  /* First, make a file with some known garbage in it. */
25160  data = (char *) malloc (pagesize);
25161  if (!data)
25162    return 1;
25163  for (i = 0; i < pagesize; ++i)
25164    *(data + i) = rand ();
25165  umask (0);
25166  fd = creat ("conftest.mmap", 0600);
25167  if (fd < 0)
25168    return 1;
25169  if (write (fd, data, pagesize) != pagesize)
25170    return 1;
25171  close (fd);
25172
25173  /* Next, try to mmap the file at a fixed address which already has
25174     something else allocated at it.  If we can, also make sure that
25175     we see the same garbage.  */
25176  fd = open ("conftest.mmap", O_RDWR);
25177  if (fd < 0)
25178    return 1;
25179  data2 = (char *) malloc (2 * pagesize);
25180  if (!data2)
25181    return 1;
25182  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25183  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25184		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
25185    return 1;
25186  for (i = 0; i < pagesize; ++i)
25187    if (*(data + i) != *(data2 + i))
25188      return 1;
25189
25190  /* Finally, make sure that changes to the mapped area do not
25191     percolate back to the file as seen by read().  (This is a bug on
25192     some variants of i386 svr4.0.)  */
25193  for (i = 0; i < pagesize; ++i)
25194    *(data2 + i) = *(data2 + i) + 1;
25195  data3 = (char *) malloc (pagesize);
25196  if (!data3)
25197    return 1;
25198  if (read (fd, data3, pagesize) != pagesize)
25199    return 1;
25200  for (i = 0; i < pagesize; ++i)
25201    if (*(data + i) != *(data3 + i))
25202      return 1;
25203  close (fd);
25204  return 0;
25205}
25206_ACEOF
25207rm -f conftest$ac_exeext
25208if { (ac_try="$ac_link"
25209case "(($ac_try" in
25210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211  *) ac_try_echo=$ac_try;;
25212esac
25213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25214$as_echo "$ac_try_echo") >&5
25215  (eval "$ac_link") 2>&5
25216  ac_status=$?
25217  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25219  { (case "(($ac_try" in
25220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221  *) ac_try_echo=$ac_try;;
25222esac
25223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25224$as_echo "$ac_try_echo") >&5
25225  (eval "$ac_try") 2>&5
25226  ac_status=$?
25227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228  (exit $ac_status); }; }; then
25229  ac_cv_func_mmap_fixed_mapped=yes
25230else
25231  $as_echo "$as_me: program exited with status $ac_status" >&5
25232$as_echo "$as_me: failed program was:" >&5
25233sed 's/^/| /' conftest.$ac_ext >&5
25234
25235( exit $ac_status )
25236ac_cv_func_mmap_fixed_mapped=no
25237fi
25238rm -rf conftest.dSYM
25239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25240fi
25241
25242
25243fi
25244{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25245$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25246if test $ac_cv_func_mmap_fixed_mapped = yes; then
25247
25248cat >>confdefs.h <<\_ACEOF
25249#define HAVE_MMAP 1
25250_ACEOF
25251
25252fi
25253rm -f conftest.mmap
25254
25255{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25256$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25257if test "${ac_cv_sys_largefile_source+set}" = set; then
25258  $as_echo_n "(cached) " >&6
25259else
25260  while :; do
25261  cat >conftest.$ac_ext <<_ACEOF
25262/* confdefs.h.  */
25263_ACEOF
25264cat confdefs.h >>conftest.$ac_ext
25265cat >>conftest.$ac_ext <<_ACEOF
25266/* end confdefs.h.  */
25267#include <sys/types.h> /* for off_t */
25268     #include <stdio.h>
25269int
25270main ()
25271{
25272int (*fp) (FILE *, off_t, int) = fseeko;
25273     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25274  ;
25275  return 0;
25276}
25277_ACEOF
25278rm -f conftest.$ac_objext conftest$ac_exeext
25279if { (ac_try="$ac_link"
25280case "(($ac_try" in
25281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282  *) ac_try_echo=$ac_try;;
25283esac
25284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285$as_echo "$ac_try_echo") >&5
25286  (eval "$ac_link") 2>conftest.er1
25287  ac_status=$?
25288  grep -v '^ *+' conftest.er1 >conftest.err
25289  rm -f conftest.er1
25290  cat conftest.err >&5
25291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292  (exit $ac_status); } && {
25293	 test -z "$ac_c_werror_flag" ||
25294	 test ! -s conftest.err
25295       } && test -s conftest$ac_exeext && {
25296	 test "$cross_compiling" = yes ||
25297	 $as_test_x conftest$ac_exeext
25298       }; then
25299  ac_cv_sys_largefile_source=no; break
25300else
25301  $as_echo "$as_me: failed program was:" >&5
25302sed 's/^/| /' conftest.$ac_ext >&5
25303
25304
25305fi
25306
25307rm -rf conftest.dSYM
25308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25309      conftest$ac_exeext conftest.$ac_ext
25310  cat >conftest.$ac_ext <<_ACEOF
25311/* confdefs.h.  */
25312_ACEOF
25313cat confdefs.h >>conftest.$ac_ext
25314cat >>conftest.$ac_ext <<_ACEOF
25315/* end confdefs.h.  */
25316#define _LARGEFILE_SOURCE 1
25317#include <sys/types.h> /* for off_t */
25318     #include <stdio.h>
25319int
25320main ()
25321{
25322int (*fp) (FILE *, off_t, int) = fseeko;
25323     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25324  ;
25325  return 0;
25326}
25327_ACEOF
25328rm -f conftest.$ac_objext conftest$ac_exeext
25329if { (ac_try="$ac_link"
25330case "(($ac_try" in
25331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332  *) ac_try_echo=$ac_try;;
25333esac
25334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25335$as_echo "$ac_try_echo") >&5
25336  (eval "$ac_link") 2>conftest.er1
25337  ac_status=$?
25338  grep -v '^ *+' conftest.er1 >conftest.err
25339  rm -f conftest.er1
25340  cat conftest.err >&5
25341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342  (exit $ac_status); } && {
25343	 test -z "$ac_c_werror_flag" ||
25344	 test ! -s conftest.err
25345       } && test -s conftest$ac_exeext && {
25346	 test "$cross_compiling" = yes ||
25347	 $as_test_x conftest$ac_exeext
25348       }; then
25349  ac_cv_sys_largefile_source=1; break
25350else
25351  $as_echo "$as_me: failed program was:" >&5
25352sed 's/^/| /' conftest.$ac_ext >&5
25353
25354
25355fi
25356
25357rm -rf conftest.dSYM
25358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25359      conftest$ac_exeext conftest.$ac_ext
25360  ac_cv_sys_largefile_source=unknown
25361  break
25362done
25363fi
25364{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25365$as_echo "$ac_cv_sys_largefile_source" >&6; }
25366case $ac_cv_sys_largefile_source in #(
25367  no | unknown) ;;
25368  *)
25369cat >>confdefs.h <<_ACEOF
25370#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25371_ACEOF
25372;;
25373esac
25374rm -rf conftest*
25375
25376# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25377# in glibc 2.1.3, but that breaks too many other things.
25378# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25379if test $ac_cv_sys_largefile_source != unknown; then
25380
25381cat >>confdefs.h <<\_ACEOF
25382#define HAVE_FSEEKO 1
25383_ACEOF
25384
25385fi
25386
25387
25388
25389
25390
25391
25392
25393for ac_func in strptime timegm snprintf vsnprintf vasprintf drand48
25394do
25395as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25396{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25397$as_echo_n "checking for $ac_func... " >&6; }
25398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25399  $as_echo_n "(cached) " >&6
25400else
25401  cat >conftest.$ac_ext <<_ACEOF
25402/* confdefs.h.  */
25403_ACEOF
25404cat confdefs.h >>conftest.$ac_ext
25405cat >>conftest.$ac_ext <<_ACEOF
25406/* end confdefs.h.  */
25407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25408   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25409#define $ac_func innocuous_$ac_func
25410
25411/* System header to define __stub macros and hopefully few prototypes,
25412    which can conflict with char $ac_func (); below.
25413    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25414    <limits.h> exists even on freestanding compilers.  */
25415
25416#ifdef __STDC__
25417# include <limits.h>
25418#else
25419# include <assert.h>
25420#endif
25421
25422#undef $ac_func
25423
25424/* Override any GCC internal prototype to avoid an error.
25425   Use char because int might match the return type of a GCC
25426   builtin and then its argument prototype would still apply.  */
25427#ifdef __cplusplus
25428extern "C"
25429#endif
25430char $ac_func ();
25431/* The GNU C library defines this for functions which it implements
25432    to always fail with ENOSYS.  Some functions are actually named
25433    something starting with __ and the normal name is an alias.  */
25434#if defined __stub_$ac_func || defined __stub___$ac_func
25435choke me
25436#endif
25437
25438int
25439main ()
25440{
25441return $ac_func ();
25442  ;
25443  return 0;
25444}
25445_ACEOF
25446rm -f conftest.$ac_objext conftest$ac_exeext
25447if { (ac_try="$ac_link"
25448case "(($ac_try" in
25449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450  *) ac_try_echo=$ac_try;;
25451esac
25452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25453$as_echo "$ac_try_echo") >&5
25454  (eval "$ac_link") 2>conftest.er1
25455  ac_status=$?
25456  grep -v '^ *+' conftest.er1 >conftest.err
25457  rm -f conftest.er1
25458  cat conftest.err >&5
25459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460  (exit $ac_status); } && {
25461	 test -z "$ac_c_werror_flag" ||
25462	 test ! -s conftest.err
25463       } && test -s conftest$ac_exeext && {
25464	 test "$cross_compiling" = yes ||
25465	 $as_test_x conftest$ac_exeext
25466       }; then
25467  eval "$as_ac_var=yes"
25468else
25469  $as_echo "$as_me: failed program was:" >&5
25470sed 's/^/| /' conftest.$ac_ext >&5
25471
25472	eval "$as_ac_var=no"
25473fi
25474
25475rm -rf conftest.dSYM
25476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25477      conftest$ac_exeext conftest.$ac_ext
25478fi
25479ac_res=`eval 'as_val=${'$as_ac_var'}
25480		 $as_echo "$as_val"'`
25481	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25482$as_echo "$ac_res" >&6; }
25483as_val=`eval 'as_val=${'$as_ac_var'}
25484		 $as_echo "$as_val"'`
25485   if test "x$as_val" = x""yes; then
25486  cat >>confdefs.h <<_ACEOF
25487#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25488_ACEOF
25489
25490fi
25491done
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501for ac_func in strtoll usleep ftello sigblock sigsetjmp memrchr wcwidth mbtowc
25502do
25503as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25504{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25505$as_echo_n "checking for $ac_func... " >&6; }
25506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25507  $as_echo_n "(cached) " >&6
25508else
25509  cat >conftest.$ac_ext <<_ACEOF
25510/* confdefs.h.  */
25511_ACEOF
25512cat confdefs.h >>conftest.$ac_ext
25513cat >>conftest.$ac_ext <<_ACEOF
25514/* end confdefs.h.  */
25515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25516   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25517#define $ac_func innocuous_$ac_func
25518
25519/* System header to define __stub macros and hopefully few prototypes,
25520    which can conflict with char $ac_func (); below.
25521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25522    <limits.h> exists even on freestanding compilers.  */
25523
25524#ifdef __STDC__
25525# include <limits.h>
25526#else
25527# include <assert.h>
25528#endif
25529
25530#undef $ac_func
25531
25532/* Override any GCC internal prototype to avoid an error.
25533   Use char because int might match the return type of a GCC
25534   builtin and then its argument prototype would still apply.  */
25535#ifdef __cplusplus
25536extern "C"
25537#endif
25538char $ac_func ();
25539/* The GNU C library defines this for functions which it implements
25540    to always fail with ENOSYS.  Some functions are actually named
25541    something starting with __ and the normal name is an alias.  */
25542#if defined __stub_$ac_func || defined __stub___$ac_func
25543choke me
25544#endif
25545
25546int
25547main ()
25548{
25549return $ac_func ();
25550  ;
25551  return 0;
25552}
25553_ACEOF
25554rm -f conftest.$ac_objext conftest$ac_exeext
25555if { (ac_try="$ac_link"
25556case "(($ac_try" in
25557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558  *) ac_try_echo=$ac_try;;
25559esac
25560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25561$as_echo "$ac_try_echo") >&5
25562  (eval "$ac_link") 2>conftest.er1
25563  ac_status=$?
25564  grep -v '^ *+' conftest.er1 >conftest.err
25565  rm -f conftest.er1
25566  cat conftest.err >&5
25567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568  (exit $ac_status); } && {
25569	 test -z "$ac_c_werror_flag" ||
25570	 test ! -s conftest.err
25571       } && test -s conftest$ac_exeext && {
25572	 test "$cross_compiling" = yes ||
25573	 $as_test_x conftest$ac_exeext
25574       }; then
25575  eval "$as_ac_var=yes"
25576else
25577  $as_echo "$as_me: failed program was:" >&5
25578sed 's/^/| /' conftest.$ac_ext >&5
25579
25580	eval "$as_ac_var=no"
25581fi
25582
25583rm -rf conftest.dSYM
25584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25585      conftest$ac_exeext conftest.$ac_ext
25586fi
25587ac_res=`eval 'as_val=${'$as_ac_var'}
25588		 $as_echo "$as_val"'`
25589	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25590$as_echo "$ac_res" >&6; }
25591as_val=`eval 'as_val=${'$as_ac_var'}
25592		 $as_echo "$as_val"'`
25593   if test "x$as_val" = x""yes; then
25594  cat >>confdefs.h <<_ACEOF
25595#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25596_ACEOF
25597
25598fi
25599done
25600
25601
25602if test x"$ENABLE_OPIE" = xyes; then
25603  case " $LIBOBJS " in
25604  *" ftp-opie.$ac_objext "* ) ;;
25605  *) LIBOBJS="$LIBOBJS ftp-opie.$ac_objext"
25606 ;;
25607esac
25608
25609fi
25610
25611
25612cat >>confdefs.h <<\_ACEOF
25613#define HAVE_STRCASECMP 1
25614_ACEOF
25615
25616
25617cat >>confdefs.h <<\_ACEOF
25618#define HAVE_STRNCASECMP 1
25619_ACEOF
25620
25621
25622cat >>confdefs.h <<\_ACEOF
25623#define HAVE_STRDUP 1
25624_ACEOF
25625
25626
25627cat >>confdefs.h <<\_ACEOF
25628#define HAVE_ISATTY 1
25629_ACEOF
25630
25631
25632cat >>confdefs.h <<\_ACEOF
25633#define HAVE_SYMLINK 1
25634_ACEOF
25635
25636
25637
25638  { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
25639$as_echo_n "checking for struct utimbuf... " >&6; }
25640if test "${ac_cv_type_struct_utimbuf+set}" = set; then
25641  $as_echo_n "(cached) " >&6
25642else
25643  ac_cv_type_struct_utimbuf=no
25644cat >conftest.$ac_ext <<_ACEOF
25645/* confdefs.h.  */
25646_ACEOF
25647cat confdefs.h >>conftest.$ac_ext
25648cat >>conftest.$ac_ext <<_ACEOF
25649/* end confdefs.h.  */
25650
25651#include <stdio.h>
25652#if HAVE_SYS_TYPES_H
25653# include <sys/types.h>
25654#endif
25655#if HAVE_UTIME_H
25656# include <utime.h>
25657#endif
25658
25659
25660int
25661main ()
25662{
25663if (sizeof (struct utimbuf))
25664       return 0;
25665  ;
25666  return 0;
25667}
25668_ACEOF
25669rm -f conftest.$ac_objext
25670if { (ac_try="$ac_compile"
25671case "(($ac_try" in
25672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673  *) ac_try_echo=$ac_try;;
25674esac
25675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676$as_echo "$ac_try_echo") >&5
25677  (eval "$ac_compile") 2>conftest.er1
25678  ac_status=$?
25679  grep -v '^ *+' conftest.er1 >conftest.err
25680  rm -f conftest.er1
25681  cat conftest.err >&5
25682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683  (exit $ac_status); } && {
25684	 test -z "$ac_c_werror_flag" ||
25685	 test ! -s conftest.err
25686       } && test -s conftest.$ac_objext; then
25687  cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h.  */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h.  */
25693
25694#include <stdio.h>
25695#if HAVE_SYS_TYPES_H
25696# include <sys/types.h>
25697#endif
25698#if HAVE_UTIME_H
25699# include <utime.h>
25700#endif
25701
25702
25703int
25704main ()
25705{
25706if (sizeof ((struct utimbuf)))
25707	  return 0;
25708  ;
25709  return 0;
25710}
25711_ACEOF
25712rm -f conftest.$ac_objext
25713if { (ac_try="$ac_compile"
25714case "(($ac_try" in
25715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716  *) ac_try_echo=$ac_try;;
25717esac
25718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25719$as_echo "$ac_try_echo") >&5
25720  (eval "$ac_compile") 2>conftest.er1
25721  ac_status=$?
25722  grep -v '^ *+' conftest.er1 >conftest.err
25723  rm -f conftest.er1
25724  cat conftest.err >&5
25725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726  (exit $ac_status); } && {
25727	 test -z "$ac_c_werror_flag" ||
25728	 test ! -s conftest.err
25729       } && test -s conftest.$ac_objext; then
25730  :
25731else
25732  $as_echo "$as_me: failed program was:" >&5
25733sed 's/^/| /' conftest.$ac_ext >&5
25734
25735	ac_cv_type_struct_utimbuf=yes
25736fi
25737
25738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739else
25740  $as_echo "$as_me: failed program was:" >&5
25741sed 's/^/| /' conftest.$ac_ext >&5
25742
25743
25744fi
25745
25746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747fi
25748{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
25749$as_echo "$ac_cv_type_struct_utimbuf" >&6; }
25750if test "x$ac_cv_type_struct_utimbuf" = x""yes; then
25751
25752cat >>confdefs.h <<_ACEOF
25753#define HAVE_STRUCT_UTIMBUF 1
25754_ACEOF
25755
25756
25757fi
25758
25759
25760
25761  { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
25762$as_echo_n "checking for socklen_t... " >&6; }
25763  cat >conftest.$ac_ext <<_ACEOF
25764
25765#include <sys/types.h>
25766#include <sys/socket.h>
25767socklen_t x;
25768
25769_ACEOF
25770rm -f conftest.$ac_objext
25771if { (ac_try="$ac_compile"
25772case "(($ac_try" in
25773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774  *) ac_try_echo=$ac_try;;
25775esac
25776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25777$as_echo "$ac_try_echo") >&5
25778  (eval "$ac_compile") 2>conftest.er1
25779  ac_status=$?
25780  grep -v '^ *+' conftest.er1 >conftest.err
25781  rm -f conftest.er1
25782  cat conftest.err >&5
25783  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784  (exit $ac_status); } && {
25785	 test -z "$ac_c_werror_flag" ||
25786	 test ! -s conftest.err
25787       } && test -s conftest.$ac_objext; then
25788  { $as_echo "$as_me:$LINENO: result: socklen_t" >&5
25789$as_echo "socklen_t" >&6; }
25790else
25791  $as_echo "$as_me: failed program was:" >&5
25792sed 's/^/| /' conftest.$ac_ext >&5
25793
25794
25795    cat >conftest.$ac_ext <<_ACEOF
25796
25797#include <sys/types.h>
25798#include <sys/socket.h>
25799int accept (int, struct sockaddr *, size_t *);
25800
25801_ACEOF
25802rm -f conftest.$ac_objext
25803if { (ac_try="$ac_compile"
25804case "(($ac_try" in
25805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806  *) ac_try_echo=$ac_try;;
25807esac
25808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25809$as_echo "$ac_try_echo") >&5
25810  (eval "$ac_compile") 2>conftest.er1
25811  ac_status=$?
25812  grep -v '^ *+' conftest.er1 >conftest.err
25813  rm -f conftest.er1
25814  cat conftest.err >&5
25815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816  (exit $ac_status); } && {
25817	 test -z "$ac_c_werror_flag" ||
25818	 test ! -s conftest.err
25819       } && test -s conftest.$ac_objext; then
25820
25821      { $as_echo "$as_me:$LINENO: result: size_t" >&5
25822$as_echo "size_t" >&6; }
25823
25824cat >>confdefs.h <<\_ACEOF
25825#define socklen_t size_t
25826_ACEOF
25827
25828
25829else
25830  $as_echo "$as_me: failed program was:" >&5
25831sed 's/^/| /' conftest.$ac_ext >&5
25832
25833
25834      { $as_echo "$as_me:$LINENO: result: int" >&5
25835$as_echo "int" >&6; }
25836
25837cat >>confdefs.h <<\_ACEOF
25838#define socklen_t int
25839_ACEOF
25840
25841
25842fi
25843
25844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845
25846fi
25847
25848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849
25850
25851  { $as_echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
25852$as_echo_n "checking for working fnmatch.h... " >&6; }
25853  cat >conftest.$ac_ext <<_ACEOF
25854#include <fnmatch.h>
25855
25856_ACEOF
25857rm -f conftest.$ac_objext
25858if { (ac_try="$ac_compile"
25859case "(($ac_try" in
25860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861  *) ac_try_echo=$ac_try;;
25862esac
25863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864$as_echo "$ac_try_echo") >&5
25865  (eval "$ac_compile") 2>conftest.er1
25866  ac_status=$?
25867  grep -v '^ *+' conftest.er1 >conftest.err
25868  rm -f conftest.er1
25869  cat conftest.err >&5
25870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871  (exit $ac_status); } && {
25872	 test -z "$ac_c_werror_flag" ||
25873	 test ! -s conftest.err
25874       } && test -s conftest.$ac_objext; then
25875
25876    { $as_echo "$as_me:$LINENO: result: yes" >&5
25877$as_echo "yes" >&6; }
25878
25879cat >>confdefs.h <<\_ACEOF
25880#define HAVE_WORKING_FNMATCH_H 1
25881_ACEOF
25882
25883
25884else
25885  $as_echo "$as_me: failed program was:" >&5
25886sed 's/^/| /' conftest.$ac_ext >&5
25887
25888
25889    { $as_echo "$as_me:$LINENO: result: no" >&5
25890$as_echo "no" >&6; }
25891
25892fi
25893
25894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895
25896
25897
25898for ac_func in nanosleep
25899do
25900as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25902$as_echo_n "checking for $ac_func... " >&6; }
25903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904  $as_echo_n "(cached) " >&6
25905else
25906  cat >conftest.$ac_ext <<_ACEOF
25907/* confdefs.h.  */
25908_ACEOF
25909cat confdefs.h >>conftest.$ac_ext
25910cat >>conftest.$ac_ext <<_ACEOF
25911/* end confdefs.h.  */
25912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914#define $ac_func innocuous_$ac_func
25915
25916/* System header to define __stub macros and hopefully few prototypes,
25917    which can conflict with char $ac_func (); below.
25918    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919    <limits.h> exists even on freestanding compilers.  */
25920
25921#ifdef __STDC__
25922# include <limits.h>
25923#else
25924# include <assert.h>
25925#endif
25926
25927#undef $ac_func
25928
25929/* Override any GCC internal prototype to avoid an error.
25930   Use char because int might match the return type of a GCC
25931   builtin and then its argument prototype would still apply.  */
25932#ifdef __cplusplus
25933extern "C"
25934#endif
25935char $ac_func ();
25936/* The GNU C library defines this for functions which it implements
25937    to always fail with ENOSYS.  Some functions are actually named
25938    something starting with __ and the normal name is an alias.  */
25939#if defined __stub_$ac_func || defined __stub___$ac_func
25940choke me
25941#endif
25942
25943int
25944main ()
25945{
25946return $ac_func ();
25947  ;
25948  return 0;
25949}
25950_ACEOF
25951rm -f conftest.$ac_objext conftest$ac_exeext
25952if { (ac_try="$ac_link"
25953case "(($ac_try" in
25954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955  *) ac_try_echo=$ac_try;;
25956esac
25957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958$as_echo "$ac_try_echo") >&5
25959  (eval "$ac_link") 2>conftest.er1
25960  ac_status=$?
25961  grep -v '^ *+' conftest.er1 >conftest.err
25962  rm -f conftest.er1
25963  cat conftest.err >&5
25964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965  (exit $ac_status); } && {
25966	 test -z "$ac_c_werror_flag" ||
25967	 test ! -s conftest.err
25968       } && test -s conftest$ac_exeext && {
25969	 test "$cross_compiling" = yes ||
25970	 $as_test_x conftest$ac_exeext
25971       }; then
25972  eval "$as_ac_var=yes"
25973else
25974  $as_echo "$as_me: failed program was:" >&5
25975sed 's/^/| /' conftest.$ac_ext >&5
25976
25977	eval "$as_ac_var=no"
25978fi
25979
25980rm -rf conftest.dSYM
25981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25982      conftest$ac_exeext conftest.$ac_ext
25983fi
25984ac_res=`eval 'as_val=${'$as_ac_var'}
25985		 $as_echo "$as_val"'`
25986	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25987$as_echo "$ac_res" >&6; }
25988as_val=`eval 'as_val=${'$as_ac_var'}
25989		 $as_echo "$as_val"'`
25990   if test "x$as_val" = x""yes; then
25991  cat >>confdefs.h <<_ACEOF
25992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25993_ACEOF
25994
25995else
25996
25997    { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
25998$as_echo_n "checking for nanosleep in -lrt... " >&6; }
25999if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
26000  $as_echo_n "(cached) " >&6
26001else
26002  ac_check_lib_save_LIBS=$LIBS
26003LIBS="-lrt  $LIBS"
26004cat >conftest.$ac_ext <<_ACEOF
26005/* confdefs.h.  */
26006_ACEOF
26007cat confdefs.h >>conftest.$ac_ext
26008cat >>conftest.$ac_ext <<_ACEOF
26009/* end confdefs.h.  */
26010
26011/* Override any GCC internal prototype to avoid an error.
26012   Use char because int might match the return type of a GCC
26013   builtin and then its argument prototype would still apply.  */
26014#ifdef __cplusplus
26015extern "C"
26016#endif
26017char nanosleep ();
26018int
26019main ()
26020{
26021return nanosleep ();
26022  ;
26023  return 0;
26024}
26025_ACEOF
26026rm -f conftest.$ac_objext conftest$ac_exeext
26027if { (ac_try="$ac_link"
26028case "(($ac_try" in
26029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030  *) ac_try_echo=$ac_try;;
26031esac
26032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033$as_echo "$ac_try_echo") >&5
26034  (eval "$ac_link") 2>conftest.er1
26035  ac_status=$?
26036  grep -v '^ *+' conftest.er1 >conftest.err
26037  rm -f conftest.er1
26038  cat conftest.err >&5
26039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040  (exit $ac_status); } && {
26041	 test -z "$ac_c_werror_flag" ||
26042	 test ! -s conftest.err
26043       } && test -s conftest$ac_exeext && {
26044	 test "$cross_compiling" = yes ||
26045	 $as_test_x conftest$ac_exeext
26046       }; then
26047  ac_cv_lib_rt_nanosleep=yes
26048else
26049  $as_echo "$as_me: failed program was:" >&5
26050sed 's/^/| /' conftest.$ac_ext >&5
26051
26052	ac_cv_lib_rt_nanosleep=no
26053fi
26054
26055rm -rf conftest.dSYM
26056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057      conftest$ac_exeext conftest.$ac_ext
26058LIBS=$ac_check_lib_save_LIBS
26059fi
26060{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
26061$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
26062if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
26063
26064
26065cat >>confdefs.h <<\_ACEOF
26066#define HAVE_NANOSLEEP 1
26067_ACEOF
26068
26069      LIBS="-lrt $LIBS"
26070
26071else
26072
26073      { $as_echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
26074$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
26075if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
26076  $as_echo_n "(cached) " >&6
26077else
26078  ac_check_lib_save_LIBS=$LIBS
26079LIBS="-lposix4  $LIBS"
26080cat >conftest.$ac_ext <<_ACEOF
26081/* confdefs.h.  */
26082_ACEOF
26083cat confdefs.h >>conftest.$ac_ext
26084cat >>conftest.$ac_ext <<_ACEOF
26085/* end confdefs.h.  */
26086
26087/* Override any GCC internal prototype to avoid an error.
26088   Use char because int might match the return type of a GCC
26089   builtin and then its argument prototype would still apply.  */
26090#ifdef __cplusplus
26091extern "C"
26092#endif
26093char nanosleep ();
26094int
26095main ()
26096{
26097return nanosleep ();
26098  ;
26099  return 0;
26100}
26101_ACEOF
26102rm -f conftest.$ac_objext conftest$ac_exeext
26103if { (ac_try="$ac_link"
26104case "(($ac_try" in
26105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106  *) ac_try_echo=$ac_try;;
26107esac
26108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26109$as_echo "$ac_try_echo") >&5
26110  (eval "$ac_link") 2>conftest.er1
26111  ac_status=$?
26112  grep -v '^ *+' conftest.er1 >conftest.err
26113  rm -f conftest.er1
26114  cat conftest.err >&5
26115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116  (exit $ac_status); } && {
26117	 test -z "$ac_c_werror_flag" ||
26118	 test ! -s conftest.err
26119       } && test -s conftest$ac_exeext && {
26120	 test "$cross_compiling" = yes ||
26121	 $as_test_x conftest$ac_exeext
26122       }; then
26123  ac_cv_lib_posix4_nanosleep=yes
26124else
26125  $as_echo "$as_me: failed program was:" >&5
26126sed 's/^/| /' conftest.$ac_ext >&5
26127
26128	ac_cv_lib_posix4_nanosleep=no
26129fi
26130
26131rm -rf conftest.dSYM
26132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26133      conftest$ac_exeext conftest.$ac_ext
26134LIBS=$ac_check_lib_save_LIBS
26135fi
26136{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
26137$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
26138if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then
26139
26140
26141cat >>confdefs.h <<\_ACEOF
26142#define HAVE_NANOSLEEP 1
26143_ACEOF
26144
26145	LIBS="-lposix4 $LIBS"
26146
26147fi
26148
26149
26150fi
26151
26152
26153fi
26154done
26155
26156
26157
26158
26159for ac_func in clock_gettime
26160do
26161as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26162{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26163$as_echo_n "checking for $ac_func... " >&6; }
26164if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26165  $as_echo_n "(cached) " >&6
26166else
26167  cat >conftest.$ac_ext <<_ACEOF
26168/* confdefs.h.  */
26169_ACEOF
26170cat confdefs.h >>conftest.$ac_ext
26171cat >>conftest.$ac_ext <<_ACEOF
26172/* end confdefs.h.  */
26173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26174   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26175#define $ac_func innocuous_$ac_func
26176
26177/* System header to define __stub macros and hopefully few prototypes,
26178    which can conflict with char $ac_func (); below.
26179    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26180    <limits.h> exists even on freestanding compilers.  */
26181
26182#ifdef __STDC__
26183# include <limits.h>
26184#else
26185# include <assert.h>
26186#endif
26187
26188#undef $ac_func
26189
26190/* Override any GCC internal prototype to avoid an error.
26191   Use char because int might match the return type of a GCC
26192   builtin and then its argument prototype would still apply.  */
26193#ifdef __cplusplus
26194extern "C"
26195#endif
26196char $ac_func ();
26197/* The GNU C library defines this for functions which it implements
26198    to always fail with ENOSYS.  Some functions are actually named
26199    something starting with __ and the normal name is an alias.  */
26200#if defined __stub_$ac_func || defined __stub___$ac_func
26201choke me
26202#endif
26203
26204int
26205main ()
26206{
26207return $ac_func ();
26208  ;
26209  return 0;
26210}
26211_ACEOF
26212rm -f conftest.$ac_objext conftest$ac_exeext
26213if { (ac_try="$ac_link"
26214case "(($ac_try" in
26215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216  *) ac_try_echo=$ac_try;;
26217esac
26218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26219$as_echo "$ac_try_echo") >&5
26220  (eval "$ac_link") 2>conftest.er1
26221  ac_status=$?
26222  grep -v '^ *+' conftest.er1 >conftest.err
26223  rm -f conftest.er1
26224  cat conftest.err >&5
26225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226  (exit $ac_status); } && {
26227	 test -z "$ac_c_werror_flag" ||
26228	 test ! -s conftest.err
26229       } && test -s conftest$ac_exeext && {
26230	 test "$cross_compiling" = yes ||
26231	 $as_test_x conftest$ac_exeext
26232       }; then
26233  eval "$as_ac_var=yes"
26234else
26235  $as_echo "$as_me: failed program was:" >&5
26236sed 's/^/| /' conftest.$ac_ext >&5
26237
26238	eval "$as_ac_var=no"
26239fi
26240
26241rm -rf conftest.dSYM
26242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243      conftest$ac_exeext conftest.$ac_ext
26244fi
26245ac_res=`eval 'as_val=${'$as_ac_var'}
26246		 $as_echo "$as_val"'`
26247	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26248$as_echo "$ac_res" >&6; }
26249as_val=`eval 'as_val=${'$as_ac_var'}
26250		 $as_echo "$as_val"'`
26251   if test "x$as_val" = x""yes; then
26252  cat >>confdefs.h <<_ACEOF
26253#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26254_ACEOF
26255
26256else
26257
26258
26259{ $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
26260$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26261if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
26262  $as_echo_n "(cached) " >&6
26263else
26264  ac_check_lib_save_LIBS=$LIBS
26265LIBS="-lrt  $LIBS"
26266cat >conftest.$ac_ext <<_ACEOF
26267/* confdefs.h.  */
26268_ACEOF
26269cat confdefs.h >>conftest.$ac_ext
26270cat >>conftest.$ac_ext <<_ACEOF
26271/* end confdefs.h.  */
26272
26273/* Override any GCC internal prototype to avoid an error.
26274   Use char because int might match the return type of a GCC
26275   builtin and then its argument prototype would still apply.  */
26276#ifdef __cplusplus
26277extern "C"
26278#endif
26279char clock_gettime ();
26280int
26281main ()
26282{
26283return clock_gettime ();
26284  ;
26285  return 0;
26286}
26287_ACEOF
26288rm -f conftest.$ac_objext conftest$ac_exeext
26289if { (ac_try="$ac_link"
26290case "(($ac_try" in
26291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26292  *) ac_try_echo=$ac_try;;
26293esac
26294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26295$as_echo "$ac_try_echo") >&5
26296  (eval "$ac_link") 2>conftest.er1
26297  ac_status=$?
26298  grep -v '^ *+' conftest.er1 >conftest.err
26299  rm -f conftest.er1
26300  cat conftest.err >&5
26301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302  (exit $ac_status); } && {
26303	 test -z "$ac_c_werror_flag" ||
26304	 test ! -s conftest.err
26305       } && test -s conftest$ac_exeext && {
26306	 test "$cross_compiling" = yes ||
26307	 $as_test_x conftest$ac_exeext
26308       }; then
26309  ac_cv_lib_rt_clock_gettime=yes
26310else
26311  $as_echo "$as_me: failed program was:" >&5
26312sed 's/^/| /' conftest.$ac_ext >&5
26313
26314	ac_cv_lib_rt_clock_gettime=no
26315fi
26316
26317rm -rf conftest.dSYM
26318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26319      conftest$ac_exeext conftest.$ac_ext
26320LIBS=$ac_check_lib_save_LIBS
26321fi
26322{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
26323$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26324if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
26325  cat >>confdefs.h <<_ACEOF
26326#define HAVE_LIBRT 1
26327_ACEOF
26328
26329  LIBS="-lrt $LIBS"
26330
26331fi
26332
26333
26334fi
26335done
26336
26337
26338
26339              wget_check_in_nsl=NONE
26340
26341for ac_func in gethostbyname
26342do
26343as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26344{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26345$as_echo_n "checking for $ac_func... " >&6; }
26346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26347  $as_echo_n "(cached) " >&6
26348else
26349  cat >conftest.$ac_ext <<_ACEOF
26350/* confdefs.h.  */
26351_ACEOF
26352cat confdefs.h >>conftest.$ac_ext
26353cat >>conftest.$ac_ext <<_ACEOF
26354/* end confdefs.h.  */
26355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26356   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26357#define $ac_func innocuous_$ac_func
26358
26359/* System header to define __stub macros and hopefully few prototypes,
26360    which can conflict with char $ac_func (); below.
26361    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362    <limits.h> exists even on freestanding compilers.  */
26363
26364#ifdef __STDC__
26365# include <limits.h>
26366#else
26367# include <assert.h>
26368#endif
26369
26370#undef $ac_func
26371
26372/* Override any GCC internal prototype to avoid an error.
26373   Use char because int might match the return type of a GCC
26374   builtin and then its argument prototype would still apply.  */
26375#ifdef __cplusplus
26376extern "C"
26377#endif
26378char $ac_func ();
26379/* The GNU C library defines this for functions which it implements
26380    to always fail with ENOSYS.  Some functions are actually named
26381    something starting with __ and the normal name is an alias.  */
26382#if defined __stub_$ac_func || defined __stub___$ac_func
26383choke me
26384#endif
26385
26386int
26387main ()
26388{
26389return $ac_func ();
26390  ;
26391  return 0;
26392}
26393_ACEOF
26394rm -f conftest.$ac_objext conftest$ac_exeext
26395if { (ac_try="$ac_link"
26396case "(($ac_try" in
26397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398  *) ac_try_echo=$ac_try;;
26399esac
26400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401$as_echo "$ac_try_echo") >&5
26402  (eval "$ac_link") 2>conftest.er1
26403  ac_status=$?
26404  grep -v '^ *+' conftest.er1 >conftest.err
26405  rm -f conftest.er1
26406  cat conftest.err >&5
26407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408  (exit $ac_status); } && {
26409	 test -z "$ac_c_werror_flag" ||
26410	 test ! -s conftest.err
26411       } && test -s conftest$ac_exeext && {
26412	 test "$cross_compiling" = yes ||
26413	 $as_test_x conftest$ac_exeext
26414       }; then
26415  eval "$as_ac_var=yes"
26416else
26417  $as_echo "$as_me: failed program was:" >&5
26418sed 's/^/| /' conftest.$ac_ext >&5
26419
26420	eval "$as_ac_var=no"
26421fi
26422
26423rm -rf conftest.dSYM
26424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26425      conftest$ac_exeext conftest.$ac_ext
26426fi
26427ac_res=`eval 'as_val=${'$as_ac_var'}
26428		 $as_echo "$as_val"'`
26429	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26430$as_echo "$ac_res" >&6; }
26431as_val=`eval 'as_val=${'$as_ac_var'}
26432		 $as_echo "$as_val"'`
26433   if test "x$as_val" = x""yes; then
26434  cat >>confdefs.h <<_ACEOF
26435#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26436_ACEOF
26437
26438else
26439
26440    wget_check_in_nsl=gethostbyname
26441
26442fi
26443done
26444
26445
26446for ac_func in inet_ntoa
26447do
26448as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26449{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26450$as_echo_n "checking for $ac_func... " >&6; }
26451if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26452  $as_echo_n "(cached) " >&6
26453else
26454  cat >conftest.$ac_ext <<_ACEOF
26455/* confdefs.h.  */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h.  */
26460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26461   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26462#define $ac_func innocuous_$ac_func
26463
26464/* System header to define __stub macros and hopefully few prototypes,
26465    which can conflict with char $ac_func (); below.
26466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26467    <limits.h> exists even on freestanding compilers.  */
26468
26469#ifdef __STDC__
26470# include <limits.h>
26471#else
26472# include <assert.h>
26473#endif
26474
26475#undef $ac_func
26476
26477/* Override any GCC internal prototype to avoid an error.
26478   Use char because int might match the return type of a GCC
26479   builtin and then its argument prototype would still apply.  */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483char $ac_func ();
26484/* The GNU C library defines this for functions which it implements
26485    to always fail with ENOSYS.  Some functions are actually named
26486    something starting with __ and the normal name is an alias.  */
26487#if defined __stub_$ac_func || defined __stub___$ac_func
26488choke me
26489#endif
26490
26491int
26492main ()
26493{
26494return $ac_func ();
26495  ;
26496  return 0;
26497}
26498_ACEOF
26499rm -f conftest.$ac_objext conftest$ac_exeext
26500if { (ac_try="$ac_link"
26501case "(($ac_try" in
26502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503  *) ac_try_echo=$ac_try;;
26504esac
26505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26506$as_echo "$ac_try_echo") >&5
26507  (eval "$ac_link") 2>conftest.er1
26508  ac_status=$?
26509  grep -v '^ *+' conftest.er1 >conftest.err
26510  rm -f conftest.er1
26511  cat conftest.err >&5
26512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513  (exit $ac_status); } && {
26514	 test -z "$ac_c_werror_flag" ||
26515	 test ! -s conftest.err
26516       } && test -s conftest$ac_exeext && {
26517	 test "$cross_compiling" = yes ||
26518	 $as_test_x conftest$ac_exeext
26519       }; then
26520  eval "$as_ac_var=yes"
26521else
26522  $as_echo "$as_me: failed program was:" >&5
26523sed 's/^/| /' conftest.$ac_ext >&5
26524
26525	eval "$as_ac_var=no"
26526fi
26527
26528rm -rf conftest.dSYM
26529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26530      conftest$ac_exeext conftest.$ac_ext
26531fi
26532ac_res=`eval 'as_val=${'$as_ac_var'}
26533		 $as_echo "$as_val"'`
26534	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26535$as_echo "$ac_res" >&6; }
26536as_val=`eval 'as_val=${'$as_ac_var'}
26537		 $as_echo "$as_val"'`
26538   if test "x$as_val" = x""yes; then
26539  cat >>confdefs.h <<_ACEOF
26540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26541_ACEOF
26542
26543else
26544
26545    wget_check_in_nsl=inet_ntoa
26546
26547fi
26548done
26549
26550  if test $wget_check_in_nsl != NONE; then
26551
26552as_ac_Lib=`$as_echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
26553{ $as_echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
26554$as_echo_n "checking for $wget_check_in_nsl in -lnsl... " >&6; }
26555if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26556  $as_echo_n "(cached) " >&6
26557else
26558  ac_check_lib_save_LIBS=$LIBS
26559LIBS="-lnsl  $LIBS"
26560cat >conftest.$ac_ext <<_ACEOF
26561/* confdefs.h.  */
26562_ACEOF
26563cat confdefs.h >>conftest.$ac_ext
26564cat >>conftest.$ac_ext <<_ACEOF
26565/* end confdefs.h.  */
26566
26567/* Override any GCC internal prototype to avoid an error.
26568   Use char because int might match the return type of a GCC
26569   builtin and then its argument prototype would still apply.  */
26570#ifdef __cplusplus
26571extern "C"
26572#endif
26573char $wget_check_in_nsl ();
26574int
26575main ()
26576{
26577return $wget_check_in_nsl ();
26578  ;
26579  return 0;
26580}
26581_ACEOF
26582rm -f conftest.$ac_objext conftest$ac_exeext
26583if { (ac_try="$ac_link"
26584case "(($ac_try" in
26585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586  *) ac_try_echo=$ac_try;;
26587esac
26588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26589$as_echo "$ac_try_echo") >&5
26590  (eval "$ac_link") 2>conftest.er1
26591  ac_status=$?
26592  grep -v '^ *+' conftest.er1 >conftest.err
26593  rm -f conftest.er1
26594  cat conftest.err >&5
26595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596  (exit $ac_status); } && {
26597	 test -z "$ac_c_werror_flag" ||
26598	 test ! -s conftest.err
26599       } && test -s conftest$ac_exeext && {
26600	 test "$cross_compiling" = yes ||
26601	 $as_test_x conftest$ac_exeext
26602       }; then
26603  eval "$as_ac_Lib=yes"
26604else
26605  $as_echo "$as_me: failed program was:" >&5
26606sed 's/^/| /' conftest.$ac_ext >&5
26607
26608	eval "$as_ac_Lib=no"
26609fi
26610
26611rm -rf conftest.dSYM
26612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26613      conftest$ac_exeext conftest.$ac_ext
26614LIBS=$ac_check_lib_save_LIBS
26615fi
26616ac_res=`eval 'as_val=${'$as_ac_Lib'}
26617		 $as_echo "$as_val"'`
26618	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26619$as_echo "$ac_res" >&6; }
26620as_val=`eval 'as_val=${'$as_ac_Lib'}
26621		 $as_echo "$as_val"'`
26622   if test "x$as_val" = x""yes; then
26623  cat >>confdefs.h <<_ACEOF
26624#define HAVE_LIBNSL 1
26625_ACEOF
26626
26627  LIBS="-lnsl $LIBS"
26628
26629fi
26630
26631  fi
26632
26633{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26634$as_echo_n "checking for socket in -lsocket... " >&6; }
26635if test "${ac_cv_lib_socket_socket+set}" = set; then
26636  $as_echo_n "(cached) " >&6
26637else
26638  ac_check_lib_save_LIBS=$LIBS
26639LIBS="-lsocket  $LIBS"
26640cat >conftest.$ac_ext <<_ACEOF
26641/* confdefs.h.  */
26642_ACEOF
26643cat confdefs.h >>conftest.$ac_ext
26644cat >>conftest.$ac_ext <<_ACEOF
26645/* end confdefs.h.  */
26646
26647/* Override any GCC internal prototype to avoid an error.
26648   Use char because int might match the return type of a GCC
26649   builtin and then its argument prototype would still apply.  */
26650#ifdef __cplusplus
26651extern "C"
26652#endif
26653char socket ();
26654int
26655main ()
26656{
26657return socket ();
26658  ;
26659  return 0;
26660}
26661_ACEOF
26662rm -f conftest.$ac_objext conftest$ac_exeext
26663if { (ac_try="$ac_link"
26664case "(($ac_try" in
26665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666  *) ac_try_echo=$ac_try;;
26667esac
26668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26669$as_echo "$ac_try_echo") >&5
26670  (eval "$ac_link") 2>conftest.er1
26671  ac_status=$?
26672  grep -v '^ *+' conftest.er1 >conftest.err
26673  rm -f conftest.er1
26674  cat conftest.err >&5
26675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676  (exit $ac_status); } && {
26677	 test -z "$ac_c_werror_flag" ||
26678	 test ! -s conftest.err
26679       } && test -s conftest$ac_exeext && {
26680	 test "$cross_compiling" = yes ||
26681	 $as_test_x conftest$ac_exeext
26682       }; then
26683  ac_cv_lib_socket_socket=yes
26684else
26685  $as_echo "$as_me: failed program was:" >&5
26686sed 's/^/| /' conftest.$ac_ext >&5
26687
26688	ac_cv_lib_socket_socket=no
26689fi
26690
26691rm -rf conftest.dSYM
26692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693      conftest$ac_exeext conftest.$ac_ext
26694LIBS=$ac_check_lib_save_LIBS
26695fi
26696{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26697$as_echo "$ac_cv_lib_socket_socket" >&6; }
26698if test "x$ac_cv_lib_socket_socket" = x""yes; then
26699  cat >>confdefs.h <<_ACEOF
26700#define HAVE_LIBSOCKET 1
26701_ACEOF
26702
26703  LIBS="-lsocket $LIBS"
26704
26705fi
26706
26707
26708
26709
26710if test x"$with_ssl" = xgnutls; then
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722    use_additional=yes
26723
26724  acl_save_prefix="$prefix"
26725  prefix="$acl_final_prefix"
26726  acl_save_exec_prefix="$exec_prefix"
26727  exec_prefix="$acl_final_exec_prefix"
26728
26729    eval additional_includedir=\"$includedir\"
26730    eval additional_libdir=\"$libdir\"
26731
26732  exec_prefix="$acl_save_exec_prefix"
26733  prefix="$acl_save_prefix"
26734
26735
26736# Check whether --with-libgnutls-prefix was given.
26737if test "${with_libgnutls_prefix+set}" = set; then
26738  withval=$with_libgnutls_prefix;
26739    if test "X$withval" = "Xno"; then
26740      use_additional=no
26741    else
26742      if test "X$withval" = "X"; then
26743
26744  acl_save_prefix="$prefix"
26745  prefix="$acl_final_prefix"
26746  acl_save_exec_prefix="$exec_prefix"
26747  exec_prefix="$acl_final_exec_prefix"
26748
26749          eval additional_includedir=\"$includedir\"
26750          eval additional_libdir=\"$libdir\"
26751
26752  exec_prefix="$acl_save_exec_prefix"
26753  prefix="$acl_save_prefix"
26754
26755      else
26756        additional_includedir="$withval/include"
26757        additional_libdir="$withval/$acl_libdirstem"
26758      fi
26759    fi
26760
26761fi
26762
26763      LIBGNUTLS=
26764  LTLIBGNUTLS=
26765  INCGNUTLS=
26766  LIBGNUTLS_PREFIX=
26767  rpathdirs=
26768  ltrpathdirs=
26769  names_already_handled=
26770  names_next_round='gnutls '
26771  while test -n "$names_next_round"; do
26772    names_this_round="$names_next_round"
26773    names_next_round=
26774    for name in $names_this_round; do
26775      already_handled=
26776      for n in $names_already_handled; do
26777        if test "$n" = "$name"; then
26778          already_handled=yes
26779          break
26780        fi
26781      done
26782      if test -z "$already_handled"; then
26783        names_already_handled="$names_already_handled $name"
26784                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26785        eval value=\"\$HAVE_LIB$uppername\"
26786        if test -n "$value"; then
26787          if test "$value" = yes; then
26788            eval value=\"\$LIB$uppername\"
26789            test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value"
26790            eval value=\"\$LTLIB$uppername\"
26791            test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value"
26792          else
26793                                    :
26794          fi
26795        else
26796                              found_dir=
26797          found_la=
26798          found_so=
26799          found_a=
26800          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26801          if test -n "$acl_shlibext"; then
26802            shrext=".$acl_shlibext"             # typically: shrext=.so
26803          else
26804            shrext=
26805          fi
26806          if test $use_additional = yes; then
26807            dir="$additional_libdir"
26808                                    if test -n "$acl_shlibext"; then
26809              if test -f "$dir/$libname$shrext"; then
26810                found_dir="$dir"
26811                found_so="$dir/$libname$shrext"
26812              else
26813                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26814                  ver=`(cd "$dir" && \
26815                        for f in "$libname$shrext".*; do echo "$f"; done \
26816                        | sed -e "s,^$libname$shrext\\\\.,," \
26817                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26818                        | sed 1q ) 2>/dev/null`
26819                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26820                    found_dir="$dir"
26821                    found_so="$dir/$libname$shrext.$ver"
26822                  fi
26823                else
26824                  eval library_names=\"$acl_library_names_spec\"
26825                  for f in $library_names; do
26826                    if test -f "$dir/$f"; then
26827                      found_dir="$dir"
26828                      found_so="$dir/$f"
26829                      break
26830                    fi
26831                  done
26832                fi
26833              fi
26834            fi
26835                        if test "X$found_dir" = "X"; then
26836              if test -f "$dir/$libname.$acl_libext"; then
26837                found_dir="$dir"
26838                found_a="$dir/$libname.$acl_libext"
26839              fi
26840            fi
26841            if test "X$found_dir" != "X"; then
26842              if test -f "$dir/$libname.la"; then
26843                found_la="$dir/$libname.la"
26844              fi
26845            fi
26846          fi
26847          if test "X$found_dir" = "X"; then
26848            for x in $LDFLAGS $LTLIBGNUTLS; do
26849
26850  acl_save_prefix="$prefix"
26851  prefix="$acl_final_prefix"
26852  acl_save_exec_prefix="$exec_prefix"
26853  exec_prefix="$acl_final_exec_prefix"
26854  eval x=\"$x\"
26855  exec_prefix="$acl_save_exec_prefix"
26856  prefix="$acl_save_prefix"
26857
26858              case "$x" in
26859                -L*)
26860                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26861                                    if test -n "$acl_shlibext"; then
26862                    if test -f "$dir/$libname$shrext"; then
26863                      found_dir="$dir"
26864                      found_so="$dir/$libname$shrext"
26865                    else
26866                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26867                        ver=`(cd "$dir" && \
26868                              for f in "$libname$shrext".*; do echo "$f"; done \
26869                              | sed -e "s,^$libname$shrext\\\\.,," \
26870                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26871                              | sed 1q ) 2>/dev/null`
26872                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26873                          found_dir="$dir"
26874                          found_so="$dir/$libname$shrext.$ver"
26875                        fi
26876                      else
26877                        eval library_names=\"$acl_library_names_spec\"
26878                        for f in $library_names; do
26879                          if test -f "$dir/$f"; then
26880                            found_dir="$dir"
26881                            found_so="$dir/$f"
26882                            break
26883                          fi
26884                        done
26885                      fi
26886                    fi
26887                  fi
26888                                    if test "X$found_dir" = "X"; then
26889                    if test -f "$dir/$libname.$acl_libext"; then
26890                      found_dir="$dir"
26891                      found_a="$dir/$libname.$acl_libext"
26892                    fi
26893                  fi
26894                  if test "X$found_dir" != "X"; then
26895                    if test -f "$dir/$libname.la"; then
26896                      found_la="$dir/$libname.la"
26897                    fi
26898                  fi
26899                  ;;
26900              esac
26901              if test "X$found_dir" != "X"; then
26902                break
26903              fi
26904            done
26905          fi
26906          if test "X$found_dir" != "X"; then
26907                        LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name"
26908            if test "X$found_so" != "X"; then
26909                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26910                                LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26911              else
26912                                                                                haveit=
26913                for x in $ltrpathdirs; do
26914                  if test "X$x" = "X$found_dir"; then
26915                    haveit=yes
26916                    break
26917                  fi
26918                done
26919                if test -z "$haveit"; then
26920                  ltrpathdirs="$ltrpathdirs $found_dir"
26921                fi
26922                                if test "$acl_hardcode_direct" = yes; then
26923                                                      LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26924                else
26925                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26926                                                            LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26927                                                            haveit=
26928                    for x in $rpathdirs; do
26929                      if test "X$x" = "X$found_dir"; then
26930                        haveit=yes
26931                        break
26932                      fi
26933                    done
26934                    if test -z "$haveit"; then
26935                      rpathdirs="$rpathdirs $found_dir"
26936                    fi
26937                  else
26938                                                                                haveit=
26939                    for x in $LDFLAGS $LIBGNUTLS; do
26940
26941  acl_save_prefix="$prefix"
26942  prefix="$acl_final_prefix"
26943  acl_save_exec_prefix="$exec_prefix"
26944  exec_prefix="$acl_final_exec_prefix"
26945  eval x=\"$x\"
26946  exec_prefix="$acl_save_exec_prefix"
26947  prefix="$acl_save_prefix"
26948
26949                      if test "X$x" = "X-L$found_dir"; then
26950                        haveit=yes
26951                        break
26952                      fi
26953                    done
26954                    if test -z "$haveit"; then
26955                      LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir"
26956                    fi
26957                    if test "$acl_hardcode_minus_L" != no; then
26958                                                                                        LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26959                    else
26960                                                                                                                                                                                LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
26961                    fi
26962                  fi
26963                fi
26964              fi
26965            else
26966              if test "X$found_a" != "X"; then
26967                                LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a"
26968              else
26969                                                LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name"
26970              fi
26971            fi
26972                        additional_includedir=
26973            case "$found_dir" in
26974              */$acl_libdirstem | */$acl_libdirstem/)
26975                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26976                LIBGNUTLS_PREFIX="$basedir"
26977                additional_includedir="$basedir/include"
26978                ;;
26979            esac
26980            if test "X$additional_includedir" != "X"; then
26981                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26982                haveit=
26983                if test "X$additional_includedir" = "X/usr/local/include"; then
26984                  if test -n "$GCC"; then
26985                    case $host_os in
26986                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26987                    esac
26988                  fi
26989                fi
26990                if test -z "$haveit"; then
26991                  for x in $CPPFLAGS $INCGNUTLS; do
26992
26993  acl_save_prefix="$prefix"
26994  prefix="$acl_final_prefix"
26995  acl_save_exec_prefix="$exec_prefix"
26996  exec_prefix="$acl_final_exec_prefix"
26997  eval x=\"$x\"
26998  exec_prefix="$acl_save_exec_prefix"
26999  prefix="$acl_save_prefix"
27000
27001                    if test "X$x" = "X-I$additional_includedir"; then
27002                      haveit=yes
27003                      break
27004                    fi
27005                  done
27006                  if test -z "$haveit"; then
27007                    if test -d "$additional_includedir"; then
27008                                            INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir"
27009                    fi
27010                  fi
27011                fi
27012              fi
27013            fi
27014                        if test -n "$found_la"; then
27015                                                        save_libdir="$libdir"
27016              case "$found_la" in
27017                */* | *\\*) . "$found_la" ;;
27018                *) . "./$found_la" ;;
27019              esac
27020              libdir="$save_libdir"
27021                            for dep in $dependency_libs; do
27022                case "$dep" in
27023                  -L*)
27024                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27025                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27026                      haveit=
27027                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27028                        if test -n "$GCC"; then
27029                          case $host_os in
27030                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27031                          esac
27032                        fi
27033                      fi
27034                      if test -z "$haveit"; then
27035                        haveit=
27036                        for x in $LDFLAGS $LIBGNUTLS; do
27037
27038  acl_save_prefix="$prefix"
27039  prefix="$acl_final_prefix"
27040  acl_save_exec_prefix="$exec_prefix"
27041  exec_prefix="$acl_final_exec_prefix"
27042  eval x=\"$x\"
27043  exec_prefix="$acl_save_exec_prefix"
27044  prefix="$acl_save_prefix"
27045
27046                          if test "X$x" = "X-L$additional_libdir"; then
27047                            haveit=yes
27048                            break
27049                          fi
27050                        done
27051                        if test -z "$haveit"; then
27052                          if test -d "$additional_libdir"; then
27053                                                        LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$additional_libdir"
27054                          fi
27055                        fi
27056                        haveit=
27057                        for x in $LDFLAGS $LTLIBGNUTLS; do
27058
27059  acl_save_prefix="$prefix"
27060  prefix="$acl_final_prefix"
27061  acl_save_exec_prefix="$exec_prefix"
27062  exec_prefix="$acl_final_exec_prefix"
27063  eval x=\"$x\"
27064  exec_prefix="$acl_save_exec_prefix"
27065  prefix="$acl_save_prefix"
27066
27067                          if test "X$x" = "X-L$additional_libdir"; then
27068                            haveit=yes
27069                            break
27070                          fi
27071                        done
27072                        if test -z "$haveit"; then
27073                          if test -d "$additional_libdir"; then
27074                                                        LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$additional_libdir"
27075                          fi
27076                        fi
27077                      fi
27078                    fi
27079                    ;;
27080                  -R*)
27081                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
27082                    if test "$enable_rpath" != no; then
27083                                                                  haveit=
27084                      for x in $rpathdirs; do
27085                        if test "X$x" = "X$dir"; then
27086                          haveit=yes
27087                          break
27088                        fi
27089                      done
27090                      if test -z "$haveit"; then
27091                        rpathdirs="$rpathdirs $dir"
27092                      fi
27093                                                                  haveit=
27094                      for x in $ltrpathdirs; do
27095                        if test "X$x" = "X$dir"; then
27096                          haveit=yes
27097                          break
27098                        fi
27099                      done
27100                      if test -z "$haveit"; then
27101                        ltrpathdirs="$ltrpathdirs $dir"
27102                      fi
27103                    fi
27104                    ;;
27105                  -l*)
27106                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27107                    ;;
27108                  *.la)
27109                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27110                    ;;
27111                  *)
27112                                        LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep"
27113                    LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep"
27114                    ;;
27115                esac
27116              done
27117            fi
27118          else
27119                                                            LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
27120            LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name"
27121          fi
27122        fi
27123      fi
27124    done
27125  done
27126  if test "X$rpathdirs" != "X"; then
27127    if test -n "$acl_hardcode_libdir_separator"; then
27128                        alldirs=
27129      for found_dir in $rpathdirs; do
27130        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27131      done
27132            acl_save_libdir="$libdir"
27133      libdir="$alldirs"
27134      eval flag=\"$acl_hardcode_libdir_flag_spec\"
27135      libdir="$acl_save_libdir"
27136      LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
27137    else
27138            for found_dir in $rpathdirs; do
27139        acl_save_libdir="$libdir"
27140        libdir="$found_dir"
27141        eval flag=\"$acl_hardcode_libdir_flag_spec\"
27142        libdir="$acl_save_libdir"
27143        LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
27144      done
27145    fi
27146  fi
27147  if test "X$ltrpathdirs" != "X"; then
27148            for found_dir in $ltrpathdirs; do
27149      LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir"
27150    done
27151  fi
27152
27153
27154        ac_save_CPPFLAGS="$CPPFLAGS"
27155
27156  for element in $INCGNUTLS; do
27157    haveit=
27158    for x in $CPPFLAGS; do
27159
27160  acl_save_prefix="$prefix"
27161  prefix="$acl_final_prefix"
27162  acl_save_exec_prefix="$exec_prefix"
27163  exec_prefix="$acl_final_exec_prefix"
27164  eval x=\"$x\"
27165  exec_prefix="$acl_save_exec_prefix"
27166  prefix="$acl_save_prefix"
27167
27168      if test "X$x" = "X$element"; then
27169        haveit=yes
27170        break
27171      fi
27172    done
27173    if test -z "$haveit"; then
27174      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27175    fi
27176  done
27177
27178
27179  { $as_echo "$as_me:$LINENO: checking for libgnutls" >&5
27180$as_echo_n "checking for libgnutls... " >&6; }
27181if test "${ac_cv_libgnutls+set}" = set; then
27182  $as_echo_n "(cached) " >&6
27183else
27184
27185    ac_save_LIBS="$LIBS"
27186    LIBS="$LIBS $LIBGNUTLS"
27187    cat >conftest.$ac_ext <<_ACEOF
27188/* confdefs.h.  */
27189_ACEOF
27190cat confdefs.h >>conftest.$ac_ext
27191cat >>conftest.$ac_ext <<_ACEOF
27192/* end confdefs.h.  */
27193
27194#include <gnutls/gnutls.h>
27195
27196int
27197main ()
27198{
27199gnutls_global_init()
27200  ;
27201  return 0;
27202}
27203_ACEOF
27204rm -f conftest.$ac_objext conftest$ac_exeext
27205if { (ac_try="$ac_link"
27206case "(($ac_try" in
27207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208  *) ac_try_echo=$ac_try;;
27209esac
27210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27211$as_echo "$ac_try_echo") >&5
27212  (eval "$ac_link") 2>conftest.er1
27213  ac_status=$?
27214  grep -v '^ *+' conftest.er1 >conftest.err
27215  rm -f conftest.er1
27216  cat conftest.err >&5
27217  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218  (exit $ac_status); } && {
27219	 test -z "$ac_c_werror_flag" ||
27220	 test ! -s conftest.err
27221       } && test -s conftest$ac_exeext && {
27222	 test "$cross_compiling" = yes ||
27223	 $as_test_x conftest$ac_exeext
27224       }; then
27225  ac_cv_libgnutls=yes
27226else
27227  $as_echo "$as_me: failed program was:" >&5
27228sed 's/^/| /' conftest.$ac_ext >&5
27229
27230	ac_cv_libgnutls=no
27231fi
27232
27233rm -rf conftest.dSYM
27234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27235      conftest$ac_exeext conftest.$ac_ext
27236    LIBS="$ac_save_LIBS"
27237
27238fi
27239{ $as_echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
27240$as_echo "$ac_cv_libgnutls" >&6; }
27241  if test "$ac_cv_libgnutls" = yes; then
27242    HAVE_LIBGNUTLS=yes
27243
27244cat >>confdefs.h <<\_ACEOF
27245#define HAVE_LIBGNUTLS 1
27246_ACEOF
27247
27248    { $as_echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
27249$as_echo_n "checking how to link with libgnutls... " >&6; }
27250    { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
27251$as_echo "$LIBGNUTLS" >&6; }
27252  else
27253    HAVE_LIBGNUTLS=no
27254            CPPFLAGS="$ac_save_CPPFLAGS"
27255    LIBGNUTLS=
27256    LTLIBGNUTLS=
27257    LIBGNUTLS_PREFIX=
27258  fi
27259
27260
27261
27262
27263
27264
27265
27266  if test x"$LIBGNUTLS" != x
27267  then
27268    { $as_echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
27269$as_echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
27270    case " $LIBOBJS " in
27271  *" gnutls.$ac_objext "* ) ;;
27272  *) LIBOBJS="$LIBOBJS gnutls.$ac_objext"
27273 ;;
27274esac
27275
27276  else
27277    { { $as_echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
27278$as_echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
27279   { (exit 1); exit 1; }; }
27280  fi
27281
27282else
27283
27284  # --with-ssl is not gnutls: check if it's no
27285  if test x"$with_ssl" != xno; then
27286
27287
27288{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27289$as_echo_n "checking for dlopen in -ldl... " >&6; }
27290if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27291  $as_echo_n "(cached) " >&6
27292else
27293  ac_check_lib_save_LIBS=$LIBS
27294LIBS="-ldl  $LIBS"
27295cat >conftest.$ac_ext <<_ACEOF
27296/* confdefs.h.  */
27297_ACEOF
27298cat confdefs.h >>conftest.$ac_ext
27299cat >>conftest.$ac_ext <<_ACEOF
27300/* end confdefs.h.  */
27301
27302/* Override any GCC internal prototype to avoid an error.
27303   Use char because int might match the return type of a GCC
27304   builtin and then its argument prototype would still apply.  */
27305#ifdef __cplusplus
27306extern "C"
27307#endif
27308char dlopen ();
27309int
27310main ()
27311{
27312return dlopen ();
27313  ;
27314  return 0;
27315}
27316_ACEOF
27317rm -f conftest.$ac_objext conftest$ac_exeext
27318if { (ac_try="$ac_link"
27319case "(($ac_try" in
27320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321  *) ac_try_echo=$ac_try;;
27322esac
27323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27324$as_echo "$ac_try_echo") >&5
27325  (eval "$ac_link") 2>conftest.er1
27326  ac_status=$?
27327  grep -v '^ *+' conftest.er1 >conftest.err
27328  rm -f conftest.er1
27329  cat conftest.err >&5
27330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331  (exit $ac_status); } && {
27332	 test -z "$ac_c_werror_flag" ||
27333	 test ! -s conftest.err
27334       } && test -s conftest$ac_exeext && {
27335	 test "$cross_compiling" = yes ||
27336	 $as_test_x conftest$ac_exeext
27337       }; then
27338  ac_cv_lib_dl_dlopen=yes
27339else
27340  $as_echo "$as_me: failed program was:" >&5
27341sed 's/^/| /' conftest.$ac_ext >&5
27342
27343	ac_cv_lib_dl_dlopen=no
27344fi
27345
27346rm -rf conftest.dSYM
27347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27348      conftest$ac_exeext conftest.$ac_ext
27349LIBS=$ac_check_lib_save_LIBS
27350fi
27351{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27352$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27353if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
27354  cat >>confdefs.h <<_ACEOF
27355#define HAVE_LIBDL 1
27356_ACEOF
27357
27358  LIBS="-ldl $LIBS"
27359
27360else
27361
27362
27363{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
27364$as_echo_n "checking for shl_load in -ldl... " >&6; }
27365if test "${ac_cv_lib_dl_shl_load+set}" = set; then
27366  $as_echo_n "(cached) " >&6
27367else
27368  ac_check_lib_save_LIBS=$LIBS
27369LIBS="-ldl  $LIBS"
27370cat >conftest.$ac_ext <<_ACEOF
27371/* confdefs.h.  */
27372_ACEOF
27373cat confdefs.h >>conftest.$ac_ext
27374cat >>conftest.$ac_ext <<_ACEOF
27375/* end confdefs.h.  */
27376
27377/* Override any GCC internal prototype to avoid an error.
27378   Use char because int might match the return type of a GCC
27379   builtin and then its argument prototype would still apply.  */
27380#ifdef __cplusplus
27381extern "C"
27382#endif
27383char shl_load ();
27384int
27385main ()
27386{
27387return shl_load ();
27388  ;
27389  return 0;
27390}
27391_ACEOF
27392rm -f conftest.$ac_objext conftest$ac_exeext
27393if { (ac_try="$ac_link"
27394case "(($ac_try" in
27395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396  *) ac_try_echo=$ac_try;;
27397esac
27398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27399$as_echo "$ac_try_echo") >&5
27400  (eval "$ac_link") 2>conftest.er1
27401  ac_status=$?
27402  grep -v '^ *+' conftest.er1 >conftest.err
27403  rm -f conftest.er1
27404  cat conftest.err >&5
27405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406  (exit $ac_status); } && {
27407	 test -z "$ac_c_werror_flag" ||
27408	 test ! -s conftest.err
27409       } && test -s conftest$ac_exeext && {
27410	 test "$cross_compiling" = yes ||
27411	 $as_test_x conftest$ac_exeext
27412       }; then
27413  ac_cv_lib_dl_shl_load=yes
27414else
27415  $as_echo "$as_me: failed program was:" >&5
27416sed 's/^/| /' conftest.$ac_ext >&5
27417
27418	ac_cv_lib_dl_shl_load=no
27419fi
27420
27421rm -rf conftest.dSYM
27422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27423      conftest$ac_exeext conftest.$ac_ext
27424LIBS=$ac_check_lib_save_LIBS
27425fi
27426{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
27427$as_echo "$ac_cv_lib_dl_shl_load" >&6; }
27428if test "x$ac_cv_lib_dl_shl_load" = x""yes; then
27429  cat >>confdefs.h <<_ACEOF
27430#define HAVE_LIBDL 1
27431_ACEOF
27432
27433  LIBS="-ldl $LIBS"
27434
27435fi
27436
27437
27438fi
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451    use_additional=yes
27452
27453  acl_save_prefix="$prefix"
27454  prefix="$acl_final_prefix"
27455  acl_save_exec_prefix="$exec_prefix"
27456  exec_prefix="$acl_final_exec_prefix"
27457
27458    eval additional_includedir=\"$includedir\"
27459    eval additional_libdir=\"$libdir\"
27460
27461  exec_prefix="$acl_save_exec_prefix"
27462  prefix="$acl_save_prefix"
27463
27464
27465# Check whether --with-libssl-prefix was given.
27466if test "${with_libssl_prefix+set}" = set; then
27467  withval=$with_libssl_prefix;
27468    if test "X$withval" = "Xno"; then
27469      use_additional=no
27470    else
27471      if test "X$withval" = "X"; then
27472
27473  acl_save_prefix="$prefix"
27474  prefix="$acl_final_prefix"
27475  acl_save_exec_prefix="$exec_prefix"
27476  exec_prefix="$acl_final_exec_prefix"
27477
27478          eval additional_includedir=\"$includedir\"
27479          eval additional_libdir=\"$libdir\"
27480
27481  exec_prefix="$acl_save_exec_prefix"
27482  prefix="$acl_save_prefix"
27483
27484      else
27485        additional_includedir="$withval/include"
27486        additional_libdir="$withval/$acl_libdirstem"
27487      fi
27488    fi
27489
27490fi
27491
27492      LIBSSL=
27493  LTLIBSSL=
27494  INCSSL=
27495  LIBSSL_PREFIX=
27496  rpathdirs=
27497  ltrpathdirs=
27498  names_already_handled=
27499  names_next_round='ssl crypto'
27500  while test -n "$names_next_round"; do
27501    names_this_round="$names_next_round"
27502    names_next_round=
27503    for name in $names_this_round; do
27504      already_handled=
27505      for n in $names_already_handled; do
27506        if test "$n" = "$name"; then
27507          already_handled=yes
27508          break
27509        fi
27510      done
27511      if test -z "$already_handled"; then
27512        names_already_handled="$names_already_handled $name"
27513                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27514        eval value=\"\$HAVE_LIB$uppername\"
27515        if test -n "$value"; then
27516          if test "$value" = yes; then
27517            eval value=\"\$LIB$uppername\"
27518            test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
27519            eval value=\"\$LTLIB$uppername\"
27520            test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
27521          else
27522                                    :
27523          fi
27524        else
27525                              found_dir=
27526          found_la=
27527          found_so=
27528          found_a=
27529          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27530          if test -n "$acl_shlibext"; then
27531            shrext=".$acl_shlibext"             # typically: shrext=.so
27532          else
27533            shrext=
27534          fi
27535          if test $use_additional = yes; then
27536            dir="$additional_libdir"
27537                                    if test -n "$acl_shlibext"; then
27538              if test -f "$dir/$libname$shrext"; then
27539                found_dir="$dir"
27540                found_so="$dir/$libname$shrext"
27541              else
27542                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27543                  ver=`(cd "$dir" && \
27544                        for f in "$libname$shrext".*; do echo "$f"; done \
27545                        | sed -e "s,^$libname$shrext\\\\.,," \
27546                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27547                        | sed 1q ) 2>/dev/null`
27548                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27549                    found_dir="$dir"
27550                    found_so="$dir/$libname$shrext.$ver"
27551                  fi
27552                else
27553                  eval library_names=\"$acl_library_names_spec\"
27554                  for f in $library_names; do
27555                    if test -f "$dir/$f"; then
27556                      found_dir="$dir"
27557                      found_so="$dir/$f"
27558                      break
27559                    fi
27560                  done
27561                fi
27562              fi
27563            fi
27564                        if test "X$found_dir" = "X"; then
27565              if test -f "$dir/$libname.$acl_libext"; then
27566                found_dir="$dir"
27567                found_a="$dir/$libname.$acl_libext"
27568              fi
27569            fi
27570            if test "X$found_dir" != "X"; then
27571              if test -f "$dir/$libname.la"; then
27572                found_la="$dir/$libname.la"
27573              fi
27574            fi
27575          fi
27576          if test "X$found_dir" = "X"; then
27577            for x in $LDFLAGS $LTLIBSSL; do
27578
27579  acl_save_prefix="$prefix"
27580  prefix="$acl_final_prefix"
27581  acl_save_exec_prefix="$exec_prefix"
27582  exec_prefix="$acl_final_exec_prefix"
27583  eval x=\"$x\"
27584  exec_prefix="$acl_save_exec_prefix"
27585  prefix="$acl_save_prefix"
27586
27587              case "$x" in
27588                -L*)
27589                  dir=`echo "X$x" | sed -e 's/^X-L//'`
27590                                    if test -n "$acl_shlibext"; then
27591                    if test -f "$dir/$libname$shrext"; then
27592                      found_dir="$dir"
27593                      found_so="$dir/$libname$shrext"
27594                    else
27595                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27596                        ver=`(cd "$dir" && \
27597                              for f in "$libname$shrext".*; do echo "$f"; done \
27598                              | sed -e "s,^$libname$shrext\\\\.,," \
27599                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27600                              | sed 1q ) 2>/dev/null`
27601                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27602                          found_dir="$dir"
27603                          found_so="$dir/$libname$shrext.$ver"
27604                        fi
27605                      else
27606                        eval library_names=\"$acl_library_names_spec\"
27607                        for f in $library_names; do
27608                          if test -f "$dir/$f"; then
27609                            found_dir="$dir"
27610                            found_so="$dir/$f"
27611                            break
27612                          fi
27613                        done
27614                      fi
27615                    fi
27616                  fi
27617                                    if test "X$found_dir" = "X"; then
27618                    if test -f "$dir/$libname.$acl_libext"; then
27619                      found_dir="$dir"
27620                      found_a="$dir/$libname.$acl_libext"
27621                    fi
27622                  fi
27623                  if test "X$found_dir" != "X"; then
27624                    if test -f "$dir/$libname.la"; then
27625                      found_la="$dir/$libname.la"
27626                    fi
27627                  fi
27628                  ;;
27629              esac
27630              if test "X$found_dir" != "X"; then
27631                break
27632              fi
27633            done
27634          fi
27635          if test "X$found_dir" != "X"; then
27636                        LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
27637            if test "X$found_so" != "X"; then
27638                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27639                                LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27640              else
27641                                                                                haveit=
27642                for x in $ltrpathdirs; do
27643                  if test "X$x" = "X$found_dir"; then
27644                    haveit=yes
27645                    break
27646                  fi
27647                done
27648                if test -z "$haveit"; then
27649                  ltrpathdirs="$ltrpathdirs $found_dir"
27650                fi
27651                                if test "$acl_hardcode_direct" = yes; then
27652                                                      LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27653                else
27654                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27655                                                            LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27656                                                            haveit=
27657                    for x in $rpathdirs; do
27658                      if test "X$x" = "X$found_dir"; then
27659                        haveit=yes
27660                        break
27661                      fi
27662                    done
27663                    if test -z "$haveit"; then
27664                      rpathdirs="$rpathdirs $found_dir"
27665                    fi
27666                  else
27667                                                                                haveit=
27668                    for x in $LDFLAGS $LIBSSL; do
27669
27670  acl_save_prefix="$prefix"
27671  prefix="$acl_final_prefix"
27672  acl_save_exec_prefix="$exec_prefix"
27673  exec_prefix="$acl_final_exec_prefix"
27674  eval x=\"$x\"
27675  exec_prefix="$acl_save_exec_prefix"
27676  prefix="$acl_save_prefix"
27677
27678                      if test "X$x" = "X-L$found_dir"; then
27679                        haveit=yes
27680                        break
27681                      fi
27682                    done
27683                    if test -z "$haveit"; then
27684                      LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
27685                    fi
27686                    if test "$acl_hardcode_minus_L" != no; then
27687                                                                                        LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27688                    else
27689                                                                                                                                                                                LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
27690                    fi
27691                  fi
27692                fi
27693              fi
27694            else
27695              if test "X$found_a" != "X"; then
27696                                LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
27697              else
27698                                                LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
27699              fi
27700            fi
27701                        additional_includedir=
27702            case "$found_dir" in
27703              */$acl_libdirstem | */$acl_libdirstem/)
27704                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27705                LIBSSL_PREFIX="$basedir"
27706                additional_includedir="$basedir/include"
27707                ;;
27708            esac
27709            if test "X$additional_includedir" != "X"; then
27710                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
27711                haveit=
27712                if test "X$additional_includedir" = "X/usr/local/include"; then
27713                  if test -n "$GCC"; then
27714                    case $host_os in
27715                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27716                    esac
27717                  fi
27718                fi
27719                if test -z "$haveit"; then
27720                  for x in $CPPFLAGS $INCSSL; do
27721
27722  acl_save_prefix="$prefix"
27723  prefix="$acl_final_prefix"
27724  acl_save_exec_prefix="$exec_prefix"
27725  exec_prefix="$acl_final_exec_prefix"
27726  eval x=\"$x\"
27727  exec_prefix="$acl_save_exec_prefix"
27728  prefix="$acl_save_prefix"
27729
27730                    if test "X$x" = "X-I$additional_includedir"; then
27731                      haveit=yes
27732                      break
27733                    fi
27734                  done
27735                  if test -z "$haveit"; then
27736                    if test -d "$additional_includedir"; then
27737                                            INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
27738                    fi
27739                  fi
27740                fi
27741              fi
27742            fi
27743                        if test -n "$found_la"; then
27744                                                        save_libdir="$libdir"
27745              case "$found_la" in
27746                */* | *\\*) . "$found_la" ;;
27747                *) . "./$found_la" ;;
27748              esac
27749              libdir="$save_libdir"
27750                            for dep in $dependency_libs; do
27751                case "$dep" in
27752                  -L*)
27753                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27754                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27755                      haveit=
27756                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27757                        if test -n "$GCC"; then
27758                          case $host_os in
27759                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27760                          esac
27761                        fi
27762                      fi
27763                      if test -z "$haveit"; then
27764                        haveit=
27765                        for x in $LDFLAGS $LIBSSL; do
27766
27767  acl_save_prefix="$prefix"
27768  prefix="$acl_final_prefix"
27769  acl_save_exec_prefix="$exec_prefix"
27770  exec_prefix="$acl_final_exec_prefix"
27771  eval x=\"$x\"
27772  exec_prefix="$acl_save_exec_prefix"
27773  prefix="$acl_save_prefix"
27774
27775                          if test "X$x" = "X-L$additional_libdir"; then
27776                            haveit=yes
27777                            break
27778                          fi
27779                        done
27780                        if test -z "$haveit"; then
27781                          if test -d "$additional_libdir"; then
27782                                                        LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
27783                          fi
27784                        fi
27785                        haveit=
27786                        for x in $LDFLAGS $LTLIBSSL; do
27787
27788  acl_save_prefix="$prefix"
27789  prefix="$acl_final_prefix"
27790  acl_save_exec_prefix="$exec_prefix"
27791  exec_prefix="$acl_final_exec_prefix"
27792  eval x=\"$x\"
27793  exec_prefix="$acl_save_exec_prefix"
27794  prefix="$acl_save_prefix"
27795
27796                          if test "X$x" = "X-L$additional_libdir"; then
27797                            haveit=yes
27798                            break
27799                          fi
27800                        done
27801                        if test -z "$haveit"; then
27802                          if test -d "$additional_libdir"; then
27803                                                        LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
27804                          fi
27805                        fi
27806                      fi
27807                    fi
27808                    ;;
27809                  -R*)
27810                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
27811                    if test "$enable_rpath" != no; then
27812                                                                  haveit=
27813                      for x in $rpathdirs; do
27814                        if test "X$x" = "X$dir"; then
27815                          haveit=yes
27816                          break
27817                        fi
27818                      done
27819                      if test -z "$haveit"; then
27820                        rpathdirs="$rpathdirs $dir"
27821                      fi
27822                                                                  haveit=
27823                      for x in $ltrpathdirs; do
27824                        if test "X$x" = "X$dir"; then
27825                          haveit=yes
27826                          break
27827                        fi
27828                      done
27829                      if test -z "$haveit"; then
27830                        ltrpathdirs="$ltrpathdirs $dir"
27831                      fi
27832                    fi
27833                    ;;
27834                  -l*)
27835                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27836                    ;;
27837                  *.la)
27838                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27839                    ;;
27840                  *)
27841                                        LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
27842                    LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
27843                    ;;
27844                esac
27845              done
27846            fi
27847          else
27848                                                            LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
27849            LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
27850          fi
27851        fi
27852      fi
27853    done
27854  done
27855  if test "X$rpathdirs" != "X"; then
27856    if test -n "$acl_hardcode_libdir_separator"; then
27857                        alldirs=
27858      for found_dir in $rpathdirs; do
27859        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27860      done
27861            acl_save_libdir="$libdir"
27862      libdir="$alldirs"
27863      eval flag=\"$acl_hardcode_libdir_flag_spec\"
27864      libdir="$acl_save_libdir"
27865      LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
27866    else
27867            for found_dir in $rpathdirs; do
27868        acl_save_libdir="$libdir"
27869        libdir="$found_dir"
27870        eval flag=\"$acl_hardcode_libdir_flag_spec\"
27871        libdir="$acl_save_libdir"
27872        LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
27873      done
27874    fi
27875  fi
27876  if test "X$ltrpathdirs" != "X"; then
27877            for found_dir in $ltrpathdirs; do
27878      LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
27879    done
27880  fi
27881
27882
27883        ac_save_CPPFLAGS="$CPPFLAGS"
27884
27885  for element in $INCSSL; do
27886    haveit=
27887    for x in $CPPFLAGS; do
27888
27889  acl_save_prefix="$prefix"
27890  prefix="$acl_final_prefix"
27891  acl_save_exec_prefix="$exec_prefix"
27892  exec_prefix="$acl_final_exec_prefix"
27893  eval x=\"$x\"
27894  exec_prefix="$acl_save_exec_prefix"
27895  prefix="$acl_save_prefix"
27896
27897      if test "X$x" = "X$element"; then
27898        haveit=yes
27899        break
27900      fi
27901    done
27902    if test -z "$haveit"; then
27903      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27904    fi
27905  done
27906
27907
27908  { $as_echo "$as_me:$LINENO: checking for libssl" >&5
27909$as_echo_n "checking for libssl... " >&6; }
27910if test "${ac_cv_libssl+set}" = set; then
27911  $as_echo_n "(cached) " >&6
27912else
27913
27914    ac_save_LIBS="$LIBS"
27915    LIBS="$LIBS $LIBSSL"
27916    cat >conftest.$ac_ext <<_ACEOF
27917/* confdefs.h.  */
27918_ACEOF
27919cat confdefs.h >>conftest.$ac_ext
27920cat >>conftest.$ac_ext <<_ACEOF
27921/* end confdefs.h.  */
27922
27923  #include <openssl/ssl.h>
27924  #include <openssl/x509.h>
27925  #include <openssl/err.h>
27926  #include <openssl/rand.h>
27927  #include <openssl/des.h>
27928  #include <openssl/md4.h>
27929  #include <openssl/md5.h>
27930
27931int
27932main ()
27933{
27934SSL_library_init ()
27935  ;
27936  return 0;
27937}
27938_ACEOF
27939rm -f conftest.$ac_objext conftest$ac_exeext
27940if { (ac_try="$ac_link"
27941case "(($ac_try" in
27942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943  *) ac_try_echo=$ac_try;;
27944esac
27945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27946$as_echo "$ac_try_echo") >&5
27947  (eval "$ac_link") 2>conftest.er1
27948  ac_status=$?
27949  grep -v '^ *+' conftest.er1 >conftest.err
27950  rm -f conftest.er1
27951  cat conftest.err >&5
27952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953  (exit $ac_status); } && {
27954	 test -z "$ac_c_werror_flag" ||
27955	 test ! -s conftest.err
27956       } && test -s conftest$ac_exeext && {
27957	 test "$cross_compiling" = yes ||
27958	 $as_test_x conftest$ac_exeext
27959       }; then
27960  ac_cv_libssl=yes
27961else
27962  $as_echo "$as_me: failed program was:" >&5
27963sed 's/^/| /' conftest.$ac_ext >&5
27964
27965	ac_cv_libssl=no
27966fi
27967
27968rm -rf conftest.dSYM
27969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27970      conftest$ac_exeext conftest.$ac_ext
27971    LIBS="$ac_save_LIBS"
27972
27973fi
27974{ $as_echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
27975$as_echo "$ac_cv_libssl" >&6; }
27976  if test "$ac_cv_libssl" = yes; then
27977    HAVE_LIBSSL=yes
27978
27979cat >>confdefs.h <<\_ACEOF
27980#define HAVE_LIBSSL 1
27981_ACEOF
27982
27983    { $as_echo "$as_me:$LINENO: checking how to link with libssl" >&5
27984$as_echo_n "checking how to link with libssl... " >&6; }
27985    { $as_echo "$as_me:$LINENO: result: $LIBSSL" >&5
27986$as_echo "$LIBSSL" >&6; }
27987  else
27988    HAVE_LIBSSL=no
27989            CPPFLAGS="$ac_save_CPPFLAGS"
27990    LIBSSL=
27991    LTLIBSSL=
27992    LIBSSL_PREFIX=
27993  fi
27994
27995
27996
27997
27998
27999
28000
28001    if test x"$LIBSSL" != x
28002    then
28003      { $as_echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
28004$as_echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
28005      case " $LIBOBJS " in
28006  *" openssl.$ac_objext "* ) ;;
28007  *) LIBOBJS="$LIBOBJS openssl.$ac_objext"
28008 ;;
28009esac
28010
28011    elif test x"$with_ssl" != x
28012    then
28013      { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
28014$as_echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
28015   { (exit 1); exit 1; }; }
28016    fi
28017
28018fi
28019 # endif: --with-ssl == no?
28020
28021fi
28022 # endif: --with-ssl == gnutls?
28023
28024
28025if test x"$LIBSSL" != x
28026then
28027  if test x"$ENABLE_NTLM" != xno
28028  then
28029
28030cat >>confdefs.h <<\_ACEOF
28031#define ENABLE_NTLM 1
28032_ACEOF
28033
28034    case " $LIBOBJS " in
28035  *" http-ntlm.$ac_objext "* ) ;;
28036  *) LIBOBJS="$LIBOBJS http-ntlm.$ac_objext"
28037 ;;
28038esac
28039
28040  fi
28041else
28042      if test x"$ENABLE_NTLM" = xyes
28043  then
28044    { { $as_echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
28045$as_echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
28046   { (exit 1); exit 1; }; }
28047  fi
28048fi
28049
28050
28051if test x"$wget_need_md5" = xyes
28052then
28053
28054  case " $LIBOBJS " in
28055  *" gen-md5.$ac_objext "* ) ;;
28056  *) LIBOBJS="$LIBOBJS gen-md5.$ac_objext"
28057 ;;
28058esac
28059
28060  found_md5=no
28061
28062            if test x"$found_md5" = xno; then
28063    { $as_echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
28064$as_echo_n "checking for md5_calc in -lmd5... " >&6; }
28065if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
28066  $as_echo_n "(cached) " >&6
28067else
28068  ac_check_lib_save_LIBS=$LIBS
28069LIBS="-lmd5  $LIBS"
28070cat >conftest.$ac_ext <<_ACEOF
28071/* confdefs.h.  */
28072_ACEOF
28073cat confdefs.h >>conftest.$ac_ext
28074cat >>conftest.$ac_ext <<_ACEOF
28075/* end confdefs.h.  */
28076
28077/* Override any GCC internal prototype to avoid an error.
28078   Use char because int might match the return type of a GCC
28079   builtin and then its argument prototype would still apply.  */
28080#ifdef __cplusplus
28081extern "C"
28082#endif
28083char md5_calc ();
28084int
28085main ()
28086{
28087return md5_calc ();
28088  ;
28089  return 0;
28090}
28091_ACEOF
28092rm -f conftest.$ac_objext conftest$ac_exeext
28093if { (ac_try="$ac_link"
28094case "(($ac_try" in
28095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096  *) ac_try_echo=$ac_try;;
28097esac
28098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28099$as_echo "$ac_try_echo") >&5
28100  (eval "$ac_link") 2>conftest.er1
28101  ac_status=$?
28102  grep -v '^ *+' conftest.er1 >conftest.err
28103  rm -f conftest.er1
28104  cat conftest.err >&5
28105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106  (exit $ac_status); } && {
28107	 test -z "$ac_c_werror_flag" ||
28108	 test ! -s conftest.err
28109       } && test -s conftest$ac_exeext && {
28110	 test "$cross_compiling" = yes ||
28111	 $as_test_x conftest$ac_exeext
28112       }; then
28113  ac_cv_lib_md5_md5_calc=yes
28114else
28115  $as_echo "$as_me: failed program was:" >&5
28116sed 's/^/| /' conftest.$ac_ext >&5
28117
28118	ac_cv_lib_md5_md5_calc=no
28119fi
28120
28121rm -rf conftest.dSYM
28122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28123      conftest$ac_exeext conftest.$ac_ext
28124LIBS=$ac_check_lib_save_LIBS
28125fi
28126{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
28127$as_echo "$ac_cv_lib_md5_md5_calc" >&6; }
28128if test "x$ac_cv_lib_md5_md5_calc" = x""yes; then
28129
28130                  { $as_echo "$as_me:$LINENO: checking for working md5.h" >&5
28131$as_echo_n "checking for working md5.h... " >&6; }
28132      cat >conftest.$ac_ext <<_ACEOF
28133#include <md5.h>
28134
28135_ACEOF
28136rm -f conftest.$ac_objext
28137if { (ac_try="$ac_compile"
28138case "(($ac_try" in
28139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140  *) ac_try_echo=$ac_try;;
28141esac
28142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28143$as_echo "$ac_try_echo") >&5
28144  (eval "$ac_compile") 2>conftest.er1
28145  ac_status=$?
28146  grep -v '^ *+' conftest.er1 >conftest.err
28147  rm -f conftest.er1
28148  cat conftest.err >&5
28149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150  (exit $ac_status); } && {
28151	 test -z "$ac_c_werror_flag" ||
28152	 test ! -s conftest.err
28153       } && test -s conftest.$ac_objext; then
28154
28155        { $as_echo "$as_me:$LINENO: result: yes" >&5
28156$as_echo "yes" >&6; }
28157
28158cat >>confdefs.h <<\_ACEOF
28159#define HAVE_SOLARIS_MD5 1
28160_ACEOF
28161
28162        LIBS="-lmd5 $LIBS"
28163        found_md5=yes
28164        { $as_echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
28165$as_echo "$as_me: using the Solaris MD5 implementation" >&6;}
28166
28167else
28168  $as_echo "$as_me: failed program was:" >&5
28169sed 's/^/| /' conftest.$ac_ext >&5
28170
28171	{ $as_echo "$as_me:$LINENO: result: no" >&5
28172$as_echo "no" >&6; }
28173fi
28174
28175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176
28177fi
28178
28179  fi
28180
28181      if test x"$found_md5" = xno; then
28182    if test x"$LIBSSL" != x; then
28183
28184cat >>confdefs.h <<\_ACEOF
28185#define HAVE_OPENSSL_MD5 1
28186_ACEOF
28187
28188      found_md5=yes
28189      { $as_echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
28190$as_echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
28191    fi
28192  fi
28193
28194    if test x"$found_md5" = xno; then
28195
28196cat >>confdefs.h <<\_ACEOF
28197#define HAVE_BUILTIN_MD5 1
28198_ACEOF
28199
28200    found_md5=yes
28201    { $as_echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
28202$as_echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
28203
28204 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28205$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28206if test "${ac_cv_c_bigendian+set}" = set; then
28207  $as_echo_n "(cached) " >&6
28208else
28209  ac_cv_c_bigendian=unknown
28210    # See if we're dealing with a universal compiler.
28211    cat >conftest.$ac_ext <<_ACEOF
28212/* confdefs.h.  */
28213_ACEOF
28214cat confdefs.h >>conftest.$ac_ext
28215cat >>conftest.$ac_ext <<_ACEOF
28216/* end confdefs.h.  */
28217#ifndef __APPLE_CC__
28218	       not a universal capable compiler
28219	     #endif
28220	     typedef int dummy;
28221
28222_ACEOF
28223rm -f conftest.$ac_objext
28224if { (ac_try="$ac_compile"
28225case "(($ac_try" in
28226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227  *) ac_try_echo=$ac_try;;
28228esac
28229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28230$as_echo "$ac_try_echo") >&5
28231  (eval "$ac_compile") 2>conftest.er1
28232  ac_status=$?
28233  grep -v '^ *+' conftest.er1 >conftest.err
28234  rm -f conftest.er1
28235  cat conftest.err >&5
28236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237  (exit $ac_status); } && {
28238	 test -z "$ac_c_werror_flag" ||
28239	 test ! -s conftest.err
28240       } && test -s conftest.$ac_objext; then
28241
28242	# Check for potential -arch flags.  It is not universal unless
28243	# there are some -arch flags.  Note that *ppc* also matches
28244	# ppc64.  This check is also rather less than ideal.
28245	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
28246	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28247	esac
28248else
28249  $as_echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252
28253fi
28254
28255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256    if test $ac_cv_c_bigendian = unknown; then
28257      # See if sys/param.h defines the BYTE_ORDER macro.
28258      cat >conftest.$ac_ext <<_ACEOF
28259/* confdefs.h.  */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h.  */
28264#include <sys/types.h>
28265	     #include <sys/param.h>
28266
28267int
28268main ()
28269{
28270#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28271		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28272		     && LITTLE_ENDIAN)
28273	      bogus endian macros
28274	     #endif
28275
28276  ;
28277  return 0;
28278}
28279_ACEOF
28280rm -f conftest.$ac_objext
28281if { (ac_try="$ac_compile"
28282case "(($ac_try" in
28283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284  *) ac_try_echo=$ac_try;;
28285esac
28286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28287$as_echo "$ac_try_echo") >&5
28288  (eval "$ac_compile") 2>conftest.er1
28289  ac_status=$?
28290  grep -v '^ *+' conftest.er1 >conftest.err
28291  rm -f conftest.er1
28292  cat conftest.err >&5
28293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294  (exit $ac_status); } && {
28295	 test -z "$ac_c_werror_flag" ||
28296	 test ! -s conftest.err
28297       } && test -s conftest.$ac_objext; then
28298  # It does; now see whether it defined to BIG_ENDIAN or not.
28299	 cat >conftest.$ac_ext <<_ACEOF
28300/* confdefs.h.  */
28301_ACEOF
28302cat confdefs.h >>conftest.$ac_ext
28303cat >>conftest.$ac_ext <<_ACEOF
28304/* end confdefs.h.  */
28305#include <sys/types.h>
28306		#include <sys/param.h>
28307
28308int
28309main ()
28310{
28311#if BYTE_ORDER != BIG_ENDIAN
28312		 not big endian
28313		#endif
28314
28315  ;
28316  return 0;
28317}
28318_ACEOF
28319rm -f conftest.$ac_objext
28320if { (ac_try="$ac_compile"
28321case "(($ac_try" in
28322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323  *) ac_try_echo=$ac_try;;
28324esac
28325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28326$as_echo "$ac_try_echo") >&5
28327  (eval "$ac_compile") 2>conftest.er1
28328  ac_status=$?
28329  grep -v '^ *+' conftest.er1 >conftest.err
28330  rm -f conftest.er1
28331  cat conftest.err >&5
28332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333  (exit $ac_status); } && {
28334	 test -z "$ac_c_werror_flag" ||
28335	 test ! -s conftest.err
28336       } && test -s conftest.$ac_objext; then
28337  ac_cv_c_bigendian=yes
28338else
28339  $as_echo "$as_me: failed program was:" >&5
28340sed 's/^/| /' conftest.$ac_ext >&5
28341
28342	ac_cv_c_bigendian=no
28343fi
28344
28345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28346else
28347  $as_echo "$as_me: failed program was:" >&5
28348sed 's/^/| /' conftest.$ac_ext >&5
28349
28350
28351fi
28352
28353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28354    fi
28355    if test $ac_cv_c_bigendian = unknown; then
28356      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28357      cat >conftest.$ac_ext <<_ACEOF
28358/* confdefs.h.  */
28359_ACEOF
28360cat confdefs.h >>conftest.$ac_ext
28361cat >>conftest.$ac_ext <<_ACEOF
28362/* end confdefs.h.  */
28363#include <limits.h>
28364
28365int
28366main ()
28367{
28368#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28369	      bogus endian macros
28370	     #endif
28371
28372  ;
28373  return 0;
28374}
28375_ACEOF
28376rm -f conftest.$ac_objext
28377if { (ac_try="$ac_compile"
28378case "(($ac_try" in
28379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380  *) ac_try_echo=$ac_try;;
28381esac
28382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28383$as_echo "$ac_try_echo") >&5
28384  (eval "$ac_compile") 2>conftest.er1
28385  ac_status=$?
28386  grep -v '^ *+' conftest.er1 >conftest.err
28387  rm -f conftest.er1
28388  cat conftest.err >&5
28389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390  (exit $ac_status); } && {
28391	 test -z "$ac_c_werror_flag" ||
28392	 test ! -s conftest.err
28393       } && test -s conftest.$ac_objext; then
28394  # It does; now see whether it defined to _BIG_ENDIAN or not.
28395	 cat >conftest.$ac_ext <<_ACEOF
28396/* confdefs.h.  */
28397_ACEOF
28398cat confdefs.h >>conftest.$ac_ext
28399cat >>conftest.$ac_ext <<_ACEOF
28400/* end confdefs.h.  */
28401#include <limits.h>
28402
28403int
28404main ()
28405{
28406#ifndef _BIG_ENDIAN
28407		 not big endian
28408		#endif
28409
28410  ;
28411  return 0;
28412}
28413_ACEOF
28414rm -f conftest.$ac_objext
28415if { (ac_try="$ac_compile"
28416case "(($ac_try" in
28417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418  *) ac_try_echo=$ac_try;;
28419esac
28420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28421$as_echo "$ac_try_echo") >&5
28422  (eval "$ac_compile") 2>conftest.er1
28423  ac_status=$?
28424  grep -v '^ *+' conftest.er1 >conftest.err
28425  rm -f conftest.er1
28426  cat conftest.err >&5
28427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428  (exit $ac_status); } && {
28429	 test -z "$ac_c_werror_flag" ||
28430	 test ! -s conftest.err
28431       } && test -s conftest.$ac_objext; then
28432  ac_cv_c_bigendian=yes
28433else
28434  $as_echo "$as_me: failed program was:" >&5
28435sed 's/^/| /' conftest.$ac_ext >&5
28436
28437	ac_cv_c_bigendian=no
28438fi
28439
28440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28441else
28442  $as_echo "$as_me: failed program was:" >&5
28443sed 's/^/| /' conftest.$ac_ext >&5
28444
28445
28446fi
28447
28448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28449    fi
28450    if test $ac_cv_c_bigendian = unknown; then
28451      # Compile a test program.
28452      if test "$cross_compiling" = yes; then
28453  # Try to guess by grepping values from an object file.
28454	 cat >conftest.$ac_ext <<_ACEOF
28455/* confdefs.h.  */
28456_ACEOF
28457cat confdefs.h >>conftest.$ac_ext
28458cat >>conftest.$ac_ext <<_ACEOF
28459/* end confdefs.h.  */
28460short int ascii_mm[] =
28461		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28462		short int ascii_ii[] =
28463		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28464		int use_ascii (int i) {
28465		  return ascii_mm[i] + ascii_ii[i];
28466		}
28467		short int ebcdic_ii[] =
28468		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28469		short int ebcdic_mm[] =
28470		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28471		int use_ebcdic (int i) {
28472		  return ebcdic_mm[i] + ebcdic_ii[i];
28473		}
28474		extern int foo;
28475
28476int
28477main ()
28478{
28479return use_ascii (foo) == use_ebcdic (foo);
28480  ;
28481  return 0;
28482}
28483_ACEOF
28484rm -f conftest.$ac_objext
28485if { (ac_try="$ac_compile"
28486case "(($ac_try" in
28487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488  *) ac_try_echo=$ac_try;;
28489esac
28490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28491$as_echo "$ac_try_echo") >&5
28492  (eval "$ac_compile") 2>conftest.er1
28493  ac_status=$?
28494  grep -v '^ *+' conftest.er1 >conftest.err
28495  rm -f conftest.er1
28496  cat conftest.err >&5
28497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498  (exit $ac_status); } && {
28499	 test -z "$ac_c_werror_flag" ||
28500	 test ! -s conftest.err
28501       } && test -s conftest.$ac_objext; then
28502  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28503	      ac_cv_c_bigendian=yes
28504	    fi
28505	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28506	      if test "$ac_cv_c_bigendian" = unknown; then
28507		ac_cv_c_bigendian=no
28508	      else
28509		# finding both strings is unlikely to happen, but who knows?
28510		ac_cv_c_bigendian=unknown
28511	      fi
28512	    fi
28513else
28514  $as_echo "$as_me: failed program was:" >&5
28515sed 's/^/| /' conftest.$ac_ext >&5
28516
28517
28518fi
28519
28520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521else
28522  cat >conftest.$ac_ext <<_ACEOF
28523/* confdefs.h.  */
28524_ACEOF
28525cat confdefs.h >>conftest.$ac_ext
28526cat >>conftest.$ac_ext <<_ACEOF
28527/* end confdefs.h.  */
28528$ac_includes_default
28529int
28530main ()
28531{
28532
28533	     /* Are we little or big endian?  From Harbison&Steele.  */
28534	     union
28535	     {
28536	       long int l;
28537	       char c[sizeof (long int)];
28538	     } u;
28539	     u.l = 1;
28540	     return u.c[sizeof (long int) - 1] == 1;
28541
28542  ;
28543  return 0;
28544}
28545_ACEOF
28546rm -f conftest$ac_exeext
28547if { (ac_try="$ac_link"
28548case "(($ac_try" in
28549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550  *) ac_try_echo=$ac_try;;
28551esac
28552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28553$as_echo "$ac_try_echo") >&5
28554  (eval "$ac_link") 2>&5
28555  ac_status=$?
28556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28558  { (case "(($ac_try" in
28559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560  *) ac_try_echo=$ac_try;;
28561esac
28562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563$as_echo "$ac_try_echo") >&5
28564  (eval "$ac_try") 2>&5
28565  ac_status=$?
28566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567  (exit $ac_status); }; }; then
28568  ac_cv_c_bigendian=no
28569else
28570  $as_echo "$as_me: program exited with status $ac_status" >&5
28571$as_echo "$as_me: failed program was:" >&5
28572sed 's/^/| /' conftest.$ac_ext >&5
28573
28574( exit $ac_status )
28575ac_cv_c_bigendian=yes
28576fi
28577rm -rf conftest.dSYM
28578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28579fi
28580
28581
28582    fi
28583fi
28584{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28585$as_echo "$ac_cv_c_bigendian" >&6; }
28586 case $ac_cv_c_bigendian in #(
28587   yes)
28588     cat >>confdefs.h <<\_ACEOF
28589#define WORDS_BIGENDIAN 1
28590_ACEOF
28591;; #(
28592   no)
28593      ;; #(
28594   universal)
28595
28596cat >>confdefs.h <<\_ACEOF
28597#define AC_APPLE_UNIVERSAL_BUILD 1
28598_ACEOF
28599
28600     ;; #(
28601   *)
28602     { { $as_echo "$as_me:$LINENO: error: unknown endianness
28603 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28604$as_echo "$as_me: error: unknown endianness
28605 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28606   { (exit 1); exit 1; }; } ;;
28607 esac
28608
28609
28610    MD5_CPPFLAGS='-I $(top_srcdir)/md5'
28611
28612    MD5_LDADD='../md5/libmd5.a'
28613
28614    MD5_SUBDIR=md5
28615
28616
28617
28618 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28619$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28620if test "${ac_cv_c_bigendian+set}" = set; then
28621  $as_echo_n "(cached) " >&6
28622else
28623  ac_cv_c_bigendian=unknown
28624    # See if we're dealing with a universal compiler.
28625    cat >conftest.$ac_ext <<_ACEOF
28626/* confdefs.h.  */
28627_ACEOF
28628cat confdefs.h >>conftest.$ac_ext
28629cat >>conftest.$ac_ext <<_ACEOF
28630/* end confdefs.h.  */
28631#ifndef __APPLE_CC__
28632	       not a universal capable compiler
28633	     #endif
28634	     typedef int dummy;
28635
28636_ACEOF
28637rm -f conftest.$ac_objext
28638if { (ac_try="$ac_compile"
28639case "(($ac_try" in
28640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641  *) ac_try_echo=$ac_try;;
28642esac
28643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28644$as_echo "$ac_try_echo") >&5
28645  (eval "$ac_compile") 2>conftest.er1
28646  ac_status=$?
28647  grep -v '^ *+' conftest.er1 >conftest.err
28648  rm -f conftest.er1
28649  cat conftest.err >&5
28650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651  (exit $ac_status); } && {
28652	 test -z "$ac_c_werror_flag" ||
28653	 test ! -s conftest.err
28654       } && test -s conftest.$ac_objext; then
28655
28656	# Check for potential -arch flags.  It is not universal unless
28657	# there are some -arch flags.  Note that *ppc* also matches
28658	# ppc64.  This check is also rather less than ideal.
28659	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
28660	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28661	esac
28662else
28663  $as_echo "$as_me: failed program was:" >&5
28664sed 's/^/| /' conftest.$ac_ext >&5
28665
28666
28667fi
28668
28669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28670    if test $ac_cv_c_bigendian = unknown; then
28671      # See if sys/param.h defines the BYTE_ORDER macro.
28672      cat >conftest.$ac_ext <<_ACEOF
28673/* confdefs.h.  */
28674_ACEOF
28675cat confdefs.h >>conftest.$ac_ext
28676cat >>conftest.$ac_ext <<_ACEOF
28677/* end confdefs.h.  */
28678#include <sys/types.h>
28679	     #include <sys/param.h>
28680
28681int
28682main ()
28683{
28684#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28685		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28686		     && LITTLE_ENDIAN)
28687	      bogus endian macros
28688	     #endif
28689
28690  ;
28691  return 0;
28692}
28693_ACEOF
28694rm -f conftest.$ac_objext
28695if { (ac_try="$ac_compile"
28696case "(($ac_try" in
28697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698  *) ac_try_echo=$ac_try;;
28699esac
28700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28701$as_echo "$ac_try_echo") >&5
28702  (eval "$ac_compile") 2>conftest.er1
28703  ac_status=$?
28704  grep -v '^ *+' conftest.er1 >conftest.err
28705  rm -f conftest.er1
28706  cat conftest.err >&5
28707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708  (exit $ac_status); } && {
28709	 test -z "$ac_c_werror_flag" ||
28710	 test ! -s conftest.err
28711       } && test -s conftest.$ac_objext; then
28712  # It does; now see whether it defined to BIG_ENDIAN or not.
28713	 cat >conftest.$ac_ext <<_ACEOF
28714/* confdefs.h.  */
28715_ACEOF
28716cat confdefs.h >>conftest.$ac_ext
28717cat >>conftest.$ac_ext <<_ACEOF
28718/* end confdefs.h.  */
28719#include <sys/types.h>
28720		#include <sys/param.h>
28721
28722int
28723main ()
28724{
28725#if BYTE_ORDER != BIG_ENDIAN
28726		 not big endian
28727		#endif
28728
28729  ;
28730  return 0;
28731}
28732_ACEOF
28733rm -f conftest.$ac_objext
28734if { (ac_try="$ac_compile"
28735case "(($ac_try" in
28736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737  *) ac_try_echo=$ac_try;;
28738esac
28739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28740$as_echo "$ac_try_echo") >&5
28741  (eval "$ac_compile") 2>conftest.er1
28742  ac_status=$?
28743  grep -v '^ *+' conftest.er1 >conftest.err
28744  rm -f conftest.er1
28745  cat conftest.err >&5
28746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747  (exit $ac_status); } && {
28748	 test -z "$ac_c_werror_flag" ||
28749	 test ! -s conftest.err
28750       } && test -s conftest.$ac_objext; then
28751  ac_cv_c_bigendian=yes
28752else
28753  $as_echo "$as_me: failed program was:" >&5
28754sed 's/^/| /' conftest.$ac_ext >&5
28755
28756	ac_cv_c_bigendian=no
28757fi
28758
28759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760else
28761  $as_echo "$as_me: failed program was:" >&5
28762sed 's/^/| /' conftest.$ac_ext >&5
28763
28764
28765fi
28766
28767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28768    fi
28769    if test $ac_cv_c_bigendian = unknown; then
28770      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28771      cat >conftest.$ac_ext <<_ACEOF
28772/* confdefs.h.  */
28773_ACEOF
28774cat confdefs.h >>conftest.$ac_ext
28775cat >>conftest.$ac_ext <<_ACEOF
28776/* end confdefs.h.  */
28777#include <limits.h>
28778
28779int
28780main ()
28781{
28782#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28783	      bogus endian macros
28784	     #endif
28785
28786  ;
28787  return 0;
28788}
28789_ACEOF
28790rm -f conftest.$ac_objext
28791if { (ac_try="$ac_compile"
28792case "(($ac_try" in
28793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794  *) ac_try_echo=$ac_try;;
28795esac
28796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797$as_echo "$ac_try_echo") >&5
28798  (eval "$ac_compile") 2>conftest.er1
28799  ac_status=$?
28800  grep -v '^ *+' conftest.er1 >conftest.err
28801  rm -f conftest.er1
28802  cat conftest.err >&5
28803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804  (exit $ac_status); } && {
28805	 test -z "$ac_c_werror_flag" ||
28806	 test ! -s conftest.err
28807       } && test -s conftest.$ac_objext; then
28808  # It does; now see whether it defined to _BIG_ENDIAN or not.
28809	 cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h.  */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h.  */
28815#include <limits.h>
28816
28817int
28818main ()
28819{
28820#ifndef _BIG_ENDIAN
28821		 not big endian
28822		#endif
28823
28824  ;
28825  return 0;
28826}
28827_ACEOF
28828rm -f conftest.$ac_objext
28829if { (ac_try="$ac_compile"
28830case "(($ac_try" in
28831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832  *) ac_try_echo=$ac_try;;
28833esac
28834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28835$as_echo "$ac_try_echo") >&5
28836  (eval "$ac_compile") 2>conftest.er1
28837  ac_status=$?
28838  grep -v '^ *+' conftest.er1 >conftest.err
28839  rm -f conftest.er1
28840  cat conftest.err >&5
28841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842  (exit $ac_status); } && {
28843	 test -z "$ac_c_werror_flag" ||
28844	 test ! -s conftest.err
28845       } && test -s conftest.$ac_objext; then
28846  ac_cv_c_bigendian=yes
28847else
28848  $as_echo "$as_me: failed program was:" >&5
28849sed 's/^/| /' conftest.$ac_ext >&5
28850
28851	ac_cv_c_bigendian=no
28852fi
28853
28854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855else
28856  $as_echo "$as_me: failed program was:" >&5
28857sed 's/^/| /' conftest.$ac_ext >&5
28858
28859
28860fi
28861
28862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28863    fi
28864    if test $ac_cv_c_bigendian = unknown; then
28865      # Compile a test program.
28866      if test "$cross_compiling" = yes; then
28867  # Try to guess by grepping values from an object file.
28868	 cat >conftest.$ac_ext <<_ACEOF
28869/* confdefs.h.  */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h.  */
28874short int ascii_mm[] =
28875		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28876		short int ascii_ii[] =
28877		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28878		int use_ascii (int i) {
28879		  return ascii_mm[i] + ascii_ii[i];
28880		}
28881		short int ebcdic_ii[] =
28882		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28883		short int ebcdic_mm[] =
28884		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28885		int use_ebcdic (int i) {
28886		  return ebcdic_mm[i] + ebcdic_ii[i];
28887		}
28888		extern int foo;
28889
28890int
28891main ()
28892{
28893return use_ascii (foo) == use_ebcdic (foo);
28894  ;
28895  return 0;
28896}
28897_ACEOF
28898rm -f conftest.$ac_objext
28899if { (ac_try="$ac_compile"
28900case "(($ac_try" in
28901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902  *) ac_try_echo=$ac_try;;
28903esac
28904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28905$as_echo "$ac_try_echo") >&5
28906  (eval "$ac_compile") 2>conftest.er1
28907  ac_status=$?
28908  grep -v '^ *+' conftest.er1 >conftest.err
28909  rm -f conftest.er1
28910  cat conftest.err >&5
28911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912  (exit $ac_status); } && {
28913	 test -z "$ac_c_werror_flag" ||
28914	 test ! -s conftest.err
28915       } && test -s conftest.$ac_objext; then
28916  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28917	      ac_cv_c_bigendian=yes
28918	    fi
28919	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28920	      if test "$ac_cv_c_bigendian" = unknown; then
28921		ac_cv_c_bigendian=no
28922	      else
28923		# finding both strings is unlikely to happen, but who knows?
28924		ac_cv_c_bigendian=unknown
28925	      fi
28926	    fi
28927else
28928  $as_echo "$as_me: failed program was:" >&5
28929sed 's/^/| /' conftest.$ac_ext >&5
28930
28931
28932fi
28933
28934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935else
28936  cat >conftest.$ac_ext <<_ACEOF
28937/* confdefs.h.  */
28938_ACEOF
28939cat confdefs.h >>conftest.$ac_ext
28940cat >>conftest.$ac_ext <<_ACEOF
28941/* end confdefs.h.  */
28942$ac_includes_default
28943int
28944main ()
28945{
28946
28947	     /* Are we little or big endian?  From Harbison&Steele.  */
28948	     union
28949	     {
28950	       long int l;
28951	       char c[sizeof (long int)];
28952	     } u;
28953	     u.l = 1;
28954	     return u.c[sizeof (long int) - 1] == 1;
28955
28956  ;
28957  return 0;
28958}
28959_ACEOF
28960rm -f conftest$ac_exeext
28961if { (ac_try="$ac_link"
28962case "(($ac_try" in
28963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964  *) ac_try_echo=$ac_try;;
28965esac
28966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28967$as_echo "$ac_try_echo") >&5
28968  (eval "$ac_link") 2>&5
28969  ac_status=$?
28970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28972  { (case "(($ac_try" in
28973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974  *) ac_try_echo=$ac_try;;
28975esac
28976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28977$as_echo "$ac_try_echo") >&5
28978  (eval "$ac_try") 2>&5
28979  ac_status=$?
28980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981  (exit $ac_status); }; }; then
28982  ac_cv_c_bigendian=no
28983else
28984  $as_echo "$as_me: program exited with status $ac_status" >&5
28985$as_echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988( exit $ac_status )
28989ac_cv_c_bigendian=yes
28990fi
28991rm -rf conftest.dSYM
28992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28993fi
28994
28995
28996    fi
28997fi
28998{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28999$as_echo "$ac_cv_c_bigendian" >&6; }
29000 case $ac_cv_c_bigendian in #(
29001   yes)
29002     cat >>confdefs.h <<\_ACEOF
29003#define WORDS_BIGENDIAN 1
29004_ACEOF
29005;; #(
29006   no)
29007      ;; #(
29008   universal)
29009
29010cat >>confdefs.h <<\_ACEOF
29011#define AC_APPLE_UNIVERSAL_BUILD 1
29012_ACEOF
29013
29014     ;; #(
29015   *)
29016     { { $as_echo "$as_me:$LINENO: error: unknown endianness
29017 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
29018$as_echo "$as_me: error: unknown endianness
29019 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
29020   { (exit 1); exit 1; }; } ;;
29021 esac
29022
29023
29024
29025   if false; then
29026  GL_COND_LIBTOOL_TRUE=
29027  GL_COND_LIBTOOL_FALSE='#'
29028else
29029  GL_COND_LIBTOOL_TRUE='#'
29030  GL_COND_LIBTOOL_FALSE=
29031fi
29032
29033  gl_cond_libtool=false
29034  gl_libdeps=
29035  gl_ltlibdeps=
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045  gl_source_base='md5'
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055  md5_LIBOBJS="$md5_LIBOBJS md5.$ac_objext"
29056
29057
29058
29059
29060  :
29061
29062
29063
29064
29065
29066  if test $gt_cv_c_wchar_t = no; then
29067    HAVE_WCHAR_T=0
29068    STDDEF_H=stddef.h
29069  fi
29070  { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
29071$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29072if test "${gl_cv_decl_null_works+set}" = set; then
29073  $as_echo_n "(cached) " >&6
29074else
29075  cat >conftest.$ac_ext <<_ACEOF
29076/* confdefs.h.  */
29077_ACEOF
29078cat confdefs.h >>conftest.$ac_ext
29079cat >>conftest.$ac_ext <<_ACEOF
29080/* end confdefs.h.  */
29081#include <stddef.h>
29082      int test[2 * (sizeof NULL == sizeof (void *)) -1];
29083
29084int
29085main ()
29086{
29087
29088  ;
29089  return 0;
29090}
29091_ACEOF
29092rm -f conftest.$ac_objext
29093if { (ac_try="$ac_compile"
29094case "(($ac_try" in
29095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096  *) ac_try_echo=$ac_try;;
29097esac
29098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29099$as_echo "$ac_try_echo") >&5
29100  (eval "$ac_compile") 2>conftest.er1
29101  ac_status=$?
29102  grep -v '^ *+' conftest.er1 >conftest.err
29103  rm -f conftest.er1
29104  cat conftest.err >&5
29105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106  (exit $ac_status); } && {
29107	 test -z "$ac_c_werror_flag" ||
29108	 test ! -s conftest.err
29109       } && test -s conftest.$ac_objext; then
29110  gl_cv_decl_null_works=yes
29111else
29112  $as_echo "$as_me: failed program was:" >&5
29113sed 's/^/| /' conftest.$ac_ext >&5
29114
29115	gl_cv_decl_null_works=no
29116fi
29117
29118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29119fi
29120{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
29121$as_echo "$gl_cv_decl_null_works" >&6; }
29122  if test $gl_cv_decl_null_works = no; then
29123    REPLACE_NULL=1
29124    STDDEF_H=stddef.h
29125  fi
29126  if test -n "$STDDEF_H"; then
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138     if test $gl_cv_have_include_next = yes; then
29139       gl_cv_next_stddef_h='<'stddef.h'>'
29140     else
29141       { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
29142$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29143if test "${gl_cv_next_stddef_h+set}" = set; then
29144  $as_echo_n "(cached) " >&6
29145else
29146
29147	  if test $ac_cv_header_stddef_h = yes; then
29148	    cat >conftest.$ac_ext <<_ACEOF
29149/* confdefs.h.  */
29150_ACEOF
29151cat confdefs.h >>conftest.$ac_ext
29152cat >>conftest.$ac_ext <<_ACEOF
29153/* end confdefs.h.  */
29154#include <stddef.h>
29155
29156_ACEOF
29157	    	    	    	    	    	    	    	    case "$host_os" in
29158	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
29159	      *)    gl_absname_cpp="$ac_cpp" ;;
29160	    esac
29161	    	    	    	    gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29162	       sed -n '\#/stddef.h#{
29163		 s#.*"\(.*/stddef.h\)".*#\1#
29164		 s#^/[^/]#//&#
29165		 p
29166		 q
29167	       }'`'"'
29168	  else
29169	    gl_cv_next_stddef_h='<'stddef.h'>'
29170	  fi
29171
29172fi
29173{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
29174$as_echo "$gl_cv_next_stddef_h" >&6; }
29175     fi
29176     NEXT_STDDEF_H=$gl_cv_next_stddef_h
29177
29178     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29179       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29180       gl_next_as_first_directive='<'stddef.h'>'
29181     else
29182       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29183       gl_next_as_first_directive=$gl_cv_next_stddef_h
29184     fi
29185     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
29186
29187
29188
29189  fi
29190
29191
29192
29193
29194  if test $ac_cv_type_long_long_int = yes; then
29195    HAVE_LONG_LONG_INT=1
29196  else
29197    HAVE_LONG_LONG_INT=0
29198  fi
29199
29200
29201  if test $ac_cv_type_unsigned_long_long_int = yes; then
29202    HAVE_UNSIGNED_LONG_LONG_INT=1
29203  else
29204    HAVE_UNSIGNED_LONG_LONG_INT=0
29205  fi
29206
29207
29208      if test $ac_cv_header_inttypes_h = yes; then
29209    HAVE_INTTYPES_H=1
29210  else
29211    HAVE_INTTYPES_H=0
29212  fi
29213
29214
29215      if test $ac_cv_header_sys_types_h = yes; then
29216    HAVE_SYS_TYPES_H=1
29217  else
29218    HAVE_SYS_TYPES_H=0
29219  fi
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233     if test $gl_cv_have_include_next = yes; then
29234       gl_cv_next_stdint_h='<'stdint.h'>'
29235     else
29236       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
29237$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
29238if test "${gl_cv_next_stdint_h+set}" = set; then
29239  $as_echo_n "(cached) " >&6
29240else
29241
29242	  if test $ac_cv_header_stdint_h = yes; then
29243	    cat >conftest.$ac_ext <<_ACEOF
29244/* confdefs.h.  */
29245_ACEOF
29246cat confdefs.h >>conftest.$ac_ext
29247cat >>conftest.$ac_ext <<_ACEOF
29248/* end confdefs.h.  */
29249#include <stdint.h>
29250
29251_ACEOF
29252	    	    	    	    	    	    	    	    case "$host_os" in
29253	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
29254	      *)    gl_absname_cpp="$ac_cpp" ;;
29255	    esac
29256	    	    	    	    gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29257	       sed -n '\#/stdint.h#{
29258		 s#.*"\(.*/stdint.h\)".*#\1#
29259		 s#^/[^/]#//&#
29260		 p
29261		 q
29262	       }'`'"'
29263	  else
29264	    gl_cv_next_stdint_h='<'stdint.h'>'
29265	  fi
29266
29267fi
29268{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
29269$as_echo "$gl_cv_next_stdint_h" >&6; }
29270     fi
29271     NEXT_STDINT_H=$gl_cv_next_stdint_h
29272
29273     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29274       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29275       gl_next_as_first_directive='<'stdint.h'>'
29276     else
29277       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29278       gl_next_as_first_directive=$gl_cv_next_stdint_h
29279     fi
29280     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
29281
29282
29283
29284  if test $ac_cv_header_stdint_h = yes; then
29285    HAVE_STDINT_H=1
29286  else
29287    HAVE_STDINT_H=0
29288  fi
29289
29290
29291    if test $ac_cv_header_stdint_h = yes; then
29292    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
29293$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
29294if test "${gl_cv_header_working_stdint_h+set}" = set; then
29295  $as_echo_n "(cached) " >&6
29296else
29297  gl_cv_header_working_stdint_h=no
29298       cat >conftest.$ac_ext <<_ACEOF
29299
29300         /* confdefs.h.  */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
29304/* end confdefs.h.  */
29305
29306#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29307#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29308#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29309#include <stdint.h>
29310/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
29311#if !(defined WCHAR_MIN && defined WCHAR_MAX)
29312#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
29313#endif
29314
29315
29316  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29317     included before <wchar.h>.  */
29318  #include <stddef.h>
29319  #include <signal.h>
29320  #if HAVE_WCHAR_H
29321  # include <stdio.h>
29322  # include <time.h>
29323  # include <wchar.h>
29324  #endif
29325
29326
29327#ifdef INT8_MAX
29328int8_t a1 = INT8_MAX;
29329int8_t a1min = INT8_MIN;
29330#endif
29331#ifdef INT16_MAX
29332int16_t a2 = INT16_MAX;
29333int16_t a2min = INT16_MIN;
29334#endif
29335#ifdef INT32_MAX
29336int32_t a3 = INT32_MAX;
29337int32_t a3min = INT32_MIN;
29338#endif
29339#ifdef INT64_MAX
29340int64_t a4 = INT64_MAX;
29341int64_t a4min = INT64_MIN;
29342#endif
29343#ifdef UINT8_MAX
29344uint8_t b1 = UINT8_MAX;
29345#else
29346typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
29347#endif
29348#ifdef UINT16_MAX
29349uint16_t b2 = UINT16_MAX;
29350#endif
29351#ifdef UINT32_MAX
29352uint32_t b3 = UINT32_MAX;
29353#endif
29354#ifdef UINT64_MAX
29355uint64_t b4 = UINT64_MAX;
29356#endif
29357int_least8_t c1 = INT8_C (0x7f);
29358int_least8_t c1max = INT_LEAST8_MAX;
29359int_least8_t c1min = INT_LEAST8_MIN;
29360int_least16_t c2 = INT16_C (0x7fff);
29361int_least16_t c2max = INT_LEAST16_MAX;
29362int_least16_t c2min = INT_LEAST16_MIN;
29363int_least32_t c3 = INT32_C (0x7fffffff);
29364int_least32_t c3max = INT_LEAST32_MAX;
29365int_least32_t c3min = INT_LEAST32_MIN;
29366int_least64_t c4 = INT64_C (0x7fffffffffffffff);
29367int_least64_t c4max = INT_LEAST64_MAX;
29368int_least64_t c4min = INT_LEAST64_MIN;
29369uint_least8_t d1 = UINT8_C (0xff);
29370uint_least8_t d1max = UINT_LEAST8_MAX;
29371uint_least16_t d2 = UINT16_C (0xffff);
29372uint_least16_t d2max = UINT_LEAST16_MAX;
29373uint_least32_t d3 = UINT32_C (0xffffffff);
29374uint_least32_t d3max = UINT_LEAST32_MAX;
29375uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
29376uint_least64_t d4max = UINT_LEAST64_MAX;
29377int_fast8_t e1 = INT_FAST8_MAX;
29378int_fast8_t e1min = INT_FAST8_MIN;
29379int_fast16_t e2 = INT_FAST16_MAX;
29380int_fast16_t e2min = INT_FAST16_MIN;
29381int_fast32_t e3 = INT_FAST32_MAX;
29382int_fast32_t e3min = INT_FAST32_MIN;
29383int_fast64_t e4 = INT_FAST64_MAX;
29384int_fast64_t e4min = INT_FAST64_MIN;
29385uint_fast8_t f1 = UINT_FAST8_MAX;
29386uint_fast16_t f2 = UINT_FAST16_MAX;
29387uint_fast32_t f3 = UINT_FAST32_MAX;
29388uint_fast64_t f4 = UINT_FAST64_MAX;
29389#ifdef INTPTR_MAX
29390intptr_t g = INTPTR_MAX;
29391intptr_t gmin = INTPTR_MIN;
29392#endif
29393#ifdef UINTPTR_MAX
29394uintptr_t h = UINTPTR_MAX;
29395#endif
29396intmax_t i = INTMAX_MAX;
29397uintmax_t j = UINTMAX_MAX;
29398
29399#include <limits.h> /* for CHAR_BIT */
29400#define TYPE_MINIMUM(t) \
29401  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
29402#define TYPE_MAXIMUM(t) \
29403  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
29404struct s {
29405  int check_PTRDIFF:
29406      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
29407      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
29408      ? 1 : -1;
29409  /* Detect bug in FreeBSD 6.0 / ia64.  */
29410  int check_SIG_ATOMIC:
29411      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
29412      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
29413      ? 1 : -1;
29414  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
29415  int check_WCHAR:
29416      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
29417      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
29418      ? 1 : -1;
29419  /* Detect bug in mingw.  */
29420  int check_WINT:
29421      WINT_MIN == TYPE_MINIMUM (wint_t)
29422      && WINT_MAX == TYPE_MAXIMUM (wint_t)
29423      ? 1 : -1;
29424
29425  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
29426  int check_UINT8_C:
29427        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
29428  int check_UINT16_C:
29429        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
29430
29431  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
29432#ifdef UINT8_MAX
29433  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
29434#endif
29435#ifdef UINT16_MAX
29436  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
29437#endif
29438#ifdef UINT32_MAX
29439  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
29440#endif
29441#ifdef UINT64_MAX
29442  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
29443#endif
29444  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
29445  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
29446  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
29447  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
29448  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
29449  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
29450  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
29451  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
29452  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
29453  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
29454  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
29455};
29456
29457int
29458main ()
29459{
29460
29461  ;
29462  return 0;
29463}
29464_ACEOF
29465rm -f conftest.$ac_objext
29466if { (ac_try="$ac_compile"
29467case "(($ac_try" in
29468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469  *) ac_try_echo=$ac_try;;
29470esac
29471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29472$as_echo "$ac_try_echo") >&5
29473  (eval "$ac_compile") 2>conftest.er1
29474  ac_status=$?
29475  grep -v '^ *+' conftest.er1 >conftest.err
29476  rm -f conftest.er1
29477  cat conftest.err >&5
29478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479  (exit $ac_status); } && {
29480	 test -z "$ac_c_werror_flag" ||
29481	 test ! -s conftest.err
29482       } && test -s conftest.$ac_objext; then
29483                                                    if test "$cross_compiling" = yes; then
29484                 gl_cv_header_working_stdint_h=yes
29485
29486else
29487  cat >conftest.$ac_ext <<_ACEOF
29488
29489            /* confdefs.h.  */
29490_ACEOF
29491cat confdefs.h >>conftest.$ac_ext
29492cat >>conftest.$ac_ext <<_ACEOF
29493/* end confdefs.h.  */
29494
29495#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29496#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29497#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29498#include <stdint.h>
29499
29500
29501  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29502     included before <wchar.h>.  */
29503  #include <stddef.h>
29504  #include <signal.h>
29505  #if HAVE_WCHAR_H
29506  # include <stdio.h>
29507  # include <time.h>
29508  # include <wchar.h>
29509  #endif
29510
29511
29512#include <stdio.h>
29513#include <string.h>
29514#define MVAL(macro) MVAL1(macro)
29515#define MVAL1(expression) #expression
29516static const char *macro_values[] =
29517  {
29518#ifdef INT8_MAX
29519    MVAL (INT8_MAX),
29520#endif
29521#ifdef INT16_MAX
29522    MVAL (INT16_MAX),
29523#endif
29524#ifdef INT32_MAX
29525    MVAL (INT32_MAX),
29526#endif
29527#ifdef INT64_MAX
29528    MVAL (INT64_MAX),
29529#endif
29530#ifdef UINT8_MAX
29531    MVAL (UINT8_MAX),
29532#endif
29533#ifdef UINT16_MAX
29534    MVAL (UINT16_MAX),
29535#endif
29536#ifdef UINT32_MAX
29537    MVAL (UINT32_MAX),
29538#endif
29539#ifdef UINT64_MAX
29540    MVAL (UINT64_MAX),
29541#endif
29542    NULL
29543  };
29544
29545int
29546main ()
29547{
29548
29549  const char **mv;
29550  for (mv = macro_values; *mv != NULL; mv++)
29551    {
29552      const char *value = *mv;
29553      /* Test whether it looks like a cast expression.  */
29554      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
29555          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
29556          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
29557          || strncmp (value, "((int)"/*)*/, 6) == 0
29558          || strncmp (value, "((signed short)"/*)*/, 15) == 0
29559          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
29560        return 1;
29561    }
29562  return 0;
29563
29564  ;
29565  return 0;
29566}
29567_ACEOF
29568rm -f conftest$ac_exeext
29569if { (ac_try="$ac_link"
29570case "(($ac_try" in
29571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572  *) ac_try_echo=$ac_try;;
29573esac
29574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29575$as_echo "$ac_try_echo") >&5
29576  (eval "$ac_link") 2>&5
29577  ac_status=$?
29578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29580  { (case "(($ac_try" in
29581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582  *) ac_try_echo=$ac_try;;
29583esac
29584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29585$as_echo "$ac_try_echo") >&5
29586  (eval "$ac_try") 2>&5
29587  ac_status=$?
29588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589  (exit $ac_status); }; }; then
29590  gl_cv_header_working_stdint_h=yes
29591else
29592  $as_echo "$as_me: program exited with status $ac_status" >&5
29593$as_echo "$as_me: failed program was:" >&5
29594sed 's/^/| /' conftest.$ac_ext >&5
29595
29596fi
29597rm -rf conftest.dSYM
29598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29599fi
29600
29601
29602
29603else
29604  $as_echo "$as_me: failed program was:" >&5
29605sed 's/^/| /' conftest.$ac_ext >&5
29606
29607
29608fi
29609
29610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29611
29612fi
29613{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
29614$as_echo "$gl_cv_header_working_stdint_h" >&6; }
29615  fi
29616  if test "$gl_cv_header_working_stdint_h" = yes; then
29617    STDINT_H=
29618  else
29619
29620
29621for ac_header in sys/inttypes.h sys/bitypes.h
29622do
29623as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29626$as_echo_n "checking for $ac_header... " >&6; }
29627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628  $as_echo_n "(cached) " >&6
29629fi
29630ac_res=`eval 'as_val=${'$as_ac_Header'}
29631		 $as_echo "$as_val"'`
29632	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29633$as_echo "$ac_res" >&6; }
29634else
29635  # Is the header compilable?
29636{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29637$as_echo_n "checking $ac_header usability... " >&6; }
29638cat >conftest.$ac_ext <<_ACEOF
29639/* confdefs.h.  */
29640_ACEOF
29641cat confdefs.h >>conftest.$ac_ext
29642cat >>conftest.$ac_ext <<_ACEOF
29643/* end confdefs.h.  */
29644$ac_includes_default
29645#include <$ac_header>
29646_ACEOF
29647rm -f conftest.$ac_objext
29648if { (ac_try="$ac_compile"
29649case "(($ac_try" in
29650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651  *) ac_try_echo=$ac_try;;
29652esac
29653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29654$as_echo "$ac_try_echo") >&5
29655  (eval "$ac_compile") 2>conftest.er1
29656  ac_status=$?
29657  grep -v '^ *+' conftest.er1 >conftest.err
29658  rm -f conftest.er1
29659  cat conftest.err >&5
29660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661  (exit $ac_status); } && {
29662	 test -z "$ac_c_werror_flag" ||
29663	 test ! -s conftest.err
29664       } && test -s conftest.$ac_objext; then
29665  ac_header_compiler=yes
29666else
29667  $as_echo "$as_me: failed program was:" >&5
29668sed 's/^/| /' conftest.$ac_ext >&5
29669
29670	ac_header_compiler=no
29671fi
29672
29673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29675$as_echo "$ac_header_compiler" >&6; }
29676
29677# Is the header present?
29678{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29679$as_echo_n "checking $ac_header presence... " >&6; }
29680cat >conftest.$ac_ext <<_ACEOF
29681/* confdefs.h.  */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h.  */
29686#include <$ac_header>
29687_ACEOF
29688if { (ac_try="$ac_cpp conftest.$ac_ext"
29689case "(($ac_try" in
29690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691  *) ac_try_echo=$ac_try;;
29692esac
29693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29694$as_echo "$ac_try_echo") >&5
29695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29696  ac_status=$?
29697  grep -v '^ *+' conftest.er1 >conftest.err
29698  rm -f conftest.er1
29699  cat conftest.err >&5
29700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701  (exit $ac_status); } >/dev/null && {
29702	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29703	 test ! -s conftest.err
29704       }; then
29705  ac_header_preproc=yes
29706else
29707  $as_echo "$as_me: failed program was:" >&5
29708sed 's/^/| /' conftest.$ac_ext >&5
29709
29710  ac_header_preproc=no
29711fi
29712
29713rm -f conftest.err conftest.$ac_ext
29714{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29715$as_echo "$ac_header_preproc" >&6; }
29716
29717# So?  What about this header?
29718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29719  yes:no: )
29720    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29721$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29722    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29723$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29724    ac_header_preproc=yes
29725    ;;
29726  no:yes:* )
29727    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29728$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29729    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29730$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29731    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29732$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29733    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29734$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29735    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29736$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29737    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29738$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29739    ( cat <<\_ASBOX
29740## ------------------------------- ##
29741## Report this to bug-wget@gnu.org ##
29742## ------------------------------- ##
29743_ASBOX
29744     ) | sed "s/^/$as_me: WARNING:     /" >&2
29745    ;;
29746esac
29747{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29748$as_echo_n "checking for $ac_header... " >&6; }
29749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29750  $as_echo_n "(cached) " >&6
29751else
29752  eval "$as_ac_Header=\$ac_header_preproc"
29753fi
29754ac_res=`eval 'as_val=${'$as_ac_Header'}
29755		 $as_echo "$as_val"'`
29756	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29757$as_echo "$ac_res" >&6; }
29758
29759fi
29760as_val=`eval 'as_val=${'$as_ac_Header'}
29761		 $as_echo "$as_val"'`
29762   if test "x$as_val" = x""yes; then
29763  cat >>confdefs.h <<_ACEOF
29764#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29765_ACEOF
29766
29767fi
29768
29769done
29770
29771    if test $ac_cv_header_sys_inttypes_h = yes; then
29772      HAVE_SYS_INTTYPES_H=1
29773    else
29774      HAVE_SYS_INTTYPES_H=0
29775    fi
29776
29777    if test $ac_cv_header_sys_bitypes_h = yes; then
29778      HAVE_SYS_BITYPES_H=1
29779    else
29780      HAVE_SYS_BITYPES_H=0
29781    fi
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793  if test $APPLE_UNIVERSAL_BUILD = 0; then
29794
29795
29796
29797
29798  for gltype in ptrdiff_t size_t ; do
29799    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29800$as_echo_n "checking for bit size of $gltype... " >&6; }
29801if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29802  $as_echo_n "(cached) " >&6
29803else
29804  if test "$cross_compiling" = yes; then
29805  # Depending upon the size, compute the lo and hi bounds.
29806cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h.  */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h.  */
29812
29813  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29814     included before <wchar.h>.  */
29815  #include <stddef.h>
29816  #include <signal.h>
29817  #if HAVE_WCHAR_H
29818  # include <stdio.h>
29819  # include <time.h>
29820  # include <wchar.h>
29821  #endif
29822
29823#include <limits.h>
29824int
29825main ()
29826{
29827static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29828test_array [0] = 0
29829
29830  ;
29831  return 0;
29832}
29833_ACEOF
29834rm -f conftest.$ac_objext
29835if { (ac_try="$ac_compile"
29836case "(($ac_try" in
29837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838  *) ac_try_echo=$ac_try;;
29839esac
29840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29841$as_echo "$ac_try_echo") >&5
29842  (eval "$ac_compile") 2>conftest.er1
29843  ac_status=$?
29844  grep -v '^ *+' conftest.er1 >conftest.err
29845  rm -f conftest.er1
29846  cat conftest.err >&5
29847  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848  (exit $ac_status); } && {
29849	 test -z "$ac_c_werror_flag" ||
29850	 test ! -s conftest.err
29851       } && test -s conftest.$ac_objext; then
29852  ac_lo=0 ac_mid=0
29853  while :; do
29854    cat >conftest.$ac_ext <<_ACEOF
29855/* confdefs.h.  */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h.  */
29860
29861  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29862     included before <wchar.h>.  */
29863  #include <stddef.h>
29864  #include <signal.h>
29865  #if HAVE_WCHAR_H
29866  # include <stdio.h>
29867  # include <time.h>
29868  # include <wchar.h>
29869  #endif
29870
29871#include <limits.h>
29872int
29873main ()
29874{
29875static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29876test_array [0] = 0
29877
29878  ;
29879  return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext
29883if { (ac_try="$ac_compile"
29884case "(($ac_try" in
29885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886  *) ac_try_echo=$ac_try;;
29887esac
29888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29889$as_echo "$ac_try_echo") >&5
29890  (eval "$ac_compile") 2>conftest.er1
29891  ac_status=$?
29892  grep -v '^ *+' conftest.er1 >conftest.err
29893  rm -f conftest.er1
29894  cat conftest.err >&5
29895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896  (exit $ac_status); } && {
29897	 test -z "$ac_c_werror_flag" ||
29898	 test ! -s conftest.err
29899       } && test -s conftest.$ac_objext; then
29900  ac_hi=$ac_mid; break
29901else
29902  $as_echo "$as_me: failed program was:" >&5
29903sed 's/^/| /' conftest.$ac_ext >&5
29904
29905	ac_lo=`expr $ac_mid + 1`
29906			if test $ac_lo -le $ac_mid; then
29907			  ac_lo= ac_hi=
29908			  break
29909			fi
29910			ac_mid=`expr 2 '*' $ac_mid + 1`
29911fi
29912
29913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914  done
29915else
29916  $as_echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919	cat >conftest.$ac_ext <<_ACEOF
29920/* confdefs.h.  */
29921_ACEOF
29922cat confdefs.h >>conftest.$ac_ext
29923cat >>conftest.$ac_ext <<_ACEOF
29924/* end confdefs.h.  */
29925
29926  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29927     included before <wchar.h>.  */
29928  #include <stddef.h>
29929  #include <signal.h>
29930  #if HAVE_WCHAR_H
29931  # include <stdio.h>
29932  # include <time.h>
29933  # include <wchar.h>
29934  #endif
29935
29936#include <limits.h>
29937int
29938main ()
29939{
29940static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29941test_array [0] = 0
29942
29943  ;
29944  return 0;
29945}
29946_ACEOF
29947rm -f conftest.$ac_objext
29948if { (ac_try="$ac_compile"
29949case "(($ac_try" in
29950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951  *) ac_try_echo=$ac_try;;
29952esac
29953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29954$as_echo "$ac_try_echo") >&5
29955  (eval "$ac_compile") 2>conftest.er1
29956  ac_status=$?
29957  grep -v '^ *+' conftest.er1 >conftest.err
29958  rm -f conftest.er1
29959  cat conftest.err >&5
29960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961  (exit $ac_status); } && {
29962	 test -z "$ac_c_werror_flag" ||
29963	 test ! -s conftest.err
29964       } && test -s conftest.$ac_objext; then
29965  ac_hi=-1 ac_mid=-1
29966  while :; do
29967    cat >conftest.$ac_ext <<_ACEOF
29968/* confdefs.h.  */
29969_ACEOF
29970cat confdefs.h >>conftest.$ac_ext
29971cat >>conftest.$ac_ext <<_ACEOF
29972/* end confdefs.h.  */
29973
29974  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29975     included before <wchar.h>.  */
29976  #include <stddef.h>
29977  #include <signal.h>
29978  #if HAVE_WCHAR_H
29979  # include <stdio.h>
29980  # include <time.h>
29981  # include <wchar.h>
29982  #endif
29983
29984#include <limits.h>
29985int
29986main ()
29987{
29988static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29989test_array [0] = 0
29990
29991  ;
29992  return 0;
29993}
29994_ACEOF
29995rm -f conftest.$ac_objext
29996if { (ac_try="$ac_compile"
29997case "(($ac_try" in
29998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999  *) ac_try_echo=$ac_try;;
30000esac
30001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30002$as_echo "$ac_try_echo") >&5
30003  (eval "$ac_compile") 2>conftest.er1
30004  ac_status=$?
30005  grep -v '^ *+' conftest.er1 >conftest.err
30006  rm -f conftest.er1
30007  cat conftest.err >&5
30008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009  (exit $ac_status); } && {
30010	 test -z "$ac_c_werror_flag" ||
30011	 test ! -s conftest.err
30012       } && test -s conftest.$ac_objext; then
30013  ac_lo=$ac_mid; break
30014else
30015  $as_echo "$as_me: failed program was:" >&5
30016sed 's/^/| /' conftest.$ac_ext >&5
30017
30018	ac_hi=`expr '(' $ac_mid ')' - 1`
30019			if test $ac_mid -le $ac_hi; then
30020			  ac_lo= ac_hi=
30021			  break
30022			fi
30023			ac_mid=`expr 2 '*' $ac_mid`
30024fi
30025
30026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027  done
30028else
30029  $as_echo "$as_me: failed program was:" >&5
30030sed 's/^/| /' conftest.$ac_ext >&5
30031
30032	ac_lo= ac_hi=
30033fi
30034
30035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30036fi
30037
30038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039# Binary search between lo and hi bounds.
30040while test "x$ac_lo" != "x$ac_hi"; do
30041  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30042  cat >conftest.$ac_ext <<_ACEOF
30043/* confdefs.h.  */
30044_ACEOF
30045cat confdefs.h >>conftest.$ac_ext
30046cat >>conftest.$ac_ext <<_ACEOF
30047/* end confdefs.h.  */
30048
30049  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30050     included before <wchar.h>.  */
30051  #include <stddef.h>
30052  #include <signal.h>
30053  #if HAVE_WCHAR_H
30054  # include <stdio.h>
30055  # include <time.h>
30056  # include <wchar.h>
30057  #endif
30058
30059#include <limits.h>
30060int
30061main ()
30062{
30063static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30064test_array [0] = 0
30065
30066  ;
30067  return 0;
30068}
30069_ACEOF
30070rm -f conftest.$ac_objext
30071if { (ac_try="$ac_compile"
30072case "(($ac_try" in
30073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074  *) ac_try_echo=$ac_try;;
30075esac
30076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30077$as_echo "$ac_try_echo") >&5
30078  (eval "$ac_compile") 2>conftest.er1
30079  ac_status=$?
30080  grep -v '^ *+' conftest.er1 >conftest.err
30081  rm -f conftest.er1
30082  cat conftest.err >&5
30083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084  (exit $ac_status); } && {
30085	 test -z "$ac_c_werror_flag" ||
30086	 test ! -s conftest.err
30087       } && test -s conftest.$ac_objext; then
30088  ac_hi=$ac_mid
30089else
30090  $as_echo "$as_me: failed program was:" >&5
30091sed 's/^/| /' conftest.$ac_ext >&5
30092
30093	ac_lo=`expr '(' $ac_mid ')' + 1`
30094fi
30095
30096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30097done
30098case $ac_lo in
30099?*) result=$ac_lo;;
30100'') result=unknown ;;
30101esac
30102else
30103  cat >conftest.$ac_ext <<_ACEOF
30104/* confdefs.h.  */
30105_ACEOF
30106cat confdefs.h >>conftest.$ac_ext
30107cat >>conftest.$ac_ext <<_ACEOF
30108/* end confdefs.h.  */
30109
30110  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30111     included before <wchar.h>.  */
30112  #include <stddef.h>
30113  #include <signal.h>
30114  #if HAVE_WCHAR_H
30115  # include <stdio.h>
30116  # include <time.h>
30117  # include <wchar.h>
30118  #endif
30119
30120#include <limits.h>
30121static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30122static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30123#include <stdio.h>
30124#include <stdlib.h>
30125int
30126main ()
30127{
30128
30129  FILE *f = fopen ("conftest.val", "w");
30130  if (! f)
30131    return 1;
30132  if ((sizeof ($gltype) * CHAR_BIT) < 0)
30133    {
30134      long int i = longval ();
30135      if (i != (sizeof ($gltype) * CHAR_BIT))
30136	return 1;
30137      fprintf (f, "%ld", i);
30138    }
30139  else
30140    {
30141      unsigned long int i = ulongval ();
30142      if (i != (sizeof ($gltype) * CHAR_BIT))
30143	return 1;
30144      fprintf (f, "%lu", i);
30145    }
30146  /* Do not output a trailing newline, as this causes \r\n confusion
30147     on some platforms.  */
30148  return ferror (f) || fclose (f) != 0;
30149
30150  ;
30151  return 0;
30152}
30153_ACEOF
30154rm -f conftest$ac_exeext
30155if { (ac_try="$ac_link"
30156case "(($ac_try" in
30157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158  *) ac_try_echo=$ac_try;;
30159esac
30160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30161$as_echo "$ac_try_echo") >&5
30162  (eval "$ac_link") 2>&5
30163  ac_status=$?
30164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30166  { (case "(($ac_try" in
30167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168  *) ac_try_echo=$ac_try;;
30169esac
30170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30171$as_echo "$ac_try_echo") >&5
30172  (eval "$ac_try") 2>&5
30173  ac_status=$?
30174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175  (exit $ac_status); }; }; then
30176  result=`cat conftest.val`
30177else
30178  $as_echo "$as_me: program exited with status $ac_status" >&5
30179$as_echo "$as_me: failed program was:" >&5
30180sed 's/^/| /' conftest.$ac_ext >&5
30181
30182( exit $ac_status )
30183result=unknown
30184fi
30185rm -rf conftest.dSYM
30186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30187fi
30188rm -f conftest.val
30189       eval gl_cv_bitsizeof_${gltype}=\$result
30190
30191fi
30192ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30193		 $as_echo "$as_val"'`
30194	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30195$as_echo "$ac_res" >&6; }
30196    eval result=\$gl_cv_bitsizeof_${gltype}
30197    if test $result = unknown; then
30198                                                result=0
30199    fi
30200    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30201    cat >>confdefs.h <<_ACEOF
30202#define BITSIZEOF_${GLTYPE} $result
30203_ACEOF
30204
30205    eval BITSIZEOF_${GLTYPE}=\$result
30206  done
30207
30208
30209  fi
30210
30211
30212
30213
30214
30215  for gltype in sig_atomic_t wchar_t wint_t ; do
30216    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30217$as_echo_n "checking for bit size of $gltype... " >&6; }
30218if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30219  $as_echo_n "(cached) " >&6
30220else
30221  if test "$cross_compiling" = yes; then
30222  # Depending upon the size, compute the lo and hi bounds.
30223cat >conftest.$ac_ext <<_ACEOF
30224/* confdefs.h.  */
30225_ACEOF
30226cat confdefs.h >>conftest.$ac_ext
30227cat >>conftest.$ac_ext <<_ACEOF
30228/* end confdefs.h.  */
30229
30230  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30231     included before <wchar.h>.  */
30232  #include <stddef.h>
30233  #include <signal.h>
30234  #if HAVE_WCHAR_H
30235  # include <stdio.h>
30236  # include <time.h>
30237  # include <wchar.h>
30238  #endif
30239
30240#include <limits.h>
30241int
30242main ()
30243{
30244static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30245test_array [0] = 0
30246
30247  ;
30248  return 0;
30249}
30250_ACEOF
30251rm -f conftest.$ac_objext
30252if { (ac_try="$ac_compile"
30253case "(($ac_try" in
30254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255  *) ac_try_echo=$ac_try;;
30256esac
30257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30258$as_echo "$ac_try_echo") >&5
30259  (eval "$ac_compile") 2>conftest.er1
30260  ac_status=$?
30261  grep -v '^ *+' conftest.er1 >conftest.err
30262  rm -f conftest.er1
30263  cat conftest.err >&5
30264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265  (exit $ac_status); } && {
30266	 test -z "$ac_c_werror_flag" ||
30267	 test ! -s conftest.err
30268       } && test -s conftest.$ac_objext; then
30269  ac_lo=0 ac_mid=0
30270  while :; do
30271    cat >conftest.$ac_ext <<_ACEOF
30272/* confdefs.h.  */
30273_ACEOF
30274cat confdefs.h >>conftest.$ac_ext
30275cat >>conftest.$ac_ext <<_ACEOF
30276/* end confdefs.h.  */
30277
30278  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30279     included before <wchar.h>.  */
30280  #include <stddef.h>
30281  #include <signal.h>
30282  #if HAVE_WCHAR_H
30283  # include <stdio.h>
30284  # include <time.h>
30285  # include <wchar.h>
30286  #endif
30287
30288#include <limits.h>
30289int
30290main ()
30291{
30292static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30293test_array [0] = 0
30294
30295  ;
30296  return 0;
30297}
30298_ACEOF
30299rm -f conftest.$ac_objext
30300if { (ac_try="$ac_compile"
30301case "(($ac_try" in
30302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303  *) ac_try_echo=$ac_try;;
30304esac
30305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30306$as_echo "$ac_try_echo") >&5
30307  (eval "$ac_compile") 2>conftest.er1
30308  ac_status=$?
30309  grep -v '^ *+' conftest.er1 >conftest.err
30310  rm -f conftest.er1
30311  cat conftest.err >&5
30312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313  (exit $ac_status); } && {
30314	 test -z "$ac_c_werror_flag" ||
30315	 test ! -s conftest.err
30316       } && test -s conftest.$ac_objext; then
30317  ac_hi=$ac_mid; break
30318else
30319  $as_echo "$as_me: failed program was:" >&5
30320sed 's/^/| /' conftest.$ac_ext >&5
30321
30322	ac_lo=`expr $ac_mid + 1`
30323			if test $ac_lo -le $ac_mid; then
30324			  ac_lo= ac_hi=
30325			  break
30326			fi
30327			ac_mid=`expr 2 '*' $ac_mid + 1`
30328fi
30329
30330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30331  done
30332else
30333  $as_echo "$as_me: failed program was:" >&5
30334sed 's/^/| /' conftest.$ac_ext >&5
30335
30336	cat >conftest.$ac_ext <<_ACEOF
30337/* confdefs.h.  */
30338_ACEOF
30339cat confdefs.h >>conftest.$ac_ext
30340cat >>conftest.$ac_ext <<_ACEOF
30341/* end confdefs.h.  */
30342
30343  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30344     included before <wchar.h>.  */
30345  #include <stddef.h>
30346  #include <signal.h>
30347  #if HAVE_WCHAR_H
30348  # include <stdio.h>
30349  # include <time.h>
30350  # include <wchar.h>
30351  #endif
30352
30353#include <limits.h>
30354int
30355main ()
30356{
30357static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30358test_array [0] = 0
30359
30360  ;
30361  return 0;
30362}
30363_ACEOF
30364rm -f conftest.$ac_objext
30365if { (ac_try="$ac_compile"
30366case "(($ac_try" in
30367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368  *) ac_try_echo=$ac_try;;
30369esac
30370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30371$as_echo "$ac_try_echo") >&5
30372  (eval "$ac_compile") 2>conftest.er1
30373  ac_status=$?
30374  grep -v '^ *+' conftest.er1 >conftest.err
30375  rm -f conftest.er1
30376  cat conftest.err >&5
30377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378  (exit $ac_status); } && {
30379	 test -z "$ac_c_werror_flag" ||
30380	 test ! -s conftest.err
30381       } && test -s conftest.$ac_objext; then
30382  ac_hi=-1 ac_mid=-1
30383  while :; do
30384    cat >conftest.$ac_ext <<_ACEOF
30385/* confdefs.h.  */
30386_ACEOF
30387cat confdefs.h >>conftest.$ac_ext
30388cat >>conftest.$ac_ext <<_ACEOF
30389/* end confdefs.h.  */
30390
30391  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30392     included before <wchar.h>.  */
30393  #include <stddef.h>
30394  #include <signal.h>
30395  #if HAVE_WCHAR_H
30396  # include <stdio.h>
30397  # include <time.h>
30398  # include <wchar.h>
30399  #endif
30400
30401#include <limits.h>
30402int
30403main ()
30404{
30405static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30406test_array [0] = 0
30407
30408  ;
30409  return 0;
30410}
30411_ACEOF
30412rm -f conftest.$ac_objext
30413if { (ac_try="$ac_compile"
30414case "(($ac_try" in
30415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416  *) ac_try_echo=$ac_try;;
30417esac
30418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30419$as_echo "$ac_try_echo") >&5
30420  (eval "$ac_compile") 2>conftest.er1
30421  ac_status=$?
30422  grep -v '^ *+' conftest.er1 >conftest.err
30423  rm -f conftest.er1
30424  cat conftest.err >&5
30425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426  (exit $ac_status); } && {
30427	 test -z "$ac_c_werror_flag" ||
30428	 test ! -s conftest.err
30429       } && test -s conftest.$ac_objext; then
30430  ac_lo=$ac_mid; break
30431else
30432  $as_echo "$as_me: failed program was:" >&5
30433sed 's/^/| /' conftest.$ac_ext >&5
30434
30435	ac_hi=`expr '(' $ac_mid ')' - 1`
30436			if test $ac_mid -le $ac_hi; then
30437			  ac_lo= ac_hi=
30438			  break
30439			fi
30440			ac_mid=`expr 2 '*' $ac_mid`
30441fi
30442
30443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30444  done
30445else
30446  $as_echo "$as_me: failed program was:" >&5
30447sed 's/^/| /' conftest.$ac_ext >&5
30448
30449	ac_lo= ac_hi=
30450fi
30451
30452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453fi
30454
30455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456# Binary search between lo and hi bounds.
30457while test "x$ac_lo" != "x$ac_hi"; do
30458  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30459  cat >conftest.$ac_ext <<_ACEOF
30460/* confdefs.h.  */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h.  */
30465
30466  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30467     included before <wchar.h>.  */
30468  #include <stddef.h>
30469  #include <signal.h>
30470  #if HAVE_WCHAR_H
30471  # include <stdio.h>
30472  # include <time.h>
30473  # include <wchar.h>
30474  #endif
30475
30476#include <limits.h>
30477int
30478main ()
30479{
30480static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30481test_array [0] = 0
30482
30483  ;
30484  return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext
30488if { (ac_try="$ac_compile"
30489case "(($ac_try" in
30490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491  *) ac_try_echo=$ac_try;;
30492esac
30493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30494$as_echo "$ac_try_echo") >&5
30495  (eval "$ac_compile") 2>conftest.er1
30496  ac_status=$?
30497  grep -v '^ *+' conftest.er1 >conftest.err
30498  rm -f conftest.er1
30499  cat conftest.err >&5
30500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501  (exit $ac_status); } && {
30502	 test -z "$ac_c_werror_flag" ||
30503	 test ! -s conftest.err
30504       } && test -s conftest.$ac_objext; then
30505  ac_hi=$ac_mid
30506else
30507  $as_echo "$as_me: failed program was:" >&5
30508sed 's/^/| /' conftest.$ac_ext >&5
30509
30510	ac_lo=`expr '(' $ac_mid ')' + 1`
30511fi
30512
30513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30514done
30515case $ac_lo in
30516?*) result=$ac_lo;;
30517'') result=unknown ;;
30518esac
30519else
30520  cat >conftest.$ac_ext <<_ACEOF
30521/* confdefs.h.  */
30522_ACEOF
30523cat confdefs.h >>conftest.$ac_ext
30524cat >>conftest.$ac_ext <<_ACEOF
30525/* end confdefs.h.  */
30526
30527  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30528     included before <wchar.h>.  */
30529  #include <stddef.h>
30530  #include <signal.h>
30531  #if HAVE_WCHAR_H
30532  # include <stdio.h>
30533  # include <time.h>
30534  # include <wchar.h>
30535  #endif
30536
30537#include <limits.h>
30538static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30539static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30540#include <stdio.h>
30541#include <stdlib.h>
30542int
30543main ()
30544{
30545
30546  FILE *f = fopen ("conftest.val", "w");
30547  if (! f)
30548    return 1;
30549  if ((sizeof ($gltype) * CHAR_BIT) < 0)
30550    {
30551      long int i = longval ();
30552      if (i != (sizeof ($gltype) * CHAR_BIT))
30553	return 1;
30554      fprintf (f, "%ld", i);
30555    }
30556  else
30557    {
30558      unsigned long int i = ulongval ();
30559      if (i != (sizeof ($gltype) * CHAR_BIT))
30560	return 1;
30561      fprintf (f, "%lu", i);
30562    }
30563  /* Do not output a trailing newline, as this causes \r\n confusion
30564     on some platforms.  */
30565  return ferror (f) || fclose (f) != 0;
30566
30567  ;
30568  return 0;
30569}
30570_ACEOF
30571rm -f conftest$ac_exeext
30572if { (ac_try="$ac_link"
30573case "(($ac_try" in
30574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575  *) ac_try_echo=$ac_try;;
30576esac
30577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30578$as_echo "$ac_try_echo") >&5
30579  (eval "$ac_link") 2>&5
30580  ac_status=$?
30581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30583  { (case "(($ac_try" in
30584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585  *) ac_try_echo=$ac_try;;
30586esac
30587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30588$as_echo "$ac_try_echo") >&5
30589  (eval "$ac_try") 2>&5
30590  ac_status=$?
30591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592  (exit $ac_status); }; }; then
30593  result=`cat conftest.val`
30594else
30595  $as_echo "$as_me: program exited with status $ac_status" >&5
30596$as_echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
30599( exit $ac_status )
30600result=unknown
30601fi
30602rm -rf conftest.dSYM
30603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30604fi
30605rm -f conftest.val
30606       eval gl_cv_bitsizeof_${gltype}=\$result
30607
30608fi
30609ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30610		 $as_echo "$as_val"'`
30611	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30612$as_echo "$ac_res" >&6; }
30613    eval result=\$gl_cv_bitsizeof_${gltype}
30614    if test $result = unknown; then
30615                                                result=0
30616    fi
30617    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30618    cat >>confdefs.h <<_ACEOF
30619#define BITSIZEOF_${GLTYPE} $result
30620_ACEOF
30621
30622    eval BITSIZEOF_${GLTYPE}=\$result
30623  done
30624
30625
30626
30627
30628
30629
30630
30631  for gltype in sig_atomic_t wchar_t wint_t ; do
30632    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
30633$as_echo_n "checking whether $gltype is signed... " >&6; }
30634if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
30635  $as_echo_n "(cached) " >&6
30636else
30637  cat >conftest.$ac_ext <<_ACEOF
30638/* confdefs.h.  */
30639_ACEOF
30640cat confdefs.h >>conftest.$ac_ext
30641cat >>conftest.$ac_ext <<_ACEOF
30642/* end confdefs.h.  */
30643
30644  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30645     included before <wchar.h>.  */
30646  #include <stddef.h>
30647  #include <signal.h>
30648  #if HAVE_WCHAR_H
30649  # include <stdio.h>
30650  # include <time.h>
30651  # include <wchar.h>
30652  #endif
30653
30654            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30655int
30656main ()
30657{
30658
30659  ;
30660  return 0;
30661}
30662_ACEOF
30663rm -f conftest.$ac_objext
30664if { (ac_try="$ac_compile"
30665case "(($ac_try" in
30666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667  *) ac_try_echo=$ac_try;;
30668esac
30669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30670$as_echo "$ac_try_echo") >&5
30671  (eval "$ac_compile") 2>conftest.er1
30672  ac_status=$?
30673  grep -v '^ *+' conftest.er1 >conftest.err
30674  rm -f conftest.er1
30675  cat conftest.err >&5
30676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677  (exit $ac_status); } && {
30678	 test -z "$ac_c_werror_flag" ||
30679	 test ! -s conftest.err
30680       } && test -s conftest.$ac_objext; then
30681  result=yes
30682else
30683  $as_echo "$as_me: failed program was:" >&5
30684sed 's/^/| /' conftest.$ac_ext >&5
30685
30686	result=no
30687fi
30688
30689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690       eval gl_cv_type_${gltype}_signed=\$result
30691
30692fi
30693ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
30694		 $as_echo "$as_val"'`
30695	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30696$as_echo "$ac_res" >&6; }
30697    eval result=\$gl_cv_type_${gltype}_signed
30698    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30699    if test "$result" = yes; then
30700      cat >>confdefs.h <<_ACEOF
30701#define HAVE_SIGNED_${GLTYPE} 1
30702_ACEOF
30703
30704      eval HAVE_SIGNED_${GLTYPE}=1
30705    else
30706      eval HAVE_SIGNED_${GLTYPE}=0
30707    fi
30708  done
30709
30710
30711  gl_cv_type_ptrdiff_t_signed=yes
30712  gl_cv_type_size_t_signed=no
30713  if test $APPLE_UNIVERSAL_BUILD = 0; then
30714
30715
30716
30717
30718  for gltype in ptrdiff_t size_t ; do
30719    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30720$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30721if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30722  $as_echo_n "(cached) " >&6
30723else
30724  eval gl_cv_type_${gltype}_suffix=no
30725       eval result=\$gl_cv_type_${gltype}_signed
30726       if test "$result" = yes; then
30727         glsufu=
30728       else
30729         glsufu=u
30730       fi
30731       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30732         case $glsuf in
30733           '')  gltype1='int';;
30734           l)	gltype1='long int';;
30735           ll)	gltype1='long long int';;
30736           i64)	gltype1='__int64';;
30737           u)	gltype1='unsigned int';;
30738           ul)	gltype1='unsigned long int';;
30739           ull)	gltype1='unsigned long long int';;
30740           ui64)gltype1='unsigned __int64';;
30741         esac
30742         cat >conftest.$ac_ext <<_ACEOF
30743/* confdefs.h.  */
30744_ACEOF
30745cat confdefs.h >>conftest.$ac_ext
30746cat >>conftest.$ac_ext <<_ACEOF
30747/* end confdefs.h.  */
30748
30749  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30750     included before <wchar.h>.  */
30751  #include <stddef.h>
30752  #include <signal.h>
30753  #if HAVE_WCHAR_H
30754  # include <stdio.h>
30755  # include <time.h>
30756  # include <wchar.h>
30757  #endif
30758
30759              extern $gltype foo;
30760              extern $gltype1 foo;
30761int
30762main ()
30763{
30764
30765  ;
30766  return 0;
30767}
30768_ACEOF
30769rm -f conftest.$ac_objext
30770if { (ac_try="$ac_compile"
30771case "(($ac_try" in
30772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773  *) ac_try_echo=$ac_try;;
30774esac
30775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30776$as_echo "$ac_try_echo") >&5
30777  (eval "$ac_compile") 2>conftest.er1
30778  ac_status=$?
30779  grep -v '^ *+' conftest.er1 >conftest.err
30780  rm -f conftest.er1
30781  cat conftest.err >&5
30782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783  (exit $ac_status); } && {
30784	 test -z "$ac_c_werror_flag" ||
30785	 test ! -s conftest.err
30786       } && test -s conftest.$ac_objext; then
30787  eval gl_cv_type_${gltype}_suffix=\$glsuf
30788else
30789  $as_echo "$as_me: failed program was:" >&5
30790sed 's/^/| /' conftest.$ac_ext >&5
30791
30792
30793fi
30794
30795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30796         eval result=\$gl_cv_type_${gltype}_suffix
30797         test "$result" != no && break
30798       done
30799fi
30800ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30801		 $as_echo "$as_val"'`
30802	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30803$as_echo "$ac_res" >&6; }
30804    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30805    eval result=\$gl_cv_type_${gltype}_suffix
30806    test "$result" = no && result=
30807    eval ${GLTYPE}_SUFFIX=\$result
30808    cat >>confdefs.h <<_ACEOF
30809#define ${GLTYPE}_SUFFIX $result
30810_ACEOF
30811
30812  done
30813
30814
30815  fi
30816
30817
30818
30819
30820
30821  for gltype in sig_atomic_t wchar_t wint_t ; do
30822    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30823$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30824if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30825  $as_echo_n "(cached) " >&6
30826else
30827  eval gl_cv_type_${gltype}_suffix=no
30828       eval result=\$gl_cv_type_${gltype}_signed
30829       if test "$result" = yes; then
30830         glsufu=
30831       else
30832         glsufu=u
30833       fi
30834       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30835         case $glsuf in
30836           '')  gltype1='int';;
30837           l)	gltype1='long int';;
30838           ll)	gltype1='long long int';;
30839           i64)	gltype1='__int64';;
30840           u)	gltype1='unsigned int';;
30841           ul)	gltype1='unsigned long int';;
30842           ull)	gltype1='unsigned long long int';;
30843           ui64)gltype1='unsigned __int64';;
30844         esac
30845         cat >conftest.$ac_ext <<_ACEOF
30846/* confdefs.h.  */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h.  */
30851
30852  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30853     included before <wchar.h>.  */
30854  #include <stddef.h>
30855  #include <signal.h>
30856  #if HAVE_WCHAR_H
30857  # include <stdio.h>
30858  # include <time.h>
30859  # include <wchar.h>
30860  #endif
30861
30862              extern $gltype foo;
30863              extern $gltype1 foo;
30864int
30865main ()
30866{
30867
30868  ;
30869  return 0;
30870}
30871_ACEOF
30872rm -f conftest.$ac_objext
30873if { (ac_try="$ac_compile"
30874case "(($ac_try" in
30875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876  *) ac_try_echo=$ac_try;;
30877esac
30878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30879$as_echo "$ac_try_echo") >&5
30880  (eval "$ac_compile") 2>conftest.er1
30881  ac_status=$?
30882  grep -v '^ *+' conftest.er1 >conftest.err
30883  rm -f conftest.er1
30884  cat conftest.err >&5
30885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886  (exit $ac_status); } && {
30887	 test -z "$ac_c_werror_flag" ||
30888	 test ! -s conftest.err
30889       } && test -s conftest.$ac_objext; then
30890  eval gl_cv_type_${gltype}_suffix=\$glsuf
30891else
30892  $as_echo "$as_me: failed program was:" >&5
30893sed 's/^/| /' conftest.$ac_ext >&5
30894
30895
30896fi
30897
30898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30899         eval result=\$gl_cv_type_${gltype}_suffix
30900         test "$result" != no && break
30901       done
30902fi
30903ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30904		 $as_echo "$as_val"'`
30905	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30906$as_echo "$ac_res" >&6; }
30907    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30908    eval result=\$gl_cv_type_${gltype}_suffix
30909    test "$result" = no && result=
30910    eval ${GLTYPE}_SUFFIX=\$result
30911    cat >>confdefs.h <<_ACEOF
30912#define ${GLTYPE}_SUFFIX $result
30913_ACEOF
30914
30915  done
30916
30917
30918
30919    STDINT_H=stdint.h
30920  fi
30921
30922
30923
30924
30925  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
30926$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
30927if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
30928  $as_echo_n "(cached) " >&6
30929else
30930  cat >conftest.$ac_ext <<_ACEOF
30931#include <wchar.h>
30932wchar_t w;
30933_ACEOF
30934rm -f conftest.$ac_objext
30935if { (ac_try="$ac_compile"
30936case "(($ac_try" in
30937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938  *) ac_try_echo=$ac_try;;
30939esac
30940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30941$as_echo "$ac_try_echo") >&5
30942  (eval "$ac_compile") 2>conftest.er1
30943  ac_status=$?
30944  grep -v '^ *+' conftest.er1 >conftest.err
30945  rm -f conftest.er1
30946  cat conftest.err >&5
30947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948  (exit $ac_status); } && {
30949	 test -z "$ac_c_werror_flag" ||
30950	 test ! -s conftest.err
30951       } && test -s conftest.$ac_objext; then
30952  gl_cv_header_wchar_h_standalone=yes
30953else
30954  $as_echo "$as_me: failed program was:" >&5
30955sed 's/^/| /' conftest.$ac_ext >&5
30956
30957	gl_cv_header_wchar_h_standalone=no
30958fi
30959
30960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30961fi
30962{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
30963$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
30964
30965
30966  if test $gt_cv_c_wint_t = yes; then
30967    HAVE_WINT_T=1
30968  else
30969    HAVE_WINT_T=0
30970  fi
30971
30972
30973
30974
30975  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
30976    WCHAR_H=wchar.h
30977  fi
30978
30979
30980
30981
30982
30983
30984
30985  if test $ac_cv_header_wchar_h = yes; then
30986    HAVE_WCHAR_H=1
30987  else
30988    HAVE_WCHAR_H=0
30989  fi
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002     if test $gl_cv_have_include_next = yes; then
31003       gl_cv_next_wchar_h='<'wchar.h'>'
31004     else
31005       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
31006$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31007if test "${gl_cv_next_wchar_h+set}" = set; then
31008  $as_echo_n "(cached) " >&6
31009else
31010
31011	  if test $ac_cv_header_wchar_h = yes; then
31012	    cat >conftest.$ac_ext <<_ACEOF
31013/* confdefs.h.  */
31014_ACEOF
31015cat confdefs.h >>conftest.$ac_ext
31016cat >>conftest.$ac_ext <<_ACEOF
31017/* end confdefs.h.  */
31018#include <wchar.h>
31019
31020_ACEOF
31021	    	    	    	    	    	    	    	    case "$host_os" in
31022	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
31023	      *)    gl_absname_cpp="$ac_cpp" ;;
31024	    esac
31025	    	    	    	    gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31026	       sed -n '\#/wchar.h#{
31027		 s#.*"\(.*/wchar.h\)".*#\1#
31028		 s#^/[^/]#//&#
31029		 p
31030		 q
31031	       }'`'"'
31032	  else
31033	    gl_cv_next_wchar_h='<'wchar.h'>'
31034	  fi
31035
31036fi
31037{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
31038$as_echo "$gl_cv_next_wchar_h" >&6; }
31039     fi
31040     NEXT_WCHAR_H=$gl_cv_next_wchar_h
31041
31042     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31043       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31044       gl_next_as_first_directive='<'wchar.h'>'
31045     else
31046       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31047       gl_next_as_first_directive=$gl_cv_next_wchar_h
31048     fi
31049     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063  gltests_libdeps=
31064  gltests_ltlibdeps=
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074  gl_source_base='tests'
31075
31076
31077
31078
31079
31080
31081
31082  LIBMD5_LIBDEPS="$gl_libdeps"
31083
31084  LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
31085
31086
31087  fi
31088
31089cat >>confdefs.h <<\_ACEOF
31090#define HAVE_MD5 1
31091_ACEOF
31092
31093fi
31094
31095
31096
31097# Check whether --enable-ipv6 was given.
31098if test "${enable_ipv6+set}" = set; then
31099  enableval=$enable_ipv6; case "${enable_ipv6}" in
31100    no)
31101      { $as_echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
31102$as_echo "$as_me: disabling IPv6 at user request" >&6;}
31103            ipv6=no
31104      ;;
31105    yes)
31106            ipv6=yes
31107      force_ipv6=yes
31108      ;;
31109    auto)
31110            ipv6=yes
31111      ;;
31112    *)
31113      { { $as_echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
31114$as_echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
31115   { (exit 1); exit 1; }; }
31116      ;;
31117    esac
31118
31119else
31120
31121        ipv6=yes
31122
31123
31124fi
31125
31126
31127if test "X$ipv6" = "Xyes"; then
31128
31129for ac_func in getaddrinfo
31130do
31131as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31132{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31133$as_echo_n "checking for $ac_func... " >&6; }
31134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31135  $as_echo_n "(cached) " >&6
31136else
31137  cat >conftest.$ac_ext <<_ACEOF
31138/* confdefs.h.  */
31139_ACEOF
31140cat confdefs.h >>conftest.$ac_ext
31141cat >>conftest.$ac_ext <<_ACEOF
31142/* end confdefs.h.  */
31143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31145#define $ac_func innocuous_$ac_func
31146
31147/* System header to define __stub macros and hopefully few prototypes,
31148    which can conflict with char $ac_func (); below.
31149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31150    <limits.h> exists even on freestanding compilers.  */
31151
31152#ifdef __STDC__
31153# include <limits.h>
31154#else
31155# include <assert.h>
31156#endif
31157
31158#undef $ac_func
31159
31160/* Override any GCC internal prototype to avoid an error.
31161   Use char because int might match the return type of a GCC
31162   builtin and then its argument prototype would still apply.  */
31163#ifdef __cplusplus
31164extern "C"
31165#endif
31166char $ac_func ();
31167/* The GNU C library defines this for functions which it implements
31168    to always fail with ENOSYS.  Some functions are actually named
31169    something starting with __ and the normal name is an alias.  */
31170#if defined __stub_$ac_func || defined __stub___$ac_func
31171choke me
31172#endif
31173
31174int
31175main ()
31176{
31177return $ac_func ();
31178  ;
31179  return 0;
31180}
31181_ACEOF
31182rm -f conftest.$ac_objext conftest$ac_exeext
31183if { (ac_try="$ac_link"
31184case "(($ac_try" in
31185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186  *) ac_try_echo=$ac_try;;
31187esac
31188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31189$as_echo "$ac_try_echo") >&5
31190  (eval "$ac_link") 2>conftest.er1
31191  ac_status=$?
31192  grep -v '^ *+' conftest.er1 >conftest.err
31193  rm -f conftest.er1
31194  cat conftest.err >&5
31195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196  (exit $ac_status); } && {
31197	 test -z "$ac_c_werror_flag" ||
31198	 test ! -s conftest.err
31199       } && test -s conftest$ac_exeext && {
31200	 test "$cross_compiling" = yes ||
31201	 $as_test_x conftest$ac_exeext
31202       }; then
31203  eval "$as_ac_var=yes"
31204else
31205  $as_echo "$as_me: failed program was:" >&5
31206sed 's/^/| /' conftest.$ac_ext >&5
31207
31208	eval "$as_ac_var=no"
31209fi
31210
31211rm -rf conftest.dSYM
31212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31213      conftest$ac_exeext conftest.$ac_ext
31214fi
31215ac_res=`eval 'as_val=${'$as_ac_var'}
31216		 $as_echo "$as_val"'`
31217	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31218$as_echo "$ac_res" >&6; }
31219as_val=`eval 'as_val=${'$as_ac_var'}
31220		 $as_echo "$as_val"'`
31221   if test "x$as_val" = x""yes; then
31222  cat >>confdefs.h <<_ACEOF
31223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224_ACEOF
31225
31226else
31227
31228    { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
31229$as_echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
31230    ipv6=no
31231
31232fi
31233done
31234
31235fi
31236
31237if test "X$ipv6" = "Xyes"; then
31238
31239  { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
31240$as_echo_n "checking for INET6 protocol support... " >&6; }
31241if test "${wget_cv_proto_inet6+set}" = set; then
31242  $as_echo_n "(cached) " >&6
31243else
31244
31245    cat >conftest.$ac_ext <<_ACEOF
31246/* confdefs.h.  */
31247_ACEOF
31248cat confdefs.h >>conftest.$ac_ext
31249cat >>conftest.$ac_ext <<_ACEOF
31250/* end confdefs.h.  */
31251
31252#include <sys/types.h>
31253#include <sys/socket.h>
31254
31255#ifndef PF_INET6
31256#error Missing PF_INET6
31257#endif
31258#ifndef AF_INET6
31259#error Mlssing AF_INET6
31260#endif
31261
31262_ACEOF
31263if { (ac_try="$ac_cpp conftest.$ac_ext"
31264case "(($ac_try" in
31265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266  *) ac_try_echo=$ac_try;;
31267esac
31268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269$as_echo "$ac_try_echo") >&5
31270  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31271  ac_status=$?
31272  grep -v '^ *+' conftest.er1 >conftest.err
31273  rm -f conftest.er1
31274  cat conftest.err >&5
31275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276  (exit $ac_status); } >/dev/null && {
31277	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31278	 test ! -s conftest.err
31279       }; then
31280
31281      wget_cv_proto_inet6=yes
31282
31283else
31284  $as_echo "$as_me: failed program was:" >&5
31285sed 's/^/| /' conftest.$ac_ext >&5
31286
31287
31288      wget_cv_proto_inet6=no
31289
31290fi
31291
31292rm -f conftest.err conftest.$ac_ext
31293
31294fi
31295{ $as_echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
31296$as_echo "$wget_cv_proto_inet6" >&6; }
31297
31298  if test "X$wget_cv_proto_inet6" = "Xyes"; then :
31299
31300  else :
31301
31302    { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
31303$as_echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
31304    ipv6=no
31305
31306  fi
31307
31308fi
31309
31310if test "X$ipv6" = "Xyes"; then
31311
31312  wget_have_sockaddr_in6=
31313  { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
31314$as_echo_n "checking for struct sockaddr_in6... " >&6; }
31315if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
31316  $as_echo_n "(cached) " >&6
31317else
31318  ac_cv_type_struct_sockaddr_in6=no
31319cat >conftest.$ac_ext <<_ACEOF
31320/* confdefs.h.  */
31321_ACEOF
31322cat confdefs.h >>conftest.$ac_ext
31323cat >>conftest.$ac_ext <<_ACEOF
31324/* end confdefs.h.  */
31325
31326#include <sys/types.h>
31327#include <sys/socket.h>
31328#include <netinet/in.h>
31329
31330
31331int
31332main ()
31333{
31334if (sizeof (struct sockaddr_in6))
31335       return 0;
31336  ;
31337  return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext
31341if { (ac_try="$ac_compile"
31342case "(($ac_try" in
31343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344  *) ac_try_echo=$ac_try;;
31345esac
31346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31347$as_echo "$ac_try_echo") >&5
31348  (eval "$ac_compile") 2>conftest.er1
31349  ac_status=$?
31350  grep -v '^ *+' conftest.er1 >conftest.err
31351  rm -f conftest.er1
31352  cat conftest.err >&5
31353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354  (exit $ac_status); } && {
31355	 test -z "$ac_c_werror_flag" ||
31356	 test ! -s conftest.err
31357       } && test -s conftest.$ac_objext; then
31358  cat >conftest.$ac_ext <<_ACEOF
31359/* confdefs.h.  */
31360_ACEOF
31361cat confdefs.h >>conftest.$ac_ext
31362cat >>conftest.$ac_ext <<_ACEOF
31363/* end confdefs.h.  */
31364
31365#include <sys/types.h>
31366#include <sys/socket.h>
31367#include <netinet/in.h>
31368
31369
31370int
31371main ()
31372{
31373if (sizeof ((struct sockaddr_in6)))
31374	  return 0;
31375  ;
31376  return 0;
31377}
31378_ACEOF
31379rm -f conftest.$ac_objext
31380if { (ac_try="$ac_compile"
31381case "(($ac_try" in
31382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383  *) ac_try_echo=$ac_try;;
31384esac
31385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31386$as_echo "$ac_try_echo") >&5
31387  (eval "$ac_compile") 2>conftest.er1
31388  ac_status=$?
31389  grep -v '^ *+' conftest.er1 >conftest.err
31390  rm -f conftest.er1
31391  cat conftest.err >&5
31392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393  (exit $ac_status); } && {
31394	 test -z "$ac_c_werror_flag" ||
31395	 test ! -s conftest.err
31396       } && test -s conftest.$ac_objext; then
31397  :
31398else
31399  $as_echo "$as_me: failed program was:" >&5
31400sed 's/^/| /' conftest.$ac_ext >&5
31401
31402	ac_cv_type_struct_sockaddr_in6=yes
31403fi
31404
31405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31406else
31407  $as_echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410
31411fi
31412
31413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414fi
31415{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
31416$as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
31417if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
31418
31419cat >>confdefs.h <<_ACEOF
31420#define HAVE_STRUCT_SOCKADDR_IN6 1
31421_ACEOF
31422
31423
31424    wget_have_sockaddr_in6=yes
31425
31426else
31427
31428    wget_have_sockaddr_in6=no
31429
31430fi
31431
31432
31433  if test "X$wget_have_sockaddr_in6" = "Xyes"; then :
31434
31435  else :
31436
31437    { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
31438$as_echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
31439    ipv6=no
31440
31441  fi
31442
31443  if test "X$ipv6" = "Xyes"; then
31444
31445  { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31446$as_echo_n "checking for struct sockaddr_storage... " >&6; }
31447if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31448  $as_echo_n "(cached) " >&6
31449else
31450  ac_cv_type_struct_sockaddr_storage=no
31451cat >conftest.$ac_ext <<_ACEOF
31452/* confdefs.h.  */
31453_ACEOF
31454cat confdefs.h >>conftest.$ac_ext
31455cat >>conftest.$ac_ext <<_ACEOF
31456/* end confdefs.h.  */
31457
31458#include <sys/types.h>
31459#include <sys/socket.h>
31460
31461
31462int
31463main ()
31464{
31465if (sizeof (struct sockaddr_storage))
31466       return 0;
31467  ;
31468  return 0;
31469}
31470_ACEOF
31471rm -f conftest.$ac_objext
31472if { (ac_try="$ac_compile"
31473case "(($ac_try" in
31474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475  *) ac_try_echo=$ac_try;;
31476esac
31477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31478$as_echo "$ac_try_echo") >&5
31479  (eval "$ac_compile") 2>conftest.er1
31480  ac_status=$?
31481  grep -v '^ *+' conftest.er1 >conftest.err
31482  rm -f conftest.er1
31483  cat conftest.err >&5
31484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485  (exit $ac_status); } && {
31486	 test -z "$ac_c_werror_flag" ||
31487	 test ! -s conftest.err
31488       } && test -s conftest.$ac_objext; then
31489  cat >conftest.$ac_ext <<_ACEOF
31490/* confdefs.h.  */
31491_ACEOF
31492cat confdefs.h >>conftest.$ac_ext
31493cat >>conftest.$ac_ext <<_ACEOF
31494/* end confdefs.h.  */
31495
31496#include <sys/types.h>
31497#include <sys/socket.h>
31498
31499
31500int
31501main ()
31502{
31503if (sizeof ((struct sockaddr_storage)))
31504	  return 0;
31505  ;
31506  return 0;
31507}
31508_ACEOF
31509rm -f conftest.$ac_objext
31510if { (ac_try="$ac_compile"
31511case "(($ac_try" in
31512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513  *) ac_try_echo=$ac_try;;
31514esac
31515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31516$as_echo "$ac_try_echo") >&5
31517  (eval "$ac_compile") 2>conftest.er1
31518  ac_status=$?
31519  grep -v '^ *+' conftest.er1 >conftest.err
31520  rm -f conftest.er1
31521  cat conftest.err >&5
31522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523  (exit $ac_status); } && {
31524	 test -z "$ac_c_werror_flag" ||
31525	 test ! -s conftest.err
31526       } && test -s conftest.$ac_objext; then
31527  :
31528else
31529  $as_echo "$as_me: failed program was:" >&5
31530sed 's/^/| /' conftest.$ac_ext >&5
31531
31532	ac_cv_type_struct_sockaddr_storage=yes
31533fi
31534
31535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31536else
31537  $as_echo "$as_me: failed program was:" >&5
31538sed 's/^/| /' conftest.$ac_ext >&5
31539
31540
31541fi
31542
31543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31544fi
31545{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31546$as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31547if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31548
31549cat >>confdefs.h <<_ACEOF
31550#define HAVE_STRUCT_SOCKADDR_STORAGE 1
31551_ACEOF
31552
31553
31554fi
31555
31556
31557
31558
31559
31560  wget_member_sin6_scope_id=
31561  if test "X$wget_have_sockaddr_in6" = "Xyes"; then
31562    { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
31563$as_echo_n "checking for struct sockaddr_in6.sin6_scope_id... " >&6; }
31564if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
31565  $as_echo_n "(cached) " >&6
31566else
31567  cat >conftest.$ac_ext <<_ACEOF
31568/* confdefs.h.  */
31569_ACEOF
31570cat confdefs.h >>conftest.$ac_ext
31571cat >>conftest.$ac_ext <<_ACEOF
31572/* end confdefs.h.  */
31573
31574#include <sys/types.h>
31575#include <sys/socket.h>
31576#include <netinet/in.h>
31577
31578
31579int
31580main ()
31581{
31582static struct sockaddr_in6 ac_aggr;
31583if (ac_aggr.sin6_scope_id)
31584return 0;
31585  ;
31586  return 0;
31587}
31588_ACEOF
31589rm -f conftest.$ac_objext
31590if { (ac_try="$ac_compile"
31591case "(($ac_try" in
31592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593  *) ac_try_echo=$ac_try;;
31594esac
31595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31596$as_echo "$ac_try_echo") >&5
31597  (eval "$ac_compile") 2>conftest.er1
31598  ac_status=$?
31599  grep -v '^ *+' conftest.er1 >conftest.err
31600  rm -f conftest.er1
31601  cat conftest.err >&5
31602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603  (exit $ac_status); } && {
31604	 test -z "$ac_c_werror_flag" ||
31605	 test ! -s conftest.err
31606       } && test -s conftest.$ac_objext; then
31607  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
31608else
31609  $as_echo "$as_me: failed program was:" >&5
31610sed 's/^/| /' conftest.$ac_ext >&5
31611
31612	cat >conftest.$ac_ext <<_ACEOF
31613/* confdefs.h.  */
31614_ACEOF
31615cat confdefs.h >>conftest.$ac_ext
31616cat >>conftest.$ac_ext <<_ACEOF
31617/* end confdefs.h.  */
31618
31619#include <sys/types.h>
31620#include <sys/socket.h>
31621#include <netinet/in.h>
31622
31623
31624int
31625main ()
31626{
31627static struct sockaddr_in6 ac_aggr;
31628if (sizeof ac_aggr.sin6_scope_id)
31629return 0;
31630  ;
31631  return 0;
31632}
31633_ACEOF
31634rm -f conftest.$ac_objext
31635if { (ac_try="$ac_compile"
31636case "(($ac_try" in
31637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638  *) ac_try_echo=$ac_try;;
31639esac
31640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31641$as_echo "$ac_try_echo") >&5
31642  (eval "$ac_compile") 2>conftest.er1
31643  ac_status=$?
31644  grep -v '^ *+' conftest.er1 >conftest.err
31645  rm -f conftest.er1
31646  cat conftest.err >&5
31647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648  (exit $ac_status); } && {
31649	 test -z "$ac_c_werror_flag" ||
31650	 test ! -s conftest.err
31651       } && test -s conftest.$ac_objext; then
31652  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
31653else
31654  $as_echo "$as_me: failed program was:" >&5
31655sed 's/^/| /' conftest.$ac_ext >&5
31656
31657	ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
31658fi
31659
31660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661fi
31662
31663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31664fi
31665{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
31666$as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
31667if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then
31668
31669      wget_member_sin6_scope_id=yes
31670
31671else
31672
31673      wget_member_sin6_scope_id=no
31674
31675fi
31676
31677  fi
31678
31679  if test "X$wget_member_sin6_scope_id" = "Xyes"; then
31680
31681cat >>confdefs.h <<\_ACEOF
31682#define HAVE_SOCKADDR_IN6_SCOPE_ID 1
31683_ACEOF
31684
31685
31686  else :
31687
31688  fi
31689
31690  fi
31691fi
31692
31693if test "X$ipv6" = "Xyes"; then
31694
31695cat >>confdefs.h <<\_ACEOF
31696#define ENABLE_IPV6 1
31697_ACEOF
31698
31699  { $as_echo "$as_me:$LINENO: Enabling support for IPv6." >&5
31700$as_echo "$as_me: Enabling support for IPv6." >&6;}
31701elif test "x$force_ipv6" = "xyes"; then
31702  { { $as_echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
31703$as_echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
31704   { (exit 1); exit 1; }; }
31705fi
31706
31707
31708ALL_LINGUAS="en@quot en@boldquot en_US $(cd ${srcdir}/po && ls *.po | grep -v 'en@.*quot' | grep -v 'en_US\.po' | sed -e 's/\.po$//' | tr '\012' ' ')"
31709
31710
31711for ac_prog in makeinfo
31712do
31713  # Extract the first word of "$ac_prog", so it can be a program name with args.
31714set dummy $ac_prog; ac_word=$2
31715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31716$as_echo_n "checking for $ac_word... " >&6; }
31717if test "${ac_cv_prog_MAKEINFO+set}" = set; then
31718  $as_echo_n "(cached) " >&6
31719else
31720  if test -n "$MAKEINFO"; then
31721  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
31722else
31723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31724for as_dir in $PATH
31725do
31726  IFS=$as_save_IFS
31727  test -z "$as_dir" && as_dir=.
31728  for ac_exec_ext in '' $ac_executable_extensions; do
31729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31730    ac_cv_prog_MAKEINFO="$ac_prog"
31731    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31732    break 2
31733  fi
31734done
31735done
31736IFS=$as_save_IFS
31737
31738fi
31739fi
31740MAKEINFO=$ac_cv_prog_MAKEINFO
31741if test -n "$MAKEINFO"; then
31742  { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
31743$as_echo "$MAKEINFO" >&6; }
31744else
31745  { $as_echo "$as_me:$LINENO: result: no" >&5
31746$as_echo "no" >&6; }
31747fi
31748
31749
31750  test -n "$MAKEINFO" && break
31751done
31752test -n "$MAKEINFO" || MAKEINFO="true"
31753
31754
31755
31756for ac_prog in perl5 perl
31757do
31758  # Extract the first word of "$ac_prog", so it can be a program name with args.
31759set dummy $ac_prog; ac_word=$2
31760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31761$as_echo_n "checking for $ac_word... " >&6; }
31762if test "${ac_cv_path_PERL+set}" = set; then
31763  $as_echo_n "(cached) " >&6
31764else
31765  case $PERL in
31766  [\\/]* | ?:[\\/]*)
31767  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31768  ;;
31769  *)
31770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771for as_dir in $PATH
31772do
31773  IFS=$as_save_IFS
31774  test -z "$as_dir" && as_dir=.
31775  for ac_exec_ext in '' $ac_executable_extensions; do
31776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31778    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31779    break 2
31780  fi
31781done
31782done
31783IFS=$as_save_IFS
31784
31785  ;;
31786esac
31787fi
31788PERL=$ac_cv_path_PERL
31789if test -n "$PERL"; then
31790  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
31791$as_echo "$PERL" >&6; }
31792else
31793  { $as_echo "$as_me:$LINENO: result: no" >&5
31794$as_echo "no" >&6; }
31795fi
31796
31797
31798  test -n "$PERL" && break
31799done
31800test -n "$PERL" || PERL="no"
31801
31802# Extract the first word of "pod2man", so it can be a program name with args.
31803set dummy pod2man; ac_word=$2
31804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31805$as_echo_n "checking for $ac_word... " >&6; }
31806if test "${ac_cv_path_POD2MAN+set}" = set; then
31807  $as_echo_n "(cached) " >&6
31808else
31809  case $POD2MAN in
31810  [\\/]* | ?:[\\/]*)
31811  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
31812  ;;
31813  *)
31814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31815for as_dir in $PATH
31816do
31817  IFS=$as_save_IFS
31818  test -z "$as_dir" && as_dir=.
31819  for ac_exec_ext in '' $ac_executable_extensions; do
31820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31821    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
31822    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31823    break 2
31824  fi
31825done
31826done
31827IFS=$as_save_IFS
31828
31829  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
31830  ;;
31831esac
31832fi
31833POD2MAN=$ac_cv_path_POD2MAN
31834if test -n "$POD2MAN"; then
31835  { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
31836$as_echo "$POD2MAN" >&6; }
31837else
31838  { $as_echo "$as_me:$LINENO: result: no" >&5
31839$as_echo "no" >&6; }
31840fi
31841
31842
31843
31844if test "x${POD2MAN}" = xno; then
31845  COMMENT_IF_NO_POD2MAN="# "
31846else
31847  COMMENT_IF_NO_POD2MAN=
31848fi
31849
31850
31851
31852
31853# Check whether --enable-iri was given.
31854if test "${enable_iri+set}" = set; then
31855  enableval=$enable_iri; case "${enable_iri}" in
31856    no)
31857            { $as_echo "$as_me:$LINENO: disabling IRIs at user request" >&5
31858$as_echo "$as_me: disabling IRIs at user request" >&6;}
31859      iri=no
31860      ;;
31861    yes)
31862            iri=yes
31863      force_iri=yes
31864      ;;
31865    auto)
31866            iri=yes
31867      ;;
31868    *)
31869      { { $as_echo "$as_me:$LINENO: error: Invalid --enable-iri argument \`$enable_iri'" >&5
31870$as_echo "$as_me: error: Invalid --enable-iri argument \`$enable_iri'" >&2;}
31871   { (exit 1); exit 1; }; }
31872      ;;
31873    esac
31874
31875else
31876
31877        iri=yes
31878
31879
31880fi
31881
31882
31883
31884# Check whether --with-libidn was given.
31885if test "${with_libidn+set}" = set; then
31886  withval=$with_libidn; libidn=$withval
31887else
31888  libidn=""
31889fi
31890
31891if test "X$iri" != "Xno"; then
31892
31893
31894
31895
31896
31897
31898          am_save_CPPFLAGS="$CPPFLAGS"
31899
31900  for element in $INCICONV; do
31901    haveit=
31902    for x in $CPPFLAGS; do
31903
31904  acl_save_prefix="$prefix"
31905  prefix="$acl_final_prefix"
31906  acl_save_exec_prefix="$exec_prefix"
31907  exec_prefix="$acl_final_exec_prefix"
31908  eval x=\"$x\"
31909  exec_prefix="$acl_save_exec_prefix"
31910  prefix="$acl_save_prefix"
31911
31912      if test "X$x" = "X$element"; then
31913        haveit=yes
31914        break
31915      fi
31916    done
31917    if test -z "$haveit"; then
31918      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31919    fi
31920  done
31921
31922
31923  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
31924$as_echo_n "checking for iconv... " >&6; }
31925if test "${am_cv_func_iconv+set}" = set; then
31926  $as_echo_n "(cached) " >&6
31927else
31928
31929    am_cv_func_iconv="no, consider installing GNU libiconv"
31930    am_cv_lib_iconv=no
31931    cat >conftest.$ac_ext <<_ACEOF
31932/* confdefs.h.  */
31933_ACEOF
31934cat confdefs.h >>conftest.$ac_ext
31935cat >>conftest.$ac_ext <<_ACEOF
31936/* end confdefs.h.  */
31937#include <stdlib.h>
31938#include <iconv.h>
31939int
31940main ()
31941{
31942iconv_t cd = iconv_open("","");
31943       iconv(cd,NULL,NULL,NULL,NULL);
31944       iconv_close(cd);
31945  ;
31946  return 0;
31947}
31948_ACEOF
31949rm -f conftest.$ac_objext conftest$ac_exeext
31950if { (ac_try="$ac_link"
31951case "(($ac_try" in
31952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953  *) ac_try_echo=$ac_try;;
31954esac
31955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31956$as_echo "$ac_try_echo") >&5
31957  (eval "$ac_link") 2>conftest.er1
31958  ac_status=$?
31959  grep -v '^ *+' conftest.er1 >conftest.err
31960  rm -f conftest.er1
31961  cat conftest.err >&5
31962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963  (exit $ac_status); } && {
31964	 test -z "$ac_c_werror_flag" ||
31965	 test ! -s conftest.err
31966       } && test -s conftest$ac_exeext && {
31967	 test "$cross_compiling" = yes ||
31968	 $as_test_x conftest$ac_exeext
31969       }; then
31970  am_cv_func_iconv=yes
31971else
31972  $as_echo "$as_me: failed program was:" >&5
31973sed 's/^/| /' conftest.$ac_ext >&5
31974
31975
31976fi
31977
31978rm -rf conftest.dSYM
31979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31980      conftest$ac_exeext conftest.$ac_ext
31981    if test "$am_cv_func_iconv" != yes; then
31982      am_save_LIBS="$LIBS"
31983      LIBS="$LIBS $LIBICONV"
31984      cat >conftest.$ac_ext <<_ACEOF
31985/* confdefs.h.  */
31986_ACEOF
31987cat confdefs.h >>conftest.$ac_ext
31988cat >>conftest.$ac_ext <<_ACEOF
31989/* end confdefs.h.  */
31990#include <stdlib.h>
31991#include <iconv.h>
31992int
31993main ()
31994{
31995iconv_t cd = iconv_open("","");
31996         iconv(cd,NULL,NULL,NULL,NULL);
31997         iconv_close(cd);
31998  ;
31999  return 0;
32000}
32001_ACEOF
32002rm -f conftest.$ac_objext conftest$ac_exeext
32003if { (ac_try="$ac_link"
32004case "(($ac_try" in
32005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006  *) ac_try_echo=$ac_try;;
32007esac
32008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32009$as_echo "$ac_try_echo") >&5
32010  (eval "$ac_link") 2>conftest.er1
32011  ac_status=$?
32012  grep -v '^ *+' conftest.er1 >conftest.err
32013  rm -f conftest.er1
32014  cat conftest.err >&5
32015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016  (exit $ac_status); } && {
32017	 test -z "$ac_c_werror_flag" ||
32018	 test ! -s conftest.err
32019       } && test -s conftest$ac_exeext && {
32020	 test "$cross_compiling" = yes ||
32021	 $as_test_x conftest$ac_exeext
32022       }; then
32023  am_cv_lib_iconv=yes
32024        am_cv_func_iconv=yes
32025else
32026  $as_echo "$as_me: failed program was:" >&5
32027sed 's/^/| /' conftest.$ac_ext >&5
32028
32029
32030fi
32031
32032rm -rf conftest.dSYM
32033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32034      conftest$ac_exeext conftest.$ac_ext
32035      LIBS="$am_save_LIBS"
32036    fi
32037
32038fi
32039{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32040$as_echo "$am_cv_func_iconv" >&6; }
32041  if test "$am_cv_func_iconv" = yes; then
32042    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
32043$as_echo_n "checking for working iconv... " >&6; }
32044if test "${am_cv_func_iconv_works+set}" = set; then
32045  $as_echo_n "(cached) " >&6
32046else
32047
32048            am_save_LIBS="$LIBS"
32049      if test $am_cv_lib_iconv = yes; then
32050        LIBS="$LIBS $LIBICONV"
32051      fi
32052      if test "$cross_compiling" = yes; then
32053  case "$host_os" in
32054           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
32055           *)            am_cv_func_iconv_works="guessing yes" ;;
32056         esac
32057else
32058  cat >conftest.$ac_ext <<_ACEOF
32059/* confdefs.h.  */
32060_ACEOF
32061cat confdefs.h >>conftest.$ac_ext
32062cat >>conftest.$ac_ext <<_ACEOF
32063/* end confdefs.h.  */
32064
32065#include <iconv.h>
32066#include <string.h>
32067int main ()
32068{
32069  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
32070     returns.  */
32071  {
32072    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
32073    if (cd_utf8_to_88591 != (iconv_t)(-1))
32074      {
32075        static const char input[] = "\342\202\254"; /* EURO SIGN */
32076        char buf[10];
32077        const char *inptr = input;
32078        size_t inbytesleft = strlen (input);
32079        char *outptr = buf;
32080        size_t outbytesleft = sizeof (buf);
32081        size_t res = iconv (cd_utf8_to_88591,
32082                            (char **) &inptr, &inbytesleft,
32083                            &outptr, &outbytesleft);
32084        if (res == 0)
32085          return 1;
32086      }
32087  }
32088#if 0 /* This bug could be worked around by the caller.  */
32089  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
32090  {
32091    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
32092    if (cd_88591_to_utf8 != (iconv_t)(-1))
32093      {
32094        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
32095        char buf[50];
32096        const char *inptr = input;
32097        size_t inbytesleft = strlen (input);
32098        char *outptr = buf;
32099        size_t outbytesleft = sizeof (buf);
32100        size_t res = iconv (cd_88591_to_utf8,
32101                            (char **) &inptr, &inbytesleft,
32102                            &outptr, &outbytesleft);
32103        if ((int)res > 0)
32104          return 1;
32105      }
32106  }
32107#endif
32108  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
32109     provided.  */
32110  if (/* Try standardized names.  */
32111      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
32112      /* Try IRIX, OSF/1 names.  */
32113      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
32114      /* Try AIX names.  */
32115      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
32116      /* Try HP-UX names.  */
32117      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
32118    return 1;
32119  return 0;
32120}
32121_ACEOF
32122rm -f conftest$ac_exeext
32123if { (ac_try="$ac_link"
32124case "(($ac_try" in
32125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126  *) ac_try_echo=$ac_try;;
32127esac
32128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32129$as_echo "$ac_try_echo") >&5
32130  (eval "$ac_link") 2>&5
32131  ac_status=$?
32132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32134  { (case "(($ac_try" in
32135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136  *) ac_try_echo=$ac_try;;
32137esac
32138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32139$as_echo "$ac_try_echo") >&5
32140  (eval "$ac_try") 2>&5
32141  ac_status=$?
32142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143  (exit $ac_status); }; }; then
32144  am_cv_func_iconv_works=yes
32145else
32146  $as_echo "$as_me: program exited with status $ac_status" >&5
32147$as_echo "$as_me: failed program was:" >&5
32148sed 's/^/| /' conftest.$ac_ext >&5
32149
32150( exit $ac_status )
32151am_cv_func_iconv_works=no
32152fi
32153rm -rf conftest.dSYM
32154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32155fi
32156
32157
32158      LIBS="$am_save_LIBS"
32159
32160fi
32161{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
32162$as_echo "$am_cv_func_iconv_works" >&6; }
32163    case "$am_cv_func_iconv_works" in
32164      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
32165      *)   am_func_iconv=yes ;;
32166    esac
32167  else
32168    am_func_iconv=no am_cv_lib_iconv=no
32169  fi
32170  if test "$am_func_iconv" = yes; then
32171
32172cat >>confdefs.h <<\_ACEOF
32173#define HAVE_ICONV 1
32174_ACEOF
32175
32176  fi
32177  if test "$am_cv_lib_iconv" = yes; then
32178    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
32179$as_echo_n "checking how to link with libiconv... " >&6; }
32180    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
32181$as_echo "$LIBICONV" >&6; }
32182  else
32183            CPPFLAGS="$am_save_CPPFLAGS"
32184    LIBICONV=
32185    LTLIBICONV=
32186  fi
32187
32188
32189
32190  if test "$am_cv_func_iconv" = yes; then
32191    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
32192$as_echo_n "checking for iconv declaration... " >&6; }
32193    if test "${am_cv_proto_iconv+set}" = set; then
32194  $as_echo_n "(cached) " >&6
32195else
32196
32197      cat >conftest.$ac_ext <<_ACEOF
32198/* confdefs.h.  */
32199_ACEOF
32200cat confdefs.h >>conftest.$ac_ext
32201cat >>conftest.$ac_ext <<_ACEOF
32202/* end confdefs.h.  */
32203
32204#include <stdlib.h>
32205#include <iconv.h>
32206extern
32207#ifdef __cplusplus
32208"C"
32209#endif
32210#if defined(__STDC__) || defined(__cplusplus)
32211size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32212#else
32213size_t iconv();
32214#endif
32215
32216int
32217main ()
32218{
32219
32220  ;
32221  return 0;
32222}
32223_ACEOF
32224rm -f conftest.$ac_objext
32225if { (ac_try="$ac_compile"
32226case "(($ac_try" in
32227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228  *) ac_try_echo=$ac_try;;
32229esac
32230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32231$as_echo "$ac_try_echo") >&5
32232  (eval "$ac_compile") 2>conftest.er1
32233  ac_status=$?
32234  grep -v '^ *+' conftest.er1 >conftest.err
32235  rm -f conftest.er1
32236  cat conftest.err >&5
32237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238  (exit $ac_status); } && {
32239	 test -z "$ac_c_werror_flag" ||
32240	 test ! -s conftest.err
32241       } && test -s conftest.$ac_objext; then
32242  am_cv_proto_iconv_arg1=""
32243else
32244  $as_echo "$as_me: failed program was:" >&5
32245sed 's/^/| /' conftest.$ac_ext >&5
32246
32247	am_cv_proto_iconv_arg1="const"
32248fi
32249
32250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251      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);"
32252fi
32253
32254    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
32255    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
32256         }$am_cv_proto_iconv" >&5
32257$as_echo "${ac_t:-
32258         }$am_cv_proto_iconv" >&6; }
32259
32260cat >>confdefs.h <<_ACEOF
32261#define ICONV_CONST $am_cv_proto_iconv_arg1
32262_ACEOF
32263
32264  fi
32265
32266
32267  if test "X$am_cv_func_iconv" != "Xyes"; then
32268    iri=no
32269    if test "X$force_iri" = "Xyes"; then
32270      { { $as_echo "$as_me:$LINENO: error: Libiconv is required for IRIs support" >&5
32271$as_echo "$as_me: error: Libiconv is required for IRIs support" >&2;}
32272   { (exit 1); exit 1; }; }
32273    else
32274      { $as_echo "$as_me:$LINENO: disabling IRIs because libiconv wasn't found" >&5
32275$as_echo "$as_me: disabling IRIs because libiconv wasn't found" >&6;}
32276    fi
32277  fi
32278
32279else
32280    # else
32281  # For some reason, this seems to be set even when we don't check.
32282  # Explicitly unset.
32283  LIBICONV=
32284
32285fi
32286
32287
32288if test "X$iri" != "Xno"; then
32289  if test "$libidn" != ""; then
32290    LDFLAGS="${LDFLAGS} -L$libidn/lib"
32291    CPPFLAGS="${CPPFLAGS} -I$libidn/include"
32292  fi
32293
32294  # If idna.h can't be found, check to see if it was installed under
32295  # /usr/include/idn (OpenSolaris, at least, places it there).
32296  # Check for idn-int.h in that case, because idna.h won't find
32297  # idn-int.h until we've decided to add -I/usr/include/idn.
32298  if test "${ac_cv_header_idna_h+set}" = set; then
32299  { $as_echo "$as_me:$LINENO: checking for idna.h" >&5
32300$as_echo_n "checking for idna.h... " >&6; }
32301if test "${ac_cv_header_idna_h+set}" = set; then
32302  $as_echo_n "(cached) " >&6
32303fi
32304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
32305$as_echo "$ac_cv_header_idna_h" >&6; }
32306else
32307  # Is the header compilable?
32308{ $as_echo "$as_me:$LINENO: checking idna.h usability" >&5
32309$as_echo_n "checking idna.h usability... " >&6; }
32310cat >conftest.$ac_ext <<_ACEOF
32311/* confdefs.h.  */
32312_ACEOF
32313cat confdefs.h >>conftest.$ac_ext
32314cat >>conftest.$ac_ext <<_ACEOF
32315/* end confdefs.h.  */
32316$ac_includes_default
32317#include <idna.h>
32318_ACEOF
32319rm -f conftest.$ac_objext
32320if { (ac_try="$ac_compile"
32321case "(($ac_try" in
32322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323  *) ac_try_echo=$ac_try;;
32324esac
32325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32326$as_echo "$ac_try_echo") >&5
32327  (eval "$ac_compile") 2>conftest.er1
32328  ac_status=$?
32329  grep -v '^ *+' conftest.er1 >conftest.err
32330  rm -f conftest.er1
32331  cat conftest.err >&5
32332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333  (exit $ac_status); } && {
32334	 test -z "$ac_c_werror_flag" ||
32335	 test ! -s conftest.err
32336       } && test -s conftest.$ac_objext; then
32337  ac_header_compiler=yes
32338else
32339  $as_echo "$as_me: failed program was:" >&5
32340sed 's/^/| /' conftest.$ac_ext >&5
32341
32342	ac_header_compiler=no
32343fi
32344
32345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32347$as_echo "$ac_header_compiler" >&6; }
32348
32349# Is the header present?
32350{ $as_echo "$as_me:$LINENO: checking idna.h presence" >&5
32351$as_echo_n "checking idna.h presence... " >&6; }
32352cat >conftest.$ac_ext <<_ACEOF
32353/* confdefs.h.  */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h.  */
32358#include <idna.h>
32359_ACEOF
32360if { (ac_try="$ac_cpp conftest.$ac_ext"
32361case "(($ac_try" in
32362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363  *) ac_try_echo=$ac_try;;
32364esac
32365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32366$as_echo "$ac_try_echo") >&5
32367  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32368  ac_status=$?
32369  grep -v '^ *+' conftest.er1 >conftest.err
32370  rm -f conftest.er1
32371  cat conftest.err >&5
32372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373  (exit $ac_status); } >/dev/null && {
32374	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32375	 test ! -s conftest.err
32376       }; then
32377  ac_header_preproc=yes
32378else
32379  $as_echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
32382  ac_header_preproc=no
32383fi
32384
32385rm -f conftest.err conftest.$ac_ext
32386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32387$as_echo "$ac_header_preproc" >&6; }
32388
32389# So?  What about this header?
32390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32391  yes:no: )
32392    { $as_echo "$as_me:$LINENO: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&5
32393$as_echo "$as_me: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32394    { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the compiler's result" >&5
32395$as_echo "$as_me: WARNING: idna.h: proceeding with the compiler's result" >&2;}
32396    ac_header_preproc=yes
32397    ;;
32398  no:yes:* )
32399    { $as_echo "$as_me:$LINENO: WARNING: idna.h: present but cannot be compiled" >&5
32400$as_echo "$as_me: WARNING: idna.h: present but cannot be compiled" >&2;}
32401    { $as_echo "$as_me:$LINENO: WARNING: idna.h:     check for missing prerequisite headers?" >&5
32402$as_echo "$as_me: WARNING: idna.h:     check for missing prerequisite headers?" >&2;}
32403    { $as_echo "$as_me:$LINENO: WARNING: idna.h: see the Autoconf documentation" >&5
32404$as_echo "$as_me: WARNING: idna.h: see the Autoconf documentation" >&2;}
32405    { $as_echo "$as_me:$LINENO: WARNING: idna.h:     section \"Present But Cannot Be Compiled\"" >&5
32406$as_echo "$as_me: WARNING: idna.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32407    { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the preprocessor's result" >&5
32408$as_echo "$as_me: WARNING: idna.h: proceeding with the preprocessor's result" >&2;}
32409    { $as_echo "$as_me:$LINENO: WARNING: idna.h: in the future, the compiler will take precedence" >&5
32410$as_echo "$as_me: WARNING: idna.h: in the future, the compiler will take precedence" >&2;}
32411    ( cat <<\_ASBOX
32412## ------------------------------- ##
32413## Report this to bug-wget@gnu.org ##
32414## ------------------------------- ##
32415_ASBOX
32416     ) | sed "s/^/$as_me: WARNING:     /" >&2
32417    ;;
32418esac
32419{ $as_echo "$as_me:$LINENO: checking for idna.h" >&5
32420$as_echo_n "checking for idna.h... " >&6; }
32421if test "${ac_cv_header_idna_h+set}" = set; then
32422  $as_echo_n "(cached) " >&6
32423else
32424  ac_cv_header_idna_h=$ac_header_preproc
32425fi
32426{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
32427$as_echo "$ac_cv_header_idna_h" >&6; }
32428
32429fi
32430if test "x$ac_cv_header_idna_h" = x""yes; then
32431  :
32432else
32433  if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32434  { $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
32435$as_echo_n "checking for idn/idn-int.h... " >&6; }
32436if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32437  $as_echo_n "(cached) " >&6
32438fi
32439{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
32440$as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
32441else
32442  # Is the header compilable?
32443{ $as_echo "$as_me:$LINENO: checking idn/idn-int.h usability" >&5
32444$as_echo_n "checking idn/idn-int.h usability... " >&6; }
32445cat >conftest.$ac_ext <<_ACEOF
32446/* confdefs.h.  */
32447_ACEOF
32448cat confdefs.h >>conftest.$ac_ext
32449cat >>conftest.$ac_ext <<_ACEOF
32450/* end confdefs.h.  */
32451$ac_includes_default
32452#include <idn/idn-int.h>
32453_ACEOF
32454rm -f conftest.$ac_objext
32455if { (ac_try="$ac_compile"
32456case "(($ac_try" in
32457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458  *) ac_try_echo=$ac_try;;
32459esac
32460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32461$as_echo "$ac_try_echo") >&5
32462  (eval "$ac_compile") 2>conftest.er1
32463  ac_status=$?
32464  grep -v '^ *+' conftest.er1 >conftest.err
32465  rm -f conftest.er1
32466  cat conftest.err >&5
32467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468  (exit $ac_status); } && {
32469	 test -z "$ac_c_werror_flag" ||
32470	 test ! -s conftest.err
32471       } && test -s conftest.$ac_objext; then
32472  ac_header_compiler=yes
32473else
32474  $as_echo "$as_me: failed program was:" >&5
32475sed 's/^/| /' conftest.$ac_ext >&5
32476
32477	ac_header_compiler=no
32478fi
32479
32480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32481{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32482$as_echo "$ac_header_compiler" >&6; }
32483
32484# Is the header present?
32485{ $as_echo "$as_me:$LINENO: checking idn/idn-int.h presence" >&5
32486$as_echo_n "checking idn/idn-int.h presence... " >&6; }
32487cat >conftest.$ac_ext <<_ACEOF
32488/* confdefs.h.  */
32489_ACEOF
32490cat confdefs.h >>conftest.$ac_ext
32491cat >>conftest.$ac_ext <<_ACEOF
32492/* end confdefs.h.  */
32493#include <idn/idn-int.h>
32494_ACEOF
32495if { (ac_try="$ac_cpp conftest.$ac_ext"
32496case "(($ac_try" in
32497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498  *) ac_try_echo=$ac_try;;
32499esac
32500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32501$as_echo "$ac_try_echo") >&5
32502  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32503  ac_status=$?
32504  grep -v '^ *+' conftest.er1 >conftest.err
32505  rm -f conftest.er1
32506  cat conftest.err >&5
32507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508  (exit $ac_status); } >/dev/null && {
32509	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32510	 test ! -s conftest.err
32511       }; then
32512  ac_header_preproc=yes
32513else
32514  $as_echo "$as_me: failed program was:" >&5
32515sed 's/^/| /' conftest.$ac_ext >&5
32516
32517  ac_header_preproc=no
32518fi
32519
32520rm -f conftest.err conftest.$ac_ext
32521{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32522$as_echo "$ac_header_preproc" >&6; }
32523
32524# So?  What about this header?
32525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32526  yes:no: )
32527    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&5
32528$as_echo "$as_me: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32529    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&5
32530$as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&2;}
32531    ac_header_preproc=yes
32532    ;;
32533  no:yes:* )
32534    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: present but cannot be compiled" >&5
32535$as_echo "$as_me: WARNING: idn/idn-int.h: present but cannot be compiled" >&2;}
32536    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h:     check for missing prerequisite headers?" >&5
32537$as_echo "$as_me: WARNING: idn/idn-int.h:     check for missing prerequisite headers?" >&2;}
32538    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: see the Autoconf documentation" >&5
32539$as_echo "$as_me: WARNING: idn/idn-int.h: see the Autoconf documentation" >&2;}
32540    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h:     section \"Present But Cannot Be Compiled\"" >&5
32541$as_echo "$as_me: WARNING: idn/idn-int.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32542    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&5
32543$as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&2;}
32544    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&5
32545$as_echo "$as_me: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&2;}
32546    ( cat <<\_ASBOX
32547## ------------------------------- ##
32548## Report this to bug-wget@gnu.org ##
32549## ------------------------------- ##
32550_ASBOX
32551     ) | sed "s/^/$as_me: WARNING:     /" >&2
32552    ;;
32553esac
32554{ $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
32555$as_echo_n "checking for idn/idn-int.h... " >&6; }
32556if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32557  $as_echo_n "(cached) " >&6
32558else
32559  ac_cv_header_idn_idn_int_h=$ac_header_preproc
32560fi
32561{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
32562$as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
32563
32564fi
32565if test "x$ac_cv_header_idn_idn_int_h" = x""yes; then
32566  CPPFLAGS="${CPPFLAGS} -I/usr/include/idn"
32567else
32568  iri=no
32569fi
32570
32571
32572
32573fi
32574
32575
32576
32577  if test "X$iri" != "Xno"; then
32578    { $as_echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
32579$as_echo_n "checking for stringprep_check_version in -lidn... " >&6; }
32580if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
32581  $as_echo_n "(cached) " >&6
32582else
32583  ac_check_lib_save_LIBS=$LIBS
32584LIBS="-lidn  $LIBS"
32585cat >conftest.$ac_ext <<_ACEOF
32586/* confdefs.h.  */
32587_ACEOF
32588cat confdefs.h >>conftest.$ac_ext
32589cat >>conftest.$ac_ext <<_ACEOF
32590/* end confdefs.h.  */
32591
32592/* Override any GCC internal prototype to avoid an error.
32593   Use char because int might match the return type of a GCC
32594   builtin and then its argument prototype would still apply.  */
32595#ifdef __cplusplus
32596extern "C"
32597#endif
32598char stringprep_check_version ();
32599int
32600main ()
32601{
32602return stringprep_check_version ();
32603  ;
32604  return 0;
32605}
32606_ACEOF
32607rm -f conftest.$ac_objext conftest$ac_exeext
32608if { (ac_try="$ac_link"
32609case "(($ac_try" in
32610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611  *) ac_try_echo=$ac_try;;
32612esac
32613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32614$as_echo "$ac_try_echo") >&5
32615  (eval "$ac_link") 2>conftest.er1
32616  ac_status=$?
32617  grep -v '^ *+' conftest.er1 >conftest.err
32618  rm -f conftest.er1
32619  cat conftest.err >&5
32620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621  (exit $ac_status); } && {
32622	 test -z "$ac_c_werror_flag" ||
32623	 test ! -s conftest.err
32624       } && test -s conftest$ac_exeext && {
32625	 test "$cross_compiling" = yes ||
32626	 $as_test_x conftest$ac_exeext
32627       }; then
32628  ac_cv_lib_idn_stringprep_check_version=yes
32629else
32630  $as_echo "$as_me: failed program was:" >&5
32631sed 's/^/| /' conftest.$ac_ext >&5
32632
32633	ac_cv_lib_idn_stringprep_check_version=no
32634fi
32635
32636rm -rf conftest.dSYM
32637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638      conftest$ac_exeext conftest.$ac_ext
32639LIBS=$ac_check_lib_save_LIBS
32640fi
32641{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
32642$as_echo "$ac_cv_lib_idn_stringprep_check_version" >&6; }
32643if test "x$ac_cv_lib_idn_stringprep_check_version" = x""yes; then
32644  iri=yes LIBS="${LIBS} -lidn"
32645else
32646  iri=no
32647fi
32648
32649  fi
32650
32651  if test "X$iri" != "Xno" ; then
32652
32653cat >>confdefs.h <<\_ACEOF
32654#define ENABLE_IRI 1
32655_ACEOF
32656
32657    { $as_echo "$as_me:$LINENO: Enabling support for IRI." >&5
32658$as_echo "$as_me: Enabling support for IRI." >&6;}
32659  else
32660    { $as_echo "$as_me:$LINENO: WARNING: Libidn not found" >&5
32661$as_echo "$as_me: WARNING: Libidn not found" >&2;}
32662  fi
32663fi
32664
32665
32666 if test "X$iri" != "Xno"; then
32667  IRI_IS_ENABLED_TRUE=
32668  IRI_IS_ENABLED_FALSE='#'
32669else
32670  IRI_IS_ENABLED_TRUE='#'
32671  IRI_IS_ENABLED_FALSE=
32672fi
32673
32674
32675
32676ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm lib/Makefile md5/Makefile windows/Makefile"
32677
32678ac_config_headers="$ac_config_headers src/config.h"
32679
32680cat >confcache <<\_ACEOF
32681# This file is a shell script that caches the results of configure
32682# tests run on this system so they can be shared between configure
32683# scripts and configure runs, see configure's option --config-cache.
32684# It is not useful on other systems.  If it contains results you don't
32685# want to keep, you may remove or edit it.
32686#
32687# config.status only pays attention to the cache file if you give it
32688# the --recheck option to rerun configure.
32689#
32690# `ac_cv_env_foo' variables (set or unset) will be overridden when
32691# loading this file, other *unset* `ac_cv_foo' will be assigned the
32692# following values.
32693
32694_ACEOF
32695
32696# The following way of writing the cache mishandles newlines in values,
32697# but we know of no workaround that is simple, portable, and efficient.
32698# So, we kill variables containing newlines.
32699# Ultrix sh set writes to stderr and can't be redirected directly,
32700# and sets the high bit in the cache file unless we assign to the vars.
32701(
32702  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32703    eval ac_val=\$$ac_var
32704    case $ac_val in #(
32705    *${as_nl}*)
32706      case $ac_var in #(
32707      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
32708$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32709      esac
32710      case $ac_var in #(
32711      _ | IFS | as_nl) ;; #(
32712      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32713      *) $as_unset $ac_var ;;
32714      esac ;;
32715    esac
32716  done
32717
32718  (set) 2>&1 |
32719    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32720    *${as_nl}ac_space=\ *)
32721      # `set' does not quote correctly, so add quotes (double-quote
32722      # substitution turns \\\\ into \\, and sed turns \\ into \).
32723      sed -n \
32724	"s/'/'\\\\''/g;
32725	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32726      ;; #(
32727    *)
32728      # `set' quotes correctly as required by POSIX, so do not add quotes.
32729      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32730      ;;
32731    esac |
32732    sort
32733) |
32734  sed '
32735     /^ac_cv_env_/b end
32736     t clear
32737     :clear
32738     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32739     t end
32740     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32741     :end' >>confcache
32742if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32743  if test -w "$cache_file"; then
32744    test "x$cache_file" != "x/dev/null" &&
32745      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
32746$as_echo "$as_me: updating cache $cache_file" >&6;}
32747    cat confcache >$cache_file
32748  else
32749    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32750$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32751  fi
32752fi
32753rm -f confcache
32754
32755test "x$prefix" = xNONE && prefix=$ac_default_prefix
32756# Let make expand exec_prefix.
32757test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32758
32759DEFS=-DHAVE_CONFIG_H
32760
32761ac_libobjs=
32762ac_ltlibobjs=
32763for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32764  # 1. Remove the extension, and $U if already installed.
32765  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32766  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32767  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32768  #    will be set to the directory where LIBOBJS objects are built.
32769  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32770  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32771done
32772LIBOBJS=$ac_libobjs
32773
32774LTLIBOBJS=$ac_ltlibobjs
32775
32776
32777if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32778  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32779Usually this means the macro was only invoked conditionally." >&5
32780$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
32781Usually this means the macro was only invoked conditionally." >&2;}
32782   { (exit 1); exit 1; }; }
32783fi
32784if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32785  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32786Usually this means the macro was only invoked conditionally." >&5
32787$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32788Usually this means the macro was only invoked conditionally." >&2;}
32789   { (exit 1); exit 1; }; }
32790fi
32791if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32792  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32793Usually this means the macro was only invoked conditionally." >&5
32794$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32795Usually this means the macro was only invoked conditionally." >&2;}
32796   { (exit 1); exit 1; }; }
32797fi
32798
32799    gl_libobjs=
32800    gl_ltlibobjs=
32801    if test -n "$gl_LIBOBJS"; then
32802      # Remove the extension.
32803      sed_drop_objext='s/\.o$//;s/\.obj$//'
32804      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32805        gl_libobjs="$gl_libobjs $i.$ac_objext"
32806        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
32807      done
32808    fi
32809    gl_LIBOBJS=$gl_libobjs
32810
32811    gl_LTLIBOBJS=$gl_ltlibobjs
32812
32813
32814
32815    gltests_libobjs=
32816    gltests_ltlibobjs=
32817    if test -n "$gltests_LIBOBJS"; then
32818      # Remove the extension.
32819      sed_drop_objext='s/\.o$//;s/\.obj$//'
32820      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32821        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
32822        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
32823      done
32824    fi
32825    gltests_LIBOBJS=$gltests_libobjs
32826
32827    gltests_LTLIBOBJS=$gltests_ltlibobjs
32828
32829
32830
32831if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32832  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32833Usually this means the macro was only invoked conditionally." >&5
32834$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32835Usually this means the macro was only invoked conditionally." >&2;}
32836   { (exit 1); exit 1; }; }
32837fi
32838
32839
32840    md5_libobjs=
32841    md5_ltlibobjs=
32842    if test -n "$md5_LIBOBJS"; then
32843      # Remove the extension.
32844      sed_drop_objext='s/\.o$//;s/\.obj$//'
32845      for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32846        md5_libobjs="$md5_libobjs $i.$ac_objext"
32847        md5_ltlibobjs="$md5_ltlibobjs $i.lo"
32848      done
32849    fi
32850    md5_LIBOBJS=$md5_libobjs
32851
32852    md5_LTLIBOBJS=$md5_ltlibobjs
32853
32854
32855
32856    md5tests_libobjs=
32857    md5tests_ltlibobjs=
32858    if test -n "$md5tests_LIBOBJS"; then
32859      # Remove the extension.
32860      sed_drop_objext='s/\.o$//;s/\.obj$//'
32861      for i in `for i in $md5tests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32862        md5tests_libobjs="$md5tests_libobjs $i.$ac_objext"
32863        md5tests_ltlibobjs="$md5tests_ltlibobjs $i.lo"
32864      done
32865    fi
32866    md5tests_LIBOBJS=$md5tests_libobjs
32867
32868    md5tests_LTLIBOBJS=$md5tests_ltlibobjs
32869
32870
32871if test -z "${IRI_IS_ENABLED_TRUE}" && test -z "${IRI_IS_ENABLED_FALSE}"; then
32872  { { $as_echo "$as_me:$LINENO: error: conditional \"IRI_IS_ENABLED\" was never defined.
32873Usually this means the macro was only invoked conditionally." >&5
32874$as_echo "$as_me: error: conditional \"IRI_IS_ENABLED\" was never defined.
32875Usually this means the macro was only invoked conditionally." >&2;}
32876   { (exit 1); exit 1; }; }
32877fi
32878
32879: ${CONFIG_STATUS=./config.status}
32880ac_write_fail=0
32881ac_clean_files_save=$ac_clean_files
32882ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32883{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32884$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32885cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32886#! $SHELL
32887# Generated by $as_me.
32888# Run this file to recreate the current configuration.
32889# Compiler output produced by configure, useful for debugging
32890# configure, is in config.log if it exists.
32891
32892debug=false
32893ac_cs_recheck=false
32894ac_cs_silent=false
32895SHELL=\${CONFIG_SHELL-$SHELL}
32896_ACEOF
32897
32898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32899## --------------------- ##
32900## M4sh Initialization.  ##
32901## --------------------- ##
32902
32903# Be more Bourne compatible
32904DUALCASE=1; export DUALCASE # for MKS sh
32905if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32906  emulate sh
32907  NULLCMD=:
32908  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32909  # is contrary to our usage.  Disable this feature.
32910  alias -g '${1+"$@"}'='"$@"'
32911  setopt NO_GLOB_SUBST
32912else
32913  case `(set -o) 2>/dev/null` in
32914  *posix*) set -o posix ;;
32915esac
32916
32917fi
32918
32919
32920
32921
32922# PATH needs CR
32923# Avoid depending upon Character Ranges.
32924as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32925as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32926as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32927as_cr_digits='0123456789'
32928as_cr_alnum=$as_cr_Letters$as_cr_digits
32929
32930as_nl='
32931'
32932export as_nl
32933# Printing a long string crashes Solaris 7 /usr/bin/printf.
32934as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32936as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32937if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32938  as_echo='printf %s\n'
32939  as_echo_n='printf %s'
32940else
32941  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32942    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32943    as_echo_n='/usr/ucb/echo -n'
32944  else
32945    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32946    as_echo_n_body='eval
32947      arg=$1;
32948      case $arg in
32949      *"$as_nl"*)
32950	expr "X$arg" : "X\\(.*\\)$as_nl";
32951	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32952      esac;
32953      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32954    '
32955    export as_echo_n_body
32956    as_echo_n='sh -c $as_echo_n_body as_echo'
32957  fi
32958  export as_echo_body
32959  as_echo='sh -c $as_echo_body as_echo'
32960fi
32961
32962# The user is always right.
32963if test "${PATH_SEPARATOR+set}" != set; then
32964  PATH_SEPARATOR=:
32965  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32966    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32967      PATH_SEPARATOR=';'
32968  }
32969fi
32970
32971# Support unset when possible.
32972if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32973  as_unset=unset
32974else
32975  as_unset=false
32976fi
32977
32978
32979# IFS
32980# We need space, tab and new line, in precisely that order.  Quoting is
32981# there to prevent editors from complaining about space-tab.
32982# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32983# splitting by setting IFS to empty value.)
32984IFS=" ""	$as_nl"
32985
32986# Find who we are.  Look in the path if we contain no directory separator.
32987case $0 in
32988  *[\\/]* ) as_myself=$0 ;;
32989  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990for as_dir in $PATH
32991do
32992  IFS=$as_save_IFS
32993  test -z "$as_dir" && as_dir=.
32994  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32995done
32996IFS=$as_save_IFS
32997
32998     ;;
32999esac
33000# We did not find ourselves, most probably we were run as `sh COMMAND'
33001# in which case we are not to be found in the path.
33002if test "x$as_myself" = x; then
33003  as_myself=$0
33004fi
33005if test ! -f "$as_myself"; then
33006  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33007  { (exit 1); exit 1; }
33008fi
33009
33010# Work around bugs in pre-3.0 UWIN ksh.
33011for as_var in ENV MAIL MAILPATH
33012do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33013done
33014PS1='$ '
33015PS2='> '
33016PS4='+ '
33017
33018# NLS nuisances.
33019LC_ALL=C
33020export LC_ALL
33021LANGUAGE=C
33022export LANGUAGE
33023
33024# Required to use basename.
33025if expr a : '\(a\)' >/dev/null 2>&1 &&
33026   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33027  as_expr=expr
33028else
33029  as_expr=false
33030fi
33031
33032if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33033  as_basename=basename
33034else
33035  as_basename=false
33036fi
33037
33038
33039# Name of the executable.
33040as_me=`$as_basename -- "$0" ||
33041$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33042	 X"$0" : 'X\(//\)$' \| \
33043	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33044$as_echo X/"$0" |
33045    sed '/^.*\/\([^/][^/]*\)\/*$/{
33046	    s//\1/
33047	    q
33048	  }
33049	  /^X\/\(\/\/\)$/{
33050	    s//\1/
33051	    q
33052	  }
33053	  /^X\/\(\/\).*/{
33054	    s//\1/
33055	    q
33056	  }
33057	  s/.*/./; q'`
33058
33059# CDPATH.
33060$as_unset CDPATH
33061
33062
33063
33064  as_lineno_1=$LINENO
33065  as_lineno_2=$LINENO
33066  test "x$as_lineno_1" != "x$as_lineno_2" &&
33067  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33068
33069  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33070  # uniformly replaced by the line number.  The first 'sed' inserts a
33071  # line-number line after each line using $LINENO; the second 'sed'
33072  # does the real work.  The second script uses 'N' to pair each
33073  # line-number line with the line containing $LINENO, and appends
33074  # trailing '-' during substitution so that $LINENO is not a special
33075  # case at line end.
33076  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33077  # scripts with optimization help from Paolo Bonzini.  Blame Lee
33078  # E. McMahon (1931-1989) for sed's syntax.  :-)
33079  sed -n '
33080    p
33081    /[$]LINENO/=
33082  ' <$as_myself |
33083    sed '
33084      s/[$]LINENO.*/&-/
33085      t lineno
33086      b
33087      :lineno
33088      N
33089      :loop
33090      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33091      t loop
33092      s/-\n.*//
33093    ' >$as_me.lineno &&
33094  chmod +x "$as_me.lineno" ||
33095    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33096   { (exit 1); exit 1; }; }
33097
33098  # Don't try to exec as it changes $[0], causing all sort of problems
33099  # (the dirname of $[0] is not the place where we might find the
33100  # original and so on.  Autoconf is especially sensitive to this).
33101  . "./$as_me.lineno"
33102  # Exit status is that of the last command.
33103  exit
33104}
33105
33106
33107if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33108  as_dirname=dirname
33109else
33110  as_dirname=false
33111fi
33112
33113ECHO_C= ECHO_N= ECHO_T=
33114case `echo -n x` in
33115-n*)
33116  case `echo 'x\c'` in
33117  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33118  *)   ECHO_C='\c';;
33119  esac;;
33120*)
33121  ECHO_N='-n';;
33122esac
33123if expr a : '\(a\)' >/dev/null 2>&1 &&
33124   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33125  as_expr=expr
33126else
33127  as_expr=false
33128fi
33129
33130rm -f conf$$ conf$$.exe conf$$.file
33131if test -d conf$$.dir; then
33132  rm -f conf$$.dir/conf$$.file
33133else
33134  rm -f conf$$.dir
33135  mkdir conf$$.dir 2>/dev/null
33136fi
33137if (echo >conf$$.file) 2>/dev/null; then
33138  if ln -s conf$$.file conf$$ 2>/dev/null; then
33139    as_ln_s='ln -s'
33140    # ... but there are two gotchas:
33141    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33142    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33143    # In both cases, we have to default to `cp -p'.
33144    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33145      as_ln_s='cp -p'
33146  elif ln conf$$.file conf$$ 2>/dev/null; then
33147    as_ln_s=ln
33148  else
33149    as_ln_s='cp -p'
33150  fi
33151else
33152  as_ln_s='cp -p'
33153fi
33154rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33155rmdir conf$$.dir 2>/dev/null
33156
33157if mkdir -p . 2>/dev/null; then
33158  as_mkdir_p=:
33159else
33160  test -d ./-p && rmdir ./-p
33161  as_mkdir_p=false
33162fi
33163
33164if test -x / >/dev/null 2>&1; then
33165  as_test_x='test -x'
33166else
33167  if ls -dL / >/dev/null 2>&1; then
33168    as_ls_L_option=L
33169  else
33170    as_ls_L_option=
33171  fi
33172  as_test_x='
33173    eval sh -c '\''
33174      if test -d "$1"; then
33175	test -d "$1/.";
33176      else
33177	case $1 in
33178	-*)set "./$1";;
33179	esac;
33180	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33181	???[sx]*):;;*)false;;esac;fi
33182    '\'' sh
33183  '
33184fi
33185as_executable_p=$as_test_x
33186
33187# Sed expression to map a string onto a valid CPP name.
33188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33189
33190# Sed expression to map a string onto a valid variable name.
33191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33192
33193
33194exec 6>&1
33195
33196# Save the log message, to keep $[0] and so on meaningful, and to
33197# report actual input values of CONFIG_FILES etc. instead of their
33198# values after options handling.
33199ac_log="
33200This file was extended by wget $as_me 1.12, which was
33201generated by GNU Autoconf 2.63.  Invocation command line was
33202
33203  CONFIG_FILES    = $CONFIG_FILES
33204  CONFIG_HEADERS  = $CONFIG_HEADERS
33205  CONFIG_LINKS    = $CONFIG_LINKS
33206  CONFIG_COMMANDS = $CONFIG_COMMANDS
33207  $ $0 $@
33208
33209on `(hostname || uname -n) 2>/dev/null | sed 1q`
33210"
33211
33212_ACEOF
33213
33214case $ac_config_files in *"
33215"*) set x $ac_config_files; shift; ac_config_files=$*;;
33216esac
33217
33218case $ac_config_headers in *"
33219"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33220esac
33221
33222
33223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33224# Files that config.status was made for.
33225config_files="$ac_config_files"
33226config_headers="$ac_config_headers"
33227config_links="$ac_config_links"
33228config_commands="$ac_config_commands"
33229
33230_ACEOF
33231
33232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33233ac_cs_usage="\
33234\`$as_me' instantiates files from templates according to the
33235current configuration.
33236
33237Usage: $0 [OPTION]... [FILE]...
33238
33239  -h, --help       print this help, then exit
33240  -V, --version    print version number and configuration settings, then exit
33241  -q, --quiet, --silent
33242                   do not print progress messages
33243  -d, --debug      don't remove temporary files
33244      --recheck    update $as_me by reconfiguring in the same conditions
33245      --file=FILE[:TEMPLATE]
33246                   instantiate the configuration file FILE
33247      --header=FILE[:TEMPLATE]
33248                   instantiate the configuration header FILE
33249
33250Configuration files:
33251$config_files
33252
33253Configuration headers:
33254$config_headers
33255
33256Configuration links:
33257$config_links
33258
33259Configuration commands:
33260$config_commands
33261
33262Report bugs to <bug-autoconf@gnu.org>."
33263
33264_ACEOF
33265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33266ac_cs_version="\\
33267wget config.status 1.12
33268configured by $0, generated by GNU Autoconf 2.63,
33269  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33270
33271Copyright (C) 2008 Free Software Foundation, Inc.
33272This config.status script is free software; the Free Software Foundation
33273gives unlimited permission to copy, distribute and modify it."
33274
33275ac_pwd='$ac_pwd'
33276srcdir='$srcdir'
33277INSTALL='$INSTALL'
33278MKDIR_P='$MKDIR_P'
33279AWK='$AWK'
33280test -n "\$AWK" || AWK=awk
33281_ACEOF
33282
33283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33284# The default lists apply if the user does not specify any file.
33285ac_need_defaults=:
33286while test $# != 0
33287do
33288  case $1 in
33289  --*=*)
33290    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33291    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33292    ac_shift=:
33293    ;;
33294  *)
33295    ac_option=$1
33296    ac_optarg=$2
33297    ac_shift=shift
33298    ;;
33299  esac
33300
33301  case $ac_option in
33302  # Handling of the options.
33303  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33304    ac_cs_recheck=: ;;
33305  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33306    $as_echo "$ac_cs_version"; exit ;;
33307  --debug | --debu | --deb | --de | --d | -d )
33308    debug=: ;;
33309  --file | --fil | --fi | --f )
33310    $ac_shift
33311    case $ac_optarg in
33312    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33313    esac
33314    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
33315    ac_need_defaults=false;;
33316  --header | --heade | --head | --hea )
33317    $ac_shift
33318    case $ac_optarg in
33319    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33320    esac
33321    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
33322    ac_need_defaults=false;;
33323  --he | --h)
33324    # Conflict between --help and --header
33325    { $as_echo "$as_me: error: ambiguous option: $1
33326Try \`$0 --help' for more information." >&2
33327   { (exit 1); exit 1; }; };;
33328  --help | --hel | -h )
33329    $as_echo "$ac_cs_usage"; exit ;;
33330  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33331  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33332    ac_cs_silent=: ;;
33333
33334  # This is an error.
33335  -*) { $as_echo "$as_me: error: unrecognized option: $1
33336Try \`$0 --help' for more information." >&2
33337   { (exit 1); exit 1; }; } ;;
33338
33339  *) ac_config_targets="$ac_config_targets $1"
33340     ac_need_defaults=false ;;
33341
33342  esac
33343  shift
33344done
33345
33346ac_configure_extra_args=
33347
33348if $ac_cs_silent; then
33349  exec 6>/dev/null
33350  ac_configure_extra_args="$ac_configure_extra_args --silent"
33351fi
33352
33353_ACEOF
33354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33355if \$ac_cs_recheck; then
33356  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33357  shift
33358  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33359  CONFIG_SHELL='$SHELL'
33360  export CONFIG_SHELL
33361  exec "\$@"
33362fi
33363
33364_ACEOF
33365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33366exec 5>>config.log
33367{
33368  echo
33369  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33370## Running $as_me. ##
33371_ASBOX
33372  $as_echo "$ac_log"
33373} >&5
33374
33375_ACEOF
33376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33377#
33378# INIT-COMMANDS
33379#
33380AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33381# Capture the value of obsolete ALL_LINGUAS because we need it to compute
33382    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33383    # from automake < 1.5.
33384    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33385    # Capture the value of LINGUAS because we need it to compute CATALOGS.
33386    LINGUAS="${LINGUAS-%UNSET%}"
33387
33388GNUmakefile=$GNUmakefile
33389
33390_ACEOF
33391
33392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393
33394# Handling of arguments.
33395for ac_config_target in $ac_config_targets
33396do
33397  case $ac_config_target in
33398    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33399    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33400    "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
33401    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33402    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33403    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33404    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
33405    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33406    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33407    "tests/WgetTest.pm") CONFIG_FILES="$CONFIG_FILES tests/WgetTest.pm" ;;
33408    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
33409    "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
33410    "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
33411    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
33412
33413  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33414$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33415   { (exit 1); exit 1; }; };;
33416  esac
33417done
33418
33419
33420# If the user did not use the arguments to specify the items to instantiate,
33421# then the envvar interface is used.  Set only those that are not.
33422# We use the long form for the default assignment because of an extremely
33423# bizarre bug on SunOS 4.1.3.
33424if $ac_need_defaults; then
33425  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33426  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33427  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33428  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33429fi
33430
33431# Have a temporary directory for convenience.  Make it in the build tree
33432# simply because there is no reason against having it here, and in addition,
33433# creating and moving files from /tmp can sometimes cause problems.
33434# Hook for its removal unless debugging.
33435# Note that there is a small window in which the directory will not be cleaned:
33436# after its creation but before its name has been assigned to `$tmp'.
33437$debug ||
33438{
33439  tmp=
33440  trap 'exit_status=$?
33441  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33442' 0
33443  trap '{ (exit 1); exit 1; }' 1 2 13 15
33444}
33445# Create a (secure) tmp directory for tmp files.
33446
33447{
33448  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33449  test -n "$tmp" && test -d "$tmp"
33450}  ||
33451{
33452  tmp=./conf$$-$RANDOM
33453  (umask 077 && mkdir "$tmp")
33454} ||
33455{
33456   $as_echo "$as_me: cannot create a temporary directory in ." >&2
33457   { (exit 1); exit 1; }
33458}
33459
33460# Set up the scripts for CONFIG_FILES section.
33461# No need to generate them if there are no CONFIG_FILES.
33462# This happens for instance with `./config.status config.h'.
33463if test -n "$CONFIG_FILES"; then
33464
33465
33466ac_cr='
33467'
33468ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33469if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33470  ac_cs_awk_cr='\\r'
33471else
33472  ac_cs_awk_cr=$ac_cr
33473fi
33474
33475echo 'BEGIN {' >"$tmp/subs1.awk" &&
33476_ACEOF
33477
33478
33479{
33480  echo "cat >conf$$subs.awk <<_ACEOF" &&
33481  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33482  echo "_ACEOF"
33483} >conf$$subs.sh ||
33484  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33485$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33486   { (exit 1); exit 1; }; }
33487ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33488ac_delim='%!_!# '
33489for ac_last_try in false false false false false :; do
33490  . ./conf$$subs.sh ||
33491    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33492$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33493   { (exit 1); exit 1; }; }
33494
33495  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33496  if test $ac_delim_n = $ac_delim_num; then
33497    break
33498  elif $ac_last_try; then
33499    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33500$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33501   { (exit 1); exit 1; }; }
33502  else
33503    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33504  fi
33505done
33506rm -f conf$$subs.sh
33507
33508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33509cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33510_ACEOF
33511sed -n '
33512h
33513s/^/S["/; s/!.*/"]=/
33514p
33515g
33516s/^[^!]*!//
33517:repl
33518t repl
33519s/'"$ac_delim"'$//
33520t delim
33521:nl
33522h
33523s/\(.\{148\}\).*/\1/
33524t more1
33525s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33526p
33527n
33528b repl
33529:more1
33530s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33531p
33532g
33533s/.\{148\}//
33534t nl
33535:delim
33536h
33537s/\(.\{148\}\).*/\1/
33538t more2
33539s/["\\]/\\&/g; s/^/"/; s/$/"/
33540p
33541b
33542:more2
33543s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33544p
33545g
33546s/.\{148\}//
33547t delim
33548' <conf$$subs.awk | sed '
33549/^[^""]/{
33550  N
33551  s/\n//
33552}
33553' >>$CONFIG_STATUS || ac_write_fail=1
33554rm -f conf$$subs.awk
33555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33556_ACAWK
33557cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33558  for (key in S) S_is_set[key] = 1
33559  FS = ""
33560
33561}
33562{
33563  line = $ 0
33564  nfields = split(line, field, "@")
33565  substed = 0
33566  len = length(field[1])
33567  for (i = 2; i < nfields; i++) {
33568    key = field[i]
33569    keylen = length(key)
33570    if (S_is_set[key]) {
33571      value = S[key]
33572      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33573      len += length(value) + length(field[++i])
33574      substed = 1
33575    } else
33576      len += 1 + keylen
33577  }
33578
33579  print line
33580}
33581
33582_ACAWK
33583_ACEOF
33584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33585if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33586  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33587else
33588  cat
33589fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33590  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
33591$as_echo "$as_me: error: could not setup config files machinery" >&2;}
33592   { (exit 1); exit 1; }; }
33593_ACEOF
33594
33595# VPATH may cause trouble with some makes, so we remove $(srcdir),
33596# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33597# trailing colons and then remove the whole line if VPATH becomes empty
33598# (actually we leave an empty line to preserve line numbers).
33599if test "x$srcdir" = x.; then
33600  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
33601s/:*\$(srcdir):*/:/
33602s/:*\${srcdir}:*/:/
33603s/:*@srcdir@:*/:/
33604s/^\([^=]*=[	 ]*\):*/\1/
33605s/:*$//
33606s/^[^=]*=[	 ]*$//
33607}'
33608fi
33609
33610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33611fi # test -n "$CONFIG_FILES"
33612
33613# Set up the scripts for CONFIG_HEADERS section.
33614# No need to generate them if there are no CONFIG_HEADERS.
33615# This happens for instance with `./config.status Makefile'.
33616if test -n "$CONFIG_HEADERS"; then
33617cat >"$tmp/defines.awk" <<\_ACAWK ||
33618BEGIN {
33619_ACEOF
33620
33621# Transform confdefs.h into an awk script `defines.awk', embedded as
33622# here-document in config.status, that substitutes the proper values into
33623# config.h.in to produce config.h.
33624
33625# Create a delimiter string that does not exist in confdefs.h, to ease
33626# handling of long lines.
33627ac_delim='%!_!# '
33628for ac_last_try in false false :; do
33629  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33630  if test -z "$ac_t"; then
33631    break
33632  elif $ac_last_try; then
33633    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
33634$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
33635   { (exit 1); exit 1; }; }
33636  else
33637    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33638  fi
33639done
33640
33641# For the awk script, D is an array of macro values keyed by name,
33642# likewise P contains macro parameters if any.  Preserve backslash
33643# newline sequences.
33644
33645ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33646sed -n '
33647s/.\{148\}/&'"$ac_delim"'/g
33648t rset
33649:rset
33650s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33651t def
33652d
33653:def
33654s/\\$//
33655t bsnl
33656s/["\\]/\\&/g
33657s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33658D["\1"]=" \3"/p
33659s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33660d
33661:bsnl
33662s/["\\]/\\&/g
33663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33664D["\1"]=" \3\\\\\\n"\\/p
33665t cont
33666s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33667t cont
33668d
33669:cont
33670n
33671s/.\{148\}/&'"$ac_delim"'/g
33672t clear
33673:clear
33674s/\\$//
33675t bsnlc
33676s/["\\]/\\&/g; s/^/"/; s/$/"/p
33677d
33678:bsnlc
33679s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33680b cont
33681' <confdefs.h | sed '
33682s/'"$ac_delim"'/"\\\
33683"/g' >>$CONFIG_STATUS || ac_write_fail=1
33684
33685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33686  for (key in D) D_is_set[key] = 1
33687  FS = ""
33688}
33689/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33690  line = \$ 0
33691  split(line, arg, " ")
33692  if (arg[1] == "#") {
33693    defundef = arg[2]
33694    mac1 = arg[3]
33695  } else {
33696    defundef = substr(arg[1], 2)
33697    mac1 = arg[2]
33698  }
33699  split(mac1, mac2, "(") #)
33700  macro = mac2[1]
33701  prefix = substr(line, 1, index(line, defundef) - 1)
33702  if (D_is_set[macro]) {
33703    # Preserve the white space surrounding the "#".
33704    print prefix "define", macro P[macro] D[macro]
33705    next
33706  } else {
33707    # Replace #undef with comments.  This is necessary, for example,
33708    # in the case of _POSIX_SOURCE, which is predefined and required
33709    # on some systems where configure will not decide to define it.
33710    if (defundef == "undef") {
33711      print "/*", prefix defundef, macro, "*/"
33712      next
33713    }
33714  }
33715}
33716{ print }
33717_ACAWK
33718_ACEOF
33719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33720  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
33721$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
33722   { (exit 1); exit 1; }; }
33723fi # test -n "$CONFIG_HEADERS"
33724
33725
33726eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
33727shift
33728for ac_tag
33729do
33730  case $ac_tag in
33731  :[FHLC]) ac_mode=$ac_tag; continue;;
33732  esac
33733  case $ac_mode$ac_tag in
33734  :[FHL]*:*);;
33735  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
33736$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
33737   { (exit 1); exit 1; }; };;
33738  :[FH]-) ac_tag=-:-;;
33739  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33740  esac
33741  ac_save_IFS=$IFS
33742  IFS=:
33743  set x $ac_tag
33744  IFS=$ac_save_IFS
33745  shift
33746  ac_file=$1
33747  shift
33748
33749  case $ac_mode in
33750  :L) ac_source=$1;;
33751  :[FH])
33752    ac_file_inputs=
33753    for ac_f
33754    do
33755      case $ac_f in
33756      -) ac_f="$tmp/stdin";;
33757      *) # Look for the file first in the build tree, then in the source tree
33758	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33759	 # because $ac_f cannot contain `:'.
33760	 test -f "$ac_f" ||
33761	   case $ac_f in
33762	   [\\/$]*) false;;
33763	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33764	   esac ||
33765	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33766$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33767   { (exit 1); exit 1; }; };;
33768      esac
33769      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33770      ac_file_inputs="$ac_file_inputs '$ac_f'"
33771    done
33772
33773    # Let's still pretend it is `configure' which instantiates (i.e., don't
33774    # use $as_me), people would be surprised to read:
33775    #    /* config.h.  Generated by config.status.  */
33776    configure_input='Generated from '`
33777	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33778	`' by configure.'
33779    if test x"$ac_file" != x-; then
33780      configure_input="$ac_file.  $configure_input"
33781      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
33782$as_echo "$as_me: creating $ac_file" >&6;}
33783    fi
33784    # Neutralize special characters interpreted by sed in replacement strings.
33785    case $configure_input in #(
33786    *\&* | *\|* | *\\* )
33787       ac_sed_conf_input=`$as_echo "$configure_input" |
33788       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33789    *) ac_sed_conf_input=$configure_input;;
33790    esac
33791
33792    case $ac_tag in
33793    *:-:* | *:-) cat >"$tmp/stdin" \
33794      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33795$as_echo "$as_me: error: could not create $ac_file" >&2;}
33796   { (exit 1); exit 1; }; } ;;
33797    esac
33798    ;;
33799  esac
33800
33801  ac_dir=`$as_dirname -- "$ac_file" ||
33802$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33803	 X"$ac_file" : 'X\(//\)[^/]' \| \
33804	 X"$ac_file" : 'X\(//\)$' \| \
33805	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33806$as_echo X"$ac_file" |
33807    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33808	    s//\1/
33809	    q
33810	  }
33811	  /^X\(\/\/\)[^/].*/{
33812	    s//\1/
33813	    q
33814	  }
33815	  /^X\(\/\/\)$/{
33816	    s//\1/
33817	    q
33818	  }
33819	  /^X\(\/\).*/{
33820	    s//\1/
33821	    q
33822	  }
33823	  s/.*/./; q'`
33824  { as_dir="$ac_dir"
33825  case $as_dir in #(
33826  -*) as_dir=./$as_dir;;
33827  esac
33828  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33829    as_dirs=
33830    while :; do
33831      case $as_dir in #(
33832      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33833      *) as_qdir=$as_dir;;
33834      esac
33835      as_dirs="'$as_qdir' $as_dirs"
33836      as_dir=`$as_dirname -- "$as_dir" ||
33837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33838	 X"$as_dir" : 'X\(//\)[^/]' \| \
33839	 X"$as_dir" : 'X\(//\)$' \| \
33840	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33841$as_echo X"$as_dir" |
33842    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33843	    s//\1/
33844	    q
33845	  }
33846	  /^X\(\/\/\)[^/].*/{
33847	    s//\1/
33848	    q
33849	  }
33850	  /^X\(\/\/\)$/{
33851	    s//\1/
33852	    q
33853	  }
33854	  /^X\(\/\).*/{
33855	    s//\1/
33856	    q
33857	  }
33858	  s/.*/./; q'`
33859      test -d "$as_dir" && break
33860    done
33861    test -z "$as_dirs" || eval "mkdir $as_dirs"
33862  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33863$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33864   { (exit 1); exit 1; }; }; }
33865  ac_builddir=.
33866
33867case "$ac_dir" in
33868.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33869*)
33870  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33871  # A ".." for each directory in $ac_dir_suffix.
33872  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33873  case $ac_top_builddir_sub in
33874  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33875  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33876  esac ;;
33877esac
33878ac_abs_top_builddir=$ac_pwd
33879ac_abs_builddir=$ac_pwd$ac_dir_suffix
33880# for backward compatibility:
33881ac_top_builddir=$ac_top_build_prefix
33882
33883case $srcdir in
33884  .)  # We are building in place.
33885    ac_srcdir=.
33886    ac_top_srcdir=$ac_top_builddir_sub
33887    ac_abs_top_srcdir=$ac_pwd ;;
33888  [\\/]* | ?:[\\/]* )  # Absolute name.
33889    ac_srcdir=$srcdir$ac_dir_suffix;
33890    ac_top_srcdir=$srcdir
33891    ac_abs_top_srcdir=$srcdir ;;
33892  *) # Relative name.
33893    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33894    ac_top_srcdir=$ac_top_build_prefix$srcdir
33895    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33896esac
33897ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33898
33899
33900  case $ac_mode in
33901  :F)
33902  #
33903  # CONFIG_FILE
33904  #
33905
33906  case $INSTALL in
33907  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33908  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33909  esac
33910  ac_MKDIR_P=$MKDIR_P
33911  case $MKDIR_P in
33912  [\\/$]* | ?:[\\/]* ) ;;
33913  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33914  esac
33915_ACEOF
33916
33917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33918# If the template does not know about datarootdir, expand it.
33919# FIXME: This hack should be removed a few years after 2.60.
33920ac_datarootdir_hack=; ac_datarootdir_seen=
33921
33922ac_sed_dataroot='
33923/datarootdir/ {
33924  p
33925  q
33926}
33927/@datadir@/p
33928/@docdir@/p
33929/@infodir@/p
33930/@localedir@/p
33931/@mandir@/p
33932'
33933case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33934*datarootdir*) ac_datarootdir_seen=yes;;
33935*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33936  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33937$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33938_ACEOF
33939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33940  ac_datarootdir_hack='
33941  s&@datadir@&$datadir&g
33942  s&@docdir@&$docdir&g
33943  s&@infodir@&$infodir&g
33944  s&@localedir@&$localedir&g
33945  s&@mandir@&$mandir&g
33946    s&\\\${datarootdir}&$datarootdir&g' ;;
33947esac
33948_ACEOF
33949
33950# Neutralize VPATH when `$srcdir' = `.'.
33951# Shell code in configure.ac might set extrasub.
33952# FIXME: do we really want to maintain this feature?
33953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33954ac_sed_extra="$ac_vpsub
33955$extrasub
33956_ACEOF
33957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33958:t
33959/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33960s|@configure_input@|$ac_sed_conf_input|;t t
33961s&@top_builddir@&$ac_top_builddir_sub&;t t
33962s&@top_build_prefix@&$ac_top_build_prefix&;t t
33963s&@srcdir@&$ac_srcdir&;t t
33964s&@abs_srcdir@&$ac_abs_srcdir&;t t
33965s&@top_srcdir@&$ac_top_srcdir&;t t
33966s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33967s&@builddir@&$ac_builddir&;t t
33968s&@abs_builddir@&$ac_abs_builddir&;t t
33969s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33970s&@INSTALL@&$ac_INSTALL&;t t
33971s&@MKDIR_P@&$ac_MKDIR_P&;t t
33972$ac_datarootdir_hack
33973"
33974eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33975  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33976$as_echo "$as_me: error: could not create $ac_file" >&2;}
33977   { (exit 1); exit 1; }; }
33978
33979test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33980  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33981  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33982  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33983which seems to be undefined.  Please make sure it is defined." >&5
33984$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33985which seems to be undefined.  Please make sure it is defined." >&2;}
33986
33987  rm -f "$tmp/stdin"
33988  case $ac_file in
33989  -) cat "$tmp/out" && rm -f "$tmp/out";;
33990  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33991  esac \
33992  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33993$as_echo "$as_me: error: could not create $ac_file" >&2;}
33994   { (exit 1); exit 1; }; }
33995 ;;
33996  :H)
33997  #
33998  # CONFIG_HEADER
33999  #
34000  if test x"$ac_file" != x-; then
34001    {
34002      $as_echo "/* $configure_input  */" \
34003      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34004    } >"$tmp/config.h" \
34005      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34006$as_echo "$as_me: error: could not create $ac_file" >&2;}
34007   { (exit 1); exit 1; }; }
34008    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34009      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34010$as_echo "$as_me: $ac_file is unchanged" >&6;}
34011    else
34012      rm -f "$ac_file"
34013      mv "$tmp/config.h" "$ac_file" \
34014	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34015$as_echo "$as_me: error: could not create $ac_file" >&2;}
34016   { (exit 1); exit 1; }; }
34017    fi
34018  else
34019    $as_echo "/* $configure_input  */" \
34020      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34021      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
34022$as_echo "$as_me: error: could not create -" >&2;}
34023   { (exit 1); exit 1; }; }
34024  fi
34025# Compute "$ac_file"'s index in $config_headers.
34026_am_arg="$ac_file"
34027_am_stamp_count=1
34028for _am_header in $config_headers :; do
34029  case $_am_header in
34030    $_am_arg | $_am_arg:* )
34031      break ;;
34032    * )
34033      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34034  esac
34035done
34036echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34037$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34038	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34039	 X"$_am_arg" : 'X\(//\)$' \| \
34040	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34041$as_echo X"$_am_arg" |
34042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34043	    s//\1/
34044	    q
34045	  }
34046	  /^X\(\/\/\)[^/].*/{
34047	    s//\1/
34048	    q
34049	  }
34050	  /^X\(\/\/\)$/{
34051	    s//\1/
34052	    q
34053	  }
34054	  /^X\(\/\).*/{
34055	    s//\1/
34056	    q
34057	  }
34058	  s/.*/./; q'`/stamp-h$_am_stamp_count
34059 ;;
34060  :L)
34061  #
34062  # CONFIG_LINK
34063  #
34064
34065  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34066    :
34067  else
34068    # Prefer the file from the source tree if names are identical.
34069    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34070      ac_source=$srcdir/$ac_source
34071    fi
34072
34073    { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
34074$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34075
34076    if test ! -r "$ac_source"; then
34077      { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
34078$as_echo "$as_me: error: $ac_source: file not found" >&2;}
34079   { (exit 1); exit 1; }; }
34080    fi
34081    rm -f "$ac_file"
34082
34083    # Try a relative symlink, then a hard link, then a copy.
34084    case $srcdir in
34085    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34086	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34087    esac
34088    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34089      ln "$ac_source" "$ac_file" 2>/dev/null ||
34090      cp -p "$ac_source" "$ac_file" ||
34091      { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
34092$as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
34093   { (exit 1); exit 1; }; }
34094  fi
34095 ;;
34096  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
34097$as_echo "$as_me: executing $ac_file commands" >&6;}
34098 ;;
34099  esac
34100
34101
34102  case $ac_file$ac_mode in
34103    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34104  # Autoconf 2.62 quotes --file arguments for eval, but not when files
34105  # are listed without --file.  Let's play safe and only enable the eval
34106  # if we detect the quoting.
34107  case $CONFIG_FILES in
34108  *\'*) eval set x "$CONFIG_FILES" ;;
34109  *)   set x $CONFIG_FILES ;;
34110  esac
34111  shift
34112  for mf
34113  do
34114    # Strip MF so we end up with the name of the file.
34115    mf=`echo "$mf" | sed -e 's/:.*$//'`
34116    # Check whether this is an Automake generated Makefile or not.
34117    # We used to match only the files named `Makefile.in', but
34118    # some people rename them; so instead we look at the file content.
34119    # Grep'ing the first line is not enough: some people post-process
34120    # each Makefile.in and add a new line on top of each file to say so.
34121    # Grep'ing the whole file is not good either: AIX grep has a line
34122    # limit of 2048, but all sed's we know have understand at least 4000.
34123    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34124      dirpart=`$as_dirname -- "$mf" ||
34125$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34126	 X"$mf" : 'X\(//\)[^/]' \| \
34127	 X"$mf" : 'X\(//\)$' \| \
34128	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34129$as_echo X"$mf" |
34130    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34131	    s//\1/
34132	    q
34133	  }
34134	  /^X\(\/\/\)[^/].*/{
34135	    s//\1/
34136	    q
34137	  }
34138	  /^X\(\/\/\)$/{
34139	    s//\1/
34140	    q
34141	  }
34142	  /^X\(\/\).*/{
34143	    s//\1/
34144	    q
34145	  }
34146	  s/.*/./; q'`
34147    else
34148      continue
34149    fi
34150    # Extract the definition of DEPDIR, am__include, and am__quote
34151    # from the Makefile without running `make'.
34152    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34153    test -z "$DEPDIR" && continue
34154    am__include=`sed -n 's/^am__include = //p' < "$mf"`
34155    test -z "am__include" && continue
34156    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34157    # When using ansi2knr, U may be empty or an underscore; expand it
34158    U=`sed -n 's/^U = //p' < "$mf"`
34159    # Find all dependency output files, they are included files with
34160    # $(DEPDIR) in their names.  We invoke sed twice because it is the
34161    # simplest approach to changing $(DEPDIR) to its actual value in the
34162    # expansion.
34163    for file in `sed -n "
34164      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34165	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34166      # Make sure the directory exists.
34167      test -f "$dirpart/$file" && continue
34168      fdir=`$as_dirname -- "$file" ||
34169$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34170	 X"$file" : 'X\(//\)[^/]' \| \
34171	 X"$file" : 'X\(//\)$' \| \
34172	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34173$as_echo X"$file" |
34174    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34175	    s//\1/
34176	    q
34177	  }
34178	  /^X\(\/\/\)[^/].*/{
34179	    s//\1/
34180	    q
34181	  }
34182	  /^X\(\/\/\)$/{
34183	    s//\1/
34184	    q
34185	  }
34186	  /^X\(\/\).*/{
34187	    s//\1/
34188	    q
34189	  }
34190	  s/.*/./; q'`
34191      { as_dir=$dirpart/$fdir
34192  case $as_dir in #(
34193  -*) as_dir=./$as_dir;;
34194  esac
34195  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34196    as_dirs=
34197    while :; do
34198      case $as_dir in #(
34199      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34200      *) as_qdir=$as_dir;;
34201      esac
34202      as_dirs="'$as_qdir' $as_dirs"
34203      as_dir=`$as_dirname -- "$as_dir" ||
34204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34205	 X"$as_dir" : 'X\(//\)[^/]' \| \
34206	 X"$as_dir" : 'X\(//\)$' \| \
34207	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34208$as_echo X"$as_dir" |
34209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34210	    s//\1/
34211	    q
34212	  }
34213	  /^X\(\/\/\)[^/].*/{
34214	    s//\1/
34215	    q
34216	  }
34217	  /^X\(\/\/\)$/{
34218	    s//\1/
34219	    q
34220	  }
34221	  /^X\(\/\).*/{
34222	    s//\1/
34223	    q
34224	  }
34225	  s/.*/./; q'`
34226      test -d "$as_dir" && break
34227    done
34228    test -z "$as_dirs" || eval "mkdir $as_dirs"
34229  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34230$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34231   { (exit 1); exit 1; }; }; }
34232      # echo "creating $dirpart/$file"
34233      echo '# dummy' > "$dirpart/$file"
34234    done
34235  done
34236}
34237 ;;
34238    "po-directories":C)
34239    for ac_file in $CONFIG_FILES; do
34240      # Support "outfile[:infile[:infile...]]"
34241      case "$ac_file" in
34242        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
34243      esac
34244      # PO directories have a Makefile.in generated from Makefile.in.in.
34245      case "$ac_file" in */Makefile.in)
34246        # Adjust a relative srcdir.
34247        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
34248        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
34249        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
34250        # In autoconf-2.13 it is called $ac_given_srcdir.
34251        # In autoconf-2.50 it is called $srcdir.
34252        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
34253        case "$ac_given_srcdir" in
34254          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
34255          /*) top_srcdir="$ac_given_srcdir" ;;
34256          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
34257        esac
34258        # Treat a directory as a PO directory if and only if it has a
34259        # POTFILES.in file. This allows packages to have multiple PO
34260        # directories under different names or in different locations.
34261        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
34262          rm -f "$ac_dir/POTFILES"
34263          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
34264          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
34265          POMAKEFILEDEPS="POTFILES.in"
34266          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
34267          # on $ac_dir but don't depend on user-specified configuration
34268          # parameters.
34269          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
34270            # The LINGUAS file contains the set of available languages.
34271            if test -n "$OBSOLETE_ALL_LINGUAS"; then
34272              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
34273            fi
34274            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
34275            # Hide the ALL_LINGUAS assigment from automake < 1.5.
34276            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
34277            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
34278          else
34279            # The set of available languages was given in configure.in.
34280            # Hide the ALL_LINGUAS assigment from automake < 1.5.
34281            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
34282          fi
34283          # Compute POFILES
34284          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
34285          # Compute UPDATEPOFILES
34286          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
34287          # Compute DUMMYPOFILES
34288          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
34289          # Compute GMOFILES
34290          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
34291          case "$ac_given_srcdir" in
34292            .) srcdirpre= ;;
34293            *) srcdirpre='$(srcdir)/' ;;
34294          esac
34295          POFILES=
34296          UPDATEPOFILES=
34297          DUMMYPOFILES=
34298          GMOFILES=
34299          for lang in $ALL_LINGUAS; do
34300            POFILES="$POFILES $srcdirpre$lang.po"
34301            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
34302            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
34303            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
34304          done
34305          # CATALOGS depends on both $ac_dir and the user's LINGUAS
34306          # environment variable.
34307          INST_LINGUAS=
34308          if test -n "$ALL_LINGUAS"; then
34309            for presentlang in $ALL_LINGUAS; do
34310              useit=no
34311              if test "%UNSET%" != "$LINGUAS"; then
34312                desiredlanguages="$LINGUAS"
34313              else
34314                desiredlanguages="$ALL_LINGUAS"
34315              fi
34316              for desiredlang in $desiredlanguages; do
34317                # Use the presentlang catalog if desiredlang is
34318                #   a. equal to presentlang, or
34319                #   b. a variant of presentlang (because in this case,
34320                #      presentlang can be used as a fallback for messages
34321                #      which are not translated in the desiredlang catalog).
34322                case "$desiredlang" in
34323                  "$presentlang"*) useit=yes;;
34324                esac
34325              done
34326              if test $useit = yes; then
34327                INST_LINGUAS="$INST_LINGUAS $presentlang"
34328              fi
34329            done
34330          fi
34331          CATALOGS=
34332          if test -n "$INST_LINGUAS"; then
34333            for lang in $INST_LINGUAS; do
34334              CATALOGS="$CATALOGS $lang.gmo"
34335            done
34336          fi
34337          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
34338          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
34339          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
34340            if test -f "$f"; then
34341              case "$f" in
34342                *.orig | *.bak | *~) ;;
34343                *) cat "$f" >> "$ac_dir/Makefile" ;;
34344              esac
34345            fi
34346          done
34347        fi
34348        ;;
34349      esac
34350    done ;;
34351
34352  esac
34353done # for ac_tag
34354
34355
34356{ (exit 0); exit 0; }
34357_ACEOF
34358chmod +x $CONFIG_STATUS
34359ac_clean_files=$ac_clean_files_save
34360
34361test $ac_write_fail = 0 ||
34362  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
34363$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
34364   { (exit 1); exit 1; }; }
34365
34366
34367# configure is writing to config.log, and then calls config.status.
34368# config.status does its own redirection, appending to config.log.
34369# Unfortunately, on DOS this fails, as config.log is still kept open
34370# by configure, so config.status won't be able to write to it; its
34371# output is simply discarded.  So we exec the FD to /dev/null,
34372# effectively closing config.log, so it can be properly (re)opened and
34373# appended to by config.status.  When coming back to configure, we
34374# need to make the FD available again.
34375if test "$no_create" != yes; then
34376  ac_cs_success=:
34377  ac_config_status_args=
34378  test "$silent" = yes &&
34379    ac_config_status_args="$ac_config_status_args --quiet"
34380  exec 5>/dev/null
34381  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34382  exec 5>>config.log
34383  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34384  # would make configure fail if this is the last instruction.
34385  $ac_cs_success || { (exit 1); exit 1; }
34386fi
34387if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34388  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34389$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34390fi
34391
34392