]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ankh/examples/wget/contrib/configure
Inital import
[l4.git] / l4 / pkg / ankh / examples / wget / contrib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 VERSION
654 PACKAGE
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 OPIE_OBJ
664 SET_MAKE
665 INSTALL_PROGRAM
666 INSTALL_SCRIPT
667 INSTALL_DATA
668 CC
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
675 CPP
676 GREP
677 EGREP
678 ALLOCA
679 GETOPT_OBJ
680 HAVE_LIBGNUTLS
681 LIBGNUTLS
682 LTLIBGNUTLS
683 HAVE_LIBSSL
684 LIBSSL
685 LTLIBSSL
686 SSL_OBJ
687 NTLM_OBJ
688 MD5_OBJ
689 MSGFMT
690 XGETTEXT
691 GMSGFMT
692 CATALOGS
693 CATOBJEXT
694 DATADIRNAME
695 GMOFILES
696 INSTOBJEXT
697 INTLLIBS
698 POFILES
699 HAVE_NLS
700 USE_NLS
701 MAKEINFO
702 PERL
703 POD2MAN
704 COMMENT_IF_NO_POD2MAN
705 LIBOBJS
706 LTLIBOBJS'
707 ac_subst_files=''
708       ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CPP'
717
718
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
738
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
764
765 ac_prev=
766 ac_dashdash=
767 for ac_option
768 do
769   # If the previous option needs an argument, assign it.
770   if test -n "$ac_prev"; then
771     eval $ac_prev=\$ac_option
772     ac_prev=
773     continue
774   fi
775
776   case $ac_option in
777   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778   *)    ac_optarg=yes ;;
779   esac
780
781   # Accept the important Cygnus configure options, so we can diagnose typos.
782
783   case $ac_dashdash$ac_option in
784   --)
785     ac_dashdash=yes ;;
786
787   -bindir | --bindir | --bindi | --bind | --bin | --bi)
788     ac_prev=bindir ;;
789   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790     bindir=$ac_optarg ;;
791
792   -build | --build | --buil | --bui | --bu)
793     ac_prev=build_alias ;;
794   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795     build_alias=$ac_optarg ;;
796
797   -cache-file | --cache-file | --cache-fil | --cache-fi \
798   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799     ac_prev=cache_file ;;
800   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802     cache_file=$ac_optarg ;;
803
804   --config-cache | -C)
805     cache_file=config.cache ;;
806
807   -datadir | --datadir | --datadi | --datad)
808     ac_prev=datadir ;;
809   -datadir=* | --datadir=* | --datadi=* | --datad=*)
810     datadir=$ac_optarg ;;
811
812   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813   | --dataroo | --dataro | --datar)
814     ac_prev=datarootdir ;;
815   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817     datarootdir=$ac_optarg ;;
818
819   -disable-* | --disable-*)
820     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821     # Reject names that are not valid shell variable names.
822     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824    { (exit 1); exit 1; }; }
825     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826     eval enable_$ac_feature=no ;;
827
828   -docdir | --docdir | --docdi | --doc | --do)
829     ac_prev=docdir ;;
830   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831     docdir=$ac_optarg ;;
832
833   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834     ac_prev=dvidir ;;
835   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836     dvidir=$ac_optarg ;;
837
838   -enable-* | --enable-*)
839     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840     # Reject names that are not valid shell variable names.
841     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843    { (exit 1); exit 1; }; }
844     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845     eval enable_$ac_feature=\$ac_optarg ;;
846
847   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849   | --exec | --exe | --ex)
850     ac_prev=exec_prefix ;;
851   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853   | --exec=* | --exe=* | --ex=*)
854     exec_prefix=$ac_optarg ;;
855
856   -gas | --gas | --ga | --g)
857     # Obsolete; use --with-gas.
858     with_gas=yes ;;
859
860   -help | --help | --hel | --he | -h)
861     ac_init_help=long ;;
862   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863     ac_init_help=recursive ;;
864   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865     ac_init_help=short ;;
866
867   -host | --host | --hos | --ho)
868     ac_prev=host_alias ;;
869   -host=* | --host=* | --hos=* | --ho=*)
870     host_alias=$ac_optarg ;;
871
872   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873     ac_prev=htmldir ;;
874   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875   | --ht=*)
876     htmldir=$ac_optarg ;;
877
878   -includedir | --includedir | --includedi | --included | --include \
879   | --includ | --inclu | --incl | --inc)
880     ac_prev=includedir ;;
881   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882   | --includ=* | --inclu=* | --incl=* | --inc=*)
883     includedir=$ac_optarg ;;
884
885   -infodir | --infodir | --infodi | --infod | --info | --inf)
886     ac_prev=infodir ;;
887   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888     infodir=$ac_optarg ;;
889
890   -libdir | --libdir | --libdi | --libd)
891     ac_prev=libdir ;;
892   -libdir=* | --libdir=* | --libdi=* | --libd=*)
893     libdir=$ac_optarg ;;
894
895   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896   | --libexe | --libex | --libe)
897     ac_prev=libexecdir ;;
898   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899   | --libexe=* | --libex=* | --libe=*)
900     libexecdir=$ac_optarg ;;
901
902   -localedir | --localedir | --localedi | --localed | --locale)
903     ac_prev=localedir ;;
904   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905     localedir=$ac_optarg ;;
906
907   -localstatedir | --localstatedir | --localstatedi | --localstated \
908   | --localstate | --localstat | --localsta | --localst | --locals)
909     ac_prev=localstatedir ;;
910   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912     localstatedir=$ac_optarg ;;
913
914   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915     ac_prev=mandir ;;
916   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917     mandir=$ac_optarg ;;
918
919   -nfp | --nfp | --nf)
920     # Obsolete; use --without-fp.
921     with_fp=no ;;
922
923   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924   | --no-cr | --no-c | -n)
925     no_create=yes ;;
926
927   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929     no_recursion=yes ;;
930
931   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933   | --oldin | --oldi | --old | --ol | --o)
934     ac_prev=oldincludedir ;;
935   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938     oldincludedir=$ac_optarg ;;
939
940   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941     ac_prev=prefix ;;
942   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943     prefix=$ac_optarg ;;
944
945   -program-prefix | --program-prefix | --program-prefi | --program-pref \
946   | --program-pre | --program-pr | --program-p)
947     ac_prev=program_prefix ;;
948   -program-prefix=* | --program-prefix=* | --program-prefi=* \
949   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950     program_prefix=$ac_optarg ;;
951
952   -program-suffix | --program-suffix | --program-suffi | --program-suff \
953   | --program-suf | --program-su | --program-s)
954     ac_prev=program_suffix ;;
955   -program-suffix=* | --program-suffix=* | --program-suffi=* \
956   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957     program_suffix=$ac_optarg ;;
958
959   -program-transform-name | --program-transform-name \
960   | --program-transform-nam | --program-transform-na \
961   | --program-transform-n | --program-transform- \
962   | --program-transform | --program-transfor \
963   | --program-transfo | --program-transf \
964   | --program-trans | --program-tran \
965   | --progr-tra | --program-tr | --program-t)
966     ac_prev=program_transform_name ;;
967   -program-transform-name=* | --program-transform-name=* \
968   | --program-transform-nam=* | --program-transform-na=* \
969   | --program-transform-n=* | --program-transform-=* \
970   | --program-transform=* | --program-transfor=* \
971   | --program-transfo=* | --program-transf=* \
972   | --program-trans=* | --program-tran=* \
973   | --progr-tra=* | --program-tr=* | --program-t=*)
974     program_transform_name=$ac_optarg ;;
975
976   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977     ac_prev=pdfdir ;;
978   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979     pdfdir=$ac_optarg ;;
980
981   -psdir | --psdir | --psdi | --psd | --ps)
982     ac_prev=psdir ;;
983   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984     psdir=$ac_optarg ;;
985
986   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987   | -silent | --silent | --silen | --sile | --sil)
988     silent=yes ;;
989
990   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991     ac_prev=sbindir ;;
992   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993   | --sbi=* | --sb=*)
994     sbindir=$ac_optarg ;;
995
996   -sharedstatedir | --sharedstatedir | --sharedstatedi \
997   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998   | --sharedst | --shareds | --shared | --share | --shar \
999   | --sha | --sh)
1000     ac_prev=sharedstatedir ;;
1001   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004   | --sha=* | --sh=*)
1005     sharedstatedir=$ac_optarg ;;
1006
1007   -site | --site | --sit)
1008     ac_prev=site ;;
1009   -site=* | --site=* | --sit=*)
1010     site=$ac_optarg ;;
1011
1012   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013     ac_prev=srcdir ;;
1014   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015     srcdir=$ac_optarg ;;
1016
1017   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018   | --syscon | --sysco | --sysc | --sys | --sy)
1019     ac_prev=sysconfdir ;;
1020   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022     sysconfdir=$ac_optarg ;;
1023
1024   -target | --target | --targe | --targ | --tar | --ta | --t)
1025     ac_prev=target_alias ;;
1026   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027     target_alias=$ac_optarg ;;
1028
1029   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030     verbose=yes ;;
1031
1032   -version | --version | --versio | --versi | --vers | -V)
1033     ac_init_version=: ;;
1034
1035   -with-* | --with-*)
1036     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037     # Reject names that are not valid shell variable names.
1038     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039       { echo "$as_me: error: invalid package name: $ac_package" >&2
1040    { (exit 1); exit 1; }; }
1041     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042     eval with_$ac_package=\$ac_optarg ;;
1043
1044   -without-* | --without-*)
1045     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048       { echo "$as_me: error: invalid package name: $ac_package" >&2
1049    { (exit 1); exit 1; }; }
1050     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051     eval with_$ac_package=no ;;
1052
1053   --x)
1054     # Obsolete; use --with-x.
1055     with_x=yes ;;
1056
1057   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058   | --x-incl | --x-inc | --x-in | --x-i)
1059     ac_prev=x_includes ;;
1060   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062     x_includes=$ac_optarg ;;
1063
1064   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066     ac_prev=x_libraries ;;
1067   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069     x_libraries=$ac_optarg ;;
1070
1071   -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073    { (exit 1); exit 1; }; }
1074     ;;
1075
1076   *=*)
1077     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081    { (exit 1); exit 1; }; }
1082     eval $ac_envvar=\$ac_optarg
1083     export $ac_envvar ;;
1084
1085   *)
1086     # FIXME: should be removed in autoconf 3.0.
1087     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091     ;;
1092
1093   esac
1094 done
1095
1096 if test -n "$ac_prev"; then
1097   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098   { echo "$as_me: error: missing argument to $ac_option" >&2
1099    { (exit 1); exit 1; }; }
1100 fi
1101
1102 # Be sure to have absolute directory names.
1103 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104                 datadir sysconfdir sharedstatedir localstatedir includedir \
1105                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106                 libdir localedir mandir
1107 do
1108   eval ac_val=\$$ac_var
1109   case $ac_val in
1110     [\\/$]* | ?:[\\/]* )  continue;;
1111     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112   esac
1113   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114    { (exit 1); exit 1; }; }
1115 done
1116
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1120 build=$build_alias
1121 host=$host_alias
1122 target=$target_alias
1123
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126   if test "x$build_alias" = x; then
1127     cross_compiling=maybe
1128     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129     If a cross compiler is detected then cross compile mode will be used." >&2
1130   elif test "x$build_alias" != "x$host_alias"; then
1131     cross_compiling=yes
1132   fi
1133 fi
1134
1135 ac_tool_prefix=
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138 test "$silent" = yes && exec 6>/dev/null
1139
1140
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144   { echo "$as_me: error: Working directory cannot be determined" >&2
1145    { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147   { echo "$as_me: error: pwd does not report name of working directory" >&2
1148    { (exit 1); exit 1; }; }
1149
1150
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153   ac_srcdir_defaulted=yes
1154   # Try the directory containing this script, then the parent directory.
1155   ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157          X"$0" : 'X\(//\)[^/]' \| \
1158          X"$0" : 'X\(//\)$' \| \
1159          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160 echo X"$0" |
1161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162             s//\1/
1163             q
1164           }
1165           /^X\(\/\/\)[^/].*/{
1166             s//\1/
1167             q
1168           }
1169           /^X\(\/\/\)$/{
1170             s//\1/
1171             q
1172           }
1173           /^X\(\/\).*/{
1174             s//\1/
1175             q
1176           }
1177           s/.*/./; q'`
1178   srcdir=$ac_confdir
1179   if test ! -r "$srcdir/$ac_unique_file"; then
1180     srcdir=..
1181   fi
1182 else
1183   ac_srcdir_defaulted=no
1184 fi
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188    { (exit 1); exit 1; }; }
1189 fi
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 ac_abs_confdir=`(
1192         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193    { (exit 1); exit 1; }; }
1194         pwd)`
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197   srcdir=.
1198 fi
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1202 case $srcdir in
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204 esac
1205 for ac_var in $ac_precious_vars; do
1206   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207   eval ac_env_${ac_var}_value=\$${ac_var}
1208   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 done
1211
1212 #
1213 # Report the --help message.
1214 #
1215 if test "$ac_init_help" = "long"; then
1216   # Omit some internal or obsolete options to make the list less imposing.
1217   # This message is too long to be a string in the A/UX 3.1 sh.
1218   cat <<_ACEOF
1219 \`configure' configures this package to adapt to many kinds of systems.
1220
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE.  See below for descriptions of some of the useful variables.
1225
1226 Defaults for the options are specified in brackets.
1227
1228 Configuration:
1229   -h, --help              display this help and exit
1230       --help=short        display options specific to this package
1231       --help=recursive    display the short help of all the included packages
1232   -V, --version           display version information and exit
1233   -q, --quiet, --silent   do not print \`checking...' messages
1234       --cache-file=FILE   cache test results in FILE [disabled]
1235   -C, --config-cache      alias for \`--cache-file=config.cache'
1236   -n, --no-create         do not create output files
1237       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1238
1239 Installation directories:
1240   --prefix=PREFIX         install architecture-independent files in PREFIX
1241                           [$ac_default_prefix]
1242   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1243                           [PREFIX]
1244
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1249
1250 For better control, use the options below.
1251
1252 Fine tuning of the installation directories:
1253   --bindir=DIR           user executables [EPREFIX/bin]
1254   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1255   --libexecdir=DIR       program executables [EPREFIX/libexec]
1256   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1257   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1258   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1259   --libdir=DIR           object code libraries [EPREFIX/lib]
1260   --includedir=DIR       C header files [PREFIX/include]
1261   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1262   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1263   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1264   --infodir=DIR          info documentation [DATAROOTDIR/info]
1265   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1266   --mandir=DIR           man documentation [DATAROOTDIR/man]
1267   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1268   --htmldir=DIR          html documentation [DOCDIR]
1269   --dvidir=DIR           dvi documentation [DOCDIR]
1270   --pdfdir=DIR           pdf documentation [DOCDIR]
1271   --psdir=DIR            ps documentation [DOCDIR]
1272 _ACEOF
1273
1274   cat <<\_ACEOF
1275
1276 System types:
1277   --build=BUILD     configure for building on BUILD [guessed]
1278   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1279 _ACEOF
1280 fi
1281
1282 if test -n "$ac_init_help"; then
1283
1284   cat <<\_ACEOF
1285
1286 Optional Features:
1287   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1288   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1289   --disable-opie          disable support for opie or s/key FTP login
1290   --disable-digest        disable support for HTTP digest authorization
1291   --disable-ntlm          disable support for NTLM authorization
1292   --disable-debug         disable support for debugging output
1293   --disable-largefile     omit support for large files
1294   --disable-rpath         do not hardcode runtime library paths
1295   --disable-ipv6          disable IPv6 support
1296   --disable-nls           do not use Native Language Support
1297
1298 Optional Packages:
1299   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1300   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1301   --without-ssl           disable SSL autodetection
1302   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1303   --with-libgnutls-prefix[=DIR]  search for libgnutls in DIR/include and DIR/lib
1304   --without-libgnutls-prefix     don't search for libgnutls in includedir and libdir
1305   --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
1306   --without-libssl-prefix     don't search for libssl in includedir and libdir
1307
1308 Some influential environment variables:
1309   CC          C compiler command
1310   CFLAGS      C compiler flags
1311   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1312               nonstandard directory <lib dir>
1313   LIBS        libraries to pass to the linker, e.g. -l<library>
1314   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1315               you have headers in a nonstandard directory <include dir>
1316   CPP         C preprocessor
1317
1318 Use these variables to override the choices made by `configure' or to help
1319 it to find libraries and programs with nonstandard names/locations.
1320
1321 _ACEOF
1322 ac_status=$?
1323 fi
1324
1325 if test "$ac_init_help" = "recursive"; then
1326   # If there are subdirs, report their specific --help.
1327   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1328     test -d "$ac_dir" || continue
1329     ac_builddir=.
1330
1331 case "$ac_dir" in
1332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333 *)
1334   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1335   # A ".." for each directory in $ac_dir_suffix.
1336   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1337   case $ac_top_builddir_sub in
1338   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1340   esac ;;
1341 esac
1342 ac_abs_top_builddir=$ac_pwd
1343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344 # for backward compatibility:
1345 ac_top_builddir=$ac_top_build_prefix
1346
1347 case $srcdir in
1348   .)  # We are building in place.
1349     ac_srcdir=.
1350     ac_top_srcdir=$ac_top_builddir_sub
1351     ac_abs_top_srcdir=$ac_pwd ;;
1352   [\\/]* | ?:[\\/]* )  # Absolute name.
1353     ac_srcdir=$srcdir$ac_dir_suffix;
1354     ac_top_srcdir=$srcdir
1355     ac_abs_top_srcdir=$srcdir ;;
1356   *) # Relative name.
1357     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358     ac_top_srcdir=$ac_top_build_prefix$srcdir
1359     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1360 esac
1361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1362
1363     cd "$ac_dir" || { ac_status=$?; continue; }
1364     # Check for guested configure.
1365     if test -f "$ac_srcdir/configure.gnu"; then
1366       echo &&
1367       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368     elif test -f "$ac_srcdir/configure"; then
1369       echo &&
1370       $SHELL "$ac_srcdir/configure" --help=recursive
1371     else
1372       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373     fi || ac_status=$?
1374     cd "$ac_pwd" || { ac_status=$?; break; }
1375   done
1376 fi
1377
1378 test -n "$ac_init_help" && exit $ac_status
1379 if $ac_init_version; then
1380   cat <<\_ACEOF
1381 configure
1382 generated by GNU Autoconf 2.61
1383
1384 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1385 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1386 This configure script is free software; the Free Software Foundation
1387 gives unlimited permission to copy, distribute and modify it.
1388 _ACEOF
1389   exit
1390 fi
1391 cat >config.log <<_ACEOF
1392 This file contains any messages produced by compilers while
1393 running configure, to aid debugging if configure makes a mistake.
1394
1395 It was created by $as_me, which was
1396 generated by GNU Autoconf 2.61.  Invocation command line was
1397
1398   $ $0 $@
1399
1400 _ACEOF
1401 exec 5>>config.log
1402 {
1403 cat <<_ASUNAME
1404 ## --------- ##
1405 ## Platform. ##
1406 ## --------- ##
1407
1408 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1409 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1410 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1411 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1412 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1413
1414 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1415 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1416
1417 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1418 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1419 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1420 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1421 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1422 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1423 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1424
1425 _ASUNAME
1426
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   echo "PATH: $as_dir"
1433 done
1434 IFS=$as_save_IFS
1435
1436 } >&5
1437
1438 cat >&5 <<_ACEOF
1439
1440
1441 ## ----------- ##
1442 ## Core tests. ##
1443 ## ----------- ##
1444
1445 _ACEOF
1446
1447
1448 # Keep a trace of the command line.
1449 # Strip out --no-create and --no-recursion so they do not pile up.
1450 # Strip out --silent because we don't want to record it for future runs.
1451 # Also quote any args containing shell meta-characters.
1452 # Make two passes to allow for proper duplicate-argument suppression.
1453 ac_configure_args=
1454 ac_configure_args0=
1455 ac_configure_args1=
1456 ac_must_keep_next=false
1457 for ac_pass in 1 2
1458 do
1459   for ac_arg
1460   do
1461     case $ac_arg in
1462     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1463     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464     | -silent | --silent | --silen | --sile | --sil)
1465       continue ;;
1466     *\'*)
1467       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1468     esac
1469     case $ac_pass in
1470     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1471     2)
1472       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1473       if test $ac_must_keep_next = true; then
1474         ac_must_keep_next=false # Got value, back to normal.
1475       else
1476         case $ac_arg in
1477           *=* | --config-cache | -C | -disable-* | --disable-* \
1478           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1479           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1480           | -with-* | --with-* | -without-* | --without-* | --x)
1481             case "$ac_configure_args0 " in
1482               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1483             esac
1484             ;;
1485           -* ) ac_must_keep_next=true ;;
1486         esac
1487       fi
1488       ac_configure_args="$ac_configure_args '$ac_arg'"
1489       ;;
1490     esac
1491   done
1492 done
1493 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1494 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1495
1496 # When interrupted or exit'd, cleanup temporary files, and complete
1497 # config.log.  We remove comments because anyway the quotes in there
1498 # would cause problems or look ugly.
1499 # WARNING: Use '\'' to represent an apostrophe within the trap.
1500 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1501 trap 'exit_status=$?
1502   # Save into config.log some information that might help in debugging.
1503   {
1504     echo
1505
1506     cat <<\_ASBOX
1507 ## ---------------- ##
1508 ## Cache variables. ##
1509 ## ---------------- ##
1510 _ASBOX
1511     echo
1512     # The following way of writing the cache mishandles newlines in values,
1513 (
1514   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1515     eval ac_val=\$$ac_var
1516     case $ac_val in #(
1517     *${as_nl}*)
1518       case $ac_var in #(
1519       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1520 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1521       esac
1522       case $ac_var in #(
1523       _ | IFS | as_nl) ;; #(
1524       *) $as_unset $ac_var ;;
1525       esac ;;
1526     esac
1527   done
1528   (set) 2>&1 |
1529     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1530     *${as_nl}ac_space=\ *)
1531       sed -n \
1532         "s/'\''/'\''\\\\'\'''\''/g;
1533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1534       ;; #(
1535     *)
1536       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1537       ;;
1538     esac |
1539     sort
1540 )
1541     echo
1542
1543     cat <<\_ASBOX
1544 ## ----------------- ##
1545 ## Output variables. ##
1546 ## ----------------- ##
1547 _ASBOX
1548     echo
1549     for ac_var in $ac_subst_vars
1550     do
1551       eval ac_val=\$$ac_var
1552       case $ac_val in
1553       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554       esac
1555       echo "$ac_var='\''$ac_val'\''"
1556     done | sort
1557     echo
1558
1559     if test -n "$ac_subst_files"; then
1560       cat <<\_ASBOX
1561 ## ------------------- ##
1562 ## File substitutions. ##
1563 ## ------------------- ##
1564 _ASBOX
1565       echo
1566       for ac_var in $ac_subst_files
1567       do
1568         eval ac_val=\$$ac_var
1569         case $ac_val in
1570         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1571         esac
1572         echo "$ac_var='\''$ac_val'\''"
1573       done | sort
1574       echo
1575     fi
1576
1577     if test -s confdefs.h; then
1578       cat <<\_ASBOX
1579 ## ----------- ##
1580 ## confdefs.h. ##
1581 ## ----------- ##
1582 _ASBOX
1583       echo
1584       cat confdefs.h
1585       echo
1586     fi
1587     test "$ac_signal" != 0 &&
1588       echo "$as_me: caught signal $ac_signal"
1589     echo "$as_me: exit $exit_status"
1590   } >&5
1591   rm -f core *.core core.conftest.* &&
1592     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1593     exit $exit_status
1594 ' 0
1595 for ac_signal in 1 2 13 15; do
1596   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1597 done
1598 ac_signal=0
1599
1600 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1601 rm -f -r conftest* confdefs.h
1602
1603 # Predefined preprocessor variables.
1604
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_NAME "$PACKAGE_NAME"
1607 _ACEOF
1608
1609
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1612 _ACEOF
1613
1614
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1617 _ACEOF
1618
1619
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_STRING "$PACKAGE_STRING"
1622 _ACEOF
1623
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1627 _ACEOF
1628
1629
1630 # Let the site file select an alternate cache file if it wants to.
1631 # Prefer explicitly selected file to automatically selected ones.
1632 if test -n "$CONFIG_SITE"; then
1633   set x "$CONFIG_SITE"
1634 elif test "x$prefix" != xNONE; then
1635   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1636 else
1637   set x "$ac_default_prefix/share/config.site" \
1638         "$ac_default_prefix/etc/config.site"
1639 fi
1640 shift
1641 for ac_site_file
1642 do
1643   if test -r "$ac_site_file"; then
1644     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1645 echo "$as_me: loading site script $ac_site_file" >&6;}
1646     sed 's/^/| /' "$ac_site_file" >&5
1647     . "$ac_site_file"
1648   fi
1649 done
1650
1651 if test -r "$cache_file"; then
1652   # Some versions of bash will fail to source /dev/null (special
1653   # files actually), so we avoid doing that.
1654   if test -f "$cache_file"; then
1655     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1656 echo "$as_me: loading cache $cache_file" >&6;}
1657     case $cache_file in
1658       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1659       *)                      . "./$cache_file";;
1660     esac
1661   fi
1662 else
1663   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1664 echo "$as_me: creating cache $cache_file" >&6;}
1665   >$cache_file
1666 fi
1667
1668 # Check that the precious variables saved in the cache have kept the same
1669 # value.
1670 ac_cache_corrupted=false
1671 for ac_var in $ac_precious_vars; do
1672   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1673   eval ac_new_set=\$ac_env_${ac_var}_set
1674   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1675   eval ac_new_val=\$ac_env_${ac_var}_value
1676   case $ac_old_set,$ac_new_set in
1677     set,)
1678       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1679 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1680       ac_cache_corrupted=: ;;
1681     ,set)
1682       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1683 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1684       ac_cache_corrupted=: ;;
1685     ,);;
1686     *)
1687       if test "x$ac_old_val" != "x$ac_new_val"; then
1688         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1689 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1690         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1691 echo "$as_me:   former value:  $ac_old_val" >&2;}
1692         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1693 echo "$as_me:   current value: $ac_new_val" >&2;}
1694         ac_cache_corrupted=:
1695       fi;;
1696   esac
1697   # Pass precious variables to config.status.
1698   if test "$ac_new_set" = set; then
1699     case $ac_new_val in
1700     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1701     *) ac_arg=$ac_var=$ac_new_val ;;
1702     esac
1703     case " $ac_configure_args " in
1704       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1705       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1706     esac
1707   fi
1708 done
1709 if $ac_cache_corrupted; then
1710   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1711 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1712   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1713 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1714    { (exit 1); exit 1; }; }
1715 fi
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733 ac_ext=c
1734 ac_cpp='$CPP $CPPFLAGS'
1735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 # This code originates from Ulrich Drepper's AM_WITH_NLS.
1781
1782
1783
1784
1785
1786 # Search path for a program which passes the given test.
1787 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1788 #
1789 # This file may be copied and used freely without restrictions.  It
1790 # can be used in projects which are not available under the GNU Public
1791 # License but which still want to provide support for the GNU gettext
1792 # functionality.  Please note that the actual code is *not* freely
1793 # available.
1794
1795
1796
1797 # lib-ld.m4 serial 3 (gettext-0.13)
1798
1799
1800
1801
1802
1803 # lib-link.m4 serial 6 (gettext-0.14.3)
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817 # lib-prefix.m4 serial 4 (gettext-0.14.2)
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
1829 { echo "$as_me:$LINENO: configuring for GNU Wget $VERSION" >&5
1830 echo "$as_me: configuring for GNU Wget $VERSION" >&6;}
1831
1832 PACKAGE=wget
1833
1834
1835 ac_aux_dir=
1836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1837   if test -f "$ac_dir/install-sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install-sh -c"
1840     break
1841   elif test -f "$ac_dir/install.sh"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/install.sh -c"
1844     break
1845   elif test -f "$ac_dir/shtool"; then
1846     ac_aux_dir=$ac_dir
1847     ac_install_sh="$ac_aux_dir/shtool install -c"
1848     break
1849   fi
1850 done
1851 if test -z "$ac_aux_dir"; then
1852   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1853 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1854    { (exit 1); exit 1; }; }
1855 fi
1856
1857 # These three variables are undocumented and unsupported,
1858 # and are intended to be withdrawn in a future Autoconf release.
1859 # They can cause serious problems if a builder's source tree is in a directory
1860 # whose full name contains unusual characters.
1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1863 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1864
1865
1866 # Make sure we can run config.sub.
1867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1868   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1869 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1870    { (exit 1); exit 1; }; }
1871
1872 { echo "$as_me:$LINENO: checking build system type" >&5
1873 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1874 if test "${ac_cv_build+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   ac_build_alias=$build_alias
1878 test "x$ac_build_alias" = x &&
1879   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1880 test "x$ac_build_alias" = x &&
1881   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1882 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1883    { (exit 1); exit 1; }; }
1884 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1885   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1886 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1887    { (exit 1); exit 1; }; }
1888
1889 fi
1890 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1891 echo "${ECHO_T}$ac_cv_build" >&6; }
1892 case $ac_cv_build in
1893 *-*-*) ;;
1894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1895 echo "$as_me: error: invalid value of canonical build" >&2;}
1896    { (exit 1); exit 1; }; };;
1897 esac
1898 build=$ac_cv_build
1899 ac_save_IFS=$IFS; IFS='-'
1900 set x $ac_cv_build
1901 shift
1902 build_cpu=$1
1903 build_vendor=$2
1904 shift; shift
1905 # Remember, the first character of IFS is used to create $*,
1906 # except with old shells:
1907 build_os=$*
1908 IFS=$ac_save_IFS
1909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1910
1911
1912 { echo "$as_me:$LINENO: checking host system type" >&5
1913 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1914 if test "${ac_cv_host+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test "x$host_alias" = x; then
1918   ac_cv_host=$ac_cv_build
1919 else
1920   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1921     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1922 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1923    { (exit 1); exit 1; }; }
1924 fi
1925
1926 fi
1927 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1928 echo "${ECHO_T}$ac_cv_host" >&6; }
1929 case $ac_cv_host in
1930 *-*-*) ;;
1931 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1932 echo "$as_me: error: invalid value of canonical host" >&2;}
1933    { (exit 1); exit 1; }; };;
1934 esac
1935 host=$ac_cv_host
1936 ac_save_IFS=$IFS; IFS='-'
1937 set x $ac_cv_host
1938 shift
1939 host_cpu=$1
1940 host_vendor=$2
1941 shift; shift
1942 # Remember, the first character of IFS is used to create $*,
1943 # except with old shells:
1944 host_os=$*
1945 IFS=$ac_save_IFS
1946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1947
1948
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define OS_TYPE "$host_os"
1952 _ACEOF
1953
1954
1955
1956
1957 # Check whether --with-ssl was given.
1958 if test "${with_ssl+set}" = set; then
1959   withval=$with_ssl;
1960 fi
1961
1962
1963 # Check whether --enable-opie was given.
1964 if test "${enable_opie+set}" = set; then
1965   enableval=$enable_opie; ENABLE_OPIE=$enableval
1966 else
1967   ENABLE_OPIE=yes
1968 fi
1969
1970 test x"${ENABLE_OPIE}" = xyes &&
1971 cat >>confdefs.h <<\_ACEOF
1972 #define ENABLE_OPIE 1
1973 _ACEOF
1974
1975
1976 # Check whether --enable-digest was given.
1977 if test "${enable_digest+set}" = set; then
1978   enableval=$enable_digest; ENABLE_DIGEST=$enableval
1979 else
1980   ENABLE_DIGEST=yes
1981 fi
1982
1983 test x"${ENABLE_DIGEST}" = xyes &&
1984 cat >>confdefs.h <<\_ACEOF
1985 #define ENABLE_DIGEST 1
1986 _ACEOF
1987
1988
1989 # Check whether --enable-ntlm was given.
1990 if test "${enable_ntlm+set}" = set; then
1991   enableval=$enable_ntlm; ENABLE_NTLM=$enableval
1992 else
1993   ENABLE_NTLM=auto
1994 fi
1995
1996
1997 # Check whether --enable-debug was given.
1998 if test "${enable_debug+set}" = set; then
1999   enableval=$enable_debug; ENABLE_DEBUG=$enableval
2000 else
2001   ENABLE_DEBUG=yes
2002 fi
2003
2004 test x"${ENABLE_DEBUG}" = xyes &&
2005 cat >>confdefs.h <<\_ACEOF
2006 #define ENABLE_DEBUG 1
2007 _ACEOF
2008
2009
2010 wget_need_md5=no
2011
2012 case "${ENABLE_OPIE}${ENABLE_DIGEST}" in
2013 *yes*)
2014         wget_need_md5=yes
2015 esac
2016 if test x"$ENABLE_OPIE" = xyes; then
2017   OPIE_OBJ='ftp-opie.o'
2018 fi
2019
2020
2021 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2023 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2024 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   cat >conftest.make <<\_ACEOF
2028 SHELL = /bin/sh
2029 all:
2030         @echo '@@@%%%=$(MAKE)=@@@%%%'
2031 _ACEOF
2032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2034   *@@@%%%=?*=@@@%%%*)
2035     eval ac_cv_prog_make_${ac_make}_set=yes;;
2036   *)
2037     eval ac_cv_prog_make_${ac_make}_set=no;;
2038 esac
2039 rm -f conftest.make
2040 fi
2041 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2042   { echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6; }
2044   SET_MAKE=
2045 else
2046   { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048   SET_MAKE="MAKE=${MAKE-make}"
2049 fi
2050
2051
2052 # Find a good install program.  We prefer a C program (faster),
2053 # so one script is as good as another.  But avoid the broken or
2054 # incompatible versions:
2055 # SysV /etc/install, /usr/sbin/install
2056 # SunOS /usr/etc/install
2057 # IRIX /sbin/install
2058 # AIX /bin/install
2059 # AmigaOS /C/install, which installs bootblocks on floppy discs
2060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2063 # OS/2's system install, which has a completely different semantic
2064 # ./install, which can be erroneously created by make from ./install.sh.
2065 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2066 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2067 if test -z "$INSTALL"; then
2068 if test "${ac_cv_path_install+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074   IFS=$as_save_IFS
2075   test -z "$as_dir" && as_dir=.
2076   # Account for people who put trailing slashes in PATH elements.
2077 case $as_dir/ in
2078   ./ | .// | /cC/* | \
2079   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2080   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2081   /usr/ucb/* ) ;;
2082   *)
2083     # OSF1 and SCO ODT 3.0 have their own names for install.
2084     # Don't use installbsd from OSF since it installs stuff as root
2085     # by default.
2086     for ac_prog in ginstall scoinst install; do
2087       for ac_exec_ext in '' $ac_executable_extensions; do
2088         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2089           if test $ac_prog = install &&
2090             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091             # AIX install.  It has an incompatible calling convention.
2092             :
2093           elif test $ac_prog = install &&
2094             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095             # program-specific install script used by HP pwplus--don't use.
2096             :
2097           else
2098             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2099             break 3
2100           fi
2101         fi
2102       done
2103     done
2104     ;;
2105 esac
2106 done
2107 IFS=$as_save_IFS
2108
2109
2110 fi
2111   if test "${ac_cv_path_install+set}" = set; then
2112     INSTALL=$ac_cv_path_install
2113   else
2114     # As a last resort, use the slow shell script.  Don't cache a
2115     # value for INSTALL within a source directory, because that will
2116     # break other packages using the cache if that directory is
2117     # removed, or if the value is a relative name.
2118     INSTALL=$ac_install_sh
2119   fi
2120 fi
2121 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2122 echo "${ECHO_T}$INSTALL" >&6; }
2123
2124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2125 # It thinks the first close brace ends the variable substitution.
2126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2127
2128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2129
2130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2131
2132
2133
2134 test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
2135 test -z "$CC" && cc_specified=yes
2136
2137 ac_ext=c
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142 if test -n "$ac_tool_prefix"; then
2143   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2144 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   if test -n "$CC"; then
2151   ac_cv_prog_CC="$CC" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   for ac_exec_ext in '' $ac_executable_extensions; do
2159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162     break 2
2163   fi
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169 fi
2170 CC=$ac_cv_prog_CC
2171 if test -n "$CC"; then
2172   { echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6; }
2174 else
2175   { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2177 fi
2178
2179
2180 fi
2181 if test -z "$ac_cv_prog_CC"; then
2182   ac_ct_CC=$CC
2183   # Extract the first word of "gcc", so it can be a program name with args.
2184 set dummy gcc; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test -n "$ac_ct_CC"; then
2191   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_exec_ext in '' $ac_executable_extensions; do
2199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200     ac_cv_prog_ac_ct_CC="gcc"
2201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202     break 2
2203   fi
2204 done
2205 done
2206 IFS=$as_save_IFS
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6; }
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219   if test "x$ac_ct_CC" = x; then
2220     CC=""
2221   else
2222     case $cross_compiling:$ac_tool_warned in
2223 yes:)
2224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet.  If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&5
2227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet.  If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2230 ac_tool_warned=yes ;;
2231 esac
2232     CC=$ac_ct_CC
2233   fi
2234 else
2235   CC="$ac_cv_prog_CC"
2236 fi
2237
2238 if test -z "$CC"; then
2239           if test -n "$ac_tool_prefix"; then
2240     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}cc; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   if test -n "$CC"; then
2248   ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257     ac_cv_prog_CC="${ac_tool_prefix}cc"
2258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259     break 2
2260   fi
2261 done
2262 done
2263 IFS=$as_save_IFS
2264
2265 fi
2266 fi
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269   { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2271 else
2272   { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2274 fi
2275
2276
2277   fi
2278 fi
2279 if test -z "$CC"; then
2280   # Extract the first word of "cc", so it can be a program name with args.
2281 set dummy cc; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_CC+set}" = set; then
2285   echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287   if test -n "$CC"; then
2288   ac_cv_prog_CC="$CC" # Let the user override the test.
2289 else
2290   ac_prog_rejected=no
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   for ac_exec_ext in '' $ac_executable_extensions; do
2297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2299        ac_prog_rejected=yes
2300        continue
2301      fi
2302     ac_cv_prog_CC="cc"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 if test $ac_prog_rejected = yes; then
2311   # We found a bogon in the path, so make sure we never use it.
2312   set dummy $ac_cv_prog_CC
2313   shift
2314   if test $# != 0; then
2315     # We chose a different compiler from the bogus one.
2316     # However, it has the same basename, so the bogon will be chosen
2317     # first if we set CC to just the basename; use the full file name.
2318     shift
2319     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2320   fi
2321 fi
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326   { echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6; }
2328 else
2329   { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2331 fi
2332
2333
2334 fi
2335 if test -z "$CC"; then
2336   if test -n "$ac_tool_prefix"; then
2337   for ac_prog in cl.exe
2338   do
2339     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$CC"; then
2347   ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354   for ac_exec_ext in '' $ac_executable_extensions; do
2355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358     break 2
2359   fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 CC=$ac_cv_prog_CC
2367 if test -n "$CC"; then
2368   { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2370 else
2371   { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2373 fi
2374
2375
2376     test -n "$CC" && break
2377   done
2378 fi
2379 if test -z "$CC"; then
2380   ac_ct_CC=$CC
2381   for ac_prog in cl.exe
2382 do
2383   # Extract the first word of "$ac_prog", so it can be a program name with args.
2384 set dummy $ac_prog; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$ac_ct_CC"; then
2391   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400     ac_cv_prog_ac_ct_CC="$ac_prog"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2407
2408 fi
2409 fi
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6; }
2414 else
2415   { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417 fi
2418
2419
2420   test -n "$ac_ct_CC" && break
2421 done
2422
2423   if test "x$ac_ct_CC" = x; then
2424     CC=""
2425   else
2426     case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet.  If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2435 esac
2436     CC=$ac_ct_CC
2437   fi
2438 fi
2439
2440 fi
2441
2442
2443 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&2;}
2447    { (exit 1); exit 1; }; }
2448
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO: checking for C compiler version" >&5
2451 ac_compiler=`set X $ac_compile; echo $2`
2452 { (ac_try="$ac_compiler --version >&5"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_compiler --version >&5") 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }
2462 { (ac_try="$ac_compiler -v >&5"
2463 case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_compiler -v >&5") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }
2472 { (ac_try="$ac_compiler -V >&5"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compiler -V >&5") 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }
2482
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489
2490 int
2491 main ()
2492 {
2493
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 ac_clean_files_save=$ac_clean_files
2499 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2500 # Try to create an executable without -o first, disregard a.out.
2501 # It will help us diagnose broken compilers, and finding out an intuition
2502 # of exeext.
2503 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2504 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2505 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2506 #
2507 # List of possible output files, starting from the most likely.
2508 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2509 # only as a last resort.  b.out is created by i960 compilers.
2510 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2511 #
2512 # The IRIX 6 linker writes into existing files which may not be
2513 # executable, retaining their permissions.  Remove them first so a
2514 # subsequent execution test works.
2515 ac_rmfiles=
2516 for ac_file in $ac_files
2517 do
2518   case $ac_file in
2519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2520     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2521   esac
2522 done
2523 rm -f $ac_rmfiles
2524
2525 if { (ac_try="$ac_link_default"
2526 case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_link_default") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; then
2535   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2537 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2538 # so that the user can short-circuit this test for compilers unknown to
2539 # Autoconf.
2540 for ac_file in $ac_files ''
2541 do
2542   test -f "$ac_file" || continue
2543   case $ac_file in
2544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2545         ;;
2546     [ab].out )
2547         # We found the default executable, but exeext='' is most
2548         # certainly right.
2549         break;;
2550     *.* )
2551         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2552         then :; else
2553            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2554         fi
2555         # We set ac_cv_exeext here because the later test for it is not
2556         # safe: cross compilers may not add the suffix if given an `-o'
2557         # argument, so we may need to know it at that point already.
2558         # Even if this section looks crufty: it has the advantage of
2559         # actually working.
2560         break;;
2561     * )
2562         break;;
2563   esac
2564 done
2565 test "$ac_cv_exeext" = no && ac_cv_exeext=
2566
2567 else
2568   ac_file=''
2569 fi
2570
2571 { echo "$as_me:$LINENO: result: $ac_file" >&5
2572 echo "${ECHO_T}$ac_file" >&6; }
2573 if test -z "$ac_file"; then
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: C compiler cannot create executables
2580 See \`config.log' for more details." >&2;}
2581    { (exit 77); exit 77; }; }
2582 fi
2583
2584 ac_exeext=$ac_cv_exeext
2585
2586 # Check that the compiler produces executables we can run.  If not, either
2587 # the compiler is broken, or we cross compile.
2588 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2589 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2590 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2591 # If not cross compiling, check that we can run a simple program.
2592 if test "$cross_compiling" != yes; then
2593   if { ac_try='./$ac_file'
2594   { (case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_try") 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603     cross_compiling=no
2604   else
2605     if test "$cross_compiling" = maybe; then
2606         cross_compiling=yes
2607     else
2608         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \`config.log' for more details." >&2;}
2614    { (exit 1); exit 1; }; }
2615     fi
2616   fi
2617 fi
2618 { echo "$as_me:$LINENO: result: yes" >&5
2619 echo "${ECHO_T}yes" >&6; }
2620
2621 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2622 ac_clean_files=$ac_clean_files_save
2623 # Check that the compiler produces executables we can run.  If not, either
2624 # the compiler is broken, or we cross compile.
2625 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2626 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2627 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2628 echo "${ECHO_T}$cross_compiling" >&6; }
2629
2630 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2631 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2632 if { (ac_try="$ac_link"
2633 case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638   (eval "$ac_link") 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; then
2642   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2645 # `rm'.
2646 for ac_file in conftest.exe conftest conftest.*; do
2647   test -f "$ac_file" || continue
2648   case $ac_file in
2649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2650     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651           break;;
2652     * ) break;;
2653   esac
2654 done
2655 else
2656   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }
2661 fi
2662
2663 rm -f conftest$ac_cv_exeext
2664 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2665 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2666
2667 rm -f conftest.$ac_ext
2668 EXEEXT=$ac_cv_exeext
2669 ac_exeext=$EXEEXT
2670 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2671 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2672 if test "${ac_cv_objext+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681
2682 int
2683 main ()
2684 {
2685
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.o conftest.obj
2691 if { (ac_try="$ac_compile"
2692 case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697   (eval "$ac_compile") 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; then
2701   for ac_file in conftest.o conftest.obj conftest.*; do
2702   test -f "$ac_file" || continue;
2703   case $ac_file in
2704     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2705     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706        break;;
2707   esac
2708 done
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&2;}
2717    { (exit 1); exit 1; }; }
2718 fi
2719
2720 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2721 fi
2722 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2723 echo "${ECHO_T}$ac_cv_objext" >&6; }
2724 OBJEXT=$ac_cv_objext
2725 ac_objext=$OBJEXT
2726 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2727 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2728 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737
2738 int
2739 main ()
2740 {
2741 #ifndef __GNUC__
2742        choke me
2743 #endif
2744
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } && {
2763          test -z "$ac_c_werror_flag" ||
2764          test ! -s conftest.err
2765        } && test -s conftest.$ac_objext; then
2766   ac_compiler_gnu=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771         ac_compiler_gnu=no
2772 fi
2773
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2776
2777 fi
2778 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2780 GCC=`test $ac_compiler_gnu = yes && echo yes`
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2783 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   ac_save_c_werror_flag=$ac_c_werror_flag
2789    ac_c_werror_flag=yes
2790    ac_cv_prog_cc_g=no
2791    CFLAGS="-g"
2792    cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h.  */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h.  */
2798
2799 int
2800 main ()
2801 {
2802
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (ac_try="$ac_compile"
2809 case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814   (eval "$ac_compile") 2>conftest.er1
2815   ac_status=$?
2816   grep -v '^ *+' conftest.er1 >conftest.err
2817   rm -f conftest.er1
2818   cat conftest.err >&5
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } && {
2821          test -z "$ac_c_werror_flag" ||
2822          test ! -s conftest.err
2823        } && test -s conftest.$ac_objext; then
2824   ac_cv_prog_cc_g=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829         CFLAGS=""
2830       cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836
2837 int
2838 main ()
2839 {
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (ac_try="$ac_compile"
2847 case "(($ac_try" in
2848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849   *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852   (eval "$ac_compile") 2>conftest.er1
2853   ac_status=$?
2854   grep -v '^ *+' conftest.er1 >conftest.err
2855   rm -f conftest.er1
2856   cat conftest.err >&5
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } && {
2859          test -z "$ac_c_werror_flag" ||
2860          test ! -s conftest.err
2861        } && test -s conftest.$ac_objext; then
2862   :
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867         ac_c_werror_flag=$ac_save_c_werror_flag
2868          CFLAGS="-g"
2869          cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875
2876 int
2877 main ()
2878 {
2879
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_compile") 2>conftest.er1
2892   ac_status=$?
2893   grep -v '^ *+' conftest.er1 >conftest.err
2894   rm -f conftest.er1
2895   cat conftest.err >&5
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); } && {
2898          test -z "$ac_c_werror_flag" ||
2899          test ! -s conftest.err
2900        } && test -s conftest.$ac_objext; then
2901   ac_cv_prog_cc_g=yes
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906
2907 fi
2908
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 fi
2914
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916    ac_c_werror_flag=$ac_save_c_werror_flag
2917 fi
2918 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2920 if test "$ac_test_CFLAGS" = set; then
2921   CFLAGS=$ac_save_CFLAGS
2922 elif test $ac_cv_prog_cc_g = yes; then
2923   if test "$GCC" = yes; then
2924     CFLAGS="-g -O2"
2925   else
2926     CFLAGS="-g"
2927   fi
2928 else
2929   if test "$GCC" = yes; then
2930     CFLAGS="-O2"
2931   else
2932     CFLAGS=
2933   fi
2934 fi
2935 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2936 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2937 if test "${ac_cv_prog_cc_c89+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   ac_cv_prog_cc_c89=no
2941 ac_save_CC=$CC
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #include <stdarg.h>
2949 #include <stdio.h>
2950 #include <sys/types.h>
2951 #include <sys/stat.h>
2952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2953 struct buf { int x; };
2954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2955 static char *e (p, i)
2956      char **p;
2957      int i;
2958 {
2959   return p[i];
2960 }
2961 static char *f (char * (*g) (char **, int), char **p, ...)
2962 {
2963   char *s;
2964   va_list v;
2965   va_start (v,p);
2966   s = g (p, va_arg (v,int));
2967   va_end (v);
2968   return s;
2969 }
2970
2971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2972    function prototypes and stuff, but not '\xHH' hex character constants.
2973    These don't provoke an error unfortunately, instead are silently treated
2974    as 'x'.  The following induces an error, until -std is added to get
2975    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2976    array size at least.  It's necessary to write '\x00'==0 to get something
2977    that's true only with -std.  */
2978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2979
2980 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2981    inside strings and character constants.  */
2982 #define FOO(x) 'x'
2983 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2984
2985 int test (int i, double x);
2986 struct s1 {int (*f) (int a);};
2987 struct s2 {int (*f) (double a);};
2988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2989 int argc;
2990 char **argv;
2991 int
2992 main ()
2993 {
2994 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3000         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3001 do
3002   CC="$ac_save_CC $ac_arg"
3003   rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007   *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010   (eval "$ac_compile") 2>conftest.er1
3011   ac_status=$?
3012   grep -v '^ *+' conftest.er1 >conftest.err
3013   rm -f conftest.er1
3014   cat conftest.err >&5
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); } && {
3017          test -z "$ac_c_werror_flag" ||
3018          test ! -s conftest.err
3019        } && test -s conftest.$ac_objext; then
3020   ac_cv_prog_cc_c89=$ac_arg
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025
3026 fi
3027
3028 rm -f core conftest.err conftest.$ac_objext
3029   test "x$ac_cv_prog_cc_c89" != "xno" && break
3030 done
3031 rm -f conftest.$ac_ext
3032 CC=$ac_save_CC
3033
3034 fi
3035 # AC_CACHE_VAL
3036 case "x$ac_cv_prog_cc_c89" in
3037   x)
3038     { echo "$as_me:$LINENO: result: none needed" >&5
3039 echo "${ECHO_T}none needed" >&6; } ;;
3040   xno)
3041     { echo "$as_me:$LINENO: result: unsupported" >&5
3042 echo "${ECHO_T}unsupported" >&6; } ;;
3043   *)
3044     CC="$CC $ac_cv_prog_cc_c89"
3045     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3046 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3047 esac
3048
3049
3050 ac_ext=c
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055
3056
3057 ac_ext=c
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3064 # On Suns, sometimes $CPP names a directory.
3065 if test -n "$CPP" && test -d "$CPP"; then
3066   CPP=
3067 fi
3068 if test -z "$CPP"; then
3069   if test "${ac_cv_prog_CPP+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072       # Double quotes because CPP needs to be expanded
3073     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074     do
3075       ac_preproc_ok=false
3076 for ac_c_preproc_warn_flag in '' yes
3077 do
3078   # Use a header file that comes with gcc, so configuring glibc
3079   # with a fresh cross-compiler works.
3080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081   # <limits.h> exists even on freestanding compilers.
3082   # On the NeXT, cc -E runs the code through the compiler's parser,
3083   # not just through cpp. "Syntax error" is here to catch this case.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #ifdef __STDC__
3091 # include <limits.h>
3092 #else
3093 # include <assert.h>
3094 #endif
3095                      Syntax error
3096 _ACEOF
3097 if { (ac_try="$ac_cpp conftest.$ac_ext"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } >/dev/null && {
3110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3111          test ! -s conftest.err
3112        }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Broken: fails on valid input.
3119 continue
3120 fi
3121
3122 rm -f conftest.err conftest.$ac_ext
3123
3124   # OK, works on sane cases.  Now check whether nonexistent headers
3125   # can be detected and how.
3126   cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132 #include <ac_nonexistent.h>
3133 _ACEOF
3134 if { (ac_try="$ac_cpp conftest.$ac_ext"
3135 case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } >/dev/null && {
3147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3148          test ! -s conftest.err
3149        }; then
3150   # Broken: success on invalid input.
3151 continue
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156   # Passes both tests.
3157 ac_preproc_ok=:
3158 break
3159 fi
3160
3161 rm -f conftest.err conftest.$ac_ext
3162
3163 done
3164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165 rm -f conftest.err conftest.$ac_ext
3166 if $ac_preproc_ok; then
3167   break
3168 fi
3169
3170     done
3171     ac_cv_prog_CPP=$CPP
3172
3173 fi
3174   CPP=$ac_cv_prog_CPP
3175 else
3176   ac_cv_prog_CPP=$CPP
3177 fi
3178 { echo "$as_me:$LINENO: result: $CPP" >&5
3179 echo "${ECHO_T}$CPP" >&6; }
3180 ac_preproc_ok=false
3181 for ac_c_preproc_warn_flag in '' yes
3182 do
3183   # Use a header file that comes with gcc, so configuring glibc
3184   # with a fresh cross-compiler works.
3185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186   # <limits.h> exists even on freestanding compilers.
3187   # On the NeXT, cc -E runs the code through the compiler's parser,
3188   # not just through cpp. "Syntax error" is here to catch this case.
3189   cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195 #ifdef __STDC__
3196 # include <limits.h>
3197 #else
3198 # include <assert.h>
3199 #endif
3200                      Syntax error
3201 _ACEOF
3202 if { (ac_try="$ac_cpp conftest.$ac_ext"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } >/dev/null && {
3215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3216          test ! -s conftest.err
3217        }; then
3218   :
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223   # Broken: fails on valid input.
3224 continue
3225 fi
3226
3227 rm -f conftest.err conftest.$ac_ext
3228
3229   # OK, works on sane cases.  Now check whether nonexistent headers
3230   # can be detected and how.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <ac_nonexistent.h>
3238 _ACEOF
3239 if { (ac_try="$ac_cpp conftest.$ac_ext"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } >/dev/null && {
3252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3253          test ! -s conftest.err
3254        }; then
3255   # Broken: success on invalid input.
3256 continue
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261   # Passes both tests.
3262 ac_preproc_ok=:
3263 break
3264 fi
3265
3266 rm -f conftest.err conftest.$ac_ext
3267
3268 done
3269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270 rm -f conftest.err conftest.$ac_ext
3271 if $ac_preproc_ok; then
3272   :
3273 else
3274   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&5
3276 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3277 See \`config.log' for more details." >&2;}
3278    { (exit 1); exit 1; }; }
3279 fi
3280
3281 ac_ext=c
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286
3287
3288 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3289 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3290 if test "${ac_cv_path_GREP+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   # Extract the first word of "grep ggrep" to use in msg output
3294 if test -z "$GREP"; then
3295 set dummy grep ggrep; ac_prog_name=$2
3296 if test "${ac_cv_path_GREP+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   ac_path_GREP_found=false
3300 # Loop through the user's path and test for each of PROGNAME-LIST
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306   for ac_prog in grep ggrep; do
3307   for ac_exec_ext in '' $ac_executable_extensions; do
3308     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3309     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3310     # Check for GNU ac_path_GREP and select it if it is found.
3311   # Check for GNU $ac_path_GREP
3312 case `"$ac_path_GREP" --version 2>&1` in
3313 *GNU*)
3314   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3315 *)
3316   ac_count=0
3317   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3318   while :
3319   do
3320     cat "conftest.in" "conftest.in" >"conftest.tmp"
3321     mv "conftest.tmp" "conftest.in"
3322     cp "conftest.in" "conftest.nl"
3323     echo 'GREP' >> "conftest.nl"
3324     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326     ac_count=`expr $ac_count + 1`
3327     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3328       # Best one so far, save it but keep looking for a better one
3329       ac_cv_path_GREP="$ac_path_GREP"
3330       ac_path_GREP_max=$ac_count
3331     fi
3332     # 10*(2^10) chars as input seems more than enough
3333     test $ac_count -gt 10 && break
3334   done
3335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336 esac
3337
3338
3339     $ac_path_GREP_found && break 3
3340   done
3341 done
3342
3343 done
3344 IFS=$as_save_IFS
3345
3346
3347 fi
3348
3349 GREP="$ac_cv_path_GREP"
3350 if test -z "$GREP"; then
3351   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3352 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3353    { (exit 1); exit 1; }; }
3354 fi
3355
3356 else
3357   ac_cv_path_GREP=$GREP
3358 fi
3359
3360
3361 fi
3362 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3363 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3364  GREP="$ac_cv_path_GREP"
3365
3366
3367 { echo "$as_me:$LINENO: checking for egrep" >&5
3368 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3369 if test "${ac_cv_path_EGREP+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3373    then ac_cv_path_EGREP="$GREP -E"
3374    else
3375      # Extract the first word of "egrep" to use in msg output
3376 if test -z "$EGREP"; then
3377 set dummy egrep; ac_prog_name=$2
3378 if test "${ac_cv_path_EGREP+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   ac_path_EGREP_found=false
3382 # Loop through the user's path and test for each of PROGNAME-LIST
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388   for ac_prog in egrep; do
3389   for ac_exec_ext in '' $ac_executable_extensions; do
3390     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3391     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3392     # Check for GNU ac_path_EGREP and select it if it is found.
3393   # Check for GNU $ac_path_EGREP
3394 case `"$ac_path_EGREP" --version 2>&1` in
3395 *GNU*)
3396   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3397 *)
3398   ac_count=0
3399   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3400   while :
3401   do
3402     cat "conftest.in" "conftest.in" >"conftest.tmp"
3403     mv "conftest.tmp" "conftest.in"
3404     cp "conftest.in" "conftest.nl"
3405     echo 'EGREP' >> "conftest.nl"
3406     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3408     ac_count=`expr $ac_count + 1`
3409     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3410       # Best one so far, save it but keep looking for a better one
3411       ac_cv_path_EGREP="$ac_path_EGREP"
3412       ac_path_EGREP_max=$ac_count
3413     fi
3414     # 10*(2^10) chars as input seems more than enough
3415     test $ac_count -gt 10 && break
3416   done
3417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3418 esac
3419
3420
3421     $ac_path_EGREP_found && break 3
3422   done
3423 done
3424
3425 done
3426 IFS=$as_save_IFS
3427
3428
3429 fi
3430
3431 EGREP="$ac_cv_path_EGREP"
3432 if test -z "$EGREP"; then
3433   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3434 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437
3438 else
3439   ac_cv_path_EGREP=$EGREP
3440 fi
3441
3442
3443    fi
3444 fi
3445 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3446 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3447  EGREP="$ac_cv_path_EGREP"
3448
3449
3450
3451 { echo "$as_me:$LINENO: checking for AIX" >&5
3452 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h.  */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h.  */
3459 #ifdef _AIX
3460   yes
3461 #endif
3462
3463 _ACEOF
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465   $EGREP "yes" >/dev/null 2>&1; then
3466   { echo "$as_me:$LINENO: result: yes" >&5
3467 echo "${ECHO_T}yes" >&6; }
3468 cat >>confdefs.h <<\_ACEOF
3469 #define _ALL_SOURCE 1
3470 _ACEOF
3471
3472 else
3473   { echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6; }
3475 fi
3476 rm -f conftest*
3477
3478
3479
3480 if test -n "$auto_cflags"; then
3481   if test -n "$GCC"; then
3482     CFLAGS="$CFLAGS -O2 -Wall"
3483   else
3484     case "$host_os" in
3485       *hpux*)  CFLAGS="$CFLAGS +O3"                      ;;
3486       *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
3487       *)       CFLAGS="$CFLAGS -O" ;;
3488     esac
3489   fi
3490 fi
3491
3492 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3493 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3494 if test "${ac_cv_c_const+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507 /* FIXME: Include the comments suggested by Paul. */
3508 #ifndef __cplusplus
3509   /* Ultrix mips cc rejects this.  */
3510   typedef int charset[2];
3511   const charset cs;
3512   /* SunOS 4.1.1 cc rejects this.  */
3513   char const *const *pcpcc;
3514   char **ppc;
3515   /* NEC SVR4.0.2 mips cc rejects this.  */
3516   struct point {int x, y;};
3517   static struct point const zero = {0,0};
3518   /* AIX XL C 1.02.0.0 rejects this.
3519      It does not let you subtract one const X* pointer from another in
3520      an arm of an if-expression whose if-part is not a constant
3521      expression */
3522   const char *g = "string";
3523   pcpcc = &g + (g ? g-g : 0);
3524   /* HPUX 7.0 cc rejects these. */
3525   ++pcpcc;
3526   ppc = (char**) pcpcc;
3527   pcpcc = (char const *const *) ppc;
3528   { /* SCO 3.2v4 cc rejects this.  */
3529     char *t;
3530     char const *s = 0 ? (char *) 0 : (char const *) 0;
3531
3532     *t++ = 0;
3533     if (s) return 0;
3534   }
3535   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3536     int x[] = {25, 17};
3537     const int *foo = &x[0];
3538     ++foo;
3539   }
3540   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3541     typedef const int *iptr;
3542     iptr p = 0;
3543     ++p;
3544   }
3545   { /* AIX XL C 1.02.0.0 rejects this saying
3546        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3547     struct s { int j; const int *ap[3]; };
3548     struct s *b; b->j = 5;
3549   }
3550   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3551     const int foo = 10;
3552     if (!foo) return 0;
3553   }
3554   return !cs[0] && !zero.x;
3555 #endif
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_compile") 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } && {
3575          test -z "$ac_c_werror_flag" ||
3576          test ! -s conftest.err
3577        } && test -s conftest.$ac_objext; then
3578   ac_cv_c_const=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583         ac_cv_c_const=no
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3589 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3590 if test $ac_cv_c_const = no; then
3591
3592 cat >>confdefs.h <<\_ACEOF
3593 #define const
3594 _ACEOF
3595
3596 fi
3597
3598 { echo "$as_me:$LINENO: checking for inline" >&5
3599 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3600 if test "${ac_cv_c_inline+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   ac_cv_c_inline=no
3604 for ac_kw in inline __inline__ __inline; do
3605   cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 #ifndef __cplusplus
3612 typedef int foo_t;
3613 static $ac_kw foo_t static_foo () {return 0; }
3614 $ac_kw foo_t foo () {return 0; }
3615 #endif
3616
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && {
3632          test -z "$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        } && test -s conftest.$ac_objext; then
3635   ac_cv_c_inline=$ac_kw
3636 else
3637   echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640
3641 fi
3642
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644   test "$ac_cv_c_inline" != no && break
3645 done
3646
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3649 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3650
3651
3652 case $ac_cv_c_inline in
3653   inline | yes) ;;
3654   *)
3655     case $ac_cv_c_inline in
3656       no) ac_val=;;
3657       *) ac_val=$ac_cv_c_inline;;
3658     esac
3659     cat >>confdefs.h <<_ACEOF
3660 #ifndef __cplusplus
3661 #define inline $ac_val
3662 #endif
3663 _ACEOF
3664     ;;
3665 esac
3666
3667 { echo "$as_me:$LINENO: checking for working volatile" >&5
3668 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
3669 if test "${ac_cv_c_volatile+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h.  */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h.  */
3678
3679 int
3680 main ()
3681 {
3682
3683 volatile int x;
3684 int * volatile y = (int *) 0;
3685 return !x && !y;
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697   (eval "$ac_compile") 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } && {
3704          test -z "$ac_c_werror_flag" ||
3705          test ! -s conftest.err
3706        } && test -s conftest.$ac_objext; then
3707   ac_cv_c_volatile=yes
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712         ac_cv_c_volatile=no
3713 fi
3714
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3718 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
3719 if test $ac_cv_c_volatile = no; then
3720
3721 cat >>confdefs.h <<\_ACEOF
3722 #define volatile
3723 _ACEOF
3724
3725 fi
3726
3727
3728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3730 if test "${ac_cv_header_stdc+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <stdlib.h>
3740 #include <stdarg.h>
3741 #include <string.h>
3742 #include <float.h>
3743
3744 int
3745 main ()
3746 {
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759   (eval "$ac_compile") 2>conftest.er1
3760   ac_status=$?
3761   grep -v '^ *+' conftest.er1 >conftest.err
3762   rm -f conftest.er1
3763   cat conftest.err >&5
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); } && {
3766          test -z "$ac_c_werror_flag" ||
3767          test ! -s conftest.err
3768        } && test -s conftest.$ac_objext; then
3769   ac_cv_header_stdc=yes
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774         ac_cv_header_stdc=no
3775 fi
3776
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778
3779 if test $ac_cv_header_stdc = yes; then
3780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <string.h>
3788
3789 _ACEOF
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791   $EGREP "memchr" >/dev/null 2>&1; then
3792   :
3793 else
3794   ac_cv_header_stdc=no
3795 fi
3796 rm -f conftest*
3797
3798 fi
3799
3800 if test $ac_cv_header_stdc = yes; then
3801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802   cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808 #include <stdlib.h>
3809
3810 _ACEOF
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812   $EGREP "free" >/dev/null 2>&1; then
3813   :
3814 else
3815   ac_cv_header_stdc=no
3816 fi
3817 rm -f conftest*
3818
3819 fi
3820
3821 if test $ac_cv_header_stdc = yes; then
3822   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3823   if test "$cross_compiling" = yes; then
3824   :
3825 else
3826   cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832 #include <ctype.h>
3833 #include <stdlib.h>
3834 #if ((' ' & 0x0FF) == 0x020)
3835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3837 #else
3838 # define ISLOWER(c) \
3839                    (('a' <= (c) && (c) <= 'i') \
3840                      || ('j' <= (c) && (c) <= 'r') \
3841                      || ('s' <= (c) && (c) <= 'z'))
3842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3843 #endif
3844
3845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3846 int
3847 main ()
3848 {
3849   int i;
3850   for (i = 0; i < 256; i++)
3851     if (XOR (islower (i), ISLOWER (i))
3852         || toupper (i) != TOUPPER (i))
3853       return 2;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest$ac_exeext
3858 if { (ac_try="$ac_link"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864   (eval "$ac_link") 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3868   { (case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_try") 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; }; then
3877   :
3878 else
3879   echo "$as_me: program exited with status $ac_status" >&5
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ( exit $ac_status )
3884 ac_cv_header_stdc=no
3885 fi
3886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3887 fi
3888
3889
3890 fi
3891 fi
3892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3894 if test $ac_cv_header_stdc = yes; then
3895
3896 cat >>confdefs.h <<\_ACEOF
3897 #define STDC_HEADERS 1
3898 _ACEOF
3899
3900 fi
3901
3902
3903 # Check whether --enable-largefile was given.
3904 if test "${enable_largefile+set}" = set; then
3905   enableval=$enable_largefile;
3906 fi
3907
3908 if test "$enable_largefile" != no; then
3909
3910   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3911 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3912 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   ac_cv_sys_largefile_CC=no
3916      if test "$GCC" != yes; then
3917        ac_save_CC=$CC
3918        while :; do
3919          # IRIX 6.2 and later do not support large files by default,
3920          # so use the C compiler's -n32 option if that helps.
3921          cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #include <sys/types.h>
3928  /* Check that off_t can represent 2**63 - 1 correctly.
3929     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3930     since some C++ compilers masquerading as C compilers
3931     incorrectly reject 9223372036854775807.  */
3932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3933   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3934                        && LARGE_OFF_T % 2147483647 == 1)
3935                       ? 1 : -1];
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944          rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948   *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951   (eval "$ac_compile") 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } && {
3958          test -z "$ac_c_werror_flag" ||
3959          test ! -s conftest.err
3960        } && test -s conftest.$ac_objext; then
3961   break
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966
3967 fi
3968
3969 rm -f core conftest.err conftest.$ac_objext
3970          CC="$CC -n32"
3971          rm -f conftest.$ac_objext
3972 if { (ac_try="$ac_compile"
3973 case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978   (eval "$ac_compile") 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } && {
3985          test -z "$ac_c_werror_flag" ||
3986          test ! -s conftest.err
3987        } && test -s conftest.$ac_objext; then
3988   ac_cv_sys_largefile_CC=' -n32'; break
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993
3994 fi
3995
3996 rm -f core conftest.err conftest.$ac_objext
3997          break
3998        done
3999        CC=$ac_save_CC
4000        rm -f conftest.$ac_ext
4001     fi
4002 fi
4003 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4004 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4005   if test "$ac_cv_sys_largefile_CC" != no; then
4006     CC=$CC$ac_cv_sys_largefile_CC
4007   fi
4008
4009   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4010 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4011 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   while :; do
4015   cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021 #include <sys/types.h>
4022  /* Check that off_t can represent 2**63 - 1 correctly.
4023     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024     since some C++ compilers masquerading as C compilers
4025     incorrectly reject 9223372036854775807.  */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028                        && LARGE_OFF_T % 2147483647 == 1)
4029                       ? 1 : -1];
4030 int
4031 main ()
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_compile") 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } && {
4052          test -z "$ac_c_werror_flag" ||
4053          test ! -s conftest.err
4054        } && test -s conftest.$ac_objext; then
4055   ac_cv_sys_file_offset_bits=no; break
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060
4061 fi
4062
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #define _FILE_OFFSET_BITS 64
4071 #include <sys/types.h>
4072  /* Check that off_t can represent 2**63 - 1 correctly.
4073     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4074     since some C++ compilers masquerading as C compilers
4075     incorrectly reject 9223372036854775807.  */
4076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4077   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4078                        && LARGE_OFF_T % 2147483647 == 1)
4079                       ? 1 : -1];
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (ac_try="$ac_compile"
4090 case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_compile") 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } && {
4102          test -z "$ac_c_werror_flag" ||
4103          test ! -s conftest.err
4104        } && test -s conftest.$ac_objext; then
4105   ac_cv_sys_file_offset_bits=64; break
4106 else
4107   echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110
4111 fi
4112
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114   ac_cv_sys_file_offset_bits=unknown
4115   break
4116 done
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4119 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4120 case $ac_cv_sys_file_offset_bits in #(
4121   no | unknown) ;;
4122   *)
4123 cat >>confdefs.h <<_ACEOF
4124 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4125 _ACEOF
4126 ;;
4127 esac
4128 rm -f conftest*
4129   if test $ac_cv_sys_file_offset_bits = unknown; then
4130     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4131 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4132 if test "${ac_cv_sys_large_files+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   while :; do
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <sys/types.h>
4143  /* Check that off_t can represent 2**63 - 1 correctly.
4144     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4145     since some C++ compilers masquerading as C compilers
4146     incorrectly reject 9223372036854775807.  */
4147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4148   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4149                        && LARGE_OFF_T % 2147483647 == 1)
4150                       ? 1 : -1];
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_compile") 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } && {
4173          test -z "$ac_c_werror_flag" ||
4174          test ! -s conftest.err
4175        } && test -s conftest.$ac_objext; then
4176   ac_cv_sys_large_files=no; break
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181
4182 fi
4183
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #define _LARGE_FILES 1
4192 #include <sys/types.h>
4193  /* Check that off_t can represent 2**63 - 1 correctly.
4194     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4195     since some C++ compilers masquerading as C compilers
4196     incorrectly reject 9223372036854775807.  */
4197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4198   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4199                        && LARGE_OFF_T % 2147483647 == 1)
4200                       ? 1 : -1];
4201 int
4202 main ()
4203 {
4204
4205   ;
4206   return 0;
4207 }
4208 _ACEOF
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4211 case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216   (eval "$ac_compile") 2>conftest.er1
4217   ac_status=$?
4218   grep -v '^ *+' conftest.er1 >conftest.err
4219   rm -f conftest.er1
4220   cat conftest.err >&5
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); } && {
4223          test -z "$ac_c_werror_flag" ||
4224          test ! -s conftest.err
4225        } && test -s conftest.$ac_objext; then
4226   ac_cv_sys_large_files=1; break
4227 else
4228   echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231
4232 fi
4233
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235   ac_cv_sys_large_files=unknown
4236   break
4237 done
4238 fi
4239 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4240 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4241 case $ac_cv_sys_large_files in #(
4242   no | unknown) ;;
4243   *)
4244 cat >>confdefs.h <<_ACEOF
4245 #define _LARGE_FILES $ac_cv_sys_large_files
4246 _ACEOF
4247 ;;
4248 esac
4249 rm -f conftest*
4250   fi
4251 fi
4252
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4264                   inttypes.h stdint.h unistd.h
4265 do
4266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278 $ac_includes_default
4279
4280 #include <$ac_header>
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289   (eval "$ac_compile") 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } && {
4296          test -z "$ac_c_werror_flag" ||
4297          test ! -s conftest.err
4298        } && test -s conftest.$ac_objext; then
4299   eval "$as_ac_Header=yes"
4300 else
4301   echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304         eval "$as_ac_Header=no"
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 ac_res=`eval echo '${'$as_ac_Header'}'`
4310                { echo "$as_me:$LINENO: result: $ac_res" >&5
4311 echo "${ECHO_T}$ac_res" >&6; }
4312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313   cat >>confdefs.h <<_ACEOF
4314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315 _ACEOF
4316
4317 fi
4318
4319 done
4320
4321
4322 { echo "$as_me:$LINENO: checking for off_t" >&5
4323 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4324 if test "${ac_cv_type_off_t+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 $ac_includes_default
4334 typedef off_t ac__type_new_;
4335 int
4336 main ()
4337 {
4338 if ((ac__type_new_ *) 0)
4339   return 0;
4340 if (sizeof (ac__type_new_))
4341   return 0;
4342   ;
4343   return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (ac_try="$ac_compile"
4348 case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353   (eval "$ac_compile") 2>conftest.er1
4354   ac_status=$?
4355   grep -v '^ *+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } && {
4360          test -z "$ac_c_werror_flag" ||
4361          test ! -s conftest.err
4362        } && test -s conftest.$ac_objext; then
4363   ac_cv_type_off_t=yes
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368         ac_cv_type_off_t=no
4369 fi
4370
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4374 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4375
4376 # The cast to long int works around a bug in the HP C Compiler
4377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379 # This bug is HP SR number 8606223364.
4380 { echo "$as_me:$LINENO: checking size of off_t" >&5
4381 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
4382 if test "${ac_cv_sizeof_off_t+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   if test "$cross_compiling" = yes; then
4386   # Depending upon the size, compute the lo and hi bounds.
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 $ac_includes_default
4394    typedef off_t ac__type_sizeof_;
4395 int
4396 main ()
4397 {
4398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4399 test_array [0] = 0
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (ac_try="$ac_compile"
4407 case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412   (eval "$ac_compile") 2>conftest.er1
4413   ac_status=$?
4414   grep -v '^ *+' conftest.er1 >conftest.err
4415   rm -f conftest.er1
4416   cat conftest.err >&5
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); } && {
4419          test -z "$ac_c_werror_flag" ||
4420          test ! -s conftest.err
4421        } && test -s conftest.$ac_objext; then
4422   ac_lo=0 ac_mid=0
4423   while :; do
4424     cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430 $ac_includes_default
4431    typedef off_t ac__type_sizeof_;
4432 int
4433 main ()
4434 {
4435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4436 test_array [0] = 0
4437
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (ac_try="$ac_compile"
4444 case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449   (eval "$ac_compile") 2>conftest.er1
4450   ac_status=$?
4451   grep -v '^ *+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } && {
4456          test -z "$ac_c_werror_flag" ||
4457          test ! -s conftest.err
4458        } && test -s conftest.$ac_objext; then
4459   ac_hi=$ac_mid; break
4460 else
4461   echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464         ac_lo=`expr $ac_mid + 1`
4465                         if test $ac_lo -le $ac_mid; then
4466                           ac_lo= ac_hi=
4467                           break
4468                         fi
4469                         ac_mid=`expr 2 '*' $ac_mid + 1`
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473   done
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478         cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484 $ac_includes_default
4485    typedef off_t ac__type_sizeof_;
4486 int
4487 main ()
4488 {
4489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4490 test_array [0] = 0
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (ac_try="$ac_compile"
4498 case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503   (eval "$ac_compile") 2>conftest.er1
4504   ac_status=$?
4505   grep -v '^ *+' conftest.er1 >conftest.err
4506   rm -f conftest.er1
4507   cat conftest.err >&5
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); } && {
4510          test -z "$ac_c_werror_flag" ||
4511          test ! -s conftest.err
4512        } && test -s conftest.$ac_objext; then
4513   ac_hi=-1 ac_mid=-1
4514   while :; do
4515     cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h.  */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h.  */
4521 $ac_includes_default
4522    typedef off_t ac__type_sizeof_;
4523 int
4524 main ()
4525 {
4526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4527 test_array [0] = 0
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_compile") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } && {
4547          test -z "$ac_c_werror_flag" ||
4548          test ! -s conftest.err
4549        } && test -s conftest.$ac_objext; then
4550   ac_lo=$ac_mid; break
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555         ac_hi=`expr '(' $ac_mid ')' - 1`
4556                         if test $ac_mid -le $ac_hi; then
4557                           ac_lo= ac_hi=
4558                           break
4559                         fi
4560                         ac_mid=`expr 2 '*' $ac_mid`
4561 fi
4562
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564   done
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569         ac_lo= ac_hi=
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 fi
4574
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 # Binary search between lo and hi bounds.
4577 while test "x$ac_lo" != "x$ac_hi"; do
4578   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4579   cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 $ac_includes_default
4586    typedef off_t ac__type_sizeof_;
4587 int
4588 main ()
4589 {
4590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4591 test_array [0] = 0
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && {
4611          test -z "$ac_c_werror_flag" ||
4612          test ! -s conftest.err
4613        } && test -s conftest.$ac_objext; then
4614   ac_hi=$ac_mid
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619         ac_lo=`expr '(' $ac_mid ')' + 1`
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 done
4624 case $ac_lo in
4625 ?*) ac_cv_sizeof_off_t=$ac_lo;;
4626 '') if test "$ac_cv_type_off_t" = yes; then
4627      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: cannot compute sizeof (off_t)
4630 See \`config.log' for more details." >&2;}
4631    { (exit 77); exit 77; }; }
4632    else
4633      ac_cv_sizeof_off_t=0
4634    fi ;;
4635 esac
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 $ac_includes_default
4644    typedef off_t ac__type_sizeof_;
4645 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4646 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4647 #include <stdio.h>
4648 #include <stdlib.h>
4649 int
4650 main ()
4651 {
4652
4653   FILE *f = fopen ("conftest.val", "w");
4654   if (! f)
4655     return 1;
4656   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4657     {
4658       long int i = longval ();
4659       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4660         return 1;
4661       fprintf (f, "%ld\n", i);
4662     }
4663   else
4664     {
4665       unsigned long int i = ulongval ();
4666       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4667         return 1;
4668       fprintf (f, "%lu\n", i);
4669     }
4670   return ferror (f) || fclose (f) != 0;
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest$ac_exeext
4677 if { (ac_try="$ac_link"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_link") 2>&5
4684   ac_status=$?
4685   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;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_try") 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   ac_cv_sizeof_off_t=`cat conftest.val`
4697 else
4698   echo "$as_me: program exited with status $ac_status" >&5
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 ( exit $ac_status )
4703 if test "$ac_cv_type_off_t" = yes; then
4704      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot compute sizeof (off_t)
4707 See \`config.log' for more details." >&2;}
4708    { (exit 77); exit 77; }; }
4709    else
4710      ac_cv_sizeof_off_t=0
4711    fi
4712 fi
4713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4714 fi
4715 rm -f conftest.val
4716 fi
4717 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
4718 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
4719
4720
4721
4722 cat >>confdefs.h <<_ACEOF
4723 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
4724 _ACEOF
4725
4726
4727
4728 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4729 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4730 if test "${ac_cv_header_stdbool_h+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739
4740 #include <stdbool.h>
4741 #ifndef bool
4742  "error: bool is not defined"
4743 #endif
4744 #ifndef false
4745  "error: false is not defined"
4746 #endif
4747 #if false
4748  "error: false is not 0"
4749 #endif
4750 #ifndef true
4751  "error: true is not defined"
4752 #endif
4753 #if true != 1
4754  "error: true is not 1"
4755 #endif
4756 #ifndef __bool_true_false_are_defined
4757  "error: __bool_true_false_are_defined is not defined"
4758 #endif
4759
4760         struct s { _Bool s: 1; _Bool t; } s;
4761
4762         char a[true == 1 ? 1 : -1];
4763         char b[false == 0 ? 1 : -1];
4764         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4765         char d[(bool) 0.5 == true ? 1 : -1];
4766         bool e = &s;
4767         char f[(_Bool) 0.0 == false ? 1 : -1];
4768         char g[true];
4769         char h[sizeof (_Bool)];
4770         char i[sizeof s.t];
4771         enum { j = false, k = true, l = false * true, m = true * 256 };
4772         _Bool n[m];
4773         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4774         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4775 #       if defined __xlc__ || defined __GNUC__
4776          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4777             reported by James Lemley on 2005-10-05; see
4778             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4779             This test is not quite right, since xlc is allowed to
4780             reject this program, as the initializer for xlcbug is
4781             not one of the forms that C requires support for.
4782             However, doing the test right would require a runtime
4783             test, and that would make cross-compilation harder.
4784             Let us hope that IBM fixes the xlc bug, and also adds
4785             support for this kind of constant expression.  In the
4786             meantime, this test will reject xlc, which is OK, since
4787             our stdbool.h substitute should suffice.  We also test
4788             this with GCC, where it should work, to detect more
4789             quickly whether someone messes up the test in the
4790             future.  */
4791          char digs[] = "0123456789";
4792          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4793 #       endif
4794         /* Catch a bug in an HP-UX C compiler.  See
4795            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4796            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4797          */
4798         _Bool q = true;
4799         _Bool *pq = &q;
4800
4801 int
4802 main ()
4803 {
4804
4805         *pq |= q;
4806         *pq |= ! q;
4807         /* Refer to every declared value, to avoid compiler optimizations.  */
4808         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4809                 + !m + !n + !o + !p + !q + !pq);
4810
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (ac_try="$ac_compile"
4817 case "(($ac_try" in
4818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819   *) ac_try_echo=$ac_try;;
4820 esac
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822   (eval "$ac_compile") 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } && {
4829          test -z "$ac_c_werror_flag" ||
4830          test ! -s conftest.err
4831        } && test -s conftest.$ac_objext; then
4832   ac_cv_header_stdbool_h=yes
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837         ac_cv_header_stdbool_h=no
4838 fi
4839
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4843 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4844 { echo "$as_me:$LINENO: checking for _Bool" >&5
4845 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4846 if test "${ac_cv_type__Bool+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855 $ac_includes_default
4856 typedef _Bool ac__type_new_;
4857 int
4858 main ()
4859 {
4860 if ((ac__type_new_ *) 0)
4861   return 0;
4862 if (sizeof (ac__type_new_))
4863   return 0;
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4870 case "(($ac_try" in
4871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872   *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875   (eval "$ac_compile") 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } && {
4882          test -z "$ac_c_werror_flag" ||
4883          test ! -s conftest.err
4884        } && test -s conftest.$ac_objext; then
4885   ac_cv_type__Bool=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890         ac_cv_type__Bool=no
4891 fi
4892
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4896 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4897 if test $ac_cv_type__Bool = yes; then
4898
4899 cat >>confdefs.h <<_ACEOF
4900 #define HAVE__BOOL 1
4901 _ACEOF
4902
4903
4904 fi
4905
4906 if test $ac_cv_header_stdbool_h = yes; then
4907
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_STDBOOL_H 1
4910 _ACEOF
4911
4912 fi
4913
4914
4915
4916 for ac_header in unistd.h sys/time.h
4917 do
4918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 fi
4925 ac_res=`eval echo '${'$as_ac_Header'}'`
4926                { echo "$as_me:$LINENO: result: $ac_res" >&5
4927 echo "${ECHO_T}$ac_res" >&6; }
4928 else
4929   # Is the header compilable?
4930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 $ac_includes_default
4939 #include <$ac_header>
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4943 case "(($ac_try" in
4944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945   *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948   (eval "$ac_compile") 2>conftest.er1
4949   ac_status=$?
4950   grep -v '^ *+' conftest.er1 >conftest.err
4951   rm -f conftest.er1
4952   cat conftest.err >&5
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } && {
4955          test -z "$ac_c_werror_flag" ||
4956          test ! -s conftest.err
4957        } && test -s conftest.$ac_objext; then
4958   ac_header_compiler=yes
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963         ac_header_compiler=no
4964 fi
4965
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4968 echo "${ECHO_T}$ac_header_compiler" >&6; }
4969
4970 # Is the header present?
4971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #include <$ac_header>
4980 _ACEOF
4981 if { (ac_try="$ac_cpp conftest.$ac_ext"
4982 case "(($ac_try" in
4983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984   *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } >/dev/null && {
4994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4995          test ! -s conftest.err
4996        }; then
4997   ac_header_preproc=yes
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002   ac_header_preproc=no
5003 fi
5004
5005 rm -f conftest.err conftest.$ac_ext
5006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5007 echo "${ECHO_T}$ac_header_preproc" >&6; }
5008
5009 # So?  What about this header?
5010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5011   yes:no: )
5012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5016     ac_header_preproc=yes
5017     ;;
5018   no:yes:* )
5019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5031
5032     ;;
5033 esac
5034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   eval "$as_ac_Header=\$ac_header_preproc"
5040 fi
5041 ac_res=`eval echo '${'$as_ac_Header'}'`
5042                { echo "$as_me:$LINENO: result: $ac_res" >&5
5043 echo "${ECHO_T}$ac_res" >&6; }
5044
5045 fi
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047   cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 _ACEOF
5050
5051 fi
5052
5053 done
5054
5055
5056
5057
5058
5059
5060 for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
5061 do
5062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 fi
5069 ac_res=`eval echo '${'$as_ac_Header'}'`
5070                { echo "$as_me:$LINENO: result: $ac_res" >&5
5071 echo "${ECHO_T}$ac_res" >&6; }
5072 else
5073   # Is the header compilable?
5074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 $ac_includes_default
5083 #include <$ac_header>
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5087 case "(($ac_try" in
5088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089   *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092   (eval "$ac_compile") 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && {
5099          test -z "$ac_c_werror_flag" ||
5100          test ! -s conftest.err
5101        } && test -s conftest.$ac_objext; then
5102   ac_header_compiler=yes
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107         ac_header_compiler=no
5108 fi
5109
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5112 echo "${ECHO_T}$ac_header_compiler" >&6; }
5113
5114 # Is the header present?
5115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <$ac_header>
5124 _ACEOF
5125 if { (ac_try="$ac_cpp conftest.$ac_ext"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5132   ac_status=$?
5133   grep -v '^ *+' conftest.er1 >conftest.err
5134   rm -f conftest.er1
5135   cat conftest.err >&5
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } >/dev/null && {
5138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5139          test ! -s conftest.err
5140        }; then
5141   ac_header_preproc=yes
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146   ac_header_preproc=no
5147 fi
5148
5149 rm -f conftest.err conftest.$ac_ext
5150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5151 echo "${ECHO_T}$ac_header_preproc" >&6; }
5152
5153 # So?  What about this header?
5154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5155   yes:no: )
5156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5160     ac_header_preproc=yes
5161     ;;
5162   no:yes:* )
5163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5175
5176     ;;
5177 esac
5178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   eval "$as_ac_Header=\$ac_header_preproc"
5184 fi
5185 ac_res=`eval echo '${'$as_ac_Header'}'`
5186                { echo "$as_me:$LINENO: result: $ac_res" >&5
5187 echo "${ECHO_T}$ac_res" >&6; }
5188
5189 fi
5190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5191   cat >>confdefs.h <<_ACEOF
5192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5193 _ACEOF
5194
5195 fi
5196
5197 done
5198
5199
5200
5201
5202
5203 for ac_header in stdint.h inttypes.h pwd.h wchar.h
5204 do
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 fi
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213                { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5215 else
5216   # Is the header compilable?
5217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5219 cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 $ac_includes_default
5226 #include <$ac_header>
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } && {
5242          test -z "$ac_c_werror_flag" ||
5243          test ! -s conftest.err
5244        } && test -s conftest.$ac_objext; then
5245   ac_header_compiler=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250         ac_header_compiler=no
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255 echo "${ECHO_T}$ac_header_compiler" >&6; }
5256
5257 # Is the header present?
5258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #include <$ac_header>
5267 _ACEOF
5268 if { (ac_try="$ac_cpp conftest.$ac_ext"
5269 case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } >/dev/null && {
5281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5282          test ! -s conftest.err
5283        }; then
5284   ac_header_preproc=yes
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289   ac_header_preproc=no
5290 fi
5291
5292 rm -f conftest.err conftest.$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6; }
5295
5296 # So?  What about this header?
5297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5298   yes:no: )
5299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5303     ac_header_preproc=yes
5304     ;;
5305   no:yes:* )
5306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5318
5319     ;;
5320 esac
5321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   eval "$as_ac_Header=\$ac_header_preproc"
5327 fi
5328 ac_res=`eval echo '${'$as_ac_Header'}'`
5329                { echo "$as_me:$LINENO: result: $ac_res" >&5
5330 echo "${ECHO_T}$ac_res" >&6; }
5331
5332 fi
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334   cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 _ACEOF
5337
5338 fi
5339
5340 done
5341
5342
5343 { echo "$as_me:$LINENO: checking for short" >&5
5344 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5345 if test "${ac_cv_type_short+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 $ac_includes_default
5355 typedef short ac__type_new_;
5356 int
5357 main ()
5358 {
5359 if ((ac__type_new_ *) 0)
5360   return 0;
5361 if (sizeof (ac__type_new_))
5362   return 0;
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (ac_try="$ac_compile"
5369 case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374   (eval "$ac_compile") 2>conftest.er1
5375   ac_status=$?
5376   grep -v '^ *+' conftest.er1 >conftest.err
5377   rm -f conftest.er1
5378   cat conftest.err >&5
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } && {
5381          test -z "$ac_c_werror_flag" ||
5382          test ! -s conftest.err
5383        } && test -s conftest.$ac_objext; then
5384   ac_cv_type_short=yes
5385 else
5386   echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389         ac_cv_type_short=no
5390 fi
5391
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 fi
5394 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5395 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5396
5397 # The cast to long int works around a bug in the HP C Compiler
5398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400 # This bug is HP SR number 8606223364.
5401 { echo "$as_me:$LINENO: checking size of short" >&5
5402 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5403 if test "${ac_cv_sizeof_short+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   if test "$cross_compiling" = yes; then
5407   # Depending upon the size, compute the lo and hi bounds.
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414 $ac_includes_default
5415    typedef short ac__type_sizeof_;
5416 int
5417 main ()
5418 {
5419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5420 test_array [0] = 0
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_compile") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && {
5440          test -z "$ac_c_werror_flag" ||
5441          test ! -s conftest.err
5442        } && test -s conftest.$ac_objext; then
5443   ac_lo=0 ac_mid=0
5444   while :; do
5445     cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451 $ac_includes_default
5452    typedef short ac__type_sizeof_;
5453 int
5454 main ()
5455 {
5456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5457 test_array [0] = 0
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_hi=$ac_mid; break
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         ac_lo=`expr $ac_mid + 1`
5486                         if test $ac_lo -le $ac_mid; then
5487                           ac_lo= ac_hi=
5488                           break
5489                         fi
5490                         ac_mid=`expr 2 '*' $ac_mid + 1`
5491 fi
5492
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494   done
5495 else
5496   echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499         cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505 $ac_includes_default
5506    typedef short ac__type_sizeof_;
5507 int
5508 main ()
5509 {
5510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5511 test_array [0] = 0
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524   (eval "$ac_compile") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } && {
5531          test -z "$ac_c_werror_flag" ||
5532          test ! -s conftest.err
5533        } && test -s conftest.$ac_objext; then
5534   ac_hi=-1 ac_mid=-1
5535   while :; do
5536     cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h.  */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h.  */
5542 $ac_includes_default
5543    typedef short ac__type_sizeof_;
5544 int
5545 main ()
5546 {
5547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5548 test_array [0] = 0
5549
5550   ;
5551   return 0;
5552 }
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5556 case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_compile") 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } && {
5568          test -z "$ac_c_werror_flag" ||
5569          test ! -s conftest.err
5570        } && test -s conftest.$ac_objext; then
5571   ac_lo=$ac_mid; break
5572 else
5573   echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5575
5576         ac_hi=`expr '(' $ac_mid ')' - 1`
5577                         if test $ac_mid -le $ac_hi; then
5578                           ac_lo= ac_hi=
5579                           break
5580                         fi
5581                         ac_mid=`expr 2 '*' $ac_mid`
5582 fi
5583
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585   done
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590         ac_lo= ac_hi=
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 # Binary search between lo and hi bounds.
5598 while test "x$ac_lo" != "x$ac_hi"; do
5599   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5600   cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 $ac_includes_default
5607    typedef short ac__type_sizeof_;
5608 int
5609 main ()
5610 {
5611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5612 test_array [0] = 0
5613
5614   ;
5615   return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622   *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625   (eval "$ac_compile") 2>conftest.er1
5626   ac_status=$?
5627   grep -v '^ *+' conftest.er1 >conftest.err
5628   rm -f conftest.er1
5629   cat conftest.err >&5
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } && {
5632          test -z "$ac_c_werror_flag" ||
5633          test ! -s conftest.err
5634        } && test -s conftest.$ac_objext; then
5635   ac_hi=$ac_mid
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640         ac_lo=`expr '(' $ac_mid ')' + 1`
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 done
5645 case $ac_lo in
5646 ?*) ac_cv_sizeof_short=$ac_lo;;
5647 '') if test "$ac_cv_type_short" = yes; then
5648      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5649 See \`config.log' for more details." >&5
5650 echo "$as_me: error: cannot compute sizeof (short)
5651 See \`config.log' for more details." >&2;}
5652    { (exit 77); exit 77; }; }
5653    else
5654      ac_cv_sizeof_short=0
5655    fi ;;
5656 esac
5657 else
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 $ac_includes_default
5665    typedef short ac__type_sizeof_;
5666 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5667 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5668 #include <stdio.h>
5669 #include <stdlib.h>
5670 int
5671 main ()
5672 {
5673
5674   FILE *f = fopen ("conftest.val", "w");
5675   if (! f)
5676     return 1;
5677   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5678     {
5679       long int i = longval ();
5680       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5681         return 1;
5682       fprintf (f, "%ld\n", i);
5683     }
5684   else
5685     {
5686       unsigned long int i = ulongval ();
5687       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5688         return 1;
5689       fprintf (f, "%lu\n", i);
5690     }
5691   return ferror (f) || fclose (f) != 0;
5692
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest$ac_exeext
5698 if { (ac_try="$ac_link"
5699 case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_link") 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5708   { (case "(($ac_try" in
5709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710   *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713   (eval "$ac_try") 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; }; then
5717   ac_cv_sizeof_short=`cat conftest.val`
5718 else
5719   echo "$as_me: program exited with status $ac_status" >&5
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 ( exit $ac_status )
5724 if test "$ac_cv_type_short" = yes; then
5725      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5726 See \`config.log' for more details." >&5
5727 echo "$as_me: error: cannot compute sizeof (short)
5728 See \`config.log' for more details." >&2;}
5729    { (exit 77); exit 77; }; }
5730    else
5731      ac_cv_sizeof_short=0
5732    fi
5733 fi
5734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 rm -f conftest.val
5737 fi
5738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5739 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5740
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5745 _ACEOF
5746
5747
5748 { echo "$as_me:$LINENO: checking for int" >&5
5749 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5750 if test "${ac_cv_type_int+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h.  */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h.  */
5759 $ac_includes_default
5760 typedef int ac__type_new_;
5761 int
5762 main ()
5763 {
5764 if ((ac__type_new_ *) 0)
5765   return 0;
5766 if (sizeof (ac__type_new_))
5767   return 0;
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776   *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779   (eval "$ac_compile") 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } && {
5786          test -z "$ac_c_werror_flag" ||
5787          test ! -s conftest.err
5788        } && test -s conftest.$ac_objext; then
5789   ac_cv_type_int=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794         ac_cv_type_int=no
5795 fi
5796
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 fi
5799 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5800 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5801
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { echo "$as_me:$LINENO: checking size of int" >&5
5807 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5808 if test "${ac_cv_sizeof_int+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test "$cross_compiling" = yes; then
5812   # Depending upon the size, compute the lo and hi bounds.
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819 $ac_includes_default
5820    typedef int ac__type_sizeof_;
5821 int
5822 main ()
5823 {
5824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5825 test_array [0] = 0
5826
5827   ;
5828   return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5833 case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838   (eval "$ac_compile") 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } && {
5845          test -z "$ac_c_werror_flag" ||
5846          test ! -s conftest.err
5847        } && test -s conftest.$ac_objext; then
5848   ac_lo=0 ac_mid=0
5849   while :; do
5850     cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 $ac_includes_default
5857    typedef int ac__type_sizeof_;
5858 int
5859 main ()
5860 {
5861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5862 test_array [0] = 0
5863
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875   (eval "$ac_compile") 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } && {
5882          test -z "$ac_c_werror_flag" ||
5883          test ! -s conftest.err
5884        } && test -s conftest.$ac_objext; then
5885   ac_hi=$ac_mid; break
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890         ac_lo=`expr $ac_mid + 1`
5891                         if test $ac_lo -le $ac_mid; then
5892                           ac_lo= ac_hi=
5893                           break
5894                         fi
5895                         ac_mid=`expr 2 '*' $ac_mid + 1`
5896 fi
5897
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899   done
5900 else
5901   echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904         cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 $ac_includes_default
5911    typedef int ac__type_sizeof_;
5912 int
5913 main ()
5914 {
5915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5916 test_array [0] = 0
5917
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5924 case "(($ac_try" in
5925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926   *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929   (eval "$ac_compile") 2>conftest.er1
5930   ac_status=$?
5931   grep -v '^ *+' conftest.er1 >conftest.err
5932   rm -f conftest.er1
5933   cat conftest.err >&5
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } && {
5936          test -z "$ac_c_werror_flag" ||
5937          test ! -s conftest.err
5938        } && test -s conftest.$ac_objext; then
5939   ac_hi=-1 ac_mid=-1
5940   while :; do
5941     cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 $ac_includes_default
5948    typedef int ac__type_sizeof_;
5949 int
5950 main ()
5951 {
5952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5953 test_array [0] = 0
5954
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5961 case "(($ac_try" in
5962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963   *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966   (eval "$ac_compile") 2>conftest.er1
5967   ac_status=$?
5968   grep -v '^ *+' conftest.er1 >conftest.err
5969   rm -f conftest.er1
5970   cat conftest.err >&5
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } && {
5973          test -z "$ac_c_werror_flag" ||
5974          test ! -s conftest.err
5975        } && test -s conftest.$ac_objext; then
5976   ac_lo=$ac_mid; break
5977 else
5978   echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981         ac_hi=`expr '(' $ac_mid ')' - 1`
5982                         if test $ac_mid -le $ac_hi; then
5983                           ac_lo= ac_hi=
5984                           break
5985                         fi
5986                         ac_mid=`expr 2 '*' $ac_mid`
5987 fi
5988
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990   done
5991 else
5992   echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995         ac_lo= ac_hi=
5996 fi
5997
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 fi
6000
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 # Binary search between lo and hi bounds.
6003 while test "x$ac_lo" != "x$ac_hi"; do
6004   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6005   cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011 $ac_includes_default
6012    typedef int ac__type_sizeof_;
6013 int
6014 main ()
6015 {
6016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6017 test_array [0] = 0
6018
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext
6024 if { (ac_try="$ac_compile"
6025 case "(($ac_try" in
6026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027   *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030   (eval "$ac_compile") 2>conftest.er1
6031   ac_status=$?
6032   grep -v '^ *+' conftest.er1 >conftest.err
6033   rm -f conftest.er1
6034   cat conftest.err >&5
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } && {
6037          test -z "$ac_c_werror_flag" ||
6038          test ! -s conftest.err
6039        } && test -s conftest.$ac_objext; then
6040   ac_hi=$ac_mid
6041 else
6042   echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6044
6045         ac_lo=`expr '(' $ac_mid ')' + 1`
6046 fi
6047
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 done
6050 case $ac_lo in
6051 ?*) ac_cv_sizeof_int=$ac_lo;;
6052 '') if test "$ac_cv_type_int" = yes; then
6053      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6054 See \`config.log' for more details." >&5
6055 echo "$as_me: error: cannot compute sizeof (int)
6056 See \`config.log' for more details." >&2;}
6057    { (exit 77); exit 77; }; }
6058    else
6059      ac_cv_sizeof_int=0
6060    fi ;;
6061 esac
6062 else
6063   cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069 $ac_includes_default
6070    typedef int ac__type_sizeof_;
6071 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6072 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6073 #include <stdio.h>
6074 #include <stdlib.h>
6075 int
6076 main ()
6077 {
6078
6079   FILE *f = fopen ("conftest.val", "w");
6080   if (! f)
6081     return 1;
6082   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6083     {
6084       long int i = longval ();
6085       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6086         return 1;
6087       fprintf (f, "%ld\n", i);
6088     }
6089   else
6090     {
6091       unsigned long int i = ulongval ();
6092       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6093         return 1;
6094       fprintf (f, "%lu\n", i);
6095     }
6096   return ferror (f) || fclose (f) != 0;
6097
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest$ac_exeext
6103 if { (ac_try="$ac_link"
6104 case "(($ac_try" in
6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106   *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109   (eval "$ac_link") 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113   { (case "(($ac_try" in
6114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115   *) ac_try_echo=$ac_try;;
6116 esac
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118   (eval "$ac_try") 2>&5
6119   ac_status=$?
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); }; }; then
6122   ac_cv_sizeof_int=`cat conftest.val`
6123 else
6124   echo "$as_me: program exited with status $ac_status" >&5
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ( exit $ac_status )
6129 if test "$ac_cv_type_int" = yes; then
6130      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6131 See \`config.log' for more details." >&5
6132 echo "$as_me: error: cannot compute sizeof (int)
6133 See \`config.log' for more details." >&2;}
6134    { (exit 77); exit 77; }; }
6135    else
6136      ac_cv_sizeof_int=0
6137    fi
6138 fi
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6140 fi
6141 rm -f conftest.val
6142 fi
6143 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6144 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6145
6146
6147
6148 cat >>confdefs.h <<_ACEOF
6149 #define SIZEOF_INT $ac_cv_sizeof_int
6150 _ACEOF
6151
6152
6153 { echo "$as_me:$LINENO: checking for long" >&5
6154 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6155 if test "${ac_cv_type_long+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164 $ac_includes_default
6165 typedef long ac__type_new_;
6166 int
6167 main ()
6168 {
6169 if ((ac__type_new_ *) 0)
6170   return 0;
6171 if (sizeof (ac__type_new_))
6172   return 0;
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (ac_try="$ac_compile"
6179 case "(($ac_try" in
6180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181   *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184   (eval "$ac_compile") 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } && {
6191          test -z "$ac_c_werror_flag" ||
6192          test ! -s conftest.err
6193        } && test -s conftest.$ac_objext; then
6194   ac_cv_type_long=yes
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199         ac_cv_type_long=no
6200 fi
6201
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 fi
6204 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6205 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6206
6207 # The cast to long int works around a bug in the HP C Compiler
6208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6210 # This bug is HP SR number 8606223364.
6211 { echo "$as_me:$LINENO: checking size of long" >&5
6212 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6213 if test "${ac_cv_sizeof_long+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test "$cross_compiling" = yes; then
6217   # Depending upon the size, compute the lo and hi bounds.
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 $ac_includes_default
6225    typedef long ac__type_sizeof_;
6226 int
6227 main ()
6228 {
6229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6230 test_array [0] = 0
6231
6232   ;
6233   return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240   *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243   (eval "$ac_compile") 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } && {
6250          test -z "$ac_c_werror_flag" ||
6251          test ! -s conftest.err
6252        } && test -s conftest.$ac_objext; then
6253   ac_lo=0 ac_mid=0
6254   while :; do
6255     cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261 $ac_includes_default
6262    typedef long ac__type_sizeof_;
6263 int
6264 main ()
6265 {
6266 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6267 test_array [0] = 0
6268
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6275 case "(($ac_try" in
6276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277   *) ac_try_echo=$ac_try;;
6278 esac
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280   (eval "$ac_compile") 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && {
6287          test -z "$ac_c_werror_flag" ||
6288          test ! -s conftest.err
6289        } && test -s conftest.$ac_objext; then
6290   ac_hi=$ac_mid; break
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295         ac_lo=`expr $ac_mid + 1`
6296                         if test $ac_lo -le $ac_mid; then
6297                           ac_lo= ac_hi=
6298                           break
6299                         fi
6300                         ac_mid=`expr 2 '*' $ac_mid + 1`
6301 fi
6302
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304   done
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309         cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 $ac_includes_default
6316    typedef long ac__type_sizeof_;
6317 int
6318 main ()
6319 {
6320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6321 test_array [0] = 0
6322
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331   *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334   (eval "$ac_compile") 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
6338   cat conftest.err >&5
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); } && {
6341          test -z "$ac_c_werror_flag" ||
6342          test ! -s conftest.err
6343        } && test -s conftest.$ac_objext; then
6344   ac_hi=-1 ac_mid=-1
6345   while :; do
6346     cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 $ac_includes_default
6353    typedef long ac__type_sizeof_;
6354 int
6355 main ()
6356 {
6357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6358 test_array [0] = 0
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371   (eval "$ac_compile") 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } && {
6378          test -z "$ac_c_werror_flag" ||
6379          test ! -s conftest.err
6380        } && test -s conftest.$ac_objext; then
6381   ac_lo=$ac_mid; break
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386         ac_hi=`expr '(' $ac_mid ')' - 1`
6387                         if test $ac_mid -le $ac_hi; then
6388                           ac_lo= ac_hi=
6389                           break
6390                         fi
6391                         ac_mid=`expr 2 '*' $ac_mid`
6392 fi
6393
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395   done
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400         ac_lo= ac_hi=
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 fi
6405
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 # Binary search between lo and hi bounds.
6408 while test "x$ac_lo" != "x$ac_hi"; do
6409   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6410   cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416 $ac_includes_default
6417    typedef long ac__type_sizeof_;
6418 int
6419 main ()
6420 {
6421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6422 test_array [0] = 0
6423
6424   ;
6425   return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (ac_try="$ac_compile"
6430 case "(($ac_try" in
6431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432   *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435   (eval "$ac_compile") 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } && {
6442          test -z "$ac_c_werror_flag" ||
6443          test ! -s conftest.err
6444        } && test -s conftest.$ac_objext; then
6445   ac_hi=$ac_mid
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450         ac_lo=`expr '(' $ac_mid ')' + 1`
6451 fi
6452
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 done
6455 case $ac_lo in
6456 ?*) ac_cv_sizeof_long=$ac_lo;;
6457 '') if test "$ac_cv_type_long" = yes; then
6458      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6459 See \`config.log' for more details." >&5
6460 echo "$as_me: error: cannot compute sizeof (long)
6461 See \`config.log' for more details." >&2;}
6462    { (exit 77); exit 77; }; }
6463    else
6464      ac_cv_sizeof_long=0
6465    fi ;;
6466 esac
6467 else
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475    typedef long ac__type_sizeof_;
6476 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6477 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6478 #include <stdio.h>
6479 #include <stdlib.h>
6480 int
6481 main ()
6482 {
6483
6484   FILE *f = fopen ("conftest.val", "w");
6485   if (! f)
6486     return 1;
6487   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6488     {
6489       long int i = longval ();
6490       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6491         return 1;
6492       fprintf (f, "%ld\n", i);
6493     }
6494   else
6495     {
6496       unsigned long int i = ulongval ();
6497       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6498         return 1;
6499       fprintf (f, "%lu\n", i);
6500     }
6501   return ferror (f) || fclose (f) != 0;
6502
6503   ;
6504   return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest$ac_exeext
6508 if { (ac_try="$ac_link"
6509 case "(($ac_try" in
6510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511   *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514   (eval "$ac_link") 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518   { (case "(($ac_try" in
6519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520   *) ac_try_echo=$ac_try;;
6521 esac
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523   (eval "$ac_try") 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   ac_cv_sizeof_long=`cat conftest.val`
6528 else
6529   echo "$as_me: program exited with status $ac_status" >&5
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 ( exit $ac_status )
6534 if test "$ac_cv_type_long" = yes; then
6535      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6536 See \`config.log' for more details." >&5
6537 echo "$as_me: error: cannot compute sizeof (long)
6538 See \`config.log' for more details." >&2;}
6539    { (exit 77); exit 77; }; }
6540    else
6541      ac_cv_sizeof_long=0
6542    fi
6543 fi
6544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 rm -f conftest.val
6547 fi
6548 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6549 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6550
6551
6552
6553 cat >>confdefs.h <<_ACEOF
6554 #define SIZEOF_LONG $ac_cv_sizeof_long
6555 _ACEOF
6556
6557
6558 { echo "$as_me:$LINENO: checking for long long" >&5
6559 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6560 if test "${ac_cv_type_long_long+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569 $ac_includes_default
6570 typedef long long ac__type_new_;
6571 int
6572 main ()
6573 {
6574 if ((ac__type_new_ *) 0)
6575   return 0;
6576 if (sizeof (ac__type_new_))
6577   return 0;
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (ac_try="$ac_compile"
6584 case "(($ac_try" in
6585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586   *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589   (eval "$ac_compile") 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } && {
6596          test -z "$ac_c_werror_flag" ||
6597          test ! -s conftest.err
6598        } && test -s conftest.$ac_objext; then
6599   ac_cv_type_long_long=yes
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604         ac_cv_type_long_long=no
6605 fi
6606
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6610 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6611
6612 # The cast to long int works around a bug in the HP C Compiler
6613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6615 # This bug is HP SR number 8606223364.
6616 { echo "$as_me:$LINENO: checking size of long long" >&5
6617 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6618 if test "${ac_cv_sizeof_long_long+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   if test "$cross_compiling" = yes; then
6622   # Depending upon the size, compute the lo and hi bounds.
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 $ac_includes_default
6630    typedef long long ac__type_sizeof_;
6631 int
6632 main ()
6633 {
6634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6635 test_array [0] = 0
6636
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6643 case "(($ac_try" in
6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645   *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648   (eval "$ac_compile") 2>conftest.er1
6649   ac_status=$?
6650   grep -v '^ *+' conftest.er1 >conftest.err
6651   rm -f conftest.er1
6652   cat conftest.err >&5
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && {
6655          test -z "$ac_c_werror_flag" ||
6656          test ! -s conftest.err
6657        } && test -s conftest.$ac_objext; then
6658   ac_lo=0 ac_mid=0
6659   while :; do
6660     cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h.  */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h.  */
6666 $ac_includes_default
6667    typedef long long ac__type_sizeof_;
6668 int
6669 main ()
6670 {
6671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6672 test_array [0] = 0
6673
6674   ;
6675   return 0;
6676 }
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (ac_try="$ac_compile"
6680 case "(($ac_try" in
6681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682   *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685   (eval "$ac_compile") 2>conftest.er1
6686   ac_status=$?
6687   grep -v '^ *+' conftest.er1 >conftest.err
6688   rm -f conftest.er1
6689   cat conftest.err >&5
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } && {
6692          test -z "$ac_c_werror_flag" ||
6693          test ! -s conftest.err
6694        } && test -s conftest.$ac_objext; then
6695   ac_hi=$ac_mid; break
6696 else
6697   echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700         ac_lo=`expr $ac_mid + 1`
6701                         if test $ac_lo -le $ac_mid; then
6702                           ac_lo= ac_hi=
6703                           break
6704                         fi
6705                         ac_mid=`expr 2 '*' $ac_mid + 1`
6706 fi
6707
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709   done
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714         cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720 $ac_includes_default
6721    typedef long long ac__type_sizeof_;
6722 int
6723 main ()
6724 {
6725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6726 test_array [0] = 0
6727
6728   ;
6729   return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6734 case "(($ac_try" in
6735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736   *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739   (eval "$ac_compile") 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } && {
6746          test -z "$ac_c_werror_flag" ||
6747          test ! -s conftest.err
6748        } && test -s conftest.$ac_objext; then
6749   ac_hi=-1 ac_mid=-1
6750   while :; do
6751     cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757 $ac_includes_default
6758    typedef long long ac__type_sizeof_;
6759 int
6760 main ()
6761 {
6762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6763 test_array [0] = 0
6764
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6771 case "(($ac_try" in
6772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773   *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776   (eval "$ac_compile") 2>conftest.er1
6777   ac_status=$?
6778   grep -v '^ *+' conftest.er1 >conftest.err
6779   rm -f conftest.er1
6780   cat conftest.err >&5
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); } && {
6783          test -z "$ac_c_werror_flag" ||
6784          test ! -s conftest.err
6785        } && test -s conftest.$ac_objext; then
6786   ac_lo=$ac_mid; break
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791         ac_hi=`expr '(' $ac_mid ')' - 1`
6792                         if test $ac_mid -le $ac_hi; then
6793                           ac_lo= ac_hi=
6794                           break
6795                         fi
6796                         ac_mid=`expr 2 '*' $ac_mid`
6797 fi
6798
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800   done
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805         ac_lo= ac_hi=
6806 fi
6807
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 # Binary search between lo and hi bounds.
6813 while test "x$ac_lo" != "x$ac_hi"; do
6814   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6815   cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h.  */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h.  */
6821 $ac_includes_default
6822    typedef long long ac__type_sizeof_;
6823 int
6824 main ()
6825 {
6826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6827 test_array [0] = 0
6828
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840   (eval "$ac_compile") 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } && {
6847          test -z "$ac_c_werror_flag" ||
6848          test ! -s conftest.err
6849        } && test -s conftest.$ac_objext; then
6850   ac_hi=$ac_mid
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855         ac_lo=`expr '(' $ac_mid ')' + 1`
6856 fi
6857
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 done
6860 case $ac_lo in
6861 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6862 '') if test "$ac_cv_type_long_long" = yes; then
6863      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6864 See \`config.log' for more details." >&5
6865 echo "$as_me: error: cannot compute sizeof (long long)
6866 See \`config.log' for more details." >&2;}
6867    { (exit 77); exit 77; }; }
6868    else
6869      ac_cv_sizeof_long_long=0
6870    fi ;;
6871 esac
6872 else
6873   cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h.  */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h.  */
6879 $ac_includes_default
6880    typedef long long ac__type_sizeof_;
6881 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6882 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6883 #include <stdio.h>
6884 #include <stdlib.h>
6885 int
6886 main ()
6887 {
6888
6889   FILE *f = fopen ("conftest.val", "w");
6890   if (! f)
6891     return 1;
6892   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6893     {
6894       long int i = longval ();
6895       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6896         return 1;
6897       fprintf (f, "%ld\n", i);
6898     }
6899   else
6900     {
6901       unsigned long int i = ulongval ();
6902       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6903         return 1;
6904       fprintf (f, "%lu\n", i);
6905     }
6906   return ferror (f) || fclose (f) != 0;
6907
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6914 case "(($ac_try" in
6915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916   *) ac_try_echo=$ac_try;;
6917 esac
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919   (eval "$ac_link") 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6923   { (case "(($ac_try" in
6924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925   *) ac_try_echo=$ac_try;;
6926 esac
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928   (eval "$ac_try") 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   ac_cv_sizeof_long_long=`cat conftest.val`
6933 else
6934   echo "$as_me: program exited with status $ac_status" >&5
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ( exit $ac_status )
6939 if test "$ac_cv_type_long_long" = yes; then
6940      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot compute sizeof (long long)
6943 See \`config.log' for more details." >&2;}
6944    { (exit 77); exit 77; }; }
6945    else
6946      ac_cv_sizeof_long_long=0
6947    fi
6948 fi
6949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 rm -f conftest.val
6952 fi
6953 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6954 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6955
6956
6957
6958 cat >>confdefs.h <<_ACEOF
6959 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6960 _ACEOF
6961
6962
6963 { echo "$as_me:$LINENO: checking for void *" >&5
6964 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6965 if test "${ac_cv_type_void_p+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 $ac_includes_default
6975 typedef void * ac__type_new_;
6976 int
6977 main ()
6978 {
6979 if ((ac__type_new_ *) 0)
6980   return 0;
6981 if (sizeof (ac__type_new_))
6982   return 0;
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6989 case "(($ac_try" in
6990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991   *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994   (eval "$ac_compile") 2>conftest.er1
6995   ac_status=$?
6996   grep -v '^ *+' conftest.er1 >conftest.err
6997   rm -f conftest.er1
6998   cat conftest.err >&5
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && {
7001          test -z "$ac_c_werror_flag" ||
7002          test ! -s conftest.err
7003        } && test -s conftest.$ac_objext; then
7004   ac_cv_type_void_p=yes
7005 else
7006   echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009         ac_cv_type_void_p=no
7010 fi
7011
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7015 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7016
7017 # The cast to long int works around a bug in the HP C Compiler
7018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7020 # This bug is HP SR number 8606223364.
7021 { echo "$as_me:$LINENO: checking size of void *" >&5
7022 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7023 if test "${ac_cv_sizeof_void_p+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   if test "$cross_compiling" = yes; then
7027   # Depending upon the size, compute the lo and hi bounds.
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034 $ac_includes_default
7035    typedef void * ac__type_sizeof_;
7036 int
7037 main ()
7038 {
7039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7040 test_array [0] = 0
7041
7042   ;
7043   return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053   (eval "$ac_compile") 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } && {
7060          test -z "$ac_c_werror_flag" ||
7061          test ! -s conftest.err
7062        } && test -s conftest.$ac_objext; then
7063   ac_lo=0 ac_mid=0
7064   while :; do
7065     cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h.  */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h.  */
7071 $ac_includes_default
7072    typedef void * ac__type_sizeof_;
7073 int
7074 main ()
7075 {
7076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7077 test_array [0] = 0
7078
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (ac_try="$ac_compile"
7085 case "(($ac_try" in
7086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087   *) ac_try_echo=$ac_try;;
7088 esac
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090   (eval "$ac_compile") 2>conftest.er1
7091   ac_status=$?
7092   grep -v '^ *+' conftest.er1 >conftest.err
7093   rm -f conftest.er1
7094   cat conftest.err >&5
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } && {
7097          test -z "$ac_c_werror_flag" ||
7098          test ! -s conftest.err
7099        } && test -s conftest.$ac_objext; then
7100   ac_hi=$ac_mid; break
7101 else
7102   echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7104
7105         ac_lo=`expr $ac_mid + 1`
7106                         if test $ac_lo -le $ac_mid; then
7107                           ac_lo= ac_hi=
7108                           break
7109                         fi
7110                         ac_mid=`expr 2 '*' $ac_mid + 1`
7111 fi
7112
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114   done
7115 else
7116   echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119         cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h.  */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h.  */
7125 $ac_includes_default
7126    typedef void * ac__type_sizeof_;
7127 int
7128 main ()
7129 {
7130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7131 test_array [0] = 0
7132
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7139 case "(($ac_try" in
7140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141   *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144   (eval "$ac_compile") 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } && {
7151          test -z "$ac_c_werror_flag" ||
7152          test ! -s conftest.err
7153        } && test -s conftest.$ac_objext; then
7154   ac_hi=-1 ac_mid=-1
7155   while :; do
7156     cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h.  */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h.  */
7162 $ac_includes_default
7163    typedef void * ac__type_sizeof_;
7164 int
7165 main ()
7166 {
7167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7168 test_array [0] = 0
7169
7170   ;
7171   return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext
7175 if { (ac_try="$ac_compile"
7176 case "(($ac_try" in
7177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178   *) ac_try_echo=$ac_try;;
7179 esac
7180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181   (eval "$ac_compile") 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } && {
7188          test -z "$ac_c_werror_flag" ||
7189          test ! -s conftest.err
7190        } && test -s conftest.$ac_objext; then
7191   ac_lo=$ac_mid; break
7192 else
7193   echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196         ac_hi=`expr '(' $ac_mid ')' - 1`
7197                         if test $ac_mid -le $ac_hi; then
7198                           ac_lo= ac_hi=
7199                           break
7200                         fi
7201                         ac_mid=`expr 2 '*' $ac_mid`
7202 fi
7203
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205   done
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210         ac_lo= ac_hi=
7211 fi
7212
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 fi
7215
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 # Binary search between lo and hi bounds.
7218 while test "x$ac_lo" != "x$ac_hi"; do
7219   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 $ac_includes_default
7227    typedef void * ac__type_sizeof_;
7228 int
7229 main ()
7230 {
7231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7232 test_array [0] = 0
7233
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7240 case "(($ac_try" in
7241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242   *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245   (eval "$ac_compile") 2>conftest.er1
7246   ac_status=$?
7247   grep -v '^ *+' conftest.er1 >conftest.err
7248   rm -f conftest.er1
7249   cat conftest.err >&5
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } && {
7252          test -z "$ac_c_werror_flag" ||
7253          test ! -s conftest.err
7254        } && test -s conftest.$ac_objext; then
7255   ac_hi=$ac_mid
7256 else
7257   echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7259
7260         ac_lo=`expr '(' $ac_mid ')' + 1`
7261 fi
7262
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 done
7265 case $ac_lo in
7266 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7267 '') if test "$ac_cv_type_void_p" = yes; then
7268      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7269 See \`config.log' for more details." >&5
7270 echo "$as_me: error: cannot compute sizeof (void *)
7271 See \`config.log' for more details." >&2;}
7272    { (exit 77); exit 77; }; }
7273    else
7274      ac_cv_sizeof_void_p=0
7275    fi ;;
7276 esac
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 $ac_includes_default
7285    typedef void * ac__type_sizeof_;
7286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7288 #include <stdio.h>
7289 #include <stdlib.h>
7290 int
7291 main ()
7292 {
7293
7294   FILE *f = fopen ("conftest.val", "w");
7295   if (! f)
7296     return 1;
7297   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7298     {
7299       long int i = longval ();
7300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7301         return 1;
7302       fprintf (f, "%ld\n", i);
7303     }
7304   else
7305     {
7306       unsigned long int i = ulongval ();
7307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7308         return 1;
7309       fprintf (f, "%lu\n", i);
7310     }
7311   return ferror (f) || fclose (f) != 0;
7312
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 rm -f conftest$ac_exeext
7318 if { (ac_try="$ac_link"
7319 case "(($ac_try" in
7320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321   *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324   (eval "$ac_link") 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7328   { (case "(($ac_try" in
7329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330   *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333   (eval "$ac_try") 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; }; then
7337   ac_cv_sizeof_void_p=`cat conftest.val`
7338 else
7339   echo "$as_me: program exited with status $ac_status" >&5
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7342
7343 ( exit $ac_status )
7344 if test "$ac_cv_type_void_p" = yes; then
7345      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7346 See \`config.log' for more details." >&5
7347 echo "$as_me: error: cannot compute sizeof (void *)
7348 See \`config.log' for more details." >&2;}
7349    { (exit 77); exit 77; }; }
7350    else
7351      ac_cv_sizeof_void_p=0
7352    fi
7353 fi
7354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 rm -f conftest.val
7357 fi
7358 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7359 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7360
7361
7362
7363 cat >>confdefs.h <<_ACEOF
7364 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7365 _ACEOF
7366
7367
7368
7369 { echo "$as_me:$LINENO: checking for size_t" >&5
7370 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7371 if test "${ac_cv_type_size_t+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 $ac_includes_default
7381 typedef size_t ac__type_new_;
7382 int
7383 main ()
7384 {
7385 if ((ac__type_new_ *) 0)
7386   return 0;
7387 if (sizeof (ac__type_new_))
7388   return 0;
7389   ;
7390   return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7395 case "(($ac_try" in
7396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397   *) ac_try_echo=$ac_try;;
7398 esac
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400   (eval "$ac_compile") 2>conftest.er1
7401   ac_status=$?
7402   grep -v '^ *+' conftest.er1 >conftest.err
7403   rm -f conftest.er1
7404   cat conftest.err >&5
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } && {
7407          test -z "$ac_c_werror_flag" ||
7408          test ! -s conftest.err
7409        } && test -s conftest.$ac_objext; then
7410   ac_cv_type_size_t=yes
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415         ac_cv_type_size_t=no
7416 fi
7417
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7421 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7422 if test $ac_cv_type_size_t = yes; then
7423   :
7424 else
7425
7426 cat >>confdefs.h <<_ACEOF
7427 #define size_t unsigned int
7428 _ACEOF
7429
7430 fi
7431
7432 { echo "$as_me:$LINENO: checking for pid_t" >&5
7433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7434 if test "${ac_cv_type_pid_t+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443 $ac_includes_default
7444 typedef pid_t ac__type_new_;
7445 int
7446 main ()
7447 {
7448 if ((ac__type_new_ *) 0)
7449   return 0;
7450 if (sizeof (ac__type_new_))
7451   return 0;
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (ac_try="$ac_compile"
7458 case "(($ac_try" in
7459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460   *) ac_try_echo=$ac_try;;
7461 esac
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463   (eval "$ac_compile") 2>conftest.er1
7464   ac_status=$?
7465   grep -v '^ *+' conftest.er1 >conftest.err
7466   rm -f conftest.er1
7467   cat conftest.err >&5
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } && {
7470          test -z "$ac_c_werror_flag" ||
7471          test ! -s conftest.err
7472        } && test -s conftest.$ac_objext; then
7473   ac_cv_type_pid_t=yes
7474 else
7475   echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478         ac_cv_type_pid_t=no
7479 fi
7480
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7484 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7485 if test $ac_cv_type_pid_t = yes; then
7486   :
7487 else
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define pid_t int
7491 _ACEOF
7492
7493 fi
7494
7495 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7496 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7497 if test "${ac_cv_type_uint32_t+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 $ac_includes_default
7507 typedef uint32_t ac__type_new_;
7508 int
7509 main ()
7510 {
7511 if ((ac__type_new_ *) 0)
7512   return 0;
7513 if (sizeof (ac__type_new_))
7514   return 0;
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7521 case "(($ac_try" in
7522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523   *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526   (eval "$ac_compile") 2>conftest.er1
7527   ac_status=$?
7528   grep -v '^ *+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } && {
7533          test -z "$ac_c_werror_flag" ||
7534          test ! -s conftest.err
7535        } && test -s conftest.$ac_objext; then
7536   ac_cv_type_uint32_t=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541         ac_cv_type_uint32_t=no
7542 fi
7543
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7547 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7548 if test $ac_cv_type_uint32_t = yes; then
7549
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_UINT32_T 1
7552 _ACEOF
7553
7554
7555 fi
7556 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
7557 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
7558 if test "${ac_cv_type_uintptr_t+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567 $ac_includes_default
7568 typedef uintptr_t ac__type_new_;
7569 int
7570 main ()
7571 {
7572 if ((ac__type_new_ *) 0)
7573   return 0;
7574 if (sizeof (ac__type_new_))
7575   return 0;
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7582 case "(($ac_try" in
7583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584   *) ac_try_echo=$ac_try;;
7585 esac
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587   (eval "$ac_compile") 2>conftest.er1
7588   ac_status=$?
7589   grep -v '^ *+' conftest.er1 >conftest.err
7590   rm -f conftest.er1
7591   cat conftest.err >&5
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } && {
7594          test -z "$ac_c_werror_flag" ||
7595          test ! -s conftest.err
7596        } && test -s conftest.$ac_objext; then
7597   ac_cv_type_uintptr_t=yes
7598 else
7599   echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602         ac_cv_type_uintptr_t=no
7603 fi
7604
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 fi
7607 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7608 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
7609 if test $ac_cv_type_uintptr_t = yes; then
7610
7611 cat >>confdefs.h <<_ACEOF
7612 #define HAVE_UINTPTR_T 1
7613 _ACEOF
7614
7615
7616 fi
7617 { echo "$as_me:$LINENO: checking for intptr_t" >&5
7618 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
7619 if test "${ac_cv_type_intptr_t+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 $ac_includes_default
7629 typedef intptr_t ac__type_new_;
7630 int
7631 main ()
7632 {
7633 if ((ac__type_new_ *) 0)
7634   return 0;
7635 if (sizeof (ac__type_new_))
7636   return 0;
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648   (eval "$ac_compile") 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } && {
7655          test -z "$ac_c_werror_flag" ||
7656          test ! -s conftest.err
7657        } && test -s conftest.$ac_objext; then
7658   ac_cv_type_intptr_t=yes
7659 else
7660   echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663         ac_cv_type_intptr_t=no
7664 fi
7665
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
7669 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
7670 if test $ac_cv_type_intptr_t = yes; then
7671
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_INTPTR_T 1
7674 _ACEOF
7675
7676
7677 fi
7678 { echo "$as_me:$LINENO: checking for int64_t" >&5
7679 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7680 if test "${ac_cv_type_int64_t+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 $ac_includes_default
7690 typedef int64_t ac__type_new_;
7691 int
7692 main ()
7693 {
7694 if ((ac__type_new_ *) 0)
7695   return 0;
7696 if (sizeof (ac__type_new_))
7697   return 0;
7698   ;
7699   return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706   *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709   (eval "$ac_compile") 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } && {
7716          test -z "$ac_c_werror_flag" ||
7717          test ! -s conftest.err
7718        } && test -s conftest.$ac_objext; then
7719   ac_cv_type_int64_t=yes
7720 else
7721   echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7723
7724         ac_cv_type_int64_t=no
7725 fi
7726
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7730 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7731 if test $ac_cv_type_int64_t = yes; then
7732
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_INT64_T 1
7735 _ACEOF
7736
7737
7738 fi
7739
7740 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
7741 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
7742 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h.  */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h.  */
7751
7752 #include <stdio.h>
7753 #include <sys/types.h>
7754 #if HAVE_INTTYPES_H
7755 # include <inttypes.h>
7756 #endif
7757 #include <signal.h>
7758
7759
7760 typedef sig_atomic_t ac__type_new_;
7761 int
7762 main ()
7763 {
7764 if ((ac__type_new_ *) 0)
7765   return 0;
7766 if (sizeof (ac__type_new_))
7767   return 0;
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779   (eval "$ac_compile") 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } && {
7786          test -z "$ac_c_werror_flag" ||
7787          test ! -s conftest.err
7788        } && test -s conftest.$ac_objext; then
7789   ac_cv_type_sig_atomic_t=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794         ac_cv_type_sig_atomic_t=no
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
7800 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
7801 if test $ac_cv_type_sig_atomic_t = yes; then
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_SIG_ATOMIC_T 1
7805 _ACEOF
7806
7807
7808 fi
7809
7810
7811 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7812 # for constant arguments.  Useless!
7813 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7814 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7815 if test "${ac_cv_working_alloca_h+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818   cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h.  */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h.  */
7824 #include <alloca.h>
7825 int
7826 main ()
7827 {
7828 char *p = (char *) alloca (2 * sizeof (int));
7829                           if (p) return 0;
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 rm -f conftest.$ac_objext conftest$ac_exeext
7835 if { (ac_try="$ac_link"
7836 case "(($ac_try" in
7837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838   *) ac_try_echo=$ac_try;;
7839 esac
7840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7841   (eval "$ac_link") 2>conftest.er1
7842   ac_status=$?
7843   grep -v '^ *+' conftest.er1 >conftest.err
7844   rm -f conftest.er1
7845   cat conftest.err >&5
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); } && {
7848          test -z "$ac_c_werror_flag" ||
7849          test ! -s conftest.err
7850        } && test -s conftest$ac_exeext &&
7851        $as_test_x conftest$ac_exeext; then
7852   ac_cv_working_alloca_h=yes
7853 else
7854   echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857         ac_cv_working_alloca_h=no
7858 fi
7859
7860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7861       conftest$ac_exeext conftest.$ac_ext
7862 fi
7863 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7864 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7865 if test $ac_cv_working_alloca_h = yes; then
7866
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_ALLOCA_H 1
7869 _ACEOF
7870
7871 fi
7872
7873 { echo "$as_me:$LINENO: checking for alloca" >&5
7874 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7875 if test "${ac_cv_func_alloca_works+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 #ifdef __GNUC__
7885 # define alloca __builtin_alloca
7886 #else
7887 # ifdef _MSC_VER
7888 #  include <malloc.h>
7889 #  define alloca _alloca
7890 # else
7891 #  ifdef HAVE_ALLOCA_H
7892 #   include <alloca.h>
7893 #  else
7894 #   ifdef _AIX
7895  #pragma alloca
7896 #   else
7897 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7898 char *alloca ();
7899 #    endif
7900 #   endif
7901 #  endif
7902 # endif
7903 #endif
7904
7905 int
7906 main ()
7907 {
7908 char *p = (char *) alloca (1);
7909                                     if (p) return 0;
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_link") 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } && {
7928          test -z "$ac_c_werror_flag" ||
7929          test ! -s conftest.err
7930        } && test -s conftest$ac_exeext &&
7931        $as_test_x conftest$ac_exeext; then
7932   ac_cv_func_alloca_works=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937         ac_cv_func_alloca_works=no
7938 fi
7939
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941       conftest$ac_exeext conftest.$ac_ext
7942 fi
7943 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7944 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7945
7946 if test $ac_cv_func_alloca_works = yes; then
7947
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_ALLOCA 1
7950 _ACEOF
7951
7952 else
7953   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7954 # that cause trouble.  Some versions do not even contain alloca or
7955 # contain a buggy version.  If you still want to use their alloca,
7956 # use ar to extract alloca.o from them instead of compiling alloca.c.
7957
7958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7959
7960 cat >>confdefs.h <<\_ACEOF
7961 #define C_ALLOCA 1
7962 _ACEOF
7963
7964
7965 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7966 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7967 if test "${ac_cv_os_cray+set}" = set; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970   cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976 #if defined CRAY && ! defined CRAY2
7977 webecray
7978 #else
7979 wenotbecray
7980 #endif
7981
7982 _ACEOF
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984   $EGREP "webecray" >/dev/null 2>&1; then
7985   ac_cv_os_cray=yes
7986 else
7987   ac_cv_os_cray=no
7988 fi
7989 rm -f conftest*
7990
7991 fi
7992 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7993 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7994 if test $ac_cv_os_cray = yes; then
7995   for ac_func in _getb67 GETB67 getb67; do
7996     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002   cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8010 #define $ac_func innocuous_$ac_func
8011
8012 /* System header to define __stub macros and hopefully few prototypes,
8013     which can conflict with char $ac_func (); below.
8014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8015     <limits.h> exists even on freestanding compilers.  */
8016
8017 #ifdef __STDC__
8018 # include <limits.h>
8019 #else
8020 # include <assert.h>
8021 #endif
8022
8023 #undef $ac_func
8024
8025 /* Override any GCC internal prototype to avoid an error.
8026    Use char because int might match the return type of a GCC
8027    builtin and then its argument prototype would still apply.  */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 char $ac_func ();
8032 /* The GNU C library defines this for functions which it implements
8033     to always fail with ENOSYS.  Some functions are actually named
8034     something starting with __ and the normal name is an alias.  */
8035 #if defined __stub_$ac_func || defined __stub___$ac_func
8036 choke me
8037 #endif
8038
8039 int
8040 main ()
8041 {
8042 return $ac_func ();
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8049 case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_link") 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } && {
8061          test -z "$ac_c_werror_flag" ||
8062          test ! -s conftest.err
8063        } && test -s conftest$ac_exeext &&
8064        $as_test_x conftest$ac_exeext; then
8065   eval "$as_ac_var=yes"
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070         eval "$as_ac_var=no"
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074       conftest$ac_exeext conftest.$ac_ext
8075 fi
8076 ac_res=`eval echo '${'$as_ac_var'}'`
8077                { echo "$as_me:$LINENO: result: $ac_res" >&5
8078 echo "${ECHO_T}$ac_res" >&6; }
8079 if test `eval echo '${'$as_ac_var'}'` = yes; then
8080
8081 cat >>confdefs.h <<_ACEOF
8082 #define CRAY_STACKSEG_END $ac_func
8083 _ACEOF
8084
8085     break
8086 fi
8087
8088   done
8089 fi
8090
8091 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8092 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8093 if test "${ac_cv_c_stack_direction+set}" = set; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   if test "$cross_compiling" = yes; then
8097   ac_cv_c_stack_direction=0
8098 else
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 $ac_includes_default
8106 int
8107 find_stack_direction ()
8108 {
8109   static char *addr = 0;
8110   auto char dummy;
8111   if (addr == 0)
8112     {
8113       addr = &dummy;
8114       return find_stack_direction ();
8115     }
8116   else
8117     return (&dummy > addr) ? 1 : -1;
8118 }
8119
8120 int
8121 main ()
8122 {
8123   return find_stack_direction () < 0;
8124 }
8125 _ACEOF
8126 rm -f conftest$ac_exeext
8127 if { (ac_try="$ac_link"
8128 case "(($ac_try" in
8129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130   *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133   (eval "$ac_link") 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8137   { (case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_try") 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   ac_cv_c_stack_direction=1
8147 else
8148   echo "$as_me: program exited with status $ac_status" >&5
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ( exit $ac_status )
8153 ac_cv_c_stack_direction=-1
8154 fi
8155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8156 fi
8157
8158
8159 fi
8160 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8161 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define STACK_DIRECTION $ac_cv_c_stack_direction
8165 _ACEOF
8166
8167
8168 fi
8169
8170
8171
8172 for ac_header in stdlib.h unistd.h
8173 do
8174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 fi
8181 ac_res=`eval echo '${'$as_ac_Header'}'`
8182                { echo "$as_me:$LINENO: result: $ac_res" >&5
8183 echo "${ECHO_T}$ac_res" >&6; }
8184 else
8185   # Is the header compilable?
8186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8188 cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194 $ac_includes_default
8195 #include <$ac_header>
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_compile") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } && {
8211          test -z "$ac_c_werror_flag" ||
8212          test ! -s conftest.err
8213        } && test -s conftest.$ac_objext; then
8214   ac_header_compiler=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219         ac_header_compiler=no
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8224 echo "${ECHO_T}$ac_header_compiler" >&6; }
8225
8226 # Is the header present?
8227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235 #include <$ac_header>
8236 _ACEOF
8237 if { (ac_try="$ac_cpp conftest.$ac_ext"
8238 case "(($ac_try" in
8239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240   *) ac_try_echo=$ac_try;;
8241 esac
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8244   ac_status=$?
8245   grep -v '^ *+' conftest.er1 >conftest.err
8246   rm -f conftest.er1
8247   cat conftest.err >&5
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); } >/dev/null && {
8250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8251          test ! -s conftest.err
8252        }; then
8253   ac_header_preproc=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258   ac_header_preproc=no
8259 fi
8260
8261 rm -f conftest.err conftest.$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8263 echo "${ECHO_T}$ac_header_preproc" >&6; }
8264
8265 # So?  What about this header?
8266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8267   yes:no: )
8268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8272     ac_header_preproc=yes
8273     ;;
8274   no:yes:* )
8275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8287
8288     ;;
8289 esac
8290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295   eval "$as_ac_Header=\$ac_header_preproc"
8296 fi
8297 ac_res=`eval echo '${'$as_ac_Header'}'`
8298                { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8300
8301 fi
8302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8303   cat >>confdefs.h <<_ACEOF
8304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8305 _ACEOF
8306
8307 fi
8308
8309 done
8310
8311
8312 for ac_func in getpagesize
8313 do
8314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8328 #define $ac_func innocuous_$ac_func
8329
8330 /* System header to define __stub macros and hopefully few prototypes,
8331     which can conflict with char $ac_func (); below.
8332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333     <limits.h> exists even on freestanding compilers.  */
8334
8335 #ifdef __STDC__
8336 # include <limits.h>
8337 #else
8338 # include <assert.h>
8339 #endif
8340
8341 #undef $ac_func
8342
8343 /* Override any GCC internal prototype to avoid an error.
8344    Use char because int might match the return type of a GCC
8345    builtin and then its argument prototype would still apply.  */
8346 #ifdef __cplusplus
8347 extern "C"
8348 #endif
8349 char $ac_func ();
8350 /* The GNU C library defines this for functions which it implements
8351     to always fail with ENOSYS.  Some functions are actually named
8352     something starting with __ and the normal name is an alias.  */
8353 #if defined __stub_$ac_func || defined __stub___$ac_func
8354 choke me
8355 #endif
8356
8357 int
8358 main ()
8359 {
8360 return $ac_func ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (ac_try="$ac_link"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_link") 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } && {
8379          test -z "$ac_c_werror_flag" ||
8380          test ! -s conftest.err
8381        } && test -s conftest$ac_exeext &&
8382        $as_test_x conftest$ac_exeext; then
8383   eval "$as_ac_var=yes"
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388         eval "$as_ac_var=no"
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8392       conftest$ac_exeext conftest.$ac_ext
8393 fi
8394 ac_res=`eval echo '${'$as_ac_var'}'`
8395                { echo "$as_me:$LINENO: result: $ac_res" >&5
8396 echo "${ECHO_T}$ac_res" >&6; }
8397 if test `eval echo '${'$as_ac_var'}'` = yes; then
8398   cat >>confdefs.h <<_ACEOF
8399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8400 _ACEOF
8401
8402 fi
8403 done
8404
8405 { echo "$as_me:$LINENO: checking for working mmap" >&5
8406 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8407 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   if test "$cross_compiling" = yes; then
8411   ac_cv_func_mmap_fixed_mapped=no
8412 else
8413   cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h.  */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h.  */
8419 $ac_includes_default
8420 /* malloc might have been renamed as rpl_malloc. */
8421 #undef malloc
8422
8423 /* Thanks to Mike Haertel and Jim Avera for this test.
8424    Here is a matrix of mmap possibilities:
8425         mmap private not fixed
8426         mmap private fixed at somewhere currently unmapped
8427         mmap private fixed at somewhere already mapped
8428         mmap shared not fixed
8429         mmap shared fixed at somewhere currently unmapped
8430         mmap shared fixed at somewhere already mapped
8431    For private mappings, we should verify that changes cannot be read()
8432    back from the file, nor mmap's back from the file at a different
8433    address.  (There have been systems where private was not correctly
8434    implemented like the infamous i386 svr4.0, and systems where the
8435    VM page cache was not coherent with the file system buffer cache
8436    like early versions of FreeBSD and possibly contemporary NetBSD.)
8437    For shared mappings, we should conversely verify that changes get
8438    propagated back to all the places they're supposed to be.
8439
8440    Grep wants private fixed already mapped.
8441    The main things grep needs to know about mmap are:
8442    * does it exist and is it safe to write into the mmap'd area
8443    * how to use it (BSD variants)  */
8444
8445 #include <fcntl.h>
8446 #include <sys/mman.h>
8447
8448 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8449 char *malloc ();
8450 #endif
8451
8452 /* This mess was copied from the GNU getpagesize.h.  */
8453 #ifndef HAVE_GETPAGESIZE
8454 /* Assume that all systems that can run configure have sys/param.h.  */
8455 # ifndef HAVE_SYS_PARAM_H
8456 #  define HAVE_SYS_PARAM_H 1
8457 # endif
8458
8459 # ifdef _SC_PAGESIZE
8460 #  define getpagesize() sysconf(_SC_PAGESIZE)
8461 # else /* no _SC_PAGESIZE */
8462 #  ifdef HAVE_SYS_PARAM_H
8463 #   include <sys/param.h>
8464 #   ifdef EXEC_PAGESIZE
8465 #    define getpagesize() EXEC_PAGESIZE
8466 #   else /* no EXEC_PAGESIZE */
8467 #    ifdef NBPG
8468 #     define getpagesize() NBPG * CLSIZE
8469 #     ifndef CLSIZE
8470 #      define CLSIZE 1
8471 #     endif /* no CLSIZE */
8472 #    else /* no NBPG */
8473 #     ifdef NBPC
8474 #      define getpagesize() NBPC
8475 #     else /* no NBPC */
8476 #      ifdef PAGESIZE
8477 #       define getpagesize() PAGESIZE
8478 #      endif /* PAGESIZE */
8479 #     endif /* no NBPC */
8480 #    endif /* no NBPG */
8481 #   endif /* no EXEC_PAGESIZE */
8482 #  else /* no HAVE_SYS_PARAM_H */
8483 #   define getpagesize() 8192   /* punt totally */
8484 #  endif /* no HAVE_SYS_PARAM_H */
8485 # endif /* no _SC_PAGESIZE */
8486
8487 #endif /* no HAVE_GETPAGESIZE */
8488
8489 int
8490 main ()
8491 {
8492   char *data, *data2, *data3;
8493   int i, pagesize;
8494   int fd;
8495
8496   pagesize = getpagesize ();
8497
8498   /* First, make a file with some known garbage in it. */
8499   data = (char *) malloc (pagesize);
8500   if (!data)
8501     return 1;
8502   for (i = 0; i < pagesize; ++i)
8503     *(data + i) = rand ();
8504   umask (0);
8505   fd = creat ("conftest.mmap", 0600);
8506   if (fd < 0)
8507     return 1;
8508   if (write (fd, data, pagesize) != pagesize)
8509     return 1;
8510   close (fd);
8511
8512   /* Next, try to mmap the file at a fixed address which already has
8513      something else allocated at it.  If we can, also make sure that
8514      we see the same garbage.  */
8515   fd = open ("conftest.mmap", O_RDWR);
8516   if (fd < 0)
8517     return 1;
8518   data2 = (char *) malloc (2 * pagesize);
8519   if (!data2)
8520     return 1;
8521   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8522   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8523                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8524     return 1;
8525   for (i = 0; i < pagesize; ++i)
8526     if (*(data + i) != *(data2 + i))
8527       return 1;
8528
8529   /* Finally, make sure that changes to the mapped area do not
8530      percolate back to the file as seen by read().  (This is a bug on
8531      some variants of i386 svr4.0.)  */
8532   for (i = 0; i < pagesize; ++i)
8533     *(data2 + i) = *(data2 + i) + 1;
8534   data3 = (char *) malloc (pagesize);
8535   if (!data3)
8536     return 1;
8537   if (read (fd, data3, pagesize) != pagesize)
8538     return 1;
8539   for (i = 0; i < pagesize; ++i)
8540     if (*(data + i) != *(data3 + i))
8541       return 1;
8542   close (fd);
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553   (eval "$ac_link") 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8557   { (case "(($ac_try" in
8558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559   *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562   (eval "$ac_try") 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_func_mmap_fixed_mapped=yes
8567 else
8568   echo "$as_me: program exited with status $ac_status" >&5
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ( exit $ac_status )
8573 ac_cv_func_mmap_fixed_mapped=no
8574 fi
8575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8576 fi
8577
8578
8579 fi
8580 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8581 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8582 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8583
8584 cat >>confdefs.h <<\_ACEOF
8585 #define HAVE_MMAP 1
8586 _ACEOF
8587
8588 fi
8589 rm -f conftest.mmap
8590
8591 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8592 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
8593 if test "${ac_cv_sys_largefile_source+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   while :; do
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603 #include <sys/types.h> /* for off_t */
8604      #include <stdio.h>
8605 int
8606 main ()
8607 {
8608 int (*fp) (FILE *, off_t, int) = fseeko;
8609      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_link") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && {
8628          test -z "$ac_c_werror_flag" ||
8629          test ! -s conftest.err
8630        } && test -s conftest$ac_exeext &&
8631        $as_test_x conftest$ac_exeext; then
8632   ac_cv_sys_largefile_source=no; break
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637
8638 fi
8639
8640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8641       conftest$ac_exeext conftest.$ac_ext
8642   cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648 #define _LARGEFILE_SOURCE 1
8649 #include <sys/types.h> /* for off_t */
8650      #include <stdio.h>
8651 int
8652 main ()
8653 {
8654 int (*fp) (FILE *, off_t, int) = fseeko;
8655      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8662 case "(($ac_try" in
8663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664   *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667   (eval "$ac_link") 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   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_exeext &&
8677        $as_test_x conftest$ac_exeext; then
8678   ac_cv_sys_largefile_source=1; break
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683
8684 fi
8685
8686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687       conftest$ac_exeext conftest.$ac_ext
8688   ac_cv_sys_largefile_source=unknown
8689   break
8690 done
8691 fi
8692 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8693 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
8694 case $ac_cv_sys_largefile_source in #(
8695   no | unknown) ;;
8696   *)
8697 cat >>confdefs.h <<_ACEOF
8698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8699 _ACEOF
8700 ;;
8701 esac
8702 rm -f conftest*
8703
8704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8705 # in glibc 2.1.3, but that breaks too many other things.
8706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8707 if test $ac_cv_sys_largefile_source != unknown; then
8708
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_FSEEKO 1
8711 _ACEOF
8712
8713 fi
8714
8715
8716
8717
8718
8719
8720
8721 for ac_func in strptime timegm snprintf vsnprintf vasprintf drand48
8722 do
8723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8737 #define $ac_func innocuous_$ac_func
8738
8739 /* System header to define __stub macros and hopefully few prototypes,
8740     which can conflict with char $ac_func (); below.
8741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8742     <limits.h> exists even on freestanding compilers.  */
8743
8744 #ifdef __STDC__
8745 # include <limits.h>
8746 #else
8747 # include <assert.h>
8748 #endif
8749
8750 #undef $ac_func
8751
8752 /* Override any GCC internal prototype to avoid an error.
8753    Use char because int might match the return type of a GCC
8754    builtin and then its argument prototype would still apply.  */
8755 #ifdef __cplusplus
8756 extern "C"
8757 #endif
8758 char $ac_func ();
8759 /* The GNU C library defines this for functions which it implements
8760     to always fail with ENOSYS.  Some functions are actually named
8761     something starting with __ and the normal name is an alias.  */
8762 #if defined __stub_$ac_func || defined __stub___$ac_func
8763 choke me
8764 #endif
8765
8766 int
8767 main ()
8768 {
8769 return $ac_func ();
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778   *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781   (eval "$ac_link") 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } && {
8788          test -z "$ac_c_werror_flag" ||
8789          test ! -s conftest.err
8790        } && test -s conftest$ac_exeext &&
8791        $as_test_x conftest$ac_exeext; then
8792   eval "$as_ac_var=yes"
8793 else
8794   echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797         eval "$as_ac_var=no"
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801       conftest$ac_exeext conftest.$ac_ext
8802 fi
8803 ac_res=`eval echo '${'$as_ac_var'}'`
8804                { echo "$as_me:$LINENO: result: $ac_res" >&5
8805 echo "${ECHO_T}$ac_res" >&6; }
8806 if test `eval echo '${'$as_ac_var'}'` = yes; then
8807   cat >>confdefs.h <<_ACEOF
8808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8809 _ACEOF
8810
8811 fi
8812 done
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822 for ac_func in strtoll usleep ftello sigblock sigsetjmp memrchr wcwidth mbtowc
8823 do
8824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830   cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8838 #define $ac_func innocuous_$ac_func
8839
8840 /* System header to define __stub macros and hopefully few prototypes,
8841     which can conflict with char $ac_func (); below.
8842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8843     <limits.h> exists even on freestanding compilers.  */
8844
8845 #ifdef __STDC__
8846 # include <limits.h>
8847 #else
8848 # include <assert.h>
8849 #endif
8850
8851 #undef $ac_func
8852
8853 /* Override any GCC internal prototype to avoid an error.
8854    Use char because int might match the return type of a GCC
8855    builtin and then its argument prototype would still apply.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 char $ac_func ();
8860 /* The GNU C library defines this for functions which it implements
8861     to always fail with ENOSYS.  Some functions are actually named
8862     something starting with __ and the normal name is an alias.  */
8863 #if defined __stub_$ac_func || defined __stub___$ac_func
8864 choke me
8865 #endif
8866
8867 int
8868 main ()
8869 {
8870 return $ac_func ();
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8877 case "(($ac_try" in
8878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879   *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882   (eval "$ac_link") 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } && {
8889          test -z "$ac_c_werror_flag" ||
8890          test ! -s conftest.err
8891        } && test -s conftest$ac_exeext &&
8892        $as_test_x conftest$ac_exeext; then
8893   eval "$as_ac_var=yes"
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898         eval "$as_ac_var=no"
8899 fi
8900
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902       conftest$ac_exeext conftest.$ac_ext
8903 fi
8904 ac_res=`eval echo '${'$as_ac_var'}'`
8905                { echo "$as_me:$LINENO: result: $ac_res" >&5
8906 echo "${ECHO_T}$ac_res" >&6; }
8907 if test `eval echo '${'$as_ac_var'}'` = yes; then
8908   cat >>confdefs.h <<_ACEOF
8909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910 _ACEOF
8911
8912 fi
8913 done
8914
8915
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_STRCASECMP 1
8919 _ACEOF
8920
8921
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_STRNCASECMP 1
8924 _ACEOF
8925
8926
8927 cat >>confdefs.h <<\_ACEOF
8928 #define HAVE_STRDUP 1
8929 _ACEOF
8930
8931
8932 cat >>confdefs.h <<\_ACEOF
8933 #define HAVE_ISATTY 1
8934 _ACEOF
8935
8936
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_SYMLINK 1
8939 _ACEOF
8940
8941
8942
8943   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8944 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
8945 if test "${ac_cv_type_struct_utimbuf+set}" = set; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948   cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954
8955 #include <stdio.h>
8956 #if HAVE_SYS_TYPES_H
8957 # include <sys/types.h>
8958 #endif
8959 #if HAVE_UTIME_H
8960 # include <utime.h>
8961 #endif
8962
8963
8964 typedef struct utimbuf ac__type_new_;
8965 int
8966 main ()
8967 {
8968 if ((ac__type_new_ *) 0)
8969   return 0;
8970 if (sizeof (ac__type_new_))
8971   return 0;
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8978 case "(($ac_try" in
8979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980   *) ac_try_echo=$ac_try;;
8981 esac
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983   (eval "$ac_compile") 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } && {
8990          test -z "$ac_c_werror_flag" ||
8991          test ! -s conftest.err
8992        } && test -s conftest.$ac_objext; then
8993   ac_cv_type_struct_utimbuf=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998         ac_cv_type_struct_utimbuf=no
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
9004 echo "${ECHO_T}$ac_cv_type_struct_utimbuf" >&6; }
9005 if test $ac_cv_type_struct_utimbuf = yes; then
9006
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_STRUCT_UTIMBUF 1
9009 _ACEOF
9010
9011
9012 fi
9013
9014
9015
9016   { echo "$as_me:$LINENO: checking for socklen_t" >&5
9017 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
9018   cat >conftest.$ac_ext <<_ACEOF
9019
9020 #include <sys/types.h>
9021 #include <sys/socket.h>
9022 socklen_t x;
9023
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9027 case "(($ac_try" in
9028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029   *) ac_try_echo=$ac_try;;
9030 esac
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032   (eval "$ac_compile") 2>conftest.er1
9033   ac_status=$?
9034   grep -v '^ *+' conftest.er1 >conftest.err
9035   rm -f conftest.er1
9036   cat conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } && {
9039          test -z "$ac_c_werror_flag" ||
9040          test ! -s conftest.err
9041        } && test -s conftest.$ac_objext; then
9042   { echo "$as_me:$LINENO: result: socklen_t" >&5
9043 echo "${ECHO_T}socklen_t" >&6; }
9044 else
9045   echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9047
9048
9049     cat >conftest.$ac_ext <<_ACEOF
9050
9051 #include <sys/types.h>
9052 #include <sys/socket.h>
9053 int accept (int, struct sockaddr *, size_t *);
9054
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9058 case "(($ac_try" in
9059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060   *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063   (eval "$ac_compile") 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } && {
9070          test -z "$ac_c_werror_flag" ||
9071          test ! -s conftest.err
9072        } && test -s conftest.$ac_objext; then
9073
9074       { echo "$as_me:$LINENO: result: size_t" >&5
9075 echo "${ECHO_T}size_t" >&6; }
9076
9077 cat >>confdefs.h <<\_ACEOF
9078 #define socklen_t size_t
9079 _ACEOF
9080
9081
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086
9087       { echo "$as_me:$LINENO: result: int" >&5
9088 echo "${ECHO_T}int" >&6; }
9089
9090 cat >>confdefs.h <<\_ACEOF
9091 #define socklen_t int
9092 _ACEOF
9093
9094
9095 fi
9096
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098
9099 fi
9100
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102
9103
9104   { echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
9105 echo $ECHO_N "checking for working fnmatch.h... $ECHO_C" >&6; }
9106   cat >conftest.$ac_ext <<_ACEOF
9107 #include <fnmatch.h>
9108
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117   (eval "$ac_compile") 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } && {
9124          test -z "$ac_c_werror_flag" ||
9125          test ! -s conftest.err
9126        } && test -s conftest.$ac_objext; then
9127
9128     { echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6; }
9130
9131 cat >>confdefs.h <<\_ACEOF
9132 #define HAVE_WORKING_FNMATCH_H 1
9133 _ACEOF
9134
9135
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140
9141     { echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6; }
9143
9144 fi
9145
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147
9148
9149
9150 for ac_func in nanosleep
9151 do
9152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9166 #define $ac_func innocuous_$ac_func
9167
9168 /* System header to define __stub macros and hopefully few prototypes,
9169     which can conflict with char $ac_func (); below.
9170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171     <limits.h> exists even on freestanding compilers.  */
9172
9173 #ifdef __STDC__
9174 # include <limits.h>
9175 #else
9176 # include <assert.h>
9177 #endif
9178
9179 #undef $ac_func
9180
9181 /* Override any GCC internal prototype to avoid an error.
9182    Use char because int might match the return type of a GCC
9183    builtin and then its argument prototype would still apply.  */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 char $ac_func ();
9188 /* The GNU C library defines this for functions which it implements
9189     to always fail with ENOSYS.  Some functions are actually named
9190     something starting with __ and the normal name is an alias.  */
9191 #if defined __stub_$ac_func || defined __stub___$ac_func
9192 choke me
9193 #endif
9194
9195 int
9196 main ()
9197 {
9198 return $ac_func ();
9199   ;
9200   return 0;
9201 }
9202 _ACEOF
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_link") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } && {
9217          test -z "$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        } && test -s conftest$ac_exeext &&
9220        $as_test_x conftest$ac_exeext; then
9221   eval "$as_ac_var=yes"
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226         eval "$as_ac_var=no"
9227 fi
9228
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230       conftest$ac_exeext conftest.$ac_ext
9231 fi
9232 ac_res=`eval echo '${'$as_ac_var'}'`
9233                { echo "$as_me:$LINENO: result: $ac_res" >&5
9234 echo "${ECHO_T}$ac_res" >&6; }
9235 if test `eval echo '${'$as_ac_var'}'` = yes; then
9236   cat >>confdefs.h <<_ACEOF
9237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9238 _ACEOF
9239
9240 else
9241
9242     { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9243 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
9244 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   ac_check_lib_save_LIBS=$LIBS
9248 LIBS="-lrt  $LIBS"
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h.  */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h.  */
9255
9256 /* Override any GCC internal prototype to avoid an error.
9257    Use char because int might match the return type of a GCC
9258    builtin and then its argument prototype would still apply.  */
9259 #ifdef __cplusplus
9260 extern "C"
9261 #endif
9262 char nanosleep ();
9263 int
9264 main ()
9265 {
9266 return nanosleep ();
9267   ;
9268   return 0;
9269 }
9270 _ACEOF
9271 rm -f conftest.$ac_objext conftest$ac_exeext
9272 if { (ac_try="$ac_link"
9273 case "(($ac_try" in
9274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275   *) ac_try_echo=$ac_try;;
9276 esac
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278   (eval "$ac_link") 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } && {
9285          test -z "$ac_c_werror_flag" ||
9286          test ! -s conftest.err
9287        } && test -s conftest$ac_exeext &&
9288        $as_test_x conftest$ac_exeext; then
9289   ac_cv_lib_rt_nanosleep=yes
9290 else
9291   echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294         ac_cv_lib_rt_nanosleep=no
9295 fi
9296
9297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9298       conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9300 fi
9301 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9302 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9303 if test $ac_cv_lib_rt_nanosleep = yes; then
9304
9305
9306 cat >>confdefs.h <<\_ACEOF
9307 #define HAVE_NANOSLEEP 1
9308 _ACEOF
9309
9310       LIBS="-lrt $LIBS"
9311
9312 else
9313
9314       { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9315 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
9316 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lposix4  $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329    Use char because int might match the return type of a GCC
9330    builtin and then its argument prototype would still apply.  */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char nanosleep ();
9335 int
9336 main ()
9337 {
9338 return nanosleep ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350   (eval "$ac_link") 2>conftest.er1
9351   ac_status=$?
9352   grep -v '^ *+' conftest.er1 >conftest.err
9353   rm -f conftest.er1
9354   cat conftest.err >&5
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } && {
9357          test -z "$ac_c_werror_flag" ||
9358          test ! -s conftest.err
9359        } && test -s conftest$ac_exeext &&
9360        $as_test_x conftest$ac_exeext; then
9361   ac_cv_lib_posix4_nanosleep=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366         ac_cv_lib_posix4_nanosleep=no
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370       conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9372 fi
9373 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9374 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9375 if test $ac_cv_lib_posix4_nanosleep = yes; then
9376
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_NANOSLEEP 1
9380 _ACEOF
9381
9382         LIBS="-lposix4 $LIBS"
9383
9384 fi
9385
9386
9387 fi
9388
9389
9390 fi
9391 done
9392
9393
9394
9395
9396 for ac_func in clock_gettime
9397 do
9398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9412 #define $ac_func innocuous_$ac_func
9413
9414 /* System header to define __stub macros and hopefully few prototypes,
9415     which can conflict with char $ac_func (); below.
9416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417     <limits.h> exists even on freestanding compilers.  */
9418
9419 #ifdef __STDC__
9420 # include <limits.h>
9421 #else
9422 # include <assert.h>
9423 #endif
9424
9425 #undef $ac_func
9426
9427 /* Override any GCC internal prototype to avoid an error.
9428    Use char because int might match the return type of a GCC
9429    builtin and then its argument prototype would still apply.  */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 char $ac_func ();
9434 /* The GNU C library defines this for functions which it implements
9435     to always fail with ENOSYS.  Some functions are actually named
9436     something starting with __ and the normal name is an alias.  */
9437 #if defined __stub_$ac_func || defined __stub___$ac_func
9438 choke me
9439 #endif
9440
9441 int
9442 main ()
9443 {
9444 return $ac_func ();
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9451 case "(($ac_try" in
9452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453   *) ac_try_echo=$ac_try;;
9454 esac
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456   (eval "$ac_link") 2>conftest.er1
9457   ac_status=$?
9458   grep -v '^ *+' conftest.er1 >conftest.err
9459   rm -f conftest.er1
9460   cat conftest.err >&5
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } && {
9463          test -z "$ac_c_werror_flag" ||
9464          test ! -s conftest.err
9465        } && test -s conftest$ac_exeext &&
9466        $as_test_x conftest$ac_exeext; then
9467   eval "$as_ac_var=yes"
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472         eval "$as_ac_var=no"
9473 fi
9474
9475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9476       conftest$ac_exeext conftest.$ac_ext
9477 fi
9478 ac_res=`eval echo '${'$as_ac_var'}'`
9479                { echo "$as_me:$LINENO: result: $ac_res" >&5
9480 echo "${ECHO_T}$ac_res" >&6; }
9481 if test `eval echo '${'$as_ac_var'}'` = yes; then
9482   cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9484 _ACEOF
9485
9486 else
9487
9488
9489 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9490 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9491 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   ac_check_lib_save_LIBS=$LIBS
9495 LIBS="-lrt  $LIBS"
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502
9503 /* Override any GCC internal prototype to avoid an error.
9504    Use char because int might match the return type of a GCC
9505    builtin and then its argument prototype would still apply.  */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 char clock_gettime ();
9510 int
9511 main ()
9512 {
9513 return clock_gettime ();
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9520 case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$ac_link") 2>conftest.er1
9526   ac_status=$?
9527   grep -v '^ *+' conftest.er1 >conftest.err
9528   rm -f conftest.er1
9529   cat conftest.err >&5
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); } && {
9532          test -z "$ac_c_werror_flag" ||
9533          test ! -s conftest.err
9534        } && test -s conftest$ac_exeext &&
9535        $as_test_x conftest$ac_exeext; then
9536   ac_cv_lib_rt_clock_gettime=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541         ac_cv_lib_rt_clock_gettime=no
9542 fi
9543
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545       conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9547 fi
9548 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9549 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9550 if test $ac_cv_lib_rt_clock_gettime = yes; then
9551   cat >>confdefs.h <<_ACEOF
9552 #define HAVE_LIBRT 1
9553 _ACEOF
9554
9555   LIBS="-lrt $LIBS"
9556
9557 fi
9558
9559
9560 fi
9561 done
9562
9563
9564
9565               wget_check_in_nsl=NONE
9566
9567 for ac_func in gethostbyname
9568 do
9569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9583 #define $ac_func innocuous_$ac_func
9584
9585 /* System header to define __stub macros and hopefully few prototypes,
9586     which can conflict with char $ac_func (); below.
9587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9588     <limits.h> exists even on freestanding compilers.  */
9589
9590 #ifdef __STDC__
9591 # include <limits.h>
9592 #else
9593 # include <assert.h>
9594 #endif
9595
9596 #undef $ac_func
9597
9598 /* Override any GCC internal prototype to avoid an error.
9599    Use char because int might match the return type of a GCC
9600    builtin and then its argument prototype would still apply.  */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char $ac_func ();
9605 /* The GNU C library defines this for functions which it implements
9606     to always fail with ENOSYS.  Some functions are actually named
9607     something starting with __ and the normal name is an alias.  */
9608 #if defined __stub_$ac_func || defined __stub___$ac_func
9609 choke me
9610 #endif
9611
9612 int
9613 main ()
9614 {
9615 return $ac_func ();
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9622 case "(($ac_try" in
9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624   *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627   (eval "$ac_link") 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } && {
9634          test -z "$ac_c_werror_flag" ||
9635          test ! -s conftest.err
9636        } && test -s conftest$ac_exeext &&
9637        $as_test_x conftest$ac_exeext; then
9638   eval "$as_ac_var=yes"
9639 else
9640   echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643         eval "$as_ac_var=no"
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647       conftest$ac_exeext conftest.$ac_ext
9648 fi
9649 ac_res=`eval echo '${'$as_ac_var'}'`
9650                { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9652 if test `eval echo '${'$as_ac_var'}'` = yes; then
9653   cat >>confdefs.h <<_ACEOF
9654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655 _ACEOF
9656
9657 else
9658
9659     wget_check_in_nsl=gethostbyname
9660
9661 fi
9662 done
9663
9664
9665 for ac_func in inet_ntoa
9666 do
9667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9681 #define $ac_func innocuous_$ac_func
9682
9683 /* System header to define __stub macros and hopefully few prototypes,
9684     which can conflict with char $ac_func (); below.
9685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9686     <limits.h> exists even on freestanding compilers.  */
9687
9688 #ifdef __STDC__
9689 # include <limits.h>
9690 #else
9691 # include <assert.h>
9692 #endif
9693
9694 #undef $ac_func
9695
9696 /* Override any GCC internal prototype to avoid an error.
9697    Use char because int might match the return type of a GCC
9698    builtin and then its argument prototype would still apply.  */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 char $ac_func ();
9703 /* The GNU C library defines this for functions which it implements
9704     to always fail with ENOSYS.  Some functions are actually named
9705     something starting with __ and the normal name is an alias.  */
9706 #if defined __stub_$ac_func || defined __stub___$ac_func
9707 choke me
9708 #endif
9709
9710 int
9711 main ()
9712 {
9713 return $ac_func ();
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9720 case "(($ac_try" in
9721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722   *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725   (eval "$ac_link") 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } && {
9732          test -z "$ac_c_werror_flag" ||
9733          test ! -s conftest.err
9734        } && test -s conftest$ac_exeext &&
9735        $as_test_x conftest$ac_exeext; then
9736   eval "$as_ac_var=yes"
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741         eval "$as_ac_var=no"
9742 fi
9743
9744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745       conftest$ac_exeext conftest.$ac_ext
9746 fi
9747 ac_res=`eval echo '${'$as_ac_var'}'`
9748                { echo "$as_me:$LINENO: result: $ac_res" >&5
9749 echo "${ECHO_T}$ac_res" >&6; }
9750 if test `eval echo '${'$as_ac_var'}'` = yes; then
9751   cat >>confdefs.h <<_ACEOF
9752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9753 _ACEOF
9754
9755 else
9756
9757     wget_check_in_nsl=inet_ntoa
9758
9759 fi
9760 done
9761
9762   if test $wget_check_in_nsl != NONE; then
9763
9764 as_ac_Lib=`echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
9765 { echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
9766 echo $ECHO_N "checking for $wget_check_in_nsl in -lnsl... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   ac_check_lib_save_LIBS=$LIBS
9771 LIBS="-lnsl  $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 /* Override any GCC internal prototype to avoid an error.
9780    Use char because int might match the return type of a GCC
9781    builtin and then its argument prototype would still apply.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char $wget_check_in_nsl ();
9786 int
9787 main ()
9788 {
9789 return $wget_check_in_nsl ();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } && {
9808          test -z "$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        } && test -s conftest$ac_exeext &&
9811        $as_test_x conftest$ac_exeext; then
9812   eval "$as_ac_Lib=yes"
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         eval "$as_ac_Lib=no"
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821       conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9823 fi
9824 ac_res=`eval echo '${'$as_ac_Lib'}'`
9825                { echo "$as_me:$LINENO: result: $ac_res" >&5
9826 echo "${ECHO_T}$ac_res" >&6; }
9827 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9828   cat >>confdefs.h <<_ACEOF
9829 #define HAVE_LIBNSL 1
9830 _ACEOF
9831
9832   LIBS="-lnsl $LIBS"
9833
9834 fi
9835
9836   fi
9837
9838 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9839 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9840 if test "${ac_cv_lib_socket_socket+set}" = set; then
9841   echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843   ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-lsocket  $LIBS"
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851
9852 /* Override any GCC internal prototype to avoid an error.
9853    Use char because int might match the return type of a GCC
9854    builtin and then its argument prototype would still apply.  */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 char socket ();
9859 int
9860 main ()
9861 {
9862 return socket ();
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9869 case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_link") 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } && {
9881          test -z "$ac_c_werror_flag" ||
9882          test ! -s conftest.err
9883        } && test -s conftest$ac_exeext &&
9884        $as_test_x conftest$ac_exeext; then
9885   ac_cv_lib_socket_socket=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890         ac_cv_lib_socket_socket=no
9891 fi
9892
9893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9894       conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9896 fi
9897 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9898 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9899 if test $ac_cv_lib_socket_socket = yes; then
9900   cat >>confdefs.h <<_ACEOF
9901 #define HAVE_LIBSOCKET 1
9902 _ACEOF
9903
9904   LIBS="-lsocket $LIBS"
9905
9906 fi
9907
9908
9909
9910 { echo "$as_me:$LINENO: checking for getopt_long" >&5
9911 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
9912 if test "${ac_cv_func_getopt_long+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
9922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9923 #define getopt_long innocuous_getopt_long
9924
9925 /* System header to define __stub macros and hopefully few prototypes,
9926     which can conflict with char getopt_long (); below.
9927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928     <limits.h> exists even on freestanding compilers.  */
9929
9930 #ifdef __STDC__
9931 # include <limits.h>
9932 #else
9933 # include <assert.h>
9934 #endif
9935
9936 #undef getopt_long
9937
9938 /* Override any GCC internal prototype to avoid an error.
9939    Use char because int might match the return type of a GCC
9940    builtin and then its argument prototype would still apply.  */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char getopt_long ();
9945 /* The GNU C library defines this for functions which it implements
9946     to always fail with ENOSYS.  Some functions are actually named
9947     something starting with __ and the normal name is an alias.  */
9948 #if defined __stub_getopt_long || defined __stub___getopt_long
9949 choke me
9950 #endif
9951
9952 int
9953 main ()
9954 {
9955 return getopt_long ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_link") 2>conftest.er1
9968   ac_status=$?
9969   grep -v '^ *+' conftest.er1 >conftest.err
9970   rm -f conftest.er1
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } && {
9974          test -z "$ac_c_werror_flag" ||
9975          test ! -s conftest.err
9976        } && test -s conftest$ac_exeext &&
9977        $as_test_x conftest$ac_exeext; then
9978   ac_cv_func_getopt_long=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983         ac_cv_func_getopt_long=no
9984 fi
9985
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987       conftest$ac_exeext conftest.$ac_ext
9988 fi
9989 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9990 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
9991 if test $ac_cv_func_getopt_long = yes; then
9992   :
9993 else
9994
9995   GETOPT_OBJ='getopt.o'
9996
9997 fi
9998
9999
10000
10001
10002
10003       if test "X$prefix" = "XNONE"; then
10004     acl_final_prefix="$ac_default_prefix"
10005   else
10006     acl_final_prefix="$prefix"
10007   fi
10008   if test "X$exec_prefix" = "XNONE"; then
10009     acl_final_exec_prefix='${prefix}'
10010   else
10011     acl_final_exec_prefix="$exec_prefix"
10012   fi
10013   acl_save_prefix="$prefix"
10014   prefix="$acl_final_prefix"
10015   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10016   prefix="$acl_save_prefix"
10017
10018
10019 # Check whether --with-gnu-ld was given.
10020 if test "${with_gnu_ld+set}" = set; then
10021   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10022 else
10023   with_gnu_ld=no
10024 fi
10025
10026 # Prepare PATH_SEPARATOR.
10027 # The user is always right.
10028 if test "${PATH_SEPARATOR+set}" != set; then
10029   echo "#! /bin/sh" >conf$$.sh
10030   echo  "exit 0"   >>conf$$.sh
10031   chmod +x conf$$.sh
10032   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10033     PATH_SEPARATOR=';'
10034   else
10035     PATH_SEPARATOR=:
10036   fi
10037   rm -f conf$$.sh
10038 fi
10039 ac_prog=ld
10040 if test "$GCC" = yes; then
10041   # Check if gcc -print-prog-name=ld gives a path.
10042   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10043 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
10044   case $host in
10045   *-*-mingw*)
10046     # gcc leaves a trailing carriage return which upsets mingw
10047     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10048   *)
10049     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10050   esac
10051   case $ac_prog in
10052     # Accept absolute paths.
10053     [\\/]* | [A-Za-z]:[\\/]*)
10054       re_direlt='/[^/][^/]*/\.\./'
10055       # Canonicalize the path of ld
10056       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10057       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10058         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10059       done
10060       test -z "$LD" && LD="$ac_prog"
10061       ;;
10062   "")
10063     # If it fails, then pretend we aren't using GCC.
10064     ac_prog=ld
10065     ;;
10066   *)
10067     # If it is relative, then search for the first ld in PATH.
10068     with_gnu_ld=unknown
10069     ;;
10070   esac
10071 elif test "$with_gnu_ld" = yes; then
10072   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10074 else
10075   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10077 fi
10078 if test "${acl_cv_path_LD+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   if test -z "$LD"; then
10082   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10083   for ac_dir in $PATH; do
10084     test -z "$ac_dir" && ac_dir=.
10085     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10086       acl_cv_path_LD="$ac_dir/$ac_prog"
10087       # Check to see if the program is GNU ld.  I'd rather use --version,
10088       # but apparently some GNU ld's only accept -v.
10089       # Break only if it was the GNU/non-GNU ld that we prefer.
10090       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10091       *GNU* | *'with BFD'*)
10092         test "$with_gnu_ld" != no && break ;;
10093       *)
10094         test "$with_gnu_ld" != yes && break ;;
10095       esac
10096     fi
10097   done
10098   IFS="$ac_save_ifs"
10099 else
10100   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10101 fi
10102 fi
10103
10104 LD="$acl_cv_path_LD"
10105 if test -n "$LD"; then
10106   { echo "$as_me:$LINENO: result: $LD" >&5
10107 echo "${ECHO_T}$LD" >&6; }
10108 else
10109   { echo "$as_me:$LINENO: result: no" >&5
10110 echo "${ECHO_T}no" >&6; }
10111 fi
10112 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10113 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10114    { (exit 1); exit 1; }; }
10115 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10116 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10117 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10121 case `$LD -v 2>&1 </dev/null` in
10122 *GNU* | *'with BFD'*)
10123   acl_cv_prog_gnu_ld=yes ;;
10124 *)
10125   acl_cv_prog_gnu_ld=no ;;
10126 esac
10127 fi
10128 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10129 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
10130 with_gnu_ld=$acl_cv_prog_gnu_ld
10131
10132
10133
10134
10135                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10136 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
10137 if test "${acl_cv_rpath+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140
10141     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10142     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10143     . ./conftest.sh
10144     rm -f ./conftest.sh
10145     acl_cv_rpath=done
10146
10147 fi
10148 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10149 echo "${ECHO_T}$acl_cv_rpath" >&6; }
10150   wl="$acl_cv_wl"
10151   libext="$acl_cv_libext"
10152   shlibext="$acl_cv_shlibext"
10153   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10154   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10155   hardcode_direct="$acl_cv_hardcode_direct"
10156   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10157     # Check whether --enable-rpath was given.
10158 if test "${enable_rpath+set}" = set; then
10159   enableval=$enable_rpath; :
10160 else
10161   enable_rpath=yes
10162 fi
10163
10164
10165 if test x"$with_ssl" = xgnutls; then
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175     use_additional=yes
10176
10177   acl_save_prefix="$prefix"
10178   prefix="$acl_final_prefix"
10179   acl_save_exec_prefix="$exec_prefix"
10180   exec_prefix="$acl_final_exec_prefix"
10181
10182     eval additional_includedir=\"$includedir\"
10183     eval additional_libdir=\"$libdir\"
10184
10185   exec_prefix="$acl_save_exec_prefix"
10186   prefix="$acl_save_prefix"
10187
10188
10189 # Check whether --with-libgnutls-prefix was given.
10190 if test "${with_libgnutls_prefix+set}" = set; then
10191   withval=$with_libgnutls_prefix;
10192     if test "X$withval" = "Xno"; then
10193       use_additional=no
10194     else
10195       if test "X$withval" = "X"; then
10196
10197   acl_save_prefix="$prefix"
10198   prefix="$acl_final_prefix"
10199   acl_save_exec_prefix="$exec_prefix"
10200   exec_prefix="$acl_final_exec_prefix"
10201
10202           eval additional_includedir=\"$includedir\"
10203           eval additional_libdir=\"$libdir\"
10204
10205   exec_prefix="$acl_save_exec_prefix"
10206   prefix="$acl_save_prefix"
10207
10208       else
10209         additional_includedir="$withval/include"
10210         additional_libdir="$withval/lib"
10211       fi
10212     fi
10213
10214 fi
10215
10216       LIBGNUTLS=
10217   LTLIBGNUTLS=
10218   INCGNUTLS=
10219   rpathdirs=
10220   ltrpathdirs=
10221   names_already_handled=
10222   names_next_round='gnutls '
10223   while test -n "$names_next_round"; do
10224     names_this_round="$names_next_round"
10225     names_next_round=
10226     for name in $names_this_round; do
10227       already_handled=
10228       for n in $names_already_handled; do
10229         if test "$n" = "$name"; then
10230           already_handled=yes
10231           break
10232         fi
10233       done
10234       if test -z "$already_handled"; then
10235         names_already_handled="$names_already_handled $name"
10236                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10237         eval value=\"\$HAVE_LIB$uppername\"
10238         if test -n "$value"; then
10239           if test "$value" = yes; then
10240             eval value=\"\$LIB$uppername\"
10241             test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value"
10242             eval value=\"\$LTLIB$uppername\"
10243             test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value"
10244           else
10245                                     :
10246           fi
10247         else
10248                               found_dir=
10249           found_la=
10250           found_so=
10251           found_a=
10252           if test $use_additional = yes; then
10253             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10254               found_dir="$additional_libdir"
10255               found_so="$additional_libdir/lib$name.$shlibext"
10256               if test -f "$additional_libdir/lib$name.la"; then
10257                 found_la="$additional_libdir/lib$name.la"
10258               fi
10259             else
10260               if test -f "$additional_libdir/lib$name.$libext"; then
10261                 found_dir="$additional_libdir"
10262                 found_a="$additional_libdir/lib$name.$libext"
10263                 if test -f "$additional_libdir/lib$name.la"; then
10264                   found_la="$additional_libdir/lib$name.la"
10265                 fi
10266               fi
10267             fi
10268           fi
10269           if test "X$found_dir" = "X"; then
10270             for x in $LDFLAGS $LTLIBGNUTLS; do
10271
10272   acl_save_prefix="$prefix"
10273   prefix="$acl_final_prefix"
10274   acl_save_exec_prefix="$exec_prefix"
10275   exec_prefix="$acl_final_exec_prefix"
10276   eval x=\"$x\"
10277   exec_prefix="$acl_save_exec_prefix"
10278   prefix="$acl_save_prefix"
10279
10280               case "$x" in
10281                 -L*)
10282                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10283                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10284                     found_dir="$dir"
10285                     found_so="$dir/lib$name.$shlibext"
10286                     if test -f "$dir/lib$name.la"; then
10287                       found_la="$dir/lib$name.la"
10288                     fi
10289                   else
10290                     if test -f "$dir/lib$name.$libext"; then
10291                       found_dir="$dir"
10292                       found_a="$dir/lib$name.$libext"
10293                       if test -f "$dir/lib$name.la"; then
10294                         found_la="$dir/lib$name.la"
10295                       fi
10296                     fi
10297                   fi
10298                   ;;
10299               esac
10300               if test "X$found_dir" != "X"; then
10301                 break
10302               fi
10303             done
10304           fi
10305           if test "X$found_dir" != "X"; then
10306                         LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name"
10307             if test "X$found_so" != "X"; then
10308                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10309                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10310               else
10311                                                                                 haveit=
10312                 for x in $ltrpathdirs; do
10313                   if test "X$x" = "X$found_dir"; then
10314                     haveit=yes
10315                     break
10316                   fi
10317                 done
10318                 if test -z "$haveit"; then
10319                   ltrpathdirs="$ltrpathdirs $found_dir"
10320                 fi
10321                                 if test "$hardcode_direct" = yes; then
10322                                                       LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10323                 else
10324                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10325                                                             LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10326                                                             haveit=
10327                     for x in $rpathdirs; do
10328                       if test "X$x" = "X$found_dir"; then
10329                         haveit=yes
10330                         break
10331                       fi
10332                     done
10333                     if test -z "$haveit"; then
10334                       rpathdirs="$rpathdirs $found_dir"
10335                     fi
10336                   else
10337                                                                                 haveit=
10338                     for x in $LDFLAGS $LIBGNUTLS; do
10339
10340   acl_save_prefix="$prefix"
10341   prefix="$acl_final_prefix"
10342   acl_save_exec_prefix="$exec_prefix"
10343   exec_prefix="$acl_final_exec_prefix"
10344   eval x=\"$x\"
10345   exec_prefix="$acl_save_exec_prefix"
10346   prefix="$acl_save_prefix"
10347
10348                       if test "X$x" = "X-L$found_dir"; then
10349                         haveit=yes
10350                         break
10351                       fi
10352                     done
10353                     if test -z "$haveit"; then
10354                       LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir"
10355                     fi
10356                     if test "$hardcode_minus_L" != no; then
10357                                                                                         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10358                     else
10359                                                                                                                                                                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
10360                     fi
10361                   fi
10362                 fi
10363               fi
10364             else
10365               if test "X$found_a" != "X"; then
10366                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a"
10367               else
10368                                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name"
10369               fi
10370             fi
10371                         additional_includedir=
10372             case "$found_dir" in
10373               */lib | */lib/)
10374                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10375                 additional_includedir="$basedir/include"
10376                 ;;
10377             esac
10378             if test "X$additional_includedir" != "X"; then
10379                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10380                 haveit=
10381                 if test "X$additional_includedir" = "X/usr/local/include"; then
10382                   if test -n "$GCC"; then
10383                     case $host_os in
10384                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10385                     esac
10386                   fi
10387                 fi
10388                 if test -z "$haveit"; then
10389                   for x in $CPPFLAGS $INCGNUTLS; do
10390
10391   acl_save_prefix="$prefix"
10392   prefix="$acl_final_prefix"
10393   acl_save_exec_prefix="$exec_prefix"
10394   exec_prefix="$acl_final_exec_prefix"
10395   eval x=\"$x\"
10396   exec_prefix="$acl_save_exec_prefix"
10397   prefix="$acl_save_prefix"
10398
10399                     if test "X$x" = "X-I$additional_includedir"; then
10400                       haveit=yes
10401                       break
10402                     fi
10403                   done
10404                   if test -z "$haveit"; then
10405                     if test -d "$additional_includedir"; then
10406                                             INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir"
10407                     fi
10408                   fi
10409                 fi
10410               fi
10411             fi
10412                         if test -n "$found_la"; then
10413                                                         save_libdir="$libdir"
10414               case "$found_la" in
10415                 */* | *\\*) . "$found_la" ;;
10416                 *) . "./$found_la" ;;
10417               esac
10418               libdir="$save_libdir"
10419                             for dep in $dependency_libs; do
10420                 case "$dep" in
10421                   -L*)
10422                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10423                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10424                       haveit=
10425                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10426                         if test -n "$GCC"; then
10427                           case $host_os in
10428                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10429                           esac
10430                         fi
10431                       fi
10432                       if test -z "$haveit"; then
10433                         haveit=
10434                         for x in $LDFLAGS $LIBGNUTLS; do
10435
10436   acl_save_prefix="$prefix"
10437   prefix="$acl_final_prefix"
10438   acl_save_exec_prefix="$exec_prefix"
10439   exec_prefix="$acl_final_exec_prefix"
10440   eval x=\"$x\"
10441   exec_prefix="$acl_save_exec_prefix"
10442   prefix="$acl_save_prefix"
10443
10444                           if test "X$x" = "X-L$additional_libdir"; then
10445                             haveit=yes
10446                             break
10447                           fi
10448                         done
10449                         if test -z "$haveit"; then
10450                           if test -d "$additional_libdir"; then
10451                                                         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$additional_libdir"
10452                           fi
10453                         fi
10454                         haveit=
10455                         for x in $LDFLAGS $LTLIBGNUTLS; do
10456
10457   acl_save_prefix="$prefix"
10458   prefix="$acl_final_prefix"
10459   acl_save_exec_prefix="$exec_prefix"
10460   exec_prefix="$acl_final_exec_prefix"
10461   eval x=\"$x\"
10462   exec_prefix="$acl_save_exec_prefix"
10463   prefix="$acl_save_prefix"
10464
10465                           if test "X$x" = "X-L$additional_libdir"; then
10466                             haveit=yes
10467                             break
10468                           fi
10469                         done
10470                         if test -z "$haveit"; then
10471                           if test -d "$additional_libdir"; then
10472                                                         LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$additional_libdir"
10473                           fi
10474                         fi
10475                       fi
10476                     fi
10477                     ;;
10478                   -R*)
10479                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10480                     if test "$enable_rpath" != no; then
10481                                                                   haveit=
10482                       for x in $rpathdirs; do
10483                         if test "X$x" = "X$dir"; then
10484                           haveit=yes
10485                           break
10486                         fi
10487                       done
10488                       if test -z "$haveit"; then
10489                         rpathdirs="$rpathdirs $dir"
10490                       fi
10491                                                                   haveit=
10492                       for x in $ltrpathdirs; do
10493                         if test "X$x" = "X$dir"; then
10494                           haveit=yes
10495                           break
10496                         fi
10497                       done
10498                       if test -z "$haveit"; then
10499                         ltrpathdirs="$ltrpathdirs $dir"
10500                       fi
10501                     fi
10502                     ;;
10503                   -l*)
10504                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10505                     ;;
10506                   *.la)
10507                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10508                     ;;
10509                   *)
10510                                         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep"
10511                     LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep"
10512                     ;;
10513                 esac
10514               done
10515             fi
10516           else
10517                                                             LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
10518             LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name"
10519           fi
10520         fi
10521       fi
10522     done
10523   done
10524   if test "X$rpathdirs" != "X"; then
10525     if test -n "$hardcode_libdir_separator"; then
10526                         alldirs=
10527       for found_dir in $rpathdirs; do
10528         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10529       done
10530             acl_save_libdir="$libdir"
10531       libdir="$alldirs"
10532       eval flag=\"$hardcode_libdir_flag_spec\"
10533       libdir="$acl_save_libdir"
10534       LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
10535     else
10536             for found_dir in $rpathdirs; do
10537         acl_save_libdir="$libdir"
10538         libdir="$found_dir"
10539         eval flag=\"$hardcode_libdir_flag_spec\"
10540         libdir="$acl_save_libdir"
10541         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
10542       done
10543     fi
10544   fi
10545   if test "X$ltrpathdirs" != "X"; then
10546             for found_dir in $ltrpathdirs; do
10547       LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir"
10548     done
10549   fi
10550
10551
10552         ac_save_CPPFLAGS="$CPPFLAGS"
10553
10554   for element in $INCGNUTLS; do
10555     haveit=
10556     for x in $CPPFLAGS; do
10557
10558   acl_save_prefix="$prefix"
10559   prefix="$acl_final_prefix"
10560   acl_save_exec_prefix="$exec_prefix"
10561   exec_prefix="$acl_final_exec_prefix"
10562   eval x=\"$x\"
10563   exec_prefix="$acl_save_exec_prefix"
10564   prefix="$acl_save_prefix"
10565
10566       if test "X$x" = "X$element"; then
10567         haveit=yes
10568         break
10569       fi
10570     done
10571     if test -z "$haveit"; then
10572       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10573     fi
10574   done
10575
10576
10577   { echo "$as_me:$LINENO: checking for libgnutls" >&5
10578 echo $ECHO_N "checking for libgnutls... $ECHO_C" >&6; }
10579 if test "${ac_cv_libgnutls+set}" = set; then
10580   echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582
10583     ac_save_LIBS="$LIBS"
10584     LIBS="$LIBS $LIBGNUTLS"
10585     cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591
10592 #include <gnutls/gnutls.h>
10593
10594 int
10595 main ()
10596 {
10597 gnutls_global_init()
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606   *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609   (eval "$ac_link") 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } && {
10616          test -z "$ac_c_werror_flag" ||
10617          test ! -s conftest.err
10618        } && test -s conftest$ac_exeext &&
10619        $as_test_x conftest$ac_exeext; then
10620   ac_cv_libgnutls=yes
10621 else
10622   echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625         ac_cv_libgnutls=no
10626 fi
10627
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629       conftest$ac_exeext conftest.$ac_ext
10630     LIBS="$ac_save_LIBS"
10631
10632 fi
10633 { echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
10634 echo "${ECHO_T}$ac_cv_libgnutls" >&6; }
10635   if test "$ac_cv_libgnutls" = yes; then
10636     HAVE_LIBGNUTLS=yes
10637
10638 cat >>confdefs.h <<\_ACEOF
10639 #define HAVE_LIBGNUTLS 1
10640 _ACEOF
10641
10642     { echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
10643 echo $ECHO_N "checking how to link with libgnutls... $ECHO_C" >&6; }
10644     { echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
10645 echo "${ECHO_T}$LIBGNUTLS" >&6; }
10646   else
10647     HAVE_LIBGNUTLS=no
10648             CPPFLAGS="$ac_save_CPPFLAGS"
10649     LIBGNUTLS=
10650     LTLIBGNUTLS=
10651   fi
10652
10653
10654
10655
10656
10657
10658   if test x"$LIBGNUTLS" != x
10659   then
10660     { echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
10661 echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
10662     SSL_OBJ='gnutls.o'
10663   else
10664     { { echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
10665 echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
10666    { (exit 1); exit 1; }; }
10667   fi
10668
10669 else
10670
10671   # --with-ssl is not gnutls: check if it's no
10672   if test x"$with_ssl" != xno; then
10673
10674
10675 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10678   echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680   ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-ldl  $LIBS"
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688
10689 /* Override any GCC internal prototype to avoid an error.
10690    Use char because int might match the return type of a GCC
10691    builtin and then its argument prototype would still apply.  */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 char dlopen ();
10696 int
10697 main ()
10698 {
10699 return dlopen ();
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (ac_try="$ac_link"
10706 case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_link") 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } && {
10718          test -z "$ac_c_werror_flag" ||
10719          test ! -s conftest.err
10720        } && test -s conftest$ac_exeext &&
10721        $as_test_x conftest$ac_exeext; then
10722   ac_cv_lib_dl_dlopen=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_cv_lib_dl_dlopen=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731       conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10733 fi
10734 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10736 if test $ac_cv_lib_dl_dlopen = yes; then
10737   cat >>confdefs.h <<_ACEOF
10738 #define HAVE_LIBDL 1
10739 _ACEOF
10740
10741   LIBS="-ldl $LIBS"
10742
10743 else
10744
10745
10746 { echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
10747 echo $ECHO_N "checking for shl_load in -ldl... $ECHO_C" >&6; }
10748 if test "${ac_cv_lib_dl_shl_load+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   ac_check_lib_save_LIBS=$LIBS
10752 LIBS="-ldl  $LIBS"
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char shl_load ();
10767 int
10768 main ()
10769 {
10770 return shl_load ();
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_link") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && {
10789          test -z "$ac_c_werror_flag" ||
10790          test ! -s conftest.err
10791        } && test -s conftest$ac_exeext &&
10792        $as_test_x conftest$ac_exeext; then
10793   ac_cv_lib_dl_shl_load=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_cv_lib_dl_shl_load=no
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802       conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10804 fi
10805 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
10806 echo "${ECHO_T}$ac_cv_lib_dl_shl_load" >&6; }
10807 if test $ac_cv_lib_dl_shl_load = yes; then
10808   cat >>confdefs.h <<_ACEOF
10809 #define HAVE_LIBDL 1
10810 _ACEOF
10811
10812   LIBS="-ldl $LIBS"
10813
10814 fi
10815
10816
10817 fi
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828     use_additional=yes
10829
10830   acl_save_prefix="$prefix"
10831   prefix="$acl_final_prefix"
10832   acl_save_exec_prefix="$exec_prefix"
10833   exec_prefix="$acl_final_exec_prefix"
10834
10835     eval additional_includedir=\"$includedir\"
10836     eval additional_libdir=\"$libdir\"
10837
10838   exec_prefix="$acl_save_exec_prefix"
10839   prefix="$acl_save_prefix"
10840
10841
10842 # Check whether --with-libssl-prefix was given.
10843 if test "${with_libssl_prefix+set}" = set; then
10844   withval=$with_libssl_prefix;
10845     if test "X$withval" = "Xno"; then
10846       use_additional=no
10847     else
10848       if test "X$withval" = "X"; then
10849
10850   acl_save_prefix="$prefix"
10851   prefix="$acl_final_prefix"
10852   acl_save_exec_prefix="$exec_prefix"
10853   exec_prefix="$acl_final_exec_prefix"
10854
10855           eval additional_includedir=\"$includedir\"
10856           eval additional_libdir=\"$libdir\"
10857
10858   exec_prefix="$acl_save_exec_prefix"
10859   prefix="$acl_save_prefix"
10860
10861       else
10862         additional_includedir="$withval/include"
10863         additional_libdir="$withval/lib"
10864       fi
10865     fi
10866
10867 fi
10868
10869       LIBSSL=
10870   LTLIBSSL=
10871   INCSSL=
10872   rpathdirs=
10873   ltrpathdirs=
10874   names_already_handled=
10875   names_next_round='ssl crypto'
10876   while test -n "$names_next_round"; do
10877     names_this_round="$names_next_round"
10878     names_next_round=
10879     for name in $names_this_round; do
10880       already_handled=
10881       for n in $names_already_handled; do
10882         if test "$n" = "$name"; then
10883           already_handled=yes
10884           break
10885         fi
10886       done
10887       if test -z "$already_handled"; then
10888         names_already_handled="$names_already_handled $name"
10889                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10890         eval value=\"\$HAVE_LIB$uppername\"
10891         if test -n "$value"; then
10892           if test "$value" = yes; then
10893             eval value=\"\$LIB$uppername\"
10894             test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
10895             eval value=\"\$LTLIB$uppername\"
10896             test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
10897           else
10898                                     :
10899           fi
10900         else
10901                               found_dir=
10902           found_la=
10903           found_so=
10904           found_a=
10905           if test $use_additional = yes; then
10906             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10907               found_dir="$additional_libdir"
10908               found_so="$additional_libdir/lib$name.$shlibext"
10909               if test -f "$additional_libdir/lib$name.la"; then
10910                 found_la="$additional_libdir/lib$name.la"
10911               fi
10912             else
10913               if test -f "$additional_libdir/lib$name.$libext"; then
10914                 found_dir="$additional_libdir"
10915                 found_a="$additional_libdir/lib$name.$libext"
10916                 if test -f "$additional_libdir/lib$name.la"; then
10917                   found_la="$additional_libdir/lib$name.la"
10918                 fi
10919               fi
10920             fi
10921           fi
10922           if test "X$found_dir" = "X"; then
10923             for x in $LDFLAGS $LTLIBSSL; do
10924
10925   acl_save_prefix="$prefix"
10926   prefix="$acl_final_prefix"
10927   acl_save_exec_prefix="$exec_prefix"
10928   exec_prefix="$acl_final_exec_prefix"
10929   eval x=\"$x\"
10930   exec_prefix="$acl_save_exec_prefix"
10931   prefix="$acl_save_prefix"
10932
10933               case "$x" in
10934                 -L*)
10935                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10936                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10937                     found_dir="$dir"
10938                     found_so="$dir/lib$name.$shlibext"
10939                     if test -f "$dir/lib$name.la"; then
10940                       found_la="$dir/lib$name.la"
10941                     fi
10942                   else
10943                     if test -f "$dir/lib$name.$libext"; then
10944                       found_dir="$dir"
10945                       found_a="$dir/lib$name.$libext"
10946                       if test -f "$dir/lib$name.la"; then
10947                         found_la="$dir/lib$name.la"
10948                       fi
10949                     fi
10950                   fi
10951                   ;;
10952               esac
10953               if test "X$found_dir" != "X"; then
10954                 break
10955               fi
10956             done
10957           fi
10958           if test "X$found_dir" != "X"; then
10959                         LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
10960             if test "X$found_so" != "X"; then
10961                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10962                                 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10963               else
10964                                                                                 haveit=
10965                 for x in $ltrpathdirs; do
10966                   if test "X$x" = "X$found_dir"; then
10967                     haveit=yes
10968                     break
10969                   fi
10970                 done
10971                 if test -z "$haveit"; then
10972                   ltrpathdirs="$ltrpathdirs $found_dir"
10973                 fi
10974                                 if test "$hardcode_direct" = yes; then
10975                                                       LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10976                 else
10977                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10978                                                             LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10979                                                             haveit=
10980                     for x in $rpathdirs; do
10981                       if test "X$x" = "X$found_dir"; then
10982                         haveit=yes
10983                         break
10984                       fi
10985                     done
10986                     if test -z "$haveit"; then
10987                       rpathdirs="$rpathdirs $found_dir"
10988                     fi
10989                   else
10990                                                                                 haveit=
10991                     for x in $LDFLAGS $LIBSSL; do
10992
10993   acl_save_prefix="$prefix"
10994   prefix="$acl_final_prefix"
10995   acl_save_exec_prefix="$exec_prefix"
10996   exec_prefix="$acl_final_exec_prefix"
10997   eval x=\"$x\"
10998   exec_prefix="$acl_save_exec_prefix"
10999   prefix="$acl_save_prefix"
11000
11001                       if test "X$x" = "X-L$found_dir"; then
11002                         haveit=yes
11003                         break
11004                       fi
11005                     done
11006                     if test -z "$haveit"; then
11007                       LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
11008                     fi
11009                     if test "$hardcode_minus_L" != no; then
11010                                                                                         LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
11011                     else
11012                                                                                                                                                                                 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
11013                     fi
11014                   fi
11015                 fi
11016               fi
11017             else
11018               if test "X$found_a" != "X"; then
11019                                 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
11020               else
11021                                                 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
11022               fi
11023             fi
11024                         additional_includedir=
11025             case "$found_dir" in
11026               */lib | */lib/)
11027                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11028                 additional_includedir="$basedir/include"
11029                 ;;
11030             esac
11031             if test "X$additional_includedir" != "X"; then
11032                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11033                 haveit=
11034                 if test "X$additional_includedir" = "X/usr/local/include"; then
11035                   if test -n "$GCC"; then
11036                     case $host_os in
11037                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11038                     esac
11039                   fi
11040                 fi
11041                 if test -z "$haveit"; then
11042                   for x in $CPPFLAGS $INCSSL; do
11043
11044   acl_save_prefix="$prefix"
11045   prefix="$acl_final_prefix"
11046   acl_save_exec_prefix="$exec_prefix"
11047   exec_prefix="$acl_final_exec_prefix"
11048   eval x=\"$x\"
11049   exec_prefix="$acl_save_exec_prefix"
11050   prefix="$acl_save_prefix"
11051
11052                     if test "X$x" = "X-I$additional_includedir"; then
11053                       haveit=yes
11054                       break
11055                     fi
11056                   done
11057                   if test -z "$haveit"; then
11058                     if test -d "$additional_includedir"; then
11059                                             INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
11060                     fi
11061                   fi
11062                 fi
11063               fi
11064             fi
11065                         if test -n "$found_la"; then
11066                                                         save_libdir="$libdir"
11067               case "$found_la" in
11068                 */* | *\\*) . "$found_la" ;;
11069                 *) . "./$found_la" ;;
11070               esac
11071               libdir="$save_libdir"
11072                             for dep in $dependency_libs; do
11073                 case "$dep" in
11074                   -L*)
11075                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11076                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11077                       haveit=
11078                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11079                         if test -n "$GCC"; then
11080                           case $host_os in
11081                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11082                           esac
11083                         fi
11084                       fi
11085                       if test -z "$haveit"; then
11086                         haveit=
11087                         for x in $LDFLAGS $LIBSSL; do
11088
11089   acl_save_prefix="$prefix"
11090   prefix="$acl_final_prefix"
11091   acl_save_exec_prefix="$exec_prefix"
11092   exec_prefix="$acl_final_exec_prefix"
11093   eval x=\"$x\"
11094   exec_prefix="$acl_save_exec_prefix"
11095   prefix="$acl_save_prefix"
11096
11097                           if test "X$x" = "X-L$additional_libdir"; then
11098                             haveit=yes
11099                             break
11100                           fi
11101                         done
11102                         if test -z "$haveit"; then
11103                           if test -d "$additional_libdir"; then
11104                                                         LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
11105                           fi
11106                         fi
11107                         haveit=
11108                         for x in $LDFLAGS $LTLIBSSL; do
11109
11110   acl_save_prefix="$prefix"
11111   prefix="$acl_final_prefix"
11112   acl_save_exec_prefix="$exec_prefix"
11113   exec_prefix="$acl_final_exec_prefix"
11114   eval x=\"$x\"
11115   exec_prefix="$acl_save_exec_prefix"
11116   prefix="$acl_save_prefix"
11117
11118                           if test "X$x" = "X-L$additional_libdir"; then
11119                             haveit=yes
11120                             break
11121                           fi
11122                         done
11123                         if test -z "$haveit"; then
11124                           if test -d "$additional_libdir"; then
11125                                                         LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
11126                           fi
11127                         fi
11128                       fi
11129                     fi
11130                     ;;
11131                   -R*)
11132                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11133                     if test "$enable_rpath" != no; then
11134                                                                   haveit=
11135                       for x in $rpathdirs; do
11136                         if test "X$x" = "X$dir"; then
11137                           haveit=yes
11138                           break
11139                         fi
11140                       done
11141                       if test -z "$haveit"; then
11142                         rpathdirs="$rpathdirs $dir"
11143                       fi
11144                                                                   haveit=
11145                       for x in $ltrpathdirs; do
11146                         if test "X$x" = "X$dir"; then
11147                           haveit=yes
11148                           break
11149                         fi
11150                       done
11151                       if test -z "$haveit"; then
11152                         ltrpathdirs="$ltrpathdirs $dir"
11153                       fi
11154                     fi
11155                     ;;
11156                   -l*)
11157                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11158                     ;;
11159                   *.la)
11160                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11161                     ;;
11162                   *)
11163                                         LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
11164                     LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
11165                     ;;
11166                 esac
11167               done
11168             fi
11169           else
11170                                                             LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
11171             LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
11172           fi
11173         fi
11174       fi
11175     done
11176   done
11177   if test "X$rpathdirs" != "X"; then
11178     if test -n "$hardcode_libdir_separator"; then
11179                         alldirs=
11180       for found_dir in $rpathdirs; do
11181         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11182       done
11183             acl_save_libdir="$libdir"
11184       libdir="$alldirs"
11185       eval flag=\"$hardcode_libdir_flag_spec\"
11186       libdir="$acl_save_libdir"
11187       LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
11188     else
11189             for found_dir in $rpathdirs; do
11190         acl_save_libdir="$libdir"
11191         libdir="$found_dir"
11192         eval flag=\"$hardcode_libdir_flag_spec\"
11193         libdir="$acl_save_libdir"
11194         LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
11195       done
11196     fi
11197   fi
11198   if test "X$ltrpathdirs" != "X"; then
11199             for found_dir in $ltrpathdirs; do
11200       LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
11201     done
11202   fi
11203
11204
11205         ac_save_CPPFLAGS="$CPPFLAGS"
11206
11207   for element in $INCSSL; do
11208     haveit=
11209     for x in $CPPFLAGS; do
11210
11211   acl_save_prefix="$prefix"
11212   prefix="$acl_final_prefix"
11213   acl_save_exec_prefix="$exec_prefix"
11214   exec_prefix="$acl_final_exec_prefix"
11215   eval x=\"$x\"
11216   exec_prefix="$acl_save_exec_prefix"
11217   prefix="$acl_save_prefix"
11218
11219       if test "X$x" = "X$element"; then
11220         haveit=yes
11221         break
11222       fi
11223     done
11224     if test -z "$haveit"; then
11225       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11226     fi
11227   done
11228
11229
11230   { echo "$as_me:$LINENO: checking for libssl" >&5
11231 echo $ECHO_N "checking for libssl... $ECHO_C" >&6; }
11232 if test "${ac_cv_libssl+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235
11236     ac_save_LIBS="$LIBS"
11237     LIBS="$LIBS $LIBSSL"
11238     cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244
11245   #include <openssl/ssl.h>
11246   #include <openssl/x509.h>
11247   #include <openssl/err.h>
11248   #include <openssl/rand.h>
11249   #include <openssl/des.h>
11250   #include <openssl/md4.h>
11251   #include <openssl/md5.h>
11252
11253 int
11254 main ()
11255 {
11256 SSL_library_init ()
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268   (eval "$ac_link") 2>conftest.er1
11269   ac_status=$?
11270   grep -v '^ *+' conftest.er1 >conftest.err
11271   rm -f conftest.er1
11272   cat conftest.err >&5
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } && {
11275          test -z "$ac_c_werror_flag" ||
11276          test ! -s conftest.err
11277        } && test -s conftest$ac_exeext &&
11278        $as_test_x conftest$ac_exeext; then
11279   ac_cv_libssl=yes
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284         ac_cv_libssl=no
11285 fi
11286
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288       conftest$ac_exeext conftest.$ac_ext
11289     LIBS="$ac_save_LIBS"
11290
11291 fi
11292 { echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
11293 echo "${ECHO_T}$ac_cv_libssl" >&6; }
11294   if test "$ac_cv_libssl" = yes; then
11295     HAVE_LIBSSL=yes
11296
11297 cat >>confdefs.h <<\_ACEOF
11298 #define HAVE_LIBSSL 1
11299 _ACEOF
11300
11301     { echo "$as_me:$LINENO: checking how to link with libssl" >&5
11302 echo $ECHO_N "checking how to link with libssl... $ECHO_C" >&6; }
11303     { echo "$as_me:$LINENO: result: $LIBSSL" >&5
11304 echo "${ECHO_T}$LIBSSL" >&6; }
11305   else
11306     HAVE_LIBSSL=no
11307             CPPFLAGS="$ac_save_CPPFLAGS"
11308     LIBSSL=
11309     LTLIBSSL=
11310   fi
11311
11312
11313
11314
11315
11316
11317     if test x"$LIBSSL" != x
11318     then
11319       { echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
11320 echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
11321       SSL_OBJ='openssl.o'
11322     elif test x"$with_ssl" != x
11323     then
11324       { { echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
11325 echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
11326    { (exit 1); exit 1; }; }
11327     fi
11328
11329 fi
11330  # endif: --with-ssl == no?
11331
11332 fi
11333  # endif: --with-ssl == gnutls?
11334
11335
11336
11337 NTLM_OBJ=''
11338 if test x"$LIBSSL" != x
11339 then
11340   if test x"$ENABLE_NTLM" != xno
11341   then
11342
11343 cat >>confdefs.h <<\_ACEOF
11344 #define ENABLE_NTLM 1
11345 _ACEOF
11346
11347     NTLM_OBJ='http-ntlm.o'
11348   fi
11349 else
11350       if test x"$ENABLE_NTLM" = xyes
11351   then
11352     { { echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
11353 echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
11354    { (exit 1); exit 1; }; }
11355   fi
11356 fi
11357
11358
11359
11360 if test x"$wget_need_md5" = xyes
11361 then
11362
11363   MD5_OBJ='gen-md5.o'
11364   found_md5=no
11365
11366             if test x"$found_md5" = xno; then
11367     { echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
11368 echo $ECHO_N "checking for md5_calc in -lmd5... $ECHO_C" >&6; }
11369 if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-lmd5  $LIBS"
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380
11381 /* Override any GCC internal prototype to avoid an error.
11382    Use char because int might match the return type of a GCC
11383    builtin and then its argument prototype would still apply.  */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 char md5_calc ();
11388 int
11389 main ()
11390 {
11391 return md5_calc ();
11392   ;
11393   return 0;
11394 }
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_link") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } && {
11410          test -z "$ac_c_werror_flag" ||
11411          test ! -s conftest.err
11412        } && test -s conftest$ac_exeext &&
11413        $as_test_x conftest$ac_exeext; then
11414   ac_cv_lib_md5_md5_calc=yes
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419         ac_cv_lib_md5_md5_calc=no
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423       conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
11427 echo "${ECHO_T}$ac_cv_lib_md5_md5_calc" >&6; }
11428 if test $ac_cv_lib_md5_md5_calc = yes; then
11429
11430                   { echo "$as_me:$LINENO: checking for working md5.h" >&5
11431 echo $ECHO_N "checking for working md5.h... $ECHO_C" >&6; }
11432       cat >conftest.$ac_ext <<_ACEOF
11433 #include <md5.h>
11434
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440   *) ac_try_echo=$ac_try;;
11441 esac
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443   (eval "$ac_compile") 2>conftest.er1
11444   ac_status=$?
11445   grep -v '^ *+' conftest.er1 >conftest.err
11446   rm -f conftest.er1
11447   cat conftest.err >&5
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); } && {
11450          test -z "$ac_c_werror_flag" ||
11451          test ! -s conftest.err
11452        } && test -s conftest.$ac_objext; then
11453
11454         { echo "$as_me:$LINENO: result: yes" >&5
11455 echo "${ECHO_T}yes" >&6; }
11456
11457 cat >>confdefs.h <<\_ACEOF
11458 #define HAVE_SOLARIS_MD5 1
11459 _ACEOF
11460
11461         LIBS="-lmd5 $LIBS"
11462         found_md5=yes
11463         { echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
11464 echo "$as_me: using the Solaris MD5 implementation" >&6;}
11465
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470         { echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6; }
11472 fi
11473
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475
11476 fi
11477
11478   fi
11479
11480       if test x"$found_md5" = xno; then
11481     if test x"$LIBSSL" != x; then
11482
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_OPENSSL_MD5 1
11485 _ACEOF
11486
11487       found_md5=yes
11488       { echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
11489 echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
11490     fi
11491   fi
11492
11493     if test x"$found_md5" = xno; then
11494
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_BUILTIN_MD5 1
11497 _ACEOF
11498
11499     MD5_OBJ="$MD5_OBJ gnu-md5.o"
11500     found_md5=yes
11501     { echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
11502 echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
11503     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11504 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11505 if test "${ac_cv_c_bigendian+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   # See if sys/param.h defines the BYTE_ORDER macro.
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 #include <sys/types.h>
11516 #include <sys/param.h>
11517
11518 int
11519 main ()
11520 {
11521 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11522         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11523  bogus endian macros
11524 #endif
11525
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534   *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537   (eval "$ac_compile") 2>conftest.er1
11538   ac_status=$?
11539   grep -v '^ *+' conftest.er1 >conftest.err
11540   rm -f conftest.er1
11541   cat conftest.err >&5
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); } && {
11544          test -z "$ac_c_werror_flag" ||
11545          test ! -s conftest.err
11546        } && test -s conftest.$ac_objext; then
11547   # It does; now see whether it defined to BIG_ENDIAN or not.
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 #include <sys/types.h>
11555 #include <sys/param.h>
11556
11557 int
11558 main ()
11559 {
11560 #if BYTE_ORDER != BIG_ENDIAN
11561  not big endian
11562 #endif
11563
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext
11569 if { (ac_try="$ac_compile"
11570 case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_compile") 2>conftest.er1
11576   ac_status=$?
11577   grep -v '^ *+' conftest.er1 >conftest.err
11578   rm -f conftest.er1
11579   cat conftest.err >&5
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } && {
11582          test -z "$ac_c_werror_flag" ||
11583          test ! -s conftest.err
11584        } && test -s conftest.$ac_objext; then
11585   ac_cv_c_bigendian=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590         ac_cv_c_bigendian=no
11591 fi
11592
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598         # It does not; compile a test program.
11599 if test "$cross_compiling" = yes; then
11600   # try to guess the endianness by grepping values into an object file
11601   ac_cv_c_bigendian=unknown
11602   cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h.  */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h.  */
11608 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11609 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11610 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11611 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11612 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11613 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11614 int
11615 main ()
11616 {
11617  _ascii (); _ebcdic ();
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626   *) ac_try_echo=$ac_try;;
11627 esac
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629   (eval "$ac_compile") 2>conftest.er1
11630   ac_status=$?
11631   grep -v '^ *+' conftest.er1 >conftest.err
11632   rm -f conftest.er1
11633   cat conftest.err >&5
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } && {
11636          test -z "$ac_c_werror_flag" ||
11637          test ! -s conftest.err
11638        } && test -s conftest.$ac_objext; then
11639   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11640   ac_cv_c_bigendian=yes
11641 fi
11642 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11643   if test "$ac_cv_c_bigendian" = unknown; then
11644     ac_cv_c_bigendian=no
11645   else
11646     # finding both strings is unlikely to happen, but who knows?
11647     ac_cv_c_bigendian=unknown
11648   fi
11649 fi
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654
11655 fi
11656
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 $ac_includes_default
11666 int
11667 main ()
11668 {
11669
11670   /* Are we little or big endian?  From Harbison&Steele.  */
11671   union
11672   {
11673     long int l;
11674     char c[sizeof (long int)];
11675   } u;
11676   u.l = 1;
11677   return u.c[sizeof (long int) - 1] == 1;
11678
11679   ;
11680   return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest$ac_exeext
11684 if { (ac_try="$ac_link"
11685 case "(($ac_try" in
11686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687   *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690   (eval "$ac_link") 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11694   { (case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_try") 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   ac_cv_c_bigendian=no
11704 else
11705   echo "$as_me: program exited with status $ac_status" >&5
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ( exit $ac_status )
11710 ac_cv_c_bigendian=yes
11711 fi
11712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11713 fi
11714
11715
11716 fi
11717
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719 fi
11720 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11721 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11722 case $ac_cv_c_bigendian in
11723   yes)
11724
11725 cat >>confdefs.h <<\_ACEOF
11726 #define WORDS_BIGENDIAN 1
11727 _ACEOF
11728  ;;
11729   no)
11730      ;;
11731   *)
11732     { { echo "$as_me:$LINENO: error: unknown endianness
11733 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11734 echo "$as_me: error: unknown endianness
11735 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11736    { (exit 1); exit 1; }; } ;;
11737 esac
11738
11739   fi
11740 fi
11741
11742 cat >>confdefs.h <<\_ACEOF
11743 #define HAVE_MD5 1
11744 _ACEOF
11745
11746
11747
11748
11749
11750 # Check whether --enable-ipv6 was given.
11751 if test "${enable_ipv6+set}" = set; then
11752   enableval=$enable_ipv6; case "${enable_ipv6}" in
11753     no)
11754       { echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
11755 echo "$as_me: disabling IPv6 at user request" >&6;}
11756             ipv6=no
11757       ;;
11758     yes)
11759             ipv6=yes
11760       force_ipv6=yes
11761       ;;
11762     auto)
11763             ipv6=yes
11764       ;;
11765     *)
11766       { { echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
11767 echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
11768    { (exit 1); exit 1; }; }
11769       ;;
11770     esac
11771
11772 else
11773
11774         ipv6=yes
11775
11776
11777 fi
11778
11779
11780 if test "X$ipv6" = "Xyes"; then
11781
11782 for ac_func in getaddrinfo
11783 do
11784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h.  */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h.  */
11796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11798 #define $ac_func innocuous_$ac_func
11799
11800 /* System header to define __stub macros and hopefully few prototypes,
11801     which can conflict with char $ac_func (); below.
11802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803     <limits.h> exists even on freestanding compilers.  */
11804
11805 #ifdef __STDC__
11806 # include <limits.h>
11807 #else
11808 # include <assert.h>
11809 #endif
11810
11811 #undef $ac_func
11812
11813 /* Override any GCC internal prototype to avoid an error.
11814    Use char because int might match the return type of a GCC
11815    builtin and then its argument prototype would still apply.  */
11816 #ifdef __cplusplus
11817 extern "C"
11818 #endif
11819 char $ac_func ();
11820 /* The GNU C library defines this for functions which it implements
11821     to always fail with ENOSYS.  Some functions are actually named
11822     something starting with __ and the normal name is an alias.  */
11823 #if defined __stub_$ac_func || defined __stub___$ac_func
11824 choke me
11825 #endif
11826
11827 int
11828 main ()
11829 {
11830 return $ac_func ();
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext conftest$ac_exeext
11836 if { (ac_try="$ac_link"
11837 case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_link") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } && {
11849          test -z "$ac_c_werror_flag" ||
11850          test ! -s conftest.err
11851        } && test -s conftest$ac_exeext &&
11852        $as_test_x conftest$ac_exeext; then
11853   eval "$as_ac_var=yes"
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858         eval "$as_ac_var=no"
11859 fi
11860
11861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862       conftest$ac_exeext conftest.$ac_ext
11863 fi
11864 ac_res=`eval echo '${'$as_ac_var'}'`
11865                { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11867 if test `eval echo '${'$as_ac_var'}'` = yes; then
11868   cat >>confdefs.h <<_ACEOF
11869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11870 _ACEOF
11871
11872 else
11873
11874     { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
11875 echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
11876     ipv6=no
11877
11878 fi
11879 done
11880
11881 fi
11882
11883 if test "X$ipv6" = "Xyes"; then
11884
11885   { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
11886 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
11887 if test "${wget_cv_proto_inet6+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890
11891     cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897
11898 #include <sys/types.h>
11899 #include <sys/socket.h>
11900
11901 #ifndef PF_INET6
11902 #error Missing PF_INET6
11903 #endif
11904 #ifndef AF_INET6
11905 #error Mlssing AF_INET6
11906 #endif
11907
11908 _ACEOF
11909 if { (ac_try="$ac_cpp conftest.$ac_ext"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } >/dev/null && {
11922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11923          test ! -s conftest.err
11924        }; then
11925
11926       wget_cv_proto_inet6=yes
11927
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932
11933       wget_cv_proto_inet6=no
11934
11935 fi
11936
11937 rm -f conftest.err conftest.$ac_ext
11938
11939 fi
11940 { echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
11941 echo "${ECHO_T}$wget_cv_proto_inet6" >&6; }
11942
11943   if test "X$wget_cv_proto_inet6" = "Xyes"; then :
11944
11945   else :
11946
11947     { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
11948 echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
11949     ipv6=no
11950
11951   fi
11952
11953 fi
11954
11955 if test "X$ipv6" = "Xyes"; then
11956
11957   wget_have_sockaddr_in6=
11958   { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11959 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
11960 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969
11970 #include <sys/types.h>
11971 #include <sys/socket.h>
11972 #include <netinet/in.h>
11973
11974
11975 typedef struct sockaddr_in6 ac__type_new_;
11976 int
11977 main ()
11978 {
11979 if ((ac__type_new_ *) 0)
11980   return 0;
11981 if (sizeof (ac__type_new_))
11982   return 0;
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext
11988 if { (ac_try="$ac_compile"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994   (eval "$ac_compile") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } && {
12001          test -z "$ac_c_werror_flag" ||
12002          test ! -s conftest.err
12003        } && test -s conftest.$ac_objext; then
12004   ac_cv_type_struct_sockaddr_in6=yes
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009         ac_cv_type_struct_sockaddr_in6=no
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
12015 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
12016 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
12017
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_STRUCT_SOCKADDR_IN6 1
12020 _ACEOF
12021
12022
12023     wget_have_sockaddr_in6=yes
12024
12025 else
12026
12027     wget_have_sockaddr_in6=no
12028
12029 fi
12030
12031
12032   if test "X$wget_have_sockaddr_in6" = "Xyes"; then :
12033
12034   else :
12035
12036     { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
12037 echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
12038     ipv6=no
12039
12040   fi
12041
12042   if test "X$ipv6" = "Xyes"; then
12043
12044   { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12045 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
12046 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055
12056 #include <sys/types.h>
12057 #include <sys/socket.h>
12058
12059
12060 typedef struct sockaddr_storage ac__type_new_;
12061 int
12062 main ()
12063 {
12064 if ((ac__type_new_ *) 0)
12065   return 0;
12066 if (sizeof (ac__type_new_))
12067   return 0;
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079   (eval "$ac_compile") 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } && {
12086          test -z "$ac_c_werror_flag" ||
12087          test ! -s conftest.err
12088        } && test -s conftest.$ac_objext; then
12089   ac_cv_type_struct_sockaddr_storage=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094         ac_cv_type_struct_sockaddr_storage=no
12095 fi
12096
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
12100 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
12101 if test $ac_cv_type_struct_sockaddr_storage = yes; then
12102
12103 cat >>confdefs.h <<_ACEOF
12104 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12105 _ACEOF
12106
12107
12108 fi
12109
12110
12111
12112
12113
12114   wget_member_sin6_scope_id=
12115   if test "X$wget_have_sockaddr_in6" = "Xyes"; then
12116     { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
12117 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
12118 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121   cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127
12128 #include <sys/types.h>
12129 #include <sys/socket.h>
12130 #include <netinet/in.h>
12131
12132
12133 int
12134 main ()
12135 {
12136 static struct sockaddr_in6 ac_aggr;
12137 if (ac_aggr.sin6_scope_id)
12138 return 0;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (ac_try="$ac_compile"
12145 case "(($ac_try" in
12146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147   *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150   (eval "$ac_compile") 2>conftest.er1
12151   ac_status=$?
12152   grep -v '^ *+' conftest.er1 >conftest.err
12153   rm -f conftest.er1
12154   cat conftest.err >&5
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } && {
12157          test -z "$ac_c_werror_flag" ||
12158          test ! -s conftest.err
12159        } && test -s conftest.$ac_objext; then
12160   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165         cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171
12172 #include <sys/types.h>
12173 #include <sys/socket.h>
12174 #include <netinet/in.h>
12175
12176
12177 int
12178 main ()
12179 {
12180 static struct sockaddr_in6 ac_aggr;
12181 if (sizeof ac_aggr.sin6_scope_id)
12182 return 0;
12183   ;
12184   return 0;
12185 }
12186 _ACEOF
12187 rm -f conftest.$ac_objext
12188 if { (ac_try="$ac_compile"
12189 case "(($ac_try" in
12190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191   *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194   (eval "$ac_compile") 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } && {
12201          test -z "$ac_c_werror_flag" ||
12202          test ! -s conftest.err
12203        } && test -s conftest.$ac_objext; then
12204   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
12210 fi
12211
12212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213 fi
12214
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 fi
12217 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
12218 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
12219 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
12220
12221       wget_member_sin6_scope_id=yes
12222
12223 else
12224
12225       wget_member_sin6_scope_id=no
12226
12227 fi
12228
12229   fi
12230
12231   if test "X$wget_member_sin6_scope_id" = "Xyes"; then
12232
12233 cat >>confdefs.h <<\_ACEOF
12234 #define HAVE_SOCKADDR_IN6_SCOPE_ID 1
12235 _ACEOF
12236
12237
12238   else :
12239
12240   fi
12241
12242   fi
12243 fi
12244
12245 if test "X$ipv6" = "Xyes"; then
12246
12247 cat >>confdefs.h <<\_ACEOF
12248 #define ENABLE_IPV6 1
12249 _ACEOF
12250
12251   { echo "$as_me:$LINENO: Enabling support for IPv6." >&5
12252 echo "$as_me: Enabling support for IPv6." >&6;}
12253 elif test "x$force_ipv6" = "xyes"; then
12254   { { echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
12255 echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
12256    { (exit 1); exit 1; }; }
12257 fi
12258
12259
12260 ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')`
12261
12262 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12263 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12264         # Check whether --enable-nls was given.
12265 if test "${enable_nls+set}" = set; then
12266   enableval=$enable_nls; HAVE_NLS=$enableval
12267 else
12268   HAVE_NLS=yes
12269 fi
12270
12271     { echo "$as_me:$LINENO: result: $HAVE_NLS" >&5
12272 echo "${ECHO_T}$HAVE_NLS" >&6; }
12273
12274
12275     if test x"$HAVE_NLS" = xyes; then
12276                         if test x"$LINGUAS" != x; then
12277         new_linguas=
12278         for lang1 in $ALL_LINGUAS; do
12279           for lang2 in $LINGUAS; do
12280             if test "$lang1" = "$lang2"; then
12281               new_linguas="$new_linguas $lang1"
12282             fi
12283           done
12284         done
12285         ALL_LINGUAS=$new_linguas
12286       fi
12287       { echo "$as_me:$LINENO: language catalogs: $ALL_LINGUAS" >&5
12288 echo "$as_me: language catalogs: $ALL_LINGUAS" >&6;}
12289       # Extract the first word of "msgfmt", so it can be a program name with args.
12290 set dummy msgfmt; ac_word=$2
12291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12293 if test "${ac_cv_path_MSGFMT+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   case "$MSGFMT" in
12297   /*)
12298   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12299   ;;
12300   *)
12301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12302   for ac_dir in $PATH; do
12303     test -z "$ac_dir" && ac_dir=.
12304     if test -f $ac_dir/$ac_word; then
12305       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12306         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12307         break
12308       fi
12309     fi
12310   done
12311   IFS="$ac_save_ifs"
12312   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
12313   ;;
12314 esac
12315 fi
12316 MSGFMT="$ac_cv_path_MSGFMT"
12317 if test -n "$MSGFMT"; then
12318   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
12319 echo "${ECHO_T}$MSGFMT" >&6; }
12320 else
12321   { echo "$as_me:$LINENO: result: no" >&5
12322 echo "${ECHO_T}no" >&6; }
12323 fi
12324
12325       # Extract the first word of "xgettext", so it can be a program name with args.
12326 set dummy xgettext; ac_word=$2
12327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12329 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12330   echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332   case "$XGETTEXT" in
12333   /*)
12334   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12335   ;;
12336   *)
12337   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12338   for ac_dir in $PATH; do
12339     test -z "$ac_dir" && ac_dir=.
12340     if test -f $ac_dir/$ac_word; then
12341       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12342         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12343         break
12344       fi
12345     fi
12346   done
12347   IFS="$ac_save_ifs"
12348   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12349   ;;
12350 esac
12351 fi
12352 XGETTEXT="$ac_cv_path_XGETTEXT"
12353 if test -n "$XGETTEXT"; then
12354   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12355 echo "${ECHO_T}$XGETTEXT" >&6; }
12356 else
12357   { echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6; }
12359 fi
12360
12361
12362       # Extract the first word of "gmsgfmt", so it can be a program name with args.
12363 set dummy gmsgfmt; ac_word=$2
12364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12366 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   case $GMSGFMT in
12370   [\\/]* | ?:[\\/]*)
12371   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12372   ;;
12373   *)
12374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377   IFS=$as_save_IFS
12378   test -z "$as_dir" && as_dir=.
12379   for ac_exec_ext in '' $ac_executable_extensions; do
12380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12383     break 2
12384   fi
12385 done
12386 done
12387 IFS=$as_save_IFS
12388
12389   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12390   ;;
12391 esac
12392 fi
12393 GMSGFMT=$ac_cv_path_GMSGFMT
12394 if test -n "$GMSGFMT"; then
12395   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12396 echo "${ECHO_T}$GMSGFMT" >&6; }
12397 else
12398   { echo "$as_me:$LINENO: result: no" >&5
12399 echo "${ECHO_T}no" >&6; }
12400 fi
12401
12402
12403       CATOBJEXT=.gmo
12404       INSTOBJEXT=.mo
12405       DATADIRNAME=share
12406
12407             if test "$XGETTEXT" != ":"; then
12408                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12409           : ;
12410         else
12411           { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
12412 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
12413           XGETTEXT=":"
12414         fi
12415       fi
12416
12417
12418 for ac_header in libintl.h
12419 do
12420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 fi
12427 ac_res=`eval echo '${'$as_ac_Header'}'`
12428                { echo "$as_me:$LINENO: result: $ac_res" >&5
12429 echo "${ECHO_T}$ac_res" >&6; }
12430 else
12431   # Is the header compilable?
12432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 $ac_includes_default
12441 #include <$ac_header>
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_compile") 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } && {
12457          test -z "$ac_c_werror_flag" ||
12458          test ! -s conftest.err
12459        } && test -s conftest.$ac_objext; then
12460   ac_header_compiler=yes
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465         ac_header_compiler=no
12466 fi
12467
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12470 echo "${ECHO_T}$ac_header_compiler" >&6; }
12471
12472 # Is the header present?
12473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481 #include <$ac_header>
12482 _ACEOF
12483 if { (ac_try="$ac_cpp conftest.$ac_ext"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } >/dev/null && {
12496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12497          test ! -s conftest.err
12498        }; then
12499   ac_header_preproc=yes
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504   ac_header_preproc=no
12505 fi
12506
12507 rm -f conftest.err conftest.$ac_ext
12508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12509 echo "${ECHO_T}$ac_header_preproc" >&6; }
12510
12511 # So?  What about this header?
12512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12513   yes:no: )
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12518     ac_header_preproc=yes
12519     ;;
12520   no:yes:* )
12521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12533
12534     ;;
12535 esac
12536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541   eval "$as_ac_Header=\$ac_header_preproc"
12542 fi
12543 ac_res=`eval echo '${'$as_ac_Header'}'`
12544                { echo "$as_me:$LINENO: result: $ac_res" >&5
12545 echo "${ECHO_T}$ac_res" >&6; }
12546
12547 fi
12548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12549   cat >>confdefs.h <<_ACEOF
12550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12551 _ACEOF
12552
12553 fi
12554
12555 done
12556
12557
12558
12559       { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
12560 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
12561 if test "${ac_cv_lib_intl_gettext+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lintl  $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572
12573 /* Override any GCC internal prototype to avoid an error.
12574    Use char because int might match the return type of a GCC
12575    builtin and then its argument prototype would still apply.  */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char gettext ();
12580 int
12581 main ()
12582 {
12583 return gettext ();
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_link") 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } && {
12602          test -z "$ac_c_werror_flag" ||
12603          test ! -s conftest.err
12604        } && test -s conftest$ac_exeext &&
12605        $as_test_x conftest$ac_exeext; then
12606   ac_cv_lib_intl_gettext=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611         ac_cv_lib_intl_gettext=no
12612 fi
12613
12614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615       conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS
12617 fi
12618 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
12619 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
12620 if test $ac_cv_lib_intl_gettext = yes; then
12621
12622                 LIBS="-lintl $LIBS"
12623
12624 cat >>confdefs.h <<\_ACEOF
12625 #define HAVE_GETTEXT 1
12626 _ACEOF
12627
12628
12629 else
12630
12631
12632 for ac_func in gettext
12633 do
12634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640   cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h.  */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h.  */
12646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12648 #define $ac_func innocuous_$ac_func
12649
12650 /* System header to define __stub macros and hopefully few prototypes,
12651     which can conflict with char $ac_func (); below.
12652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12653     <limits.h> exists even on freestanding compilers.  */
12654
12655 #ifdef __STDC__
12656 # include <limits.h>
12657 #else
12658 # include <assert.h>
12659 #endif
12660
12661 #undef $ac_func
12662
12663 /* Override any GCC internal prototype to avoid an error.
12664    Use char because int might match the return type of a GCC
12665    builtin and then its argument prototype would still apply.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 char $ac_func ();
12670 /* The GNU C library defines this for functions which it implements
12671     to always fail with ENOSYS.  Some functions are actually named
12672     something starting with __ and the normal name is an alias.  */
12673 #if defined __stub_$ac_func || defined __stub___$ac_func
12674 choke me
12675 #endif
12676
12677 int
12678 main ()
12679 {
12680 return $ac_func ();
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_link") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } && {
12699          test -z "$ac_c_werror_flag" ||
12700          test ! -s conftest.err
12701        } && test -s conftest$ac_exeext &&
12702        $as_test_x conftest$ac_exeext; then
12703   eval "$as_ac_var=yes"
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708         eval "$as_ac_var=no"
12709 fi
12710
12711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12712       conftest$ac_exeext conftest.$ac_ext
12713 fi
12714 ac_res=`eval echo '${'$as_ac_var'}'`
12715                { echo "$as_me:$LINENO: result: $ac_res" >&5
12716 echo "${ECHO_T}$ac_res" >&6; }
12717 if test `eval echo '${'$as_ac_var'}'` = yes; then
12718   cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12720 _ACEOF
12721
12722 else
12723
12724           { echo "$as_me:$LINENO: result: gettext not found; disabling NLS" >&5
12725 echo "${ECHO_T}gettext not found; disabling NLS" >&6; }
12726           HAVE_NLS=no
12727
12728 fi
12729 done
12730
12731
12732 fi
12733
12734
12735       for lang in $ALL_LINGUAS; do
12736         GMOFILES="$GMOFILES $lang.gmo"
12737         POFILES="$POFILES $lang.po"
12738       done
12739             for lang in $ALL_LINGUAS; do
12740         CATALOGS="$CATALOGS ${lang}${CATOBJEXT}"
12741       done
12742
12743
12744
12745
12746
12747
12748
12749
12750     fi
12751
12752             USE_NLS=$HAVE_NLS
12753
12754     if test "x$HAVE_NLS" = xyes; then
12755
12756 cat >>confdefs.h <<\_ACEOF
12757 #define HAVE_NLS 1
12758 _ACEOF
12759
12760     fi
12761
12762
12763
12764 for ac_prog in makeinfo
12765 do
12766   # Extract the first word of "$ac_prog", so it can be a program name with args.
12767 set dummy $ac_prog; ac_word=$2
12768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12770 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   if test -n "$MAKEINFO"; then
12774   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12775 else
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12778 do
12779   IFS=$as_save_IFS
12780   test -z "$as_dir" && as_dir=.
12781   for ac_exec_ext in '' $ac_executable_extensions; do
12782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783     ac_cv_prog_MAKEINFO="$ac_prog"
12784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12785     break 2
12786   fi
12787 done
12788 done
12789 IFS=$as_save_IFS
12790
12791 fi
12792 fi
12793 MAKEINFO=$ac_cv_prog_MAKEINFO
12794 if test -n "$MAKEINFO"; then
12795   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12796 echo "${ECHO_T}$MAKEINFO" >&6; }
12797 else
12798   { echo "$as_me:$LINENO: result: no" >&5
12799 echo "${ECHO_T}no" >&6; }
12800 fi
12801
12802
12803   test -n "$MAKEINFO" && break
12804 done
12805 test -n "$MAKEINFO" || MAKEINFO="true"
12806
12807
12808
12809 for ac_prog in perl5 perl
12810 do
12811   # Extract the first word of "$ac_prog", so it can be a program name with args.
12812 set dummy $ac_prog; ac_word=$2
12813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12815 if test "${ac_cv_path_PERL+set}" = set; then
12816   echo $ECHO_N "(cached) $ECHO_C" >&6
12817 else
12818   case $PERL in
12819   [\\/]* | ?:[\\/]*)
12820   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12821   ;;
12822   *)
12823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12825 do
12826   IFS=$as_save_IFS
12827   test -z "$as_dir" && as_dir=.
12828   for ac_exec_ext in '' $ac_executable_extensions; do
12829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12832     break 2
12833   fi
12834 done
12835 done
12836 IFS=$as_save_IFS
12837
12838   ;;
12839 esac
12840 fi
12841 PERL=$ac_cv_path_PERL
12842 if test -n "$PERL"; then
12843   { echo "$as_me:$LINENO: result: $PERL" >&5
12844 echo "${ECHO_T}$PERL" >&6; }
12845 else
12846   { echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6; }
12848 fi
12849
12850
12851   test -n "$PERL" && break
12852 done
12853 test -n "$PERL" || PERL="no"
12854
12855 # Extract the first word of "pod2man", so it can be a program name with args.
12856 set dummy pod2man; ac_word=$2
12857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12859 if test "${ac_cv_path_POD2MAN+set}" = set; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   case $POD2MAN in
12863   [\\/]* | ?:[\\/]*)
12864   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
12865   ;;
12866   *)
12867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870   IFS=$as_save_IFS
12871   test -z "$as_dir" && as_dir=.
12872   for ac_exec_ext in '' $ac_executable_extensions; do
12873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
12875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876     break 2
12877   fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
12883   ;;
12884 esac
12885 fi
12886 POD2MAN=$ac_cv_path_POD2MAN
12887 if test -n "$POD2MAN"; then
12888   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
12889 echo "${ECHO_T}$POD2MAN" >&6; }
12890 else
12891   { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12893 fi
12894
12895
12896
12897 if test "x${POD2MAN}" = xno; then
12898   COMMENT_IF_NO_POD2MAN="# "
12899 else
12900   COMMENT_IF_NO_POD2MAN=
12901 fi
12902
12903
12904 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm windows/Makefile"
12905
12906 ac_config_headers="$ac_config_headers src/config.h"
12907
12908
12909
12910 ac_config_files="$ac_config_files stamp-h"
12911
12912 ac_config_commands="$ac_config_commands default"
12913
12914 cat >confcache <<\_ACEOF
12915 # This file is a shell script that caches the results of configure
12916 # tests run on this system so they can be shared between configure
12917 # scripts and configure runs, see configure's option --config-cache.
12918 # It is not useful on other systems.  If it contains results you don't
12919 # want to keep, you may remove or edit it.
12920 #
12921 # config.status only pays attention to the cache file if you give it
12922 # the --recheck option to rerun configure.
12923 #
12924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12926 # following values.
12927
12928 _ACEOF
12929
12930 # The following way of writing the cache mishandles newlines in values,
12931 # but we know of no workaround that is simple, portable, and efficient.
12932 # So, we kill variables containing newlines.
12933 # Ultrix sh set writes to stderr and can't be redirected directly,
12934 # and sets the high bit in the cache file unless we assign to the vars.
12935 (
12936   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12937     eval ac_val=\$$ac_var
12938     case $ac_val in #(
12939     *${as_nl}*)
12940       case $ac_var in #(
12941       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12943       esac
12944       case $ac_var in #(
12945       _ | IFS | as_nl) ;; #(
12946       *) $as_unset $ac_var ;;
12947       esac ;;
12948     esac
12949   done
12950
12951   (set) 2>&1 |
12952     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12953     *${as_nl}ac_space=\ *)
12954       # `set' does not quote correctly, so add quotes (double-quote
12955       # substitution turns \\\\ into \\, and sed turns \\ into \).
12956       sed -n \
12957         "s/'/'\\\\''/g;
12958           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12959       ;; #(
12960     *)
12961       # `set' quotes correctly as required by POSIX, so do not add quotes.
12962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12963       ;;
12964     esac |
12965     sort
12966 ) |
12967   sed '
12968      /^ac_cv_env_/b end
12969      t clear
12970      :clear
12971      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12972      t end
12973      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12974      :end' >>confcache
12975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12976   if test -w "$cache_file"; then
12977     test "x$cache_file" != "x/dev/null" &&
12978       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12979 echo "$as_me: updating cache $cache_file" >&6;}
12980     cat confcache >$cache_file
12981   else
12982     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12983 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12984   fi
12985 fi
12986 rm -f confcache
12987
12988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12989 # Let make expand exec_prefix.
12990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12991
12992 DEFS=-DHAVE_CONFIG_H
12993
12994 ac_libobjs=
12995 ac_ltlibobjs=
12996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12997   # 1. Remove the extension, and $U if already installed.
12998   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12999   ac_i=`echo "$ac_i" | sed "$ac_script"`
13000   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13001   #    will be set to the directory where LIBOBJS objects are built.
13002   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13003   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13004 done
13005 LIBOBJS=$ac_libobjs
13006
13007 LTLIBOBJS=$ac_ltlibobjs
13008
13009
13010
13011 : ${CONFIG_STATUS=./config.status}
13012 ac_clean_files_save=$ac_clean_files
13013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13016 cat >$CONFIG_STATUS <<_ACEOF
13017 #! $SHELL
13018 # Generated by $as_me.
13019 # Run this file to recreate the current configuration.
13020 # Compiler output produced by configure, useful for debugging
13021 # configure, is in config.log if it exists.
13022
13023 debug=false
13024 ac_cs_recheck=false
13025 ac_cs_silent=false
13026 SHELL=\${CONFIG_SHELL-$SHELL}
13027 _ACEOF
13028
13029 cat >>$CONFIG_STATUS <<\_ACEOF
13030 ## --------------------- ##
13031 ## M4sh Initialization.  ##
13032 ## --------------------- ##
13033
13034 # Be more Bourne compatible
13035 DUALCASE=1; export DUALCASE # for MKS sh
13036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13037   emulate sh
13038   NULLCMD=:
13039   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13040   # is contrary to our usage.  Disable this feature.
13041   alias -g '${1+"$@"}'='"$@"'
13042   setopt NO_GLOB_SUBST
13043 else
13044   case `(set -o) 2>/dev/null` in
13045   *posix*) set -o posix ;;
13046 esac
13047
13048 fi
13049
13050
13051
13052
13053 # PATH needs CR
13054 # Avoid depending upon Character Ranges.
13055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13058 as_cr_digits='0123456789'
13059 as_cr_alnum=$as_cr_Letters$as_cr_digits
13060
13061 # The user is always right.
13062 if test "${PATH_SEPARATOR+set}" != set; then
13063   echo "#! /bin/sh" >conf$$.sh
13064   echo  "exit 0"   >>conf$$.sh
13065   chmod +x conf$$.sh
13066   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13067     PATH_SEPARATOR=';'
13068   else
13069     PATH_SEPARATOR=:
13070   fi
13071   rm -f conf$$.sh
13072 fi
13073
13074 # Support unset when possible.
13075 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13076   as_unset=unset
13077 else
13078   as_unset=false
13079 fi
13080
13081
13082 # IFS
13083 # We need space, tab and new line, in precisely that order.  Quoting is
13084 # there to prevent editors from complaining about space-tab.
13085 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13086 # splitting by setting IFS to empty value.)
13087 as_nl='
13088 '
13089 IFS=" ""        $as_nl"
13090
13091 # Find who we are.  Look in the path if we contain no directory separator.
13092 case $0 in
13093   *[\\/]* ) as_myself=$0 ;;
13094   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097   IFS=$as_save_IFS
13098   test -z "$as_dir" && as_dir=.
13099   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13100 done
13101 IFS=$as_save_IFS
13102
13103      ;;
13104 esac
13105 # We did not find ourselves, most probably we were run as `sh COMMAND'
13106 # in which case we are not to be found in the path.
13107 if test "x$as_myself" = x; then
13108   as_myself=$0
13109 fi
13110 if test ! -f "$as_myself"; then
13111   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13112   { (exit 1); exit 1; }
13113 fi
13114
13115 # Work around bugs in pre-3.0 UWIN ksh.
13116 for as_var in ENV MAIL MAILPATH
13117 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13118 done
13119 PS1='$ '
13120 PS2='> '
13121 PS4='+ '
13122
13123 # NLS nuisances.
13124 for as_var in \
13125   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13126   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13127   LC_TELEPHONE LC_TIME
13128 do
13129   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13130     eval $as_var=C; export $as_var
13131   else
13132     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13133   fi
13134 done
13135
13136 # Required to use basename.
13137 if expr a : '\(a\)' >/dev/null 2>&1 &&
13138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13139   as_expr=expr
13140 else
13141   as_expr=false
13142 fi
13143
13144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13145   as_basename=basename
13146 else
13147   as_basename=false
13148 fi
13149
13150
13151 # Name of the executable.
13152 as_me=`$as_basename -- "$0" ||
13153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13154          X"$0" : 'X\(//\)$' \| \
13155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13156 echo X/"$0" |
13157     sed '/^.*\/\([^/][^/]*\)\/*$/{
13158             s//\1/
13159             q
13160           }
13161           /^X\/\(\/\/\)$/{
13162             s//\1/
13163             q
13164           }
13165           /^X\/\(\/\).*/{
13166             s//\1/
13167             q
13168           }
13169           s/.*/./; q'`
13170
13171 # CDPATH.
13172 $as_unset CDPATH
13173
13174
13175
13176   as_lineno_1=$LINENO
13177   as_lineno_2=$LINENO
13178   test "x$as_lineno_1" != "x$as_lineno_2" &&
13179   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13180
13181   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13182   # uniformly replaced by the line number.  The first 'sed' inserts a
13183   # line-number line after each line using $LINENO; the second 'sed'
13184   # does the real work.  The second script uses 'N' to pair each
13185   # line-number line with the line containing $LINENO, and appends
13186   # trailing '-' during substitution so that $LINENO is not a special
13187   # case at line end.
13188   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13189   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13190   # E. McMahon (1931-1989) for sed's syntax.  :-)
13191   sed -n '
13192     p
13193     /[$]LINENO/=
13194   ' <$as_myself |
13195     sed '
13196       s/[$]LINENO.*/&-/
13197       t lineno
13198       b
13199       :lineno
13200       N
13201       :loop
13202       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13203       t loop
13204       s/-\n.*//
13205     ' >$as_me.lineno &&
13206   chmod +x "$as_me.lineno" ||
13207     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13208    { (exit 1); exit 1; }; }
13209
13210   # Don't try to exec as it changes $[0], causing all sort of problems
13211   # (the dirname of $[0] is not the place where we might find the
13212   # original and so on.  Autoconf is especially sensitive to this).
13213   . "./$as_me.lineno"
13214   # Exit status is that of the last command.
13215   exit
13216 }
13217
13218
13219 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13220   as_dirname=dirname
13221 else
13222   as_dirname=false
13223 fi
13224
13225 ECHO_C= ECHO_N= ECHO_T=
13226 case `echo -n x` in
13227 -n*)
13228   case `echo 'x\c'` in
13229   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13230   *)   ECHO_C='\c';;
13231   esac;;
13232 *)
13233   ECHO_N='-n';;
13234 esac
13235
13236 if expr a : '\(a\)' >/dev/null 2>&1 &&
13237    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13238   as_expr=expr
13239 else
13240   as_expr=false
13241 fi
13242
13243 rm -f conf$$ conf$$.exe conf$$.file
13244 if test -d conf$$.dir; then
13245   rm -f conf$$.dir/conf$$.file
13246 else
13247   rm -f conf$$.dir
13248   mkdir conf$$.dir
13249 fi
13250 echo >conf$$.file
13251 if ln -s conf$$.file conf$$ 2>/dev/null; then
13252   as_ln_s='ln -s'
13253   # ... but there are two gotchas:
13254   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13255   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13256   # In both cases, we have to default to `cp -p'.
13257   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13258     as_ln_s='cp -p'
13259 elif ln conf$$.file conf$$ 2>/dev/null; then
13260   as_ln_s=ln
13261 else
13262   as_ln_s='cp -p'
13263 fi
13264 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13265 rmdir conf$$.dir 2>/dev/null
13266
13267 if mkdir -p . 2>/dev/null; then
13268   as_mkdir_p=:
13269 else
13270   test -d ./-p && rmdir ./-p
13271   as_mkdir_p=false
13272 fi
13273
13274 if test -x / >/dev/null 2>&1; then
13275   as_test_x='test -x'
13276 else
13277   if ls -dL / >/dev/null 2>&1; then
13278     as_ls_L_option=L
13279   else
13280     as_ls_L_option=
13281   fi
13282   as_test_x='
13283     eval sh -c '\''
13284       if test -d "$1"; then
13285         test -d "$1/.";
13286       else
13287         case $1 in
13288         -*)set "./$1";;
13289         esac;
13290         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13291         ???[sx]*):;;*)false;;esac;fi
13292     '\'' sh
13293   '
13294 fi
13295 as_executable_p=$as_test_x
13296
13297 # Sed expression to map a string onto a valid CPP name.
13298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13299
13300 # Sed expression to map a string onto a valid variable name.
13301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13302
13303
13304 exec 6>&1
13305
13306 # Save the log message, to keep $[0] and so on meaningful, and to
13307 # report actual input values of CONFIG_FILES etc. instead of their
13308 # values after options handling.
13309 ac_log="
13310 This file was extended by $as_me, which was
13311 generated by GNU Autoconf 2.61.  Invocation command line was
13312
13313   CONFIG_FILES    = $CONFIG_FILES
13314   CONFIG_HEADERS  = $CONFIG_HEADERS
13315   CONFIG_LINKS    = $CONFIG_LINKS
13316   CONFIG_COMMANDS = $CONFIG_COMMANDS
13317   $ $0 $@
13318
13319 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13320 "
13321
13322 _ACEOF
13323
13324 cat >>$CONFIG_STATUS <<_ACEOF
13325 # Files that config.status was made for.
13326 config_files="$ac_config_files"
13327 config_headers="$ac_config_headers"
13328 config_commands="$ac_config_commands"
13329
13330 _ACEOF
13331
13332 cat >>$CONFIG_STATUS <<\_ACEOF
13333 ac_cs_usage="\
13334 \`$as_me' instantiates files from templates according to the
13335 current configuration.
13336
13337 Usage: $0 [OPTIONS] [FILE]...
13338
13339   -h, --help       print this help, then exit
13340   -V, --version    print version number and configuration settings, then exit
13341   -q, --quiet      do not print progress messages
13342   -d, --debug      don't remove temporary files
13343       --recheck    update $as_me by reconfiguring in the same conditions
13344   --file=FILE[:TEMPLATE]
13345                    instantiate the configuration file FILE
13346   --header=FILE[:TEMPLATE]
13347                    instantiate the configuration header FILE
13348
13349 Configuration files:
13350 $config_files
13351
13352 Configuration headers:
13353 $config_headers
13354
13355 Configuration commands:
13356 $config_commands
13357
13358 Report bugs to <bug-autoconf@gnu.org>."
13359
13360 _ACEOF
13361 cat >>$CONFIG_STATUS <<_ACEOF
13362 ac_cs_version="\\
13363 config.status
13364 configured by $0, generated by GNU Autoconf 2.61,
13365   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13366
13367 Copyright (C) 2006 Free Software Foundation, Inc.
13368 This config.status script is free software; the Free Software Foundation
13369 gives unlimited permission to copy, distribute and modify it."
13370
13371 ac_pwd='$ac_pwd'
13372 srcdir='$srcdir'
13373 INSTALL='$INSTALL'
13374 _ACEOF
13375
13376 cat >>$CONFIG_STATUS <<\_ACEOF
13377 # If no file are specified by the user, then we need to provide default
13378 # value.  By we need to know if files were specified by the user.
13379 ac_need_defaults=:
13380 while test $# != 0
13381 do
13382   case $1 in
13383   --*=*)
13384     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13385     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13386     ac_shift=:
13387     ;;
13388   *)
13389     ac_option=$1
13390     ac_optarg=$2
13391     ac_shift=shift
13392     ;;
13393   esac
13394
13395   case $ac_option in
13396   # Handling of the options.
13397   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13398     ac_cs_recheck=: ;;
13399   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13400     echo "$ac_cs_version"; exit ;;
13401   --debug | --debu | --deb | --de | --d | -d )
13402     debug=: ;;
13403   --file | --fil | --fi | --f )
13404     $ac_shift
13405     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13406     ac_need_defaults=false;;
13407   --header | --heade | --head | --hea )
13408     $ac_shift
13409     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13410     ac_need_defaults=false;;
13411   --he | --h)
13412     # Conflict between --help and --header
13413     { echo "$as_me: error: ambiguous option: $1
13414 Try \`$0 --help' for more information." >&2
13415    { (exit 1); exit 1; }; };;
13416   --help | --hel | -h )
13417     echo "$ac_cs_usage"; exit ;;
13418   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13419   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13420     ac_cs_silent=: ;;
13421
13422   # This is an error.
13423   -*) { echo "$as_me: error: unrecognized option: $1
13424 Try \`$0 --help' for more information." >&2
13425    { (exit 1); exit 1; }; } ;;
13426
13427   *) ac_config_targets="$ac_config_targets $1"
13428      ac_need_defaults=false ;;
13429
13430   esac
13431   shift
13432 done
13433
13434 ac_configure_extra_args=
13435
13436 if $ac_cs_silent; then
13437   exec 6>/dev/null
13438   ac_configure_extra_args="$ac_configure_extra_args --silent"
13439 fi
13440
13441 _ACEOF
13442 cat >>$CONFIG_STATUS <<_ACEOF
13443 if \$ac_cs_recheck; then
13444   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13445   CONFIG_SHELL=$SHELL
13446   export CONFIG_SHELL
13447   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13448 fi
13449
13450 _ACEOF
13451 cat >>$CONFIG_STATUS <<\_ACEOF
13452 exec 5>>config.log
13453 {
13454   echo
13455   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13456 ## Running $as_me. ##
13457 _ASBOX
13458   echo "$ac_log"
13459 } >&5
13460
13461 _ACEOF
13462 cat >>$CONFIG_STATUS <<_ACEOF
13463 _ACEOF
13464
13465 cat >>$CONFIG_STATUS <<\_ACEOF
13466
13467 # Handling of arguments.
13468 for ac_config_target in $ac_config_targets
13469 do
13470   case $ac_config_target in
13471     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13472     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13473     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13474     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13475     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13476     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13477     "tests/WgetTest.pm") CONFIG_FILES="$CONFIG_FILES tests/WgetTest.pm" ;;
13478     "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13479     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13480     "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
13481     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13482
13483   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13485    { (exit 1); exit 1; }; };;
13486   esac
13487 done
13488
13489
13490 # If the user did not use the arguments to specify the items to instantiate,
13491 # then the envvar interface is used.  Set only those that are not.
13492 # We use the long form for the default assignment because of an extremely
13493 # bizarre bug on SunOS 4.1.3.
13494 if $ac_need_defaults; then
13495   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13496   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13497   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13498 fi
13499
13500 # Have a temporary directory for convenience.  Make it in the build tree
13501 # simply because there is no reason against having it here, and in addition,
13502 # creating and moving files from /tmp can sometimes cause problems.
13503 # Hook for its removal unless debugging.
13504 # Note that there is a small window in which the directory will not be cleaned:
13505 # after its creation but before its name has been assigned to `$tmp'.
13506 $debug ||
13507 {
13508   tmp=
13509   trap 'exit_status=$?
13510   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13511 ' 0
13512   trap '{ (exit 1); exit 1; }' 1 2 13 15
13513 }
13514 # Create a (secure) tmp directory for tmp files.
13515
13516 {
13517   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13518   test -n "$tmp" && test -d "$tmp"
13519 }  ||
13520 {
13521   tmp=./conf$$-$RANDOM
13522   (umask 077 && mkdir "$tmp")
13523 } ||
13524 {
13525    echo "$me: cannot create a temporary directory in ." >&2
13526    { (exit 1); exit 1; }
13527 }
13528
13529 #
13530 # Set up the sed scripts for CONFIG_FILES section.
13531 #
13532
13533 # No need to generate the scripts if there are no CONFIG_FILES.
13534 # This happens for instance when ./config.status config.h
13535 if test -n "$CONFIG_FILES"; then
13536
13537 _ACEOF
13538
13539
13540
13541 ac_delim='%!_!# '
13542 for ac_last_try in false false false false false :; do
13543   cat >conf$$subs.sed <<_ACEOF
13544 SHELL!$SHELL$ac_delim
13545 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13546 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13547 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13548 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13549 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13550 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13551 exec_prefix!$exec_prefix$ac_delim
13552 prefix!$prefix$ac_delim
13553 program_transform_name!$program_transform_name$ac_delim
13554 bindir!$bindir$ac_delim
13555 sbindir!$sbindir$ac_delim
13556 libexecdir!$libexecdir$ac_delim
13557 datarootdir!$datarootdir$ac_delim
13558 datadir!$datadir$ac_delim
13559 sysconfdir!$sysconfdir$ac_delim
13560 sharedstatedir!$sharedstatedir$ac_delim
13561 localstatedir!$localstatedir$ac_delim
13562 includedir!$includedir$ac_delim
13563 oldincludedir!$oldincludedir$ac_delim
13564 docdir!$docdir$ac_delim
13565 infodir!$infodir$ac_delim
13566 htmldir!$htmldir$ac_delim
13567 dvidir!$dvidir$ac_delim
13568 pdfdir!$pdfdir$ac_delim
13569 psdir!$psdir$ac_delim
13570 libdir!$libdir$ac_delim
13571 localedir!$localedir$ac_delim
13572 mandir!$mandir$ac_delim
13573 DEFS!$DEFS$ac_delim
13574 ECHO_C!$ECHO_C$ac_delim
13575 ECHO_N!$ECHO_N$ac_delim
13576 ECHO_T!$ECHO_T$ac_delim
13577 LIBS!$LIBS$ac_delim
13578 build_alias!$build_alias$ac_delim
13579 host_alias!$host_alias$ac_delim
13580 target_alias!$target_alias$ac_delim
13581 VERSION!$VERSION$ac_delim
13582 PACKAGE!$PACKAGE$ac_delim
13583 build!$build$ac_delim
13584 build_cpu!$build_cpu$ac_delim
13585 build_vendor!$build_vendor$ac_delim
13586 build_os!$build_os$ac_delim
13587 host!$host$ac_delim
13588 host_cpu!$host_cpu$ac_delim
13589 host_vendor!$host_vendor$ac_delim
13590 host_os!$host_os$ac_delim
13591 OPIE_OBJ!$OPIE_OBJ$ac_delim
13592 SET_MAKE!$SET_MAKE$ac_delim
13593 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13594 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13595 INSTALL_DATA!$INSTALL_DATA$ac_delim
13596 CC!$CC$ac_delim
13597 CFLAGS!$CFLAGS$ac_delim
13598 LDFLAGS!$LDFLAGS$ac_delim
13599 CPPFLAGS!$CPPFLAGS$ac_delim
13600 ac_ct_CC!$ac_ct_CC$ac_delim
13601 EXEEXT!$EXEEXT$ac_delim
13602 OBJEXT!$OBJEXT$ac_delim
13603 CPP!$CPP$ac_delim
13604 GREP!$GREP$ac_delim
13605 EGREP!$EGREP$ac_delim
13606 ALLOCA!$ALLOCA$ac_delim
13607 GETOPT_OBJ!$GETOPT_OBJ$ac_delim
13608 HAVE_LIBGNUTLS!$HAVE_LIBGNUTLS$ac_delim
13609 LIBGNUTLS!$LIBGNUTLS$ac_delim
13610 LTLIBGNUTLS!$LTLIBGNUTLS$ac_delim
13611 HAVE_LIBSSL!$HAVE_LIBSSL$ac_delim
13612 LIBSSL!$LIBSSL$ac_delim
13613 LTLIBSSL!$LTLIBSSL$ac_delim
13614 SSL_OBJ!$SSL_OBJ$ac_delim
13615 NTLM_OBJ!$NTLM_OBJ$ac_delim
13616 MD5_OBJ!$MD5_OBJ$ac_delim
13617 MSGFMT!$MSGFMT$ac_delim
13618 XGETTEXT!$XGETTEXT$ac_delim
13619 GMSGFMT!$GMSGFMT$ac_delim
13620 CATALOGS!$CATALOGS$ac_delim
13621 CATOBJEXT!$CATOBJEXT$ac_delim
13622 DATADIRNAME!$DATADIRNAME$ac_delim
13623 GMOFILES!$GMOFILES$ac_delim
13624 INSTOBJEXT!$INSTOBJEXT$ac_delim
13625 INTLLIBS!$INTLLIBS$ac_delim
13626 POFILES!$POFILES$ac_delim
13627 HAVE_NLS!$HAVE_NLS$ac_delim
13628 USE_NLS!$USE_NLS$ac_delim
13629 MAKEINFO!$MAKEINFO$ac_delim
13630 PERL!$PERL$ac_delim
13631 POD2MAN!$POD2MAN$ac_delim
13632 COMMENT_IF_NO_POD2MAN!$COMMENT_IF_NO_POD2MAN$ac_delim
13633 LIBOBJS!$LIBOBJS$ac_delim
13634 LTLIBOBJS!$LTLIBOBJS$ac_delim
13635 _ACEOF
13636
13637   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
13638     break
13639   elif $ac_last_try; then
13640     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13641 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13642    { (exit 1); exit 1; }; }
13643   else
13644     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13645   fi
13646 done
13647
13648 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13649 if test -n "$ac_eof"; then
13650   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13651   ac_eof=`expr $ac_eof + 1`
13652 fi
13653
13654 cat >>$CONFIG_STATUS <<_ACEOF
13655 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13657 _ACEOF
13658 sed '
13659 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13660 s/^/s,@/; s/!/@,|#_!!_#|/
13661 :n
13662 t n
13663 s/'"$ac_delim"'$/,g/; t
13664 s/$/\\/; p
13665 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13666 ' >>$CONFIG_STATUS <conf$$subs.sed
13667 rm -f conf$$subs.sed
13668 cat >>$CONFIG_STATUS <<_ACEOF
13669 :end
13670 s/|#_!!_#|//g
13671 CEOF$ac_eof
13672 _ACEOF
13673
13674
13675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13677 # trailing colons and then remove the whole line if VPATH becomes empty
13678 # (actually we leave an empty line to preserve line numbers).
13679 if test "x$srcdir" = x.; then
13680   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13681 s/:*\$(srcdir):*/:/
13682 s/:*\${srcdir}:*/:/
13683 s/:*@srcdir@:*/:/
13684 s/^\([^=]*=[     ]*\):*/\1/
13685 s/:*$//
13686 s/^[^=]*=[       ]*$//
13687 }'
13688 fi
13689
13690 cat >>$CONFIG_STATUS <<\_ACEOF
13691 fi # test -n "$CONFIG_FILES"
13692
13693
13694 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13695 do
13696   case $ac_tag in
13697   :[FHLC]) ac_mode=$ac_tag; continue;;
13698   esac
13699   case $ac_mode$ac_tag in
13700   :[FHL]*:*);;
13701   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13702 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13703    { (exit 1); exit 1; }; };;
13704   :[FH]-) ac_tag=-:-;;
13705   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13706   esac
13707   ac_save_IFS=$IFS
13708   IFS=:
13709   set x $ac_tag
13710   IFS=$ac_save_IFS
13711   shift
13712   ac_file=$1
13713   shift
13714
13715   case $ac_mode in
13716   :L) ac_source=$1;;
13717   :[FH])
13718     ac_file_inputs=
13719     for ac_f
13720     do
13721       case $ac_f in
13722       -) ac_f="$tmp/stdin";;
13723       *) # Look for the file first in the build tree, then in the source tree
13724          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13725          # because $ac_f cannot contain `:'.
13726          test -f "$ac_f" ||
13727            case $ac_f in
13728            [\\/$]*) false;;
13729            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13730            esac ||
13731            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13732 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13733    { (exit 1); exit 1; }; };;
13734       esac
13735       ac_file_inputs="$ac_file_inputs $ac_f"
13736     done
13737
13738     # Let's still pretend it is `configure' which instantiates (i.e., don't
13739     # use $as_me), people would be surprised to read:
13740     #    /* config.h.  Generated by config.status.  */
13741     configure_input="Generated from "`IFS=:
13742           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13743     if test x"$ac_file" != x-; then
13744       configure_input="$ac_file.  $configure_input"
13745       { echo "$as_me:$LINENO: creating $ac_file" >&5
13746 echo "$as_me: creating $ac_file" >&6;}
13747     fi
13748
13749     case $ac_tag in
13750     *:-:* | *:-) cat >"$tmp/stdin";;
13751     esac
13752     ;;
13753   esac
13754
13755   ac_dir=`$as_dirname -- "$ac_file" ||
13756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13757          X"$ac_file" : 'X\(//\)[^/]' \| \
13758          X"$ac_file" : 'X\(//\)$' \| \
13759          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13760 echo X"$ac_file" |
13761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13762             s//\1/
13763             q
13764           }
13765           /^X\(\/\/\)[^/].*/{
13766             s//\1/
13767             q
13768           }
13769           /^X\(\/\/\)$/{
13770             s//\1/
13771             q
13772           }
13773           /^X\(\/\).*/{
13774             s//\1/
13775             q
13776           }
13777           s/.*/./; q'`
13778   { as_dir="$ac_dir"
13779   case $as_dir in #(
13780   -*) as_dir=./$as_dir;;
13781   esac
13782   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13783     as_dirs=
13784     while :; do
13785       case $as_dir in #(
13786       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13787       *) as_qdir=$as_dir;;
13788       esac
13789       as_dirs="'$as_qdir' $as_dirs"
13790       as_dir=`$as_dirname -- "$as_dir" ||
13791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792          X"$as_dir" : 'X\(//\)[^/]' \| \
13793          X"$as_dir" : 'X\(//\)$' \| \
13794          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13795 echo X"$as_dir" |
13796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13797             s//\1/
13798             q
13799           }
13800           /^X\(\/\/\)[^/].*/{
13801             s//\1/
13802             q
13803           }
13804           /^X\(\/\/\)$/{
13805             s//\1/
13806             q
13807           }
13808           /^X\(\/\).*/{
13809             s//\1/
13810             q
13811           }
13812           s/.*/./; q'`
13813       test -d "$as_dir" && break
13814     done
13815     test -z "$as_dirs" || eval "mkdir $as_dirs"
13816   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13817 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13818    { (exit 1); exit 1; }; }; }
13819   ac_builddir=.
13820
13821 case "$ac_dir" in
13822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13823 *)
13824   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13825   # A ".." for each directory in $ac_dir_suffix.
13826   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13827   case $ac_top_builddir_sub in
13828   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13829   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13830   esac ;;
13831 esac
13832 ac_abs_top_builddir=$ac_pwd
13833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13834 # for backward compatibility:
13835 ac_top_builddir=$ac_top_build_prefix
13836
13837 case $srcdir in
13838   .)  # We are building in place.
13839     ac_srcdir=.
13840     ac_top_srcdir=$ac_top_builddir_sub
13841     ac_abs_top_srcdir=$ac_pwd ;;
13842   [\\/]* | ?:[\\/]* )  # Absolute name.
13843     ac_srcdir=$srcdir$ac_dir_suffix;
13844     ac_top_srcdir=$srcdir
13845     ac_abs_top_srcdir=$srcdir ;;
13846   *) # Relative name.
13847     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13848     ac_top_srcdir=$ac_top_build_prefix$srcdir
13849     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13850 esac
13851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13852
13853
13854   case $ac_mode in
13855   :F)
13856   #
13857   # CONFIG_FILE
13858   #
13859
13860   case $INSTALL in
13861   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13862   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13863   esac
13864 _ACEOF
13865
13866 cat >>$CONFIG_STATUS <<\_ACEOF
13867 # If the template does not know about datarootdir, expand it.
13868 # FIXME: This hack should be removed a few years after 2.60.
13869 ac_datarootdir_hack=; ac_datarootdir_seen=
13870
13871 case `sed -n '/datarootdir/ {
13872   p
13873   q
13874 }
13875 /@datadir@/p
13876 /@docdir@/p
13877 /@infodir@/p
13878 /@localedir@/p
13879 /@mandir@/p
13880 ' $ac_file_inputs` in
13881 *datarootdir*) ac_datarootdir_seen=yes;;
13882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13883   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13884 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13885 _ACEOF
13886 cat >>$CONFIG_STATUS <<_ACEOF
13887   ac_datarootdir_hack='
13888   s&@datadir@&$datadir&g
13889   s&@docdir@&$docdir&g
13890   s&@infodir@&$infodir&g
13891   s&@localedir@&$localedir&g
13892   s&@mandir@&$mandir&g
13893     s&\\\${datarootdir}&$datarootdir&g' ;;
13894 esac
13895 _ACEOF
13896
13897 # Neutralize VPATH when `$srcdir' = `.'.
13898 # Shell code in configure.ac might set extrasub.
13899 # FIXME: do we really want to maintain this feature?
13900 cat >>$CONFIG_STATUS <<_ACEOF
13901   sed "$ac_vpsub
13902 $extrasub
13903 _ACEOF
13904 cat >>$CONFIG_STATUS <<\_ACEOF
13905 :t
13906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13907 s&@configure_input@&$configure_input&;t t
13908 s&@top_builddir@&$ac_top_builddir_sub&;t t
13909 s&@srcdir@&$ac_srcdir&;t t
13910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13911 s&@top_srcdir@&$ac_top_srcdir&;t t
13912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13913 s&@builddir@&$ac_builddir&;t t
13914 s&@abs_builddir@&$ac_abs_builddir&;t t
13915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13916 s&@INSTALL@&$ac_INSTALL&;t t
13917 $ac_datarootdir_hack
13918 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13919
13920 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13921   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13922   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13923   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13924 which seems to be undefined.  Please make sure it is defined." >&5
13925 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13926 which seems to be undefined.  Please make sure it is defined." >&2;}
13927
13928   rm -f "$tmp/stdin"
13929   case $ac_file in
13930   -) cat "$tmp/out"; rm -f "$tmp/out";;
13931   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13932   esac
13933  ;;
13934   :H)
13935   #
13936   # CONFIG_HEADER
13937   #
13938 _ACEOF
13939
13940 # Transform confdefs.h into a sed script `conftest.defines', that
13941 # substitutes the proper values into config.h.in to produce config.h.
13942 rm -f conftest.defines conftest.tail
13943 # First, append a space to every undef/define line, to ease matching.
13944 echo 's/$/ /' >conftest.defines
13945 # Then, protect against being on the right side of a sed subst, or in
13946 # an unquoted here document, in config.status.  If some macros were
13947 # called several times there might be several #defines for the same
13948 # symbol, which is useless.  But do not sort them, since the last
13949 # AC_DEFINE must be honored.
13950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13951 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13952 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13953 # PARAMS is the parameter list in the macro definition--in most cases, it's
13954 # just an empty string.
13955 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13956 ac_dB='\\)[      (].*,\\1define\\2'
13957 ac_dC=' '
13958 ac_dD=' ,'
13959
13960 uniq confdefs.h |
13961   sed -n '
13962         t rset
13963         :rset
13964         s/^[     ]*#[    ]*define[       ][      ]*//
13965         t ok
13966         d
13967         :ok
13968         s/[\\&,]/\\&/g
13969         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13970         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13971   ' >>conftest.defines
13972
13973 # Remove the space that was appended to ease matching.
13974 # Then replace #undef with comments.  This is necessary, for
13975 # example, in the case of _POSIX_SOURCE, which is predefined and required
13976 # on some systems where configure will not decide to define it.
13977 # (The regexp can be short, since the line contains either #define or #undef.)
13978 echo 's/ $//
13979 s,^[     #]*u.*,/* & */,' >>conftest.defines
13980
13981 # Break up conftest.defines:
13982 ac_max_sed_lines=50
13983
13984 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13985 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13986 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13987 # et cetera.
13988 ac_in='$ac_file_inputs'
13989 ac_out='"$tmp/out1"'
13990 ac_nxt='"$tmp/out2"'
13991
13992 while :
13993 do
13994   # Write a here document:
13995     cat >>$CONFIG_STATUS <<_ACEOF
13996     # First, check the format of the line:
13997     cat >"\$tmp/defines.sed" <<\\CEOF
13998 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13999 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14000 b
14001 :def
14002 _ACEOF
14003   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14004   echo 'CEOF
14005     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14006   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14007   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14008   grep . conftest.tail >/dev/null || break
14009   rm -f conftest.defines
14010   mv conftest.tail conftest.defines
14011 done
14012 rm -f conftest.defines conftest.tail
14013
14014 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14015 cat >>$CONFIG_STATUS <<\_ACEOF
14016   if test x"$ac_file" != x-; then
14017     echo "/* $configure_input  */" >"$tmp/config.h"
14018     cat "$ac_result" >>"$tmp/config.h"
14019     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14020       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14021 echo "$as_me: $ac_file is unchanged" >&6;}
14022     else
14023       rm -f $ac_file
14024       mv "$tmp/config.h" $ac_file
14025     fi
14026   else
14027     echo "/* $configure_input  */"
14028     cat "$ac_result"
14029   fi
14030   rm -f "$tmp/out12"
14031  ;;
14032
14033   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14034 echo "$as_me: executing $ac_file commands" >&6;}
14035  ;;
14036   esac
14037
14038
14039   case $ac_file$ac_mode in
14040     "stamp-h":F) echo timestamp > stamp-h ;;
14041     "default":C)
14042       if test "x$srcdir" != "x."; then
14043      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14044        posrcprefix="$srcdir/"
14045      else
14046        posrcprefix="../$srcdir/"
14047      fi
14048    else
14049      posrcprefix="../"
14050    fi
14051    rm -f po/POTFILES
14052          echo "generating po/POTFILES from $srcdir/po/POTFILES.in"
14053    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\,"  \
14054        -e "\$s/\(.*\) \\\\/\1/" \
14055         < $srcdir/po/POTFILES.in > po/POTFILES
14056    echo "creating po/Makefile"
14057    sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14058    ;;
14059
14060   esac
14061 done # for ac_tag
14062
14063
14064 { (exit 0); exit 0; }
14065 _ACEOF
14066 chmod +x $CONFIG_STATUS
14067 ac_clean_files=$ac_clean_files_save
14068
14069
14070 # configure is writing to config.log, and then calls config.status.
14071 # config.status does its own redirection, appending to config.log.
14072 # Unfortunately, on DOS this fails, as config.log is still kept open
14073 # by configure, so config.status won't be able to write to it; its
14074 # output is simply discarded.  So we exec the FD to /dev/null,
14075 # effectively closing config.log, so it can be properly (re)opened and
14076 # appended to by config.status.  When coming back to configure, we
14077 # need to make the FD available again.
14078 if test "$no_create" != yes; then
14079   ac_cs_success=:
14080   ac_config_status_args=
14081   test "$silent" = yes &&
14082     ac_config_status_args="$ac_config_status_args --quiet"
14083   exec 5>/dev/null
14084   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14085   exec 5>>config.log
14086   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14087   # would make configure fail if this is the last instruction.
14088   $ac_cs_success || { (exit 1); exit 1; }
14089 fi
14090