]> git.ipfire.org Git - thirdparty/bash.git/blob - autom4te.cache/output.0
commit bash-20080814 snapshot
[thirdparty/bash.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ From configure.in for Bash 4.0, version 4.005.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.60 for bash 4.0-alpha.
5 @%:@
6 @%:@ Report bugs to <bug-bash@gnu.org>.
7 @%:@
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 @%:@ This configure script is free software; the Free Software Foundation
11 @%:@ gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
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 *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275 (exit $1)
276 }
277 as_func_success () {
278 as_func_return 0
279 }
280 as_func_failure () {
281 as_func_return 1
282 }
283 as_func_ret_success () {
284 return 0
285 }
286 as_func_ret_failure () {
287 return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292 :
293 else
294 exitcode=1
295 echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304 :
305 else
306 exitcode=1
307 echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 :
317 else
318 exitcode=1
319 echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332 break
333 fi
334
335 fi
336
337 done
338
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364 (exit \$1)
365 }
366 as_func_success () {
367 as_func_return 0
368 }
369 as_func_failure () {
370 as_func_return 1
371 }
372 as_func_ret_success () {
373 return 0
374 }
375 as_func_ret_failure () {
376 return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381 :
382 else
383 exitcode=1
384 echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393 :
394 else
395 exitcode=1
396 echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 :
406 else
407 exitcode=1
408 echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
416 }
417
418
419
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483 else
484 as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490 else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527 else
528 as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIB@&t@OBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME='bash'
562 PACKAGE_TARNAME='bash'
563 PACKAGE_VERSION='4.0-alpha'
564 PACKAGE_STRING='bash 4.0-alpha'
565 PACKAGE_BUGREPORT='bug-bash@gnu.org'
566
567 ac_unique_file="shell.h"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #if HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #if HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #if STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # if HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #if HAVE_STRING_H
586 # if !STDC_HEADERS && HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #if HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #if HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #if HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #if HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_func_list=
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 build
643 build_cpu
644 build_vendor
645 build_os
646 host
647 host_cpu
648 host_vendor
649 host_os
650 EMACS
651 lispdir
652 DEBUGGER_START_FILE
653 TESTSCRIPT
654 PURIFY
655 MALLOC_TARGET
656 MALLOC_SRC
657 MALLOC_LIB
658 MALLOC_LIBRARY
659 MALLOC_LDFLAGS
660 MALLOC_DEP
661 HELPDIR
662 HELPDIRDEFINE
663 HELPINSTALL
664 HELPSTRINGS
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CROSS_COMPILE
676 SIGNAMES_H
677 SIGNAMES_O
678 CC_FOR_BUILD
679 STATIC_LD
680 CFLAGS_FOR_BUILD
681 CPPFLAGS_FOR_BUILD
682 LDFLAGS_FOR_BUILD
683 RL_VERSION
684 RL_MAJOR
685 RL_MINOR
686 READLINE_LIB
687 READLINE_DEP
688 RL_LIBDIR
689 RL_INCLUDEDIR
690 RL_INCLUDE
691 HISTORY_LIB
692 HISTORY_DEP
693 HIST_LIBDIR
694 TILDE_LIB
695 INSTALL_PROGRAM
696 INSTALL_SCRIPT
697 INSTALL_DATA
698 AR
699 RANLIB
700 YACC
701 YFLAGS
702 SET_MAKE
703 MAKE_SHELL
704 SIZE
705 MKINSTALLDIRS
706 USE_NLS
707 MSGFMT
708 GMSGFMT
709 XGETTEXT
710 MSGMERGE
711 ALLOCA
712 GLIBC21
713 LIBICONV
714 LTLIBICONV
715 INTLBISON
716 BUILD_INCLUDED_LIBINTL
717 USE_INCLUDED_LIBINTL
718 CATOBJEXT
719 DATADIRNAME
720 INSTOBJEXT
721 GENCAT
722 INTLOBJS
723 INTL_LIBTOOL_SUFFIX_PREFIX
724 INTLLIBS
725 LIBINTL
726 LTLIBINTL
727 POSUB
728 LIB@&t@OBJS
729 INTL_DEP
730 INTL_INC
731 LIBINTL_H
732 SIGLIST_O
733 TERMCAP_LIB
734 TERMCAP_DEP
735 JOBS_O
736 SHOBJ_CC
737 SHOBJ_CFLAGS
738 SHOBJ_LD
739 SHOBJ_LDFLAGS
740 SHOBJ_XLDFLAGS
741 SHOBJ_LIBS
742 SHOBJ_STATUS
743 PROFILE_FLAGS
744 incdir
745 BUILD_DIR
746 ARFLAGS
747 BASHVERS
748 RELSTATUS
749 DEBUG
750 MALLOC_DEBUG
751 LOCAL_LIBS
752 LOCAL_CFLAGS
753 LOCAL_LDFLAGS
754 LOCAL_DEFS
755 LTLIBOBJS'
756 ac_subst_files=''
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
760 DEBUGGER_START_FILE
761 CC
762 CFLAGS
763 LDFLAGS
764 CPPFLAGS
765 CPP
766 YACC
767 YFLAGS'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
831
832 # Accept the important Cygnus configure options, so we can diagnose typos.
833
834 case $ac_dashdash$ac_option in
835 --)
836 ac_dashdash=yes ;;
837
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
842
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
847
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
854
855 --config-cache | -C)
856 cache_file=config.cache ;;
857
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
862
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
869
870 -disable-* | --disable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
877 eval enable_$ac_feature=no ;;
878
879 -docdir | --docdir | --docdi | --doc | --do)
880 ac_prev=docdir ;;
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 docdir=$ac_optarg ;;
883
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 ac_prev=dvidir ;;
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 dvidir=$ac_optarg ;;
888
889 -enable-* | --enable-*)
890 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
893 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
894 { (exit 1); exit 1; }; }
895 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
896 eval enable_$ac_feature=\$ac_optarg ;;
897
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
906
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
909 with_gas=yes ;;
910
911 -help | --help | --hel | --he | -h)
912 ac_init_help=long ;;
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
917
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
922
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 ac_prev=htmldir ;;
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 | --ht=*)
927 htmldir=$ac_optarg ;;
928
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
935
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 ac_prev=infodir ;;
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
940
941 -libdir | --libdir | --libdi | --libd)
942 ac_prev=libdir ;;
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 libdir=$ac_optarg ;;
945
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
952
953 -localedir | --localedir | --localedi | --localed | --locale)
954 ac_prev=localedir ;;
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
957
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
964
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 ac_prev=mandir ;;
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 mandir=$ac_optarg ;;
969
970 -nfp | --nfp | --nf)
971 # Obsolete; use --without-fp.
972 with_fp=no ;;
973
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
976 no_create=yes ;;
977
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 no_recursion=yes ;;
981
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
990
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 ac_prev=prefix ;;
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 prefix=$ac_optarg ;;
995
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1002
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1009
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1026
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 ac_prev=pdfdir ;;
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1031
1032 -psdir | --psdir | --psdi | --psd | --ps)
1033 ac_prev=psdir ;;
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 psdir=$ac_optarg ;;
1036
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 silent=yes ;;
1040
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 ac_prev=sbindir ;;
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 | --sbi=* | --sb=*)
1045 sbindir=$ac_optarg ;;
1046
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1050 | --sha | --sh)
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 | --sha=* | --sh=*)
1056 sharedstatedir=$ac_optarg ;;
1057
1058 -site | --site | --sit)
1059 ac_prev=site ;;
1060 -site=* | --site=* | --sit=*)
1061 site=$ac_optarg ;;
1062
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 ac_prev=srcdir ;;
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1067
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1074
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1079
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 verbose=yes ;;
1082
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1085
1086 -with-* | --with-*)
1087 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid package name: $ac_package" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_package=`echo $ac_package| sed 's/-/_/g'`
1093 eval with_$ac_package=\$ac_optarg ;;
1094
1095 -without-* | --without-*)
1096 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid package name: $ac_package" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_package=`echo $ac_package | sed 's/-/_/g'`
1102 eval with_$ac_package=no ;;
1103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1121
1122 -*) { echo "$as_me: error: unrecognized option: $ac_option
1123 Try \`$0 --help' for more information." >&2
1124 { (exit 1); exit 1; }; }
1125 ;;
1126
1127 *=*)
1128 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1131 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1132 { (exit 1); exit 1; }; }
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
1138 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 ;;
1143
1144 esac
1145 done
1146
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 { echo "$as_me: error: missing argument to $ac_option" >&2
1150 { (exit 1); exit 1; }; }
1151 fi
1152
1153 # Be sure to have absolute directory names.
1154 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir
1158 do
1159 eval ac_val=\$$ac_var
1160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
1164 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1165 { (exit 1); exit 1; }; }
1166 done
1167
1168 # There might be people who depend on the old broken behavior: `$host'
1169 # used to hold the argument of --host etc.
1170 # FIXME: To remove some day.
1171 build=$build_alias
1172 host=$host_alias
1173 target=$target_alias
1174
1175 # FIXME: To remove some day.
1176 if test "x$host_alias" != x; then
1177 if test "x$build_alias" = x; then
1178 cross_compiling=maybe
1179 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1180 If a cross compiler is detected then cross compile mode will be used." >&2
1181 elif test "x$build_alias" != "x$host_alias"; then
1182 cross_compiling=yes
1183 fi
1184 fi
1185
1186 ac_tool_prefix=
1187 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189 test "$silent" = yes && exec 6>/dev/null
1190
1191
1192 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193 ac_ls_di=`ls -di .` &&
1194 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 { echo "$as_me: error: Working directory cannot be determined" >&2
1196 { (exit 1); exit 1; }; }
1197 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198 { echo "$as_me: error: pwd does not report name of working directory" >&2
1199 { (exit 1); exit 1; }; }
1200
1201
1202 # Find the source files, if location was not specified.
1203 if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$0" ||
1207 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$0" : 'X\(//\)[^/]' \| \
1209 X"$0" : 'X\(//\)$' \| \
1210 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1211 echo X"$0" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)[^/].*/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\).*/{
1225 s//\1/
1226 q
1227 }
1228 s/.*/./; q'`
1229 srcdir=$ac_confdir
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 srcdir=..
1232 fi
1233 else
1234 ac_srcdir_defaulted=no
1235 fi
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1239 { (exit 1); exit 1; }; }
1240 fi
1241 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1242 ac_abs_confdir=`(
1243 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1244 { (exit 1); exit 1; }; }
1245 pwd)`
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 srcdir=.
1249 fi
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1253 case $srcdir in
1254 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 esac
1256 for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261 done
1262
1263 #
1264 # Report the --help message.
1265 #
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1269 cat <<_ACEOF
1270 \`configure' configures bash 4.0-alpha to adapt to many kinds of systems.
1271
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1273
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1276
1277 Defaults for the options are specified in brackets.
1278
1279 Configuration:
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 [PREFIX]
1295
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1300
1301 For better control, use the options below.
1302
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1323 _ACEOF
1324
1325 cat <<\_ACEOF
1326
1327 System types:
1328 --build=BUILD configure for building on BUILD [guessed]
1329 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1330 _ACEOF
1331 fi
1332
1333 if test -n "$ac_init_help"; then
1334 case $ac_init_help in
1335 short | recursive ) echo "Configuration of bash 4.0-alpha:";;
1336 esac
1337 cat <<\_ACEOF
1338
1339 Optional Features:
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --enable-minimal-config a minimal sh-like configuration
1343 --enable-alias enable shell aliases
1344 --enable-arith-for-command
1345 enable arithmetic for command
1346 --enable-array-variables
1347 include shell array variables
1348 --enable-bang-history turn on csh-style history substitution
1349 --enable-brace-expansion
1350 include brace expansion
1351 --enable-casemod-attributes
1352 include case-modifying variable attributes
1353 --enable-casemod-expansions
1354 include case-modifying word expansions
1355 --enable-command-timing enable the time reserved word and command timing
1356 --enable-cond-command enable the conditional command
1357 --enable-cond-regexp enable extended regular expression matching in
1358 conditional commands
1359 --enable-coprocesses enable coprocess support and the coproc reserved
1360 word
1361 --enable-debugger enable support for bash debugger
1362 --enable-directory-stack
1363 enable builtins pushd/popd/dirs
1364 --enable-disabled-builtins
1365 allow disabled builtins to still be invoked
1366 --enable-dparen-arithmetic
1367 include ((...)) command
1368 --enable-extended-glob include ksh-style extended pattern matching
1369 --enable-help-builtin include the help builtin
1370 --enable-history turn on command history
1371 --enable-job-control enable job control features
1372 --enable-multibyte enable multibyte characters if OS supports them
1373 --enable-net-redirections
1374 enable /dev/tcp/host/port redirection
1375 --enable-process-substitution
1376 enable process substitution
1377 --enable-progcomp enable programmable completion and the complete
1378 builtin
1379 --enable-prompt-string-decoding
1380 turn on escape character decoding in prompts
1381 --enable-readline turn on command line editing
1382 --enable-restricted enable a restricted shell
1383 --enable-select include select command
1384 --enable-separate-helpfiles
1385 use external files for help builtin documentation
1386 --enable-single-help-strings
1387 store help documentation as a single string to ease
1388 translation
1389 --enable-strict-posix-default
1390 configure bash to be posix-conformant by default
1391 --enable-usg-echo-default
1392 a synonym for --enable-xpg-echo-default
1393 --enable-xpg-echo-default
1394 make the echo builtin expand escape sequences by
1395 default
1396 --enable-mem-scramble scramble memory on calls to malloc and free
1397 --enable-profiling allow profiling with gprof
1398 --enable-static-link link bash statically, for use as a root shell
1399 --disable-largefile omit support for large files
1400 --disable-nls do not use Native Language Support
1401 --disable-rpath do not hardcode runtime library paths
1402
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-lispdir override the default lisp directory
1407 --with-afs if you are running AFS
1408 --with-bash-malloc use the Bash version of malloc
1409 --with-curses use the curses library instead of the termcap
1410 library
1411 --with-gnu-malloc synonym for --with-bash-malloc
1412 --with-installed-readline
1413 use a version of the readline library that is
1414 already installed
1415 --with-purecov configure to postprocess with pure coverage
1416 --with-purify configure to postprocess with purify
1417 --with-gnu-ld assume the C compiler uses GNU ld default=no
1418 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1419 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1420 --with-included-gettext use the GNU gettext library included here
1421 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1422 --without-libintl-prefix don't search for libintl in includedir and libdir
1423
1424 Some influential environment variables:
1425 DEBUGGER_START_FILE
1426 location of bash debugger initialization file
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1435 the first program found out of: `bison -y', `byacc', `yacc'.
1436 YFLAGS The list of arguments that will be passed by default to $YACC.
1437 This script will default YFLAGS to the empty string to avoid a
1438 default value of `-d' given by some make applications.
1439
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1442
1443 Report bugs to <bug-bash@gnu.org>.
1444 _ACEOF
1445 ac_status=$?
1446 fi
1447
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 test -d "$ac_dir" || continue
1452 ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 bash configure 4.0-alpha
1505 generated by GNU Autoconf 2.60
1506
1507 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1508 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1517
1518 It was created by bash $as_me 4.0-alpha, which was
1519 generated by GNU Autoconf 2.60. Invocation command line was
1520
1521 $ $0 $@
1522
1523 _ACEOF
1524 exec 5>>config.log
1525 {
1526 cat <<_ASUNAME
1527 @%:@@%:@ --------- @%:@@%:@
1528 @%:@@%:@ Platform. @%:@@%:@
1529 @%:@@%:@ --------- @%:@@%:@
1530
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1536
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1539
1540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1547
1548 _ASUNAME
1549
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1556 done
1557 IFS=$as_save_IFS
1558
1559 } >&5
1560
1561 cat >&5 <<_ACEOF
1562
1563
1564 @%:@@%:@ ----------- @%:@@%:@
1565 @%:@@%:@ Core tests. @%:@@%:@
1566 @%:@@%:@ ----------- @%:@@%:@
1567
1568 _ACEOF
1569
1570
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1576 ac_configure_args=
1577 ac_configure_args0=
1578 ac_configure_args1=
1579 ac_must_keep_next=false
1580 for ac_pass in 1 2
1581 do
1582 for ac_arg
1583 do
1584 case $ac_arg in
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1588 continue ;;
1589 *\'*)
1590 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 esac
1592 case $ac_pass in
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1594 2)
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1598 else
1599 case $ac_arg in
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606 esac
1607 ;;
1608 -* ) ac_must_keep_next=true ;;
1609 esac
1610 fi
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1612 ;;
1613 esac
1614 done
1615 done
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1618
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1626 {
1627 echo
1628
1629 cat <<\_ASBOX
1630 @%:@@%:@ ---------------- @%:@@%:@
1631 @%:@@%:@ Cache variables. @%:@@%:@
1632 @%:@@%:@ ---------------- @%:@@%:@
1633 _ASBOX
1634 echo
1635 # The following way of writing the cache mishandles newlines in values,
1636 (
1637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638 eval ac_val=\$$ac_var
1639 case $ac_val in #(
1640 *${as_nl}*)
1641 case $ac_var in #(
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644 esac
1645 case $ac_var in #(
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1648 esac ;;
1649 esac
1650 done
1651 (set) 2>&1 |
1652 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1654 sed -n \
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1657 ;; #(
1658 *)
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660 ;;
1661 esac |
1662 sort
1663 )
1664 echo
1665
1666 cat <<\_ASBOX
1667 @%:@@%:@ ----------------- @%:@@%:@
1668 @%:@@%:@ Output variables. @%:@@%:@
1669 @%:@@%:@ ----------------- @%:@@%:@
1670 _ASBOX
1671 echo
1672 for ac_var in $ac_subst_vars
1673 do
1674 eval ac_val=\$$ac_var
1675 case $ac_val in
1676 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677 esac
1678 echo "$ac_var='\''$ac_val'\''"
1679 done | sort
1680 echo
1681
1682 if test -n "$ac_subst_files"; then
1683 cat <<\_ASBOX
1684 @%:@@%:@ ------------------- @%:@@%:@
1685 @%:@@%:@ File substitutions. @%:@@%:@
1686 @%:@@%:@ ------------------- @%:@@%:@
1687 _ASBOX
1688 echo
1689 for ac_var in $ac_subst_files
1690 do
1691 eval ac_val=\$$ac_var
1692 case $ac_val in
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 esac
1695 echo "$ac_var='\''$ac_val'\''"
1696 done | sort
1697 echo
1698 fi
1699
1700 if test -s confdefs.h; then
1701 cat <<\_ASBOX
1702 @%:@@%:@ ----------- @%:@@%:@
1703 @%:@@%:@ confdefs.h. @%:@@%:@
1704 @%:@@%:@ ----------- @%:@@%:@
1705 _ASBOX
1706 echo
1707 cat confdefs.h
1708 echo
1709 fi
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1713 } >&5
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1716 exit $exit_status
1717 ' 0
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1720 done
1721 ac_signal=0
1722
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1725
1726 # Predefined preprocessor variables.
1727
1728 cat >>confdefs.h <<_ACEOF
1729 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1730 _ACEOF
1731
1732
1733 cat >>confdefs.h <<_ACEOF
1734 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1736
1737
1738 cat >>confdefs.h <<_ACEOF
1739 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1750 _ACEOF
1751
1752
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1759 else
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1762 fi
1763 shift
1764 for ac_site_file
1765 do
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1770 . "$ac_site_file"
1771 fi
1772 done
1773
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1780 case $cache_file in
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1783 esac
1784 fi
1785 else
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1788 >$cache_file
1789 fi
1790
1791 ac_func_list="$ac_func_list fpurge"
1792 ac_func_list="$ac_func_list __fpurge"
1793 # Check that the precious variables saved in the cache have kept the same
1794 # value.
1795 ac_cache_corrupted=false
1796 for ac_var in $ac_precious_vars; do
1797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1798 eval ac_new_set=\$ac_env_${ac_var}_set
1799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1800 eval ac_new_val=\$ac_env_${ac_var}_value
1801 case $ac_old_set,$ac_new_set in
1802 set,)
1803 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1804 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1806 ,set)
1807 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1808 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1810 ,);;
1811 *)
1812 if test "x$ac_old_val" != "x$ac_new_val"; then
1813 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1814 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1815 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1816 echo "$as_me: former value: $ac_old_val" >&2;}
1817 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1818 echo "$as_me: current value: $ac_new_val" >&2;}
1819 ac_cache_corrupted=:
1820 fi;;
1821 esac
1822 # Pass precious variables to config.status.
1823 if test "$ac_new_set" = set; then
1824 case $ac_new_val in
1825 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 *) ac_arg=$ac_var=$ac_new_val ;;
1827 esac
1828 case " $ac_configure_args " in
1829 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1830 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1831 esac
1832 fi
1833 done
1834 if $ac_cache_corrupted; then
1835 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1836 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1837 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1838 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1839 { (exit 1); exit 1; }; }
1840 fi
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866 ac_ext=c
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871
1872
1873
1874
1875
1876
1877 ac_aux_dir=
1878 for ac_dir in ./support "$srcdir"/./support; do
1879 if test -f "$ac_dir/install-sh"; then
1880 ac_aux_dir=$ac_dir
1881 ac_install_sh="$ac_aux_dir/install-sh -c"
1882 break
1883 elif test -f "$ac_dir/install.sh"; then
1884 ac_aux_dir=$ac_dir
1885 ac_install_sh="$ac_aux_dir/install.sh -c"
1886 break
1887 elif test -f "$ac_dir/shtool"; then
1888 ac_aux_dir=$ac_dir
1889 ac_install_sh="$ac_aux_dir/shtool install -c"
1890 break
1891 fi
1892 done
1893 if test -z "$ac_aux_dir"; then
1894 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
1895 echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
1896 { (exit 1); exit 1; }; }
1897 fi
1898
1899 # These three variables are undocumented and unsupported,
1900 # and are intended to be withdrawn in a future Autoconf release.
1901 # They can cause serious problems if a builder's source tree is in a directory
1902 # whose full name contains unusual characters.
1903 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1904 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1905 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1906
1907
1908 ac_config_headers="$ac_config_headers config.h"
1909
1910
1911 BASHVERS=4.0
1912 RELSTATUS=alpha
1913
1914 case "$RELSTATUS" in
1915 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1916 *) DEBUG= MALLOC_DEBUG= ;;
1917 esac
1918
1919 # Make sure we can run config.sub.
1920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1921 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1922 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1923 { (exit 1); exit 1; }; }
1924
1925 { echo "$as_me:$LINENO: checking build system type" >&5
1926 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_build+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930 ac_build_alias=$build_alias
1931 test "x$ac_build_alias" = x &&
1932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1933 test "x$ac_build_alias" = x &&
1934 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1935 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1936 { (exit 1); exit 1; }; }
1937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1941
1942 fi
1943 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944 echo "${ECHO_T}$ac_cv_build" >&6; }
1945 case $ac_cv_build in
1946 *-*-*) ;;
1947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1948 echo "$as_me: error: invalid value of canonical build" >&2;}
1949 { (exit 1); exit 1; }; };;
1950 esac
1951 build=$ac_cv_build
1952 ac_save_IFS=$IFS; IFS='-'
1953 set x $ac_cv_build
1954 shift
1955 build_cpu=$1
1956 build_vendor=$2
1957 shift; shift
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1960 build_os=$*
1961 IFS=$ac_save_IFS
1962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1963
1964
1965 { echo "$as_me:$LINENO: checking host system type" >&5
1966 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1967 if test "${ac_cv_host+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 if test "x$host_alias" = x; then
1971 ac_cv_host=$ac_cv_build
1972 else
1973 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1974 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1975 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1976 { (exit 1); exit 1; }; }
1977 fi
1978
1979 fi
1980 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981 echo "${ECHO_T}$ac_cv_host" >&6; }
1982 case $ac_cv_host in
1983 *-*-*) ;;
1984 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1985 echo "$as_me: error: invalid value of canonical host" >&2;}
1986 { (exit 1); exit 1; }; };;
1987 esac
1988 host=$ac_cv_host
1989 ac_save_IFS=$IFS; IFS='-'
1990 set x $ac_cv_host
1991 shift
1992 host_cpu=$1
1993 host_vendor=$2
1994 shift; shift
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1997 host_os=$*
1998 IFS=$ac_save_IFS
1999 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2000
2001
2002
2003 opt_bash_malloc=yes
2004 opt_purify=no
2005 opt_purecov=no
2006 opt_afs=no
2007 opt_curses=no
2008 opt_with_installed_readline=no
2009
2010 #htmldir=
2011
2012 case "${host_cpu}-${host_os}" in
2013 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2014 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2015 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2016 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2017 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2018 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2019 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2020 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2021 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2022 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2023 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2024 *-aix*) opt_bash_malloc=no ;; # AIX machines
2025 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2026 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2027 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2028 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2029 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2030 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2031 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2032 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2033 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2034 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2035 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2036 esac
2037
2038 # memory scrambling on free()
2039 case "${host_os}" in
2040 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2041 *) opt_memscramble=yes ;;
2042 esac
2043
2044
2045 # Check whether --with-lispdir was given.
2046 if test "${with_lispdir+set}" = set; then
2047 withval=$with_lispdir; lispdir="$withval"
2048 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2049 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2050 { echo "$as_me:$LINENO: result: $lispdir" >&5
2051 echo "${ECHO_T}$lispdir" >&6; }
2052 else
2053
2054 # If set to t, that means we are running in a shell under Emacs.
2055 # If you have an Emacs named "t", then use the full path.
2056 test x"$EMACS" = xt && EMACS=
2057 for ac_prog in emacs xemacs
2058 do
2059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2060 set dummy $ac_prog; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_EMACS+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$EMACS"; then
2067 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2076 ac_cv_prog_EMACS="$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080 done
2081 done
2082 IFS=$as_save_IFS
2083
2084 fi
2085 fi
2086 EMACS=$ac_cv_prog_EMACS
2087 if test -n "$EMACS"; then
2088 { echo "$as_me:$LINENO: result: $EMACS" >&5
2089 echo "${ECHO_T}$EMACS" >&6; }
2090 else
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2093 fi
2094
2095
2096 test -n "$EMACS" && break
2097 done
2098 test -n "$EMACS" || EMACS="no"
2099
2100 if test $EMACS != "no"; then
2101 if test x${lispdir+set} != xset; then
2102 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2103 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2104 if test "${am_cv_lispdir+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
2108 if test -z "$am_cv_lispdir"; then
2109 am_cv_lispdir='${datadir}/emacs/site-lisp'
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2114 echo "${ECHO_T}$am_cv_lispdir" >&6; }
2115 lispdir="$am_cv_lispdir"
2116 fi
2117 fi
2118
2119 fi
2120
2121
2122
2123
2124
2125
2126 # Check whether --with-afs was given.
2127 if test "${with_afs+set}" = set; then
2128 withval=$with_afs; opt_afs=$withval
2129 fi
2130
2131
2132 # Check whether --with-bash-malloc was given.
2133 if test "${with_bash_malloc+set}" = set; then
2134 withval=$with_bash_malloc; opt_bash_malloc=$withval
2135 fi
2136
2137
2138 # Check whether --with-curses was given.
2139 if test "${with_curses+set}" = set; then
2140 withval=$with_curses; opt_curses=$withval
2141 fi
2142
2143
2144 # Check whether --with-gnu-malloc was given.
2145 if test "${with_gnu_malloc+set}" = set; then
2146 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2147 fi
2148
2149
2150 # Check whether --with-installed-readline was given.
2151 if test "${with_installed_readline+set}" = set; then
2152 withval=$with_installed_readline; opt_with_installed_readline=$withval
2153 fi
2154
2155
2156 # Check whether --with-purecov was given.
2157 if test "${with_purecov+set}" = set; then
2158 withval=$with_purecov; opt_purecov=$withval
2159 fi
2160
2161
2162 # Check whether --with-purify was given.
2163 if test "${with_purify+set}" = set; then
2164 withval=$with_purify; opt_purify=$withval
2165 fi
2166
2167
2168 if test "$opt_bash_malloc" = yes; then
2169 MALLOC_TARGET=malloc
2170 MALLOC_SRC=malloc.c
2171
2172 MALLOC_LIB='-lmalloc'
2173 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2174 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2175 MALLOC_DEP='$(MALLOC_LIBRARY)'
2176
2177 cat >>confdefs.h <<\_ACEOF
2178 @%:@define USING_BASH_MALLOC 1
2179 _ACEOF
2180
2181 else
2182 MALLOC_LIB=
2183 MALLOC_LIBRARY=
2184 MALLOC_LDFLAGS=
2185 MALLOC_DEP=
2186 fi
2187
2188 if test "$opt_purify" = yes; then
2189 PURIFY="purify "
2190 cat >>confdefs.h <<\_ACEOF
2191 @%:@define DISABLE_MALLOC_WRAPPERS 1
2192 _ACEOF
2193
2194 else
2195 PURIFY=
2196 fi
2197
2198 if test "$opt_purecov" = yes; then
2199 PURIFY="${PURIFY}purecov"
2200 fi
2201
2202 if test "$opt_afs" = yes; then
2203 cat >>confdefs.h <<\_ACEOF
2204 @%:@define AFS 1
2205 _ACEOF
2206
2207 fi
2208
2209 if test "$opt_curses" = yes; then
2210 prefer_curses=yes
2211 fi
2212
2213 if test -z "${DEBUGGER_START_FILE}"; then
2214 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2215 fi
2216
2217 opt_minimal_config=no
2218
2219 opt_job_control=yes
2220 opt_alias=yes
2221 opt_readline=yes
2222 opt_history=yes
2223 opt_bang_history=yes
2224 opt_dirstack=yes
2225 opt_restricted=yes
2226 opt_process_subst=yes
2227 opt_prompt_decoding=yes
2228 opt_select=yes
2229 opt_help=yes
2230 opt_array_variables=yes
2231 opt_dparen_arith=yes
2232 opt_extended_glob=yes
2233 opt_brace_expansion=yes
2234 opt_disabled_builtins=no
2235 opt_command_timing=yes
2236 opt_xpg_echo=no
2237 opt_strict_posix=no
2238 opt_cond_command=yes
2239 opt_cond_regexp=yes
2240 opt_coproc=yes
2241 opt_arith_for_command=yes
2242 opt_net_redirs=yes
2243 opt_progcomp=yes
2244 opt_separate_help=no
2245 opt_multibyte=yes
2246 opt_debugger=yes
2247 opt_single_longdoc_strings=yes
2248 opt_casemod_attrs=yes
2249 opt_casemod_expansions=yes
2250
2251 opt_static_link=no
2252 opt_profiling=no
2253
2254 # Check whether --enable-minimal-config was given.
2255 if test "${enable_minimal_config+set}" = set; then
2256 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2257 fi
2258
2259
2260 if test $opt_minimal_config = yes; then
2261 opt_job_control=no opt_alias=no opt_readline=no
2262 opt_history=no opt_bang_history=no opt_dirstack=no
2263 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2264 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2265 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2266 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2267 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2268 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2269 opt_casemod_attrs=no opt_casemod_expansions=no
2270 fi
2271
2272 # Check whether --enable-alias was given.
2273 if test "${enable_alias+set}" = set; then
2274 enableval=$enable_alias; opt_alias=$enableval
2275 fi
2276
2277 # Check whether --enable-arith-for-command was given.
2278 if test "${enable_arith_for_command+set}" = set; then
2279 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2280 fi
2281
2282 # Check whether --enable-array-variables was given.
2283 if test "${enable_array_variables+set}" = set; then
2284 enableval=$enable_array_variables; opt_array_variables=$enableval
2285 fi
2286
2287 # Check whether --enable-bang-history was given.
2288 if test "${enable_bang_history+set}" = set; then
2289 enableval=$enable_bang_history; opt_bang_history=$enableval
2290 fi
2291
2292 # Check whether --enable-brace-expansion was given.
2293 if test "${enable_brace_expansion+set}" = set; then
2294 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2295 fi
2296
2297 # Check whether --enable-casemod-attributes was given.
2298 if test "${enable_casemod_attributes+set}" = set; then
2299 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2300 fi
2301
2302 # Check whether --enable-casemod-expansions was given.
2303 if test "${enable_casemod_expansions+set}" = set; then
2304 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2305 fi
2306
2307 # Check whether --enable-command-timing was given.
2308 if test "${enable_command_timing+set}" = set; then
2309 enableval=$enable_command_timing; opt_command_timing=$enableval
2310 fi
2311
2312 # Check whether --enable-cond-command was given.
2313 if test "${enable_cond_command+set}" = set; then
2314 enableval=$enable_cond_command; opt_cond_command=$enableval
2315 fi
2316
2317 # Check whether --enable-cond-regexp was given.
2318 if test "${enable_cond_regexp+set}" = set; then
2319 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2320 fi
2321
2322 # Check whether --enable-coprocesses was given.
2323 if test "${enable_coprocesses+set}" = set; then
2324 enableval=$enable_coprocesses; opt_coproc=$enableval
2325 fi
2326
2327 # Check whether --enable-debugger was given.
2328 if test "${enable_debugger+set}" = set; then
2329 enableval=$enable_debugger; opt_debugger=$enableval
2330 fi
2331
2332 # Check whether --enable-directory-stack was given.
2333 if test "${enable_directory_stack+set}" = set; then
2334 enableval=$enable_directory_stack; opt_dirstack=$enableval
2335 fi
2336
2337 # Check whether --enable-disabled-builtins was given.
2338 if test "${enable_disabled_builtins+set}" = set; then
2339 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2340 fi
2341
2342 # Check whether --enable-dparen-arithmetic was given.
2343 if test "${enable_dparen_arithmetic+set}" = set; then
2344 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2345 fi
2346
2347 # Check whether --enable-extended-glob was given.
2348 if test "${enable_extended_glob+set}" = set; then
2349 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2350 fi
2351
2352 # Check whether --enable-help-builtin was given.
2353 if test "${enable_help_builtin+set}" = set; then
2354 enableval=$enable_help_builtin; opt_help=$enableval
2355 fi
2356
2357 # Check whether --enable-history was given.
2358 if test "${enable_history+set}" = set; then
2359 enableval=$enable_history; opt_history=$enableval
2360 fi
2361
2362 # Check whether --enable-job-control was given.
2363 if test "${enable_job_control+set}" = set; then
2364 enableval=$enable_job_control; opt_job_control=$enableval
2365 fi
2366
2367 # Check whether --enable-multibyte was given.
2368 if test "${enable_multibyte+set}" = set; then
2369 enableval=$enable_multibyte; opt_multibyte=$enableval
2370 fi
2371
2372 # Check whether --enable-net-redirections was given.
2373 if test "${enable_net_redirections+set}" = set; then
2374 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2375 fi
2376
2377 # Check whether --enable-process-substitution was given.
2378 if test "${enable_process_substitution+set}" = set; then
2379 enableval=$enable_process_substitution; opt_process_subst=$enableval
2380 fi
2381
2382 # Check whether --enable-progcomp was given.
2383 if test "${enable_progcomp+set}" = set; then
2384 enableval=$enable_progcomp; opt_progcomp=$enableval
2385 fi
2386
2387 # Check whether --enable-prompt-string-decoding was given.
2388 if test "${enable_prompt_string_decoding+set}" = set; then
2389 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2390 fi
2391
2392 # Check whether --enable-readline was given.
2393 if test "${enable_readline+set}" = set; then
2394 enableval=$enable_readline; opt_readline=$enableval
2395 fi
2396
2397 # Check whether --enable-restricted was given.
2398 if test "${enable_restricted+set}" = set; then
2399 enableval=$enable_restricted; opt_restricted=$enableval
2400 fi
2401
2402 # Check whether --enable-select was given.
2403 if test "${enable_select+set}" = set; then
2404 enableval=$enable_select; opt_select=$enableval
2405 fi
2406
2407 # Check whether --enable-separate-helpfiles was given.
2408 if test "${enable_separate_helpfiles+set}" = set; then
2409 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2410 fi
2411
2412 # Check whether --enable-single-help-strings was given.
2413 if test "${enable_single_help_strings+set}" = set; then
2414 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2415 fi
2416
2417 # Check whether --enable-strict-posix-default was given.
2418 if test "${enable_strict_posix_default+set}" = set; then
2419 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2420 fi
2421
2422 # Check whether --enable-usg-echo-default was given.
2423 if test "${enable_usg_echo_default+set}" = set; then
2424 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2425 fi
2426
2427 # Check whether --enable-xpg-echo-default was given.
2428 if test "${enable_xpg_echo_default+set}" = set; then
2429 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2430 fi
2431
2432
2433 # Check whether --enable-mem-scramble was given.
2434 if test "${enable_mem_scramble+set}" = set; then
2435 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2436 fi
2437
2438 # Check whether --enable-profiling was given.
2439 if test "${enable_profiling+set}" = set; then
2440 enableval=$enable_profiling; opt_profiling=$enableval
2441 fi
2442
2443 # Check whether --enable-static-link was given.
2444 if test "${enable_static_link+set}" = set; then
2445 enableval=$enable_static_link; opt_static_link=$enableval
2446 fi
2447
2448
2449
2450
2451 if test $opt_alias = yes; then
2452 cat >>confdefs.h <<\_ACEOF
2453 @%:@define ALIAS 1
2454 _ACEOF
2455
2456 fi
2457 if test $opt_dirstack = yes; then
2458 cat >>confdefs.h <<\_ACEOF
2459 @%:@define PUSHD_AND_POPD 1
2460 _ACEOF
2461
2462 fi
2463 if test $opt_restricted = yes; then
2464 cat >>confdefs.h <<\_ACEOF
2465 @%:@define RESTRICTED_SHELL 1
2466 _ACEOF
2467
2468 fi
2469 if test $opt_process_subst = yes; then
2470 cat >>confdefs.h <<\_ACEOF
2471 @%:@define PROCESS_SUBSTITUTION 1
2472 _ACEOF
2473
2474 fi
2475 if test $opt_prompt_decoding = yes; then
2476 cat >>confdefs.h <<\_ACEOF
2477 @%:@define PROMPT_STRING_DECODE 1
2478 _ACEOF
2479
2480 fi
2481 if test $opt_select = yes; then
2482 cat >>confdefs.h <<\_ACEOF
2483 @%:@define SELECT_COMMAND 1
2484 _ACEOF
2485
2486 fi
2487 if test $opt_help = yes; then
2488 cat >>confdefs.h <<\_ACEOF
2489 @%:@define HELP_BUILTIN 1
2490 _ACEOF
2491
2492 fi
2493 if test $opt_array_variables = yes; then
2494 cat >>confdefs.h <<\_ACEOF
2495 @%:@define ARRAY_VARS 1
2496 _ACEOF
2497
2498 fi
2499 if test $opt_dparen_arith = yes; then
2500 cat >>confdefs.h <<\_ACEOF
2501 @%:@define DPAREN_ARITHMETIC 1
2502 _ACEOF
2503
2504 fi
2505 if test $opt_brace_expansion = yes; then
2506 cat >>confdefs.h <<\_ACEOF
2507 @%:@define BRACE_EXPANSION 1
2508 _ACEOF
2509
2510 fi
2511 if test $opt_disabled_builtins = yes; then
2512 cat >>confdefs.h <<\_ACEOF
2513 @%:@define DISABLED_BUILTINS 1
2514 _ACEOF
2515
2516 fi
2517 if test $opt_command_timing = yes; then
2518 cat >>confdefs.h <<\_ACEOF
2519 @%:@define COMMAND_TIMING 1
2520 _ACEOF
2521
2522 fi
2523 if test $opt_xpg_echo = yes ; then
2524 cat >>confdefs.h <<\_ACEOF
2525 @%:@define DEFAULT_ECHO_TO_XPG 1
2526 _ACEOF
2527
2528 fi
2529 if test $opt_strict_posix = yes; then
2530 cat >>confdefs.h <<\_ACEOF
2531 @%:@define STRICT_POSIX 1
2532 _ACEOF
2533
2534 fi
2535 if test $opt_extended_glob = yes ; then
2536 cat >>confdefs.h <<\_ACEOF
2537 @%:@define EXTENDED_GLOB 1
2538 _ACEOF
2539
2540 fi
2541 if test $opt_cond_command = yes ; then
2542 cat >>confdefs.h <<\_ACEOF
2543 @%:@define COND_COMMAND 1
2544 _ACEOF
2545
2546 fi
2547 if test $opt_cond_regexp = yes ; then
2548 cat >>confdefs.h <<\_ACEOF
2549 @%:@define COND_REGEXP 1
2550 _ACEOF
2551
2552 fi
2553 if test $opt_coproc = yes; then
2554 cat >>confdefs.h <<\_ACEOF
2555 @%:@define COPROCESS_SUPPORT 1
2556 _ACEOF
2557
2558 fi
2559 if test $opt_arith_for_command = yes; then
2560 cat >>confdefs.h <<\_ACEOF
2561 @%:@define ARITH_FOR_COMMAND 1
2562 _ACEOF
2563
2564 fi
2565 if test $opt_net_redirs = yes; then
2566 cat >>confdefs.h <<\_ACEOF
2567 @%:@define NETWORK_REDIRECTIONS 1
2568 _ACEOF
2569
2570 fi
2571 if test $opt_progcomp = yes; then
2572 cat >>confdefs.h <<\_ACEOF
2573 @%:@define PROGRAMMABLE_COMPLETION 1
2574 _ACEOF
2575
2576 fi
2577 if test $opt_multibyte = no; then
2578 cat >>confdefs.h <<\_ACEOF
2579 @%:@define NO_MULTIBYTE_SUPPORT 1
2580 _ACEOF
2581
2582 fi
2583 if test $opt_debugger = yes; then
2584 cat >>confdefs.h <<\_ACEOF
2585 @%:@define DEBUGGER 1
2586 _ACEOF
2587
2588 fi
2589 if test $opt_casemod_attrs = yes; then
2590 cat >>confdefs.h <<\_ACEOF
2591 @%:@define CASEMOD_ATTRS 1
2592 _ACEOF
2593
2594 fi
2595 if test $opt_casemod_expansions = yes; then
2596 cat >>confdefs.h <<\_ACEOF
2597 @%:@define CASEMOD_EXPANSIONS 1
2598 _ACEOF
2599
2600 fi
2601
2602 if test $opt_memscramble = yes; then
2603 cat >>confdefs.h <<\_ACEOF
2604 @%:@define MEMSCRAMBLE 1
2605 _ACEOF
2606
2607 fi
2608
2609 if test "$opt_minimal_config" = yes; then
2610 TESTSCRIPT=run-minimal
2611 else
2612 TESTSCRIPT=run-all
2613 fi
2614
2615 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2616 if test "$opt_separate_help" != no; then
2617 if test "$opt_separate_help" = "yes" ; then
2618 HELPDIR='${datadir}/bash'
2619 else
2620 HELPDIR=$opt_separate_help
2621 fi
2622 HELPDIRDEFINE='-H ${HELPDIR}'
2623 HELPINSTALL='install-help'
2624 fi
2625 HELPSTRINGS=
2626 if test "$opt_single_longdoc_strings" != "yes"; then
2627 HELPSTRINGS='-S'
2628 fi
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647 echo ""
2648 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2649 echo ""
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686 { echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6; }
2688 else
2689 { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2691 fi
2692
2693
2694 fi
2695 if test -z "$ac_cv_prog_CC"; then
2696 ac_ct_CC=$CC
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698 set dummy gcc; ac_word=$2
2699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_CC="gcc"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727 echo "${ECHO_T}$ac_ct_CC" >&6; }
2728 else
2729 { echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6; }
2731 fi
2732
2733 if test "x$ac_ct_CC" = x; then
2734 CC=""
2735 else
2736 case $cross_compiling:$ac_tool_warned in
2737 yes:)
2738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2739 whose name does not start with the host triplet. If you think this
2740 configuration is useful to you, please write to autoconf@gnu.org." >&5
2741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2742 whose name does not start with the host triplet. If you think this
2743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 CC=$ac_ct_CC
2747 fi
2748 else
2749 CC="$ac_cv_prog_CC"
2750 fi
2751
2752 if test -z "$CC"; then
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}cc; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="${ac_tool_prefix}cc"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2785 else
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2788 fi
2789
2790
2791 fi
2792 fi
2793 if test -z "$CC"; then
2794 # Extract the first word of "cc", so it can be a program name with args.
2795 set dummy cc; ac_word=$2
2796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2798 if test "${ac_cv_prog_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 ac_prog_rejected=no
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2813 ac_prog_rejected=yes
2814 continue
2815 fi
2816 ac_cv_prog_CC="cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 if test $ac_prog_rejected = yes; then
2825 # We found a bogon in the path, so make sure we never use it.
2826 set dummy $ac_cv_prog_CC
2827 shift
2828 if test $@%:@ != 0; then
2829 # We chose a different compiler from the bogus one.
2830 # However, it has the same basename, so the bogon will be chosen
2831 # first if we set CC to just the basename; use the full file name.
2832 shift
2833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2834 fi
2835 fi
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840 { echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6; }
2842 else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848 fi
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 for ac_prog in cl.exe
2852 do
2853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 CC=$ac_cv_prog_CC
2881 if test -n "$CC"; then
2882 { echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6; }
2884 else
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890 test -n "$CC" && break
2891 done
2892 fi
2893 if test -z "$CC"; then
2894 ac_ct_CC=$CC
2895 for ac_prog in cl.exe
2896 do
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_ac_ct_CC="$ac_prog"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2927 echo "${ECHO_T}$ac_ct_CC" >&6; }
2928 else
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2931 fi
2932
2933
2934 test -n "$ac_ct_CC" && break
2935 done
2936
2937 if test "x$ac_ct_CC" = x; then
2938 CC=""
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2943 whose name does not start with the host triplet. If you think this
2944 configuration is useful to you, please write to autoconf@gnu.org." >&5
2945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2948 ac_tool_warned=yes ;;
2949 esac
2950 CC=$ac_ct_CC
2951 fi
2952 fi
2953
2954 fi
2955
2956
2957 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2962
2963 # Provide some information about the compiler.
2964 echo "$as_me:$LINENO: checking for C compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (ac_try="$ac_compiler --version >&5"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compiler --version >&5") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2976 { (ac_try="$ac_compiler -v >&5"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler -v >&5") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986 { (ac_try="$ac_compiler -V >&5"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -V >&5") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003
3004 int
3005 main ()
3006 {
3007
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 ac_clean_files_save=$ac_clean_files
3013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3014 # Try to create an executable without -o first, disregard a.out.
3015 # It will help us diagnose broken compilers, and finding out an intuition
3016 # of exeext.
3017 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3020 #
3021 # List of possible output files, starting from the most likely.
3022 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3023 # only as a last resort. b.out is created by i960 compilers.
3024 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3025 #
3026 # The IRIX 6 linker writes into existing files which may not be
3027 # executable, retaining their permissions. Remove them first so a
3028 # subsequent execution test works.
3029 ac_rmfiles=
3030 for ac_file in $ac_files
3031 do
3032 case $ac_file in
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035 esac
3036 done
3037 rm -f $ac_rmfiles
3038
3039 if { (ac_try="$ac_link_default"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_link_default") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
3049 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3050 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3051 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3052 # so that the user can short-circuit this test for compilers unknown to
3053 # Autoconf.
3054 for ac_file in $ac_files
3055 do
3056 test -f "$ac_file" || continue
3057 case $ac_file in
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3059 ;;
3060 [ab].out )
3061 # We found the default executable, but exeext='' is most
3062 # certainly right.
3063 break;;
3064 *.* )
3065 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3066 then :; else
3067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 fi
3069 # We set ac_cv_exeext here because the later test for it is not
3070 # safe: cross compilers may not add the suffix if given an `-o'
3071 # argument, so we may need to know it at that point already.
3072 # Even if this section looks crufty: it has the advantage of
3073 # actually working.
3074 break;;
3075 * )
3076 break;;
3077 esac
3078 done
3079 test "$ac_cv_exeext" = no && ac_cv_exeext=
3080
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&2;}
3089 { (exit 77); exit 77; }; }
3090 fi
3091
3092 ac_exeext=$ac_cv_exeext
3093 { echo "$as_me:$LINENO: result: $ac_file" >&5
3094 echo "${ECHO_T}$ac_file" >&6; }
3095
3096 # Check that the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3099 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3101 # If not cross compiling, check that we can run a simple program.
3102 if test "$cross_compiling" != yes; then
3103 if { ac_try='./$ac_file'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 cross_compiling=no
3114 else
3115 if test "$cross_compiling" = maybe; then
3116 cross_compiling=yes
3117 else
3118 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3119 If you meant to cross compile, use \`--host'.
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: cannot run C compiled programs.
3122 If you meant to cross compile, use \`--host'.
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3125 fi
3126 fi
3127 fi
3128 { echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6; }
3130
3131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3132 ac_clean_files=$ac_clean_files_save
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3137 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3138 echo "${ECHO_T}$cross_compiling" >&6; }
3139
3140 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3142 if { (ac_try="$ac_link"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_link") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; then
3152 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3154 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 # `rm'.
3156 for ac_file in conftest.exe conftest conftest.*; do
3157 test -f "$ac_file" || continue
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 break;;
3162 * ) break;;
3163 esac
3164 done
3165 else
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3171 fi
3172
3173 rm -f conftest$ac_cv_exeext
3174 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3176
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191
3192 int
3193 main ()
3194 {
3195
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; then
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3216 break;;
3217 esac
3218 done
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3224 See \`config.log' for more details." >&5
3225 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 fi
3232 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3233 echo "${ECHO_T}$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3235 ac_objext=$OBJEXT
3236 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3237 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3238 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247
3248 int
3249 main ()
3250 {
3251 #ifndef __GNUC__
3252 choke me
3253 #endif
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3274 { (case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_try") 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_compiler_gnu=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_compiler_gnu=no
3299 fi
3300
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304 fi
3305 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3307 GCC=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_cc_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 ac_save_c_werror_flag=$ac_c_werror_flag
3316 ac_c_werror_flag=yes
3317 ac_cv_prog_cc_g=no
3318 CFLAGS="-g"
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_prog_cc_g=yes
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 CFLAGS=""
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380
3381 int
3382 main ()
3383 {
3384
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3404 { (case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_try") 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 :
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429 CFLAGS="-g"
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_g=yes
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484
3485 fi
3486
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 fi
3489
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 fi
3492
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3495 fi
3496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3498 if test "$ac_test_CFLAGS" = set; then
3499 CFLAGS=$ac_save_CFLAGS
3500 elif test $ac_cv_prog_cc_g = yes; then
3501 if test "$GCC" = yes; then
3502 CFLAGS="-g -O2"
3503 else
3504 CFLAGS="-g"
3505 fi
3506 else
3507 if test "$GCC" = yes; then
3508 CFLAGS="-O2"
3509 else
3510 CFLAGS=
3511 fi
3512 fi
3513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3515 if test "${ac_cv_prog_cc_c89+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 ac_cv_prog_cc_c89=no
3519 ac_save_CC=$CC
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <stdarg.h>
3527 #include <stdio.h>
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3534 char **p;
3535 int i;
3536 {
3537 return p[i];
3538 }
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3540 {
3541 char *s;
3542 va_list v;
3543 va_start (v,p);
3544 s = g (p, va_arg (v,int));
3545 va_end (v);
3546 return s;
3547 }
3548
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3560 #define FOO(x) 'x'
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567 int argc;
3568 char **argv;
3569 int
3570 main ()
3571 {
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 do
3580 CC="$ac_save_CC $ac_arg"
3581 rm -f conftest.$ac_objext
3582 if { (ac_try="$ac_compile"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compile") 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try='test -s conftest.$ac_objext'
3606 { (case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_try") 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 ac_cv_prog_cc_c89=$ac_arg
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620
3621 fi
3622
3623 rm -f core conftest.err conftest.$ac_objext
3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 done
3626 rm -f conftest.$ac_ext
3627 CC=$ac_save_CC
3628
3629 fi
3630 # AC_CACHE_VAL
3631 case "x$ac_cv_prog_cc_c89" in
3632 x)
3633 { echo "$as_me:$LINENO: result: none needed" >&5
3634 echo "${ECHO_T}none needed" >&6; } ;;
3635 xno)
3636 { echo "$as_me:$LINENO: result: unsupported" >&5
3637 echo "${ECHO_T}unsupported" >&6; } ;;
3638 *)
3639 CC="$CC $ac_cv_prog_cc_c89"
3640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3641 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3642 esac
3643
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652
3653
3654 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3655 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3656 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 ac_check_lib_save_LIBS=$LIBS
3660 LIBS="-lcposix $LIBS"
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667
3668 /* Override any GCC internal prototype to avoid an error.
3669 Use char because int might match the return type of a GCC
3670 builtin and then its argument prototype would still apply. */
3671 #ifdef __cplusplus
3672 extern "C"
3673 #endif
3674 char strerror ();
3675 int
3676 main ()
3677 {
3678 return strerror ();
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 rm -f conftest.$ac_objext conftest$ac_exeext
3684 if { (ac_try="$ac_link"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_link") 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_try") 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try='test -s conftest$ac_exeext'
3708 { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_cv_lib_cposix_strerror=yes
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ac_cv_lib_cposix_strerror=no
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
3727 LIBS=$ac_check_lib_save_LIBS
3728 fi
3729 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3730 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3731 if test $ac_cv_lib_cposix_strerror = yes; then
3732 LIBS="$LIBS -lcposix"
3733 fi
3734
3735
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3744 # On Suns, sometimes $CPP names a directory.
3745 if test -n "$CPP" && test -d "$CPP"; then
3746 CPP=
3747 fi
3748 if test -z "$CPP"; then
3749 if test "${ac_cv_prog_CPP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 # Double quotes because CPP needs to be expanded
3753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3754 do
3755 ac_preproc_ok=false
3756 for ac_c_preproc_warn_flag in '' yes
3757 do
3758 # Use a header file that comes with gcc, so configuring glibc
3759 # with a fresh cross-compiler works.
3760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 # <limits.h> exists even on freestanding compilers.
3762 # On the NeXT, cc -E runs the code through the compiler's parser,
3763 # not just through cpp. "Syntax error" is here to catch this case.
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 @%:@ifdef __STDC__
3771 @%:@ include <limits.h>
3772 @%:@else
3773 @%:@ include <assert.h>
3774 @%:@endif
3775 Syntax error
3776 _ACEOF
3777 if { (ac_try="$ac_cpp conftest.$ac_ext"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_c_preproc_warn_flag
3792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3793 else
3794 ac_cpp_err=
3795 fi
3796 else
3797 ac_cpp_err=yes
3798 fi
3799 if test -z "$ac_cpp_err"; then
3800 :
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 # Broken: fails on valid input.
3806 continue
3807 fi
3808
3809 rm -f conftest.err conftest.$ac_ext
3810
3811 # OK, works on sane cases. Now check whether nonexistent headers
3812 # can be detected and how.
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 @%:@include <ac_nonexistent.h>
3820 _ACEOF
3821 if { (ac_try="$ac_cpp conftest.$ac_ext"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } >/dev/null; then
3834 if test -s conftest.err; then
3835 ac_cpp_err=$ac_c_preproc_warn_flag
3836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3837 else
3838 ac_cpp_err=
3839 fi
3840 else
3841 ac_cpp_err=yes
3842 fi
3843 if test -z "$ac_cpp_err"; then
3844 # Broken: success on invalid input.
3845 continue
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861 break
3862 fi
3863
3864 done
3865 ac_cv_prog_CPP=$CPP
3866
3867 fi
3868 CPP=$ac_cv_prog_CPP
3869 else
3870 ac_cv_prog_CPP=$CPP
3871 fi
3872 { echo "$as_me:$LINENO: result: $CPP" >&5
3873 echo "${ECHO_T}$CPP" >&6; }
3874 ac_preproc_ok=false
3875 for ac_c_preproc_warn_flag in '' yes
3876 do
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 @%:@ifdef __STDC__
3890 @%:@ include <limits.h>
3891 @%:@else
3892 @%:@ include <assert.h>
3893 @%:@endif
3894 Syntax error
3895 _ACEOF
3896 if { (ac_try="$ac_cpp conftest.$ac_ext"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null; then
3909 if test -s conftest.err; then
3910 ac_cpp_err=$ac_c_preproc_warn_flag
3911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3912 else
3913 ac_cpp_err=
3914 fi
3915 else
3916 ac_cpp_err=yes
3917 fi
3918 if test -z "$ac_cpp_err"; then
3919 :
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 # Broken: fails on valid input.
3925 continue
3926 fi
3927
3928 rm -f conftest.err conftest.$ac_ext
3929
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 @%:@include <ac_nonexistent.h>
3939 _ACEOF
3940 if { (ac_try="$ac_cpp conftest.$ac_ext"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null; then
3953 if test -s conftest.err; then
3954 ac_cpp_err=$ac_c_preproc_warn_flag
3955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3956 else
3957 ac_cpp_err=
3958 fi
3959 else
3960 ac_cpp_err=yes
3961 fi
3962 if test -z "$ac_cpp_err"; then
3963 # Broken: success on invalid input.
3964 continue
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 # Passes both tests.
3970 ac_preproc_ok=:
3971 break
3972 fi
3973
3974 rm -f conftest.err conftest.$ac_ext
3975
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3980 :
3981 else
3982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details." >&5
3984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3985 See \`config.log' for more details." >&2;}
3986 { (exit 1); exit 1; }; }
3987 fi
3988
3989 ac_ext=c
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995
3996 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3997 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_GREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 # Extract the first word of "grep ggrep" to use in msg output
4002 if test -z "$GREP"; then
4003 set dummy grep ggrep; ac_prog_name=$2
4004 if test "${ac_cv_path_GREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 ac_path_GREP_found=false
4008 # Loop through the user's path and test for each of PROGNAME-LIST
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_prog in grep ggrep; do
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4017 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4018 # Check for GNU ac_path_GREP and select it if it is found.
4019 # Check for GNU $ac_path_GREP
4020 case `"$ac_path_GREP" --version 2>&1` in
4021 *GNU*)
4022 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4023 *)
4024 ac_count=0
4025 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4026 while :
4027 do
4028 cat "conftest.in" "conftest.in" >"conftest.tmp"
4029 mv "conftest.tmp" "conftest.in"
4030 cp "conftest.in" "conftest.nl"
4031 echo 'GREP' >> "conftest.nl"
4032 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034 ac_count=`expr $ac_count + 1`
4035 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4036 # Best one so far, save it but keep looking for a better one
4037 ac_cv_path_GREP="$ac_path_GREP"
4038 ac_path_GREP_max=$ac_count
4039 fi
4040 # 10*(2^10) chars as input seems more than enough
4041 test $ac_count -gt 10 && break
4042 done
4043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4044 esac
4045
4046
4047 $ac_path_GREP_found && break 3
4048 done
4049 done
4050
4051 done
4052 IFS=$as_save_IFS
4053
4054
4055 fi
4056
4057 GREP="$ac_cv_path_GREP"
4058 if test -z "$GREP"; then
4059 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4060 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4061 { (exit 1); exit 1; }; }
4062 fi
4063
4064 else
4065 ac_cv_path_GREP=$GREP
4066 fi
4067
4068
4069 fi
4070 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4071 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4072 GREP="$ac_cv_path_GREP"
4073
4074
4075 { echo "$as_me:$LINENO: checking for egrep" >&5
4076 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4077 if test "${ac_cv_path_EGREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4081 then ac_cv_path_EGREP="$GREP -E"
4082 else
4083 # Extract the first word of "egrep" to use in msg output
4084 if test -z "$EGREP"; then
4085 set dummy egrep; ac_prog_name=$2
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 ac_path_EGREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in egrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4099 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4100 # Check for GNU ac_path_EGREP and select it if it is found.
4101 # Check for GNU $ac_path_EGREP
4102 case `"$ac_path_EGREP" --version 2>&1` in
4103 *GNU*)
4104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4105 *)
4106 ac_count=0
4107 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4108 while :
4109 do
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 echo 'EGREP' >> "conftest.nl"
4114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 ac_count=`expr $ac_count + 1`
4117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_EGREP="$ac_path_EGREP"
4120 ac_path_EGREP_max=$ac_count
4121 fi
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4124 done
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 esac
4127
4128
4129 $ac_path_EGREP_found && break 3
4130 done
4131 done
4132
4133 done
4134 IFS=$as_save_IFS
4135
4136
4137 fi
4138
4139 EGREP="$ac_cv_path_EGREP"
4140 if test -z "$EGREP"; then
4141 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4143 { (exit 1); exit 1; }; }
4144 fi
4145
4146 else
4147 ac_cv_path_EGREP=$EGREP
4148 fi
4149
4150
4151 fi
4152 fi
4153 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4154 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4155 EGREP="$ac_cv_path_EGREP"
4156
4157
4158 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4160 if test "${ac_cv_header_stdc+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <stdlib.h>
4170 #include <stdarg.h>
4171 #include <string.h>
4172 #include <float.h>
4173
4174 int
4175 main ()
4176 {
4177
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4184 case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_compile") 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_try") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_header_stdc=yes
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 ac_cv_header_stdc=no
4222 fi
4223
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225
4226 if test $ac_cv_header_stdc = yes; then
4227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <string.h>
4235
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "memchr" >/dev/null 2>&1; then
4239 :
4240 else
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f conftest*
4244
4245 fi
4246
4247 if test $ac_cv_header_stdc = yes; then
4248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <stdlib.h>
4256
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "free" >/dev/null 2>&1; then
4260 :
4261 else
4262 ac_cv_header_stdc=no
4263 fi
4264 rm -f conftest*
4265
4266 fi
4267
4268 if test $ac_cv_header_stdc = yes; then
4269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270 if test "$cross_compiling" = yes; then
4271 :
4272 else
4273 cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h. */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <ctype.h>
4280 #include <stdlib.h>
4281 #if ((' ' & 0x0FF) == 0x020)
4282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4284 #else
4285 # define ISLOWER(c) \
4286 (('a' <= (c) && (c) <= 'i') \
4287 || ('j' <= (c) && (c) <= 'r') \
4288 || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4290 #endif
4291
4292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4293 int
4294 main ()
4295 {
4296 int i;
4297 for (i = 0; i < 256; i++)
4298 if (XOR (islower (i), ISLOWER (i))
4299 || toupper (i) != TOUPPER (i))
4300 return 2;
4301 return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest$ac_exeext
4305 if { (ac_try="$ac_link"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 :
4325 else
4326 echo "$as_me: program exited with status $ac_status" >&5
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ( exit $ac_status )
4331 ac_cv_header_stdc=no
4332 fi
4333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4334 fi
4335
4336
4337 fi
4338 fi
4339 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4341 if test $ac_cv_header_stdc = yes; then
4342
4343 cat >>confdefs.h <<\_ACEOF
4344 @%:@define STDC_HEADERS 1
4345 _ACEOF
4346
4347 fi
4348
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360 inttypes.h stdint.h unistd.h
4361 do
4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4375
4376 @%:@include <$ac_header>
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (ac_try="$ac_compile"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_compile") 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4393 { (case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_try") 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 eval "$as_ac_Header=yes"
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 eval "$as_ac_Header=no"
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 ac_res=`eval echo '${'$as_ac_Header'}'`
4423 { echo "$as_me:$LINENO: result: $ac_res" >&5
4424 echo "${ECHO_T}$ac_res" >&6; }
4425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426 cat >>confdefs.h <<_ACEOF
4427 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4428 _ACEOF
4429
4430 fi
4431
4432 done
4433
4434
4435 if test "${ac_cv_header_minix_config_h+set}" = set; then
4436 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4437 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4438 if test "${ac_cv_header_minix_config_h+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 fi
4441 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4442 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4443 else
4444 # Is the header compilable?
4445 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4446 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 $ac_includes_default
4454 @%:@include <minix/config.h>
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_header_compiler=yes
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_header_compiler=no
4496 fi
4497
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4500 echo "${ECHO_T}$ac_header_compiler" >&6; }
4501
4502 # Is the header present?
4503 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4504 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 @%:@include <minix/config.h>
4512 _ACEOF
4513 if { (ac_try="$ac_cpp conftest.$ac_ext"
4514 case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } >/dev/null; then
4526 if test -s conftest.err; then
4527 ac_cpp_err=$ac_c_preproc_warn_flag
4528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4529 else
4530 ac_cpp_err=
4531 fi
4532 else
4533 ac_cpp_err=yes
4534 fi
4535 if test -z "$ac_cpp_err"; then
4536 ac_header_preproc=yes
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 ac_header_preproc=no
4542 fi
4543
4544 rm -f conftest.err conftest.$ac_ext
4545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4546 echo "${ECHO_T}$ac_header_preproc" >&6; }
4547
4548 # So? What about this header?
4549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4550 yes:no: )
4551 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4552 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4553 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4554 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4555 ac_header_preproc=yes
4556 ;;
4557 no:yes:* )
4558 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4559 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4560 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4561 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4563 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4564 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4565 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4566 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4567 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4569 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4570 ( cat <<\_ASBOX
4571 @%:@@%:@ ------------------------------- @%:@@%:@
4572 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
4573 @%:@@%:@ ------------------------------- @%:@@%:@
4574 _ASBOX
4575 ) | sed "s/^/$as_me: WARNING: /" >&2
4576 ;;
4577 esac
4578 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4579 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4580 if test "${ac_cv_header_minix_config_h+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 ac_cv_header_minix_config_h=$ac_header_preproc
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4586 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4587
4588 fi
4589 if test $ac_cv_header_minix_config_h = yes; then
4590 MINIX=yes
4591 else
4592 MINIX=
4593 fi
4594
4595
4596 if test "$MINIX" = yes; then
4597
4598 cat >>confdefs.h <<\_ACEOF
4599 @%:@define _POSIX_SOURCE 1
4600 _ACEOF
4601
4602
4603 cat >>confdefs.h <<\_ACEOF
4604 @%:@define _POSIX_1_SOURCE 2
4605 _ACEOF
4606
4607
4608 cat >>confdefs.h <<\_ACEOF
4609 @%:@define _MINIX 1
4610 _ACEOF
4611
4612 fi
4613
4614
4615 # Check whether --enable-largefile was given.
4616 if test "${enable_largefile+set}" = set; then
4617 enableval=$enable_largefile;
4618 fi
4619
4620 if test "$enable_largefile" != no; then
4621
4622 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4623 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4624 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 ac_cv_sys_largefile_CC=no
4628 if test "$GCC" != yes; then
4629 ac_save_CC=$CC
4630 while :; do
4631 # IRIX 6.2 and later do not support large files by default,
4632 # so use the C compiler's -n32 option if that helps.
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 @%:@include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4647 ? 1 : -1];
4648 int
4649 main ()
4650 {
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4658 case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661 esac
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671 { (case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_try") 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_try") 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 break
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695
4696 fi
4697
4698 rm -f core conftest.err conftest.$ac_objext
4699 CC="$CC -n32"
4700 rm -f conftest.$ac_objext
4701 if { (ac_try="$ac_compile"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4715 { (case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_sys_largefile_CC=' -n32'; break
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739
4740 fi
4741
4742 rm -f core conftest.err conftest.$ac_objext
4743 break
4744 done
4745 CC=$ac_save_CC
4746 rm -f conftest.$ac_ext
4747 fi
4748 fi
4749 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4750 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4751 if test "$ac_cv_sys_largefile_CC" != no; then
4752 CC=$CC$ac_cv_sys_largefile_CC
4753 fi
4754
4755 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4756 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4757 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 while :; do
4761 ac_cv_sys_file_offset_bits=no
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 @%:@include <sys/types.h>
4769 /* Check that off_t can represent 2**63 - 1 correctly.
4770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4771 since some C++ compilers masquerading as C compilers
4772 incorrectly reject 9223372036854775807. */
4773 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4775 && LARGE_OFF_T % 2147483647 == 1)
4776 ? 1 : -1];
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (ac_try="$ac_compile"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4800 { (case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803 esac
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_try") 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4813 esac
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_try") 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 break
4820 else
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824
4825 fi
4826
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 @%:@define _FILE_OFFSET_BITS 64
4835 @%:@include <sys/types.h>
4836 /* Check that off_t can represent 2**63 - 1 correctly.
4837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4838 since some C++ compilers masquerading as C compilers
4839 incorrectly reject 9223372036854775807. */
4840 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4842 && LARGE_OFF_T % 2147483647 == 1)
4843 ? 1 : -1];
4844 int
4845 main ()
4846 {
4847
4848 ;
4849 return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4867 { (case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_try") 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_try") 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_file_offset_bits=64; break
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891
4892 fi
4893
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 break
4896 done
4897 fi
4898 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4900 if test "$ac_cv_sys_file_offset_bits" != no; then
4901
4902 cat >>confdefs.h <<_ACEOF
4903 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4904 _ACEOF
4905
4906 fi
4907 rm -f conftest*
4908 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4910 if test "${ac_cv_sys_large_files+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 while :; do
4914 ac_cv_sys_large_files=no
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 @%:@include <sys/types.h>
4922 /* Check that off_t can represent 2**63 - 1 correctly.
4923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4924 since some C++ compilers masquerading as C compilers
4925 incorrectly reject 9223372036854775807. */
4926 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4928 && LARGE_OFF_T % 2147483647 == 1)
4929 ? 1 : -1];
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (ac_try="$ac_compile"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4953 { (case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_try") 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_try") 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 break
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977
4978 fi
4979
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 @%:@define _LARGE_FILES 1
4988 @%:@include <sys/types.h>
4989 /* Check that off_t can represent 2**63 - 1 correctly.
4990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4991 since some C++ compilers masquerading as C compilers
4992 incorrectly reject 9223372036854775807. */
4993 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4995 && LARGE_OFF_T % 2147483647 == 1)
4996 ? 1 : -1];
4997 int
4998 main ()
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5007 case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5020 { (case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_try") 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_try") 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_cv_sys_large_files=1; break
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044
5045 fi
5046
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 break
5049 done
5050 fi
5051 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5052 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5053 if test "$ac_cv_sys_large_files" != no; then
5054
5055 cat >>confdefs.h <<_ACEOF
5056 @%:@define _LARGE_FILES $ac_cv_sys_large_files
5057 _ACEOF
5058
5059 fi
5060 rm -f conftest*
5061 fi
5062
5063
5064
5065 SIGNAMES_O=
5066 SIGNAMES_H=lsignames.h
5067
5068
5069
5070 CROSS_COMPILE=
5071 if test "x$cross_compiling" = "xyes"; then
5072 case "${host}" in
5073 *-cygwin*)
5074 cross_cache=${srcdir}/cross-build/cygwin32.cache
5075 ;;
5076 *-mingw*)
5077 cross_cache=${srcdir}/cross-build/cygwin32.cache
5078 ;;
5079 i[3456]86-*-beos*)
5080 cross_cache=${srcdir}/cross-build/x86-beos.cache
5081 ;;
5082 *) echo "configure: cross-compiling for $host is not supported" >&2
5083 ;;
5084 esac
5085 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5086 echo "loading cross-build cache file ${cross_cache}"
5087 . ${cross_cache}
5088 fi
5089 unset cross_cache
5090 SIGNAMES_O='signames.o'
5091 CROSS_COMPILE='-DCROSS_COMPILING'
5092
5093 fi
5094
5095
5096
5097 if test -z "$CC_FOR_BUILD"; then
5098 if test "x$cross_compiling" = "xno"; then
5099 CC_FOR_BUILD='$(CC)'
5100 else
5101 CC_FOR_BUILD=gcc
5102 fi
5103 fi
5104
5105
5106
5107 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5108
5109 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5110
5111 if test "$opt_profiling" = "yes"; then
5112 PROFILE_FLAGS=-pg
5113 case "$host_os" in
5114 solaris2*) ;;
5115 *) opt_static_link=yes ;;
5116 esac
5117 DEBUG= MALLOC_DEBUG=
5118 fi
5119
5120 if test "$opt_static_link" = yes; then
5121 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5122 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5123 STATIC_LD="-static"
5124 case "$host_os" in
5125 solaris2*) ;;
5126 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5127 esac
5128 fi
5129 fi
5130
5131 if test "X$cross_compiling" = "Xno"; then
5132 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5133 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5134 else
5135 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5136 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5137 fi
5138
5139 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 if test $ac_cv_c_compiler_gnu = yes; then
5151 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5152 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5153 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 ac_pattern="Autoconf.*'x'"
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <sgtty.h>
5164 Autoconf TIOCGETP
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5168 ac_cv_prog_gcc_traditional=yes
5169 else
5170 ac_cv_prog_gcc_traditional=no
5171 fi
5172 rm -f conftest*
5173
5174
5175 if test $ac_cv_prog_gcc_traditional = no; then
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <termio.h>
5183 Autoconf TCGETA
5184 _ACEOF
5185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5187 ac_cv_prog_gcc_traditional=yes
5188 fi
5189 rm -f conftest*
5190
5191 fi
5192 fi
5193 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5194 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5195 if test $ac_cv_prog_gcc_traditional = yes; then
5196 CC="$CC -traditional"
5197 fi
5198 fi
5199
5200
5201
5202 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5203 then
5204 # If the user specified --with-installed-readline=PREFIX and PREFIX
5205 # is not `yes', set ac_cv_rl_prefix to PREFIX
5206 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5207
5208
5209 if test "X$bash_cv_termcap_lib" = "X"; then
5210 _bash_needmsg=yes
5211 else
5212 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5213 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
5214 _bash_needmsg=
5215 fi
5216 if test "${bash_cv_termcap_lib+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 { echo "$as_me:$LINENO: checking for tgetent" >&5
5220 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
5221 if test "${ac_cv_func_tgetent+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5232 #define tgetent innocuous_tgetent
5233
5234 /* System header to define __stub macros and hopefully few prototypes,
5235 which can conflict with char tgetent (); below.
5236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237 <limits.h> exists even on freestanding compilers. */
5238
5239 #ifdef __STDC__
5240 # include <limits.h>
5241 #else
5242 # include <assert.h>
5243 #endif
5244
5245 #undef tgetent
5246
5247 /* Override any GCC internal prototype to avoid an error.
5248 Use char because int might match the return type of a GCC
5249 builtin and then its argument prototype would still apply. */
5250 #ifdef __cplusplus
5251 extern "C"
5252 #endif
5253 char tgetent ();
5254 /* The GNU C library defines this for functions which it implements
5255 to always fail with ENOSYS. Some functions are actually named
5256 something starting with __ and the normal name is an alias. */
5257 #if defined __stub_tgetent || defined __stub___tgetent
5258 choke me
5259 #endif
5260
5261 int
5262 main ()
5263 {
5264 return tgetent ();
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (ac_try="$ac_link"
5271 case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_link") 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5284 { (case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_try") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_func_tgetent=yes
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ac_cv_func_tgetent=no
5309 fi
5310
5311 rm -f core conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5313 fi
5314 { echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5315 echo "${ECHO_T}$ac_cv_func_tgetent" >&6; }
5316 if test $ac_cv_func_tgetent = yes; then
5317 bash_cv_termcap_lib=libc
5318 else
5319 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5320 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
5321 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-ltermcap $LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332
5333 /* Override any GCC internal prototype to avoid an error.
5334 Use char because int might match the return type of a GCC
5335 builtin and then its argument prototype would still apply. */
5336 #ifdef __cplusplus
5337 extern "C"
5338 #endif
5339 char tgetent ();
5340 int
5341 main ()
5342 {
5343 return tgetent ();
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (ac_try="$ac_link"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_link") 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5363 { (case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_try") 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest$ac_exeext'
5373 { (case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_try") 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_lib_termcap_tgetent=yes
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 ac_cv_lib_termcap_tgetent=no
5388 fi
5389
5390 rm -f core conftest.err conftest.$ac_objext \
5391 conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5393 fi
5394 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5395 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
5396 if test $ac_cv_lib_termcap_tgetent = yes; then
5397 bash_cv_termcap_lib=libtermcap
5398 else
5399 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5400 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
5401 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 ac_check_lib_save_LIBS=$LIBS
5405 LIBS="-ltinfo $LIBS"
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412
5413 /* Override any GCC internal prototype to avoid an error.
5414 Use char because int might match the return type of a GCC
5415 builtin and then its argument prototype would still apply. */
5416 #ifdef __cplusplus
5417 extern "C"
5418 #endif
5419 char tgetent ();
5420 int
5421 main ()
5422 {
5423 return tgetent ();
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_try") 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest$ac_exeext'
5453 { (case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_try") 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_lib_tinfo_tgetent=yes
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_cv_lib_tinfo_tgetent=no
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472 LIBS=$ac_check_lib_save_LIBS
5473 fi
5474 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5475 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
5476 if test $ac_cv_lib_tinfo_tgetent = yes; then
5477 bash_cv_termcap_lib=libtinfo
5478 else
5479 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5480 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
5481 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 ac_check_lib_save_LIBS=$LIBS
5485 LIBS="-lcurses $LIBS"
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492
5493 /* Override any GCC internal prototype to avoid an error.
5494 Use char because int might match the return type of a GCC
5495 builtin and then its argument prototype would still apply. */
5496 #ifdef __cplusplus
5497 extern "C"
5498 #endif
5499 char tgetent ();
5500 int
5501 main ()
5502 {
5503 return tgetent ();
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.$ac_objext conftest$ac_exeext
5509 if { (ac_try="$ac_link"
5510 case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_link") 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5523 { (case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_try") 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_try") 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_lib_curses_tgetent=yes
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ac_cv_lib_curses_tgetent=no
5548 fi
5549
5550 rm -f core conftest.err conftest.$ac_objext \
5551 conftest$ac_exeext conftest.$ac_ext
5552 LIBS=$ac_check_lib_save_LIBS
5553 fi
5554 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5555 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
5556 if test $ac_cv_lib_curses_tgetent = yes; then
5557 bash_cv_termcap_lib=libcurses
5558 else
5559 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5560 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
5561 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 ac_check_lib_save_LIBS=$LIBS
5565 LIBS="-lncurses $LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572
5573 /* Override any GCC internal prototype to avoid an error.
5574 Use char because int might match the return type of a GCC
5575 builtin and then its argument prototype would still apply. */
5576 #ifdef __cplusplus
5577 extern "C"
5578 #endif
5579 char tgetent ();
5580 int
5581 main ()
5582 {
5583 return tgetent ();
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext conftest$ac_exeext
5589 if { (ac_try="$ac_link"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_link") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_try") 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_lib_ncurses_tgetent=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_lib_ncurses_tgetent=no
5628 fi
5629
5630 rm -f core conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_check_lib_save_LIBS
5633 fi
5634 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5635 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
5636 if test $ac_cv_lib_ncurses_tgetent = yes; then
5637 bash_cv_termcap_lib=libncurses
5638 else
5639 bash_cv_termcap_lib=gnutermcap
5640 fi
5641
5642 fi
5643
5644 fi
5645
5646 fi
5647
5648 fi
5649
5650 fi
5651
5652 if test "X$_bash_needmsg" = "Xyes"; then
5653 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5654 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
5655 fi
5656 { echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5657 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6; }
5658 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5659 LDFLAGS="$LDFLAGS -L./lib/termcap"
5660 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5661 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5662 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5663 TERMCAP_LIB=-ltermcap
5664 TERMCAP_DEP=
5665 elif test $bash_cv_termcap_lib = libtinfo; then
5666 TERMCAP_LIB=-ltinfo
5667 TERMCAP_DEP=
5668 elif test $bash_cv_termcap_lib = libncurses; then
5669 TERMCAP_LIB=-lncurses
5670 TERMCAP_DEP=
5671 elif test $bash_cv_termcap_lib = libc; then
5672 TERMCAP_LIB=
5673 TERMCAP_DEP=
5674 else
5675 TERMCAP_LIB=-lcurses
5676 TERMCAP_DEP=
5677 fi
5678
5679
5680
5681
5682 { echo "$as_me:$LINENO: checking version of installed readline library" >&5
5683 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6; }
5684
5685 # What a pain in the ass this is.
5686
5687 # save cpp and ld options
5688 _save_CFLAGS="$CFLAGS"
5689 _save_LDFLAGS="$LDFLAGS"
5690 _save_LIBS="$LIBS"
5691
5692 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5693 # allows the caller to do something like $_rl_prefix=$withval if the user
5694 # specifies --with-installed-readline=PREFIX as an argument to configure
5695
5696 if test -z "$ac_cv_rl_prefix"; then
5697 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5698 fi
5699
5700 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5701 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5702
5703 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5704 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5705 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5706
5707 if test "${ac_cv_rl_version+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 if test "$cross_compiling" = yes; then
5711 ac_cv_rl_version='4.2'
5712 else
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719
5720 #include <stdio.h>
5721 #include <readline/readline.h>
5722
5723 extern int rl_gnu_readline_p;
5724
5725 main()
5726 {
5727 FILE *fp;
5728 fp = fopen("conftest.rlv", "w");
5729 if (fp == 0)
5730 exit(1);
5731 if (rl_gnu_readline_p != 1)
5732 fprintf(fp, "0.0\n");
5733 else
5734 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5735 fclose(fp);
5736 exit(0);
5737 }
5738
5739 _ACEOF
5740 rm -f conftest$ac_exeext
5741 if { (ac_try="$ac_link"
5742 case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_link") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5751 { (case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_try") 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_cv_rl_version=`cat conftest.rlv`
5761 else
5762 echo "$as_me: program exited with status $ac_status" >&5
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 ( exit $ac_status )
5767 ac_cv_rl_version='0.0'
5768 fi
5769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770 fi
5771
5772
5773 fi
5774
5775
5776 CFLAGS="$_save_CFLAGS"
5777 LDFLAGS="$_save_LDFLAGS"
5778 LIBS="$_save_LIBS"
5779
5780 RL_MAJOR=0
5781 RL_MINOR=0
5782
5783 # (
5784 case "$ac_cv_rl_version" in
5785 2*|3*|4*|5*|6*|7*|8*|9*)
5786 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5787 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5788 ;;
5789 esac
5790
5791 # (((
5792 case $RL_MAJOR in
5793 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5794 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5795 *) _RL_MAJOR=00 ;;
5796 esac
5797
5798 # (((
5799 case $RL_MINOR in
5800 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5801 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5802 *) _RL_MINOR=00 ;;
5803 esac
5804
5805 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5806
5807 # Readline versions greater than 4.2 have these defines in readline.h
5808
5809 if test $ac_cv_rl_version = '0.0' ; then
5810 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5811 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5812 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5813 # set these for use by the caller
5814 RL_PREFIX=$ac_cv_rl_prefix
5815 RL_LIBDIR=$ac_cv_rl_libdir
5816 RL_INCLUDEDIR=$ac_cv_rl_includedir
5817 { echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5818 echo "${ECHO_T}$ac_cv_rl_version" >&6; }
5819 else
5820
5821
5822 cat >>confdefs.h <<_ACEOF
5823 @%:@define RL_READLINE_VERSION $RL_VERSION
5824 _ACEOF
5825
5826
5827 cat >>confdefs.h <<_ACEOF
5828 @%:@define RL_VERSION_MAJOR $RL_MAJOR
5829 _ACEOF
5830
5831
5832 cat >>confdefs.h <<_ACEOF
5833 @%:@define RL_VERSION_MINOR $RL_MINOR
5834 _ACEOF
5835
5836
5837
5838
5839
5840
5841 # set these for use by the caller
5842 RL_PREFIX=$ac_cv_rl_prefix
5843 RL_LIBDIR=$ac_cv_rl_libdir
5844 RL_INCLUDEDIR=$ac_cv_rl_includedir
5845
5846 { echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5847 echo "${ECHO_T}$ac_cv_rl_version" >&6; }
5848
5849 fi
5850
5851
5852 case "$ac_cv_rl_version" in
5853 5*|6*|7*|8*|9*) ;;
5854 *) opt_with_installed_readline=no
5855 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5856 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5858 echo "$as_me: WARNING: using private bash version" >&2;}
5859 ;;
5860 esac
5861 fi
5862
5863 TILDE_LIB=-ltilde
5864 if test $opt_readline = yes; then
5865 cat >>confdefs.h <<\_ACEOF
5866 @%:@define READLINE 1
5867 _ACEOF
5868
5869 if test "$opt_with_installed_readline" != "no" ; then
5870 case "$opt_with_installed_readline" in
5871 yes) RL_INCLUDE= ;;
5872 *) case "$RL_INCLUDEDIR" in
5873 /usr/include) ;;
5874 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5875 esac
5876 ;;
5877 esac
5878 READLINE_DEP=
5879 READLINE_LIB=-lreadline
5880 # section for OS versions that don't allow unresolved symbols
5881 # to be compiled into dynamic libraries.
5882 case "$host_os" in
5883 cygwin*) TILDE_LIB= ;;
5884 esac
5885 else
5886 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5887 READLINE_DEP='$(READLINE_LIBRARY)'
5888 # section for OS versions that ship an older/broken version of
5889 # readline as a standard dynamic library and don't allow a
5890 # static version specified as -llibname to override the
5891 # dynamic version
5892 case "${host_os}" in
5893 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5894 *) READLINE_LIB=-lreadline ;;
5895 esac
5896 fi
5897 else
5898 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5899 READLINE_LIB= READLINE_DEP=
5900 fi
5901 if test $opt_history = yes || test $opt_bang_history = yes; then
5902 if test $opt_history = yes; then
5903 cat >>confdefs.h <<\_ACEOF
5904 @%:@define HISTORY 1
5905 _ACEOF
5906
5907 fi
5908 if test $opt_bang_history = yes; then
5909 cat >>confdefs.h <<\_ACEOF
5910 @%:@define BANG_HISTORY 1
5911 _ACEOF
5912
5913 fi
5914 if test "$opt_with_installed_readline" != "no"; then
5915 HIST_LIBDIR=$RL_LIBDIR
5916 HISTORY_DEP=
5917 HISTORY_LIB=-lhistory
5918 case "$opt_with_installed_readline" in
5919 yes) RL_INCLUDE= ;;
5920 *) case "$RL_INCLUDEDIR" in
5921 /usr/include) ;;
5922 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5923 esac
5924 ;;
5925 esac
5926 else
5927 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5928 HISTORY_DEP='$(HISTORY_LIBRARY)'
5929 # section for OS versions that ship an older version of
5930 # readline as a standard dynamic library and don't allow a
5931 # static version specified as -llibname to override the
5932 # dynamic version
5933 case "${host_os}" in
5934 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5935 *) HISTORY_LIB=-lhistory ;;
5936 esac
5937 fi
5938 else
5939 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5940 HISTORY_LIB= HISTORY_DEP=
5941 fi
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 # Find a good install program. We prefer a C program (faster),
5954 # so one script is as good as another. But avoid the broken or
5955 # incompatible versions:
5956 # SysV /etc/install, /usr/sbin/install
5957 # SunOS /usr/etc/install
5958 # IRIX /sbin/install
5959 # AIX /bin/install
5960 # AmigaOS /C/install, which installs bootblocks on floppy discs
5961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5964 # OS/2's system install, which has a completely different semantic
5965 # ./install, which can be erroneously created by make from ./install.sh.
5966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5968 if test -z "$INSTALL"; then
5969 if test "${ac_cv_path_install+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 # Account for people who put trailing slashes in PATH elements.
5978 case $as_dir/ in
5979 ./ | .// | /cC/* | \
5980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5982 /usr/ucb/* ) ;;
5983 *)
5984 # OSF1 and SCO ODT 3.0 have their own names for install.
5985 # Don't use installbsd from OSF since it installs stuff as root
5986 # by default.
5987 for ac_prog in ginstall scoinst install; do
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5990 if test $ac_prog = install &&
5991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5992 # AIX install. It has an incompatible calling convention.
5993 :
5994 elif test $ac_prog = install &&
5995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5996 # program-specific install script used by HP pwplus--don't use.
5997 :
5998 else
5999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6000 break 3
6001 fi
6002 fi
6003 done
6004 done
6005 ;;
6006 esac
6007 done
6008 IFS=$as_save_IFS
6009
6010
6011 fi
6012 if test "${ac_cv_path_install+set}" = set; then
6013 INSTALL=$ac_cv_path_install
6014 else
6015 # As a last resort, use the slow shell script. Don't cache a
6016 # value for INSTALL within a source directory, because that will
6017 # break other packages using the cache if that directory is
6018 # removed, or if the value is a relative name.
6019 INSTALL=$ac_install_sh
6020 fi
6021 fi
6022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6023 echo "${ECHO_T}$INSTALL" >&6; }
6024
6025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6026 # It thinks the first close brace ends the variable substitution.
6027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6028
6029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6030
6031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6032
6033 # Extract the first word of "ar", so it can be a program name with args.
6034 set dummy ar; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_AR+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 if test -n "$AR"; then
6041 ac_cv_prog_AR="$AR" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_AR=""
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6059 fi
6060 fi
6061 AR=$ac_cv_prog_AR
6062 if test -n "$AR"; then
6063 { echo "$as_me:$LINENO: result: $AR" >&5
6064 echo "${ECHO_T}$AR" >&6; }
6065 else
6066 { echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6; }
6068 fi
6069
6070
6071 test -n "$ARFLAGS" || ARFLAGS="cr"
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 if test -n "$RANLIB"; then
6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 RANLIB=$ac_cv_prog_RANLIB
6101 if test -n "$RANLIB"; then
6102 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6103 echo "${ECHO_T}$RANLIB" >&6; }
6104 else
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_ac_ct_RANLIB="ranlib"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6144 else
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6147 fi
6148
6149 if test "x$ac_ct_RANLIB" = x; then
6150 RANLIB=":"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet. If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet. If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162 RANLIB=$ac_ct_RANLIB
6163 fi
6164 else
6165 RANLIB="$ac_cv_prog_RANLIB"
6166 fi
6167
6168 for ac_prog in 'bison -y' byacc
6169 do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_YACC+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 if test -n "$YACC"; then
6178 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_YACC="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 YACC=$ac_cv_prog_YACC
6198 if test -n "$YACC"; then
6199 { echo "$as_me:$LINENO: result: $YACC" >&5
6200 echo "${ECHO_T}$YACC" >&6; }
6201 else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6205
6206
6207 test -n "$YACC" && break
6208 done
6209 test -n "$YACC" || YACC="yacc"
6210
6211 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6213 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6214 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 cat >conftest.make <<\_ACEOF
6218 SHELL = /bin/sh
6219 all:
6220 @echo '@@@%%%=$(MAKE)=@@@%%%'
6221 _ACEOF
6222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6224 *@@@%%%=?*=@@@%%%*)
6225 eval ac_cv_prog_make_${ac_make}_set=yes;;
6226 *)
6227 eval ac_cv_prog_make_${ac_make}_set=no;;
6228 esac
6229 rm -f conftest.make
6230 fi
6231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6232 { echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6; }
6234 SET_MAKE=
6235 else
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 SET_MAKE="MAKE=${MAKE-make}"
6239 fi
6240
6241
6242 case "$host_os" in
6243 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6244 *) MAKE_SHELL=/bin/sh ;;
6245 esac
6246
6247
6248 if test x$SIZE = x; then
6249 if test x$ac_tool_prefix = x; then
6250 SIZE=size
6251 else
6252 SIZE=${ac_tool_prefix}size
6253 save_IFS=$IFS ; IFS=:
6254 size_found=0
6255 for dir in $PATH; do
6256 if test -x $dir/$SIZE ; then
6257 size_found=1
6258 break
6259 fi
6260 done
6261 if test $size_found -eq 0; then
6262 SIZE=:
6263 fi
6264 IFS=$save_IFS
6265 fi
6266 fi
6267
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 @%:@define _GNU_SOURCE 1
6271 _ACEOF
6272
6273
6274 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6275 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6276 if test "${ac_cv_c_const+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285
6286 int
6287 main ()
6288 {
6289 /* FIXME: Include the comments suggested by Paul. */
6290 #ifndef __cplusplus
6291 /* Ultrix mips cc rejects this. */
6292 typedef int charset[2];
6293 const charset x;
6294 /* SunOS 4.1.1 cc rejects this. */
6295 char const *const *ccp;
6296 char **p;
6297 /* NEC SVR4.0.2 mips cc rejects this. */
6298 struct point {int x, y;};
6299 static struct point const zero = {0,0};
6300 /* AIX XL C 1.02.0.0 rejects this.
6301 It does not let you subtract one const X* pointer from another in
6302 an arm of an if-expression whose if-part is not a constant
6303 expression */
6304 const char *g = "string";
6305 ccp = &g + (g ? g-g : 0);
6306 /* HPUX 7.0 cc rejects these. */
6307 ++ccp;
6308 p = (char**) ccp;
6309 ccp = (char const *const *) p;
6310 { /* SCO 3.2v4 cc rejects this. */
6311 char *t;
6312 char const *s = 0 ? (char *) 0 : (char const *) 0;
6313
6314 *t++ = 0;
6315 if (s) return 0;
6316 }
6317 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6318 int x[] = {25, 17};
6319 const int *foo = &x[0];
6320 ++foo;
6321 }
6322 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6323 typedef const int *iptr;
6324 iptr p = 0;
6325 ++p;
6326 }
6327 { /* AIX XL C 1.02.0.0 rejects this saying
6328 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6329 struct s { int j; const int *ap[3]; };
6330 struct s *b; b->j = 5;
6331 }
6332 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6333 const int foo = 10;
6334 if (!foo) return 0;
6335 }
6336 return !x[0] && !zero.x;
6337 #endif
6338
6339 ;
6340 return 0;
6341 }
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6358 { (case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_try") 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 ac_cv_c_const=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ac_cv_c_const=no
6383 fi
6384
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 fi
6387 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6388 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6389 if test $ac_cv_c_const = no; then
6390
6391 cat >>confdefs.h <<\_ACEOF
6392 @%:@define const
6393 _ACEOF
6394
6395 fi
6396
6397 { echo "$as_me:$LINENO: checking for inline" >&5
6398 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6399 if test "${ac_cv_c_inline+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 ac_cv_c_inline=no
6403 for ac_kw in inline __inline__ __inline; do
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #ifndef __cplusplus
6411 typedef int foo_t;
6412 static $ac_kw foo_t static_foo () {return 0; }
6413 $ac_kw foo_t foo () {return 0; }
6414 #endif
6415
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6432 { (case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435 esac
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_try") 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_c_inline=$ac_kw
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456
6457 fi
6458
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 test "$ac_cv_c_inline" != no && break
6461 done
6462
6463 fi
6464 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6465 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6466
6467
6468 case $ac_cv_c_inline in
6469 inline | yes) ;;
6470 *)
6471 case $ac_cv_c_inline in
6472 no) ac_val=;;
6473 *) ac_val=$ac_cv_c_inline;;
6474 esac
6475 cat >>confdefs.h <<_ACEOF
6476 #ifndef __cplusplus
6477 #define inline $ac_val
6478 #endif
6479 _ACEOF
6480 ;;
6481 esac
6482
6483 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6484 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6485 if test "${ac_cv_c_bigendian+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 # See if sys/param.h defines the BYTE_ORDER macro.
6489 cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h. */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 #include <sys/types.h>
6496 #include <sys/param.h>
6497
6498 int
6499 main ()
6500 {
6501 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6502 bogus endian macros
6503 #endif
6504
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 # It does; now see whether it defined to BIG_ENDIAN or not.
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <sys/types.h>
6551 #include <sys/param.h>
6552
6553 int
6554 main ()
6555 {
6556 #if BYTE_ORDER != BIG_ENDIAN
6557 not big endian
6558 #endif
6559
6560 ;
6561 return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (ac_try="$ac_compile"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6579 { (case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_try") 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592 esac
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_c_bigendian=yes
6599 else
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603 ac_cv_c_bigendian=no
6604 fi
6605
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 # It does not; compile a test program.
6612 if test "$cross_compiling" = yes; then
6613 # try to guess the endianness by grepping values into an object file
6614 ac_cv_c_bigendian=unknown
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6622 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6623 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6624 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6625 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6626 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6627 int
6628 main ()
6629 {
6630 _ascii (); _ebcdic ();
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_try") 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6670 ac_cv_c_bigendian=yes
6671 fi
6672 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6673 if test "$ac_cv_c_bigendian" = unknown; then
6674 ac_cv_c_bigendian=no
6675 else
6676 # finding both strings is unlikely to happen, but who knows?
6677 ac_cv_c_bigendian=unknown
6678 fi
6679 fi
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684
6685 fi
6686
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 else
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 int
6697 main ()
6698 {
6699
6700 /* Are we little or big endian? From Harbison&Steele. */
6701 union
6702 {
6703 long int l;
6704 char c[sizeof (long int)];
6705 } u;
6706 u.l = 1;
6707 return u.c[sizeof (long int) - 1] == 1;
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6724 { (case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_try") 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_c_bigendian=no
6734 else
6735 echo "$as_me: program exited with status $ac_status" >&5
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739 ( exit $ac_status )
6740 ac_cv_c_bigendian=yes
6741 fi
6742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6743 fi
6744
6745
6746 fi
6747
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 fi
6750 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6751 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6752 case $ac_cv_c_bigendian in
6753 yes)
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 @%:@define WORDS_BIGENDIAN 1
6757 _ACEOF
6758 ;;
6759 no)
6760 ;;
6761 *)
6762 { { echo "$as_me:$LINENO: error: unknown endianness
6763 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6764 echo "$as_me: error: unknown endianness
6765 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6766 { (exit 1); exit 1; }; } ;;
6767 esac
6768
6769 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6770 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
6771 if test "${ac_cv_c_stringize+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 @%:@define x(y) #y
6781
6782 char *s = x(teststring);
6783 _ACEOF
6784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6785 $EGREP "@%:@teststring" >/dev/null 2>&1; then
6786 ac_cv_c_stringize=no
6787 else
6788 ac_cv_c_stringize=yes
6789 fi
6790 rm -f conftest*
6791
6792 fi
6793 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6794 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
6795 if test $ac_cv_c_stringize = yes; then
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 @%:@define HAVE_STRINGIZE 1
6799 _ACEOF
6800
6801 fi
6802
6803
6804
6805 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6806 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
6807 if test "${ac_cv_type_long_double_wider+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <float.h>
6817 long double const a[] =
6818 {
6819 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6820 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6821 };
6822 long double
6823 f (long double x)
6824 {
6825 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6826 + (x ? f (x) : 'c'));
6827 }
6828
6829 int
6830 main ()
6831 {
6832 static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6833 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6834 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6835 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6836 && (int) LDBL_EPSILON == 0
6837 )@:>@;
6838 test_array @<:@0@:>@ = 0
6839
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6859 { (case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_try") 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_try") 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 ac_cv_type_long_double_wider=yes
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 ac_cv_type_long_double_wider=no
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6889 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
6890 if test $ac_cv_type_long_double_wider = yes; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 @%:@define HAVE_LONG_DOUBLE_WIDER 1
6894 _ACEOF
6895
6896 fi
6897
6898 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6899 if test $ac_cv_c_long_double = yes; then
6900
6901 cat >>confdefs.h <<\_ACEOF
6902 @%:@define HAVE_LONG_DOUBLE 1
6903 _ACEOF
6904
6905 fi
6906
6907 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6908 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6909 if test "$ac_cv_prog_cc_c89" != no; then
6910 { echo "$as_me:$LINENO: result: yes" >&5
6911 echo "${ECHO_T}yes" >&6; }
6912
6913 cat >>confdefs.h <<\_ACEOF
6914 @%:@define PROTOTYPES 1
6915 _ACEOF
6916
6917
6918 cat >>confdefs.h <<\_ACEOF
6919 @%:@define __PROTOTYPES 1
6920 _ACEOF
6921
6922 else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927
6928 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6929 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
6930 if test "${ac_cv_c_char_unsigned+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 $ac_includes_default
6940 int
6941 main ()
6942 {
6943 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
6944 test_array @<:@0@:>@ = 0
6945
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6965 { (case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968 esac
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_try") 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978 esac
6979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6980 (eval "$ac_try") 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_c_char_unsigned=no
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 ac_cv_c_char_unsigned=yes
6990 fi
6991
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993 fi
6994 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6995 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
6996 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6997 cat >>confdefs.h <<\_ACEOF
6998 @%:@define __CHAR_UNSIGNED__ 1
6999 _ACEOF
7000
7001 fi
7002
7003
7004
7005 MKINSTALLDIRS=
7006 if test -n "$ac_aux_dir"; then
7007 case "$ac_aux_dir" in
7008 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7009 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7010 esac
7011 fi
7012 if test -z "$MKINSTALLDIRS"; then
7013 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7014 fi
7015
7016
7017
7018 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7019 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7020 # Check whether --enable-nls was given.
7021 if test "${enable_nls+set}" = set; then
7022 enableval=$enable_nls; USE_NLS=$enableval
7023 else
7024 USE_NLS=yes
7025 fi
7026
7027 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7028 echo "${ECHO_T}$USE_NLS" >&6; }
7029
7030
7031
7032
7033
7034
7035 # Prepare PATH_SEPARATOR.
7036 # The user is always right.
7037 if test "${PATH_SEPARATOR+set}" != set; then
7038 echo "#! /bin/sh" >conf$$.sh
7039 echo "exit 0" >>conf$$.sh
7040 chmod +x conf$$.sh
7041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7042 PATH_SEPARATOR=';'
7043 else
7044 PATH_SEPARATOR=:
7045 fi
7046 rm -f conf$$.sh
7047 fi
7048
7049 # Find out how to test for executable files. Don't use a zero-byte file,
7050 # as systems may use methods other than mode bits to determine executability.
7051 cat >conf$$.file <<_ASEOF
7052 #! /bin/sh
7053 exit 0
7054 _ASEOF
7055 chmod +x conf$$.file
7056 if test -x conf$$.file >/dev/null 2>&1; then
7057 ac_executable_p="test -x"
7058 else
7059 ac_executable_p="test -f"
7060 fi
7061 rm -f conf$$.file
7062
7063 # Extract the first word of "msgfmt", so it can be a program name with args.
7064 set dummy msgfmt; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_path_MSGFMT+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 case "$MSGFMT" in
7071 [\\/]* | ?:[\\/]*)
7072 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7073 ;;
7074 *)
7075 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7076 for ac_dir in $PATH; do
7077 IFS="$ac_save_IFS"
7078 test -z "$ac_dir" && ac_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7081 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7082 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7083 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7084 break 2
7085 fi
7086 fi
7087 done
7088 done
7089 IFS="$ac_save_IFS"
7090 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7091 ;;
7092 esac
7093 fi
7094 MSGFMT="$ac_cv_path_MSGFMT"
7095 if test "$MSGFMT" != ":"; then
7096 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7097 echo "${ECHO_T}$MSGFMT" >&6; }
7098 else
7099 { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7101 fi
7102
7103 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7104 set dummy gmsgfmt; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 case $GMSGFMT in
7111 [\\/]* | ?:[\\/]*)
7112 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7113 ;;
7114 *)
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7131 ;;
7132 esac
7133 fi
7134 GMSGFMT=$ac_cv_path_GMSGFMT
7135 if test -n "$GMSGFMT"; then
7136 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7137 echo "${ECHO_T}$GMSGFMT" >&6; }
7138 else
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143
7144
7145
7146 # Prepare PATH_SEPARATOR.
7147 # The user is always right.
7148 if test "${PATH_SEPARATOR+set}" != set; then
7149 echo "#! /bin/sh" >conf$$.sh
7150 echo "exit 0" >>conf$$.sh
7151 chmod +x conf$$.sh
7152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7153 PATH_SEPARATOR=';'
7154 else
7155 PATH_SEPARATOR=:
7156 fi
7157 rm -f conf$$.sh
7158 fi
7159
7160 # Find out how to test for executable files. Don't use a zero-byte file,
7161 # as systems may use methods other than mode bits to determine executability.
7162 cat >conf$$.file <<_ASEOF
7163 #! /bin/sh
7164 exit 0
7165 _ASEOF
7166 chmod +x conf$$.file
7167 if test -x conf$$.file >/dev/null 2>&1; then
7168 ac_executable_p="test -x"
7169 else
7170 ac_executable_p="test -f"
7171 fi
7172 rm -f conf$$.file
7173
7174 # Extract the first word of "xgettext", so it can be a program name with args.
7175 set dummy xgettext; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 case "$XGETTEXT" in
7182 [\\/]* | ?:[\\/]*)
7183 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7184 ;;
7185 *)
7186 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7187 for ac_dir in $PATH; do
7188 IFS="$ac_save_IFS"
7189 test -z "$ac_dir" && ac_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7192 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7193 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7194 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7195 break 2
7196 fi
7197 fi
7198 done
7199 done
7200 IFS="$ac_save_IFS"
7201 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7202 ;;
7203 esac
7204 fi
7205 XGETTEXT="$ac_cv_path_XGETTEXT"
7206 if test "$XGETTEXT" != ":"; then
7207 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7208 echo "${ECHO_T}$XGETTEXT" >&6; }
7209 else
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7212 fi
7213
7214 rm -f messages.po
7215
7216
7217 # Prepare PATH_SEPARATOR.
7218 # The user is always right.
7219 if test "${PATH_SEPARATOR+set}" != set; then
7220 echo "#! /bin/sh" >conf$$.sh
7221 echo "exit 0" >>conf$$.sh
7222 chmod +x conf$$.sh
7223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7224 PATH_SEPARATOR=';'
7225 else
7226 PATH_SEPARATOR=:
7227 fi
7228 rm -f conf$$.sh
7229 fi
7230
7231 # Find out how to test for executable files. Don't use a zero-byte file,
7232 # as systems may use methods other than mode bits to determine executability.
7233 cat >conf$$.file <<_ASEOF
7234 #! /bin/sh
7235 exit 0
7236 _ASEOF
7237 chmod +x conf$$.file
7238 if test -x conf$$.file >/dev/null 2>&1; then
7239 ac_executable_p="test -x"
7240 else
7241 ac_executable_p="test -f"
7242 fi
7243 rm -f conf$$.file
7244
7245 # Extract the first word of "msgmerge", so it can be a program name with args.
7246 set dummy msgmerge; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 case "$MSGMERGE" in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7255 ;;
7256 *)
7257 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7258 for ac_dir in $PATH; do
7259 IFS="$ac_save_IFS"
7260 test -z "$ac_dir" && ac_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7263 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7264 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7265 break 2
7266 fi
7267 fi
7268 done
7269 done
7270 IFS="$ac_save_IFS"
7271 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7272 ;;
7273 esac
7274 fi
7275 MSGMERGE="$ac_cv_path_MSGMERGE"
7276 if test "$MSGMERGE" != ":"; then
7277 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7278 echo "${ECHO_T}$MSGMERGE" >&6; }
7279 else
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 if test "$GMSGFMT" != ":"; then
7286 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7287 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7288 : ;
7289 else
7290 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7291 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7292 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7293 GMSGFMT=":"
7294 fi
7295 fi
7296
7297 if test "$XGETTEXT" != ":"; then
7298 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7299 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7300 : ;
7301 else
7302 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7303 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7304 XGETTEXT=":"
7305 fi
7306 rm -f messages.po
7307 fi
7308
7309 ac_config_commands="$ac_config_commands default-1"
7310
7311
7312 { echo "$as_me:$LINENO: checking for off_t" >&5
7313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7314 if test "${ac_cv_type_off_t+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 typedef off_t ac__type_new_;
7325 int
7326 main ()
7327 {
7328 if ((ac__type_new_ *) 0)
7329 return 0;
7330 if (sizeof (ac__type_new_))
7331 return 0;
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (ac_try="$ac_compile"
7338 case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_compile") 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7351 { (case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_try") 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364 esac
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_try") 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 ac_cv_type_off_t=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 ac_cv_type_off_t=no
7376 fi
7377
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 fi
7380 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7381 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7382 if test $ac_cv_type_off_t = yes; then
7383 :
7384 else
7385
7386 cat >>confdefs.h <<_ACEOF
7387 @%:@define off_t long int
7388 _ACEOF
7389
7390 fi
7391
7392 { echo "$as_me:$LINENO: checking for size_t" >&5
7393 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7394 if test "${ac_cv_type_size_t+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 typedef size_t ac__type_new_;
7405 int
7406 main ()
7407 {
7408 if ((ac__type_new_ *) 0)
7409 return 0;
7410 if (sizeof (ac__type_new_))
7411 return 0;
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7431 { (case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_try") 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_try") 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_type_size_t=yes
7451 else
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_type_size_t=no
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7461 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7462 if test $ac_cv_type_size_t = yes; then
7463 :
7464 else
7465
7466 cat >>confdefs.h <<_ACEOF
7467 @%:@define size_t unsigned int
7468 _ACEOF
7469
7470 fi
7471
7472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7473 # for constant arguments. Useless!
7474 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7475 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7476 if test "${ac_cv_working_alloca_h+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h. */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 @%:@include <alloca.h>
7486 int
7487 main ()
7488 {
7489 char *p = (char *) alloca (2 * sizeof (int));
7490 if (p) return 0;
7491 ;
7492 return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (ac_try="$ac_link"
7497 case "(($ac_try" in
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7500 esac
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_link") 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7510 { (case "(($ac_try" in
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7513 esac
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_try") 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_try") 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_working_alloca_h=yes
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_working_alloca_h=no
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 fi
7540 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7541 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7542 if test $ac_cv_working_alloca_h = yes; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 @%:@define HAVE_ALLOCA_H 1
7546 _ACEOF
7547
7548 fi
7549
7550 { echo "$as_me:$LINENO: checking for alloca" >&5
7551 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7552 if test "${ac_cv_func_alloca_works+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 #ifdef __GNUC__
7562 # define alloca __builtin_alloca
7563 #else
7564 # ifdef _MSC_VER
7565 # include <malloc.h>
7566 # define alloca _alloca
7567 # else
7568 # if HAVE_ALLOCA_H
7569 # include <alloca.h>
7570 # else
7571 # ifdef _AIX
7572 #pragma alloca
7573 # else
7574 # ifndef alloca /* predefined by HP cc +Olibcalls */
7575 char *alloca ();
7576 # endif
7577 # endif
7578 # endif
7579 # endif
7580 #endif
7581
7582 int
7583 main ()
7584 {
7585 char *p = (char *) alloca (1);
7586 if (p) return 0;
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (ac_try="$ac_link"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7606 { (case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609 esac
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_try") 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try='test -s conftest$ac_exeext'
7616 { (case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_try") 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_func_alloca_works=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_cv_func_alloca_works=no
7631 fi
7632
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 fi
7636 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7637 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7638
7639 if test $ac_cv_func_alloca_works = yes; then
7640
7641 cat >>confdefs.h <<\_ACEOF
7642 @%:@define HAVE_ALLOCA 1
7643 _ACEOF
7644
7645 else
7646 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7647 # that cause trouble. Some versions do not even contain alloca or
7648 # contain a buggy version. If you still want to use their alloca,
7649 # use ar to extract alloca.o from them instead of compiling alloca.c.
7650
7651 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7652
7653 cat >>confdefs.h <<\_ACEOF
7654 @%:@define C_ALLOCA 1
7655 _ACEOF
7656
7657
7658 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7659 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7660 if test "${ac_cv_os_cray+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 #if defined CRAY && ! defined CRAY2
7670 webecray
7671 #else
7672 wenotbecray
7673 #endif
7674
7675 _ACEOF
7676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7677 $EGREP "webecray" >/dev/null 2>&1; then
7678 ac_cv_os_cray=yes
7679 else
7680 ac_cv_os_cray=no
7681 fi
7682 rm -f conftest*
7683
7684 fi
7685 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7686 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7687 if test $ac_cv_os_cray = yes; then
7688 for ac_func in _getb67 GETB67 getb67; do
7689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7703 #define $ac_func innocuous_$ac_func
7704
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char $ac_func (); below.
7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708 <limits.h> exists even on freestanding compilers. */
7709
7710 #ifdef __STDC__
7711 # include <limits.h>
7712 #else
7713 # include <assert.h>
7714 #endif
7715
7716 #undef $ac_func
7717
7718 /* Override any GCC internal prototype to avoid an error.
7719 Use char because int might match the return type of a GCC
7720 builtin and then its argument prototype would still apply. */
7721 #ifdef __cplusplus
7722 extern "C"
7723 #endif
7724 char $ac_func ();
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined __stub_$ac_func || defined __stub___$ac_func
7729 choke me
7730 #endif
7731
7732 int
7733 main ()
7734 {
7735 return $ac_func ();
7736 ;
7737 return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (ac_try="$ac_link"
7742 case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_link") 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_try") 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 eval "$as_ac_var=yes"
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 eval "$as_ac_var=no"
7780 fi
7781
7782 rm -f core conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7784 fi
7785 ac_res=`eval echo '${'$as_ac_var'}'`
7786 { echo "$as_me:$LINENO: result: $ac_res" >&5
7787 echo "${ECHO_T}$ac_res" >&6; }
7788 if test `eval echo '${'$as_ac_var'}'` = yes; then
7789
7790 cat >>confdefs.h <<_ACEOF
7791 @%:@define CRAY_STACKSEG_END $ac_func
7792 _ACEOF
7793
7794 break
7795 fi
7796
7797 done
7798 fi
7799
7800 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7801 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7802 if test "${ac_cv_c_stack_direction+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 if test "$cross_compiling" = yes; then
7806 ac_cv_c_stack_direction=0
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 $ac_includes_default
7815 int
7816 find_stack_direction ()
7817 {
7818 static char *addr = 0;
7819 auto char dummy;
7820 if (addr == 0)
7821 {
7822 addr = &dummy;
7823 return find_stack_direction ();
7824 }
7825 else
7826 return (&dummy > addr) ? 1 : -1;
7827 }
7828
7829 int
7830 main ()
7831 {
7832 return find_stack_direction () < 0;
7833 }
7834 _ACEOF
7835 rm -f conftest$ac_exeext
7836 if { (ac_try="$ac_link"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_link") 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_c_stack_direction=1
7856 else
7857 echo "$as_me: program exited with status $ac_status" >&5
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 ( exit $ac_status )
7862 ac_cv_c_stack_direction=-1
7863 fi
7864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7865 fi
7866
7867
7868 fi
7869 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7871
7872 cat >>confdefs.h <<_ACEOF
7873 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7874 _ACEOF
7875
7876
7877 fi
7878
7879
7880
7881 for ac_header in stdlib.h unistd.h
7882 do
7883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 fi
7890 ac_res=`eval echo '${'$as_ac_Header'}'`
7891 { echo "$as_me:$LINENO: result: $ac_res" >&5
7892 echo "${ECHO_T}$ac_res" >&6; }
7893 else
7894 # Is the header compilable?
7895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7904 @%:@include <$ac_header>
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest.$ac_objext'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_header_compiler=yes
7941 else
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ac_header_compiler=no
7946 fi
7947
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7950 echo "${ECHO_T}$ac_header_compiler" >&6; }
7951
7952 # Is the header present?
7953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 @%:@include <$ac_header>
7962 _ACEOF
7963 if { (ac_try="$ac_cpp conftest.$ac_ext"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } >/dev/null; then
7976 if test -s conftest.err; then
7977 ac_cpp_err=$ac_c_preproc_warn_flag
7978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7979 else
7980 ac_cpp_err=
7981 fi
7982 else
7983 ac_cpp_err=yes
7984 fi
7985 if test -z "$ac_cpp_err"; then
7986 ac_header_preproc=yes
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 ac_header_preproc=no
7992 fi
7993
7994 rm -f conftest.err conftest.$ac_ext
7995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996 echo "${ECHO_T}$ac_header_preproc" >&6; }
7997
7998 # So? What about this header?
7999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8000 yes:no: )
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8005 ac_header_preproc=yes
8006 ;;
8007 no:yes:* )
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8020 ( cat <<\_ASBOX
8021 @%:@@%:@ ------------------------------- @%:@@%:@
8022 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
8023 @%:@@%:@ ------------------------------- @%:@@%:@
8024 _ASBOX
8025 ) | sed "s/^/$as_me: WARNING: /" >&2
8026 ;;
8027 esac
8028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 eval "$as_ac_Header=\$ac_header_preproc"
8034 fi
8035 ac_res=`eval echo '${'$as_ac_Header'}'`
8036 { echo "$as_me:$LINENO: result: $ac_res" >&5
8037 echo "${ECHO_T}$ac_res" >&6; }
8038
8039 fi
8040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8041 cat >>confdefs.h <<_ACEOF
8042 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8043 _ACEOF
8044
8045 fi
8046
8047 done
8048
8049
8050 for ac_func in getpagesize
8051 do
8052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8066 #define $ac_func innocuous_$ac_func
8067
8068 /* System header to define __stub macros and hopefully few prototypes,
8069 which can conflict with char $ac_func (); below.
8070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8071 <limits.h> exists even on freestanding compilers. */
8072
8073 #ifdef __STDC__
8074 # include <limits.h>
8075 #else
8076 # include <assert.h>
8077 #endif
8078
8079 #undef $ac_func
8080
8081 /* Override any GCC internal prototype to avoid an error.
8082 Use char because int might match the return type of a GCC
8083 builtin and then its argument prototype would still apply. */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 char $ac_func ();
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined __stub_$ac_func || defined __stub___$ac_func
8092 choke me
8093 #endif
8094
8095 int
8096 main ()
8097 {
8098 return $ac_func ();
8099 ;
8100 return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_link") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 eval "$as_ac_var=yes"
8138 else
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 eval "$as_ac_var=no"
8143 fi
8144
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147 fi
8148 ac_res=`eval echo '${'$as_ac_var'}'`
8149 { echo "$as_me:$LINENO: result: $ac_res" >&5
8150 echo "${ECHO_T}$ac_res" >&6; }
8151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8154 _ACEOF
8155
8156 fi
8157 done
8158
8159 { echo "$as_me:$LINENO: checking for working mmap" >&5
8160 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8161 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 if test "$cross_compiling" = yes; then
8165 ac_cv_func_mmap_fixed_mapped=no
8166 else
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 /* malloc might have been renamed as rpl_malloc. */
8175 #undef malloc
8176
8177 /* Thanks to Mike Haertel and Jim Avera for this test.
8178 Here is a matrix of mmap possibilities:
8179 mmap private not fixed
8180 mmap private fixed at somewhere currently unmapped
8181 mmap private fixed at somewhere already mapped
8182 mmap shared not fixed
8183 mmap shared fixed at somewhere currently unmapped
8184 mmap shared fixed at somewhere already mapped
8185 For private mappings, we should verify that changes cannot be read()
8186 back from the file, nor mmap's back from the file at a different
8187 address. (There have been systems where private was not correctly
8188 implemented like the infamous i386 svr4.0, and systems where the
8189 VM page cache was not coherent with the file system buffer cache
8190 like early versions of FreeBSD and possibly contemporary NetBSD.)
8191 For shared mappings, we should conversely verify that changes get
8192 propagated back to all the places they're supposed to be.
8193
8194 Grep wants private fixed already mapped.
8195 The main things grep needs to know about mmap are:
8196 * does it exist and is it safe to write into the mmap'd area
8197 * how to use it (BSD variants) */
8198
8199 #include <fcntl.h>
8200 #include <sys/mman.h>
8201
8202 #if !STDC_HEADERS && !HAVE_STDLIB_H
8203 char *malloc ();
8204 #endif
8205
8206 /* This mess was copied from the GNU getpagesize.h. */
8207 #if !HAVE_GETPAGESIZE
8208 /* Assume that all systems that can run configure have sys/param.h. */
8209 # if !HAVE_SYS_PARAM_H
8210 # define HAVE_SYS_PARAM_H 1
8211 # endif
8212
8213 # ifdef _SC_PAGESIZE
8214 # define getpagesize() sysconf(_SC_PAGESIZE)
8215 # else /* no _SC_PAGESIZE */
8216 # if HAVE_SYS_PARAM_H
8217 # include <sys/param.h>
8218 # ifdef EXEC_PAGESIZE
8219 # define getpagesize() EXEC_PAGESIZE
8220 # else /* no EXEC_PAGESIZE */
8221 # ifdef NBPG
8222 # define getpagesize() NBPG * CLSIZE
8223 # ifndef CLSIZE
8224 # define CLSIZE 1
8225 # endif /* no CLSIZE */
8226 # else /* no NBPG */
8227 # ifdef NBPC
8228 # define getpagesize() NBPC
8229 # else /* no NBPC */
8230 # ifdef PAGESIZE
8231 # define getpagesize() PAGESIZE
8232 # endif /* PAGESIZE */
8233 # endif /* no NBPC */
8234 # endif /* no NBPG */
8235 # endif /* no EXEC_PAGESIZE */
8236 # else /* no HAVE_SYS_PARAM_H */
8237 # define getpagesize() 8192 /* punt totally */
8238 # endif /* no HAVE_SYS_PARAM_H */
8239 # endif /* no _SC_PAGESIZE */
8240
8241 #endif /* no HAVE_GETPAGESIZE */
8242
8243 int
8244 main ()
8245 {
8246 char *data, *data2, *data3;
8247 int i, pagesize;
8248 int fd;
8249
8250 pagesize = getpagesize ();
8251
8252 /* First, make a file with some known garbage in it. */
8253 data = (char *) malloc (pagesize);
8254 if (!data)
8255 return 1;
8256 for (i = 0; i < pagesize; ++i)
8257 *(data + i) = rand ();
8258 umask (0);
8259 fd = creat ("conftest.mmap", 0600);
8260 if (fd < 0)
8261 return 1;
8262 if (write (fd, data, pagesize) != pagesize)
8263 return 1;
8264 close (fd);
8265
8266 /* Next, try to mmap the file at a fixed address which already has
8267 something else allocated at it. If we can, also make sure that
8268 we see the same garbage. */
8269 fd = open ("conftest.mmap", O_RDWR);
8270 if (fd < 0)
8271 return 1;
8272 data2 = (char *) malloc (2 * pagesize);
8273 if (!data2)
8274 return 1;
8275 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8276 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8277 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8278 return 1;
8279 for (i = 0; i < pagesize; ++i)
8280 if (*(data + i) != *(data2 + i))
8281 return 1;
8282
8283 /* Finally, make sure that changes to the mapped area do not
8284 percolate back to the file as seen by read(). (This is a bug on
8285 some variants of i386 svr4.0.) */
8286 for (i = 0; i < pagesize; ++i)
8287 *(data2 + i) = *(data2 + i) + 1;
8288 data3 = (char *) malloc (pagesize);
8289 if (!data3)
8290 return 1;
8291 if (read (fd, data3, pagesize) != pagesize)
8292 return 1;
8293 for (i = 0; i < pagesize; ++i)
8294 if (*(data + i) != *(data3 + i))
8295 return 1;
8296 close (fd);
8297 return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest$ac_exeext
8301 if { (ac_try="$ac_link"
8302 case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_link") 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_func_mmap_fixed_mapped=yes
8321 else
8322 echo "$as_me: program exited with status $ac_status" >&5
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ( exit $ac_status )
8327 ac_cv_func_mmap_fixed_mapped=no
8328 fi
8329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8330 fi
8331
8332
8333 fi
8334 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8335 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8336 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8337
8338 cat >>confdefs.h <<\_ACEOF
8339 @%:@define HAVE_MMAP 1
8340 _ACEOF
8341
8342 fi
8343 rm -f conftest.mmap
8344
8345
8346 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8347 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
8348 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357
8358 #include <features.h>
8359 #ifdef __GNU_LIBRARY__
8360 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8361 Lucky GNU user
8362 #endif
8363 #endif
8364
8365 _ACEOF
8366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8367 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8368 ac_cv_gnu_library_2_1=yes
8369 else
8370 ac_cv_gnu_library_2_1=no
8371 fi
8372 rm -f conftest*
8373
8374
8375
8376 fi
8377 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8378 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
8379
8380 GLIBC21="$ac_cv_gnu_library_2_1"
8381
8382
8383
8384
8385 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8386 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
8387 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390
8391 if test "$cross_compiling" = yes; then
8392
8393 # Guess based on the CPU.
8394 case "$host_cpu" in
8395 alpha* | i3456786 | m68k | s390*)
8396 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8397 *)
8398 gt_cv_int_divbyzero_sigfpe="guessing no";;
8399 esac
8400
8401 else
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408
8409 #include <stdlib.h>
8410 #include <signal.h>
8411
8412 static void
8413 #ifdef __cplusplus
8414 sigfpe_handler (int sig)
8415 #else
8416 sigfpe_handler (sig) int sig;
8417 #endif
8418 {
8419 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8420 exit (sig != SIGFPE);
8421 }
8422
8423 int x = 1;
8424 int y = 0;
8425 int z;
8426 int nan;
8427
8428 int main ()
8429 {
8430 signal (SIGFPE, sigfpe_handler);
8431 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8432 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8433 signal (SIGTRAP, sigfpe_handler);
8434 #endif
8435 /* Linux/SPARC yields signal SIGILL. */
8436 #if defined (__sparc__) && defined (__linux__)
8437 signal (SIGILL, sigfpe_handler);
8438 #endif
8439
8440 z = x / y;
8441 nan = y / y;
8442 exit (1);
8443 }
8444
8445 _ACEOF
8446 rm -f conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_link") 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 gt_cv_int_divbyzero_sigfpe=yes
8467 else
8468 echo "$as_me: program exited with status $ac_status" >&5
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ( exit $ac_status )
8473 gt_cv_int_divbyzero_sigfpe=no
8474 fi
8475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8476 fi
8477
8478
8479
8480 fi
8481 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8482 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
8483 case "$gt_cv_int_divbyzero_sigfpe" in
8484 *yes) value=1;;
8485 *) value=0;;
8486 esac
8487
8488 cat >>confdefs.h <<_ACEOF
8489 @%:@define INTDIV0_RAISES_SIGFPE $value
8490 _ACEOF
8491
8492
8493
8494 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8495 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8496 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 #include <sys/types.h>
8506 #include <inttypes.h>
8507 int
8508 main ()
8509 {
8510 uintmax_t i = (uintmax_t) -1;
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8530 { (case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_try") 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_try") 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 jm_ac_cv_header_inttypes_h=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 jm_ac_cv_header_inttypes_h=no
8555 fi
8556
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 fi
8559 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8560 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
8561 if test $jm_ac_cv_header_inttypes_h = yes; then
8562
8563 cat >>confdefs.h <<_ACEOF
8564 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
8565 _ACEOF
8566
8567 fi
8568
8569
8570 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8571 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8572 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <sys/types.h>
8582 #include <stdint.h>
8583 int
8584 main ()
8585 {
8586 uintmax_t i = (uintmax_t) -1;
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_try") 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 jm_ac_cv_header_stdint_h=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 jm_ac_cv_header_stdint_h=no
8631 fi
8632
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8636 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
8637 if test $jm_ac_cv_header_stdint_h = yes; then
8638
8639 cat >>confdefs.h <<_ACEOF
8640 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
8641 _ACEOF
8642
8643 fi
8644
8645
8646 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8647 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8648 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 unsigned long long ull = 1; int i = 63;
8658 int
8659 main ()
8660 {
8661 unsigned long long ullmax = (unsigned long long) -1;
8662 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (ac_try="$ac_link"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_link") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_try") 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_type_unsigned_long_long=yes
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 ac_cv_type_unsigned_long_long=no
8707 fi
8708
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 fi
8712 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8713 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8714 if test $ac_cv_type_unsigned_long_long = yes; then
8715
8716 cat >>confdefs.h <<\_ACEOF
8717 @%:@define HAVE_UNSIGNED_LONG_LONG 1
8718 _ACEOF
8719
8720 fi
8721
8722
8723
8724
8725 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8726
8727 test $ac_cv_type_unsigned_long_long = yes \
8728 && ac_type='unsigned long long' \
8729 || ac_type='unsigned long'
8730
8731 cat >>confdefs.h <<_ACEOF
8732 @%:@define uintmax_t $ac_type
8733 _ACEOF
8734
8735 else
8736
8737 cat >>confdefs.h <<\_ACEOF
8738 @%:@define HAVE_UINTMAX_T 1
8739 _ACEOF
8740
8741 fi
8742
8743
8744 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8745 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8746 if test "${gt_cv_header_inttypes_h+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 #include <sys/types.h>
8757 #include <inttypes.h>
8758 int
8759 main ()
8760 {
8761
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8768 case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_compile") 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest.$ac_objext'
8791 { (case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_try") 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 gt_cv_header_inttypes_h=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805 gt_cv_header_inttypes_h=no
8806 fi
8807
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809
8810 fi
8811 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8812 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
8813 if test $gt_cv_header_inttypes_h = yes; then
8814
8815 cat >>confdefs.h <<_ACEOF
8816 @%:@define HAVE_INTTYPES_H 1
8817 _ACEOF
8818
8819 fi
8820
8821
8822
8823 if test $gt_cv_header_inttypes_h = yes; then
8824 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8825 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
8826 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829
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 #include <inttypes.h>
8837 #ifdef PRId32
8838 char *p = PRId32;
8839 #endif
8840
8841 int
8842 main ()
8843 {
8844
8845 ;
8846 return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext
8850 if { (ac_try="$ac_compile"
8851 case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_compile") 2>conftest.er1
8857 ac_status=$?
8858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8864 { (case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_try") 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest.$ac_objext'
8874 { (case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_try") 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 gt_cv_inttypes_pri_broken=no
8884 else
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 gt_cv_inttypes_pri_broken=yes
8889 fi
8890
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892
8893 fi
8894 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8895 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
8896 fi
8897 if test "$gt_cv_inttypes_pri_broken" = yes; then
8898
8899 cat >>confdefs.h <<_ACEOF
8900 @%:@define PRI_MACROS_BROKEN 1
8901 _ACEOF
8902
8903 fi
8904
8905
8906 if test "X$prefix" = "XNONE"; then
8907 acl_final_prefix="$ac_default_prefix"
8908 else
8909 acl_final_prefix="$prefix"
8910 fi
8911 if test "X$exec_prefix" = "XNONE"; then
8912 acl_final_exec_prefix='${prefix}'
8913 else
8914 acl_final_exec_prefix="$exec_prefix"
8915 fi
8916 acl_save_prefix="$prefix"
8917 prefix="$acl_final_prefix"
8918 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8919 prefix="$acl_save_prefix"
8920
8921
8922 # Check whether --with-gnu-ld was given.
8923 if test "${with_gnu_ld+set}" = set; then
8924 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8925 else
8926 with_gnu_ld=no
8927 fi
8928
8929 # Prepare PATH_SEPARATOR.
8930 # The user is always right.
8931 if test "${PATH_SEPARATOR+set}" != set; then
8932 echo "#! /bin/sh" >conf$$.sh
8933 echo "exit 0" >>conf$$.sh
8934 chmod +x conf$$.sh
8935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8936 PATH_SEPARATOR=';'
8937 else
8938 PATH_SEPARATOR=:
8939 fi
8940 rm -f conf$$.sh
8941 fi
8942 ac_prog=ld
8943 if test "$GCC" = yes; then
8944 # Check if gcc -print-prog-name=ld gives a path.
8945 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8946 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8947 case $host in
8948 *-*-mingw*)
8949 # gcc leaves a trailing carriage return which upsets mingw
8950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8951 *)
8952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8953 esac
8954 case $ac_prog in
8955 # Accept absolute paths.
8956 [\\/]* | [A-Za-z]:[\\/]*)
8957 re_direlt='/[^/][^/]*/\.\./'
8958 # Canonicalize the path of ld
8959 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8961 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8962 done
8963 test -z "$LD" && LD="$ac_prog"
8964 ;;
8965 "")
8966 # If it fails, then pretend we aren't using GCC.
8967 ac_prog=ld
8968 ;;
8969 *)
8970 # If it is relative, then search for the first ld in PATH.
8971 with_gnu_ld=unknown
8972 ;;
8973 esac
8974 elif test "$with_gnu_ld" = yes; then
8975 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8977 else
8978 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8980 fi
8981 if test "${acl_cv_path_LD+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 if test -z "$LD"; then
8985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8986 for ac_dir in $PATH; do
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8989 acl_cv_path_LD="$ac_dir/$ac_prog"
8990 # Check to see if the program is GNU ld. I'd rather use --version,
8991 # but apparently some GNU ld's only accept -v.
8992 # Break only if it was the GNU/non-GNU ld that we prefer.
8993 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8994 test "$with_gnu_ld" != no && break
8995 else
8996 test "$with_gnu_ld" != yes && break
8997 fi
8998 fi
8999 done
9000 IFS="$ac_save_ifs"
9001 else
9002 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9003 fi
9004 fi
9005
9006 LD="$acl_cv_path_LD"
9007 if test -n "$LD"; then
9008 { echo "$as_me:$LINENO: result: $LD" >&5
9009 echo "${ECHO_T}$LD" >&6; }
9010 else
9011 { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9013 fi
9014 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9015 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9016 { (exit 1); exit 1; }; }
9017 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9018 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9019 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9023 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9024 acl_cv_prog_gnu_ld=yes
9025 else
9026 acl_cv_prog_gnu_ld=no
9027 fi
9028 fi
9029 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9030 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9031 with_gnu_ld=$acl_cv_prog_gnu_ld
9032
9033
9034
9035 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9036 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9037 if test "${acl_cv_rpath+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040
9041 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9042 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9043 . ./conftest.sh
9044 rm -f ./conftest.sh
9045 acl_cv_rpath=done
9046
9047 fi
9048 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9049 echo "${ECHO_T}$acl_cv_rpath" >&6; }
9050 wl="$acl_cv_wl"
9051 libext="$acl_cv_libext"
9052 shlibext="$acl_cv_shlibext"
9053 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9054 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9055 hardcode_direct="$acl_cv_hardcode_direct"
9056 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9057 # Check whether --enable-rpath was given.
9058 if test "${enable_rpath+set}" = set; then
9059 enableval=$enable_rpath; :
9060 else
9061 enable_rpath=yes
9062 fi
9063
9064
9065
9066
9067
9068
9069
9070
9071 use_additional=yes
9072
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 acl_save_exec_prefix="$exec_prefix"
9076 exec_prefix="$acl_final_exec_prefix"
9077
9078 eval additional_includedir=\"$includedir\"
9079 eval additional_libdir=\"$libdir\"
9080
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9083
9084
9085 # Check whether --with-libiconv-prefix was given.
9086 if test "${with_libiconv_prefix+set}" = set; then
9087 withval=$with_libiconv_prefix;
9088 if test "X$withval" = "Xno"; then
9089 use_additional=no
9090 else
9091 if test "X$withval" = "X"; then
9092
9093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9097
9098 eval additional_includedir=\"$includedir\"
9099 eval additional_libdir=\"$libdir\"
9100
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9103
9104 else
9105 additional_includedir="$withval/include"
9106 additional_libdir="$withval/lib"
9107 fi
9108 fi
9109
9110 fi
9111
9112 LIBICONV=
9113 LTLIBICONV=
9114 INCICONV=
9115 rpathdirs=
9116 ltrpathdirs=
9117 names_already_handled=
9118 names_next_round='iconv '
9119 while test -n "$names_next_round"; do
9120 names_this_round="$names_next_round"
9121 names_next_round=
9122 for name in $names_this_round; do
9123 already_handled=
9124 for n in $names_already_handled; do
9125 if test "$n" = "$name"; then
9126 already_handled=yes
9127 break
9128 fi
9129 done
9130 if test -z "$already_handled"; then
9131 names_already_handled="$names_already_handled $name"
9132 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9133 eval value=\"\$HAVE_LIB$uppername\"
9134 if test -n "$value"; then
9135 if test "$value" = yes; then
9136 eval value=\"\$LIB$uppername\"
9137 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9138 eval value=\"\$LTLIB$uppername\"
9139 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9140 else
9141 :
9142 fi
9143 else
9144 found_dir=
9145 found_la=
9146 found_so=
9147 found_a=
9148 if test $use_additional = yes; then
9149 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9150 found_dir="$additional_libdir"
9151 found_so="$additional_libdir/lib$name.$shlibext"
9152 if test -f "$additional_libdir/lib$name.la"; then
9153 found_la="$additional_libdir/lib$name.la"
9154 fi
9155 else
9156 if test -f "$additional_libdir/lib$name.$libext"; then
9157 found_dir="$additional_libdir"
9158 found_a="$additional_libdir/lib$name.$libext"
9159 if test -f "$additional_libdir/lib$name.la"; then
9160 found_la="$additional_libdir/lib$name.la"
9161 fi
9162 fi
9163 fi
9164 fi
9165 if test "X$found_dir" = "X"; then
9166 for x in $LDFLAGS $LTLIBICONV; do
9167
9168 acl_save_prefix="$prefix"
9169 prefix="$acl_final_prefix"
9170 acl_save_exec_prefix="$exec_prefix"
9171 exec_prefix="$acl_final_exec_prefix"
9172 eval x=\"$x\"
9173 exec_prefix="$acl_save_exec_prefix"
9174 prefix="$acl_save_prefix"
9175
9176 case "$x" in
9177 -L*)
9178 dir=`echo "X$x" | sed -e 's/^X-L//'`
9179 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9180 found_dir="$dir"
9181 found_so="$dir/lib$name.$shlibext"
9182 if test -f "$dir/lib$name.la"; then
9183 found_la="$dir/lib$name.la"
9184 fi
9185 else
9186 if test -f "$dir/lib$name.$libext"; then
9187 found_dir="$dir"
9188 found_a="$dir/lib$name.$libext"
9189 if test -f "$dir/lib$name.la"; then
9190 found_la="$dir/lib$name.la"
9191 fi
9192 fi
9193 fi
9194 ;;
9195 esac
9196 if test "X$found_dir" != "X"; then
9197 break
9198 fi
9199 done
9200 fi
9201 if test "X$found_dir" != "X"; then
9202 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9203 if test "X$found_so" != "X"; then
9204 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9206 else
9207 haveit=
9208 for x in $ltrpathdirs; do
9209 if test "X$x" = "X$found_dir"; then
9210 haveit=yes
9211 break
9212 fi
9213 done
9214 if test -z "$haveit"; then
9215 ltrpathdirs="$ltrpathdirs $found_dir"
9216 fi
9217 if test "$hardcode_direct" = yes; then
9218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9219 else
9220 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9222 haveit=
9223 for x in $rpathdirs; do
9224 if test "X$x" = "X$found_dir"; then
9225 haveit=yes
9226 break
9227 fi
9228 done
9229 if test -z "$haveit"; then
9230 rpathdirs="$rpathdirs $found_dir"
9231 fi
9232 else
9233 haveit=
9234 for x in $LDFLAGS $LIBICONV; do
9235
9236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
9240 eval x=\"$x\"
9241 exec_prefix="$acl_save_exec_prefix"
9242 prefix="$acl_save_prefix"
9243
9244 if test "X$x" = "X-L$found_dir"; then
9245 haveit=yes
9246 break
9247 fi
9248 done
9249 if test -z "$haveit"; then
9250 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9251 fi
9252 if test "$hardcode_minus_L" != no; then
9253 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9254 else
9255 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9256 fi
9257 fi
9258 fi
9259 fi
9260 else
9261 if test "X$found_a" != "X"; then
9262 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9263 else
9264 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9265 fi
9266 fi
9267 additional_includedir=
9268 case "$found_dir" in
9269 */lib | */lib/)
9270 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9271 additional_includedir="$basedir/include"
9272 ;;
9273 esac
9274 if test "X$additional_includedir" != "X"; then
9275 if test "X$additional_includedir" != "X/usr/include"; then
9276 haveit=
9277 if test "X$additional_includedir" = "X/usr/local/include"; then
9278 if test -n "$GCC"; then
9279 case $host_os in
9280 linux*) haveit=yes;;
9281 esac
9282 fi
9283 fi
9284 if test -z "$haveit"; then
9285 for x in $CPPFLAGS $INCICONV; do
9286
9287 acl_save_prefix="$prefix"
9288 prefix="$acl_final_prefix"
9289 acl_save_exec_prefix="$exec_prefix"
9290 exec_prefix="$acl_final_exec_prefix"
9291 eval x=\"$x\"
9292 exec_prefix="$acl_save_exec_prefix"
9293 prefix="$acl_save_prefix"
9294
9295 if test "X$x" = "X-I$additional_includedir"; then
9296 haveit=yes
9297 break
9298 fi
9299 done
9300 if test -z "$haveit"; then
9301 if test -d "$additional_includedir"; then
9302 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9303 fi
9304 fi
9305 fi
9306 fi
9307 fi
9308 if test -n "$found_la"; then
9309 save_libdir="$libdir"
9310 case "$found_la" in
9311 */* | *\\*) . "$found_la" ;;
9312 *) . "./$found_la" ;;
9313 esac
9314 libdir="$save_libdir"
9315 for dep in $dependency_libs; do
9316 case "$dep" in
9317 -L*)
9318 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9319 if test "X$additional_libdir" != "X/usr/lib"; then
9320 haveit=
9321 if test "X$additional_libdir" = "X/usr/local/lib"; then
9322 if test -n "$GCC"; then
9323 case $host_os in
9324 linux*) haveit=yes;;
9325 esac
9326 fi
9327 fi
9328 if test -z "$haveit"; then
9329 haveit=
9330 for x in $LDFLAGS $LIBICONV; do
9331
9332 acl_save_prefix="$prefix"
9333 prefix="$acl_final_prefix"
9334 acl_save_exec_prefix="$exec_prefix"
9335 exec_prefix="$acl_final_exec_prefix"
9336 eval x=\"$x\"
9337 exec_prefix="$acl_save_exec_prefix"
9338 prefix="$acl_save_prefix"
9339
9340 if test "X$x" = "X-L$additional_libdir"; then
9341 haveit=yes
9342 break
9343 fi
9344 done
9345 if test -z "$haveit"; then
9346 if test -d "$additional_libdir"; then
9347 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9348 fi
9349 fi
9350 haveit=
9351 for x in $LDFLAGS $LTLIBICONV; do
9352
9353 acl_save_prefix="$prefix"
9354 prefix="$acl_final_prefix"
9355 acl_save_exec_prefix="$exec_prefix"
9356 exec_prefix="$acl_final_exec_prefix"
9357 eval x=\"$x\"
9358 exec_prefix="$acl_save_exec_prefix"
9359 prefix="$acl_save_prefix"
9360
9361 if test "X$x" = "X-L$additional_libdir"; then
9362 haveit=yes
9363 break
9364 fi
9365 done
9366 if test -z "$haveit"; then
9367 if test -d "$additional_libdir"; then
9368 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9369 fi
9370 fi
9371 fi
9372 fi
9373 ;;
9374 -R*)
9375 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9376 if test "$enable_rpath" != no; then
9377 haveit=
9378 for x in $rpathdirs; do
9379 if test "X$x" = "X$dir"; then
9380 haveit=yes
9381 break
9382 fi
9383 done
9384 if test -z "$haveit"; then
9385 rpathdirs="$rpathdirs $dir"
9386 fi
9387 haveit=
9388 for x in $ltrpathdirs; do
9389 if test "X$x" = "X$dir"; then
9390 haveit=yes
9391 break
9392 fi
9393 done
9394 if test -z "$haveit"; then
9395 ltrpathdirs="$ltrpathdirs $dir"
9396 fi
9397 fi
9398 ;;
9399 -l*)
9400 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9401 ;;
9402 *.la)
9403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9404 ;;
9405 *)
9406 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9408 ;;
9409 esac
9410 done
9411 fi
9412 else
9413 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9415 fi
9416 fi
9417 fi
9418 done
9419 done
9420 if test "X$rpathdirs" != "X"; then
9421 if test -n "$hardcode_libdir_separator"; then
9422 alldirs=
9423 for found_dir in $rpathdirs; do
9424 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9425 done
9426 acl_save_libdir="$libdir"
9427 libdir="$alldirs"
9428 eval flag=\"$hardcode_libdir_flag_spec\"
9429 libdir="$acl_save_libdir"
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9431 else
9432 for found_dir in $rpathdirs; do
9433 acl_save_libdir="$libdir"
9434 libdir="$found_dir"
9435 eval flag=\"$hardcode_libdir_flag_spec\"
9436 libdir="$acl_save_libdir"
9437 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9438 done
9439 fi
9440 fi
9441 if test "X$ltrpathdirs" != "X"; then
9442 for found_dir in $ltrpathdirs; do
9443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9444 done
9445 fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9461 stdlib.h string.h unistd.h sys/param.h
9462 do
9463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 fi
9470 ac_res=`eval echo '${'$as_ac_Header'}'`
9471 { echo "$as_me:$LINENO: result: $ac_res" >&5
9472 echo "${ECHO_T}$ac_res" >&6; }
9473 else
9474 # Is the header compilable?
9475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 $ac_includes_default
9484 @%:@include <$ac_header>
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (ac_try="$ac_compile"
9488 case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_compile") 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9501 { (case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504 esac
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_try") 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_try") 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_header_compiler=yes
9521 else
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 ac_header_compiler=no
9526 fi
9527
9528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9530 echo "${ECHO_T}$ac_header_compiler" >&6; }
9531
9532 # Is the header present?
9533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 @%:@include <$ac_header>
9542 _ACEOF
9543 if { (ac_try="$ac_cpp conftest.$ac_ext"
9544 case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } >/dev/null; then
9556 if test -s conftest.err; then
9557 ac_cpp_err=$ac_c_preproc_warn_flag
9558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9559 else
9560 ac_cpp_err=
9561 fi
9562 else
9563 ac_cpp_err=yes
9564 fi
9565 if test -z "$ac_cpp_err"; then
9566 ac_header_preproc=yes
9567 else
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_header_preproc=no
9572 fi
9573
9574 rm -f conftest.err conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9576 echo "${ECHO_T}$ac_header_preproc" >&6; }
9577
9578 # So? What about this header?
9579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9580 yes:no: )
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9585 ac_header_preproc=yes
9586 ;;
9587 no:yes:* )
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9600 ( cat <<\_ASBOX
9601 @%:@@%:@ ------------------------------- @%:@@%:@
9602 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
9603 @%:@@%:@ ------------------------------- @%:@@%:@
9604 _ASBOX
9605 ) | sed "s/^/$as_me: WARNING: /" >&2
9606 ;;
9607 esac
9608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 eval "$as_ac_Header=\$ac_header_preproc"
9614 fi
9615 ac_res=`eval echo '${'$as_ac_Header'}'`
9616 { echo "$as_me:$LINENO: result: $ac_res" >&5
9617 echo "${ECHO_T}$ac_res" >&6; }
9618
9619 fi
9620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9623 _ACEOF
9624
9625 fi
9626
9627 done
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9653 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9654 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9655 __fsetlocking
9656 do
9657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671 #define $ac_func innocuous_$ac_func
9672
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9677
9678 #ifdef __STDC__
9679 # include <limits.h>
9680 #else
9681 # include <assert.h>
9682 #endif
9683
9684 #undef $ac_func
9685
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char $ac_func ();
9693 /* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
9696 #if defined __stub_$ac_func || defined __stub___$ac_func
9697 choke me
9698 #endif
9699
9700 int
9701 main ()
9702 {
9703 return $ac_func ();
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9710 case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 eval "$as_ac_var=yes"
9743 else
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747 eval "$as_ac_var=no"
9748 fi
9749
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 fi
9753 ac_res=`eval echo '${'$as_ac_var'}'`
9754 { echo "$as_me:$LINENO: result: $ac_res" >&5
9755 echo "${ECHO_T}$ac_res" >&6; }
9756 if test `eval echo '${'$as_ac_var'}'` = yes; then
9757 cat >>confdefs.h <<_ACEOF
9758 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9759 _ACEOF
9760
9761 fi
9762 done
9763
9764
9765
9766
9767
9768
9769
9770 am_save_CPPFLAGS="$CPPFLAGS"
9771
9772 for element in $INCICONV; do
9773 haveit=
9774 for x in $CPPFLAGS; do
9775
9776 acl_save_prefix="$prefix"
9777 prefix="$acl_final_prefix"
9778 acl_save_exec_prefix="$exec_prefix"
9779 exec_prefix="$acl_final_exec_prefix"
9780 eval x=\"$x\"
9781 exec_prefix="$acl_save_exec_prefix"
9782 prefix="$acl_save_prefix"
9783
9784 if test "X$x" = "X$element"; then
9785 haveit=yes
9786 break
9787 fi
9788 done
9789 if test -z "$haveit"; then
9790 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9791 fi
9792 done
9793
9794
9795 { echo "$as_me:$LINENO: checking for iconv" >&5
9796 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9797 if test "${am_cv_func_iconv+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800
9801 am_cv_func_iconv="no, consider installing GNU libiconv"
9802 am_cv_lib_iconv=no
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 #include <stdlib.h>
9810 #include <iconv.h>
9811 int
9812 main ()
9813 {
9814 iconv_t cd = iconv_open("","");
9815 iconv(cd,NULL,NULL,NULL,NULL);
9816 iconv_close(cd);
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 am_cv_func_iconv=yes
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860
9861 fi
9862
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 if test "$am_cv_func_iconv" != yes; then
9866 am_save_LIBS="$LIBS"
9867 LIBS="$LIBS $LIBICONV"
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <stdlib.h>
9875 #include <iconv.h>
9876 int
9877 main ()
9878 {
9879 iconv_t cd = iconv_open("","");
9880 iconv(cd,NULL,NULL,NULL,NULL);
9881 iconv_close(cd);
9882 ;
9883 return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9888 case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 am_cv_lib_iconv=yes
9921 am_cv_func_iconv=yes
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926
9927 fi
9928
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS="$am_save_LIBS"
9932 fi
9933
9934 fi
9935 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9936 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9937 if test "$am_cv_func_iconv" = yes; then
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 @%:@define HAVE_ICONV 1
9941 _ACEOF
9942
9943 fi
9944 if test "$am_cv_lib_iconv" = yes; then
9945 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9946 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9947 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9948 echo "${ECHO_T}$LIBICONV" >&6; }
9949 else
9950 CPPFLAGS="$am_save_CPPFLAGS"
9951 LIBICONV=
9952 LTLIBICONV=
9953 fi
9954
9955
9956
9957 if test "$am_cv_func_iconv" = yes; then
9958 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9959 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9960 if test "${am_cv_proto_iconv+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970
9971 #include <stdlib.h>
9972 #include <iconv.h>
9973 extern
9974 #ifdef __cplusplus
9975 "C"
9976 #endif
9977 #if defined(__STDC__) || defined(__cplusplus)
9978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9979 #else
9980 size_t iconv();
9981 #endif
9982
9983 int
9984 main ()
9985 {
9986
9987 ;
9988 return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9993 case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_compile") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10006 { (case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_try") 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest.$ac_objext'
10016 { (case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_try") 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 am_cv_proto_iconv_arg1=""
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 am_cv_proto_iconv_arg1="const"
10031 fi
10032
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10035 fi
10036
10037 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10038 { echo "$as_me:$LINENO: result: ${ac_t:-
10039 }$am_cv_proto_iconv" >&5
10040 echo "${ECHO_T}${ac_t:-
10041 }$am_cv_proto_iconv" >&6; }
10042
10043 cat >>confdefs.h <<_ACEOF
10044 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
10045 _ACEOF
10046
10047 fi
10048
10049
10050 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10051 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10052 if test "${am_cv_langinfo_codeset+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 #include <langinfo.h>
10062 int
10063 main ()
10064 {
10065 char* cs = nl_langinfo(CODESET);
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (ac_try="$ac_link"
10072 case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_link") 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10085 { (case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_try") 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 am_cv_langinfo_codeset=yes
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 am_cv_langinfo_codeset=no
10110 fi
10111
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114
10115 fi
10116 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10117 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10118 if test $am_cv_langinfo_codeset = yes; then
10119
10120 cat >>confdefs.h <<\_ACEOF
10121 @%:@define HAVE_LANGINFO_CODESET 1
10122 _ACEOF
10123
10124 fi
10125
10126 if test $ac_cv_header_locale_h = yes; then
10127
10128 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10129 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10130 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 #include <locale.h>
10140 int
10141 main ()
10142 {
10143 return LC_MESSAGES
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
10156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 am_cv_val_LC_MESSAGES=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 am_cv_val_LC_MESSAGES=no
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 fi
10193 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10194 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10195 if test $am_cv_val_LC_MESSAGES = yes; then
10196
10197 cat >>confdefs.h <<\_ACEOF
10198 @%:@define HAVE_LC_MESSAGES 1
10199 _ACEOF
10200
10201 fi
10202
10203 fi
10204
10205 for ac_prog in bison
10206 do
10207 # Extract the first word of "$ac_prog", so it can be a program name with args.
10208 set dummy $ac_prog; ac_word=$2
10209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10211 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 if test -n "$INTLBISON"; then
10215 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10219 do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_INTLBISON="$ac_prog"
10225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228 done
10229 done
10230 IFS=$as_save_IFS
10231
10232 fi
10233 fi
10234 INTLBISON=$ac_cv_prog_INTLBISON
10235 if test -n "$INTLBISON"; then
10236 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10237 echo "${ECHO_T}$INTLBISON" >&6; }
10238 else
10239 { echo "$as_me:$LINENO: result: no" >&5
10240 echo "${ECHO_T}no" >&6; }
10241 fi
10242
10243
10244 test -n "$INTLBISON" && break
10245 done
10246
10247 if test -z "$INTLBISON"; then
10248 ac_verc_fail=yes
10249 else
10250 { echo "$as_me:$LINENO: checking version of bison" >&5
10251 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10252 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10253 case $ac_prog_version in
10254 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10255 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10256 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10257 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10258 esac
10259 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10260 echo "${ECHO_T}$ac_prog_version" >&6; }
10261 fi
10262 if test $ac_verc_fail = yes; then
10263 INTLBISON=:
10264 fi
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10282 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10283 # Check whether --enable-nls was given.
10284 if test "${enable_nls+set}" = set; then
10285 enableval=$enable_nls; USE_NLS=$enableval
10286 else
10287 USE_NLS=yes
10288 fi
10289
10290 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10291 echo "${ECHO_T}$USE_NLS" >&6; }
10292
10293
10294
10295
10296 BUILD_INCLUDED_LIBINTL=no
10297 USE_INCLUDED_LIBINTL=no
10298
10299 LIBINTL=
10300 LTLIBINTL=
10301 POSUB=
10302
10303 if test "$USE_NLS" = "yes"; then
10304 gt_use_preinstalled_gnugettext=no
10305
10306 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10307 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10308
10309 # Check whether --with-included-gettext was given.
10310 if test "${with_included_gettext+set}" = set; then
10311 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10312 else
10313 nls_cv_force_use_gnu_gettext=no
10314 fi
10315
10316 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10317 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10318
10319 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10320 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10321
10322
10323
10324
10325
10326
10327 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10328 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10329 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <libintl.h>
10339 extern int _nl_msg_cat_cntr;
10340 extern int *_nl_domain_bindings;
10341 int
10342 main ()
10343 {
10344 bindtextdomain ("", "");
10345 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10346 ;
10347 return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 gt_cv_func_gnugettext2_libc=yes
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 gt_cv_func_gnugettext2_libc=no
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 fi
10395 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10396 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
10397
10398 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10399
10400
10401
10402 use_additional=yes
10403
10404 acl_save_prefix="$prefix"
10405 prefix="$acl_final_prefix"
10406 acl_save_exec_prefix="$exec_prefix"
10407 exec_prefix="$acl_final_exec_prefix"
10408
10409 eval additional_includedir=\"$includedir\"
10410 eval additional_libdir=\"$libdir\"
10411
10412 exec_prefix="$acl_save_exec_prefix"
10413 prefix="$acl_save_prefix"
10414
10415
10416 # Check whether --with-libintl-prefix was given.
10417 if test "${with_libintl_prefix+set}" = set; then
10418 withval=$with_libintl_prefix;
10419 if test "X$withval" = "Xno"; then
10420 use_additional=no
10421 else
10422 if test "X$withval" = "X"; then
10423
10424 acl_save_prefix="$prefix"
10425 prefix="$acl_final_prefix"
10426 acl_save_exec_prefix="$exec_prefix"
10427 exec_prefix="$acl_final_exec_prefix"
10428
10429 eval additional_includedir=\"$includedir\"
10430 eval additional_libdir=\"$libdir\"
10431
10432 exec_prefix="$acl_save_exec_prefix"
10433 prefix="$acl_save_prefix"
10434
10435 else
10436 additional_includedir="$withval/include"
10437 additional_libdir="$withval/lib"
10438 fi
10439 fi
10440
10441 fi
10442
10443 LIBINTL=
10444 LTLIBINTL=
10445 INCINTL=
10446 rpathdirs=
10447 ltrpathdirs=
10448 names_already_handled=
10449 names_next_round='intl '
10450 while test -n "$names_next_round"; do
10451 names_this_round="$names_next_round"
10452 names_next_round=
10453 for name in $names_this_round; do
10454 already_handled=
10455 for n in $names_already_handled; do
10456 if test "$n" = "$name"; then
10457 already_handled=yes
10458 break
10459 fi
10460 done
10461 if test -z "$already_handled"; then
10462 names_already_handled="$names_already_handled $name"
10463 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10464 eval value=\"\$HAVE_LIB$uppername\"
10465 if test -n "$value"; then
10466 if test "$value" = yes; then
10467 eval value=\"\$LIB$uppername\"
10468 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10469 eval value=\"\$LTLIB$uppername\"
10470 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10471 else
10472 :
10473 fi
10474 else
10475 found_dir=
10476 found_la=
10477 found_so=
10478 found_a=
10479 if test $use_additional = yes; then
10480 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10481 found_dir="$additional_libdir"
10482 found_so="$additional_libdir/lib$name.$shlibext"
10483 if test -f "$additional_libdir/lib$name.la"; then
10484 found_la="$additional_libdir/lib$name.la"
10485 fi
10486 else
10487 if test -f "$additional_libdir/lib$name.$libext"; then
10488 found_dir="$additional_libdir"
10489 found_a="$additional_libdir/lib$name.$libext"
10490 if test -f "$additional_libdir/lib$name.la"; then
10491 found_la="$additional_libdir/lib$name.la"
10492 fi
10493 fi
10494 fi
10495 fi
10496 if test "X$found_dir" = "X"; then
10497 for x in $LDFLAGS $LTLIBINTL; do
10498
10499 acl_save_prefix="$prefix"
10500 prefix="$acl_final_prefix"
10501 acl_save_exec_prefix="$exec_prefix"
10502 exec_prefix="$acl_final_exec_prefix"
10503 eval x=\"$x\"
10504 exec_prefix="$acl_save_exec_prefix"
10505 prefix="$acl_save_prefix"
10506
10507 case "$x" in
10508 -L*)
10509 dir=`echo "X$x" | sed -e 's/^X-L//'`
10510 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10511 found_dir="$dir"
10512 found_so="$dir/lib$name.$shlibext"
10513 if test -f "$dir/lib$name.la"; then
10514 found_la="$dir/lib$name.la"
10515 fi
10516 else
10517 if test -f "$dir/lib$name.$libext"; then
10518 found_dir="$dir"
10519 found_a="$dir/lib$name.$libext"
10520 if test -f "$dir/lib$name.la"; then
10521 found_la="$dir/lib$name.la"
10522 fi
10523 fi
10524 fi
10525 ;;
10526 esac
10527 if test "X$found_dir" != "X"; then
10528 break
10529 fi
10530 done
10531 fi
10532 if test "X$found_dir" != "X"; then
10533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10534 if test "X$found_so" != "X"; then
10535 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10537 else
10538 haveit=
10539 for x in $ltrpathdirs; do
10540 if test "X$x" = "X$found_dir"; then
10541 haveit=yes
10542 break
10543 fi
10544 done
10545 if test -z "$haveit"; then
10546 ltrpathdirs="$ltrpathdirs $found_dir"
10547 fi
10548 if test "$hardcode_direct" = yes; then
10549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10550 else
10551 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10553 haveit=
10554 for x in $rpathdirs; do
10555 if test "X$x" = "X$found_dir"; then
10556 haveit=yes
10557 break
10558 fi
10559 done
10560 if test -z "$haveit"; then
10561 rpathdirs="$rpathdirs $found_dir"
10562 fi
10563 else
10564 haveit=
10565 for x in $LDFLAGS $LIBINTL; do
10566
10567 acl_save_prefix="$prefix"
10568 prefix="$acl_final_prefix"
10569 acl_save_exec_prefix="$exec_prefix"
10570 exec_prefix="$acl_final_exec_prefix"
10571 eval x=\"$x\"
10572 exec_prefix="$acl_save_exec_prefix"
10573 prefix="$acl_save_prefix"
10574
10575 if test "X$x" = "X-L$found_dir"; then
10576 haveit=yes
10577 break
10578 fi
10579 done
10580 if test -z "$haveit"; then
10581 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10582 fi
10583 if test "$hardcode_minus_L" != no; then
10584 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10585 else
10586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10587 fi
10588 fi
10589 fi
10590 fi
10591 else
10592 if test "X$found_a" != "X"; then
10593 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10594 else
10595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10596 fi
10597 fi
10598 additional_includedir=
10599 case "$found_dir" in
10600 */lib | */lib/)
10601 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10602 additional_includedir="$basedir/include"
10603 ;;
10604 esac
10605 if test "X$additional_includedir" != "X"; then
10606 if test "X$additional_includedir" != "X/usr/include"; then
10607 haveit=
10608 if test "X$additional_includedir" = "X/usr/local/include"; then
10609 if test -n "$GCC"; then
10610 case $host_os in
10611 linux*) haveit=yes;;
10612 esac
10613 fi
10614 fi
10615 if test -z "$haveit"; then
10616 for x in $CPPFLAGS $INCINTL; do
10617
10618 acl_save_prefix="$prefix"
10619 prefix="$acl_final_prefix"
10620 acl_save_exec_prefix="$exec_prefix"
10621 exec_prefix="$acl_final_exec_prefix"
10622 eval x=\"$x\"
10623 exec_prefix="$acl_save_exec_prefix"
10624 prefix="$acl_save_prefix"
10625
10626 if test "X$x" = "X-I$additional_includedir"; then
10627 haveit=yes
10628 break
10629 fi
10630 done
10631 if test -z "$haveit"; then
10632 if test -d "$additional_includedir"; then
10633 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10634 fi
10635 fi
10636 fi
10637 fi
10638 fi
10639 if test -n "$found_la"; then
10640 save_libdir="$libdir"
10641 case "$found_la" in
10642 */* | *\\*) . "$found_la" ;;
10643 *) . "./$found_la" ;;
10644 esac
10645 libdir="$save_libdir"
10646 for dep in $dependency_libs; do
10647 case "$dep" in
10648 -L*)
10649 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10650 if test "X$additional_libdir" != "X/usr/lib"; then
10651 haveit=
10652 if test "X$additional_libdir" = "X/usr/local/lib"; then
10653 if test -n "$GCC"; then
10654 case $host_os in
10655 linux*) haveit=yes;;
10656 esac
10657 fi
10658 fi
10659 if test -z "$haveit"; then
10660 haveit=
10661 for x in $LDFLAGS $LIBINTL; do
10662
10663 acl_save_prefix="$prefix"
10664 prefix="$acl_final_prefix"
10665 acl_save_exec_prefix="$exec_prefix"
10666 exec_prefix="$acl_final_exec_prefix"
10667 eval x=\"$x\"
10668 exec_prefix="$acl_save_exec_prefix"
10669 prefix="$acl_save_prefix"
10670
10671 if test "X$x" = "X-L$additional_libdir"; then
10672 haveit=yes
10673 break
10674 fi
10675 done
10676 if test -z "$haveit"; then
10677 if test -d "$additional_libdir"; then
10678 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10679 fi
10680 fi
10681 haveit=
10682 for x in $LDFLAGS $LTLIBINTL; do
10683
10684 acl_save_prefix="$prefix"
10685 prefix="$acl_final_prefix"
10686 acl_save_exec_prefix="$exec_prefix"
10687 exec_prefix="$acl_final_exec_prefix"
10688 eval x=\"$x\"
10689 exec_prefix="$acl_save_exec_prefix"
10690 prefix="$acl_save_prefix"
10691
10692 if test "X$x" = "X-L$additional_libdir"; then
10693 haveit=yes
10694 break
10695 fi
10696 done
10697 if test -z "$haveit"; then
10698 if test -d "$additional_libdir"; then
10699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10700 fi
10701 fi
10702 fi
10703 fi
10704 ;;
10705 -R*)
10706 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10707 if test "$enable_rpath" != no; then
10708 haveit=
10709 for x in $rpathdirs; do
10710 if test "X$x" = "X$dir"; then
10711 haveit=yes
10712 break
10713 fi
10714 done
10715 if test -z "$haveit"; then
10716 rpathdirs="$rpathdirs $dir"
10717 fi
10718 haveit=
10719 for x in $ltrpathdirs; do
10720 if test "X$x" = "X$dir"; then
10721 haveit=yes
10722 break
10723 fi
10724 done
10725 if test -z "$haveit"; then
10726 ltrpathdirs="$ltrpathdirs $dir"
10727 fi
10728 fi
10729 ;;
10730 -l*)
10731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10732 ;;
10733 *.la)
10734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10735 ;;
10736 *)
10737 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10739 ;;
10740 esac
10741 done
10742 fi
10743 else
10744 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10745 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10746 fi
10747 fi
10748 fi
10749 done
10750 done
10751 if test "X$rpathdirs" != "X"; then
10752 if test -n "$hardcode_libdir_separator"; then
10753 alldirs=
10754 for found_dir in $rpathdirs; do
10755 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10756 done
10757 acl_save_libdir="$libdir"
10758 libdir="$alldirs"
10759 eval flag=\"$hardcode_libdir_flag_spec\"
10760 libdir="$acl_save_libdir"
10761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10762 else
10763 for found_dir in $rpathdirs; do
10764 acl_save_libdir="$libdir"
10765 libdir="$found_dir"
10766 eval flag=\"$hardcode_libdir_flag_spec\"
10767 libdir="$acl_save_libdir"
10768 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10769 done
10770 fi
10771 fi
10772 if test "X$ltrpathdirs" != "X"; then
10773 for found_dir in $ltrpathdirs; do
10774 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10775 done
10776 fi
10777
10778 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10779 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10780 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783 gt_save_CPPFLAGS="$CPPFLAGS"
10784 CPPFLAGS="$CPPFLAGS $INCINTL"
10785 gt_save_LIBS="$LIBS"
10786 LIBS="$LIBS $LIBINTL"
10787 cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h. */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 #include <libintl.h>
10794 extern int _nl_msg_cat_cntr;
10795 extern
10796 #ifdef __cplusplus
10797 "C"
10798 #endif
10799 const char *_nl_expand_alias ();
10800 int
10801 main ()
10802 {
10803 bindtextdomain ("", "");
10804 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest$ac_exeext'
10834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837 esac
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 gt_cv_func_gnugettext2_libintl=yes
10844 else
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848 gt_cv_func_gnugettext2_libintl=no
10849 fi
10850
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10854 LIBS="$LIBS $LIBICONV"
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 #include <libintl.h>
10862 extern int _nl_msg_cat_cntr;
10863 extern
10864 #ifdef __cplusplus
10865 "C"
10866 #endif
10867 const char *_nl_expand_alias ();
10868 int
10869 main ()
10870 {
10871 bindtextdomain ("", "");
10872 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10873 ;
10874 return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (ac_try="$ac_link"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_link") 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892 { (case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest$ac_exeext'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 LIBINTL="$LIBINTL $LIBICONV"
10912 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10913 gt_cv_func_gnugettext2_libintl=yes
10914
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919
10920 fi
10921
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 fi
10925 CPPFLAGS="$gt_save_CPPFLAGS"
10926 LIBS="$gt_save_LIBS"
10927 fi
10928 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10929 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
10930 fi
10931
10932 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10933 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10934 && test "$PACKAGE" != gettext-runtime \
10935 && test "$PACKAGE" != gettext-tools; }; then
10936 gt_use_preinstalled_gnugettext=yes
10937 else
10938 LIBINTL=
10939 LTLIBINTL=
10940 INCINTL=
10941 fi
10942
10943
10944 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10945 nls_cv_use_gnu_gettext=yes
10946 fi
10947 fi
10948
10949 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10950 BUILD_INCLUDED_LIBINTL=yes
10951 USE_INCLUDED_LIBINTL=yes
10952 LIBINTL="lib/intl/libintl.a $LIBICONV"
10953 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10954 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10955 fi
10956
10957 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10958 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10959 CATOBJEXT=.gmo
10960 fi
10961
10962
10963 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10964 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 @%:@define ENABLE_NLS 1
10968 _ACEOF
10969
10970 else
10971 USE_NLS=no
10972 fi
10973 fi
10974
10975 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10976 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10977 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10978 echo "${ECHO_T}$USE_NLS" >&6; }
10979 if test "$USE_NLS" = "yes"; then
10980 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10981 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10982 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10983 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10984 gt_source="external libintl"
10985 else
10986 gt_source="libc"
10987 fi
10988 else
10989 gt_source="included intl directory"
10990 fi
10991 { echo "$as_me:$LINENO: result: $gt_source" >&5
10992 echo "${ECHO_T}$gt_source" >&6; }
10993 fi
10994
10995 if test "$USE_NLS" = "yes"; then
10996
10997 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10998 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10999 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11000 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11001 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11002 echo "${ECHO_T}$LIBINTL" >&6; }
11003
11004 for element in $INCINTL; do
11005 haveit=
11006 for x in $CPPFLAGS; do
11007
11008 acl_save_prefix="$prefix"
11009 prefix="$acl_final_prefix"
11010 acl_save_exec_prefix="$exec_prefix"
11011 exec_prefix="$acl_final_exec_prefix"
11012 eval x=\"$x\"
11013 exec_prefix="$acl_save_exec_prefix"
11014 prefix="$acl_save_prefix"
11015
11016 if test "X$x" = "X$element"; then
11017 haveit=yes
11018 break
11019 fi
11020 done
11021 if test -z "$haveit"; then
11022 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11023 fi
11024 done
11025
11026 fi
11027
11028
11029 cat >>confdefs.h <<\_ACEOF
11030 @%:@define HAVE_GETTEXT 1
11031 _ACEOF
11032
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 @%:@define HAVE_DCGETTEXT 1
11036 _ACEOF
11037
11038 fi
11039
11040 POSUB=po
11041 fi
11042
11043
11044 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11045 BUILD_INCLUDED_LIBINTL=yes
11046 fi
11047
11048
11049
11050
11051
11052 nls_cv_header_intl=
11053 nls_cv_header_libgt=
11054
11055 DATADIRNAME=share
11056
11057
11058 INSTOBJEXT=.mo
11059
11060
11061 GENCAT=gencat
11062
11063
11064 if test "$USE_INCLUDED_LIBINTL" = yes; then
11065 INTLOBJS="\$(GETTOBJS)"
11066 fi
11067
11068
11069 INTL_LIBTOOL_SUFFIX_PREFIX=
11070
11071
11072
11073 INTLLIBS="$LIBINTL"
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086 ac_header_dirent=no
11087 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11088 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11089 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11090 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h. */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 #include <sys/types.h>
11101 #include <$ac_hdr>
11102
11103 int
11104 main ()
11105 {
11106 if ((DIR *) 0)
11107 return 0;
11108 ;
11109 return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11127 { (case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_try") 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest.$ac_objext'
11137 { (case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_try") 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 eval "$as_ac_Header=yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 eval "$as_ac_Header=no"
11152 fi
11153
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 fi
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11162 _ACEOF
11163
11164 ac_header_dirent=$ac_hdr; break
11165 fi
11166
11167 done
11168 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11169 if test $ac_header_dirent = dirent.h; then
11170 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11172 if test "${ac_cv_search_opendir+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175 ac_func_search_save_LIBS=$LIBS
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char opendir ();
11190 int
11191 main ()
11192 {
11193 return opendir ();
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 for ac_lib in '' dir; do
11199 if test -z "$ac_lib"; then
11200 ac_res="none required"
11201 else
11202 ac_res=-l$ac_lib
11203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11204 fi
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_search_opendir=$ac_res
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11243
11244
11245 fi
11246
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext
11249 if test "${ac_cv_search_opendir+set}" = set; then
11250 break
11251 fi
11252 done
11253 if test "${ac_cv_search_opendir+set}" = set; then
11254 :
11255 else
11256 ac_cv_search_opendir=no
11257 fi
11258 rm conftest.$ac_ext
11259 LIBS=$ac_func_search_save_LIBS
11260 fi
11261 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11262 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11263 ac_res=$ac_cv_search_opendir
11264 if test "$ac_res" != no; then
11265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11266
11267 fi
11268
11269 else
11270 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11271 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11272 if test "${ac_cv_search_opendir+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 ac_func_search_save_LIBS=$LIBS
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char opendir ();
11290 int
11291 main ()
11292 {
11293 return opendir ();
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 for ac_lib in '' x; do
11299 if test -z "$ac_lib"; then
11300 ac_res="none required"
11301 else
11302 ac_res=-l$ac_lib
11303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11304 fi
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (ac_try="$ac_link"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_link") 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11320 { (case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_try") 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest$ac_exeext'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_search_opendir=$ac_res
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344
11345 fi
11346
11347 rm -f core conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext
11349 if test "${ac_cv_search_opendir+set}" = set; then
11350 break
11351 fi
11352 done
11353 if test "${ac_cv_search_opendir+set}" = set; then
11354 :
11355 else
11356 ac_cv_search_opendir=no
11357 fi
11358 rm conftest.$ac_ext
11359 LIBS=$ac_func_search_save_LIBS
11360 fi
11361 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11362 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11363 ac_res=$ac_cv_search_opendir
11364 if test "$ac_res" != no; then
11365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11366
11367 fi
11368
11369 fi
11370
11371 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11372 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11373 if test "${ac_cv_header_time+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <sys/types.h>
11383 #include <sys/time.h>
11384 #include <time.h>
11385
11386 int
11387 main ()
11388 {
11389 if ((struct tm *) 0)
11390 return 0;
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 rm -f conftest.$ac_objext
11396 if { (ac_try="$ac_compile"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400 esac
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11410 { (case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_try") 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; } &&
11419 { ac_try='test -s conftest.$ac_objext'
11420 { (case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_try") 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_cv_header_time=yes
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 ac_cv_header_time=no
11435 fi
11436
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438 fi
11439 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11440 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11441 if test $ac_cv_header_time = yes; then
11442
11443 cat >>confdefs.h <<\_ACEOF
11444 @%:@define TIME_WITH_SYS_TIME 1
11445 _ACEOF
11446
11447 fi
11448
11449
11450
11451
11452 for ac_header in inttypes.h
11453 do
11454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 fi
11461 ac_res=`eval echo '${'$as_ac_Header'}'`
11462 { echo "$as_me:$LINENO: result: $ac_res" >&5
11463 echo "${ECHO_T}$ac_res" >&6; }
11464 else
11465 # Is the header compilable?
11466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 @%:@include <$ac_header>
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_header_compiler=yes
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 ac_header_compiler=no
11517 fi
11518
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521 echo "${ECHO_T}$ac_header_compiler" >&6; }
11522
11523 # Is the header present?
11524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 @%:@include <$ac_header>
11533 _ACEOF
11534 if { (ac_try="$ac_cpp conftest.$ac_ext"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11550 else
11551 ac_cpp_err=
11552 fi
11553 else
11554 ac_cpp_err=yes
11555 fi
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_header_preproc=no
11563 fi
11564
11565 rm -f conftest.err conftest.$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6; }
11568
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571 yes:no: )
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc=yes
11577 ;;
11578 no:yes:* )
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11591 ( cat <<\_ASBOX
11592 @%:@@%:@ ------------------------------- @%:@@%:@
11593 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11594 @%:@@%:@ ------------------------------- @%:@@%:@
11595 _ASBOX
11596 ) | sed "s/^/$as_me: WARNING: /" >&2
11597 ;;
11598 esac
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 eval "$as_ac_Header=\$ac_header_preproc"
11605 fi
11606 ac_res=`eval echo '${'$as_ac_Header'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11609
11610 fi
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11614 _ACEOF
11615
11616 fi
11617
11618 done
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11642 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11643 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
11644 do
11645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 fi
11652 ac_res=`eval echo '${'$as_ac_Header'}'`
11653 { echo "$as_me:$LINENO: result: $ac_res" >&5
11654 echo "${ECHO_T}$ac_res" >&6; }
11655 else
11656 # Is the header compilable?
11657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 @%:@include <$ac_header>
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (ac_try="$ac_compile"
11670 case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11689 ac_status=$?
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; } &&
11692 { ac_try='test -s conftest.$ac_objext'
11693 { (case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_try") 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_header_compiler=yes
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11706
11707 ac_header_compiler=no
11708 fi
11709
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11712 echo "${ECHO_T}$ac_header_compiler" >&6; }
11713
11714 # Is the header present?
11715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 @%:@include <$ac_header>
11724 _ACEOF
11725 if { (ac_try="$ac_cpp conftest.$ac_ext"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741 else
11742 ac_cpp_err=
11743 fi
11744 else
11745 ac_cpp_err=yes
11746 fi
11747 if test -z "$ac_cpp_err"; then
11748 ac_header_preproc=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 ac_header_preproc=no
11754 fi
11755
11756 rm -f conftest.err conftest.$ac_ext
11757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758 echo "${ECHO_T}$ac_header_preproc" >&6; }
11759
11760 # So? What about this header?
11761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11762 yes:no: )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11767 ac_header_preproc=yes
11768 ;;
11769 no:yes:* )
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 ( cat <<\_ASBOX
11783 @%:@@%:@ ------------------------------- @%:@@%:@
11784 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11785 @%:@@%:@ ------------------------------- @%:@@%:@
11786 _ASBOX
11787 ) | sed "s/^/$as_me: WARNING: /" >&2
11788 ;;
11789 esac
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 eval "$as_ac_Header=\$ac_header_preproc"
11796 fi
11797 ac_res=`eval echo '${'$as_ac_Header'}'`
11798 { echo "$as_me:$LINENO: result: $ac_res" >&5
11799 echo "${ECHO_T}$ac_res" >&6; }
11800
11801 fi
11802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11805 _ACEOF
11806
11807 fi
11808
11809 done
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11824 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11825 sys/time.h sys/times.h sys/types.h sys/wait.h
11826 do
11827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 fi
11834 ac_res=`eval echo '${'$as_ac_Header'}'`
11835 { echo "$as_me:$LINENO: result: $ac_res" >&5
11836 echo "${ECHO_T}$ac_res" >&6; }
11837 else
11838 # Is the header compilable?
11839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 $ac_includes_default
11848 @%:@include <$ac_header>
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11865 { (case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_try") 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_header_compiler=yes
11885 else
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 ac_header_compiler=no
11890 fi
11891
11892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11894 echo "${ECHO_T}$ac_header_compiler" >&6; }
11895
11896 # Is the header present?
11897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11899 cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h. */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 @%:@include <$ac_header>
11906 _ACEOF
11907 if { (ac_try="$ac_cpp conftest.$ac_ext"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } >/dev/null; then
11920 if test -s conftest.err; then
11921 ac_cpp_err=$ac_c_preproc_warn_flag
11922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11923 else
11924 ac_cpp_err=
11925 fi
11926 else
11927 ac_cpp_err=yes
11928 fi
11929 if test -z "$ac_cpp_err"; then
11930 ac_header_preproc=yes
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_header_preproc=no
11936 fi
11937
11938 rm -f conftest.err conftest.$ac_ext
11939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11940 echo "${ECHO_T}$ac_header_preproc" >&6; }
11941
11942 # So? What about this header?
11943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11944 yes:no: )
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11949 ac_header_preproc=yes
11950 ;;
11951 no:yes:* )
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11964 ( cat <<\_ASBOX
11965 @%:@@%:@ ------------------------------- @%:@@%:@
11966 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11967 @%:@@%:@ ------------------------------- @%:@@%:@
11968 _ASBOX
11969 ) | sed "s/^/$as_me: WARNING: /" >&2
11970 ;;
11971 esac
11972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977 eval "$as_ac_Header=\$ac_header_preproc"
11978 fi
11979 ac_res=`eval echo '${'$as_ac_Header'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981 echo "${ECHO_T}$ac_res" >&6; }
11982
11983 fi
11984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11987 _ACEOF
11988
11989 fi
11990
11991 done
11992
11993
11994
11995 for ac_header in netinet/in.h arpa/inet.h
11996 do
11997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 fi
12004 ac_res=`eval echo '${'$as_ac_Header'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 else
12008 # Is the header compilable?
12009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 $ac_includes_default
12018 @%:@include <$ac_header>
12019 _ACEOF
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_header_compiler=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_header_compiler=no
12060 fi
12061
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12064 echo "${ECHO_T}$ac_header_compiler" >&6; }
12065
12066 # Is the header present?
12067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 @%:@include <$ac_header>
12076 _ACEOF
12077 if { (ac_try="$ac_cpp conftest.$ac_ext"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null; then
12090 if test -s conftest.err; then
12091 ac_cpp_err=$ac_c_preproc_warn_flag
12092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12093 else
12094 ac_cpp_err=
12095 fi
12096 else
12097 ac_cpp_err=yes
12098 fi
12099 if test -z "$ac_cpp_err"; then
12100 ac_header_preproc=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 ac_header_preproc=no
12106 fi
12107
12108 rm -f conftest.err conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12110 echo "${ECHO_T}$ac_header_preproc" >&6; }
12111
12112 # So? What about this header?
12113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12114 yes:no: )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12119 ac_header_preproc=yes
12120 ;;
12121 no:yes:* )
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12134 ( cat <<\_ASBOX
12135 @%:@@%:@ ------------------------------- @%:@@%:@
12136 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
12137 @%:@@%:@ ------------------------------- @%:@@%:@
12138 _ASBOX
12139 ) | sed "s/^/$as_me: WARNING: /" >&2
12140 ;;
12141 esac
12142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 eval "$as_ac_Header=\$ac_header_preproc"
12148 fi
12149 ac_res=`eval echo '${'$as_ac_Header'}'`
12150 { echo "$as_me:$LINENO: result: $ac_res" >&5
12151 echo "${ECHO_T}$ac_res" >&6; }
12152
12153 fi
12154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12155 cat >>confdefs.h <<_ACEOF
12156 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12157 _ACEOF
12158
12159 fi
12160
12161 done
12162
12163
12164 { echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
12165 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6; }
12166 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175
12176 #if HAVE_SYS_STREAM_H
12177 # include <sys/stream.h>
12178 #endif
12179
12180
12181 @%:@include <sys/ptem.h>
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (ac_try="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
12197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_header_sys_ptem_h=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_cv_header_sys_ptem_h=no
12223 fi
12224
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 fi
12227 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12228 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6; }
12229
12230
12231
12232 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12233 # for constant arguments. Useless!
12234 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
12235 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12236 if test "${ac_cv_working_alloca_h+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 @%:@include <alloca.h>
12246 int
12247 main ()
12248 {
12249 char *p = (char *) alloca (2 * sizeof (int));
12250 if (p) return 0;
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_link") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12270 { (case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_try") 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest$ac_exeext'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_working_alloca_h=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ac_cv_working_alloca_h=no
12295 fi
12296
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 fi
12300 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12301 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12302 if test $ac_cv_working_alloca_h = yes; then
12303
12304 cat >>confdefs.h <<\_ACEOF
12305 @%:@define HAVE_ALLOCA_H 1
12306 _ACEOF
12307
12308 fi
12309
12310 { echo "$as_me:$LINENO: checking for alloca" >&5
12311 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12312 if test "${ac_cv_func_alloca_works+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 #ifdef __GNUC__
12322 # define alloca __builtin_alloca
12323 #else
12324 # ifdef _MSC_VER
12325 # include <malloc.h>
12326 # define alloca _alloca
12327 # else
12328 # if HAVE_ALLOCA_H
12329 # include <alloca.h>
12330 # else
12331 # ifdef _AIX
12332 #pragma alloca
12333 # else
12334 # ifndef alloca /* predefined by HP cc +Olibcalls */
12335 char *alloca ();
12336 # endif
12337 # endif
12338 # endif
12339 # endif
12340 #endif
12341
12342 int
12343 main ()
12344 {
12345 char *p = (char *) alloca (1);
12346 if (p) return 0;
12347 ;
12348 return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_func_alloca_works=yes
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_func_alloca_works=no
12391 fi
12392
12393 rm -f core conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 fi
12396 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12397 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12398
12399 if test $ac_cv_func_alloca_works = yes; then
12400
12401 cat >>confdefs.h <<\_ACEOF
12402 @%:@define HAVE_ALLOCA 1
12403 _ACEOF
12404
12405 else
12406 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12407 # that cause trouble. Some versions do not even contain alloca or
12408 # contain a buggy version. If you still want to use their alloca,
12409 # use ar to extract alloca.o from them instead of compiling alloca.c.
12410
12411 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12412
12413 cat >>confdefs.h <<\_ACEOF
12414 @%:@define C_ALLOCA 1
12415 _ACEOF
12416
12417
12418 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12419 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12420 if test "${ac_cv_os_cray+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 #if defined CRAY && ! defined CRAY2
12430 webecray
12431 #else
12432 wenotbecray
12433 #endif
12434
12435 _ACEOF
12436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12437 $EGREP "webecray" >/dev/null 2>&1; then
12438 ac_cv_os_cray=yes
12439 else
12440 ac_cv_os_cray=no
12441 fi
12442 rm -f conftest*
12443
12444 fi
12445 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12446 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12447 if test $ac_cv_os_cray = yes; then
12448 for ac_func in _getb67 GETB67 getb67; do
12449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h. */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12463 #define $ac_func innocuous_$ac_func
12464
12465 /* System header to define __stub macros and hopefully few prototypes,
12466 which can conflict with char $ac_func (); below.
12467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12468 <limits.h> exists even on freestanding compilers. */
12469
12470 #ifdef __STDC__
12471 # include <limits.h>
12472 #else
12473 # include <assert.h>
12474 #endif
12475
12476 #undef $ac_func
12477
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char $ac_func ();
12485 /* The GNU C library defines this for functions which it implements
12486 to always fail with ENOSYS. Some functions are actually named
12487 something starting with __ and the normal name is an alias. */
12488 #if defined __stub_$ac_func || defined __stub___$ac_func
12489 choke me
12490 #endif
12491
12492 int
12493 main ()
12494 {
12495 return $ac_func ();
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>conftest.er1
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_try") 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 eval "$as_ac_var=yes"
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 eval "$as_ac_var=no"
12540 fi
12541
12542 rm -f core conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12544 fi
12545 ac_res=`eval echo '${'$as_ac_var'}'`
12546 { echo "$as_me:$LINENO: result: $ac_res" >&5
12547 echo "${ECHO_T}$ac_res" >&6; }
12548 if test `eval echo '${'$as_ac_var'}'` = yes; then
12549
12550 cat >>confdefs.h <<_ACEOF
12551 @%:@define CRAY_STACKSEG_END $ac_func
12552 _ACEOF
12553
12554 break
12555 fi
12556
12557 done
12558 fi
12559
12560 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12561 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12562 if test "${ac_cv_c_stack_direction+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565 if test "$cross_compiling" = yes; then
12566 ac_cv_c_stack_direction=0
12567 else
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h. */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 $ac_includes_default
12575 int
12576 find_stack_direction ()
12577 {
12578 static char *addr = 0;
12579 auto char dummy;
12580 if (addr == 0)
12581 {
12582 addr = &dummy;
12583 return find_stack_direction ();
12584 }
12585 else
12586 return (&dummy > addr) ? 1 : -1;
12587 }
12588
12589 int
12590 main ()
12591 {
12592 return find_stack_direction () < 0;
12593 }
12594 _ACEOF
12595 rm -f conftest$ac_exeext
12596 if { (ac_try="$ac_link"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_link") 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_c_stack_direction=1
12616 else
12617 echo "$as_me: program exited with status $ac_status" >&5
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 ( exit $ac_status )
12622 ac_cv_c_stack_direction=-1
12623 fi
12624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12625 fi
12626
12627
12628 fi
12629 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12630 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12631
12632 cat >>confdefs.h <<_ACEOF
12633 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
12634 _ACEOF
12635
12636
12637 fi
12638
12639 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12640 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
12641 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644 # Use it with a single arg.
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 $ac_includes_default
12652 int
12653 main ()
12654 {
12655 getpgrp (0);
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest.$ac_objext
12661 if { (ac_try="$ac_compile"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_compile") 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_try") 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_func_getpgrp_void=no
12695 else
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12698
12699 ac_cv_func_getpgrp_void=yes
12700 fi
12701
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703
12704 fi
12705 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12706 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
12707 if test $ac_cv_func_getpgrp_void = yes; then
12708
12709 cat >>confdefs.h <<\_ACEOF
12710 @%:@define GETPGRP_VOID 1
12711 _ACEOF
12712
12713 fi
12714
12715 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12716 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12717 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720 ac_cv_func_setvbuf_reversed=no
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include <stdio.h>
12728 # if PROTOTYPES
12729 int (setvbuf) (FILE *, int, char *, size_t);
12730 # endif
12731 int
12732 main ()
12733 {
12734 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12735 ;
12736 return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754 { (case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_try") 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h. */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 #include <stdio.h>
12780 # if PROTOTYPES
12781 int (setvbuf) (FILE *, int, char *, size_t);
12782 # endif
12783 int
12784 main ()
12785 {
12786 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12787 ;
12788 return 0;
12789 }
12790 _ACEOF
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_link") 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806 { (case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_try") 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest$ac_exeext'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 # It compiles and links either way, so it must not be declared
12826 # with a prototype and most likely this is a K&R C compiler.
12827 # Try running it.
12828 if test "$cross_compiling" = yes; then
12829 : # Assume setvbuf is not reversed when cross-compiling.
12830 else
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h. */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 $ac_includes_default
12838 int
12839 main ()
12840 {
12841 /* This call has the arguments reversed.
12842 A reversed system may check and see that the address of buf
12843 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12844 char buf;
12845 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12846 return 1;
12847 putchar ('\r');
12848 return 0; /* Non-reversed systems SEGV here. */
12849 ;
12850 return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858 esac
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_link") 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_func_setvbuf_reversed=yes
12874 else
12875 echo "$as_me: program exited with status $ac_status" >&5
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12878
12879 fi
12880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12881 fi
12882
12883
12884 ac_cv_func_setvbuf_reversed=yes
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889
12890 fi
12891
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 else
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12897
12898
12899 fi
12900
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 fi
12904 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12905 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12906 if test $ac_cv_func_setvbuf_reversed = yes; then
12907
12908 cat >>confdefs.h <<\_ACEOF
12909 @%:@define SETVBUF_REVERSED 1
12910 _ACEOF
12911
12912 fi
12913
12914
12915 for ac_func in vprintf
12916 do
12917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12931 #define $ac_func innocuous_$ac_func
12932
12933 /* System header to define __stub macros and hopefully few prototypes,
12934 which can conflict with char $ac_func (); below.
12935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 <limits.h> exists even on freestanding compilers. */
12937
12938 #ifdef __STDC__
12939 # include <limits.h>
12940 #else
12941 # include <assert.h>
12942 #endif
12943
12944 #undef $ac_func
12945
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 char $ac_func ();
12953 /* The GNU C library defines this for functions which it implements
12954 to always fail with ENOSYS. Some functions are actually named
12955 something starting with __ and the normal name is an alias. */
12956 #if defined __stub_$ac_func || defined __stub___$ac_func
12957 choke me
12958 #endif
12959
12960 int
12961 main ()
12962 {
12963 return $ac_func ();
12964 ;
12965 return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
12982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 eval "$as_ac_var=yes"
13003 else
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 eval "$as_ac_var=no"
13008 fi
13009
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 fi
13013 ac_res=`eval echo '${'$as_ac_var'}'`
13014 { echo "$as_me:$LINENO: result: $ac_res" >&5
13015 echo "${ECHO_T}$ac_res" >&6; }
13016 if test `eval echo '${'$as_ac_var'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13019 _ACEOF
13020
13021 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13022 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13023 if test "${ac_cv_func__doprnt+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026 cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13034 #define _doprnt innocuous__doprnt
13035
13036 /* System header to define __stub macros and hopefully few prototypes,
13037 which can conflict with char _doprnt (); below.
13038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13039 <limits.h> exists even on freestanding compilers. */
13040
13041 #ifdef __STDC__
13042 # include <limits.h>
13043 #else
13044 # include <assert.h>
13045 #endif
13046
13047 #undef _doprnt
13048
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13052 #ifdef __cplusplus
13053 extern "C"
13054 #endif
13055 char _doprnt ();
13056 /* The GNU C library defines this for functions which it implements
13057 to always fail with ENOSYS. Some functions are actually named
13058 something starting with __ and the normal name is an alias. */
13059 #if defined __stub__doprnt || defined __stub____doprnt
13060 choke me
13061 #endif
13062
13063 int
13064 main ()
13065 {
13066 return _doprnt ();
13067 ;
13068 return 0;
13069 }
13070 _ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (ac_try="$ac_link"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_link") 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest$ac_exeext'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_func__doprnt=yes
13106 else
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13109
13110 ac_cv_func__doprnt=no
13111 fi
13112
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 fi
13116 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13117 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13118 if test $ac_cv_func__doprnt = yes; then
13119
13120 cat >>confdefs.h <<\_ACEOF
13121 @%:@define HAVE_DOPRNT 1
13122 _ACEOF
13123
13124 fi
13125
13126 fi
13127 done
13128
13129
13130 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13131 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13132 if test "${ac_cv_func_strcoll_works+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135 if test "$cross_compiling" = yes; then
13136 ac_cv_func_strcoll_works=no
13137 else
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 int
13146 main ()
13147 {
13148 return (strcoll ("abc", "def") >= 0 ||
13149 strcoll ("ABC", "DEF") >= 0 ||
13150 strcoll ("123", "456") >= 0)
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_link") 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_func_strcoll_works=yes
13176 else
13177 echo "$as_me: program exited with status $ac_status" >&5
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ( exit $ac_status )
13182 ac_cv_func_strcoll_works=no
13183 fi
13184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13185 fi
13186
13187
13188 fi
13189 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13190 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13191 if test $ac_cv_func_strcoll_works = yes; then
13192
13193 cat >>confdefs.h <<\_ACEOF
13194 @%:@define HAVE_STRCOLL 1
13195 _ACEOF
13196
13197 fi
13198
13199
13200
13201 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
13202 MALLOC_TARGET=alloca
13203 MALLOC_SRC=alloca.c
13204
13205 MALLOC_LIB='-lmalloc'
13206 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
13207 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
13208 MALLOC_DEP='$(MALLOC_LIBRARY)'
13209 fi
13210
13211 if test "$ac_cv_func_vprintf" = no; then
13212 { echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
13213 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6; }
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h. */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 #include <stdio.h>
13221
13222 _ACEOF
13223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13224 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
13225 ac_cv_func_vprintf=yes
13226 fi
13227 rm -f conftest*
13228
13229 { echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
13230 echo "${ECHO_T}$ac_cv_func_vprintf" >&6; }
13231 if test $ac_cv_func_vprintf = yes; then
13232 cat >>confdefs.h <<\_ACEOF
13233 @%:@define HAVE_VPRINTF 1
13234 _ACEOF
13235
13236 fi
13237 fi
13238
13239 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
13240 case " $LIB@&t@OBJS " in
13241 *" vprint.$ac_objext "* ) ;;
13242 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext"
13243 ;;
13244 esac
13245
13246 fi
13247
13248 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13250 if test "${ac_cv_type_signal+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h. */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <sys/types.h>
13260 #include <signal.h>
13261
13262 int
13263 main ()
13264 {
13265 return *(signal (0, 0)) (0) == 1;
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285 { (case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_try") 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_type_signal=int
13305 else
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_cv_type_signal=void
13310 fi
13311
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313 fi
13314 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13315 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13316
13317 cat >>confdefs.h <<_ACEOF
13318 @%:@define RETSIGTYPE $ac_cv_type_signal
13319 _ACEOF
13320
13321
13322
13323 { echo "$as_me:$LINENO: checking for __setostype" >&5
13324 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6; }
13325 if test "${ac_cv_func___setostype+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
13335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13336 #define __setostype innocuous___setostype
13337
13338 /* System header to define __stub macros and hopefully few prototypes,
13339 which can conflict with char __setostype (); below.
13340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13341 <limits.h> exists even on freestanding compilers. */
13342
13343 #ifdef __STDC__
13344 # include <limits.h>
13345 #else
13346 # include <assert.h>
13347 #endif
13348
13349 #undef __setostype
13350
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char __setostype ();
13358 /* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
13361 #if defined __stub___setostype || defined __stub_____setostype
13362 choke me
13363 #endif
13364
13365 int
13366 main ()
13367 {
13368 return __setostype ();
13369 ;
13370 return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_func___setostype=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_cv_func___setostype=no
13413 fi
13414
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 fi
13418 { echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
13419 echo "${ECHO_T}$ac_cv_func___setostype" >&6; }
13420 if test $ac_cv_func___setostype = yes; then
13421 cat >>confdefs.h <<\_ACEOF
13422 @%:@define HAVE_SETOSTYPE 1
13423 _ACEOF
13424
13425 fi
13426
13427 { echo "$as_me:$LINENO: checking for wait3" >&5
13428 echo $ECHO_N "checking for wait3... $ECHO_C" >&6; }
13429 if test "${ac_cv_func_wait3+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
13439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13440 #define wait3 innocuous_wait3
13441
13442 /* System header to define __stub macros and hopefully few prototypes,
13443 which can conflict with char wait3 (); below.
13444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13445 <limits.h> exists even on freestanding compilers. */
13446
13447 #ifdef __STDC__
13448 # include <limits.h>
13449 #else
13450 # include <assert.h>
13451 #endif
13452
13453 #undef wait3
13454
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13458 #ifdef __cplusplus
13459 extern "C"
13460 #endif
13461 char wait3 ();
13462 /* The GNU C library defines this for functions which it implements
13463 to always fail with ENOSYS. Some functions are actually named
13464 something starting with __ and the normal name is an alias. */
13465 #if defined __stub_wait3 || defined __stub___wait3
13466 choke me
13467 #endif
13468
13469 int
13470 main ()
13471 {
13472 return wait3 ();
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (ac_try="$ac_link"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_link") 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest$ac_exeext'
13502 { (case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_try") 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_cv_func_wait3=yes
13512 else
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_cv_func_wait3=no
13517 fi
13518
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 fi
13522 { echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
13523 echo "${ECHO_T}$ac_cv_func_wait3" >&6; }
13524 if test $ac_cv_func_wait3 = yes; then
13525 cat >>confdefs.h <<\_ACEOF
13526 @%:@define HAVE_WAIT3 1
13527 _ACEOF
13528
13529 fi
13530
13531 { echo "$as_me:$LINENO: checking for isinf" >&5
13532 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
13533 if test "${ac_cv_func_isinf+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h. */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13544 #define isinf innocuous_isinf
13545
13546 /* System header to define __stub macros and hopefully few prototypes,
13547 which can conflict with char isinf (); below.
13548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13549 <limits.h> exists even on freestanding compilers. */
13550
13551 #ifdef __STDC__
13552 # include <limits.h>
13553 #else
13554 # include <assert.h>
13555 #endif
13556
13557 #undef isinf
13558
13559 /* Override any GCC internal prototype to avoid an error.
13560 Use char because int might match the return type of a GCC
13561 builtin and then its argument prototype would still apply. */
13562 #ifdef __cplusplus
13563 extern "C"
13564 #endif
13565 char isinf ();
13566 /* The GNU C library defines this for functions which it implements
13567 to always fail with ENOSYS. Some functions are actually named
13568 something starting with __ and the normal name is an alias. */
13569 #if defined __stub_isinf || defined __stub___isinf
13570 choke me
13571 #endif
13572
13573 int
13574 main ()
13575 {
13576 return isinf ();
13577 ;
13578 return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext conftest$ac_exeext
13582 if { (ac_try="$ac_link"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_link") 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest$ac_exeext'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_cv_func_isinf=yes
13616 else
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 ac_cv_func_isinf=no
13621 fi
13622
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625 fi
13626 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13627 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
13628 if test $ac_cv_func_isinf = yes; then
13629 cat >>confdefs.h <<\_ACEOF
13630 @%:@define HAVE_ISINF_IN_LIBC 1
13631 _ACEOF
13632
13633 fi
13634
13635 { echo "$as_me:$LINENO: checking for isnan" >&5
13636 echo $ECHO_N "checking for isnan... $ECHO_C" >&6; }
13637 if test "${ac_cv_func_isnan+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h. */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13648 #define isnan innocuous_isnan
13649
13650 /* System header to define __stub macros and hopefully few prototypes,
13651 which can conflict with char isnan (); below.
13652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13653 <limits.h> exists even on freestanding compilers. */
13654
13655 #ifdef __STDC__
13656 # include <limits.h>
13657 #else
13658 # include <assert.h>
13659 #endif
13660
13661 #undef isnan
13662
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char isnan ();
13670 /* The GNU C library defines this for functions which it implements
13671 to always fail with ENOSYS. Some functions are actually named
13672 something starting with __ and the normal name is an alias. */
13673 #if defined __stub_isnan || defined __stub___isnan
13674 choke me
13675 #endif
13676
13677 int
13678 main ()
13679 {
13680 return isnan ();
13681 ;
13682 return 0;
13683 }
13684 _ACEOF
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_func_isnan=yes
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ac_cv_func_isnan=no
13725 fi
13726
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 fi
13730 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13731 echo "${ECHO_T}$ac_cv_func_isnan" >&6; }
13732 if test $ac_cv_func_isnan = yes; then
13733 cat >>confdefs.h <<\_ACEOF
13734 @%:@define HAVE_ISNAN_IN_LIBC 1
13735 _ACEOF
13736
13737 fi
13738
13739
13740 { echo "$as_me:$LINENO: checking for mkfifo" >&5
13741 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6; }
13742 if test "${ac_cv_func_mkfifo+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13753 #define mkfifo innocuous_mkfifo
13754
13755 /* System header to define __stub macros and hopefully few prototypes,
13756 which can conflict with char mkfifo (); below.
13757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13758 <limits.h> exists even on freestanding compilers. */
13759
13760 #ifdef __STDC__
13761 # include <limits.h>
13762 #else
13763 # include <assert.h>
13764 #endif
13765
13766 #undef mkfifo
13767
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char mkfifo ();
13775 /* The GNU C library defines this for functions which it implements
13776 to always fail with ENOSYS. Some functions are actually named
13777 something starting with __ and the normal name is an alias. */
13778 #if defined __stub_mkfifo || defined __stub___mkfifo
13779 choke me
13780 #endif
13781
13782 int
13783 main ()
13784 {
13785 return mkfifo ();
13786 ;
13787 return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_func_mkfifo=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 ac_cv_func_mkfifo=no
13830 fi
13831
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 fi
13835 { echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13836 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6; }
13837 if test $ac_cv_func_mkfifo = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 @%:@define HAVE_MKFIFO 1
13840 _ACEOF
13841
13842 else
13843 cat >>confdefs.h <<\_ACEOF
13844 @%:@define MKFIFO_MISSING 1
13845 _ACEOF
13846
13847 fi
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13874 getpagesize getpeername getrlimit getrusage gettimeofday \
13875 kill killpg lstat readlink sbrk select setdtablesize \
13876 setitimer tcgetpgrp uname ulimit waitpid
13877 do
13878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13892 #define $ac_func innocuous_$ac_func
13893
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char $ac_func (); below.
13896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897 <limits.h> exists even on freestanding compilers. */
13898
13899 #ifdef __STDC__
13900 # include <limits.h>
13901 #else
13902 # include <assert.h>
13903 #endif
13904
13905 #undef $ac_func
13906
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char $ac_func ();
13914 /* The GNU C library defines this for functions which it implements
13915 to always fail with ENOSYS. Some functions are actually named
13916 something starting with __ and the normal name is an alias. */
13917 #if defined __stub_$ac_func || defined __stub___$ac_func
13918 choke me
13919 #endif
13920
13921 int
13922 main ()
13923 {
13924 return $ac_func ();
13925 ;
13926 return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest$ac_exeext'
13954 { (case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_try") 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 eval "$as_ac_var=yes"
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 eval "$as_ac_var=no"
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 fi
13974 ac_res=`eval echo '${'$as_ac_var'}'`
13975 { echo "$as_me:$LINENO: result: $ac_res" >&5
13976 echo "${ECHO_T}$ac_res" >&6; }
13977 if test `eval echo '${'$as_ac_var'}'` = yes; then
13978 cat >>confdefs.h <<_ACEOF
13979 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13980 _ACEOF
13981
13982 fi
13983 done
13984
13985
13986 for ac_func in rename
13987 do
13988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14002 #define $ac_func innocuous_$ac_func
14003
14004 /* System header to define __stub macros and hopefully few prototypes,
14005 which can conflict with char $ac_func (); below.
14006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14007 <limits.h> exists even on freestanding compilers. */
14008
14009 #ifdef __STDC__
14010 # include <limits.h>
14011 #else
14012 # include <assert.h>
14013 #endif
14014
14015 #undef $ac_func
14016
14017 /* Override any GCC internal prototype to avoid an error.
14018 Use char because int might match the return type of a GCC
14019 builtin and then its argument prototype would still apply. */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char $ac_func ();
14024 /* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027 #if defined __stub_$ac_func || defined __stub___$ac_func
14028 choke me
14029 #endif
14030
14031 int
14032 main ()
14033 {
14034 return $ac_func ();
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext conftest$ac_exeext
14040 if { (ac_try="$ac_link"
14041 case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_link") 2>conftest.er1
14047 ac_status=$?
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14054 { (case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_try") 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest$ac_exeext'
14064 { (case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_try") 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 eval "$as_ac_var=yes"
14074 else
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 eval "$as_ac_var=no"
14079 fi
14080
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 fi
14084 ac_res=`eval echo '${'$as_ac_var'}'`
14085 { echo "$as_me:$LINENO: result: $ac_res" >&5
14086 echo "${ECHO_T}$ac_res" >&6; }
14087 if test `eval echo '${'$as_ac_var'}'` = yes; then
14088 cat >>confdefs.h <<_ACEOF
14089 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14090 _ACEOF
14091
14092 else
14093 case " $LIB@&t@OBJS " in
14094 *" $ac_func.$ac_objext "* ) ;;
14095 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14096 ;;
14097 esac
14098
14099 fi
14100 done
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131 for ac_func in bcopy bzero confstr fnmatch \
14132 getaddrinfo gethostbyname getservbyname getservent inet_aton \
14133 memmove pathconf putenv raise regcomp regexec \
14134 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
14135 sysconf tcgetattr times ttyname tzset unsetenv
14136 do
14137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14151 #define $ac_func innocuous_$ac_func
14152
14153 /* System header to define __stub macros and hopefully few prototypes,
14154 which can conflict with char $ac_func (); below.
14155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14156 <limits.h> exists even on freestanding compilers. */
14157
14158 #ifdef __STDC__
14159 # include <limits.h>
14160 #else
14161 # include <assert.h>
14162 #endif
14163
14164 #undef $ac_func
14165
14166 /* Override any GCC internal prototype to avoid an error.
14167 Use char because int might match the return type of a GCC
14168 builtin and then its argument prototype would still apply. */
14169 #ifdef __cplusplus
14170 extern "C"
14171 #endif
14172 char $ac_func ();
14173 /* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176 #if defined __stub_$ac_func || defined __stub___$ac_func
14177 choke me
14178 #endif
14179
14180 int
14181 main ()
14182 {
14183 return $ac_func ();
14184 ;
14185 return 0;
14186 }
14187 _ACEOF
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (ac_try="$ac_link"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_link") 2>conftest.er1
14196 ac_status=$?
14197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14203 { (case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_try") 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_try") 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 eval "$as_ac_var=yes"
14223 else
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 eval "$as_ac_var=no"
14228 fi
14229
14230 rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
14232 fi
14233 ac_res=`eval echo '${'$as_ac_var'}'`
14234 { echo "$as_me:$LINENO: result: $ac_res" >&5
14235 echo "${ECHO_T}$ac_res" >&6; }
14236 if test `eval echo '${'$as_ac_var'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14239 _ACEOF
14240
14241 fi
14242 done
14243
14244
14245
14246
14247
14248
14249 for ac_func in vsnprintf snprintf vasprintf asprintf
14250 do
14251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257 cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h. */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14265 #define $ac_func innocuous_$ac_func
14266
14267 /* System header to define __stub macros and hopefully few prototypes,
14268 which can conflict with char $ac_func (); below.
14269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14270 <limits.h> exists even on freestanding compilers. */
14271
14272 #ifdef __STDC__
14273 # include <limits.h>
14274 #else
14275 # include <assert.h>
14276 #endif
14277
14278 #undef $ac_func
14279
14280 /* Override any GCC internal prototype to avoid an error.
14281 Use char because int might match the return type of a GCC
14282 builtin and then its argument prototype would still apply. */
14283 #ifdef __cplusplus
14284 extern "C"
14285 #endif
14286 char $ac_func ();
14287 /* The GNU C library defines this for functions which it implements
14288 to always fail with ENOSYS. Some functions are actually named
14289 something starting with __ and the normal name is an alias. */
14290 #if defined __stub_$ac_func || defined __stub___$ac_func
14291 choke me
14292 #endif
14293
14294 int
14295 main ()
14296 {
14297 return $ac_func ();
14298 ;
14299 return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_link") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest$ac_exeext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 eval "$as_ac_var=yes"
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341 eval "$as_ac_var=no"
14342 fi
14343
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 fi
14347 ac_res=`eval echo '${'$as_ac_var'}'`
14348 { echo "$as_me:$LINENO: result: $ac_res" >&5
14349 echo "${ECHO_T}$ac_res" >&6; }
14350 if test `eval echo '${'$as_ac_var'}'` = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14353 _ACEOF
14354
14355 fi
14356 done
14357
14358
14359
14360
14361
14362
14363
14364 for ac_func in isascii isblank isgraph isprint isspace isxdigit
14365 do
14366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14380 #define $ac_func innocuous_$ac_func
14381
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char $ac_func (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14386
14387 #ifdef __STDC__
14388 # include <limits.h>
14389 #else
14390 # include <assert.h>
14391 #endif
14392
14393 #undef $ac_func
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char $ac_func ();
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined __stub_$ac_func || defined __stub___$ac_func
14406 choke me
14407 #endif
14408
14409 int
14410 main ()
14411 {
14412 return $ac_func ();
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_link") 2>conftest.er1
14425 ac_status=$?
14426 grep -v '^ *+' conftest.er1 >conftest.err
14427 rm -f conftest.er1
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 eval "$as_ac_var=yes"
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 eval "$as_ac_var=no"
14457 fi
14458
14459 rm -f core conftest.err conftest.$ac_objext \
14460 conftest$ac_exeext conftest.$ac_ext
14461 fi
14462 ac_res=`eval echo '${'$as_ac_var'}'`
14463 { echo "$as_me:$LINENO: result: $ac_res" >&5
14464 echo "${ECHO_T}$ac_res" >&6; }
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466 cat >>confdefs.h <<_ACEOF
14467 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14468 _ACEOF
14469
14470 fi
14471 done
14472
14473
14474
14475
14476 for ac_func in getpwent getpwnam getpwuid
14477 do
14478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14492 #define $ac_func innocuous_$ac_func
14493
14494 /* System header to define __stub macros and hopefully few prototypes,
14495 which can conflict with char $ac_func (); below.
14496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14497 <limits.h> exists even on freestanding compilers. */
14498
14499 #ifdef __STDC__
14500 # include <limits.h>
14501 #else
14502 # include <assert.h>
14503 #endif
14504
14505 #undef $ac_func
14506
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14510 #ifdef __cplusplus
14511 extern "C"
14512 #endif
14513 char $ac_func ();
14514 /* The GNU C library defines this for functions which it implements
14515 to always fail with ENOSYS. Some functions are actually named
14516 something starting with __ and the normal name is an alias. */
14517 #if defined __stub_$ac_func || defined __stub___$ac_func
14518 choke me
14519 #endif
14520
14521 int
14522 main ()
14523 {
14524 return $ac_func ();
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (ac_try="$ac_link"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 eval "$as_ac_var=no"
14569 fi
14570
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573 fi
14574 ac_res=`eval echo '${'$as_ac_var'}'`
14575 { echo "$as_me:$LINENO: result: $ac_res" >&5
14576 echo "${ECHO_T}$ac_res" >&6; }
14577 if test `eval echo '${'$as_ac_var'}'` = yes; then
14578 cat >>confdefs.h <<_ACEOF
14579 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14580 _ACEOF
14581
14582 fi
14583 done
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
14594 do
14595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601 cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h. */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14609 #define $ac_func innocuous_$ac_func
14610
14611 /* System header to define __stub macros and hopefully few prototypes,
14612 which can conflict with char $ac_func (); below.
14613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14614 <limits.h> exists even on freestanding compilers. */
14615
14616 #ifdef __STDC__
14617 # include <limits.h>
14618 #else
14619 # include <assert.h>
14620 #endif
14621
14622 #undef $ac_func
14623
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char $ac_func ();
14631 /* The GNU C library defines this for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined __stub_$ac_func || defined __stub___$ac_func
14635 choke me
14636 #endif
14637
14638 int
14639 main ()
14640 {
14641 return $ac_func ();
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_link") 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest$ac_exeext'
14671 { (case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_try") 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 eval "$as_ac_var=yes"
14681 else
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 eval "$as_ac_var=no"
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14690 fi
14691 ac_res=`eval echo '${'$as_ac_var'}'`
14692 { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14694 if test `eval echo '${'$as_ac_var'}'` = yes; then
14695 cat >>confdefs.h <<_ACEOF
14696 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14697 _ACEOF
14698
14699 else
14700 case " $LIB@&t@OBJS " in
14701 *" $ac_func.$ac_objext "* ) ;;
14702 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14703 ;;
14704 esac
14705
14706 fi
14707 done
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14718 do
14719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14733 #define $ac_func innocuous_$ac_func
14734
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char $ac_func (); below.
14737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14738 <limits.h> exists even on freestanding compilers. */
14739
14740 #ifdef __STDC__
14741 # include <limits.h>
14742 #else
14743 # include <assert.h>
14744 #endif
14745
14746 #undef $ac_func
14747
14748 /* Override any GCC internal prototype to avoid an error.
14749 Use char because int might match the return type of a GCC
14750 builtin and then its argument prototype would still apply. */
14751 #ifdef __cplusplus
14752 extern "C"
14753 #endif
14754 char $ac_func ();
14755 /* The GNU C library defines this for functions which it implements
14756 to always fail with ENOSYS. Some functions are actually named
14757 something starting with __ and the normal name is an alias. */
14758 #if defined __stub_$ac_func || defined __stub___$ac_func
14759 choke me
14760 #endif
14761
14762 int
14763 main ()
14764 {
14765 return $ac_func ();
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest.$ac_objext conftest$ac_exeext
14771 if { (ac_try="$ac_link"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14775 esac
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_link") 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; } &&
14794 { ac_try='test -s conftest$ac_exeext'
14795 { (case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_try") 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 eval "$as_ac_var=yes"
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 eval "$as_ac_var=no"
14810 fi
14811
14812 rm -f core conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14814 fi
14815 ac_res=`eval echo '${'$as_ac_var'}'`
14816 { echo "$as_me:$LINENO: result: $ac_res" >&5
14817 echo "${ECHO_T}$ac_res" >&6; }
14818 if test `eval echo '${'$as_ac_var'}'` = yes; then
14819 cat >>confdefs.h <<_ACEOF
14820 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14821 _ACEOF
14822
14823 else
14824 case " $LIB@&t@OBJS " in
14825 *" $ac_func.$ac_objext "* ) ;;
14826 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14827 ;;
14828 esac
14829
14830 fi
14831 done
14832
14833
14834
14835 for ac_func in fdprintf
14836 do
14837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14851 #define $ac_func innocuous_$ac_func
14852
14853 /* System header to define __stub macros and hopefully few prototypes,
14854 which can conflict with char $ac_func (); below.
14855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14856 <limits.h> exists even on freestanding compilers. */
14857
14858 #ifdef __STDC__
14859 # include <limits.h>
14860 #else
14861 # include <assert.h>
14862 #endif
14863
14864 #undef $ac_func
14865
14866 /* Override any GCC internal prototype to avoid an error.
14867 Use char because int might match the return type of a GCC
14868 builtin and then its argument prototype would still apply. */
14869 #ifdef __cplusplus
14870 extern "C"
14871 #endif
14872 char $ac_func ();
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined __stub_$ac_func || defined __stub___$ac_func
14877 choke me
14878 #endif
14879
14880 int
14881 main ()
14882 {
14883 return $ac_func ();
14884 ;
14885 return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_try") 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 eval "$as_ac_var=yes"
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 eval "$as_ac_var=no"
14928 fi
14929
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 fi
14933 ac_res=`eval echo '${'$as_ac_var'}'`
14934 { echo "$as_me:$LINENO: result: $ac_res" >&5
14935 echo "${ECHO_T}$ac_res" >&6; }
14936 if test `eval echo '${'$as_ac_var'}'` = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14939 _ACEOF
14940
14941 else
14942 case " $LIB@&t@OBJS " in
14943 *" $ac_func.$ac_objext "* ) ;;
14944 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14945 ;;
14946 esac
14947
14948 fi
14949 done
14950
14951
14952
14953 { echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14954 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6; }
14955 if test "${ac_cv_have_decl_confstr+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14965 int
14966 main ()
14967 {
14968 #ifndef confstr
14969 char *p = (char *) confstr;
14970 return !p;
14971 #endif
14972
14973 ;
14974 return 0;
14975 }
14976 _ACEOF
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_compile") 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14992 { (case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14995 esac
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_try") 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_cv_have_decl_confstr=yes
15012 else
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15015
15016 ac_cv_have_decl_confstr=no
15017 fi
15018
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 fi
15021 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
15022 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6; }
15023 if test $ac_cv_have_decl_confstr = yes; then
15024
15025 cat >>confdefs.h <<_ACEOF
15026 @%:@define HAVE_DECL_CONFSTR 1
15027 _ACEOF
15028
15029
15030 else
15031 cat >>confdefs.h <<_ACEOF
15032 @%:@define HAVE_DECL_CONFSTR 0
15033 _ACEOF
15034
15035
15036 fi
15037
15038
15039 { echo "$as_me:$LINENO: checking whether printf is declared" >&5
15040 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6; }
15041 if test "${ac_cv_have_decl_printf+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044 cat >conftest.$ac_ext <<_ACEOF
15045 /* confdefs.h. */
15046 _ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15050 $ac_includes_default
15051 int
15052 main ()
15053 {
15054 #ifndef printf
15055 char *p = (char *) printf;
15056 return !p;
15057 #endif
15058
15059 ;
15060 return 0;
15061 }
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (ac_try="$ac_compile"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_compile") 2>conftest.er1
15071 ac_status=$?
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15078 { (case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_try") 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest.$ac_objext'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_cv_have_decl_printf=yes
15098 else
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_cv_have_decl_printf=no
15103 fi
15104
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106 fi
15107 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
15108 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6; }
15109 if test $ac_cv_have_decl_printf = yes; then
15110
15111 cat >>confdefs.h <<_ACEOF
15112 @%:@define HAVE_DECL_PRINTF 1
15113 _ACEOF
15114
15115
15116 else
15117 cat >>confdefs.h <<_ACEOF
15118 @%:@define HAVE_DECL_PRINTF 0
15119 _ACEOF
15120
15121
15122 fi
15123
15124
15125 { echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
15126 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
15127 if test "${ac_cv_have_decl_sbrk+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 $ac_includes_default
15137 int
15138 main ()
15139 {
15140 #ifndef sbrk
15141 char *p = (char *) sbrk;
15142 return !p;
15143 #endif
15144
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_compile") 2>conftest.er1
15157 ac_status=$?
15158 grep -v '^ *+' conftest.er1 >conftest.err
15159 rm -f conftest.er1
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15164 { (case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15167 esac
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_try") 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177 esac
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_have_decl_sbrk=yes
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188 ac_cv_have_decl_sbrk=no
15189 fi
15190
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
15194 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
15195 if test $ac_cv_have_decl_sbrk = yes; then
15196
15197 cat >>confdefs.h <<_ACEOF
15198 @%:@define HAVE_DECL_SBRK 1
15199 _ACEOF
15200
15201
15202 else
15203 cat >>confdefs.h <<_ACEOF
15204 @%:@define HAVE_DECL_SBRK 0
15205 _ACEOF
15206
15207
15208 fi
15209
15210
15211 { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
15212 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
15213 if test "${ac_cv_have_decl_setregid+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15223 int
15224 main ()
15225 {
15226 #ifndef setregid
15227 char *p = (char *) setregid;
15228 return !p;
15229 #endif
15230
15231 ;
15232 return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (ac_try="$ac_compile"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_compile") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_have_decl_setregid=yes
15270 else
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_cv_have_decl_setregid=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 fi
15279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
15280 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
15281 if test $ac_cv_have_decl_setregid = yes; then
15282
15283 cat >>confdefs.h <<_ACEOF
15284 @%:@define HAVE_DECL_SETREGID 1
15285 _ACEOF
15286
15287
15288 else
15289 cat >>confdefs.h <<_ACEOF
15290 @%:@define HAVE_DECL_SETREGID 0
15291 _ACEOF
15292
15293
15294 fi
15295
15296
15297 { echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
15298 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6; }
15299 if test "${ac_cv_have_decl_strcpy+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 int
15310 main ()
15311 {
15312 #ifndef strcpy
15313 char *p = (char *) strcpy;
15314 return !p;
15315 #endif
15316
15317 ;
15318 return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest.$ac_objext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_have_decl_strcpy=yes
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ac_cv_have_decl_strcpy=no
15361 fi
15362
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364 fi
15365 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
15366 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6; }
15367 if test $ac_cv_have_decl_strcpy = yes; then
15368
15369 cat >>confdefs.h <<_ACEOF
15370 @%:@define HAVE_DECL_STRCPY 1
15371 _ACEOF
15372
15373
15374 else
15375 cat >>confdefs.h <<_ACEOF
15376 @%:@define HAVE_DECL_STRCPY 0
15377 _ACEOF
15378
15379
15380 fi
15381
15382
15383 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
15384 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
15385 if test "${ac_cv_have_decl_strsignal+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h. */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 $ac_includes_default
15395 int
15396 main ()
15397 {
15398 #ifndef strsignal
15399 char *p = (char *) strsignal;
15400 return !p;
15401 #endif
15402
15403 ;
15404 return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext
15408 if { (ac_try="$ac_compile"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_compile") 2>conftest.er1
15415 ac_status=$?
15416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_try") 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_cv_have_decl_strsignal=yes
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_cv_have_decl_strsignal=no
15447 fi
15448
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 fi
15451 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
15452 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
15453 if test $ac_cv_have_decl_strsignal = yes; then
15454
15455 cat >>confdefs.h <<_ACEOF
15456 @%:@define HAVE_DECL_STRSIGNAL 1
15457 _ACEOF
15458
15459
15460 else
15461 cat >>confdefs.h <<_ACEOF
15462 @%:@define HAVE_DECL_STRSIGNAL 0
15463 _ACEOF
15464
15465
15466 fi
15467
15468
15469
15470 { echo "$as_me:$LINENO: checking whether strtold is declared" >&5
15471 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6; }
15472 if test "${ac_cv_have_decl_strtold+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h. */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15482 int
15483 main ()
15484 {
15485 #ifndef strtold
15486 char *p = (char *) strtold;
15487 return !p;
15488 #endif
15489
15490 ;
15491 return 0;
15492 }
15493 _ACEOF
15494 rm -f conftest.$ac_objext
15495 if { (ac_try="$ac_compile"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_compile") 2>conftest.er1
15502 ac_status=$?
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest.$ac_objext'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_cv_have_decl_strtold=yes
15529 else
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 ac_cv_have_decl_strtold=no
15534 fi
15535
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 fi
15538 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
15539 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6; }
15540 if test $ac_cv_have_decl_strtold = yes; then
15541
15542 cat >>confdefs.h <<_ACEOF
15543 @%:@define HAVE_DECL_STRTOLD 1
15544 _ACEOF
15545
15546
15547 { echo "$as_me:$LINENO: checking for broken strtold" >&5
15548 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6; }
15549 if test "${bash_cv_strtold_broken+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 #include <stdlib.h>
15559 int
15560 main ()
15561 {
15562 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
15563 ;
15564 return 0;
15565 }
15566 _ACEOF
15567 rm -f conftest.$ac_objext
15568 if { (ac_try="$ac_compile"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572 esac
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_compile") 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } &&
15581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15582 { (case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_try") 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_try") 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 bash_cv_strtold_broken=no
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 bash_cv_strtold_broken=yes
15607 fi
15608
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610
15611
15612 fi
15613
15614 { echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15615 echo "${ECHO_T}$bash_cv_strtold_broken" >&6; }
15616 if test "$bash_cv_strtold_broken" = "yes" ; then
15617 cat >>confdefs.h <<\_ACEOF
15618 @%:@define STRTOLD_BROKEN 1
15619 _ACEOF
15620
15621 fi
15622
15623 else
15624 cat >>confdefs.h <<_ACEOF
15625 @%:@define HAVE_DECL_STRTOLD 0
15626 _ACEOF
15627
15628
15629 fi
15630
15631
15632
15633
15634
15635
15636
15637 { echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15638 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6; }
15639 if test "${bash_cv_decl_strtoimax+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h. */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648
15649 #if STDC_HEADERS
15650 # include <stdlib.h>
15651 #endif
15652 #if HAVE_INTTYPES_H
15653 # include <inttypes.h>
15654 #endif
15655
15656 int
15657 main ()
15658 {
15659 return !strtoimax;
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_link") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest$ac_exeext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 bash_cv_decl_strtoimax=yes
15699 else
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 bash_cv_decl_strtoimax=no
15704 fi
15705
15706 rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 fi
15709 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15710 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6; }
15711 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15712 if test $bash_cv_decl_strtoimax = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714 @%:@define $bash_tr_func 1
15715 _ACEOF
15716
15717 else
15718 cat >>confdefs.h <<_ACEOF
15719 @%:@define $bash_tr_func 0
15720 _ACEOF
15721
15722 fi
15723
15724
15725
15726
15727 { echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15728 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6; }
15729 if test "${bash_cv_decl_strtol+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738
15739 #if STDC_HEADERS
15740 # include <stdlib.h>
15741 #endif
15742 #if HAVE_INTTYPES_H
15743 # include <inttypes.h>
15744 #endif
15745
15746 int
15747 main ()
15748 {
15749 return !strtol;
15750 ;
15751 return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 bash_cv_decl_strtol=yes
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 bash_cv_decl_strtol=no
15794 fi
15795
15796 rm -f core conftest.err conftest.$ac_objext \
15797 conftest$ac_exeext conftest.$ac_ext
15798 fi
15799 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15800 echo "${ECHO_T}$bash_cv_decl_strtol" >&6; }
15801 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15802 if test $bash_cv_decl_strtol = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804 @%:@define $bash_tr_func 1
15805 _ACEOF
15806
15807 else
15808 cat >>confdefs.h <<_ACEOF
15809 @%:@define $bash_tr_func 0
15810 _ACEOF
15811
15812 fi
15813
15814
15815
15816
15817 { echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15818 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6; }
15819 if test "${bash_cv_decl_strtoll+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828
15829 #if STDC_HEADERS
15830 # include <stdlib.h>
15831 #endif
15832 #if HAVE_INTTYPES_H
15833 # include <inttypes.h>
15834 #endif
15835
15836 int
15837 main ()
15838 {
15839 return !strtoll;
15840 ;
15841 return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15859 { (case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862 esac
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_try") 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest$ac_exeext'
15869 { (case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15872 esac
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_try") 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 bash_cv_decl_strtoll=yes
15879 else
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 bash_cv_decl_strtoll=no
15884 fi
15885
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888 fi
15889 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15890 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6; }
15891 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15892 if test $bash_cv_decl_strtoll = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 @%:@define $bash_tr_func 1
15895 _ACEOF
15896
15897 else
15898 cat >>confdefs.h <<_ACEOF
15899 @%:@define $bash_tr_func 0
15900 _ACEOF
15901
15902 fi
15903
15904
15905
15906
15907 { echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15908 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6; }
15909 if test "${bash_cv_decl_strtoul+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918
15919 #if STDC_HEADERS
15920 # include <stdlib.h>
15921 #endif
15922 #if HAVE_INTTYPES_H
15923 # include <inttypes.h>
15924 #endif
15925
15926 int
15927 main ()
15928 {
15929 return !strtoul;
15930 ;
15931 return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_link") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest$ac_exeext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 bash_cv_decl_strtoul=yes
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 bash_cv_decl_strtoul=no
15974 fi
15975
15976 rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15978 fi
15979 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15980 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6; }
15981 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15982 if test $bash_cv_decl_strtoul = yes; then
15983 cat >>confdefs.h <<_ACEOF
15984 @%:@define $bash_tr_func 1
15985 _ACEOF
15986
15987 else
15988 cat >>confdefs.h <<_ACEOF
15989 @%:@define $bash_tr_func 0
15990 _ACEOF
15991
15992 fi
15993
15994
15995
15996
15997 { echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15998 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6; }
15999 if test "${bash_cv_decl_strtoull+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008
16009 #if STDC_HEADERS
16010 # include <stdlib.h>
16011 #endif
16012 #if HAVE_INTTYPES_H
16013 # include <inttypes.h>
16014 #endif
16015
16016 int
16017 main ()
16018 {
16019 return !strtoull;
16020 ;
16021 return 0;
16022 }
16023 _ACEOF
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest$ac_exeext'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 bash_cv_decl_strtoull=yes
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 bash_cv_decl_strtoull=no
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 fi
16069 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
16070 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6; }
16071 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16072 if test $bash_cv_decl_strtoull = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074 @%:@define $bash_tr_func 1
16075 _ACEOF
16076
16077 else
16078 cat >>confdefs.h <<_ACEOF
16079 @%:@define $bash_tr_func 0
16080 _ACEOF
16081
16082 fi
16083
16084
16085
16086
16087 { echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
16088 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6; }
16089 if test "${bash_cv_decl_strtoumax+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098
16099 #if STDC_HEADERS
16100 # include <stdlib.h>
16101 #endif
16102 #if HAVE_INTTYPES_H
16103 # include <inttypes.h>
16104 #endif
16105
16106 int
16107 main ()
16108 {
16109 return !strtoumax;
16110 ;
16111 return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (ac_try="$ac_link"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_link") 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16129 { (case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16132 esac
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_try") 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest$ac_exeext'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142 esac
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 bash_cv_decl_strtoumax=yes
16149 else
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16152
16153 bash_cv_decl_strtoumax=no
16154 fi
16155
16156 rm -f core conftest.err conftest.$ac_objext \
16157 conftest$ac_exeext conftest.$ac_ext
16158 fi
16159 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
16160 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6; }
16161 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16162 if test $bash_cv_decl_strtoumax = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 @%:@define $bash_tr_func 1
16165 _ACEOF
16166
16167 else
16168 cat >>confdefs.h <<_ACEOF
16169 @%:@define $bash_tr_func 0
16170 _ACEOF
16171
16172 fi
16173
16174
16175
16176
16177
16178 for ac_header in stdlib.h sys/time.h unistd.h
16179 do
16180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 fi
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 else
16191 # Is the header compilable?
16192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $ac_includes_default
16201 @%:@include <$ac_header>
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
16205 case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_header_compiler=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_header_compiler=no
16243 fi
16244
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16248
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 @%:@include <$ac_header>
16259 _ACEOF
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null; then
16273 if test -s conftest.err; then
16274 ac_cpp_err=$ac_c_preproc_warn_flag
16275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16276 else
16277 ac_cpp_err=
16278 fi
16279 else
16280 ac_cpp_err=yes
16281 fi
16282 if test -z "$ac_cpp_err"; then
16283 ac_header_preproc=yes
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_header_preproc=no
16289 fi
16290
16291 rm -f conftest.err conftest.$ac_ext
16292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16293 echo "${ECHO_T}$ac_header_preproc" >&6; }
16294
16295 # So? What about this header?
16296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16297 yes:no: )
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16302 ac_header_preproc=yes
16303 ;;
16304 no:yes:* )
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16317 ( cat <<\_ASBOX
16318 @%:@@%:@ ------------------------------- @%:@@%:@
16319 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16320 @%:@@%:@ ------------------------------- @%:@@%:@
16321 _ASBOX
16322 ) | sed "s/^/$as_me: WARNING: /" >&2
16323 ;;
16324 esac
16325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330 eval "$as_ac_Header=\$ac_header_preproc"
16331 fi
16332 ac_res=`eval echo '${'$as_ac_Header'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16335
16336 fi
16337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16340 _ACEOF
16341
16342 fi
16343
16344 done
16345
16346
16347 for ac_func in alarm
16348 do
16349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355 cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h. */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16364
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16369
16370 #ifdef __STDC__
16371 # include <limits.h>
16372 #else
16373 # include <assert.h>
16374 #endif
16375
16376 #undef $ac_func
16377
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16381 #ifdef __cplusplus
16382 extern "C"
16383 #endif
16384 char $ac_func ();
16385 /* The GNU C library defines this for functions which it implements
16386 to always fail with ENOSYS. Some functions are actually named
16387 something starting with __ and the normal name is an alias. */
16388 #if defined __stub_$ac_func || defined __stub___$ac_func
16389 choke me
16390 #endif
16391
16392 int
16393 main ()
16394 {
16395 return $ac_func ();
16396 ;
16397 return 0;
16398 }
16399 _ACEOF
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (ac_try="$ac_link"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_link") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 eval "$as_ac_var=yes"
16435 else
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 eval "$as_ac_var=no"
16440 fi
16441
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 fi
16445 ac_res=`eval echo '${'$as_ac_var'}'`
16446 { echo "$as_me:$LINENO: result: $ac_res" >&5
16447 echo "${ECHO_T}$ac_res" >&6; }
16448 if test `eval echo '${'$as_ac_var'}'` = yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16451 _ACEOF
16452
16453 fi
16454 done
16455
16456 { echo "$as_me:$LINENO: checking for working mktime" >&5
16457 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16458 if test "${ac_cv_func_working_mktime+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461 if test "$cross_compiling" = yes; then
16462 ac_cv_func_working_mktime=no
16463 else
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h. */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 /* Test program from Paul Eggert and Tony Leneis. */
16471 #if TIME_WITH_SYS_TIME
16472 # include <sys/time.h>
16473 # include <time.h>
16474 #else
16475 # if HAVE_SYS_TIME_H
16476 # include <sys/time.h>
16477 # else
16478 # include <time.h>
16479 # endif
16480 #endif
16481
16482 #if HAVE_STDLIB_H
16483 # include <stdlib.h>
16484 #endif
16485
16486 #if HAVE_UNISTD_H
16487 # include <unistd.h>
16488 #endif
16489
16490 #if !HAVE_ALARM
16491 # define alarm(X) /* empty */
16492 #endif
16493
16494 /* Work around redefinition to rpl_putenv by other config tests. */
16495 #undef putenv
16496
16497 static time_t time_t_max;
16498 static time_t time_t_min;
16499
16500 /* Values we'll use to set the TZ environment variable. */
16501 static char *tz_strings[] = {
16502 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16503 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16504 };
16505 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16506
16507 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16508 Based on a problem report from Andreas Jaeger. */
16509 static int
16510 spring_forward_gap ()
16511 {
16512 /* glibc (up to about 1998-10-07) failed this test. */
16513 struct tm tm;
16514
16515 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16516 instead of "TZ=America/Vancouver" in order to detect the bug even
16517 on systems that don't support the Olson extension, or don't have the
16518 full zoneinfo tables installed. */
16519 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16520
16521 tm.tm_year = 98;
16522 tm.tm_mon = 3;
16523 tm.tm_mday = 5;
16524 tm.tm_hour = 2;
16525 tm.tm_min = 0;
16526 tm.tm_sec = 0;
16527 tm.tm_isdst = -1;
16528 return mktime (&tm) != (time_t) -1;
16529 }
16530
16531 static int
16532 mktime_test1 (now)
16533 time_t now;
16534 {
16535 struct tm *lt;
16536 return ! (lt = localtime (&now)) || mktime (lt) == now;
16537 }
16538
16539 static int
16540 mktime_test (now)
16541 time_t now;
16542 {
16543 return (mktime_test1 (now)
16544 && mktime_test1 ((time_t) (time_t_max - now))
16545 && mktime_test1 ((time_t) (time_t_min + now)));
16546 }
16547
16548 static int
16549 irix_6_4_bug ()
16550 {
16551 /* Based on code from Ariel Faigon. */
16552 struct tm tm;
16553 tm.tm_year = 96;
16554 tm.tm_mon = 3;
16555 tm.tm_mday = 0;
16556 tm.tm_hour = 0;
16557 tm.tm_min = 0;
16558 tm.tm_sec = 0;
16559 tm.tm_isdst = -1;
16560 mktime (&tm);
16561 return tm.tm_mon == 2 && tm.tm_mday == 31;
16562 }
16563
16564 static int
16565 bigtime_test (j)
16566 int j;
16567 {
16568 struct tm tm;
16569 time_t now;
16570 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16571 now = mktime (&tm);
16572 if (now != (time_t) -1)
16573 {
16574 struct tm *lt = localtime (&now);
16575 if (! (lt
16576 && lt->tm_year == tm.tm_year
16577 && lt->tm_mon == tm.tm_mon
16578 && lt->tm_mday == tm.tm_mday
16579 && lt->tm_hour == tm.tm_hour
16580 && lt->tm_min == tm.tm_min
16581 && lt->tm_sec == tm.tm_sec
16582 && lt->tm_yday == tm.tm_yday
16583 && lt->tm_wday == tm.tm_wday
16584 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16585 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16586 return 0;
16587 }
16588 return 1;
16589 }
16590
16591 int
16592 main ()
16593 {
16594 time_t t, delta;
16595 int i, j;
16596
16597 /* This test makes some buggy mktime implementations loop.
16598 Give up after 60 seconds; a mktime slower than that
16599 isn't worth using anyway. */
16600 alarm (60);
16601
16602 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16603 continue;
16604 time_t_max--;
16605 if ((time_t) -1 < 0)
16606 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16607 continue;
16608 delta = time_t_max / 997; /* a suitable prime number */
16609 for (i = 0; i < N_STRINGS; i++)
16610 {
16611 if (tz_strings[i])
16612 putenv (tz_strings[i]);
16613
16614 for (t = 0; t <= time_t_max - delta; t += delta)
16615 if (! mktime_test (t))
16616 return 1;
16617 if (! (mktime_test ((time_t) 1)
16618 && mktime_test ((time_t) (60 * 60))
16619 && mktime_test ((time_t) (60 * 60 * 24))))
16620 return 1;
16621
16622 for (j = 1; 0 < j; j *= 2)
16623 if (! bigtime_test (j))
16624 return 1;
16625 if (! bigtime_test (j - 1))
16626 return 1;
16627 }
16628 return ! (irix_6_4_bug () && spring_forward_gap ());
16629 }
16630 _ACEOF
16631 rm -f conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_func_working_mktime=yes
16652 else
16653 echo "$as_me: program exited with status $ac_status" >&5
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657 ( exit $ac_status )
16658 ac_cv_func_working_mktime=no
16659 fi
16660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16661 fi
16662
16663
16664 fi
16665 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16666 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16667 if test $ac_cv_func_working_mktime = no; then
16668 case " $LIB@&t@OBJS " in
16669 *" mktime.$ac_objext "* ) ;;
16670 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext"
16671 ;;
16672 esac
16673
16674 fi
16675
16676
16677
16678
16679
16680
16681
16682
16683 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16684 do
16685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 fi
16692 ac_res=`eval echo '${'$as_ac_Header'}'`
16693 { echo "$as_me:$LINENO: result: $ac_res" >&5
16694 echo "${ECHO_T}$ac_res" >&6; }
16695 else
16696 # Is the header compilable?
16697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 $ac_includes_default
16706 @%:@include <$ac_header>
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_compile") 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest.$ac_objext'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_header_compiler=yes
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 ac_header_compiler=no
16748 fi
16749
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16752 echo "${ECHO_T}$ac_header_compiler" >&6; }
16753
16754 # Is the header present?
16755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h. */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 @%:@include <$ac_header>
16764 _ACEOF
16765 if { (ac_try="$ac_cpp conftest.$ac_ext"
16766 case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16772 ac_status=$?
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } >/dev/null; then
16778 if test -s conftest.err; then
16779 ac_cpp_err=$ac_c_preproc_warn_flag
16780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16781 else
16782 ac_cpp_err=
16783 fi
16784 else
16785 ac_cpp_err=yes
16786 fi
16787 if test -z "$ac_cpp_err"; then
16788 ac_header_preproc=yes
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 ac_header_preproc=no
16794 fi
16795
16796 rm -f conftest.err conftest.$ac_ext
16797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16798 echo "${ECHO_T}$ac_header_preproc" >&6; }
16799
16800 # So? What about this header?
16801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16802 yes:no: )
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16807 ac_header_preproc=yes
16808 ;;
16809 no:yes:* )
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16822 ( cat <<\_ASBOX
16823 @%:@@%:@ ------------------------------- @%:@@%:@
16824 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16825 @%:@@%:@ ------------------------------- @%:@@%:@
16826 _ASBOX
16827 ) | sed "s/^/$as_me: WARNING: /" >&2
16828 ;;
16829 esac
16830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835 eval "$as_ac_Header=\$ac_header_preproc"
16836 fi
16837 ac_res=`eval echo '${'$as_ac_Header'}'`
16838 { echo "$as_me:$LINENO: result: $ac_res" >&5
16839 echo "${ECHO_T}$ac_res" >&6; }
16840
16841 fi
16842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16845 _ACEOF
16846
16847 fi
16848
16849 done
16850
16851
16852
16853
16854 for ac_header in stdlib.h unistd.h
16855 do
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 fi
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 else
16867 # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16877 @%:@include <$ac_header>
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16914 else
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 ac_header_compiler=no
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16924
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 @%:@include <$ac_header>
16935 _ACEOF
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16952 else
16953 ac_cpp_err=
16954 fi
16955 else
16956 ac_cpp_err=yes
16957 fi
16958 if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_header_preproc=no
16965 fi
16966
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16970
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16973 yes:no: )
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
16979 ;;
16980 no:yes:* )
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16993 ( cat <<\_ASBOX
16994 @%:@@%:@ ------------------------------- @%:@@%:@
16995 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16996 @%:@@%:@ ------------------------------- @%:@@%:@
16997 _ASBOX
16998 ) | sed "s/^/$as_me: WARNING: /" >&2
16999 ;;
17000 esac
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 eval "$as_ac_Header=\$ac_header_preproc"
17007 fi
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011
17012 fi
17013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17014 cat >>confdefs.h <<_ACEOF
17015 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016 _ACEOF
17017
17018 fi
17019
17020 done
17021
17022
17023 for ac_func in getpagesize
17024 do
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039 #define $ac_func innocuous_$ac_func
17040
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17045
17046 #ifdef __STDC__
17047 # include <limits.h>
17048 #else
17049 # include <assert.h>
17050 #endif
17051
17052 #undef $ac_func
17053
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char $ac_func ();
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17065 choke me
17066 #endif
17067
17068 int
17069 main ()
17070 {
17071 return $ac_func ();
17072 ;
17073 return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 eval "$as_ac_var=yes"
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 eval "$as_ac_var=no"
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17127 _ACEOF
17128
17129 fi
17130 done
17131
17132 { echo "$as_me:$LINENO: checking for working mmap" >&5
17133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137 if test "$cross_compiling" = yes; then
17138 ac_cv_func_mmap_fixed_mapped=no
17139 else
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 $ac_includes_default
17147 /* malloc might have been renamed as rpl_malloc. */
17148 #undef malloc
17149
17150 /* Thanks to Mike Haertel and Jim Avera for this test.
17151 Here is a matrix of mmap possibilities:
17152 mmap private not fixed
17153 mmap private fixed at somewhere currently unmapped
17154 mmap private fixed at somewhere already mapped
17155 mmap shared not fixed
17156 mmap shared fixed at somewhere currently unmapped
17157 mmap shared fixed at somewhere already mapped
17158 For private mappings, we should verify that changes cannot be read()
17159 back from the file, nor mmap's back from the file at a different
17160 address. (There have been systems where private was not correctly
17161 implemented like the infamous i386 svr4.0, and systems where the
17162 VM page cache was not coherent with the file system buffer cache
17163 like early versions of FreeBSD and possibly contemporary NetBSD.)
17164 For shared mappings, we should conversely verify that changes get
17165 propagated back to all the places they're supposed to be.
17166
17167 Grep wants private fixed already mapped.
17168 The main things grep needs to know about mmap are:
17169 * does it exist and is it safe to write into the mmap'd area
17170 * how to use it (BSD variants) */
17171
17172 #include <fcntl.h>
17173 #include <sys/mman.h>
17174
17175 #if !STDC_HEADERS && !HAVE_STDLIB_H
17176 char *malloc ();
17177 #endif
17178
17179 /* This mess was copied from the GNU getpagesize.h. */
17180 #if !HAVE_GETPAGESIZE
17181 /* Assume that all systems that can run configure have sys/param.h. */
17182 # if !HAVE_SYS_PARAM_H
17183 # define HAVE_SYS_PARAM_H 1
17184 # endif
17185
17186 # ifdef _SC_PAGESIZE
17187 # define getpagesize() sysconf(_SC_PAGESIZE)
17188 # else /* no _SC_PAGESIZE */
17189 # if HAVE_SYS_PARAM_H
17190 # include <sys/param.h>
17191 # ifdef EXEC_PAGESIZE
17192 # define getpagesize() EXEC_PAGESIZE
17193 # else /* no EXEC_PAGESIZE */
17194 # ifdef NBPG
17195 # define getpagesize() NBPG * CLSIZE
17196 # ifndef CLSIZE
17197 # define CLSIZE 1
17198 # endif /* no CLSIZE */
17199 # else /* no NBPG */
17200 # ifdef NBPC
17201 # define getpagesize() NBPC
17202 # else /* no NBPC */
17203 # ifdef PAGESIZE
17204 # define getpagesize() PAGESIZE
17205 # endif /* PAGESIZE */
17206 # endif /* no NBPC */
17207 # endif /* no NBPG */
17208 # endif /* no EXEC_PAGESIZE */
17209 # else /* no HAVE_SYS_PARAM_H */
17210 # define getpagesize() 8192 /* punt totally */
17211 # endif /* no HAVE_SYS_PARAM_H */
17212 # endif /* no _SC_PAGESIZE */
17213
17214 #endif /* no HAVE_GETPAGESIZE */
17215
17216 int
17217 main ()
17218 {
17219 char *data, *data2, *data3;
17220 int i, pagesize;
17221 int fd;
17222
17223 pagesize = getpagesize ();
17224
17225 /* First, make a file with some known garbage in it. */
17226 data = (char *) malloc (pagesize);
17227 if (!data)
17228 return 1;
17229 for (i = 0; i < pagesize; ++i)
17230 *(data + i) = rand ();
17231 umask (0);
17232 fd = creat ("conftest.mmap", 0600);
17233 if (fd < 0)
17234 return 1;
17235 if (write (fd, data, pagesize) != pagesize)
17236 return 1;
17237 close (fd);
17238
17239 /* Next, try to mmap the file at a fixed address which already has
17240 something else allocated at it. If we can, also make sure that
17241 we see the same garbage. */
17242 fd = open ("conftest.mmap", O_RDWR);
17243 if (fd < 0)
17244 return 1;
17245 data2 = (char *) malloc (2 * pagesize);
17246 if (!data2)
17247 return 1;
17248 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17251 return 1;
17252 for (i = 0; i < pagesize; ++i)
17253 if (*(data + i) != *(data2 + i))
17254 return 1;
17255
17256 /* Finally, make sure that changes to the mapped area do not
17257 percolate back to the file as seen by read(). (This is a bug on
17258 some variants of i386 svr4.0.) */
17259 for (i = 0; i < pagesize; ++i)
17260 *(data2 + i) = *(data2 + i) + 1;
17261 data3 = (char *) malloc (pagesize);
17262 if (!data3)
17263 return 1;
17264 if (read (fd, data3, pagesize) != pagesize)
17265 return 1;
17266 for (i = 0; i < pagesize; ++i)
17267 if (*(data + i) != *(data3 + i))
17268 return 1;
17269 close (fd);
17270 return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest$ac_exeext
17274 if { (ac_try="$ac_link"
17275 case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_link") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_func_mmap_fixed_mapped=yes
17294 else
17295 echo "$as_me: program exited with status $ac_status" >&5
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17298
17299 ( exit $ac_status )
17300 ac_cv_func_mmap_fixed_mapped=no
17301 fi
17302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17303 fi
17304
17305
17306 fi
17307 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17308 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17310
17311 cat >>confdefs.h <<\_ACEOF
17312 @%:@define HAVE_MMAP 1
17313 _ACEOF
17314
17315 fi
17316 rm -f conftest.mmap
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
17328 munmap stpcpy strcspn strdup
17329 do
17330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336 cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h. */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17344 #define $ac_func innocuous_$ac_func
17345
17346 /* System header to define __stub macros and hopefully few prototypes,
17347 which can conflict with char $ac_func (); below.
17348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17349 <limits.h> exists even on freestanding compilers. */
17350
17351 #ifdef __STDC__
17352 # include <limits.h>
17353 #else
17354 # include <assert.h>
17355 #endif
17356
17357 #undef $ac_func
17358
17359 /* Override any GCC internal prototype to avoid an error.
17360 Use char because int might match the return type of a GCC
17361 builtin and then its argument prototype would still apply. */
17362 #ifdef __cplusplus
17363 extern "C"
17364 #endif
17365 char $ac_func ();
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined __stub_$ac_func || defined __stub___$ac_func
17370 choke me
17371 #endif
17372
17373 int
17374 main ()
17375 {
17376 return $ac_func ();
17377 ;
17378 return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 eval "$as_ac_var=yes"
17416 else
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 eval "$as_ac_var=no"
17421 fi
17422
17423 rm -f core conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17425 fi
17426 ac_res=`eval echo '${'$as_ac_var'}'`
17427 { echo "$as_me:$LINENO: result: $ac_res" >&5
17428 echo "${ECHO_T}$ac_res" >&6; }
17429 if test `eval echo '${'$as_ac_var'}'` = yes; then
17430 cat >>confdefs.h <<_ACEOF
17431 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17432 _ACEOF
17433
17434 fi
17435 done
17436
17437
17438 INTL_DEP= INTL_INC= LIBINTL_H=
17439 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
17440 INTL_DEP='${INTL_LIBDIR}/libintl.a'
17441 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
17442 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
17443 fi
17444
17445
17446
17447
17448
17449
17450
17451 for ac_header in wctype.h
17452 do
17453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 fi
17460 ac_res=`eval echo '${'$as_ac_Header'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 else
17464 # Is the header compilable?
17465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 @%:@include <$ac_header>
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_header_compiler=yes
17511 else
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ac_header_compiler=no
17516 fi
17517
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17520 echo "${ECHO_T}$ac_header_compiler" >&6; }
17521
17522 # Is the header present?
17523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 @%:@include <$ac_header>
17532 _ACEOF
17533 if { (ac_try="$ac_cpp conftest.$ac_ext"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } >/dev/null; then
17546 if test -s conftest.err; then
17547 ac_cpp_err=$ac_c_preproc_warn_flag
17548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17549 else
17550 ac_cpp_err=
17551 fi
17552 else
17553 ac_cpp_err=yes
17554 fi
17555 if test -z "$ac_cpp_err"; then
17556 ac_header_preproc=yes
17557 else
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 ac_header_preproc=no
17562 fi
17563
17564 rm -f conftest.err conftest.$ac_ext
17565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17566 echo "${ECHO_T}$ac_header_preproc" >&6; }
17567
17568 # So? What about this header?
17569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17570 yes:no: )
17571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17575 ac_header_preproc=yes
17576 ;;
17577 no:yes:* )
17578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17590 ( cat <<\_ASBOX
17591 @%:@@%:@ ------------------------------- @%:@@%:@
17592 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17593 @%:@@%:@ ------------------------------- @%:@@%:@
17594 _ASBOX
17595 ) | sed "s/^/$as_me: WARNING: /" >&2
17596 ;;
17597 esac
17598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603 eval "$as_ac_Header=\$ac_header_preproc"
17604 fi
17605 ac_res=`eval echo '${'$as_ac_Header'}'`
17606 { echo "$as_me:$LINENO: result: $ac_res" >&5
17607 echo "${ECHO_T}$ac_res" >&6; }
17608
17609 fi
17610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17611 cat >>confdefs.h <<_ACEOF
17612 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17613 _ACEOF
17614
17615 fi
17616
17617 done
17618
17619
17620 for ac_header in wchar.h
17621 do
17622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 fi
17629 ac_res=`eval echo '${'$as_ac_Header'}'`
17630 { echo "$as_me:$LINENO: result: $ac_res" >&5
17631 echo "${ECHO_T}$ac_res" >&6; }
17632 else
17633 # Is the header compilable?
17634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 @%:@include <$ac_header>
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_header_compiler=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_header_compiler=no
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17689 echo "${ECHO_T}$ac_header_compiler" >&6; }
17690
17691 # Is the header present?
17692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h. */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 @%:@include <$ac_header>
17701 _ACEOF
17702 if { (ac_try="$ac_cpp conftest.$ac_ext"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } >/dev/null; then
17715 if test -s conftest.err; then
17716 ac_cpp_err=$ac_c_preproc_warn_flag
17717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17718 else
17719 ac_cpp_err=
17720 fi
17721 else
17722 ac_cpp_err=yes
17723 fi
17724 if test -z "$ac_cpp_err"; then
17725 ac_header_preproc=yes
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_header_preproc=no
17731 fi
17732
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17736
17737 # So? What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17739 yes:no: )
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744 ac_header_preproc=yes
17745 ;;
17746 no:yes:* )
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17759 ( cat <<\_ASBOX
17760 @%:@@%:@ ------------------------------- @%:@@%:@
17761 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17762 @%:@@%:@ ------------------------------- @%:@@%:@
17763 _ASBOX
17764 ) | sed "s/^/$as_me: WARNING: /" >&2
17765 ;;
17766 esac
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772 eval "$as_ac_Header=\$ac_header_preproc"
17773 fi
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777
17778 fi
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785
17786 done
17787
17788
17789 for ac_header in langinfo.h
17790 do
17791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 fi
17798 ac_res=`eval echo '${'$as_ac_Header'}'`
17799 { echo "$as_me:$LINENO: result: $ac_res" >&5
17800 echo "${ECHO_T}$ac_res" >&6; }
17801 else
17802 # Is the header compilable?
17803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 @%:@include <$ac_header>
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_header_compiler=yes
17849 else
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 ac_header_compiler=no
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17858 echo "${ECHO_T}$ac_header_compiler" >&6; }
17859
17860 # Is the header present?
17861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17863 cat >conftest.$ac_ext <<_ACEOF
17864 /* confdefs.h. */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 @%:@include <$ac_header>
17870 _ACEOF
17871 if { (ac_try="$ac_cpp conftest.$ac_ext"
17872 case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17875 esac
17876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } >/dev/null; then
17884 if test -s conftest.err; then
17885 ac_cpp_err=$ac_c_preproc_warn_flag
17886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17887 else
17888 ac_cpp_err=
17889 fi
17890 else
17891 ac_cpp_err=yes
17892 fi
17893 if test -z "$ac_cpp_err"; then
17894 ac_header_preproc=yes
17895 else
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 ac_header_preproc=no
17900 fi
17901
17902 rm -f conftest.err conftest.$ac_ext
17903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17904 echo "${ECHO_T}$ac_header_preproc" >&6; }
17905
17906 # So? What about this header?
17907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17908 yes:no: )
17909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17913 ac_header_preproc=yes
17914 ;;
17915 no:yes:* )
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17928 ( cat <<\_ASBOX
17929 @%:@@%:@ ------------------------------- @%:@@%:@
17930 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17931 @%:@@%:@ ------------------------------- @%:@@%:@
17932 _ASBOX
17933 ) | sed "s/^/$as_me: WARNING: /" >&2
17934 ;;
17935 esac
17936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 eval "$as_ac_Header=\$ac_header_preproc"
17942 fi
17943 ac_res=`eval echo '${'$as_ac_Header'}'`
17944 { echo "$as_me:$LINENO: result: $ac_res" >&5
17945 echo "${ECHO_T}$ac_res" >&6; }
17946
17947 fi
17948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17949 cat >>confdefs.h <<_ACEOF
17950 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17951 _ACEOF
17952
17953 fi
17954
17955 done
17956
17957
17958 { echo "$as_me:$LINENO: checking for mbrlen" >&5
17959 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6; }
17960 if test "${ac_cv_func_mbrlen+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h. */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define mbrlen innocuous_mbrlen
17972
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char mbrlen (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17977
17978 #ifdef __STDC__
17979 # include <limits.h>
17980 #else
17981 # include <assert.h>
17982 #endif
17983
17984 #undef mbrlen
17985
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17989 #ifdef __cplusplus
17990 extern "C"
17991 #endif
17992 char mbrlen ();
17993 /* The GNU C library defines this for functions which it implements
17994 to always fail with ENOSYS. Some functions are actually named
17995 something starting with __ and the normal name is an alias. */
17996 #if defined __stub_mbrlen || defined __stub___mbrlen
17997 choke me
17998 #endif
17999
18000 int
18001 main ()
18002 {
18003 return mbrlen ();
18004 ;
18005 return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest$ac_exeext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 ac_cv_func_mbrlen=yes
18043 else
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 ac_cv_func_mbrlen=no
18048 fi
18049
18050 rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18052 fi
18053 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
18054 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6; }
18055 if test $ac_cv_func_mbrlen = yes; then
18056 cat >>confdefs.h <<\_ACEOF
18057 @%:@define HAVE_MBRLEN 1
18058 _ACEOF
18059
18060 fi
18061
18062 { echo "$as_me:$LINENO: checking for mbscmp" >&5
18063 echo $ECHO_N "checking for mbscmp... $ECHO_C" >&6; }
18064 if test "${ac_cv_func_mbscmp+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
18074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18075 #define mbscmp innocuous_mbscmp
18076
18077 /* System header to define __stub macros and hopefully few prototypes,
18078 which can conflict with char mbscmp (); below.
18079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18080 <limits.h> exists even on freestanding compilers. */
18081
18082 #ifdef __STDC__
18083 # include <limits.h>
18084 #else
18085 # include <assert.h>
18086 #endif
18087
18088 #undef mbscmp
18089
18090 /* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18093 #ifdef __cplusplus
18094 extern "C"
18095 #endif
18096 char mbscmp ();
18097 /* The GNU C library defines this for functions which it implements
18098 to always fail with ENOSYS. Some functions are actually named
18099 something starting with __ and the normal name is an alias. */
18100 #if defined __stub_mbscmp || defined __stub___mbscmp
18101 choke me
18102 #endif
18103
18104 int
18105 main ()
18106 {
18107 return mbscmp ();
18108 ;
18109 return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_link") 2>conftest.er1
18120 ac_status=$?
18121 grep -v '^ *+' conftest.er1 >conftest.err
18122 rm -f conftest.er1
18123 cat conftest.err >&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } &&
18126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest$ac_exeext'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_func_mbscmp=yes
18147 else
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18150
18151 ac_cv_func_mbscmp=no
18152 fi
18153
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18156 fi
18157 { echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
18158 echo "${ECHO_T}$ac_cv_func_mbscmp" >&6; }
18159 if test $ac_cv_func_mbscmp = yes; then
18160 cat >>confdefs.h <<\_ACEOF
18161 @%:@define HAVE_MBSCMP 1
18162 _ACEOF
18163
18164 fi
18165
18166 { echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
18167 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6; }
18168 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h. */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
18178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18179 #define mbsrtowcs innocuous_mbsrtowcs
18180
18181 /* System header to define __stub macros and hopefully few prototypes,
18182 which can conflict with char mbsrtowcs (); below.
18183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18184 <limits.h> exists even on freestanding compilers. */
18185
18186 #ifdef __STDC__
18187 # include <limits.h>
18188 #else
18189 # include <assert.h>
18190 #endif
18191
18192 #undef mbsrtowcs
18193
18194 /* Override any GCC internal prototype to avoid an error.
18195 Use char because int might match the return type of a GCC
18196 builtin and then its argument prototype would still apply. */
18197 #ifdef __cplusplus
18198 extern "C"
18199 #endif
18200 char mbsrtowcs ();
18201 /* The GNU C library defines this for functions which it implements
18202 to always fail with ENOSYS. Some functions are actually named
18203 something starting with __ and the normal name is an alias. */
18204 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
18205 choke me
18206 #endif
18207
18208 int
18209 main ()
18210 {
18211 return mbsrtowcs ();
18212 ;
18213 return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_link") 2>conftest.er1
18224 ac_status=$?
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_cv_func_mbsrtowcs=yes
18251 else
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 ac_cv_func_mbsrtowcs=no
18256 fi
18257
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18260 fi
18261 { echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
18262 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6; }
18263 if test $ac_cv_func_mbsrtowcs = yes; then
18264 cat >>confdefs.h <<\_ACEOF
18265 @%:@define HAVE_MBSRTOWCS 1
18266 _ACEOF
18267
18268 fi
18269
18270
18271 { echo "$as_me:$LINENO: checking for wcrtomb" >&5
18272 echo $ECHO_N "checking for wcrtomb... $ECHO_C" >&6; }
18273 if test "${ac_cv_func_wcrtomb+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276 cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h. */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
18283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18284 #define wcrtomb innocuous_wcrtomb
18285
18286 /* System header to define __stub macros and hopefully few prototypes,
18287 which can conflict with char wcrtomb (); below.
18288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18289 <limits.h> exists even on freestanding compilers. */
18290
18291 #ifdef __STDC__
18292 # include <limits.h>
18293 #else
18294 # include <assert.h>
18295 #endif
18296
18297 #undef wcrtomb
18298
18299 /* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18302 #ifdef __cplusplus
18303 extern "C"
18304 #endif
18305 char wcrtomb ();
18306 /* The GNU C library defines this for functions which it implements
18307 to always fail with ENOSYS. Some functions are actually named
18308 something starting with __ and the normal name is an alias. */
18309 #if defined __stub_wcrtomb || defined __stub___wcrtomb
18310 choke me
18311 #endif
18312
18313 int
18314 main ()
18315 {
18316 return wcrtomb ();
18317 ;
18318 return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_link") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_func_wcrtomb=yes
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 ac_cv_func_wcrtomb=no
18361 fi
18362
18363 rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18365 fi
18366 { echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
18367 echo "${ECHO_T}$ac_cv_func_wcrtomb" >&6; }
18368 if test $ac_cv_func_wcrtomb = yes; then
18369 cat >>confdefs.h <<\_ACEOF
18370 @%:@define HAVE_WCRTOMB 1
18371 _ACEOF
18372
18373 fi
18374
18375 { echo "$as_me:$LINENO: checking for wcscoll" >&5
18376 echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6; }
18377 if test "${ac_cv_func_wcscoll+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388 #define wcscoll innocuous_wcscoll
18389
18390 /* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char wcscoll (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18394
18395 #ifdef __STDC__
18396 # include <limits.h>
18397 #else
18398 # include <assert.h>
18399 #endif
18400
18401 #undef wcscoll
18402
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18406 #ifdef __cplusplus
18407 extern "C"
18408 #endif
18409 char wcscoll ();
18410 /* The GNU C library defines this for functions which it implements
18411 to always fail with ENOSYS. Some functions are actually named
18412 something starting with __ and the normal name is an alias. */
18413 #if defined __stub_wcscoll || defined __stub___wcscoll
18414 choke me
18415 #endif
18416
18417 int
18418 main ()
18419 {
18420 return wcscoll ();
18421 ;
18422 return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (ac_try="$ac_link"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_func_wcscoll=yes
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_cv_func_wcscoll=no
18465 fi
18466
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 fi
18470 { echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
18471 echo "${ECHO_T}$ac_cv_func_wcscoll" >&6; }
18472 if test $ac_cv_func_wcscoll = yes; then
18473 cat >>confdefs.h <<\_ACEOF
18474 @%:@define HAVE_WCSCOLL 1
18475 _ACEOF
18476
18477 fi
18478
18479 { echo "$as_me:$LINENO: checking for wcsdup" >&5
18480 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6; }
18481 if test "${ac_cv_func_wcsdup+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484 cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h. */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18490 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
18491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18492 #define wcsdup innocuous_wcsdup
18493
18494 /* System header to define __stub macros and hopefully few prototypes,
18495 which can conflict with char wcsdup (); below.
18496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 <limits.h> exists even on freestanding compilers. */
18498
18499 #ifdef __STDC__
18500 # include <limits.h>
18501 #else
18502 # include <assert.h>
18503 #endif
18504
18505 #undef wcsdup
18506
18507 /* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18510 #ifdef __cplusplus
18511 extern "C"
18512 #endif
18513 char wcsdup ();
18514 /* The GNU C library defines this for functions which it implements
18515 to always fail with ENOSYS. Some functions are actually named
18516 something starting with __ and the normal name is an alias. */
18517 #if defined __stub_wcsdup || defined __stub___wcsdup
18518 choke me
18519 #endif
18520
18521 int
18522 main ()
18523 {
18524 return wcsdup ();
18525 ;
18526 return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (ac_try="$ac_link"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_link") 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest$ac_exeext'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_func_wcsdup=yes
18564 else
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 ac_cv_func_wcsdup=no
18569 fi
18570
18571 rm -f core conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18573 fi
18574 { echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18575 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6; }
18576 if test $ac_cv_func_wcsdup = yes; then
18577 cat >>confdefs.h <<\_ACEOF
18578 @%:@define HAVE_WCSDUP 1
18579 _ACEOF
18580
18581 fi
18582
18583 { echo "$as_me:$LINENO: checking for wcwidth" >&5
18584 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6; }
18585 if test "${ac_cv_func_wcwidth+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h. */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596 #define wcwidth innocuous_wcwidth
18597
18598 /* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char wcwidth (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18602
18603 #ifdef __STDC__
18604 # include <limits.h>
18605 #else
18606 # include <assert.h>
18607 #endif
18608
18609 #undef wcwidth
18610
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char wcwidth ();
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined __stub_wcwidth || defined __stub___wcwidth
18622 choke me
18623 #endif
18624
18625 int
18626 main ()
18627 {
18628 return wcwidth ();
18629 ;
18630 return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_func_wcwidth=yes
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672 ac_cv_func_wcwidth=no
18673 fi
18674
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677 fi
18678 { echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18679 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6; }
18680 if test $ac_cv_func_wcwidth = yes; then
18681 cat >>confdefs.h <<\_ACEOF
18682 @%:@define HAVE_WCWIDTH 1
18683 _ACEOF
18684
18685 fi
18686
18687 { echo "$as_me:$LINENO: checking for wctype" >&5
18688 echo $ECHO_N "checking for wctype... $ECHO_C" >&6; }
18689 if test "${ac_cv_func_wctype+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define wctype innocuous_wctype
18701
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char wctype (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18706
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18712
18713 #undef wctype
18714
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char wctype ();
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_wctype || defined __stub___wctype
18726 choke me
18727 #endif
18728
18729 int
18730 main ()
18731 {
18732 return wctype ();
18733 ;
18734 return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_func_wctype=yes
18772 else
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_func_wctype=no
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 fi
18782 { echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18783 echo "${ECHO_T}$ac_cv_func_wctype" >&6; }
18784 if test $ac_cv_func_wctype = yes; then
18785 cat >>confdefs.h <<\_ACEOF
18786 @%:@define HAVE_WCTYPE 1
18787 _ACEOF
18788
18789 fi
18790
18791
18792
18793 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18794 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
18795 if test "${ac_cv_func_mbrtowc+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 @%:@include <wchar.h>
18805 int
18806 main ()
18807 {
18808 wchar_t wc;
18809 char const s[] = "";
18810 size_t n = 1;
18811 mbstate_t state;
18812 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18813 ;
18814 return 0;
18815 }
18816 _ACEOF
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18822 esac
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_func_mbrtowc=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_cv_func_mbrtowc=no
18857 fi
18858
18859 rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861 fi
18862 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18863 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
18864 if test $ac_cv_func_mbrtowc = yes; then
18865
18866 cat >>confdefs.h <<\_ACEOF
18867 @%:@define HAVE_MBRTOWC 1
18868 _ACEOF
18869
18870 fi
18871
18872 if test $ac_cv_func_mbrtowc = yes; then
18873 cat >>confdefs.h <<\_ACEOF
18874 @%:@define HAVE_MBSTATE_T 1
18875 _ACEOF
18876
18877 fi
18878
18879
18880
18881
18882
18883
18884 for ac_func in iswlower iswupper towlower towupper iswctype
18885 do
18886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18900 #define $ac_func innocuous_$ac_func
18901
18902 /* System header to define __stub macros and hopefully few prototypes,
18903 which can conflict with char $ac_func (); below.
18904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18905 <limits.h> exists even on freestanding compilers. */
18906
18907 #ifdef __STDC__
18908 # include <limits.h>
18909 #else
18910 # include <assert.h>
18911 #endif
18912
18913 #undef $ac_func
18914
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18918 #ifdef __cplusplus
18919 extern "C"
18920 #endif
18921 char $ac_func ();
18922 /* The GNU C library defines this for functions which it implements
18923 to always fail with ENOSYS. Some functions are actually named
18924 something starting with __ and the normal name is an alias. */
18925 #if defined __stub_$ac_func || defined __stub___$ac_func
18926 choke me
18927 #endif
18928
18929 int
18930 main ()
18931 {
18932 return $ac_func ();
18933 ;
18934 return 0;
18935 }
18936 _ACEOF
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 eval "$as_ac_var=yes"
18972 else
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 eval "$as_ac_var=no"
18977 fi
18978
18979 rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18981 fi
18982 ac_res=`eval echo '${'$as_ac_var'}'`
18983 { echo "$as_me:$LINENO: result: $ac_res" >&5
18984 echo "${ECHO_T}$ac_res" >&6; }
18985 if test `eval echo '${'$as_ac_var'}'` = yes; then
18986 cat >>confdefs.h <<_ACEOF
18987 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18988 _ACEOF
18989
18990 fi
18991 done
18992
18993
18994 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18995 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
18996 if test "${bash_cv_langinfo_codeset+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h. */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 #include <langinfo.h>
19006 int
19007 main ()
19008 {
19009 char* cs = nl_langinfo(CODESET);
19010 ;
19011 return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest$ac_exeext'
19039 { (case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_try") 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 bash_cv_langinfo_codeset=yes
19049 else
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053 bash_cv_langinfo_codeset=no
19054 fi
19055
19056 rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
19058 fi
19059 { echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
19060 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6; }
19061 if test $bash_cv_langinfo_codeset = yes; then
19062 cat >>confdefs.h <<\_ACEOF
19063 @%:@define HAVE_LANGINFO_CODESET 1
19064 _ACEOF
19065
19066 fi
19067
19068 { echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
19069 echo $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6; }
19070 if test "${bash_cv_type_wchar_t+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 #include <wchar.h>
19080
19081 int
19082 main ()
19083 {
19084
19085 wchar_t foo;
19086 foo = 0;
19087
19088 ;
19089 return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext
19093 if { (ac_try="$ac_compile"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_compile") 2>conftest.er1
19100 ac_status=$?
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 bash_cv_type_wchar_t=yes
19127 else
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 bash_cv_type_wchar_t=no
19132 fi
19133
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 fi
19136 { echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
19137 echo "${ECHO_T}$bash_cv_type_wchar_t" >&6; }
19138 if test $bash_cv_type_wchar_t = yes; then
19139
19140 cat >>confdefs.h <<\_ACEOF
19141 @%:@define HAVE_WCHAR_T 1
19142 _ACEOF
19143
19144 fi
19145
19146 { echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
19147 echo $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6; }
19148 if test "${bash_cv_type_wctype_t+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <wctype.h>
19158 int
19159 main ()
19160 {
19161
19162 wctype_t foo;
19163 foo = 0;
19164
19165 ;
19166 return 0;
19167 }
19168 _ACEOF
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174 esac
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_compile") 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 bash_cv_type_wctype_t=yes
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 bash_cv_type_wctype_t=no
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212 fi
19213 { echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
19214 echo "${ECHO_T}$bash_cv_type_wctype_t" >&6; }
19215 if test $bash_cv_type_wctype_t = yes; then
19216
19217 cat >>confdefs.h <<\_ACEOF
19218 @%:@define HAVE_WCTYPE_T 1
19219 _ACEOF
19220
19221 fi
19222
19223 { echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
19224 echo $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6; }
19225 if test "${bash_cv_type_wint_t+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h. */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 #include <wctype.h>
19235 int
19236 main ()
19237 {
19238
19239 wint_t foo;
19240 foo = 0;
19241
19242 ;
19243 return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 bash_cv_type_wint_t=yes
19281 else
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 bash_cv_type_wint_t=no
19286 fi
19287
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 fi
19290 { echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
19291 echo "${ECHO_T}$bash_cv_type_wint_t" >&6; }
19292 if test $bash_cv_type_wint_t = yes; then
19293
19294 cat >>confdefs.h <<\_ACEOF
19295 @%:@define HAVE_WINT_T 1
19296 _ACEOF
19297
19298 fi
19299
19300
19301
19302 if test "$opt_static_link" != yes; then
19303
19304 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19305 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 else
19309 ac_check_lib_save_LIBS=$LIBS
19310 LIBS="-ldl $LIBS"
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h. */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char dlopen ();
19325 int
19326 main ()
19327 {
19328 return dlopen ();
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_link") 2>conftest.er1
19341 ac_status=$?
19342 grep -v '^ *+' conftest.er1 >conftest.err
19343 rm -f conftest.er1
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19348 { (case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_try") 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_dl_dlopen=yes
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_lib_dl_dlopen=no
19373 fi
19374
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19378 fi
19379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19381 if test $ac_cv_lib_dl_dlopen = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 @%:@define HAVE_LIBDL 1
19384 _ACEOF
19385
19386 LIBS="-ldl $LIBS"
19387
19388 fi
19389
19390
19391
19392
19393 for ac_func in dlopen dlclose dlsym
19394 do
19395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19409 #define $ac_func innocuous_$ac_func
19410
19411 /* System header to define __stub macros and hopefully few prototypes,
19412 which can conflict with char $ac_func (); below.
19413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19414 <limits.h> exists even on freestanding compilers. */
19415
19416 #ifdef __STDC__
19417 # include <limits.h>
19418 #else
19419 # include <assert.h>
19420 #endif
19421
19422 #undef $ac_func
19423
19424 /* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19427 #ifdef __cplusplus
19428 extern "C"
19429 #endif
19430 char $ac_func ();
19431 /* The GNU C library defines this for functions which it implements
19432 to always fail with ENOSYS. Some functions are actually named
19433 something starting with __ and the normal name is an alias. */
19434 #if defined __stub_$ac_func || defined __stub___$ac_func
19435 choke me
19436 #endif
19437
19438 int
19439 main ()
19440 {
19441 return $ac_func ();
19442 ;
19443 return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_link") 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest$ac_exeext'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 eval "$as_ac_var=yes"
19481 else
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485 eval "$as_ac_var=no"
19486 fi
19487
19488 rm -f core conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext conftest.$ac_ext
19490 fi
19491 ac_res=`eval echo '${'$as_ac_var'}'`
19492 { echo "$as_me:$LINENO: result: $ac_res" >&5
19493 echo "${ECHO_T}$ac_res" >&6; }
19494 if test `eval echo '${'$as_ac_var'}'` = yes; then
19495 cat >>confdefs.h <<_ACEOF
19496 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19497 _ACEOF
19498
19499 fi
19500 done
19501
19502 fi
19503
19504 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19505 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
19506 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509 cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h. */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 #include <signal.h>
19516 /* NetBSD declares sys_siglist in unistd.h. */
19517 #if HAVE_UNISTD_H
19518 # include <unistd.h>
19519 #endif
19520
19521
19522 int
19523 main ()
19524 {
19525 #ifndef sys_siglist
19526 char *p = (char *) sys_siglist;
19527 return !p;
19528 #endif
19529
19530 ;
19531 return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_have_decl_sys_siglist=yes
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_cv_have_decl_sys_siglist=no
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19579 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
19580 if test $ac_cv_have_decl_sys_siglist = yes; then
19581
19582 cat >>confdefs.h <<_ACEOF
19583 @%:@define HAVE_DECL_SYS_SIGLIST 1
19584 _ACEOF
19585
19586
19587 else
19588 cat >>confdefs.h <<_ACEOF
19589 @%:@define HAVE_DECL_SYS_SIGLIST 0
19590 _ACEOF
19591
19592
19593 fi
19594
19595
19596
19597
19598 if test "$ac_cv_func_inet_aton" != 'yes'; then
19599
19600 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19601 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19602 if test "${bash_cv_func_inet_aton+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611
19612 #include <sys/types.h>
19613 #include <netinet/in.h>
19614 #include <arpa/inet.h>
19615 struct in_addr ap;
19616 int
19617 main ()
19618 {
19619 inet_aton("127.0.0.1", &ap);
19620 ;
19621 return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 bash_cv_func_inet_aton=yes
19659 else
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 bash_cv_func_inet_aton=no
19664 fi
19665
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19668 fi
19669 { echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19670 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6; }
19671 if test $bash_cv_func_inet_aton = yes; then
19672 cat >>confdefs.h <<\_ACEOF
19673 @%:@define HAVE_INET_ATON 1
19674 _ACEOF
19675
19676 else
19677 case " $LIB@&t@OBJS " in
19678 *" inet_aton.$ac_objext "* ) ;;
19679 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext"
19680 ;;
19681 esac
19682
19683 fi
19684
19685 fi
19686
19687 case "$host_os" in
19688 irix4*)
19689 { echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19690 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lsun $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 char getpwent ();
19710 int
19711 main ()
19712 {
19713 return getpwent ();
19714 ;
19715 return 0;
19716 }
19717 _ACEOF
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_lib_sun_getpwent=yes
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 ac_cv_lib_sun_getpwent=no
19758 fi
19759
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762 LIBS=$ac_check_lib_save_LIBS
19763 fi
19764 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19765 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6; }
19766 if test $ac_cv_lib_sun_getpwent = yes; then
19767 cat >>confdefs.h <<_ACEOF
19768 @%:@define HAVE_LIBSUN 1
19769 _ACEOF
19770
19771 LIBS="-lsun $LIBS"
19772
19773 fi
19774 ;;
19775 esac
19776
19777 if test "$ac_cv_func_getpeername" = no; then
19778
19779 if test "X$bash_cv_have_socklib" = "X"; then
19780 _bash_needmsg=
19781 else
19782 { echo "$as_me:$LINENO: checking for socket library" >&5
19783 echo $ECHO_N "checking for socket library... $ECHO_C" >&6; }
19784 _bash_needmsg=yes
19785 fi
19786 if test "${bash_cv_have_socklib+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 { echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19790 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6; }
19791 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794 ac_check_lib_save_LIBS=$LIBS
19795 LIBS="-lsocket -lnsl $LIBS"
19796 cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h. */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802
19803 /* Override any GCC internal prototype to avoid an error.
19804 Use char because int might match the return type of a GCC
19805 builtin and then its argument prototype would still apply. */
19806 #ifdef __cplusplus
19807 extern "C"
19808 #endif
19809 char getpeername ();
19810 int
19811 main ()
19812 {
19813 return getpeername ();
19814 ;
19815 return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_link") 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest$ac_exeext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 ac_cv_lib_socket_getpeername=yes
19853 else
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_cv_lib_socket_getpeername=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext \
19861 conftest$ac_exeext conftest.$ac_ext
19862 LIBS=$ac_check_lib_save_LIBS
19863 fi
19864 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19865 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6; }
19866 if test $ac_cv_lib_socket_getpeername = yes; then
19867 bash_cv_have_socklib=yes
19868 else
19869 bash_cv_have_socklib=no
19870 fi
19871
19872 fi
19873
19874 if test "X$_bash_needmsg" = Xyes; then
19875 { echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19876 echo "${ECHO_T}$bash_cv_have_socklib" >&6; }
19877 _bash_needmsg=
19878 fi
19879 if test $bash_cv_have_socklib = yes; then
19880 # check for libnsl, add it to LIBS if present
19881 if test "X$bash_cv_have_libnsl" = "X"; then
19882 _bash_needmsg=
19883 else
19884 { echo "$as_me:$LINENO: checking for libnsl" >&5
19885 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6; }
19886 _bash_needmsg=yes
19887 fi
19888 if test "${bash_cv_have_libnsl+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 else
19891 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19892 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
19893 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896 ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lnsl $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19908 #ifdef __cplusplus
19909 extern "C"
19910 #endif
19911 char t_open ();
19912 int
19913 main ()
19914 {
19915 return t_open ();
19916 ;
19917 return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_lib_nsl_t_open=yes
19955 else
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959 ac_cv_lib_nsl_t_open=no
19960 fi
19961
19962 rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
19964 LIBS=$ac_check_lib_save_LIBS
19965 fi
19966 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19967 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
19968 if test $ac_cv_lib_nsl_t_open = yes; then
19969 bash_cv_have_libnsl=yes
19970 else
19971 bash_cv_have_libnsl=no
19972 fi
19973
19974 fi
19975
19976 if test "X$_bash_needmsg" = Xyes; then
19977 { echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19978 echo "${ECHO_T}$bash_cv_have_libnsl" >&6; }
19979 _bash_needmsg=
19980 fi
19981 if test $bash_cv_have_libnsl = yes; then
19982 LIBS="-lsocket -lnsl $LIBS"
19983 else
19984 LIBS="-lsocket $LIBS"
19985 fi
19986 cat >>confdefs.h <<\_ACEOF
19987 @%:@define HAVE_LIBSOCKET 1
19988 _ACEOF
19989
19990 cat >>confdefs.h <<\_ACEOF
19991 @%:@define HAVE_GETPEERNAME 1
19992 _ACEOF
19993
19994 fi
19995
19996 fi
19997 if test "$ac_cv_func_gethostbyname" = no; then
19998 if test "X$bash_cv_have_gethostbyname" = "X"; then
19999 _bash_needmsg=yes
20000 else
20001 { echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
20002 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6; }
20003 _bash_needmsg=
20004 fi
20005 if test "${bash_cv_have_gethostbyname+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 #include <netdb.h>
20015 int
20016 main ()
20017 {
20018 struct hostent *hp;
20019 hp = gethostbyname("localhost");
20020
20021 ;
20022 return 0;
20023 }
20024 _ACEOF
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_link") 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest$ac_exeext'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 bash_cv_have_gethostbyname=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 bash_cv_have_gethostbyname=no
20065 fi
20066
20067 rm -f core conftest.err conftest.$ac_objext \
20068 conftest$ac_exeext conftest.$ac_ext
20069
20070 fi
20071
20072 if test "X$_bash_needmsg" = Xyes; then
20073 { echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
20074 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6; }
20075 fi
20076 { echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
20077 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6; }
20078 if test "$bash_cv_have_gethostbyname" = yes; then
20079 cat >>confdefs.h <<\_ACEOF
20080 @%:@define HAVE_GETHOSTBYNAME 1
20081 _ACEOF
20082
20083 fi
20084
20085 fi
20086
20087 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20088 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20089 if test "${ac_cv_type_uid_t+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 #include <sys/types.h>
20099
20100 _ACEOF
20101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102 $EGREP "uid_t" >/dev/null 2>&1; then
20103 ac_cv_type_uid_t=yes
20104 else
20105 ac_cv_type_uid_t=no
20106 fi
20107 rm -f conftest*
20108
20109 fi
20110 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20111 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20112 if test $ac_cv_type_uid_t = no; then
20113
20114 cat >>confdefs.h <<\_ACEOF
20115 @%:@define uid_t int
20116 _ACEOF
20117
20118
20119 cat >>confdefs.h <<\_ACEOF
20120 @%:@define gid_t int
20121 _ACEOF
20122
20123 fi
20124
20125 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
20126 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
20127 if test "${ac_cv_type_getgroups+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130 if test "$cross_compiling" = yes; then
20131 ac_cv_type_getgroups=cross
20132 else
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 /* Thanks to Mike Rendell for this test. */
20140 $ac_includes_default
20141 #define NGID 256
20142 #undef MAX
20143 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20144
20145 int
20146 main ()
20147 {
20148 gid_t gidset[NGID];
20149 int i, n;
20150 union { gid_t gval; long int lval; } val;
20151
20152 val.lval = -1;
20153 for (i = 0; i < NGID; i++)
20154 gidset[i] = val.gval;
20155 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20156 gidset);
20157 /* Exit non-zero if getgroups seems to require an array of ints. This
20158 happens when gid_t is short int but getgroups modifies an array
20159 of ints. */
20160 return n > 0 && gidset[n] != val.gval;
20161 }
20162 _ACEOF
20163 rm -f conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_type_getgroups=gid_t
20184 else
20185 echo "$as_me: program exited with status $ac_status" >&5
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 ( exit $ac_status )
20190 ac_cv_type_getgroups=int
20191 fi
20192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20193 fi
20194
20195
20196 if test $ac_cv_type_getgroups = cross; then
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h. */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 #include <unistd.h>
20204
20205 _ACEOF
20206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20207 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
20208 ac_cv_type_getgroups=gid_t
20209 else
20210 ac_cv_type_getgroups=int
20211 fi
20212 rm -f conftest*
20213
20214 fi
20215 fi
20216 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
20217 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
20218
20219 cat >>confdefs.h <<_ACEOF
20220 @%:@define GETGROUPS_T $ac_cv_type_getgroups
20221 _ACEOF
20222
20223
20224 { echo "$as_me:$LINENO: checking for off_t" >&5
20225 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20226 if test "${ac_cv_type_off_t+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 typedef off_t ac__type_new_;
20237 int
20238 main ()
20239 {
20240 if ((ac__type_new_ *) 0)
20241 return 0;
20242 if (sizeof (ac__type_new_))
20243 return 0;
20244 ;
20245 return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_type_off_t=yes
20283 else
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_cv_type_off_t=no
20288 fi
20289
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 fi
20292 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20293 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20294 if test $ac_cv_type_off_t = yes; then
20295 :
20296 else
20297
20298 cat >>confdefs.h <<_ACEOF
20299 @%:@define off_t long int
20300 _ACEOF
20301
20302 fi
20303
20304 { echo "$as_me:$LINENO: checking for mode_t" >&5
20305 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
20306 if test "${ac_cv_type_mode_t+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 $ac_includes_default
20316 typedef mode_t ac__type_new_;
20317 int
20318 main ()
20319 {
20320 if ((ac__type_new_ *) 0)
20321 return 0;
20322 if (sizeof (ac__type_new_))
20323 return 0;
20324 ;
20325 return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20336 ac_status=$?
20337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20343 { (case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_try") 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_type_mode_t=yes
20363 else
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 ac_cv_type_mode_t=no
20368 fi
20369
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371 fi
20372 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20373 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
20374 if test $ac_cv_type_mode_t = yes; then
20375 :
20376 else
20377
20378 cat >>confdefs.h <<_ACEOF
20379 @%:@define mode_t int
20380 _ACEOF
20381
20382 fi
20383
20384 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20385 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20386 if test "${ac_cv_type_uid_t+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 #include <sys/types.h>
20396
20397 _ACEOF
20398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20399 $EGREP "uid_t" >/dev/null 2>&1; then
20400 ac_cv_type_uid_t=yes
20401 else
20402 ac_cv_type_uid_t=no
20403 fi
20404 rm -f conftest*
20405
20406 fi
20407 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20408 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20409 if test $ac_cv_type_uid_t = no; then
20410
20411 cat >>confdefs.h <<\_ACEOF
20412 @%:@define uid_t int
20413 _ACEOF
20414
20415
20416 cat >>confdefs.h <<\_ACEOF
20417 @%:@define gid_t int
20418 _ACEOF
20419
20420 fi
20421
20422 { echo "$as_me:$LINENO: checking for pid_t" >&5
20423 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20424 if test "${ac_cv_type_pid_t+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h. */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 $ac_includes_default
20434 typedef pid_t ac__type_new_;
20435 int
20436 main ()
20437 {
20438 if ((ac__type_new_ *) 0)
20439 return 0;
20440 if (sizeof (ac__type_new_))
20441 return 0;
20442 ;
20443 return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_compile") 2>conftest.er1
20454 ac_status=$?
20455 grep -v '^ *+' conftest.er1 >conftest.err
20456 rm -f conftest.er1
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
20460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20461 { (case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_try") 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest.$ac_objext'
20471 { (case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_try") 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_type_pid_t=yes
20481 else
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 ac_cv_type_pid_t=no
20486 fi
20487
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 fi
20490 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20491 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20492 if test $ac_cv_type_pid_t = yes; then
20493 :
20494 else
20495
20496 cat >>confdefs.h <<_ACEOF
20497 @%:@define pid_t int
20498 _ACEOF
20499
20500 fi
20501
20502 { echo "$as_me:$LINENO: checking for size_t" >&5
20503 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20504 if test "${ac_cv_type_size_t+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 $ac_includes_default
20514 typedef size_t ac__type_new_;
20515 int
20516 main ()
20517 {
20518 if ((ac__type_new_ *) 0)
20519 return 0;
20520 if (sizeof (ac__type_new_))
20521 return 0;
20522 ;
20523 return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541 { (case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_try") 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_type_size_t=yes
20561 else
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_cv_type_size_t=no
20566 fi
20567
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 fi
20570 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20571 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20572 if test $ac_cv_type_size_t = yes; then
20573 :
20574 else
20575
20576 cat >>confdefs.h <<_ACEOF
20577 @%:@define size_t unsigned int
20578 _ACEOF
20579
20580 fi
20581
20582 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20583 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20584 if test "${ac_cv_type_ssize_t+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 $ac_includes_default
20594 typedef ssize_t ac__type_new_;
20595 int
20596 main ()
20597 {
20598 if ((ac__type_new_ *) 0)
20599 return 0;
20600 if (sizeof (ac__type_new_))
20601 return 0;
20602 ;
20603 return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext
20607 if { (ac_try="$ac_compile"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_compile") 2>conftest.er1
20614 ac_status=$?
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640 ac_cv_type_ssize_t=yes
20641 else
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645 ac_cv_type_ssize_t=no
20646 fi
20647
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 fi
20650 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20651 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20652 if test $ac_cv_type_ssize_t = yes; then
20653 :
20654 else
20655
20656 cat >>confdefs.h <<_ACEOF
20657 @%:@define ssize_t int
20658 _ACEOF
20659
20660 fi
20661
20662 { echo "$as_me:$LINENO: checking for time_t" >&5
20663 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
20664 if test "${ac_cv_type_time_t+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 $ac_includes_default
20674 typedef time_t ac__type_new_;
20675 int
20676 main ()
20677 {
20678 if ((ac__type_new_ *) 0)
20679 return 0;
20680 if (sizeof (ac__type_new_))
20681 return 0;
20682 ;
20683 return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20694 ac_status=$?
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20701 { (case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_try") 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
20711 { (case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_try") 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_cv_type_time_t=yes
20721 else
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 ac_cv_type_time_t=no
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729 fi
20730 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20731 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
20732 if test $ac_cv_type_time_t = yes; then
20733 :
20734 else
20735
20736 cat >>confdefs.h <<_ACEOF
20737 @%:@define time_t long
20738 _ACEOF
20739
20740 fi
20741
20742
20743
20744 { echo "$as_me:$LINENO: checking for long long" >&5
20745 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20746 if test "${bash_cv_type_long_long+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755
20756 long long ll = 1; int i = 63;
20757 int
20758 main ()
20759 {
20760
20761 long long llm = (long long) -1;
20762 return ll << i | ll >> i | llm / ll | llm % ll;
20763
20764 ;
20765 return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20783 { (case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_try") 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; } &&
20792 { ac_try='test -s conftest$ac_exeext'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 bash_cv_type_long_long='long long'
20803 else
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 bash_cv_type_long_long='long'
20808 fi
20809
20810 rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
20812 fi
20813 { echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20814 echo "${ECHO_T}$bash_cv_type_long_long" >&6; }
20815 if test "$bash_cv_type_long_long" = 'long long'; then
20816 cat >>confdefs.h <<\_ACEOF
20817 @%:@define HAVE_LONG_LONG 1
20818 _ACEOF
20819
20820 fi
20821
20822
20823 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20824 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20825 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828 cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h. */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20834
20835 unsigned long long ull = 1; int i = 63;
20836 int
20837 main ()
20838 {
20839
20840 unsigned long long ullmax = (unsigned long long) -1;
20841 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20842
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest$ac_exeext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 bash_cv_type_unsigned_long_long='unsigned long long'
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 bash_cv_type_unsigned_long_long='unsigned long'
20887 fi
20888
20889 rm -f core conftest.err conftest.$ac_objext \
20890 conftest$ac_exeext conftest.$ac_ext
20891 fi
20892 { echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20893 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6; }
20894 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20895 cat >>confdefs.h <<\_ACEOF
20896 @%:@define HAVE_UNSIGNED_LONG_LONG 1
20897 _ACEOF
20898
20899 fi
20900
20901
20902 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20903 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20904 if test "${ac_cv_type_signal+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907 cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h. */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 #include <sys/types.h>
20914 #include <signal.h>
20915
20916 int
20917 main ()
20918 {
20919 return *(signal (0, 0)) (0) == 1;
20920 ;
20921 return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
20949 { (case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20952 esac
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_try") 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_type_signal=int
20959 else
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 ac_cv_type_signal=void
20964 fi
20965
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 fi
20968 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20969 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20970
20971 cat >>confdefs.h <<_ACEOF
20972 @%:@define RETSIGTYPE $ac_cv_type_signal
20973 _ACEOF
20974
20975
20976
20977 { echo "$as_me:$LINENO: checking for char" >&5
20978 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20979 if test "${ac_cv_type_char+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 typedef char ac__type_new_;
20990 int
20991 main ()
20992 {
20993 if ((ac__type_new_ *) 0)
20994 return 0;
20995 if (sizeof (ac__type_new_))
20996 return 0;
20997 ;
20998 return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext
21002 if { (ac_try="$ac_compile"
21003 case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21009 ac_status=$?
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_type_char=yes
21036 else
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 ac_cv_type_char=no
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 fi
21045 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
21046 echo "${ECHO_T}$ac_cv_type_char" >&6; }
21047
21048 { echo "$as_me:$LINENO: checking size of char" >&5
21049 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
21050 if test "${ac_cv_sizeof_char+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053 if test "$ac_cv_type_char" = yes; then
21054 # The cast to long int works around a bug in the HP C Compiler
21055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21057 # This bug is HP SR number 8606223364.
21058 if test "$cross_compiling" = yes; then
21059 # Depending upon the size, compute the lo and hi bounds.
21060 cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h. */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 $ac_includes_default
21067 typedef char ac__type_sizeof_;
21068 int
21069 main ()
21070 {
21071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
21072 test_array @<:@0@:>@ = 0
21073
21074 ;
21075 return 0;
21076 }
21077 _ACEOF
21078 rm -f conftest.$ac_objext
21079 if { (ac_try="$ac_compile"
21080 case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_compile") 2>conftest.er1
21086 ac_status=$?
21087 grep -v '^ *+' conftest.er1 >conftest.err
21088 rm -f conftest.er1
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21093 { (case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_try") 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_try") 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ac_lo=0 ac_mid=0
21113 while :; do
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 typedef char ac__type_sizeof_;
21122 int
21123 main ()
21124 {
21125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21126 test_array @<:@0@:>@ = 0
21127
21128 ;
21129 return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_compile") 2>conftest.er1
21140 ac_status=$?
21141 grep -v '^ *+' conftest.er1 >conftest.err
21142 rm -f conftest.er1
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } &&
21146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21147 { (case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_try") 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_try") 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_hi=$ac_mid; break
21167 else
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ac_lo=`expr $ac_mid + 1`
21172 if test $ac_lo -le $ac_mid; then
21173 ac_lo= ac_hi=
21174 break
21175 fi
21176 ac_mid=`expr 2 '*' $ac_mid + 1`
21177 fi
21178
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180 done
21181 else
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 typedef char ac__type_sizeof_;
21193 int
21194 main ()
21195 {
21196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
21197 test_array @<:@0@:>@ = 0
21198
21199 ;
21200 return 0;
21201 }
21202 _ACEOF
21203 rm -f conftest.$ac_objext
21204 if { (ac_try="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208 esac
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_compile") 2>conftest.er1
21211 ac_status=$?
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_try") 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_hi=-1 ac_mid=-1
21238 while :; do
21239 cat >conftest.$ac_ext <<_ACEOF
21240 /* confdefs.h. */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245 $ac_includes_default
21246 typedef char ac__type_sizeof_;
21247 int
21248 main ()
21249 {
21250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
21251 test_array @<:@0@:>@ = 0
21252
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21262 esac
21263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21264 (eval "$ac_compile") 2>conftest.er1
21265 ac_status=$?
21266 grep -v '^ *+' conftest.er1 >conftest.err
21267 rm -f conftest.er1
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
21271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21272 { (case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_try") 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } &&
21281 { ac_try='test -s conftest.$ac_objext'
21282 { (case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_try") 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_lo=$ac_mid; break
21292 else
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296 ac_hi=`expr '(' $ac_mid ')' - 1`
21297 if test $ac_mid -le $ac_hi; then
21298 ac_lo= ac_hi=
21299 break
21300 fi
21301 ac_mid=`expr 2 '*' $ac_mid`
21302 fi
21303
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 done
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ac_lo= ac_hi=
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 # Binary search between lo and hi bounds.
21318 while test "x$ac_lo" != "x$ac_hi"; do
21319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21320 cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h. */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 $ac_includes_default
21327 typedef char ac__type_sizeof_;
21328 int
21329 main ()
21330 {
21331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21332 test_array @<:@0@:>@ = 0
21333
21334 ;
21335 return 0;
21336 }
21337 _ACEOF
21338 rm -f conftest.$ac_objext
21339 if { (ac_try="$ac_compile"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21343 esac
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_compile") 2>conftest.er1
21346 ac_status=$?
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_try") 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest.$ac_objext'
21363 { (case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_try") 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; }; then
21372 ac_hi=$ac_mid
21373 else
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377 ac_lo=`expr '(' $ac_mid ')' + 1`
21378 fi
21379
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 done
21382 case $ac_lo in
21383 ?*) ac_cv_sizeof_char=$ac_lo;;
21384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21385 See \`config.log' for more details." >&5
21386 echo "$as_me: error: cannot compute sizeof (char)
21387 See \`config.log' for more details." >&2;}
21388 { (exit 77); exit 77; }; } ;;
21389 esac
21390 else
21391 cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h. */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21398 typedef char ac__type_sizeof_;
21399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21401 @%:@include <stdio.h>
21402 @%:@include <stdlib.h>
21403 int
21404 main ()
21405 {
21406
21407 FILE *f = fopen ("conftest.val", "w");
21408 if (! f)
21409 return 1;
21410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21411 {
21412 long int i = longval ();
21413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21414 return 1;
21415 fprintf (f, "%ld\n", i);
21416 }
21417 else
21418 {
21419 unsigned long int i = ulongval ();
21420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21421 return 1;
21422 fprintf (f, "%lu\n", i);
21423 }
21424 return ferror (f) || fclose (f) != 0;
21425
21426 ;
21427 return 0;
21428 }
21429 _ACEOF
21430 rm -f conftest$ac_exeext
21431 if { (ac_try="$ac_link"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21435 esac
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_link") 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441 { (case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_try") 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_sizeof_char=`cat conftest.val`
21451 else
21452 echo "$as_me: program exited with status $ac_status" >&5
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456 ( exit $ac_status )
21457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21458 See \`config.log' for more details." >&5
21459 echo "$as_me: error: cannot compute sizeof (char)
21460 See \`config.log' for more details." >&2;}
21461 { (exit 77); exit 77; }; }
21462 fi
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21464 fi
21465 rm -f conftest.val
21466 else
21467 ac_cv_sizeof_char=0
21468 fi
21469 fi
21470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21471 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
21472 cat >>confdefs.h <<_ACEOF
21473 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
21474 _ACEOF
21475
21476
21477 { echo "$as_me:$LINENO: checking for short" >&5
21478 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21479 if test "${ac_cv_type_short+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 $ac_includes_default
21489 typedef short ac__type_new_;
21490 int
21491 main ()
21492 {
21493 if ((ac__type_new_ *) 0)
21494 return 0;
21495 if (sizeof (ac__type_new_))
21496 return 0;
21497 ;
21498 return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (ac_try="$ac_compile"
21503 case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21506 esac
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_compile") 2>conftest.er1
21509 ac_status=$?
21510 grep -v '^ *+' conftest.er1 >conftest.err
21511 rm -f conftest.er1
21512 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } &&
21515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
21526 { (case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_try") 2>&5
21532 ac_status=$?
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; }; then
21535 ac_cv_type_short=yes
21536 else
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540 ac_cv_type_short=no
21541 fi
21542
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 fi
21545 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21546 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21547
21548 { echo "$as_me:$LINENO: checking size of short" >&5
21549 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21550 if test "${ac_cv_sizeof_short+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553 if test "$ac_cv_type_short" = yes; then
21554 # The cast to long int works around a bug in the HP C Compiler
21555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21557 # This bug is HP SR number 8606223364.
21558 if test "$cross_compiling" = yes; then
21559 # Depending upon the size, compute the lo and hi bounds.
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 $ac_includes_default
21567 typedef short ac__type_sizeof_;
21568 int
21569 main ()
21570 {
21571 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
21572 test_array @<:@0@:>@ = 0
21573
21574 ;
21575 return 0;
21576 }
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21593 { (case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_try") 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; } &&
21602 { ac_try='test -s conftest.$ac_objext'
21603 { (case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_lo=0 ac_mid=0
21613 while :; do
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h. */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21621 typedef short ac__type_sizeof_;
21622 int
21623 main ()
21624 {
21625 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21626 test_array @<:@0@:>@ = 0
21627
21628 ;
21629 return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_compile") 2>conftest.er1
21640 ac_status=$?
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
21646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21647 { (case "(($ac_try" in
21648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649 *) ac_try_echo=$ac_try;;
21650 esac
21651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652 (eval "$ac_try") 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest.$ac_objext'
21657 { (case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_try") 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_hi=$ac_mid; break
21667 else
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21670
21671 ac_lo=`expr $ac_mid + 1`
21672 if test $ac_lo -le $ac_mid; then
21673 ac_lo= ac_hi=
21674 break
21675 fi
21676 ac_mid=`expr 2 '*' $ac_mid + 1`
21677 fi
21678
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 done
21681 else
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21692 typedef short ac__type_sizeof_;
21693 int
21694 main ()
21695 {
21696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
21697 test_array @<:@0@:>@ = 0
21698
21699 ;
21700 return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext
21704 if { (ac_try="$ac_compile"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_compile") 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21718 { (case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21721 esac
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723 (eval "$ac_try") 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest.$ac_objext'
21728 { (case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_try") 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 ac_hi=-1 ac_mid=-1
21738 while :; do
21739 cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h. */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 $ac_includes_default
21746 typedef short ac__type_sizeof_;
21747 int
21748 main ()
21749 {
21750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
21751 test_array @<:@0@:>@ = 0
21752
21753 ;
21754 return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_compile") 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21772 { (case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21775 esac
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_try") 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try='test -s conftest.$ac_objext'
21782 { (case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_try") 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_lo=$ac_mid; break
21792 else
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796 ac_hi=`expr '(' $ac_mid ')' - 1`
21797 if test $ac_mid -le $ac_hi; then
21798 ac_lo= ac_hi=
21799 break
21800 fi
21801 ac_mid=`expr 2 '*' $ac_mid`
21802 fi
21803
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 done
21806 else
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ac_lo= ac_hi=
21811 fi
21812
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 # Binary search between lo and hi bounds.
21818 while test "x$ac_lo" != "x$ac_hi"; do
21819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21820 cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h. */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 $ac_includes_default
21827 typedef short ac__type_sizeof_;
21828 int
21829 main ()
21830 {
21831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21832 test_array @<:@0@:>@ = 0
21833
21834 ;
21835 return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext
21839 if { (ac_try="$ac_compile"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_compile") 2>conftest.er1
21846 ac_status=$?
21847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
21852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21853 { (case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21856 esac
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_try") 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try='test -s conftest.$ac_objext'
21863 { (case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_try") 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 ac_hi=$ac_mid
21873 else
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877 ac_lo=`expr '(' $ac_mid ')' + 1`
21878 fi
21879
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 done
21882 case $ac_lo in
21883 ?*) ac_cv_sizeof_short=$ac_lo;;
21884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21885 See \`config.log' for more details." >&5
21886 echo "$as_me: error: cannot compute sizeof (short)
21887 See \`config.log' for more details." >&2;}
21888 { (exit 77); exit 77; }; } ;;
21889 esac
21890 else
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 $ac_includes_default
21898 typedef short ac__type_sizeof_;
21899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21901 @%:@include <stdio.h>
21902 @%:@include <stdlib.h>
21903 int
21904 main ()
21905 {
21906
21907 FILE *f = fopen ("conftest.val", "w");
21908 if (! f)
21909 return 1;
21910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21911 {
21912 long int i = longval ();
21913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21914 return 1;
21915 fprintf (f, "%ld\n", i);
21916 }
21917 else
21918 {
21919 unsigned long int i = ulongval ();
21920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21921 return 1;
21922 fprintf (f, "%lu\n", i);
21923 }
21924 return ferror (f) || fclose (f) != 0;
21925
21926 ;
21927 return 0;
21928 }
21929 _ACEOF
21930 rm -f conftest$ac_exeext
21931 if { (ac_try="$ac_link"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_link") 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21941 { (case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21944 esac
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_try") 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 ac_cv_sizeof_short=`cat conftest.val`
21951 else
21952 echo "$as_me: program exited with status $ac_status" >&5
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956 ( exit $ac_status )
21957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21958 See \`config.log' for more details." >&5
21959 echo "$as_me: error: cannot compute sizeof (short)
21960 See \`config.log' for more details." >&2;}
21961 { (exit 77); exit 77; }; }
21962 fi
21963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21964 fi
21965 rm -f conftest.val
21966 else
21967 ac_cv_sizeof_short=0
21968 fi
21969 fi
21970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21971 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21972 cat >>confdefs.h <<_ACEOF
21973 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
21974 _ACEOF
21975
21976
21977 { echo "$as_me:$LINENO: checking for int" >&5
21978 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_int+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982 cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h. */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 typedef int ac__type_new_;
21990 int
21991 main ()
21992 {
21993 if ((ac__type_new_ *) 0)
21994 return 0;
21995 if (sizeof (ac__type_new_))
21996 return 0;
21997 ;
21998 return 0;
21999 }
22000 _ACEOF
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22009 ac_status=$?
22010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } &&
22015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest.$ac_objext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_cv_type_int=yes
22036 else
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040 ac_cv_type_int=no
22041 fi
22042
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 fi
22045 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22046 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22047
22048 { echo "$as_me:$LINENO: checking size of int" >&5
22049 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22050 if test "${ac_cv_sizeof_int+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053 if test "$ac_cv_type_int" = yes; then
22054 # The cast to long int works around a bug in the HP C Compiler
22055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22057 # This bug is HP SR number 8606223364.
22058 if test "$cross_compiling" = yes; then
22059 # Depending upon the size, compute the lo and hi bounds.
22060 cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h. */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 $ac_includes_default
22067 typedef int ac__type_sizeof_;
22068 int
22069 main ()
22070 {
22071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22072 test_array @<:@0@:>@ = 0
22073
22074 ;
22075 return 0;
22076 }
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22093 { (case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_try") 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
22103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 ac_lo=0 ac_mid=0
22113 while :; do
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h. */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 $ac_includes_default
22121 typedef int ac__type_sizeof_;
22122 int
22123 main ()
22124 {
22125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22126 test_array @<:@0@:>@ = 0
22127
22128 ;
22129 return 0;
22130 }
22131 _ACEOF
22132 rm -f conftest.$ac_objext
22133 if { (ac_try="$ac_compile"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_compile") 2>conftest.er1
22140 ac_status=$?
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } &&
22146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22147 { (case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_try") 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try='test -s conftest.$ac_objext'
22157 { (case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_try") 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_hi=$ac_mid; break
22167 else
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_lo=`expr $ac_mid + 1`
22172 if test $ac_lo -le $ac_mid; then
22173 ac_lo= ac_hi=
22174 break
22175 fi
22176 ac_mid=`expr 2 '*' $ac_mid + 1`
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 done
22181 else
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22192 typedef int ac__type_sizeof_;
22193 int
22194 main ()
22195 {
22196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22197 test_array @<:@0@:>@ = 0
22198
22199 ;
22200 return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest.$ac_objext
22204 if { (ac_try="$ac_compile"
22205 case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_compile") 2>conftest.er1
22211 ac_status=$?
22212 grep -v '^ *+' conftest.er1 >conftest.err
22213 rm -f conftest.er1
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } &&
22217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22218 { (case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_try") 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try='test -s conftest.$ac_objext'
22228 { (case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22231 esac
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_try") 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 ac_hi=-1 ac_mid=-1
22238 while :; do
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h. */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 $ac_includes_default
22246 typedef int ac__type_sizeof_;
22247 int
22248 main ()
22249 {
22250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22251 test_array @<:@0@:>@ = 0
22252
22253 ;
22254 return 0;
22255 }
22256 _ACEOF
22257 rm -f conftest.$ac_objext
22258 if { (ac_try="$ac_compile"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
22271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22272 { (case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_try") 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; } &&
22281 { ac_try='test -s conftest.$ac_objext'
22282 { (case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_try") 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_lo=$ac_mid; break
22292 else
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296 ac_hi=`expr '(' $ac_mid ')' - 1`
22297 if test $ac_mid -le $ac_hi; then
22298 ac_lo= ac_hi=
22299 break
22300 fi
22301 ac_mid=`expr 2 '*' $ac_mid`
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 done
22306 else
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22309
22310 ac_lo= ac_hi=
22311 fi
22312
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 fi
22315
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317 # Binary search between lo and hi bounds.
22318 while test "x$ac_lo" != "x$ac_hi"; do
22319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22320 cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h. */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22326 $ac_includes_default
22327 typedef int ac__type_sizeof_;
22328 int
22329 main ()
22330 {
22331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22332 test_array @<:@0@:>@ = 0
22333
22334 ;
22335 return 0;
22336 }
22337 _ACEOF
22338 rm -f conftest.$ac_objext
22339 if { (ac_try="$ac_compile"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_compile") 2>conftest.er1
22346 ac_status=$?
22347 grep -v '^ *+' conftest.er1 >conftest.err
22348 rm -f conftest.er1
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22353 { (case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_try") 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; } &&
22362 { ac_try='test -s conftest.$ac_objext'
22363 { (case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_try") 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22372 ac_hi=$ac_mid
22373 else
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377 ac_lo=`expr '(' $ac_mid ')' + 1`
22378 fi
22379
22380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381 done
22382 case $ac_lo in
22383 ?*) ac_cv_sizeof_int=$ac_lo;;
22384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22385 See \`config.log' for more details." >&5
22386 echo "$as_me: error: cannot compute sizeof (int)
22387 See \`config.log' for more details." >&2;}
22388 { (exit 77); exit 77; }; } ;;
22389 esac
22390 else
22391 cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h. */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 typedef int ac__type_sizeof_;
22399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22401 @%:@include <stdio.h>
22402 @%:@include <stdlib.h>
22403 int
22404 main ()
22405 {
22406
22407 FILE *f = fopen ("conftest.val", "w");
22408 if (! f)
22409 return 1;
22410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22411 {
22412 long int i = longval ();
22413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22414 return 1;
22415 fprintf (f, "%ld\n", i);
22416 }
22417 else
22418 {
22419 unsigned long int i = ulongval ();
22420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22421 return 1;
22422 fprintf (f, "%lu\n", i);
22423 }
22424 return ferror (f) || fclose (f) != 0;
22425
22426 ;
22427 return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest$ac_exeext
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_link") 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
22447 ac_status=$?
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 ac_cv_sizeof_int=`cat conftest.val`
22451 else
22452 echo "$as_me: program exited with status $ac_status" >&5
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ( exit $ac_status )
22457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22458 See \`config.log' for more details." >&5
22459 echo "$as_me: error: cannot compute sizeof (int)
22460 See \`config.log' for more details." >&2;}
22461 { (exit 77); exit 77; }; }
22462 fi
22463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22464 fi
22465 rm -f conftest.val
22466 else
22467 ac_cv_sizeof_int=0
22468 fi
22469 fi
22470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22471 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22472 cat >>confdefs.h <<_ACEOF
22473 @%:@define SIZEOF_INT $ac_cv_sizeof_int
22474 _ACEOF
22475
22476
22477 { echo "$as_me:$LINENO: checking for long" >&5
22478 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22479 if test "${ac_cv_type_long+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482 cat >conftest.$ac_ext <<_ACEOF
22483 /* confdefs.h. */
22484 _ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 $ac_includes_default
22489 typedef long ac__type_new_;
22490 int
22491 main ()
22492 {
22493 if ((ac__type_new_ *) 0)
22494 return 0;
22495 if (sizeof (ac__type_new_))
22496 return 0;
22497 ;
22498 return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22516 { (case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_try") 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; } &&
22525 { ac_try='test -s conftest.$ac_objext'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22535 ac_cv_type_long=yes
22536 else
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22539
22540 ac_cv_type_long=no
22541 fi
22542
22543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22544 fi
22545 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22546 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22547
22548 { echo "$as_me:$LINENO: checking size of long" >&5
22549 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22550 if test "${ac_cv_sizeof_long+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553 if test "$ac_cv_type_long" = yes; then
22554 # The cast to long int works around a bug in the HP C Compiler
22555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22557 # This bug is HP SR number 8606223364.
22558 if test "$cross_compiling" = yes; then
22559 # Depending upon the size, compute the lo and hi bounds.
22560 cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h. */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 $ac_includes_default
22567 typedef long ac__type_sizeof_;
22568 int
22569 main ()
22570 {
22571 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22572 test_array @<:@0@:>@ = 0
22573
22574 ;
22575 return 0;
22576 }
22577 _ACEOF
22578 rm -f conftest.$ac_objext
22579 if { (ac_try="$ac_compile"
22580 case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585 (eval "$ac_compile") 2>conftest.er1
22586 ac_status=$?
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
22592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22593 { (case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596 esac
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_try") 2>&5
22599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; } &&
22602 { ac_try='test -s conftest.$ac_objext'
22603 { (case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_try") 2>&5
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; }; then
22612 ac_lo=0 ac_mid=0
22613 while :; do
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h. */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 $ac_includes_default
22621 typedef long ac__type_sizeof_;
22622 int
22623 main ()
22624 {
22625 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22626 test_array @<:@0@:>@ = 0
22627
22628 ;
22629 return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext
22633 if { (ac_try="$ac_compile"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } &&
22646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22647 { (case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_try") 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; } &&
22656 { ac_try='test -s conftest.$ac_objext'
22657 { (case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_try") 2>&5
22663 ac_status=$?
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; }; then
22666 ac_hi=$ac_mid; break
22667 else
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671 ac_lo=`expr $ac_mid + 1`
22672 if test $ac_lo -le $ac_mid; then
22673 ac_lo= ac_hi=
22674 break
22675 fi
22676 ac_mid=`expr 2 '*' $ac_mid + 1`
22677 fi
22678
22679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680 done
22681 else
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22684
22685 cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h. */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 $ac_includes_default
22692 typedef long ac__type_sizeof_;
22693 int
22694 main ()
22695 {
22696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22697 test_array @<:@0@:>@ = 0
22698
22699 ;
22700 return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_compile") 2>conftest.er1
22711 ac_status=$?
22712 grep -v '^ *+' conftest.er1 >conftest.err
22713 rm -f conftest.er1
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } &&
22717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22718 { (case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_try") 2>&5
22724 ac_status=$?
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; } &&
22727 { ac_try='test -s conftest.$ac_objext'
22728 { (case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731 esac
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_try") 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22737 ac_hi=-1 ac_mid=-1
22738 while :; do
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22746 typedef long ac__type_sizeof_;
22747 int
22748 main ()
22749 {
22750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22751 test_array @<:@0@:>@ = 0
22752
22753 ;
22754 return 0;
22755 }
22756 _ACEOF
22757 rm -f conftest.$ac_objext
22758 if { (ac_try="$ac_compile"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22765 ac_status=$?
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } &&
22771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22772 { (case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777 (eval "$ac_try") 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest.$ac_objext'
22782 { (case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_try") 2>&5
22788 ac_status=$?
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; }; then
22791 ac_lo=$ac_mid; break
22792 else
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796 ac_hi=`expr '(' $ac_mid ')' - 1`
22797 if test $ac_mid -le $ac_hi; then
22798 ac_lo= ac_hi=
22799 break
22800 fi
22801 ac_mid=`expr 2 '*' $ac_mid`
22802 fi
22803
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805 done
22806 else
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22809
22810 ac_lo= ac_hi=
22811 fi
22812
22813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814 fi
22815
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 # Binary search between lo and hi bounds.
22818 while test "x$ac_lo" != "x$ac_hi"; do
22819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22820 cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h. */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 $ac_includes_default
22827 typedef long ac__type_sizeof_;
22828 int
22829 main ()
22830 {
22831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22832 test_array @<:@0@:>@ = 0
22833
22834 ;
22835 return 0;
22836 }
22837 _ACEOF
22838 rm -f conftest.$ac_objext
22839 if { (ac_try="$ac_compile"
22840 case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856 esac
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_try") 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest.$ac_objext'
22863 { (case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_try") 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 ac_hi=$ac_mid
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877 ac_lo=`expr '(' $ac_mid ')' + 1`
22878 fi
22879
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881 done
22882 case $ac_lo in
22883 ?*) ac_cv_sizeof_long=$ac_lo;;
22884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22885 See \`config.log' for more details." >&5
22886 echo "$as_me: error: cannot compute sizeof (long)
22887 See \`config.log' for more details." >&2;}
22888 { (exit 77); exit 77; }; } ;;
22889 esac
22890 else
22891 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h. */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 $ac_includes_default
22898 typedef long ac__type_sizeof_;
22899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22901 @%:@include <stdio.h>
22902 @%:@include <stdlib.h>
22903 int
22904 main ()
22905 {
22906
22907 FILE *f = fopen ("conftest.val", "w");
22908 if (! f)
22909 return 1;
22910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22911 {
22912 long int i = longval ();
22913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22914 return 1;
22915 fprintf (f, "%ld\n", i);
22916 }
22917 else
22918 {
22919 unsigned long int i = ulongval ();
22920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22921 return 1;
22922 fprintf (f, "%lu\n", i);
22923 }
22924 return ferror (f) || fclose (f) != 0;
22925
22926 ;
22927 return 0;
22928 }
22929 _ACEOF
22930 rm -f conftest$ac_exeext
22931 if { (ac_try="$ac_link"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_link") 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22941 { (case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_try") 2>&5
22947 ac_status=$?
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; }; then
22950 ac_cv_sizeof_long=`cat conftest.val`
22951 else
22952 echo "$as_me: program exited with status $ac_status" >&5
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956 ( exit $ac_status )
22957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22958 See \`config.log' for more details." >&5
22959 echo "$as_me: error: cannot compute sizeof (long)
22960 See \`config.log' for more details." >&2;}
22961 { (exit 77); exit 77; }; }
22962 fi
22963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22964 fi
22965 rm -f conftest.val
22966 else
22967 ac_cv_sizeof_long=0
22968 fi
22969 fi
22970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22971 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22972 cat >>confdefs.h <<_ACEOF
22973 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
22974 _ACEOF
22975
22976
22977 { echo "$as_me:$LINENO: checking for char *" >&5
22978 echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
22979 if test "${ac_cv_type_char_p+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 $ac_includes_default
22989 typedef char * ac__type_new_;
22990 int
22991 main ()
22992 {
22993 if ((ac__type_new_ *) 0)
22994 return 0;
22995 if (sizeof (ac__type_new_))
22996 return 0;
22997 ;
22998 return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23009 ac_status=$?
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23016 { (case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23019 esac
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_try") 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; } &&
23025 { ac_try='test -s conftest.$ac_objext'
23026 { (case "(($ac_try" in
23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028 *) ac_try_echo=$ac_try;;
23029 esac
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031 (eval "$ac_try") 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
23035 ac_cv_type_char_p=yes
23036 else
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040 ac_cv_type_char_p=no
23041 fi
23042
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044 fi
23045 { echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
23046 echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
23047
23048 { echo "$as_me:$LINENO: checking size of char *" >&5
23049 echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
23050 if test "${ac_cv_sizeof_char_p+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053 if test "$ac_cv_type_char_p" = yes; then
23054 # The cast to long int works around a bug in the HP C Compiler
23055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23057 # This bug is HP SR number 8606223364.
23058 if test "$cross_compiling" = yes; then
23059 # Depending upon the size, compute the lo and hi bounds.
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h. */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 $ac_includes_default
23067 typedef char * ac__type_sizeof_;
23068 int
23069 main ()
23070 {
23071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23072 test_array @<:@0@:>@ = 0
23073
23074 ;
23075 return 0;
23076 }
23077 _ACEOF
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23093 { (case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_try") 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest.$ac_objext'
23103 { (case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23106 esac
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_try") 2>&5
23109 ac_status=$?
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; }; then
23112 ac_lo=0 ac_mid=0
23113 while :; do
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h. */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23121 typedef char * ac__type_sizeof_;
23122 int
23123 main ()
23124 {
23125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23126 test_array @<:@0@:>@ = 0
23127
23128 ;
23129 return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23140 ac_status=$?
23141 grep -v '^ *+' conftest.er1 >conftest.err
23142 rm -f conftest.er1
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } &&
23146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23147 { (case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23150 esac
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_try") 2>&5
23153 ac_status=$?
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; } &&
23156 { ac_try='test -s conftest.$ac_objext'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_hi=$ac_mid; break
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171 ac_lo=`expr $ac_mid + 1`
23172 if test $ac_lo -le $ac_mid; then
23173 ac_lo= ac_hi=
23174 break
23175 fi
23176 ac_mid=`expr 2 '*' $ac_mid + 1`
23177 fi
23178
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 done
23181 else
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h. */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23192 typedef char * ac__type_sizeof_;
23193 int
23194 main ()
23195 {
23196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23197 test_array @<:@0@:>@ = 0
23198
23199 ;
23200 return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_compile") 2>conftest.er1
23211 ac_status=$?
23212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } &&
23217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23218 { (case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_try") 2>&5
23224 ac_status=$?
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; } &&
23227 { ac_try='test -s conftest.$ac_objext'
23228 { (case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23231 esac
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_try") 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_hi=-1 ac_mid=-1
23238 while :; do
23239 cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h. */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 $ac_includes_default
23246 typedef char * ac__type_sizeof_;
23247 int
23248 main ()
23249 {
23250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23251 test_array @<:@0@:>@ = 0
23252
23253 ;
23254 return 0;
23255 }
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23272 { (case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_try") 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest.$ac_objext'
23282 { (case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285 esac
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_try") 2>&5
23288 ac_status=$?
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ac_lo=$ac_mid; break
23292 else
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 ac_hi=`expr '(' $ac_mid ')' - 1`
23297 if test $ac_mid -le $ac_hi; then
23298 ac_lo= ac_hi=
23299 break
23300 fi
23301 ac_mid=`expr 2 '*' $ac_mid`
23302 fi
23303
23304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305 done
23306 else
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_lo= ac_hi=
23311 fi
23312
23313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 fi
23315
23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23317 # Binary search between lo and hi bounds.
23318 while test "x$ac_lo" != "x$ac_hi"; do
23319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23320 cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h. */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 $ac_includes_default
23327 typedef char * ac__type_sizeof_;
23328 int
23329 main ()
23330 {
23331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23332 test_array @<:@0@:>@ = 0
23333
23334 ;
23335 return 0;
23336 }
23337 _ACEOF
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353 { (case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_try") 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest.$ac_objext'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_try") 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_hi=$ac_mid
23373 else
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377 ac_lo=`expr '(' $ac_mid ')' + 1`
23378 fi
23379
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381 done
23382 case $ac_lo in
23383 ?*) ac_cv_sizeof_char_p=$ac_lo;;
23384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute sizeof (char *)
23387 See \`config.log' for more details." >&2;}
23388 { (exit 77); exit 77; }; } ;;
23389 esac
23390 else
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h. */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 typedef char * ac__type_sizeof_;
23399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23401 @%:@include <stdio.h>
23402 @%:@include <stdlib.h>
23403 int
23404 main ()
23405 {
23406
23407 FILE *f = fopen ("conftest.val", "w");
23408 if (! f)
23409 return 1;
23410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23411 {
23412 long int i = longval ();
23413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23414 return 1;
23415 fprintf (f, "%ld\n", i);
23416 }
23417 else
23418 {
23419 unsigned long int i = ulongval ();
23420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23421 return 1;
23422 fprintf (f, "%lu\n", i);
23423 }
23424 return ferror (f) || fclose (f) != 0;
23425
23426 ;
23427 return 0;
23428 }
23429 _ACEOF
23430 rm -f conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23441 { (case "(($ac_try" in
23442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_try") 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ac_cv_sizeof_char_p=`cat conftest.val`
23451 else
23452 echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456 ( exit $ac_status )
23457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
23458 See \`config.log' for more details." >&5
23459 echo "$as_me: error: cannot compute sizeof (char *)
23460 See \`config.log' for more details." >&2;}
23461 { (exit 77); exit 77; }; }
23462 fi
23463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23464 fi
23465 rm -f conftest.val
23466 else
23467 ac_cv_sizeof_char_p=0
23468 fi
23469 fi
23470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
23471 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
23472 cat >>confdefs.h <<_ACEOF
23473 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23474 _ACEOF
23475
23476
23477 { echo "$as_me:$LINENO: checking for double" >&5
23478 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23479 if test "${ac_cv_type_double+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h. */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488 $ac_includes_default
23489 typedef double ac__type_new_;
23490 int
23491 main ()
23492 {
23493 if ((ac__type_new_ *) 0)
23494 return 0;
23495 if (sizeof (ac__type_new_))
23496 return 0;
23497 ;
23498 return 0;
23499 }
23500 _ACEOF
23501 rm -f conftest.$ac_objext
23502 if { (ac_try="$ac_compile"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23506 esac
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_compile") 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
23515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23516 { (case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23519 esac
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_try") 2>&5
23522 ac_status=$?
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); }; } &&
23525 { ac_try='test -s conftest.$ac_objext'
23526 { (case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23529 esac
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_try") 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_cv_type_double=yes
23536 else
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540 ac_cv_type_double=no
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 fi
23545 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23546 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23547
23548 { echo "$as_me:$LINENO: checking size of double" >&5
23549 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
23550 if test "${ac_cv_sizeof_double+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23552 else
23553 if test "$ac_cv_type_double" = yes; then
23554 # The cast to long int works around a bug in the HP C Compiler
23555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23557 # This bug is HP SR number 8606223364.
23558 if test "$cross_compiling" = yes; then
23559 # Depending upon the size, compute the lo and hi bounds.
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h. */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 $ac_includes_default
23567 typedef double ac__type_sizeof_;
23568 int
23569 main ()
23570 {
23571 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23572 test_array @<:@0@:>@ = 0
23573
23574 ;
23575 return 0;
23576 }
23577 _ACEOF
23578 rm -f conftest.$ac_objext
23579 if { (ac_try="$ac_compile"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_compile") 2>conftest.er1
23586 ac_status=$?
23587 grep -v '^ *+' conftest.er1 >conftest.err
23588 rm -f conftest.er1
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23593 { (case "(($ac_try" in
23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23596 esac
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_try") 2>&5
23599 ac_status=$?
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; } &&
23602 { ac_try='test -s conftest.$ac_objext'
23603 { (case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23606 esac
23607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23608 (eval "$ac_try") 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; }; then
23612 ac_lo=0 ac_mid=0
23613 while :; do
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h. */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 $ac_includes_default
23621 typedef double ac__type_sizeof_;
23622 int
23623 main ()
23624 {
23625 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23626 test_array @<:@0@:>@ = 0
23627
23628 ;
23629 return 0;
23630 }
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23640 ac_status=$?
23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } &&
23646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23647 { (case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23650 esac
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_try") 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
23657 { (case "(($ac_try" in
23658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659 *) ac_try_echo=$ac_try;;
23660 esac
23661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662 (eval "$ac_try") 2>&5
23663 ac_status=$?
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; }; then
23666 ac_hi=$ac_mid; break
23667 else
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23670
23671 ac_lo=`expr $ac_mid + 1`
23672 if test $ac_lo -le $ac_mid; then
23673 ac_lo= ac_hi=
23674 break
23675 fi
23676 ac_mid=`expr 2 '*' $ac_mid + 1`
23677 fi
23678
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680 done
23681 else
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685 cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h. */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 $ac_includes_default
23692 typedef double ac__type_sizeof_;
23693 int
23694 main ()
23695 {
23696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23697 test_array @<:@0@:>@ = 0
23698
23699 ;
23700 return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest.$ac_objext
23704 if { (ac_try="$ac_compile"
23705 case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23708 esac
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_compile") 2>conftest.er1
23711 ac_status=$?
23712 grep -v '^ *+' conftest.er1 >conftest.err
23713 rm -f conftest.er1
23714 cat conftest.err >&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } &&
23717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23718 { (case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_try") 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; } &&
23727 { ac_try='test -s conftest.$ac_objext'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23737 ac_hi=-1 ac_mid=-1
23738 while :; do
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h. */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 $ac_includes_default
23746 typedef double ac__type_sizeof_;
23747 int
23748 main ()
23749 {
23750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23751 test_array @<:@0@:>@ = 0
23752
23753 ;
23754 return 0;
23755 }
23756 _ACEOF
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_compile") 2>conftest.er1
23765 ac_status=$?
23766 grep -v '^ *+' conftest.er1 >conftest.err
23767 rm -f conftest.er1
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } &&
23771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23772 { (case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23775 esac
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_try") 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; } &&
23781 { ac_try='test -s conftest.$ac_objext'
23782 { (case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_try") 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_lo=$ac_mid; break
23792 else
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 ac_hi=`expr '(' $ac_mid ')' - 1`
23797 if test $ac_mid -le $ac_hi; then
23798 ac_lo= ac_hi=
23799 break
23800 fi
23801 ac_mid=`expr 2 '*' $ac_mid`
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 done
23806 else
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810 ac_lo= ac_hi=
23811 fi
23812
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 fi
23815
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 # Binary search between lo and hi bounds.
23818 while test "x$ac_lo" != "x$ac_hi"; do
23819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23820 cat >conftest.$ac_ext <<_ACEOF
23821 /* confdefs.h. */
23822 _ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 $ac_includes_default
23827 typedef double ac__type_sizeof_;
23828 int
23829 main ()
23830 {
23831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23832 test_array @<:@0@:>@ = 0
23833
23834 ;
23835 return 0;
23836 }
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843 esac
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23846 ac_status=$?
23847 grep -v '^ *+' conftest.er1 >conftest.err
23848 rm -f conftest.er1
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } &&
23852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23853 { (case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_try") 2>&5
23859 ac_status=$?
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; } &&
23862 { ac_try='test -s conftest.$ac_objext'
23863 { (case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866 esac
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_try") 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 ac_hi=$ac_mid
23873 else
23874 echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877 ac_lo=`expr '(' $ac_mid ')' + 1`
23878 fi
23879
23880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881 done
23882 case $ac_lo in
23883 ?*) ac_cv_sizeof_double=$ac_lo;;
23884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
23885 See \`config.log' for more details." >&5
23886 echo "$as_me: error: cannot compute sizeof (double)
23887 See \`config.log' for more details." >&2;}
23888 { (exit 77); exit 77; }; } ;;
23889 esac
23890 else
23891 cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h. */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23897 $ac_includes_default
23898 typedef double ac__type_sizeof_;
23899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23901 @%:@include <stdio.h>
23902 @%:@include <stdlib.h>
23903 int
23904 main ()
23905 {
23906
23907 FILE *f = fopen ("conftest.val", "w");
23908 if (! f)
23909 return 1;
23910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23911 {
23912 long int i = longval ();
23913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23914 return 1;
23915 fprintf (f, "%ld\n", i);
23916 }
23917 else
23918 {
23919 unsigned long int i = ulongval ();
23920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23921 return 1;
23922 fprintf (f, "%lu\n", i);
23923 }
23924 return ferror (f) || fclose (f) != 0;
23925
23926 ;
23927 return 0;
23928 }
23929 _ACEOF
23930 rm -f conftest$ac_exeext
23931 if { (ac_try="$ac_link"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935 esac
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_link") 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23941 { (case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23944 esac
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_try") 2>&5
23947 ac_status=$?
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 ac_cv_sizeof_double=`cat conftest.val`
23951 else
23952 echo "$as_me: program exited with status $ac_status" >&5
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23955
23956 ( exit $ac_status )
23957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
23958 See \`config.log' for more details." >&5
23959 echo "$as_me: error: cannot compute sizeof (double)
23960 See \`config.log' for more details." >&2;}
23961 { (exit 77); exit 77; }; }
23962 fi
23963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23964 fi
23965 rm -f conftest.val
23966 else
23967 ac_cv_sizeof_double=0
23968 fi
23969 fi
23970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
23971 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
23972 cat >>confdefs.h <<_ACEOF
23973 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
23974 _ACEOF
23975
23976
23977 { echo "$as_me:$LINENO: checking for long long" >&5
23978 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23979 if test "${ac_cv_type_long_long+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 else
23982 cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h. */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 $ac_includes_default
23989 typedef long long ac__type_new_;
23990 int
23991 main ()
23992 {
23993 if ((ac__type_new_ *) 0)
23994 return 0;
23995 if (sizeof (ac__type_new_))
23996 return 0;
23997 ;
23998 return 0;
23999 }
24000 _ACEOF
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_compile") 2>conftest.er1
24009 ac_status=$?
24010 grep -v '^ *+' conftest.er1 >conftest.err
24011 rm -f conftest.er1
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } &&
24015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24016 { (case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_try") 2>&5
24022 ac_status=$?
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; } &&
24025 { ac_try='test -s conftest.$ac_objext'
24026 { (case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24029 esac
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_try") 2>&5
24032 ac_status=$?
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_cv_type_long_long=yes
24036 else
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24039
24040 ac_cv_type_long_long=no
24041 fi
24042
24043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24044 fi
24045 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24046 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24047
24048 { echo "$as_me:$LINENO: checking size of long long" >&5
24049 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24050 if test "${ac_cv_sizeof_long_long+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053 if test "$ac_cv_type_long_long" = yes; then
24054 # The cast to long int works around a bug in the HP C Compiler
24055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24057 # This bug is HP SR number 8606223364.
24058 if test "$cross_compiling" = yes; then
24059 # Depending upon the size, compute the lo and hi bounds.
24060 cat >conftest.$ac_ext <<_ACEOF
24061 /* confdefs.h. */
24062 _ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 $ac_includes_default
24067 typedef long long ac__type_sizeof_;
24068 int
24069 main ()
24070 {
24071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24072 test_array @<:@0@:>@ = 0
24073
24074 ;
24075 return 0;
24076 }
24077 _ACEOF
24078 rm -f conftest.$ac_objext
24079 if { (ac_try="$ac_compile"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24083 esac
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085 (eval "$ac_compile") 2>conftest.er1
24086 ac_status=$?
24087 grep -v '^ *+' conftest.er1 >conftest.err
24088 rm -f conftest.er1
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } &&
24092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24093 { (case "(($ac_try" in
24094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095 *) ac_try_echo=$ac_try;;
24096 esac
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098 (eval "$ac_try") 2>&5
24099 ac_status=$?
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; } &&
24102 { ac_try='test -s conftest.$ac_objext'
24103 { (case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_try") 2>&5
24109 ac_status=$?
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 ac_lo=0 ac_mid=0
24113 while :; do
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h. */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24120 $ac_includes_default
24121 typedef long long ac__type_sizeof_;
24122 int
24123 main ()
24124 {
24125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24126 test_array @<:@0@:>@ = 0
24127
24128 ;
24129 return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_compile") 2>conftest.er1
24140 ac_status=$?
24141 grep -v '^ *+' conftest.er1 >conftest.err
24142 rm -f conftest.er1
24143 cat conftest.err >&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
24146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24147 { (case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_try") 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest.$ac_objext'
24157 { (case "(($ac_try" in
24158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159 *) ac_try_echo=$ac_try;;
24160 esac
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162 (eval "$ac_try") 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; }; then
24166 ac_hi=$ac_mid; break
24167 else
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171 ac_lo=`expr $ac_mid + 1`
24172 if test $ac_lo -le $ac_mid; then
24173 ac_lo= ac_hi=
24174 break
24175 fi
24176 ac_mid=`expr 2 '*' $ac_mid + 1`
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 done
24181 else
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h. */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24191 $ac_includes_default
24192 typedef long long ac__type_sizeof_;
24193 int
24194 main ()
24195 {
24196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24197 test_array @<:@0@:>@ = 0
24198
24199 ;
24200 return 0;
24201 }
24202 _ACEOF
24203 rm -f conftest.$ac_objext
24204 if { (ac_try="$ac_compile"
24205 case "(($ac_try" in
24206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24207 *) ac_try_echo=$ac_try;;
24208 esac
24209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24210 (eval "$ac_compile") 2>conftest.er1
24211 ac_status=$?
24212 grep -v '^ *+' conftest.er1 >conftest.err
24213 rm -f conftest.er1
24214 cat conftest.err >&5
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } &&
24217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24218 { (case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24221 esac
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223 (eval "$ac_try") 2>&5
24224 ac_status=$?
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; } &&
24227 { ac_try='test -s conftest.$ac_objext'
24228 { (case "(($ac_try" in
24229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24231 esac
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233 (eval "$ac_try") 2>&5
24234 ac_status=$?
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); }; }; then
24237 ac_hi=-1 ac_mid=-1
24238 while :; do
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h. */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 $ac_includes_default
24246 typedef long long ac__type_sizeof_;
24247 int
24248 main ()
24249 {
24250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24251 test_array @<:@0@:>@ = 0
24252
24253 ;
24254 return 0;
24255 }
24256 _ACEOF
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24262 esac
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } &&
24271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24272 { (case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_try") 2>&5
24278 ac_status=$?
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; } &&
24281 { ac_try='test -s conftest.$ac_objext'
24282 { (case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24285 esac
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287 (eval "$ac_try") 2>&5
24288 ac_status=$?
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); }; }; then
24291 ac_lo=$ac_mid; break
24292 else
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 ac_hi=`expr '(' $ac_mid ')' - 1`
24297 if test $ac_mid -le $ac_hi; then
24298 ac_lo= ac_hi=
24299 break
24300 fi
24301 ac_mid=`expr 2 '*' $ac_mid`
24302 fi
24303
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 done
24306 else
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310 ac_lo= ac_hi=
24311 fi
24312
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24314 fi
24315
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 # Binary search between lo and hi bounds.
24318 while test "x$ac_lo" != "x$ac_hi"; do
24319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24320 cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h. */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 $ac_includes_default
24327 typedef long long ac__type_sizeof_;
24328 int
24329 main ()
24330 {
24331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24332 test_array @<:@0@:>@ = 0
24333
24334 ;
24335 return 0;
24336 }
24337 _ACEOF
24338 rm -f conftest.$ac_objext
24339 if { (ac_try="$ac_compile"
24340 case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24343 esac
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24346 ac_status=$?
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24353 { (case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24356 esac
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_try") 2>&5
24359 ac_status=$?
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; } &&
24362 { ac_try='test -s conftest.$ac_objext'
24363 { (case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24366 esac
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_try") 2>&5
24369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; }; then
24372 ac_hi=$ac_mid
24373 else
24374 echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24376
24377 ac_lo=`expr '(' $ac_mid ')' + 1`
24378 fi
24379
24380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24381 done
24382 case $ac_lo in
24383 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24385 See \`config.log' for more details." >&5
24386 echo "$as_me: error: cannot compute sizeof (long long)
24387 See \`config.log' for more details." >&2;}
24388 { (exit 77); exit 77; }; } ;;
24389 esac
24390 else
24391 cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h. */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 $ac_includes_default
24398 typedef long long ac__type_sizeof_;
24399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24401 @%:@include <stdio.h>
24402 @%:@include <stdlib.h>
24403 int
24404 main ()
24405 {
24406
24407 FILE *f = fopen ("conftest.val", "w");
24408 if (! f)
24409 return 1;
24410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24411 {
24412 long int i = longval ();
24413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24414 return 1;
24415 fprintf (f, "%ld\n", i);
24416 }
24417 else
24418 {
24419 unsigned long int i = ulongval ();
24420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24421 return 1;
24422 fprintf (f, "%lu\n", i);
24423 }
24424 return ferror (f) || fclose (f) != 0;
24425
24426 ;
24427 return 0;
24428 }
24429 _ACEOF
24430 rm -f conftest$ac_exeext
24431 if { (ac_try="$ac_link"
24432 case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24435 esac
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437 (eval "$ac_link") 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24441 { (case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_try") 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24450 ac_cv_sizeof_long_long=`cat conftest.val`
24451 else
24452 echo "$as_me: program exited with status $ac_status" >&5
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456 ( exit $ac_status )
24457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24458 See \`config.log' for more details." >&5
24459 echo "$as_me: error: cannot compute sizeof (long long)
24460 See \`config.log' for more details." >&2;}
24461 { (exit 77); exit 77; }; }
24462 fi
24463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24464 fi
24465 rm -f conftest.val
24466 else
24467 ac_cv_sizeof_long_long=0
24468 fi
24469 fi
24470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24471 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24472 cat >>confdefs.h <<_ACEOF
24473 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24474 _ACEOF
24475
24476
24477
24478 { echo "$as_me:$LINENO: checking for u_int" >&5
24479 echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
24480 if test "${ac_cv_type_u_int+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483 cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h. */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 $ac_includes_default
24490 typedef u_int ac__type_new_;
24491 int
24492 main ()
24493 {
24494 if ((ac__type_new_ *) 0)
24495 return 0;
24496 if (sizeof (ac__type_new_))
24497 return 0;
24498 ;
24499 return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24507 esac
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24510 ac_status=$?
24511 grep -v '^ *+' conftest.er1 >conftest.err
24512 rm -f conftest.er1
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } &&
24516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24517 { (case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_try") 2>&5
24523 ac_status=$?
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest.$ac_objext'
24527 { (case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24530 esac
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_try") 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
24536 ac_cv_type_u_int=yes
24537 else
24538 echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24540
24541 ac_cv_type_u_int=no
24542 fi
24543
24544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 fi
24546 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
24547 echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
24548 if test $ac_cv_type_u_int = yes; then
24549 :
24550 else
24551
24552 cat >>confdefs.h <<_ACEOF
24553 @%:@define u_int unsigned int
24554 _ACEOF
24555
24556 fi
24557
24558 { echo "$as_me:$LINENO: checking for u_long" >&5
24559 echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
24560 if test "${ac_cv_type_u_long+set}" = set; then
24561 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 else
24563 cat >conftest.$ac_ext <<_ACEOF
24564 /* confdefs.h. */
24565 _ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h. */
24569 $ac_includes_default
24570 typedef u_long ac__type_new_;
24571 int
24572 main ()
24573 {
24574 if ((ac__type_new_ *) 0)
24575 return 0;
24576 if (sizeof (ac__type_new_))
24577 return 0;
24578 ;
24579 return 0;
24580 }
24581 _ACEOF
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24590 ac_status=$?
24591 grep -v '^ *+' conftest.er1 >conftest.err
24592 rm -f conftest.er1
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24597 { (case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_try") 2>&5
24603 ac_status=$?
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; } &&
24606 { ac_try='test -s conftest.$ac_objext'
24607 { (case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24610 esac
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612 (eval "$ac_try") 2>&5
24613 ac_status=$?
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24616 ac_cv_type_u_long=yes
24617 else
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621 ac_cv_type_u_long=no
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625 fi
24626 { echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
24627 echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
24628 if test $ac_cv_type_u_long = yes; then
24629 :
24630 else
24631
24632 cat >>confdefs.h <<_ACEOF
24633 @%:@define u_long unsigned long
24634 _ACEOF
24635
24636 fi
24637
24638
24639
24640 if test "$ac_cv_sizeof_short" = 2; then
24641 { echo "$as_me:$LINENO: checking for bits16_t" >&5
24642 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6; }
24643 if test "${ac_cv_type_bits16_t+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646 cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h. */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24652 $ac_includes_default
24653 typedef bits16_t ac__type_new_;
24654 int
24655 main ()
24656 {
24657 if ((ac__type_new_ *) 0)
24658 return 0;
24659 if (sizeof (ac__type_new_))
24660 return 0;
24661 ;
24662 return 0;
24663 }
24664 _ACEOF
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24673 ac_status=$?
24674 grep -v '^ *+' conftest.er1 >conftest.err
24675 rm -f conftest.er1
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } &&
24679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; } &&
24689 { ac_try='test -s conftest.$ac_objext'
24690 { (case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_try") 2>&5
24696 ac_status=$?
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_type_bits16_t=yes
24700 else
24701 echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704 ac_cv_type_bits16_t=no
24705 fi
24706
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24708 fi
24709 { echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
24710 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6; }
24711 if test $ac_cv_type_bits16_t = yes; then
24712 :
24713 else
24714
24715 cat >>confdefs.h <<_ACEOF
24716 @%:@define bits16_t short
24717 _ACEOF
24718
24719 fi
24720
24721 elif test "$ac_cv_sizeof_char" = 2; then
24722 { echo "$as_me:$LINENO: checking for bits16_t" >&5
24723 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6; }
24724 if test "${ac_cv_type_bits16_t+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h. */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 typedef bits16_t ac__type_new_;
24735 int
24736 main ()
24737 {
24738 if ((ac__type_new_ *) 0)
24739 return 0;
24740 if (sizeof (ac__type_new_))
24741 return 0;
24742 ;
24743 return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_compile") 2>conftest.er1
24754 ac_status=$?
24755 grep -v '^ *+' conftest.er1 >conftest.err
24756 rm -f conftest.er1
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761 { (case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24764 esac
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766 (eval "$ac_try") 2>&5
24767 ac_status=$?
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; } &&
24770 { ac_try='test -s conftest.$ac_objext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_try") 2>&5
24777 ac_status=$?
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_type_bits16_t=yes
24781 else
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785 ac_cv_type_bits16_t=no
24786 fi
24787
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 fi
24790 { echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
24791 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6; }
24792 if test $ac_cv_type_bits16_t = yes; then
24793 :
24794 else
24795
24796 cat >>confdefs.h <<_ACEOF
24797 @%:@define bits16_t char
24798 _ACEOF
24799
24800 fi
24801
24802 else
24803 { echo "$as_me:$LINENO: checking for bits16_t" >&5
24804 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6; }
24805 if test "${ac_cv_type_bits16_t+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808 cat >conftest.$ac_ext <<_ACEOF
24809 /* confdefs.h. */
24810 _ACEOF
24811 cat confdefs.h >>conftest.$ac_ext
24812 cat >>conftest.$ac_ext <<_ACEOF
24813 /* end confdefs.h. */
24814 $ac_includes_default
24815 typedef bits16_t ac__type_new_;
24816 int
24817 main ()
24818 {
24819 if ((ac__type_new_ *) 0)
24820 return 0;
24821 if (sizeof (ac__type_new_))
24822 return 0;
24823 ;
24824 return 0;
24825 }
24826 _ACEOF
24827 rm -f conftest.$ac_objext
24828 if { (ac_try="$ac_compile"
24829 case "(($ac_try" in
24830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831 *) ac_try_echo=$ac_try;;
24832 esac
24833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24834 (eval "$ac_compile") 2>conftest.er1
24835 ac_status=$?
24836 grep -v '^ *+' conftest.er1 >conftest.err
24837 rm -f conftest.er1
24838 cat conftest.err >&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } &&
24841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24842 { (case "(($ac_try" in
24843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 *) ac_try_echo=$ac_try;;
24845 esac
24846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847 (eval "$ac_try") 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest.$ac_objext'
24852 { (case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855 esac
24856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24857 (eval "$ac_try") 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24861 ac_cv_type_bits16_t=yes
24862 else
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866 ac_cv_type_bits16_t=no
24867 fi
24868
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 fi
24871 { echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
24872 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6; }
24873 if test $ac_cv_type_bits16_t = yes; then
24874 :
24875 else
24876
24877 cat >>confdefs.h <<_ACEOF
24878 @%:@define bits16_t short
24879 _ACEOF
24880
24881 fi
24882
24883 fi
24884
24885
24886 if test "$ac_cv_sizeof_short" = 2; then
24887 { echo "$as_me:$LINENO: checking for u_bits16_t" >&5
24888 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6; }
24889 if test "${ac_cv_type_u_bits16_t+set}" = set; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24891 else
24892 cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h. */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24898 $ac_includes_default
24899 typedef u_bits16_t ac__type_new_;
24900 int
24901 main ()
24902 {
24903 if ((ac__type_new_ *) 0)
24904 return 0;
24905 if (sizeof (ac__type_new_))
24906 return 0;
24907 ;
24908 return 0;
24909 }
24910 _ACEOF
24911 rm -f conftest.$ac_objext
24912 if { (ac_try="$ac_compile"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916 esac
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_compile") 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest.$ac_objext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ac_cv_type_u_bits16_t=yes
24946 else
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950 ac_cv_type_u_bits16_t=no
24951 fi
24952
24953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24954 fi
24955 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24956 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6; }
24957 if test $ac_cv_type_u_bits16_t = yes; then
24958 :
24959 else
24960
24961 cat >>confdefs.h <<_ACEOF
24962 @%:@define u_bits16_t unsigned short
24963 _ACEOF
24964
24965 fi
24966
24967 elif test "$ac_cv_sizeof_char" = 2; then
24968 { echo "$as_me:$LINENO: checking for u_bits16_t" >&5
24969 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6; }
24970 if test "${ac_cv_type_u_bits16_t+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973 cat >conftest.$ac_ext <<_ACEOF
24974 /* confdefs.h. */
24975 _ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 $ac_includes_default
24980 typedef u_bits16_t ac__type_new_;
24981 int
24982 main ()
24983 {
24984 if ((ac__type_new_ *) 0)
24985 return 0;
24986 if (sizeof (ac__type_new_))
24987 return 0;
24988 ;
24989 return 0;
24990 }
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
25006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25007 { (case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25010 esac
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_try") 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; } &&
25016 { ac_try='test -s conftest.$ac_objext'
25017 { (case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25020 esac
25021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022 (eval "$ac_try") 2>&5
25023 ac_status=$?
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25026 ac_cv_type_u_bits16_t=yes
25027 else
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 ac_cv_type_u_bits16_t=no
25032 fi
25033
25034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25035 fi
25036 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
25037 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6; }
25038 if test $ac_cv_type_u_bits16_t = yes; then
25039 :
25040 else
25041
25042 cat >>confdefs.h <<_ACEOF
25043 @%:@define u_bits16_t unsigned char
25044 _ACEOF
25045
25046 fi
25047
25048 else
25049 { echo "$as_me:$LINENO: checking for u_bits16_t" >&5
25050 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6; }
25051 if test "${ac_cv_type_u_bits16_t+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 else
25054 cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h. */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 $ac_includes_default
25061 typedef u_bits16_t ac__type_new_;
25062 int
25063 main ()
25064 {
25065 if ((ac__type_new_ *) 0)
25066 return 0;
25067 if (sizeof (ac__type_new_))
25068 return 0;
25069 ;
25070 return 0;
25071 }
25072 _ACEOF
25073 rm -f conftest.$ac_objext
25074 if { (ac_try="$ac_compile"
25075 case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25078 esac
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_compile") 2>conftest.er1
25081 ac_status=$?
25082 grep -v '^ *+' conftest.er1 >conftest.err
25083 rm -f conftest.er1
25084 cat conftest.err >&5
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } &&
25087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25088 { (case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_try") 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest.$ac_objext'
25098 { (case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25101 esac
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_try") 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; }; then
25107 ac_cv_type_u_bits16_t=yes
25108 else
25109 echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112 ac_cv_type_u_bits16_t=no
25113 fi
25114
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116 fi
25117 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
25118 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6; }
25119 if test $ac_cv_type_u_bits16_t = yes; then
25120 :
25121 else
25122
25123 cat >>confdefs.h <<_ACEOF
25124 @%:@define u_bits16_t unsigned short
25125 _ACEOF
25126
25127 fi
25128
25129 fi
25130
25131
25132 if test "$ac_cv_sizeof_int" = 4; then
25133 { echo "$as_me:$LINENO: checking for bits32_t" >&5
25134 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6; }
25135 if test "${ac_cv_type_bits32_t+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138 cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h. */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25144 $ac_includes_default
25145 typedef bits32_t ac__type_new_;
25146 int
25147 main ()
25148 {
25149 if ((ac__type_new_ *) 0)
25150 return 0;
25151 if (sizeof (ac__type_new_))
25152 return 0;
25153 ;
25154 return 0;
25155 }
25156 _ACEOF
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25162 esac
25163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25164 (eval "$ac_compile") 2>conftest.er1
25165 ac_status=$?
25166 grep -v '^ *+' conftest.er1 >conftest.err
25167 rm -f conftest.er1
25168 cat conftest.err >&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } &&
25171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25172 { (case "(($ac_try" in
25173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174 *) ac_try_echo=$ac_try;;
25175 esac
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177 (eval "$ac_try") 2>&5
25178 ac_status=$?
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); }; } &&
25181 { ac_try='test -s conftest.$ac_objext'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25185 esac
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_cv_type_bits32_t=yes
25192 else
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196 ac_cv_type_bits32_t=no
25197 fi
25198
25199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25200 fi
25201 { echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
25202 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6; }
25203 if test $ac_cv_type_bits32_t = yes; then
25204 :
25205 else
25206
25207 cat >>confdefs.h <<_ACEOF
25208 @%:@define bits32_t int
25209 _ACEOF
25210
25211 fi
25212
25213 elif test "$ac_cv_sizeof_long" = 4; then
25214 { echo "$as_me:$LINENO: checking for bits32_t" >&5
25215 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6; }
25216 if test "${ac_cv_type_bits32_t+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219 cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h. */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 $ac_includes_default
25226 typedef bits32_t ac__type_new_;
25227 int
25228 main ()
25229 {
25230 if ((ac__type_new_ *) 0)
25231 return 0;
25232 if (sizeof (ac__type_new_))
25233 return 0;
25234 ;
25235 return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext
25239 if { (ac_try="$ac_compile"
25240 case "(($ac_try" in
25241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242 *) ac_try_echo=$ac_try;;
25243 esac
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245 (eval "$ac_compile") 2>conftest.er1
25246 ac_status=$?
25247 grep -v '^ *+' conftest.er1 >conftest.err
25248 rm -f conftest.er1
25249 cat conftest.err >&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } &&
25252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25253 { (case "(($ac_try" in
25254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255 *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258 (eval "$ac_try") 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; } &&
25262 { ac_try='test -s conftest.$ac_objext'
25263 { (case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25266 esac
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_try") 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25272 ac_cv_type_bits32_t=yes
25273 else
25274 echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25276
25277 ac_cv_type_bits32_t=no
25278 fi
25279
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 fi
25282 { echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
25283 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6; }
25284 if test $ac_cv_type_bits32_t = yes; then
25285 :
25286 else
25287
25288 cat >>confdefs.h <<_ACEOF
25289 @%:@define bits32_t long
25290 _ACEOF
25291
25292 fi
25293
25294 else
25295 { echo "$as_me:$LINENO: checking for bits32_t" >&5
25296 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6; }
25297 if test "${ac_cv_type_bits32_t+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 else
25300 cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h. */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 typedef bits32_t ac__type_new_;
25308 int
25309 main ()
25310 {
25311 if ((ac__type_new_ *) 0)
25312 return 0;
25313 if (sizeof (ac__type_new_))
25314 return 0;
25315 ;
25316 return 0;
25317 }
25318 _ACEOF
25319 rm -f conftest.$ac_objext
25320 if { (ac_try="$ac_compile"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326 (eval "$ac_compile") 2>conftest.er1
25327 ac_status=$?
25328 grep -v '^ *+' conftest.er1 >conftest.err
25329 rm -f conftest.er1
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
25333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25334 { (case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_try") 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest.$ac_objext'
25344 { (case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25347 esac
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349 (eval "$ac_try") 2>&5
25350 ac_status=$?
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_type_bits32_t=yes
25354 else
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25357
25358 ac_cv_type_bits32_t=no
25359 fi
25360
25361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25362 fi
25363 { echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
25364 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6; }
25365 if test $ac_cv_type_bits32_t = yes; then
25366 :
25367 else
25368
25369 cat >>confdefs.h <<_ACEOF
25370 @%:@define bits32_t int
25371 _ACEOF
25372
25373 fi
25374
25375 fi
25376
25377
25378 if test "$ac_cv_sizeof_int" = 4; then
25379 { echo "$as_me:$LINENO: checking for u_bits32_t" >&5
25380 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6; }
25381 if test "${ac_cv_type_u_bits32_t+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384 cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h. */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 $ac_includes_default
25391 typedef u_bits32_t ac__type_new_;
25392 int
25393 main ()
25394 {
25395 if ((ac__type_new_ *) 0)
25396 return 0;
25397 if (sizeof (ac__type_new_))
25398 return 0;
25399 ;
25400 return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext
25404 if { (ac_try="$ac_compile"
25405 case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25408 esac
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_compile") 2>conftest.er1
25411 ac_status=$?
25412 grep -v '^ *+' conftest.er1 >conftest.err
25413 rm -f conftest.er1
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25418 { (case "(($ac_try" in
25419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420 *) ac_try_echo=$ac_try;;
25421 esac
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423 (eval "$ac_try") 2>&5
25424 ac_status=$?
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } &&
25427 { ac_try='test -s conftest.$ac_objext'
25428 { (case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25431 esac
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_try") 2>&5
25434 ac_status=$?
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25437 ac_cv_type_u_bits32_t=yes
25438 else
25439 echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25441
25442 ac_cv_type_u_bits32_t=no
25443 fi
25444
25445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446 fi
25447 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
25448 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6; }
25449 if test $ac_cv_type_u_bits32_t = yes; then
25450 :
25451 else
25452
25453 cat >>confdefs.h <<_ACEOF
25454 @%:@define u_bits32_t unsigned int
25455 _ACEOF
25456
25457 fi
25458
25459 elif test "$ac_cv_sizeof_long" = 4; then
25460 { echo "$as_me:$LINENO: checking for u_bits32_t" >&5
25461 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6; }
25462 if test "${ac_cv_type_u_bits32_t+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465 cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h. */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 $ac_includes_default
25472 typedef u_bits32_t ac__type_new_;
25473 int
25474 main ()
25475 {
25476 if ((ac__type_new_ *) 0)
25477 return 0;
25478 if (sizeof (ac__type_new_))
25479 return 0;
25480 ;
25481 return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext
25485 if { (ac_try="$ac_compile"
25486 case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_compile") 2>conftest.er1
25492 ac_status=$?
25493 grep -v '^ *+' conftest.er1 >conftest.err
25494 rm -f conftest.er1
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
25498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25499 { (case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_try") 2>&5
25505 ac_status=$?
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; } &&
25508 { ac_try='test -s conftest.$ac_objext'
25509 { (case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25512 esac
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_try") 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_type_u_bits32_t=yes
25519 else
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523 ac_cv_type_u_bits32_t=no
25524 fi
25525
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 fi
25528 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
25529 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6; }
25530 if test $ac_cv_type_u_bits32_t = yes; then
25531 :
25532 else
25533
25534 cat >>confdefs.h <<_ACEOF
25535 @%:@define u_bits32_t unsigned long
25536 _ACEOF
25537
25538 fi
25539
25540 else
25541 { echo "$as_me:$LINENO: checking for u_bits32_t" >&5
25542 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6; }
25543 if test "${ac_cv_type_u_bits32_t+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546 cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h. */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 typedef u_bits32_t ac__type_new_;
25554 int
25555 main ()
25556 {
25557 if ((ac__type_new_ *) 0)
25558 return 0;
25559 if (sizeof (ac__type_new_))
25560 return 0;
25561 ;
25562 return 0;
25563 }
25564 _ACEOF
25565 rm -f conftest.$ac_objext
25566 if { (ac_try="$ac_compile"
25567 case "(($ac_try" in
25568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25570 esac
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572 (eval "$ac_compile") 2>conftest.er1
25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } &&
25579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25580 { (case "(($ac_try" in
25581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25582 *) ac_try_echo=$ac_try;;
25583 esac
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585 (eval "$ac_try") 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; } &&
25589 { ac_try='test -s conftest.$ac_objext'
25590 { (case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25593 esac
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595 (eval "$ac_try") 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 ac_cv_type_u_bits32_t=yes
25600 else
25601 echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25603
25604 ac_cv_type_u_bits32_t=no
25605 fi
25606
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 fi
25609 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
25610 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6; }
25611 if test $ac_cv_type_u_bits32_t = yes; then
25612 :
25613 else
25614
25615 cat >>confdefs.h <<_ACEOF
25616 @%:@define u_bits32_t unsigned int
25617 _ACEOF
25618
25619 fi
25620
25621 fi
25622
25623
25624 if test "$ac_cv_sizeof_char_p" = 8; then
25625 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25626 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25627 if test "${ac_cv_type_bits64_t+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630 cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h. */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25637 typedef bits64_t ac__type_new_;
25638 int
25639 main ()
25640 {
25641 if ((ac__type_new_ *) 0)
25642 return 0;
25643 if (sizeof (ac__type_new_))
25644 return 0;
25645 ;
25646 return 0;
25647 }
25648 _ACEOF
25649 rm -f conftest.$ac_objext
25650 if { (ac_try="$ac_compile"
25651 case "(($ac_try" in
25652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25653 *) ac_try_echo=$ac_try;;
25654 esac
25655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25656 (eval "$ac_compile") 2>conftest.er1
25657 ac_status=$?
25658 grep -v '^ *+' conftest.er1 >conftest.err
25659 rm -f conftest.er1
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25664 { (case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25667 esac
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_try") 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; } &&
25673 { ac_try='test -s conftest.$ac_objext'
25674 { (case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25677 esac
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_try") 2>&5
25680 ac_status=$?
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_type_bits64_t=yes
25684 else
25685 echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25687
25688 ac_cv_type_bits64_t=no
25689 fi
25690
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692 fi
25693 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25694 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25695 if test $ac_cv_type_bits64_t = yes; then
25696 :
25697 else
25698
25699 cat >>confdefs.h <<_ACEOF
25700 @%:@define bits64_t char *
25701 _ACEOF
25702
25703 fi
25704
25705 elif test "$ac_cv_sizeof_double" = 8; then
25706 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25707 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25708 if test "${ac_cv_type_bits64_t+set}" = set; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 else
25711 cat >conftest.$ac_ext <<_ACEOF
25712 /* confdefs.h. */
25713 _ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h. */
25717 $ac_includes_default
25718 typedef bits64_t ac__type_new_;
25719 int
25720 main ()
25721 {
25722 if ((ac__type_new_ *) 0)
25723 return 0;
25724 if (sizeof (ac__type_new_))
25725 return 0;
25726 ;
25727 return 0;
25728 }
25729 _ACEOF
25730 rm -f conftest.$ac_objext
25731 if { (ac_try="$ac_compile"
25732 case "(($ac_try" in
25733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734 *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737 (eval "$ac_compile") 2>conftest.er1
25738 ac_status=$?
25739 grep -v '^ *+' conftest.er1 >conftest.err
25740 rm -f conftest.er1
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
25744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25745 { (case "(($ac_try" in
25746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25747 *) ac_try_echo=$ac_try;;
25748 esac
25749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25750 (eval "$ac_try") 2>&5
25751 ac_status=$?
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); }; } &&
25754 { ac_try='test -s conftest.$ac_objext'
25755 { (case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25758 esac
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_try") 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
25764 ac_cv_type_bits64_t=yes
25765 else
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769 ac_cv_type_bits64_t=no
25770 fi
25771
25772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 fi
25774 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25775 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25776 if test $ac_cv_type_bits64_t = yes; then
25777 :
25778 else
25779
25780 cat >>confdefs.h <<_ACEOF
25781 @%:@define bits64_t double
25782 _ACEOF
25783
25784 fi
25785
25786 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
25787 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25788 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25789 if test "${ac_cv_type_bits64_t+set}" = set; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
25791 else
25792 cat >conftest.$ac_ext <<_ACEOF
25793 /* confdefs.h. */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h. */
25798 $ac_includes_default
25799 typedef bits64_t ac__type_new_;
25800 int
25801 main ()
25802 {
25803 if ((ac__type_new_ *) 0)
25804 return 0;
25805 if (sizeof (ac__type_new_))
25806 return 0;
25807 ;
25808 return 0;
25809 }
25810 _ACEOF
25811 rm -f conftest.$ac_objext
25812 if { (ac_try="$ac_compile"
25813 case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25816 esac
25817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_compile") 2>conftest.er1
25819 ac_status=$?
25820 grep -v '^ *+' conftest.er1 >conftest.err
25821 rm -f conftest.er1
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25826 { (case "(($ac_try" in
25827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 *) ac_try_echo=$ac_try;;
25829 esac
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831 (eval "$ac_try") 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; } &&
25835 { ac_try='test -s conftest.$ac_objext'
25836 { (case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25839 esac
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841 (eval "$ac_try") 2>&5
25842 ac_status=$?
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; }; then
25845 ac_cv_type_bits64_t=yes
25846 else
25847 echo "$as_me: failed program was:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25849
25850 ac_cv_type_bits64_t=no
25851 fi
25852
25853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25854 fi
25855 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25856 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25857 if test $ac_cv_type_bits64_t = yes; then
25858 :
25859 else
25860
25861 cat >>confdefs.h <<_ACEOF
25862 @%:@define bits64_t long long
25863 _ACEOF
25864
25865 fi
25866
25867 elif test "$ac_cv_sizeof_long" = 8; then
25868 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25869 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25870 if test "${ac_cv_type_bits64_t+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25873 cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h. */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25879 $ac_includes_default
25880 typedef bits64_t ac__type_new_;
25881 int
25882 main ()
25883 {
25884 if ((ac__type_new_ *) 0)
25885 return 0;
25886 if (sizeof (ac__type_new_))
25887 return 0;
25888 ;
25889 return 0;
25890 }
25891 _ACEOF
25892 rm -f conftest.$ac_objext
25893 if { (ac_try="$ac_compile"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25897 esac
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_compile") 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25907 { (case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25910 esac
25911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912 (eval "$ac_try") 2>&5
25913 ac_status=$?
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest.$ac_objext'
25917 { (case "(($ac_try" in
25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919 *) ac_try_echo=$ac_try;;
25920 esac
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_try") 2>&5
25923 ac_status=$?
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }; }; then
25926 ac_cv_type_bits64_t=yes
25927 else
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931 ac_cv_type_bits64_t=no
25932 fi
25933
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25935 fi
25936 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25937 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25938 if test $ac_cv_type_bits64_t = yes; then
25939 :
25940 else
25941
25942 cat >>confdefs.h <<_ACEOF
25943 @%:@define bits64_t long
25944 _ACEOF
25945
25946 fi
25947
25948 else
25949 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25950 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25951 if test "${ac_cv_type_bits64_t+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 else
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h. */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 $ac_includes_default
25961 typedef bits64_t ac__type_new_;
25962 int
25963 main ()
25964 {
25965 if ((ac__type_new_ *) 0)
25966 return 0;
25967 if (sizeof (ac__type_new_))
25968 return 0;
25969 ;
25970 return 0;
25971 }
25972 _ACEOF
25973 rm -f conftest.$ac_objext
25974 if { (ac_try="$ac_compile"
25975 case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25978 esac
25979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980 (eval "$ac_compile") 2>conftest.er1
25981 ac_status=$?
25982 grep -v '^ *+' conftest.er1 >conftest.err
25983 rm -f conftest.er1
25984 cat conftest.err >&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } &&
25987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25988 { (case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25991 esac
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993 (eval "$ac_try") 2>&5
25994 ac_status=$?
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; } &&
25997 { ac_try='test -s conftest.$ac_objext'
25998 { (case "(($ac_try" in
25999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000 *) ac_try_echo=$ac_try;;
26001 esac
26002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003 (eval "$ac_try") 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 ac_cv_type_bits64_t=yes
26008 else
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012 ac_cv_type_bits64_t=no
26013 fi
26014
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 fi
26017 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
26018 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
26019 if test $ac_cv_type_bits64_t = yes; then
26020 :
26021 else
26022
26023 cat >>confdefs.h <<_ACEOF
26024 @%:@define bits64_t double
26025 _ACEOF
26026
26027 fi
26028
26029 fi
26030
26031
26032
26033 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
26034 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26035 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26036 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26038 else
26039 cat >conftest.$ac_ext <<_ACEOF
26040 /* confdefs.h. */
26041 _ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26045 $ac_includes_default
26046 typedef ptrdiff_t ac__type_new_;
26047 int
26048 main ()
26049 {
26050 if ((ac__type_new_ *) 0)
26051 return 0;
26052 if (sizeof (ac__type_new_))
26053 return 0;
26054 ;
26055 return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext
26059 if { (ac_try="$ac_compile"
26060 case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26063 esac
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065 (eval "$ac_compile") 2>conftest.er1
26066 ac_status=$?
26067 grep -v '^ *+' conftest.er1 >conftest.err
26068 rm -f conftest.er1
26069 cat conftest.err >&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } &&
26072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26073 { (case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26076 esac
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078 (eval "$ac_try") 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; } &&
26082 { ac_try='test -s conftest.$ac_objext'
26083 { (case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26086 esac
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088 (eval "$ac_try") 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; }; then
26092 ac_cv_type_ptrdiff_t=yes
26093 else
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26096
26097 ac_cv_type_ptrdiff_t=no
26098 fi
26099
26100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101 fi
26102 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26103 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26104 if test $ac_cv_type_ptrdiff_t = yes; then
26105 :
26106 else
26107
26108 cat >>confdefs.h <<_ACEOF
26109 @%:@define ptrdiff_t int
26110 _ACEOF
26111
26112 fi
26113
26114 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
26115 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26116 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26117 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26119 else
26120 cat >conftest.$ac_ext <<_ACEOF
26121 /* confdefs.h. */
26122 _ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h. */
26126 $ac_includes_default
26127 typedef ptrdiff_t ac__type_new_;
26128 int
26129 main ()
26130 {
26131 if ((ac__type_new_ *) 0)
26132 return 0;
26133 if (sizeof (ac__type_new_))
26134 return 0;
26135 ;
26136 return 0;
26137 }
26138 _ACEOF
26139 rm -f conftest.$ac_objext
26140 if { (ac_try="$ac_compile"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26144 esac
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_compile") 2>conftest.er1
26147 ac_status=$?
26148 grep -v '^ *+' conftest.er1 >conftest.err
26149 rm -f conftest.er1
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } &&
26153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26154 { (case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26157 esac
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159 (eval "$ac_try") 2>&5
26160 ac_status=$?
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); }; } &&
26163 { ac_try='test -s conftest.$ac_objext'
26164 { (case "(($ac_try" in
26165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166 *) ac_try_echo=$ac_try;;
26167 esac
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_try") 2>&5
26170 ac_status=$?
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; }; then
26173 ac_cv_type_ptrdiff_t=yes
26174 else
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178 ac_cv_type_ptrdiff_t=no
26179 fi
26180
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 fi
26183 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26184 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26185 if test $ac_cv_type_ptrdiff_t = yes; then
26186 :
26187 else
26188
26189 cat >>confdefs.h <<_ACEOF
26190 @%:@define ptrdiff_t long
26191 _ACEOF
26192
26193 fi
26194
26195 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
26196 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26197 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26198 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26199 echo $ECHO_N "(cached) $ECHO_C" >&6
26200 else
26201 cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h. */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26207 $ac_includes_default
26208 typedef ptrdiff_t ac__type_new_;
26209 int
26210 main ()
26211 {
26212 if ((ac__type_new_ *) 0)
26213 return 0;
26214 if (sizeof (ac__type_new_))
26215 return 0;
26216 ;
26217 return 0;
26218 }
26219 _ACEOF
26220 rm -f conftest.$ac_objext
26221 if { (ac_try="$ac_compile"
26222 case "(($ac_try" in
26223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224 *) ac_try_echo=$ac_try;;
26225 esac
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26227 (eval "$ac_compile") 2>conftest.er1
26228 ac_status=$?
26229 grep -v '^ *+' conftest.er1 >conftest.err
26230 rm -f conftest.er1
26231 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } &&
26234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26235 { (case "(($ac_try" in
26236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26237 *) ac_try_echo=$ac_try;;
26238 esac
26239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26240 (eval "$ac_try") 2>&5
26241 ac_status=$?
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; } &&
26244 { ac_try='test -s conftest.$ac_objext'
26245 { (case "(($ac_try" in
26246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247 *) ac_try_echo=$ac_try;;
26248 esac
26249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26250 (eval "$ac_try") 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254 ac_cv_type_ptrdiff_t=yes
26255 else
26256 echo "$as_me: failed program was:" >&5
26257 sed 's/^/| /' conftest.$ac_ext >&5
26258
26259 ac_cv_type_ptrdiff_t=no
26260 fi
26261
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 fi
26264 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26265 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26266 if test $ac_cv_type_ptrdiff_t = yes; then
26267 :
26268 else
26269
26270 cat >>confdefs.h <<_ACEOF
26271 @%:@define ptrdiff_t long long
26272 _ACEOF
26273
26274 fi
26275
26276 else
26277 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26278 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26279 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26281 else
26282 cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h. */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26288 $ac_includes_default
26289 typedef ptrdiff_t ac__type_new_;
26290 int
26291 main ()
26292 {
26293 if ((ac__type_new_ *) 0)
26294 return 0;
26295 if (sizeof (ac__type_new_))
26296 return 0;
26297 ;
26298 return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext
26302 if { (ac_try="$ac_compile"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26306 esac
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_compile") 2>conftest.er1
26309 ac_status=$?
26310 grep -v '^ *+' conftest.er1 >conftest.err
26311 rm -f conftest.er1
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26316 { (case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321 (eval "$ac_try") 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest.$ac_objext'
26326 { (case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_try") 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ac_cv_type_ptrdiff_t=yes
26336 else
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340 ac_cv_type_ptrdiff_t=no
26341 fi
26342
26343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344 fi
26345 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26346 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26347 if test $ac_cv_type_ptrdiff_t = yes; then
26348 :
26349 else
26350
26351 cat >>confdefs.h <<_ACEOF
26352 @%:@define ptrdiff_t int
26353 _ACEOF
26354
26355 fi
26356
26357 fi
26358
26359
26360 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26361 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26362 if test "${ac_cv_header_stat_broken+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h. */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include <sys/types.h>
26372 #include <sys/stat.h>
26373
26374 #if defined S_ISBLK && defined S_IFDIR
26375 # if S_ISBLK (S_IFDIR)
26376 You lose.
26377 # endif
26378 #endif
26379
26380 #if defined S_ISBLK && defined S_IFCHR
26381 # if S_ISBLK (S_IFCHR)
26382 You lose.
26383 # endif
26384 #endif
26385
26386 #if defined S_ISLNK && defined S_IFREG
26387 # if S_ISLNK (S_IFREG)
26388 You lose.
26389 # endif
26390 #endif
26391
26392 #if defined S_ISSOCK && defined S_IFREG
26393 # if S_ISSOCK (S_IFREG)
26394 You lose.
26395 # endif
26396 #endif
26397
26398 _ACEOF
26399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26400 $EGREP "You lose" >/dev/null 2>&1; then
26401 ac_cv_header_stat_broken=yes
26402 else
26403 ac_cv_header_stat_broken=no
26404 fi
26405 rm -f conftest*
26406
26407 fi
26408 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26409 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26410 if test $ac_cv_header_stat_broken = yes; then
26411
26412 cat >>confdefs.h <<\_ACEOF
26413 @%:@define STAT_MACROS_BROKEN 1
26414 _ACEOF
26415
26416 fi
26417
26418
26419 { echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
26420 echo $ECHO_N "checking whether @%:@! works in shell scripts... $ECHO_C" >&6; }
26421 if test "${ac_cv_sys_interpreter+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 else
26424 echo '#! /bin/cat
26425 exit 69
26426 ' >conftest
26427 chmod u+x conftest
26428 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
26429 if test $? -ne 69; then
26430 ac_cv_sys_interpreter=yes
26431 else
26432 ac_cv_sys_interpreter=no
26433 fi
26434 rm -f conftest
26435 fi
26436 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
26437 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
26438 interpval=$ac_cv_sys_interpreter
26439
26440 if test $ac_cv_sys_interpreter = yes; then
26441 cat >>confdefs.h <<\_ACEOF
26442 @%:@define HAVE_HASH_BANG_EXEC 1
26443 _ACEOF
26444
26445 fi
26446
26447 if test "$ac_cv_func_lstat" = "no"; then
26448 { echo "$as_me:$LINENO: checking for lstat" >&5
26449 echo $ECHO_N "checking for lstat... $ECHO_C" >&6; }
26450 if test "${bash_cv_func_lstat+set}" = set; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452 else
26453 cat >conftest.$ac_ext <<_ACEOF
26454 /* confdefs.h. */
26455 _ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26459
26460 #include <sys/types.h>
26461 #include <sys/stat.h>
26462
26463 int
26464 main ()
26465 {
26466 lstat(".",(struct stat *)0);
26467 ;
26468 return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (ac_try="$ac_link"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26476 esac
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478 (eval "$ac_link") 2>conftest.er1
26479 ac_status=$?
26480 grep -v '^ *+' conftest.er1 >conftest.err
26481 rm -f conftest.er1
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26486 { (case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_try") 2>&5
26492 ac_status=$?
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest$ac_exeext'
26496 { (case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_try") 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 bash_cv_func_lstat=yes
26506 else
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510 bash_cv_func_lstat=no
26511 fi
26512
26513 rm -f core conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
26515 fi
26516 { echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
26517 echo "${ECHO_T}$bash_cv_func_lstat" >&6; }
26518 if test $bash_cv_func_lstat = yes; then
26519 cat >>confdefs.h <<\_ACEOF
26520 @%:@define HAVE_LSTAT 1
26521 _ACEOF
26522
26523 fi
26524
26525 fi
26526
26527
26528 { echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
26529 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6; }
26530 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533 if test "$cross_compiling" = yes; then
26534 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
26535 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
26536 bash_cv_func_ctype_nonascii=no
26537
26538 else
26539 cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h. */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26545
26546 #ifdef HAVE_LOCALE_H
26547 #include <locale.h>
26548 #endif
26549 #include <stdio.h>
26550 #include <ctype.h>
26551
26552 main(c, v)
26553 int c;
26554 char *v[];
26555 {
26556 char *deflocale;
26557 unsigned char x;
26558 int r1, r2;
26559
26560 #ifdef HAVE_SETLOCALE
26561 /* We take a shot here. If that locale is not known, try the
26562 system default. We try this one because '\342' (226) is
26563 known to be a printable character in that locale. */
26564 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
26565 if (deflocale == 0)
26566 deflocale = setlocale(LC_ALL, "");
26567 #endif
26568
26569 x = '\342';
26570 r1 = isprint(x);
26571 x -= 128;
26572 r2 = isprint(x);
26573 exit (r1 == 0 || r2 == 0);
26574 }
26575
26576 _ACEOF
26577 rm -f conftest$ac_exeext
26578 if { (ac_try="$ac_link"
26579 case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26582 esac
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584 (eval "$ac_link") 2>&5
26585 ac_status=$?
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26588 { (case "(($ac_try" in
26589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590 *) ac_try_echo=$ac_try;;
26591 esac
26592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593 (eval "$ac_try") 2>&5
26594 ac_status=$?
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26597 bash_cv_func_ctype_nonascii=yes
26598 else
26599 echo "$as_me: program exited with status $ac_status" >&5
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26602
26603 ( exit $ac_status )
26604 bash_cv_func_ctype_nonascii=no
26605 fi
26606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26607 fi
26608
26609
26610 fi
26611
26612 { echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
26613 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6; }
26614 if test $bash_cv_func_ctype_nonascii = yes; then
26615 cat >>confdefs.h <<\_ACEOF
26616 @%:@define CTYPE_NON_ASCII 1
26617 _ACEOF
26618
26619 fi
26620
26621 { echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
26622 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6; }
26623 if test "${bash_cv_dup2_broken+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 else
26626 if test "$cross_compiling" = yes; then
26627 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
26628 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
26629 bash_cv_dup2_broken=no
26630 else
26631 cat >conftest.$ac_ext <<_ACEOF
26632 /* confdefs.h. */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26637
26638 #include <sys/types.h>
26639 #include <fcntl.h>
26640 main()
26641 {
26642 int fd1, fd2, fl;
26643 fd1 = open("/dev/null", 2);
26644 if (fcntl(fd1, 2, 1) < 0)
26645 exit(1);
26646 fd2 = dup2(fd1, 1);
26647 if (fd2 < 0)
26648 exit(2);
26649 fl = fcntl(fd2, 1, 0);
26650 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
26651 exit(fl != 1);
26652 }
26653
26654 _ACEOF
26655 rm -f conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26660 esac
26661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662 (eval "$ac_link") 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26666 { (case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26669 esac
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_try") 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 bash_cv_dup2_broken=yes
26676 else
26677 echo "$as_me: program exited with status $ac_status" >&5
26678 echo "$as_me: failed program was:" >&5
26679 sed 's/^/| /' conftest.$ac_ext >&5
26680
26681 ( exit $ac_status )
26682 bash_cv_dup2_broken=no
26683 fi
26684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26685 fi
26686
26687
26688
26689 fi
26690
26691 { echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26692 echo "${ECHO_T}$bash_cv_dup2_broken" >&6; }
26693 if test $bash_cv_dup2_broken = yes; then
26694 cat >>confdefs.h <<\_ACEOF
26695 @%:@define DUP2_BROKEN 1
26696 _ACEOF
26697
26698 fi
26699
26700
26701 { echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26702 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6; }
26703 if test "${bash_cv_pgrp_pipe+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26705 else
26706 if test "$cross_compiling" = yes; then
26707 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26708 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26709 bash_cv_pgrp_pipe=no
26710 else
26711 cat >conftest.$ac_ext <<_ACEOF
26712 /* confdefs.h. */
26713 _ACEOF
26714 cat confdefs.h >>conftest.$ac_ext
26715 cat >>conftest.$ac_ext <<_ACEOF
26716 /* end confdefs.h. */
26717
26718 #ifdef HAVE_UNISTD_H
26719 # include <unistd.h>
26720 #endif
26721 main()
26722 {
26723 # ifdef GETPGRP_VOID
26724 # define getpgID() getpgrp()
26725 # else
26726 # define getpgID() getpgrp(0)
26727 # define setpgid(x,y) setpgrp(x,y)
26728 # endif
26729 int pid1, pid2, fds[2];
26730 int status;
26731 char ok;
26732
26733 switch (pid1 = fork()) {
26734 case -1:
26735 exit(1);
26736 case 0:
26737 setpgid(0, getpid());
26738 exit(0);
26739 }
26740 setpgid(pid1, pid1);
26741
26742 sleep(2); /* let first child die */
26743
26744 if (pipe(fds) < 0)
26745 exit(2);
26746
26747 switch (pid2 = fork()) {
26748 case -1:
26749 exit(3);
26750 case 0:
26751 setpgid(0, pid1);
26752 ok = getpgID() == pid1;
26753 write(fds[1], &ok, 1);
26754 exit(0);
26755 }
26756 setpgid(pid2, pid1);
26757
26758 close(fds[1]);
26759 if (read(fds[0], &ok, 1) != 1)
26760 exit(4);
26761 wait(&status);
26762 wait(&status);
26763 exit(ok ? 0 : 5);
26764 }
26765
26766 _ACEOF
26767 rm -f conftest$ac_exeext
26768 if { (ac_try="$ac_link"
26769 case "(($ac_try" in
26770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771 *) ac_try_echo=$ac_try;;
26772 esac
26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774 (eval "$ac_link") 2>&5
26775 ac_status=$?
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26778 { (case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781 esac
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_try") 2>&5
26784 ac_status=$?
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); }; }; then
26787 bash_cv_pgrp_pipe=no
26788 else
26789 echo "$as_me: program exited with status $ac_status" >&5
26790 echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26792
26793 ( exit $ac_status )
26794 bash_cv_pgrp_pipe=yes
26795 fi
26796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26797 fi
26798
26799
26800
26801 fi
26802
26803 { echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26804 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6; }
26805 if test $bash_cv_pgrp_pipe = yes; then
26806 cat >>confdefs.h <<\_ACEOF
26807 @%:@define PGRP_PIPE 1
26808 _ACEOF
26809
26810 fi
26811
26812
26813 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26814 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26815 if test "${bash_cv_signal_vintage+set}" = set; then
26816 echo $ECHO_N "(cached) $ECHO_C" >&6
26817 else
26818
26819 cat >conftest.$ac_ext <<_ACEOF
26820 /* confdefs.h. */
26821 _ACEOF
26822 cat confdefs.h >>conftest.$ac_ext
26823 cat >>conftest.$ac_ext <<_ACEOF
26824 /* end confdefs.h. */
26825 #include <signal.h>
26826 int
26827 main ()
26828 {
26829
26830 sigset_t ss;
26831 struct sigaction sa;
26832 sigemptyset(&ss); sigsuspend(&ss);
26833 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26834 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26835
26836 ;
26837 return 0;
26838 }
26839 _ACEOF
26840 rm -f conftest.$ac_objext conftest$ac_exeext
26841 if { (ac_try="$ac_link"
26842 case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_link") 2>conftest.er1
26848 ac_status=$?
26849 grep -v '^ *+' conftest.er1 >conftest.err
26850 rm -f conftest.er1
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } &&
26854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26855 { (case "(($ac_try" in
26856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26857 *) ac_try_echo=$ac_try;;
26858 esac
26859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26860 (eval "$ac_try") 2>&5
26861 ac_status=$?
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; } &&
26864 { ac_try='test -s conftest$ac_exeext'
26865 { (case "(($ac_try" in
26866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867 *) ac_try_echo=$ac_try;;
26868 esac
26869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26870 (eval "$ac_try") 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; }; then
26874 bash_cv_signal_vintage=posix
26875 else
26876 echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26878
26879
26880 cat >conftest.$ac_ext <<_ACEOF
26881 /* confdefs.h. */
26882 _ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h. */
26886 #include <signal.h>
26887 int
26888 main ()
26889 {
26890
26891 int mask = sigmask(SIGINT);
26892 sigsetmask(mask); sigblock(mask); sigpause(mask);
26893
26894 ;
26895 return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26906 ac_status=$?
26907 grep -v '^ *+' conftest.er1 >conftest.err
26908 rm -f conftest.er1
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest$ac_exeext'
26923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
26929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26932 bash_cv_signal_vintage=4.2bsd
26933 else
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26936
26937
26938 cat >conftest.$ac_ext <<_ACEOF
26939 /* confdefs.h. */
26940 _ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h. */
26944
26945 #include <signal.h>
26946 RETSIGTYPE foo() { }
26947 int
26948 main ()
26949 {
26950
26951 int mask = sigmask(SIGINT);
26952 sigset(SIGINT, foo); sigrelse(SIGINT);
26953 sighold(SIGINT); sigpause(SIGINT);
26954
26955 ;
26956 return 0;
26957 }
26958 _ACEOF
26959 rm -f conftest.$ac_objext conftest$ac_exeext
26960 if { (ac_try="$ac_link"
26961 case "(($ac_try" in
26962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963 *) ac_try_echo=$ac_try;;
26964 esac
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966 (eval "$ac_link") 2>conftest.er1
26967 ac_status=$?
26968 grep -v '^ *+' conftest.er1 >conftest.err
26969 rm -f conftest.er1
26970 cat conftest.err >&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } &&
26973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26974 { (case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26977 esac
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979 (eval "$ac_try") 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; } &&
26983 { ac_try='test -s conftest$ac_exeext'
26984 { (case "(($ac_try" in
26985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986 *) ac_try_echo=$ac_try;;
26987 esac
26988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26989 (eval "$ac_try") 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 bash_cv_signal_vintage=svr3
26994 else
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26997
26998 bash_cv_signal_vintage=v7
26999
27000 fi
27001
27002 rm -f core conftest.err conftest.$ac_objext \
27003 conftest$ac_exeext conftest.$ac_ext
27004
27005 fi
27006
27007 rm -f core conftest.err conftest.$ac_objext \
27008 conftest$ac_exeext conftest.$ac_ext
27009
27010 fi
27011
27012 rm -f core conftest.err conftest.$ac_objext \
27013 conftest$ac_exeext conftest.$ac_ext
27014
27015 fi
27016
27017 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
27018 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
27019 if test "$bash_cv_signal_vintage" = posix; then
27020 cat >>confdefs.h <<\_ACEOF
27021 @%:@define HAVE_POSIX_SIGNALS 1
27022 _ACEOF
27023
27024 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27025 cat >>confdefs.h <<\_ACEOF
27026 @%:@define HAVE_BSD_SIGNALS 1
27027 _ACEOF
27028
27029 elif test "$bash_cv_signal_vintage" = svr3; then
27030 cat >>confdefs.h <<\_ACEOF
27031 @%:@define HAVE_USG_SIGHOLD 1
27032 _ACEOF
27033
27034 fi
27035
27036
27037 { echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
27038 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6; }
27039 if test "${bash_cv_sys_errlist+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 else
27042 cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h. */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h. */
27048 #include <errno.h>
27049 int
27050 main ()
27051 {
27052 extern char *sys_errlist[];
27053 extern int sys_nerr;
27054 char *msg = sys_errlist[sys_nerr - 1];
27055 ;
27056 return 0;
27057 }
27058 _ACEOF
27059 rm -f conftest.$ac_objext conftest$ac_exeext
27060 if { (ac_try="$ac_link"
27061 case "(($ac_try" in
27062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27064 esac
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066 (eval "$ac_link") 2>conftest.er1
27067 ac_status=$?
27068 grep -v '^ *+' conftest.er1 >conftest.err
27069 rm -f conftest.er1
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
27073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27074 { (case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27077 esac
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079 (eval "$ac_try") 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest$ac_exeext'
27084 { (case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27087 esac
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089 (eval "$ac_try") 2>&5
27090 ac_status=$?
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; }; then
27093 bash_cv_sys_errlist=yes
27094 else
27095 echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27097
27098 bash_cv_sys_errlist=no
27099 fi
27100
27101 rm -f core conftest.err conftest.$ac_objext \
27102 conftest$ac_exeext conftest.$ac_ext
27103 fi
27104 { echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
27105 echo "${ECHO_T}$bash_cv_sys_errlist" >&6; }
27106 if test $bash_cv_sys_errlist = yes; then
27107 cat >>confdefs.h <<\_ACEOF
27108 @%:@define HAVE_SYS_ERRLIST 1
27109 _ACEOF
27110
27111 fi
27112
27113
27114 { echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
27115 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6; }
27116 if test "${bash_cv_sys_siglist+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118 else
27119 if test "$cross_compiling" = yes; then
27120 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
27121 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
27122 bash_cv_sys_siglist=no
27123 else
27124 cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h. */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27130
27131 #include <sys/types.h>
27132 #include <signal.h>
27133 #ifdef HAVE_UNISTD_H
27134 #include <unistd.h>
27135 #endif
27136 #if !HAVE_DECL_SYS_SIGLIST
27137 extern char *sys_siglist[];
27138 #endif
27139 main()
27140 {
27141 char *msg = sys_siglist[2];
27142 exit(msg == 0);
27143 }
27144 _ACEOF
27145 rm -f conftest$ac_exeext
27146 if { (ac_try="$ac_link"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_link") 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27156 { (case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27159 esac
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_try") 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; }; then
27165 bash_cv_sys_siglist=yes
27166 else
27167 echo "$as_me: program exited with status $ac_status" >&5
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27170
27171 ( exit $ac_status )
27172 bash_cv_sys_siglist=no
27173 fi
27174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27175 fi
27176
27177
27178 fi
27179
27180 { echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
27181 echo "${ECHO_T}$bash_cv_sys_siglist" >&6; }
27182 if test $bash_cv_sys_siglist = yes; then
27183 cat >>confdefs.h <<\_ACEOF
27184 @%:@define HAVE_SYS_SIGLIST 1
27185 _ACEOF
27186
27187 fi
27188
27189 { echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
27190 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6; }
27191 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194 cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h. */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200
27201 #include <sys/types.h>
27202 #include <signal.h>
27203 #ifdef HAVE_UNISTD_H
27204 #include <unistd.h>
27205 #endif
27206 int
27207 main ()
27208 {
27209 char *msg = _sys_siglist[2];
27210 ;
27211 return 0;
27212 }
27213 _ACEOF
27214 rm -f conftest.$ac_objext
27215 if { (ac_try="$ac_compile"
27216 case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27219 esac
27220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest.$ac_objext'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242 esac
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27248 bash_cv_decl_under_sys_siglist=yes
27249 else
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27252
27253 bash_cv_decl_under_sys_siglist=no
27254 fi
27255
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 fi
27258 { echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
27259 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6; }
27260 if test $bash_cv_decl_under_sys_siglist = yes; then
27261 cat >>confdefs.h <<\_ACEOF
27262 @%:@define UNDER_SYS_SIGLIST_DECLARED 1
27263 _ACEOF
27264
27265 fi
27266
27267
27268 { echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
27269 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6; }
27270 if test "${bash_cv_under_sys_siglist+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27272 else
27273 if test "$cross_compiling" = yes; then
27274 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
27275 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
27276 bash_cv_under_sys_siglist=no
27277 else
27278 cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h. */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27284
27285 #include <sys/types.h>
27286 #include <signal.h>
27287 #ifdef HAVE_UNISTD_H
27288 #include <unistd.h>
27289 #endif
27290 #ifndef UNDER_SYS_SIGLIST_DECLARED
27291 extern char *_sys_siglist[];
27292 #endif
27293 main()
27294 {
27295 char *msg = (char *)_sys_siglist[2];
27296 exit(msg == 0);
27297 }
27298 _ACEOF
27299 rm -f conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_link") 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27310 { (case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27313 esac
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_try") 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 bash_cv_under_sys_siglist=yes
27320 else
27321 echo "$as_me: program exited with status $ac_status" >&5
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27324
27325 ( exit $ac_status )
27326 bash_cv_under_sys_siglist=no
27327 fi
27328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27329 fi
27330
27331
27332 fi
27333
27334 { echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
27335 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6; }
27336 if test $bash_cv_under_sys_siglist = yes; then
27337 cat >>confdefs.h <<\_ACEOF
27338 @%:@define HAVE_UNDER_SYS_SIGLIST 1
27339 _ACEOF
27340
27341 fi
27342
27343
27344 { echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
27345 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6; }
27346 if test "${bash_cv_void_sighandler+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 else
27349 cat >conftest.$ac_ext <<_ACEOF
27350 /* confdefs.h. */
27351 _ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h. */
27355 #include <sys/types.h>
27356 #include <signal.h>
27357 #ifdef signal
27358 #undef signal
27359 #endif
27360 #ifdef __cplusplus
27361 extern "C"
27362 #endif
27363 void (*signal ()) ();
27364 int
27365 main ()
27366 {
27367 int i;
27368 ;
27369 return 0;
27370 }
27371 _ACEOF
27372 rm -f conftest.$ac_objext
27373 if { (ac_try="$ac_compile"
27374 case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
27386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27387 { (case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27390 esac
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_try") 2>&5
27393 ac_status=$?
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest.$ac_objext'
27397 { (case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27400 esac
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 (eval "$ac_try") 2>&5
27403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27406 bash_cv_void_sighandler=yes
27407 else
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411 bash_cv_void_sighandler=no
27412 fi
27413
27414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27415 fi
27416 { echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
27417 echo "${ECHO_T}$bash_cv_void_sighandler" >&6; }
27418 if test $bash_cv_void_sighandler = yes; then
27419 cat >>confdefs.h <<\_ACEOF
27420 @%:@define VOID_SIGHANDLER 1
27421 _ACEOF
27422
27423 fi
27424
27425
27426
27427 { echo "$as_me:$LINENO: checking for clock_t" >&5
27428 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
27429 if test "${bash_cv_type_clock_t+set}" = set; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27431 else
27432 cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h. */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 #include <sys/types.h>
27439 #if STDC_HEADERS
27440 #include <stdlib.h>
27441 #include <stddef.h>
27442 #endif
27443 #if HAVE_INTTYPES_H
27444 #include <inttypes.h>
27445 #endif
27446 #include <sys/times.h>
27447
27448 _ACEOF
27449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27450 $EGREP "clock_t" >/dev/null 2>&1; then
27451 bash_cv_type_clock_t=yes
27452 else
27453 bash_cv_type_clock_t=no
27454 fi
27455 rm -f conftest*
27456
27457 fi
27458
27459 { echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
27460 echo "${ECHO_T}$bash_cv_type_clock_t" >&6; }
27461
27462 if test $bash_cv_type_clock_t = no; then
27463 cat >>confdefs.h <<_ACEOF
27464 @%:@define clock_t long
27465 _ACEOF
27466
27467 fi
27468
27469
27470
27471 { echo "$as_me:$LINENO: checking for sigset_t" >&5
27472 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
27473 if test "${bash_cv_type_sigset_t+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 else
27476 cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h. */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 #include <sys/types.h>
27483 #if STDC_HEADERS
27484 #include <stdlib.h>
27485 #include <stddef.h>
27486 #endif
27487 #if HAVE_INTTYPES_H
27488 #include <inttypes.h>
27489 #endif
27490 #include <signal.h>
27491
27492 _ACEOF
27493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27494 $EGREP "sigset_t" >/dev/null 2>&1; then
27495 bash_cv_type_sigset_t=yes
27496 else
27497 bash_cv_type_sigset_t=no
27498 fi
27499 rm -f conftest*
27500
27501 fi
27502
27503 { echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
27504 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6; }
27505
27506 if test $bash_cv_type_sigset_t = no; then
27507 cat >>confdefs.h <<_ACEOF
27508 @%:@define sigset_t int
27509 _ACEOF
27510
27511 fi
27512
27513
27514
27515 { echo "$as_me:$LINENO: checking for quad_t" >&5
27516 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; }
27517 if test "${bash_cv_type_quad_t+set}" = set; then
27518 echo $ECHO_N "(cached) $ECHO_C" >&6
27519 else
27520 cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h. */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27526 #include <sys/types.h>
27527 #if STDC_HEADERS
27528 #include <stdlib.h>
27529 #include <stddef.h>
27530 #endif
27531 #if HAVE_INTTYPES_H
27532 #include <inttypes.h>
27533 #endif
27534
27535
27536 _ACEOF
27537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27538 $EGREP "quad_t" >/dev/null 2>&1; then
27539 bash_cv_type_quad_t=yes
27540 else
27541 bash_cv_type_quad_t=no
27542 fi
27543 rm -f conftest*
27544
27545 fi
27546
27547 { echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
27548 echo "${ECHO_T}$bash_cv_type_quad_t" >&6; }
27549 if test $bash_cv_type_quad_t = yes; then
27550 cat >>confdefs.h <<\_ACEOF
27551 @%:@define HAVE_QUAD_T 1
27552 _ACEOF
27553
27554 fi
27555 if test $bash_cv_type_quad_t = no; then
27556 cat >>confdefs.h <<_ACEOF
27557 @%:@define quad_t long
27558 _ACEOF
27559
27560 fi
27561
27562
27563
27564 { echo "$as_me:$LINENO: checking for intmax_t" >&5
27565 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
27566 if test "${bash_cv_type_intmax_t+set}" = set; then
27567 echo $ECHO_N "(cached) $ECHO_C" >&6
27568 else
27569 cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h. */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27575 #include <sys/types.h>
27576 #if STDC_HEADERS
27577 #include <stdlib.h>
27578 #include <stddef.h>
27579 #endif
27580 #if HAVE_INTTYPES_H
27581 #include <inttypes.h>
27582 #endif
27583
27584
27585 _ACEOF
27586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27587 $EGREP "intmax_t" >/dev/null 2>&1; then
27588 bash_cv_type_intmax_t=yes
27589 else
27590 bash_cv_type_intmax_t=no
27591 fi
27592 rm -f conftest*
27593
27594 fi
27595
27596 { echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
27597 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6; }
27598
27599 if test $bash_cv_type_intmax_t = no; then
27600 cat >>confdefs.h <<_ACEOF
27601 @%:@define intmax_t $bash_cv_type_long_long
27602 _ACEOF
27603
27604 fi
27605
27606
27607
27608 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
27609 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
27610 if test "${bash_cv_type_uintmax_t+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613 cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h. */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27619 #include <sys/types.h>
27620 #if STDC_HEADERS
27621 #include <stdlib.h>
27622 #include <stddef.h>
27623 #endif
27624 #if HAVE_INTTYPES_H
27625 #include <inttypes.h>
27626 #endif
27627
27628
27629 _ACEOF
27630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27631 $EGREP "uintmax_t" >/dev/null 2>&1; then
27632 bash_cv_type_uintmax_t=yes
27633 else
27634 bash_cv_type_uintmax_t=no
27635 fi
27636 rm -f conftest*
27637
27638 fi
27639
27640 { echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
27641 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6; }
27642
27643 if test $bash_cv_type_uintmax_t = no; then
27644 cat >>confdefs.h <<_ACEOF
27645 @%:@define uintmax_t $bash_cv_type_unsigned_long_long
27646 _ACEOF
27647
27648 fi
27649
27650 if test "$ac_cv_header_sys_socket_h" = "yes"; then
27651
27652
27653 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27654 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27655 if test "${bash_cv_type_socklen_t+set}" = set; then
27656 echo $ECHO_N "(cached) $ECHO_C" >&6
27657 else
27658 cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h. */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27664 #include <sys/types.h>
27665 #if STDC_HEADERS
27666 #include <stdlib.h>
27667 #include <stddef.h>
27668 #endif
27669 #if HAVE_INTTYPES_H
27670 #include <inttypes.h>
27671 #endif
27672 #include <sys/socket.h>
27673
27674 _ACEOF
27675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27676 $EGREP "socklen_t" >/dev/null 2>&1; then
27677 bash_cv_type_socklen_t=yes
27678 else
27679 bash_cv_type_socklen_t=no
27680 fi
27681 rm -f conftest*
27682
27683 fi
27684
27685 { echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
27686 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6; }
27687 if test $bash_cv_type_socklen_t = yes; then
27688 cat >>confdefs.h <<\_ACEOF
27689 @%:@define HAVE_SOCKLEN_T 1
27690 _ACEOF
27691
27692 fi
27693 if test $bash_cv_type_socklen_t = no; then
27694 cat >>confdefs.h <<_ACEOF
27695 @%:@define socklen_t int
27696 _ACEOF
27697
27698 fi
27699
27700 fi
27701 { echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
27702 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6; }
27703 if test "${bash_cv_type_rlimit+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 else
27706 cat >conftest.$ac_ext <<_ACEOF
27707 /* confdefs.h. */
27708 _ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27712 #include <sys/types.h>
27713 #include <sys/resource.h>
27714 int
27715 main ()
27716 {
27717 rlim_t xxx;
27718 ;
27719 return 0;
27720 }
27721 _ACEOF
27722 rm -f conftest.$ac_objext
27723 if { (ac_try="$ac_compile"
27724 case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_compile") 2>conftest.er1
27730 ac_status=$?
27731 grep -v '^ *+' conftest.er1 >conftest.err
27732 rm -f conftest.er1
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } &&
27736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27737 { (case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27740 esac
27741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27742 (eval "$ac_try") 2>&5
27743 ac_status=$?
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; } &&
27746 { ac_try='test -s conftest.$ac_objext'
27747 { (case "(($ac_try" in
27748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749 *) ac_try_echo=$ac_try;;
27750 esac
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752 (eval "$ac_try") 2>&5
27753 ac_status=$?
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); }; }; then
27756 bash_cv_type_rlimit=rlim_t
27757 else
27758 echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27760
27761
27762 if test "$cross_compiling" = yes; then
27763 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27764 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27765 bash_cv_type_rlimit=long
27766 else
27767 cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h. */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773
27774 #include <sys/types.h>
27775 #include <sys/time.h>
27776 #include <sys/resource.h>
27777 main()
27778 {
27779 #ifdef HAVE_QUAD_T
27780 struct rlimit rl;
27781 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27782 exit(0);
27783 #endif
27784 exit(1);
27785 }
27786 _ACEOF
27787 rm -f conftest$ac_exeext
27788 if { (ac_try="$ac_link"
27789 case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27792 esac
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_link") 2>&5
27795 ac_status=$?
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27807 bash_cv_type_rlimit=quad_t
27808 else
27809 echo "$as_me: program exited with status $ac_status" >&5
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27812
27813 ( exit $ac_status )
27814 bash_cv_type_rlimit=long
27815 fi
27816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27817 fi
27818
27819
27820 fi
27821
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823
27824 fi
27825
27826 { echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27827 echo "${ECHO_T}$bash_cv_type_rlimit" >&6; }
27828 if test $bash_cv_type_rlimit = quad_t; then
27829 cat >>confdefs.h <<\_ACEOF
27830 @%:@define RLIMTYPE quad_t
27831 _ACEOF
27832
27833 elif test $bash_cv_type_rlimit = rlim_t; then
27834 cat >>confdefs.h <<\_ACEOF
27835 @%:@define RLIMTYPE rlim_t
27836 _ACEOF
27837
27838 fi
27839
27840
27841
27842 { echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27843 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6; }
27844 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 else
27847 cat >conftest.$ac_ext <<_ACEOF
27848 /* confdefs.h. */
27849 _ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27853
27854 #include <sys/types.h>
27855 #include <termios.h>
27856
27857
27858 int
27859 main ()
27860 {
27861 static struct termios ac_aggr;
27862 if (ac_aggr.c_line)
27863 return 0;
27864 ;
27865 return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest.$ac_objext
27869 if { (ac_try="$ac_compile"
27870 case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27873 esac
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_compile") 2>conftest.er1
27876 ac_status=$?
27877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest.$ac_objext'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 ac_cv_member_struct_termios_c_line=yes
27903 else
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27906
27907 cat >conftest.$ac_ext <<_ACEOF
27908 /* confdefs.h. */
27909 _ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h. */
27913
27914 #include <sys/types.h>
27915 #include <termios.h>
27916
27917
27918 int
27919 main ()
27920 {
27921 static struct termios ac_aggr;
27922 if (sizeof ac_aggr.c_line)
27923 return 0;
27924 ;
27925 return 0;
27926 }
27927 _ACEOF
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27933 esac
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_compile") 2>conftest.er1
27936 ac_status=$?
27937 grep -v '^ *+' conftest.er1 >conftest.err
27938 rm -f conftest.er1
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } &&
27942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27943 { (case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27946 esac
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_try") 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
27953 { (case "(($ac_try" in
27954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27955 *) ac_try_echo=$ac_try;;
27956 esac
27957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27958 (eval "$ac_try") 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; }; then
27962 ac_cv_member_struct_termios_c_line=yes
27963 else
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967 ac_cv_member_struct_termios_c_line=no
27968 fi
27969
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971 fi
27972
27973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27974 fi
27975 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27976 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6; }
27977 if test $ac_cv_member_struct_termios_c_line = yes; then
27978 cat >>confdefs.h <<\_ACEOF
27979 @%:@define TERMIOS_LDISC 1
27980 _ACEOF
27981
27982 fi
27983
27984
27985
27986 { echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27987 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6; }
27988 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27990 else
27991 cat >conftest.$ac_ext <<_ACEOF
27992 /* confdefs.h. */
27993 _ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h. */
27997
27998 #include <sys/types.h>
27999 #include <termio.h>
28000
28001
28002 int
28003 main ()
28004 {
28005 static struct termio ac_aggr;
28006 if (ac_aggr.c_line)
28007 return 0;
28008 ;
28009 return 0;
28010 }
28011 _ACEOF
28012 rm -f conftest.$ac_objext
28013 if { (ac_try="$ac_compile"
28014 case "(($ac_try" in
28015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28016 *) ac_try_echo=$ac_try;;
28017 esac
28018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28019 (eval "$ac_compile") 2>conftest.er1
28020 ac_status=$?
28021 grep -v '^ *+' conftest.er1 >conftest.err
28022 rm -f conftest.er1
28023 cat conftest.err >&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); } &&
28026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28027 { (case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28030 esac
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_try") 2>&5
28033 ac_status=$?
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; } &&
28036 { ac_try='test -s conftest.$ac_objext'
28037 { (case "(($ac_try" in
28038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28039 *) ac_try_echo=$ac_try;;
28040 esac
28041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28042 (eval "$ac_try") 2>&5
28043 ac_status=$?
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; }; then
28046 ac_cv_member_struct_termio_c_line=yes
28047 else
28048 echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28050
28051 cat >conftest.$ac_ext <<_ACEOF
28052 /* confdefs.h. */
28053 _ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h. */
28057
28058 #include <sys/types.h>
28059 #include <termio.h>
28060
28061
28062 int
28063 main ()
28064 {
28065 static struct termio ac_aggr;
28066 if (sizeof ac_aggr.c_line)
28067 return 0;
28068 ;
28069 return 0;
28070 }
28071 _ACEOF
28072 rm -f conftest.$ac_objext
28073 if { (ac_try="$ac_compile"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077 esac
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_compile") 2>conftest.er1
28080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28090 esac
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_try") 2>&5
28093 ac_status=$?
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest.$ac_objext'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; }; then
28106 ac_cv_member_struct_termio_c_line=yes
28107 else
28108 echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28110
28111 ac_cv_member_struct_termio_c_line=no
28112 fi
28113
28114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28115 fi
28116
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28118 fi
28119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
28120 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6; }
28121 if test $ac_cv_member_struct_termio_c_line = yes; then
28122 cat >>confdefs.h <<\_ACEOF
28123 @%:@define TERMIO_LDISC 1
28124 _ACEOF
28125
28126 fi
28127
28128
28129
28130 { echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
28131 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6; }
28132 if test "${bash_cv_dirent_has_dino+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28134 else
28135 cat >conftest.$ac_ext <<_ACEOF
28136 /* confdefs.h. */
28137 _ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h. */
28141
28142 #include <stdio.h>
28143 #include <sys/types.h>
28144 #ifdef HAVE_UNISTD_H
28145 # include <unistd.h>
28146 #endif /* HAVE_UNISTD_H */
28147 #if defined(HAVE_DIRENT_H)
28148 # include <dirent.h>
28149 #else
28150 # define dirent direct
28151 # ifdef HAVE_SYS_NDIR_H
28152 # include <sys/ndir.h>
28153 # endif /* SYSNDIR */
28154 # ifdef HAVE_SYS_DIR_H
28155 # include <sys/dir.h>
28156 # endif /* SYSDIR */
28157 # ifdef HAVE_NDIR_H
28158 # include <ndir.h>
28159 # endif
28160 #endif /* HAVE_DIRENT_H */
28161
28162 int
28163 main ()
28164 {
28165
28166 struct dirent d; int z; z = d.d_ino;
28167
28168 ;
28169 return 0;
28170 }
28171 _ACEOF
28172 rm -f conftest.$ac_objext
28173 if { (ac_try="$ac_compile"
28174 case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28177 esac
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_compile") 2>conftest.er1
28180 ac_status=$?
28181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } &&
28186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187 { (case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28190 esac
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_try") 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest.$ac_objext'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
28206 bash_cv_dirent_has_dino=yes
28207 else
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211 bash_cv_dirent_has_dino=no
28212 fi
28213
28214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28215 fi
28216
28217 { echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
28218 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6; }
28219 if test $bash_cv_dirent_has_dino = yes; then
28220 cat >>confdefs.h <<\_ACEOF
28221 @%:@define HAVE_STRUCT_DIRENT_D_INO 1
28222 _ACEOF
28223
28224 fi
28225
28226
28227 { echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
28228 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6; }
28229 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
28230 echo $ECHO_N "(cached) $ECHO_C" >&6
28231 else
28232 cat >conftest.$ac_ext <<_ACEOF
28233 /* confdefs.h. */
28234 _ACEOF
28235 cat confdefs.h >>conftest.$ac_ext
28236 cat >>conftest.$ac_ext <<_ACEOF
28237 /* end confdefs.h. */
28238
28239 #include <stdio.h>
28240 #include <sys/types.h>
28241 #ifdef HAVE_UNISTD_H
28242 # include <unistd.h>
28243 #endif /* HAVE_UNISTD_H */
28244 #if defined(HAVE_DIRENT_H)
28245 # include <dirent.h>
28246 #else
28247 # define dirent direct
28248 # ifdef HAVE_SYS_NDIR_H
28249 # include <sys/ndir.h>
28250 # endif /* SYSNDIR */
28251 # ifdef HAVE_SYS_DIR_H
28252 # include <sys/dir.h>
28253 # endif /* SYSDIR */
28254 # ifdef HAVE_NDIR_H
28255 # include <ndir.h>
28256 # endif
28257 #endif /* HAVE_DIRENT_H */
28258
28259 int
28260 main ()
28261 {
28262
28263 struct dirent d; int z; z = d.d_fileno;
28264
28265 ;
28266 return 0;
28267 }
28268 _ACEOF
28269 rm -f conftest.$ac_objext
28270 if { (ac_try="$ac_compile"
28271 case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28274 esac
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_compile") 2>conftest.er1
28277 ac_status=$?
28278 grep -v '^ *+' conftest.er1 >conftest.err
28279 rm -f conftest.er1
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } &&
28283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28284 { (case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28287 esac
28288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28289 (eval "$ac_try") 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest.$ac_objext'
28294 { (case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28297 esac
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_try") 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28303 bash_cv_dirent_has_d_fileno=yes
28304 else
28305 echo "$as_me: failed program was:" >&5
28306 sed 's/^/| /' conftest.$ac_ext >&5
28307
28308 bash_cv_dirent_has_d_fileno=no
28309 fi
28310
28311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28312 fi
28313
28314 { echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
28315 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6; }
28316 if test $bash_cv_dirent_has_d_fileno = yes; then
28317 cat >>confdefs.h <<\_ACEOF
28318 @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1
28319 _ACEOF
28320
28321 fi
28322
28323
28324 { echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
28325 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6; }
28326 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 else
28329 cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h. */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28335
28336 #include <stdio.h>
28337 #include <sys/types.h>
28338 #ifdef HAVE_UNISTD_H
28339 # include <unistd.h>
28340 #endif /* HAVE_UNISTD_H */
28341 #if defined(HAVE_DIRENT_H)
28342 # include <dirent.h>
28343 #else
28344 # define dirent direct
28345 # ifdef HAVE_SYS_NDIR_H
28346 # include <sys/ndir.h>
28347 # endif /* SYSNDIR */
28348 # ifdef HAVE_SYS_DIR_H
28349 # include <sys/dir.h>
28350 # endif /* SYSDIR */
28351 # ifdef HAVE_NDIR_H
28352 # include <ndir.h>
28353 # endif
28354 #endif /* HAVE_DIRENT_H */
28355
28356 int
28357 main ()
28358 {
28359
28360 struct dirent d; int z; z = d.d_namlen;
28361
28362 ;
28363 return 0;
28364 }
28365 _ACEOF
28366 rm -f conftest.$ac_objext
28367 if { (ac_try="$ac_compile"
28368 case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371 esac
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_compile") 2>conftest.er1
28374 ac_status=$?
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28384 esac
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest.$ac_objext'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394 esac
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 bash_cv_dirent_has_d_namlen=yes
28401 else
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28404
28405 bash_cv_dirent_has_d_namlen=no
28406 fi
28407
28408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409 fi
28410
28411 { echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
28412 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6; }
28413 if test $bash_cv_dirent_has_d_namlen = yes; then
28414 cat >>confdefs.h <<\_ACEOF
28415 @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1
28416 _ACEOF
28417
28418 fi
28419
28420 { echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
28421 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6; }
28422 if test "${bash_cv_struct_winsize_header+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28425 cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h. */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h. */
28431 #include <sys/types.h>
28432 #include <sys/ioctl.h>
28433 int
28434 main ()
28435 {
28436 struct winsize x;
28437 ;
28438 return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest.$ac_objext
28442 if { (ac_try="$ac_compile"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28446 esac
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448 (eval "$ac_compile") 2>conftest.er1
28449 ac_status=$?
28450 grep -v '^ *+' conftest.er1 >conftest.err
28451 rm -f conftest.er1
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
28455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28456 { (case "(($ac_try" in
28457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458 *) ac_try_echo=$ac_try;;
28459 esac
28460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28461 (eval "$ac_try") 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; } &&
28465 { ac_try='test -s conftest.$ac_objext'
28466 { (case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28469 esac
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_try") 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; }; then
28475 bash_cv_struct_winsize_header=ioctl_h
28476 else
28477 echo "$as_me: failed program was:" >&5
28478 sed 's/^/| /' conftest.$ac_ext >&5
28479
28480 cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h. */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28486 #include <sys/types.h>
28487 #include <termios.h>
28488 int
28489 main ()
28490 {
28491 struct winsize x;
28492 ;
28493 return 0;
28494 }
28495 _ACEOF
28496 rm -f conftest.$ac_objext
28497 if { (ac_try="$ac_compile"
28498 case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_compile") 2>conftest.er1
28504 ac_status=$?
28505 grep -v '^ *+' conftest.er1 >conftest.err
28506 rm -f conftest.er1
28507 cat conftest.err >&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } &&
28510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28511 { (case "(($ac_try" in
28512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513 *) ac_try_echo=$ac_try;;
28514 esac
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516 (eval "$ac_try") 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; } &&
28520 { ac_try='test -s conftest.$ac_objext'
28521 { (case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28524 esac
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_try") 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 bash_cv_struct_winsize_header=termios_h
28531 else
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28534
28535 bash_cv_struct_winsize_header=other
28536 fi
28537
28538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28539
28540 fi
28541
28542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543 fi
28544
28545 if test $bash_cv_struct_winsize_header = ioctl_h; then
28546 { echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28547 echo "${ECHO_T}sys/ioctl.h" >&6; }
28548 cat >>confdefs.h <<\_ACEOF
28549 @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28550 _ACEOF
28551
28552 elif test $bash_cv_struct_winsize_header = termios_h; then
28553 { echo "$as_me:$LINENO: result: termios.h" >&5
28554 echo "${ECHO_T}termios.h" >&6; }
28555 cat >>confdefs.h <<\_ACEOF
28556 @%:@define STRUCT_WINSIZE_IN_TERMIOS 1
28557 _ACEOF
28558
28559 else
28560 { echo "$as_me:$LINENO: result: not found" >&5
28561 echo "${ECHO_T}not found" >&6; }
28562 fi
28563
28564 { echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28565 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6; }
28566 if test "${bash_cv_struct_timeval+set}" = set; then
28567 echo $ECHO_N "(cached) $ECHO_C" >&6
28568 else
28569
28570 cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h. */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28576 #include <sys/time.h>
28577
28578 _ACEOF
28579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28580 $EGREP "struct timeval" >/dev/null 2>&1; then
28581 bash_cv_struct_timeval=yes
28582 else
28583 cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h. */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589 #include <time.h>
28590
28591 _ACEOF
28592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28593 $EGREP "struct timeval" >/dev/null 2>&1; then
28594 bash_cv_struct_timeval=yes
28595 else
28596 bash_cv_struct_timeval=no
28597 fi
28598 rm -f conftest*
28599
28600 fi
28601 rm -f conftest*
28602
28603
28604 fi
28605
28606 { echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28607 echo "${ECHO_T}$bash_cv_struct_timeval" >&6; }
28608 if test $bash_cv_struct_timeval = yes; then
28609 cat >>confdefs.h <<\_ACEOF
28610 @%:@define HAVE_TIMEVAL 1
28611 _ACEOF
28612
28613 fi
28614
28615 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28616 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
28617 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28618 echo $ECHO_N "(cached) $ECHO_C" >&6
28619 else
28620 cat >conftest.$ac_ext <<_ACEOF
28621 /* confdefs.h. */
28622 _ACEOF
28623 cat confdefs.h >>conftest.$ac_ext
28624 cat >>conftest.$ac_ext <<_ACEOF
28625 /* end confdefs.h. */
28626 $ac_includes_default
28627 int
28628 main ()
28629 {
28630 static struct stat ac_aggr;
28631 if (ac_aggr.st_blocks)
28632 return 0;
28633 ;
28634 return 0;
28635 }
28636 _ACEOF
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28642 esac
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_compile") 2>conftest.er1
28645 ac_status=$?
28646 grep -v '^ *+' conftest.er1 >conftest.err
28647 rm -f conftest.er1
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } &&
28651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28652 { (case "(($ac_try" in
28653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654 *) ac_try_echo=$ac_try;;
28655 esac
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657 (eval "$ac_try") 2>&5
28658 ac_status=$?
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; } &&
28661 { ac_try='test -s conftest.$ac_objext'
28662 { (case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_try") 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_member_struct_stat_st_blocks=yes
28672 else
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28675
28676 cat >conftest.$ac_ext <<_ACEOF
28677 /* confdefs.h. */
28678 _ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h. */
28682 $ac_includes_default
28683 int
28684 main ()
28685 {
28686 static struct stat ac_aggr;
28687 if (sizeof ac_aggr.st_blocks)
28688 return 0;
28689 ;
28690 return 0;
28691 }
28692 _ACEOF
28693 rm -f conftest.$ac_objext
28694 if { (ac_try="$ac_compile"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_compile") 2>conftest.er1
28701 ac_status=$?
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
28707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28708 { (case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28711 esac
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_try") 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
28718 { (case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28721 esac
28722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_try") 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; }; then
28727 ac_cv_member_struct_stat_st_blocks=yes
28728 else
28729 echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28731
28732 ac_cv_member_struct_stat_st_blocks=no
28733 fi
28734
28735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 fi
28737
28738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739 fi
28740 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
28742 if test $ac_cv_member_struct_stat_st_blocks = yes; then
28743
28744 cat >>confdefs.h <<_ACEOF
28745 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
28746 _ACEOF
28747
28748
28749 fi
28750
28751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28753 if test "${ac_cv_struct_tm+set}" = set; then
28754 echo $ECHO_N "(cached) $ECHO_C" >&6
28755 else
28756 cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h. */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h. */
28762 #include <sys/types.h>
28763 #include <time.h>
28764
28765 int
28766 main ()
28767 {
28768 struct tm *tp; tp->tm_sec;
28769 ;
28770 return 0;
28771 }
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_compile") 2>conftest.er1
28781 ac_status=$?
28782 grep -v '^ *+' conftest.er1 >conftest.err
28783 rm -f conftest.er1
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
28787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28788 { (case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28791 esac
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_try") 2>&5
28794 ac_status=$?
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; } &&
28797 { ac_try='test -s conftest.$ac_objext'
28798 { (case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28801 esac
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_try") 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ac_cv_struct_tm=time.h
28808 else
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812 ac_cv_struct_tm=sys/time.h
28813 fi
28814
28815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816 fi
28817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28819 if test $ac_cv_struct_tm = sys/time.h; then
28820
28821 cat >>confdefs.h <<\_ACEOF
28822 @%:@define TM_IN_SYS_TIME 1
28823 _ACEOF
28824
28825 fi
28826
28827 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28828 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
28829 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 else
28832 cat >conftest.$ac_ext <<_ACEOF
28833 /* confdefs.h. */
28834 _ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h. */
28838 #include <sys/types.h>
28839 #include <$ac_cv_struct_tm>
28840
28841
28842 int
28843 main ()
28844 {
28845 static struct tm ac_aggr;
28846 if (ac_aggr.tm_zone)
28847 return 0;
28848 ;
28849 return 0;
28850 }
28851 _ACEOF
28852 rm -f conftest.$ac_objext
28853 if { (ac_try="$ac_compile"
28854 case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28857 esac
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_compile") 2>conftest.er1
28860 ac_status=$?
28861 grep -v '^ *+' conftest.er1 >conftest.err
28862 rm -f conftest.er1
28863 cat conftest.err >&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } &&
28866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28867 { (case "(($ac_try" in
28868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28869 *) ac_try_echo=$ac_try;;
28870 esac
28871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28872 (eval "$ac_try") 2>&5
28873 ac_status=$?
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; } &&
28876 { ac_try='test -s conftest.$ac_objext'
28877 { (case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28880 esac
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_try") 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_cv_member_struct_tm_tm_zone=yes
28887 else
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28890
28891 cat >conftest.$ac_ext <<_ACEOF
28892 /* confdefs.h. */
28893 _ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28897 #include <sys/types.h>
28898 #include <$ac_cv_struct_tm>
28899
28900
28901 int
28902 main ()
28903 {
28904 static struct tm ac_aggr;
28905 if (sizeof ac_aggr.tm_zone)
28906 return 0;
28907 ;
28908 return 0;
28909 }
28910 _ACEOF
28911 rm -f conftest.$ac_objext
28912 if { (ac_try="$ac_compile"
28913 case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28916 esac
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_compile") 2>conftest.er1
28919 ac_status=$?
28920 grep -v '^ *+' conftest.er1 >conftest.err
28921 rm -f conftest.er1
28922 cat conftest.err >&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } &&
28925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28926 { (case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_try") 2>&5
28932 ac_status=$?
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; } &&
28935 { ac_try='test -s conftest.$ac_objext'
28936 { (case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_try") 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_member_struct_tm_tm_zone=yes
28946 else
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28949
28950 ac_cv_member_struct_tm_tm_zone=no
28951 fi
28952
28953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28954 fi
28955
28956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28957 fi
28958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28959 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
28960 if test $ac_cv_member_struct_tm_tm_zone = yes; then
28961
28962 cat >>confdefs.h <<_ACEOF
28963 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
28964 _ACEOF
28965
28966
28967 fi
28968
28969 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28970
28971 cat >>confdefs.h <<\_ACEOF
28972 @%:@define HAVE_TM_ZONE 1
28973 _ACEOF
28974
28975 else
28976 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28977 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
28978 if test "${ac_cv_have_decl_tzname+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981 cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h. */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28987 #include <time.h>
28988
28989 int
28990 main ()
28991 {
28992 #ifndef tzname
28993 char *p = (char *) tzname;
28994 return !p;
28995 #endif
28996
28997 ;
28998 return 0;
28999 }
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_compile") 2>conftest.er1
29009 ac_status=$?
29010 grep -v '^ *+' conftest.er1 >conftest.err
29011 rm -f conftest.er1
29012 cat conftest.err >&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); } &&
29015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29016 { (case "(($ac_try" in
29017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018 *) ac_try_echo=$ac_try;;
29019 esac
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021 (eval "$ac_try") 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest.$ac_objext'
29026 { (case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_try") 2>&5
29032 ac_status=$?
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ac_cv_have_decl_tzname=yes
29036 else
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29039
29040 ac_cv_have_decl_tzname=no
29041 fi
29042
29043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29044 fi
29045 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
29046 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
29047 if test $ac_cv_have_decl_tzname = yes; then
29048
29049 cat >>confdefs.h <<_ACEOF
29050 @%:@define HAVE_DECL_TZNAME 1
29051 _ACEOF
29052
29053
29054 else
29055 cat >>confdefs.h <<_ACEOF
29056 @%:@define HAVE_DECL_TZNAME 0
29057 _ACEOF
29058
29059
29060 fi
29061
29062
29063 { echo "$as_me:$LINENO: checking for tzname" >&5
29064 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
29065 if test "${ac_cv_var_tzname+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068 cat >conftest.$ac_ext <<_ACEOF
29069 /* confdefs.h. */
29070 _ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29074 #include <time.h>
29075 #if !HAVE_DECL_TZNAME
29076 extern char *tzname[];
29077 #endif
29078
29079 int
29080 main ()
29081 {
29082 return tzname[0][0];
29083 ;
29084 return 0;
29085 }
29086 _ACEOF
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_link") 2>conftest.er1
29095 ac_status=$?
29096 grep -v '^ *+' conftest.er1 >conftest.err
29097 rm -f conftest.er1
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } &&
29101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102 { (case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29105 esac
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_try") 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest$ac_exeext'
29112 { (case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_try") 2>&5
29118 ac_status=$?
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
29121 ac_cv_var_tzname=yes
29122 else
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29125
29126 ac_cv_var_tzname=no
29127 fi
29128
29129 rm -f core conftest.err conftest.$ac_objext \
29130 conftest$ac_exeext conftest.$ac_ext
29131 fi
29132 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
29133 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
29134 if test $ac_cv_var_tzname = yes; then
29135
29136 cat >>confdefs.h <<\_ACEOF
29137 @%:@define HAVE_TZNAME 1
29138 _ACEOF
29139
29140 fi
29141 fi
29142
29143 { echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
29144 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6; }
29145 if test "${bash_cv_struct_timezone+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 else
29148
29149 cat >conftest.$ac_ext <<_ACEOF
29150 /* confdefs.h. */
29151 _ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h. */
29155 #include <sys/time.h>
29156
29157 _ACEOF
29158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29159 $EGREP "struct timezone" >/dev/null 2>&1; then
29160 bash_cv_struct_timezone=yes
29161 else
29162 cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h. */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29168 #include <time.h>
29169
29170 _ACEOF
29171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29172 $EGREP "struct timezone" >/dev/null 2>&1; then
29173 bash_cv_struct_timezone=yes
29174 else
29175 bash_cv_struct_timezone=no
29176 fi
29177 rm -f conftest*
29178
29179 fi
29180 rm -f conftest*
29181
29182
29183 fi
29184
29185 { echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
29186 echo "${ECHO_T}$bash_cv_struct_timezone" >&6; }
29187 if test $bash_cv_struct_timezone = yes; then
29188 cat >>confdefs.h <<\_ACEOF
29189 @%:@define HAVE_STRUCT_TIMEZONE 1
29190 _ACEOF
29191
29192 fi
29193
29194
29195 { echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
29196 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6; }
29197 if test "${bash_cv_have_strsignal+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200 cat >conftest.$ac_ext <<_ACEOF
29201 /* confdefs.h. */
29202 _ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29206 #include <sys/types.h>
29207 #include <signal.h>
29208 int
29209 main ()
29210 {
29211 char *s = (char *)strsignal(2);
29212 ;
29213 return 0;
29214 }
29215 _ACEOF
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29224 ac_status=$?
29225 grep -v '^ *+' conftest.er1 >conftest.err
29226 rm -f conftest.er1
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234 esac
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29244 esac
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 bash_cv_have_strsignal=yes
29251 else
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29254
29255 bash_cv_have_strsignal=no
29256 fi
29257
29258 rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext conftest.$ac_ext
29260 fi
29261
29262 { echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
29263 echo "${ECHO_T}$bash_cv_have_strsignal" >&6; }
29264 if test $bash_cv_have_strsignal = yes; then
29265 cat >>confdefs.h <<\_ACEOF
29266 @%:@define HAVE_STRSIGNAL 1
29267 _ACEOF
29268
29269 fi
29270
29271 { echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
29272 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6; }
29273 if test "${bash_cv_opendir_not_robust+set}" = set; then
29274 echo $ECHO_N "(cached) $ECHO_C" >&6
29275 else
29276 if test "$cross_compiling" = yes; then
29277 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
29278 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
29279 bash_cv_opendir_not_robust=no
29280
29281 else
29282 cat >conftest.$ac_ext <<_ACEOF
29283 /* confdefs.h. */
29284 _ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h. */
29288
29289 #include <stdio.h>
29290 #include <sys/types.h>
29291 #include <fcntl.h>
29292 #ifdef HAVE_UNISTD_H
29293 # include <unistd.h>
29294 #endif /* HAVE_UNISTD_H */
29295 #if defined(HAVE_DIRENT_H)
29296 # include <dirent.h>
29297 #else
29298 # define dirent direct
29299 # ifdef HAVE_SYS_NDIR_H
29300 # include <sys/ndir.h>
29301 # endif /* SYSNDIR */
29302 # ifdef HAVE_SYS_DIR_H
29303 # include <sys/dir.h>
29304 # endif /* SYSDIR */
29305 # ifdef HAVE_NDIR_H
29306 # include <ndir.h>
29307 # endif
29308 #endif /* HAVE_DIRENT_H */
29309 main()
29310 {
29311 DIR *dir;
29312 int fd, err;
29313 err = mkdir("bash-aclocal", 0700);
29314 if (err < 0) {
29315 perror("mkdir");
29316 exit(1);
29317 }
29318 unlink("bash-aclocal/not_a_directory");
29319 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
29320 write(fd, "\n", 1);
29321 close(fd);
29322 dir = opendir("bash-aclocal/not_a_directory");
29323 unlink("bash-aclocal/not_a_directory");
29324 rmdir("bash-aclocal");
29325 exit (dir == 0);
29326 }
29327 _ACEOF
29328 rm -f conftest$ac_exeext
29329 if { (ac_try="$ac_link"
29330 case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29333 esac
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_link") 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29339 { (case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29342 esac
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_try") 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 bash_cv_opendir_not_robust=yes
29349 else
29350 echo "$as_me: program exited with status $ac_status" >&5
29351 echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29353
29354 ( exit $ac_status )
29355 bash_cv_opendir_not_robust=no
29356 fi
29357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29358 fi
29359
29360
29361 fi
29362
29363 { echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
29364 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6; }
29365 if test $bash_cv_opendir_not_robust = yes; then
29366 cat >>confdefs.h <<\_ACEOF
29367 @%:@define OPENDIR_NOT_ROBUST 1
29368 _ACEOF
29369
29370 fi
29371
29372 { echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
29373 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6; }
29374 if test "${bash_cv_ulimit_maxfds+set}" = set; then
29375 echo $ECHO_N "(cached) $ECHO_C" >&6
29376 else
29377 if test "$cross_compiling" = yes; then
29378 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
29379 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
29380 bash_cv_ulimit_maxfds=no
29381
29382 else
29383 cat >conftest.$ac_ext <<_ACEOF
29384 /* confdefs.h. */
29385 _ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29389
29390 main()
29391 {
29392 long maxfds = ulimit(4, 0L);
29393 exit (maxfds == -1L);
29394 }
29395
29396 _ACEOF
29397 rm -f conftest$ac_exeext
29398 if { (ac_try="$ac_link"
29399 case "(($ac_try" in
29400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401 *) ac_try_echo=$ac_try;;
29402 esac
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404 (eval "$ac_link") 2>&5
29405 ac_status=$?
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29408 { (case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_try") 2>&5
29414 ac_status=$?
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 bash_cv_ulimit_maxfds=yes
29418 else
29419 echo "$as_me: program exited with status $ac_status" >&5
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29422
29423 ( exit $ac_status )
29424 bash_cv_ulimit_maxfds=no
29425 fi
29426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29427 fi
29428
29429
29430 fi
29431
29432 { echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
29433 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6; }
29434 if test $bash_cv_ulimit_maxfds = yes; then
29435 cat >>confdefs.h <<\_ACEOF
29436 @%:@define ULIMIT_MAXFDS 1
29437 _ACEOF
29438
29439 fi
29440
29441
29442
29443
29444
29445 for ac_func in $ac_func_list
29446 do
29447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29452 else
29453 cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h. */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29461 #define $ac_func innocuous_$ac_func
29462
29463 /* System header to define __stub macros and hopefully few prototypes,
29464 which can conflict with char $ac_func (); below.
29465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29466 <limits.h> exists even on freestanding compilers. */
29467
29468 #ifdef __STDC__
29469 # include <limits.h>
29470 #else
29471 # include <assert.h>
29472 #endif
29473
29474 #undef $ac_func
29475
29476 /* Override any GCC internal prototype to avoid an error.
29477 Use char because int might match the return type of a GCC
29478 builtin and then its argument prototype would still apply. */
29479 #ifdef __cplusplus
29480 extern "C"
29481 #endif
29482 char $ac_func ();
29483 /* The GNU C library defines this for functions which it implements
29484 to always fail with ENOSYS. Some functions are actually named
29485 something starting with __ and the normal name is an alias. */
29486 #if defined __stub_$ac_func || defined __stub___$ac_func
29487 choke me
29488 #endif
29489
29490 int
29491 main ()
29492 {
29493 return $ac_func ();
29494 ;
29495 return 0;
29496 }
29497 _ACEOF
29498 rm -f conftest.$ac_objext conftest$ac_exeext
29499 if { (ac_try="$ac_link"
29500 case "(($ac_try" in
29501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502 *) ac_try_echo=$ac_try;;
29503 esac
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505 (eval "$ac_link") 2>conftest.er1
29506 ac_status=$?
29507 grep -v '^ *+' conftest.er1 >conftest.err
29508 rm -f conftest.er1
29509 cat conftest.err >&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } &&
29512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29513 { (case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29516 esac
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_try") 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; } &&
29522 { ac_try='test -s conftest$ac_exeext'
29523 { (case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29526 esac
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_try") 2>&5
29529 ac_status=$?
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); }; }; then
29532 eval "$as_ac_var=yes"
29533 else
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537 eval "$as_ac_var=no"
29538 fi
29539
29540 rm -f core conftest.err conftest.$ac_objext \
29541 conftest$ac_exeext conftest.$ac_ext
29542 fi
29543 ac_res=`eval echo '${'$as_ac_var'}'`
29544 { echo "$as_me:$LINENO: result: $ac_res" >&5
29545 echo "${ECHO_T}$ac_res" >&6; }
29546 if test `eval echo '${'$as_ac_var'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29549 _ACEOF
29550
29551 fi
29552 done
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571 { echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
29572 echo $ECHO_N "checking whether fpurge is declared... $ECHO_C" >&6; }
29573 if test "${ac_cv_have_decl_fpurge+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29575 else
29576 cat >conftest.$ac_ext <<_ACEOF
29577 /* confdefs.h. */
29578 _ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29582 #include <stdio.h>
29583
29584 int
29585 main ()
29586 {
29587 #ifndef fpurge
29588 char *p = (char *) fpurge;
29589 return !p;
29590 #endif
29591
29592 ;
29593 return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext
29597 if { (ac_try="$ac_compile"
29598 case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_compile") 2>conftest.er1
29604 ac_status=$?
29605 grep -v '^ *+' conftest.er1 >conftest.err
29606 rm -f conftest.er1
29607 cat conftest.err >&5
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } &&
29610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29611 { (case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29614 esac
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616 (eval "$ac_try") 2>&5
29617 ac_status=$?
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest.$ac_objext'
29621 { (case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29624 esac
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_try") 2>&5
29627 ac_status=$?
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; }; then
29630 ac_cv_have_decl_fpurge=yes
29631 else
29632 echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 ac_cv_have_decl_fpurge=no
29636 fi
29637
29638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29639 fi
29640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
29641 echo "${ECHO_T}$ac_cv_have_decl_fpurge" >&6; }
29642 if test $ac_cv_have_decl_fpurge = yes; then
29643
29644 cat >>confdefs.h <<_ACEOF
29645 @%:@define HAVE_DECL_FPURGE 1
29646 _ACEOF
29647
29648
29649 else
29650 cat >>confdefs.h <<_ACEOF
29651 @%:@define HAVE_DECL_FPURGE 0
29652 _ACEOF
29653
29654
29655 fi
29656
29657
29658
29659 { echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
29660 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6; }
29661 if test "${bash_cv_getenv_redef+set}" = set; then
29662 echo $ECHO_N "(cached) $ECHO_C" >&6
29663 else
29664 if test "$cross_compiling" = yes; then
29665 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
29666 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
29667 bash_cv_getenv_redef=yes
29668
29669 else
29670 cat >conftest.$ac_ext <<_ACEOF
29671 /* confdefs.h. */
29672 _ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h. */
29676
29677 #ifdef HAVE_UNISTD_H
29678 # include <unistd.h>
29679 #endif
29680 #ifndef __STDC__
29681 # ifndef const
29682 # define const
29683 # endif
29684 #endif
29685 char *
29686 getenv (name)
29687 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29688 const char *name;
29689 #else
29690 char const *name;
29691 #endif /* !__linux__ && !__bsdi__ && !convex */
29692 {
29693 return "42";
29694 }
29695 main()
29696 {
29697 char *s;
29698 /* The next allows this program to run, but does not allow bash to link
29699 when it redefines getenv. I'm not really interested in figuring out
29700 why not. */
29701 #if defined (NeXT)
29702 exit(1);
29703 #endif
29704 s = getenv("ABCDE");
29705 exit(s == 0); /* force optimizer to leave getenv in */
29706 }
29707
29708 _ACEOF
29709 rm -f conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29714 esac
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_link") 2>&5
29717 ac_status=$?
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29720 { (case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29723 esac
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 bash_cv_getenv_redef=yes
29730 else
29731 echo "$as_me: program exited with status $ac_status" >&5
29732 echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735 ( exit $ac_status )
29736 bash_cv_getenv_redef=no
29737 fi
29738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29739 fi
29740
29741
29742 fi
29743
29744 { echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29745 echo "${ECHO_T}$bash_cv_getenv_redef" >&6; }
29746 if test $bash_cv_getenv_redef = yes; then
29747 cat >>confdefs.h <<\_ACEOF
29748 @%:@define CAN_REDEFINE_GETENV 1
29749 _ACEOF
29750
29751 fi
29752
29753 if test "$ac_cv_func_getcwd" = "yes"; then
29754 { echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29755 echo $ECHO_N "checking if getcwd() will dynamically allocate memory with 0 size... $ECHO_C" >&6; }
29756 if test "${bash_cv_getcwd_malloc+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29758 else
29759 if test "$cross_compiling" = yes; then
29760 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29761 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
29762 bash_cv_getcwd_malloc=no
29763
29764 else
29765 cat >conftest.$ac_ext <<_ACEOF
29766 /* confdefs.h. */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29771
29772 #include <stdio.h>
29773 #ifdef HAVE_UNISTD_H
29774 #include <unistd.h>
29775 #endif
29776
29777 main()
29778 {
29779 char *xpwd;
29780 xpwd = getcwd(0, 0);
29781 exit (xpwd == 0);
29782 }
29783
29784 _ACEOF
29785 rm -f conftest$ac_exeext
29786 if { (ac_try="$ac_link"
29787 case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_link") 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29796 { (case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29799 esac
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_try") 2>&5
29802 ac_status=$?
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; }; then
29805 bash_cv_getcwd_malloc=yes
29806 else
29807 echo "$as_me: program exited with status $ac_status" >&5
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29810
29811 ( exit $ac_status )
29812 bash_cv_getcwd_malloc=no
29813 fi
29814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29815 fi
29816
29817
29818 fi
29819
29820 { echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29821 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6; }
29822 if test $bash_cv_getcwd_malloc = no; then
29823 cat >>confdefs.h <<\_ACEOF
29824 @%:@define GETCWD_BROKEN 1
29825 _ACEOF
29826
29827 case " $LIB@&t@OBJS " in
29828 *" getcwd.$ac_objext "* ) ;;
29829 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
29830 ;;
29831 esac
29832
29833 fi
29834
29835 fi
29836
29837 { echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29838 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6; }
29839 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29841 else
29842 if test "$cross_compiling" = yes; then
29843 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29844 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
29845 bash_cv_func_sigsetjmp=missing
29846
29847 else
29848 cat >conftest.$ac_ext <<_ACEOF
29849 /* confdefs.h. */
29850 _ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29854
29855 #ifdef HAVE_UNISTD_H
29856 #include <unistd.h>
29857 #endif
29858 #include <sys/types.h>
29859 #include <signal.h>
29860 #include <setjmp.h>
29861
29862 main()
29863 {
29864 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29865 exit (1);
29866 #else
29867
29868 int code;
29869 sigset_t set, oset;
29870 sigjmp_buf xx;
29871
29872 /* get the mask */
29873 sigemptyset(&set);
29874 sigemptyset(&oset);
29875 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29876 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29877
29878 /* save it */
29879 code = sigsetjmp(xx, 1);
29880 if (code)
29881 exit(0); /* could get sigmask and compare to oset here. */
29882
29883 /* change it */
29884 sigaddset(&set, SIGINT);
29885 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29886
29887 /* and siglongjmp */
29888 siglongjmp(xx, 10);
29889 exit(1);
29890 #endif
29891 }
29892 _ACEOF
29893 rm -f conftest$ac_exeext
29894 if { (ac_try="$ac_link"
29895 case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29898 esac
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_link") 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29904 { (case "(($ac_try" in
29905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906 *) ac_try_echo=$ac_try;;
29907 esac
29908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909 (eval "$ac_try") 2>&5
29910 ac_status=$?
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; }; then
29913 bash_cv_func_sigsetjmp=present
29914 else
29915 echo "$as_me: program exited with status $ac_status" >&5
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29918
29919 ( exit $ac_status )
29920 bash_cv_func_sigsetjmp=missing
29921 fi
29922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29923 fi
29924
29925
29926 fi
29927
29928 { echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29929 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6; }
29930 if test $bash_cv_func_sigsetjmp = present; then
29931 cat >>confdefs.h <<\_ACEOF
29932 @%:@define HAVE_POSIX_SIGSETJMP 1
29933 _ACEOF
29934
29935 fi
29936
29937
29938 { echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29939 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6; }
29940 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29941 echo $ECHO_N "(cached) $ECHO_C" >&6
29942 else
29943 if test "$cross_compiling" = yes; then
29944 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29945 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
29946 bash_cv_func_strcoll_broken=no
29947
29948 else
29949 cat >conftest.$ac_ext <<_ACEOF
29950 /* confdefs.h. */
29951 _ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29955
29956 #include <stdio.h>
29957 #if defined (HAVE_LOCALE_H)
29958 #include <locale.h>
29959 #endif
29960
29961 main(c, v)
29962 int c;
29963 char *v[];
29964 {
29965 int r1, r2;
29966 char *deflocale, *defcoll;
29967
29968 #ifdef HAVE_SETLOCALE
29969 deflocale = setlocale(LC_ALL, "");
29970 defcoll = setlocale(LC_COLLATE, "");
29971 #endif
29972
29973 #ifdef HAVE_STRCOLL
29974 /* These two values are taken from tests/glob-test. */
29975 r1 = strcoll("abd", "aXd");
29976 #else
29977 r1 = 0;
29978 #endif
29979 r2 = strcmp("abd", "aXd");
29980
29981 /* These two should both be greater than 0. It is permissible for
29982 a system to return different values, as long as the sign is the
29983 same. */
29984
29985 /* Exit with 1 (failure) if these two values are both > 0, since
29986 this tests whether strcoll(3) is broken with respect to strcmp(3)
29987 in the default locale. */
29988 exit (r1 > 0 && r2 > 0);
29989 }
29990
29991 _ACEOF
29992 rm -f conftest$ac_exeext
29993 if { (ac_try="$ac_link"
29994 case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29997 esac
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_link") 2>&5
30000 ac_status=$?
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30003 { (case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30006 esac
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_try") 2>&5
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; }; then
30012 bash_cv_func_strcoll_broken=yes
30013 else
30014 echo "$as_me: program exited with status $ac_status" >&5
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018 ( exit $ac_status )
30019 bash_cv_func_strcoll_broken=no
30020 fi
30021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30022 fi
30023
30024
30025 fi
30026
30027 { echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
30028 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6; }
30029 if test $bash_cv_func_strcoll_broken = yes; then
30030 cat >>confdefs.h <<\_ACEOF
30031 @%:@define STRCOLL_BROKEN 1
30032 _ACEOF
30033
30034 fi
30035
30036
30037
30038 if test "$ac_cv_func_putenv" = "yes"; then
30039
30040
30041
30042 { echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
30043 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6; }
30044 if test "${bash_cv_std_putenv+set}" = set; then
30045 echo $ECHO_N "(cached) $ECHO_C" >&6
30046 else
30047 cat >conftest.$ac_ext <<_ACEOF
30048 /* confdefs.h. */
30049 _ACEOF
30050 cat confdefs.h >>conftest.$ac_ext
30051 cat >>conftest.$ac_ext <<_ACEOF
30052 /* end confdefs.h. */
30053
30054 #if STDC_HEADERS
30055 #include <stdlib.h>
30056 #include <stddef.h>
30057 #endif
30058 #ifndef __STDC__
30059 # ifndef const
30060 # define const
30061 # endif
30062 #endif
30063 #ifdef PROTOTYPES
30064 extern int putenv (char *);
30065 #else
30066 extern int putenv ();
30067 #endif
30068
30069 int
30070 main ()
30071 {
30072 return (putenv == 0);
30073 ;
30074 return 0;
30075 }
30076 _ACEOF
30077 rm -f conftest.$ac_objext conftest$ac_exeext
30078 if { (ac_try="$ac_link"
30079 case "(($ac_try" in
30080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081 *) ac_try_echo=$ac_try;;
30082 esac
30083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084 (eval "$ac_link") 2>conftest.er1
30085 ac_status=$?
30086 grep -v '^ *+' conftest.er1 >conftest.err
30087 rm -f conftest.er1
30088 cat conftest.err >&5
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
30091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30092 { (case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30095 esac
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097 (eval "$ac_try") 2>&5
30098 ac_status=$?
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); }; } &&
30101 { ac_try='test -s conftest$ac_exeext'
30102 { (case "(($ac_try" in
30103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30104 *) ac_try_echo=$ac_try;;
30105 esac
30106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30107 (eval "$ac_try") 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 bash_cv_std_putenv=yes
30112 else
30113 echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116 bash_cv_std_putenv=no
30117
30118 fi
30119
30120 rm -f core conftest.err conftest.$ac_objext \
30121 conftest$ac_exeext conftest.$ac_ext
30122 fi
30123 { echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
30124 echo "${ECHO_T}$bash_cv_std_putenv" >&6; }
30125 if test $bash_cv_std_putenv = yes; then
30126 cat >>confdefs.h <<\_ACEOF
30127 @%:@define HAVE_STD_PUTENV 1
30128 _ACEOF
30129
30130 fi
30131
30132 else
30133 cat >>confdefs.h <<\_ACEOF
30134 @%:@define HAVE_STD_PUTENV 1
30135 _ACEOF
30136
30137 fi
30138 if test "$ac_cv_func_unsetenv" = "yes"; then
30139
30140
30141
30142 { echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
30143 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6; }
30144 if test "${bash_cv_std_unsetenv+set}" = set; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30146 else
30147 cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h. */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h. */
30153
30154 #if STDC_HEADERS
30155 #include <stdlib.h>
30156 #include <stddef.h>
30157 #endif
30158 #ifndef __STDC__
30159 # ifndef const
30160 # define const
30161 # endif
30162 #endif
30163 #ifdef PROTOTYPES
30164 extern int unsetenv (const char *);
30165 #else
30166 extern int unsetenv ();
30167 #endif
30168
30169 int
30170 main ()
30171 {
30172 return (unsetenv == 0);
30173 ;
30174 return 0;
30175 }
30176 _ACEOF
30177 rm -f conftest.$ac_objext conftest$ac_exeext
30178 if { (ac_try="$ac_link"
30179 case "(($ac_try" in
30180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30182 esac
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_link") 2>conftest.er1
30185 ac_status=$?
30186 grep -v '^ *+' conftest.er1 >conftest.err
30187 rm -f conftest.er1
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192 { (case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30195 esac
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_try") 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest$ac_exeext'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30205 esac
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 bash_cv_std_unsetenv=yes
30212 else
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30215
30216 bash_cv_std_unsetenv=no
30217
30218 fi
30219
30220 rm -f core conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
30222 fi
30223 { echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
30224 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6; }
30225 if test $bash_cv_std_unsetenv = yes; then
30226 cat >>confdefs.h <<\_ACEOF
30227 @%:@define HAVE_STD_UNSETENV 1
30228 _ACEOF
30229
30230 fi
30231
30232 else
30233 cat >>confdefs.h <<\_ACEOF
30234 @%:@define HAVE_STD_UNSETENV 1
30235 _ACEOF
30236
30237 fi
30238
30239 { echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
30240 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6; }
30241 if test "${bash_cv_printf_a_format+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 else
30244 if test "$cross_compiling" = yes; then
30245 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
30246 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
30247 bash_cv_printf_a_format=no
30248
30249 else
30250 cat >conftest.$ac_ext <<_ACEOF
30251 /* confdefs.h. */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30256
30257 #include <stdio.h>
30258 #include <string.h>
30259
30260 int
30261 main()
30262 {
30263 double y = 0.0;
30264 char abuf[1024];
30265
30266 sprintf(abuf, "%A", y);
30267 exit(strchr(abuf, 'P') == (char *)0);
30268 }
30269
30270 _ACEOF
30271 rm -f conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_link") 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30282 { (case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_try") 2>&5
30288 ac_status=$?
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 bash_cv_printf_a_format=yes
30292 else
30293 echo "$as_me: program exited with status $ac_status" >&5
30294 echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30296
30297 ( exit $ac_status )
30298 bash_cv_printf_a_format=no
30299 fi
30300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30301 fi
30302
30303
30304 fi
30305
30306 { echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
30307 echo "${ECHO_T}$bash_cv_printf_a_format" >&6; }
30308 if test $bash_cv_printf_a_format = yes; then
30309 cat >>confdefs.h <<\_ACEOF
30310 @%:@define HAVE_PRINTF_A_FORMAT 1
30311 _ACEOF
30312
30313 fi
30314
30315
30316
30317
30318 { echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
30319 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6; }
30320 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
30321 echo $ECHO_N "(cached) $ECHO_C" >&6
30322 else
30323 if test "$cross_compiling" = yes; then
30324 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
30325 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
30326 bash_cv_must_reinstall_sighandlers=no
30327
30328 else
30329 cat >conftest.$ac_ext <<_ACEOF
30330 /* confdefs.h. */
30331 _ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30335
30336 #include <signal.h>
30337 #ifdef HAVE_UNISTD_H
30338 #include <unistd.h>
30339 #endif
30340
30341 typedef RETSIGTYPE sigfunc();
30342
30343 int nsigint;
30344
30345 #ifdef HAVE_POSIX_SIGNALS
30346 sigfunc *
30347 set_signal_handler(sig, handler)
30348 int sig;
30349 sigfunc *handler;
30350 {
30351 struct sigaction act, oact;
30352 act.sa_handler = handler;
30353 act.sa_flags = 0;
30354 sigemptyset (&act.sa_mask);
30355 sigemptyset (&oact.sa_mask);
30356 sigaction (sig, &act, &oact);
30357 return (oact.sa_handler);
30358 }
30359 #else
30360 #define set_signal_handler(s, h) signal(s, h)
30361 #endif
30362
30363 RETSIGTYPE
30364 sigint(s)
30365 int s;
30366 {
30367 nsigint++;
30368 }
30369
30370 main()
30371 {
30372 nsigint = 0;
30373 set_signal_handler(SIGINT, sigint);
30374 kill((int)getpid(), SIGINT);
30375 kill((int)getpid(), SIGINT);
30376 exit(nsigint != 2);
30377 }
30378
30379 _ACEOF
30380 rm -f conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384 *) ac_try_echo=$ac_try;;
30385 esac
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387 (eval "$ac_link") 2>&5
30388 ac_status=$?
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30391 { (case "(($ac_try" in
30392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393 *) ac_try_echo=$ac_try;;
30394 esac
30395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30396 (eval "$ac_try") 2>&5
30397 ac_status=$?
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); }; }; then
30400 bash_cv_must_reinstall_sighandlers=no
30401 else
30402 echo "$as_me: program exited with status $ac_status" >&5
30403 echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30405
30406 ( exit $ac_status )
30407 bash_cv_must_reinstall_sighandlers=yes
30408 fi
30409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30410 fi
30411
30412
30413 fi
30414
30415 { echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
30416 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6; }
30417 if test $bash_cv_must_reinstall_sighandlers = yes; then
30418 cat >>confdefs.h <<\_ACEOF
30419 @%:@define MUST_REINSTALL_SIGHANDLERS 1
30420 _ACEOF
30421
30422 fi
30423
30424
30425 { echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
30426 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6; }
30427 if test "${bash_cv_job_control_missing+set}" = set; then
30428 echo $ECHO_N "(cached) $ECHO_C" >&6
30429 else
30430 if test "$cross_compiling" = yes; then
30431 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
30432 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
30433 bash_cv_job_control_missing=missing
30434
30435 else
30436 cat >conftest.$ac_ext <<_ACEOF
30437 /* confdefs.h. */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h. */
30442
30443 #include <sys/types.h>
30444 #ifdef HAVE_SYS_WAIT_H
30445 #include <sys/wait.h>
30446 #endif
30447 #ifdef HAVE_UNISTD_H
30448 #include <unistd.h>
30449 #endif
30450 #include <signal.h>
30451
30452 /* Add more tests in here as appropriate. */
30453 main()
30454 {
30455 /* signal type */
30456 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
30457 exit(1);
30458 #endif
30459
30460 /* signals and tty control. */
30461 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
30462 exit (1);
30463 #endif
30464
30465 /* process control */
30466 #if !defined (WNOHANG) || !defined (WUNTRACED)
30467 exit(1);
30468 #endif
30469
30470 /* Posix systems have tcgetpgrp and waitpid. */
30471 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30472 exit(1);
30473 #endif
30474
30475 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30476 exit(1);
30477 #endif
30478
30479 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30480 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30481 exit(1);
30482 #endif
30483
30484 exit(0);
30485 }
30486 _ACEOF
30487 rm -f conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_link") 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30501 esac
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30504 ac_status=$?
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30507 bash_cv_job_control_missing=present
30508 else
30509 echo "$as_me: program exited with status $ac_status" >&5
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513 ( exit $ac_status )
30514 bash_cv_job_control_missing=missing
30515 fi
30516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30517 fi
30518
30519
30520 fi
30521
30522 { echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30523 echo "${ECHO_T}$bash_cv_job_control_missing" >&6; }
30524 if test $bash_cv_job_control_missing = missing; then
30525 cat >>confdefs.h <<\_ACEOF
30526 @%:@define JOB_CONTROL_MISSING 1
30527 _ACEOF
30528
30529 fi
30530
30531 { echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30532 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6; }
30533 if test "${bash_cv_sys_named_pipes+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30535 else
30536 if test "$cross_compiling" = yes; then
30537 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30538 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
30539 bash_cv_sys_named_pipes=missing
30540
30541 else
30542 cat >conftest.$ac_ext <<_ACEOF
30543 /* confdefs.h. */
30544 _ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h. */
30548
30549 #include <sys/types.h>
30550 #include <sys/stat.h>
30551 #ifdef HAVE_UNISTD_H
30552 #include <unistd.h>
30553 #endif
30554
30555 /* Add more tests in here as appropriate. */
30556 main()
30557 {
30558 int fd, err;
30559
30560 #if defined (HAVE_MKFIFO)
30561 exit (0);
30562 #endif
30563
30564 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30565 exit (1);
30566 #endif
30567
30568 #if defined (NeXT)
30569 exit (1);
30570 #endif
30571 err = mkdir("bash-aclocal", 0700);
30572 if (err < 0) {
30573 perror ("mkdir");
30574 exit(1);
30575 }
30576 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
30577 if (fd == -1) {
30578 rmdir ("bash-aclocal");
30579 exit (1);
30580 }
30581 close(fd);
30582 unlink ("bash-aclocal/sh-np-autoconf");
30583 rmdir ("bash-aclocal");
30584 exit(0);
30585 }
30586 _ACEOF
30587 rm -f conftest$ac_exeext
30588 if { (ac_try="$ac_link"
30589 case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30592 esac
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_link") 2>&5
30595 ac_status=$?
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30598 { (case "(($ac_try" in
30599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30600 *) ac_try_echo=$ac_try;;
30601 esac
30602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30603 (eval "$ac_try") 2>&5
30604 ac_status=$?
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); }; }; then
30607 bash_cv_sys_named_pipes=present
30608 else
30609 echo "$as_me: program exited with status $ac_status" >&5
30610 echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30612
30613 ( exit $ac_status )
30614 bash_cv_sys_named_pipes=missing
30615 fi
30616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30617 fi
30618
30619
30620 fi
30621
30622 { echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30623 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6; }
30624 if test $bash_cv_sys_named_pipes = missing; then
30625 cat >>confdefs.h <<\_ACEOF
30626 @%:@define NAMED_PIPES_MISSING 1
30627 _ACEOF
30628
30629 fi
30630
30631
30632 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30633 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
30634 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637 cat >conftest.$ac_ext <<_ACEOF
30638 /* confdefs.h. */
30639 _ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h. */
30643 #include <sys/types.h>
30644 #include <termios.h>
30645 #ifdef TIOCGWINSZ
30646 yes
30647 #endif
30648
30649 _ACEOF
30650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30651 $EGREP "yes" >/dev/null 2>&1; then
30652 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30653 else
30654 ac_cv_sys_tiocgwinsz_in_termios_h=no
30655 fi
30656 rm -f conftest*
30657
30658 fi
30659 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30660 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30661
30662 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30663 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30664 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
30665 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30667 else
30668 cat >conftest.$ac_ext <<_ACEOF
30669 /* confdefs.h. */
30670 _ACEOF
30671 cat confdefs.h >>conftest.$ac_ext
30672 cat >>conftest.$ac_ext <<_ACEOF
30673 /* end confdefs.h. */
30674 #include <sys/types.h>
30675 #include <sys/ioctl.h>
30676 #ifdef TIOCGWINSZ
30677 yes
30678 #endif
30679
30680 _ACEOF
30681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30682 $EGREP "yes" >/dev/null 2>&1; then
30683 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30684 else
30685 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30686 fi
30687 rm -f conftest*
30688
30689 fi
30690 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30691 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30692
30693 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30694
30695 cat >>confdefs.h <<\_ACEOF
30696 @%:@define GWINSZ_IN_SYS_IOCTL 1
30697 _ACEOF
30698
30699 fi
30700 fi
30701
30702 { echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30703 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6; }
30704 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706 else
30707 cat >conftest.$ac_ext <<_ACEOF
30708 /* confdefs.h. */
30709 _ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h. */
30713 #include <sys/types.h>
30714 #include <sys/ioctl.h>
30715 int
30716 main ()
30717 {
30718 int x = TIOCSTAT;
30719 ;
30720 return 0;
30721 }
30722 _ACEOF
30723 rm -f conftest.$ac_objext
30724 if { (ac_try="$ac_compile"
30725 case "(($ac_try" in
30726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30727 *) ac_try_echo=$ac_try;;
30728 esac
30729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30730 (eval "$ac_compile") 2>conftest.er1
30731 ac_status=$?
30732 grep -v '^ *+' conftest.er1 >conftest.err
30733 rm -f conftest.er1
30734 cat conftest.err >&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); } &&
30737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; } &&
30747 { ac_try='test -s conftest.$ac_objext'
30748 { (case "(($ac_try" in
30749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30750 *) ac_try_echo=$ac_try;;
30751 esac
30752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30753 (eval "$ac_try") 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 bash_cv_tiocstat_in_ioctl=yes
30758 else
30759 echo "$as_me: failed program was:" >&5
30760 sed 's/^/| /' conftest.$ac_ext >&5
30761
30762 bash_cv_tiocstat_in_ioctl=no
30763 fi
30764
30765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30766 fi
30767
30768 { echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30769 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6; }
30770 if test $bash_cv_tiocstat_in_ioctl = yes; then
30771 cat >>confdefs.h <<\_ACEOF
30772 @%:@define TIOCSTAT_IN_SYS_IOCTL 1
30773 _ACEOF
30774
30775 fi
30776
30777 { echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30778 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6; }
30779 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781 else
30782 cat >conftest.$ac_ext <<_ACEOF
30783 /* confdefs.h. */
30784 _ACEOF
30785 cat confdefs.h >>conftest.$ac_ext
30786 cat >>conftest.$ac_ext <<_ACEOF
30787 /* end confdefs.h. */
30788 #include <sys/types.h>
30789 #include <sys/ioctl.h>
30790 int
30791 main ()
30792 {
30793 int x = FIONREAD;
30794 ;
30795 return 0;
30796 }
30797 _ACEOF
30798 rm -f conftest.$ac_objext
30799 if { (ac_try="$ac_compile"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803 esac
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
30812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30813 { (case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_try") 2>&5
30819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; } &&
30822 { ac_try='test -s conftest.$ac_objext'
30823 { (case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
30832 bash_cv_fionread_in_ioctl=yes
30833 else
30834 echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30836
30837 bash_cv_fionread_in_ioctl=no
30838 fi
30839
30840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30841 fi
30842
30843 { echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30844 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6; }
30845 if test $bash_cv_fionread_in_ioctl = yes; then
30846 cat >>confdefs.h <<\_ACEOF
30847 @%:@define FIONREAD_IN_SYS_IOCTL 1
30848 _ACEOF
30849
30850 fi
30851
30852
30853
30854 { echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30855 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6; }
30856 if test "${bash_cv_wcontinued_broken+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859 if test "$cross_compiling" = yes; then
30860 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30861 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
30862 bash_cv_wcontinued_broken=no
30863
30864 else
30865 cat >conftest.$ac_ext <<_ACEOF
30866 /* confdefs.h. */
30867 _ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h. */
30871
30872 #include <sys/types.h>
30873 #include <sys/wait.h>
30874 #include <unistd.h>
30875 #include <errno.h>
30876
30877 #ifndef errno
30878 extern int errno;
30879 #endif
30880 main()
30881 {
30882 int x;
30883
30884 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30885 if (x == -1 && errno == EINVAL)
30886 exit (1);
30887 else
30888 exit (0);
30889 }
30890
30891 _ACEOF
30892 rm -f conftest$ac_exeext
30893 if { (ac_try="$ac_link"
30894 case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_link") 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30903 { (case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_try") 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
30912 bash_cv_wcontinued_broken=no
30913 else
30914 echo "$as_me: program exited with status $ac_status" >&5
30915 echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918 ( exit $ac_status )
30919 bash_cv_wcontinued_broken=yes
30920 fi
30921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30922 fi
30923
30924
30925 fi
30926
30927 { echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30928 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6; }
30929 if test $bash_cv_wcontinued_broken = yes; then
30930 cat >>confdefs.h <<\_ACEOF
30931 @%:@define WCONTINUED_BROKEN 1
30932 _ACEOF
30933
30934 fi
30935
30936
30937 { echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30938 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6; }
30939 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941 else
30942 cat >conftest.$ac_ext <<_ACEOF
30943 /* confdefs.h. */
30944 _ACEOF
30945 cat confdefs.h >>conftest.$ac_ext
30946 cat >>conftest.$ac_ext <<_ACEOF
30947 /* end confdefs.h. */
30948 #include <sys/types.h>
30949 int
30950 main ()
30951 {
30952 speed_t x;
30953 ;
30954 return 0;
30955 }
30956 _ACEOF
30957 rm -f conftest.$ac_objext
30958 if { (ac_try="$ac_compile"
30959 case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30962 esac
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_compile") 2>conftest.er1
30965 ac_status=$?
30966 grep -v '^ *+' conftest.er1 >conftest.err
30967 rm -f conftest.er1
30968 cat conftest.err >&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); } &&
30971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30972 { (case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_try") 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; } &&
30981 { ac_try='test -s conftest.$ac_objext'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30985 esac
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 bash_cv_speed_t_in_sys_types=yes
30992 else
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996 bash_cv_speed_t_in_sys_types=no
30997 fi
30998
30999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31000 fi
31001
31002 { echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
31003 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6; }
31004 if test $bash_cv_speed_t_in_sys_types = yes; then
31005 cat >>confdefs.h <<\_ACEOF
31006 @%:@define SPEED_T_IN_SYS_TYPES 1
31007 _ACEOF
31008
31009 fi
31010
31011 { echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
31012 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6; }
31013 if test "${bash_cv_getpw_declared+set}" = set; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31015 else
31016 cat >conftest.$ac_ext <<_ACEOF
31017 /* confdefs.h. */
31018 _ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h. */
31022
31023 #include <sys/types.h>
31024 #ifdef HAVE_UNISTD_H
31025 # include <unistd.h>
31026 #endif
31027 #include <pwd.h>
31028
31029 _ACEOF
31030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31031 $EGREP "getpwuid" >/dev/null 2>&1; then
31032 bash_cv_getpw_declared=yes
31033 else
31034 bash_cv_getpw_declared=no
31035 fi
31036 rm -f conftest*
31037
31038 fi
31039
31040 { echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
31041 echo "${ECHO_T}$bash_cv_getpw_declared" >&6; }
31042 if test $bash_cv_getpw_declared = yes; then
31043 cat >>confdefs.h <<\_ACEOF
31044 @%:@define HAVE_GETPW_DECLS 1
31045 _ACEOF
31046
31047 fi
31048
31049 { echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
31050 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6; }
31051 if test "${bash_cv_unusable_rtsigs+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31053 else
31054 if test "$cross_compiling" = yes; then
31055 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
31056 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
31057 bash_cv_unusable_rtsigs=yes
31058
31059 else
31060 cat >conftest.$ac_ext <<_ACEOF
31061 /* confdefs.h. */
31062 _ACEOF
31063 cat confdefs.h >>conftest.$ac_ext
31064 cat >>conftest.$ac_ext <<_ACEOF
31065 /* end confdefs.h. */
31066
31067 #include <sys/types.h>
31068 #include <signal.h>
31069
31070 #ifndef NSIG
31071 # define NSIG 64
31072 #endif
31073
31074 main ()
31075 {
31076 int n_sigs = 2 * NSIG;
31077 #ifdef SIGRTMIN
31078 int rtmin = SIGRTMIN;
31079 #else
31080 int rtmin = 0;
31081 #endif
31082
31083 exit(rtmin < n_sigs);
31084 }
31085 _ACEOF
31086 rm -f conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31091 esac
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_link") 2>&5
31094 ac_status=$?
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31097 { (case "(($ac_try" in
31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099 *) ac_try_echo=$ac_try;;
31100 esac
31101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102 (eval "$ac_try") 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 bash_cv_unusable_rtsigs=yes
31107 else
31108 echo "$as_me: program exited with status $ac_status" >&5
31109 echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31111
31112 ( exit $ac_status )
31113 bash_cv_unusable_rtsigs=no
31114 fi
31115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31116 fi
31117
31118
31119 fi
31120
31121 { echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
31122 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6; }
31123 if test $bash_cv_unusable_rtsigs = yes; then
31124 cat >>confdefs.h <<\_ACEOF
31125 @%:@define UNUSABLE_RT_SIGNALS 1
31126 _ACEOF
31127
31128 fi
31129
31130
31131
31132
31133
31134 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
31135 SIGLIST_O=siglist.o
31136 else
31137 SIGLIST_O=
31138 fi
31139
31140
31141
31142 case "$host_os" in
31143 hpux*) { echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
31144 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6; }
31145 if test "${bash_cv_kernel_rlimit+set}" = set; then
31146 echo $ECHO_N "(cached) $ECHO_C" >&6
31147 else
31148 cat >conftest.$ac_ext <<_ACEOF
31149 /* confdefs.h. */
31150 _ACEOF
31151 cat confdefs.h >>conftest.$ac_ext
31152 cat >>conftest.$ac_ext <<_ACEOF
31153 /* end confdefs.h. */
31154
31155 #include <sys/types.h>
31156 #include <sys/resource.h>
31157
31158 int
31159 main ()
31160 {
31161
31162 int f;
31163 f = RLIMIT_DATA;
31164
31165 ;
31166 return 0;
31167 }
31168 _ACEOF
31169 rm -f conftest.$ac_objext
31170 if { (ac_try="$ac_compile"
31171 case "(($ac_try" in
31172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31173 *) ac_try_echo=$ac_try;;
31174 esac
31175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31176 (eval "$ac_compile") 2>conftest.er1
31177 ac_status=$?
31178 grep -v '^ *+' conftest.er1 >conftest.err
31179 rm -f conftest.er1
31180 cat conftest.err >&5
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); } &&
31183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31184 { (case "(($ac_try" in
31185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186 *) ac_try_echo=$ac_try;;
31187 esac
31188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31189 (eval "$ac_try") 2>&5
31190 ac_status=$?
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); }; } &&
31193 { ac_try='test -s conftest.$ac_objext'
31194 { (case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_try") 2>&5
31200 ac_status=$?
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; }; then
31203 bash_cv_kernel_rlimit=no
31204 else
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208 cat >conftest.$ac_ext <<_ACEOF
31209 /* confdefs.h. */
31210 _ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h. */
31214
31215 #include <sys/types.h>
31216 #define _KERNEL
31217 #include <sys/resource.h>
31218 #undef _KERNEL
31219
31220 int
31221 main ()
31222 {
31223
31224 int f;
31225 f = RLIMIT_DATA;
31226
31227 ;
31228 return 0;
31229 }
31230 _ACEOF
31231 rm -f conftest.$ac_objext
31232 if { (ac_try="$ac_compile"
31233 case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236 esac
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_compile") 2>conftest.er1
31239 ac_status=$?
31240 grep -v '^ *+' conftest.er1 >conftest.err
31241 rm -f conftest.er1
31242 cat conftest.err >&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); } &&
31245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31246 { (case "(($ac_try" in
31247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31249 esac
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31252 ac_status=$?
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; } &&
31255 { ac_try='test -s conftest.$ac_objext'
31256 { (case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31259 esac
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_try") 2>&5
31262 ac_status=$?
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
31265 bash_cv_kernel_rlimit=yes
31266 else
31267 echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31269
31270 bash_cv_kernel_rlimit=no
31271 fi
31272
31273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31274
31275 fi
31276
31277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31278 fi
31279
31280 { echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
31281 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6; }
31282 if test $bash_cv_kernel_rlimit = yes; then
31283 cat >>confdefs.h <<\_ACEOF
31284 @%:@define RLIMIT_NEEDS_KERNEL 1
31285 _ACEOF
31286
31287 fi
31288 ;;
31289 esac
31290
31291 if test "$opt_readline" = yes; then
31292 case "$host_os" in
31293 aix*) prefer_curses=yes ;;
31294 esac
31295
31296 if test "X$bash_cv_termcap_lib" = "X"; then
31297 _bash_needmsg=yes
31298 else
31299 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31300 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
31301 _bash_needmsg=
31302 fi
31303 if test "${bash_cv_termcap_lib+set}" = set; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31305 else
31306 { echo "$as_me:$LINENO: checking for tgetent" >&5
31307 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
31308 if test "${ac_cv_func_tgetent+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31310 else
31311 cat >conftest.$ac_ext <<_ACEOF
31312 /* confdefs.h. */
31313 _ACEOF
31314 cat confdefs.h >>conftest.$ac_ext
31315 cat >>conftest.$ac_ext <<_ACEOF
31316 /* end confdefs.h. */
31317 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
31318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31319 #define tgetent innocuous_tgetent
31320
31321 /* System header to define __stub macros and hopefully few prototypes,
31322 which can conflict with char tgetent (); below.
31323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31324 <limits.h> exists even on freestanding compilers. */
31325
31326 #ifdef __STDC__
31327 # include <limits.h>
31328 #else
31329 # include <assert.h>
31330 #endif
31331
31332 #undef tgetent
31333
31334 /* Override any GCC internal prototype to avoid an error.
31335 Use char because int might match the return type of a GCC
31336 builtin and then its argument prototype would still apply. */
31337 #ifdef __cplusplus
31338 extern "C"
31339 #endif
31340 char tgetent ();
31341 /* The GNU C library defines this for functions which it implements
31342 to always fail with ENOSYS. Some functions are actually named
31343 something starting with __ and the normal name is an alias. */
31344 #if defined __stub_tgetent || defined __stub___tgetent
31345 choke me
31346 #endif
31347
31348 int
31349 main ()
31350 {
31351 return tgetent ();
31352 ;
31353 return 0;
31354 }
31355 _ACEOF
31356 rm -f conftest.$ac_objext conftest$ac_exeext
31357 if { (ac_try="$ac_link"
31358 case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31361 esac
31362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_link") 2>conftest.er1
31364 ac_status=$?
31365 grep -v '^ *+' conftest.er1 >conftest.err
31366 rm -f conftest.er1
31367 cat conftest.err >&5
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); } &&
31370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31371 { (case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31374 esac
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_try") 2>&5
31377 ac_status=$?
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; } &&
31380 { ac_try='test -s conftest$ac_exeext'
31381 { (case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31384 esac
31385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31386 (eval "$ac_try") 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
31390 ac_cv_func_tgetent=yes
31391 else
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31394
31395 ac_cv_func_tgetent=no
31396 fi
31397
31398 rm -f core conftest.err conftest.$ac_objext \
31399 conftest$ac_exeext conftest.$ac_ext
31400 fi
31401 { echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
31402 echo "${ECHO_T}$ac_cv_func_tgetent" >&6; }
31403 if test $ac_cv_func_tgetent = yes; then
31404 bash_cv_termcap_lib=libc
31405 else
31406 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31407 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31408 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31410 else
31411 ac_check_lib_save_LIBS=$LIBS
31412 LIBS="-ltermcap $LIBS"
31413 cat >conftest.$ac_ext <<_ACEOF
31414 /* confdefs.h. */
31415 _ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h. */
31419
31420 /* Override any GCC internal prototype to avoid an error.
31421 Use char because int might match the return type of a GCC
31422 builtin and then its argument prototype would still apply. */
31423 #ifdef __cplusplus
31424 extern "C"
31425 #endif
31426 char tgetent ();
31427 int
31428 main ()
31429 {
31430 return tgetent ();
31431 ;
31432 return 0;
31433 }
31434 _ACEOF
31435 rm -f conftest.$ac_objext conftest$ac_exeext
31436 if { (ac_try="$ac_link"
31437 case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440 esac
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_link") 2>conftest.er1
31443 ac_status=$?
31444 grep -v '^ *+' conftest.er1 >conftest.err
31445 rm -f conftest.er1
31446 cat conftest.err >&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } &&
31449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31450 { (case "(($ac_try" in
31451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31452 *) ac_try_echo=$ac_try;;
31453 esac
31454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31455 (eval "$ac_try") 2>&5
31456 ac_status=$?
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); }; } &&
31459 { ac_try='test -s conftest$ac_exeext'
31460 { (case "(($ac_try" in
31461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462 *) ac_try_echo=$ac_try;;
31463 esac
31464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465 (eval "$ac_try") 2>&5
31466 ac_status=$?
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); }; }; then
31469 ac_cv_lib_termcap_tgetent=yes
31470 else
31471 echo "$as_me: failed program was:" >&5
31472 sed 's/^/| /' conftest.$ac_ext >&5
31473
31474 ac_cv_lib_termcap_tgetent=no
31475 fi
31476
31477 rm -f core conftest.err conftest.$ac_objext \
31478 conftest$ac_exeext conftest.$ac_ext
31479 LIBS=$ac_check_lib_save_LIBS
31480 fi
31481 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31482 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31483 if test $ac_cv_lib_termcap_tgetent = yes; then
31484 bash_cv_termcap_lib=libtermcap
31485 else
31486 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31487 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
31488 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31490 else
31491 ac_check_lib_save_LIBS=$LIBS
31492 LIBS="-ltinfo $LIBS"
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h. */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499
31500 /* Override any GCC internal prototype to avoid an error.
31501 Use char because int might match the return type of a GCC
31502 builtin and then its argument prototype would still apply. */
31503 #ifdef __cplusplus
31504 extern "C"
31505 #endif
31506 char tgetent ();
31507 int
31508 main ()
31509 {
31510 return tgetent ();
31511 ;
31512 return 0;
31513 }
31514 _ACEOF
31515 rm -f conftest.$ac_objext conftest$ac_exeext
31516 if { (ac_try="$ac_link"
31517 case "(($ac_try" in
31518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519 *) ac_try_echo=$ac_try;;
31520 esac
31521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522 (eval "$ac_link") 2>conftest.er1
31523 ac_status=$?
31524 grep -v '^ *+' conftest.er1 >conftest.err
31525 rm -f conftest.er1
31526 cat conftest.err >&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } &&
31529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31530 { (case "(($ac_try" in
31531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31533 esac
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535 (eval "$ac_try") 2>&5
31536 ac_status=$?
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; } &&
31539 { ac_try='test -s conftest$ac_exeext'
31540 { (case "(($ac_try" in
31541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542 *) ac_try_echo=$ac_try;;
31543 esac
31544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31545 (eval "$ac_try") 2>&5
31546 ac_status=$?
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); }; }; then
31549 ac_cv_lib_tinfo_tgetent=yes
31550 else
31551 echo "$as_me: failed program was:" >&5
31552 sed 's/^/| /' conftest.$ac_ext >&5
31553
31554 ac_cv_lib_tinfo_tgetent=no
31555 fi
31556
31557 rm -f core conftest.err conftest.$ac_objext \
31558 conftest$ac_exeext conftest.$ac_ext
31559 LIBS=$ac_check_lib_save_LIBS
31560 fi
31561 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31562 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31563 if test $ac_cv_lib_tinfo_tgetent = yes; then
31564 bash_cv_termcap_lib=libtinfo
31565 else
31566 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
31567 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
31568 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31570 else
31571 ac_check_lib_save_LIBS=$LIBS
31572 LIBS="-lcurses $LIBS"
31573 cat >conftest.$ac_ext <<_ACEOF
31574 /* confdefs.h. */
31575 _ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h. */
31579
31580 /* Override any GCC internal prototype to avoid an error.
31581 Use char because int might match the return type of a GCC
31582 builtin and then its argument prototype would still apply. */
31583 #ifdef __cplusplus
31584 extern "C"
31585 #endif
31586 char tgetent ();
31587 int
31588 main ()
31589 {
31590 return tgetent ();
31591 ;
31592 return 0;
31593 }
31594 _ACEOF
31595 rm -f conftest.$ac_objext conftest$ac_exeext
31596 if { (ac_try="$ac_link"
31597 case "(($ac_try" in
31598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599 *) ac_try_echo=$ac_try;;
31600 esac
31601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31602 (eval "$ac_link") 2>conftest.er1
31603 ac_status=$?
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
31609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31610 { (case "(($ac_try" in
31611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31612 *) ac_try_echo=$ac_try;;
31613 esac
31614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31615 (eval "$ac_try") 2>&5
31616 ac_status=$?
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); }; } &&
31619 { ac_try='test -s conftest$ac_exeext'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623 esac
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; }; then
31629 ac_cv_lib_curses_tgetent=yes
31630 else
31631 echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.$ac_ext >&5
31633
31634 ac_cv_lib_curses_tgetent=no
31635 fi
31636
31637 rm -f core conftest.err conftest.$ac_objext \
31638 conftest$ac_exeext conftest.$ac_ext
31639 LIBS=$ac_check_lib_save_LIBS
31640 fi
31641 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31642 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
31643 if test $ac_cv_lib_curses_tgetent = yes; then
31644 bash_cv_termcap_lib=libcurses
31645 else
31646 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31647 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
31648 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31649 echo $ECHO_N "(cached) $ECHO_C" >&6
31650 else
31651 ac_check_lib_save_LIBS=$LIBS
31652 LIBS="-lncurses $LIBS"
31653 cat >conftest.$ac_ext <<_ACEOF
31654 /* confdefs.h. */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31659
31660 /* Override any GCC internal prototype to avoid an error.
31661 Use char because int might match the return type of a GCC
31662 builtin and then its argument prototype would still apply. */
31663 #ifdef __cplusplus
31664 extern "C"
31665 #endif
31666 char tgetent ();
31667 int
31668 main ()
31669 {
31670 return tgetent ();
31671 ;
31672 return 0;
31673 }
31674 _ACEOF
31675 rm -f conftest.$ac_objext conftest$ac_exeext
31676 if { (ac_try="$ac_link"
31677 case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31680 esac
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_link") 2>conftest.er1
31683 ac_status=$?
31684 grep -v '^ *+' conftest.er1 >conftest.err
31685 rm -f conftest.er1
31686 cat conftest.err >&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } &&
31689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31693 esac
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest$ac_exeext'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
31706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
31709 ac_cv_lib_ncurses_tgetent=yes
31710 else
31711 echo "$as_me: failed program was:" >&5
31712 sed 's/^/| /' conftest.$ac_ext >&5
31713
31714 ac_cv_lib_ncurses_tgetent=no
31715 fi
31716
31717 rm -f core conftest.err conftest.$ac_objext \
31718 conftest$ac_exeext conftest.$ac_ext
31719 LIBS=$ac_check_lib_save_LIBS
31720 fi
31721 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31722 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
31723 if test $ac_cv_lib_ncurses_tgetent = yes; then
31724 bash_cv_termcap_lib=libncurses
31725 else
31726 bash_cv_termcap_lib=gnutermcap
31727 fi
31728
31729 fi
31730
31731 fi
31732
31733 fi
31734
31735 fi
31736
31737 fi
31738
31739 if test "X$_bash_needmsg" = "Xyes"; then
31740 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31741 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
31742 fi
31743 { echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31744 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6; }
31745 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31746 LDFLAGS="$LDFLAGS -L./lib/termcap"
31747 TERMCAP_LIB="./lib/termcap/libtermcap.a"
31748 TERMCAP_DEP="./lib/termcap/libtermcap.a"
31749 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31750 TERMCAP_LIB=-ltermcap
31751 TERMCAP_DEP=
31752 elif test $bash_cv_termcap_lib = libtinfo; then
31753 TERMCAP_LIB=-ltinfo
31754 TERMCAP_DEP=
31755 elif test $bash_cv_termcap_lib = libncurses; then
31756 TERMCAP_LIB=-lncurses
31757 TERMCAP_DEP=
31758 elif test $bash_cv_termcap_lib = libc; then
31759 TERMCAP_LIB=
31760 TERMCAP_DEP=
31761 else
31762 TERMCAP_LIB=-lcurses
31763 TERMCAP_DEP=
31764 fi
31765
31766 fi
31767
31768
31769
31770 { echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31771 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6; }
31772 if test "${bash_cv_dev_fd+set}" = set; then
31773 echo $ECHO_N "(cached) $ECHO_C" >&6
31774 else
31775 bash_cv_dev_fd=""
31776 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31777 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31778 if (exec test -r /dev/fd/3 3</dev/null) ; then
31779 bash_cv_dev_fd=standard
31780 else
31781 bash_cv_dev_fd=absent
31782 fi
31783 fi
31784 if test -z "$bash_cv_dev_fd" ; then
31785 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31786 bash_cv_dev_fd=whacky
31787 else
31788 bash_cv_dev_fd=absent
31789 fi
31790 fi
31791
31792 fi
31793
31794 { echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31795 echo "${ECHO_T}$bash_cv_dev_fd" >&6; }
31796 if test $bash_cv_dev_fd = "standard"; then
31797 cat >>confdefs.h <<\_ACEOF
31798 @%:@define HAVE_DEV_FD 1
31799 _ACEOF
31800
31801 cat >>confdefs.h <<\_ACEOF
31802 @%:@define DEV_FD_PREFIX "/dev/fd/"
31803 _ACEOF
31804
31805 elif test $bash_cv_dev_fd = "whacky"; then
31806 cat >>confdefs.h <<\_ACEOF
31807 @%:@define HAVE_DEV_FD 1
31808 _ACEOF
31809
31810 cat >>confdefs.h <<\_ACEOF
31811 @%:@define DEV_FD_PREFIX "/proc/self/fd/"
31812 _ACEOF
31813
31814 fi
31815
31816 { echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31817 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6; }
31818 if test "${bash_cv_dev_stdin+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31820 else
31821 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31822 bash_cv_dev_stdin=present
31823 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31824 bash_cv_dev_stdin=present
31825 else
31826 bash_cv_dev_stdin=absent
31827 fi
31828
31829 fi
31830
31831 { echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31832 echo "${ECHO_T}$bash_cv_dev_stdin" >&6; }
31833 if test $bash_cv_dev_stdin = "present"; then
31834 cat >>confdefs.h <<\_ACEOF
31835 @%:@define HAVE_DEV_STDIN 1
31836 _ACEOF
31837
31838 fi
31839
31840 { echo "$as_me:$LINENO: checking for default mail directory" >&5
31841 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6; }
31842 if test "${bash_cv_mail_dir+set}" = set; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31844 else
31845 if test -d /var/mail; then
31846 bash_cv_mail_dir=/var/mail
31847 elif test -d /var/spool/mail; then
31848 bash_cv_mail_dir=/var/spool/mail
31849 elif test -d /usr/mail; then
31850 bash_cv_mail_dir=/usr/mail
31851 elif test -d /usr/spool/mail; then
31852 bash_cv_mail_dir=/usr/spool/mail
31853 else
31854 bash_cv_mail_dir=unknown
31855 fi
31856
31857 fi
31858
31859 { echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31860 echo "${ECHO_T}$bash_cv_mail_dir" >&6; }
31861 cat >>confdefs.h <<_ACEOF
31862 @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31863 _ACEOF
31864
31865
31866
31867 if test "$bash_cv_job_control_missing" = missing; then
31868 opt_job_control=no
31869 fi
31870
31871 if test "$opt_job_control" = yes; then
31872 cat >>confdefs.h <<\_ACEOF
31873 @%:@define JOB_CONTROL 1
31874 _ACEOF
31875
31876 JOBS_O=jobs.o
31877 else
31878 JOBS_O=nojobs.o
31879 fi
31880
31881
31882
31883
31884 LOCAL_DEFS=-DSHELL
31885
31886
31887 case "${host_os}" in
31888 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31889 @%:@define SVR4_2 1
31890 _ACEOF
31891
31892 cat >>confdefs.h <<\_ACEOF
31893 @%:@define SVR4 1
31894 _ACEOF
31895 ;;
31896 sysv4*) cat >>confdefs.h <<\_ACEOF
31897 @%:@define SVR4 1
31898 _ACEOF
31899 ;;
31900 sysv5*) cat >>confdefs.h <<\_ACEOF
31901 @%:@define SVR5 1
31902 _ACEOF
31903 ;;
31904 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31905 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31906 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31907 isc*) LOCAL_CFLAGS=-Disc386 ;;
31908 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31909 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31910 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31911 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31912 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31913 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31914 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31915 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31916 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31917 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31918 case "`uname -r`" in
31919 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31920 @%:@define PGRP_PIPE 1
31921 _ACEOF
31922 ;;
31923 esac ;;
31924 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31925 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31926 powerux*) LOCAL_LIBS="-lgen" ;;
31927 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31928 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
31929 esac
31930
31931 case "${host_os}-${CC}" in
31932 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31933 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31934 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31935 esac
31936
31937 case "${host_os}" in
31938 freebsd[3-9]*)
31939 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
31940 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31941 fi ;;
31942 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31943 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31944 esac
31945
31946 case "$host_cpu" in
31947 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31948 esac
31949
31950 case "$host_cpu-$host_os" in
31951 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31952 esac
31953
31954 case "$host_cpu-$host_vendor-$host_os" in
31955 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31956 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31957 esac
31958
31959 #
31960 # Shared object configuration section. These values are generated by
31961 # ${srcdir}/support/shobj-conf
31962 #
31963 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31964 then
31965 { echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31966 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6; }
31967 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31968
31969
31970
31971
31972
31973
31974
31975 { echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31976 echo "${ECHO_T}$SHOBJ_STATUS" >&6; }
31977 fi
31978
31979 # try to create a directory tree if the source is elsewhere
31980 # this should be packaged into a script accessible via ${srcdir}/support
31981 case "$srcdir" in
31982 .) ;;
31983 *) for d in doc tests support lib examples; do # dirs
31984 test -d $d || mkdir $d
31985 done
31986 for ld in readline glob tilde malloc sh termcap; do # libdirs
31987 test -d lib/$ld || mkdir lib/$ld
31988 done
31989 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31990 test -d examples/loadables/perl || mkdir examples/loadables/perl
31991 ;;
31992 esac
31993
31994 BUILD_DIR=`pwd`
31995 case "$BUILD_DIR" in
31996 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31997 *) ;;
31998 esac
31999
32000 if test -z "$localedir"; then
32001 localedir='${datarootdir}/locale'
32002 fi
32003 if test -z "$datarootdir"; then
32004 datarootdir='${prefix}/share'
32005 fi
32006
32007
32008
32009
32010
32011
32012 # Some versions of autoconf don't substitute these automatically
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034 #AC_SUBST(ALLOCA_SOURCE)
32035 #AC_SUBST(ALLOCA_OBJECT)
32036
32037 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
32038
32039 ac_config_commands="$ac_config_commands default"
32040
32041 cat >confcache <<\_ACEOF
32042 # This file is a shell script that caches the results of configure
32043 # tests run on this system so they can be shared between configure
32044 # scripts and configure runs, see configure's option --config-cache.
32045 # It is not useful on other systems. If it contains results you don't
32046 # want to keep, you may remove or edit it.
32047 #
32048 # config.status only pays attention to the cache file if you give it
32049 # the --recheck option to rerun configure.
32050 #
32051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32053 # following values.
32054
32055 _ACEOF
32056
32057 # The following way of writing the cache mishandles newlines in values,
32058 # but we know of no workaround that is simple, portable, and efficient.
32059 # So, we kill variables containing newlines.
32060 # Ultrix sh set writes to stderr and can't be redirected directly,
32061 # and sets the high bit in the cache file unless we assign to the vars.
32062 (
32063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32064 eval ac_val=\$$ac_var
32065 case $ac_val in #(
32066 *${as_nl}*)
32067 case $ac_var in #(
32068 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32069 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32070 esac
32071 case $ac_var in #(
32072 _ | IFS | as_nl) ;; #(
32073 *) $as_unset $ac_var ;;
32074 esac ;;
32075 esac
32076 done
32077
32078 (set) 2>&1 |
32079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32080 *${as_nl}ac_space=\ *)
32081 # `set' does not quote correctly, so add quotes (double-quote
32082 # substitution turns \\\\ into \\, and sed turns \\ into \).
32083 sed -n \
32084 "s/'/'\\\\''/g;
32085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32086 ;; #(
32087 *)
32088 # `set' quotes correctly as required by POSIX, so do not add quotes.
32089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32090 ;;
32091 esac |
32092 sort
32093 ) |
32094 sed '
32095 /^ac_cv_env_/b end
32096 t clear
32097 :clear
32098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32099 t end
32100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32101 :end' >>confcache
32102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32103 if test -w "$cache_file"; then
32104 test "x$cache_file" != "x/dev/null" &&
32105 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32106 echo "$as_me: updating cache $cache_file" >&6;}
32107 cat confcache >$cache_file
32108 else
32109 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32110 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32111 fi
32112 fi
32113 rm -f confcache
32114
32115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32116 # Let make expand exec_prefix.
32117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32118
32119 DEFS=-DHAVE_CONFIG_H
32120
32121 ac_libobjs=
32122 ac_ltlibobjs=
32123 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
32124 # 1. Remove the extension, and $U if already installed.
32125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32126 ac_i=`echo "$ac_i" | sed "$ac_script"`
32127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32128 # will be set to the directory where LIBOBJS objects are built.
32129 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32130 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32131 done
32132 LIB@&t@OBJS=$ac_libobjs
32133
32134 LTLIBOBJS=$ac_ltlibobjs
32135
32136
32137
32138 : ${CONFIG_STATUS=./config.status}
32139 ac_clean_files_save=$ac_clean_files
32140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32143 cat >$CONFIG_STATUS <<_ACEOF
32144 #! $SHELL
32145 # Generated by $as_me.
32146 # Run this file to recreate the current configuration.
32147 # Compiler output produced by configure, useful for debugging
32148 # configure, is in config.log if it exists.
32149
32150 debug=false
32151 ac_cs_recheck=false
32152 ac_cs_silent=false
32153 SHELL=\${CONFIG_SHELL-$SHELL}
32154 _ACEOF
32155
32156 cat >>$CONFIG_STATUS <<\_ACEOF
32157 ## --------------------- ##
32158 ## M4sh Initialization. ##
32159 ## --------------------- ##
32160
32161 # Be Bourne compatible
32162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32163 emulate sh
32164 NULLCMD=:
32165 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32166 # is contrary to our usage. Disable this feature.
32167 alias -g '${1+"$@"}'='"$@"'
32168 setopt NO_GLOB_SUBST
32169 else
32170 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
32171 fi
32172 BIN_SH=xpg4; export BIN_SH # for Tru64
32173 DUALCASE=1; export DUALCASE # for MKS sh
32174
32175
32176 # PATH needs CR
32177 # Avoid depending upon Character Ranges.
32178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32181 as_cr_digits='0123456789'
32182 as_cr_alnum=$as_cr_Letters$as_cr_digits
32183
32184 # The user is always right.
32185 if test "${PATH_SEPARATOR+set}" != set; then
32186 echo "#! /bin/sh" >conf$$.sh
32187 echo "exit 0" >>conf$$.sh
32188 chmod +x conf$$.sh
32189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32190 PATH_SEPARATOR=';'
32191 else
32192 PATH_SEPARATOR=:
32193 fi
32194 rm -f conf$$.sh
32195 fi
32196
32197 # Support unset when possible.
32198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32199 as_unset=unset
32200 else
32201 as_unset=false
32202 fi
32203
32204
32205 # IFS
32206 # We need space, tab and new line, in precisely that order. Quoting is
32207 # there to prevent editors from complaining about space-tab.
32208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32209 # splitting by setting IFS to empty value.)
32210 as_nl='
32211 '
32212 IFS=" "" $as_nl"
32213
32214 # Find who we are. Look in the path if we contain no directory separator.
32215 case $0 in
32216 *[\\/]* ) as_myself=$0 ;;
32217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32218 for as_dir in $PATH
32219 do
32220 IFS=$as_save_IFS
32221 test -z "$as_dir" && as_dir=.
32222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32223 done
32224 IFS=$as_save_IFS
32225
32226 ;;
32227 esac
32228 # We did not find ourselves, most probably we were run as `sh COMMAND'
32229 # in which case we are not to be found in the path.
32230 if test "x$as_myself" = x; then
32231 as_myself=$0
32232 fi
32233 if test ! -f "$as_myself"; then
32234 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32235 { (exit 1); exit 1; }
32236 fi
32237
32238 # Work around bugs in pre-3.0 UWIN ksh.
32239 for as_var in ENV MAIL MAILPATH
32240 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32241 done
32242 PS1='$ '
32243 PS2='> '
32244 PS4='+ '
32245
32246 # NLS nuisances.
32247 for as_var in \
32248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32250 LC_TELEPHONE LC_TIME
32251 do
32252 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32253 eval $as_var=C; export $as_var
32254 else
32255 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32256 fi
32257 done
32258
32259 # Required to use basename.
32260 if expr a : '\(a\)' >/dev/null 2>&1 &&
32261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32262 as_expr=expr
32263 else
32264 as_expr=false
32265 fi
32266
32267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32268 as_basename=basename
32269 else
32270 as_basename=false
32271 fi
32272
32273
32274 # Name of the executable.
32275 as_me=`$as_basename -- "$0" ||
32276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32277 X"$0" : 'X\(//\)$' \| \
32278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32279 echo X/"$0" |
32280 sed '/^.*\/\([^/][^/]*\)\/*$/{
32281 s//\1/
32282 q
32283 }
32284 /^X\/\(\/\/\)$/{
32285 s//\1/
32286 q
32287 }
32288 /^X\/\(\/\).*/{
32289 s//\1/
32290 q
32291 }
32292 s/.*/./; q'`
32293
32294 # CDPATH.
32295 $as_unset CDPATH
32296
32297
32298
32299 as_lineno_1=$LINENO
32300 as_lineno_2=$LINENO
32301 test "x$as_lineno_1" != "x$as_lineno_2" &&
32302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32303
32304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32305 # uniformly replaced by the line number. The first 'sed' inserts a
32306 # line-number line after each line using $LINENO; the second 'sed'
32307 # does the real work. The second script uses 'N' to pair each
32308 # line-number line with the line containing $LINENO, and appends
32309 # trailing '-' during substitution so that $LINENO is not a special
32310 # case at line end.
32311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32312 # scripts with optimization help from Paolo Bonzini. Blame Lee
32313 # E. McMahon (1931-1989) for sed's syntax. :-)
32314 sed -n '
32315 p
32316 /[$]LINENO/=
32317 ' <$as_myself |
32318 sed '
32319 s/[$]LINENO.*/&-/
32320 t lineno
32321 b
32322 :lineno
32323 N
32324 :loop
32325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32326 t loop
32327 s/-\n.*//
32328 ' >$as_me.lineno &&
32329 chmod +x "$as_me.lineno" ||
32330 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32331 { (exit 1); exit 1; }; }
32332
32333 # Don't try to exec as it changes $[0], causing all sort of problems
32334 # (the dirname of $[0] is not the place where we might find the
32335 # original and so on. Autoconf is especially sensitive to this).
32336 . "./$as_me.lineno"
32337 # Exit status is that of the last command.
32338 exit
32339 }
32340
32341
32342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32343 as_dirname=dirname
32344 else
32345 as_dirname=false
32346 fi
32347
32348 ECHO_C= ECHO_N= ECHO_T=
32349 case `echo -n x` in
32350 -n*)
32351 case `echo 'x\c'` in
32352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32353 *) ECHO_C='\c';;
32354 esac;;
32355 *)
32356 ECHO_N='-n';;
32357 esac
32358
32359 if expr a : '\(a\)' >/dev/null 2>&1 &&
32360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32361 as_expr=expr
32362 else
32363 as_expr=false
32364 fi
32365
32366 rm -f conf$$ conf$$.exe conf$$.file
32367 if test -d conf$$.dir; then
32368 rm -f conf$$.dir/conf$$.file
32369 else
32370 rm -f conf$$.dir
32371 mkdir conf$$.dir
32372 fi
32373 echo >conf$$.file
32374 if ln -s conf$$.file conf$$ 2>/dev/null; then
32375 as_ln_s='ln -s'
32376 # ... but there are two gotchas:
32377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32379 # In both cases, we have to default to `cp -p'.
32380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32381 as_ln_s='cp -p'
32382 elif ln conf$$.file conf$$ 2>/dev/null; then
32383 as_ln_s=ln
32384 else
32385 as_ln_s='cp -p'
32386 fi
32387 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32388 rmdir conf$$.dir 2>/dev/null
32389
32390 if mkdir -p . 2>/dev/null; then
32391 as_mkdir_p=:
32392 else
32393 test -d ./-p && rmdir ./-p
32394 as_mkdir_p=false
32395 fi
32396
32397 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
32398 # systems may use methods other than mode bits to determine executability.
32399 cat >conf$$.file <<_ASEOF
32400 #! /bin/sh
32401 exit 0
32402 _ASEOF
32403 chmod +x conf$$.file
32404 if test -x conf$$.file >/dev/null 2>&1; then
32405 as_executable_p="test -x"
32406 else
32407 as_executable_p=:
32408 fi
32409 rm -f conf$$.file
32410
32411 # Sed expression to map a string onto a valid CPP name.
32412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32413
32414 # Sed expression to map a string onto a valid variable name.
32415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32416
32417
32418 exec 6>&1
32419
32420 # Save the log message, to keep $[0] and so on meaningful, and to
32421 # report actual input values of CONFIG_FILES etc. instead of their
32422 # values after options handling.
32423 ac_log="
32424 This file was extended by bash $as_me 4.0-alpha, which was
32425 generated by GNU Autoconf 2.60. Invocation command line was
32426
32427 CONFIG_FILES = $CONFIG_FILES
32428 CONFIG_HEADERS = $CONFIG_HEADERS
32429 CONFIG_LINKS = $CONFIG_LINKS
32430 CONFIG_COMMANDS = $CONFIG_COMMANDS
32431 $ $0 $@
32432
32433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32434 "
32435
32436 _ACEOF
32437
32438 cat >>$CONFIG_STATUS <<_ACEOF
32439 # Files that config.status was made for.
32440 config_files="$ac_config_files"
32441 config_headers="$ac_config_headers"
32442 config_commands="$ac_config_commands"
32443
32444 _ACEOF
32445
32446 cat >>$CONFIG_STATUS <<\_ACEOF
32447 ac_cs_usage="\
32448 \`$as_me' instantiates files from templates according to the
32449 current configuration.
32450
32451 Usage: $0 [OPTIONS] [FILE]...
32452
32453 -h, --help print this help, then exit
32454 -V, --version print version number, then exit
32455 -q, --quiet do not print progress messages
32456 -d, --debug don't remove temporary files
32457 --recheck update $as_me by reconfiguring in the same conditions
32458 --file=FILE[:TEMPLATE]
32459 instantiate the configuration file FILE
32460 --header=FILE[:TEMPLATE]
32461 instantiate the configuration header FILE
32462
32463 Configuration files:
32464 $config_files
32465
32466 Configuration headers:
32467 $config_headers
32468
32469 Configuration commands:
32470 $config_commands
32471
32472 Report bugs to <bug-autoconf@gnu.org>."
32473
32474 _ACEOF
32475 cat >>$CONFIG_STATUS <<_ACEOF
32476 ac_cs_version="\\
32477 bash config.status 4.0-alpha
32478 configured by $0, generated by GNU Autoconf 2.60,
32479 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32480
32481 Copyright (C) 2006 Free Software Foundation, Inc.
32482 This config.status script is free software; the Free Software Foundation
32483 gives unlimited permission to copy, distribute and modify it."
32484
32485 ac_pwd='$ac_pwd'
32486 srcdir='$srcdir'
32487 INSTALL='$INSTALL'
32488 _ACEOF
32489
32490 cat >>$CONFIG_STATUS <<\_ACEOF
32491 # If no file are specified by the user, then we need to provide default
32492 # value. By we need to know if files were specified by the user.
32493 ac_need_defaults=:
32494 while test $# != 0
32495 do
32496 case $1 in
32497 --*=*)
32498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32499 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32500 ac_shift=:
32501 ;;
32502 *)
32503 ac_option=$1
32504 ac_optarg=$2
32505 ac_shift=shift
32506 ;;
32507 esac
32508
32509 case $ac_option in
32510 # Handling of the options.
32511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32512 ac_cs_recheck=: ;;
32513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32514 echo "$ac_cs_version"; exit ;;
32515 --debug | --debu | --deb | --de | --d | -d )
32516 debug=: ;;
32517 --file | --fil | --fi | --f )
32518 $ac_shift
32519 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32520 ac_need_defaults=false;;
32521 --header | --heade | --head | --hea )
32522 $ac_shift
32523 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32524 ac_need_defaults=false;;
32525 --he | --h)
32526 # Conflict between --help and --header
32527 { echo "$as_me: error: ambiguous option: $1
32528 Try \`$0 --help' for more information." >&2
32529 { (exit 1); exit 1; }; };;
32530 --help | --hel | -h )
32531 echo "$ac_cs_usage"; exit ;;
32532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32534 ac_cs_silent=: ;;
32535
32536 # This is an error.
32537 -*) { echo "$as_me: error: unrecognized option: $1
32538 Try \`$0 --help' for more information." >&2
32539 { (exit 1); exit 1; }; } ;;
32540
32541 *) ac_config_targets="$ac_config_targets $1"
32542 ac_need_defaults=false ;;
32543
32544 esac
32545 shift
32546 done
32547
32548 ac_configure_extra_args=
32549
32550 if $ac_cs_silent; then
32551 exec 6>/dev/null
32552 ac_configure_extra_args="$ac_configure_extra_args --silent"
32553 fi
32554
32555 _ACEOF
32556 cat >>$CONFIG_STATUS <<_ACEOF
32557 if \$ac_cs_recheck; then
32558 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32559 CONFIG_SHELL=$SHELL
32560 export CONFIG_SHELL
32561 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32562 fi
32563
32564 _ACEOF
32565 cat >>$CONFIG_STATUS <<\_ACEOF
32566 exec 5>>config.log
32567 {
32568 echo
32569 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
32570 @%:@@%:@ Running $as_me. @%:@@%:@
32571 _ASBOX
32572 echo "$ac_log"
32573 } >&5
32574
32575 _ACEOF
32576 cat >>$CONFIG_STATUS <<_ACEOF
32577 #
32578 # INIT-COMMANDS
32579 #
32580 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32581 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32582 # from automake.
32583 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32584 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32585 LINGUAS="${LINGUAS-%UNSET%}"
32586
32587
32588 _ACEOF
32589
32590 cat >>$CONFIG_STATUS <<\_ACEOF
32591
32592 # Handling of arguments.
32593 for ac_config_target in $ac_config_targets
32594 do
32595 case $ac_config_target in
32596 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32597 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32599 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32600 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32601 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32602 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32603 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32604 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32605 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32606 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32607 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32608 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32609 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32610 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32611 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32612 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32613
32614 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32615 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32616 { (exit 1); exit 1; }; };;
32617 esac
32618 done
32619
32620
32621 # If the user did not use the arguments to specify the items to instantiate,
32622 # then the envvar interface is used. Set only those that are not.
32623 # We use the long form for the default assignment because of an extremely
32624 # bizarre bug on SunOS 4.1.3.
32625 if $ac_need_defaults; then
32626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32629 fi
32630
32631 # Have a temporary directory for convenience. Make it in the build tree
32632 # simply because there is no reason against having it here, and in addition,
32633 # creating and moving files from /tmp can sometimes cause problems.
32634 # Hook for its removal unless debugging.
32635 # Note that there is a small window in which the directory will not be cleaned:
32636 # after its creation but before its name has been assigned to `$tmp'.
32637 $debug ||
32638 {
32639 tmp=
32640 trap 'exit_status=$?
32641 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32642 ' 0
32643 trap '{ (exit 1); exit 1; }' 1 2 13 15
32644 }
32645 # Create a (secure) tmp directory for tmp files.
32646
32647 {
32648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32649 test -n "$tmp" && test -d "$tmp"
32650 } ||
32651 {
32652 tmp=./conf$$-$RANDOM
32653 (umask 077 && mkdir "$tmp")
32654 } ||
32655 {
32656 echo "$me: cannot create a temporary directory in ." >&2
32657 { (exit 1); exit 1; }
32658 }
32659
32660 #
32661 # Set up the sed scripts for CONFIG_FILES section.
32662 #
32663
32664 # No need to generate the scripts if there are no CONFIG_FILES.
32665 # This happens for instance when ./config.status config.h
32666 if test -n "$CONFIG_FILES"; then
32667
32668 _ACEOF
32669
32670
32671
32672 ac_delim='%!_!# '
32673 for ac_last_try in false false false false false :; do
32674 cat >conf$$subs.sed <<_ACEOF
32675 SHELL!$SHELL$ac_delim
32676 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32677 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32678 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32679 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32680 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32681 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32682 exec_prefix!$exec_prefix$ac_delim
32683 prefix!$prefix$ac_delim
32684 program_transform_name!$program_transform_name$ac_delim
32685 bindir!$bindir$ac_delim
32686 sbindir!$sbindir$ac_delim
32687 libexecdir!$libexecdir$ac_delim
32688 datarootdir!$datarootdir$ac_delim
32689 datadir!$datadir$ac_delim
32690 sysconfdir!$sysconfdir$ac_delim
32691 sharedstatedir!$sharedstatedir$ac_delim
32692 localstatedir!$localstatedir$ac_delim
32693 includedir!$includedir$ac_delim
32694 oldincludedir!$oldincludedir$ac_delim
32695 docdir!$docdir$ac_delim
32696 infodir!$infodir$ac_delim
32697 htmldir!$htmldir$ac_delim
32698 dvidir!$dvidir$ac_delim
32699 pdfdir!$pdfdir$ac_delim
32700 psdir!$psdir$ac_delim
32701 libdir!$libdir$ac_delim
32702 localedir!$localedir$ac_delim
32703 mandir!$mandir$ac_delim
32704 DEFS!$DEFS$ac_delim
32705 ECHO_C!$ECHO_C$ac_delim
32706 ECHO_N!$ECHO_N$ac_delim
32707 ECHO_T!$ECHO_T$ac_delim
32708 LIBS!$LIBS$ac_delim
32709 build_alias!$build_alias$ac_delim
32710 host_alias!$host_alias$ac_delim
32711 target_alias!$target_alias$ac_delim
32712 build!$build$ac_delim
32713 build_cpu!$build_cpu$ac_delim
32714 build_vendor!$build_vendor$ac_delim
32715 build_os!$build_os$ac_delim
32716 host!$host$ac_delim
32717 host_cpu!$host_cpu$ac_delim
32718 host_vendor!$host_vendor$ac_delim
32719 host_os!$host_os$ac_delim
32720 EMACS!$EMACS$ac_delim
32721 lispdir!$lispdir$ac_delim
32722 DEBUGGER_START_FILE!$DEBUGGER_START_FILE$ac_delim
32723 TESTSCRIPT!$TESTSCRIPT$ac_delim
32724 PURIFY!$PURIFY$ac_delim
32725 MALLOC_TARGET!$MALLOC_TARGET$ac_delim
32726 MALLOC_SRC!$MALLOC_SRC$ac_delim
32727 MALLOC_LIB!$MALLOC_LIB$ac_delim
32728 MALLOC_LIBRARY!$MALLOC_LIBRARY$ac_delim
32729 MALLOC_LDFLAGS!$MALLOC_LDFLAGS$ac_delim
32730 MALLOC_DEP!$MALLOC_DEP$ac_delim
32731 HELPDIR!$HELPDIR$ac_delim
32732 HELPDIRDEFINE!$HELPDIRDEFINE$ac_delim
32733 HELPINSTALL!$HELPINSTALL$ac_delim
32734 HELPSTRINGS!$HELPSTRINGS$ac_delim
32735 CC!$CC$ac_delim
32736 CFLAGS!$CFLAGS$ac_delim
32737 LDFLAGS!$LDFLAGS$ac_delim
32738 CPPFLAGS!$CPPFLAGS$ac_delim
32739 ac_ct_CC!$ac_ct_CC$ac_delim
32740 EXEEXT!$EXEEXT$ac_delim
32741 OBJEXT!$OBJEXT$ac_delim
32742 CPP!$CPP$ac_delim
32743 GREP!$GREP$ac_delim
32744 EGREP!$EGREP$ac_delim
32745 CROSS_COMPILE!$CROSS_COMPILE$ac_delim
32746 SIGNAMES_H!$SIGNAMES_H$ac_delim
32747 SIGNAMES_O!$SIGNAMES_O$ac_delim
32748 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
32749 STATIC_LD!$STATIC_LD$ac_delim
32750 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
32751 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
32752 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
32753 RL_VERSION!$RL_VERSION$ac_delim
32754 RL_MAJOR!$RL_MAJOR$ac_delim
32755 RL_MINOR!$RL_MINOR$ac_delim
32756 READLINE_LIB!$READLINE_LIB$ac_delim
32757 READLINE_DEP!$READLINE_DEP$ac_delim
32758 RL_LIBDIR!$RL_LIBDIR$ac_delim
32759 RL_INCLUDEDIR!$RL_INCLUDEDIR$ac_delim
32760 RL_INCLUDE!$RL_INCLUDE$ac_delim
32761 HISTORY_LIB!$HISTORY_LIB$ac_delim
32762 HISTORY_DEP!$HISTORY_DEP$ac_delim
32763 HIST_LIBDIR!$HIST_LIBDIR$ac_delim
32764 TILDE_LIB!$TILDE_LIB$ac_delim
32765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32767 INSTALL_DATA!$INSTALL_DATA$ac_delim
32768 AR!$AR$ac_delim
32769 RANLIB!$RANLIB$ac_delim
32770 YACC!$YACC$ac_delim
32771 YFLAGS!$YFLAGS$ac_delim
32772 _ACEOF
32773
32774 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32775 break
32776 elif $ac_last_try; then
32777 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32778 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32779 { (exit 1); exit 1; }; }
32780 else
32781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32782 fi
32783 done
32784
32785 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32786 if test -n "$ac_eof"; then
32787 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32788 ac_eof=`expr $ac_eof + 1`
32789 fi
32790
32791 cat >>$CONFIG_STATUS <<_ACEOF
32792 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32794 _ACEOF
32795 sed '
32796 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32797 s/^/s,@/; s/!/@,|#_!!_#|/
32798 :n
32799 t n
32800 s/'"$ac_delim"'$/,g/; t
32801 s/$/\\/; p
32802 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32803 ' >>$CONFIG_STATUS <conf$$subs.sed
32804 rm -f conf$$subs.sed
32805 cat >>$CONFIG_STATUS <<_ACEOF
32806 CEOF$ac_eof
32807 _ACEOF
32808
32809
32810 ac_delim='%!_!# '
32811 for ac_last_try in false false false false false :; do
32812 cat >conf$$subs.sed <<_ACEOF
32813 SET_MAKE!$SET_MAKE$ac_delim
32814 MAKE_SHELL!$MAKE_SHELL$ac_delim
32815 SIZE!$SIZE$ac_delim
32816 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
32817 USE_NLS!$USE_NLS$ac_delim
32818 MSGFMT!$MSGFMT$ac_delim
32819 GMSGFMT!$GMSGFMT$ac_delim
32820 XGETTEXT!$XGETTEXT$ac_delim
32821 MSGMERGE!$MSGMERGE$ac_delim
32822 ALLOCA!$ALLOCA$ac_delim
32823 GLIBC21!$GLIBC21$ac_delim
32824 LIBICONV!$LIBICONV$ac_delim
32825 LTLIBICONV!$LTLIBICONV$ac_delim
32826 INTLBISON!$INTLBISON$ac_delim
32827 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
32828 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
32829 CATOBJEXT!$CATOBJEXT$ac_delim
32830 DATADIRNAME!$DATADIRNAME$ac_delim
32831 INSTOBJEXT!$INSTOBJEXT$ac_delim
32832 GENCAT!$GENCAT$ac_delim
32833 INTLOBJS!$INTLOBJS$ac_delim
32834 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
32835 INTLLIBS!$INTLLIBS$ac_delim
32836 LIBINTL!$LIBINTL$ac_delim
32837 LTLIBINTL!$LTLIBINTL$ac_delim
32838 POSUB!$POSUB$ac_delim
32839 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
32840 INTL_DEP!$INTL_DEP$ac_delim
32841 INTL_INC!$INTL_INC$ac_delim
32842 LIBINTL_H!$LIBINTL_H$ac_delim
32843 SIGLIST_O!$SIGLIST_O$ac_delim
32844 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
32845 TERMCAP_DEP!$TERMCAP_DEP$ac_delim
32846 JOBS_O!$JOBS_O$ac_delim
32847 SHOBJ_CC!$SHOBJ_CC$ac_delim
32848 SHOBJ_CFLAGS!$SHOBJ_CFLAGS$ac_delim
32849 SHOBJ_LD!$SHOBJ_LD$ac_delim
32850 SHOBJ_LDFLAGS!$SHOBJ_LDFLAGS$ac_delim
32851 SHOBJ_XLDFLAGS!$SHOBJ_XLDFLAGS$ac_delim
32852 SHOBJ_LIBS!$SHOBJ_LIBS$ac_delim
32853 SHOBJ_STATUS!$SHOBJ_STATUS$ac_delim
32854 PROFILE_FLAGS!$PROFILE_FLAGS$ac_delim
32855 incdir!$incdir$ac_delim
32856 BUILD_DIR!$BUILD_DIR$ac_delim
32857 ARFLAGS!$ARFLAGS$ac_delim
32858 BASHVERS!$BASHVERS$ac_delim
32859 RELSTATUS!$RELSTATUS$ac_delim
32860 DEBUG!$DEBUG$ac_delim
32861 MALLOC_DEBUG!$MALLOC_DEBUG$ac_delim
32862 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
32863 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
32864 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
32865 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
32866 LTLIBOBJS!$LTLIBOBJS$ac_delim
32867 _ACEOF
32868
32869 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
32870 break
32871 elif $ac_last_try; then
32872 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32873 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32874 { (exit 1); exit 1; }; }
32875 else
32876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32877 fi
32878 done
32879
32880 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32881 if test -n "$ac_eof"; then
32882 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32883 ac_eof=`expr $ac_eof + 1`
32884 fi
32885
32886 cat >>$CONFIG_STATUS <<_ACEOF
32887 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32889 _ACEOF
32890 sed '
32891 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32892 s/^/s,@/; s/!/@,|#_!!_#|/
32893 :n
32894 t n
32895 s/'"$ac_delim"'$/,g/; t
32896 s/$/\\/; p
32897 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32898 ' >>$CONFIG_STATUS <conf$$subs.sed
32899 rm -f conf$$subs.sed
32900 cat >>$CONFIG_STATUS <<_ACEOF
32901 :end
32902 s/|#_!!_#|//g
32903 CEOF$ac_eof
32904 _ACEOF
32905
32906
32907 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32908 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32909 # trailing colons and then remove the whole line if VPATH becomes empty
32910 # (actually we leave an empty line to preserve line numbers).
32911 if test "x$srcdir" = x.; then
32912 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32913 s/:*\$(srcdir):*/:/
32914 s/:*\${srcdir}:*/:/
32915 s/:*@srcdir@:*/:/
32916 s/^\([^=]*=[ ]*\):*/\1/
32917 s/:*$//
32918 s/^[^=]*=[ ]*$//
32919 }'
32920 fi
32921
32922 cat >>$CONFIG_STATUS <<\_ACEOF
32923 fi # test -n "$CONFIG_FILES"
32924
32925
32926 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32927 do
32928 case $ac_tag in
32929 :[FHLC]) ac_mode=$ac_tag; continue;;
32930 esac
32931 case $ac_mode$ac_tag in
32932 :[FHL]*:*);;
32933 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32934 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32935 { (exit 1); exit 1; }; };;
32936 :[FH]-) ac_tag=-:-;;
32937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32938 esac
32939 ac_save_IFS=$IFS
32940 IFS=:
32941 set x $ac_tag
32942 IFS=$ac_save_IFS
32943 shift
32944 ac_file=$1
32945 shift
32946
32947 case $ac_mode in
32948 :L) ac_source=$1;;
32949 :[FH])
32950 ac_file_inputs=
32951 for ac_f
32952 do
32953 case $ac_f in
32954 -) ac_f="$tmp/stdin";;
32955 *) # Look for the file first in the build tree, then in the source tree
32956 # (if the path is not absolute). The absolute path cannot be DOS-style,
32957 # because $ac_f cannot contain `:'.
32958 test -f "$ac_f" ||
32959 case $ac_f in
32960 [\\/$]*) false;;
32961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32962 esac ||
32963 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32964 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32965 { (exit 1); exit 1; }; };;
32966 esac
32967 ac_file_inputs="$ac_file_inputs $ac_f"
32968 done
32969
32970 # Let's still pretend it is `configure' which instantiates (i.e., don't
32971 # use $as_me), people would be surprised to read:
32972 # /* config.h. Generated by config.status. */
32973 configure_input="Generated from "`IFS=:
32974 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32975 if test x"$ac_file" != x-; then
32976 configure_input="$ac_file. $configure_input"
32977 { echo "$as_me:$LINENO: creating $ac_file" >&5
32978 echo "$as_me: creating $ac_file" >&6;}
32979 fi
32980
32981 case $ac_tag in
32982 *:-:* | *:-) cat >"$tmp/stdin";;
32983 esac
32984 ;;
32985 esac
32986
32987 ac_dir=`$as_dirname -- "$ac_file" ||
32988 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32989 X"$ac_file" : 'X\(//\)[^/]' \| \
32990 X"$ac_file" : 'X\(//\)$' \| \
32991 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32992 echo X"$ac_file" |
32993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32994 s//\1/
32995 q
32996 }
32997 /^X\(\/\/\)[^/].*/{
32998 s//\1/
32999 q
33000 }
33001 /^X\(\/\/\)$/{
33002 s//\1/
33003 q
33004 }
33005 /^X\(\/\).*/{
33006 s//\1/
33007 q
33008 }
33009 s/.*/./; q'`
33010 { as_dir="$ac_dir"
33011 case $as_dir in #(
33012 -*) as_dir=./$as_dir;;
33013 esac
33014 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33015 as_dirs=
33016 while :; do
33017 case $as_dir in #(
33018 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33019 *) as_qdir=$as_dir;;
33020 esac
33021 as_dirs="'$as_qdir' $as_dirs"
33022 as_dir=`$as_dirname -- "$as_dir" ||
33023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33024 X"$as_dir" : 'X\(//\)[^/]' \| \
33025 X"$as_dir" : 'X\(//\)$' \| \
33026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33027 echo X"$as_dir" |
33028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33029 s//\1/
33030 q
33031 }
33032 /^X\(\/\/\)[^/].*/{
33033 s//\1/
33034 q
33035 }
33036 /^X\(\/\/\)$/{
33037 s//\1/
33038 q
33039 }
33040 /^X\(\/\).*/{
33041 s//\1/
33042 q
33043 }
33044 s/.*/./; q'`
33045 test -d "$as_dir" && break
33046 done
33047 test -z "$as_dirs" || eval "mkdir $as_dirs"
33048 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33049 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33050 { (exit 1); exit 1; }; }; }
33051 ac_builddir=.
33052
33053 case "$ac_dir" in
33054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33055 *)
33056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33057 # A ".." for each directory in $ac_dir_suffix.
33058 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33059 case $ac_top_builddir_sub in
33060 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33061 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33062 esac ;;
33063 esac
33064 ac_abs_top_builddir=$ac_pwd
33065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33066 # for backward compatibility:
33067 ac_top_builddir=$ac_top_build_prefix
33068
33069 case $srcdir in
33070 .) # We are building in place.
33071 ac_srcdir=.
33072 ac_top_srcdir=$ac_top_builddir_sub
33073 ac_abs_top_srcdir=$ac_pwd ;;
33074 [\\/]* | ?:[\\/]* ) # Absolute name.
33075 ac_srcdir=$srcdir$ac_dir_suffix;
33076 ac_top_srcdir=$srcdir
33077 ac_abs_top_srcdir=$srcdir ;;
33078 *) # Relative name.
33079 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33080 ac_top_srcdir=$ac_top_build_prefix$srcdir
33081 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33082 esac
33083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33084
33085
33086 case $ac_mode in
33087 :F)
33088 #
33089 # CONFIG_FILE
33090 #
33091
33092 case $INSTALL in
33093 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33094 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33095 esac
33096 _ACEOF
33097
33098 cat >>$CONFIG_STATUS <<\_ACEOF
33099 # If the template does not know about datarootdir, expand it.
33100 # FIXME: This hack should be removed a few years after 2.60.
33101 ac_datarootdir_hack=; ac_datarootdir_seen=
33102
33103 case `sed -n '/datarootdir/ {
33104 p
33105 q
33106 }
33107 /@datadir@/p
33108 /@docdir@/p
33109 /@infodir@/p
33110 /@localedir@/p
33111 /@mandir@/p
33112 ' $ac_file_inputs` in
33113 *datarootdir*) ac_datarootdir_seen=yes;;
33114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33115 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33116 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33117 _ACEOF
33118 cat >>$CONFIG_STATUS <<_ACEOF
33119 ac_datarootdir_hack='
33120 s&@datadir@&$datadir&g
33121 s&@docdir@&$docdir&g
33122 s&@infodir@&$infodir&g
33123 s&@localedir@&$localedir&g
33124 s&@mandir@&$mandir&g
33125 s&\\\${datarootdir}&$datarootdir&g' ;;
33126 esac
33127 _ACEOF
33128
33129 # Neutralize VPATH when `$srcdir' = `.'.
33130 # Shell code in configure.ac might set extrasub.
33131 # FIXME: do we really want to maintain this feature?
33132 cat >>$CONFIG_STATUS <<_ACEOF
33133 sed "$ac_vpsub
33134 $extrasub
33135 _ACEOF
33136 cat >>$CONFIG_STATUS <<\_ACEOF
33137 :t
33138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33139 s&@configure_input@&$configure_input&;t t
33140 s&@top_builddir@&$ac_top_builddir_sub&;t t
33141 s&@srcdir@&$ac_srcdir&;t t
33142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33143 s&@top_srcdir@&$ac_top_srcdir&;t t
33144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33145 s&@builddir@&$ac_builddir&;t t
33146 s&@abs_builddir@&$ac_abs_builddir&;t t
33147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33148 s&@INSTALL@&$ac_INSTALL&;t t
33149 $ac_datarootdir_hack
33150 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33151
33152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33155 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33156 which seems to be undefined. Please make sure it is defined." >&5
33157 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33158 which seems to be undefined. Please make sure it is defined." >&2;}
33159
33160 rm -f "$tmp/stdin"
33161 case $ac_file in
33162 -) cat "$tmp/out"; rm -f "$tmp/out";;
33163 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33164 esac
33165 ;;
33166 :H)
33167 #
33168 # CONFIG_HEADER
33169 #
33170 _ACEOF
33171
33172 # Transform confdefs.h into a sed script `conftest.defines', that
33173 # substitutes the proper values into config.h.in to produce config.h.
33174 rm -f conftest.defines conftest.tail
33175 # First, append a space to every undef/define line, to ease matching.
33176 echo 's/$/ /' >conftest.defines
33177 # Then, protect against being on the right side of a sed subst, or in
33178 # an unquoted here document, in config.status. If some macros were
33179 # called several times there might be several #defines for the same
33180 # symbol, which is useless. But do not sort them, since the last
33181 # AC_DEFINE must be honored.
33182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33183 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33184 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33185 # PARAMS is the parameter list in the macro definition--in most cases, it's
33186 # just an empty string.
33187 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33188 ac_dB='\\)[ (].*,\\1define\\2'
33189 ac_dC=' '
33190 ac_dD=' ,'
33191
33192 uniq confdefs.h |
33193 sed -n '
33194 t rset
33195 :rset
33196 s/^[ ]*#[ ]*define[ ][ ]*//
33197 t ok
33198 d
33199 :ok
33200 s/[\\&,]/\\&/g
33201 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33202 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33203 ' >>conftest.defines
33204
33205 # Remove the space that was appended to ease matching.
33206 # Then replace #undef with comments. This is necessary, for
33207 # example, in the case of _POSIX_SOURCE, which is predefined and required
33208 # on some systems where configure will not decide to define it.
33209 # (The regexp can be short, since the line contains either #define or #undef.)
33210 echo 's/ $//
33211 s,^[ #]*u.*,/* & */,' >>conftest.defines
33212
33213 # Break up conftest.defines:
33214 ac_max_sed_lines=50
33215
33216 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33217 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33218 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33219 # et cetera.
33220 ac_in='$ac_file_inputs'
33221 ac_out='"$tmp/out1"'
33222 ac_nxt='"$tmp/out2"'
33223
33224 while :
33225 do
33226 # Write a here document:
33227 cat >>$CONFIG_STATUS <<_ACEOF
33228 # First, check the format of the line:
33229 cat >"\$tmp/defines.sed" <<\\CEOF
33230 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33231 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33232 b
33233 :def
33234 _ACEOF
33235 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33236 echo 'CEOF
33237 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33238 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33239 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33240 grep . conftest.tail >/dev/null || break
33241 rm -f conftest.defines
33242 mv conftest.tail conftest.defines
33243 done
33244 rm -f conftest.defines conftest.tail
33245
33246 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33247 cat >>$CONFIG_STATUS <<\_ACEOF
33248 if test x"$ac_file" != x-; then
33249 echo "/* $configure_input */" >"$tmp/config.h"
33250 cat "$ac_result" >>"$tmp/config.h"
33251 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33252 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33253 echo "$as_me: $ac_file is unchanged" >&6;}
33254 else
33255 rm -f $ac_file
33256 mv "$tmp/config.h" $ac_file
33257 fi
33258 else
33259 echo "/* $configure_input */"
33260 cat "$ac_result"
33261 fi
33262 rm -f "$tmp/out12"
33263 ;;
33264
33265 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33266 echo "$as_me: executing $ac_file commands" >&6;}
33267 ;;
33268 esac
33269
33270
33271 case $ac_file$ac_mode in
33272 "default-1":C)
33273 for ac_file in $CONFIG_FILES; do
33274 # Support "outfile[:infile[:infile...]]"
33275 case "$ac_file" in
33276 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33277 esac
33278 # PO directories have a Makefile.in generated from Makefile.in.in.
33279 case "$ac_file" in */Makefile.in)
33280 # Adjust a relative srcdir.
33281 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33282 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33283 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33284 # In autoconf-2.13 it is called $ac_given_srcdir.
33285 # In autoconf-2.50 it is called $srcdir.
33286 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33287 case "$ac_given_srcdir" in
33288 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33289 /*) top_srcdir="$ac_given_srcdir" ;;
33290 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33291 esac
33292 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33293 rm -f "$ac_dir/POTFILES"
33294 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33295 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33296 POMAKEFILEDEPS="POTFILES.in"
33297 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
33298 # on $ac_dir but don't depend on user-specified configuration
33299 # parameters.
33300 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33301 # The LINGUAS file contains the set of available languages.
33302 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33303 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33304 fi
33305 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33306 # Hide the ALL_LINGUAS assigment from automake.
33307 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33308 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33309 else
33310 # The set of available languages was given in configure.in.
33311 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33312 fi
33313 case "$ac_given_srcdir" in
33314 .) srcdirpre= ;;
33315 *) srcdirpre='$(srcdir)/' ;;
33316 esac
33317 POFILES=
33318 GMOFILES=
33319 UPDATEPOFILES=
33320 DUMMYPOFILES=
33321 for lang in $ALL_LINGUAS; do
33322 POFILES="$POFILES $srcdirpre$lang.po"
33323 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33324 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33325 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33326 done
33327 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33328 # environment variable.
33329 INST_LINGUAS=
33330 if test -n "$ALL_LINGUAS"; then
33331 for presentlang in $ALL_LINGUAS; do
33332 useit=no
33333 if test "%UNSET%" != "$LINGUAS"; then
33334 desiredlanguages="$LINGUAS"
33335 else
33336 desiredlanguages="$ALL_LINGUAS"
33337 fi
33338 for desiredlang in $desiredlanguages; do
33339 # Use the presentlang catalog if desiredlang is
33340 # a. equal to presentlang, or
33341 # b. a variant of presentlang (because in this case,
33342 # presentlang can be used as a fallback for messages
33343 # which are not translated in the desiredlang catalog).
33344 case "$desiredlang" in
33345 "$presentlang"*) useit=yes;;
33346 esac
33347 done
33348 if test $useit = yes; then
33349 INST_LINGUAS="$INST_LINGUAS $presentlang"
33350 fi
33351 done
33352 fi
33353 CATALOGS=
33354 if test -n "$INST_LINGUAS"; then
33355 for lang in $INST_LINGUAS; do
33356 CATALOGS="$CATALOGS $lang.gmo"
33357 done
33358 fi
33359 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33360 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33361 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33362 if test -f "$f"; then
33363 case "$f" in
33364 *.orig | *.bak | *~) ;;
33365 *) cat "$f" >> "$ac_dir/Makefile" ;;
33366 esac
33367 fi
33368 done
33369 fi
33370 ;;
33371 esac
33372 done ;;
33373 "default":C)
33374 # Makefile uses this timestamp file to record whether config.h is up to date.
33375 echo timestamp > stamp-h
33376 ;;
33377
33378 esac
33379 done # for ac_tag
33380
33381
33382 { (exit 0); exit 0; }
33383 _ACEOF
33384 chmod +x $CONFIG_STATUS
33385 ac_clean_files=$ac_clean_files_save
33386
33387
33388 # configure is writing to config.log, and then calls config.status.
33389 # config.status does its own redirection, appending to config.log.
33390 # Unfortunately, on DOS this fails, as config.log is still kept open
33391 # by configure, so config.status won't be able to write to it; its
33392 # output is simply discarded. So we exec the FD to /dev/null,
33393 # effectively closing config.log, so it can be properly (re)opened and
33394 # appended to by config.status. When coming back to configure, we
33395 # need to make the FD available again.
33396 if test "$no_create" != yes; then
33397 ac_cs_success=:
33398 ac_config_status_args=
33399 test "$silent" = yes &&
33400 ac_config_status_args="$ac_config_status_args --quiet"
33401 exec 5>/dev/null
33402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33403 exec 5>>config.log
33404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33405 # would make configure fail if this is the last instruction.
33406 $ac_cs_success || { (exit 1); exit 1; }
33407 fi
33408