]> git.ipfire.org Git - thirdparty/bash.git/blob - configure
Imported from ../bash-4.0.tar.gz.
[thirdparty/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 4.0, version 4.013.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.0-release.
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, 2007, 2008 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
98
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111 ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
186 }
187 as_func_success () {
188 as_func_return 0
189 }
190 as_func_failure () {
191 as_func_return 1
192 }
193 as_func_ret_success () {
194 return 0
195 }
196 as_func_ret_failure () {
197 return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202 :
203 else
204 exitcode=1
205 echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214 :
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227 else
228 exitcode=1
229 echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240 :
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
249 /*)
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300 (exit $1)
301 }
302 as_func_success () {
303 as_func_return 0
304 }
305 as_func_failure () {
306 as_func_return 1
307 }
308 as_func_ret_success () {
309 return 0
310 }
311 as_func_ret_failure () {
312 return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317 :
318 else
319 exitcode=1
320 echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329 :
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342 else
343 exitcode=1
344 echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357 break
358 fi
359
360 fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389 (exit \$1)
390 }
391 as_func_success () {
392 as_func_return 0
393 }
394 as_func_failure () {
395 as_func_return 1
396 }
397 as_func_ret_success () {
398 return 0
399 }
400 as_func_ret_failure () {
401 return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406 :
407 else
408 exitcode=1
409 echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418 :
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431 else
432 exitcode=1
433 echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442 }
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
470 N
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502 *)
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
532 fi
533 else
534 as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577 exec 7<&0 </dev/null 6>&1
578
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584 #
585 # Initializations.
586 #
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597 # Identity of this package.
598 PACKAGE_NAME='bash'
599 PACKAGE_TARNAME='bash'
600 PACKAGE_VERSION='4.0-release'
601 PACKAGE_STRING='bash 4.0-release'
602 PACKAGE_BUGREPORT='bug-bash@gnu.org'
603
604 ac_unique_file="shell.h"
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 ac_header_list=
642 ac_func_list=
643 ac_subst_vars='LTLIBOBJS
644 LOCAL_DEFS
645 LOCAL_LDFLAGS
646 LOCAL_CFLAGS
647 LOCAL_LIBS
648 MALLOC_DEBUG
649 DEBUG
650 RELSTATUS
651 BASHVERS
652 ARFLAGS
653 BUILD_DIR
654 incdir
655 PROFILE_FLAGS
656 SHOBJ_STATUS
657 SHOBJ_LIBS
658 SHOBJ_XLDFLAGS
659 SHOBJ_LDFLAGS
660 SHOBJ_LD
661 SHOBJ_CFLAGS
662 SHOBJ_CC
663 JOBS_O
664 TERMCAP_DEP
665 TERMCAP_LIB
666 SIGLIST_O
667 LIBINTL_H
668 INTL_INC
669 INTL_DEP
670 LIBOBJS
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 INTL_LIBTOOL_SUFFIX_PREFIX
676 INTLOBJS
677 GENCAT
678 INSTOBJEXT
679 DATADIRNAME
680 CATOBJEXT
681 USE_INCLUDED_LIBINTL
682 BUILD_INCLUDED_LIBINTL
683 INTLBISON
684 LTLIBICONV
685 LIBICONV
686 GLIBC21
687 ALLOCA
688 MSGMERGE
689 XGETTEXT
690 GMSGFMT
691 MSGFMT
692 USE_NLS
693 MKINSTALLDIRS
694 SIZE
695 MAKE_SHELL
696 SET_MAKE
697 YFLAGS
698 YACC
699 RANLIB
700 AR
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 TILDE_LIB
705 HIST_LIBDIR
706 HISTORY_DEP
707 HISTORY_LIB
708 RL_INCLUDE
709 RL_INCLUDEDIR
710 RL_LIBDIR
711 READLINE_DEP
712 READLINE_LIB
713 RL_MINOR
714 RL_MAJOR
715 RL_VERSION
716 LDFLAGS_FOR_BUILD
717 CPPFLAGS_FOR_BUILD
718 CFLAGS_FOR_BUILD
719 STATIC_LD
720 CC_FOR_BUILD
721 SIGNAMES_O
722 SIGNAMES_H
723 CROSS_COMPILE
724 EGREP
725 GREP
726 CPP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 HELPSTRINGS
735 HELPINSTALL
736 HELPDIRDEFINE
737 HELPDIR
738 MALLOC_DEP
739 MALLOC_LDFLAGS
740 MALLOC_LIBRARY
741 MALLOC_LIB
742 MALLOC_SRC
743 MALLOC_TARGET
744 PURIFY
745 TESTSCRIPT
746 DEBUGGER_START_FILE
747 lispdir
748 EMACS
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 with_lispdir
798 with_afs
799 with_bash_malloc
800 with_curses
801 with_gnu_malloc
802 with_installed_readline
803 with_purecov
804 with_purify
805 enable_minimal_config
806 enable_alias
807 enable_arith_for_command
808 enable_array_variables
809 enable_bang_history
810 enable_brace_expansion
811 enable_casemod_attributes
812 enable_casemod_expansions
813 enable_command_timing
814 enable_cond_command
815 enable_cond_regexp
816 enable_coprocesses
817 enable_debugger
818 enable_directory_stack
819 enable_disabled_builtins
820 enable_dparen_arithmetic
821 enable_extended_glob
822 enable_help_builtin
823 enable_history
824 enable_job_control
825 enable_multibyte
826 enable_net_redirections
827 enable_process_substitution
828 enable_progcomp
829 enable_prompt_string_decoding
830 enable_readline
831 enable_restricted
832 enable_select
833 enable_separate_helpfiles
834 enable_single_help_strings
835 enable_strict_posix_default
836 enable_usg_echo_default
837 enable_xpg_echo_default
838 enable_mem_scramble
839 enable_profiling
840 enable_static_link
841 enable_largefile
842 enable_nls
843 with_gnu_ld
844 enable_rpath
845 with_libiconv_prefix
846 with_included_gettext
847 with_libintl_prefix
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 DEBUGGER_START_FILE
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 YACC
860 YFLAGS'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
920 fi
921
922 case $ac_option in
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
991
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 ;;
1270
1271 esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294 do
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1297 case $ac_val in
1298 */ )
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1301 esac
1302 # Be sure to have absolute directory names.
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures bash 4.0-release to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of bash 4.0-release:";;
1479 esac
1480 cat <<\_ACEOF
1481
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-minimal-config a minimal sh-like configuration
1487 --enable-alias enable shell aliases
1488 --enable-arith-for-command
1489 enable arithmetic for command
1490 --enable-array-variables
1491 include shell array variables
1492 --enable-bang-history turn on csh-style history substitution
1493 --enable-brace-expansion
1494 include brace expansion
1495 --enable-casemod-attributes
1496 include case-modifying variable attributes
1497 --enable-casemod-expansions
1498 include case-modifying word expansions
1499 --enable-command-timing enable the time reserved word and command timing
1500 --enable-cond-command enable the conditional command
1501 --enable-cond-regexp enable extended regular expression matching in
1502 conditional commands
1503 --enable-coprocesses enable coprocess support and the coproc reserved
1504 word
1505 --enable-debugger enable support for bash debugger
1506 --enable-directory-stack
1507 enable builtins pushd/popd/dirs
1508 --enable-disabled-builtins
1509 allow disabled builtins to still be invoked
1510 --enable-dparen-arithmetic
1511 include ((...)) command
1512 --enable-extended-glob include ksh-style extended pattern matching
1513 --enable-help-builtin include the help builtin
1514 --enable-history turn on command history
1515 --enable-job-control enable job control features
1516 --enable-multibyte enable multibyte characters if OS supports them
1517 --enable-net-redirections
1518 enable /dev/tcp/host/port redirection
1519 --enable-process-substitution
1520 enable process substitution
1521 --enable-progcomp enable programmable completion and the complete
1522 builtin
1523 --enable-prompt-string-decoding
1524 turn on escape character decoding in prompts
1525 --enable-readline turn on command line editing
1526 --enable-restricted enable a restricted shell
1527 --enable-select include select command
1528 --enable-separate-helpfiles
1529 use external files for help builtin documentation
1530 --enable-single-help-strings
1531 store help documentation as a single string to ease
1532 translation
1533 --enable-strict-posix-default
1534 configure bash to be posix-conformant by default
1535 --enable-usg-echo-default
1536 a synonym for --enable-xpg-echo-default
1537 --enable-xpg-echo-default
1538 make the echo builtin expand escape sequences by
1539 default
1540 --enable-mem-scramble scramble memory on calls to malloc and free
1541 --enable-profiling allow profiling with gprof
1542 --enable-static-link link bash statically, for use as a root shell
1543 --disable-largefile omit support for large files
1544 --disable-nls do not use Native Language Support
1545 --disable-rpath do not hardcode runtime library paths
1546
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-lispdir override the default lisp directory
1551 --with-afs if you are running AFS
1552 --with-bash-malloc use the Bash version of malloc
1553 --with-curses use the curses library instead of the termcap
1554 library
1555 --with-gnu-malloc synonym for --with-bash-malloc
1556 --with-installed-readline
1557 use a version of the readline library that is
1558 already installed
1559 --with-purecov configure to postprocess with pure coverage
1560 --with-purify configure to postprocess with purify
1561 --with-gnu-ld assume the C compiler uses GNU ld default=no
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-included-gettext use the GNU gettext library included here
1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1566 --without-libintl-prefix don't search for libintl in includedir and libdir
1567
1568 Some influential environment variables:
1569 DEBUGGER_START_FILE
1570 location of bash debugger initialization file
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CPP C preprocessor
1579 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison -y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
1584
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to <bug-bash@gnu.org>.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650 cat <<\_ACEOF
1651 bash configure 4.0-release
1652 generated by GNU Autoconf 2.63
1653
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1658 _ACEOF
1659 exit
1660 fi
1661 cat >config.log <<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1664
1665 It was created by bash $as_me 4.0-release, which was
1666 generated by GNU Autoconf 2.63. Invocation command line was
1667
1668 $ $0 $@
1669
1670 _ACEOF
1671 exec 5>>config.log
1672 {
1673 cat <<_ASUNAME
1674 ## --------- ##
1675 ## Platform. ##
1676 ## --------- ##
1677
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
1695 _ASUNAME
1696
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 $as_echo "PATH: $as_dir"
1703 done
1704 IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 cat >&5 <<_ACEOF
1709
1710
1711 ## ----------- ##
1712 ## Core tests. ##
1713 ## ----------- ##
1714
1715 _ACEOF
1716
1717
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1723 ac_configure_args=
1724 ac_configure_args0=
1725 ac_configure_args1=
1726 ac_must_keep_next=false
1727 for ac_pass in 1 2
1728 do
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
1736 *\'*)
1737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
1744 ac_must_keep_next=false # Got value, back to normal.
1745 else
1746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
1757 fi
1758 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 ;;
1760 esac
1761 done
1762 done
1763 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1773 {
1774 echo
1775
1776 cat <<\_ASBOX
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1780 _ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
1783 (
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1796 esac ;;
1797 esac
1798 done
1799 (set) 2>&1 |
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1802 sed -n \
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1805 ;; #(
1806 *)
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 ;;
1809 esac |
1810 sort
1811 )
1812 echo
1813
1814 cat <<\_ASBOX
1815 ## ----------------- ##
1816 ## Output variables. ##
1817 ## ----------------- ##
1818 _ASBOX
1819 echo
1820 for ac_var in $ac_subst_vars
1821 do
1822 eval ac_val=\$$ac_var
1823 case $ac_val in
1824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 esac
1826 $as_echo "$ac_var='\''$ac_val'\''"
1827 done | sort
1828 echo
1829
1830 if test -n "$ac_subst_files"; then
1831 cat <<\_ASBOX
1832 ## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##
1835 _ASBOX
1836 echo
1837 for ac_var in $ac_subst_files
1838 do
1839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 $as_echo "$ac_var='\''$ac_val'\''"
1844 done | sort
1845 echo
1846 fi
1847
1848 if test -s confdefs.h; then
1849 cat <<\_ASBOX
1850 ## ----------- ##
1851 ## confdefs.h. ##
1852 ## ----------- ##
1853 _ASBOX
1854 echo
1855 cat confdefs.h
1856 echo
1857 fi
1858 test "$ac_signal" != 0 &&
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
1861 } >&5
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1864 exit $exit_status
1865 ' 0
1866 for ac_signal in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1868 done
1869 ac_signal=0
1870
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest* confdefs.h
1873
1874 # Predefined preprocessor variables.
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_NAME "$PACKAGE_NAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1898 _ACEOF
1899
1900
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer an explicitly selected file to automatically selected ones.
1903 ac_site_file1=NONE
1904 ac_site_file2=NONE
1905 if test -n "$CONFIG_SITE"; then
1906 ac_site_file1=$CONFIG_SITE
1907 elif test "x$prefix" != xNONE; then
1908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
1910 else
1911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
1913 fi
1914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915 do
1916 test "x$ac_site_file" = xNONE && continue
1917 if test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file"
1922 fi
1923 done
1924
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 $as_echo "$as_me: loading cache $cache_file" >&6;}
1931 case $cache_file in
1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
1934 esac
1935 fi
1936 else
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 $as_echo "$as_me: creating cache $cache_file" >&6;}
1939 >$cache_file
1940 fi
1941
1942 ac_header_list="$ac_header_list sys/time.h"
1943 ac_header_list="$ac_header_list unistd.h"
1944 ac_func_list="$ac_func_list alarm"
1945 ac_func_list="$ac_func_list fpurge"
1946 ac_func_list="$ac_func_list __fpurge"
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w=`echo x $ac_old_val`
1969 ac_new_val_w=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted=:
1974 else
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\$ac_old_val
1978 fi
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
1988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1995 fi
1996 done
1997 if $ac_cache_corrupted; then
1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004 { (exit 1); exit 1; }; }
2005 fi
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031 ac_ext=c
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036
2037
2038
2039
2040
2041
2042 ac_aux_dir=
2043 for ac_dir in ./support "$srcdir"/./support; do
2044 if test -f "$ac_dir/install-sh"; then
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
2048 elif test -f "$ac_dir/install.sh"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
2052 elif test -f "$ac_dir/shtool"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057 done
2058 if test -z "$ac_aux_dir"; then
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2060 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
2072
2073 ac_config_headers="$ac_config_headers config.h"
2074
2075
2076 BASHVERS=4.0
2077 RELSTATUS=release
2078
2079 case "$RELSTATUS" in
2080 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2081 *) DEBUG= MALLOC_DEBUG= ;;
2082 esac
2083
2084 # Make sure we can run config.sub.
2085 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2086 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2088 { (exit 1); exit 1; }; }
2089
2090 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2091 $as_echo_n "checking build system type... " >&6; }
2092 if test "${ac_cv_build+set}" = set; then
2093 $as_echo_n "(cached) " >&6
2094 else
2095 ac_build_alias=$build_alias
2096 test "x$ac_build_alias" = x &&
2097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098 test "x$ac_build_alias" = x &&
2099 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101 { (exit 1); exit 1; }; }
2102 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
2106
2107 fi
2108 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109 $as_echo "$ac_cv_build" >&6; }
2110 case $ac_cv_build in
2111 *-*-*) ;;
2112 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2114 { (exit 1); exit 1; }; };;
2115 esac
2116 build=$ac_cv_build
2117 ac_save_IFS=$IFS; IFS='-'
2118 set x $ac_cv_build
2119 shift
2120 build_cpu=$1
2121 build_vendor=$2
2122 shift; shift
2123 # Remember, the first character of IFS is used to create $*,
2124 # except with old shells:
2125 build_os=$*
2126 IFS=$ac_save_IFS
2127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2128
2129
2130 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2131 $as_echo_n "checking host system type... " >&6; }
2132 if test "${ac_cv_host+set}" = set; then
2133 $as_echo_n "(cached) " >&6
2134 else
2135 if test "x$host_alias" = x; then
2136 ac_cv_host=$ac_cv_build
2137 else
2138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2142 fi
2143
2144 fi
2145 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146 $as_echo "$ac_cv_host" >&6; }
2147 case $ac_cv_host in
2148 *-*-*) ;;
2149 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2151 { (exit 1); exit 1; }; };;
2152 esac
2153 host=$ac_cv_host
2154 ac_save_IFS=$IFS; IFS='-'
2155 set x $ac_cv_host
2156 shift
2157 host_cpu=$1
2158 host_vendor=$2
2159 shift; shift
2160 # Remember, the first character of IFS is used to create $*,
2161 # except with old shells:
2162 host_os=$*
2163 IFS=$ac_save_IFS
2164 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2165
2166
2167
2168 opt_bash_malloc=yes
2169 opt_purify=no
2170 opt_purecov=no
2171 opt_afs=no
2172 opt_curses=no
2173 opt_with_installed_readline=no
2174
2175 #htmldir=
2176
2177 case "${host_cpu}-${host_os}" in
2178 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2179 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2180 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2181 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2182 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2183 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2184 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2185 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2186 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2187 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2188 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2189 *-aix*) opt_bash_malloc=no ;; # AIX machines
2190 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2191 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2192 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2193 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2194 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2195 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2196 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2197 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2198 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2199 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2200 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2201 esac
2202
2203 # memory scrambling on free()
2204 case "${host_os}" in
2205 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2206 *) opt_memscramble=yes ;;
2207 esac
2208
2209
2210 # Check whether --with-lispdir was given.
2211 if test "${with_lispdir+set}" = set; then
2212 withval=$with_lispdir; lispdir="$withval"
2213 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2214 $as_echo_n "checking where .elc files should go... " >&6; }
2215 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
2216 $as_echo "$lispdir" >&6; }
2217 else
2218
2219 # If set to t, that means we are running in a shell under Emacs.
2220 # If you have an Emacs named "t", then use the full path.
2221 test x"$EMACS" = xt && EMACS=
2222 for ac_prog in emacs xemacs
2223 do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_EMACS+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2230 else
2231 if test -n "$EMACS"; then
2232 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_EMACS="$ac_prog"
2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 EMACS=$ac_cv_prog_EMACS
2252 if test -n "$EMACS"; then
2253 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
2254 $as_echo "$EMACS" >&6; }
2255 else
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2258 fi
2259
2260
2261 test -n "$EMACS" && break
2262 done
2263 test -n "$EMACS" || EMACS="no"
2264
2265 if test $EMACS != "no"; then
2266 if test x${lispdir+set} != xset; then
2267 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2268 $as_echo_n "checking where .elc files should go... " >&6; }
2269 if test "${am_cv_lispdir+set}" = set; then
2270 $as_echo_n "(cached) " >&6
2271 else
2272 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;}'`
2273 if test -z "$am_cv_lispdir"; then
2274 am_cv_lispdir='${datadir}/emacs/site-lisp'
2275 fi
2276
2277 fi
2278 { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2279 $as_echo "$am_cv_lispdir" >&6; }
2280 lispdir="$am_cv_lispdir"
2281 fi
2282 fi
2283
2284 fi
2285
2286
2287
2288
2289
2290
2291 # Check whether --with-afs was given.
2292 if test "${with_afs+set}" = set; then
2293 withval=$with_afs; opt_afs=$withval
2294 fi
2295
2296
2297 # Check whether --with-bash-malloc was given.
2298 if test "${with_bash_malloc+set}" = set; then
2299 withval=$with_bash_malloc; opt_bash_malloc=$withval
2300 fi
2301
2302
2303 # Check whether --with-curses was given.
2304 if test "${with_curses+set}" = set; then
2305 withval=$with_curses; opt_curses=$withval
2306 fi
2307
2308
2309 # Check whether --with-gnu-malloc was given.
2310 if test "${with_gnu_malloc+set}" = set; then
2311 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2312 fi
2313
2314
2315 # Check whether --with-installed-readline was given.
2316 if test "${with_installed_readline+set}" = set; then
2317 withval=$with_installed_readline; opt_with_installed_readline=$withval
2318 fi
2319
2320
2321 # Check whether --with-purecov was given.
2322 if test "${with_purecov+set}" = set; then
2323 withval=$with_purecov; opt_purecov=$withval
2324 fi
2325
2326
2327 # Check whether --with-purify was given.
2328 if test "${with_purify+set}" = set; then
2329 withval=$with_purify; opt_purify=$withval
2330 fi
2331
2332
2333 if test "$opt_bash_malloc" = yes; then
2334 MALLOC_TARGET=malloc
2335 MALLOC_SRC=malloc.c
2336
2337 MALLOC_LIB='-lmalloc'
2338 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2339 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2340 MALLOC_DEP='$(MALLOC_LIBRARY)'
2341
2342 cat >>confdefs.h <<\_ACEOF
2343 #define USING_BASH_MALLOC 1
2344 _ACEOF
2345
2346 else
2347 MALLOC_LIB=
2348 MALLOC_LIBRARY=
2349 MALLOC_LDFLAGS=
2350 MALLOC_DEP=
2351 fi
2352
2353 if test "$opt_purify" = yes; then
2354 PURIFY="purify "
2355 cat >>confdefs.h <<\_ACEOF
2356 #define DISABLE_MALLOC_WRAPPERS 1
2357 _ACEOF
2358
2359 else
2360 PURIFY=
2361 fi
2362
2363 if test "$opt_purecov" = yes; then
2364 PURIFY="${PURIFY}purecov"
2365 fi
2366
2367 if test "$opt_afs" = yes; then
2368 cat >>confdefs.h <<\_ACEOF
2369 #define AFS 1
2370 _ACEOF
2371
2372 fi
2373
2374 if test "$opt_curses" = yes; then
2375 prefer_curses=yes
2376 fi
2377
2378 if test -z "${DEBUGGER_START_FILE}"; then
2379 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2380 fi
2381
2382 opt_minimal_config=no
2383
2384 opt_job_control=yes
2385 opt_alias=yes
2386 opt_readline=yes
2387 opt_history=yes
2388 opt_bang_history=yes
2389 opt_dirstack=yes
2390 opt_restricted=yes
2391 opt_process_subst=yes
2392 opt_prompt_decoding=yes
2393 opt_select=yes
2394 opt_help=yes
2395 opt_array_variables=yes
2396 opt_dparen_arith=yes
2397 opt_extended_glob=yes
2398 opt_brace_expansion=yes
2399 opt_disabled_builtins=no
2400 opt_command_timing=yes
2401 opt_xpg_echo=no
2402 opt_strict_posix=no
2403 opt_cond_command=yes
2404 opt_cond_regexp=yes
2405 opt_coproc=yes
2406 opt_arith_for_command=yes
2407 opt_net_redirs=yes
2408 opt_progcomp=yes
2409 opt_separate_help=no
2410 opt_multibyte=yes
2411 opt_debugger=yes
2412 opt_single_longdoc_strings=yes
2413 opt_casemod_attrs=yes
2414 opt_casemod_expansions=yes
2415
2416 opt_static_link=no
2417 opt_profiling=no
2418
2419 # Check whether --enable-minimal-config was given.
2420 if test "${enable_minimal_config+set}" = set; then
2421 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2422 fi
2423
2424
2425 if test $opt_minimal_config = yes; then
2426 opt_job_control=no opt_alias=no opt_readline=no
2427 opt_history=no opt_bang_history=no opt_dirstack=no
2428 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2429 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2430 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2431 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2432 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2433 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2434 opt_casemod_attrs=no opt_casemod_expansions=no
2435 fi
2436
2437 # Check whether --enable-alias was given.
2438 if test "${enable_alias+set}" = set; then
2439 enableval=$enable_alias; opt_alias=$enableval
2440 fi
2441
2442 # Check whether --enable-arith-for-command was given.
2443 if test "${enable_arith_for_command+set}" = set; then
2444 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2445 fi
2446
2447 # Check whether --enable-array-variables was given.
2448 if test "${enable_array_variables+set}" = set; then
2449 enableval=$enable_array_variables; opt_array_variables=$enableval
2450 fi
2451
2452 # Check whether --enable-bang-history was given.
2453 if test "${enable_bang_history+set}" = set; then
2454 enableval=$enable_bang_history; opt_bang_history=$enableval
2455 fi
2456
2457 # Check whether --enable-brace-expansion was given.
2458 if test "${enable_brace_expansion+set}" = set; then
2459 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2460 fi
2461
2462 # Check whether --enable-casemod-attributes was given.
2463 if test "${enable_casemod_attributes+set}" = set; then
2464 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2465 fi
2466
2467 # Check whether --enable-casemod-expansions was given.
2468 if test "${enable_casemod_expansions+set}" = set; then
2469 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2470 fi
2471
2472 # Check whether --enable-command-timing was given.
2473 if test "${enable_command_timing+set}" = set; then
2474 enableval=$enable_command_timing; opt_command_timing=$enableval
2475 fi
2476
2477 # Check whether --enable-cond-command was given.
2478 if test "${enable_cond_command+set}" = set; then
2479 enableval=$enable_cond_command; opt_cond_command=$enableval
2480 fi
2481
2482 # Check whether --enable-cond-regexp was given.
2483 if test "${enable_cond_regexp+set}" = set; then
2484 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2485 fi
2486
2487 # Check whether --enable-coprocesses was given.
2488 if test "${enable_coprocesses+set}" = set; then
2489 enableval=$enable_coprocesses; opt_coproc=$enableval
2490 fi
2491
2492 # Check whether --enable-debugger was given.
2493 if test "${enable_debugger+set}" = set; then
2494 enableval=$enable_debugger; opt_debugger=$enableval
2495 fi
2496
2497 # Check whether --enable-directory-stack was given.
2498 if test "${enable_directory_stack+set}" = set; then
2499 enableval=$enable_directory_stack; opt_dirstack=$enableval
2500 fi
2501
2502 # Check whether --enable-disabled-builtins was given.
2503 if test "${enable_disabled_builtins+set}" = set; then
2504 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2505 fi
2506
2507 # Check whether --enable-dparen-arithmetic was given.
2508 if test "${enable_dparen_arithmetic+set}" = set; then
2509 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2510 fi
2511
2512 # Check whether --enable-extended-glob was given.
2513 if test "${enable_extended_glob+set}" = set; then
2514 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2515 fi
2516
2517 # Check whether --enable-help-builtin was given.
2518 if test "${enable_help_builtin+set}" = set; then
2519 enableval=$enable_help_builtin; opt_help=$enableval
2520 fi
2521
2522 # Check whether --enable-history was given.
2523 if test "${enable_history+set}" = set; then
2524 enableval=$enable_history; opt_history=$enableval
2525 fi
2526
2527 # Check whether --enable-job-control was given.
2528 if test "${enable_job_control+set}" = set; then
2529 enableval=$enable_job_control; opt_job_control=$enableval
2530 fi
2531
2532 # Check whether --enable-multibyte was given.
2533 if test "${enable_multibyte+set}" = set; then
2534 enableval=$enable_multibyte; opt_multibyte=$enableval
2535 fi
2536
2537 # Check whether --enable-net-redirections was given.
2538 if test "${enable_net_redirections+set}" = set; then
2539 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2540 fi
2541
2542 # Check whether --enable-process-substitution was given.
2543 if test "${enable_process_substitution+set}" = set; then
2544 enableval=$enable_process_substitution; opt_process_subst=$enableval
2545 fi
2546
2547 # Check whether --enable-progcomp was given.
2548 if test "${enable_progcomp+set}" = set; then
2549 enableval=$enable_progcomp; opt_progcomp=$enableval
2550 fi
2551
2552 # Check whether --enable-prompt-string-decoding was given.
2553 if test "${enable_prompt_string_decoding+set}" = set; then
2554 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2555 fi
2556
2557 # Check whether --enable-readline was given.
2558 if test "${enable_readline+set}" = set; then
2559 enableval=$enable_readline; opt_readline=$enableval
2560 fi
2561
2562 # Check whether --enable-restricted was given.
2563 if test "${enable_restricted+set}" = set; then
2564 enableval=$enable_restricted; opt_restricted=$enableval
2565 fi
2566
2567 # Check whether --enable-select was given.
2568 if test "${enable_select+set}" = set; then
2569 enableval=$enable_select; opt_select=$enableval
2570 fi
2571
2572 # Check whether --enable-separate-helpfiles was given.
2573 if test "${enable_separate_helpfiles+set}" = set; then
2574 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2575 fi
2576
2577 # Check whether --enable-single-help-strings was given.
2578 if test "${enable_single_help_strings+set}" = set; then
2579 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2580 fi
2581
2582 # Check whether --enable-strict-posix-default was given.
2583 if test "${enable_strict_posix_default+set}" = set; then
2584 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2585 fi
2586
2587 # Check whether --enable-usg-echo-default was given.
2588 if test "${enable_usg_echo_default+set}" = set; then
2589 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2590 fi
2591
2592 # Check whether --enable-xpg-echo-default was given.
2593 if test "${enable_xpg_echo_default+set}" = set; then
2594 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2595 fi
2596
2597
2598 # Check whether --enable-mem-scramble was given.
2599 if test "${enable_mem_scramble+set}" = set; then
2600 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2601 fi
2602
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605 enableval=$enable_profiling; opt_profiling=$enableval
2606 fi
2607
2608 # Check whether --enable-static-link was given.
2609 if test "${enable_static_link+set}" = set; then
2610 enableval=$enable_static_link; opt_static_link=$enableval
2611 fi
2612
2613
2614
2615
2616 if test $opt_alias = yes; then
2617 cat >>confdefs.h <<\_ACEOF
2618 #define ALIAS 1
2619 _ACEOF
2620
2621 fi
2622 if test $opt_dirstack = yes; then
2623 cat >>confdefs.h <<\_ACEOF
2624 #define PUSHD_AND_POPD 1
2625 _ACEOF
2626
2627 fi
2628 if test $opt_restricted = yes; then
2629 cat >>confdefs.h <<\_ACEOF
2630 #define RESTRICTED_SHELL 1
2631 _ACEOF
2632
2633 fi
2634 if test $opt_process_subst = yes; then
2635 cat >>confdefs.h <<\_ACEOF
2636 #define PROCESS_SUBSTITUTION 1
2637 _ACEOF
2638
2639 fi
2640 if test $opt_prompt_decoding = yes; then
2641 cat >>confdefs.h <<\_ACEOF
2642 #define PROMPT_STRING_DECODE 1
2643 _ACEOF
2644
2645 fi
2646 if test $opt_select = yes; then
2647 cat >>confdefs.h <<\_ACEOF
2648 #define SELECT_COMMAND 1
2649 _ACEOF
2650
2651 fi
2652 if test $opt_help = yes; then
2653 cat >>confdefs.h <<\_ACEOF
2654 #define HELP_BUILTIN 1
2655 _ACEOF
2656
2657 fi
2658 if test $opt_array_variables = yes; then
2659 cat >>confdefs.h <<\_ACEOF
2660 #define ARRAY_VARS 1
2661 _ACEOF
2662
2663 fi
2664 if test $opt_dparen_arith = yes; then
2665 cat >>confdefs.h <<\_ACEOF
2666 #define DPAREN_ARITHMETIC 1
2667 _ACEOF
2668
2669 fi
2670 if test $opt_brace_expansion = yes; then
2671 cat >>confdefs.h <<\_ACEOF
2672 #define BRACE_EXPANSION 1
2673 _ACEOF
2674
2675 fi
2676 if test $opt_disabled_builtins = yes; then
2677 cat >>confdefs.h <<\_ACEOF
2678 #define DISABLED_BUILTINS 1
2679 _ACEOF
2680
2681 fi
2682 if test $opt_command_timing = yes; then
2683 cat >>confdefs.h <<\_ACEOF
2684 #define COMMAND_TIMING 1
2685 _ACEOF
2686
2687 fi
2688 if test $opt_xpg_echo = yes ; then
2689 cat >>confdefs.h <<\_ACEOF
2690 #define DEFAULT_ECHO_TO_XPG 1
2691 _ACEOF
2692
2693 fi
2694 if test $opt_strict_posix = yes; then
2695 cat >>confdefs.h <<\_ACEOF
2696 #define STRICT_POSIX 1
2697 _ACEOF
2698
2699 fi
2700 if test $opt_extended_glob = yes ; then
2701 cat >>confdefs.h <<\_ACEOF
2702 #define EXTENDED_GLOB 1
2703 _ACEOF
2704
2705 fi
2706 if test $opt_cond_command = yes ; then
2707 cat >>confdefs.h <<\_ACEOF
2708 #define COND_COMMAND 1
2709 _ACEOF
2710
2711 fi
2712 if test $opt_cond_regexp = yes ; then
2713 cat >>confdefs.h <<\_ACEOF
2714 #define COND_REGEXP 1
2715 _ACEOF
2716
2717 fi
2718 if test $opt_coproc = yes; then
2719 cat >>confdefs.h <<\_ACEOF
2720 #define COPROCESS_SUPPORT 1
2721 _ACEOF
2722
2723 fi
2724 if test $opt_arith_for_command = yes; then
2725 cat >>confdefs.h <<\_ACEOF
2726 #define ARITH_FOR_COMMAND 1
2727 _ACEOF
2728
2729 fi
2730 if test $opt_net_redirs = yes; then
2731 cat >>confdefs.h <<\_ACEOF
2732 #define NETWORK_REDIRECTIONS 1
2733 _ACEOF
2734
2735 fi
2736 if test $opt_progcomp = yes; then
2737 cat >>confdefs.h <<\_ACEOF
2738 #define PROGRAMMABLE_COMPLETION 1
2739 _ACEOF
2740
2741 fi
2742 if test $opt_multibyte = no; then
2743 cat >>confdefs.h <<\_ACEOF
2744 #define NO_MULTIBYTE_SUPPORT 1
2745 _ACEOF
2746
2747 fi
2748 if test $opt_debugger = yes; then
2749 cat >>confdefs.h <<\_ACEOF
2750 #define DEBUGGER 1
2751 _ACEOF
2752
2753 fi
2754 if test $opt_casemod_attrs = yes; then
2755 cat >>confdefs.h <<\_ACEOF
2756 #define CASEMOD_ATTRS 1
2757 _ACEOF
2758
2759 fi
2760 if test $opt_casemod_expansions = yes; then
2761 cat >>confdefs.h <<\_ACEOF
2762 #define CASEMOD_EXPANSIONS 1
2763 _ACEOF
2764
2765 fi
2766
2767 if test $opt_memscramble = yes; then
2768 cat >>confdefs.h <<\_ACEOF
2769 #define MEMSCRAMBLE 1
2770 _ACEOF
2771
2772 fi
2773
2774 if test "$opt_minimal_config" = yes; then
2775 TESTSCRIPT=run-minimal
2776 else
2777 TESTSCRIPT=run-all
2778 fi
2779
2780 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2781 if test "$opt_separate_help" != no; then
2782 if test "$opt_separate_help" = "yes" ; then
2783 HELPDIR='${datadir}/bash'
2784 else
2785 HELPDIR=$opt_separate_help
2786 fi
2787 HELPDIRDEFINE='-H ${HELPDIR}'
2788 HELPINSTALL='install-help'
2789 fi
2790 HELPSTRINGS=
2791 if test "$opt_single_longdoc_strings" != "yes"; then
2792 HELPSTRINGS='-S'
2793 fi
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812 echo ""
2813 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2814 echo ""
2815
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 fi
2860 if test -z "$ac_cv_prog_CC"; then
2861 ac_ct_CC=$CC
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863 set dummy gcc; ac_word=$2
2864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_CC="gcc"
2880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2890 if test -n "$ac_ct_CC"; then
2891 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892 $as_echo "$ac_ct_CC" >&6; }
2893 else
2894 { $as_echo "$as_me:$LINENO: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898 if test "x$ac_ct_CC" = x; then
2899 CC=""
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 CC=$ac_ct_CC
2908 fi
2909 else
2910 CC="$ac_cv_prog_CC"
2911 fi
2912
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}cc; ac_word=$2
2917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC="${ac_tool_prefix}cc"
2933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947 { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 fi
2953 fi
2954 if test -z "$CC"; then
2955 # Extract the first word of "cc", so it can be a program name with args.
2956 set dummy cc; ac_word=$2
2957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 ac_prog_rejected=no
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2974 ac_prog_rejected=yes
2975 continue
2976 fi
2977 ac_cv_prog_CC="cc"
2978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 if test $ac_prog_rejected = yes; then
2986 # We found a bogon in the path, so make sure we never use it.
2987 set dummy $ac_cv_prog_CC
2988 shift
2989 if test $# != 0; then
2990 # We chose a different compiler from the bogus one.
2991 # However, it has the same basename, so the bogon will be chosen
2992 # first if we set CC to just the basename; use the full file name.
2993 shift
2994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2995 fi
2996 fi
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004 { $as_echo "$as_me:$LINENO: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 fi
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 for ac_prog in cl.exe
3013 do
3014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046 { $as_echo "$as_me:$LINENO: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 test -n "$CC" && break
3052 done
3053 fi
3054 if test -z "$CC"; then
3055 ac_ct_CC=$CC
3056 for ac_prog in cl.exe
3057 do
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy $ac_prog; ac_word=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC="$ac_prog"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3089 else
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095 test -n "$ac_ct_CC" && break
3096 done
3097
3098 if test "x$ac_ct_CC" = x; then
3099 CC=""
3100 else
3101 case $cross_compiling:$ac_tool_warned in
3102 yes:)
3103 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned=yes ;;
3106 esac
3107 CC=$ac_ct_CC
3108 fi
3109 fi
3110
3111 fi
3112
3113
3114 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&5
3118 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." >&2;}
3120 { (exit 1); exit 1; }; }; }
3121
3122 # Provide some information about the compiler.
3123 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3124 set X $ac_compile
3125 ac_compiler=$2
3126 { (ac_try="$ac_compiler --version >&5"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compiler --version >&5") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 { (ac_try="$ac_compiler -v >&5"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_compiler -v >&5") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148 { (ac_try="$ac_compiler -V >&5"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_compiler -V >&5") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3159
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166
3167 int
3168 main ()
3169 {
3170
3171 ;
3172 return 0;
3173 }
3174 _ACEOF
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3179 # of exeext.
3180 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183
3184 # The possible output files:
3185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3186
3187 ac_rmfiles=
3188 for ac_file in $ac_files
3189 do
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193 esac
3194 done
3195 rm -f $ac_rmfiles
3196
3197 if { (ac_try="$ac_link_default"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_link_default") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3211 # so that the user can short-circuit this test for compilers unknown to
3212 # Autoconf.
3213 for ac_file in $ac_files ''
3214 do
3215 test -f "$ac_file" || continue
3216 case $ac_file in
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3218 ;;
3219 [ab].out )
3220 # We found the default executable, but exeext='' is most
3221 # certainly right.
3222 break;;
3223 *.* )
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225 then :; else
3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 fi
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3232 # actually working.
3233 break;;
3234 * )
3235 break;;
3236 esac
3237 done
3238 test "$ac_cv_exeext" = no && ac_cv_exeext=
3239
3240 else
3241 ac_file=''
3242 fi
3243
3244 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3245 $as_echo "$ac_file" >&6; }
3246 if test -z "$ac_file"; then
3247 $as_echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3253 See \`config.log' for more details." >&5
3254 $as_echo "$as_me: error: C compiler cannot create executables
3255 See \`config.log' for more details." >&2;}
3256 { (exit 77); exit 77; }; }; }
3257 fi
3258
3259 ac_exeext=$ac_cv_exeext
3260
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3264 $as_echo_n "checking whether the C compiler works... " >&6; }
3265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3266 # If not cross compiling, check that we can run a simple program.
3267 if test "$cross_compiling" != yes; then
3268 if { ac_try='./$ac_file'
3269 { (case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_try") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 cross_compiling=no
3280 else
3281 if test "$cross_compiling" = maybe; then
3282 cross_compiling=yes
3283 else
3284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3287 If you meant to cross compile, use \`--host'.
3288 See \`config.log' for more details." >&5
3289 $as_echo "$as_me: error: cannot run C compiled programs.
3290 If you meant to cross compile, use \`--host'.
3291 See \`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }; }
3293 fi
3294 fi
3295 fi
3296 { $as_echo "$as_me:$LINENO: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298
3299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3300 ac_clean_files=$ac_clean_files_save
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3304 $as_echo_n "checking whether we are cross compiling... " >&6; }
3305 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3307
3308 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3309 $as_echo_n "checking for suffix of executables... " >&6; }
3310 if { (ac_try="$ac_link"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_link") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3324 # `rm'.
3325 for ac_file in conftest.exe conftest conftest.*; do
3326 test -f "$ac_file" || continue
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 break;;
3331 * ) break;;
3332 esac
3333 done
3334 else
3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3342 fi
3343
3344 rm -f conftest$ac_cv_exeext
3345 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3347
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3350 ac_exeext=$EXEEXT
3351 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if test "${ac_cv_objext+set}" = set; then
3354 $as_echo_n "(cached) " >&6
3355 else
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.o conftest.obj
3372 if { (ac_try="$ac_compile"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compile") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; then
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3385 case $ac_file in
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 break;;
3389 esac
3390 done
3391 else
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details." >&5
3399 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3400 See \`config.log' for more details." >&2;}
3401 { (exit 1); exit 1; }; }; }
3402 fi
3403
3404 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3405 fi
3406 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3407 $as_echo "$ac_cv_objext" >&6; }
3408 OBJEXT=$ac_cv_objext
3409 ac_objext=$OBJEXT
3410 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3411 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3412 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3413 $as_echo_n "(cached) " >&6
3414 else
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425 #ifndef __GNUC__
3426 choke me
3427 #endif
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3451 ac_compiler_gnu=yes
3452 else
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 ac_compiler_gnu=no
3457 fi
3458
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461
3462 fi
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3466 GCC=yes
3467 else
3468 GCC=
3469 fi
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3474 if test "${ac_cv_prog_cc_g+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3479 ac_cv_prog_cc_g=no
3480 CFLAGS="-g"
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_cv_prog_cc_g=yes
3515 else
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 CFLAGS=""
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
3527 int
3528 main ()
3529 {
3530
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3553 :
3554 else
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559 CFLAGS="-g"
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cc_g=yes
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3616 CFLAGS="-g -O2"
3617 else
3618 CFLAGS="-g"
3619 fi
3620 else
3621 if test "$GCC" = yes; then
3622 CFLAGS="-O2"
3623 else
3624 CFLAGS=
3625 fi
3626 fi
3627 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
3630 $as_echo_n "(cached) " >&6
3631 else
3632 ac_cv_prog_cc_c89=no
3633 ac_save_CC=$CC
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h. */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 #include <stdarg.h>
3641 #include <stdio.h>
3642 #include <sys/types.h>
3643 #include <sys/stat.h>
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648 char **p;
3649 int i;
3650 {
3651 return p[i];
3652 }
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3654 {
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661 }
3662
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3685 {
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_c89=$ac_arg
3714 else
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3726
3727 fi
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c89" in
3730 x)
3731 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3736 *)
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740 esac
3741
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750
3751
3752 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3753 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3754 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_check_lib_save_LIBS=$LIBS
3758 LIBS="-lcposix $LIBS"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765
3766 /* Override any GCC internal prototype to avoid an error.
3767 Use char because int might match the return type of a GCC
3768 builtin and then its argument prototype would still apply. */
3769 #ifdef __cplusplus
3770 extern "C"
3771 #endif
3772 char strerror ();
3773 int
3774 main ()
3775 {
3776 return strerror ();
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (ac_try="$ac_link"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_link") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest$ac_exeext && {
3799 test "$cross_compiling" = yes ||
3800 $as_test_x conftest$ac_exeext
3801 }; then
3802 ac_cv_lib_cposix_strerror=yes
3803 else
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 ac_cv_lib_cposix_strerror=no
3808 fi
3809
3810 rm -rf conftest.dSYM
3811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3812 conftest$ac_exeext conftest.$ac_ext
3813 LIBS=$ac_check_lib_save_LIBS
3814 fi
3815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3816 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3817 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3818 LIBS="$LIBS -lcposix"
3819 fi
3820
3821
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3829 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3830 # On Suns, sometimes $CPP names a directory.
3831 if test -n "$CPP" && test -d "$CPP"; then
3832 CPP=
3833 fi
3834 if test -z "$CPP"; then
3835 if test "${ac_cv_prog_CPP+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3837 else
3838 # Double quotes because CPP needs to be expanded
3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3840 do
3841 ac_preproc_ok=false
3842 for ac_c_preproc_warn_flag in '' yes
3843 do
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847 # <limits.h> exists even on freestanding compilers.
3848 # On the NeXT, cc -E runs the code through the compiler's parser,
3849 # not just through cpp. "Syntax error" is here to catch this case.
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861 Syntax error
3862 _ACEOF
3863 if { (ac_try="$ac_cpp conftest.$ac_ext"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869 $as_echo "$ac_try_echo") >&5
3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev/null && {
3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 }; then
3880 :
3881 else
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 # Broken: fails on valid input.
3886 continue
3887 fi
3888
3889 rm -f conftest.err conftest.$ac_ext
3890
3891 # OK, works on sane cases. Now check whether nonexistent headers
3892 # can be detected and how.
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <ac_nonexistent.h>
3900 _ACEOF
3901 if { (ac_try="$ac_cpp conftest.$ac_ext"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null && {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 }; then
3918 # Broken: success on invalid input.
3919 continue
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3927 fi
3928
3929 rm -f conftest.err conftest.$ac_ext
3930
3931 done
3932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933 rm -f conftest.err conftest.$ac_ext
3934 if $ac_preproc_ok; then
3935 break
3936 fi
3937
3938 done
3939 ac_cv_prog_CPP=$CPP
3940
3941 fi
3942 CPP=$ac_cv_prog_CPP
3943 else
3944 ac_cv_prog_CPP=$CPP
3945 fi
3946 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3947 $as_echo "$CPP" >&6; }
3948 ac_preproc_ok=false
3949 for ac_c_preproc_warn_flag in '' yes
3950 do
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #ifdef __STDC__
3964 # include <limits.h>
3965 #else
3966 # include <assert.h>
3967 #endif
3968 Syntax error
3969 _ACEOF
3970 if { (ac_try="$ac_cpp conftest.$ac_ext"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976 $as_echo "$ac_try_echo") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
3987 :
3988 else
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 # Broken: fails on valid input.
3993 continue
3994 fi
3995
3996 rm -f conftest.err conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4014 $as_echo "$ac_try_echo") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 }; then
4025 # Broken: success on invalid input.
4026 continue
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 # Passes both tests.
4032 ac_preproc_ok=:
4033 break
4034 fi
4035
4036 rm -f conftest.err conftest.$ac_ext
4037
4038 done
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.$ac_ext
4041 if $ac_preproc_ok; then
4042 :
4043 else
4044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4047 See \`config.log' for more details." >&5
4048 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&2;}
4050 { (exit 1); exit 1; }; }; }
4051 fi
4052
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4061 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062 if test "${ac_cv_path_GREP+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -z "$GREP"; then
4066 ac_path_GREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in grep ggrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4077 # Check for GNU ac_path_GREP and select it if it is found.
4078 # Check for GNU $ac_path_GREP
4079 case `"$ac_path_GREP" --version 2>&1` in
4080 *GNU*)
4081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082 *)
4083 ac_count=0
4084 $as_echo_n 0123456789 >"conftest.in"
4085 while :
4086 do
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'GREP' >> "conftest.nl"
4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 ac_count=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_GREP="$ac_path_GREP"
4097 ac_path_GREP_max=$ac_count
4098 fi
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105 $ac_path_GREP_found && break 3
4106 done
4107 done
4108 done
4109 IFS=$as_save_IFS
4110 if test -z "$ac_cv_path_GREP"; then
4111 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4112 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4113 { (exit 1); exit 1; }; }
4114 fi
4115 else
4116 ac_cv_path_GREP=$GREP
4117 fi
4118
4119 fi
4120 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4121 $as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP="$ac_cv_path_GREP"
4123
4124
4125 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4126 $as_echo_n "checking for egrep... " >&6; }
4127 if test "${ac_cv_path_EGREP+set}" = set; then
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4131 then ac_cv_path_EGREP="$GREP -E"
4132 else
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in egrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4145 # Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147 case `"$ac_path_EGREP" --version 2>&1` in
4148 *GNU*)
4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4150 *)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 ac_count=`expr $ac_count + 1`
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP="$ac_path_EGREP"
4165 ac_path_EGREP_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173 $ac_path_EGREP_found && break 3
4174 done
4175 done
4176 done
4177 IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_EGREP"; then
4179 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4180 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4181 { (exit 1); exit 1; }; }
4182 fi
4183 else
4184 ac_cv_path_EGREP=$EGREP
4185 fi
4186
4187 fi
4188 fi
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP="$ac_cv_path_EGREP"
4192
4193
4194 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4195 $as_echo_n "checking for ANSI C header files... " >&6; }
4196 if test "${ac_cv_header_stdc+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 #include <stdlib.h>
4206 #include <stdarg.h>
4207 #include <string.h>
4208 #include <float.h>
4209
4210 int
4211 main ()
4212 {
4213
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4225 $as_echo "$ac_try_echo") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && {
4233 test -z "$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4235 } && test -s conftest.$ac_objext; then
4236 ac_cv_header_stdc=yes
4237 else
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 ac_cv_header_stdc=no
4242 fi
4243
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245
4246 if test $ac_cv_header_stdc = yes; then
4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 #include <string.h>
4255
4256 _ACEOF
4257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258 $EGREP "memchr" >/dev/null 2>&1; then
4259 :
4260 else
4261 ac_cv_header_stdc=no
4262 fi
4263 rm -f conftest*
4264
4265 fi
4266
4267 if test $ac_cv_header_stdc = yes; then
4268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #include <stdlib.h>
4276
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev/null 2>&1; then
4280 :
4281 else
4282 ac_cv_header_stdc=no
4283 fi
4284 rm -f conftest*
4285
4286 fi
4287
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4291 :
4292 else
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <ctype.h>
4300 #include <stdlib.h>
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4304 #else
4305 # define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
4307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310 #endif
4311
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4313 int
4314 main ()
4315 {
4316 int i;
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
4319 || toupper (i) != TOUPPER (i))
4320 return 2;
4321 return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest$ac_exeext
4325 if { (ac_try="$ac_link"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4331 $as_echo "$ac_try_echo") >&5
4332 (eval "$ac_link") 2>&5
4333 ac_status=$?
4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341 $as_echo "$ac_try_echo") >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 :
4347 else
4348 $as_echo "$as_me: program exited with status $ac_status" >&5
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ( exit $ac_status )
4353 ac_cv_header_stdc=no
4354 fi
4355 rm -rf conftest.dSYM
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357 fi
4358
4359
4360 fi
4361 fi
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363 $as_echo "$ac_cv_header_stdc" >&6; }
4364 if test $ac_cv_header_stdc = yes; then
4365
4366 cat >>confdefs.h <<\_ACEOF
4367 #define STDC_HEADERS 1
4368 _ACEOF
4369
4370 fi
4371
4372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4384 do
4385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 $as_echo_n "checking for $ac_header... " >&6; }
4388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4389 $as_echo_n "(cached) " >&6
4390 else
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4398
4399 #include <$ac_header>
4400 _ACEOF
4401 rm -f conftest.$ac_objext
4402 if { (ac_try="$ac_compile"
4403 case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4408 $as_echo "$ac_try_echo") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
4419 eval "$as_ac_Header=yes"
4420 else
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 eval "$as_ac_Header=no"
4425 fi
4426
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 fi
4429 ac_res=`eval 'as_val=${'$as_ac_Header'}
4430 $as_echo "$as_val"'`
4431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4432 $as_echo "$ac_res" >&6; }
4433 as_val=`eval 'as_val=${'$as_ac_Header'}
4434 $as_echo "$as_val"'`
4435 if test "x$as_val" = x""yes; then
4436 cat >>confdefs.h <<_ACEOF
4437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4438 _ACEOF
4439
4440 fi
4441
4442 done
4443
4444
4445
4446 if test "${ac_cv_header_minix_config_h+set}" = set; then
4447 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4448 $as_echo_n "checking for minix/config.h... " >&6; }
4449 if test "${ac_cv_header_minix_config_h+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4451 fi
4452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4453 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4454 else
4455 # Is the header compilable?
4456 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4457 $as_echo_n "checking minix/config.h usability... " >&6; }
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4465 #include <minix/config.h>
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 ac_header_compiler=yes
4486 else
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 ac_header_compiler=no
4491 fi
4492
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4495 $as_echo "$ac_header_compiler" >&6; }
4496
4497 # Is the header present?
4498 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4499 $as_echo_n "checking minix/config.h presence... " >&6; }
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <minix/config.h>
4507 _ACEOF
4508 if { (ac_try="$ac_cpp conftest.$ac_ext"
4509 case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4514 $as_echo "$ac_try_echo") >&5
4515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } >/dev/null && {
4522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4524 }; then
4525 ac_header_preproc=yes
4526 else
4527 $as_echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ac_header_preproc=no
4531 fi
4532
4533 rm -f conftest.err conftest.$ac_ext
4534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4535 $as_echo "$ac_header_preproc" >&6; }
4536
4537 # So? What about this header?
4538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4539 yes:no: )
4540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4541 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4543 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4544 ac_header_preproc=yes
4545 ;;
4546 no:yes:* )
4547 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4548 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4549 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4550 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4551 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4552 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4553 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4554 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4555 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4556 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4557 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4558 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4559 ( cat <<\_ASBOX
4560 ## ------------------------------- ##
4561 ## Report this to bug-bash@gnu.org ##
4562 ## ------------------------------- ##
4563 _ASBOX
4564 ) | sed "s/^/$as_me: WARNING: /" >&2
4565 ;;
4566 esac
4567 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4568 $as_echo_n "checking for minix/config.h... " >&6; }
4569 if test "${ac_cv_header_minix_config_h+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_cv_header_minix_config_h=$ac_header_preproc
4573 fi
4574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4575 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4576
4577 fi
4578 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4579 MINIX=yes
4580 else
4581 MINIX=
4582 fi
4583
4584
4585 if test "$MINIX" = yes; then
4586
4587 cat >>confdefs.h <<\_ACEOF
4588 #define _POSIX_SOURCE 1
4589 _ACEOF
4590
4591
4592 cat >>confdefs.h <<\_ACEOF
4593 #define _POSIX_1_SOURCE 2
4594 _ACEOF
4595
4596
4597 cat >>confdefs.h <<\_ACEOF
4598 #define _MINIX 1
4599 _ACEOF
4600
4601 fi
4602
4603
4604
4605 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4606 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4607 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4608 $as_echo_n "(cached) " >&6
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616
4617 # define __EXTENSIONS__ 1
4618 $ac_includes_default
4619 int
4620 main ()
4621 {
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (ac_try="$ac_compile"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 ac_cv_safe_to_define___extensions__=yes
4646 else
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_cv_safe_to_define___extensions__=no
4651 fi
4652
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4657 test $ac_cv_safe_to_define___extensions__ = yes &&
4658 cat >>confdefs.h <<\_ACEOF
4659 #define __EXTENSIONS__ 1
4660 _ACEOF
4661
4662 cat >>confdefs.h <<\_ACEOF
4663 #define _ALL_SOURCE 1
4664 _ACEOF
4665
4666 cat >>confdefs.h <<\_ACEOF
4667 #define _GNU_SOURCE 1
4668 _ACEOF
4669
4670 cat >>confdefs.h <<\_ACEOF
4671 #define _POSIX_PTHREAD_SEMANTICS 1
4672 _ACEOF
4673
4674 cat >>confdefs.h <<\_ACEOF
4675 #define _TANDEM_SOURCE 1
4676 _ACEOF
4677
4678
4679
4680 # Check whether --enable-largefile was given.
4681 if test "${enable_largefile+set}" = set; then
4682 enableval=$enable_largefile;
4683 fi
4684
4685 if test "$enable_largefile" != no; then
4686
4687 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4688 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4689 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_cv_sys_largefile_CC=no
4693 if test "$GCC" != yes; then
4694 ac_save_CC=$CC
4695 while :; do
4696 # IRIX 6.2 and later do not support large files by default,
4697 # so use the C compiler's -n32 option if that helps.
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 /* Check that off_t can represent 2**63 - 1 correctly.
4706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707 since some C++ compilers masquerading as C compilers
4708 incorrectly reject 9223372036854775807. */
4709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711 && LARGE_OFF_T % 2147483647 == 1)
4712 ? 1 : -1];
4713 int
4714 main ()
4715 {
4716
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (ac_try="$ac_compile"
4723 case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726 esac
4727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4728 $as_echo "$ac_try_echo") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 break
4740 else
4741 $as_echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext
4748 CC="$CC -n32"
4749 rm -f conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 ac_cv_sys_largefile_CC=' -n32'; break
4768 else
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772
4773 fi
4774
4775 rm -f core conftest.err conftest.$ac_objext
4776 break
4777 done
4778 CC=$ac_save_CC
4779 rm -f conftest.$ac_ext
4780 fi
4781 fi
4782 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4783 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4784 if test "$ac_cv_sys_largefile_CC" != no; then
4785 CC=$CC$ac_cv_sys_largefile_CC
4786 fi
4787
4788 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4789 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4790 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4792 else
4793 while :; do
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 /* Check that off_t can represent 2**63 - 1 correctly.
4802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4803 since some C++ compilers masquerading as C compilers
4804 incorrectly reject 9223372036854775807. */
4805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4807 && LARGE_OFF_T % 2147483647 == 1)
4808 ? 1 : -1];
4809 int
4810 main ()
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4819 case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4824 $as_echo "$ac_try_echo") >&5
4825 (eval "$ac_compile") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest.$ac_objext; then
4835 ac_cv_sys_file_offset_bits=no; break
4836 else
4837 $as_echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840
4841 fi
4842
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #define _FILE_OFFSET_BITS 64
4851 #include <sys/types.h>
4852 /* Check that off_t can represent 2**63 - 1 correctly.
4853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4854 since some C++ compilers masquerading as C compilers
4855 incorrectly reject 9223372036854775807. */
4856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4858 && LARGE_OFF_T % 2147483647 == 1)
4859 ? 1 : -1];
4860 int
4861 main ()
4862 {
4863
4864 ;
4865 return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875 $as_echo "$ac_try_echo") >&5
4876 (eval "$ac_compile") 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.$ac_objext; then
4886 ac_cv_sys_file_offset_bits=64; break
4887 else
4888 $as_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 ac_cv_sys_file_offset_bits=unknown
4896 break
4897 done
4898 fi
4899 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4900 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4901 case $ac_cv_sys_file_offset_bits in #(
4902 no | unknown) ;;
4903 *)
4904 cat >>confdefs.h <<_ACEOF
4905 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4906 _ACEOF
4907 ;;
4908 esac
4909 rm -rf conftest*
4910 if test $ac_cv_sys_file_offset_bits = unknown; then
4911 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4912 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4913 if test "${ac_cv_sys_large_files+set}" = set; then
4914 $as_echo_n "(cached) " >&6
4915 else
4916 while :; do
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 /* Check that off_t can represent 2**63 - 1 correctly.
4925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4926 since some C++ compilers masquerading as C compilers
4927 incorrectly reject 9223372036854775807. */
4928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4930 && LARGE_OFF_T % 2147483647 == 1)
4931 ? 1 : -1];
4932 int
4933 main ()
4934 {
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4942 case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4947 $as_echo "$ac_try_echo") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_cv_sys_large_files=no; break
4959 else
4960 $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963
4964 fi
4965
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #define _LARGE_FILES 1
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4982 ? 1 : -1];
4983 int
4984 main ()
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998 $as_echo "$ac_try_echo") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 ac_cv_sys_large_files=1; break
5010 else
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_sys_large_files=unknown
5019 break
5020 done
5021 fi
5022 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5023 $as_echo "$ac_cv_sys_large_files" >&6; }
5024 case $ac_cv_sys_large_files in #(
5025 no | unknown) ;;
5026 *)
5027 cat >>confdefs.h <<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5029 _ACEOF
5030 ;;
5031 esac
5032 rm -rf conftest*
5033 fi
5034 fi
5035
5036
5037
5038 SIGNAMES_O=
5039 SIGNAMES_H=lsignames.h
5040
5041
5042
5043 CROSS_COMPILE=
5044 if test "x$cross_compiling" = "xyes"; then
5045 case "${host}" in
5046 *-cygwin*)
5047 cross_cache=${srcdir}/cross-build/cygwin32.cache
5048 ;;
5049 *-mingw*)
5050 cross_cache=${srcdir}/cross-build/cygwin32.cache
5051 ;;
5052 i[3456]86-*-beos*)
5053 cross_cache=${srcdir}/cross-build/x86-beos.cache
5054 ;;
5055 *) echo "configure: cross-compiling for $host is not supported" >&2
5056 ;;
5057 esac
5058 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5059 echo "loading cross-build cache file ${cross_cache}"
5060 . ${cross_cache}
5061 fi
5062 unset cross_cache
5063 SIGNAMES_O='signames.o'
5064 CROSS_COMPILE='-DCROSS_COMPILING'
5065
5066 fi
5067
5068
5069
5070 if test -z "$CC_FOR_BUILD"; then
5071 if test "x$cross_compiling" = "xno"; then
5072 CC_FOR_BUILD='$(CC)'
5073 else
5074 CC_FOR_BUILD=gcc
5075 fi
5076 fi
5077
5078
5079
5080 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5081
5082 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5083
5084 if test "$opt_profiling" = "yes"; then
5085 PROFILE_FLAGS=-pg
5086 case "$host_os" in
5087 solaris2*) ;;
5088 *) opt_static_link=yes ;;
5089 esac
5090 DEBUG= MALLOC_DEBUG=
5091 fi
5092
5093 if test "$opt_static_link" = yes; then
5094 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5095 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5096 STATIC_LD="-static"
5097 case "$host_os" in
5098 solaris2*) ;;
5099 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5100 esac
5101 fi
5102 fi
5103
5104 if test "X$cross_compiling" = "Xno"; then
5105 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5106 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5107 else
5108 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5109 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5110 fi
5111
5112 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 if test $ac_cv_c_compiler_gnu = yes; then
5124 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5125 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5127 $as_echo_n "(cached) " >&6
5128 else
5129 ac_pattern="Autoconf.*'x'"
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h. */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 #include <sgtty.h>
5137 Autoconf TIOCGETP
5138 _ACEOF
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5141 ac_cv_prog_gcc_traditional=yes
5142 else
5143 ac_cv_prog_gcc_traditional=no
5144 fi
5145 rm -f conftest*
5146
5147
5148 if test $ac_cv_prog_gcc_traditional = no; then
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <termio.h>
5156 Autoconf TCGETA
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5160 ac_cv_prog_gcc_traditional=yes
5161 fi
5162 rm -f conftest*
5163
5164 fi
5165 fi
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5167 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5168 if test $ac_cv_prog_gcc_traditional = yes; then
5169 CC="$CC -traditional"
5170 fi
5171 fi
5172
5173
5174
5175 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5176 then
5177 # If the user specified --with-installed-readline=PREFIX and PREFIX
5178 # is not `yes', set ac_cv_rl_prefix to PREFIX
5179 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5180
5181
5182 if test "X$bash_cv_termcap_lib" = "X"; then
5183 _bash_needmsg=yes
5184 else
5185 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5186 $as_echo_n "checking which library has the termcap functions... " >&6; }
5187 _bash_needmsg=
5188 fi
5189 if test "${bash_cv_termcap_lib+set}" = set; then
5190 $as_echo_n "(cached) " >&6
5191 else
5192 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5193 $as_echo_n "checking for tgetent... " >&6; }
5194 if test "${ac_cv_func_tgetent+set}" = set; then
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5205 #define tgetent innocuous_tgetent
5206
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char tgetent (); below.
5209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 <limits.h> exists even on freestanding compilers. */
5211
5212 #ifdef __STDC__
5213 # include <limits.h>
5214 #else
5215 # include <assert.h>
5216 #endif
5217
5218 #undef tgetent
5219
5220 /* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5223 #ifdef __cplusplus
5224 extern "C"
5225 #endif
5226 char tgetent ();
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined __stub_tgetent || defined __stub___tgetent
5231 choke me
5232 #endif
5233
5234 int
5235 main ()
5236 {
5237 return tgetent ();
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (ac_try="$ac_link"
5244 case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250 (eval "$ac_link") 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest$ac_exeext && {
5260 test "$cross_compiling" = yes ||
5261 $as_test_x conftest$ac_exeext
5262 }; then
5263 ac_cv_func_tgetent=yes
5264 else
5265 $as_echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 ac_cv_func_tgetent=no
5269 fi
5270
5271 rm -rf conftest.dSYM
5272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5273 conftest$ac_exeext conftest.$ac_ext
5274 fi
5275 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5276 $as_echo "$ac_cv_func_tgetent" >&6; }
5277 if test "x$ac_cv_func_tgetent" = x""yes; then
5278 bash_cv_termcap_lib=libc
5279 else
5280 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5281 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5282 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5284 else
5285 ac_check_lib_save_LIBS=$LIBS
5286 LIBS="-ltermcap $LIBS"
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293
5294 /* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
5297 #ifdef __cplusplus
5298 extern "C"
5299 #endif
5300 char tgetent ();
5301 int
5302 main ()
5303 {
5304 return tgetent ();
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (ac_try="$ac_link"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317 (eval "$ac_link") 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest$ac_exeext && {
5327 test "$cross_compiling" = yes ||
5328 $as_test_x conftest$ac_exeext
5329 }; then
5330 ac_cv_lib_termcap_tgetent=yes
5331 else
5332 $as_echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ac_cv_lib_termcap_tgetent=no
5336 fi
5337
5338 rm -rf conftest.dSYM
5339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5340 conftest$ac_exeext conftest.$ac_ext
5341 LIBS=$ac_check_lib_save_LIBS
5342 fi
5343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5344 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5345 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
5346 bash_cv_termcap_lib=libtermcap
5347 else
5348 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5349 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5350 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5351 $as_echo_n "(cached) " >&6
5352 else
5353 ac_check_lib_save_LIBS=$LIBS
5354 LIBS="-ltinfo $LIBS"
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361
5362 /* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
5365 #ifdef __cplusplus
5366 extern "C"
5367 #endif
5368 char tgetent ();
5369 int
5370 main ()
5371 {
5372 return tgetent ();
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (ac_try="$ac_link"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_link") 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext && {
5395 test "$cross_compiling" = yes ||
5396 $as_test_x conftest$ac_exeext
5397 }; then
5398 ac_cv_lib_tinfo_tgetent=yes
5399 else
5400 $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ac_cv_lib_tinfo_tgetent=no
5404 fi
5405
5406 rm -rf conftest.dSYM
5407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5408 conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5410 fi
5411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5412 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5413 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5414 bash_cv_termcap_lib=libtinfo
5415 else
5416 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5417 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5418 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5419 $as_echo_n "(cached) " >&6
5420 else
5421 ac_check_lib_save_LIBS=$LIBS
5422 LIBS="-lcurses $LIBS"
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429
5430 /* Override any GCC internal prototype to avoid an error.
5431 Use char because int might match the return type of a GCC
5432 builtin and then its argument prototype would still apply. */
5433 #ifdef __cplusplus
5434 extern "C"
5435 #endif
5436 char tgetent ();
5437 int
5438 main ()
5439 {
5440 return tgetent ();
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext conftest$ac_exeext
5446 if { (ac_try="$ac_link"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453 (eval "$ac_link") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest$ac_exeext && {
5463 test "$cross_compiling" = yes ||
5464 $as_test_x conftest$ac_exeext
5465 }; then
5466 ac_cv_lib_curses_tgetent=yes
5467 else
5468 $as_echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 ac_cv_lib_curses_tgetent=no
5472 fi
5473
5474 rm -rf conftest.dSYM
5475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5476 conftest$ac_exeext conftest.$ac_ext
5477 LIBS=$ac_check_lib_save_LIBS
5478 fi
5479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5480 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5481 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
5482 bash_cv_termcap_lib=libcurses
5483 else
5484 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5485 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5486 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5487 $as_echo_n "(cached) " >&6
5488 else
5489 ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lncurses $LIBS"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497
5498 /* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 char tgetent ();
5505 int
5506 main ()
5507 {
5508 return tgetent ();
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (ac_try="$ac_link"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520 $as_echo "$ac_try_echo") >&5
5521 (eval "$ac_link") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest$ac_exeext && {
5531 test "$cross_compiling" = yes ||
5532 $as_test_x conftest$ac_exeext
5533 }; then
5534 ac_cv_lib_ncurses_tgetent=yes
5535 else
5536 $as_echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 ac_cv_lib_ncurses_tgetent=no
5540 fi
5541
5542 rm -rf conftest.dSYM
5543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5546 fi
5547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5548 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5549 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5550 bash_cv_termcap_lib=libncurses
5551 else
5552 bash_cv_termcap_lib=gnutermcap
5553 fi
5554
5555 fi
5556
5557 fi
5558
5559 fi
5560
5561 fi
5562
5563 fi
5564
5565 if test "X$_bash_needmsg" = "Xyes"; then
5566 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5567 $as_echo_n "checking which library has the termcap functions... " >&6; }
5568 fi
5569 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5570 $as_echo "using $bash_cv_termcap_lib" >&6; }
5571 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5572 LDFLAGS="$LDFLAGS -L./lib/termcap"
5573 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5574 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5575 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5576 TERMCAP_LIB=-ltermcap
5577 TERMCAP_DEP=
5578 elif test $bash_cv_termcap_lib = libtinfo; then
5579 TERMCAP_LIB=-ltinfo
5580 TERMCAP_DEP=
5581 elif test $bash_cv_termcap_lib = libncurses; then
5582 TERMCAP_LIB=-lncurses
5583 TERMCAP_DEP=
5584 elif test $bash_cv_termcap_lib = libc; then
5585 TERMCAP_LIB=
5586 TERMCAP_DEP=
5587 else
5588 TERMCAP_LIB=-lcurses
5589 TERMCAP_DEP=
5590 fi
5591
5592
5593
5594
5595 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5596 $as_echo_n "checking version of installed readline library... " >&6; }
5597
5598 # What a pain in the ass this is.
5599
5600 # save cpp and ld options
5601 _save_CFLAGS="$CFLAGS"
5602 _save_LDFLAGS="$LDFLAGS"
5603 _save_LIBS="$LIBS"
5604
5605 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5606 # allows the caller to do something like $_rl_prefix=$withval if the user
5607 # specifies --with-installed-readline=PREFIX as an argument to configure
5608
5609 if test -z "$ac_cv_rl_prefix"; then
5610 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5611 fi
5612
5613 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5614 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5615
5616 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5617 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5618 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5619
5620 if test "${ac_cv_rl_version+set}" = set; then
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test "$cross_compiling" = yes; then
5624 ac_cv_rl_version='4.2'
5625 else
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632
5633 #include <stdio.h>
5634 #include <readline/readline.h>
5635
5636 extern int rl_gnu_readline_p;
5637
5638 main()
5639 {
5640 FILE *fp;
5641 fp = fopen("conftest.rlv", "w");
5642 if (fp == 0)
5643 exit(1);
5644 if (rl_gnu_readline_p != 1)
5645 fprintf(fp, "0.0\n");
5646 else
5647 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5648 fclose(fp);
5649 exit(0);
5650 }
5651
5652 _ACEOF
5653 rm -f conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5655 case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_link") 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5665 { (case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5670 $as_echo "$ac_try_echo") >&5
5671 (eval "$ac_try") 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_rl_version=`cat conftest.rlv`
5676 else
5677 $as_echo "$as_me: program exited with status $ac_status" >&5
5678 $as_echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 ( exit $ac_status )
5682 ac_cv_rl_version='0.0'
5683 fi
5684 rm -rf conftest.dSYM
5685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5686 fi
5687
5688
5689 fi
5690
5691
5692 CFLAGS="$_save_CFLAGS"
5693 LDFLAGS="$_save_LDFLAGS"
5694 LIBS="$_save_LIBS"
5695
5696 RL_MAJOR=0
5697 RL_MINOR=0
5698
5699 # (
5700 case "$ac_cv_rl_version" in
5701 2*|3*|4*|5*|6*|7*|8*|9*)
5702 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5703 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5704 ;;
5705 esac
5706
5707 # (((
5708 case $RL_MAJOR in
5709 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5710 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5711 *) _RL_MAJOR=00 ;;
5712 esac
5713
5714 # (((
5715 case $RL_MINOR in
5716 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5717 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5718 *) _RL_MINOR=00 ;;
5719 esac
5720
5721 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5722
5723 # Readline versions greater than 4.2 have these defines in readline.h
5724
5725 if test $ac_cv_rl_version = '0.0' ; then
5726 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5727 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5728 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5729 # set these for use by the caller
5730 RL_PREFIX=$ac_cv_rl_prefix
5731 RL_LIBDIR=$ac_cv_rl_libdir
5732 RL_INCLUDEDIR=$ac_cv_rl_includedir
5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5734 $as_echo "$ac_cv_rl_version" >&6; }
5735 else
5736
5737
5738 cat >>confdefs.h <<_ACEOF
5739 #define RL_READLINE_VERSION $RL_VERSION
5740 _ACEOF
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define RL_VERSION_MAJOR $RL_MAJOR
5745 _ACEOF
5746
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define RL_VERSION_MINOR $RL_MINOR
5750 _ACEOF
5751
5752
5753
5754
5755
5756
5757 # set these for use by the caller
5758 RL_PREFIX=$ac_cv_rl_prefix
5759 RL_LIBDIR=$ac_cv_rl_libdir
5760 RL_INCLUDEDIR=$ac_cv_rl_includedir
5761
5762 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5763 $as_echo "$ac_cv_rl_version" >&6; }
5764
5765 fi
5766
5767
5768 case "$ac_cv_rl_version" in
5769 5*|6*|7*|8*|9*) ;;
5770 *) opt_with_installed_readline=no
5771 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5772 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5773 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5774 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5775 ;;
5776 esac
5777 fi
5778
5779 TILDE_LIB=-ltilde
5780 if test $opt_readline = yes; then
5781 cat >>confdefs.h <<\_ACEOF
5782 #define READLINE 1
5783 _ACEOF
5784
5785 if test "$opt_with_installed_readline" != "no" ; then
5786 case "$opt_with_installed_readline" in
5787 yes) RL_INCLUDE= ;;
5788 *) case "$RL_INCLUDEDIR" in
5789 /usr/include) ;;
5790 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5791 esac
5792 ;;
5793 esac
5794 READLINE_DEP=
5795 READLINE_LIB=-lreadline
5796 # section for OS versions that don't allow unresolved symbols
5797 # to be compiled into dynamic libraries.
5798 case "$host_os" in
5799 cygwin*) TILDE_LIB= ;;
5800 esac
5801 else
5802 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5803 READLINE_DEP='$(READLINE_LIBRARY)'
5804 # section for OS versions that ship an older/broken version of
5805 # readline as a standard dynamic library and don't allow a
5806 # static version specified as -llibname to override the
5807 # dynamic version
5808 case "${host_os}" in
5809 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5810 *) READLINE_LIB=-lreadline ;;
5811 esac
5812 fi
5813 else
5814 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5815 READLINE_LIB= READLINE_DEP=
5816 fi
5817 if test $opt_history = yes || test $opt_bang_history = yes; then
5818 if test $opt_history = yes; then
5819 cat >>confdefs.h <<\_ACEOF
5820 #define HISTORY 1
5821 _ACEOF
5822
5823 fi
5824 if test $opt_bang_history = yes; then
5825 cat >>confdefs.h <<\_ACEOF
5826 #define BANG_HISTORY 1
5827 _ACEOF
5828
5829 fi
5830 if test "$opt_with_installed_readline" != "no"; then
5831 HIST_LIBDIR=$RL_LIBDIR
5832 HISTORY_DEP=
5833 HISTORY_LIB=-lhistory
5834 case "$opt_with_installed_readline" in
5835 yes) RL_INCLUDE= ;;
5836 *) case "$RL_INCLUDEDIR" in
5837 /usr/include) ;;
5838 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5839 esac
5840 ;;
5841 esac
5842 else
5843 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5844 HISTORY_DEP='$(HISTORY_LIBRARY)'
5845 # section for OS versions that ship an older version of
5846 # readline as a standard dynamic library and don't allow a
5847 # static version specified as -llibname to override the
5848 # dynamic version
5849 case "${host_os}" in
5850 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5851 *) HISTORY_LIB=-lhistory ;;
5852 esac
5853 fi
5854 else
5855 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5856 HISTORY_LIB= HISTORY_DEP=
5857 fi
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 # Find a good install program. We prefer a C program (faster),
5870 # so one script is as good as another. But avoid the broken or
5871 # incompatible versions:
5872 # SysV /etc/install, /usr/sbin/install
5873 # SunOS /usr/etc/install
5874 # IRIX /sbin/install
5875 # AIX /bin/install
5876 # AmigaOS /C/install, which installs bootblocks on floppy discs
5877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5880 # OS/2's system install, which has a completely different semantic
5881 # ./install, which can be erroneously created by make from ./install.sh.
5882 # Reject install programs that cannot install multiple files.
5883 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5884 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5885 if test -z "$INSTALL"; then
5886 if test "${ac_cv_path_install+set}" = set; then
5887 $as_echo_n "(cached) " >&6
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 # Account for people who put trailing slashes in PATH elements.
5895 case $as_dir/ in
5896 ./ | .// | /cC/* | \
5897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5899 /usr/ucb/* ) ;;
5900 *)
5901 # OSF1 and SCO ODT 3.0 have their own names for install.
5902 # Don't use installbsd from OSF since it installs stuff as root
5903 # by default.
5904 for ac_prog in ginstall scoinst install; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5907 if test $ac_prog = install &&
5908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5909 # AIX install. It has an incompatible calling convention.
5910 :
5911 elif test $ac_prog = install &&
5912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5913 # program-specific install script used by HP pwplus--don't use.
5914 :
5915 else
5916 rm -rf conftest.one conftest.two conftest.dir
5917 echo one > conftest.one
5918 echo two > conftest.two
5919 mkdir conftest.dir
5920 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5921 test -s conftest.one && test -s conftest.two &&
5922 test -s conftest.dir/conftest.one &&
5923 test -s conftest.dir/conftest.two
5924 then
5925 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5926 break 3
5927 fi
5928 fi
5929 fi
5930 done
5931 done
5932 ;;
5933 esac
5934
5935 done
5936 IFS=$as_save_IFS
5937
5938 rm -rf conftest.one conftest.two conftest.dir
5939
5940 fi
5941 if test "${ac_cv_path_install+set}" = set; then
5942 INSTALL=$ac_cv_path_install
5943 else
5944 # As a last resort, use the slow shell script. Don't cache a
5945 # value for INSTALL within a source directory, because that will
5946 # break other packages using the cache if that directory is
5947 # removed, or if the value is a relative name.
5948 INSTALL=$ac_install_sh
5949 fi
5950 fi
5951 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5952 $as_echo "$INSTALL" >&6; }
5953
5954 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5955 # It thinks the first close brace ends the variable substitution.
5956 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5957
5958 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5959
5960 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5961
5962 # Extract the first word of "ar", so it can be a program name with args.
5963 set dummy ar; ac_word=$2
5964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if test "${ac_cv_prog_AR+set}" = set; then
5967 $as_echo_n "(cached) " >&6
5968 else
5969 if test -n "$AR"; then
5970 ac_cv_prog_AR="$AR" # Let the user override the test.
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 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_prog_AR=""
5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983 done
5984 done
5985 IFS=$as_save_IFS
5986
5987 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5988 fi
5989 fi
5990 AR=$ac_cv_prog_AR
5991 if test -n "$AR"; then
5992 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5993 $as_echo "$AR" >&6; }
5994 else
5995 { $as_echo "$as_me:$LINENO: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999
6000 test -n "$ARFLAGS" || ARFLAGS="cr"
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_prog_RANLIB+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$RANLIB"; then
6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023 done
6024 done
6025 IFS=$as_save_IFS
6026
6027 fi
6028 fi
6029 RANLIB=$ac_cv_prog_RANLIB
6030 if test -n "$RANLIB"; then
6031 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6032 $as_echo "$RANLIB" >&6; }
6033 else
6034 { $as_echo "$as_me:$LINENO: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037
6038
6039 fi
6040 if test -z "$ac_cv_prog_RANLIB"; then
6041 ac_ct_RANLIB=$RANLIB
6042 # Extract the first word of "ranlib", so it can be a program name with args.
6043 set dummy ranlib; ac_word=$2
6044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$ac_ct_RANLIB"; then
6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_RANLIB="ranlib"
6060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6070 if test -n "$ac_ct_RANLIB"; then
6071 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6072 $as_echo "$ac_ct_RANLIB" >&6; }
6073 else
6074 { $as_echo "$as_me:$LINENO: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078 if test "x$ac_ct_RANLIB" = x; then
6079 RANLIB=":"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 RANLIB=$ac_ct_RANLIB
6088 fi
6089 else
6090 RANLIB="$ac_cv_prog_RANLIB"
6091 fi
6092
6093 for ac_prog in 'bison -y' byacc
6094 do
6095 # Extract the first word of "$ac_prog", so it can be a program name with args.
6096 set dummy $ac_prog; ac_word=$2
6097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_YACC+set}" = set; then
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$YACC"; then
6103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_YACC="$ac_prog"
6113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 YACC=$ac_cv_prog_YACC
6123 if test -n "$YACC"; then
6124 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6125 $as_echo "$YACC" >&6; }
6126 else
6127 { $as_echo "$as_me:$LINENO: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130
6131
6132 test -n "$YACC" && break
6133 done
6134 test -n "$YACC" || YACC="yacc"
6135
6136 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6138 set x ${MAKE-make}
6139 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6141 $as_echo_n "(cached) " >&6
6142 else
6143 cat >conftest.make <<\_ACEOF
6144 SHELL = /bin/sh
6145 all:
6146 @echo '@@@%%%=$(MAKE)=@@@%%%'
6147 _ACEOF
6148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6150 *@@@%%%=?*=@@@%%%*)
6151 eval ac_cv_prog_make_${ac_make}_set=yes;;
6152 *)
6153 eval ac_cv_prog_make_${ac_make}_set=no;;
6154 esac
6155 rm -f conftest.make
6156 fi
6157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6158 { $as_echo "$as_me:$LINENO: result: yes" >&5
6159 $as_echo "yes" >&6; }
6160 SET_MAKE=
6161 else
6162 { $as_echo "$as_me:$LINENO: result: no" >&5
6163 $as_echo "no" >&6; }
6164 SET_MAKE="MAKE=${MAKE-make}"
6165 fi
6166
6167
6168 case "$host_os" in
6169 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6170 *) MAKE_SHELL=/bin/sh ;;
6171 esac
6172
6173
6174 if test x$SIZE = x; then
6175 if test x$ac_tool_prefix = x; then
6176 SIZE=size
6177 else
6178 SIZE=${ac_tool_prefix}size
6179 save_IFS=$IFS ; IFS=:
6180 size_found=0
6181 for dir in $PATH; do
6182 if test -x $dir/$SIZE ; then
6183 size_found=1
6184 break
6185 fi
6186 done
6187 if test $size_found -eq 0; then
6188 SIZE=:
6189 fi
6190 IFS=$save_IFS
6191 fi
6192 fi
6193
6194
6195 cat >>confdefs.h <<\_ACEOF
6196 #define _GNU_SOURCE 1
6197 _ACEOF
6198
6199
6200 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6201 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6202 if test "${ac_cv_c_const+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211
6212 int
6213 main ()
6214 {
6215 /* FIXME: Include the comments suggested by Paul. */
6216 #ifndef __cplusplus
6217 /* Ultrix mips cc rejects this. */
6218 typedef int charset[2];
6219 const charset cs;
6220 /* SunOS 4.1.1 cc rejects this. */
6221 char const *const *pcpcc;
6222 char **ppc;
6223 /* NEC SVR4.0.2 mips cc rejects this. */
6224 struct point {int x, y;};
6225 static struct point const zero = {0,0};
6226 /* AIX XL C 1.02.0.0 rejects this.
6227 It does not let you subtract one const X* pointer from another in
6228 an arm of an if-expression whose if-part is not a constant
6229 expression */
6230 const char *g = "string";
6231 pcpcc = &g + (g ? g-g : 0);
6232 /* HPUX 7.0 cc rejects these. */
6233 ++pcpcc;
6234 ppc = (char**) pcpcc;
6235 pcpcc = (char const *const *) ppc;
6236 { /* SCO 3.2v4 cc rejects this. */
6237 char *t;
6238 char const *s = 0 ? (char *) 0 : (char const *) 0;
6239
6240 *t++ = 0;
6241 if (s) return 0;
6242 }
6243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6244 int x[] = {25, 17};
6245 const int *foo = &x[0];
6246 ++foo;
6247 }
6248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6249 typedef const int *iptr;
6250 iptr p = 0;
6251 ++p;
6252 }
6253 { /* AIX XL C 1.02.0.0 rejects this saying
6254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6255 struct s { int j; const int *ap[3]; };
6256 struct s *b; b->j = 5;
6257 }
6258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6259 const int foo = 10;
6260 if (!foo) return 0;
6261 }
6262 return !cs[0] && !zero.x;
6263 #endif
6264
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6271 case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274 esac
6275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287 ac_cv_c_const=yes
6288 else
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292 ac_cv_c_const=no
6293 fi
6294
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 fi
6297 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6298 $as_echo "$ac_cv_c_const" >&6; }
6299 if test $ac_cv_c_const = no; then
6300
6301 cat >>confdefs.h <<\_ACEOF
6302 #define const /**/
6303 _ACEOF
6304
6305 fi
6306
6307 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6308 $as_echo_n "checking for inline... " >&6; }
6309 if test "${ac_cv_c_inline+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6311 else
6312 ac_cv_c_inline=no
6313 for ac_kw in inline __inline__ __inline; do
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 #ifndef __cplusplus
6321 typedef int foo_t;
6322 static $ac_kw foo_t static_foo () {return 0; }
6323 $ac_kw foo_t foo () {return 0; }
6324 #endif
6325
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_c_inline=$ac_kw
6346 else
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 test "$ac_cv_c_inline" != no && break
6355 done
6356
6357 fi
6358 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6359 $as_echo "$ac_cv_c_inline" >&6; }
6360
6361
6362 case $ac_cv_c_inline in
6363 inline | yes) ;;
6364 *)
6365 case $ac_cv_c_inline in
6366 no) ac_val=;;
6367 *) ac_val=$ac_cv_c_inline;;
6368 esac
6369 cat >>confdefs.h <<_ACEOF
6370 #ifndef __cplusplus
6371 #define inline $ac_val
6372 #endif
6373 _ACEOF
6374 ;;
6375 esac
6376
6377
6378 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6379 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6380 if test "${ac_cv_c_bigendian+set}" = set; then
6381 $as_echo_n "(cached) " >&6
6382 else
6383 ac_cv_c_bigendian=unknown
6384 # See if we're dealing with a universal compiler.
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 #ifndef __APPLE_CC__
6392 not a universal capable compiler
6393 #endif
6394 typedef int dummy;
6395
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6399 case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6404 $as_echo "$ac_try_echo") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6415
6416 # Check for potential -arch flags. It is not universal unless
6417 # there are some -arch flags. Note that *ppc* also matches
6418 # ppc64. This check is also rather less than ideal.
6419 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6420 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6421 esac
6422 else
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426
6427 fi
6428
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 if test $ac_cv_c_bigendian = unknown; then
6431 # See if sys/param.h defines the BYTE_ORDER macro.
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <sys/types.h>
6439 #include <sys/param.h>
6440
6441 int
6442 main ()
6443 {
6444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6446 && LITTLE_ENDIAN)
6447 bogus endian macros
6448 #endif
6449
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461 $as_echo "$ac_try_echo") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
6472 # It does; now see whether it defined to BIG_ENDIAN or not.
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/param.h>
6481
6482 int
6483 main ()
6484 {
6485 #if BYTE_ORDER != BIG_ENDIAN
6486 not big endian
6487 #endif
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6500 $as_echo "$ac_try_echo") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6511 ac_cv_c_bigendian=yes
6512 else
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_cv_c_bigendian=no
6517 fi
6518
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 else
6521 $as_echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524
6525 fi
6526
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 if test $ac_cv_c_bigendian = unknown; then
6530 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #include <limits.h>
6538
6539 int
6540 main ()
6541 {
6542 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6543 bogus endian macros
6544 #endif
6545
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (ac_try="$ac_compile"
6552 case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557 $as_echo "$ac_try_echo") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 # It does; now see whether it defined to _BIG_ENDIAN or not.
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <limits.h>
6576
6577 int
6578 main ()
6579 {
6580 #ifndef _BIG_ENDIAN
6581 not big endian
6582 #endif
6583
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (ac_try="$ac_compile"
6590 case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6595 $as_echo "$ac_try_echo") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.$ac_objext; then
6606 ac_cv_c_bigendian=yes
6607 else
6608 $as_echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ac_cv_c_bigendian=no
6612 fi
6613
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 else
6616 $as_echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
6620 fi
6621
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 fi
6624 if test $ac_cv_c_bigendian = unknown; then
6625 # Compile a test program.
6626 if test "$cross_compiling" = yes; then
6627 # Try to guess by grepping values from an object file.
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 short int ascii_mm[] =
6635 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6636 short int ascii_ii[] =
6637 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6638 int use_ascii (int i) {
6639 return ascii_mm[i] + ascii_ii[i];
6640 }
6641 short int ebcdic_ii[] =
6642 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6643 short int ebcdic_mm[] =
6644 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6645 int use_ebcdic (int i) {
6646 return ebcdic_mm[i] + ebcdic_ii[i];
6647 }
6648 extern int foo;
6649
6650 int
6651 main ()
6652 {
6653 return use_ascii (foo) == use_ebcdic (foo);
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (ac_try="$ac_compile"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6677 ac_cv_c_bigendian=yes
6678 fi
6679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6680 if test "$ac_cv_c_bigendian" = unknown; then
6681 ac_cv_c_bigendian=no
6682 else
6683 # finding both strings is unlikely to happen, but who knows?
6684 ac_cv_c_bigendian=unknown
6685 fi
6686 fi
6687 else
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691
6692 fi
6693
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6703 int
6704 main ()
6705 {
6706
6707 /* Are we little or big endian? From Harbison&Steele. */
6708 union
6709 {
6710 long int l;
6711 char c[sizeof (long int)];
6712 } u;
6713 u.l = 1;
6714 return u.c[sizeof (long int) - 1] == 1;
6715
6716 ;
6717 return 0;
6718 }
6719 _ACEOF
6720 rm -f conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6722 case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6725 esac
6726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6727 $as_echo "$ac_try_echo") >&5
6728 (eval "$ac_link") 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_try") 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_c_bigendian=no
6743 else
6744 $as_echo "$as_me: program exited with status $ac_status" >&5
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 ( exit $ac_status )
6749 ac_cv_c_bigendian=yes
6750 fi
6751 rm -rf conftest.dSYM
6752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6753 fi
6754
6755
6756 fi
6757 fi
6758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6759 $as_echo "$ac_cv_c_bigendian" >&6; }
6760 case $ac_cv_c_bigendian in #(
6761 yes)
6762 cat >>confdefs.h <<\_ACEOF
6763 #define WORDS_BIGENDIAN 1
6764 _ACEOF
6765 ;; #(
6766 no)
6767 ;; #(
6768 universal)
6769
6770 cat >>confdefs.h <<\_ACEOF
6771 #define AC_APPLE_UNIVERSAL_BUILD 1
6772 _ACEOF
6773
6774 ;; #(
6775 *)
6776 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6777 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6778 $as_echo "$as_me: error: unknown endianness
6779 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6780 { (exit 1); exit 1; }; } ;;
6781 esac
6782
6783 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6784 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6785 if test "${ac_cv_c_stringize+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #define x(y) #y
6795
6796 char *s = x(teststring);
6797 _ACEOF
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "#teststring" >/dev/null 2>&1; then
6800 ac_cv_c_stringize=no
6801 else
6802 ac_cv_c_stringize=yes
6803 fi
6804 rm -f conftest*
6805
6806 fi
6807 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6808 $as_echo "$ac_cv_c_stringize" >&6; }
6809 if test $ac_cv_c_stringize = yes; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_STRINGIZE 1
6813 _ACEOF
6814
6815 fi
6816
6817
6818
6819 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6820 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6821 if test "${ac_cv_type_long_double_wider+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6823 else
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <float.h>
6831 long double const a[] =
6832 {
6833 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6834 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6835 };
6836 long double
6837 f (long double x)
6838 {
6839 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6840 + (x ? f (x) : 'c'));
6841 }
6842
6843 int
6844 main ()
6845 {
6846 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6847 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6848 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6849 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6850 && (int) LDBL_EPSILON == 0
6851 )];
6852 test_array [0] = 0
6853
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (ac_try="$ac_compile"
6860 case "(($ac_try" in
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6863 esac
6864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6865 $as_echo "$ac_try_echo") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6876 ac_cv_type_long_double_wider=yes
6877 else
6878 $as_echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 ac_cv_type_long_double_wider=no
6882 fi
6883
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6887 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6888 if test $ac_cv_type_long_double_wider = yes; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_LONG_DOUBLE_WIDER 1
6892 _ACEOF
6893
6894 fi
6895
6896 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6897 if test $ac_cv_c_long_double = yes; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_LONG_DOUBLE 1
6901 _ACEOF
6902
6903 fi
6904
6905 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6906 $as_echo_n "checking for function prototypes... " >&6; }
6907 if test "$ac_cv_prog_cc_c89" != no; then
6908 { $as_echo "$as_me:$LINENO: result: yes" >&5
6909 $as_echo "yes" >&6; }
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define PROTOTYPES 1
6913 _ACEOF
6914
6915
6916 cat >>confdefs.h <<\_ACEOF
6917 #define __PROTOTYPES 1
6918 _ACEOF
6919
6920 else
6921 { $as_echo "$as_me:$LINENO: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925
6926 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6927 $as_echo_n "checking whether char is unsigned... " >&6; }
6928 if test "${ac_cv_c_char_unsigned+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6938 int
6939 main ()
6940 {
6941 static int test_array [1 - 2 * !(((char) -1) < 0)];
6942 test_array [0] = 0
6943
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_cv_c_char_unsigned=no
6967 else
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_cv_c_char_unsigned=yes
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 fi
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6977 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6978 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define __CHAR_UNSIGNED__ 1
6981 _ACEOF
6982
6983 fi
6984
6985 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6986 $as_echo_n "checking for working volatile... " >&6; }
6987 if test "${ac_cv_c_volatile+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6989 else
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996
6997 int
6998 main ()
6999 {
7000
7001 volatile int x;
7002 int * volatile y = (int *) 0;
7003 return !x && !y;
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 ac_cv_c_volatile=yes
7027 else
7028 $as_echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_cv_c_volatile=no
7032 fi
7033
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 fi
7036 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7037 $as_echo "$ac_cv_c_volatile" >&6; }
7038 if test $ac_cv_c_volatile = no; then
7039
7040 cat >>confdefs.h <<\_ACEOF
7041 #define volatile /**/
7042 _ACEOF
7043
7044 fi
7045
7046 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7047 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7048 if test "${ac_cv_c_restrict+set}" = set; then
7049 $as_echo_n "(cached) " >&6
7050 else
7051 ac_cv_c_restrict=no
7052 # The order here caters to the fact that C++ does not require restrict.
7053 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 typedef int * int_ptr;
7061 int foo (int_ptr $ac_kw ip) {
7062 return ip[0];
7063 }
7064 int
7065 main ()
7066 {
7067 int s[1];
7068 int * $ac_kw t = s;
7069 t[0] = 0;
7070 return foo(t)
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7082 $as_echo "$ac_try_echo") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 ac_cv_c_restrict=$ac_kw
7094 else
7095 $as_echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098
7099 fi
7100
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 test "$ac_cv_c_restrict" != no && break
7103 done
7104
7105 fi
7106 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7107 $as_echo "$ac_cv_c_restrict" >&6; }
7108
7109
7110 case $ac_cv_c_restrict in
7111 restrict) ;;
7112 no) cat >>confdefs.h <<\_ACEOF
7113 #define restrict /**/
7114 _ACEOF
7115 ;;
7116 *) cat >>confdefs.h <<_ACEOF
7117 #define restrict $ac_cv_c_restrict
7118 _ACEOF
7119 ;;
7120 esac
7121
7122
7123
7124 MKINSTALLDIRS=
7125 if test -n "$ac_aux_dir"; then
7126 case "$ac_aux_dir" in
7127 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7128 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7129 esac
7130 fi
7131 if test -z "$MKINSTALLDIRS"; then
7132 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7133 fi
7134
7135
7136
7137 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7138 $as_echo_n "checking whether NLS is requested... " >&6; }
7139 # Check whether --enable-nls was given.
7140 if test "${enable_nls+set}" = set; then
7141 enableval=$enable_nls; USE_NLS=$enableval
7142 else
7143 USE_NLS=yes
7144 fi
7145
7146 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7147 $as_echo "$USE_NLS" >&6; }
7148
7149
7150
7151
7152
7153
7154 # Prepare PATH_SEPARATOR.
7155 # The user is always right.
7156 if test "${PATH_SEPARATOR+set}" != set; then
7157 echo "#! /bin/sh" >conf$$.sh
7158 echo "exit 0" >>conf$$.sh
7159 chmod +x conf$$.sh
7160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7161 PATH_SEPARATOR=';'
7162 else
7163 PATH_SEPARATOR=:
7164 fi
7165 rm -f conf$$.sh
7166 fi
7167
7168 # Find out how to test for executable files. Don't use a zero-byte file,
7169 # as systems may use methods other than mode bits to determine executability.
7170 cat >conf$$.file <<_ASEOF
7171 #! /bin/sh
7172 exit 0
7173 _ASEOF
7174 chmod +x conf$$.file
7175 if test -x conf$$.file >/dev/null 2>&1; then
7176 ac_executable_p="test -x"
7177 else
7178 ac_executable_p="test -f"
7179 fi
7180 rm -f conf$$.file
7181
7182 # Extract the first word of "msgfmt", so it can be a program name with args.
7183 set dummy msgfmt; ac_word=$2
7184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if test "${ac_cv_path_MSGFMT+set}" = set; then
7187 $as_echo_n "(cached) " >&6
7188 else
7189 case "$MSGFMT" in
7190 [\\/]* | ?:[\\/]*)
7191 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7192 ;;
7193 *)
7194 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7195 for ac_dir in $PATH; do
7196 IFS="$ac_save_IFS"
7197 test -z "$ac_dir" && ac_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7200 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7201 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7202 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7203 break 2
7204 fi
7205 fi
7206 done
7207 done
7208 IFS="$ac_save_IFS"
7209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7210 ;;
7211 esac
7212 fi
7213 MSGFMT="$ac_cv_path_MSGFMT"
7214 if test "$MSGFMT" != ":"; then
7215 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7216 $as_echo "$MSGFMT" >&6; }
7217 else
7218 { $as_echo "$as_me:$LINENO: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7223 set dummy gmsgfmt; ac_word=$2
7224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7228 else
7229 case $GMSGFMT in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7250 ;;
7251 esac
7252 fi
7253 GMSGFMT=$ac_cv_path_GMSGFMT
7254 if test -n "$GMSGFMT"; then
7255 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7256 $as_echo "$GMSGFMT" >&6; }
7257 else
7258 { $as_echo "$as_me:$LINENO: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263
7264
7265 # Prepare PATH_SEPARATOR.
7266 # The user is always right.
7267 if test "${PATH_SEPARATOR+set}" != set; then
7268 echo "#! /bin/sh" >conf$$.sh
7269 echo "exit 0" >>conf$$.sh
7270 chmod +x conf$$.sh
7271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7272 PATH_SEPARATOR=';'
7273 else
7274 PATH_SEPARATOR=:
7275 fi
7276 rm -f conf$$.sh
7277 fi
7278
7279 # Find out how to test for executable files. Don't use a zero-byte file,
7280 # as systems may use methods other than mode bits to determine executability.
7281 cat >conf$$.file <<_ASEOF
7282 #! /bin/sh
7283 exit 0
7284 _ASEOF
7285 chmod +x conf$$.file
7286 if test -x conf$$.file >/dev/null 2>&1; then
7287 ac_executable_p="test -x"
7288 else
7289 ac_executable_p="test -f"
7290 fi
7291 rm -f conf$$.file
7292
7293 # Extract the first word of "xgettext", so it can be a program name with args.
7294 set dummy xgettext; ac_word=$2
7295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7298 $as_echo_n "(cached) " >&6
7299 else
7300 case "$XGETTEXT" in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7306 for ac_dir in $PATH; do
7307 IFS="$ac_save_IFS"
7308 test -z "$ac_dir" && ac_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7312 (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
7313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7314 break 2
7315 fi
7316 fi
7317 done
7318 done
7319 IFS="$ac_save_IFS"
7320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7321 ;;
7322 esac
7323 fi
7324 XGETTEXT="$ac_cv_path_XGETTEXT"
7325 if test "$XGETTEXT" != ":"; then
7326 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7327 $as_echo "$XGETTEXT" >&6; }
7328 else
7329 { $as_echo "$as_me:$LINENO: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333 rm -f messages.po
7334
7335
7336 # Prepare PATH_SEPARATOR.
7337 # The user is always right.
7338 if test "${PATH_SEPARATOR+set}" != set; then
7339 echo "#! /bin/sh" >conf$$.sh
7340 echo "exit 0" >>conf$$.sh
7341 chmod +x conf$$.sh
7342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7343 PATH_SEPARATOR=';'
7344 else
7345 PATH_SEPARATOR=:
7346 fi
7347 rm -f conf$$.sh
7348 fi
7349
7350 # Find out how to test for executable files. Don't use a zero-byte file,
7351 # as systems may use methods other than mode bits to determine executability.
7352 cat >conf$$.file <<_ASEOF
7353 #! /bin/sh
7354 exit 0
7355 _ASEOF
7356 chmod +x conf$$.file
7357 if test -x conf$$.file >/dev/null 2>&1; then
7358 ac_executable_p="test -x"
7359 else
7360 ac_executable_p="test -f"
7361 fi
7362 rm -f conf$$.file
7363
7364 # Extract the first word of "msgmerge", so it can be a program name with args.
7365 set dummy msgmerge; ac_word=$2
7366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370 else
7371 case "$MSGMERGE" in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7374 ;;
7375 *)
7376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7377 for ac_dir in $PATH; do
7378 IFS="$ac_save_IFS"
7379 test -z "$ac_dir" && ac_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7384 break 2
7385 fi
7386 fi
7387 done
7388 done
7389 IFS="$ac_save_IFS"
7390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7391 ;;
7392 esac
7393 fi
7394 MSGMERGE="$ac_cv_path_MSGMERGE"
7395 if test "$MSGMERGE" != ":"; then
7396 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7397 $as_echo "$MSGMERGE" >&6; }
7398 else
7399 { $as_echo "$as_me:$LINENO: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403
7404 if test "$GMSGFMT" != ":"; then
7405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7407 : ;
7408 else
7409 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7410 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7411 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7412 GMSGFMT=":"
7413 fi
7414 fi
7415
7416 if test "$XGETTEXT" != ":"; then
7417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7418 (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
7419 : ;
7420 else
7421 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7422 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7423 XGETTEXT=":"
7424 fi
7425 rm -f messages.po
7426 fi
7427
7428 ac_config_commands="$ac_config_commands default-1"
7429
7430
7431 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7432 $as_echo_n "checking for off_t... " >&6; }
7433 if test "${ac_cv_type_off_t+set}" = set; then
7434 $as_echo_n "(cached) " >&6
7435 else
7436 ac_cv_type_off_t=no
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 int
7445 main ()
7446 {
7447 if (sizeof (off_t))
7448 return 0;
7449 ;
7450 return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7455 case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458 esac
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7478 int
7479 main ()
7480 {
7481 if (sizeof ((off_t)))
7482 return 0;
7483 ;
7484 return 0;
7485 }
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 :
7506 else
7507 $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 ac_cv_type_off_t=yes
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 else
7515 $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518
7519 fi
7520
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 fi
7523 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7524 $as_echo "$ac_cv_type_off_t" >&6; }
7525 if test "x$ac_cv_type_off_t" = x""yes; then
7526 :
7527 else
7528
7529 cat >>confdefs.h <<_ACEOF
7530 #define off_t long int
7531 _ACEOF
7532
7533 fi
7534
7535 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7536 $as_echo_n "checking for size_t... " >&6; }
7537 if test "${ac_cv_type_size_t+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_cv_type_size_t=no
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7548 int
7549 main ()
7550 {
7551 if (sizeof (size_t))
7552 return 0;
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 int
7583 main ()
7584 {
7585 if (sizeof ((size_t)))
7586 return 0;
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7598 $as_echo "$ac_try_echo") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 :
7610 else
7611 $as_echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_cv_type_size_t=yes
7615 fi
7616
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 else
7619 $as_echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622
7623 fi
7624
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7628 $as_echo "$ac_cv_type_size_t" >&6; }
7629 if test "x$ac_cv_type_size_t" = x""yes; then
7630 :
7631 else
7632
7633 cat >>confdefs.h <<_ACEOF
7634 #define size_t unsigned int
7635 _ACEOF
7636
7637 fi
7638
7639 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7640 # for constant arguments. Useless!
7641 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7642 $as_echo_n "checking for working alloca.h... " >&6; }
7643 if test "${ac_cv_working_alloca_h+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7645 else
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <alloca.h>
7653 int
7654 main ()
7655 {
7656 char *p = (char *) alloca (2 * sizeof (int));
7657 if (p) return 0;
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_link") 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest$ac_exeext && {
7680 test "$cross_compiling" = yes ||
7681 $as_test_x conftest$ac_exeext
7682 }; then
7683 ac_cv_working_alloca_h=yes
7684 else
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 ac_cv_working_alloca_h=no
7689 fi
7690
7691 rm -rf conftest.dSYM
7692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7693 conftest$ac_exeext conftest.$ac_ext
7694 fi
7695 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7696 $as_echo "$ac_cv_working_alloca_h" >&6; }
7697 if test $ac_cv_working_alloca_h = yes; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_ALLOCA_H 1
7701 _ACEOF
7702
7703 fi
7704
7705 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7706 $as_echo_n "checking for alloca... " >&6; }
7707 if test "${ac_cv_func_alloca_works+set}" = set; then
7708 $as_echo_n "(cached) " >&6
7709 else
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 #ifdef __GNUC__
7717 # define alloca __builtin_alloca
7718 #else
7719 # ifdef _MSC_VER
7720 # include <malloc.h>
7721 # define alloca _alloca
7722 # else
7723 # ifdef HAVE_ALLOCA_H
7724 # include <alloca.h>
7725 # else
7726 # ifdef _AIX
7727 #pragma alloca
7728 # else
7729 # ifndef alloca /* predefined by HP cc +Olibcalls */
7730 char *alloca ();
7731 # endif
7732 # endif
7733 # endif
7734 # endif
7735 #endif
7736
7737 int
7738 main ()
7739 {
7740 char *p = (char *) alloca (1);
7741 if (p) return 0;
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753 $as_echo "$ac_try_echo") >&5
7754 (eval "$ac_link") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest$ac_exeext && {
7764 test "$cross_compiling" = yes ||
7765 $as_test_x conftest$ac_exeext
7766 }; then
7767 ac_cv_func_alloca_works=yes
7768 else
7769 $as_echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7771
7772 ac_cv_func_alloca_works=no
7773 fi
7774
7775 rm -rf conftest.dSYM
7776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7777 conftest$ac_exeext conftest.$ac_ext
7778 fi
7779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7780 $as_echo "$ac_cv_func_alloca_works" >&6; }
7781
7782 if test $ac_cv_func_alloca_works = yes; then
7783
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_ALLOCA 1
7786 _ACEOF
7787
7788 else
7789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7790 # that cause trouble. Some versions do not even contain alloca or
7791 # contain a buggy version. If you still want to use their alloca,
7792 # use ar to extract alloca.o from them instead of compiling alloca.c.
7793
7794 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7795
7796 cat >>confdefs.h <<\_ACEOF
7797 #define C_ALLOCA 1
7798 _ACEOF
7799
7800
7801 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7802 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7803 if test "${ac_cv_os_cray+set}" = set; then
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #if defined CRAY && ! defined CRAY2
7813 webecray
7814 #else
7815 wenotbecray
7816 #endif
7817
7818 _ACEOF
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820 $EGREP "webecray" >/dev/null 2>&1; then
7821 ac_cv_os_cray=yes
7822 else
7823 ac_cv_os_cray=no
7824 fi
7825 rm -f conftest*
7826
7827 fi
7828 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7829 $as_echo "$ac_cv_os_cray" >&6; }
7830 if test $ac_cv_os_cray = yes; then
7831 for ac_func in _getb67 GETB67 getb67; do
7832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7833 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7834 $as_echo_n "checking for $ac_func... " >&6; }
7835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7836 $as_echo_n "(cached) " >&6
7837 else
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7846 #define $ac_func innocuous_$ac_func
7847
7848 /* System header to define __stub macros and hopefully few prototypes,
7849 which can conflict with char $ac_func (); below.
7850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7851 <limits.h> exists even on freestanding compilers. */
7852
7853 #ifdef __STDC__
7854 # include <limits.h>
7855 #else
7856 # include <assert.h>
7857 #endif
7858
7859 #undef $ac_func
7860
7861 /* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7864 #ifdef __cplusplus
7865 extern "C"
7866 #endif
7867 char $ac_func ();
7868 /* The GNU C library defines this for functions which it implements
7869 to always fail with ENOSYS. Some functions are actually named
7870 something starting with __ and the normal name is an alias. */
7871 #if defined __stub_$ac_func || defined __stub___$ac_func
7872 choke me
7873 #endif
7874
7875 int
7876 main ()
7877 {
7878 return $ac_func ();
7879 ;
7880 return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_link") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext && {
7901 test "$cross_compiling" = yes ||
7902 $as_test_x conftest$ac_exeext
7903 }; then
7904 eval "$as_ac_var=yes"
7905 else
7906 $as_echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 eval "$as_ac_var=no"
7910 fi
7911
7912 rm -rf conftest.dSYM
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7915 fi
7916 ac_res=`eval 'as_val=${'$as_ac_var'}
7917 $as_echo "$as_val"'`
7918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7919 $as_echo "$ac_res" >&6; }
7920 as_val=`eval 'as_val=${'$as_ac_var'}
7921 $as_echo "$as_val"'`
7922 if test "x$as_val" = x""yes; then
7923
7924 cat >>confdefs.h <<_ACEOF
7925 #define CRAY_STACKSEG_END $ac_func
7926 _ACEOF
7927
7928 break
7929 fi
7930
7931 done
7932 fi
7933
7934 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7935 $as_echo_n "checking stack direction for C alloca... " >&6; }
7936 if test "${ac_cv_c_stack_direction+set}" = set; then
7937 $as_echo_n "(cached) " >&6
7938 else
7939 if test "$cross_compiling" = yes; then
7940 ac_cv_c_stack_direction=0
7941 else
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 $ac_includes_default
7949 int
7950 find_stack_direction ()
7951 {
7952 static char *addr = 0;
7953 auto char dummy;
7954 if (addr == 0)
7955 {
7956 addr = &dummy;
7957 return find_stack_direction ();
7958 }
7959 else
7960 return (&dummy > addr) ? 1 : -1;
7961 }
7962
7963 int
7964 main ()
7965 {
7966 return find_stack_direction () < 0;
7967 }
7968 _ACEOF
7969 rm -f conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7976 $as_echo "$ac_try_echo") >&5
7977 (eval "$ac_link") 2>&5
7978 ac_status=$?
7979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984 esac
7985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7986 $as_echo "$ac_try_echo") >&5
7987 (eval "$ac_try") 2>&5
7988 ac_status=$?
7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_c_stack_direction=1
7992 else
7993 $as_echo "$as_me: program exited with status $ac_status" >&5
7994 $as_echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 ( exit $ac_status )
7998 ac_cv_c_stack_direction=-1
7999 fi
8000 rm -rf conftest.dSYM
8001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8002 fi
8003
8004
8005 fi
8006 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8007 $as_echo "$ac_cv_c_stack_direction" >&6; }
8008
8009 cat >>confdefs.h <<_ACEOF
8010 #define STACK_DIRECTION $ac_cv_c_stack_direction
8011 _ACEOF
8012
8013
8014 fi
8015
8016
8017
8018 for ac_header in stdlib.h unistd.h
8019 do
8020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8023 $as_echo_n "checking for $ac_header... " >&6; }
8024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8025 $as_echo_n "(cached) " >&6
8026 fi
8027 ac_res=`eval 'as_val=${'$as_ac_Header'}
8028 $as_echo "$as_val"'`
8029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8030 $as_echo "$ac_res" >&6; }
8031 else
8032 # Is the header compilable?
8033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8034 $as_echo_n "checking $ac_header usability... " >&6; }
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 #include <$ac_header>
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8051 $as_echo "$ac_try_echo") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.$ac_objext; then
8062 ac_header_compiler=yes
8063 else
8064 $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ac_header_compiler=no
8068 fi
8069
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072 $as_echo "$ac_header_compiler" >&6; }
8073
8074 # Is the header present?
8075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8076 $as_echo_n "checking $ac_header presence... " >&6; }
8077 cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h. */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 #include <$ac_header>
8084 _ACEOF
8085 if { (ac_try="$ac_cpp conftest.$ac_ext"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8091 $as_echo "$ac_try_echo") >&5
8092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } >/dev/null && {
8099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 }; then
8102 ac_header_preproc=yes
8103 else
8104 $as_echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107 ac_header_preproc=no
8108 fi
8109
8110 rm -f conftest.err conftest.$ac_ext
8111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8112 $as_echo "$ac_header_preproc" >&6; }
8113
8114 # So? What about this header?
8115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8116 yes:no: )
8117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8121 ac_header_preproc=yes
8122 ;;
8123 no:yes:* )
8124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8127 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8131 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8136 ( cat <<\_ASBOX
8137 ## ------------------------------- ##
8138 ## Report this to bug-bash@gnu.org ##
8139 ## ------------------------------- ##
8140 _ASBOX
8141 ) | sed "s/^/$as_me: WARNING: /" >&2
8142 ;;
8143 esac
8144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8145 $as_echo_n "checking for $ac_header... " >&6; }
8146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8147 $as_echo_n "(cached) " >&6
8148 else
8149 eval "$as_ac_Header=\$ac_header_preproc"
8150 fi
8151 ac_res=`eval 'as_val=${'$as_ac_Header'}
8152 $as_echo "$as_val"'`
8153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8154 $as_echo "$ac_res" >&6; }
8155
8156 fi
8157 as_val=`eval 'as_val=${'$as_ac_Header'}
8158 $as_echo "$as_val"'`
8159 if test "x$as_val" = x""yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165
8166 done
8167
8168
8169 for ac_func in getpagesize
8170 do
8171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8173 $as_echo_n "checking for $ac_func... " >&6; }
8174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8185 #define $ac_func innocuous_$ac_func
8186
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char $ac_func (); below.
8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 <limits.h> exists even on freestanding compilers. */
8191
8192 #ifdef __STDC__
8193 # include <limits.h>
8194 #else
8195 # include <assert.h>
8196 #endif
8197
8198 #undef $ac_func
8199
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 char $ac_func ();
8207 /* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210 #if defined __stub_$ac_func || defined __stub___$ac_func
8211 choke me
8212 #endif
8213
8214 int
8215 main ()
8216 {
8217 return $ac_func ();
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_link") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest$ac_exeext && {
8240 test "$cross_compiling" = yes ||
8241 $as_test_x conftest$ac_exeext
8242 }; then
8243 eval "$as_ac_var=yes"
8244 else
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 eval "$as_ac_var=no"
8249 fi
8250
8251 rm -rf conftest.dSYM
8252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8253 conftest$ac_exeext conftest.$ac_ext
8254 fi
8255 ac_res=`eval 'as_val=${'$as_ac_var'}
8256 $as_echo "$as_val"'`
8257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8258 $as_echo "$ac_res" >&6; }
8259 as_val=`eval 'as_val=${'$as_ac_var'}
8260 $as_echo "$as_val"'`
8261 if test "x$as_val" = x""yes; then
8262 cat >>confdefs.h <<_ACEOF
8263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8264 _ACEOF
8265
8266 fi
8267 done
8268
8269 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8270 $as_echo_n "checking for working mmap... " >&6; }
8271 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test "$cross_compiling" = yes; then
8275 ac_cv_func_mmap_fixed_mapped=no
8276 else
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 /* malloc might have been renamed as rpl_malloc. */
8285 #undef malloc
8286
8287 /* Thanks to Mike Haertel and Jim Avera for this test.
8288 Here is a matrix of mmap possibilities:
8289 mmap private not fixed
8290 mmap private fixed at somewhere currently unmapped
8291 mmap private fixed at somewhere already mapped
8292 mmap shared not fixed
8293 mmap shared fixed at somewhere currently unmapped
8294 mmap shared fixed at somewhere already mapped
8295 For private mappings, we should verify that changes cannot be read()
8296 back from the file, nor mmap's back from the file at a different
8297 address. (There have been systems where private was not correctly
8298 implemented like the infamous i386 svr4.0, and systems where the
8299 VM page cache was not coherent with the file system buffer cache
8300 like early versions of FreeBSD and possibly contemporary NetBSD.)
8301 For shared mappings, we should conversely verify that changes get
8302 propagated back to all the places they're supposed to be.
8303
8304 Grep wants private fixed already mapped.
8305 The main things grep needs to know about mmap are:
8306 * does it exist and is it safe to write into the mmap'd area
8307 * how to use it (BSD variants) */
8308
8309 #include <fcntl.h>
8310 #include <sys/mman.h>
8311
8312 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8313 char *malloc ();
8314 #endif
8315
8316 /* This mess was copied from the GNU getpagesize.h. */
8317 #ifndef HAVE_GETPAGESIZE
8318 /* Assume that all systems that can run configure have sys/param.h. */
8319 # ifndef HAVE_SYS_PARAM_H
8320 # define HAVE_SYS_PARAM_H 1
8321 # endif
8322
8323 # ifdef _SC_PAGESIZE
8324 # define getpagesize() sysconf(_SC_PAGESIZE)
8325 # else /* no _SC_PAGESIZE */
8326 # ifdef HAVE_SYS_PARAM_H
8327 # include <sys/param.h>
8328 # ifdef EXEC_PAGESIZE
8329 # define getpagesize() EXEC_PAGESIZE
8330 # else /* no EXEC_PAGESIZE */
8331 # ifdef NBPG
8332 # define getpagesize() NBPG * CLSIZE
8333 # ifndef CLSIZE
8334 # define CLSIZE 1
8335 # endif /* no CLSIZE */
8336 # else /* no NBPG */
8337 # ifdef NBPC
8338 # define getpagesize() NBPC
8339 # else /* no NBPC */
8340 # ifdef PAGESIZE
8341 # define getpagesize() PAGESIZE
8342 # endif /* PAGESIZE */
8343 # endif /* no NBPC */
8344 # endif /* no NBPG */
8345 # endif /* no EXEC_PAGESIZE */
8346 # else /* no HAVE_SYS_PARAM_H */
8347 # define getpagesize() 8192 /* punt totally */
8348 # endif /* no HAVE_SYS_PARAM_H */
8349 # endif /* no _SC_PAGESIZE */
8350
8351 #endif /* no HAVE_GETPAGESIZE */
8352
8353 int
8354 main ()
8355 {
8356 char *data, *data2, *data3;
8357 int i, pagesize;
8358 int fd;
8359
8360 pagesize = getpagesize ();
8361
8362 /* First, make a file with some known garbage in it. */
8363 data = (char *) malloc (pagesize);
8364 if (!data)
8365 return 1;
8366 for (i = 0; i < pagesize; ++i)
8367 *(data + i) = rand ();
8368 umask (0);
8369 fd = creat ("conftest.mmap", 0600);
8370 if (fd < 0)
8371 return 1;
8372 if (write (fd, data, pagesize) != pagesize)
8373 return 1;
8374 close (fd);
8375
8376 /* Next, try to mmap the file at a fixed address which already has
8377 something else allocated at it. If we can, also make sure that
8378 we see the same garbage. */
8379 fd = open ("conftest.mmap", O_RDWR);
8380 if (fd < 0)
8381 return 1;
8382 data2 = (char *) malloc (2 * pagesize);
8383 if (!data2)
8384 return 1;
8385 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8386 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8387 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8388 return 1;
8389 for (i = 0; i < pagesize; ++i)
8390 if (*(data + i) != *(data2 + i))
8391 return 1;
8392
8393 /* Finally, make sure that changes to the mapped area do not
8394 percolate back to the file as seen by read(). (This is a bug on
8395 some variants of i386 svr4.0.) */
8396 for (i = 0; i < pagesize; ++i)
8397 *(data2 + i) = *(data2 + i) + 1;
8398 data3 = (char *) malloc (pagesize);
8399 if (!data3)
8400 return 1;
8401 if (read (fd, data3, pagesize) != pagesize)
8402 return 1;
8403 for (i = 0; i < pagesize; ++i)
8404 if (*(data + i) != *(data3 + i))
8405 return 1;
8406 close (fd);
8407 return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest$ac_exeext
8411 if { (ac_try="$ac_link"
8412 case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415 esac
8416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8417 $as_echo "$ac_try_echo") >&5
8418 (eval "$ac_link") 2>&5
8419 ac_status=$?
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_try") 2>&5
8429 ac_status=$?
8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_func_mmap_fixed_mapped=yes
8433 else
8434 $as_echo "$as_me: program exited with status $ac_status" >&5
8435 $as_echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 ( exit $ac_status )
8439 ac_cv_func_mmap_fixed_mapped=no
8440 fi
8441 rm -rf conftest.dSYM
8442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8443 fi
8444
8445
8446 fi
8447 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8448 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8449 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8450
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_MMAP 1
8453 _ACEOF
8454
8455 fi
8456 rm -f conftest.mmap
8457
8458
8459 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8460 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8461 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8462 $as_echo_n "(cached) " >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470
8471 #include <features.h>
8472 #ifdef __GNU_LIBRARY__
8473 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8474 Lucky GNU user
8475 #endif
8476 #endif
8477
8478 _ACEOF
8479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8480 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8481 ac_cv_gnu_library_2_1=yes
8482 else
8483 ac_cv_gnu_library_2_1=no
8484 fi
8485 rm -f conftest*
8486
8487
8488
8489 fi
8490 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8491 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8492
8493 GLIBC21="$ac_cv_gnu_library_2_1"
8494
8495
8496
8497
8498 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8499 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8500 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8501 $as_echo_n "(cached) " >&6
8502 else
8503
8504 if test "$cross_compiling" = yes; then
8505
8506 # Guess based on the CPU.
8507 case "$host_cpu" in
8508 alpha* | i3456786 | m68k | s390*)
8509 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8510 *)
8511 gt_cv_int_divbyzero_sigfpe="guessing no";;
8512 esac
8513
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521
8522 #include <stdlib.h>
8523 #include <signal.h>
8524
8525 static void
8526 #ifdef __cplusplus
8527 sigfpe_handler (int sig)
8528 #else
8529 sigfpe_handler (sig) int sig;
8530 #endif
8531 {
8532 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8533 exit (sig != SIGFPE);
8534 }
8535
8536 int x = 1;
8537 int y = 0;
8538 int z;
8539 int nan;
8540
8541 int main ()
8542 {
8543 signal (SIGFPE, sigfpe_handler);
8544 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8545 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8546 signal (SIGTRAP, sigfpe_handler);
8547 #endif
8548 /* Linux/SPARC yields signal SIGILL. */
8549 #if defined (__sparc__) && defined (__linux__)
8550 signal (SIGILL, sigfpe_handler);
8551 #endif
8552
8553 z = x / y;
8554 nan = y / y;
8555 exit (1);
8556 }
8557
8558 _ACEOF
8559 rm -f conftest$ac_exeext
8560 if { (ac_try="$ac_link"
8561 case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8566 $as_echo "$ac_try_echo") >&5
8567 (eval "$ac_link") 2>&5
8568 ac_status=$?
8569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574 esac
8575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8576 $as_echo "$ac_try_echo") >&5
8577 (eval "$ac_try") 2>&5
8578 ac_status=$?
8579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 gt_cv_int_divbyzero_sigfpe=yes
8582 else
8583 $as_echo "$as_me: program exited with status $ac_status" >&5
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ( exit $ac_status )
8588 gt_cv_int_divbyzero_sigfpe=no
8589 fi
8590 rm -rf conftest.dSYM
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8592 fi
8593
8594
8595
8596 fi
8597 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8598 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8599 case "$gt_cv_int_divbyzero_sigfpe" in
8600 *yes) value=1;;
8601 *) value=0;;
8602 esac
8603
8604 cat >>confdefs.h <<_ACEOF
8605 #define INTDIV0_RAISES_SIGFPE $value
8606 _ACEOF
8607
8608
8609
8610 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8611 $as_echo_n "checking for inttypes.h... " >&6; }
8612 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 #include <sys/types.h>
8622 #include <inttypes.h>
8623 int
8624 main ()
8625 {
8626 uintmax_t i = (uintmax_t) -1;
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 jm_ac_cv_header_inttypes_h=yes
8650 else
8651 $as_echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 jm_ac_cv_header_inttypes_h=no
8655 fi
8656
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8660 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8661 if test $jm_ac_cv_header_inttypes_h = yes; then
8662
8663 cat >>confdefs.h <<_ACEOF
8664 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8665 _ACEOF
8666
8667 fi
8668
8669
8670 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8671 $as_echo_n "checking for stdint.h... " >&6; }
8672 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8673 $as_echo_n "(cached) " >&6
8674 else
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 #include <sys/types.h>
8682 #include <stdint.h>
8683 int
8684 main ()
8685 {
8686 uintmax_t i = (uintmax_t) -1;
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8693 case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 jm_ac_cv_header_stdint_h=yes
8710 else
8711 $as_echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 jm_ac_cv_header_stdint_h=no
8715 fi
8716
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 fi
8719 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8720 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8721 if test $jm_ac_cv_header_stdint_h = yes; then
8722
8723 cat >>confdefs.h <<_ACEOF
8724 #define HAVE_STDINT_H_WITH_UINTMAX 1
8725 _ACEOF
8726
8727 fi
8728
8729
8730 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8731 $as_echo_n "checking for unsigned long long... " >&6; }
8732 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8733 $as_echo_n "(cached) " >&6
8734 else
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 unsigned long long ull = 1; int i = 63;
8742 int
8743 main ()
8744 {
8745 unsigned long long ullmax = (unsigned long long) -1;
8746 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_link") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest$ac_exeext && {
8769 test "$cross_compiling" = yes ||
8770 $as_test_x conftest$ac_exeext
8771 }; then
8772 ac_cv_type_unsigned_long_long=yes
8773 else
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 ac_cv_type_unsigned_long_long=no
8778 fi
8779
8780 rm -rf conftest.dSYM
8781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8782 conftest$ac_exeext conftest.$ac_ext
8783 fi
8784 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8785 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8786 if test $ac_cv_type_unsigned_long_long = yes; then
8787
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_UNSIGNED_LONG_LONG 1
8790 _ACEOF
8791
8792 fi
8793
8794
8795
8796
8797 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8798
8799 test $ac_cv_type_unsigned_long_long = yes \
8800 && ac_type='unsigned long long' \
8801 || ac_type='unsigned long'
8802
8803 cat >>confdefs.h <<_ACEOF
8804 #define uintmax_t $ac_type
8805 _ACEOF
8806
8807 else
8808
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_UINTMAX_T 1
8811 _ACEOF
8812
8813 fi
8814
8815
8816 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8817 $as_echo_n "checking for inttypes.h... " >&6; }
8818 if test "${gt_cv_header_inttypes_h+set}" = set; then
8819 $as_echo_n "(cached) " >&6
8820 else
8821
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 #include <sys/types.h>
8829 #include <inttypes.h>
8830 int
8831 main ()
8832 {
8833
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 gt_cv_header_inttypes_h=yes
8857 else
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 gt_cv_header_inttypes_h=no
8862 fi
8863
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865
8866 fi
8867 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8868 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8869 if test $gt_cv_header_inttypes_h = yes; then
8870
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_INTTYPES_H 1
8873 _ACEOF
8874
8875 fi
8876
8877
8878
8879 if test $gt_cv_header_inttypes_h = yes; then
8880 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8881 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8882 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8883 $as_echo_n "(cached) " >&6
8884 else
8885
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <inttypes.h>
8893 #ifdef PRId32
8894 char *p = PRId32;
8895 #endif
8896
8897 int
8898 main ()
8899 {
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8907 case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8910 esac
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913 (eval "$ac_compile") 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest.$ac_objext; then
8923 gt_cv_inttypes_pri_broken=no
8924 else
8925 $as_echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928 gt_cv_inttypes_pri_broken=yes
8929 fi
8930
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932
8933 fi
8934 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8935 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8936 fi
8937 if test "$gt_cv_inttypes_pri_broken" = yes; then
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define PRI_MACROS_BROKEN 1
8941 _ACEOF
8942
8943 fi
8944
8945
8946 if test "X$prefix" = "XNONE"; then
8947 acl_final_prefix="$ac_default_prefix"
8948 else
8949 acl_final_prefix="$prefix"
8950 fi
8951 if test "X$exec_prefix" = "XNONE"; then
8952 acl_final_exec_prefix='${prefix}'
8953 else
8954 acl_final_exec_prefix="$exec_prefix"
8955 fi
8956 acl_save_prefix="$prefix"
8957 prefix="$acl_final_prefix"
8958 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8959 prefix="$acl_save_prefix"
8960
8961
8962 # Check whether --with-gnu-ld was given.
8963 if test "${with_gnu_ld+set}" = set; then
8964 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8965 else
8966 with_gnu_ld=no
8967 fi
8968
8969 # Prepare PATH_SEPARATOR.
8970 # The user is always right.
8971 if test "${PATH_SEPARATOR+set}" != set; then
8972 echo "#! /bin/sh" >conf$$.sh
8973 echo "exit 0" >>conf$$.sh
8974 chmod +x conf$$.sh
8975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8976 PATH_SEPARATOR=';'
8977 else
8978 PATH_SEPARATOR=:
8979 fi
8980 rm -f conf$$.sh
8981 fi
8982 ac_prog=ld
8983 if test "$GCC" = yes; then
8984 # Check if gcc -print-prog-name=ld gives a path.
8985 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8986 $as_echo_n "checking for ld used by GCC... " >&6; }
8987 case $host in
8988 *-*-mingw*)
8989 # gcc leaves a trailing carriage return which upsets mingw
8990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8991 *)
8992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8993 esac
8994 case $ac_prog in
8995 # Accept absolute paths.
8996 [\\/]* | [A-Za-z]:[\\/]*)
8997 re_direlt='/[^/][^/]*/\.\./'
8998 # Canonicalize the path of ld
8999 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9000 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9001 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9002 done
9003 test -z "$LD" && LD="$ac_prog"
9004 ;;
9005 "")
9006 # If it fails, then pretend we aren't using GCC.
9007 ac_prog=ld
9008 ;;
9009 *)
9010 # If it is relative, then search for the first ld in PATH.
9011 with_gnu_ld=unknown
9012 ;;
9013 esac
9014 elif test "$with_gnu_ld" = yes; then
9015 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9016 $as_echo_n "checking for GNU ld... " >&6; }
9017 else
9018 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9019 $as_echo_n "checking for non-GNU ld... " >&6; }
9020 fi
9021 if test "${acl_cv_path_LD+set}" = set; then
9022 $as_echo_n "(cached) " >&6
9023 else
9024 if test -z "$LD"; then
9025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9026 for ac_dir in $PATH; do
9027 test -z "$ac_dir" && ac_dir=.
9028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9029 acl_cv_path_LD="$ac_dir/$ac_prog"
9030 # Check to see if the program is GNU ld. I'd rather use --version,
9031 # but apparently some GNU ld's only accept -v.
9032 # Break only if it was the GNU/non-GNU ld that we prefer.
9033 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9034 test "$with_gnu_ld" != no && break
9035 else
9036 test "$with_gnu_ld" != yes && break
9037 fi
9038 fi
9039 done
9040 IFS="$ac_save_ifs"
9041 else
9042 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9043 fi
9044 fi
9045
9046 LD="$acl_cv_path_LD"
9047 if test -n "$LD"; then
9048 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9049 $as_echo "$LD" >&6; }
9050 else
9051 { $as_echo "$as_me:$LINENO: result: no" >&5
9052 $as_echo "no" >&6; }
9053 fi
9054 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9055 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9056 { (exit 1); exit 1; }; }
9057 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9058 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9059 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9060 $as_echo_n "(cached) " >&6
9061 else
9062 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9063 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9064 acl_cv_prog_gnu_ld=yes
9065 else
9066 acl_cv_prog_gnu_ld=no
9067 fi
9068 fi
9069 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9070 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9071 with_gnu_ld=$acl_cv_prog_gnu_ld
9072
9073
9074
9075 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9076 $as_echo_n "checking for shared library run path origin... " >&6; }
9077 if test "${acl_cv_rpath+set}" = set; then
9078 $as_echo_n "(cached) " >&6
9079 else
9080
9081 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9082 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9083 . ./conftest.sh
9084 rm -f ./conftest.sh
9085 acl_cv_rpath=done
9086
9087 fi
9088 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9089 $as_echo "$acl_cv_rpath" >&6; }
9090 wl="$acl_cv_wl"
9091 libext="$acl_cv_libext"
9092 shlibext="$acl_cv_shlibext"
9093 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9094 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9095 hardcode_direct="$acl_cv_hardcode_direct"
9096 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9097 # Check whether --enable-rpath was given.
9098 if test "${enable_rpath+set}" = set; then
9099 enableval=$enable_rpath; :
9100 else
9101 enable_rpath=yes
9102 fi
9103
9104
9105
9106
9107
9108
9109
9110
9111 use_additional=yes
9112
9113 acl_save_prefix="$prefix"
9114 prefix="$acl_final_prefix"
9115 acl_save_exec_prefix="$exec_prefix"
9116 exec_prefix="$acl_final_exec_prefix"
9117
9118 eval additional_includedir=\"$includedir\"
9119 eval additional_libdir=\"$libdir\"
9120
9121 exec_prefix="$acl_save_exec_prefix"
9122 prefix="$acl_save_prefix"
9123
9124
9125 # Check whether --with-libiconv-prefix was given.
9126 if test "${with_libiconv_prefix+set}" = set; then
9127 withval=$with_libiconv_prefix;
9128 if test "X$withval" = "Xno"; then
9129 use_additional=no
9130 else
9131 if test "X$withval" = "X"; then
9132
9133 acl_save_prefix="$prefix"
9134 prefix="$acl_final_prefix"
9135 acl_save_exec_prefix="$exec_prefix"
9136 exec_prefix="$acl_final_exec_prefix"
9137
9138 eval additional_includedir=\"$includedir\"
9139 eval additional_libdir=\"$libdir\"
9140
9141 exec_prefix="$acl_save_exec_prefix"
9142 prefix="$acl_save_prefix"
9143
9144 else
9145 additional_includedir="$withval/include"
9146 additional_libdir="$withval/lib"
9147 fi
9148 fi
9149
9150 fi
9151
9152 LIBICONV=
9153 LTLIBICONV=
9154 INCICONV=
9155 rpathdirs=
9156 ltrpathdirs=
9157 names_already_handled=
9158 names_next_round='iconv '
9159 while test -n "$names_next_round"; do
9160 names_this_round="$names_next_round"
9161 names_next_round=
9162 for name in $names_this_round; do
9163 already_handled=
9164 for n in $names_already_handled; do
9165 if test "$n" = "$name"; then
9166 already_handled=yes
9167 break
9168 fi
9169 done
9170 if test -z "$already_handled"; then
9171 names_already_handled="$names_already_handled $name"
9172 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9173 eval value=\"\$HAVE_LIB$uppername\"
9174 if test -n "$value"; then
9175 if test "$value" = yes; then
9176 eval value=\"\$LIB$uppername\"
9177 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9178 eval value=\"\$LTLIB$uppername\"
9179 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9180 else
9181 :
9182 fi
9183 else
9184 found_dir=
9185 found_la=
9186 found_so=
9187 found_a=
9188 if test $use_additional = yes; then
9189 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9190 found_dir="$additional_libdir"
9191 found_so="$additional_libdir/lib$name.$shlibext"
9192 if test -f "$additional_libdir/lib$name.la"; then
9193 found_la="$additional_libdir/lib$name.la"
9194 fi
9195 else
9196 if test -f "$additional_libdir/lib$name.$libext"; then
9197 found_dir="$additional_libdir"
9198 found_a="$additional_libdir/lib$name.$libext"
9199 if test -f "$additional_libdir/lib$name.la"; then
9200 found_la="$additional_libdir/lib$name.la"
9201 fi
9202 fi
9203 fi
9204 fi
9205 if test "X$found_dir" = "X"; then
9206 for x in $LDFLAGS $LTLIBICONV; do
9207
9208 acl_save_prefix="$prefix"
9209 prefix="$acl_final_prefix"
9210 acl_save_exec_prefix="$exec_prefix"
9211 exec_prefix="$acl_final_exec_prefix"
9212 eval x=\"$x\"
9213 exec_prefix="$acl_save_exec_prefix"
9214 prefix="$acl_save_prefix"
9215
9216 case "$x" in
9217 -L*)
9218 dir=`echo "X$x" | sed -e 's/^X-L//'`
9219 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9220 found_dir="$dir"
9221 found_so="$dir/lib$name.$shlibext"
9222 if test -f "$dir/lib$name.la"; then
9223 found_la="$dir/lib$name.la"
9224 fi
9225 else
9226 if test -f "$dir/lib$name.$libext"; then
9227 found_dir="$dir"
9228 found_a="$dir/lib$name.$libext"
9229 if test -f "$dir/lib$name.la"; then
9230 found_la="$dir/lib$name.la"
9231 fi
9232 fi
9233 fi
9234 ;;
9235 esac
9236 if test "X$found_dir" != "X"; then
9237 break
9238 fi
9239 done
9240 fi
9241 if test "X$found_dir" != "X"; then
9242 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9243 if test "X$found_so" != "X"; then
9244 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9245 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9246 else
9247 haveit=
9248 for x in $ltrpathdirs; do
9249 if test "X$x" = "X$found_dir"; then
9250 haveit=yes
9251 break
9252 fi
9253 done
9254 if test -z "$haveit"; then
9255 ltrpathdirs="$ltrpathdirs $found_dir"
9256 fi
9257 if test "$hardcode_direct" = yes; then
9258 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9259 else
9260 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9262 haveit=
9263 for x in $rpathdirs; do
9264 if test "X$x" = "X$found_dir"; then
9265 haveit=yes
9266 break
9267 fi
9268 done
9269 if test -z "$haveit"; then
9270 rpathdirs="$rpathdirs $found_dir"
9271 fi
9272 else
9273 haveit=
9274 for x in $LDFLAGS $LIBICONV; do
9275
9276 acl_save_prefix="$prefix"
9277 prefix="$acl_final_prefix"
9278 acl_save_exec_prefix="$exec_prefix"
9279 exec_prefix="$acl_final_exec_prefix"
9280 eval x=\"$x\"
9281 exec_prefix="$acl_save_exec_prefix"
9282 prefix="$acl_save_prefix"
9283
9284 if test "X$x" = "X-L$found_dir"; then
9285 haveit=yes
9286 break
9287 fi
9288 done
9289 if test -z "$haveit"; then
9290 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9291 fi
9292 if test "$hardcode_minus_L" != no; then
9293 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9294 else
9295 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9296 fi
9297 fi
9298 fi
9299 fi
9300 else
9301 if test "X$found_a" != "X"; then
9302 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9303 else
9304 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9305 fi
9306 fi
9307 additional_includedir=
9308 case "$found_dir" in
9309 */lib | */lib/)
9310 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9311 additional_includedir="$basedir/include"
9312 ;;
9313 esac
9314 if test "X$additional_includedir" != "X"; then
9315 if test "X$additional_includedir" != "X/usr/include"; then
9316 haveit=
9317 if test "X$additional_includedir" = "X/usr/local/include"; then
9318 if test -n "$GCC"; then
9319 case $host_os in
9320 linux*) haveit=yes;;
9321 esac
9322 fi
9323 fi
9324 if test -z "$haveit"; then
9325 for x in $CPPFLAGS $INCICONV; do
9326
9327 acl_save_prefix="$prefix"
9328 prefix="$acl_final_prefix"
9329 acl_save_exec_prefix="$exec_prefix"
9330 exec_prefix="$acl_final_exec_prefix"
9331 eval x=\"$x\"
9332 exec_prefix="$acl_save_exec_prefix"
9333 prefix="$acl_save_prefix"
9334
9335 if test "X$x" = "X-I$additional_includedir"; then
9336 haveit=yes
9337 break
9338 fi
9339 done
9340 if test -z "$haveit"; then
9341 if test -d "$additional_includedir"; then
9342 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9343 fi
9344 fi
9345 fi
9346 fi
9347 fi
9348 if test -n "$found_la"; then
9349 save_libdir="$libdir"
9350 case "$found_la" in
9351 */* | *\\*) . "$found_la" ;;
9352 *) . "./$found_la" ;;
9353 esac
9354 libdir="$save_libdir"
9355 for dep in $dependency_libs; do
9356 case "$dep" in
9357 -L*)
9358 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9359 if test "X$additional_libdir" != "X/usr/lib"; then
9360 haveit=
9361 if test "X$additional_libdir" = "X/usr/local/lib"; then
9362 if test -n "$GCC"; then
9363 case $host_os in
9364 linux*) haveit=yes;;
9365 esac
9366 fi
9367 fi
9368 if test -z "$haveit"; then
9369 haveit=
9370 for x in $LDFLAGS $LIBICONV; do
9371
9372 acl_save_prefix="$prefix"
9373 prefix="$acl_final_prefix"
9374 acl_save_exec_prefix="$exec_prefix"
9375 exec_prefix="$acl_final_exec_prefix"
9376 eval x=\"$x\"
9377 exec_prefix="$acl_save_exec_prefix"
9378 prefix="$acl_save_prefix"
9379
9380 if test "X$x" = "X-L$additional_libdir"; then
9381 haveit=yes
9382 break
9383 fi
9384 done
9385 if test -z "$haveit"; then
9386 if test -d "$additional_libdir"; then
9387 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9388 fi
9389 fi
9390 haveit=
9391 for x in $LDFLAGS $LTLIBICONV; do
9392
9393 acl_save_prefix="$prefix"
9394 prefix="$acl_final_prefix"
9395 acl_save_exec_prefix="$exec_prefix"
9396 exec_prefix="$acl_final_exec_prefix"
9397 eval x=\"$x\"
9398 exec_prefix="$acl_save_exec_prefix"
9399 prefix="$acl_save_prefix"
9400
9401 if test "X$x" = "X-L$additional_libdir"; then
9402 haveit=yes
9403 break
9404 fi
9405 done
9406 if test -z "$haveit"; then
9407 if test -d "$additional_libdir"; then
9408 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9409 fi
9410 fi
9411 fi
9412 fi
9413 ;;
9414 -R*)
9415 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9416 if test "$enable_rpath" != no; then
9417 haveit=
9418 for x in $rpathdirs; do
9419 if test "X$x" = "X$dir"; then
9420 haveit=yes
9421 break
9422 fi
9423 done
9424 if test -z "$haveit"; then
9425 rpathdirs="$rpathdirs $dir"
9426 fi
9427 haveit=
9428 for x in $ltrpathdirs; do
9429 if test "X$x" = "X$dir"; then
9430 haveit=yes
9431 break
9432 fi
9433 done
9434 if test -z "$haveit"; then
9435 ltrpathdirs="$ltrpathdirs $dir"
9436 fi
9437 fi
9438 ;;
9439 -l*)
9440 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9441 ;;
9442 *.la)
9443 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9444 ;;
9445 *)
9446 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9448 ;;
9449 esac
9450 done
9451 fi
9452 else
9453 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9455 fi
9456 fi
9457 fi
9458 done
9459 done
9460 if test "X$rpathdirs" != "X"; then
9461 if test -n "$hardcode_libdir_separator"; then
9462 alldirs=
9463 for found_dir in $rpathdirs; do
9464 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9465 done
9466 acl_save_libdir="$libdir"
9467 libdir="$alldirs"
9468 eval flag=\"$hardcode_libdir_flag_spec\"
9469 libdir="$acl_save_libdir"
9470 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9471 else
9472 for found_dir in $rpathdirs; do
9473 acl_save_libdir="$libdir"
9474 libdir="$found_dir"
9475 eval flag=\"$hardcode_libdir_flag_spec\"
9476 libdir="$acl_save_libdir"
9477 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9478 done
9479 fi
9480 fi
9481 if test "X$ltrpathdirs" != "X"; then
9482 for found_dir in $ltrpathdirs; do
9483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9484 done
9485 fi
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9501 stdlib.h string.h unistd.h sys/param.h
9502 do
9503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 $as_echo_n "checking for $ac_header... " >&6; }
9507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508 $as_echo_n "(cached) " >&6
9509 fi
9510 ac_res=`eval 'as_val=${'$as_ac_Header'}
9511 $as_echo "$as_val"'`
9512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9513 $as_echo "$ac_res" >&6; }
9514 else
9515 # Is the header compilable?
9516 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9517 $as_echo_n "checking $ac_header usability... " >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 $ac_includes_default
9525 #include <$ac_header>
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (ac_try="$ac_compile"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534 $as_echo "$ac_try_echo") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
9545 ac_header_compiler=yes
9546 else
9547 $as_echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_header_compiler=no
9551 fi
9552
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9555 $as_echo "$ac_header_compiler" >&6; }
9556
9557 # Is the header present?
9558 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9559 $as_echo_n "checking $ac_header presence... " >&6; }
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 #include <$ac_header>
9567 _ACEOF
9568 if { (ac_try="$ac_cpp conftest.$ac_ext"
9569 case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572 esac
9573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9574 $as_echo "$ac_try_echo") >&5
9575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9576 ac_status=$?
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
9580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } >/dev/null && {
9582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 }; then
9585 ac_header_preproc=yes
9586 else
9587 $as_echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_header_preproc=no
9591 fi
9592
9593 rm -f conftest.err conftest.$ac_ext
9594 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9595 $as_echo "$ac_header_preproc" >&6; }
9596
9597 # So? What about this header?
9598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9599 yes:no: )
9600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9601 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9604 ac_header_preproc=yes
9605 ;;
9606 no:yes:* )
9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9608 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9610 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9612 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9614 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9618 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9619 ( cat <<\_ASBOX
9620 ## ------------------------------- ##
9621 ## Report this to bug-bash@gnu.org ##
9622 ## ------------------------------- ##
9623 _ASBOX
9624 ) | sed "s/^/$as_me: WARNING: /" >&2
9625 ;;
9626 esac
9627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9628 $as_echo_n "checking for $ac_header... " >&6; }
9629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9630 $as_echo_n "(cached) " >&6
9631 else
9632 eval "$as_ac_Header=\$ac_header_preproc"
9633 fi
9634 ac_res=`eval 'as_val=${'$as_ac_Header'}
9635 $as_echo "$as_val"'`
9636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9637 $as_echo "$ac_res" >&6; }
9638
9639 fi
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641 $as_echo "$as_val"'`
9642 if test "x$as_val" = x""yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9645 _ACEOF
9646
9647 fi
9648
9649 done
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9675 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9676 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9677 __fsetlocking
9678 do
9679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9681 $as_echo_n "checking for $ac_func... " >&6; }
9682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9683 $as_echo_n "(cached) " >&6
9684 else
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9693 #define $ac_func innocuous_$ac_func
9694
9695 /* System header to define __stub macros and hopefully few prototypes,
9696 which can conflict with char $ac_func (); below.
9697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698 <limits.h> exists even on freestanding compilers. */
9699
9700 #ifdef __STDC__
9701 # include <limits.h>
9702 #else
9703 # include <assert.h>
9704 #endif
9705
9706 #undef $ac_func
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char $ac_func ();
9715 /* The GNU C library defines this for functions which it implements
9716 to always fail with ENOSYS. Some functions are actually named
9717 something starting with __ and the normal name is an alias. */
9718 #if defined __stub_$ac_func || defined __stub___$ac_func
9719 choke me
9720 #endif
9721
9722 int
9723 main ()
9724 {
9725 return $ac_func ();
9726 ;
9727 return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9732 case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735 esac
9736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737 $as_echo "$ac_try_echo") >&5
9738 (eval "$ac_link") 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext && {
9748 test "$cross_compiling" = yes ||
9749 $as_test_x conftest$ac_exeext
9750 }; then
9751 eval "$as_ac_var=yes"
9752 else
9753 $as_echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 eval "$as_ac_var=no"
9757 fi
9758
9759 rm -rf conftest.dSYM
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 fi
9763 ac_res=`eval 'as_val=${'$as_ac_var'}
9764 $as_echo "$as_val"'`
9765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9766 $as_echo "$ac_res" >&6; }
9767 as_val=`eval 'as_val=${'$as_ac_var'}
9768 $as_echo "$as_val"'`
9769 if test "x$as_val" = x""yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9772 _ACEOF
9773
9774 fi
9775 done
9776
9777
9778
9779
9780
9781
9782
9783 am_save_CPPFLAGS="$CPPFLAGS"
9784
9785 for element in $INCICONV; do
9786 haveit=
9787 for x in $CPPFLAGS; do
9788
9789 acl_save_prefix="$prefix"
9790 prefix="$acl_final_prefix"
9791 acl_save_exec_prefix="$exec_prefix"
9792 exec_prefix="$acl_final_exec_prefix"
9793 eval x=\"$x\"
9794 exec_prefix="$acl_save_exec_prefix"
9795 prefix="$acl_save_prefix"
9796
9797 if test "X$x" = "X$element"; then
9798 haveit=yes
9799 break
9800 fi
9801 done
9802 if test -z "$haveit"; then
9803 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9804 fi
9805 done
9806
9807
9808 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9809 $as_echo_n "checking for iconv... " >&6; }
9810 if test "${am_cv_func_iconv+set}" = set; then
9811 $as_echo_n "(cached) " >&6
9812 else
9813
9814 am_cv_func_iconv="no, consider installing GNU libiconv"
9815 am_cv_lib_iconv=no
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 #include <stdlib.h>
9823 #include <iconv.h>
9824 int
9825 main ()
9826 {
9827 iconv_t cd = iconv_open("","");
9828 iconv(cd,NULL,NULL,NULL,NULL);
9829 iconv_close(cd);
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_link") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext && {
9852 test "$cross_compiling" = yes ||
9853 $as_test_x conftest$ac_exeext
9854 }; then
9855 am_cv_func_iconv=yes
9856 else
9857 $as_echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860
9861 fi
9862
9863 rm -rf conftest.dSYM
9864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9865 conftest$ac_exeext conftest.$ac_ext
9866 if test "$am_cv_func_iconv" != yes; then
9867 am_save_LIBS="$LIBS"
9868 LIBS="$LIBS $LIBICONV"
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <stdlib.h>
9876 #include <iconv.h>
9877 int
9878 main ()
9879 {
9880 iconv_t cd = iconv_open("","");
9881 iconv(cd,NULL,NULL,NULL,NULL);
9882 iconv_close(cd);
9883 ;
9884 return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892 esac
9893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9894 $as_echo "$ac_try_echo") >&5
9895 (eval "$ac_link") 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext && {
9905 test "$cross_compiling" = yes ||
9906 $as_test_x conftest$ac_exeext
9907 }; then
9908 am_cv_lib_iconv=yes
9909 am_cv_func_iconv=yes
9910 else
9911 $as_echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914
9915 fi
9916
9917 rm -rf conftest.dSYM
9918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS="$am_save_LIBS"
9921 fi
9922
9923 fi
9924 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9925 $as_echo "$am_cv_func_iconv" >&6; }
9926 if test "$am_cv_func_iconv" = yes; then
9927
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_ICONV 1
9930 _ACEOF
9931
9932 fi
9933 if test "$am_cv_lib_iconv" = yes; then
9934 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9935 $as_echo_n "checking how to link with libiconv... " >&6; }
9936 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9937 $as_echo "$LIBICONV" >&6; }
9938 else
9939 CPPFLAGS="$am_save_CPPFLAGS"
9940 LIBICONV=
9941 LTLIBICONV=
9942 fi
9943
9944
9945
9946 if test "$am_cv_func_iconv" = yes; then
9947 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9948 $as_echo_n "checking for iconv declaration... " >&6; }
9949 if test "${am_cv_proto_iconv+set}" = set; then
9950 $as_echo_n "(cached) " >&6
9951 else
9952
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959
9960 #include <stdlib.h>
9961 #include <iconv.h>
9962 extern
9963 #ifdef __cplusplus
9964 "C"
9965 #endif
9966 #if defined(__STDC__) || defined(__cplusplus)
9967 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9968 #else
9969 size_t iconv();
9970 #endif
9971
9972 int
9973 main ()
9974 {
9975
9976 ;
9977 return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (ac_try="$ac_compile"
9982 case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985 esac
9986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9987 $as_echo "$ac_try_echo") >&5
9988 (eval "$ac_compile") 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
9997 } && test -s conftest.$ac_objext; then
9998 am_cv_proto_iconv_arg1=""
9999 else
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 am_cv_proto_iconv_arg1="const"
10004 fi
10005
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 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);"
10008 fi
10009
10010 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10011 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10012 }$am_cv_proto_iconv" >&5
10013 $as_echo "${ac_t:-
10014 }$am_cv_proto_iconv" >&6; }
10015
10016 cat >>confdefs.h <<_ACEOF
10017 #define ICONV_CONST $am_cv_proto_iconv_arg1
10018 _ACEOF
10019
10020 fi
10021
10022
10023 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10024 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10025 if test "${am_cv_langinfo_codeset+set}" = set; then
10026 $as_echo_n "(cached) " >&6
10027 else
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <langinfo.h>
10035 int
10036 main ()
10037 {
10038 char* cs = nl_langinfo(CODESET);
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048 esac
10049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10050 $as_echo "$ac_try_echo") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext && {
10061 test "$cross_compiling" = yes ||
10062 $as_test_x conftest$ac_exeext
10063 }; then
10064 am_cv_langinfo_codeset=yes
10065 else
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 am_cv_langinfo_codeset=no
10070 fi
10071
10072 rm -rf conftest.dSYM
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074 conftest$ac_exeext conftest.$ac_ext
10075
10076 fi
10077 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10078 $as_echo "$am_cv_langinfo_codeset" >&6; }
10079 if test $am_cv_langinfo_codeset = yes; then
10080
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_LANGINFO_CODESET 1
10083 _ACEOF
10084
10085 fi
10086
10087 if test $ac_cv_header_locale_h = yes; then
10088
10089 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10090 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10091 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10092 $as_echo_n "(cached) " >&6
10093 else
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h. */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 #include <locale.h>
10101 int
10102 main ()
10103 {
10104 return LC_MESSAGES
10105 ;
10106 return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10116 $as_echo "$ac_try_echo") >&5
10117 (eval "$ac_link") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest$ac_exeext && {
10127 test "$cross_compiling" = yes ||
10128 $as_test_x conftest$ac_exeext
10129 }; then
10130 am_cv_val_LC_MESSAGES=yes
10131 else
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 am_cv_val_LC_MESSAGES=no
10136 fi
10137
10138 rm -rf conftest.dSYM
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 fi
10142 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10143 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10144 if test $am_cv_val_LC_MESSAGES = yes; then
10145
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_LC_MESSAGES 1
10148 _ACEOF
10149
10150 fi
10151
10152 fi
10153
10154 for ac_prog in bison
10155 do
10156 # Extract the first word of "$ac_prog", so it can be a program name with args.
10157 set dummy $ac_prog; ac_word=$2
10158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10161 $as_echo_n "(cached) " >&6
10162 else
10163 if test -n "$INTLBISON"; then
10164 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10165 else
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_prog_INTLBISON="$ac_prog"
10174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10176 fi
10177 done
10178 done
10179 IFS=$as_save_IFS
10180
10181 fi
10182 fi
10183 INTLBISON=$ac_cv_prog_INTLBISON
10184 if test -n "$INTLBISON"; then
10185 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10186 $as_echo "$INTLBISON" >&6; }
10187 else
10188 { $as_echo "$as_me:$LINENO: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191
10192
10193 test -n "$INTLBISON" && break
10194 done
10195
10196 if test -z "$INTLBISON"; then
10197 ac_verc_fail=yes
10198 else
10199 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10200 $as_echo_n "checking version of bison... " >&6; }
10201 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10202 case $ac_prog_version in
10203 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10204 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10205 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10206 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10207 esac
10208 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10209 $as_echo "$ac_prog_version" >&6; }
10210 fi
10211 if test $ac_verc_fail = yes; then
10212 INTLBISON=:
10213 fi
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10231 $as_echo_n "checking whether NLS is requested... " >&6; }
10232 # Check whether --enable-nls was given.
10233 if test "${enable_nls+set}" = set; then
10234 enableval=$enable_nls; USE_NLS=$enableval
10235 else
10236 USE_NLS=yes
10237 fi
10238
10239 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10240 $as_echo "$USE_NLS" >&6; }
10241
10242
10243
10244
10245 BUILD_INCLUDED_LIBINTL=no
10246 USE_INCLUDED_LIBINTL=no
10247
10248 LIBINTL=
10249 LTLIBINTL=
10250 POSUB=
10251
10252 if test "$USE_NLS" = "yes"; then
10253 gt_use_preinstalled_gnugettext=no
10254
10255 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10256 $as_echo_n "checking whether included gettext is requested... " >&6; }
10257
10258 # Check whether --with-included-gettext was given.
10259 if test "${with_included_gettext+set}" = set; then
10260 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10261 else
10262 nls_cv_force_use_gnu_gettext=no
10263 fi
10264
10265 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10266 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10267
10268 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10269 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10270
10271
10272
10273
10274
10275
10276 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10277 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10278 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <libintl.h>
10288 extern int _nl_msg_cat_cntr;
10289 extern int *_nl_domain_bindings;
10290 int
10291 main ()
10292 {
10293 bindtextdomain ("", "");
10294 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (ac_try="$ac_link"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304 esac
10305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306 $as_echo "$ac_try_echo") >&5
10307 (eval "$ac_link") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest$ac_exeext && {
10317 test "$cross_compiling" = yes ||
10318 $as_test_x conftest$ac_exeext
10319 }; then
10320 gt_cv_func_gnugettext2_libc=yes
10321 else
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 gt_cv_func_gnugettext2_libc=no
10326 fi
10327
10328 rm -rf conftest.dSYM
10329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10330 conftest$ac_exeext conftest.$ac_ext
10331 fi
10332 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10333 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10334
10335 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10336
10337
10338
10339 use_additional=yes
10340
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10345
10346 eval additional_includedir=\"$includedir\"
10347 eval additional_libdir=\"$libdir\"
10348
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10351
10352
10353 # Check whether --with-libintl-prefix was given.
10354 if test "${with_libintl_prefix+set}" = set; then
10355 withval=$with_libintl_prefix;
10356 if test "X$withval" = "Xno"; then
10357 use_additional=no
10358 else
10359 if test "X$withval" = "X"; then
10360
10361 acl_save_prefix="$prefix"
10362 prefix="$acl_final_prefix"
10363 acl_save_exec_prefix="$exec_prefix"
10364 exec_prefix="$acl_final_exec_prefix"
10365
10366 eval additional_includedir=\"$includedir\"
10367 eval additional_libdir=\"$libdir\"
10368
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10371
10372 else
10373 additional_includedir="$withval/include"
10374 additional_libdir="$withval/lib"
10375 fi
10376 fi
10377
10378 fi
10379
10380 LIBINTL=
10381 LTLIBINTL=
10382 INCINTL=
10383 rpathdirs=
10384 ltrpathdirs=
10385 names_already_handled=
10386 names_next_round='intl '
10387 while test -n "$names_next_round"; do
10388 names_this_round="$names_next_round"
10389 names_next_round=
10390 for name in $names_this_round; do
10391 already_handled=
10392 for n in $names_already_handled; do
10393 if test "$n" = "$name"; then
10394 already_handled=yes
10395 break
10396 fi
10397 done
10398 if test -z "$already_handled"; then
10399 names_already_handled="$names_already_handled $name"
10400 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10401 eval value=\"\$HAVE_LIB$uppername\"
10402 if test -n "$value"; then
10403 if test "$value" = yes; then
10404 eval value=\"\$LIB$uppername\"
10405 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10406 eval value=\"\$LTLIB$uppername\"
10407 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10408 else
10409 :
10410 fi
10411 else
10412 found_dir=
10413 found_la=
10414 found_so=
10415 found_a=
10416 if test $use_additional = yes; then
10417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10418 found_dir="$additional_libdir"
10419 found_so="$additional_libdir/lib$name.$shlibext"
10420 if test -f "$additional_libdir/lib$name.la"; then
10421 found_la="$additional_libdir/lib$name.la"
10422 fi
10423 else
10424 if test -f "$additional_libdir/lib$name.$libext"; then
10425 found_dir="$additional_libdir"
10426 found_a="$additional_libdir/lib$name.$libext"
10427 if test -f "$additional_libdir/lib$name.la"; then
10428 found_la="$additional_libdir/lib$name.la"
10429 fi
10430 fi
10431 fi
10432 fi
10433 if test "X$found_dir" = "X"; then
10434 for x in $LDFLAGS $LTLIBINTL; do
10435
10436 acl_save_prefix="$prefix"
10437 prefix="$acl_final_prefix"
10438 acl_save_exec_prefix="$exec_prefix"
10439 exec_prefix="$acl_final_exec_prefix"
10440 eval x=\"$x\"
10441 exec_prefix="$acl_save_exec_prefix"
10442 prefix="$acl_save_prefix"
10443
10444 case "$x" in
10445 -L*)
10446 dir=`echo "X$x" | sed -e 's/^X-L//'`
10447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10448 found_dir="$dir"
10449 found_so="$dir/lib$name.$shlibext"
10450 if test -f "$dir/lib$name.la"; then
10451 found_la="$dir/lib$name.la"
10452 fi
10453 else
10454 if test -f "$dir/lib$name.$libext"; then
10455 found_dir="$dir"
10456 found_a="$dir/lib$name.$libext"
10457 if test -f "$dir/lib$name.la"; then
10458 found_la="$dir/lib$name.la"
10459 fi
10460 fi
10461 fi
10462 ;;
10463 esac
10464 if test "X$found_dir" != "X"; then
10465 break
10466 fi
10467 done
10468 fi
10469 if test "X$found_dir" != "X"; then
10470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10471 if test "X$found_so" != "X"; then
10472 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10474 else
10475 haveit=
10476 for x in $ltrpathdirs; do
10477 if test "X$x" = "X$found_dir"; then
10478 haveit=yes
10479 break
10480 fi
10481 done
10482 if test -z "$haveit"; then
10483 ltrpathdirs="$ltrpathdirs $found_dir"
10484 fi
10485 if test "$hardcode_direct" = yes; then
10486 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10487 else
10488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10490 haveit=
10491 for x in $rpathdirs; do
10492 if test "X$x" = "X$found_dir"; then
10493 haveit=yes
10494 break
10495 fi
10496 done
10497 if test -z "$haveit"; then
10498 rpathdirs="$rpathdirs $found_dir"
10499 fi
10500 else
10501 haveit=
10502 for x in $LDFLAGS $LIBINTL; do
10503
10504 acl_save_prefix="$prefix"
10505 prefix="$acl_final_prefix"
10506 acl_save_exec_prefix="$exec_prefix"
10507 exec_prefix="$acl_final_exec_prefix"
10508 eval x=\"$x\"
10509 exec_prefix="$acl_save_exec_prefix"
10510 prefix="$acl_save_prefix"
10511
10512 if test "X$x" = "X-L$found_dir"; then
10513 haveit=yes
10514 break
10515 fi
10516 done
10517 if test -z "$haveit"; then
10518 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10519 fi
10520 if test "$hardcode_minus_L" != no; then
10521 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10522 else
10523 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10524 fi
10525 fi
10526 fi
10527 fi
10528 else
10529 if test "X$found_a" != "X"; then
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10531 else
10532 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10533 fi
10534 fi
10535 additional_includedir=
10536 case "$found_dir" in
10537 */lib | */lib/)
10538 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10539 additional_includedir="$basedir/include"
10540 ;;
10541 esac
10542 if test "X$additional_includedir" != "X"; then
10543 if test "X$additional_includedir" != "X/usr/include"; then
10544 haveit=
10545 if test "X$additional_includedir" = "X/usr/local/include"; then
10546 if test -n "$GCC"; then
10547 case $host_os in
10548 linux*) haveit=yes;;
10549 esac
10550 fi
10551 fi
10552 if test -z "$haveit"; then
10553 for x in $CPPFLAGS $INCINTL; do
10554
10555 acl_save_prefix="$prefix"
10556 prefix="$acl_final_prefix"
10557 acl_save_exec_prefix="$exec_prefix"
10558 exec_prefix="$acl_final_exec_prefix"
10559 eval x=\"$x\"
10560 exec_prefix="$acl_save_exec_prefix"
10561 prefix="$acl_save_prefix"
10562
10563 if test "X$x" = "X-I$additional_includedir"; then
10564 haveit=yes
10565 break
10566 fi
10567 done
10568 if test -z "$haveit"; then
10569 if test -d "$additional_includedir"; then
10570 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10571 fi
10572 fi
10573 fi
10574 fi
10575 fi
10576 if test -n "$found_la"; then
10577 save_libdir="$libdir"
10578 case "$found_la" in
10579 */* | *\\*) . "$found_la" ;;
10580 *) . "./$found_la" ;;
10581 esac
10582 libdir="$save_libdir"
10583 for dep in $dependency_libs; do
10584 case "$dep" in
10585 -L*)
10586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10587 if test "X$additional_libdir" != "X/usr/lib"; then
10588 haveit=
10589 if test "X$additional_libdir" = "X/usr/local/lib"; then
10590 if test -n "$GCC"; then
10591 case $host_os in
10592 linux*) haveit=yes;;
10593 esac
10594 fi
10595 fi
10596 if test -z "$haveit"; then
10597 haveit=
10598 for x in $LDFLAGS $LIBINTL; do
10599
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10604 eval x=\"$x\"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10607
10608 if test "X$x" = "X-L$additional_libdir"; then
10609 haveit=yes
10610 break
10611 fi
10612 done
10613 if test -z "$haveit"; then
10614 if test -d "$additional_libdir"; then
10615 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10616 fi
10617 fi
10618 haveit=
10619 for x in $LDFLAGS $LTLIBINTL; do
10620
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10625 eval x=\"$x\"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10628
10629 if test "X$x" = "X-L$additional_libdir"; then
10630 haveit=yes
10631 break
10632 fi
10633 done
10634 if test -z "$haveit"; then
10635 if test -d "$additional_libdir"; then
10636 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10637 fi
10638 fi
10639 fi
10640 fi
10641 ;;
10642 -R*)
10643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10644 if test "$enable_rpath" != no; then
10645 haveit=
10646 for x in $rpathdirs; do
10647 if test "X$x" = "X$dir"; then
10648 haveit=yes
10649 break
10650 fi
10651 done
10652 if test -z "$haveit"; then
10653 rpathdirs="$rpathdirs $dir"
10654 fi
10655 haveit=
10656 for x in $ltrpathdirs; do
10657 if test "X$x" = "X$dir"; then
10658 haveit=yes
10659 break
10660 fi
10661 done
10662 if test -z "$haveit"; then
10663 ltrpathdirs="$ltrpathdirs $dir"
10664 fi
10665 fi
10666 ;;
10667 -l*)
10668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10669 ;;
10670 *.la)
10671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10672 ;;
10673 *)
10674 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10675 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10676 ;;
10677 esac
10678 done
10679 fi
10680 else
10681 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10682 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10683 fi
10684 fi
10685 fi
10686 done
10687 done
10688 if test "X$rpathdirs" != "X"; then
10689 if test -n "$hardcode_libdir_separator"; then
10690 alldirs=
10691 for found_dir in $rpathdirs; do
10692 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10693 done
10694 acl_save_libdir="$libdir"
10695 libdir="$alldirs"
10696 eval flag=\"$hardcode_libdir_flag_spec\"
10697 libdir="$acl_save_libdir"
10698 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10699 else
10700 for found_dir in $rpathdirs; do
10701 acl_save_libdir="$libdir"
10702 libdir="$found_dir"
10703 eval flag=\"$hardcode_libdir_flag_spec\"
10704 libdir="$acl_save_libdir"
10705 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10706 done
10707 fi
10708 fi
10709 if test "X$ltrpathdirs" != "X"; then
10710 for found_dir in $ltrpathdirs; do
10711 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10712 done
10713 fi
10714
10715 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10716 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10717 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10718 $as_echo_n "(cached) " >&6
10719 else
10720 gt_save_CPPFLAGS="$CPPFLAGS"
10721 CPPFLAGS="$CPPFLAGS $INCINTL"
10722 gt_save_LIBS="$LIBS"
10723 LIBS="$LIBS $LIBINTL"
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <libintl.h>
10731 extern int _nl_msg_cat_cntr;
10732 extern
10733 #ifdef __cplusplus
10734 "C"
10735 #endif
10736 const char *_nl_expand_alias ();
10737 int
10738 main ()
10739 {
10740 bindtextdomain ("", "");
10741 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751 esac
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10766 }; then
10767 gt_cv_func_gnugettext2_libintl=yes
10768 else
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 gt_cv_func_gnugettext2_libintl=no
10773 fi
10774
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777 conftest$ac_exeext conftest.$ac_ext
10778 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10779 LIBS="$LIBS $LIBICONV"
10780 cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h. */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 #include <libintl.h>
10787 extern int _nl_msg_cat_cntr;
10788 extern
10789 #ifdef __cplusplus
10790 "C"
10791 #endif
10792 const char *_nl_expand_alias ();
10793 int
10794 main ()
10795 {
10796 bindtextdomain ("", "");
10797 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10798 ;
10799 return 0;
10800 }
10801 _ACEOF
10802 rm -f conftest.$ac_objext conftest$ac_exeext
10803 if { (ac_try="$ac_link"
10804 case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807 esac
10808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10809 $as_echo "$ac_try_echo") >&5
10810 (eval "$ac_link") 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } && {
10817 test -z "$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 } && test -s conftest$ac_exeext && {
10820 test "$cross_compiling" = yes ||
10821 $as_test_x conftest$ac_exeext
10822 }; then
10823 LIBINTL="$LIBINTL $LIBICONV"
10824 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10825 gt_cv_func_gnugettext2_libintl=yes
10826
10827 else
10828 $as_echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831
10832 fi
10833
10834 rm -rf conftest.dSYM
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10837 fi
10838 CPPFLAGS="$gt_save_CPPFLAGS"
10839 LIBS="$gt_save_LIBS"
10840 fi
10841 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10842 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10843 fi
10844
10845 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10846 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10847 && test "$PACKAGE" != gettext-runtime \
10848 && test "$PACKAGE" != gettext-tools; }; then
10849 gt_use_preinstalled_gnugettext=yes
10850 else
10851 LIBINTL=
10852 LTLIBINTL=
10853 INCINTL=
10854 fi
10855
10856
10857 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10858 nls_cv_use_gnu_gettext=yes
10859 fi
10860 fi
10861
10862 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10863 BUILD_INCLUDED_LIBINTL=yes
10864 USE_INCLUDED_LIBINTL=yes
10865 LIBINTL="lib/intl/libintl.a $LIBICONV"
10866 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10867 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10868 fi
10869
10870 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10871 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10872 CATOBJEXT=.gmo
10873 fi
10874
10875
10876 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10877 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10878
10879 cat >>confdefs.h <<\_ACEOF
10880 #define ENABLE_NLS 1
10881 _ACEOF
10882
10883 else
10884 USE_NLS=no
10885 fi
10886 fi
10887
10888 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10889 $as_echo_n "checking whether to use NLS... " >&6; }
10890 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10891 $as_echo "$USE_NLS" >&6; }
10892 if test "$USE_NLS" = "yes"; then
10893 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10894 $as_echo_n "checking where the gettext function comes from... " >&6; }
10895 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10896 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10897 gt_source="external libintl"
10898 else
10899 gt_source="libc"
10900 fi
10901 else
10902 gt_source="included intl directory"
10903 fi
10904 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10905 $as_echo "$gt_source" >&6; }
10906 fi
10907
10908 if test "$USE_NLS" = "yes"; then
10909
10910 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10911 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10912 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10913 $as_echo_n "checking how to link with libintl... " >&6; }
10914 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10915 $as_echo "$LIBINTL" >&6; }
10916
10917 for element in $INCINTL; do
10918 haveit=
10919 for x in $CPPFLAGS; do
10920
10921 acl_save_prefix="$prefix"
10922 prefix="$acl_final_prefix"
10923 acl_save_exec_prefix="$exec_prefix"
10924 exec_prefix="$acl_final_exec_prefix"
10925 eval x=\"$x\"
10926 exec_prefix="$acl_save_exec_prefix"
10927 prefix="$acl_save_prefix"
10928
10929 if test "X$x" = "X$element"; then
10930 haveit=yes
10931 break
10932 fi
10933 done
10934 if test -z "$haveit"; then
10935 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10936 fi
10937 done
10938
10939 fi
10940
10941
10942 cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_GETTEXT 1
10944 _ACEOF
10945
10946
10947 cat >>confdefs.h <<\_ACEOF
10948 #define HAVE_DCGETTEXT 1
10949 _ACEOF
10950
10951 fi
10952
10953 POSUB=po
10954 fi
10955
10956
10957 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10958 BUILD_INCLUDED_LIBINTL=yes
10959 fi
10960
10961
10962
10963
10964
10965 nls_cv_header_intl=
10966 nls_cv_header_libgt=
10967
10968 DATADIRNAME=share
10969
10970
10971 INSTOBJEXT=.mo
10972
10973
10974 GENCAT=gencat
10975
10976
10977 if test "$USE_INCLUDED_LIBINTL" = yes; then
10978 INTLOBJS="\$(GETTOBJS)"
10979 fi
10980
10981
10982 INTL_LIBTOOL_SUFFIX_PREFIX=
10983
10984
10985
10986 INTLLIBS="$LIBINTL"
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999 ac_header_dirent=no
11000 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11001 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11002 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11003 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005 $as_echo_n "(cached) " >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <sys/types.h>
11014 #include <$ac_hdr>
11015
11016 int
11017 main ()
11018 {
11019 if ((DIR *) 0)
11020 return 0;
11021 ;
11022 return 0;
11023 }
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11032 $as_echo "$ac_try_echo") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest.$ac_objext; then
11043 eval "$as_ac_Header=yes"
11044 else
11045 $as_echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 eval "$as_ac_Header=no"
11049 fi
11050
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 fi
11053 ac_res=`eval 'as_val=${'$as_ac_Header'}
11054 $as_echo "$as_val"'`
11055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11056 $as_echo "$ac_res" >&6; }
11057 as_val=`eval 'as_val=${'$as_ac_Header'}
11058 $as_echo "$as_val"'`
11059 if test "x$as_val" = x""yes; then
11060 cat >>confdefs.h <<_ACEOF
11061 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11062 _ACEOF
11063
11064 ac_header_dirent=$ac_hdr; break
11065 fi
11066
11067 done
11068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11069 if test $ac_header_dirent = dirent.h; then
11070 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11071 $as_echo_n "checking for library containing opendir... " >&6; }
11072 if test "${ac_cv_search_opendir+set}" = set; then
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_func_search_save_LIBS=$LIBS
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082
11083 /* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 char opendir ();
11090 int
11091 main ()
11092 {
11093 return opendir ();
11094 ;
11095 return 0;
11096 }
11097 _ACEOF
11098 for ac_lib in '' dir; do
11099 if test -z "$ac_lib"; then
11100 ac_res="none required"
11101 else
11102 ac_res=-l$ac_lib
11103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11104 fi
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110 esac
11111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_link") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest$ac_exeext && {
11123 test "$cross_compiling" = yes ||
11124 $as_test_x conftest$ac_exeext
11125 }; then
11126 ac_cv_search_opendir=$ac_res
11127 else
11128 $as_echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11130
11131
11132 fi
11133
11134 rm -rf conftest.dSYM
11135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11136 conftest$ac_exeext
11137 if test "${ac_cv_search_opendir+set}" = set; then
11138 break
11139 fi
11140 done
11141 if test "${ac_cv_search_opendir+set}" = set; then
11142 :
11143 else
11144 ac_cv_search_opendir=no
11145 fi
11146 rm conftest.$ac_ext
11147 LIBS=$ac_func_search_save_LIBS
11148 fi
11149 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11150 $as_echo "$ac_cv_search_opendir" >&6; }
11151 ac_res=$ac_cv_search_opendir
11152 if test "$ac_res" != no; then
11153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11154
11155 fi
11156
11157 else
11158 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11159 $as_echo_n "checking for library containing opendir... " >&6; }
11160 if test "${ac_cv_search_opendir+set}" = set; then
11161 $as_echo_n "(cached) " >&6
11162 else
11163 ac_func_search_save_LIBS=$LIBS
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170
11171 /* Override any GCC internal prototype to avoid an error.
11172 Use char because int might match the return type of a GCC
11173 builtin and then its argument prototype would still apply. */
11174 #ifdef __cplusplus
11175 extern "C"
11176 #endif
11177 char opendir ();
11178 int
11179 main ()
11180 {
11181 return opendir ();
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 for ac_lib in '' x; do
11187 if test -z "$ac_lib"; then
11188 ac_res="none required"
11189 else
11190 ac_res=-l$ac_lib
11191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11192 fi
11193 rm -f conftest.$ac_objext conftest$ac_exeext
11194 if { (ac_try="$ac_link"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198 esac
11199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11200 $as_echo "$ac_try_echo") >&5
11201 (eval "$ac_link") 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest$ac_exeext && {
11211 test "$cross_compiling" = yes ||
11212 $as_test_x conftest$ac_exeext
11213 }; then
11214 ac_cv_search_opendir=$ac_res
11215 else
11216 $as_echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219
11220 fi
11221
11222 rm -rf conftest.dSYM
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext
11225 if test "${ac_cv_search_opendir+set}" = set; then
11226 break
11227 fi
11228 done
11229 if test "${ac_cv_search_opendir+set}" = set; then
11230 :
11231 else
11232 ac_cv_search_opendir=no
11233 fi
11234 rm conftest.$ac_ext
11235 LIBS=$ac_func_search_save_LIBS
11236 fi
11237 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11238 $as_echo "$ac_cv_search_opendir" >&6; }
11239 ac_res=$ac_cv_search_opendir
11240 if test "$ac_res" != no; then
11241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11242
11243 fi
11244
11245 fi
11246
11247 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11248 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11249 if test "${ac_cv_header_time+set}" = set; then
11250 $as_echo_n "(cached) " >&6
11251 else
11252 cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h. */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <sys/types.h>
11259 #include <sys/time.h>
11260 #include <time.h>
11261
11262 int
11263 main ()
11264 {
11265 if ((struct tm *) 0)
11266 return 0;
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278 $as_echo "$ac_try_echo") >&5
11279 (eval "$ac_compile") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
11289 ac_cv_header_time=yes
11290 else
11291 $as_echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_cv_header_time=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 fi
11299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11300 $as_echo "$ac_cv_header_time" >&6; }
11301 if test $ac_cv_header_time = yes; then
11302
11303 cat >>confdefs.h <<\_ACEOF
11304 #define TIME_WITH_SYS_TIME 1
11305 _ACEOF
11306
11307 fi
11308
11309
11310
11311
11312 for ac_header in inttypes.h
11313 do
11314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11317 $as_echo_n "checking for $ac_header... " >&6; }
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 $as_echo_n "(cached) " >&6
11320 fi
11321 ac_res=`eval 'as_val=${'$as_ac_Header'}
11322 $as_echo "$as_val"'`
11323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11324 $as_echo "$ac_res" >&6; }
11325 else
11326 # Is the header compilable?
11327 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328 $as_echo_n "checking $ac_header usability... " >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 $ac_includes_default
11336 #include <$ac_header>
11337 _ACEOF
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11345 $as_echo "$ac_try_echo") >&5
11346 (eval "$ac_compile") 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest.$ac_objext; then
11356 ac_header_compiler=yes
11357 else
11358 $as_echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_header_compiler=no
11362 fi
11363
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11366 $as_echo "$ac_header_compiler" >&6; }
11367
11368 # Is the header present?
11369 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11370 $as_echo_n "checking $ac_header presence... " >&6; }
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <$ac_header>
11378 _ACEOF
11379 if { (ac_try="$ac_cpp conftest.$ac_ext"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11385 $as_echo "$ac_try_echo") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null && {
11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 }; then
11396 ac_header_preproc=yes
11397 else
11398 $as_echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 ac_header_preproc=no
11402 fi
11403
11404 rm -f conftest.err conftest.$ac_ext
11405 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 $as_echo "$ac_header_preproc" >&6; }
11407
11408 # So? What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410 yes:no: )
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415 ac_header_preproc=yes
11416 ;;
11417 no:yes:* )
11418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11421 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11425 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430 ( cat <<\_ASBOX
11431 ## ------------------------------- ##
11432 ## Report this to bug-bash@gnu.org ##
11433 ## ------------------------------- ##
11434 _ASBOX
11435 ) | sed "s/^/$as_me: WARNING: /" >&2
11436 ;;
11437 esac
11438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 $as_echo_n "checking for $ac_header... " >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 $as_echo_n "(cached) " >&6
11442 else
11443 eval "$as_ac_Header=\$ac_header_preproc"
11444 fi
11445 ac_res=`eval 'as_val=${'$as_ac_Header'}
11446 $as_echo "$as_val"'`
11447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11448 $as_echo "$ac_res" >&6; }
11449
11450 fi
11451 as_val=`eval 'as_val=${'$as_ac_Header'}
11452 $as_echo "$as_val"'`
11453 if test "x$as_val" = x""yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 _ACEOF
11457
11458 fi
11459
11460 done
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11484 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11485 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
11486 do
11487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 $as_echo_n "checking for $ac_header... " >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 $as_echo_n "(cached) " >&6
11493 fi
11494 ac_res=`eval 'as_val=${'$as_ac_Header'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497 $as_echo "$ac_res" >&6; }
11498 else
11499 # Is the header compilable?
11500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 $as_echo_n "checking $ac_header usability... " >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11518 $as_echo "$ac_try_echo") >&5
11519 (eval "$ac_compile") 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } && {
11526 test -z "$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 } && test -s conftest.$ac_objext; then
11529 ac_header_compiler=yes
11530 else
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 ac_header_compiler=no
11535 fi
11536
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 $as_echo "$ac_header_compiler" >&6; }
11540
11541 # Is the header present?
11542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11543 $as_echo_n "checking $ac_header presence... " >&6; }
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <$ac_header>
11551 _ACEOF
11552 if { (ac_try="$ac_cpp conftest.$ac_ext"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11558 $as_echo "$ac_try_echo") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null && {
11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11568 }; then
11569 ac_header_preproc=yes
11570 else
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574 ac_header_preproc=no
11575 fi
11576
11577 rm -f conftest.err conftest.$ac_ext
11578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 $as_echo "$ac_header_preproc" >&6; }
11580
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11583 yes:no: )
11584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11589 ;;
11590 no:yes:* )
11591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11603 ( cat <<\_ASBOX
11604 ## ------------------------------- ##
11605 ## Report this to bug-bash@gnu.org ##
11606 ## ------------------------------- ##
11607 _ASBOX
11608 ) | sed "s/^/$as_me: WARNING: /" >&2
11609 ;;
11610 esac
11611 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 $as_echo_n "checking for $ac_header... " >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614 $as_echo_n "(cached) " >&6
11615 else
11616 eval "$as_ac_Header=\$ac_header_preproc"
11617 fi
11618 ac_res=`eval 'as_val=${'$as_ac_Header'}
11619 $as_echo "$as_val"'`
11620 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11621 $as_echo "$ac_res" >&6; }
11622
11623 fi
11624 as_val=`eval 'as_val=${'$as_ac_Header'}
11625 $as_echo "$as_val"'`
11626 if test "x$as_val" = x""yes; then
11627 cat >>confdefs.h <<_ACEOF
11628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11629 _ACEOF
11630
11631 fi
11632
11633 done
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11648 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11649 sys/time.h sys/times.h sys/types.h sys/wait.h
11650 do
11651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11654 $as_echo_n "checking for $ac_header... " >&6; }
11655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11656 $as_echo_n "(cached) " >&6
11657 fi
11658 ac_res=`eval 'as_val=${'$as_ac_Header'}
11659 $as_echo "$as_val"'`
11660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11661 $as_echo "$ac_res" >&6; }
11662 else
11663 # Is the header compilable?
11664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11665 $as_echo_n "checking $ac_header usability... " >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h. */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 $ac_includes_default
11673 #include <$ac_header>
11674 _ACEOF
11675 rm -f conftest.$ac_objext
11676 if { (ac_try="$ac_compile"
11677 case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680 esac
11681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11682 $as_echo "$ac_try_echo") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
11693 ac_header_compiler=yes
11694 else
11695 $as_echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_header_compiler=no
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 $as_echo "$ac_header_compiler" >&6; }
11704
11705 # Is the header present?
11706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707 $as_echo_n "checking $ac_header presence... " >&6; }
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <$ac_header>
11715 _ACEOF
11716 if { (ac_try="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720 esac
11721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11722 $as_echo "$ac_try_echo") >&5
11723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } >/dev/null && {
11730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 }; then
11733 ac_header_preproc=yes
11734 else
11735 $as_echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 ac_header_preproc=no
11739 fi
11740
11741 rm -f conftest.err conftest.$ac_ext
11742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 $as_echo "$ac_header_preproc" >&6; }
11744
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 yes:no: )
11748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11753 ;;
11754 no:yes:* )
11755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767 ( cat <<\_ASBOX
11768 ## ------------------------------- ##
11769 ## Report this to bug-bash@gnu.org ##
11770 ## ------------------------------- ##
11771 _ASBOX
11772 ) | sed "s/^/$as_me: WARNING: /" >&2
11773 ;;
11774 esac
11775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 $as_echo_n "checking for $ac_header... " >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 $as_echo_n "(cached) " >&6
11779 else
11780 eval "$as_ac_Header=\$ac_header_preproc"
11781 fi
11782 ac_res=`eval 'as_val=${'$as_ac_Header'}
11783 $as_echo "$as_val"'`
11784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11785 $as_echo "$ac_res" >&6; }
11786
11787 fi
11788 as_val=`eval 'as_val=${'$as_ac_Header'}
11789 $as_echo "$as_val"'`
11790 if test "x$as_val" = x""yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11793 _ACEOF
11794
11795 fi
11796
11797 done
11798
11799
11800
11801 for ac_header in netinet/in.h arpa/inet.h
11802 do
11803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11806 $as_echo_n "checking for $ac_header... " >&6; }
11807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11808 $as_echo_n "(cached) " >&6
11809 fi
11810 ac_res=`eval 'as_val=${'$as_ac_Header'}
11811 $as_echo "$as_val"'`
11812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11813 $as_echo "$ac_res" >&6; }
11814 else
11815 # Is the header compilable?
11816 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11817 $as_echo_n "checking $ac_header usability... " >&6; }
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <$ac_header>
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11834 $as_echo "$ac_try_echo") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.$ac_objext; then
11845 ac_header_compiler=yes
11846 else
11847 $as_echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 ac_header_compiler=no
11851 fi
11852
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11855 $as_echo "$ac_header_compiler" >&6; }
11856
11857 # Is the header present?
11858 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11859 $as_echo_n "checking $ac_header presence... " >&6; }
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h. */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 #include <$ac_header>
11867 _ACEOF
11868 if { (ac_try="$ac_cpp conftest.$ac_ext"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872 esac
11873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11874 $as_echo "$ac_try_echo") >&5
11875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } >/dev/null && {
11882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 }; then
11885 ac_header_preproc=yes
11886 else
11887 $as_echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 ac_header_preproc=no
11891 fi
11892
11893 rm -f conftest.err conftest.$ac_ext
11894 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11895 $as_echo "$ac_header_preproc" >&6; }
11896
11897 # So? What about this header?
11898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11899 yes:no: )
11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11903 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11904 ac_header_preproc=yes
11905 ;;
11906 no:yes:* )
11907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11908 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11910 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11912 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11914 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11918 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11919 ( cat <<\_ASBOX
11920 ## ------------------------------- ##
11921 ## Report this to bug-bash@gnu.org ##
11922 ## ------------------------------- ##
11923 _ASBOX
11924 ) | sed "s/^/$as_me: WARNING: /" >&2
11925 ;;
11926 esac
11927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11928 $as_echo_n "checking for $ac_header... " >&6; }
11929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11930 $as_echo_n "(cached) " >&6
11931 else
11932 eval "$as_ac_Header=\$ac_header_preproc"
11933 fi
11934 ac_res=`eval 'as_val=${'$as_ac_Header'}
11935 $as_echo "$as_val"'`
11936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11937 $as_echo "$ac_res" >&6; }
11938
11939 fi
11940 as_val=`eval 'as_val=${'$as_ac_Header'}
11941 $as_echo "$as_val"'`
11942 if test "x$as_val" = x""yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11945 _ACEOF
11946
11947 fi
11948
11949 done
11950
11951
11952 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11953 $as_echo_n "checking for sys/ptem.h... " >&6; }
11954 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11956 else
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963
11964 #if HAVE_SYS_STREAM_H
11965 # include <sys/stream.h>
11966 #endif
11967
11968
11969 #include <sys/ptem.h>
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11978 $as_echo "$ac_try_echo") >&5
11979 (eval "$ac_compile") 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest.$ac_objext; then
11989 ac_cv_header_sys_ptem_h=yes
11990 else
11991 $as_echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_cv_header_sys_ptem_h=no
11995 fi
11996
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 fi
11999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12000 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
12001
12002
12003
12004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12005 # for constant arguments. Useless!
12006 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12007 $as_echo_n "checking for working alloca.h... " >&6; }
12008 if test "${ac_cv_working_alloca_h+set}" = set; then
12009 $as_echo_n "(cached) " >&6
12010 else
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 #include <alloca.h>
12018 int
12019 main ()
12020 {
12021 char *p = (char *) alloca (2 * sizeof (int));
12022 if (p) return 0;
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035 (eval "$ac_link") 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest$ac_exeext && {
12045 test "$cross_compiling" = yes ||
12046 $as_test_x conftest$ac_exeext
12047 }; then
12048 ac_cv_working_alloca_h=yes
12049 else
12050 $as_echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_cv_working_alloca_h=no
12054 fi
12055
12056 rm -rf conftest.dSYM
12057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12058 conftest$ac_exeext conftest.$ac_ext
12059 fi
12060 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12061 $as_echo "$ac_cv_working_alloca_h" >&6; }
12062 if test $ac_cv_working_alloca_h = yes; then
12063
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_ALLOCA_H 1
12066 _ACEOF
12067
12068 fi
12069
12070 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12071 $as_echo_n "checking for alloca... " >&6; }
12072 if test "${ac_cv_func_alloca_works+set}" = set; then
12073 $as_echo_n "(cached) " >&6
12074 else
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h. */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 #ifdef __GNUC__
12082 # define alloca __builtin_alloca
12083 #else
12084 # ifdef _MSC_VER
12085 # include <malloc.h>
12086 # define alloca _alloca
12087 # else
12088 # ifdef HAVE_ALLOCA_H
12089 # include <alloca.h>
12090 # else
12091 # ifdef _AIX
12092 #pragma alloca
12093 # else
12094 # ifndef alloca /* predefined by HP cc +Olibcalls */
12095 char *alloca ();
12096 # endif
12097 # endif
12098 # endif
12099 # endif
12100 #endif
12101
12102 int
12103 main ()
12104 {
12105 char *p = (char *) alloca (1);
12106 if (p) return 0;
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12118 $as_echo "$ac_try_echo") >&5
12119 (eval "$ac_link") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest$ac_exeext && {
12129 test "$cross_compiling" = yes ||
12130 $as_test_x conftest$ac_exeext
12131 }; then
12132 ac_cv_func_alloca_works=yes
12133 else
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137 ac_cv_func_alloca_works=no
12138 fi
12139
12140 rm -rf conftest.dSYM
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142 conftest$ac_exeext conftest.$ac_ext
12143 fi
12144 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12145 $as_echo "$ac_cv_func_alloca_works" >&6; }
12146
12147 if test $ac_cv_func_alloca_works = yes; then
12148
12149 cat >>confdefs.h <<\_ACEOF
12150 #define HAVE_ALLOCA 1
12151 _ACEOF
12152
12153 else
12154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12155 # that cause trouble. Some versions do not even contain alloca or
12156 # contain a buggy version. If you still want to use their alloca,
12157 # use ar to extract alloca.o from them instead of compiling alloca.c.
12158
12159 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12160
12161 cat >>confdefs.h <<\_ACEOF
12162 #define C_ALLOCA 1
12163 _ACEOF
12164
12165
12166 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12167 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12168 if test "${ac_cv_os_cray+set}" = set; then
12169 $as_echo_n "(cached) " >&6
12170 else
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 #if defined CRAY && ! defined CRAY2
12178 webecray
12179 #else
12180 wenotbecray
12181 #endif
12182
12183 _ACEOF
12184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12185 $EGREP "webecray" >/dev/null 2>&1; then
12186 ac_cv_os_cray=yes
12187 else
12188 ac_cv_os_cray=no
12189 fi
12190 rm -f conftest*
12191
12192 fi
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12194 $as_echo "$ac_cv_os_cray" >&6; }
12195 if test $ac_cv_os_cray = yes; then
12196 for ac_func in _getb67 GETB67 getb67; do
12197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12199 $as_echo_n "checking for $ac_func... " >&6; }
12200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12201 $as_echo_n "(cached) " >&6
12202 else
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12211 #define $ac_func innocuous_$ac_func
12212
12213 /* System header to define __stub macros and hopefully few prototypes,
12214 which can conflict with char $ac_func (); below.
12215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12216 <limits.h> exists even on freestanding compilers. */
12217
12218 #ifdef __STDC__
12219 # include <limits.h>
12220 #else
12221 # include <assert.h>
12222 #endif
12223
12224 #undef $ac_func
12225
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char $ac_func ();
12233 /* The GNU C library defines this for functions which it implements
12234 to always fail with ENOSYS. Some functions are actually named
12235 something starting with __ and the normal name is an alias. */
12236 #if defined __stub_$ac_func || defined __stub___$ac_func
12237 choke me
12238 #endif
12239
12240 int
12241 main ()
12242 {
12243 return $ac_func ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_link") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext && {
12266 test "$cross_compiling" = yes ||
12267 $as_test_x conftest$ac_exeext
12268 }; then
12269 eval "$as_ac_var=yes"
12270 else
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 eval "$as_ac_var=no"
12275 fi
12276
12277 rm -rf conftest.dSYM
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279 conftest$ac_exeext conftest.$ac_ext
12280 fi
12281 ac_res=`eval 'as_val=${'$as_ac_var'}
12282 $as_echo "$as_val"'`
12283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12284 $as_echo "$ac_res" >&6; }
12285 as_val=`eval 'as_val=${'$as_ac_var'}
12286 $as_echo "$as_val"'`
12287 if test "x$as_val" = x""yes; then
12288
12289 cat >>confdefs.h <<_ACEOF
12290 #define CRAY_STACKSEG_END $ac_func
12291 _ACEOF
12292
12293 break
12294 fi
12295
12296 done
12297 fi
12298
12299 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12300 $as_echo_n "checking stack direction for C alloca... " >&6; }
12301 if test "${ac_cv_c_stack_direction+set}" = set; then
12302 $as_echo_n "(cached) " >&6
12303 else
12304 if test "$cross_compiling" = yes; then
12305 ac_cv_c_stack_direction=0
12306 else
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h. */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 $ac_includes_default
12314 int
12315 find_stack_direction ()
12316 {
12317 static char *addr = 0;
12318 auto char dummy;
12319 if (addr == 0)
12320 {
12321 addr = &dummy;
12322 return find_stack_direction ();
12323 }
12324 else
12325 return (&dummy > addr) ? 1 : -1;
12326 }
12327
12328 int
12329 main ()
12330 {
12331 return find_stack_direction () < 0;
12332 }
12333 _ACEOF
12334 rm -f conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339 esac
12340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12341 $as_echo "$ac_try_echo") >&5
12342 (eval "$ac_link") 2>&5
12343 ac_status=$?
12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12346 { (case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12351 $as_echo "$ac_try_echo") >&5
12352 (eval "$ac_try") 2>&5
12353 ac_status=$?
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_c_stack_direction=1
12357 else
12358 $as_echo "$as_me: program exited with status $ac_status" >&5
12359 $as_echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ( exit $ac_status )
12363 ac_cv_c_stack_direction=-1
12364 fi
12365 rm -rf conftest.dSYM
12366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12367 fi
12368
12369
12370 fi
12371 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12372 $as_echo "$ac_cv_c_stack_direction" >&6; }
12373
12374 cat >>confdefs.h <<_ACEOF
12375 #define STACK_DIRECTION $ac_cv_c_stack_direction
12376 _ACEOF
12377
12378
12379 fi
12380
12381 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12382 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12383 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12384 $as_echo_n "(cached) " >&6
12385 else
12386 # Use it with a single arg.
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12394 int
12395 main ()
12396 {
12397 getpgrp (0);
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.$ac_objext; then
12420 ac_cv_func_getpgrp_void=no
12421 else
12422 $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_cv_func_getpgrp_void=yes
12426 fi
12427
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429
12430 fi
12431 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12432 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12433 if test $ac_cv_func_getpgrp_void = yes; then
12434
12435 cat >>confdefs.h <<\_ACEOF
12436 #define GETPGRP_VOID 1
12437 _ACEOF
12438
12439 fi
12440
12441 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12442 $as_echo_n "(cached) " >&6
12443 else
12444 ac_cv_func_setvbuf_reversed=no
12445 fi
12446
12447
12448
12449 for ac_func in vprintf
12450 do
12451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 $as_echo_n "checking for $ac_func... " >&6; }
12454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12455 $as_echo_n "(cached) " >&6
12456 else
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12465 #define $ac_func innocuous_$ac_func
12466
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char $ac_func (); below.
12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 <limits.h> exists even on freestanding compilers. */
12471
12472 #ifdef __STDC__
12473 # include <limits.h>
12474 #else
12475 # include <assert.h>
12476 #endif
12477
12478 #undef $ac_func
12479
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char $ac_func ();
12487 /* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490 #if defined __stub_$ac_func || defined __stub___$ac_func
12491 choke me
12492 #endif
12493
12494 int
12495 main ()
12496 {
12497 return $ac_func ();
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509 $as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext && {
12520 test "$cross_compiling" = yes ||
12521 $as_test_x conftest$ac_exeext
12522 }; then
12523 eval "$as_ac_var=yes"
12524 else
12525 $as_echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12527
12528 eval "$as_ac_var=no"
12529 fi
12530
12531 rm -rf conftest.dSYM
12532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533 conftest$ac_exeext conftest.$ac_ext
12534 fi
12535 ac_res=`eval 'as_val=${'$as_ac_var'}
12536 $as_echo "$as_val"'`
12537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12538 $as_echo "$ac_res" >&6; }
12539 as_val=`eval 'as_val=${'$as_ac_var'}
12540 $as_echo "$as_val"'`
12541 if test "x$as_val" = x""yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12544 _ACEOF
12545
12546 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12547 $as_echo_n "checking for _doprnt... " >&6; }
12548 if test "${ac_cv_func__doprnt+set}" = set; then
12549 $as_echo_n "(cached) " >&6
12550 else
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12559 #define _doprnt innocuous__doprnt
12560
12561 /* System header to define __stub macros and hopefully few prototypes,
12562 which can conflict with char _doprnt (); below.
12563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12564 <limits.h> exists even on freestanding compilers. */
12565
12566 #ifdef __STDC__
12567 # include <limits.h>
12568 #else
12569 # include <assert.h>
12570 #endif
12571
12572 #undef _doprnt
12573
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12577 #ifdef __cplusplus
12578 extern "C"
12579 #endif
12580 char _doprnt ();
12581 /* The GNU C library defines this for functions which it implements
12582 to always fail with ENOSYS. Some functions are actually named
12583 something starting with __ and the normal name is an alias. */
12584 #if defined __stub__doprnt || defined __stub____doprnt
12585 choke me
12586 #endif
12587
12588 int
12589 main ()
12590 {
12591 return _doprnt ();
12592 ;
12593 return 0;
12594 }
12595 _ACEOF
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12603 $as_echo "$ac_try_echo") >&5
12604 (eval "$ac_link") 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest$ac_exeext && {
12614 test "$cross_compiling" = yes ||
12615 $as_test_x conftest$ac_exeext
12616 }; then
12617 ac_cv_func__doprnt=yes
12618 else
12619 $as_echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 ac_cv_func__doprnt=no
12623 fi
12624
12625 rm -rf conftest.dSYM
12626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12627 conftest$ac_exeext conftest.$ac_ext
12628 fi
12629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12630 $as_echo "$ac_cv_func__doprnt" >&6; }
12631 if test "x$ac_cv_func__doprnt" = x""yes; then
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_DOPRNT 1
12635 _ACEOF
12636
12637 fi
12638
12639 fi
12640 done
12641
12642
12643 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12644 $as_echo_n "checking for working strcoll... " >&6; }
12645 if test "${ac_cv_func_strcoll_works+set}" = set; then
12646 $as_echo_n "(cached) " >&6
12647 else
12648 if test "$cross_compiling" = yes; then
12649 ac_cv_func_strcoll_works=no
12650 else
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h. */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 $ac_includes_default
12658 int
12659 main ()
12660 {
12661 return (strcoll ("abc", "def") >= 0 ||
12662 strcoll ("ABC", "DEF") >= 0 ||
12663 strcoll ("123", "456") >= 0)
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 rm -f conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12673 esac
12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12675 $as_echo "$ac_try_echo") >&5
12676 (eval "$ac_link") 2>&5
12677 ac_status=$?
12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12685 $as_echo "$ac_try_echo") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 ac_cv_func_strcoll_works=yes
12691 else
12692 $as_echo "$as_me: program exited with status $ac_status" >&5
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ( exit $ac_status )
12697 ac_cv_func_strcoll_works=no
12698 fi
12699 rm -rf conftest.dSYM
12700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12701 fi
12702
12703
12704 fi
12705 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12706 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12707 if test $ac_cv_func_strcoll_works = yes; then
12708
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_STRCOLL 1
12711 _ACEOF
12712
12713 fi
12714
12715
12716
12717 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12718 MALLOC_TARGET=alloca
12719 MALLOC_SRC=alloca.c
12720
12721 MALLOC_LIB='-lmalloc'
12722 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12723 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12724 MALLOC_DEP='$(MALLOC_LIBRARY)'
12725 fi
12726
12727 if test "$ac_cv_func_vprintf" = no; then
12728 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12729 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h. */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 #include <stdio.h>
12737
12738 _ACEOF
12739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12740 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12741 ac_cv_func_vprintf=yes
12742 fi
12743 rm -f conftest*
12744
12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12746 $as_echo "$ac_cv_func_vprintf" >&6; }
12747 if test $ac_cv_func_vprintf = yes; then
12748 cat >>confdefs.h <<\_ACEOF
12749 #define HAVE_VPRINTF 1
12750 _ACEOF
12751
12752 fi
12753 fi
12754
12755 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12756 case " $LIBOBJS " in
12757 *" vprint.$ac_objext "* ) ;;
12758 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12759 ;;
12760 esac
12761
12762 fi
12763
12764 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12765 $as_echo_n "checking return type of signal handlers... " >&6; }
12766 if test "${ac_cv_type_signal+set}" = set; then
12767 $as_echo_n "(cached) " >&6
12768 else
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775 #include <sys/types.h>
12776 #include <signal.h>
12777
12778 int
12779 main ()
12780 {
12781 return *(signal (0, 0)) (0) == 1;
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 ac_cv_type_signal=int
12805 else
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809 ac_cv_type_signal=void
12810 fi
12811
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 fi
12814 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12815 $as_echo "$ac_cv_type_signal" >&6; }
12816
12817 cat >>confdefs.h <<_ACEOF
12818 #define RETSIGTYPE $ac_cv_type_signal
12819 _ACEOF
12820
12821
12822
12823 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12824 $as_echo_n "checking for __setostype... " >&6; }
12825 if test "${ac_cv_func___setostype+set}" = set; then
12826 $as_echo_n "(cached) " >&6
12827 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836 #define __setostype innocuous___setostype
12837
12838 /* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char __setostype (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12842
12843 #ifdef __STDC__
12844 # include <limits.h>
12845 #else
12846 # include <assert.h>
12847 #endif
12848
12849 #undef __setostype
12850
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char __setostype ();
12858 /* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861 #if defined __stub___setostype || defined __stub_____setostype
12862 choke me
12863 #endif
12864
12865 int
12866 main ()
12867 {
12868 return __setostype ();
12869 ;
12870 return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest$ac_exeext
12893 }; then
12894 ac_cv_func___setostype=yes
12895 else
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_cv_func___setostype=no
12900 fi
12901
12902 rm -rf conftest.dSYM
12903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12904 conftest$ac_exeext conftest.$ac_ext
12905 fi
12906 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12907 $as_echo "$ac_cv_func___setostype" >&6; }
12908 if test "x$ac_cv_func___setostype" = x""yes; then
12909 cat >>confdefs.h <<\_ACEOF
12910 #define HAVE_SETOSTYPE 1
12911 _ACEOF
12912
12913 fi
12914
12915 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12916 $as_echo_n "checking for wait3... " >&6; }
12917 if test "${ac_cv_func_wait3+set}" = set; then
12918 $as_echo_n "(cached) " >&6
12919 else
12920 cat >conftest.$ac_ext <<_ACEOF
12921 /* confdefs.h. */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12928 #define wait3 innocuous_wait3
12929
12930 /* System header to define __stub macros and hopefully few prototypes,
12931 which can conflict with char wait3 (); below.
12932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12933 <limits.h> exists even on freestanding compilers. */
12934
12935 #ifdef __STDC__
12936 # include <limits.h>
12937 #else
12938 # include <assert.h>
12939 #endif
12940
12941 #undef wait3
12942
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12946 #ifdef __cplusplus
12947 extern "C"
12948 #endif
12949 char wait3 ();
12950 /* The GNU C library defines this for functions which it implements
12951 to always fail with ENOSYS. Some functions are actually named
12952 something starting with __ and the normal name is an alias. */
12953 #if defined __stub_wait3 || defined __stub___wait3
12954 choke me
12955 #endif
12956
12957 int
12958 main ()
12959 {
12960 return wait3 ();
12961 ;
12962 return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970 esac
12971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972 $as_echo "$ac_try_echo") >&5
12973 (eval "$ac_link") 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest$ac_exeext && {
12983 test "$cross_compiling" = yes ||
12984 $as_test_x conftest$ac_exeext
12985 }; then
12986 ac_cv_func_wait3=yes
12987 else
12988 $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991 ac_cv_func_wait3=no
12992 fi
12993
12994 rm -rf conftest.dSYM
12995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996 conftest$ac_exeext conftest.$ac_ext
12997 fi
12998 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12999 $as_echo "$ac_cv_func_wait3" >&6; }
13000 if test "x$ac_cv_func_wait3" = x""yes; then
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_WAIT3 1
13003 _ACEOF
13004
13005 fi
13006
13007 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
13008 $as_echo_n "checking for isinf... " >&6; }
13009 if test "${ac_cv_func_isinf+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13011 else
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13020 #define isinf innocuous_isinf
13021
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char isinf (); below.
13024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025 <limits.h> exists even on freestanding compilers. */
13026
13027 #ifdef __STDC__
13028 # include <limits.h>
13029 #else
13030 # include <assert.h>
13031 #endif
13032
13033 #undef isinf
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char isinf ();
13042 /* The GNU C library defines this for functions which it implements
13043 to always fail with ENOSYS. Some functions are actually named
13044 something starting with __ and the normal name is an alias. */
13045 #if defined __stub_isinf || defined __stub___isinf
13046 choke me
13047 #endif
13048
13049 int
13050 main ()
13051 {
13052 return isinf ();
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (ac_try="$ac_link"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13064 $as_echo "$ac_try_echo") >&5
13065 (eval "$ac_link") 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest$ac_exeext && {
13075 test "$cross_compiling" = yes ||
13076 $as_test_x conftest$ac_exeext
13077 }; then
13078 ac_cv_func_isinf=yes
13079 else
13080 $as_echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 ac_cv_func_isinf=no
13084 fi
13085
13086 rm -rf conftest.dSYM
13087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13088 conftest$ac_exeext conftest.$ac_ext
13089 fi
13090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13091 $as_echo "$ac_cv_func_isinf" >&6; }
13092 if test "x$ac_cv_func_isinf" = x""yes; then
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_ISINF_IN_LIBC 1
13095 _ACEOF
13096
13097 fi
13098
13099 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13100 $as_echo_n "checking for isnan... " >&6; }
13101 if test "${ac_cv_func_isnan+set}" = set; then
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13112 #define isnan innocuous_isnan
13113
13114 /* System header to define __stub macros and hopefully few prototypes,
13115 which can conflict with char isnan (); below.
13116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117 <limits.h> exists even on freestanding compilers. */
13118
13119 #ifdef __STDC__
13120 # include <limits.h>
13121 #else
13122 # include <assert.h>
13123 #endif
13124
13125 #undef isnan
13126
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 char isnan ();
13134 /* The GNU C library defines this for functions which it implements
13135 to always fail with ENOSYS. Some functions are actually named
13136 something starting with __ and the normal name is an alias. */
13137 #if defined __stub_isnan || defined __stub___isnan
13138 choke me
13139 #endif
13140
13141 int
13142 main ()
13143 {
13144 return isnan ();
13145 ;
13146 return 0;
13147 }
13148 _ACEOF
13149 rm -f conftest.$ac_objext conftest$ac_exeext
13150 if { (ac_try="$ac_link"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13154 esac
13155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13156 $as_echo "$ac_try_echo") >&5
13157 (eval "$ac_link") 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } && {
13164 test -z "$ac_c_werror_flag" ||
13165 test ! -s conftest.err
13166 } && test -s conftest$ac_exeext && {
13167 test "$cross_compiling" = yes ||
13168 $as_test_x conftest$ac_exeext
13169 }; then
13170 ac_cv_func_isnan=yes
13171 else
13172 $as_echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_cv_func_isnan=no
13176 fi
13177
13178 rm -rf conftest.dSYM
13179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13180 conftest$ac_exeext conftest.$ac_ext
13181 fi
13182 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13183 $as_echo "$ac_cv_func_isnan" >&6; }
13184 if test "x$ac_cv_func_isnan" = x""yes; then
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_ISNAN_IN_LIBC 1
13187 _ACEOF
13188
13189 fi
13190
13191
13192 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13193 $as_echo_n "checking for mkfifo... " >&6; }
13194 if test "${ac_cv_func_mkfifo+set}" = set; then
13195 $as_echo_n "(cached) " >&6
13196 else
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h. */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13205 #define mkfifo innocuous_mkfifo
13206
13207 /* System header to define __stub macros and hopefully few prototypes,
13208 which can conflict with char mkfifo (); below.
13209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13210 <limits.h> exists even on freestanding compilers. */
13211
13212 #ifdef __STDC__
13213 # include <limits.h>
13214 #else
13215 # include <assert.h>
13216 #endif
13217
13218 #undef mkfifo
13219
13220 /* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13223 #ifdef __cplusplus
13224 extern "C"
13225 #endif
13226 char mkfifo ();
13227 /* The GNU C library defines this for functions which it implements
13228 to always fail with ENOSYS. Some functions are actually named
13229 something starting with __ and the normal name is an alias. */
13230 #if defined __stub_mkfifo || defined __stub___mkfifo
13231 choke me
13232 #endif
13233
13234 int
13235 main ()
13236 {
13237 return mkfifo ();
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247 esac
13248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13249 $as_echo "$ac_try_echo") >&5
13250 (eval "$ac_link") 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } && {
13257 test -z "$ac_c_werror_flag" ||
13258 test ! -s conftest.err
13259 } && test -s conftest$ac_exeext && {
13260 test "$cross_compiling" = yes ||
13261 $as_test_x conftest$ac_exeext
13262 }; then
13263 ac_cv_func_mkfifo=yes
13264 else
13265 $as_echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_cv_func_mkfifo=no
13269 fi
13270
13271 rm -rf conftest.dSYM
13272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13273 conftest$ac_exeext conftest.$ac_ext
13274 fi
13275 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13276 $as_echo "$ac_cv_func_mkfifo" >&6; }
13277 if test "x$ac_cv_func_mkfifo" = x""yes; then
13278 cat >>confdefs.h <<\_ACEOF
13279 #define HAVE_MKFIFO 1
13280 _ACEOF
13281
13282 else
13283 cat >>confdefs.h <<\_ACEOF
13284 #define MKFIFO_MISSING 1
13285 _ACEOF
13286
13287 fi
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13314 getpagesize getpeername getrlimit getrusage gettimeofday \
13315 kill killpg lstat readlink sbrk select setdtablesize \
13316 setitimer tcgetpgrp uname ulimit waitpid
13317 do
13318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13319 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13320 $as_echo_n "checking for $ac_func... " >&6; }
13321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13322 $as_echo_n "(cached) " >&6
13323 else
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13332 #define $ac_func innocuous_$ac_func
13333
13334 /* System header to define __stub macros and hopefully few prototypes,
13335 which can conflict with char $ac_func (); below.
13336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13337 <limits.h> exists even on freestanding compilers. */
13338
13339 #ifdef __STDC__
13340 # include <limits.h>
13341 #else
13342 # include <assert.h>
13343 #endif
13344
13345 #undef $ac_func
13346
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 char $ac_func ();
13354 /* The GNU C library defines this for functions which it implements
13355 to always fail with ENOSYS. Some functions are actually named
13356 something starting with __ and the normal name is an alias. */
13357 #if defined __stub_$ac_func || defined __stub___$ac_func
13358 choke me
13359 #endif
13360
13361 int
13362 main ()
13363 {
13364 return $ac_func ();
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (ac_try="$ac_link"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374 esac
13375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13376 $as_echo "$ac_try_echo") >&5
13377 (eval "$ac_link") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest$ac_exeext && {
13387 test "$cross_compiling" = yes ||
13388 $as_test_x conftest$ac_exeext
13389 }; then
13390 eval "$as_ac_var=yes"
13391 else
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 eval "$as_ac_var=no"
13396 fi
13397
13398 rm -rf conftest.dSYM
13399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400 conftest$ac_exeext conftest.$ac_ext
13401 fi
13402 ac_res=`eval 'as_val=${'$as_ac_var'}
13403 $as_echo "$as_val"'`
13404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13405 $as_echo "$ac_res" >&6; }
13406 as_val=`eval 'as_val=${'$as_ac_var'}
13407 $as_echo "$as_val"'`
13408 if test "x$as_val" = x""yes; then
13409 cat >>confdefs.h <<_ACEOF
13410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13411 _ACEOF
13412
13413 fi
13414 done
13415
13416
13417 for ac_func in rename
13418 do
13419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13421 $as_echo_n "checking for $ac_func... " >&6; }
13422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13423 $as_echo_n "(cached) " >&6
13424 else
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13433 #define $ac_func innocuous_$ac_func
13434
13435 /* System header to define __stub macros and hopefully few prototypes,
13436 which can conflict with char $ac_func (); below.
13437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13438 <limits.h> exists even on freestanding compilers. */
13439
13440 #ifdef __STDC__
13441 # include <limits.h>
13442 #else
13443 # include <assert.h>
13444 #endif
13445
13446 #undef $ac_func
13447
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 char $ac_func ();
13455 /* The GNU C library defines this for functions which it implements
13456 to always fail with ENOSYS. Some functions are actually named
13457 something starting with __ and the normal name is an alias. */
13458 #if defined __stub_$ac_func || defined __stub___$ac_func
13459 choke me
13460 #endif
13461
13462 int
13463 main ()
13464 {
13465 return $ac_func ();
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (ac_try="$ac_link"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13477 $as_echo "$ac_try_echo") >&5
13478 (eval "$ac_link") 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext && {
13488 test "$cross_compiling" = yes ||
13489 $as_test_x conftest$ac_exeext
13490 }; then
13491 eval "$as_ac_var=yes"
13492 else
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 eval "$as_ac_var=no"
13497 fi
13498
13499 rm -rf conftest.dSYM
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 fi
13503 ac_res=`eval 'as_val=${'$as_ac_var'}
13504 $as_echo "$as_val"'`
13505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13506 $as_echo "$ac_res" >&6; }
13507 as_val=`eval 'as_val=${'$as_ac_var'}
13508 $as_echo "$as_val"'`
13509 if test "x$as_val" = x""yes; then
13510 cat >>confdefs.h <<_ACEOF
13511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13512 _ACEOF
13513
13514 else
13515 case " $LIBOBJS " in
13516 *" $ac_func.$ac_objext "* ) ;;
13517 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13518 ;;
13519 esac
13520
13521 fi
13522 done
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553 for ac_func in bcopy bzero confstr fnmatch \
13554 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13555 memmove pathconf putenv raise regcomp regexec \
13556 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13557 sysconf tcgetattr times ttyname tzset unsetenv
13558 do
13559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13561 $as_echo_n "checking for $ac_func... " >&6; }
13562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13563 $as_echo_n "(cached) " >&6
13564 else
13565 cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h. */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13573 #define $ac_func innocuous_$ac_func
13574
13575 /* System header to define __stub macros and hopefully few prototypes,
13576 which can conflict with char $ac_func (); below.
13577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13578 <limits.h> exists even on freestanding compilers. */
13579
13580 #ifdef __STDC__
13581 # include <limits.h>
13582 #else
13583 # include <assert.h>
13584 #endif
13585
13586 #undef $ac_func
13587
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char $ac_func ();
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined __stub_$ac_func || defined __stub___$ac_func
13599 choke me
13600 #endif
13601
13602 int
13603 main ()
13604 {
13605 return $ac_func ();
13606 ;
13607 return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615 esac
13616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13617 $as_echo "$ac_try_echo") >&5
13618 (eval "$ac_link") 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest$ac_exeext && {
13628 test "$cross_compiling" = yes ||
13629 $as_test_x conftest$ac_exeext
13630 }; then
13631 eval "$as_ac_var=yes"
13632 else
13633 $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 eval "$as_ac_var=no"
13637 fi
13638
13639 rm -rf conftest.dSYM
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13642 fi
13643 ac_res=`eval 'as_val=${'$as_ac_var'}
13644 $as_echo "$as_val"'`
13645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13646 $as_echo "$ac_res" >&6; }
13647 as_val=`eval 'as_val=${'$as_ac_var'}
13648 $as_echo "$as_val"'`
13649 if test "x$as_val" = x""yes; then
13650 cat >>confdefs.h <<_ACEOF
13651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13652 _ACEOF
13653
13654 fi
13655 done
13656
13657
13658
13659
13660
13661
13662 for ac_func in vsnprintf snprintf vasprintf asprintf
13663 do
13664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13666 $as_echo_n "checking for $ac_func... " >&6; }
13667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13668 $as_echo_n "(cached) " >&6
13669 else
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13678 #define $ac_func innocuous_$ac_func
13679
13680 /* System header to define __stub macros and hopefully few prototypes,
13681 which can conflict with char $ac_func (); below.
13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683 <limits.h> exists even on freestanding compilers. */
13684
13685 #ifdef __STDC__
13686 # include <limits.h>
13687 #else
13688 # include <assert.h>
13689 #endif
13690
13691 #undef $ac_func
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char $ac_func ();
13700 /* The GNU C library defines this for functions which it implements
13701 to always fail with ENOSYS. Some functions are actually named
13702 something starting with __ and the normal name is an alias. */
13703 #if defined __stub_$ac_func || defined __stub___$ac_func
13704 choke me
13705 #endif
13706
13707 int
13708 main ()
13709 {
13710 return $ac_func ();
13711 ;
13712 return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723 (eval "$ac_link") 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } && {
13730 test -z "$ac_c_werror_flag" ||
13731 test ! -s conftest.err
13732 } && test -s conftest$ac_exeext && {
13733 test "$cross_compiling" = yes ||
13734 $as_test_x conftest$ac_exeext
13735 }; then
13736 eval "$as_ac_var=yes"
13737 else
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 eval "$as_ac_var=no"
13742 fi
13743
13744 rm -rf conftest.dSYM
13745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13746 conftest$ac_exeext conftest.$ac_ext
13747 fi
13748 ac_res=`eval 'as_val=${'$as_ac_var'}
13749 $as_echo "$as_val"'`
13750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13751 $as_echo "$ac_res" >&6; }
13752 as_val=`eval 'as_val=${'$as_ac_var'}
13753 $as_echo "$as_val"'`
13754 if test "x$as_val" = x""yes; then
13755 cat >>confdefs.h <<_ACEOF
13756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757 _ACEOF
13758
13759 fi
13760 done
13761
13762
13763
13764
13765
13766
13767
13768 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13769 do
13770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 $as_echo_n "checking for $ac_func... " >&6; }
13773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13774 $as_echo_n "(cached) " >&6
13775 else
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13784 #define $ac_func innocuous_$ac_func
13785
13786 /* System header to define __stub macros and hopefully few prototypes,
13787 which can conflict with char $ac_func (); below.
13788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13789 <limits.h> exists even on freestanding compilers. */
13790
13791 #ifdef __STDC__
13792 # include <limits.h>
13793 #else
13794 # include <assert.h>
13795 #endif
13796
13797 #undef $ac_func
13798
13799 /* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
13802 #ifdef __cplusplus
13803 extern "C"
13804 #endif
13805 char $ac_func ();
13806 /* The GNU C library defines this for functions which it implements
13807 to always fail with ENOSYS. Some functions are actually named
13808 something starting with __ and the normal name is an alias. */
13809 #if defined __stub_$ac_func || defined __stub___$ac_func
13810 choke me
13811 #endif
13812
13813 int
13814 main ()
13815 {
13816 return $ac_func ();
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (ac_try="$ac_link"
13823 case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13826 esac
13827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13828 $as_echo "$ac_try_echo") >&5
13829 (eval "$ac_link") 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && {
13836 test -z "$ac_c_werror_flag" ||
13837 test ! -s conftest.err
13838 } && test -s conftest$ac_exeext && {
13839 test "$cross_compiling" = yes ||
13840 $as_test_x conftest$ac_exeext
13841 }; then
13842 eval "$as_ac_var=yes"
13843 else
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 eval "$as_ac_var=no"
13848 fi
13849
13850 rm -rf conftest.dSYM
13851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852 conftest$ac_exeext conftest.$ac_ext
13853 fi
13854 ac_res=`eval 'as_val=${'$as_ac_var'}
13855 $as_echo "$as_val"'`
13856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13857 $as_echo "$ac_res" >&6; }
13858 as_val=`eval 'as_val=${'$as_ac_var'}
13859 $as_echo "$as_val"'`
13860 if test "x$as_val" = x""yes; then
13861 cat >>confdefs.h <<_ACEOF
13862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13863 _ACEOF
13864
13865 fi
13866 done
13867
13868
13869
13870
13871 for ac_func in getpwent getpwnam getpwuid
13872 do
13873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13875 $as_echo_n "checking for $ac_func... " >&6; }
13876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h. */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13887 #define $ac_func innocuous_$ac_func
13888
13889 /* System header to define __stub macros and hopefully few prototypes,
13890 which can conflict with char $ac_func (); below.
13891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13892 <limits.h> exists even on freestanding compilers. */
13893
13894 #ifdef __STDC__
13895 # include <limits.h>
13896 #else
13897 # include <assert.h>
13898 #endif
13899
13900 #undef $ac_func
13901
13902 /* Override any GCC internal prototype to avoid an error.
13903 Use char because int might match the return type of a GCC
13904 builtin and then its argument prototype would still apply. */
13905 #ifdef __cplusplus
13906 extern "C"
13907 #endif
13908 char $ac_func ();
13909 /* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912 #if defined __stub_$ac_func || defined __stub___$ac_func
13913 choke me
13914 #endif
13915
13916 int
13917 main ()
13918 {
13919 return $ac_func ();
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_link") 2>conftest.er1
13933 ac_status=$?
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest$ac_exeext && {
13942 test "$cross_compiling" = yes ||
13943 $as_test_x conftest$ac_exeext
13944 }; then
13945 eval "$as_ac_var=yes"
13946 else
13947 $as_echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 eval "$as_ac_var=no"
13951 fi
13952
13953 rm -rf conftest.dSYM
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955 conftest$ac_exeext conftest.$ac_ext
13956 fi
13957 ac_res=`eval 'as_val=${'$as_ac_var'}
13958 $as_echo "$as_val"'`
13959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13960 $as_echo "$ac_res" >&6; }
13961 as_val=`eval 'as_val=${'$as_ac_var'}
13962 $as_echo "$as_val"'`
13963 if test "x$as_val" = x""yes; then
13964 cat >>confdefs.h <<_ACEOF
13965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13966 _ACEOF
13967
13968 fi
13969 done
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
13980 do
13981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13983 $as_echo_n "checking for $ac_func... " >&6; }
13984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13985 $as_echo_n "(cached) " >&6
13986 else
13987 cat >conftest.$ac_ext <<_ACEOF
13988 /* confdefs.h. */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h. */
13993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13995 #define $ac_func innocuous_$ac_func
13996
13997 /* System header to define __stub macros and hopefully few prototypes,
13998 which can conflict with char $ac_func (); below.
13999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14000 <limits.h> exists even on freestanding compilers. */
14001
14002 #ifdef __STDC__
14003 # include <limits.h>
14004 #else
14005 # include <assert.h>
14006 #endif
14007
14008 #undef $ac_func
14009
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 char $ac_func ();
14017 /* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020 #if defined __stub_$ac_func || defined __stub___$ac_func
14021 choke me
14022 #endif
14023
14024 int
14025 main ()
14026 {
14027 return $ac_func ();
14028 ;
14029 return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037 esac
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040 (eval "$ac_link") 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && {
14047 test -z "$ac_c_werror_flag" ||
14048 test ! -s conftest.err
14049 } && test -s conftest$ac_exeext && {
14050 test "$cross_compiling" = yes ||
14051 $as_test_x conftest$ac_exeext
14052 }; then
14053 eval "$as_ac_var=yes"
14054 else
14055 $as_echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 eval "$as_ac_var=no"
14059 fi
14060
14061 rm -rf conftest.dSYM
14062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14063 conftest$ac_exeext conftest.$ac_ext
14064 fi
14065 ac_res=`eval 'as_val=${'$as_ac_var'}
14066 $as_echo "$as_val"'`
14067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14068 $as_echo "$ac_res" >&6; }
14069 as_val=`eval 'as_val=${'$as_ac_var'}
14070 $as_echo "$as_val"'`
14071 if test "x$as_val" = x""yes; then
14072 cat >>confdefs.h <<_ACEOF
14073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14074 _ACEOF
14075
14076 else
14077 case " $LIBOBJS " in
14078 *" $ac_func.$ac_objext "* ) ;;
14079 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14080 ;;
14081 esac
14082
14083 fi
14084 done
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14095 do
14096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14097 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14098 $as_echo_n "checking for $ac_func... " >&6; }
14099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14100 $as_echo_n "(cached) " >&6
14101 else
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14110 #define $ac_func innocuous_$ac_func
14111
14112 /* System header to define __stub macros and hopefully few prototypes,
14113 which can conflict with char $ac_func (); below.
14114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14115 <limits.h> exists even on freestanding compilers. */
14116
14117 #ifdef __STDC__
14118 # include <limits.h>
14119 #else
14120 # include <assert.h>
14121 #endif
14122
14123 #undef $ac_func
14124
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 char $ac_func ();
14132 /* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135 #if defined __stub_$ac_func || defined __stub___$ac_func
14136 choke me
14137 #endif
14138
14139 int
14140 main ()
14141 {
14142 return $ac_func ();
14143 ;
14144 return 0;
14145 }
14146 _ACEOF
14147 rm -f conftest.$ac_objext conftest$ac_exeext
14148 if { (ac_try="$ac_link"
14149 case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152 esac
14153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14154 $as_echo "$ac_try_echo") >&5
14155 (eval "$ac_link") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest$ac_exeext && {
14165 test "$cross_compiling" = yes ||
14166 $as_test_x conftest$ac_exeext
14167 }; then
14168 eval "$as_ac_var=yes"
14169 else
14170 $as_echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 eval "$as_ac_var=no"
14174 fi
14175
14176 rm -rf conftest.dSYM
14177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14178 conftest$ac_exeext conftest.$ac_ext
14179 fi
14180 ac_res=`eval 'as_val=${'$as_ac_var'}
14181 $as_echo "$as_val"'`
14182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14183 $as_echo "$ac_res" >&6; }
14184 as_val=`eval 'as_val=${'$as_ac_var'}
14185 $as_echo "$as_val"'`
14186 if test "x$as_val" = x""yes; then
14187 cat >>confdefs.h <<_ACEOF
14188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14189 _ACEOF
14190
14191 else
14192 case " $LIBOBJS " in
14193 *" $ac_func.$ac_objext "* ) ;;
14194 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14195 ;;
14196 esac
14197
14198 fi
14199 done
14200
14201
14202
14203 for ac_func in fdprintf
14204 do
14205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14206 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14207 $as_echo_n "checking for $ac_func... " >&6; }
14208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14209 $as_echo_n "(cached) " >&6
14210 else
14211 cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h. */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14219 #define $ac_func innocuous_$ac_func
14220
14221 /* System header to define __stub macros and hopefully few prototypes,
14222 which can conflict with char $ac_func (); below.
14223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14224 <limits.h> exists even on freestanding compilers. */
14225
14226 #ifdef __STDC__
14227 # include <limits.h>
14228 #else
14229 # include <assert.h>
14230 #endif
14231
14232 #undef $ac_func
14233
14234 /* Override any GCC internal prototype to avoid an error.
14235 Use char because int might match the return type of a GCC
14236 builtin and then its argument prototype would still apply. */
14237 #ifdef __cplusplus
14238 extern "C"
14239 #endif
14240 char $ac_func ();
14241 /* The GNU C library defines this for functions which it implements
14242 to always fail with ENOSYS. Some functions are actually named
14243 something starting with __ and the normal name is an alias. */
14244 #if defined __stub_$ac_func || defined __stub___$ac_func
14245 choke me
14246 #endif
14247
14248 int
14249 main ()
14250 {
14251 return $ac_func ();
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext conftest$ac_exeext
14257 if { (ac_try="$ac_link"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261 esac
14262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14263 $as_echo "$ac_try_echo") >&5
14264 (eval "$ac_link") 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && {
14271 test -z "$ac_c_werror_flag" ||
14272 test ! -s conftest.err
14273 } && test -s conftest$ac_exeext && {
14274 test "$cross_compiling" = yes ||
14275 $as_test_x conftest$ac_exeext
14276 }; then
14277 eval "$as_ac_var=yes"
14278 else
14279 $as_echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 eval "$as_ac_var=no"
14283 fi
14284
14285 rm -rf conftest.dSYM
14286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14287 conftest$ac_exeext conftest.$ac_ext
14288 fi
14289 ac_res=`eval 'as_val=${'$as_ac_var'}
14290 $as_echo "$as_val"'`
14291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292 $as_echo "$ac_res" >&6; }
14293 as_val=`eval 'as_val=${'$as_ac_var'}
14294 $as_echo "$as_val"'`
14295 if test "x$as_val" = x""yes; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14298 _ACEOF
14299
14300 else
14301 case " $LIBOBJS " in
14302 *" $ac_func.$ac_objext "* ) ;;
14303 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14304 ;;
14305 esac
14306
14307 fi
14308 done
14309
14310
14311
14312 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14313 $as_echo_n "checking whether confstr is declared... " >&6; }
14314 if test "${ac_cv_have_decl_confstr+set}" = set; then
14315 $as_echo_n "(cached) " >&6
14316 else
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 $ac_includes_default
14324 int
14325 main ()
14326 {
14327 #ifndef confstr
14328 (void) confstr;
14329 #endif
14330
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342 $as_echo "$ac_try_echo") >&5
14343 (eval "$ac_compile") 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest.$ac_objext; then
14353 ac_cv_have_decl_confstr=yes
14354 else
14355 $as_echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 ac_cv_have_decl_confstr=no
14359 fi
14360
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 fi
14363 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14364 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14365 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14366
14367 cat >>confdefs.h <<_ACEOF
14368 #define HAVE_DECL_CONFSTR 1
14369 _ACEOF
14370
14371
14372 else
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_DECL_CONFSTR 0
14375 _ACEOF
14376
14377
14378 fi
14379
14380
14381 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14382 $as_echo_n "checking whether printf is declared... " >&6; }
14383 if test "${ac_cv_have_decl_printf+set}" = set; then
14384 $as_echo_n "(cached) " >&6
14385 else
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 $ac_includes_default
14393 int
14394 main ()
14395 {
14396 #ifndef printf
14397 (void) printf;
14398 #endif
14399
14400 ;
14401 return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409 esac
14410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14411 $as_echo "$ac_try_echo") >&5
14412 (eval "$ac_compile") 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest.$ac_objext; then
14422 ac_cv_have_decl_printf=yes
14423 else
14424 $as_echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_cv_have_decl_printf=no
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 fi
14432 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14433 $as_echo "$ac_cv_have_decl_printf" >&6; }
14434 if test "x$ac_cv_have_decl_printf" = x""yes; then
14435
14436 cat >>confdefs.h <<_ACEOF
14437 #define HAVE_DECL_PRINTF 1
14438 _ACEOF
14439
14440
14441 else
14442 cat >>confdefs.h <<_ACEOF
14443 #define HAVE_DECL_PRINTF 0
14444 _ACEOF
14445
14446
14447 fi
14448
14449
14450 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14451 $as_echo_n "checking whether sbrk is declared... " >&6; }
14452 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14462 int
14463 main ()
14464 {
14465 #ifndef sbrk
14466 (void) sbrk;
14467 #endif
14468
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478 esac
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_compile") 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest.$ac_objext; then
14491 ac_cv_have_decl_sbrk=yes
14492 else
14493 $as_echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_cv_have_decl_sbrk=no
14497 fi
14498
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14502 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14503 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14504
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_DECL_SBRK 1
14507 _ACEOF
14508
14509
14510 else
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_DECL_SBRK 0
14513 _ACEOF
14514
14515
14516 fi
14517
14518
14519 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14520 $as_echo_n "checking whether setregid is declared... " >&6; }
14521 if test "${ac_cv_have_decl_setregid+set}" = set; then
14522 $as_echo_n "(cached) " >&6
14523 else
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 $ac_includes_default
14531 int
14532 main ()
14533 {
14534 #ifndef setregid
14535 (void) setregid;
14536 #endif
14537
14538 ;
14539 return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547 esac
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550 (eval "$ac_compile") 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest.$ac_objext; then
14560 ac_cv_have_decl_setregid=yes
14561 else
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 ac_cv_have_decl_setregid=no
14566 fi
14567
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 fi
14570 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14571 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14572 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14573
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE_DECL_SETREGID 1
14576 _ACEOF
14577
14578
14579 else
14580 cat >>confdefs.h <<_ACEOF
14581 #define HAVE_DECL_SETREGID 0
14582 _ACEOF
14583
14584
14585 fi
14586
14587
14588 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14589 $as_echo_n "checking whether strcpy is declared... " >&6; }
14590 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14592 else
14593 cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h. */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 $ac_includes_default
14600 int
14601 main ()
14602 {
14603 #ifndef strcpy
14604 (void) strcpy;
14605 #endif
14606
14607 ;
14608 return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616 esac
14617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14618 $as_echo "$ac_try_echo") >&5
14619 (eval "$ac_compile") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest.$ac_objext; then
14629 ac_cv_have_decl_strcpy=yes
14630 else
14631 $as_echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 ac_cv_have_decl_strcpy=no
14635 fi
14636
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 fi
14639 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14640 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14641 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14642
14643 cat >>confdefs.h <<_ACEOF
14644 #define HAVE_DECL_STRCPY 1
14645 _ACEOF
14646
14647
14648 else
14649 cat >>confdefs.h <<_ACEOF
14650 #define HAVE_DECL_STRCPY 0
14651 _ACEOF
14652
14653
14654 fi
14655
14656
14657 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14658 $as_echo_n "checking whether strsignal is declared... " >&6; }
14659 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14661 else
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 $ac_includes_default
14669 int
14670 main ()
14671 {
14672 #ifndef strsignal
14673 (void) strsignal;
14674 #endif
14675
14676 ;
14677 return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (ac_try="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685 esac
14686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14687 $as_echo "$ac_try_echo") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.$ac_objext; then
14698 ac_cv_have_decl_strsignal=yes
14699 else
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ac_cv_have_decl_strsignal=no
14704 fi
14705
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14709 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14710 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14711
14712 cat >>confdefs.h <<_ACEOF
14713 #define HAVE_DECL_STRSIGNAL 1
14714 _ACEOF
14715
14716
14717 else
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_DECL_STRSIGNAL 0
14720 _ACEOF
14721
14722
14723 fi
14724
14725
14726
14727 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14728 $as_echo_n "checking whether strtold is declared... " >&6; }
14729 if test "${ac_cv_have_decl_strtold+set}" = set; then
14730 $as_echo_n "(cached) " >&6
14731 else
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 $ac_includes_default
14739 int
14740 main ()
14741 {
14742 #ifndef strtold
14743 (void) strtold;
14744 #endif
14745
14746 ;
14747 return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.$ac_objext; then
14768 ac_cv_have_decl_strtold=yes
14769 else
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_cv_have_decl_strtold=no
14774 fi
14775
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 fi
14778 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14779 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14780 if test "x$ac_cv_have_decl_strtold" = x""yes; then
14781
14782 cat >>confdefs.h <<_ACEOF
14783 #define HAVE_DECL_STRTOLD 1
14784 _ACEOF
14785
14786
14787 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14788 $as_echo_n "checking for broken strtold... " >&6; }
14789 if test "${bash_cv_strtold_broken+set}" = set; then
14790 $as_echo_n "(cached) " >&6
14791 else
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <stdlib.h>
14799 int
14800 main ()
14801 {
14802 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14803 ;
14804 return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (ac_try="$ac_compile"
14809 case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14812 esac
14813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14814 $as_echo "$ac_try_echo") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest.$ac_objext; then
14825 bash_cv_strtold_broken=no
14826 else
14827 $as_echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14829
14830 bash_cv_strtold_broken=yes
14831 fi
14832
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834
14835
14836 fi
14837
14838 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14839 $as_echo "$bash_cv_strtold_broken" >&6; }
14840 if test "$bash_cv_strtold_broken" = "yes" ; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define STRTOLD_BROKEN 1
14843 _ACEOF
14844
14845 fi
14846
14847 else
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_DECL_STRTOLD 0
14850 _ACEOF
14851
14852
14853 fi
14854
14855
14856
14857
14858
14859
14860
14861 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14862 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14863 if test "${bash_cv_decl_strtoimax+set}" = set; then
14864 $as_echo_n "(cached) " >&6
14865 else
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14872
14873 #if STDC_HEADERS
14874 # include <stdlib.h>
14875 #endif
14876 #if HAVE_INTTYPES_H
14877 # include <inttypes.h>
14878 #endif
14879
14880 int
14881 main ()
14882 {
14883 return !strtoimax;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14895 $as_echo "$ac_try_echo") >&5
14896 (eval "$ac_link") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && {
14903 test -z "$ac_c_werror_flag" ||
14904 test ! -s conftest.err
14905 } && test -s conftest$ac_exeext && {
14906 test "$cross_compiling" = yes ||
14907 $as_test_x conftest$ac_exeext
14908 }; then
14909 bash_cv_decl_strtoimax=yes
14910 else
14911 $as_echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 bash_cv_decl_strtoimax=no
14915 fi
14916
14917 rm -rf conftest.dSYM
14918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14919 conftest$ac_exeext conftest.$ac_ext
14920 fi
14921 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
14922 $as_echo "$bash_cv_decl_strtoimax" >&6; }
14923 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14924 if test $bash_cv_decl_strtoimax = yes; then
14925 cat >>confdefs.h <<_ACEOF
14926 #define $bash_tr_func 1
14927 _ACEOF
14928
14929 else
14930 cat >>confdefs.h <<_ACEOF
14931 #define $bash_tr_func 0
14932 _ACEOF
14933
14934 fi
14935
14936
14937
14938
14939 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
14940 $as_echo_n "checking for declaration of strtol... " >&6; }
14941 if test "${bash_cv_decl_strtol+set}" = set; then
14942 $as_echo_n "(cached) " >&6
14943 else
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950
14951 #if STDC_HEADERS
14952 # include <stdlib.h>
14953 #endif
14954 #if HAVE_INTTYPES_H
14955 # include <inttypes.h>
14956 #endif
14957
14958 int
14959 main ()
14960 {
14961 return !strtol;
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_link") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext && {
14984 test "$cross_compiling" = yes ||
14985 $as_test_x conftest$ac_exeext
14986 }; then
14987 bash_cv_decl_strtol=yes
14988 else
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 bash_cv_decl_strtol=no
14993 fi
14994
14995 rm -rf conftest.dSYM
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14998 fi
14999 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15000 $as_echo "$bash_cv_decl_strtol" >&6; }
15001 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15002 if test $bash_cv_decl_strtol = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define $bash_tr_func 1
15005 _ACEOF
15006
15007 else
15008 cat >>confdefs.h <<_ACEOF
15009 #define $bash_tr_func 0
15010 _ACEOF
15011
15012 fi
15013
15014
15015
15016
15017 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15018 $as_echo_n "checking for declaration of strtoll... " >&6; }
15019 if test "${bash_cv_decl_strtoll+set}" = set; then
15020 $as_echo_n "(cached) " >&6
15021 else
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h. */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028
15029 #if STDC_HEADERS
15030 # include <stdlib.h>
15031 #endif
15032 #if HAVE_INTTYPES_H
15033 # include <inttypes.h>
15034 #endif
15035
15036 int
15037 main ()
15038 {
15039 return !strtoll;
15040 ;
15041 return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest$ac_exeext
15064 }; then
15065 bash_cv_decl_strtoll=yes
15066 else
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 bash_cv_decl_strtoll=no
15071 fi
15072
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 fi
15077 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15078 $as_echo "$bash_cv_decl_strtoll" >&6; }
15079 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15080 if test $bash_cv_decl_strtoll = yes; then
15081 cat >>confdefs.h <<_ACEOF
15082 #define $bash_tr_func 1
15083 _ACEOF
15084
15085 else
15086 cat >>confdefs.h <<_ACEOF
15087 #define $bash_tr_func 0
15088 _ACEOF
15089
15090 fi
15091
15092
15093
15094
15095 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15096 $as_echo_n "checking for declaration of strtoul... " >&6; }
15097 if test "${bash_cv_decl_strtoul+set}" = set; then
15098 $as_echo_n "(cached) " >&6
15099 else
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106
15107 #if STDC_HEADERS
15108 # include <stdlib.h>
15109 #endif
15110 #if HAVE_INTTYPES_H
15111 # include <inttypes.h>
15112 #endif
15113
15114 int
15115 main ()
15116 {
15117 return !strtoul;
15118 ;
15119 return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15129 $as_echo "$ac_try_echo") >&5
15130 (eval "$ac_link") 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest$ac_exeext && {
15140 test "$cross_compiling" = yes ||
15141 $as_test_x conftest$ac_exeext
15142 }; then
15143 bash_cv_decl_strtoul=yes
15144 else
15145 $as_echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15147
15148 bash_cv_decl_strtoul=no
15149 fi
15150
15151 rm -rf conftest.dSYM
15152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15153 conftest$ac_exeext conftest.$ac_ext
15154 fi
15155 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15156 $as_echo "$bash_cv_decl_strtoul" >&6; }
15157 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15158 if test $bash_cv_decl_strtoul = yes; then
15159 cat >>confdefs.h <<_ACEOF
15160 #define $bash_tr_func 1
15161 _ACEOF
15162
15163 else
15164 cat >>confdefs.h <<_ACEOF
15165 #define $bash_tr_func 0
15166 _ACEOF
15167
15168 fi
15169
15170
15171
15172
15173 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15174 $as_echo_n "checking for declaration of strtoull... " >&6; }
15175 if test "${bash_cv_decl_strtoull+set}" = set; then
15176 $as_echo_n "(cached) " >&6
15177 else
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184
15185 #if STDC_HEADERS
15186 # include <stdlib.h>
15187 #endif
15188 #if HAVE_INTTYPES_H
15189 # include <inttypes.h>
15190 #endif
15191
15192 int
15193 main ()
15194 {
15195 return !strtoull;
15196 ;
15197 return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15207 $as_echo "$ac_try_echo") >&5
15208 (eval "$ac_link") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest$ac_exeext && {
15218 test "$cross_compiling" = yes ||
15219 $as_test_x conftest$ac_exeext
15220 }; then
15221 bash_cv_decl_strtoull=yes
15222 else
15223 $as_echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 bash_cv_decl_strtoull=no
15227 fi
15228
15229 rm -rf conftest.dSYM
15230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15231 conftest$ac_exeext conftest.$ac_ext
15232 fi
15233 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15234 $as_echo "$bash_cv_decl_strtoull" >&6; }
15235 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15236 if test $bash_cv_decl_strtoull = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define $bash_tr_func 1
15239 _ACEOF
15240
15241 else
15242 cat >>confdefs.h <<_ACEOF
15243 #define $bash_tr_func 0
15244 _ACEOF
15245
15246 fi
15247
15248
15249
15250
15251 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15252 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15253 if test "${bash_cv_decl_strtoumax+set}" = set; then
15254 $as_echo_n "(cached) " >&6
15255 else
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262
15263 #if STDC_HEADERS
15264 # include <stdlib.h>
15265 #endif
15266 #if HAVE_INTTYPES_H
15267 # include <inttypes.h>
15268 #endif
15269
15270 int
15271 main ()
15272 {
15273 return !strtoumax;
15274 ;
15275 return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283 esac
15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285 $as_echo "$ac_try_echo") >&5
15286 (eval "$ac_link") 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } && {
15293 test -z "$ac_c_werror_flag" ||
15294 test ! -s conftest.err
15295 } && test -s conftest$ac_exeext && {
15296 test "$cross_compiling" = yes ||
15297 $as_test_x conftest$ac_exeext
15298 }; then
15299 bash_cv_decl_strtoumax=yes
15300 else
15301 $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 bash_cv_decl_strtoumax=no
15305 fi
15306
15307 rm -rf conftest.dSYM
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15310 fi
15311 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15312 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15313 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15314 if test $bash_cv_decl_strtoumax = yes; then
15315 cat >>confdefs.h <<_ACEOF
15316 #define $bash_tr_func 1
15317 _ACEOF
15318
15319 else
15320 cat >>confdefs.h <<_ACEOF
15321 #define $bash_tr_func 0
15322 _ACEOF
15323
15324 fi
15325
15326
15327
15328
15329
15330
15331 for ac_header in $ac_header_list
15332 do
15333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15336 $as_echo_n "checking for $ac_header... " >&6; }
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338 $as_echo_n "(cached) " >&6
15339 fi
15340 ac_res=`eval 'as_val=${'$as_ac_Header'}
15341 $as_echo "$as_val"'`
15342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15343 $as_echo "$ac_res" >&6; }
15344 else
15345 # Is the header compilable?
15346 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 $as_echo_n "checking $ac_header usability... " >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15355 #include <$ac_header>
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15362 esac
15363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15364 $as_echo "$ac_try_echo") >&5
15365 (eval "$ac_compile") 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } && {
15372 test -z "$ac_c_werror_flag" ||
15373 test ! -s conftest.err
15374 } && test -s conftest.$ac_objext; then
15375 ac_header_compiler=yes
15376 else
15377 $as_echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 ac_header_compiler=no
15381 fi
15382
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15385 $as_echo "$ac_header_compiler" >&6; }
15386
15387 # Is the header present?
15388 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15389 $as_echo_n "checking $ac_header presence... " >&6; }
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h. */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 #include <$ac_header>
15397 _ACEOF
15398 if { (ac_try="$ac_cpp conftest.$ac_ext"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15404 $as_echo "$ac_try_echo") >&5
15405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } >/dev/null && {
15412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 }; then
15415 ac_header_preproc=yes
15416 else
15417 $as_echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_header_preproc=no
15421 fi
15422
15423 rm -f conftest.err conftest.$ac_ext
15424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 $as_echo "$ac_header_preproc" >&6; }
15426
15427 # So? What about this header?
15428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15429 yes:no: )
15430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434 ac_header_preproc=yes
15435 ;;
15436 no:yes:* )
15437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15440 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15444 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15449 ( cat <<\_ASBOX
15450 ## ------------------------------- ##
15451 ## Report this to bug-bash@gnu.org ##
15452 ## ------------------------------- ##
15453 _ASBOX
15454 ) | sed "s/^/$as_me: WARNING: /" >&2
15455 ;;
15456 esac
15457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15458 $as_echo_n "checking for $ac_header... " >&6; }
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460 $as_echo_n "(cached) " >&6
15461 else
15462 eval "$as_ac_Header=\$ac_header_preproc"
15463 fi
15464 ac_res=`eval 'as_val=${'$as_ac_Header'}
15465 $as_echo "$as_val"'`
15466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15467 $as_echo "$ac_res" >&6; }
15468
15469 fi
15470 as_val=`eval 'as_val=${'$as_ac_Header'}
15471 $as_echo "$as_val"'`
15472 if test "x$as_val" = x""yes; then
15473 cat >>confdefs.h <<_ACEOF
15474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15475 _ACEOF
15476
15477 fi
15478
15479 done
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489 for ac_func in $ac_func_list
15490 do
15491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 $as_echo_n "checking for $ac_func... " >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15495 $as_echo_n "(cached) " >&6
15496 else
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15506
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15511
15512 #ifdef __STDC__
15513 # include <limits.h>
15514 #else
15515 # include <assert.h>
15516 #endif
15517
15518 #undef $ac_func
15519
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 char $ac_func ();
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15531 choke me
15532 #endif
15533
15534 int
15535 main ()
15536 {
15537 return $ac_func ();
15538 ;
15539 return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_link") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest$ac_exeext && {
15560 test "$cross_compiling" = yes ||
15561 $as_test_x conftest$ac_exeext
15562 }; then
15563 eval "$as_ac_var=yes"
15564 else
15565 $as_echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 eval "$as_ac_var=no"
15569 fi
15570
15571 rm -rf conftest.dSYM
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573 conftest$ac_exeext conftest.$ac_ext
15574 fi
15575 ac_res=`eval 'as_val=${'$as_ac_var'}
15576 $as_echo "$as_val"'`
15577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15578 $as_echo "$ac_res" >&6; }
15579 as_val=`eval 'as_val=${'$as_ac_var'}
15580 $as_echo "$as_val"'`
15581 if test "x$as_val" = x""yes; then
15582 cat >>confdefs.h <<_ACEOF
15583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15584 _ACEOF
15585
15586 fi
15587 done
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15606 $as_echo_n "checking for working mktime... " >&6; }
15607 if test "${ac_cv_func_working_mktime+set}" = set; then
15608 $as_echo_n "(cached) " >&6
15609 else
15610 if test "$cross_compiling" = yes; then
15611 ac_cv_func_working_mktime=no
15612 else
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Test program from Paul Eggert and Tony Leneis. */
15620 #ifdef TIME_WITH_SYS_TIME
15621 # include <sys/time.h>
15622 # include <time.h>
15623 #else
15624 # ifdef HAVE_SYS_TIME_H
15625 # include <sys/time.h>
15626 # else
15627 # include <time.h>
15628 # endif
15629 #endif
15630
15631 #include <limits.h>
15632 #include <stdlib.h>
15633
15634 #ifdef HAVE_UNISTD_H
15635 # include <unistd.h>
15636 #endif
15637
15638 #ifndef HAVE_ALARM
15639 # define alarm(X) /* empty */
15640 #endif
15641
15642 /* Work around redefinition to rpl_putenv by other config tests. */
15643 #undef putenv
15644
15645 static time_t time_t_max;
15646 static time_t time_t_min;
15647
15648 /* Values we'll use to set the TZ environment variable. */
15649 static char *tz_strings[] = {
15650 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15651 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15652 };
15653 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15654
15655 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15656 Based on a problem report from Andreas Jaeger. */
15657 static int
15658 spring_forward_gap ()
15659 {
15660 /* glibc (up to about 1998-10-07) failed this test. */
15661 struct tm tm;
15662
15663 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15664 instead of "TZ=America/Vancouver" in order to detect the bug even
15665 on systems that don't support the Olson extension, or don't have the
15666 full zoneinfo tables installed. */
15667 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15668
15669 tm.tm_year = 98;
15670 tm.tm_mon = 3;
15671 tm.tm_mday = 5;
15672 tm.tm_hour = 2;
15673 tm.tm_min = 0;
15674 tm.tm_sec = 0;
15675 tm.tm_isdst = -1;
15676 return mktime (&tm) != (time_t) -1;
15677 }
15678
15679 static int
15680 mktime_test1 (now)
15681 time_t now;
15682 {
15683 struct tm *lt;
15684 return ! (lt = localtime (&now)) || mktime (lt) == now;
15685 }
15686
15687 static int
15688 mktime_test (now)
15689 time_t now;
15690 {
15691 return (mktime_test1 (now)
15692 && mktime_test1 ((time_t) (time_t_max - now))
15693 && mktime_test1 ((time_t) (time_t_min + now)));
15694 }
15695
15696 static int
15697 irix_6_4_bug ()
15698 {
15699 /* Based on code from Ariel Faigon. */
15700 struct tm tm;
15701 tm.tm_year = 96;
15702 tm.tm_mon = 3;
15703 tm.tm_mday = 0;
15704 tm.tm_hour = 0;
15705 tm.tm_min = 0;
15706 tm.tm_sec = 0;
15707 tm.tm_isdst = -1;
15708 mktime (&tm);
15709 return tm.tm_mon == 2 && tm.tm_mday == 31;
15710 }
15711
15712 static int
15713 bigtime_test (j)
15714 int j;
15715 {
15716 struct tm tm;
15717 time_t now;
15718 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15719 now = mktime (&tm);
15720 if (now != (time_t) -1)
15721 {
15722 struct tm *lt = localtime (&now);
15723 if (! (lt
15724 && lt->tm_year == tm.tm_year
15725 && lt->tm_mon == tm.tm_mon
15726 && lt->tm_mday == tm.tm_mday
15727 && lt->tm_hour == tm.tm_hour
15728 && lt->tm_min == tm.tm_min
15729 && lt->tm_sec == tm.tm_sec
15730 && lt->tm_yday == tm.tm_yday
15731 && lt->tm_wday == tm.tm_wday
15732 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15733 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15734 return 0;
15735 }
15736 return 1;
15737 }
15738
15739 static int
15740 year_2050_test ()
15741 {
15742 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15743 ignoring leap seconds. */
15744 unsigned long int answer = 2527315200UL;
15745
15746 struct tm tm;
15747 time_t t;
15748 tm.tm_year = 2050 - 1900;
15749 tm.tm_mon = 2 - 1;
15750 tm.tm_mday = 1;
15751 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15752 tm.tm_isdst = -1;
15753
15754 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15755 instead of "TZ=America/Vancouver" in order to detect the bug even
15756 on systems that don't support the Olson extension, or don't have the
15757 full zoneinfo tables installed. */
15758 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15759
15760 t = mktime (&tm);
15761
15762 /* Check that the result is either a failure, or close enough
15763 to the correct answer that we can assume the discrepancy is
15764 due to leap seconds. */
15765 return (t == (time_t) -1
15766 || (0 < t && answer - 120 <= t && t <= answer + 120));
15767 }
15768
15769 int
15770 main ()
15771 {
15772 time_t t, delta;
15773 int i, j;
15774
15775 /* This test makes some buggy mktime implementations loop.
15776 Give up after 60 seconds; a mktime slower than that
15777 isn't worth using anyway. */
15778 alarm (60);
15779
15780 for (;;)
15781 {
15782 t = (time_t_max << 1) + 1;
15783 if (t <= time_t_max)
15784 break;
15785 time_t_max = t;
15786 }
15787 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15788
15789 delta = time_t_max / 997; /* a suitable prime number */
15790 for (i = 0; i < N_STRINGS; i++)
15791 {
15792 if (tz_strings[i])
15793 putenv (tz_strings[i]);
15794
15795 for (t = 0; t <= time_t_max - delta; t += delta)
15796 if (! mktime_test (t))
15797 return 1;
15798 if (! (mktime_test ((time_t) 1)
15799 && mktime_test ((time_t) (60 * 60))
15800 && mktime_test ((time_t) (60 * 60 * 24))))
15801 return 1;
15802
15803 for (j = 1; ; j <<= 1)
15804 if (! bigtime_test (j))
15805 return 1;
15806 else if (INT_MAX / 2 < j)
15807 break;
15808 if (! bigtime_test (INT_MAX))
15809 return 1;
15810 }
15811 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15812 }
15813 _ACEOF
15814 rm -f conftest$ac_exeext
15815 if { (ac_try="$ac_link"
15816 case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819 esac
15820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15821 $as_echo "$ac_try_echo") >&5
15822 (eval "$ac_link") 2>&5
15823 ac_status=$?
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15831 $as_echo "$ac_try_echo") >&5
15832 (eval "$ac_try") 2>&5
15833 ac_status=$?
15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_func_working_mktime=yes
15837 else
15838 $as_echo "$as_me: program exited with status $ac_status" >&5
15839 $as_echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ( exit $ac_status )
15843 ac_cv_func_working_mktime=no
15844 fi
15845 rm -rf conftest.dSYM
15846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847 fi
15848
15849
15850 fi
15851 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15852 $as_echo "$ac_cv_func_working_mktime" >&6; }
15853 if test $ac_cv_func_working_mktime = no; then
15854 case " $LIBOBJS " in
15855 *" mktime.$ac_objext "* ) ;;
15856 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15857 ;;
15858 esac
15859
15860 fi
15861
15862
15863
15864
15865
15866
15867
15868
15869 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
15870 do
15871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15874 $as_echo_n "checking for $ac_header... " >&6; }
15875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876 $as_echo_n "(cached) " >&6
15877 fi
15878 ac_res=`eval 'as_val=${'$as_ac_Header'}
15879 $as_echo "$as_val"'`
15880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15881 $as_echo "$ac_res" >&6; }
15882 else
15883 # Is the header compilable?
15884 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15885 $as_echo_n "checking $ac_header usability... " >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header>
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (ac_try="$ac_compile"
15897 case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15900 esac
15901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15902 $as_echo "$ac_try_echo") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && {
15910 test -z "$ac_c_werror_flag" ||
15911 test ! -s conftest.err
15912 } && test -s conftest.$ac_objext; then
15913 ac_header_compiler=yes
15914 else
15915 $as_echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15917
15918 ac_header_compiler=no
15919 fi
15920
15921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15922 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15923 $as_echo "$ac_header_compiler" >&6; }
15924
15925 # Is the header present?
15926 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15927 $as_echo_n "checking $ac_header presence... " >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <$ac_header>
15935 _ACEOF
15936 if { (ac_try="$ac_cpp conftest.$ac_ext"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940 esac
15941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15942 $as_echo "$ac_try_echo") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null && {
15950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15951 test ! -s conftest.err
15952 }; then
15953 ac_header_preproc=yes
15954 else
15955 $as_echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_header_preproc=no
15959 fi
15960
15961 rm -f conftest.err conftest.$ac_ext
15962 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15963 $as_echo "$ac_header_preproc" >&6; }
15964
15965 # So? What about this header?
15966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15967 yes:no: )
15968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15969 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15972 ac_header_preproc=yes
15973 ;;
15974 no:yes:* )
15975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15980 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15982 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15986 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15987 ( cat <<\_ASBOX
15988 ## ------------------------------- ##
15989 ## Report this to bug-bash@gnu.org ##
15990 ## ------------------------------- ##
15991 _ASBOX
15992 ) | sed "s/^/$as_me: WARNING: /" >&2
15993 ;;
15994 esac
15995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15996 $as_echo_n "checking for $ac_header... " >&6; }
15997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15998 $as_echo_n "(cached) " >&6
15999 else
16000 eval "$as_ac_Header=\$ac_header_preproc"
16001 fi
16002 ac_res=`eval 'as_val=${'$as_ac_Header'}
16003 $as_echo "$as_val"'`
16004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16005 $as_echo "$ac_res" >&6; }
16006
16007 fi
16008 as_val=`eval 'as_val=${'$as_ac_Header'}
16009 $as_echo "$as_val"'`
16010 if test "x$as_val" = x""yes; then
16011 cat >>confdefs.h <<_ACEOF
16012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16013 _ACEOF
16014
16015 fi
16016
16017 done
16018
16019
16020
16021
16022 for ac_header in stdlib.h unistd.h
16023 do
16024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 $as_echo_n "checking for $ac_header... " >&6; }
16028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 $as_echo_n "(cached) " >&6
16030 fi
16031 ac_res=`eval 'as_val=${'$as_ac_Header'}
16032 $as_echo "$as_val"'`
16033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16034 $as_echo "$ac_res" >&6; }
16035 else
16036 # Is the header compilable?
16037 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 $as_echo_n "checking $ac_header usability... " >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h. */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 $ac_includes_default
16046 #include <$ac_header>
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16053 esac
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest.$ac_objext; then
16066 ac_header_compiler=yes
16067 else
16068 $as_echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 ac_header_compiler=no
16072 fi
16073
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 $as_echo "$ac_header_compiler" >&6; }
16077
16078 # Is the header present?
16079 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080 $as_echo_n "checking $ac_header presence... " >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <$ac_header>
16088 _ACEOF
16089 if { (ac_try="$ac_cpp conftest.$ac_ext"
16090 case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16093 esac
16094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16095 $as_echo "$ac_try_echo") >&5
16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } >/dev/null && {
16103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16104 test ! -s conftest.err
16105 }; then
16106 ac_header_preproc=yes
16107 else
16108 $as_echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16110
16111 ac_header_preproc=no
16112 fi
16113
16114 rm -f conftest.err conftest.$ac_ext
16115 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 $as_echo "$ac_header_preproc" >&6; }
16117
16118 # So? What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16120 yes:no: )
16121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc=yes
16126 ;;
16127 no:yes:* )
16128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16131 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16135 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16140 ( cat <<\_ASBOX
16141 ## ------------------------------- ##
16142 ## Report this to bug-bash@gnu.org ##
16143 ## ------------------------------- ##
16144 _ASBOX
16145 ) | sed "s/^/$as_me: WARNING: /" >&2
16146 ;;
16147 esac
16148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 $as_echo_n "checking for $ac_header... " >&6; }
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 $as_echo_n "(cached) " >&6
16152 else
16153 eval "$as_ac_Header=\$ac_header_preproc"
16154 fi
16155 ac_res=`eval 'as_val=${'$as_ac_Header'}
16156 $as_echo "$as_val"'`
16157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16158 $as_echo "$ac_res" >&6; }
16159
16160 fi
16161 as_val=`eval 'as_val=${'$as_ac_Header'}
16162 $as_echo "$as_val"'`
16163 if test "x$as_val" = x""yes; then
16164 cat >>confdefs.h <<_ACEOF
16165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16166 _ACEOF
16167
16168 fi
16169
16170 done
16171
16172
16173 for ac_func in getpagesize
16174 do
16175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16176 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16177 $as_echo_n "checking for $ac_func... " >&6; }
16178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16179 $as_echo_n "(cached) " >&6
16180 else
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16189 #define $ac_func innocuous_$ac_func
16190
16191 /* System header to define __stub macros and hopefully few prototypes,
16192 which can conflict with char $ac_func (); below.
16193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16194 <limits.h> exists even on freestanding compilers. */
16195
16196 #ifdef __STDC__
16197 # include <limits.h>
16198 #else
16199 # include <assert.h>
16200 #endif
16201
16202 #undef $ac_func
16203
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 char $ac_func ();
16211 /* The GNU C library defines this for functions which it implements
16212 to always fail with ENOSYS. Some functions are actually named
16213 something starting with __ and the normal name is an alias. */
16214 #if defined __stub_$ac_func || defined __stub___$ac_func
16215 choke me
16216 #endif
16217
16218 int
16219 main ()
16220 {
16221 return $ac_func ();
16222 ;
16223 return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (ac_try="$ac_link"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231 esac
16232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16233 $as_echo "$ac_try_echo") >&5
16234 (eval "$ac_link") 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } && {
16241 test -z "$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 } && test -s conftest$ac_exeext && {
16244 test "$cross_compiling" = yes ||
16245 $as_test_x conftest$ac_exeext
16246 }; then
16247 eval "$as_ac_var=yes"
16248 else
16249 $as_echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 eval "$as_ac_var=no"
16253 fi
16254
16255 rm -rf conftest.dSYM
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 fi
16259 ac_res=`eval 'as_val=${'$as_ac_var'}
16260 $as_echo "$as_val"'`
16261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16262 $as_echo "$ac_res" >&6; }
16263 as_val=`eval 'as_val=${'$as_ac_var'}
16264 $as_echo "$as_val"'`
16265 if test "x$as_val" = x""yes; then
16266 cat >>confdefs.h <<_ACEOF
16267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16268 _ACEOF
16269
16270 fi
16271 done
16272
16273 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16274 $as_echo_n "checking for working mmap... " >&6; }
16275 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16276 $as_echo_n "(cached) " >&6
16277 else
16278 if test "$cross_compiling" = yes; then
16279 ac_cv_func_mmap_fixed_mapped=no
16280 else
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 /* malloc might have been renamed as rpl_malloc. */
16289 #undef malloc
16290
16291 /* Thanks to Mike Haertel and Jim Avera for this test.
16292 Here is a matrix of mmap possibilities:
16293 mmap private not fixed
16294 mmap private fixed at somewhere currently unmapped
16295 mmap private fixed at somewhere already mapped
16296 mmap shared not fixed
16297 mmap shared fixed at somewhere currently unmapped
16298 mmap shared fixed at somewhere already mapped
16299 For private mappings, we should verify that changes cannot be read()
16300 back from the file, nor mmap's back from the file at a different
16301 address. (There have been systems where private was not correctly
16302 implemented like the infamous i386 svr4.0, and systems where the
16303 VM page cache was not coherent with the file system buffer cache
16304 like early versions of FreeBSD and possibly contemporary NetBSD.)
16305 For shared mappings, we should conversely verify that changes get
16306 propagated back to all the places they're supposed to be.
16307
16308 Grep wants private fixed already mapped.
16309 The main things grep needs to know about mmap are:
16310 * does it exist and is it safe to write into the mmap'd area
16311 * how to use it (BSD variants) */
16312
16313 #include <fcntl.h>
16314 #include <sys/mman.h>
16315
16316 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16317 char *malloc ();
16318 #endif
16319
16320 /* This mess was copied from the GNU getpagesize.h. */
16321 #ifndef HAVE_GETPAGESIZE
16322 /* Assume that all systems that can run configure have sys/param.h. */
16323 # ifndef HAVE_SYS_PARAM_H
16324 # define HAVE_SYS_PARAM_H 1
16325 # endif
16326
16327 # ifdef _SC_PAGESIZE
16328 # define getpagesize() sysconf(_SC_PAGESIZE)
16329 # else /* no _SC_PAGESIZE */
16330 # ifdef HAVE_SYS_PARAM_H
16331 # include <sys/param.h>
16332 # ifdef EXEC_PAGESIZE
16333 # define getpagesize() EXEC_PAGESIZE
16334 # else /* no EXEC_PAGESIZE */
16335 # ifdef NBPG
16336 # define getpagesize() NBPG * CLSIZE
16337 # ifndef CLSIZE
16338 # define CLSIZE 1
16339 # endif /* no CLSIZE */
16340 # else /* no NBPG */
16341 # ifdef NBPC
16342 # define getpagesize() NBPC
16343 # else /* no NBPC */
16344 # ifdef PAGESIZE
16345 # define getpagesize() PAGESIZE
16346 # endif /* PAGESIZE */
16347 # endif /* no NBPC */
16348 # endif /* no NBPG */
16349 # endif /* no EXEC_PAGESIZE */
16350 # else /* no HAVE_SYS_PARAM_H */
16351 # define getpagesize() 8192 /* punt totally */
16352 # endif /* no HAVE_SYS_PARAM_H */
16353 # endif /* no _SC_PAGESIZE */
16354
16355 #endif /* no HAVE_GETPAGESIZE */
16356
16357 int
16358 main ()
16359 {
16360 char *data, *data2, *data3;
16361 int i, pagesize;
16362 int fd;
16363
16364 pagesize = getpagesize ();
16365
16366 /* First, make a file with some known garbage in it. */
16367 data = (char *) malloc (pagesize);
16368 if (!data)
16369 return 1;
16370 for (i = 0; i < pagesize; ++i)
16371 *(data + i) = rand ();
16372 umask (0);
16373 fd = creat ("conftest.mmap", 0600);
16374 if (fd < 0)
16375 return 1;
16376 if (write (fd, data, pagesize) != pagesize)
16377 return 1;
16378 close (fd);
16379
16380 /* Next, try to mmap the file at a fixed address which already has
16381 something else allocated at it. If we can, also make sure that
16382 we see the same garbage. */
16383 fd = open ("conftest.mmap", O_RDWR);
16384 if (fd < 0)
16385 return 1;
16386 data2 = (char *) malloc (2 * pagesize);
16387 if (!data2)
16388 return 1;
16389 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16392 return 1;
16393 for (i = 0; i < pagesize; ++i)
16394 if (*(data + i) != *(data2 + i))
16395 return 1;
16396
16397 /* Finally, make sure that changes to the mapped area do not
16398 percolate back to the file as seen by read(). (This is a bug on
16399 some variants of i386 svr4.0.) */
16400 for (i = 0; i < pagesize; ++i)
16401 *(data2 + i) = *(data2 + i) + 1;
16402 data3 = (char *) malloc (pagesize);
16403 if (!data3)
16404 return 1;
16405 if (read (fd, data3, pagesize) != pagesize)
16406 return 1;
16407 for (i = 0; i < pagesize; ++i)
16408 if (*(data + i) != *(data3 + i))
16409 return 1;
16410 close (fd);
16411 return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest$ac_exeext
16415 if { (ac_try="$ac_link"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_link") 2>&5
16423 ac_status=$?
16424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426 { (case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429 esac
16430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16431 $as_echo "$ac_try_echo") >&5
16432 (eval "$ac_try") 2>&5
16433 ac_status=$?
16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_func_mmap_fixed_mapped=yes
16437 else
16438 $as_echo "$as_me: program exited with status $ac_status" >&5
16439 $as_echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ( exit $ac_status )
16443 ac_cv_func_mmap_fixed_mapped=no
16444 fi
16445 rm -rf conftest.dSYM
16446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16447 fi
16448
16449
16450 fi
16451 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16452 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16454
16455 cat >>confdefs.h <<\_ACEOF
16456 #define HAVE_MMAP 1
16457 _ACEOF
16458
16459 fi
16460 rm -f conftest.mmap
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16472 munmap stpcpy strcspn strdup
16473 do
16474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16475 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16476 $as_echo_n "checking for $ac_func... " >&6; }
16477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16478 $as_echo_n "(cached) " >&6
16479 else
16480 cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h. */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16488 #define $ac_func innocuous_$ac_func
16489
16490 /* System header to define __stub macros and hopefully few prototypes,
16491 which can conflict with char $ac_func (); below.
16492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16493 <limits.h> exists even on freestanding compilers. */
16494
16495 #ifdef __STDC__
16496 # include <limits.h>
16497 #else
16498 # include <assert.h>
16499 #endif
16500
16501 #undef $ac_func
16502
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 char $ac_func ();
16510 /* The GNU C library defines this for functions which it implements
16511 to always fail with ENOSYS. Some functions are actually named
16512 something starting with __ and the normal name is an alias. */
16513 #if defined __stub_$ac_func || defined __stub___$ac_func
16514 choke me
16515 #endif
16516
16517 int
16518 main ()
16519 {
16520 return $ac_func ();
16521 ;
16522 return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (ac_try="$ac_link"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530 esac
16531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16532 $as_echo "$ac_try_echo") >&5
16533 (eval "$ac_link") 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest$ac_exeext && {
16543 test "$cross_compiling" = yes ||
16544 $as_test_x conftest$ac_exeext
16545 }; then
16546 eval "$as_ac_var=yes"
16547 else
16548 $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551 eval "$as_ac_var=no"
16552 fi
16553
16554 rm -rf conftest.dSYM
16555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16556 conftest$ac_exeext conftest.$ac_ext
16557 fi
16558 ac_res=`eval 'as_val=${'$as_ac_var'}
16559 $as_echo "$as_val"'`
16560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16561 $as_echo "$ac_res" >&6; }
16562 as_val=`eval 'as_val=${'$as_ac_var'}
16563 $as_echo "$as_val"'`
16564 if test "x$as_val" = x""yes; then
16565 cat >>confdefs.h <<_ACEOF
16566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16567 _ACEOF
16568
16569 fi
16570 done
16571
16572
16573 INTL_DEP= INTL_INC= LIBINTL_H=
16574 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16575 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16576 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16577 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16578 fi
16579
16580
16581
16582
16583
16584
16585
16586 for ac_header in wctype.h
16587 do
16588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16591 $as_echo_n "checking for $ac_header... " >&6; }
16592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16593 $as_echo_n "(cached) " >&6
16594 fi
16595 ac_res=`eval 'as_val=${'$as_ac_Header'}
16596 $as_echo "$as_val"'`
16597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16598 $as_echo "$ac_res" >&6; }
16599 else
16600 # Is the header compilable?
16601 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16602 $as_echo_n "checking $ac_header usability... " >&6; }
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h. */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16609 $ac_includes_default
16610 #include <$ac_header>
16611 _ACEOF
16612 rm -f conftest.$ac_objext
16613 if { (ac_try="$ac_compile"
16614 case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617 esac
16618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16619 $as_echo "$ac_try_echo") >&5
16620 (eval "$ac_compile") 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && {
16627 test -z "$ac_c_werror_flag" ||
16628 test ! -s conftest.err
16629 } && test -s conftest.$ac_objext; then
16630 ac_header_compiler=yes
16631 else
16632 $as_echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 ac_header_compiler=no
16636 fi
16637
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16640 $as_echo "$ac_header_compiler" >&6; }
16641
16642 # Is the header present?
16643 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16644 $as_echo_n "checking $ac_header presence... " >&6; }
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 #include <$ac_header>
16652 _ACEOF
16653 if { (ac_try="$ac_cpp conftest.$ac_ext"
16654 case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657 esac
16658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16659 $as_echo "$ac_try_echo") >&5
16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } >/dev/null && {
16667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16669 }; then
16670 ac_header_preproc=yes
16671 else
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 ac_header_preproc=no
16676 fi
16677
16678 rm -f conftest.err conftest.$ac_ext
16679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16680 $as_echo "$ac_header_preproc" >&6; }
16681
16682 # So? What about this header?
16683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16684 yes:no: )
16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16686 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16688 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16689 ac_header_preproc=yes
16690 ;;
16691 no:yes:* )
16692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16693 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16695 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16697 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16699 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16703 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16704 ( cat <<\_ASBOX
16705 ## ------------------------------- ##
16706 ## Report this to bug-bash@gnu.org ##
16707 ## ------------------------------- ##
16708 _ASBOX
16709 ) | sed "s/^/$as_me: WARNING: /" >&2
16710 ;;
16711 esac
16712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 $as_echo_n "checking for $ac_header... " >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 $as_echo_n "(cached) " >&6
16716 else
16717 eval "$as_ac_Header=\$ac_header_preproc"
16718 fi
16719 ac_res=`eval 'as_val=${'$as_ac_Header'}
16720 $as_echo "$as_val"'`
16721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16722 $as_echo "$ac_res" >&6; }
16723
16724 fi
16725 as_val=`eval 'as_val=${'$as_ac_Header'}
16726 $as_echo "$as_val"'`
16727 if test "x$as_val" = x""yes; then
16728 cat >>confdefs.h <<_ACEOF
16729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16730 _ACEOF
16731
16732 fi
16733
16734 done
16735
16736
16737 for ac_header in wchar.h
16738 do
16739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16741 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16742 $as_echo_n "checking for $ac_header... " >&6; }
16743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16744 $as_echo_n "(cached) " >&6
16745 fi
16746 ac_res=`eval 'as_val=${'$as_ac_Header'}
16747 $as_echo "$as_val"'`
16748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16749 $as_echo "$ac_res" >&6; }
16750 else
16751 # Is the header compilable?
16752 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16753 $as_echo_n "checking $ac_header usability... " >&6; }
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h. */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 $ac_includes_default
16761 #include <$ac_header>
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (ac_try="$ac_compile"
16765 case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768 esac
16769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16770 $as_echo "$ac_try_echo") >&5
16771 (eval "$ac_compile") 2>conftest.er1
16772 ac_status=$?
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
16776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && {
16778 test -z "$ac_c_werror_flag" ||
16779 test ! -s conftest.err
16780 } && test -s conftest.$ac_objext; then
16781 ac_header_compiler=yes
16782 else
16783 $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 ac_header_compiler=no
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791 $as_echo "$ac_header_compiler" >&6; }
16792
16793 # Is the header present?
16794 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795 $as_echo_n "checking $ac_header presence... " >&6; }
16796 cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h. */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 #include <$ac_header>
16803 _ACEOF
16804 if { (ac_try="$ac_cpp conftest.$ac_ext"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808 esac
16809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16812 ac_status=$?
16813 grep -v '^ *+' conftest.er1 >conftest.err
16814 rm -f conftest.er1
16815 cat conftest.err >&5
16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } >/dev/null && {
16818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 }; then
16821 ac_header_preproc=yes
16822 else
16823 $as_echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 ac_header_preproc=no
16827 fi
16828
16829 rm -f conftest.err conftest.$ac_ext
16830 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831 $as_echo "$ac_header_preproc" >&6; }
16832
16833 # So? What about this header?
16834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16835 yes:no: )
16836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16840 ac_header_preproc=yes
16841 ;;
16842 no:yes:* )
16843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16844 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16846 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16848 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16850 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16854 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16855 ( cat <<\_ASBOX
16856 ## ------------------------------- ##
16857 ## Report this to bug-bash@gnu.org ##
16858 ## ------------------------------- ##
16859 _ASBOX
16860 ) | sed "s/^/$as_me: WARNING: /" >&2
16861 ;;
16862 esac
16863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16864 $as_echo_n "checking for $ac_header... " >&6; }
16865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16866 $as_echo_n "(cached) " >&6
16867 else
16868 eval "$as_ac_Header=\$ac_header_preproc"
16869 fi
16870 ac_res=`eval 'as_val=${'$as_ac_Header'}
16871 $as_echo "$as_val"'`
16872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16873 $as_echo "$ac_res" >&6; }
16874
16875 fi
16876 as_val=`eval 'as_val=${'$as_ac_Header'}
16877 $as_echo "$as_val"'`
16878 if test "x$as_val" = x""yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16881 _ACEOF
16882
16883 fi
16884
16885 done
16886
16887
16888 for ac_header in langinfo.h
16889 do
16890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16893 $as_echo_n "checking for $ac_header... " >&6; }
16894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16895 $as_echo_n "(cached) " >&6
16896 fi
16897 ac_res=`eval 'as_val=${'$as_ac_Header'}
16898 $as_echo "$as_val"'`
16899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16900 $as_echo "$ac_res" >&6; }
16901 else
16902 # Is the header compilable?
16903 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16904 $as_echo_n "checking $ac_header usability... " >&6; }
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 $ac_includes_default
16912 #include <$ac_header>
16913 _ACEOF
16914 rm -f conftest.$ac_objext
16915 if { (ac_try="$ac_compile"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919 esac
16920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921 $as_echo "$ac_try_echo") >&5
16922 (eval "$ac_compile") 2>conftest.er1
16923 ac_status=$?
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
16927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } && {
16929 test -z "$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 } && test -s conftest.$ac_objext; then
16932 ac_header_compiler=yes
16933 else
16934 $as_echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_header_compiler=no
16938 fi
16939
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 $as_echo "$ac_header_compiler" >&6; }
16943
16944 # Is the header present?
16945 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946 $as_echo_n "checking $ac_header presence... " >&6; }
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <$ac_header>
16954 _ACEOF
16955 if { (ac_try="$ac_cpp conftest.$ac_ext"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959 esac
16960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16961 $as_echo "$ac_try_echo") >&5
16962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16963 ac_status=$?
16964 grep -v '^ *+' conftest.er1 >conftest.err
16965 rm -f conftest.er1
16966 cat conftest.err >&5
16967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } >/dev/null && {
16969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 }; then
16972 ac_header_preproc=yes
16973 else
16974 $as_echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 ac_header_preproc=no
16978 fi
16979
16980 rm -f conftest.err conftest.$ac_ext
16981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16982 $as_echo "$ac_header_preproc" >&6; }
16983
16984 # So? What about this header?
16985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16986 yes:no: )
16987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16988 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16991 ac_header_preproc=yes
16992 ;;
16993 no:yes:* )
16994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16995 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16997 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16999 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17001 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17005 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17006 ( cat <<\_ASBOX
17007 ## ------------------------------- ##
17008 ## Report this to bug-bash@gnu.org ##
17009 ## ------------------------------- ##
17010 _ASBOX
17011 ) | sed "s/^/$as_me: WARNING: /" >&2
17012 ;;
17013 esac
17014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17015 $as_echo_n "checking for $ac_header... " >&6; }
17016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17017 $as_echo_n "(cached) " >&6
17018 else
17019 eval "$as_ac_Header=\$ac_header_preproc"
17020 fi
17021 ac_res=`eval 'as_val=${'$as_ac_Header'}
17022 $as_echo "$as_val"'`
17023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17024 $as_echo "$ac_res" >&6; }
17025
17026 fi
17027 as_val=`eval 'as_val=${'$as_ac_Header'}
17028 $as_echo "$as_val"'`
17029 if test "x$as_val" = x""yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17032 _ACEOF
17033
17034 fi
17035
17036 done
17037
17038
17039 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17040 $as_echo_n "checking for mbrlen... " >&6; }
17041 if test "${ac_cv_func_mbrlen+set}" = set; then
17042 $as_echo_n "(cached) " >&6
17043 else
17044 cat >conftest.$ac_ext <<_ACEOF
17045 /* confdefs.h. */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17052 #define mbrlen innocuous_mbrlen
17053
17054 /* System header to define __stub macros and hopefully few prototypes,
17055 which can conflict with char mbrlen (); below.
17056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17057 <limits.h> exists even on freestanding compilers. */
17058
17059 #ifdef __STDC__
17060 # include <limits.h>
17061 #else
17062 # include <assert.h>
17063 #endif
17064
17065 #undef mbrlen
17066
17067 /* Override any GCC internal prototype to avoid an error.
17068 Use char because int might match the return type of a GCC
17069 builtin and then its argument prototype would still apply. */
17070 #ifdef __cplusplus
17071 extern "C"
17072 #endif
17073 char mbrlen ();
17074 /* The GNU C library defines this for functions which it implements
17075 to always fail with ENOSYS. Some functions are actually named
17076 something starting with __ and the normal name is an alias. */
17077 #if defined __stub_mbrlen || defined __stub___mbrlen
17078 choke me
17079 #endif
17080
17081 int
17082 main ()
17083 {
17084 return mbrlen ();
17085 ;
17086 return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17096 $as_echo "$ac_try_echo") >&5
17097 (eval "$ac_link") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest$ac_exeext && {
17107 test "$cross_compiling" = yes ||
17108 $as_test_x conftest$ac_exeext
17109 }; then
17110 ac_cv_func_mbrlen=yes
17111 else
17112 $as_echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 ac_cv_func_mbrlen=no
17116 fi
17117
17118 rm -rf conftest.dSYM
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120 conftest$ac_exeext conftest.$ac_ext
17121 fi
17122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17123 $as_echo "$ac_cv_func_mbrlen" >&6; }
17124 if test "x$ac_cv_func_mbrlen" = x""yes; then
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_MBRLEN 1
17127 _ACEOF
17128
17129 fi
17130
17131 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17132 $as_echo_n "checking for mbscmp... " >&6; }
17133 if test "${ac_cv_func_mbscmp+set}" = set; then
17134 $as_echo_n "(cached) " >&6
17135 else
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144 #define mbscmp innocuous_mbscmp
17145
17146 /* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char mbscmp (); below.
17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149 <limits.h> exists even on freestanding compilers. */
17150
17151 #ifdef __STDC__
17152 # include <limits.h>
17153 #else
17154 # include <assert.h>
17155 #endif
17156
17157 #undef mbscmp
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char mbscmp ();
17166 /* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169 #if defined __stub_mbscmp || defined __stub___mbscmp
17170 choke me
17171 #endif
17172
17173 int
17174 main ()
17175 {
17176 return mbscmp ();
17177 ;
17178 return 0;
17179 }
17180 _ACEOF
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17188 $as_echo "$ac_try_echo") >&5
17189 (eval "$ac_link") 2>conftest.er1
17190 ac_status=$?
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest$ac_exeext && {
17199 test "$cross_compiling" = yes ||
17200 $as_test_x conftest$ac_exeext
17201 }; then
17202 ac_cv_func_mbscmp=yes
17203 else
17204 $as_echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_cv_func_mbscmp=no
17208 fi
17209
17210 rm -rf conftest.dSYM
17211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17212 conftest$ac_exeext conftest.$ac_ext
17213 fi
17214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17215 $as_echo "$ac_cv_func_mbscmp" >&6; }
17216 if test "x$ac_cv_func_mbscmp" = x""yes; then
17217 cat >>confdefs.h <<\_ACEOF
17218 #define HAVE_MBSCMP 1
17219 _ACEOF
17220
17221 fi
17222
17223 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17224 $as_echo_n "checking for mbsrtowcs... " >&6; }
17225 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17226 $as_echo_n "(cached) " >&6
17227 else
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236 #define mbsrtowcs innocuous_mbsrtowcs
17237
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char mbsrtowcs (); below.
17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241 <limits.h> exists even on freestanding compilers. */
17242
17243 #ifdef __STDC__
17244 # include <limits.h>
17245 #else
17246 # include <assert.h>
17247 #endif
17248
17249 #undef mbsrtowcs
17250
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char mbsrtowcs ();
17258 /* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17262 choke me
17263 #endif
17264
17265 int
17266 main ()
17267 {
17268 return mbsrtowcs ();
17269 ;
17270 return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17280 $as_echo "$ac_try_echo") >&5
17281 (eval "$ac_link") 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } && {
17288 test -z "$ac_c_werror_flag" ||
17289 test ! -s conftest.err
17290 } && test -s conftest$ac_exeext && {
17291 test "$cross_compiling" = yes ||
17292 $as_test_x conftest$ac_exeext
17293 }; then
17294 ac_cv_func_mbsrtowcs=yes
17295 else
17296 $as_echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17298
17299 ac_cv_func_mbsrtowcs=no
17300 fi
17301
17302 rm -rf conftest.dSYM
17303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17304 conftest$ac_exeext conftest.$ac_ext
17305 fi
17306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17307 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17308 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17309 cat >>confdefs.h <<\_ACEOF
17310 #define HAVE_MBSRTOWCS 1
17311 _ACEOF
17312
17313 fi
17314
17315
17316 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17317 $as_echo_n "checking for wcrtomb... " >&6; }
17318 if test "${ac_cv_func_wcrtomb+set}" = set; then
17319 $as_echo_n "(cached) " >&6
17320 else
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17329 #define wcrtomb innocuous_wcrtomb
17330
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char wcrtomb (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17335
17336 #ifdef __STDC__
17337 # include <limits.h>
17338 #else
17339 # include <assert.h>
17340 #endif
17341
17342 #undef wcrtomb
17343
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char wcrtomb ();
17351 /* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17355 choke me
17356 #endif
17357
17358 int
17359 main ()
17360 {
17361 return wcrtomb ();
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371 esac
17372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17373 $as_echo "$ac_try_echo") >&5
17374 (eval "$ac_link") 2>conftest.er1
17375 ac_status=$?
17376 grep -v '^ *+' conftest.er1 >conftest.err
17377 rm -f conftest.er1
17378 cat conftest.err >&5
17379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && {
17381 test -z "$ac_c_werror_flag" ||
17382 test ! -s conftest.err
17383 } && test -s conftest$ac_exeext && {
17384 test "$cross_compiling" = yes ||
17385 $as_test_x conftest$ac_exeext
17386 }; then
17387 ac_cv_func_wcrtomb=yes
17388 else
17389 $as_echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 ac_cv_func_wcrtomb=no
17393 fi
17394
17395 rm -rf conftest.dSYM
17396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17397 conftest$ac_exeext conftest.$ac_ext
17398 fi
17399 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17400 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17401 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17402 cat >>confdefs.h <<\_ACEOF
17403 #define HAVE_WCRTOMB 1
17404 _ACEOF
17405
17406 fi
17407
17408 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17409 $as_echo_n "checking for wcscoll... " >&6; }
17410 if test "${ac_cv_func_wcscoll+set}" = set; then
17411 $as_echo_n "(cached) " >&6
17412 else
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17421 #define wcscoll innocuous_wcscoll
17422
17423 /* System header to define __stub macros and hopefully few prototypes,
17424 which can conflict with char wcscoll (); below.
17425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17426 <limits.h> exists even on freestanding compilers. */
17427
17428 #ifdef __STDC__
17429 # include <limits.h>
17430 #else
17431 # include <assert.h>
17432 #endif
17433
17434 #undef wcscoll
17435
17436 /* Override any GCC internal prototype to avoid an error.
17437 Use char because int might match the return type of a GCC
17438 builtin and then its argument prototype would still apply. */
17439 #ifdef __cplusplus
17440 extern "C"
17441 #endif
17442 char wcscoll ();
17443 /* The GNU C library defines this for functions which it implements
17444 to always fail with ENOSYS. Some functions are actually named
17445 something starting with __ and the normal name is an alias. */
17446 #if defined __stub_wcscoll || defined __stub___wcscoll
17447 choke me
17448 #endif
17449
17450 int
17451 main ()
17452 {
17453 return wcscoll ();
17454 ;
17455 return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (ac_try="$ac_link"
17460 case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463 esac
17464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17465 $as_echo "$ac_try_echo") >&5
17466 (eval "$ac_link") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest$ac_exeext && {
17476 test "$cross_compiling" = yes ||
17477 $as_test_x conftest$ac_exeext
17478 }; then
17479 ac_cv_func_wcscoll=yes
17480 else
17481 $as_echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_cv_func_wcscoll=no
17485 fi
17486
17487 rm -rf conftest.dSYM
17488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17489 conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17492 $as_echo "$ac_cv_func_wcscoll" >&6; }
17493 if test "x$ac_cv_func_wcscoll" = x""yes; then
17494 cat >>confdefs.h <<\_ACEOF
17495 #define HAVE_WCSCOLL 1
17496 _ACEOF
17497
17498 fi
17499
17500 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17501 $as_echo_n "checking for wcsdup... " >&6; }
17502 if test "${ac_cv_func_wcsdup+set}" = set; then
17503 $as_echo_n "(cached) " >&6
17504 else
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17513 #define wcsdup innocuous_wcsdup
17514
17515 /* System header to define __stub macros and hopefully few prototypes,
17516 which can conflict with char wcsdup (); below.
17517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17518 <limits.h> exists even on freestanding compilers. */
17519
17520 #ifdef __STDC__
17521 # include <limits.h>
17522 #else
17523 # include <assert.h>
17524 #endif
17525
17526 #undef wcsdup
17527
17528 /* Override any GCC internal prototype to avoid an error.
17529 Use char because int might match the return type of a GCC
17530 builtin and then its argument prototype would still apply. */
17531 #ifdef __cplusplus
17532 extern "C"
17533 #endif
17534 char wcsdup ();
17535 /* The GNU C library defines this for functions which it implements
17536 to always fail with ENOSYS. Some functions are actually named
17537 something starting with __ and the normal name is an alias. */
17538 #if defined __stub_wcsdup || defined __stub___wcsdup
17539 choke me
17540 #endif
17541
17542 int
17543 main ()
17544 {
17545 return wcsdup ();
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555 esac
17556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17557 $as_echo "$ac_try_echo") >&5
17558 (eval "$ac_link") 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } && {
17565 test -z "$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext && {
17568 test "$cross_compiling" = yes ||
17569 $as_test_x conftest$ac_exeext
17570 }; then
17571 ac_cv_func_wcsdup=yes
17572 else
17573 $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_cv_func_wcsdup=no
17577 fi
17578
17579 rm -rf conftest.dSYM
17580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17581 conftest$ac_exeext conftest.$ac_ext
17582 fi
17583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17584 $as_echo "$ac_cv_func_wcsdup" >&6; }
17585 if test "x$ac_cv_func_wcsdup" = x""yes; then
17586 cat >>confdefs.h <<\_ACEOF
17587 #define HAVE_WCSDUP 1
17588 _ACEOF
17589
17590 fi
17591
17592 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17593 $as_echo_n "checking for wcwidth... " >&6; }
17594 if test "${ac_cv_func_wcwidth+set}" = set; then
17595 $as_echo_n "(cached) " >&6
17596 else
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17605 #define wcwidth innocuous_wcwidth
17606
17607 /* System header to define __stub macros and hopefully few prototypes,
17608 which can conflict with char wcwidth (); below.
17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610 <limits.h> exists even on freestanding compilers. */
17611
17612 #ifdef __STDC__
17613 # include <limits.h>
17614 #else
17615 # include <assert.h>
17616 #endif
17617
17618 #undef wcwidth
17619
17620 /* Override any GCC internal prototype to avoid an error.
17621 Use char because int might match the return type of a GCC
17622 builtin and then its argument prototype would still apply. */
17623 #ifdef __cplusplus
17624 extern "C"
17625 #endif
17626 char wcwidth ();
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined __stub_wcwidth || defined __stub___wcwidth
17631 choke me
17632 #endif
17633
17634 int
17635 main ()
17636 {
17637 return wcwidth ();
17638 ;
17639 return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (ac_try="$ac_link"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647 esac
17648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17649 $as_echo "$ac_try_echo") >&5
17650 (eval "$ac_link") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } && {
17657 test -z "$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17659 } && test -s conftest$ac_exeext && {
17660 test "$cross_compiling" = yes ||
17661 $as_test_x conftest$ac_exeext
17662 }; then
17663 ac_cv_func_wcwidth=yes
17664 else
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_cv_func_wcwidth=no
17669 fi
17670
17671 rm -rf conftest.dSYM
17672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17673 conftest$ac_exeext conftest.$ac_ext
17674 fi
17675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
17676 $as_echo "$ac_cv_func_wcwidth" >&6; }
17677 if test "x$ac_cv_func_wcwidth" = x""yes; then
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_WCWIDTH 1
17680 _ACEOF
17681
17682 fi
17683
17684 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
17685 $as_echo_n "checking for wctype... " >&6; }
17686 if test "${ac_cv_func_wctype+set}" = set; then
17687 $as_echo_n "(cached) " >&6
17688 else
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17697 #define wctype innocuous_wctype
17698
17699 /* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char wctype (); below.
17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702 <limits.h> exists even on freestanding compilers. */
17703
17704 #ifdef __STDC__
17705 # include <limits.h>
17706 #else
17707 # include <assert.h>
17708 #endif
17709
17710 #undef wctype
17711
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17715 #ifdef __cplusplus
17716 extern "C"
17717 #endif
17718 char wctype ();
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined __stub_wctype || defined __stub___wctype
17723 choke me
17724 #endif
17725
17726 int
17727 main ()
17728 {
17729 return wctype ();
17730 ;
17731 return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (ac_try="$ac_link"
17736 case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739 esac
17740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17741 $as_echo "$ac_try_echo") >&5
17742 (eval "$ac_link") 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest$ac_exeext && {
17752 test "$cross_compiling" = yes ||
17753 $as_test_x conftest$ac_exeext
17754 }; then
17755 ac_cv_func_wctype=yes
17756 else
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 ac_cv_func_wctype=no
17761 fi
17762
17763 rm -rf conftest.dSYM
17764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17765 conftest$ac_exeext conftest.$ac_ext
17766 fi
17767 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
17768 $as_echo "$ac_cv_func_wctype" >&6; }
17769 if test "x$ac_cv_func_wctype" = x""yes; then
17770 cat >>confdefs.h <<\_ACEOF
17771 #define HAVE_WCTYPE 1
17772 _ACEOF
17773
17774 fi
17775
17776
17777
17778 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
17779 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
17780 if test "${ac_cv_func_mbrtowc+set}" = set; then
17781 $as_echo_n "(cached) " >&6
17782 else
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 #include <wchar.h>
17790 int
17791 main ()
17792 {
17793 wchar_t wc;
17794 char const s[] = "";
17795 size_t n = 1;
17796 mbstate_t state;
17797 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
17798 ;
17799 return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (ac_try="$ac_link"
17804 case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17807 esac
17808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17809 $as_echo "$ac_try_echo") >&5
17810 (eval "$ac_link") 2>conftest.er1
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } && {
17817 test -z "$ac_c_werror_flag" ||
17818 test ! -s conftest.err
17819 } && test -s conftest$ac_exeext && {
17820 test "$cross_compiling" = yes ||
17821 $as_test_x conftest$ac_exeext
17822 }; then
17823 ac_cv_func_mbrtowc=yes
17824 else
17825 $as_echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_cv_func_mbrtowc=no
17829 fi
17830
17831 rm -rf conftest.dSYM
17832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17833 conftest$ac_exeext conftest.$ac_ext
17834 fi
17835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
17836 $as_echo "$ac_cv_func_mbrtowc" >&6; }
17837 if test $ac_cv_func_mbrtowc = yes; then
17838
17839 cat >>confdefs.h <<\_ACEOF
17840 #define HAVE_MBRTOWC 1
17841 _ACEOF
17842
17843 fi
17844
17845 if test $ac_cv_func_mbrtowc = yes; then
17846 cat >>confdefs.h <<\_ACEOF
17847 #define HAVE_MBSTATE_T 1
17848 _ACEOF
17849
17850 fi
17851
17852
17853
17854
17855
17856
17857 for ac_func in iswlower iswupper towlower towupper iswctype
17858 do
17859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17861 $as_echo_n "checking for $ac_func... " >&6; }
17862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17863 $as_echo_n "(cached) " >&6
17864 else
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h. */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17873 #define $ac_func innocuous_$ac_func
17874
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char $ac_func (); below.
17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878 <limits.h> exists even on freestanding compilers. */
17879
17880 #ifdef __STDC__
17881 # include <limits.h>
17882 #else
17883 # include <assert.h>
17884 #endif
17885
17886 #undef $ac_func
17887
17888 /* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17891 #ifdef __cplusplus
17892 extern "C"
17893 #endif
17894 char $ac_func ();
17895 /* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898 #if defined __stub_$ac_func || defined __stub___$ac_func
17899 choke me
17900 #endif
17901
17902 int
17903 main ()
17904 {
17905 return $ac_func ();
17906 ;
17907 return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915 esac
17916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17917 $as_echo "$ac_try_echo") >&5
17918 (eval "$ac_link") 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest$ac_exeext && {
17928 test "$cross_compiling" = yes ||
17929 $as_test_x conftest$ac_exeext
17930 }; then
17931 eval "$as_ac_var=yes"
17932 else
17933 $as_echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 eval "$as_ac_var=no"
17937 fi
17938
17939 rm -rf conftest.dSYM
17940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17941 conftest$ac_exeext conftest.$ac_ext
17942 fi
17943 ac_res=`eval 'as_val=${'$as_ac_var'}
17944 $as_echo "$as_val"'`
17945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17946 $as_echo "$ac_res" >&6; }
17947 as_val=`eval 'as_val=${'$as_ac_var'}
17948 $as_echo "$as_val"'`
17949 if test "x$as_val" = x""yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17952 _ACEOF
17953
17954 fi
17955 done
17956
17957
17958 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17959 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17960 if test "${bash_cv_langinfo_codeset+set}" = set; then
17961 $as_echo_n "(cached) " >&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 #include <langinfo.h>
17970 int
17971 main ()
17972 {
17973 char* cs = nl_langinfo(CODESET);
17974 ;
17975 return 0;
17976 }
17977 _ACEOF
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983 esac
17984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17985 $as_echo "$ac_try_echo") >&5
17986 (eval "$ac_link") 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest$ac_exeext && {
17996 test "$cross_compiling" = yes ||
17997 $as_test_x conftest$ac_exeext
17998 }; then
17999 bash_cv_langinfo_codeset=yes
18000 else
18001 $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18003
18004 bash_cv_langinfo_codeset=no
18005 fi
18006
18007 rm -rf conftest.dSYM
18008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18009 conftest$ac_exeext conftest.$ac_ext
18010 fi
18011 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18012 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18013 if test $bash_cv_langinfo_codeset = yes; then
18014 cat >>confdefs.h <<\_ACEOF
18015 #define HAVE_LANGINFO_CODESET 1
18016 _ACEOF
18017
18018 fi
18019
18020 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18021 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18022 if test "${bash_cv_type_wchar_t+set}" = set; then
18023 $as_echo_n "(cached) " >&6
18024 else
18025 cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h. */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18031 #include <wchar.h>
18032
18033 int
18034 main ()
18035 {
18036
18037 wchar_t foo;
18038 foo = 0;
18039
18040 ;
18041 return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext
18045 if { (ac_try="$ac_compile"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18051 $as_echo "$ac_try_echo") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest.$ac_objext; then
18062 bash_cv_type_wchar_t=yes
18063 else
18064 $as_echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067 bash_cv_type_wchar_t=no
18068 fi
18069
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 fi
18072 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18073 $as_echo "$bash_cv_type_wchar_t" >&6; }
18074 if test $bash_cv_type_wchar_t = yes; then
18075
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_WCHAR_T 1
18078 _ACEOF
18079
18080 fi
18081
18082 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18083 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18084 if test "${bash_cv_type_wctype_t+set}" = set; then
18085 $as_echo_n "(cached) " >&6
18086 else
18087 cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h. */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 #include <wctype.h>
18094 int
18095 main ()
18096 {
18097
18098 wctype_t foo;
18099 foo = 0;
18100
18101 ;
18102 return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110 esac
18111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113 (eval "$ac_compile") 2>conftest.er1
18114 ac_status=$?
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && {
18120 test -z "$ac_c_werror_flag" ||
18121 test ! -s conftest.err
18122 } && test -s conftest.$ac_objext; then
18123 bash_cv_type_wctype_t=yes
18124 else
18125 $as_echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18127
18128 bash_cv_type_wctype_t=no
18129 fi
18130
18131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 fi
18133 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18134 $as_echo "$bash_cv_type_wctype_t" >&6; }
18135 if test $bash_cv_type_wctype_t = yes; then
18136
18137 cat >>confdefs.h <<\_ACEOF
18138 #define HAVE_WCTYPE_T 1
18139 _ACEOF
18140
18141 fi
18142
18143 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18144 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18145 if test "${bash_cv_type_wint_t+set}" = set; then
18146 $as_echo_n "(cached) " >&6
18147 else
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include <wctype.h>
18155 int
18156 main ()
18157 {
18158
18159 wint_t foo;
18160 foo = 0;
18161
18162 ;
18163 return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext
18167 if { (ac_try="$ac_compile"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171 esac
18172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18173 $as_echo "$ac_try_echo") >&5
18174 (eval "$ac_compile") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest.$ac_objext; then
18184 bash_cv_type_wint_t=yes
18185 else
18186 $as_echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189 bash_cv_type_wint_t=no
18190 fi
18191
18192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193 fi
18194 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18195 $as_echo "$bash_cv_type_wint_t" >&6; }
18196 if test $bash_cv_type_wint_t = yes; then
18197
18198 cat >>confdefs.h <<\_ACEOF
18199 #define HAVE_WINT_T 1
18200 _ACEOF
18201
18202 fi
18203
18204
18205
18206 if test "$opt_static_link" != yes; then
18207
18208 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18211 $as_echo_n "(cached) " >&6
18212 else
18213 ac_check_lib_save_LIBS=$LIBS
18214 LIBS="-ldl $LIBS"
18215 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18225 #ifdef __cplusplus
18226 extern "C"
18227 #endif
18228 char dlopen ();
18229 int
18230 main ()
18231 {
18232 return dlopen ();
18233 ;
18234 return 0;
18235 }
18236 _ACEOF
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242 esac
18243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18244 $as_echo "$ac_try_echo") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext && {
18255 test "$cross_compiling" = yes ||
18256 $as_test_x conftest$ac_exeext
18257 }; then
18258 ac_cv_lib_dl_dlopen=yes
18259 else
18260 $as_echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263 ac_cv_lib_dl_dlopen=no
18264 fi
18265
18266 rm -rf conftest.dSYM
18267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18268 conftest$ac_exeext conftest.$ac_ext
18269 LIBS=$ac_check_lib_save_LIBS
18270 fi
18271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18273 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_LIBDL 1
18276 _ACEOF
18277
18278 LIBS="-ldl $LIBS"
18279
18280 fi
18281
18282
18283
18284
18285 for ac_func in dlopen dlclose dlsym
18286 do
18287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18288 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18289 $as_echo_n "checking for $ac_func... " >&6; }
18290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18291 $as_echo_n "(cached) " >&6
18292 else
18293 cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h. */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18301 #define $ac_func innocuous_$ac_func
18302
18303 /* System header to define __stub macros and hopefully few prototypes,
18304 which can conflict with char $ac_func (); below.
18305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18306 <limits.h> exists even on freestanding compilers. */
18307
18308 #ifdef __STDC__
18309 # include <limits.h>
18310 #else
18311 # include <assert.h>
18312 #endif
18313
18314 #undef $ac_func
18315
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 char $ac_func ();
18323 /* The GNU C library defines this for functions which it implements
18324 to always fail with ENOSYS. Some functions are actually named
18325 something starting with __ and the normal name is an alias. */
18326 #if defined __stub_$ac_func || defined __stub___$ac_func
18327 choke me
18328 #endif
18329
18330 int
18331 main ()
18332 {
18333 return $ac_func ();
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (ac_try="$ac_link"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343 esac
18344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18345 $as_echo "$ac_try_echo") >&5
18346 (eval "$ac_link") 2>conftest.er1
18347 ac_status=$?
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } && {
18353 test -z "$ac_c_werror_flag" ||
18354 test ! -s conftest.err
18355 } && test -s conftest$ac_exeext && {
18356 test "$cross_compiling" = yes ||
18357 $as_test_x conftest$ac_exeext
18358 }; then
18359 eval "$as_ac_var=yes"
18360 else
18361 $as_echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 eval "$as_ac_var=no"
18365 fi
18366
18367 rm -rf conftest.dSYM
18368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18369 conftest$ac_exeext conftest.$ac_ext
18370 fi
18371 ac_res=`eval 'as_val=${'$as_ac_var'}
18372 $as_echo "$as_val"'`
18373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18374 $as_echo "$ac_res" >&6; }
18375 as_val=`eval 'as_val=${'$as_ac_var'}
18376 $as_echo "$as_val"'`
18377 if test "x$as_val" = x""yes; then
18378 cat >>confdefs.h <<_ACEOF
18379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 _ACEOF
18381
18382 fi
18383 done
18384
18385 fi
18386
18387 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18388 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
18389 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18390 $as_echo_n "(cached) " >&6
18391 else
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 #include <signal.h>
18399 /* NetBSD declares sys_siglist in unistd.h. */
18400 #ifdef HAVE_UNISTD_H
18401 # include <unistd.h>
18402 #endif
18403
18404
18405 int
18406 main ()
18407 {
18408 #ifndef sys_siglist
18409 (void) sys_siglist;
18410 #endif
18411
18412 ;
18413 return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421 esac
18422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18423 $as_echo "$ac_try_echo") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_cv_have_decl_sys_siglist=yes
18435 else
18436 $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439 ac_cv_have_decl_sys_siglist=no
18440 fi
18441
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443 fi
18444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18445 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
18446 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
18447
18448 cat >>confdefs.h <<_ACEOF
18449 #define HAVE_DECL_SYS_SIGLIST 1
18450 _ACEOF
18451
18452
18453 else
18454 cat >>confdefs.h <<_ACEOF
18455 #define HAVE_DECL_SYS_SIGLIST 0
18456 _ACEOF
18457
18458
18459 fi
18460
18461
18462
18463
18464 if test "$ac_cv_func_inet_aton" != 'yes'; then
18465
18466 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18467 $as_echo_n "checking for inet_aton... " >&6; }
18468 if test "${bash_cv_func_inet_aton+set}" = set; then
18469 $as_echo_n "(cached) " >&6
18470 else
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477
18478 #include <sys/types.h>
18479 #include <netinet/in.h>
18480 #include <arpa/inet.h>
18481 struct in_addr ap;
18482 int
18483 main ()
18484 {
18485 inet_aton("127.0.0.1", &ap);
18486 ;
18487 return 0;
18488 }
18489 _ACEOF
18490 rm -f conftest.$ac_objext conftest$ac_exeext
18491 if { (ac_try="$ac_link"
18492 case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18495 esac
18496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18497 $as_echo "$ac_try_echo") >&5
18498 (eval "$ac_link") 2>conftest.er1
18499 ac_status=$?
18500 grep -v '^ *+' conftest.er1 >conftest.err
18501 rm -f conftest.er1
18502 cat conftest.err >&5
18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && {
18505 test -z "$ac_c_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest$ac_exeext && {
18508 test "$cross_compiling" = yes ||
18509 $as_test_x conftest$ac_exeext
18510 }; then
18511 bash_cv_func_inet_aton=yes
18512 else
18513 $as_echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516 bash_cv_func_inet_aton=no
18517 fi
18518
18519 rm -rf conftest.dSYM
18520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18521 conftest$ac_exeext conftest.$ac_ext
18522 fi
18523 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
18524 $as_echo "$bash_cv_func_inet_aton" >&6; }
18525 if test $bash_cv_func_inet_aton = yes; then
18526 cat >>confdefs.h <<\_ACEOF
18527 #define HAVE_INET_ATON 1
18528 _ACEOF
18529
18530 else
18531 case " $LIBOBJS " in
18532 *" inet_aton.$ac_objext "* ) ;;
18533 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18534 ;;
18535 esac
18536
18537 fi
18538
18539 fi
18540
18541 case "$host_os" in
18542 irix4*)
18543 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
18544 $as_echo_n "checking for getpwent in -lsun... " >&6; }
18545 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
18546 $as_echo_n "(cached) " >&6
18547 else
18548 ac_check_lib_save_LIBS=$LIBS
18549 LIBS="-lsun $LIBS"
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556
18557 /* Override any GCC internal prototype to avoid an error.
18558 Use char because int might match the return type of a GCC
18559 builtin and then its argument prototype would still apply. */
18560 #ifdef __cplusplus
18561 extern "C"
18562 #endif
18563 char getpwent ();
18564 int
18565 main ()
18566 {
18567 return getpwent ();
18568 ;
18569 return 0;
18570 }
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577 esac
18578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18579 $as_echo "$ac_try_echo") >&5
18580 (eval "$ac_link") 2>conftest.er1
18581 ac_status=$?
18582 grep -v '^ *+' conftest.er1 >conftest.err
18583 rm -f conftest.er1
18584 cat conftest.err >&5
18585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } && {
18587 test -z "$ac_c_werror_flag" ||
18588 test ! -s conftest.err
18589 } && test -s conftest$ac_exeext && {
18590 test "$cross_compiling" = yes ||
18591 $as_test_x conftest$ac_exeext
18592 }; then
18593 ac_cv_lib_sun_getpwent=yes
18594 else
18595 $as_echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598 ac_cv_lib_sun_getpwent=no
18599 fi
18600
18601 rm -rf conftest.dSYM
18602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18603 conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18605 fi
18606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
18607 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
18608 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
18609 cat >>confdefs.h <<_ACEOF
18610 #define HAVE_LIBSUN 1
18611 _ACEOF
18612
18613 LIBS="-lsun $LIBS"
18614
18615 fi
18616 ;;
18617 esac
18618
18619 if test "$ac_cv_func_getpeername" = no; then
18620
18621 if test "X$bash_cv_have_socklib" = "X"; then
18622 _bash_needmsg=
18623 else
18624 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
18625 $as_echo_n "checking for socket library... " >&6; }
18626 _bash_needmsg=yes
18627 fi
18628 if test "${bash_cv_have_socklib+set}" = set; then
18629 $as_echo_n "(cached) " >&6
18630 else
18631 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
18632 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
18633 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
18634 $as_echo_n "(cached) " >&6
18635 else
18636 ac_check_lib_save_LIBS=$LIBS
18637 LIBS="-lsocket -lnsl $LIBS"
18638 cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h. */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 char getpeername ();
18652 int
18653 main ()
18654 {
18655 return getpeername ();
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (ac_try="$ac_link"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665 esac
18666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18667 $as_echo "$ac_try_echo") >&5
18668 (eval "$ac_link") 2>conftest.er1
18669 ac_status=$?
18670 grep -v '^ *+' conftest.er1 >conftest.err
18671 rm -f conftest.er1
18672 cat conftest.err >&5
18673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } && {
18675 test -z "$ac_c_werror_flag" ||
18676 test ! -s conftest.err
18677 } && test -s conftest$ac_exeext && {
18678 test "$cross_compiling" = yes ||
18679 $as_test_x conftest$ac_exeext
18680 }; then
18681 ac_cv_lib_socket_getpeername=yes
18682 else
18683 $as_echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_socket_getpeername=no
18687 fi
18688
18689 rm -rf conftest.dSYM
18690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18693 fi
18694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
18695 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
18696 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
18697 bash_cv_have_socklib=yes
18698 else
18699 bash_cv_have_socklib=no
18700 fi
18701
18702 fi
18703
18704 if test "X$_bash_needmsg" = Xyes; then
18705 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
18706 $as_echo "$bash_cv_have_socklib" >&6; }
18707 _bash_needmsg=
18708 fi
18709 if test $bash_cv_have_socklib = yes; then
18710 # check for libnsl, add it to LIBS if present
18711 if test "X$bash_cv_have_libnsl" = "X"; then
18712 _bash_needmsg=
18713 else
18714 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
18715 $as_echo_n "checking for libnsl... " >&6; }
18716 _bash_needmsg=yes
18717 fi
18718 if test "${bash_cv_have_libnsl+set}" = set; then
18719 $as_echo_n "(cached) " >&6
18720 else
18721 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
18722 $as_echo_n "checking for t_open in -lnsl... " >&6; }
18723 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
18724 $as_echo_n "(cached) " >&6
18725 else
18726 ac_check_lib_save_LIBS=$LIBS
18727 LIBS="-lnsl $LIBS"
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734
18735 /* Override any GCC internal prototype to avoid an error.
18736 Use char because int might match the return type of a GCC
18737 builtin and then its argument prototype would still apply. */
18738 #ifdef __cplusplus
18739 extern "C"
18740 #endif
18741 char t_open ();
18742 int
18743 main ()
18744 {
18745 return t_open ();
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (ac_try="$ac_link"
18752 case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755 esac
18756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18757 $as_echo "$ac_try_echo") >&5
18758 (eval "$ac_link") 2>conftest.er1
18759 ac_status=$?
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
18763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest$ac_exeext && {
18768 test "$cross_compiling" = yes ||
18769 $as_test_x conftest$ac_exeext
18770 }; then
18771 ac_cv_lib_nsl_t_open=yes
18772 else
18773 $as_echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_lib_nsl_t_open=no
18777 fi
18778
18779 rm -rf conftest.dSYM
18780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18783 fi
18784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
18785 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
18786 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
18787 bash_cv_have_libnsl=yes
18788 else
18789 bash_cv_have_libnsl=no
18790 fi
18791
18792 fi
18793
18794 if test "X$_bash_needmsg" = Xyes; then
18795 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
18796 $as_echo "$bash_cv_have_libnsl" >&6; }
18797 _bash_needmsg=
18798 fi
18799 if test $bash_cv_have_libnsl = yes; then
18800 LIBS="-lsocket -lnsl $LIBS"
18801 else
18802 LIBS="-lsocket $LIBS"
18803 fi
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_LIBSOCKET 1
18806 _ACEOF
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_GETPEERNAME 1
18810 _ACEOF
18811
18812 fi
18813
18814 fi
18815 if test "$ac_cv_func_gethostbyname" = no; then
18816 if test "X$bash_cv_have_gethostbyname" = "X"; then
18817 _bash_needmsg=yes
18818 else
18819 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18820 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
18821 _bash_needmsg=
18822 fi
18823 if test "${bash_cv_have_gethostbyname+set}" = set; then
18824 $as_echo_n "(cached) " >&6
18825 else
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 #include <netdb.h>
18833 int
18834 main ()
18835 {
18836 struct hostent *hp;
18837 hp = gethostbyname("localhost");
18838
18839 ;
18840 return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848 esac
18849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18850 $as_echo "$ac_try_echo") >&5
18851 (eval "$ac_link") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext && {
18861 test "$cross_compiling" = yes ||
18862 $as_test_x conftest$ac_exeext
18863 }; then
18864 bash_cv_have_gethostbyname=yes
18865 else
18866 $as_echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 bash_cv_have_gethostbyname=no
18870 fi
18871
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874 conftest$ac_exeext conftest.$ac_ext
18875
18876 fi
18877
18878 if test "X$_bash_needmsg" = Xyes; then
18879 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18880 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
18881 fi
18882 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
18883 $as_echo "$bash_cv_have_gethostbyname" >&6; }
18884 if test "$bash_cv_have_gethostbyname" = yes; then
18885 cat >>confdefs.h <<\_ACEOF
18886 #define HAVE_GETHOSTBYNAME 1
18887 _ACEOF
18888
18889 fi
18890
18891 fi
18892
18893 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18894 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18895 if test "${ac_cv_type_uid_t+set}" = set; then
18896 $as_echo_n "(cached) " >&6
18897 else
18898 cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h. */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <sys/types.h>
18905
18906 _ACEOF
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908 $EGREP "uid_t" >/dev/null 2>&1; then
18909 ac_cv_type_uid_t=yes
18910 else
18911 ac_cv_type_uid_t=no
18912 fi
18913 rm -f conftest*
18914
18915 fi
18916 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18917 $as_echo "$ac_cv_type_uid_t" >&6; }
18918 if test $ac_cv_type_uid_t = no; then
18919
18920 cat >>confdefs.h <<\_ACEOF
18921 #define uid_t int
18922 _ACEOF
18923
18924
18925 cat >>confdefs.h <<\_ACEOF
18926 #define gid_t int
18927 _ACEOF
18928
18929 fi
18930
18931 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
18932 $as_echo_n "checking type of array argument to getgroups... " >&6; }
18933 if test "${ac_cv_type_getgroups+set}" = set; then
18934 $as_echo_n "(cached) " >&6
18935 else
18936 if test "$cross_compiling" = yes; then
18937 ac_cv_type_getgroups=cross
18938 else
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h. */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 /* Thanks to Mike Rendell for this test. */
18946 $ac_includes_default
18947 #define NGID 256
18948 #undef MAX
18949 #define MAX(x, y) ((x) > (y) ? (x) : (y))
18950
18951 int
18952 main ()
18953 {
18954 gid_t gidset[NGID];
18955 int i, n;
18956 union { gid_t gval; long int lval; } val;
18957
18958 val.lval = -1;
18959 for (i = 0; i < NGID; i++)
18960 gidset[i] = val.gval;
18961 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
18962 gidset);
18963 /* Exit non-zero if getgroups seems to require an array of ints. This
18964 happens when gid_t is short int but getgroups modifies an array
18965 of ints. */
18966 return n > 0 && gidset[n] != val.gval;
18967 }
18968 _ACEOF
18969 rm -f conftest$ac_exeext
18970 if { (ac_try="$ac_link"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974 esac
18975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18976 $as_echo "$ac_try_echo") >&5
18977 (eval "$ac_link") 2>&5
18978 ac_status=$?
18979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_try") 2>&5
18988 ac_status=$?
18989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18991 ac_cv_type_getgroups=gid_t
18992 else
18993 $as_echo "$as_me: program exited with status $ac_status" >&5
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 ( exit $ac_status )
18998 ac_cv_type_getgroups=int
18999 fi
19000 rm -rf conftest.dSYM
19001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19002 fi
19003
19004
19005 if test $ac_cv_type_getgroups = cross; then
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h. */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 #include <unistd.h>
19013
19014 _ACEOF
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19017 ac_cv_type_getgroups=gid_t
19018 else
19019 ac_cv_type_getgroups=int
19020 fi
19021 rm -f conftest*
19022
19023 fi
19024 fi
19025 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19026 $as_echo "$ac_cv_type_getgroups" >&6; }
19027
19028 cat >>confdefs.h <<_ACEOF
19029 #define GETGROUPS_T $ac_cv_type_getgroups
19030 _ACEOF
19031
19032
19033 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19034 $as_echo_n "checking for off_t... " >&6; }
19035 if test "${ac_cv_type_off_t+set}" = set; then
19036 $as_echo_n "(cached) " >&6
19037 else
19038 ac_cv_type_off_t=no
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 $ac_includes_default
19046 int
19047 main ()
19048 {
19049 if (sizeof (off_t))
19050 return 0;
19051 ;
19052 return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_compile") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest.$ac_objext; then
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 $ac_includes_default
19080 int
19081 main ()
19082 {
19083 if (sizeof ((off_t)))
19084 return 0;
19085 ;
19086 return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext
19090 if { (ac_try="$ac_compile"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19096 $as_echo "$ac_try_echo") >&5
19097 (eval "$ac_compile") 2>conftest.er1
19098 ac_status=$?
19099 grep -v '^ *+' conftest.er1 >conftest.err
19100 rm -f conftest.er1
19101 cat conftest.err >&5
19102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } && {
19104 test -z "$ac_c_werror_flag" ||
19105 test ! -s conftest.err
19106 } && test -s conftest.$ac_objext; then
19107 :
19108 else
19109 $as_echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_type_off_t=yes
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 else
19117 $as_echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120
19121 fi
19122
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19124 fi
19125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19126 $as_echo "$ac_cv_type_off_t" >&6; }
19127 if test "x$ac_cv_type_off_t" = x""yes; then
19128 :
19129 else
19130
19131 cat >>confdefs.h <<_ACEOF
19132 #define off_t long int
19133 _ACEOF
19134
19135 fi
19136
19137 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19138 $as_echo_n "checking for mode_t... " >&6; }
19139 if test "${ac_cv_type_mode_t+set}" = set; then
19140 $as_echo_n "(cached) " >&6
19141 else
19142 ac_cv_type_mode_t=no
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 $ac_includes_default
19150 int
19151 main ()
19152 {
19153 if (sizeof (mode_t))
19154 return 0;
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (ac_try="$ac_compile"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164 esac
19165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19166 $as_echo "$ac_try_echo") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.$ac_objext; then
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h. */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 $ac_includes_default
19184 int
19185 main ()
19186 {
19187 if (sizeof ((mode_t)))
19188 return 0;
19189 ;
19190 return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198 esac
19199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19200 $as_echo "$ac_try_echo") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.$ac_objext; then
19211 :
19212 else
19213 $as_echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_cv_type_mode_t=yes
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 else
19221 $as_echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224
19225 fi
19226
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 fi
19229 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19230 $as_echo "$ac_cv_type_mode_t" >&6; }
19231 if test "x$ac_cv_type_mode_t" = x""yes; then
19232 :
19233 else
19234
19235 cat >>confdefs.h <<_ACEOF
19236 #define mode_t int
19237 _ACEOF
19238
19239 fi
19240
19241 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19242 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19243 if test "${ac_cv_type_uid_t+set}" = set; then
19244 $as_echo_n "(cached) " >&6
19245 else
19246 cat >conftest.$ac_ext <<_ACEOF
19247 /* confdefs.h. */
19248 _ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 #include <sys/types.h>
19253
19254 _ACEOF
19255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19256 $EGREP "uid_t" >/dev/null 2>&1; then
19257 ac_cv_type_uid_t=yes
19258 else
19259 ac_cv_type_uid_t=no
19260 fi
19261 rm -f conftest*
19262
19263 fi
19264 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19265 $as_echo "$ac_cv_type_uid_t" >&6; }
19266 if test $ac_cv_type_uid_t = no; then
19267
19268 cat >>confdefs.h <<\_ACEOF
19269 #define uid_t int
19270 _ACEOF
19271
19272
19273 cat >>confdefs.h <<\_ACEOF
19274 #define gid_t int
19275 _ACEOF
19276
19277 fi
19278
19279 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19280 $as_echo_n "checking for pid_t... " >&6; }
19281 if test "${ac_cv_type_pid_t+set}" = set; then
19282 $as_echo_n "(cached) " >&6
19283 else
19284 ac_cv_type_pid_t=no
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h. */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19291 $ac_includes_default
19292 int
19293 main ()
19294 {
19295 if (sizeof (pid_t))
19296 return 0;
19297 ;
19298 return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306 esac
19307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19308 $as_echo "$ac_try_echo") >&5
19309 (eval "$ac_compile") 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest.$ac_objext; then
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h. */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 $ac_includes_default
19326 int
19327 main ()
19328 {
19329 if (sizeof ((pid_t)))
19330 return 0;
19331 ;
19332 return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19340 esac
19341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19342 $as_echo "$ac_try_echo") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.$ac_objext; then
19353 :
19354 else
19355 $as_echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 ac_cv_type_pid_t=yes
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 else
19363 $as_echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366
19367 fi
19368
19369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19370 fi
19371 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19372 $as_echo "$ac_cv_type_pid_t" >&6; }
19373 if test "x$ac_cv_type_pid_t" = x""yes; then
19374 :
19375 else
19376
19377 cat >>confdefs.h <<_ACEOF
19378 #define pid_t int
19379 _ACEOF
19380
19381 fi
19382
19383 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19384 $as_echo_n "checking for size_t... " >&6; }
19385 if test "${ac_cv_type_size_t+set}" = set; then
19386 $as_echo_n "(cached) " >&6
19387 else
19388 ac_cv_type_size_t=no
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 $ac_includes_default
19396 int
19397 main ()
19398 {
19399 if (sizeof (size_t))
19400 return 0;
19401 ;
19402 return 0;
19403 }
19404 _ACEOF
19405 rm -f conftest.$ac_objext
19406 if { (ac_try="$ac_compile"
19407 case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410 esac
19411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19412 $as_echo "$ac_try_echo") >&5
19413 (eval "$ac_compile") 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest.$ac_objext; then
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h. */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 $ac_includes_default
19430 int
19431 main ()
19432 {
19433 if (sizeof ((size_t)))
19434 return 0;
19435 ;
19436 return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444 esac
19445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19446 $as_echo "$ac_try_echo") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest.$ac_objext; then
19457 :
19458 else
19459 $as_echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_cv_type_size_t=yes
19463 fi
19464
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 else
19467 $as_echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470
19471 fi
19472
19473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19474 fi
19475 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19476 $as_echo "$ac_cv_type_size_t" >&6; }
19477 if test "x$ac_cv_type_size_t" = x""yes; then
19478 :
19479 else
19480
19481 cat >>confdefs.h <<_ACEOF
19482 #define size_t unsigned int
19483 _ACEOF
19484
19485 fi
19486
19487 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
19488 $as_echo_n "checking for ssize_t... " >&6; }
19489 if test "${ac_cv_type_ssize_t+set}" = set; then
19490 $as_echo_n "(cached) " >&6
19491 else
19492 ac_cv_type_ssize_t=no
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 $ac_includes_default
19500 int
19501 main ()
19502 {
19503 if (sizeof (ssize_t))
19504 return 0;
19505 ;
19506 return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest.$ac_objext; then
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 $ac_includes_default
19534 int
19535 main ()
19536 {
19537 if (sizeof ((ssize_t)))
19538 return 0;
19539 ;
19540 return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548 esac
19549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551 (eval "$ac_compile") 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest.$ac_objext; then
19561 :
19562 else
19563 $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566 ac_cv_type_ssize_t=yes
19567 fi
19568
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 else
19571 $as_echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574
19575 fi
19576
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 fi
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19580 $as_echo "$ac_cv_type_ssize_t" >&6; }
19581 if test "x$ac_cv_type_ssize_t" = x""yes; then
19582 :
19583 else
19584
19585 cat >>confdefs.h <<_ACEOF
19586 #define ssize_t int
19587 _ACEOF
19588
19589 fi
19590
19591 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
19592 $as_echo_n "checking for time_t... " >&6; }
19593 if test "${ac_cv_type_time_t+set}" = set; then
19594 $as_echo_n "(cached) " >&6
19595 else
19596 ac_cv_type_time_t=no
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h. */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 $ac_includes_default
19604 int
19605 main ()
19606 {
19607 if (sizeof (time_t))
19608 return 0;
19609 ;
19610 return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest.$ac_objext; then
19631 cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h. */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 $ac_includes_default
19638 int
19639 main ()
19640 {
19641 if (sizeof ((time_t)))
19642 return 0;
19643 ;
19644 return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19654 $as_echo "$ac_try_echo") >&5
19655 (eval "$ac_compile") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest.$ac_objext; then
19665 :
19666 else
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_cv_type_time_t=yes
19671 fi
19672
19673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19674 else
19675 $as_echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678
19679 fi
19680
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19682 fi
19683 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
19684 $as_echo "$ac_cv_type_time_t" >&6; }
19685 if test "x$ac_cv_type_time_t" = x""yes; then
19686 :
19687 else
19688
19689 cat >>confdefs.h <<_ACEOF
19690 #define time_t long
19691 _ACEOF
19692
19693 fi
19694
19695
19696
19697 { $as_echo "$as_me:$LINENO: checking for long long" >&5
19698 $as_echo_n "checking for long long... " >&6; }
19699 if test "${bash_cv_type_long_long+set}" = set; then
19700 $as_echo_n "(cached) " >&6
19701 else
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708
19709 long long ll = 1; int i = 63;
19710 int
19711 main ()
19712 {
19713
19714 long long llm = (long long) -1;
19715 return ll << i | ll >> i | llm / ll | llm % ll;
19716
19717 ;
19718 return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest.$ac_objext conftest$ac_exeext
19722 if { (ac_try="$ac_link"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726 esac
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729 (eval "$ac_link") 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext && {
19739 test "$cross_compiling" = yes ||
19740 $as_test_x conftest$ac_exeext
19741 }; then
19742 bash_cv_type_long_long='long long'
19743 else
19744 $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 bash_cv_type_long_long='long'
19748 fi
19749
19750 rm -rf conftest.dSYM
19751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19752 conftest$ac_exeext conftest.$ac_ext
19753 fi
19754 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
19755 $as_echo "$bash_cv_type_long_long" >&6; }
19756 if test "$bash_cv_type_long_long" = 'long long'; then
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_LONG_LONG 1
19759 _ACEOF
19760
19761 fi
19762
19763
19764 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
19765 $as_echo_n "checking for unsigned long long... " >&6; }
19766 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
19767 $as_echo_n "(cached) " >&6
19768 else
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775
19776 unsigned long long ull = 1; int i = 63;
19777 int
19778 main ()
19779 {
19780
19781 unsigned long long ullmax = (unsigned long long) -1;
19782 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19783
19784 ;
19785 return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (ac_try="$ac_link"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19793 esac
19794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19795 $as_echo "$ac_try_echo") >&5
19796 (eval "$ac_link") 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } && {
19803 test -z "$ac_c_werror_flag" ||
19804 test ! -s conftest.err
19805 } && test -s conftest$ac_exeext && {
19806 test "$cross_compiling" = yes ||
19807 $as_test_x conftest$ac_exeext
19808 }; then
19809 bash_cv_type_unsigned_long_long='unsigned long long'
19810 else
19811 $as_echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 bash_cv_type_unsigned_long_long='unsigned long'
19815 fi
19816
19817 rm -rf conftest.dSYM
19818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19819 conftest$ac_exeext conftest.$ac_ext
19820 fi
19821 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
19822 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
19823 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_UNSIGNED_LONG_LONG 1
19826 _ACEOF
19827
19828 fi
19829
19830
19831 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19832 $as_echo_n "checking return type of signal handlers... " >&6; }
19833 if test "${ac_cv_type_signal+set}" = set; then
19834 $as_echo_n "(cached) " >&6
19835 else
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <sys/types.h>
19843 #include <signal.h>
19844
19845 int
19846 main ()
19847 {
19848 return *(signal (0, 0)) (0) == 1;
19849 ;
19850 return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858 esac
19859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19860 $as_echo "$ac_try_echo") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19862 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest.$ac_objext; then
19871 ac_cv_type_signal=int
19872 else
19873 $as_echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876 ac_cv_type_signal=void
19877 fi
19878
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 fi
19881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19882 $as_echo "$ac_cv_type_signal" >&6; }
19883
19884 cat >>confdefs.h <<_ACEOF
19885 #define RETSIGTYPE $ac_cv_type_signal
19886 _ACEOF
19887
19888
19889 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
19890 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
19891 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
19892 $as_echo_n "(cached) " >&6
19893 else
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h. */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900
19901 #include <signal.h>
19902
19903 int
19904 main ()
19905 {
19906 sig_atomic_t x;
19907 ;
19908 return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916 esac
19917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19918 $as_echo "$ac_try_echo") >&5
19919 (eval "$ac_link") 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest$ac_exeext && {
19929 test "$cross_compiling" = yes ||
19930 $as_test_x conftest$ac_exeext
19931 }; then
19932 ac_cv_have_sig_atomic_t=yes
19933 else
19934 $as_echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 ac_cv_have_sig_atomic_t=no
19938 fi
19939
19940 rm -rf conftest.dSYM
19941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19942 conftest$ac_exeext conftest.$ac_ext
19943 fi
19944 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
19945 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
19946 if test "$ac_cv_have_sig_atomic_t" = "no"
19947 then
19948 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
19949 $as_echo_n "checking for sig_atomic_t... " >&6; }
19950 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
19951 $as_echo_n "(cached) " >&6
19952 else
19953 ac_cv_type_sig_atomic_t=no
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 $ac_includes_default
19961 int
19962 main ()
19963 {
19964 if (sizeof (sig_atomic_t))
19965 return 0;
19966 ;
19967 return 0;
19968 }
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19977 $as_echo "$ac_try_echo") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest.$ac_objext; then
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h. */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 $ac_includes_default
19995 int
19996 main ()
19997 {
19998 if (sizeof ((sig_atomic_t)))
19999 return 0;
20000 ;
20001 return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (ac_try="$ac_compile"
20006 case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20009 esac
20010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20011 $as_echo "$ac_try_echo") >&5
20012 (eval "$ac_compile") 2>conftest.er1
20013 ac_status=$?
20014 grep -v '^ *+' conftest.er1 >conftest.err
20015 rm -f conftest.er1
20016 cat conftest.err >&5
20017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } && {
20019 test -z "$ac_c_werror_flag" ||
20020 test ! -s conftest.err
20021 } && test -s conftest.$ac_objext; then
20022 :
20023 else
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 ac_cv_type_sig_atomic_t=yes
20028 fi
20029
20030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20031 else
20032 $as_echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035
20036 fi
20037
20038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 fi
20040 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20041 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20042 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20043 :
20044 else
20045
20046 cat >>confdefs.h <<_ACEOF
20047 #define sig_atomic_t int
20048 _ACEOF
20049
20050 fi
20051
20052 fi
20053
20054
20055 # The cast to long int works around a bug in the HP C Compiler
20056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20058 # This bug is HP SR number 8606223364.
20059 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20060 $as_echo_n "checking size of char... " >&6; }
20061 if test "${ac_cv_sizeof_char+set}" = set; then
20062 $as_echo_n "(cached) " >&6
20063 else
20064 if test "$cross_compiling" = yes; then
20065 # Depending upon the size, compute the lo and hi bounds.
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 $ac_includes_default
20073 int
20074 main ()
20075 {
20076 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20077 test_array [0] = 0
20078
20079 ;
20080 return 0;
20081 }
20082 _ACEOF
20083 rm -f conftest.$ac_objext
20084 if { (ac_try="$ac_compile"
20085 case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088 esac
20089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20090 $as_echo "$ac_try_echo") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.$ac_objext; then
20101 ac_lo=0 ac_mid=0
20102 while :; do
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20110 int
20111 main ()
20112 {
20113 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20114 test_array [0] = 0
20115
20116 ;
20117 return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125 esac
20126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20127 $as_echo "$ac_try_echo") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20129 ac_status=$?
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
20133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.$ac_objext; then
20138 ac_hi=$ac_mid; break
20139 else
20140 $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143 ac_lo=`expr $ac_mid + 1`
20144 if test $ac_lo -le $ac_mid; then
20145 ac_lo= ac_hi=
20146 break
20147 fi
20148 ac_mid=`expr 2 '*' $ac_mid + 1`
20149 fi
20150
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20152 done
20153 else
20154 $as_echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20164 int
20165 main ()
20166 {
20167 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20168 test_array [0] = 0
20169
20170 ;
20171 return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (ac_try="$ac_compile"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179 esac
20180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20181 $as_echo "$ac_try_echo") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_hi=-1 ac_mid=-1
20193 while :; do
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 $ac_includes_default
20201 int
20202 main ()
20203 {
20204 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20205 test_array [0] = 0
20206
20207 ;
20208 return 0;
20209 }
20210 _ACEOF
20211 rm -f conftest.$ac_objext
20212 if { (ac_try="$ac_compile"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20216 esac
20217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20218 $as_echo "$ac_try_echo") >&5
20219 (eval "$ac_compile") 2>conftest.er1
20220 ac_status=$?
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
20224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest.$ac_objext; then
20229 ac_lo=$ac_mid; break
20230 else
20231 $as_echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20233
20234 ac_hi=`expr '(' $ac_mid ')' - 1`
20235 if test $ac_mid -le $ac_hi; then
20236 ac_lo= ac_hi=
20237 break
20238 fi
20239 ac_mid=`expr 2 '*' $ac_mid`
20240 fi
20241
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 done
20244 else
20245 $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_lo= ac_hi=
20249 fi
20250
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252 fi
20253
20254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20255 # Binary search between lo and hi bounds.
20256 while test "x$ac_lo" != "x$ac_hi"; do
20257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 $ac_includes_default
20265 int
20266 main ()
20267 {
20268 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20269 test_array [0] = 0
20270
20271 ;
20272 return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext
20276 if { (ac_try="$ac_compile"
20277 case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20280 esac
20281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20282 $as_echo "$ac_try_echo") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20284 ac_status=$?
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
20288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_hi=$ac_mid
20294 else
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_lo=`expr '(' $ac_mid ')' + 1`
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 done
20303 case $ac_lo in
20304 ?*) ac_cv_sizeof_char=$ac_lo;;
20305 '') if test "$ac_cv_type_char" = yes; then
20306 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20308 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20309 See \`config.log' for more details." >&5
20310 $as_echo "$as_me: error: cannot compute sizeof (char)
20311 See \`config.log' for more details." >&2;}
20312 { (exit 77); exit 77; }; }; }
20313 else
20314 ac_cv_sizeof_char=0
20315 fi ;;
20316 esac
20317 else
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 $ac_includes_default
20325 static long int longval () { return (long int) (sizeof (char)); }
20326 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
20327 #include <stdio.h>
20328 #include <stdlib.h>
20329 int
20330 main ()
20331 {
20332
20333 FILE *f = fopen ("conftest.val", "w");
20334 if (! f)
20335 return 1;
20336 if (((long int) (sizeof (char))) < 0)
20337 {
20338 long int i = longval ();
20339 if (i != ((long int) (sizeof (char))))
20340 return 1;
20341 fprintf (f, "%ld", i);
20342 }
20343 else
20344 {
20345 unsigned long int i = ulongval ();
20346 if (i != ((long int) (sizeof (char))))
20347 return 1;
20348 fprintf (f, "%lu", i);
20349 }
20350 /* Do not output a trailing newline, as this causes \r\n confusion
20351 on some platforms. */
20352 return ferror (f) || fclose (f) != 0;
20353
20354 ;
20355 return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20365 $as_echo "$ac_try_echo") >&5
20366 (eval "$ac_link") 2>&5
20367 ac_status=$?
20368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373 esac
20374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20375 $as_echo "$ac_try_echo") >&5
20376 (eval "$ac_try") 2>&5
20377 ac_status=$?
20378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 ac_cv_sizeof_char=`cat conftest.val`
20381 else
20382 $as_echo "$as_me: program exited with status $ac_status" >&5
20383 $as_echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ( exit $ac_status )
20387 if test "$ac_cv_type_char" = yes; then
20388 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20391 See \`config.log' for more details." >&5
20392 $as_echo "$as_me: error: cannot compute sizeof (char)
20393 See \`config.log' for more details." >&2;}
20394 { (exit 77); exit 77; }; }; }
20395 else
20396 ac_cv_sizeof_char=0
20397 fi
20398 fi
20399 rm -rf conftest.dSYM
20400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20401 fi
20402 rm -f conftest.val
20403 fi
20404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20405 $as_echo "$ac_cv_sizeof_char" >&6; }
20406
20407
20408
20409 cat >>confdefs.h <<_ACEOF
20410 #define SIZEOF_CHAR $ac_cv_sizeof_char
20411 _ACEOF
20412
20413
20414 # The cast to long int works around a bug in the HP C Compiler
20415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20417 # This bug is HP SR number 8606223364.
20418 { $as_echo "$as_me:$LINENO: checking size of short" >&5
20419 $as_echo_n "checking size of short... " >&6; }
20420 if test "${ac_cv_sizeof_short+set}" = set; then
20421 $as_echo_n "(cached) " >&6
20422 else
20423 if test "$cross_compiling" = yes; then
20424 # Depending upon the size, compute the lo and hi bounds.
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 $ac_includes_default
20432 int
20433 main ()
20434 {
20435 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20436 test_array [0] = 0
20437
20438 ;
20439 return 0;
20440 }
20441 _ACEOF
20442 rm -f conftest.$ac_objext
20443 if { (ac_try="$ac_compile"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447 esac
20448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20449 $as_echo "$ac_try_echo") >&5
20450 (eval "$ac_compile") 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest.$ac_objext; then
20460 ac_lo=0 ac_mid=0
20461 while :; do
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h. */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 $ac_includes_default
20469 int
20470 main ()
20471 {
20472 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20473 test_array [0] = 0
20474
20475 ;
20476 return 0;
20477 }
20478 _ACEOF
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20484 esac
20485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20497 ac_hi=$ac_mid; break
20498 else
20499 $as_echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 ac_lo=`expr $ac_mid + 1`
20503 if test $ac_lo -le $ac_mid; then
20504 ac_lo= ac_hi=
20505 break
20506 fi
20507 ac_mid=`expr 2 '*' $ac_mid + 1`
20508 fi
20509
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511 done
20512 else
20513 $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20515
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 $ac_includes_default
20523 int
20524 main ()
20525 {
20526 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
20527 test_array [0] = 0
20528
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541 (eval "$ac_compile") 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && {
20548 test -z "$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 } && test -s conftest.$ac_objext; then
20551 ac_hi=-1 ac_mid=-1
20552 while :; do
20553 cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h. */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 $ac_includes_default
20560 int
20561 main ()
20562 {
20563 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
20564 test_array [0] = 0
20565
20566 ;
20567 return 0;
20568 }
20569 _ACEOF
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20575 esac
20576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20577 $as_echo "$ac_try_echo") >&5
20578 (eval "$ac_compile") 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest.$ac_objext; then
20588 ac_lo=$ac_mid; break
20589 else
20590 $as_echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_hi=`expr '(' $ac_mid ')' - 1`
20594 if test $ac_mid -le $ac_hi; then
20595 ac_lo= ac_hi=
20596 break
20597 fi
20598 ac_mid=`expr 2 '*' $ac_mid`
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 done
20603 else
20604 $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607 ac_lo= ac_hi=
20608 fi
20609
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614 # Binary search between lo and hi bounds.
20615 while test "x$ac_lo" != "x$ac_hi"; do
20616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 $ac_includes_default
20624 int
20625 main ()
20626 {
20627 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20628 test_array [0] = 0
20629
20630 ;
20631 return 0;
20632 }
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639 esac
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_compile") 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest.$ac_objext; then
20652 ac_hi=$ac_mid
20653 else
20654 $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657 ac_lo=`expr '(' $ac_mid ')' + 1`
20658 fi
20659
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 done
20662 case $ac_lo in
20663 ?*) ac_cv_sizeof_short=$ac_lo;;
20664 '') if test "$ac_cv_type_short" = yes; then
20665 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20667 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20668 See \`config.log' for more details." >&5
20669 $as_echo "$as_me: error: cannot compute sizeof (short)
20670 See \`config.log' for more details." >&2;}
20671 { (exit 77); exit 77; }; }; }
20672 else
20673 ac_cv_sizeof_short=0
20674 fi ;;
20675 esac
20676 else
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 $ac_includes_default
20684 static long int longval () { return (long int) (sizeof (short)); }
20685 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
20686 #include <stdio.h>
20687 #include <stdlib.h>
20688 int
20689 main ()
20690 {
20691
20692 FILE *f = fopen ("conftest.val", "w");
20693 if (! f)
20694 return 1;
20695 if (((long int) (sizeof (short))) < 0)
20696 {
20697 long int i = longval ();
20698 if (i != ((long int) (sizeof (short))))
20699 return 1;
20700 fprintf (f, "%ld", i);
20701 }
20702 else
20703 {
20704 unsigned long int i = ulongval ();
20705 if (i != ((long int) (sizeof (short))))
20706 return 1;
20707 fprintf (f, "%lu", i);
20708 }
20709 /* Do not output a trailing newline, as this causes \r\n confusion
20710 on some platforms. */
20711 return ferror (f) || fclose (f) != 0;
20712
20713 ;
20714 return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest$ac_exeext
20718 if { (ac_try="$ac_link"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722 esac
20723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20724 $as_echo "$ac_try_echo") >&5
20725 (eval "$ac_link") 2>&5
20726 ac_status=$?
20727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20729 { (case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20732 esac
20733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20734 $as_echo "$ac_try_echo") >&5
20735 (eval "$ac_try") 2>&5
20736 ac_status=$?
20737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_cv_sizeof_short=`cat conftest.val`
20740 else
20741 $as_echo "$as_me: program exited with status $ac_status" >&5
20742 $as_echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745 ( exit $ac_status )
20746 if test "$ac_cv_type_short" = yes; then
20747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20749 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20750 See \`config.log' for more details." >&5
20751 $as_echo "$as_me: error: cannot compute sizeof (short)
20752 See \`config.log' for more details." >&2;}
20753 { (exit 77); exit 77; }; }; }
20754 else
20755 ac_cv_sizeof_short=0
20756 fi
20757 fi
20758 rm -rf conftest.dSYM
20759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20760 fi
20761 rm -f conftest.val
20762 fi
20763 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20764 $as_echo "$ac_cv_sizeof_short" >&6; }
20765
20766
20767
20768 cat >>confdefs.h <<_ACEOF
20769 #define SIZEOF_SHORT $ac_cv_sizeof_short
20770 _ACEOF
20771
20772
20773 # The cast to long int works around a bug in the HP C Compiler
20774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20776 # This bug is HP SR number 8606223364.
20777 { $as_echo "$as_me:$LINENO: checking size of int" >&5
20778 $as_echo_n "checking size of int... " >&6; }
20779 if test "${ac_cv_sizeof_int+set}" = set; then
20780 $as_echo_n "(cached) " >&6
20781 else
20782 if test "$cross_compiling" = yes; then
20783 # Depending upon the size, compute the lo and hi bounds.
20784 cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h. */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 $ac_includes_default
20791 int
20792 main ()
20793 {
20794 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
20795 test_array [0] = 0
20796
20797 ;
20798 return 0;
20799 }
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (ac_try="$ac_compile"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806 esac
20807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20808 $as_echo "$ac_try_echo") >&5
20809 (eval "$ac_compile") 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest.$ac_objext; then
20819 ac_lo=0 ac_mid=0
20820 while :; do
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 int
20829 main ()
20830 {
20831 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20832 test_array [0] = 0
20833
20834 ;
20835 return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext
20839 if { (ac_try="$ac_compile"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20843 esac
20844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20845 $as_echo "$ac_try_echo") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.$ac_objext; then
20856 ac_hi=$ac_mid; break
20857 else
20858 $as_echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ac_lo=`expr $ac_mid + 1`
20862 if test $ac_lo -le $ac_mid; then
20863 ac_lo= ac_hi=
20864 break
20865 fi
20866 ac_mid=`expr 2 '*' $ac_mid + 1`
20867 fi
20868
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 done
20871 else
20872 $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20882 int
20883 main ()
20884 {
20885 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
20886 test_array [0] = 0
20887
20888 ;
20889 return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897 esac
20898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20899 $as_echo "$ac_try_echo") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20910 ac_hi=-1 ac_mid=-1
20911 while :; do
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 $ac_includes_default
20919 int
20920 main ()
20921 {
20922 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
20923 test_array [0] = 0
20924
20925 ;
20926 return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20936 $as_echo "$ac_try_echo") >&5
20937 (eval "$ac_compile") 2>conftest.er1
20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
20942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && {
20944 test -z "$ac_c_werror_flag" ||
20945 test ! -s conftest.err
20946 } && test -s conftest.$ac_objext; then
20947 ac_lo=$ac_mid; break
20948 else
20949 $as_echo "$as_me: failed program was:" >&5
20950 sed 's/^/| /' conftest.$ac_ext >&5
20951
20952 ac_hi=`expr '(' $ac_mid ')' - 1`
20953 if test $ac_mid -le $ac_hi; then
20954 ac_lo= ac_hi=
20955 break
20956 fi
20957 ac_mid=`expr 2 '*' $ac_mid`
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 done
20962 else
20963 $as_echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20965
20966 ac_lo= ac_hi=
20967 fi
20968
20969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970 fi
20971
20972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973 # Binary search between lo and hi bounds.
20974 while test "x$ac_lo" != "x$ac_hi"; do
20975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 $ac_includes_default
20983 int
20984 main ()
20985 {
20986 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20987 test_array [0] = 0
20988
20989 ;
20990 return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998 esac
20999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21000 $as_echo "$ac_try_echo") >&5
21001 (eval "$ac_compile") 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } && {
21008 test -z "$ac_c_werror_flag" ||
21009 test ! -s conftest.err
21010 } && test -s conftest.$ac_objext; then
21011 ac_hi=$ac_mid
21012 else
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016 ac_lo=`expr '(' $ac_mid ')' + 1`
21017 fi
21018
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 done
21021 case $ac_lo in
21022 ?*) ac_cv_sizeof_int=$ac_lo;;
21023 '') if test "$ac_cv_type_int" = yes; then
21024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21026 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21027 See \`config.log' for more details." >&5
21028 $as_echo "$as_me: error: cannot compute sizeof (int)
21029 See \`config.log' for more details." >&2;}
21030 { (exit 77); exit 77; }; }; }
21031 else
21032 ac_cv_sizeof_int=0
21033 fi ;;
21034 esac
21035 else
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 $ac_includes_default
21043 static long int longval () { return (long int) (sizeof (int)); }
21044 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21045 #include <stdio.h>
21046 #include <stdlib.h>
21047 int
21048 main ()
21049 {
21050
21051 FILE *f = fopen ("conftest.val", "w");
21052 if (! f)
21053 return 1;
21054 if (((long int) (sizeof (int))) < 0)
21055 {
21056 long int i = longval ();
21057 if (i != ((long int) (sizeof (int))))
21058 return 1;
21059 fprintf (f, "%ld", i);
21060 }
21061 else
21062 {
21063 unsigned long int i = ulongval ();
21064 if (i != ((long int) (sizeof (int))))
21065 return 1;
21066 fprintf (f, "%lu", i);
21067 }
21068 /* Do not output a trailing newline, as this causes \r\n confusion
21069 on some platforms. */
21070 return ferror (f) || fclose (f) != 0;
21071
21072 ;
21073 return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest$ac_exeext
21077 if { (ac_try="$ac_link"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21081 esac
21082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21083 $as_echo "$ac_try_echo") >&5
21084 (eval "$ac_link") 2>&5
21085 ac_status=$?
21086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21088 { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091 esac
21092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21093 $as_echo "$ac_try_echo") >&5
21094 (eval "$ac_try") 2>&5
21095 ac_status=$?
21096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_sizeof_int=`cat conftest.val`
21099 else
21100 $as_echo "$as_me: program exited with status $ac_status" >&5
21101 $as_echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 ( exit $ac_status )
21105 if test "$ac_cv_type_int" = yes; then
21106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21108 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21109 See \`config.log' for more details." >&5
21110 $as_echo "$as_me: error: cannot compute sizeof (int)
21111 See \`config.log' for more details." >&2;}
21112 { (exit 77); exit 77; }; }; }
21113 else
21114 ac_cv_sizeof_int=0
21115 fi
21116 fi
21117 rm -rf conftest.dSYM
21118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21119 fi
21120 rm -f conftest.val
21121 fi
21122 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21123 $as_echo "$ac_cv_sizeof_int" >&6; }
21124
21125
21126
21127 cat >>confdefs.h <<_ACEOF
21128 #define SIZEOF_INT $ac_cv_sizeof_int
21129 _ACEOF
21130
21131
21132 # The cast to long int works around a bug in the HP C Compiler
21133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21135 # This bug is HP SR number 8606223364.
21136 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21137 $as_echo_n "checking size of long... " >&6; }
21138 if test "${ac_cv_sizeof_long+set}" = set; then
21139 $as_echo_n "(cached) " >&6
21140 else
21141 if test "$cross_compiling" = yes; then
21142 # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 $ac_includes_default
21150 int
21151 main ()
21152 {
21153 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21154 test_array [0] = 0
21155
21156 ;
21157 return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165 esac
21166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21167 $as_echo "$ac_try_echo") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21178 ac_lo=0 ac_mid=0
21179 while :; do
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21187 int
21188 main ()
21189 {
21190 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21191 test_array [0] = 0
21192
21193 ;
21194 return 0;
21195 }
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21202 esac
21203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21204 $as_echo "$ac_try_echo") >&5
21205 (eval "$ac_compile") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest.$ac_objext; then
21215 ac_hi=$ac_mid; break
21216 else
21217 $as_echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 ac_lo=`expr $ac_mid + 1`
21221 if test $ac_lo -le $ac_mid; then
21222 ac_lo= ac_hi=
21223 break
21224 fi
21225 ac_mid=`expr 2 '*' $ac_mid + 1`
21226 fi
21227
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 done
21230 else
21231 $as_echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 $ac_includes_default
21241 int
21242 main ()
21243 {
21244 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21245 test_array [0] = 0
21246
21247 ;
21248 return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21256 esac
21257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21258 $as_echo "$ac_try_echo") >&5
21259 (eval "$ac_compile") 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest.$ac_objext; then
21269 ac_hi=-1 ac_mid=-1
21270 while :; do
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 $ac_includes_default
21278 int
21279 main ()
21280 {
21281 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21282 test_array [0] = 0
21283
21284 ;
21285 return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_lo=$ac_mid; break
21307 else
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 ac_hi=`expr '(' $ac_mid ')' - 1`
21312 if test $ac_mid -le $ac_hi; then
21313 ac_lo= ac_hi=
21314 break
21315 fi
21316 ac_mid=`expr 2 '*' $ac_mid`
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 done
21321 else
21322 $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 ac_lo= ac_hi=
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 # Binary search between lo and hi bounds.
21333 while test "x$ac_lo" != "x$ac_hi"; do
21334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h. */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 $ac_includes_default
21342 int
21343 main ()
21344 {
21345 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21346 test_array [0] = 0
21347
21348 ;
21349 return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21357 esac
21358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21359 $as_echo "$ac_try_echo") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21370 ac_hi=$ac_mid
21371 else
21372 $as_echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ac_lo=`expr '(' $ac_mid ')' + 1`
21376 fi
21377
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 done
21380 case $ac_lo in
21381 ?*) ac_cv_sizeof_long=$ac_lo;;
21382 '') if test "$ac_cv_type_long" = yes; then
21383 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21385 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21386 See \`config.log' for more details." >&5
21387 $as_echo "$as_me: error: cannot compute sizeof (long)
21388 See \`config.log' for more details." >&2;}
21389 { (exit 77); exit 77; }; }; }
21390 else
21391 ac_cv_sizeof_long=0
21392 fi ;;
21393 esac
21394 else
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 $ac_includes_default
21402 static long int longval () { return (long int) (sizeof (long)); }
21403 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21404 #include <stdio.h>
21405 #include <stdlib.h>
21406 int
21407 main ()
21408 {
21409
21410 FILE *f = fopen ("conftest.val", "w");
21411 if (! f)
21412 return 1;
21413 if (((long int) (sizeof (long))) < 0)
21414 {
21415 long int i = longval ();
21416 if (i != ((long int) (sizeof (long))))
21417 return 1;
21418 fprintf (f, "%ld", i);
21419 }
21420 else
21421 {
21422 unsigned long int i = ulongval ();
21423 if (i != ((long int) (sizeof (long))))
21424 return 1;
21425 fprintf (f, "%lu", i);
21426 }
21427 /* Do not output a trailing newline, as this causes \r\n confusion
21428 on some platforms. */
21429 return ferror (f) || fclose (f) != 0;
21430
21431 ;
21432 return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21440 esac
21441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21442 $as_echo "$ac_try_echo") >&5
21443 (eval "$ac_link") 2>&5
21444 ac_status=$?
21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21447 { (case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453 (eval "$ac_try") 2>&5
21454 ac_status=$?
21455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_sizeof_long=`cat conftest.val`
21458 else
21459 $as_echo "$as_me: program exited with status $ac_status" >&5
21460 $as_echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463 ( exit $ac_status )
21464 if test "$ac_cv_type_long" = yes; then
21465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21467 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21468 See \`config.log' for more details." >&5
21469 $as_echo "$as_me: error: cannot compute sizeof (long)
21470 See \`config.log' for more details." >&2;}
21471 { (exit 77); exit 77; }; }; }
21472 else
21473 ac_cv_sizeof_long=0
21474 fi
21475 fi
21476 rm -rf conftest.dSYM
21477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21478 fi
21479 rm -f conftest.val
21480 fi
21481 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21482 $as_echo "$ac_cv_sizeof_long" >&6; }
21483
21484
21485
21486 cat >>confdefs.h <<_ACEOF
21487 #define SIZEOF_LONG $ac_cv_sizeof_long
21488 _ACEOF
21489
21490
21491 # The cast to long int works around a bug in the HP C Compiler
21492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21494 # This bug is HP SR number 8606223364.
21495 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
21496 $as_echo_n "checking size of char *... " >&6; }
21497 if test "${ac_cv_sizeof_char_p+set}" = set; then
21498 $as_echo_n "(cached) " >&6
21499 else
21500 if test "$cross_compiling" = yes; then
21501 # Depending upon the size, compute the lo and hi bounds.
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h. */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 $ac_includes_default
21509 int
21510 main ()
21511 {
21512 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
21513 test_array [0] = 0
21514
21515 ;
21516 return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21524 esac
21525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21526 $as_echo "$ac_try_echo") >&5
21527 (eval "$ac_compile") 2>conftest.er1
21528 ac_status=$?
21529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
21532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && {
21534 test -z "$ac_c_werror_flag" ||
21535 test ! -s conftest.err
21536 } && test -s conftest.$ac_objext; then
21537 ac_lo=0 ac_mid=0
21538 while :; do
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 $ac_includes_default
21546 int
21547 main ()
21548 {
21549 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21550 test_array [0] = 0
21551
21552 ;
21553 return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21563 $as_echo "$ac_try_echo") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest.$ac_objext; then
21574 ac_hi=$ac_mid; break
21575 else
21576 $as_echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 ac_lo=`expr $ac_mid + 1`
21580 if test $ac_lo -le $ac_mid; then
21581 ac_lo= ac_hi=
21582 break
21583 fi
21584 ac_mid=`expr 2 '*' $ac_mid + 1`
21585 fi
21586
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 done
21589 else
21590 $as_echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 $ac_includes_default
21600 int
21601 main ()
21602 {
21603 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
21604 test_array [0] = 0
21605
21606 ;
21607 return 0;
21608 }
21609 _ACEOF
21610 rm -f conftest.$ac_objext
21611 if { (ac_try="$ac_compile"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21615 esac
21616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21617 $as_echo "$ac_try_echo") >&5
21618 (eval "$ac_compile") 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest.$ac_objext; then
21628 ac_hi=-1 ac_mid=-1
21629 while :; do
21630 cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h. */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 $ac_includes_default
21637 int
21638 main ()
21639 {
21640 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
21641 test_array [0] = 0
21642
21643 ;
21644 return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext
21648 if { (ac_try="$ac_compile"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652 esac
21653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21654 $as_echo "$ac_try_echo") >&5
21655 (eval "$ac_compile") 2>conftest.er1
21656 ac_status=$?
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
21660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } && {
21662 test -z "$ac_c_werror_flag" ||
21663 test ! -s conftest.err
21664 } && test -s conftest.$ac_objext; then
21665 ac_lo=$ac_mid; break
21666 else
21667 $as_echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 ac_hi=`expr '(' $ac_mid ')' - 1`
21671 if test $ac_mid -le $ac_hi; then
21672 ac_lo= ac_hi=
21673 break
21674 fi
21675 ac_mid=`expr 2 '*' $ac_mid`
21676 fi
21677
21678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 done
21680 else
21681 $as_echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ac_lo= ac_hi=
21685 fi
21686
21687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688 fi
21689
21690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 # Binary search between lo and hi bounds.
21692 while test "x$ac_lo" != "x$ac_hi"; do
21693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21694 cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h. */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 $ac_includes_default
21701 int
21702 main ()
21703 {
21704 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21705 test_array [0] = 0
21706
21707 ;
21708 return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest.$ac_objext
21712 if { (ac_try="$ac_compile"
21713 case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21716 esac
21717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21718 $as_echo "$ac_try_echo") >&5
21719 (eval "$ac_compile") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest.$ac_objext; then
21729 ac_hi=$ac_mid
21730 else
21731 $as_echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_lo=`expr '(' $ac_mid ')' + 1`
21735 fi
21736
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 done
21739 case $ac_lo in
21740 ?*) ac_cv_sizeof_char_p=$ac_lo;;
21741 '') if test "$ac_cv_type_char_p" = yes; then
21742 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21744 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
21745 See \`config.log' for more details." >&5
21746 $as_echo "$as_me: error: cannot compute sizeof (char *)
21747 See \`config.log' for more details." >&2;}
21748 { (exit 77); exit 77; }; }; }
21749 else
21750 ac_cv_sizeof_char_p=0
21751 fi ;;
21752 esac
21753 else
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h. */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 static long int longval () { return (long int) (sizeof (char *)); }
21762 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
21763 #include <stdio.h>
21764 #include <stdlib.h>
21765 int
21766 main ()
21767 {
21768
21769 FILE *f = fopen ("conftest.val", "w");
21770 if (! f)
21771 return 1;
21772 if (((long int) (sizeof (char *))) < 0)
21773 {
21774 long int i = longval ();
21775 if (i != ((long int) (sizeof (char *))))
21776 return 1;
21777 fprintf (f, "%ld", i);
21778 }
21779 else
21780 {
21781 unsigned long int i = ulongval ();
21782 if (i != ((long int) (sizeof (char *))))
21783 return 1;
21784 fprintf (f, "%lu", i);
21785 }
21786 /* Do not output a trailing newline, as this causes \r\n confusion
21787 on some platforms. */
21788 return ferror (f) || fclose (f) != 0;
21789
21790 ;
21791 return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest$ac_exeext
21795 if { (ac_try="$ac_link"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21801 $as_echo "$ac_try_echo") >&5
21802 (eval "$ac_link") 2>&5
21803 ac_status=$?
21804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21806 { (case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21809 esac
21810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21811 $as_echo "$ac_try_echo") >&5
21812 (eval "$ac_try") 2>&5
21813 ac_status=$?
21814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_sizeof_char_p=`cat conftest.val`
21817 else
21818 $as_echo "$as_me: program exited with status $ac_status" >&5
21819 $as_echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822 ( exit $ac_status )
21823 if test "$ac_cv_type_char_p" = yes; then
21824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21826 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
21827 See \`config.log' for more details." >&5
21828 $as_echo "$as_me: error: cannot compute sizeof (char *)
21829 See \`config.log' for more details." >&2;}
21830 { (exit 77); exit 77; }; }; }
21831 else
21832 ac_cv_sizeof_char_p=0
21833 fi
21834 fi
21835 rm -rf conftest.dSYM
21836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21837 fi
21838 rm -f conftest.val
21839 fi
21840 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
21841 $as_echo "$ac_cv_sizeof_char_p" >&6; }
21842
21843
21844
21845 cat >>confdefs.h <<_ACEOF
21846 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
21847 _ACEOF
21848
21849
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { $as_echo "$as_me:$LINENO: checking size of double" >&5
21855 $as_echo_n "checking size of double... " >&6; }
21856 if test "${ac_cv_sizeof_double+set}" = set; then
21857 $as_echo_n "(cached) " >&6
21858 else
21859 if test "$cross_compiling" = yes; then
21860 # Depending upon the size, compute the lo and hi bounds.
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21868 int
21869 main ()
21870 {
21871 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
21872 test_array [0] = 0
21873
21874 ;
21875 return 0;
21876 }
21877 _ACEOF
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21883 esac
21884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21885 $as_echo "$ac_try_echo") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21896 ac_lo=0 ac_mid=0
21897 while :; do
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 int
21906 main ()
21907 {
21908 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
21909 test_array [0] = 0
21910
21911 ;
21912 return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest.$ac_objext
21916 if { (ac_try="$ac_compile"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920 esac
21921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21922 $as_echo "$ac_try_echo") >&5
21923 (eval "$ac_compile") 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } && {
21930 test -z "$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 } && test -s conftest.$ac_objext; then
21933 ac_hi=$ac_mid; break
21934 else
21935 $as_echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 ac_lo=`expr $ac_mid + 1`
21939 if test $ac_lo -le $ac_mid; then
21940 ac_lo= ac_hi=
21941 break
21942 fi
21943 ac_mid=`expr 2 '*' $ac_mid + 1`
21944 fi
21945
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 done
21948 else
21949 $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21959 int
21960 main ()
21961 {
21962 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
21963 test_array [0] = 0
21964
21965 ;
21966 return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest.$ac_objext
21970 if { (ac_try="$ac_compile"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974 esac
21975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21976 $as_echo "$ac_try_echo") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21978 ac_status=$?
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
21982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21987 ac_hi=-1 ac_mid=-1
21988 while :; do
21989 cat >conftest.$ac_ext <<_ACEOF
21990 /* confdefs.h. */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 $ac_includes_default
21996 int
21997 main ()
21998 {
21999 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22000 test_array [0] = 0
22001
22002 ;
22003 return 0;
22004 }
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011 esac
22012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22013 $as_echo "$ac_try_echo") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22024 ac_lo=$ac_mid; break
22025 else
22026 $as_echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_hi=`expr '(' $ac_mid ')' - 1`
22030 if test $ac_mid -le $ac_hi; then
22031 ac_lo= ac_hi=
22032 break
22033 fi
22034 ac_mid=`expr 2 '*' $ac_mid`
22035 fi
22036
22037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038 done
22039 else
22040 $as_echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22042
22043 ac_lo= ac_hi=
22044 fi
22045
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047 fi
22048
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 # Binary search between lo and hi bounds.
22051 while test "x$ac_lo" != "x$ac_hi"; do
22052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h. */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22060 int
22061 main ()
22062 {
22063 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22064 test_array [0] = 0
22065
22066 ;
22067 return 0;
22068 }
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22075 esac
22076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22077 $as_echo "$ac_try_echo") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 ac_hi=$ac_mid
22089 else
22090 $as_echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 ac_lo=`expr '(' $ac_mid ')' + 1`
22094 fi
22095
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 done
22098 case $ac_lo in
22099 ?*) ac_cv_sizeof_double=$ac_lo;;
22100 '') if test "$ac_cv_type_double" = yes; then
22101 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22103 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22104 See \`config.log' for more details." >&5
22105 $as_echo "$as_me: error: cannot compute sizeof (double)
22106 See \`config.log' for more details." >&2;}
22107 { (exit 77); exit 77; }; }; }
22108 else
22109 ac_cv_sizeof_double=0
22110 fi ;;
22111 esac
22112 else
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h. */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 $ac_includes_default
22120 static long int longval () { return (long int) (sizeof (double)); }
22121 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22122 #include <stdio.h>
22123 #include <stdlib.h>
22124 int
22125 main ()
22126 {
22127
22128 FILE *f = fopen ("conftest.val", "w");
22129 if (! f)
22130 return 1;
22131 if (((long int) (sizeof (double))) < 0)
22132 {
22133 long int i = longval ();
22134 if (i != ((long int) (sizeof (double))))
22135 return 1;
22136 fprintf (f, "%ld", i);
22137 }
22138 else
22139 {
22140 unsigned long int i = ulongval ();
22141 if (i != ((long int) (sizeof (double))))
22142 return 1;
22143 fprintf (f, "%lu", i);
22144 }
22145 /* Do not output a trailing newline, as this causes \r\n confusion
22146 on some platforms. */
22147 return ferror (f) || fclose (f) != 0;
22148
22149 ;
22150 return 0;
22151 }
22152 _ACEOF
22153 rm -f conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158 esac
22159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22160 $as_echo "$ac_try_echo") >&5
22161 (eval "$ac_link") 2>&5
22162 ac_status=$?
22163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22165 { (case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22168 esac
22169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22170 $as_echo "$ac_try_echo") >&5
22171 (eval "$ac_try") 2>&5
22172 ac_status=$?
22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_sizeof_double=`cat conftest.val`
22176 else
22177 $as_echo "$as_me: program exited with status $ac_status" >&5
22178 $as_echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181 ( exit $ac_status )
22182 if test "$ac_cv_type_double" = yes; then
22183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22185 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22186 See \`config.log' for more details." >&5
22187 $as_echo "$as_me: error: cannot compute sizeof (double)
22188 See \`config.log' for more details." >&2;}
22189 { (exit 77); exit 77; }; }; }
22190 else
22191 ac_cv_sizeof_double=0
22192 fi
22193 fi
22194 rm -rf conftest.dSYM
22195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22196 fi
22197 rm -f conftest.val
22198 fi
22199 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22200 $as_echo "$ac_cv_sizeof_double" >&6; }
22201
22202
22203
22204 cat >>confdefs.h <<_ACEOF
22205 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22206 _ACEOF
22207
22208
22209 # The cast to long int works around a bug in the HP C Compiler
22210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22212 # This bug is HP SR number 8606223364.
22213 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22214 $as_echo_n "checking size of long long... " >&6; }
22215 if test "${ac_cv_sizeof_long_long+set}" = set; then
22216 $as_echo_n "(cached) " >&6
22217 else
22218 if test "$cross_compiling" = yes; then
22219 # Depending upon the size, compute the lo and hi bounds.
22220 cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h. */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226 $ac_includes_default
22227 int
22228 main ()
22229 {
22230 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22231 test_array [0] = 0
22232
22233 ;
22234 return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext
22238 if { (ac_try="$ac_compile"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22244 $as_echo "$ac_try_echo") >&5
22245 (eval "$ac_compile") 2>conftest.er1
22246 ac_status=$?
22247 grep -v '^ *+' conftest.er1 >conftest.err
22248 rm -f conftest.er1
22249 cat conftest.err >&5
22250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } && {
22252 test -z "$ac_c_werror_flag" ||
22253 test ! -s conftest.err
22254 } && test -s conftest.$ac_objext; then
22255 ac_lo=0 ac_mid=0
22256 while :; do
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22264 int
22265 main ()
22266 {
22267 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22268 test_array [0] = 0
22269
22270 ;
22271 return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22279 esac
22280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22281 $as_echo "$ac_try_echo") >&5
22282 (eval "$ac_compile") 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest.$ac_objext; then
22292 ac_hi=$ac_mid; break
22293 else
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297 ac_lo=`expr $ac_mid + 1`
22298 if test $ac_lo -le $ac_mid; then
22299 ac_lo= ac_hi=
22300 break
22301 fi
22302 ac_mid=`expr 2 '*' $ac_mid + 1`
22303 fi
22304
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 done
22307 else
22308 $as_echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 $ac_includes_default
22318 int
22319 main ()
22320 {
22321 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22322 test_array [0] = 0
22323
22324 ;
22325 return 0;
22326 }
22327 _ACEOF
22328 rm -f conftest.$ac_objext
22329 if { (ac_try="$ac_compile"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22333 esac
22334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22335 $as_echo "$ac_try_echo") >&5
22336 (eval "$ac_compile") 2>conftest.er1
22337 ac_status=$?
22338 grep -v '^ *+' conftest.er1 >conftest.err
22339 rm -f conftest.er1
22340 cat conftest.err >&5
22341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest.$ac_objext; then
22346 ac_hi=-1 ac_mid=-1
22347 while :; do
22348 cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h. */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 $ac_includes_default
22355 int
22356 main ()
22357 {
22358 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22359 test_array [0] = 0
22360
22361 ;
22362 return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22370 esac
22371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22372 $as_echo "$ac_try_echo") >&5
22373 (eval "$ac_compile") 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest.$ac_objext; then
22383 ac_lo=$ac_mid; break
22384 else
22385 $as_echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388 ac_hi=`expr '(' $ac_mid ')' - 1`
22389 if test $ac_mid -le $ac_hi; then
22390 ac_lo= ac_hi=
22391 break
22392 fi
22393 ac_mid=`expr 2 '*' $ac_mid`
22394 fi
22395
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 done
22398 else
22399 $as_echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402 ac_lo= ac_hi=
22403 fi
22404
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 fi
22407
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 # Binary search between lo and hi bounds.
22410 while test "x$ac_lo" != "x$ac_hi"; do
22411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22412 cat >conftest.$ac_ext <<_ACEOF
22413 /* confdefs.h. */
22414 _ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 $ac_includes_default
22419 int
22420 main ()
22421 {
22422 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22423 test_array [0] = 0
22424
22425 ;
22426 return 0;
22427 }
22428 _ACEOF
22429 rm -f conftest.$ac_objext
22430 if { (ac_try="$ac_compile"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22436 $as_echo "$ac_try_echo") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22438 ac_status=$?
22439 grep -v '^ *+' conftest.er1 >conftest.err
22440 rm -f conftest.er1
22441 cat conftest.err >&5
22442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22447 ac_hi=$ac_mid
22448 else
22449 $as_echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452 ac_lo=`expr '(' $ac_mid ')' + 1`
22453 fi
22454
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 done
22457 case $ac_lo in
22458 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22459 '') if test "$ac_cv_type_long_long" = yes; then
22460 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22462 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22463 See \`config.log' for more details." >&5
22464 $as_echo "$as_me: error: cannot compute sizeof (long long)
22465 See \`config.log' for more details." >&2;}
22466 { (exit 77); exit 77; }; }; }
22467 else
22468 ac_cv_sizeof_long_long=0
22469 fi ;;
22470 esac
22471 else
22472 cat >conftest.$ac_ext <<_ACEOF
22473 /* confdefs.h. */
22474 _ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 $ac_includes_default
22479 static long int longval () { return (long int) (sizeof (long long)); }
22480 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22481 #include <stdio.h>
22482 #include <stdlib.h>
22483 int
22484 main ()
22485 {
22486
22487 FILE *f = fopen ("conftest.val", "w");
22488 if (! f)
22489 return 1;
22490 if (((long int) (sizeof (long long))) < 0)
22491 {
22492 long int i = longval ();
22493 if (i != ((long int) (sizeof (long long))))
22494 return 1;
22495 fprintf (f, "%ld", i);
22496 }
22497 else
22498 {
22499 unsigned long int i = ulongval ();
22500 if (i != ((long int) (sizeof (long long))))
22501 return 1;
22502 fprintf (f, "%lu", i);
22503 }
22504 /* Do not output a trailing newline, as this causes \r\n confusion
22505 on some platforms. */
22506 return ferror (f) || fclose (f) != 0;
22507
22508 ;
22509 return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517 esac
22518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22519 $as_echo "$ac_try_echo") >&5
22520 (eval "$ac_link") 2>&5
22521 ac_status=$?
22522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22524 { (case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527 esac
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530 (eval "$ac_try") 2>&5
22531 ac_status=$?
22532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_cv_sizeof_long_long=`cat conftest.val`
22535 else
22536 $as_echo "$as_me: program exited with status $ac_status" >&5
22537 $as_echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22539
22540 ( exit $ac_status )
22541 if test "$ac_cv_type_long_long" = yes; then
22542 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22544 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22545 See \`config.log' for more details." >&5
22546 $as_echo "$as_me: error: cannot compute sizeof (long long)
22547 See \`config.log' for more details." >&2;}
22548 { (exit 77); exit 77; }; }; }
22549 else
22550 ac_cv_sizeof_long_long=0
22551 fi
22552 fi
22553 rm -rf conftest.dSYM
22554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22555 fi
22556 rm -f conftest.val
22557 fi
22558 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22559 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22560
22561
22562
22563 cat >>confdefs.h <<_ACEOF
22564 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22565 _ACEOF
22566
22567
22568
22569 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
22570 $as_echo_n "checking for u_int... " >&6; }
22571 if test "${ac_cv_type_u_int+set}" = set; then
22572 $as_echo_n "(cached) " >&6
22573 else
22574 ac_cv_type_u_int=no
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 $ac_includes_default
22582 int
22583 main ()
22584 {
22585 if (sizeof (u_int))
22586 return 0;
22587 ;
22588 return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (ac_try="$ac_compile"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596 esac
22597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22598 $as_echo "$ac_try_echo") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h. */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22615 $ac_includes_default
22616 int
22617 main ()
22618 {
22619 if (sizeof ((u_int)))
22620 return 0;
22621 ;
22622 return 0;
22623 }
22624 _ACEOF
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630 esac
22631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22632 $as_echo "$ac_try_echo") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22634 ac_status=$?
22635 grep -v '^ *+' conftest.er1 >conftest.err
22636 rm -f conftest.er1
22637 cat conftest.err >&5
22638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_c_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22643 :
22644 else
22645 $as_echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 ac_cv_type_u_int=yes
22649 fi
22650
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 else
22653 $as_echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22655
22656
22657 fi
22658
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660 fi
22661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
22662 $as_echo "$ac_cv_type_u_int" >&6; }
22663 if test "x$ac_cv_type_u_int" = x""yes; then
22664 :
22665 else
22666
22667 cat >>confdefs.h <<_ACEOF
22668 #define u_int unsigned int
22669 _ACEOF
22670
22671 fi
22672
22673 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
22674 $as_echo_n "checking for u_long... " >&6; }
22675 if test "${ac_cv_type_u_long+set}" = set; then
22676 $as_echo_n "(cached) " >&6
22677 else
22678 ac_cv_type_u_long=no
22679 cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h. */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 $ac_includes_default
22686 int
22687 main ()
22688 {
22689 if (sizeof (u_long))
22690 return 0;
22691 ;
22692 return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700 esac
22701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22702 $as_echo "$ac_try_echo") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22704 ac_status=$?
22705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h. */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 $ac_includes_default
22720 int
22721 main ()
22722 {
22723 if (sizeof ((u_long)))
22724 return 0;
22725 ;
22726 return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext
22730 if { (ac_try="$ac_compile"
22731 case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22734 esac
22735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22736 $as_echo "$ac_try_echo") >&5
22737 (eval "$ac_compile") 2>conftest.er1
22738 ac_status=$?
22739 grep -v '^ *+' conftest.er1 >conftest.err
22740 rm -f conftest.er1
22741 cat conftest.err >&5
22742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } && {
22744 test -z "$ac_c_werror_flag" ||
22745 test ! -s conftest.err
22746 } && test -s conftest.$ac_objext; then
22747 :
22748 else
22749 $as_echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ac_cv_type_u_long=yes
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 else
22757 $as_echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760
22761 fi
22762
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22764 fi
22765 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
22766 $as_echo "$ac_cv_type_u_long" >&6; }
22767 if test "x$ac_cv_type_u_long" = x""yes; then
22768 :
22769 else
22770
22771 cat >>confdefs.h <<_ACEOF
22772 #define u_long unsigned long
22773 _ACEOF
22774
22775 fi
22776
22777
22778
22779 if test "$ac_cv_sizeof_short" = 2; then
22780 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22781 $as_echo_n "checking for bits16_t... " >&6; }
22782 if test "${ac_cv_type_bits16_t+set}" = set; then
22783 $as_echo_n "(cached) " >&6
22784 else
22785 ac_cv_type_bits16_t=no
22786 cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h. */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 $ac_includes_default
22793 int
22794 main ()
22795 {
22796 if (sizeof (bits16_t))
22797 return 0;
22798 ;
22799 return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22809 $as_echo "$ac_try_echo") >&5
22810 (eval "$ac_compile") 2>conftest.er1
22811 ac_status=$?
22812 grep -v '^ *+' conftest.er1 >conftest.err
22813 rm -f conftest.er1
22814 cat conftest.err >&5
22815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest.$ac_objext; then
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 int
22828 main ()
22829 {
22830 if (sizeof ((bits16_t)))
22831 return 0;
22832 ;
22833 return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext
22837 if { (ac_try="$ac_compile"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22841 esac
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22845 ac_status=$?
22846 grep -v '^ *+' conftest.er1 >conftest.err
22847 rm -f conftest.er1
22848 cat conftest.err >&5
22849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 :
22855 else
22856 $as_echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859 ac_cv_type_bits16_t=yes
22860 fi
22861
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 else
22864 $as_echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22866
22867
22868 fi
22869
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871 fi
22872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22873 $as_echo "$ac_cv_type_bits16_t" >&6; }
22874 if test "x$ac_cv_type_bits16_t" = x""yes; then
22875 :
22876 else
22877
22878 cat >>confdefs.h <<_ACEOF
22879 #define bits16_t short
22880 _ACEOF
22881
22882 fi
22883
22884 elif test "$ac_cv_sizeof_char" = 2; then
22885 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22886 $as_echo_n "checking for bits16_t... " >&6; }
22887 if test "${ac_cv_type_bits16_t+set}" = set; then
22888 $as_echo_n "(cached) " >&6
22889 else
22890 ac_cv_type_bits16_t=no
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 int
22899 main ()
22900 {
22901 if (sizeof (bits16_t))
22902 return 0;
22903 ;
22904 return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912 esac
22913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22914 $as_echo "$ac_try_echo") >&5
22915 (eval "$ac_compile") 2>conftest.er1
22916 ac_status=$?
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
22920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_c_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest.$ac_objext; then
22925 cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h. */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 $ac_includes_default
22932 int
22933 main ()
22934 {
22935 if (sizeof ((bits16_t)))
22936 return 0;
22937 ;
22938 return 0;
22939 }
22940 _ACEOF
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22946 esac
22947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22948 $as_echo "$ac_try_echo") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22950 ac_status=$?
22951 grep -v '^ *+' conftest.er1 >conftest.err
22952 rm -f conftest.er1
22953 cat conftest.err >&5
22954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 :
22960 else
22961 $as_echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964 ac_cv_type_bits16_t=yes
22965 fi
22966
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 else
22969 $as_echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972
22973 fi
22974
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 fi
22977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22978 $as_echo "$ac_cv_type_bits16_t" >&6; }
22979 if test "x$ac_cv_type_bits16_t" = x""yes; then
22980 :
22981 else
22982
22983 cat >>confdefs.h <<_ACEOF
22984 #define bits16_t char
22985 _ACEOF
22986
22987 fi
22988
22989 else
22990 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22991 $as_echo_n "checking for bits16_t... " >&6; }
22992 if test "${ac_cv_type_bits16_t+set}" = set; then
22993 $as_echo_n "(cached) " >&6
22994 else
22995 ac_cv_type_bits16_t=no
22996 cat >conftest.$ac_ext <<_ACEOF
22997 /* confdefs.h. */
22998 _ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23002 $ac_includes_default
23003 int
23004 main ()
23005 {
23006 if (sizeof (bits16_t))
23007 return 0;
23008 ;
23009 return 0;
23010 }
23011 _ACEOF
23012 rm -f conftest.$ac_objext
23013 if { (ac_try="$ac_compile"
23014 case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23017 esac
23018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23019 $as_echo "$ac_try_echo") >&5
23020 (eval "$ac_compile") 2>conftest.er1
23021 ac_status=$?
23022 grep -v '^ *+' conftest.er1 >conftest.err
23023 rm -f conftest.er1
23024 cat conftest.err >&5
23025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } && {
23027 test -z "$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23029 } && test -s conftest.$ac_objext; then
23030 cat >conftest.$ac_ext <<_ACEOF
23031 /* confdefs.h. */
23032 _ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 $ac_includes_default
23037 int
23038 main ()
23039 {
23040 if (sizeof ((bits16_t)))
23041 return 0;
23042 ;
23043 return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest.$ac_objext
23047 if { (ac_try="$ac_compile"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23051 esac
23052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23053 $as_echo "$ac_try_echo") >&5
23054 (eval "$ac_compile") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest.$ac_objext; then
23064 :
23065 else
23066 $as_echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_cv_type_bits16_t=yes
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 else
23074 $as_echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077
23078 fi
23079
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 fi
23082 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23083 $as_echo "$ac_cv_type_bits16_t" >&6; }
23084 if test "x$ac_cv_type_bits16_t" = x""yes; then
23085 :
23086 else
23087
23088 cat >>confdefs.h <<_ACEOF
23089 #define bits16_t short
23090 _ACEOF
23091
23092 fi
23093
23094 fi
23095
23096
23097 if test "$ac_cv_sizeof_short" = 2; then
23098 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23099 $as_echo_n "checking for u_bits16_t... " >&6; }
23100 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23101 $as_echo_n "(cached) " >&6
23102 else
23103 ac_cv_type_u_bits16_t=no
23104 cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h. */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23111 int
23112 main ()
23113 {
23114 if (sizeof (u_bits16_t))
23115 return 0;
23116 ;
23117 return 0;
23118 }
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23127 $as_echo "$ac_try_echo") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23129 ac_status=$?
23130 grep -v '^ *+' conftest.er1 >conftest.err
23131 rm -f conftest.er1
23132 cat conftest.err >&5
23133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 cat >conftest.$ac_ext <<_ACEOF
23139 /* confdefs.h. */
23140 _ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23144 $ac_includes_default
23145 int
23146 main ()
23147 {
23148 if (sizeof ((u_bits16_t)))
23149 return 0;
23150 ;
23151 return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23159 esac
23160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23161 $as_echo "$ac_try_echo") >&5
23162 (eval "$ac_compile") 2>conftest.er1
23163 ac_status=$?
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
23167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest.$ac_objext; then
23172 :
23173 else
23174 $as_echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177 ac_cv_type_u_bits16_t=yes
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 else
23182 $as_echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185
23186 fi
23187
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23189 fi
23190 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23191 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23192 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23193 :
23194 else
23195
23196 cat >>confdefs.h <<_ACEOF
23197 #define u_bits16_t unsigned short
23198 _ACEOF
23199
23200 fi
23201
23202 elif test "$ac_cv_sizeof_char" = 2; then
23203 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23204 $as_echo_n "checking for u_bits16_t... " >&6; }
23205 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23206 $as_echo_n "(cached) " >&6
23207 else
23208 ac_cv_type_u_bits16_t=no
23209 cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h. */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 $ac_includes_default
23216 int
23217 main ()
23218 {
23219 if (sizeof (u_bits16_t))
23220 return 0;
23221 ;
23222 return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23230 esac
23231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23232 $as_echo "$ac_try_echo") >&5
23233 (eval "$ac_compile") 2>conftest.er1
23234 ac_status=$?
23235 grep -v '^ *+' conftest.er1 >conftest.err
23236 rm -f conftest.er1
23237 cat conftest.err >&5
23238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } && {
23240 test -z "$ac_c_werror_flag" ||
23241 test ! -s conftest.err
23242 } && test -s conftest.$ac_objext; then
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 $ac_includes_default
23250 int
23251 main ()
23252 {
23253 if (sizeof ((u_bits16_t)))
23254 return 0;
23255 ;
23256 return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264 esac
23265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23266 $as_echo "$ac_try_echo") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23277 :
23278 else
23279 $as_echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23281
23282 ac_cv_type_u_bits16_t=yes
23283 fi
23284
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286 else
23287 $as_echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290
23291 fi
23292
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294 fi
23295 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23296 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23297 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23298 :
23299 else
23300
23301 cat >>confdefs.h <<_ACEOF
23302 #define u_bits16_t unsigned char
23303 _ACEOF
23304
23305 fi
23306
23307 else
23308 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23309 $as_echo_n "checking for u_bits16_t... " >&6; }
23310 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23311 $as_echo_n "(cached) " >&6
23312 else
23313 ac_cv_type_u_bits16_t=no
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 int
23322 main ()
23323 {
23324 if (sizeof (u_bits16_t))
23325 return 0;
23326 ;
23327 return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23335 esac
23336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23337 $as_echo "$ac_try_echo") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23339 ac_status=$?
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
23343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 $ac_includes_default
23355 int
23356 main ()
23357 {
23358 if (sizeof ((u_bits16_t)))
23359 return 0;
23360 ;
23361 return 0;
23362 }
23363 _ACEOF
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23369 esac
23370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23371 $as_echo "$ac_try_echo") >&5
23372 (eval "$ac_compile") 2>conftest.er1
23373 ac_status=$?
23374 grep -v '^ *+' conftest.er1 >conftest.err
23375 rm -f conftest.er1
23376 cat conftest.err >&5
23377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && {
23379 test -z "$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23381 } && test -s conftest.$ac_objext; then
23382 :
23383 else
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387 ac_cv_type_u_bits16_t=yes
23388 fi
23389
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391 else
23392 $as_echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395
23396 fi
23397
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399 fi
23400 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23401 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23402 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23403 :
23404 else
23405
23406 cat >>confdefs.h <<_ACEOF
23407 #define u_bits16_t unsigned short
23408 _ACEOF
23409
23410 fi
23411
23412 fi
23413
23414
23415 if test "$ac_cv_sizeof_int" = 4; then
23416 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23417 $as_echo_n "checking for bits32_t... " >&6; }
23418 if test "${ac_cv_type_bits32_t+set}" = set; then
23419 $as_echo_n "(cached) " >&6
23420 else
23421 ac_cv_type_bits32_t=no
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23429 int
23430 main ()
23431 {
23432 if (sizeof (bits32_t))
23433 return 0;
23434 ;
23435 return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23443 esac
23444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23445 $as_echo "$ac_try_echo") >&5
23446 (eval "$ac_compile") 2>conftest.er1
23447 ac_status=$?
23448 grep -v '^ *+' conftest.er1 >conftest.err
23449 rm -f conftest.er1
23450 cat conftest.err >&5
23451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } && {
23453 test -z "$ac_c_werror_flag" ||
23454 test ! -s conftest.err
23455 } && test -s conftest.$ac_objext; then
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h. */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23462 $ac_includes_default
23463 int
23464 main ()
23465 {
23466 if (sizeof ((bits32_t)))
23467 return 0;
23468 ;
23469 return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest.$ac_objext
23473 if { (ac_try="$ac_compile"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23477 esac
23478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_compile") 2>conftest.er1
23481 ac_status=$?
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
23485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest.$ac_objext; then
23490 :
23491 else
23492 $as_echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23494
23495 ac_cv_type_bits32_t=yes
23496 fi
23497
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 else
23500 $as_echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23502
23503
23504 fi
23505
23506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507 fi
23508 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23509 $as_echo "$ac_cv_type_bits32_t" >&6; }
23510 if test "x$ac_cv_type_bits32_t" = x""yes; then
23511 :
23512 else
23513
23514 cat >>confdefs.h <<_ACEOF
23515 #define bits32_t int
23516 _ACEOF
23517
23518 fi
23519
23520 elif test "$ac_cv_sizeof_long" = 4; then
23521 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23522 $as_echo_n "checking for bits32_t... " >&6; }
23523 if test "${ac_cv_type_bits32_t+set}" = set; then
23524 $as_echo_n "(cached) " >&6
23525 else
23526 ac_cv_type_bits32_t=no
23527 cat >conftest.$ac_ext <<_ACEOF
23528 /* confdefs.h. */
23529 _ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h. */
23533 $ac_includes_default
23534 int
23535 main ()
23536 {
23537 if (sizeof (bits32_t))
23538 return 0;
23539 ;
23540 return 0;
23541 }
23542 _ACEOF
23543 rm -f conftest.$ac_objext
23544 if { (ac_try="$ac_compile"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23548 esac
23549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23550 $as_echo "$ac_try_echo") >&5
23551 (eval "$ac_compile") 2>conftest.er1
23552 ac_status=$?
23553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
23556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && {
23558 test -z "$ac_c_werror_flag" ||
23559 test ! -s conftest.err
23560 } && test -s conftest.$ac_objext; then
23561 cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h. */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23567 $ac_includes_default
23568 int
23569 main ()
23570 {
23571 if (sizeof ((bits32_t)))
23572 return 0;
23573 ;
23574 return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (ac_try="$ac_compile"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23582 esac
23583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23584 $as_echo "$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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest.$ac_objext; then
23595 :
23596 else
23597 $as_echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23599
23600 ac_cv_type_bits32_t=yes
23601 fi
23602
23603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23604 else
23605 $as_echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23607
23608
23609 fi
23610
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 fi
23613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23614 $as_echo "$ac_cv_type_bits32_t" >&6; }
23615 if test "x$ac_cv_type_bits32_t" = x""yes; then
23616 :
23617 else
23618
23619 cat >>confdefs.h <<_ACEOF
23620 #define bits32_t long
23621 _ACEOF
23622
23623 fi
23624
23625 else
23626 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23627 $as_echo_n "checking for bits32_t... " >&6; }
23628 if test "${ac_cv_type_bits32_t+set}" = set; then
23629 $as_echo_n "(cached) " >&6
23630 else
23631 ac_cv_type_bits32_t=no
23632 cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h. */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 $ac_includes_default
23639 int
23640 main ()
23641 {
23642 if (sizeof (bits32_t))
23643 return 0;
23644 ;
23645 return 0;
23646 }
23647 _ACEOF
23648 rm -f conftest.$ac_objext
23649 if { (ac_try="$ac_compile"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23653 esac
23654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23655 $as_echo "$ac_try_echo") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23657 ac_status=$?
23658 grep -v '^ *+' conftest.er1 >conftest.err
23659 rm -f conftest.er1
23660 cat conftest.err >&5
23661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h. */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 $ac_includes_default
23673 int
23674 main ()
23675 {
23676 if (sizeof ((bits32_t)))
23677 return 0;
23678 ;
23679 return 0;
23680 }
23681 _ACEOF
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23687 esac
23688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23689 $as_echo "$ac_try_echo") >&5
23690 (eval "$ac_compile") 2>conftest.er1
23691 ac_status=$?
23692 grep -v '^ *+' conftest.er1 >conftest.err
23693 rm -f conftest.er1
23694 cat conftest.err >&5
23695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest.$ac_objext; then
23700 :
23701 else
23702 $as_echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705 ac_cv_type_bits32_t=yes
23706 fi
23707
23708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 else
23710 $as_echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23712
23713
23714 fi
23715
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717 fi
23718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23719 $as_echo "$ac_cv_type_bits32_t" >&6; }
23720 if test "x$ac_cv_type_bits32_t" = x""yes; then
23721 :
23722 else
23723
23724 cat >>confdefs.h <<_ACEOF
23725 #define bits32_t int
23726 _ACEOF
23727
23728 fi
23729
23730 fi
23731
23732
23733 if test "$ac_cv_sizeof_int" = 4; then
23734 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23735 $as_echo_n "checking for u_bits32_t... " >&6; }
23736 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23737 $as_echo_n "(cached) " >&6
23738 else
23739 ac_cv_type_u_bits32_t=no
23740 cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h. */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 $ac_includes_default
23747 int
23748 main ()
23749 {
23750 if (sizeof (u_bits32_t))
23751 return 0;
23752 ;
23753 return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23763 $as_echo "$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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && {
23771 test -z "$ac_c_werror_flag" ||
23772 test ! -s conftest.err
23773 } && test -s conftest.$ac_objext; then
23774 cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h. */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23780 $ac_includes_default
23781 int
23782 main ()
23783 {
23784 if (sizeof ((u_bits32_t)))
23785 return 0;
23786 ;
23787 return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23795 esac
23796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23797 $as_echo "$ac_try_echo") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 :
23809 else
23810 $as_echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_cv_type_u_bits32_t=yes
23814 fi
23815
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 else
23818 $as_echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23820
23821
23822 fi
23823
23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23825 fi
23826 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23827 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23828 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23829 :
23830 else
23831
23832 cat >>confdefs.h <<_ACEOF
23833 #define u_bits32_t unsigned int
23834 _ACEOF
23835
23836 fi
23837
23838 elif test "$ac_cv_sizeof_long" = 4; then
23839 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23840 $as_echo_n "checking for u_bits32_t... " >&6; }
23841 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23842 $as_echo_n "(cached) " >&6
23843 else
23844 ac_cv_type_u_bits32_t=no
23845 cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h. */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 $ac_includes_default
23852 int
23853 main ()
23854 {
23855 if (sizeof (u_bits32_t))
23856 return 0;
23857 ;
23858 return 0;
23859 }
23860 _ACEOF
23861 rm -f conftest.$ac_objext
23862 if { (ac_try="$ac_compile"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866 esac
23867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23868 $as_echo "$ac_try_echo") >&5
23869 (eval "$ac_compile") 2>conftest.er1
23870 ac_status=$?
23871 grep -v '^ *+' conftest.er1 >conftest.err
23872 rm -f conftest.er1
23873 cat conftest.err >&5
23874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } && {
23876 test -z "$ac_c_werror_flag" ||
23877 test ! -s conftest.err
23878 } && test -s conftest.$ac_objext; then
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h. */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885 $ac_includes_default
23886 int
23887 main ()
23888 {
23889 if (sizeof ((u_bits32_t)))
23890 return 0;
23891 ;
23892 return 0;
23893 }
23894 _ACEOF
23895 rm -f conftest.$ac_objext
23896 if { (ac_try="$ac_compile"
23897 case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23900 esac
23901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903 (eval "$ac_compile") 2>conftest.er1
23904 ac_status=$?
23905 grep -v '^ *+' conftest.er1 >conftest.err
23906 rm -f conftest.er1
23907 cat conftest.err >&5
23908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest.$ac_objext; then
23913 :
23914 else
23915 $as_echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918 ac_cv_type_u_bits32_t=yes
23919 fi
23920
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 else
23923 $as_echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23925
23926
23927 fi
23928
23929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930 fi
23931 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23932 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23933 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23934 :
23935 else
23936
23937 cat >>confdefs.h <<_ACEOF
23938 #define u_bits32_t unsigned long
23939 _ACEOF
23940
23941 fi
23942
23943 else
23944 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23945 $as_echo_n "checking for u_bits32_t... " >&6; }
23946 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23947 $as_echo_n "(cached) " >&6
23948 else
23949 ac_cv_type_u_bits32_t=no
23950 cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h. */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23956 $ac_includes_default
23957 int
23958 main ()
23959 {
23960 if (sizeof (u_bits32_t))
23961 return 0;
23962 ;
23963 return 0;
23964 }
23965 _ACEOF
23966 rm -f conftest.$ac_objext
23967 if { (ac_try="$ac_compile"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23971 esac
23972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23973 $as_echo "$ac_try_echo") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest.$ac_objext; then
23984 cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h. */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 $ac_includes_default
23991 int
23992 main ()
23993 {
23994 if (sizeof ((u_bits32_t)))
23995 return 0;
23996 ;
23997 return 0;
23998 }
23999 _ACEOF
24000 rm -f conftest.$ac_objext
24001 if { (ac_try="$ac_compile"
24002 case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24005 esac
24006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24007 $as_echo "$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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest.$ac_objext; then
24018 :
24019 else
24020 $as_echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ac_cv_type_u_bits32_t=yes
24024 fi
24025
24026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027 else
24028 $as_echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031
24032 fi
24033
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 fi
24036 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24037 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24038 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24039 :
24040 else
24041
24042 cat >>confdefs.h <<_ACEOF
24043 #define u_bits32_t unsigned int
24044 _ACEOF
24045
24046 fi
24047
24048 fi
24049
24050
24051 if test "$ac_cv_sizeof_char_p" = 8; then
24052 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24053 $as_echo_n "checking for bits64_t... " >&6; }
24054 if test "${ac_cv_type_bits64_t+set}" = set; then
24055 $as_echo_n "(cached) " >&6
24056 else
24057 ac_cv_type_bits64_t=no
24058 cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h. */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 $ac_includes_default
24065 int
24066 main ()
24067 {
24068 if (sizeof (bits64_t))
24069 return 0;
24070 ;
24071 return 0;
24072 }
24073 _ACEOF
24074 rm -f conftest.$ac_objext
24075 if { (ac_try="$ac_compile"
24076 case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24079 esac
24080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24081 $as_echo "$ac_try_echo") >&5
24082 (eval "$ac_compile") 2>conftest.er1
24083 ac_status=$?
24084 grep -v '^ *+' conftest.er1 >conftest.err
24085 rm -f conftest.er1
24086 cat conftest.err >&5
24087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } && {
24089 test -z "$ac_c_werror_flag" ||
24090 test ! -s conftest.err
24091 } && test -s conftest.$ac_objext; then
24092 cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h. */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 $ac_includes_default
24099 int
24100 main ()
24101 {
24102 if (sizeof ((bits64_t)))
24103 return 0;
24104 ;
24105 return 0;
24106 }
24107 _ACEOF
24108 rm -f conftest.$ac_objext
24109 if { (ac_try="$ac_compile"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24113 esac
24114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24115 $as_echo "$ac_try_echo") >&5
24116 (eval "$ac_compile") 2>conftest.er1
24117 ac_status=$?
24118 grep -v '^ *+' conftest.er1 >conftest.err
24119 rm -f conftest.er1
24120 cat conftest.err >&5
24121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } && {
24123 test -z "$ac_c_werror_flag" ||
24124 test ! -s conftest.err
24125 } && test -s conftest.$ac_objext; then
24126 :
24127 else
24128 $as_echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131 ac_cv_type_bits64_t=yes
24132 fi
24133
24134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24135 else
24136 $as_echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143 fi
24144 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24145 $as_echo "$ac_cv_type_bits64_t" >&6; }
24146 if test "x$ac_cv_type_bits64_t" = x""yes; then
24147 :
24148 else
24149
24150 cat >>confdefs.h <<_ACEOF
24151 #define bits64_t char *
24152 _ACEOF
24153
24154 fi
24155
24156 elif test "$ac_cv_sizeof_double" = 8; then
24157 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24158 $as_echo_n "checking for bits64_t... " >&6; }
24159 if test "${ac_cv_type_bits64_t+set}" = set; then
24160 $as_echo_n "(cached) " >&6
24161 else
24162 ac_cv_type_bits64_t=no
24163 cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h. */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 $ac_includes_default
24170 int
24171 main ()
24172 {
24173 if (sizeof (bits64_t))
24174 return 0;
24175 ;
24176 return 0;
24177 }
24178 _ACEOF
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24184 esac
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24197 cat >conftest.$ac_ext <<_ACEOF
24198 /* confdefs.h. */
24199 _ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24203 $ac_includes_default
24204 int
24205 main ()
24206 {
24207 if (sizeof ((bits64_t)))
24208 return 0;
24209 ;
24210 return 0;
24211 }
24212 _ACEOF
24213 rm -f conftest.$ac_objext
24214 if { (ac_try="$ac_compile"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218 esac
24219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_compile") 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest.$ac_objext; then
24231 :
24232 else
24233 $as_echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24235
24236 ac_cv_type_bits64_t=yes
24237 fi
24238
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 else
24241 $as_echo "$as_me: failed program was:" >&5
24242 sed 's/^/| /' conftest.$ac_ext >&5
24243
24244
24245 fi
24246
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248 fi
24249 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24250 $as_echo "$ac_cv_type_bits64_t" >&6; }
24251 if test "x$ac_cv_type_bits64_t" = x""yes; then
24252 :
24253 else
24254
24255 cat >>confdefs.h <<_ACEOF
24256 #define bits64_t double
24257 _ACEOF
24258
24259 fi
24260
24261 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24262 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24263 $as_echo_n "checking for bits64_t... " >&6; }
24264 if test "${ac_cv_type_bits64_t+set}" = set; then
24265 $as_echo_n "(cached) " >&6
24266 else
24267 ac_cv_type_bits64_t=no
24268 cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h. */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24275 int
24276 main ()
24277 {
24278 if (sizeof (bits64_t))
24279 return 0;
24280 ;
24281 return 0;
24282 }
24283 _ACEOF
24284 rm -f conftest.$ac_objext
24285 if { (ac_try="$ac_compile"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24289 esac
24290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.$ac_objext; then
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h. */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 $ac_includes_default
24309 int
24310 main ()
24311 {
24312 if (sizeof ((bits64_t)))
24313 return 0;
24314 ;
24315 return 0;
24316 }
24317 _ACEOF
24318 rm -f conftest.$ac_objext
24319 if { (ac_try="$ac_compile"
24320 case "(($ac_try" in
24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24322 *) ac_try_echo=$ac_try;;
24323 esac
24324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24325 $as_echo "$ac_try_echo") >&5
24326 (eval "$ac_compile") 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } && {
24333 test -z "$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24335 } && test -s conftest.$ac_objext; then
24336 :
24337 else
24338 $as_echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341 ac_cv_type_bits64_t=yes
24342 fi
24343
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 else
24346 $as_echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24348
24349
24350 fi
24351
24352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24353 fi
24354 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24355 $as_echo "$ac_cv_type_bits64_t" >&6; }
24356 if test "x$ac_cv_type_bits64_t" = x""yes; then
24357 :
24358 else
24359
24360 cat >>confdefs.h <<_ACEOF
24361 #define bits64_t long long
24362 _ACEOF
24363
24364 fi
24365
24366 elif test "$ac_cv_sizeof_long" = 8; then
24367 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24368 $as_echo_n "checking for bits64_t... " >&6; }
24369 if test "${ac_cv_type_bits64_t+set}" = set; then
24370 $as_echo_n "(cached) " >&6
24371 else
24372 ac_cv_type_bits64_t=no
24373 cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h. */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24379 $ac_includes_default
24380 int
24381 main ()
24382 {
24383 if (sizeof (bits64_t))
24384 return 0;
24385 ;
24386 return 0;
24387 }
24388 _ACEOF
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394 esac
24395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24396 $as_echo "$ac_try_echo") >&5
24397 (eval "$ac_compile") 2>conftest.er1
24398 ac_status=$?
24399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest.$ac_objext; then
24407 cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h. */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24413 $ac_includes_default
24414 int
24415 main ()
24416 {
24417 if (sizeof ((bits64_t)))
24418 return 0;
24419 ;
24420 return 0;
24421 }
24422 _ACEOF
24423 rm -f conftest.$ac_objext
24424 if { (ac_try="$ac_compile"
24425 case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24428 esac
24429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24430 $as_echo "$ac_try_echo") >&5
24431 (eval "$ac_compile") 2>conftest.er1
24432 ac_status=$?
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
24436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest.$ac_objext; then
24441 :
24442 else
24443 $as_echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446 ac_cv_type_bits64_t=yes
24447 fi
24448
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450 else
24451 $as_echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24453
24454
24455 fi
24456
24457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 fi
24459 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24460 $as_echo "$ac_cv_type_bits64_t" >&6; }
24461 if test "x$ac_cv_type_bits64_t" = x""yes; then
24462 :
24463 else
24464
24465 cat >>confdefs.h <<_ACEOF
24466 #define bits64_t long
24467 _ACEOF
24468
24469 fi
24470
24471 else
24472 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24473 $as_echo_n "checking for bits64_t... " >&6; }
24474 if test "${ac_cv_type_bits64_t+set}" = set; then
24475 $as_echo_n "(cached) " >&6
24476 else
24477 ac_cv_type_bits64_t=no
24478 cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h. */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 $ac_includes_default
24485 int
24486 main ()
24487 {
24488 if (sizeof (bits64_t))
24489 return 0;
24490 ;
24491 return 0;
24492 }
24493 _ACEOF
24494 rm -f conftest.$ac_objext
24495 if { (ac_try="$ac_compile"
24496 case "(($ac_try" in
24497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498 *) ac_try_echo=$ac_try;;
24499 esac
24500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24501 $as_echo "$ac_try_echo") >&5
24502 (eval "$ac_compile") 2>conftest.er1
24503 ac_status=$?
24504 grep -v '^ *+' conftest.er1 >conftest.err
24505 rm -f conftest.er1
24506 cat conftest.err >&5
24507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } && {
24509 test -z "$ac_c_werror_flag" ||
24510 test ! -s conftest.err
24511 } && test -s conftest.$ac_objext; then
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h. */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24519 int
24520 main ()
24521 {
24522 if (sizeof ((bits64_t)))
24523 return 0;
24524 ;
24525 return 0;
24526 }
24527 _ACEOF
24528 rm -f conftest.$ac_objext
24529 if { (ac_try="$ac_compile"
24530 case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24533 esac
24534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24535 $as_echo "$ac_try_echo") >&5
24536 (eval "$ac_compile") 2>conftest.er1
24537 ac_status=$?
24538 grep -v '^ *+' conftest.er1 >conftest.err
24539 rm -f conftest.er1
24540 cat conftest.err >&5
24541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } && {
24543 test -z "$ac_c_werror_flag" ||
24544 test ! -s conftest.err
24545 } && test -s conftest.$ac_objext; then
24546 :
24547 else
24548 $as_echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551 ac_cv_type_bits64_t=yes
24552 fi
24553
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24555 else
24556 $as_echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24558
24559
24560 fi
24561
24562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563 fi
24564 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24565 $as_echo "$ac_cv_type_bits64_t" >&6; }
24566 if test "x$ac_cv_type_bits64_t" = x""yes; then
24567 :
24568 else
24569
24570 cat >>confdefs.h <<_ACEOF
24571 #define bits64_t double
24572 _ACEOF
24573
24574 fi
24575
24576 fi
24577
24578
24579
24580 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
24581 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24582 $as_echo_n "checking for ptrdiff_t... " >&6; }
24583 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24584 $as_echo_n "(cached) " >&6
24585 else
24586 ac_cv_type_ptrdiff_t=no
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 $ac_includes_default
24594 int
24595 main ()
24596 {
24597 if (sizeof (ptrdiff_t))
24598 return 0;
24599 ;
24600 return 0;
24601 }
24602 _ACEOF
24603 rm -f conftest.$ac_objext
24604 if { (ac_try="$ac_compile"
24605 case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24608 esac
24609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24610 $as_echo "$ac_try_echo") >&5
24611 (eval "$ac_compile") 2>conftest.er1
24612 ac_status=$?
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
24616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } && {
24618 test -z "$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24620 } && test -s conftest.$ac_objext; then
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h. */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24627 $ac_includes_default
24628 int
24629 main ()
24630 {
24631 if (sizeof ((ptrdiff_t)))
24632 return 0;
24633 ;
24634 return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext
24638 if { (ac_try="$ac_compile"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24642 esac
24643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24644 $as_echo "$ac_try_echo") >&5
24645 (eval "$ac_compile") 2>conftest.er1
24646 ac_status=$?
24647 grep -v '^ *+' conftest.er1 >conftest.err
24648 rm -f conftest.er1
24649 cat conftest.err >&5
24650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest.$ac_objext; then
24655 :
24656 else
24657 $as_echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660 ac_cv_type_ptrdiff_t=yes
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 else
24665 $as_echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 fi
24673 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24674 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24675 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24676 :
24677 else
24678
24679 cat >>confdefs.h <<_ACEOF
24680 #define ptrdiff_t int
24681 _ACEOF
24682
24683 fi
24684
24685 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
24686 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24687 $as_echo_n "checking for ptrdiff_t... " >&6; }
24688 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24689 $as_echo_n "(cached) " >&6
24690 else
24691 ac_cv_type_ptrdiff_t=no
24692 cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h. */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24699 int
24700 main ()
24701 {
24702 if (sizeof (ptrdiff_t))
24703 return 0;
24704 ;
24705 return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext
24709 if { (ac_try="$ac_compile"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24713 esac
24714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24715 $as_echo "$ac_try_echo") >&5
24716 (eval "$ac_compile") 2>conftest.er1
24717 ac_status=$?
24718 grep -v '^ *+' conftest.er1 >conftest.err
24719 rm -f conftest.er1
24720 cat conftest.err >&5
24721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } && {
24723 test -z "$ac_c_werror_flag" ||
24724 test ! -s conftest.err
24725 } && test -s conftest.$ac_objext; then
24726 cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h. */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24732 $ac_includes_default
24733 int
24734 main ()
24735 {
24736 if (sizeof ((ptrdiff_t)))
24737 return 0;
24738 ;
24739 return 0;
24740 }
24741 _ACEOF
24742 rm -f conftest.$ac_objext
24743 if { (ac_try="$ac_compile"
24744 case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24747 esac
24748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24749 $as_echo "$ac_try_echo") >&5
24750 (eval "$ac_compile") 2>conftest.er1
24751 ac_status=$?
24752 grep -v '^ *+' conftest.er1 >conftest.err
24753 rm -f conftest.er1
24754 cat conftest.err >&5
24755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } && {
24757 test -z "$ac_c_werror_flag" ||
24758 test ! -s conftest.err
24759 } && test -s conftest.$ac_objext; then
24760 :
24761 else
24762 $as_echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24764
24765 ac_cv_type_ptrdiff_t=yes
24766 fi
24767
24768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769 else
24770 $as_echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24772
24773
24774 fi
24775
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 fi
24778 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24779 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24780 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24781 :
24782 else
24783
24784 cat >>confdefs.h <<_ACEOF
24785 #define ptrdiff_t long
24786 _ACEOF
24787
24788 fi
24789
24790 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
24791 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24792 $as_echo_n "checking for ptrdiff_t... " >&6; }
24793 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24794 $as_echo_n "(cached) " >&6
24795 else
24796 ac_cv_type_ptrdiff_t=no
24797 cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h. */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 $ac_includes_default
24804 int
24805 main ()
24806 {
24807 if (sizeof (ptrdiff_t))
24808 return 0;
24809 ;
24810 return 0;
24811 }
24812 _ACEOF
24813 rm -f conftest.$ac_objext
24814 if { (ac_try="$ac_compile"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24818 esac
24819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24820 $as_echo "$ac_try_echo") >&5
24821 (eval "$ac_compile") 2>conftest.er1
24822 ac_status=$?
24823 grep -v '^ *+' conftest.er1 >conftest.err
24824 rm -f conftest.er1
24825 cat conftest.err >&5
24826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } && {
24828 test -z "$ac_c_werror_flag" ||
24829 test ! -s conftest.err
24830 } && test -s conftest.$ac_objext; then
24831 cat >conftest.$ac_ext <<_ACEOF
24832 /* confdefs.h. */
24833 _ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h. */
24837 $ac_includes_default
24838 int
24839 main ()
24840 {
24841 if (sizeof ((ptrdiff_t)))
24842 return 0;
24843 ;
24844 return 0;
24845 }
24846 _ACEOF
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24852 esac
24853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24854 $as_echo "$ac_try_echo") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 :
24866 else
24867 $as_echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870 ac_cv_type_ptrdiff_t=yes
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 else
24875 $as_echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878
24879 fi
24880
24881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24882 fi
24883 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24884 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24885 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24886 :
24887 else
24888
24889 cat >>confdefs.h <<_ACEOF
24890 #define ptrdiff_t long long
24891 _ACEOF
24892
24893 fi
24894
24895 else
24896 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24897 $as_echo_n "checking for ptrdiff_t... " >&6; }
24898 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24899 $as_echo_n "(cached) " >&6
24900 else
24901 ac_cv_type_ptrdiff_t=no
24902 cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h. */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 int
24910 main ()
24911 {
24912 if (sizeof (ptrdiff_t))
24913 return 0;
24914 ;
24915 return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext
24919 if { (ac_try="$ac_compile"
24920 case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24923 esac
24924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24925 $as_echo "$ac_try_echo") >&5
24926 (eval "$ac_compile") 2>conftest.er1
24927 ac_status=$?
24928 grep -v '^ *+' conftest.er1 >conftest.err
24929 rm -f conftest.er1
24930 cat conftest.err >&5
24931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } && {
24933 test -z "$ac_c_werror_flag" ||
24934 test ! -s conftest.err
24935 } && test -s conftest.$ac_objext; then
24936 cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h. */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24942 $ac_includes_default
24943 int
24944 main ()
24945 {
24946 if (sizeof ((ptrdiff_t)))
24947 return 0;
24948 ;
24949 return 0;
24950 }
24951 _ACEOF
24952 rm -f conftest.$ac_objext
24953 if { (ac_try="$ac_compile"
24954 case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24957 esac
24958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24959 $as_echo "$ac_try_echo") >&5
24960 (eval "$ac_compile") 2>conftest.er1
24961 ac_status=$?
24962 grep -v '^ *+' conftest.er1 >conftest.err
24963 rm -f conftest.er1
24964 cat conftest.err >&5
24965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } && {
24967 test -z "$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 } && test -s conftest.$ac_objext; then
24970 :
24971 else
24972 $as_echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975 ac_cv_type_ptrdiff_t=yes
24976 fi
24977
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 else
24980 $as_echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983
24984 fi
24985
24986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987 fi
24988 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24989 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24990 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24991 :
24992 else
24993
24994 cat >>confdefs.h <<_ACEOF
24995 #define ptrdiff_t int
24996 _ACEOF
24997
24998 fi
24999
25000 fi
25001
25002
25003 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25004 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25005 if test "${ac_cv_header_stat_broken+set}" = set; then
25006 $as_echo_n "(cached) " >&6
25007 else
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h. */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 #include <sys/types.h>
25015 #include <sys/stat.h>
25016
25017 #if defined S_ISBLK && defined S_IFDIR
25018 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25019 #endif
25020
25021 #if defined S_ISBLK && defined S_IFCHR
25022 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25023 #endif
25024
25025 #if defined S_ISLNK && defined S_IFREG
25026 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25027 #endif
25028
25029 #if defined S_ISSOCK && defined S_IFREG
25030 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25031 #endif
25032
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25039 esac
25040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25041 $as_echo "$ac_try_echo") >&5
25042 (eval "$ac_compile") 2>conftest.er1
25043 ac_status=$?
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
25047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest.$ac_objext; then
25052 ac_cv_header_stat_broken=no
25053 else
25054 $as_echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ac_cv_header_stat_broken=yes
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 fi
25062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25063 $as_echo "$ac_cv_header_stat_broken" >&6; }
25064 if test $ac_cv_header_stat_broken = yes; then
25065
25066 cat >>confdefs.h <<\_ACEOF
25067 #define STAT_MACROS_BROKEN 1
25068 _ACEOF
25069
25070 fi
25071
25072
25073 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
25074 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25075 if test "${ac_cv_sys_interpreter+set}" = set; then
25076 $as_echo_n "(cached) " >&6
25077 else
25078 echo '#! /bin/cat
25079 exit 69
25080 ' >conftest
25081 chmod u+x conftest
25082 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25083 if test $? -ne 69; then
25084 ac_cv_sys_interpreter=yes
25085 else
25086 ac_cv_sys_interpreter=no
25087 fi
25088 rm -f conftest
25089 fi
25090 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25091 $as_echo "$ac_cv_sys_interpreter" >&6; }
25092 interpval=$ac_cv_sys_interpreter
25093
25094 if test $ac_cv_sys_interpreter = yes; then
25095 cat >>confdefs.h <<\_ACEOF
25096 #define HAVE_HASH_BANG_EXEC 1
25097 _ACEOF
25098
25099 fi
25100
25101 if test "$ac_cv_func_lstat" = "no"; then
25102 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25103 $as_echo_n "checking for lstat... " >&6; }
25104 if test "${bash_cv_func_lstat+set}" = set; then
25105 $as_echo_n "(cached) " >&6
25106 else
25107 cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h. */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113
25114 #include <sys/types.h>
25115 #include <sys/stat.h>
25116
25117 int
25118 main ()
25119 {
25120 lstat(".",(struct stat *)0);
25121 ;
25122 return 0;
25123 }
25124 _ACEOF
25125 rm -f conftest.$ac_objext conftest$ac_exeext
25126 if { (ac_try="$ac_link"
25127 case "(($ac_try" in
25128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25129 *) ac_try_echo=$ac_try;;
25130 esac
25131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25132 $as_echo "$ac_try_echo") >&5
25133 (eval "$ac_link") 2>conftest.er1
25134 ac_status=$?
25135 grep -v '^ *+' conftest.er1 >conftest.err
25136 rm -f conftest.er1
25137 cat conftest.err >&5
25138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } && {
25140 test -z "$ac_c_werror_flag" ||
25141 test ! -s conftest.err
25142 } && test -s conftest$ac_exeext && {
25143 test "$cross_compiling" = yes ||
25144 $as_test_x conftest$ac_exeext
25145 }; then
25146 bash_cv_func_lstat=yes
25147 else
25148 $as_echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25150
25151 bash_cv_func_lstat=no
25152 fi
25153
25154 rm -rf conftest.dSYM
25155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25156 conftest$ac_exeext conftest.$ac_ext
25157 fi
25158 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25159 $as_echo "$bash_cv_func_lstat" >&6; }
25160 if test $bash_cv_func_lstat = yes; then
25161 cat >>confdefs.h <<\_ACEOF
25162 #define HAVE_LSTAT 1
25163 _ACEOF
25164
25165 fi
25166
25167 fi
25168
25169
25170 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25171 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25172 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25173 $as_echo_n "(cached) " >&6
25174 else
25175 if test "$cross_compiling" = yes; then
25176 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25177 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25178 bash_cv_func_ctype_nonascii=no
25179
25180 else
25181 cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h. */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187
25188 #ifdef HAVE_LOCALE_H
25189 #include <locale.h>
25190 #endif
25191 #include <stdio.h>
25192 #include <ctype.h>
25193
25194 main(c, v)
25195 int c;
25196 char *v[];
25197 {
25198 char *deflocale;
25199 unsigned char x;
25200 int r1, r2;
25201
25202 #ifdef HAVE_SETLOCALE
25203 /* We take a shot here. If that locale is not known, try the
25204 system default. We try this one because '\342' (226) is
25205 known to be a printable character in that locale. */
25206 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25207 if (deflocale == 0)
25208 deflocale = setlocale(LC_ALL, "");
25209 #endif
25210
25211 x = '\342';
25212 r1 = isprint(x);
25213 x -= 128;
25214 r2 = isprint(x);
25215 exit (r1 == 0 || r2 == 0);
25216 }
25217
25218 _ACEOF
25219 rm -f conftest$ac_exeext
25220 if { (ac_try="$ac_link"
25221 case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25224 esac
25225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25226 $as_echo "$ac_try_echo") >&5
25227 (eval "$ac_link") 2>&5
25228 ac_status=$?
25229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25231 { (case "(($ac_try" in
25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25234 esac
25235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25236 $as_echo "$ac_try_echo") >&5
25237 (eval "$ac_try") 2>&5
25238 ac_status=$?
25239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 bash_cv_func_ctype_nonascii=yes
25242 else
25243 $as_echo "$as_me: program exited with status $ac_status" >&5
25244 $as_echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25246
25247 ( exit $ac_status )
25248 bash_cv_func_ctype_nonascii=no
25249 fi
25250 rm -rf conftest.dSYM
25251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25252 fi
25253
25254
25255 fi
25256
25257 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25258 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25259 if test $bash_cv_func_ctype_nonascii = yes; then
25260 cat >>confdefs.h <<\_ACEOF
25261 #define CTYPE_NON_ASCII 1
25262 _ACEOF
25263
25264 fi
25265
25266 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25267 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25268 if test "${bash_cv_dup2_broken+set}" = set; then
25269 $as_echo_n "(cached) " >&6
25270 else
25271 if test "$cross_compiling" = yes; then
25272 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25273 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25274 bash_cv_dup2_broken=no
25275 else
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282
25283 #include <sys/types.h>
25284 #include <fcntl.h>
25285 main()
25286 {
25287 int fd1, fd2, fl;
25288 fd1 = open("/dev/null", 2);
25289 if (fcntl(fd1, 2, 1) < 0)
25290 exit(1);
25291 fd2 = dup2(fd1, 1);
25292 if (fd2 < 0)
25293 exit(2);
25294 fl = fcntl(fd2, 1, 0);
25295 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25296 exit(fl != 1);
25297 }
25298
25299 _ACEOF
25300 rm -f conftest$ac_exeext
25301 if { (ac_try="$ac_link"
25302 case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305 esac
25306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25307 $as_echo "$ac_try_echo") >&5
25308 (eval "$ac_link") 2>&5
25309 ac_status=$?
25310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25312 { (case "(($ac_try" in
25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25315 esac
25316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25317 $as_echo "$ac_try_echo") >&5
25318 (eval "$ac_try") 2>&5
25319 ac_status=$?
25320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; }; then
25322 bash_cv_dup2_broken=yes
25323 else
25324 $as_echo "$as_me: program exited with status $ac_status" >&5
25325 $as_echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328 ( exit $ac_status )
25329 bash_cv_dup2_broken=no
25330 fi
25331 rm -rf conftest.dSYM
25332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25333 fi
25334
25335
25336
25337 fi
25338
25339 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
25340 $as_echo "$bash_cv_dup2_broken" >&6; }
25341 if test $bash_cv_dup2_broken = yes; then
25342 cat >>confdefs.h <<\_ACEOF
25343 #define DUP2_BROKEN 1
25344 _ACEOF
25345
25346 fi
25347
25348
25349 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
25350 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
25351 if test "${bash_cv_pgrp_pipe+set}" = set; then
25352 $as_echo_n "(cached) " >&6
25353 else
25354 if test "$cross_compiling" = yes; then
25355 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
25356 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
25357 bash_cv_pgrp_pipe=no
25358 else
25359 cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h. */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365
25366 #ifdef HAVE_UNISTD_H
25367 # include <unistd.h>
25368 #endif
25369 main()
25370 {
25371 # ifdef GETPGRP_VOID
25372 # define getpgID() getpgrp()
25373 # else
25374 # define getpgID() getpgrp(0)
25375 # define setpgid(x,y) setpgrp(x,y)
25376 # endif
25377 int pid1, pid2, fds[2];
25378 int status;
25379 char ok;
25380
25381 switch (pid1 = fork()) {
25382 case -1:
25383 exit(1);
25384 case 0:
25385 setpgid(0, getpid());
25386 exit(0);
25387 }
25388 setpgid(pid1, pid1);
25389
25390 sleep(2); /* let first child die */
25391
25392 if (pipe(fds) < 0)
25393 exit(2);
25394
25395 switch (pid2 = fork()) {
25396 case -1:
25397 exit(3);
25398 case 0:
25399 setpgid(0, pid1);
25400 ok = getpgID() == pid1;
25401 write(fds[1], &ok, 1);
25402 exit(0);
25403 }
25404 setpgid(pid2, pid1);
25405
25406 close(fds[1]);
25407 if (read(fds[0], &ok, 1) != 1)
25408 exit(4);
25409 wait(&status);
25410 wait(&status);
25411 exit(ok ? 0 : 5);
25412 }
25413
25414 _ACEOF
25415 rm -f conftest$ac_exeext
25416 if { (ac_try="$ac_link"
25417 case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25420 esac
25421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25422 $as_echo "$ac_try_echo") >&5
25423 (eval "$ac_link") 2>&5
25424 ac_status=$?
25425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25427 { (case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25430 esac
25431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25432 $as_echo "$ac_try_echo") >&5
25433 (eval "$ac_try") 2>&5
25434 ac_status=$?
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25437 bash_cv_pgrp_pipe=no
25438 else
25439 $as_echo "$as_me: program exited with status $ac_status" >&5
25440 $as_echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25442
25443 ( exit $ac_status )
25444 bash_cv_pgrp_pipe=yes
25445 fi
25446 rm -rf conftest.dSYM
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25448 fi
25449
25450
25451
25452 fi
25453
25454 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
25455 $as_echo "$bash_cv_pgrp_pipe" >&6; }
25456 if test $bash_cv_pgrp_pipe = yes; then
25457 cat >>confdefs.h <<\_ACEOF
25458 #define PGRP_PIPE 1
25459 _ACEOF
25460
25461 fi
25462
25463
25464 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
25465 $as_echo_n "checking for type of signal functions... " >&6; }
25466 if test "${bash_cv_signal_vintage+set}" = set; then
25467 $as_echo_n "(cached) " >&6
25468 else
25469
25470 cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h. */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 #include <signal.h>
25477 int
25478 main ()
25479 {
25480
25481 sigset_t ss;
25482 struct sigaction sa;
25483 sigemptyset(&ss); sigsuspend(&ss);
25484 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25485 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25486
25487 ;
25488 return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25496 esac
25497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_link") 2>conftest.er1
25500 ac_status=$?
25501 grep -v '^ *+' conftest.er1 >conftest.err
25502 rm -f conftest.er1
25503 cat conftest.err >&5
25504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest$ac_exeext && {
25509 test "$cross_compiling" = yes ||
25510 $as_test_x conftest$ac_exeext
25511 }; then
25512 bash_cv_signal_vintage=posix
25513 else
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517
25518 cat >conftest.$ac_ext <<_ACEOF
25519 /* confdefs.h. */
25520 _ACEOF
25521 cat confdefs.h >>conftest.$ac_ext
25522 cat >>conftest.$ac_ext <<_ACEOF
25523 /* end confdefs.h. */
25524 #include <signal.h>
25525 int
25526 main ()
25527 {
25528
25529 int mask = sigmask(SIGINT);
25530 sigsetmask(mask); sigblock(mask); sigpause(mask);
25531
25532 ;
25533 return 0;
25534 }
25535 _ACEOF
25536 rm -f conftest.$ac_objext conftest$ac_exeext
25537 if { (ac_try="$ac_link"
25538 case "(($ac_try" in
25539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540 *) ac_try_echo=$ac_try;;
25541 esac
25542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25543 $as_echo "$ac_try_echo") >&5
25544 (eval "$ac_link") 2>conftest.er1
25545 ac_status=$?
25546 grep -v '^ *+' conftest.er1 >conftest.err
25547 rm -f conftest.er1
25548 cat conftest.err >&5
25549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } && {
25551 test -z "$ac_c_werror_flag" ||
25552 test ! -s conftest.err
25553 } && test -s conftest$ac_exeext && {
25554 test "$cross_compiling" = yes ||
25555 $as_test_x conftest$ac_exeext
25556 }; then
25557 bash_cv_signal_vintage=4.2bsd
25558 else
25559 $as_echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562
25563 cat >conftest.$ac_ext <<_ACEOF
25564 /* confdefs.h. */
25565 _ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25569
25570 #include <signal.h>
25571 RETSIGTYPE foo() { }
25572 int
25573 main ()
25574 {
25575
25576 int mask = sigmask(SIGINT);
25577 sigset(SIGINT, foo); sigrelse(SIGINT);
25578 sighold(SIGINT); sigpause(SIGINT);
25579
25580 ;
25581 return 0;
25582 }
25583 _ACEOF
25584 rm -f conftest.$ac_objext conftest$ac_exeext
25585 if { (ac_try="$ac_link"
25586 case "(($ac_try" in
25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588 *) ac_try_echo=$ac_try;;
25589 esac
25590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25591 $as_echo "$ac_try_echo") >&5
25592 (eval "$ac_link") 2>conftest.er1
25593 ac_status=$?
25594 grep -v '^ *+' conftest.er1 >conftest.err
25595 rm -f conftest.er1
25596 cat conftest.err >&5
25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } && {
25599 test -z "$ac_c_werror_flag" ||
25600 test ! -s conftest.err
25601 } && test -s conftest$ac_exeext && {
25602 test "$cross_compiling" = yes ||
25603 $as_test_x conftest$ac_exeext
25604 }; then
25605 bash_cv_signal_vintage=svr3
25606 else
25607 $as_echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 bash_cv_signal_vintage=v7
25611
25612 fi
25613
25614 rm -rf conftest.dSYM
25615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25616 conftest$ac_exeext conftest.$ac_ext
25617
25618 fi
25619
25620 rm -rf conftest.dSYM
25621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25622 conftest$ac_exeext conftest.$ac_ext
25623
25624 fi
25625
25626 rm -rf conftest.dSYM
25627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25628 conftest$ac_exeext conftest.$ac_ext
25629
25630 fi
25631
25632 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
25633 $as_echo "$bash_cv_signal_vintage" >&6; }
25634 if test "$bash_cv_signal_vintage" = posix; then
25635 cat >>confdefs.h <<\_ACEOF
25636 #define HAVE_POSIX_SIGNALS 1
25637 _ACEOF
25638
25639 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
25640 cat >>confdefs.h <<\_ACEOF
25641 #define HAVE_BSD_SIGNALS 1
25642 _ACEOF
25643
25644 elif test "$bash_cv_signal_vintage" = svr3; then
25645 cat >>confdefs.h <<\_ACEOF
25646 #define HAVE_USG_SIGHOLD 1
25647 _ACEOF
25648
25649 fi
25650
25651
25652 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
25653 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
25654 if test "${bash_cv_sys_errlist+set}" = set; then
25655 $as_echo_n "(cached) " >&6
25656 else
25657 cat >conftest.$ac_ext <<_ACEOF
25658 /* confdefs.h. */
25659 _ACEOF
25660 cat confdefs.h >>conftest.$ac_ext
25661 cat >>conftest.$ac_ext <<_ACEOF
25662 /* end confdefs.h. */
25663 #include <errno.h>
25664 int
25665 main ()
25666 {
25667 extern char *sys_errlist[];
25668 extern int sys_nerr;
25669 char *msg = sys_errlist[sys_nerr - 1];
25670 ;
25671 return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext conftest$ac_exeext
25675 if { (ac_try="$ac_link"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679 esac
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_link") 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest$ac_exeext && {
25692 test "$cross_compiling" = yes ||
25693 $as_test_x conftest$ac_exeext
25694 }; then
25695 bash_cv_sys_errlist=yes
25696 else
25697 $as_echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25699
25700 bash_cv_sys_errlist=no
25701 fi
25702
25703 rm -rf conftest.dSYM
25704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25705 conftest$ac_exeext conftest.$ac_ext
25706 fi
25707 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
25708 $as_echo "$bash_cv_sys_errlist" >&6; }
25709 if test $bash_cv_sys_errlist = yes; then
25710 cat >>confdefs.h <<\_ACEOF
25711 #define HAVE_SYS_ERRLIST 1
25712 _ACEOF
25713
25714 fi
25715
25716
25717 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
25718 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
25719 if test "${bash_cv_sys_siglist+set}" = set; then
25720 $as_echo_n "(cached) " >&6
25721 else
25722 if test "$cross_compiling" = yes; then
25723 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
25724 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
25725 bash_cv_sys_siglist=no
25726 else
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h. */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733
25734 #include <sys/types.h>
25735 #include <signal.h>
25736 #ifdef HAVE_UNISTD_H
25737 #include <unistd.h>
25738 #endif
25739 #if !HAVE_DECL_SYS_SIGLIST
25740 extern char *sys_siglist[];
25741 #endif
25742 main()
25743 {
25744 char *msg = sys_siglist[2];
25745 exit(msg == 0);
25746 }
25747 _ACEOF
25748 rm -f conftest$ac_exeext
25749 if { (ac_try="$ac_link"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25753 esac
25754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25755 $as_echo "$ac_try_echo") >&5
25756 (eval "$ac_link") 2>&5
25757 ac_status=$?
25758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25760 { (case "(($ac_try" in
25761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762 *) ac_try_echo=$ac_try;;
25763 esac
25764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25765 $as_echo "$ac_try_echo") >&5
25766 (eval "$ac_try") 2>&5
25767 ac_status=$?
25768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; }; then
25770 bash_cv_sys_siglist=yes
25771 else
25772 $as_echo "$as_me: program exited with status $ac_status" >&5
25773 $as_echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776 ( exit $ac_status )
25777 bash_cv_sys_siglist=no
25778 fi
25779 rm -rf conftest.dSYM
25780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25781 fi
25782
25783
25784 fi
25785
25786 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
25787 $as_echo "$bash_cv_sys_siglist" >&6; }
25788 if test $bash_cv_sys_siglist = yes; then
25789 cat >>confdefs.h <<\_ACEOF
25790 #define HAVE_SYS_SIGLIST 1
25791 _ACEOF
25792
25793 fi
25794
25795 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
25796 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
25797 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
25798 $as_echo_n "(cached) " >&6
25799 else
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h. */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25806
25807 #include <sys/types.h>
25808 #include <signal.h>
25809 #ifdef HAVE_UNISTD_H
25810 #include <unistd.h>
25811 #endif
25812 int
25813 main ()
25814 {
25815 char *msg = _sys_siglist[2];
25816 ;
25817 return 0;
25818 }
25819 _ACEOF
25820 rm -f conftest.$ac_objext
25821 if { (ac_try="$ac_compile"
25822 case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25825 esac
25826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827 $as_echo "$ac_try_echo") >&5
25828 (eval "$ac_compile") 2>conftest.er1
25829 ac_status=$?
25830 grep -v '^ *+' conftest.er1 >conftest.err
25831 rm -f conftest.er1
25832 cat conftest.err >&5
25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && {
25835 test -z "$ac_c_werror_flag" ||
25836 test ! -s conftest.err
25837 } && test -s conftest.$ac_objext; then
25838 bash_cv_decl_under_sys_siglist=yes
25839 else
25840 $as_echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 bash_cv_decl_under_sys_siglist=no
25844 fi
25845
25846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847 fi
25848 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
25849 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
25850 if test $bash_cv_decl_under_sys_siglist = yes; then
25851 cat >>confdefs.h <<\_ACEOF
25852 #define UNDER_SYS_SIGLIST_DECLARED 1
25853 _ACEOF
25854
25855 fi
25856
25857
25858 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
25859 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
25860 if test "${bash_cv_under_sys_siglist+set}" = set; then
25861 $as_echo_n "(cached) " >&6
25862 else
25863 if test "$cross_compiling" = yes; then
25864 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
25865 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
25866 bash_cv_under_sys_siglist=no
25867 else
25868 cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h. */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h. */
25874
25875 #include <sys/types.h>
25876 #include <signal.h>
25877 #ifdef HAVE_UNISTD_H
25878 #include <unistd.h>
25879 #endif
25880 #ifndef UNDER_SYS_SIGLIST_DECLARED
25881 extern char *_sys_siglist[];
25882 #endif
25883 main()
25884 {
25885 char *msg = (char *)_sys_siglist[2];
25886 exit(msg == 0);
25887 }
25888 _ACEOF
25889 rm -f conftest$ac_exeext
25890 if { (ac_try="$ac_link"
25891 case "(($ac_try" in
25892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25893 *) ac_try_echo=$ac_try;;
25894 esac
25895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25896 $as_echo "$ac_try_echo") >&5
25897 (eval "$ac_link") 2>&5
25898 ac_status=$?
25899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25901 { (case "(($ac_try" in
25902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903 *) ac_try_echo=$ac_try;;
25904 esac
25905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25906 $as_echo "$ac_try_echo") >&5
25907 (eval "$ac_try") 2>&5
25908 ac_status=$?
25909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; }; then
25911 bash_cv_under_sys_siglist=yes
25912 else
25913 $as_echo "$as_me: program exited with status $ac_status" >&5
25914 $as_echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917 ( exit $ac_status )
25918 bash_cv_under_sys_siglist=no
25919 fi
25920 rm -rf conftest.dSYM
25921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25922 fi
25923
25924
25925 fi
25926
25927 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
25928 $as_echo "$bash_cv_under_sys_siglist" >&6; }
25929 if test $bash_cv_under_sys_siglist = yes; then
25930 cat >>confdefs.h <<\_ACEOF
25931 #define HAVE_UNDER_SYS_SIGLIST 1
25932 _ACEOF
25933
25934 fi
25935
25936
25937 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
25938 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
25939 if test "${bash_cv_void_sighandler+set}" = set; then
25940 $as_echo_n "(cached) " >&6
25941 else
25942 cat >conftest.$ac_ext <<_ACEOF
25943 /* confdefs.h. */
25944 _ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h. */
25948 #include <sys/types.h>
25949 #include <signal.h>
25950 #ifdef signal
25951 #undef signal
25952 #endif
25953 #ifdef __cplusplus
25954 extern "C"
25955 #endif
25956 void (*signal ()) ();
25957 int
25958 main ()
25959 {
25960 int i;
25961 ;
25962 return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969 *) ac_try_echo=$ac_try;;
25970 esac
25971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25972 $as_echo "$ac_try_echo") >&5
25973 (eval "$ac_compile") 2>conftest.er1
25974 ac_status=$?
25975 grep -v '^ *+' conftest.er1 >conftest.err
25976 rm -f conftest.er1
25977 cat conftest.err >&5
25978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest.$ac_objext; then
25983 bash_cv_void_sighandler=yes
25984 else
25985 $as_echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988 bash_cv_void_sighandler=no
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 fi
25993 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
25994 $as_echo "$bash_cv_void_sighandler" >&6; }
25995 if test $bash_cv_void_sighandler = yes; then
25996 cat >>confdefs.h <<\_ACEOF
25997 #define VOID_SIGHANDLER 1
25998 _ACEOF
25999
26000 fi
26001
26002
26003
26004 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26005 $as_echo_n "checking for clock_t... " >&6; }
26006 if test "${bash_cv_type_clock_t+set}" = set; then
26007 $as_echo_n "(cached) " >&6
26008 else
26009 cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h. */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 #include <sys/types.h>
26016 #if STDC_HEADERS
26017 #include <stdlib.h>
26018 #include <stddef.h>
26019 #endif
26020 #if HAVE_INTTYPES_H
26021 #include <inttypes.h>
26022 #endif
26023 #include <sys/times.h>
26024
26025 _ACEOF
26026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26027 $EGREP "clock_t" >/dev/null 2>&1; then
26028 bash_cv_type_clock_t=yes
26029 else
26030 bash_cv_type_clock_t=no
26031 fi
26032 rm -f conftest*
26033
26034 fi
26035
26036 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26037 $as_echo "$bash_cv_type_clock_t" >&6; }
26038
26039 if test $bash_cv_type_clock_t = no; then
26040 cat >>confdefs.h <<_ACEOF
26041 #define clock_t long
26042 _ACEOF
26043
26044 fi
26045
26046
26047
26048 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26049 $as_echo_n "checking for sigset_t... " >&6; }
26050 if test "${bash_cv_type_sigset_t+set}" = set; then
26051 $as_echo_n "(cached) " >&6
26052 else
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h. */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <sys/types.h>
26060 #if STDC_HEADERS
26061 #include <stdlib.h>
26062 #include <stddef.h>
26063 #endif
26064 #if HAVE_INTTYPES_H
26065 #include <inttypes.h>
26066 #endif
26067 #include <signal.h>
26068
26069 _ACEOF
26070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26071 $EGREP "sigset_t" >/dev/null 2>&1; then
26072 bash_cv_type_sigset_t=yes
26073 else
26074 bash_cv_type_sigset_t=no
26075 fi
26076 rm -f conftest*
26077
26078 fi
26079
26080 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26081 $as_echo "$bash_cv_type_sigset_t" >&6; }
26082
26083 if test $bash_cv_type_sigset_t = no; then
26084 cat >>confdefs.h <<_ACEOF
26085 #define sigset_t int
26086 _ACEOF
26087
26088 fi
26089
26090
26091
26092 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26093 $as_echo_n "checking for quad_t... " >&6; }
26094 if test "${bash_cv_type_quad_t+set}" = set; then
26095 $as_echo_n "(cached) " >&6
26096 else
26097 cat >conftest.$ac_ext <<_ACEOF
26098 /* confdefs.h. */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26103 #include <sys/types.h>
26104 #if STDC_HEADERS
26105 #include <stdlib.h>
26106 #include <stddef.h>
26107 #endif
26108 #if HAVE_INTTYPES_H
26109 #include <inttypes.h>
26110 #endif
26111
26112
26113 _ACEOF
26114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26115 $EGREP "quad_t" >/dev/null 2>&1; then
26116 bash_cv_type_quad_t=yes
26117 else
26118 bash_cv_type_quad_t=no
26119 fi
26120 rm -f conftest*
26121
26122 fi
26123
26124 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26125 $as_echo "$bash_cv_type_quad_t" >&6; }
26126 if test $bash_cv_type_quad_t = yes; then
26127 cat >>confdefs.h <<\_ACEOF
26128 #define HAVE_QUAD_T 1
26129 _ACEOF
26130
26131 fi
26132 if test $bash_cv_type_quad_t = no; then
26133 cat >>confdefs.h <<_ACEOF
26134 #define quad_t long
26135 _ACEOF
26136
26137 fi
26138
26139
26140
26141 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26142 $as_echo_n "checking for intmax_t... " >&6; }
26143 if test "${bash_cv_type_intmax_t+set}" = set; then
26144 $as_echo_n "(cached) " >&6
26145 else
26146 cat >conftest.$ac_ext <<_ACEOF
26147 /* confdefs.h. */
26148 _ACEOF
26149 cat confdefs.h >>conftest.$ac_ext
26150 cat >>conftest.$ac_ext <<_ACEOF
26151 /* end confdefs.h. */
26152 #include <sys/types.h>
26153 #if STDC_HEADERS
26154 #include <stdlib.h>
26155 #include <stddef.h>
26156 #endif
26157 #if HAVE_INTTYPES_H
26158 #include <inttypes.h>
26159 #endif
26160
26161
26162 _ACEOF
26163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26164 $EGREP "intmax_t" >/dev/null 2>&1; then
26165 bash_cv_type_intmax_t=yes
26166 else
26167 bash_cv_type_intmax_t=no
26168 fi
26169 rm -f conftest*
26170
26171 fi
26172
26173 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26174 $as_echo "$bash_cv_type_intmax_t" >&6; }
26175
26176 if test $bash_cv_type_intmax_t = no; then
26177 cat >>confdefs.h <<_ACEOF
26178 #define intmax_t $bash_cv_type_long_long
26179 _ACEOF
26180
26181 fi
26182
26183
26184
26185 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26186 $as_echo_n "checking for uintmax_t... " >&6; }
26187 if test "${bash_cv_type_uintmax_t+set}" = set; then
26188 $as_echo_n "(cached) " >&6
26189 else
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h. */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <sys/types.h>
26197 #if STDC_HEADERS
26198 #include <stdlib.h>
26199 #include <stddef.h>
26200 #endif
26201 #if HAVE_INTTYPES_H
26202 #include <inttypes.h>
26203 #endif
26204
26205
26206 _ACEOF
26207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26208 $EGREP "uintmax_t" >/dev/null 2>&1; then
26209 bash_cv_type_uintmax_t=yes
26210 else
26211 bash_cv_type_uintmax_t=no
26212 fi
26213 rm -f conftest*
26214
26215 fi
26216
26217 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26218 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26219
26220 if test $bash_cv_type_uintmax_t = no; then
26221 cat >>confdefs.h <<_ACEOF
26222 #define uintmax_t $bash_cv_type_unsigned_long_long
26223 _ACEOF
26224
26225 fi
26226
26227 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26228
26229
26230 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26231 $as_echo_n "checking for socklen_t... " >&6; }
26232 if test "${bash_cv_type_socklen_t+set}" = set; then
26233 $as_echo_n "(cached) " >&6
26234 else
26235 cat >conftest.$ac_ext <<_ACEOF
26236 /* confdefs.h. */
26237 _ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h. */
26241 #include <sys/types.h>
26242 #if STDC_HEADERS
26243 #include <stdlib.h>
26244 #include <stddef.h>
26245 #endif
26246 #if HAVE_INTTYPES_H
26247 #include <inttypes.h>
26248 #endif
26249 #include <sys/socket.h>
26250
26251 _ACEOF
26252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26253 $EGREP "socklen_t" >/dev/null 2>&1; then
26254 bash_cv_type_socklen_t=yes
26255 else
26256 bash_cv_type_socklen_t=no
26257 fi
26258 rm -f conftest*
26259
26260 fi
26261
26262 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26263 $as_echo "$bash_cv_type_socklen_t" >&6; }
26264 if test $bash_cv_type_socklen_t = yes; then
26265 cat >>confdefs.h <<\_ACEOF
26266 #define HAVE_SOCKLEN_T 1
26267 _ACEOF
26268
26269 fi
26270 if test $bash_cv_type_socklen_t = no; then
26271 cat >>confdefs.h <<_ACEOF
26272 #define socklen_t int
26273 _ACEOF
26274
26275 fi
26276
26277 fi
26278 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26279 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26280 if test "${bash_cv_type_rlimit+set}" = set; then
26281 $as_echo_n "(cached) " >&6
26282 else
26283 cat >conftest.$ac_ext <<_ACEOF
26284 /* confdefs.h. */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26289 #include <sys/types.h>
26290 #include <sys/resource.h>
26291 int
26292 main ()
26293 {
26294 rlim_t xxx;
26295 ;
26296 return 0;
26297 }
26298 _ACEOF
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26304 esac
26305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26306 $as_echo "$ac_try_echo") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26308 ac_status=$?
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
26312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_c_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.$ac_objext; then
26317 bash_cv_type_rlimit=rlim_t
26318 else
26319 $as_echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322
26323 if test "$cross_compiling" = yes; then
26324 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
26325 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
26326 bash_cv_type_rlimit=long
26327 else
26328 cat >conftest.$ac_ext <<_ACEOF
26329 /* confdefs.h. */
26330 _ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26334
26335 #include <sys/types.h>
26336 #include <sys/time.h>
26337 #include <sys/resource.h>
26338 main()
26339 {
26340 #ifdef HAVE_QUAD_T
26341 struct rlimit rl;
26342 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
26343 exit(0);
26344 #endif
26345 exit(1);
26346 }
26347 _ACEOF
26348 rm -f conftest$ac_exeext
26349 if { (ac_try="$ac_link"
26350 case "(($ac_try" in
26351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26352 *) ac_try_echo=$ac_try;;
26353 esac
26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26355 $as_echo "$ac_try_echo") >&5
26356 (eval "$ac_link") 2>&5
26357 ac_status=$?
26358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26360 { (case "(($ac_try" in
26361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362 *) ac_try_echo=$ac_try;;
26363 esac
26364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26365 $as_echo "$ac_try_echo") >&5
26366 (eval "$ac_try") 2>&5
26367 ac_status=$?
26368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 bash_cv_type_rlimit=quad_t
26371 else
26372 $as_echo "$as_me: program exited with status $ac_status" >&5
26373 $as_echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26375
26376 ( exit $ac_status )
26377 bash_cv_type_rlimit=long
26378 fi
26379 rm -rf conftest.dSYM
26380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26381 fi
26382
26383
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387
26388 fi
26389
26390 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
26391 $as_echo "$bash_cv_type_rlimit" >&6; }
26392 if test $bash_cv_type_rlimit = quad_t; then
26393 cat >>confdefs.h <<\_ACEOF
26394 #define RLIMTYPE quad_t
26395 _ACEOF
26396
26397 elif test $bash_cv_type_rlimit = rlim_t; then
26398 cat >>confdefs.h <<\_ACEOF
26399 #define RLIMTYPE rlim_t
26400 _ACEOF
26401
26402 fi
26403
26404
26405
26406 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
26407 $as_echo_n "checking for struct termios.c_line... " >&6; }
26408 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
26409 $as_echo_n "(cached) " >&6
26410 else
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h. */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417
26418 #include <sys/types.h>
26419 #include <termios.h>
26420
26421
26422 int
26423 main ()
26424 {
26425 static struct termios ac_aggr;
26426 if (ac_aggr.c_line)
26427 return 0;
26428 ;
26429 return 0;
26430 }
26431 _ACEOF
26432 rm -f conftest.$ac_objext
26433 if { (ac_try="$ac_compile"
26434 case "(($ac_try" in
26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26437 esac
26438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26439 $as_echo "$ac_try_echo") >&5
26440 (eval "$ac_compile") 2>conftest.er1
26441 ac_status=$?
26442 grep -v '^ *+' conftest.er1 >conftest.err
26443 rm -f conftest.er1
26444 cat conftest.err >&5
26445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } && {
26447 test -z "$ac_c_werror_flag" ||
26448 test ! -s conftest.err
26449 } && test -s conftest.$ac_objext; then
26450 ac_cv_member_struct_termios_c_line=yes
26451 else
26452 $as_echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26454
26455 cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h. */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461
26462 #include <sys/types.h>
26463 #include <termios.h>
26464
26465
26466 int
26467 main ()
26468 {
26469 static struct termios ac_aggr;
26470 if (sizeof ac_aggr.c_line)
26471 return 0;
26472 ;
26473 return 0;
26474 }
26475 _ACEOF
26476 rm -f conftest.$ac_objext
26477 if { (ac_try="$ac_compile"
26478 case "(($ac_try" in
26479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26480 *) ac_try_echo=$ac_try;;
26481 esac
26482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26483 $as_echo "$ac_try_echo") >&5
26484 (eval "$ac_compile") 2>conftest.er1
26485 ac_status=$?
26486 grep -v '^ *+' conftest.er1 >conftest.err
26487 rm -f conftest.er1
26488 cat conftest.err >&5
26489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } && {
26491 test -z "$ac_c_werror_flag" ||
26492 test ! -s conftest.err
26493 } && test -s conftest.$ac_objext; then
26494 ac_cv_member_struct_termios_c_line=yes
26495 else
26496 $as_echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499 ac_cv_member_struct_termios_c_line=no
26500 fi
26501
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26503 fi
26504
26505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26506 fi
26507 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
26508 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
26509 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
26510 cat >>confdefs.h <<\_ACEOF
26511 #define TERMIOS_LDISC 1
26512 _ACEOF
26513
26514 fi
26515
26516
26517
26518 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
26519 $as_echo_n "checking for struct termio.c_line... " >&6; }
26520 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
26521 $as_echo_n "(cached) " >&6
26522 else
26523 cat >conftest.$ac_ext <<_ACEOF
26524 /* confdefs.h. */
26525 _ACEOF
26526 cat confdefs.h >>conftest.$ac_ext
26527 cat >>conftest.$ac_ext <<_ACEOF
26528 /* end confdefs.h. */
26529
26530 #include <sys/types.h>
26531 #include <termio.h>
26532
26533
26534 int
26535 main ()
26536 {
26537 static struct termio ac_aggr;
26538 if (ac_aggr.c_line)
26539 return 0;
26540 ;
26541 return 0;
26542 }
26543 _ACEOF
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26549 esac
26550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26551 $as_echo "$ac_try_echo") >&5
26552 (eval "$ac_compile") 2>conftest.er1
26553 ac_status=$?
26554 grep -v '^ *+' conftest.er1 >conftest.err
26555 rm -f conftest.er1
26556 cat conftest.err >&5
26557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); } && {
26559 test -z "$ac_c_werror_flag" ||
26560 test ! -s conftest.err
26561 } && test -s conftest.$ac_objext; then
26562 ac_cv_member_struct_termio_c_line=yes
26563 else
26564 $as_echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26566
26567 cat >conftest.$ac_ext <<_ACEOF
26568 /* confdefs.h. */
26569 _ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26573
26574 #include <sys/types.h>
26575 #include <termio.h>
26576
26577
26578 int
26579 main ()
26580 {
26581 static struct termio ac_aggr;
26582 if (sizeof ac_aggr.c_line)
26583 return 0;
26584 ;
26585 return 0;
26586 }
26587 _ACEOF
26588 rm -f conftest.$ac_objext
26589 if { (ac_try="$ac_compile"
26590 case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26593 esac
26594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26595 $as_echo "$ac_try_echo") >&5
26596 (eval "$ac_compile") 2>conftest.er1
26597 ac_status=$?
26598 grep -v '^ *+' conftest.er1 >conftest.err
26599 rm -f conftest.er1
26600 cat conftest.err >&5
26601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } && {
26603 test -z "$ac_c_werror_flag" ||
26604 test ! -s conftest.err
26605 } && test -s conftest.$ac_objext; then
26606 ac_cv_member_struct_termio_c_line=yes
26607 else
26608 $as_echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611 ac_cv_member_struct_termio_c_line=no
26612 fi
26613
26614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615 fi
26616
26617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26618 fi
26619 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
26620 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
26621 if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
26622 cat >>confdefs.h <<\_ACEOF
26623 #define TERMIO_LDISC 1
26624 _ACEOF
26625
26626 fi
26627
26628
26629
26630 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
26631 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
26632 if test "${bash_cv_dirent_has_dino+set}" = set; then
26633 $as_echo_n "(cached) " >&6
26634 else
26635 cat >conftest.$ac_ext <<_ACEOF
26636 /* confdefs.h. */
26637 _ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h. */
26641
26642 #include <stdio.h>
26643 #include <sys/types.h>
26644 #ifdef HAVE_UNISTD_H
26645 # include <unistd.h>
26646 #endif /* HAVE_UNISTD_H */
26647 #if defined(HAVE_DIRENT_H)
26648 # include <dirent.h>
26649 #else
26650 # define dirent direct
26651 # ifdef HAVE_SYS_NDIR_H
26652 # include <sys/ndir.h>
26653 # endif /* SYSNDIR */
26654 # ifdef HAVE_SYS_DIR_H
26655 # include <sys/dir.h>
26656 # endif /* SYSDIR */
26657 # ifdef HAVE_NDIR_H
26658 # include <ndir.h>
26659 # endif
26660 #endif /* HAVE_DIRENT_H */
26661
26662 int
26663 main ()
26664 {
26665
26666 struct dirent d; int z; z = d.d_ino;
26667
26668 ;
26669 return 0;
26670 }
26671 _ACEOF
26672 rm -f conftest.$ac_objext
26673 if { (ac_try="$ac_compile"
26674 case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26677 esac
26678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26679 $as_echo "$ac_try_echo") >&5
26680 (eval "$ac_compile") 2>conftest.er1
26681 ac_status=$?
26682 grep -v '^ *+' conftest.er1 >conftest.err
26683 rm -f conftest.er1
26684 cat conftest.err >&5
26685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest.$ac_objext; then
26690 bash_cv_dirent_has_dino=yes
26691 else
26692 $as_echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26694
26695 bash_cv_dirent_has_dino=no
26696 fi
26697
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26699 fi
26700
26701 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
26702 $as_echo "$bash_cv_dirent_has_dino" >&6; }
26703 if test $bash_cv_dirent_has_dino = yes; then
26704 cat >>confdefs.h <<\_ACEOF
26705 #define HAVE_STRUCT_DIRENT_D_INO 1
26706 _ACEOF
26707
26708 fi
26709
26710
26711 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
26712 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
26713 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
26714 $as_echo_n "(cached) " >&6
26715 else
26716 cat >conftest.$ac_ext <<_ACEOF
26717 /* confdefs.h. */
26718 _ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722
26723 #include <stdio.h>
26724 #include <sys/types.h>
26725 #ifdef HAVE_UNISTD_H
26726 # include <unistd.h>
26727 #endif /* HAVE_UNISTD_H */
26728 #if defined(HAVE_DIRENT_H)
26729 # include <dirent.h>
26730 #else
26731 # define dirent direct
26732 # ifdef HAVE_SYS_NDIR_H
26733 # include <sys/ndir.h>
26734 # endif /* SYSNDIR */
26735 # ifdef HAVE_SYS_DIR_H
26736 # include <sys/dir.h>
26737 # endif /* SYSDIR */
26738 # ifdef HAVE_NDIR_H
26739 # include <ndir.h>
26740 # endif
26741 #endif /* HAVE_DIRENT_H */
26742
26743 int
26744 main ()
26745 {
26746
26747 struct dirent d; int z; z = d.d_fileno;
26748
26749 ;
26750 return 0;
26751 }
26752 _ACEOF
26753 rm -f conftest.$ac_objext
26754 if { (ac_try="$ac_compile"
26755 case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26758 esac
26759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26760 $as_echo "$ac_try_echo") >&5
26761 (eval "$ac_compile") 2>conftest.er1
26762 ac_status=$?
26763 grep -v '^ *+' conftest.er1 >conftest.err
26764 rm -f conftest.er1
26765 cat conftest.err >&5
26766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } && {
26768 test -z "$ac_c_werror_flag" ||
26769 test ! -s conftest.err
26770 } && test -s conftest.$ac_objext; then
26771 bash_cv_dirent_has_d_fileno=yes
26772 else
26773 $as_echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 bash_cv_dirent_has_d_fileno=no
26777 fi
26778
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 fi
26781
26782 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
26783 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
26784 if test $bash_cv_dirent_has_d_fileno = yes; then
26785 cat >>confdefs.h <<\_ACEOF
26786 #define HAVE_STRUCT_DIRENT_D_FILENO 1
26787 _ACEOF
26788
26789 fi
26790
26791
26792 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
26793 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
26794 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
26795 $as_echo_n "(cached) " >&6
26796 else
26797 cat >conftest.$ac_ext <<_ACEOF
26798 /* confdefs.h. */
26799 _ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803
26804 #include <stdio.h>
26805 #include <sys/types.h>
26806 #ifdef HAVE_UNISTD_H
26807 # include <unistd.h>
26808 #endif /* HAVE_UNISTD_H */
26809 #if defined(HAVE_DIRENT_H)
26810 # include <dirent.h>
26811 #else
26812 # define dirent direct
26813 # ifdef HAVE_SYS_NDIR_H
26814 # include <sys/ndir.h>
26815 # endif /* SYSNDIR */
26816 # ifdef HAVE_SYS_DIR_H
26817 # include <sys/dir.h>
26818 # endif /* SYSDIR */
26819 # ifdef HAVE_NDIR_H
26820 # include <ndir.h>
26821 # endif
26822 #endif /* HAVE_DIRENT_H */
26823
26824 int
26825 main ()
26826 {
26827
26828 struct dirent d; int z; z = d.d_namlen;
26829
26830 ;
26831 return 0;
26832 }
26833 _ACEOF
26834 rm -f conftest.$ac_objext
26835 if { (ac_try="$ac_compile"
26836 case "(($ac_try" in
26837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26838 *) ac_try_echo=$ac_try;;
26839 esac
26840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26841 $as_echo "$ac_try_echo") >&5
26842 (eval "$ac_compile") 2>conftest.er1
26843 ac_status=$?
26844 grep -v '^ *+' conftest.er1 >conftest.err
26845 rm -f conftest.er1
26846 cat conftest.err >&5
26847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); } && {
26849 test -z "$ac_c_werror_flag" ||
26850 test ! -s conftest.err
26851 } && test -s conftest.$ac_objext; then
26852 bash_cv_dirent_has_d_namlen=yes
26853 else
26854 $as_echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26856
26857 bash_cv_dirent_has_d_namlen=no
26858 fi
26859
26860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26861 fi
26862
26863 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
26864 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
26865 if test $bash_cv_dirent_has_d_namlen = yes; then
26866 cat >>confdefs.h <<\_ACEOF
26867 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
26868 _ACEOF
26869
26870 fi
26871
26872 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
26873 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
26874 if test "${bash_cv_struct_winsize_header+set}" = set; then
26875 $as_echo_n "(cached) " >&6
26876 else
26877 cat >conftest.$ac_ext <<_ACEOF
26878 /* confdefs.h. */
26879 _ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26883 #include <sys/types.h>
26884 #include <sys/ioctl.h>
26885 int
26886 main ()
26887 {
26888 struct winsize x;
26889 ;
26890 return 0;
26891 }
26892 _ACEOF
26893 rm -f conftest.$ac_objext
26894 if { (ac_try="$ac_compile"
26895 case "(($ac_try" in
26896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26897 *) ac_try_echo=$ac_try;;
26898 esac
26899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26900 $as_echo "$ac_try_echo") >&5
26901 (eval "$ac_compile") 2>conftest.er1
26902 ac_status=$?
26903 grep -v '^ *+' conftest.er1 >conftest.err
26904 rm -f conftest.er1
26905 cat conftest.err >&5
26906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } && {
26908 test -z "$ac_c_werror_flag" ||
26909 test ! -s conftest.err
26910 } && test -s conftest.$ac_objext; then
26911 bash_cv_struct_winsize_header=ioctl_h
26912 else
26913 $as_echo "$as_me: failed program was:" >&5
26914 sed 's/^/| /' conftest.$ac_ext >&5
26915
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h. */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <sys/types.h>
26923 #include <termios.h>
26924 int
26925 main ()
26926 {
26927 struct winsize x;
26928 ;
26929 return 0;
26930 }
26931 _ACEOF
26932 rm -f conftest.$ac_objext
26933 if { (ac_try="$ac_compile"
26934 case "(($ac_try" in
26935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26936 *) ac_try_echo=$ac_try;;
26937 esac
26938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26939 $as_echo "$ac_try_echo") >&5
26940 (eval "$ac_compile") 2>conftest.er1
26941 ac_status=$?
26942 grep -v '^ *+' conftest.er1 >conftest.err
26943 rm -f conftest.er1
26944 cat conftest.err >&5
26945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } && {
26947 test -z "$ac_c_werror_flag" ||
26948 test ! -s conftest.err
26949 } && test -s conftest.$ac_objext; then
26950 bash_cv_struct_winsize_header=termios_h
26951 else
26952 $as_echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 bash_cv_struct_winsize_header=other
26956 fi
26957
26958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26959
26960 fi
26961
26962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963 fi
26964
26965 if test $bash_cv_struct_winsize_header = ioctl_h; then
26966 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
26967 $as_echo "sys/ioctl.h" >&6; }
26968 cat >>confdefs.h <<\_ACEOF
26969 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
26970 _ACEOF
26971
26972 elif test $bash_cv_struct_winsize_header = termios_h; then
26973 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
26974 $as_echo "termios.h" >&6; }
26975 cat >>confdefs.h <<\_ACEOF
26976 #define STRUCT_WINSIZE_IN_TERMIOS 1
26977 _ACEOF
26978
26979 else
26980 { $as_echo "$as_me:$LINENO: result: not found" >&5
26981 $as_echo "not found" >&6; }
26982 fi
26983
26984 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
26985 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
26986 if test "${bash_cv_struct_timeval+set}" = set; then
26987 $as_echo_n "(cached) " >&6
26988 else
26989
26990 cat >conftest.$ac_ext <<_ACEOF
26991 /* confdefs.h. */
26992 _ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h. */
26996 #include <sys/time.h>
26997
26998 _ACEOF
26999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27000 $EGREP "struct timeval" >/dev/null 2>&1; then
27001 bash_cv_struct_timeval=yes
27002 else
27003 cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h. */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 #include <time.h>
27010
27011 _ACEOF
27012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27013 $EGREP "struct timeval" >/dev/null 2>&1; then
27014 bash_cv_struct_timeval=yes
27015 else
27016 bash_cv_struct_timeval=no
27017 fi
27018 rm -f conftest*
27019
27020 fi
27021 rm -f conftest*
27022
27023
27024 fi
27025
27026 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
27027 $as_echo "$bash_cv_struct_timeval" >&6; }
27028 if test $bash_cv_struct_timeval = yes; then
27029 cat >>confdefs.h <<\_ACEOF
27030 #define HAVE_TIMEVAL 1
27031 _ACEOF
27032
27033 fi
27034
27035 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27036 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
27037 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27038 $as_echo_n "(cached) " >&6
27039 else
27040 cat >conftest.$ac_ext <<_ACEOF
27041 /* confdefs.h. */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27046 $ac_includes_default
27047 int
27048 main ()
27049 {
27050 static struct stat ac_aggr;
27051 if (ac_aggr.st_blocks)
27052 return 0;
27053 ;
27054 return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext
27058 if { (ac_try="$ac_compile"
27059 case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27062 esac
27063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27064 $as_echo "$ac_try_echo") >&5
27065 (eval "$ac_compile") 2>conftest.er1
27066 ac_status=$?
27067 grep -v '^ *+' conftest.er1 >conftest.err
27068 rm -f conftest.er1
27069 cat conftest.err >&5
27070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } && {
27072 test -z "$ac_c_werror_flag" ||
27073 test ! -s conftest.err
27074 } && test -s conftest.$ac_objext; then
27075 ac_cv_member_struct_stat_st_blocks=yes
27076 else
27077 $as_echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080 cat >conftest.$ac_ext <<_ACEOF
27081 /* confdefs.h. */
27082 _ACEOF
27083 cat confdefs.h >>conftest.$ac_ext
27084 cat >>conftest.$ac_ext <<_ACEOF
27085 /* end confdefs.h. */
27086 $ac_includes_default
27087 int
27088 main ()
27089 {
27090 static struct stat ac_aggr;
27091 if (sizeof ac_aggr.st_blocks)
27092 return 0;
27093 ;
27094 return 0;
27095 }
27096 _ACEOF
27097 rm -f conftest.$ac_objext
27098 if { (ac_try="$ac_compile"
27099 case "(($ac_try" in
27100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101 *) ac_try_echo=$ac_try;;
27102 esac
27103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27104 $as_echo "$ac_try_echo") >&5
27105 (eval "$ac_compile") 2>conftest.er1
27106 ac_status=$?
27107 grep -v '^ *+' conftest.er1 >conftest.err
27108 rm -f conftest.er1
27109 cat conftest.err >&5
27110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); } && {
27112 test -z "$ac_c_werror_flag" ||
27113 test ! -s conftest.err
27114 } && test -s conftest.$ac_objext; then
27115 ac_cv_member_struct_stat_st_blocks=yes
27116 else
27117 $as_echo "$as_me: failed program was:" >&5
27118 sed 's/^/| /' conftest.$ac_ext >&5
27119
27120 ac_cv_member_struct_stat_st_blocks=no
27121 fi
27122
27123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27124 fi
27125
27126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27127 fi
27128 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27129 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27130 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27131
27132 cat >>confdefs.h <<_ACEOF
27133 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27134 _ACEOF
27135
27136
27137 fi
27138
27139 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27140 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27141 if test "${ac_cv_struct_tm+set}" = set; then
27142 $as_echo_n "(cached) " >&6
27143 else
27144 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h. */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27150 #include <sys/types.h>
27151 #include <time.h>
27152
27153 int
27154 main ()
27155 {
27156 struct tm tm;
27157 int *p = &tm.tm_sec;
27158 return !p;
27159 ;
27160 return 0;
27161 }
27162 _ACEOF
27163 rm -f conftest.$ac_objext
27164 if { (ac_try="$ac_compile"
27165 case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27168 esac
27169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27170 $as_echo "$ac_try_echo") >&5
27171 (eval "$ac_compile") 2>conftest.er1
27172 ac_status=$?
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
27176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest.$ac_objext; then
27181 ac_cv_struct_tm=time.h
27182 else
27183 $as_echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27185
27186 ac_cv_struct_tm=sys/time.h
27187 fi
27188
27189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190 fi
27191 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27192 $as_echo "$ac_cv_struct_tm" >&6; }
27193 if test $ac_cv_struct_tm = sys/time.h; then
27194
27195 cat >>confdefs.h <<\_ACEOF
27196 #define TM_IN_SYS_TIME 1
27197 _ACEOF
27198
27199 fi
27200
27201 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
27202 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
27203 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
27204 $as_echo_n "(cached) " >&6
27205 else
27206 cat >conftest.$ac_ext <<_ACEOF
27207 /* confdefs.h. */
27208 _ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h. */
27212 #include <sys/types.h>
27213 #include <$ac_cv_struct_tm>
27214
27215
27216 int
27217 main ()
27218 {
27219 static struct tm ac_aggr;
27220 if (ac_aggr.tm_zone)
27221 return 0;
27222 ;
27223 return 0;
27224 }
27225 _ACEOF
27226 rm -f conftest.$ac_objext
27227 if { (ac_try="$ac_compile"
27228 case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231 esac
27232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27233 $as_echo "$ac_try_echo") >&5
27234 (eval "$ac_compile") 2>conftest.er1
27235 ac_status=$?
27236 grep -v '^ *+' conftest.er1 >conftest.err
27237 rm -f conftest.er1
27238 cat conftest.err >&5
27239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_c_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest.$ac_objext; then
27244 ac_cv_member_struct_tm_tm_zone=yes
27245 else
27246 $as_echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249 cat >conftest.$ac_ext <<_ACEOF
27250 /* confdefs.h. */
27251 _ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h. */
27255 #include <sys/types.h>
27256 #include <$ac_cv_struct_tm>
27257
27258
27259 int
27260 main ()
27261 {
27262 static struct tm ac_aggr;
27263 if (sizeof ac_aggr.tm_zone)
27264 return 0;
27265 ;
27266 return 0;
27267 }
27268 _ACEOF
27269 rm -f conftest.$ac_objext
27270 if { (ac_try="$ac_compile"
27271 case "(($ac_try" in
27272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273 *) ac_try_echo=$ac_try;;
27274 esac
27275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27276 $as_echo "$ac_try_echo") >&5
27277 (eval "$ac_compile") 2>conftest.er1
27278 ac_status=$?
27279 grep -v '^ *+' conftest.er1 >conftest.err
27280 rm -f conftest.er1
27281 cat conftest.err >&5
27282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); } && {
27284 test -z "$ac_c_werror_flag" ||
27285 test ! -s conftest.err
27286 } && test -s conftest.$ac_objext; then
27287 ac_cv_member_struct_tm_tm_zone=yes
27288 else
27289 $as_echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27291
27292 ac_cv_member_struct_tm_tm_zone=no
27293 fi
27294
27295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27296 fi
27297
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27299 fi
27300 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
27301 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
27302 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
27303
27304 cat >>confdefs.h <<_ACEOF
27305 #define HAVE_STRUCT_TM_TM_ZONE 1
27306 _ACEOF
27307
27308
27309 fi
27310
27311 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27312
27313 cat >>confdefs.h <<\_ACEOF
27314 #define HAVE_TM_ZONE 1
27315 _ACEOF
27316
27317 else
27318 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27319 $as_echo_n "checking whether tzname is declared... " >&6; }
27320 if test "${ac_cv_have_decl_tzname+set}" = set; then
27321 $as_echo_n "(cached) " >&6
27322 else
27323 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h. */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 #include <time.h>
27330
27331 int
27332 main ()
27333 {
27334 #ifndef tzname
27335 (void) tzname;
27336 #endif
27337
27338 ;
27339 return 0;
27340 }
27341 _ACEOF
27342 rm -f conftest.$ac_objext
27343 if { (ac_try="$ac_compile"
27344 case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27347 esac
27348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27349 $as_echo "$ac_try_echo") >&5
27350 (eval "$ac_compile") 2>conftest.er1
27351 ac_status=$?
27352 grep -v '^ *+' conftest.er1 >conftest.err
27353 rm -f conftest.er1
27354 cat conftest.err >&5
27355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } && {
27357 test -z "$ac_c_werror_flag" ||
27358 test ! -s conftest.err
27359 } && test -s conftest.$ac_objext; then
27360 ac_cv_have_decl_tzname=yes
27361 else
27362 $as_echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 ac_cv_have_decl_tzname=no
27366 fi
27367
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27369 fi
27370 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27371 $as_echo "$ac_cv_have_decl_tzname" >&6; }
27372 if test "x$ac_cv_have_decl_tzname" = x""yes; then
27373
27374 cat >>confdefs.h <<_ACEOF
27375 #define HAVE_DECL_TZNAME 1
27376 _ACEOF
27377
27378
27379 else
27380 cat >>confdefs.h <<_ACEOF
27381 #define HAVE_DECL_TZNAME 0
27382 _ACEOF
27383
27384
27385 fi
27386
27387
27388 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
27389 $as_echo_n "checking for tzname... " >&6; }
27390 if test "${ac_cv_var_tzname+set}" = set; then
27391 $as_echo_n "(cached) " >&6
27392 else
27393 cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h. */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h. */
27399 #include <time.h>
27400 #if !HAVE_DECL_TZNAME
27401 extern char *tzname[];
27402 #endif
27403
27404 int
27405 main ()
27406 {
27407 return tzname[0][0];
27408 ;
27409 return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext conftest$ac_exeext
27413 if { (ac_try="$ac_link"
27414 case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417 esac
27418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27419 $as_echo "$ac_try_echo") >&5
27420 (eval "$ac_link") 2>conftest.er1
27421 ac_status=$?
27422 grep -v '^ *+' conftest.er1 >conftest.err
27423 rm -f conftest.er1
27424 cat conftest.err >&5
27425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest$ac_exeext && {
27430 test "$cross_compiling" = yes ||
27431 $as_test_x conftest$ac_exeext
27432 }; then
27433 ac_cv_var_tzname=yes
27434 else
27435 $as_echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27437
27438 ac_cv_var_tzname=no
27439 fi
27440
27441 rm -rf conftest.dSYM
27442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27443 conftest$ac_exeext conftest.$ac_ext
27444 fi
27445 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27446 $as_echo "$ac_cv_var_tzname" >&6; }
27447 if test $ac_cv_var_tzname = yes; then
27448
27449 cat >>confdefs.h <<\_ACEOF
27450 #define HAVE_TZNAME 1
27451 _ACEOF
27452
27453 fi
27454 fi
27455
27456 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
27457 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
27458 if test "${bash_cv_struct_timezone+set}" = set; then
27459 $as_echo_n "(cached) " >&6
27460 else
27461
27462 cat >conftest.$ac_ext <<_ACEOF
27463 /* confdefs.h. */
27464 _ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27468 #include <sys/time.h>
27469
27470 _ACEOF
27471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27472 $EGREP "struct timezone" >/dev/null 2>&1; then
27473 bash_cv_struct_timezone=yes
27474 else
27475 cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h. */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27481 #include <time.h>
27482
27483 _ACEOF
27484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27485 $EGREP "struct timezone" >/dev/null 2>&1; then
27486 bash_cv_struct_timezone=yes
27487 else
27488 bash_cv_struct_timezone=no
27489 fi
27490 rm -f conftest*
27491
27492 fi
27493 rm -f conftest*
27494
27495
27496 fi
27497
27498 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
27499 $as_echo "$bash_cv_struct_timezone" >&6; }
27500 if test $bash_cv_struct_timezone = yes; then
27501 cat >>confdefs.h <<\_ACEOF
27502 #define HAVE_STRUCT_TIMEZONE 1
27503 _ACEOF
27504
27505 fi
27506
27507
27508 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
27509 $as_echo_n "checking for the existence of strsignal... " >&6; }
27510 if test "${bash_cv_have_strsignal+set}" = set; then
27511 $as_echo_n "(cached) " >&6
27512 else
27513 cat >conftest.$ac_ext <<_ACEOF
27514 /* confdefs.h. */
27515 _ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 #include <sys/types.h>
27520 #include <signal.h>
27521 int
27522 main ()
27523 {
27524 char *s = (char *)strsignal(2);
27525 ;
27526 return 0;
27527 }
27528 _ACEOF
27529 rm -f conftest.$ac_objext conftest$ac_exeext
27530 if { (ac_try="$ac_link"
27531 case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27534 esac
27535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27536 $as_echo "$ac_try_echo") >&5
27537 (eval "$ac_link") 2>conftest.er1
27538 ac_status=$?
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
27542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest$ac_exeext && {
27547 test "$cross_compiling" = yes ||
27548 $as_test_x conftest$ac_exeext
27549 }; then
27550 bash_cv_have_strsignal=yes
27551 else
27552 $as_echo "$as_me: failed program was:" >&5
27553 sed 's/^/| /' conftest.$ac_ext >&5
27554
27555 bash_cv_have_strsignal=no
27556 fi
27557
27558 rm -rf conftest.dSYM
27559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27560 conftest$ac_exeext conftest.$ac_ext
27561 fi
27562
27563 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
27564 $as_echo "$bash_cv_have_strsignal" >&6; }
27565 if test $bash_cv_have_strsignal = yes; then
27566 cat >>confdefs.h <<\_ACEOF
27567 #define HAVE_STRSIGNAL 1
27568 _ACEOF
27569
27570 fi
27571
27572 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
27573 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
27574 if test "${bash_cv_opendir_not_robust+set}" = set; then
27575 $as_echo_n "(cached) " >&6
27576 else
27577 if test "$cross_compiling" = yes; then
27578 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
27579 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
27580 bash_cv_opendir_not_robust=no
27581
27582 else
27583 cat >conftest.$ac_ext <<_ACEOF
27584 /* confdefs.h. */
27585 _ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h. */
27589
27590 #include <stdio.h>
27591 #include <sys/types.h>
27592 #include <fcntl.h>
27593 #ifdef HAVE_UNISTD_H
27594 # include <unistd.h>
27595 #endif /* HAVE_UNISTD_H */
27596 #if defined(HAVE_DIRENT_H)
27597 # include <dirent.h>
27598 #else
27599 # define dirent direct
27600 # ifdef HAVE_SYS_NDIR_H
27601 # include <sys/ndir.h>
27602 # endif /* SYSNDIR */
27603 # ifdef HAVE_SYS_DIR_H
27604 # include <sys/dir.h>
27605 # endif /* SYSDIR */
27606 # ifdef HAVE_NDIR_H
27607 # include <ndir.h>
27608 # endif
27609 #endif /* HAVE_DIRENT_H */
27610 main()
27611 {
27612 DIR *dir;
27613 int fd, err;
27614 err = mkdir("bash-aclocal", 0700);
27615 if (err < 0) {
27616 perror("mkdir");
27617 exit(1);
27618 }
27619 unlink("bash-aclocal/not_a_directory");
27620 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
27621 write(fd, "\n", 1);
27622 close(fd);
27623 dir = opendir("bash-aclocal/not_a_directory");
27624 unlink("bash-aclocal/not_a_directory");
27625 rmdir("bash-aclocal");
27626 exit (dir == 0);
27627 }
27628 _ACEOF
27629 rm -f conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633 *) ac_try_echo=$ac_try;;
27634 esac
27635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27636 $as_echo "$ac_try_echo") >&5
27637 (eval "$ac_link") 2>&5
27638 ac_status=$?
27639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27641 { (case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27644 esac
27645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27646 $as_echo "$ac_try_echo") >&5
27647 (eval "$ac_try") 2>&5
27648 ac_status=$?
27649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 bash_cv_opendir_not_robust=yes
27652 else
27653 $as_echo "$as_me: program exited with status $ac_status" >&5
27654 $as_echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657 ( exit $ac_status )
27658 bash_cv_opendir_not_robust=no
27659 fi
27660 rm -rf conftest.dSYM
27661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27662 fi
27663
27664
27665 fi
27666
27667 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
27668 $as_echo "$bash_cv_opendir_not_robust" >&6; }
27669 if test $bash_cv_opendir_not_robust = yes; then
27670 cat >>confdefs.h <<\_ACEOF
27671 #define OPENDIR_NOT_ROBUST 1
27672 _ACEOF
27673
27674 fi
27675
27676 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
27677 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
27678 if test "${bash_cv_ulimit_maxfds+set}" = set; then
27679 $as_echo_n "(cached) " >&6
27680 else
27681 if test "$cross_compiling" = yes; then
27682 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
27683 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
27684 bash_cv_ulimit_maxfds=no
27685
27686 else
27687 cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h. */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693
27694 main()
27695 {
27696 long maxfds = ulimit(4, 0L);
27697 exit (maxfds == -1L);
27698 }
27699
27700 _ACEOF
27701 rm -f conftest$ac_exeext
27702 if { (ac_try="$ac_link"
27703 case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27706 esac
27707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27708 $as_echo "$ac_try_echo") >&5
27709 (eval "$ac_link") 2>&5
27710 ac_status=$?
27711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27713 { (case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27716 esac
27717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27718 $as_echo "$ac_try_echo") >&5
27719 (eval "$ac_try") 2>&5
27720 ac_status=$?
27721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
27723 bash_cv_ulimit_maxfds=yes
27724 else
27725 $as_echo "$as_me: program exited with status $ac_status" >&5
27726 $as_echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729 ( exit $ac_status )
27730 bash_cv_ulimit_maxfds=no
27731 fi
27732 rm -rf conftest.dSYM
27733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27734 fi
27735
27736
27737 fi
27738
27739 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
27740 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
27741 if test $bash_cv_ulimit_maxfds = yes; then
27742 cat >>confdefs.h <<\_ACEOF
27743 #define ULIMIT_MAXFDS 1
27744 _ACEOF
27745
27746 fi
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
27766 $as_echo_n "checking whether fpurge is declared... " >&6; }
27767 if test "${ac_cv_have_decl_fpurge+set}" = set; then
27768 $as_echo_n "(cached) " >&6
27769 else
27770 cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h. */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27776 #include <stdio.h>
27777
27778 int
27779 main ()
27780 {
27781 #ifndef fpurge
27782 (void) fpurge;
27783 #endif
27784
27785 ;
27786 return 0;
27787 }
27788 _ACEOF
27789 rm -f conftest.$ac_objext
27790 if { (ac_try="$ac_compile"
27791 case "(($ac_try" in
27792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27793 *) ac_try_echo=$ac_try;;
27794 esac
27795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27796 $as_echo "$ac_try_echo") >&5
27797 (eval "$ac_compile") 2>conftest.er1
27798 ac_status=$?
27799 grep -v '^ *+' conftest.er1 >conftest.err
27800 rm -f conftest.er1
27801 cat conftest.err >&5
27802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } && {
27804 test -z "$ac_c_werror_flag" ||
27805 test ! -s conftest.err
27806 } && test -s conftest.$ac_objext; then
27807 ac_cv_have_decl_fpurge=yes
27808 else
27809 $as_echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27811
27812 ac_cv_have_decl_fpurge=no
27813 fi
27814
27815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27816 fi
27817 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
27818 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
27819 if test "x$ac_cv_have_decl_fpurge" = x""yes; then
27820
27821 cat >>confdefs.h <<_ACEOF
27822 #define HAVE_DECL_FPURGE 1
27823 _ACEOF
27824
27825
27826 else
27827 cat >>confdefs.h <<_ACEOF
27828 #define HAVE_DECL_FPURGE 0
27829 _ACEOF
27830
27831
27832 fi
27833
27834
27835
27836 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
27837 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
27838 if test "${bash_cv_getenv_redef+set}" = set; then
27839 $as_echo_n "(cached) " >&6
27840 else
27841 if test "$cross_compiling" = yes; then
27842 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
27843 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
27844 bash_cv_getenv_redef=yes
27845
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 #ifdef HAVE_UNISTD_H
27855 # include <unistd.h>
27856 #endif
27857 #ifndef __STDC__
27858 # ifndef const
27859 # define const
27860 # endif
27861 #endif
27862 char *
27863 getenv (name)
27864 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
27865 const char *name;
27866 #else
27867 char const *name;
27868 #endif /* !__linux__ && !__bsdi__ && !convex */
27869 {
27870 return "42";
27871 }
27872 main()
27873 {
27874 char *s;
27875 /* The next allows this program to run, but does not allow bash to link
27876 when it redefines getenv. I'm not really interested in figuring out
27877 why not. */
27878 #if defined (NeXT)
27879 exit(1);
27880 #endif
27881 s = getenv("ABCDE");
27882 exit(s == 0); /* force optimizer to leave getenv in */
27883 }
27884
27885 _ACEOF
27886 rm -f conftest$ac_exeext
27887 if { (ac_try="$ac_link"
27888 case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27891 esac
27892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27893 $as_echo "$ac_try_echo") >&5
27894 (eval "$ac_link") 2>&5
27895 ac_status=$?
27896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27898 { (case "(($ac_try" in
27899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900 *) ac_try_echo=$ac_try;;
27901 esac
27902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27903 $as_echo "$ac_try_echo") >&5
27904 (eval "$ac_try") 2>&5
27905 ac_status=$?
27906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908 bash_cv_getenv_redef=yes
27909 else
27910 $as_echo "$as_me: program exited with status $ac_status" >&5
27911 $as_echo "$as_me: failed program was:" >&5
27912 sed 's/^/| /' conftest.$ac_ext >&5
27913
27914 ( exit $ac_status )
27915 bash_cv_getenv_redef=no
27916 fi
27917 rm -rf conftest.dSYM
27918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27919 fi
27920
27921
27922 fi
27923
27924 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
27925 $as_echo "$bash_cv_getenv_redef" >&6; }
27926 if test $bash_cv_getenv_redef = yes; then
27927 cat >>confdefs.h <<\_ACEOF
27928 #define CAN_REDEFINE_GETENV 1
27929 _ACEOF
27930
27931 fi
27932
27933 if test "$ac_cv_func_getcwd" = "yes"; then
27934 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
27935 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
27936 if test "${bash_cv_getcwd_malloc+set}" = set; then
27937 $as_echo_n "(cached) " >&6
27938 else
27939 if test "$cross_compiling" = yes; then
27940 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
27941 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
27942 bash_cv_getcwd_malloc=no
27943
27944 else
27945 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h. */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27951
27952 #include <stdio.h>
27953 #ifdef HAVE_UNISTD_H
27954 #include <unistd.h>
27955 #endif
27956
27957 main()
27958 {
27959 char *xpwd;
27960 xpwd = getcwd(0, 0);
27961 exit (xpwd == 0);
27962 }
27963
27964 _ACEOF
27965 rm -f conftest$ac_exeext
27966 if { (ac_try="$ac_link"
27967 case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27970 esac
27971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27972 $as_echo "$ac_try_echo") >&5
27973 (eval "$ac_link") 2>&5
27974 ac_status=$?
27975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27977 { (case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27980 esac
27981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27982 $as_echo "$ac_try_echo") >&5
27983 (eval "$ac_try") 2>&5
27984 ac_status=$?
27985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; }; then
27987 bash_cv_getcwd_malloc=yes
27988 else
27989 $as_echo "$as_me: program exited with status $ac_status" >&5
27990 $as_echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.$ac_ext >&5
27992
27993 ( exit $ac_status )
27994 bash_cv_getcwd_malloc=no
27995 fi
27996 rm -rf conftest.dSYM
27997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27998 fi
27999
28000
28001 fi
28002
28003 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
28004 $as_echo "$bash_cv_getcwd_malloc" >&6; }
28005 if test $bash_cv_getcwd_malloc = no; then
28006 cat >>confdefs.h <<\_ACEOF
28007 #define GETCWD_BROKEN 1
28008 _ACEOF
28009
28010 case " $LIBOBJS " in
28011 *" getcwd.$ac_objext "* ) ;;
28012 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
28013 ;;
28014 esac
28015
28016 fi
28017
28018 fi
28019
28020 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
28021 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
28022 if test "${bash_cv_func_sigsetjmp+set}" = set; then
28023 $as_echo_n "(cached) " >&6
28024 else
28025 if test "$cross_compiling" = yes; then
28026 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
28027 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
28028 bash_cv_func_sigsetjmp=missing
28029
28030 else
28031 cat >conftest.$ac_ext <<_ACEOF
28032 /* confdefs.h. */
28033 _ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28037
28038 #ifdef HAVE_UNISTD_H
28039 #include <unistd.h>
28040 #endif
28041 #include <sys/types.h>
28042 #include <signal.h>
28043 #include <setjmp.h>
28044
28045 main()
28046 {
28047 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
28048 exit (1);
28049 #else
28050
28051 int code;
28052 sigset_t set, oset;
28053 sigjmp_buf xx;
28054
28055 /* get the mask */
28056 sigemptyset(&set);
28057 sigemptyset(&oset);
28058 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
28059 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
28060
28061 /* save it */
28062 code = sigsetjmp(xx, 1);
28063 if (code)
28064 exit(0); /* could get sigmask and compare to oset here. */
28065
28066 /* change it */
28067 sigaddset(&set, SIGINT);
28068 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
28069
28070 /* and siglongjmp */
28071 siglongjmp(xx, 10);
28072 exit(1);
28073 #endif
28074 }
28075 _ACEOF
28076 rm -f conftest$ac_exeext
28077 if { (ac_try="$ac_link"
28078 case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28081 esac
28082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28083 $as_echo "$ac_try_echo") >&5
28084 (eval "$ac_link") 2>&5
28085 ac_status=$?
28086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28091 esac
28092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28093 $as_echo "$ac_try_echo") >&5
28094 (eval "$ac_try") 2>&5
28095 ac_status=$?
28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 bash_cv_func_sigsetjmp=present
28099 else
28100 $as_echo "$as_me: program exited with status $ac_status" >&5
28101 $as_echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104 ( exit $ac_status )
28105 bash_cv_func_sigsetjmp=missing
28106 fi
28107 rm -rf conftest.dSYM
28108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28109 fi
28110
28111
28112 fi
28113
28114 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
28115 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
28116 if test $bash_cv_func_sigsetjmp = present; then
28117 cat >>confdefs.h <<\_ACEOF
28118 #define HAVE_POSIX_SIGSETJMP 1
28119 _ACEOF
28120
28121 fi
28122
28123
28124 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
28125 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
28126 if test "${bash_cv_func_strcoll_broken+set}" = set; then
28127 $as_echo_n "(cached) " >&6
28128 else
28129 if test "$cross_compiling" = yes; then
28130 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
28131 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
28132 bash_cv_func_strcoll_broken=no
28133
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 #if defined (HAVE_LOCALE_H)
28144 #include <locale.h>
28145 #endif
28146
28147 main(c, v)
28148 int c;
28149 char *v[];
28150 {
28151 int r1, r2;
28152 char *deflocale, *defcoll;
28153
28154 #ifdef HAVE_SETLOCALE
28155 deflocale = setlocale(LC_ALL, "");
28156 defcoll = setlocale(LC_COLLATE, "");
28157 #endif
28158
28159 #ifdef HAVE_STRCOLL
28160 /* These two values are taken from tests/glob-test. */
28161 r1 = strcoll("abd", "aXd");
28162 #else
28163 r1 = 0;
28164 #endif
28165 r2 = strcmp("abd", "aXd");
28166
28167 /* These two should both be greater than 0. It is permissible for
28168 a system to return different values, as long as the sign is the
28169 same. */
28170
28171 /* Exit with 1 (failure) if these two values are both > 0, since
28172 this tests whether strcoll(3) is broken with respect to strcmp(3)
28173 in the default locale. */
28174 exit (r1 > 0 && r2 > 0);
28175 }
28176
28177 _ACEOF
28178 rm -f conftest$ac_exeext
28179 if { (ac_try="$ac_link"
28180 case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28183 esac
28184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185 $as_echo "$ac_try_echo") >&5
28186 (eval "$ac_link") 2>&5
28187 ac_status=$?
28188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28190 { (case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28193 esac
28194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28195 $as_echo "$ac_try_echo") >&5
28196 (eval "$ac_try") 2>&5
28197 ac_status=$?
28198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 bash_cv_func_strcoll_broken=yes
28201 else
28202 $as_echo "$as_me: program exited with status $ac_status" >&5
28203 $as_echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28205
28206 ( exit $ac_status )
28207 bash_cv_func_strcoll_broken=no
28208 fi
28209 rm -rf conftest.dSYM
28210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28211 fi
28212
28213
28214 fi
28215
28216 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
28217 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
28218 if test $bash_cv_func_strcoll_broken = yes; then
28219 cat >>confdefs.h <<\_ACEOF
28220 #define STRCOLL_BROKEN 1
28221 _ACEOF
28222
28223 fi
28224
28225
28226
28227 if test "$ac_cv_func_putenv" = "yes"; then
28228
28229
28230
28231 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
28232 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
28233 if test "${bash_cv_std_putenv+set}" = set; then
28234 $as_echo_n "(cached) " >&6
28235 else
28236 cat >conftest.$ac_ext <<_ACEOF
28237 /* confdefs.h. */
28238 _ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28242
28243 #if STDC_HEADERS
28244 #include <stdlib.h>
28245 #include <stddef.h>
28246 #endif
28247 #ifndef __STDC__
28248 # ifndef const
28249 # define const
28250 # endif
28251 #endif
28252 #ifdef PROTOTYPES
28253 extern int putenv (char *);
28254 #else
28255 extern int putenv ();
28256 #endif
28257
28258 int
28259 main ()
28260 {
28261 return (putenv == 0);
28262 ;
28263 return 0;
28264 }
28265 _ACEOF
28266 rm -f conftest.$ac_objext conftest$ac_exeext
28267 if { (ac_try="$ac_link"
28268 case "(($ac_try" in
28269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270 *) ac_try_echo=$ac_try;;
28271 esac
28272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28273 $as_echo "$ac_try_echo") >&5
28274 (eval "$ac_link") 2>conftest.er1
28275 ac_status=$?
28276 grep -v '^ *+' conftest.er1 >conftest.err
28277 rm -f conftest.er1
28278 cat conftest.err >&5
28279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } && {
28281 test -z "$ac_c_werror_flag" ||
28282 test ! -s conftest.err
28283 } && test -s conftest$ac_exeext && {
28284 test "$cross_compiling" = yes ||
28285 $as_test_x conftest$ac_exeext
28286 }; then
28287 bash_cv_std_putenv=yes
28288 else
28289 $as_echo "$as_me: failed program was:" >&5
28290 sed 's/^/| /' conftest.$ac_ext >&5
28291
28292 bash_cv_std_putenv=no
28293
28294 fi
28295
28296 rm -rf conftest.dSYM
28297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28298 conftest$ac_exeext conftest.$ac_ext
28299 fi
28300 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
28301 $as_echo "$bash_cv_std_putenv" >&6; }
28302 if test $bash_cv_std_putenv = yes; then
28303 cat >>confdefs.h <<\_ACEOF
28304 #define HAVE_STD_PUTENV 1
28305 _ACEOF
28306
28307 fi
28308
28309 else
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_STD_PUTENV 1
28312 _ACEOF
28313
28314 fi
28315 if test "$ac_cv_func_unsetenv" = "yes"; then
28316
28317
28318
28319 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
28320 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
28321 if test "${bash_cv_std_unsetenv+set}" = set; then
28322 $as_echo_n "(cached) " >&6
28323 else
28324 cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h. */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330
28331 #if STDC_HEADERS
28332 #include <stdlib.h>
28333 #include <stddef.h>
28334 #endif
28335 #ifndef __STDC__
28336 # ifndef const
28337 # define const
28338 # endif
28339 #endif
28340 #ifdef PROTOTYPES
28341 extern int unsetenv (const char *);
28342 #else
28343 extern int unsetenv ();
28344 #endif
28345
28346 int
28347 main ()
28348 {
28349 return (unsetenv == 0);
28350 ;
28351 return 0;
28352 }
28353 _ACEOF
28354 rm -f conftest.$ac_objext conftest$ac_exeext
28355 if { (ac_try="$ac_link"
28356 case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28359 esac
28360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28361 $as_echo "$ac_try_echo") >&5
28362 (eval "$ac_link") 2>conftest.er1
28363 ac_status=$?
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
28367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } && {
28369 test -z "$ac_c_werror_flag" ||
28370 test ! -s conftest.err
28371 } && test -s conftest$ac_exeext && {
28372 test "$cross_compiling" = yes ||
28373 $as_test_x conftest$ac_exeext
28374 }; then
28375 bash_cv_std_unsetenv=yes
28376 else
28377 $as_echo "$as_me: failed program was:" >&5
28378 sed 's/^/| /' conftest.$ac_ext >&5
28379
28380 bash_cv_std_unsetenv=no
28381
28382 fi
28383
28384 rm -rf conftest.dSYM
28385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28386 conftest$ac_exeext conftest.$ac_ext
28387 fi
28388 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
28389 $as_echo "$bash_cv_std_unsetenv" >&6; }
28390 if test $bash_cv_std_unsetenv = yes; then
28391 cat >>confdefs.h <<\_ACEOF
28392 #define HAVE_STD_UNSETENV 1
28393 _ACEOF
28394
28395 fi
28396
28397 else
28398 cat >>confdefs.h <<\_ACEOF
28399 #define HAVE_STD_UNSETENV 1
28400 _ACEOF
28401
28402 fi
28403
28404 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
28405 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
28406 if test "${bash_cv_printf_a_format+set}" = set; then
28407 $as_echo_n "(cached) " >&6
28408 else
28409 if test "$cross_compiling" = yes; then
28410 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
28411 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
28412 bash_cv_printf_a_format=no
28413
28414 else
28415 cat >conftest.$ac_ext <<_ACEOF
28416 /* confdefs.h. */
28417 _ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h. */
28421
28422 #include <stdio.h>
28423 #include <string.h>
28424
28425 int
28426 main()
28427 {
28428 double y = 0.0;
28429 char abuf[1024];
28430
28431 sprintf(abuf, "%A", y);
28432 exit(strchr(abuf, 'P') == (char *)0);
28433 }
28434
28435 _ACEOF
28436 rm -f conftest$ac_exeext
28437 if { (ac_try="$ac_link"
28438 case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28441 esac
28442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28443 $as_echo "$ac_try_echo") >&5
28444 (eval "$ac_link") 2>&5
28445 ac_status=$?
28446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28451 esac
28452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28453 $as_echo "$ac_try_echo") >&5
28454 (eval "$ac_try") 2>&5
28455 ac_status=$?
28456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 bash_cv_printf_a_format=yes
28459 else
28460 $as_echo "$as_me: program exited with status $ac_status" >&5
28461 $as_echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464 ( exit $ac_status )
28465 bash_cv_printf_a_format=no
28466 fi
28467 rm -rf conftest.dSYM
28468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28469 fi
28470
28471
28472 fi
28473
28474 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
28475 $as_echo "$bash_cv_printf_a_format" >&6; }
28476 if test $bash_cv_printf_a_format = yes; then
28477 cat >>confdefs.h <<\_ACEOF
28478 #define HAVE_PRINTF_A_FORMAT 1
28479 _ACEOF
28480
28481 fi
28482
28483
28484
28485
28486 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
28487 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
28488 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
28489 $as_echo_n "(cached) " >&6
28490 else
28491 if test "$cross_compiling" = yes; then
28492 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
28493 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
28494 bash_cv_must_reinstall_sighandlers=no
28495
28496 else
28497 cat >conftest.$ac_ext <<_ACEOF
28498 /* confdefs.h. */
28499 _ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28503
28504 #include <signal.h>
28505 #ifdef HAVE_UNISTD_H
28506 #include <unistd.h>
28507 #endif
28508
28509 typedef RETSIGTYPE sigfunc();
28510
28511 int nsigint;
28512
28513 #ifdef HAVE_POSIX_SIGNALS
28514 sigfunc *
28515 set_signal_handler(sig, handler)
28516 int sig;
28517 sigfunc *handler;
28518 {
28519 struct sigaction act, oact;
28520 act.sa_handler = handler;
28521 act.sa_flags = 0;
28522 sigemptyset (&act.sa_mask);
28523 sigemptyset (&oact.sa_mask);
28524 sigaction (sig, &act, &oact);
28525 return (oact.sa_handler);
28526 }
28527 #else
28528 #define set_signal_handler(s, h) signal(s, h)
28529 #endif
28530
28531 RETSIGTYPE
28532 sigint(s)
28533 int s;
28534 {
28535 nsigint++;
28536 }
28537
28538 main()
28539 {
28540 nsigint = 0;
28541 set_signal_handler(SIGINT, sigint);
28542 kill((int)getpid(), SIGINT);
28543 kill((int)getpid(), SIGINT);
28544 exit(nsigint != 2);
28545 }
28546
28547 _ACEOF
28548 rm -f conftest$ac_exeext
28549 if { (ac_try="$ac_link"
28550 case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28553 esac
28554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28555 $as_echo "$ac_try_echo") >&5
28556 (eval "$ac_link") 2>&5
28557 ac_status=$?
28558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28560 { (case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28563 esac
28564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28565 $as_echo "$ac_try_echo") >&5
28566 (eval "$ac_try") 2>&5
28567 ac_status=$?
28568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
28570 bash_cv_must_reinstall_sighandlers=no
28571 else
28572 $as_echo "$as_me: program exited with status $ac_status" >&5
28573 $as_echo "$as_me: failed program was:" >&5
28574 sed 's/^/| /' conftest.$ac_ext >&5
28575
28576 ( exit $ac_status )
28577 bash_cv_must_reinstall_sighandlers=yes
28578 fi
28579 rm -rf conftest.dSYM
28580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28581 fi
28582
28583
28584 fi
28585
28586 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
28587 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
28588 if test $bash_cv_must_reinstall_sighandlers = yes; then
28589 cat >>confdefs.h <<\_ACEOF
28590 #define MUST_REINSTALL_SIGHANDLERS 1
28591 _ACEOF
28592
28593 fi
28594
28595
28596 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
28597 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
28598 if test "${bash_cv_job_control_missing+set}" = set; then
28599 $as_echo_n "(cached) " >&6
28600 else
28601 if test "$cross_compiling" = yes; then
28602 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
28603 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
28604 bash_cv_job_control_missing=missing
28605
28606 else
28607 cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h. */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h. */
28613
28614 #include <sys/types.h>
28615 #ifdef HAVE_SYS_WAIT_H
28616 #include <sys/wait.h>
28617 #endif
28618 #ifdef HAVE_UNISTD_H
28619 #include <unistd.h>
28620 #endif
28621 #include <signal.h>
28622
28623 /* Add more tests in here as appropriate. */
28624 main()
28625 {
28626 /* signal type */
28627 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
28628 exit(1);
28629 #endif
28630
28631 /* signals and tty control. */
28632 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
28633 exit (1);
28634 #endif
28635
28636 /* process control */
28637 #if !defined (WNOHANG) || !defined (WUNTRACED)
28638 exit(1);
28639 #endif
28640
28641 /* Posix systems have tcgetpgrp and waitpid. */
28642 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
28643 exit(1);
28644 #endif
28645
28646 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
28647 exit(1);
28648 #endif
28649
28650 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
28651 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
28652 exit(1);
28653 #endif
28654
28655 exit(0);
28656 }
28657 _ACEOF
28658 rm -f conftest$ac_exeext
28659 if { (ac_try="$ac_link"
28660 case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28663 esac
28664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28665 $as_echo "$ac_try_echo") >&5
28666 (eval "$ac_link") 2>&5
28667 ac_status=$?
28668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28670 { (case "(($ac_try" in
28671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672 *) ac_try_echo=$ac_try;;
28673 esac
28674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28675 $as_echo "$ac_try_echo") >&5
28676 (eval "$ac_try") 2>&5
28677 ac_status=$?
28678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; }; then
28680 bash_cv_job_control_missing=present
28681 else
28682 $as_echo "$as_me: program exited with status $ac_status" >&5
28683 $as_echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28685
28686 ( exit $ac_status )
28687 bash_cv_job_control_missing=missing
28688 fi
28689 rm -rf conftest.dSYM
28690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28691 fi
28692
28693
28694 fi
28695
28696 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
28697 $as_echo "$bash_cv_job_control_missing" >&6; }
28698 if test $bash_cv_job_control_missing = missing; then
28699 cat >>confdefs.h <<\_ACEOF
28700 #define JOB_CONTROL_MISSING 1
28701 _ACEOF
28702
28703 fi
28704
28705 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
28706 $as_echo_n "checking for presence of named pipes... " >&6; }
28707 if test "${bash_cv_sys_named_pipes+set}" = set; then
28708 $as_echo_n "(cached) " >&6
28709 else
28710 if test "$cross_compiling" = yes; then
28711 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
28712 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
28713 bash_cv_sys_named_pipes=missing
28714
28715 else
28716 cat >conftest.$ac_ext <<_ACEOF
28717 /* confdefs.h. */
28718 _ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h. */
28722
28723 #include <sys/types.h>
28724 #include <sys/stat.h>
28725 #ifdef HAVE_UNISTD_H
28726 #include <unistd.h>
28727 #endif
28728
28729 /* Add more tests in here as appropriate. */
28730 main()
28731 {
28732 int fd, err;
28733
28734 #if defined (HAVE_MKFIFO)
28735 exit (0);
28736 #endif
28737
28738 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
28739 exit (1);
28740 #endif
28741
28742 #if defined (NeXT)
28743 exit (1);
28744 #endif
28745 err = mkdir("bash-aclocal", 0700);
28746 if (err < 0) {
28747 perror ("mkdir");
28748 exit(1);
28749 }
28750 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
28751 if (fd == -1) {
28752 rmdir ("bash-aclocal");
28753 exit (1);
28754 }
28755 close(fd);
28756 unlink ("bash-aclocal/sh-np-autoconf");
28757 rmdir ("bash-aclocal");
28758 exit(0);
28759 }
28760 _ACEOF
28761 rm -f conftest$ac_exeext
28762 if { (ac_try="$ac_link"
28763 case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28766 esac
28767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28768 $as_echo "$ac_try_echo") >&5
28769 (eval "$ac_link") 2>&5
28770 ac_status=$?
28771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28773 { (case "(($ac_try" in
28774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28775 *) ac_try_echo=$ac_try;;
28776 esac
28777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28778 $as_echo "$ac_try_echo") >&5
28779 (eval "$ac_try") 2>&5
28780 ac_status=$?
28781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 bash_cv_sys_named_pipes=present
28784 else
28785 $as_echo "$as_me: program exited with status $ac_status" >&5
28786 $as_echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789 ( exit $ac_status )
28790 bash_cv_sys_named_pipes=missing
28791 fi
28792 rm -rf conftest.dSYM
28793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28794 fi
28795
28796
28797 fi
28798
28799 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
28800 $as_echo "$bash_cv_sys_named_pipes" >&6; }
28801 if test $bash_cv_sys_named_pipes = missing; then
28802 cat >>confdefs.h <<\_ACEOF
28803 #define NAMED_PIPES_MISSING 1
28804 _ACEOF
28805
28806 fi
28807
28808
28809 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
28810 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
28811 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
28812 $as_echo_n "(cached) " >&6
28813 else
28814 cat >conftest.$ac_ext <<_ACEOF
28815 /* confdefs.h. */
28816 _ACEOF
28817 cat confdefs.h >>conftest.$ac_ext
28818 cat >>conftest.$ac_ext <<_ACEOF
28819 /* end confdefs.h. */
28820 #include <sys/types.h>
28821 #include <termios.h>
28822 #ifdef TIOCGWINSZ
28823 yes
28824 #endif
28825
28826 _ACEOF
28827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28828 $EGREP "yes" >/dev/null 2>&1; then
28829 ac_cv_sys_tiocgwinsz_in_termios_h=yes
28830 else
28831 ac_cv_sys_tiocgwinsz_in_termios_h=no
28832 fi
28833 rm -f conftest*
28834
28835 fi
28836 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
28837 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
28838
28839 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
28840 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
28841 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
28842 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
28843 $as_echo_n "(cached) " >&6
28844 else
28845 cat >conftest.$ac_ext <<_ACEOF
28846 /* confdefs.h. */
28847 _ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h. */
28851 #include <sys/types.h>
28852 #include <sys/ioctl.h>
28853 #ifdef TIOCGWINSZ
28854 yes
28855 #endif
28856
28857 _ACEOF
28858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28859 $EGREP "yes" >/dev/null 2>&1; then
28860 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
28861 else
28862 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
28863 fi
28864 rm -f conftest*
28865
28866 fi
28867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
28868 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
28869
28870 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
28871
28872 cat >>confdefs.h <<\_ACEOF
28873 #define GWINSZ_IN_SYS_IOCTL 1
28874 _ACEOF
28875
28876 fi
28877 fi
28878
28879 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
28880 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
28881 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
28882 $as_echo_n "(cached) " >&6
28883 else
28884 cat >conftest.$ac_ext <<_ACEOF
28885 /* confdefs.h. */
28886 _ACEOF
28887 cat confdefs.h >>conftest.$ac_ext
28888 cat >>conftest.$ac_ext <<_ACEOF
28889 /* end confdefs.h. */
28890 #include <sys/types.h>
28891 #include <sys/ioctl.h>
28892 int
28893 main ()
28894 {
28895 int x = TIOCSTAT;
28896 ;
28897 return 0;
28898 }
28899 _ACEOF
28900 rm -f conftest.$ac_objext
28901 if { (ac_try="$ac_compile"
28902 case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905 esac
28906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28907 $as_echo "$ac_try_echo") >&5
28908 (eval "$ac_compile") 2>conftest.er1
28909 ac_status=$?
28910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
28913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } && {
28915 test -z "$ac_c_werror_flag" ||
28916 test ! -s conftest.err
28917 } && test -s conftest.$ac_objext; then
28918 bash_cv_tiocstat_in_ioctl=yes
28919 else
28920 $as_echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923 bash_cv_tiocstat_in_ioctl=no
28924 fi
28925
28926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28927 fi
28928
28929 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
28930 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
28931 if test $bash_cv_tiocstat_in_ioctl = yes; then
28932 cat >>confdefs.h <<\_ACEOF
28933 #define TIOCSTAT_IN_SYS_IOCTL 1
28934 _ACEOF
28935
28936 fi
28937
28938 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
28939 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
28940 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
28941 $as_echo_n "(cached) " >&6
28942 else
28943 cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h. */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 #include <sys/types.h>
28950 #include <sys/ioctl.h>
28951 int
28952 main ()
28953 {
28954 int x = FIONREAD;
28955 ;
28956 return 0;
28957 }
28958 _ACEOF
28959 rm -f conftest.$ac_objext
28960 if { (ac_try="$ac_compile"
28961 case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28964 esac
28965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28966 $as_echo "$ac_try_echo") >&5
28967 (eval "$ac_compile") 2>conftest.er1
28968 ac_status=$?
28969 grep -v '^ *+' conftest.er1 >conftest.err
28970 rm -f conftest.er1
28971 cat conftest.err >&5
28972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } && {
28974 test -z "$ac_c_werror_flag" ||
28975 test ! -s conftest.err
28976 } && test -s conftest.$ac_objext; then
28977 bash_cv_fionread_in_ioctl=yes
28978 else
28979 $as_echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982 bash_cv_fionread_in_ioctl=no
28983 fi
28984
28985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28986 fi
28987
28988 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
28989 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
28990 if test $bash_cv_fionread_in_ioctl = yes; then
28991 cat >>confdefs.h <<\_ACEOF
28992 #define FIONREAD_IN_SYS_IOCTL 1
28993 _ACEOF
28994
28995 fi
28996
28997
28998
28999 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
29000 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
29001 if test "${bash_cv_wcontinued_broken+set}" = set; then
29002 $as_echo_n "(cached) " >&6
29003 else
29004 if test "$cross_compiling" = yes; then
29005 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
29006 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
29007 bash_cv_wcontinued_broken=no
29008
29009 else
29010 cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h. */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29016
29017 #include <sys/types.h>
29018 #include <sys/wait.h>
29019 #include <unistd.h>
29020 #include <errno.h>
29021
29022 #ifndef errno
29023 extern int errno;
29024 #endif
29025 main()
29026 {
29027 int x;
29028
29029 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
29030 if (x == -1 && errno == EINVAL)
29031 exit (1);
29032 else
29033 exit (0);
29034 }
29035
29036 _ACEOF
29037 rm -f conftest$ac_exeext
29038 if { (ac_try="$ac_link"
29039 case "(($ac_try" in
29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29042 esac
29043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29044 $as_echo "$ac_try_echo") >&5
29045 (eval "$ac_link") 2>&5
29046 ac_status=$?
29047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29049 { (case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29052 esac
29053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29054 $as_echo "$ac_try_echo") >&5
29055 (eval "$ac_try") 2>&5
29056 ac_status=$?
29057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 bash_cv_wcontinued_broken=no
29060 else
29061 $as_echo "$as_me: program exited with status $ac_status" >&5
29062 $as_echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29064
29065 ( exit $ac_status )
29066 bash_cv_wcontinued_broken=yes
29067 fi
29068 rm -rf conftest.dSYM
29069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29070 fi
29071
29072
29073 fi
29074
29075 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
29076 $as_echo "$bash_cv_wcontinued_broken" >&6; }
29077 if test $bash_cv_wcontinued_broken = yes; then
29078 cat >>confdefs.h <<\_ACEOF
29079 #define WCONTINUED_BROKEN 1
29080 _ACEOF
29081
29082 fi
29083
29084
29085 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
29086 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
29087 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
29088 $as_echo_n "(cached) " >&6
29089 else
29090 cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h. */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29096 #include <sys/types.h>
29097 int
29098 main ()
29099 {
29100 speed_t x;
29101 ;
29102 return 0;
29103 }
29104 _ACEOF
29105 rm -f conftest.$ac_objext
29106 if { (ac_try="$ac_compile"
29107 case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110 esac
29111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29112 $as_echo "$ac_try_echo") >&5
29113 (eval "$ac_compile") 2>conftest.er1
29114 ac_status=$?
29115 grep -v '^ *+' conftest.er1 >conftest.err
29116 rm -f conftest.er1
29117 cat conftest.err >&5
29118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } && {
29120 test -z "$ac_c_werror_flag" ||
29121 test ! -s conftest.err
29122 } && test -s conftest.$ac_objext; then
29123 bash_cv_speed_t_in_sys_types=yes
29124 else
29125 $as_echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29127
29128 bash_cv_speed_t_in_sys_types=no
29129 fi
29130
29131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29132 fi
29133
29134 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
29135 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
29136 if test $bash_cv_speed_t_in_sys_types = yes; then
29137 cat >>confdefs.h <<\_ACEOF
29138 #define SPEED_T_IN_SYS_TYPES 1
29139 _ACEOF
29140
29141 fi
29142
29143 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
29144 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
29145 if test "${bash_cv_getpw_declared+set}" = set; then
29146 $as_echo_n "(cached) " >&6
29147 else
29148 cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h. */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29154
29155 #include <sys/types.h>
29156 #ifdef HAVE_UNISTD_H
29157 # include <unistd.h>
29158 #endif
29159 #include <pwd.h>
29160
29161 _ACEOF
29162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29163 $EGREP "getpwuid" >/dev/null 2>&1; then
29164 bash_cv_getpw_declared=yes
29165 else
29166 bash_cv_getpw_declared=no
29167 fi
29168 rm -f conftest*
29169
29170 fi
29171
29172 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
29173 $as_echo "$bash_cv_getpw_declared" >&6; }
29174 if test $bash_cv_getpw_declared = yes; then
29175 cat >>confdefs.h <<\_ACEOF
29176 #define HAVE_GETPW_DECLS 1
29177 _ACEOF
29178
29179 fi
29180
29181 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
29182 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
29183 if test "${bash_cv_unusable_rtsigs+set}" = set; then
29184 $as_echo_n "(cached) " >&6
29185 else
29186 if test "$cross_compiling" = yes; then
29187 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
29188 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
29189 bash_cv_unusable_rtsigs=yes
29190
29191 else
29192 cat >conftest.$ac_ext <<_ACEOF
29193 /* confdefs.h. */
29194 _ACEOF
29195 cat confdefs.h >>conftest.$ac_ext
29196 cat >>conftest.$ac_ext <<_ACEOF
29197 /* end confdefs.h. */
29198
29199 #include <sys/types.h>
29200 #include <signal.h>
29201
29202 #ifndef NSIG
29203 # define NSIG 64
29204 #endif
29205
29206 main ()
29207 {
29208 int n_sigs = 2 * NSIG;
29209 #ifdef SIGRTMIN
29210 int rtmin = SIGRTMIN;
29211 #else
29212 int rtmin = 0;
29213 #endif
29214
29215 exit(rtmin < n_sigs);
29216 }
29217 _ACEOF
29218 rm -f conftest$ac_exeext
29219 if { (ac_try="$ac_link"
29220 case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29223 esac
29224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29225 $as_echo "$ac_try_echo") >&5
29226 (eval "$ac_link") 2>&5
29227 ac_status=$?
29228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29230 { (case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29233 esac
29234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29235 $as_echo "$ac_try_echo") >&5
29236 (eval "$ac_try") 2>&5
29237 ac_status=$?
29238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 bash_cv_unusable_rtsigs=yes
29241 else
29242 $as_echo "$as_me: program exited with status $ac_status" >&5
29243 $as_echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29245
29246 ( exit $ac_status )
29247 bash_cv_unusable_rtsigs=no
29248 fi
29249 rm -rf conftest.dSYM
29250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29251 fi
29252
29253
29254 fi
29255
29256 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
29257 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
29258 if test $bash_cv_unusable_rtsigs = yes; then
29259 cat >>confdefs.h <<\_ACEOF
29260 #define UNUSABLE_RT_SIGNALS 1
29261 _ACEOF
29262
29263 fi
29264
29265
29266
29267
29268
29269 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
29270 SIGLIST_O=siglist.o
29271 else
29272 SIGLIST_O=
29273 fi
29274
29275
29276
29277 case "$host_os" in
29278 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
29279 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
29280 if test "${bash_cv_kernel_rlimit+set}" = set; then
29281 $as_echo_n "(cached) " >&6
29282 else
29283 cat >conftest.$ac_ext <<_ACEOF
29284 /* confdefs.h. */
29285 _ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h. */
29289
29290 #include <sys/types.h>
29291 #include <sys/resource.h>
29292
29293 int
29294 main ()
29295 {
29296
29297 int f;
29298 f = RLIMIT_DATA;
29299
29300 ;
29301 return 0;
29302 }
29303 _ACEOF
29304 rm -f conftest.$ac_objext
29305 if { (ac_try="$ac_compile"
29306 case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309 esac
29310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29311 $as_echo "$ac_try_echo") >&5
29312 (eval "$ac_compile") 2>conftest.er1
29313 ac_status=$?
29314 grep -v '^ *+' conftest.er1 >conftest.err
29315 rm -f conftest.er1
29316 cat conftest.err >&5
29317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } && {
29319 test -z "$ac_c_werror_flag" ||
29320 test ! -s conftest.err
29321 } && test -s conftest.$ac_objext; then
29322 bash_cv_kernel_rlimit=no
29323 else
29324 $as_echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327 cat >conftest.$ac_ext <<_ACEOF
29328 /* confdefs.h. */
29329 _ACEOF
29330 cat confdefs.h >>conftest.$ac_ext
29331 cat >>conftest.$ac_ext <<_ACEOF
29332 /* end confdefs.h. */
29333
29334 #include <sys/types.h>
29335 #define _KERNEL
29336 #include <sys/resource.h>
29337 #undef _KERNEL
29338
29339 int
29340 main ()
29341 {
29342
29343 int f;
29344 f = RLIMIT_DATA;
29345
29346 ;
29347 return 0;
29348 }
29349 _ACEOF
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29355 esac
29356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29357 $as_echo "$ac_try_echo") >&5
29358 (eval "$ac_compile") 2>conftest.er1
29359 ac_status=$?
29360 grep -v '^ *+' conftest.er1 >conftest.err
29361 rm -f conftest.er1
29362 cat conftest.err >&5
29363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } && {
29365 test -z "$ac_c_werror_flag" ||
29366 test ! -s conftest.err
29367 } && test -s conftest.$ac_objext; then
29368 bash_cv_kernel_rlimit=yes
29369 else
29370 $as_echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29372
29373 bash_cv_kernel_rlimit=no
29374 fi
29375
29376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29377
29378 fi
29379
29380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29381 fi
29382
29383 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
29384 $as_echo "$bash_cv_kernel_rlimit" >&6; }
29385 if test $bash_cv_kernel_rlimit = yes; then
29386 cat >>confdefs.h <<\_ACEOF
29387 #define RLIMIT_NEEDS_KERNEL 1
29388 _ACEOF
29389
29390 fi
29391 ;;
29392 esac
29393
29394 if test "$opt_readline" = yes; then
29395 case "$host_os" in
29396 aix*) prefer_curses=yes ;;
29397 esac
29398
29399 if test "X$bash_cv_termcap_lib" = "X"; then
29400 _bash_needmsg=yes
29401 else
29402 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29403 $as_echo_n "checking which library has the termcap functions... " >&6; }
29404 _bash_needmsg=
29405 fi
29406 if test "${bash_cv_termcap_lib+set}" = set; then
29407 $as_echo_n "(cached) " >&6
29408 else
29409 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
29410 $as_echo_n "checking for tgetent... " >&6; }
29411 if test "${ac_cv_func_tgetent+set}" = set; then
29412 $as_echo_n "(cached) " >&6
29413 else
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h. */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29422 #define tgetent innocuous_tgetent
29423
29424 /* System header to define __stub macros and hopefully few prototypes,
29425 which can conflict with char tgetent (); below.
29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29427 <limits.h> exists even on freestanding compilers. */
29428
29429 #ifdef __STDC__
29430 # include <limits.h>
29431 #else
29432 # include <assert.h>
29433 #endif
29434
29435 #undef tgetent
29436
29437 /* Override any GCC internal prototype to avoid an error.
29438 Use char because int might match the return type of a GCC
29439 builtin and then its argument prototype would still apply. */
29440 #ifdef __cplusplus
29441 extern "C"
29442 #endif
29443 char tgetent ();
29444 /* The GNU C library defines this for functions which it implements
29445 to always fail with ENOSYS. Some functions are actually named
29446 something starting with __ and the normal name is an alias. */
29447 #if defined __stub_tgetent || defined __stub___tgetent
29448 choke me
29449 #endif
29450
29451 int
29452 main ()
29453 {
29454 return tgetent ();
29455 ;
29456 return 0;
29457 }
29458 _ACEOF
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (ac_try="$ac_link"
29461 case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29464 esac
29465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29466 $as_echo "$ac_try_echo") >&5
29467 (eval "$ac_link") 2>conftest.er1
29468 ac_status=$?
29469 grep -v '^ *+' conftest.er1 >conftest.err
29470 rm -f conftest.er1
29471 cat conftest.err >&5
29472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } && {
29474 test -z "$ac_c_werror_flag" ||
29475 test ! -s conftest.err
29476 } && test -s conftest$ac_exeext && {
29477 test "$cross_compiling" = yes ||
29478 $as_test_x conftest$ac_exeext
29479 }; then
29480 ac_cv_func_tgetent=yes
29481 else
29482 $as_echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485 ac_cv_func_tgetent=no
29486 fi
29487
29488 rm -rf conftest.dSYM
29489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29490 conftest$ac_exeext conftest.$ac_ext
29491 fi
29492 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
29493 $as_echo "$ac_cv_func_tgetent" >&6; }
29494 if test "x$ac_cv_func_tgetent" = x""yes; then
29495 bash_cv_termcap_lib=libc
29496 else
29497 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29498 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
29499 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29500 $as_echo_n "(cached) " >&6
29501 else
29502 ac_check_lib_save_LIBS=$LIBS
29503 LIBS="-ltermcap $LIBS"
29504 cat >conftest.$ac_ext <<_ACEOF
29505 /* confdefs.h. */
29506 _ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29510
29511 /* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29514 #ifdef __cplusplus
29515 extern "C"
29516 #endif
29517 char tgetent ();
29518 int
29519 main ()
29520 {
29521 return tgetent ();
29522 ;
29523 return 0;
29524 }
29525 _ACEOF
29526 rm -f conftest.$ac_objext conftest$ac_exeext
29527 if { (ac_try="$ac_link"
29528 case "(($ac_try" in
29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29530 *) ac_try_echo=$ac_try;;
29531 esac
29532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29533 $as_echo "$ac_try_echo") >&5
29534 (eval "$ac_link") 2>conftest.er1
29535 ac_status=$?
29536 grep -v '^ *+' conftest.er1 >conftest.err
29537 rm -f conftest.er1
29538 cat conftest.err >&5
29539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } && {
29541 test -z "$ac_c_werror_flag" ||
29542 test ! -s conftest.err
29543 } && test -s conftest$ac_exeext && {
29544 test "$cross_compiling" = yes ||
29545 $as_test_x conftest$ac_exeext
29546 }; then
29547 ac_cv_lib_termcap_tgetent=yes
29548 else
29549 $as_echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29551
29552 ac_cv_lib_termcap_tgetent=no
29553 fi
29554
29555 rm -rf conftest.dSYM
29556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29557 conftest$ac_exeext conftest.$ac_ext
29558 LIBS=$ac_check_lib_save_LIBS
29559 fi
29560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29561 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
29562 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
29563 bash_cv_termcap_lib=libtermcap
29564 else
29565 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
29566 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
29567 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
29568 $as_echo_n "(cached) " >&6
29569 else
29570 ac_check_lib_save_LIBS=$LIBS
29571 LIBS="-ltinfo $LIBS"
29572 cat >conftest.$ac_ext <<_ACEOF
29573 /* confdefs.h. */
29574 _ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29578
29579 /* Override any GCC internal prototype to avoid an error.
29580 Use char because int might match the return type of a GCC
29581 builtin and then its argument prototype would still apply. */
29582 #ifdef __cplusplus
29583 extern "C"
29584 #endif
29585 char tgetent ();
29586 int
29587 main ()
29588 {
29589 return tgetent ();
29590 ;
29591 return 0;
29592 }
29593 _ACEOF
29594 rm -f conftest.$ac_objext conftest$ac_exeext
29595 if { (ac_try="$ac_link"
29596 case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29599 esac
29600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29601 $as_echo "$ac_try_echo") >&5
29602 (eval "$ac_link") 2>conftest.er1
29603 ac_status=$?
29604 grep -v '^ *+' conftest.er1 >conftest.err
29605 rm -f conftest.er1
29606 cat conftest.err >&5
29607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } && {
29609 test -z "$ac_c_werror_flag" ||
29610 test ! -s conftest.err
29611 } && test -s conftest$ac_exeext && {
29612 test "$cross_compiling" = yes ||
29613 $as_test_x conftest$ac_exeext
29614 }; then
29615 ac_cv_lib_tinfo_tgetent=yes
29616 else
29617 $as_echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29619
29620 ac_cv_lib_tinfo_tgetent=no
29621 fi
29622
29623 rm -rf conftest.dSYM
29624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29625 conftest$ac_exeext conftest.$ac_ext
29626 LIBS=$ac_check_lib_save_LIBS
29627 fi
29628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29629 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
29630 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
29631 bash_cv_termcap_lib=libtinfo
29632 else
29633 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29634 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
29635 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29636 $as_echo_n "(cached) " >&6
29637 else
29638 ac_check_lib_save_LIBS=$LIBS
29639 LIBS="-lcurses $LIBS"
29640 cat >conftest.$ac_ext <<_ACEOF
29641 /* confdefs.h. */
29642 _ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h. */
29646
29647 /* Override any GCC internal prototype to avoid an error.
29648 Use char because int might match the return type of a GCC
29649 builtin and then its argument prototype would still apply. */
29650 #ifdef __cplusplus
29651 extern "C"
29652 #endif
29653 char tgetent ();
29654 int
29655 main ()
29656 {
29657 return tgetent ();
29658 ;
29659 return 0;
29660 }
29661 _ACEOF
29662 rm -f conftest.$ac_objext conftest$ac_exeext
29663 if { (ac_try="$ac_link"
29664 case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667 esac
29668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669 $as_echo "$ac_try_echo") >&5
29670 (eval "$ac_link") 2>conftest.er1
29671 ac_status=$?
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
29675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } && {
29677 test -z "$ac_c_werror_flag" ||
29678 test ! -s conftest.err
29679 } && test -s conftest$ac_exeext && {
29680 test "$cross_compiling" = yes ||
29681 $as_test_x conftest$ac_exeext
29682 }; then
29683 ac_cv_lib_curses_tgetent=yes
29684 else
29685 $as_echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29687
29688 ac_cv_lib_curses_tgetent=no
29689 fi
29690
29691 rm -rf conftest.dSYM
29692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29693 conftest$ac_exeext conftest.$ac_ext
29694 LIBS=$ac_check_lib_save_LIBS
29695 fi
29696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29697 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
29698 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
29699 bash_cv_termcap_lib=libcurses
29700 else
29701 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29702 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
29703 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29704 $as_echo_n "(cached) " >&6
29705 else
29706 ac_check_lib_save_LIBS=$LIBS
29707 LIBS="-lncurses $LIBS"
29708 cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h. */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29714
29715 /* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 char tgetent ();
29722 int
29723 main ()
29724 {
29725 return tgetent ();
29726 ;
29727 return 0;
29728 }
29729 _ACEOF
29730 rm -f conftest.$ac_objext conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29735 esac
29736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29737 $as_echo "$ac_try_echo") >&5
29738 (eval "$ac_link") 2>conftest.er1
29739 ac_status=$?
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
29743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } && {
29745 test -z "$ac_c_werror_flag" ||
29746 test ! -s conftest.err
29747 } && test -s conftest$ac_exeext && {
29748 test "$cross_compiling" = yes ||
29749 $as_test_x conftest$ac_exeext
29750 }; then
29751 ac_cv_lib_ncurses_tgetent=yes
29752 else
29753 $as_echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29755
29756 ac_cv_lib_ncurses_tgetent=no
29757 fi
29758
29759 rm -rf conftest.dSYM
29760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29761 conftest$ac_exeext conftest.$ac_ext
29762 LIBS=$ac_check_lib_save_LIBS
29763 fi
29764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29765 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
29766 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
29767 bash_cv_termcap_lib=libncurses
29768 else
29769 bash_cv_termcap_lib=gnutermcap
29770 fi
29771
29772 fi
29773
29774 fi
29775
29776 fi
29777
29778 fi
29779
29780 fi
29781
29782 if test "X$_bash_needmsg" = "Xyes"; then
29783 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29784 $as_echo_n "checking which library has the termcap functions... " >&6; }
29785 fi
29786 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
29787 $as_echo "using $bash_cv_termcap_lib" >&6; }
29788 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
29789 LDFLAGS="$LDFLAGS -L./lib/termcap"
29790 TERMCAP_LIB="./lib/termcap/libtermcap.a"
29791 TERMCAP_DEP="./lib/termcap/libtermcap.a"
29792 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
29793 TERMCAP_LIB=-ltermcap
29794 TERMCAP_DEP=
29795 elif test $bash_cv_termcap_lib = libtinfo; then
29796 TERMCAP_LIB=-ltinfo
29797 TERMCAP_DEP=
29798 elif test $bash_cv_termcap_lib = libncurses; then
29799 TERMCAP_LIB=-lncurses
29800 TERMCAP_DEP=
29801 elif test $bash_cv_termcap_lib = libc; then
29802 TERMCAP_LIB=
29803 TERMCAP_DEP=
29804 else
29805 TERMCAP_LIB=-lcurses
29806 TERMCAP_DEP=
29807 fi
29808
29809 fi
29810
29811
29812
29813 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
29814 $as_echo_n "checking whether /dev/fd is available... " >&6; }
29815 if test "${bash_cv_dev_fd+set}" = set; then
29816 $as_echo_n "(cached) " >&6
29817 else
29818 bash_cv_dev_fd=""
29819 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
29820 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
29821 if (exec test -r /dev/fd/3 3</dev/null) ; then
29822 bash_cv_dev_fd=standard
29823 else
29824 bash_cv_dev_fd=absent
29825 fi
29826 fi
29827 if test -z "$bash_cv_dev_fd" ; then
29828 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
29829 bash_cv_dev_fd=whacky
29830 else
29831 bash_cv_dev_fd=absent
29832 fi
29833 fi
29834
29835 fi
29836
29837 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
29838 $as_echo "$bash_cv_dev_fd" >&6; }
29839 if test $bash_cv_dev_fd = "standard"; then
29840 cat >>confdefs.h <<\_ACEOF
29841 #define HAVE_DEV_FD 1
29842 _ACEOF
29843
29844 cat >>confdefs.h <<\_ACEOF
29845 #define DEV_FD_PREFIX "/dev/fd/"
29846 _ACEOF
29847
29848 elif test $bash_cv_dev_fd = "whacky"; then
29849 cat >>confdefs.h <<\_ACEOF
29850 #define HAVE_DEV_FD 1
29851 _ACEOF
29852
29853 cat >>confdefs.h <<\_ACEOF
29854 #define DEV_FD_PREFIX "/proc/self/fd/"
29855 _ACEOF
29856
29857 fi
29858
29859 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
29860 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
29861 if test "${bash_cv_dev_stdin+set}" = set; then
29862 $as_echo_n "(cached) " >&6
29863 else
29864 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
29865 bash_cv_dev_stdin=present
29866 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
29867 bash_cv_dev_stdin=present
29868 else
29869 bash_cv_dev_stdin=absent
29870 fi
29871
29872 fi
29873
29874 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
29875 $as_echo "$bash_cv_dev_stdin" >&6; }
29876 if test $bash_cv_dev_stdin = "present"; then
29877 cat >>confdefs.h <<\_ACEOF
29878 #define HAVE_DEV_STDIN 1
29879 _ACEOF
29880
29881 fi
29882
29883 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
29884 $as_echo_n "checking for default mail directory... " >&6; }
29885 if test "${bash_cv_mail_dir+set}" = set; then
29886 $as_echo_n "(cached) " >&6
29887 else
29888 if test -d /var/mail; then
29889 bash_cv_mail_dir=/var/mail
29890 elif test -d /var/spool/mail; then
29891 bash_cv_mail_dir=/var/spool/mail
29892 elif test -d /usr/mail; then
29893 bash_cv_mail_dir=/usr/mail
29894 elif test -d /usr/spool/mail; then
29895 bash_cv_mail_dir=/usr/spool/mail
29896 else
29897 bash_cv_mail_dir=unknown
29898 fi
29899
29900 fi
29901
29902 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
29903 $as_echo "$bash_cv_mail_dir" >&6; }
29904 cat >>confdefs.h <<_ACEOF
29905 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
29906 _ACEOF
29907
29908
29909
29910 if test "$bash_cv_job_control_missing" = missing; then
29911 opt_job_control=no
29912 fi
29913
29914 if test "$opt_job_control" = yes; then
29915 cat >>confdefs.h <<\_ACEOF
29916 #define JOB_CONTROL 1
29917 _ACEOF
29918
29919 JOBS_O=jobs.o
29920 else
29921 JOBS_O=nojobs.o
29922 fi
29923
29924
29925
29926
29927 LOCAL_DEFS=-DSHELL
29928
29929
29930 case "${host_os}" in
29931 sysv4.2*) cat >>confdefs.h <<\_ACEOF
29932 #define SVR4_2 1
29933 _ACEOF
29934
29935 cat >>confdefs.h <<\_ACEOF
29936 #define SVR4 1
29937 _ACEOF
29938 ;;
29939 sysv4*) cat >>confdefs.h <<\_ACEOF
29940 #define SVR4 1
29941 _ACEOF
29942 ;;
29943 sysv5*) cat >>confdefs.h <<\_ACEOF
29944 #define SVR5 1
29945 _ACEOF
29946 ;;
29947 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
29948 hpux*) LOCAL_CFLAGS=-DHPUX ;;
29949 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
29950 isc*) LOCAL_CFLAGS=-Disc386 ;;
29951 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
29952 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
29953 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
29954 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
29955 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
29956 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
29957 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
29958 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
29959 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
29960 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
29961 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
29962 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
29963 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
29964 case "`uname -r`" in
29965 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
29966 #define PGRP_PIPE 1
29967 _ACEOF
29968 ;;
29969 esac ;;
29970 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
29971 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
29972 powerux*) LOCAL_LIBS="-lgen" ;;
29973 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
29974 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
29975 esac
29976
29977 case "${host_os}-${CC}" in
29978 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
29979 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
29980 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
29981 esac
29982
29983 case "${host_os}" in
29984 freebsd[3-9]*)
29985 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
29986 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
29987 fi ;;
29988 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
29989 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
29990 esac
29991
29992 case "$host_cpu" in
29993 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
29994 esac
29995
29996 case "$host_cpu-$host_os" in
29997 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
29998 esac
29999
30000 case "$host_cpu-$host_vendor-$host_os" in
30001 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
30002 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
30003 esac
30004
30005 #
30006 # Shared object configuration section. These values are generated by
30007 # ${srcdir}/support/shobj-conf
30008 #
30009 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
30010 then
30011 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
30012 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
30013 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
30014
30015
30016
30017
30018
30019
30020
30021 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
30022 $as_echo "$SHOBJ_STATUS" >&6; }
30023 fi
30024
30025 # try to create a directory tree if the source is elsewhere
30026 # this should be packaged into a script accessible via ${srcdir}/support
30027 case "$srcdir" in
30028 .) ;;
30029 *) for d in doc tests support lib examples; do # dirs
30030 test -d $d || mkdir $d
30031 done
30032 for ld in readline glob tilde malloc sh termcap; do # libdirs
30033 test -d lib/$ld || mkdir lib/$ld
30034 done
30035 test -d examples/loadables || mkdir examples/loadables # loadable builtins
30036 test -d examples/loadables/perl || mkdir examples/loadables/perl
30037 ;;
30038 esac
30039
30040 BUILD_DIR=`pwd`
30041 case "$BUILD_DIR" in
30042 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
30043 *) ;;
30044 esac
30045
30046 if test -z "$localedir"; then
30047 localedir='${datarootdir}/locale'
30048 fi
30049 if test -z "$datarootdir"; then
30050 datarootdir='${prefix}/share'
30051 fi
30052
30053
30054
30055
30056
30057
30058 # Some versions of autoconf don't substitute these automatically
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080 #AC_SUBST(ALLOCA_SOURCE)
30081 #AC_SUBST(ALLOCA_OBJECT)
30082
30083 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"
30084
30085 ac_config_commands="$ac_config_commands default"
30086
30087 cat >confcache <<\_ACEOF
30088 # This file is a shell script that caches the results of configure
30089 # tests run on this system so they can be shared between configure
30090 # scripts and configure runs, see configure's option --config-cache.
30091 # It is not useful on other systems. If it contains results you don't
30092 # want to keep, you may remove or edit it.
30093 #
30094 # config.status only pays attention to the cache file if you give it
30095 # the --recheck option to rerun configure.
30096 #
30097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30099 # following values.
30100
30101 _ACEOF
30102
30103 # The following way of writing the cache mishandles newlines in values,
30104 # but we know of no workaround that is simple, portable, and efficient.
30105 # So, we kill variables containing newlines.
30106 # Ultrix sh set writes to stderr and can't be redirected directly,
30107 # and sets the high bit in the cache file unless we assign to the vars.
30108 (
30109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30110 eval ac_val=\$$ac_var
30111 case $ac_val in #(
30112 *${as_nl}*)
30113 case $ac_var in #(
30114 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30116 esac
30117 case $ac_var in #(
30118 _ | IFS | as_nl) ;; #(
30119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30120 *) $as_unset $ac_var ;;
30121 esac ;;
30122 esac
30123 done
30124
30125 (set) 2>&1 |
30126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30127 *${as_nl}ac_space=\ *)
30128 # `set' does not quote correctly, so add quotes (double-quote
30129 # substitution turns \\\\ into \\, and sed turns \\ into \).
30130 sed -n \
30131 "s/'/'\\\\''/g;
30132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30133 ;; #(
30134 *)
30135 # `set' quotes correctly as required by POSIX, so do not add quotes.
30136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30137 ;;
30138 esac |
30139 sort
30140 ) |
30141 sed '
30142 /^ac_cv_env_/b end
30143 t clear
30144 :clear
30145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30146 t end
30147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30148 :end' >>confcache
30149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30150 if test -w "$cache_file"; then
30151 test "x$cache_file" != "x/dev/null" &&
30152 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30153 $as_echo "$as_me: updating cache $cache_file" >&6;}
30154 cat confcache >$cache_file
30155 else
30156 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30158 fi
30159 fi
30160 rm -f confcache
30161
30162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30163 # Let make expand exec_prefix.
30164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30165
30166 DEFS=-DHAVE_CONFIG_H
30167
30168 ac_libobjs=
30169 ac_ltlibobjs=
30170 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30171 # 1. Remove the extension, and $U if already installed.
30172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30175 # will be set to the directory where LIBOBJS objects are built.
30176 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30177 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30178 done
30179 LIBOBJS=$ac_libobjs
30180
30181 LTLIBOBJS=$ac_ltlibobjs
30182
30183
30184
30185
30186 : ${CONFIG_STATUS=./config.status}
30187 ac_write_fail=0
30188 ac_clean_files_save=$ac_clean_files
30189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30190 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30192 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30193 #! $SHELL
30194 # Generated by $as_me.
30195 # Run this file to recreate the current configuration.
30196 # Compiler output produced by configure, useful for debugging
30197 # configure, is in config.log if it exists.
30198
30199 debug=false
30200 ac_cs_recheck=false
30201 ac_cs_silent=false
30202 SHELL=\${CONFIG_SHELL-$SHELL}
30203 _ACEOF
30204
30205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30206 ## --------------------- ##
30207 ## M4sh Initialization. ##
30208 ## --------------------- ##
30209
30210 # Be more Bourne compatible
30211 DUALCASE=1; export DUALCASE # for MKS sh
30212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30213 emulate sh
30214 NULLCMD=:
30215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30216 # is contrary to our usage. Disable this feature.
30217 alias -g '${1+"$@"}'='"$@"'
30218 setopt NO_GLOB_SUBST
30219 else
30220 case `(set -o) 2>/dev/null` in
30221 *posix*) set -o posix ;;
30222 esac
30223
30224 fi
30225
30226
30227
30228
30229 # PATH needs CR
30230 # Avoid depending upon Character Ranges.
30231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30234 as_cr_digits='0123456789'
30235 as_cr_alnum=$as_cr_Letters$as_cr_digits
30236
30237 as_nl='
30238 '
30239 export as_nl
30240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30241 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30244 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30245 as_echo='printf %s\n'
30246 as_echo_n='printf %s'
30247 else
30248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30250 as_echo_n='/usr/ucb/echo -n'
30251 else
30252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30253 as_echo_n_body='eval
30254 arg=$1;
30255 case $arg in
30256 *"$as_nl"*)
30257 expr "X$arg" : "X\\(.*\\)$as_nl";
30258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30259 esac;
30260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30261 '
30262 export as_echo_n_body
30263 as_echo_n='sh -c $as_echo_n_body as_echo'
30264 fi
30265 export as_echo_body
30266 as_echo='sh -c $as_echo_body as_echo'
30267 fi
30268
30269 # The user is always right.
30270 if test "${PATH_SEPARATOR+set}" != set; then
30271 PATH_SEPARATOR=:
30272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30274 PATH_SEPARATOR=';'
30275 }
30276 fi
30277
30278 # Support unset when possible.
30279 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30280 as_unset=unset
30281 else
30282 as_unset=false
30283 fi
30284
30285
30286 # IFS
30287 # We need space, tab and new line, in precisely that order. Quoting is
30288 # there to prevent editors from complaining about space-tab.
30289 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30290 # splitting by setting IFS to empty value.)
30291 IFS=" "" $as_nl"
30292
30293 # Find who we are. Look in the path if we contain no directory separator.
30294 case $0 in
30295 *[\\/]* ) as_myself=$0 ;;
30296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30297 for as_dir in $PATH
30298 do
30299 IFS=$as_save_IFS
30300 test -z "$as_dir" && as_dir=.
30301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30302 done
30303 IFS=$as_save_IFS
30304
30305 ;;
30306 esac
30307 # We did not find ourselves, most probably we were run as `sh COMMAND'
30308 # in which case we are not to be found in the path.
30309 if test "x$as_myself" = x; then
30310 as_myself=$0
30311 fi
30312 if test ! -f "$as_myself"; then
30313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30314 { (exit 1); exit 1; }
30315 fi
30316
30317 # Work around bugs in pre-3.0 UWIN ksh.
30318 for as_var in ENV MAIL MAILPATH
30319 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30320 done
30321 PS1='$ '
30322 PS2='> '
30323 PS4='+ '
30324
30325 # NLS nuisances.
30326 LC_ALL=C
30327 export LC_ALL
30328 LANGUAGE=C
30329 export LANGUAGE
30330
30331 # Required to use basename.
30332 if expr a : '\(a\)' >/dev/null 2>&1 &&
30333 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30334 as_expr=expr
30335 else
30336 as_expr=false
30337 fi
30338
30339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30340 as_basename=basename
30341 else
30342 as_basename=false
30343 fi
30344
30345
30346 # Name of the executable.
30347 as_me=`$as_basename -- "$0" ||
30348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30349 X"$0" : 'X\(//\)$' \| \
30350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30351 $as_echo X/"$0" |
30352 sed '/^.*\/\([^/][^/]*\)\/*$/{
30353 s//\1/
30354 q
30355 }
30356 /^X\/\(\/\/\)$/{
30357 s//\1/
30358 q
30359 }
30360 /^X\/\(\/\).*/{
30361 s//\1/
30362 q
30363 }
30364 s/.*/./; q'`
30365
30366 # CDPATH.
30367 $as_unset CDPATH
30368
30369
30370
30371 as_lineno_1=$LINENO
30372 as_lineno_2=$LINENO
30373 test "x$as_lineno_1" != "x$as_lineno_2" &&
30374 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30375
30376 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30377 # uniformly replaced by the line number. The first 'sed' inserts a
30378 # line-number line after each line using $LINENO; the second 'sed'
30379 # does the real work. The second script uses 'N' to pair each
30380 # line-number line with the line containing $LINENO, and appends
30381 # trailing '-' during substitution so that $LINENO is not a special
30382 # case at line end.
30383 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30384 # scripts with optimization help from Paolo Bonzini. Blame Lee
30385 # E. McMahon (1931-1989) for sed's syntax. :-)
30386 sed -n '
30387 p
30388 /[$]LINENO/=
30389 ' <$as_myself |
30390 sed '
30391 s/[$]LINENO.*/&-/
30392 t lineno
30393 b
30394 :lineno
30395 N
30396 :loop
30397 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30398 t loop
30399 s/-\n.*//
30400 ' >$as_me.lineno &&
30401 chmod +x "$as_me.lineno" ||
30402 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30403 { (exit 1); exit 1; }; }
30404
30405 # Don't try to exec as it changes $[0], causing all sort of problems
30406 # (the dirname of $[0] is not the place where we might find the
30407 # original and so on. Autoconf is especially sensitive to this).
30408 . "./$as_me.lineno"
30409 # Exit status is that of the last command.
30410 exit
30411 }
30412
30413
30414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30415 as_dirname=dirname
30416 else
30417 as_dirname=false
30418 fi
30419
30420 ECHO_C= ECHO_N= ECHO_T=
30421 case `echo -n x` in
30422 -n*)
30423 case `echo 'x\c'` in
30424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30425 *) ECHO_C='\c';;
30426 esac;;
30427 *)
30428 ECHO_N='-n';;
30429 esac
30430 if expr a : '\(a\)' >/dev/null 2>&1 &&
30431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30432 as_expr=expr
30433 else
30434 as_expr=false
30435 fi
30436
30437 rm -f conf$$ conf$$.exe conf$$.file
30438 if test -d conf$$.dir; then
30439 rm -f conf$$.dir/conf$$.file
30440 else
30441 rm -f conf$$.dir
30442 mkdir conf$$.dir 2>/dev/null
30443 fi
30444 if (echo >conf$$.file) 2>/dev/null; then
30445 if ln -s conf$$.file conf$$ 2>/dev/null; then
30446 as_ln_s='ln -s'
30447 # ... but there are two gotchas:
30448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30450 # In both cases, we have to default to `cp -p'.
30451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30452 as_ln_s='cp -p'
30453 elif ln conf$$.file conf$$ 2>/dev/null; then
30454 as_ln_s=ln
30455 else
30456 as_ln_s='cp -p'
30457 fi
30458 else
30459 as_ln_s='cp -p'
30460 fi
30461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30462 rmdir conf$$.dir 2>/dev/null
30463
30464 if mkdir -p . 2>/dev/null; then
30465 as_mkdir_p=:
30466 else
30467 test -d ./-p && rmdir ./-p
30468 as_mkdir_p=false
30469 fi
30470
30471 if test -x / >/dev/null 2>&1; then
30472 as_test_x='test -x'
30473 else
30474 if ls -dL / >/dev/null 2>&1; then
30475 as_ls_L_option=L
30476 else
30477 as_ls_L_option=
30478 fi
30479 as_test_x='
30480 eval sh -c '\''
30481 if test -d "$1"; then
30482 test -d "$1/.";
30483 else
30484 case $1 in
30485 -*)set "./$1";;
30486 esac;
30487 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30488 ???[sx]*):;;*)false;;esac;fi
30489 '\'' sh
30490 '
30491 fi
30492 as_executable_p=$as_test_x
30493
30494 # Sed expression to map a string onto a valid CPP name.
30495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30496
30497 # Sed expression to map a string onto a valid variable name.
30498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30499
30500
30501 exec 6>&1
30502
30503 # Save the log message, to keep $[0] and so on meaningful, and to
30504 # report actual input values of CONFIG_FILES etc. instead of their
30505 # values after options handling.
30506 ac_log="
30507 This file was extended by bash $as_me 4.0-release, which was
30508 generated by GNU Autoconf 2.63. Invocation command line was
30509
30510 CONFIG_FILES = $CONFIG_FILES
30511 CONFIG_HEADERS = $CONFIG_HEADERS
30512 CONFIG_LINKS = $CONFIG_LINKS
30513 CONFIG_COMMANDS = $CONFIG_COMMANDS
30514 $ $0 $@
30515
30516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30517 "
30518
30519 _ACEOF
30520
30521 case $ac_config_files in *"
30522 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30523 esac
30524
30525 case $ac_config_headers in *"
30526 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30527 esac
30528
30529
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30531 # Files that config.status was made for.
30532 config_files="$ac_config_files"
30533 config_headers="$ac_config_headers"
30534 config_commands="$ac_config_commands"
30535
30536 _ACEOF
30537
30538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30539 ac_cs_usage="\
30540 \`$as_me' instantiates files from templates according to the
30541 current configuration.
30542
30543 Usage: $0 [OPTION]... [FILE]...
30544
30545 -h, --help print this help, then exit
30546 -V, --version print version number and configuration settings, then exit
30547 -q, --quiet, --silent
30548 do not print progress messages
30549 -d, --debug don't remove temporary files
30550 --recheck update $as_me by reconfiguring in the same conditions
30551 --file=FILE[:TEMPLATE]
30552 instantiate the configuration file FILE
30553 --header=FILE[:TEMPLATE]
30554 instantiate the configuration header FILE
30555
30556 Configuration files:
30557 $config_files
30558
30559 Configuration headers:
30560 $config_headers
30561
30562 Configuration commands:
30563 $config_commands
30564
30565 Report bugs to <bug-autoconf@gnu.org>."
30566
30567 _ACEOF
30568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30569 ac_cs_version="\\
30570 bash config.status 4.0-release
30571 configured by $0, generated by GNU Autoconf 2.63,
30572 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30573
30574 Copyright (C) 2008 Free Software Foundation, Inc.
30575 This config.status script is free software; the Free Software Foundation
30576 gives unlimited permission to copy, distribute and modify it."
30577
30578 ac_pwd='$ac_pwd'
30579 srcdir='$srcdir'
30580 INSTALL='$INSTALL'
30581 test -n "\$AWK" || AWK=awk
30582 _ACEOF
30583
30584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30585 # The default lists apply if the user does not specify any file.
30586 ac_need_defaults=:
30587 while test $# != 0
30588 do
30589 case $1 in
30590 --*=*)
30591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30592 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30593 ac_shift=:
30594 ;;
30595 *)
30596 ac_option=$1
30597 ac_optarg=$2
30598 ac_shift=shift
30599 ;;
30600 esac
30601
30602 case $ac_option in
30603 # Handling of the options.
30604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30605 ac_cs_recheck=: ;;
30606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30607 $as_echo "$ac_cs_version"; exit ;;
30608 --debug | --debu | --deb | --de | --d | -d )
30609 debug=: ;;
30610 --file | --fil | --fi | --f )
30611 $ac_shift
30612 case $ac_optarg in
30613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30614 esac
30615 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30616 ac_need_defaults=false;;
30617 --header | --heade | --head | --hea )
30618 $ac_shift
30619 case $ac_optarg in
30620 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30621 esac
30622 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30623 ac_need_defaults=false;;
30624 --he | --h)
30625 # Conflict between --help and --header
30626 { $as_echo "$as_me: error: ambiguous option: $1
30627 Try \`$0 --help' for more information." >&2
30628 { (exit 1); exit 1; }; };;
30629 --help | --hel | -h )
30630 $as_echo "$ac_cs_usage"; exit ;;
30631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30633 ac_cs_silent=: ;;
30634
30635 # This is an error.
30636 -*) { $as_echo "$as_me: error: unrecognized option: $1
30637 Try \`$0 --help' for more information." >&2
30638 { (exit 1); exit 1; }; } ;;
30639
30640 *) ac_config_targets="$ac_config_targets $1"
30641 ac_need_defaults=false ;;
30642
30643 esac
30644 shift
30645 done
30646
30647 ac_configure_extra_args=
30648
30649 if $ac_cs_silent; then
30650 exec 6>/dev/null
30651 ac_configure_extra_args="$ac_configure_extra_args --silent"
30652 fi
30653
30654 _ACEOF
30655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30656 if \$ac_cs_recheck; then
30657 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30658 shift
30659 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30660 CONFIG_SHELL='$SHELL'
30661 export CONFIG_SHELL
30662 exec "\$@"
30663 fi
30664
30665 _ACEOF
30666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30667 exec 5>>config.log
30668 {
30669 echo
30670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30671 ## Running $as_me. ##
30672 _ASBOX
30673 $as_echo "$ac_log"
30674 } >&5
30675
30676 _ACEOF
30677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30678 #
30679 # INIT-COMMANDS
30680 #
30681 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30682 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
30683 # from automake.
30684 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30685 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30686 LINGUAS="${LINGUAS-%UNSET%}"
30687
30688
30689 _ACEOF
30690
30691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30692
30693 # Handling of arguments.
30694 for ac_config_target in $ac_config_targets
30695 do
30696 case $ac_config_target in
30697 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30698 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30700 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
30701 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
30702 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
30703 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
30704 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
30705 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
30706 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
30707 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
30708 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30709 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30710 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30711 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
30712 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
30713 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30714
30715 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30716 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30717 { (exit 1); exit 1; }; };;
30718 esac
30719 done
30720
30721
30722 # If the user did not use the arguments to specify the items to instantiate,
30723 # then the envvar interface is used. Set only those that are not.
30724 # We use the long form for the default assignment because of an extremely
30725 # bizarre bug on SunOS 4.1.3.
30726 if $ac_need_defaults; then
30727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30730 fi
30731
30732 # Have a temporary directory for convenience. Make it in the build tree
30733 # simply because there is no reason against having it here, and in addition,
30734 # creating and moving files from /tmp can sometimes cause problems.
30735 # Hook for its removal unless debugging.
30736 # Note that there is a small window in which the directory will not be cleaned:
30737 # after its creation but before its name has been assigned to `$tmp'.
30738 $debug ||
30739 {
30740 tmp=
30741 trap 'exit_status=$?
30742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30743 ' 0
30744 trap '{ (exit 1); exit 1; }' 1 2 13 15
30745 }
30746 # Create a (secure) tmp directory for tmp files.
30747
30748 {
30749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30750 test -n "$tmp" && test -d "$tmp"
30751 } ||
30752 {
30753 tmp=./conf$$-$RANDOM
30754 (umask 077 && mkdir "$tmp")
30755 } ||
30756 {
30757 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30758 { (exit 1); exit 1; }
30759 }
30760
30761 # Set up the scripts for CONFIG_FILES section.
30762 # No need to generate them if there are no CONFIG_FILES.
30763 # This happens for instance with `./config.status config.h'.
30764 if test -n "$CONFIG_FILES"; then
30765
30766
30767 ac_cr=' '
30768 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30770 ac_cs_awk_cr='\\r'
30771 else
30772 ac_cs_awk_cr=$ac_cr
30773 fi
30774
30775 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30776 _ACEOF
30777
30778
30779 {
30780 echo "cat >conf$$subs.awk <<_ACEOF" &&
30781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30782 echo "_ACEOF"
30783 } >conf$$subs.sh ||
30784 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30785 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30786 { (exit 1); exit 1; }; }
30787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30788 ac_delim='%!_!# '
30789 for ac_last_try in false false false false false :; do
30790 . ./conf$$subs.sh ||
30791 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30792 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30793 { (exit 1); exit 1; }; }
30794
30795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30796 if test $ac_delim_n = $ac_delim_num; then
30797 break
30798 elif $ac_last_try; then
30799 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30800 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30801 { (exit 1); exit 1; }; }
30802 else
30803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30804 fi
30805 done
30806 rm -f conf$$subs.sh
30807
30808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30809 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30810 _ACEOF
30811 sed -n '
30812 h
30813 s/^/S["/; s/!.*/"]=/
30814 p
30815 g
30816 s/^[^!]*!//
30817 :repl
30818 t repl
30819 s/'"$ac_delim"'$//
30820 t delim
30821 :nl
30822 h
30823 s/\(.\{148\}\).*/\1/
30824 t more1
30825 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30826 p
30827 n
30828 b repl
30829 :more1
30830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30831 p
30832 g
30833 s/.\{148\}//
30834 t nl
30835 :delim
30836 h
30837 s/\(.\{148\}\).*/\1/
30838 t more2
30839 s/["\\]/\\&/g; s/^/"/; s/$/"/
30840 p
30841 b
30842 :more2
30843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30844 p
30845 g
30846 s/.\{148\}//
30847 t delim
30848 ' <conf$$subs.awk | sed '
30849 /^[^""]/{
30850 N
30851 s/\n//
30852 }
30853 ' >>$CONFIG_STATUS || ac_write_fail=1
30854 rm -f conf$$subs.awk
30855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30856 _ACAWK
30857 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30858 for (key in S) S_is_set[key] = 1
30859 FS = "\a"
30860
30861 }
30862 {
30863 line = $ 0
30864 nfields = split(line, field, "@")
30865 substed = 0
30866 len = length(field[1])
30867 for (i = 2; i < nfields; i++) {
30868 key = field[i]
30869 keylen = length(key)
30870 if (S_is_set[key]) {
30871 value = S[key]
30872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30873 len += length(value) + length(field[++i])
30874 substed = 1
30875 } else
30876 len += 1 + keylen
30877 }
30878
30879 print line
30880 }
30881
30882 _ACAWK
30883 _ACEOF
30884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30885 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30886 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30887 else
30888 cat
30889 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30890 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30891 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30892 { (exit 1); exit 1; }; }
30893 _ACEOF
30894
30895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30897 # trailing colons and then remove the whole line if VPATH becomes empty
30898 # (actually we leave an empty line to preserve line numbers).
30899 if test "x$srcdir" = x.; then
30900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30901 s/:*\$(srcdir):*/:/
30902 s/:*\${srcdir}:*/:/
30903 s/:*@srcdir@:*/:/
30904 s/^\([^=]*=[ ]*\):*/\1/
30905 s/:*$//
30906 s/^[^=]*=[ ]*$//
30907 }'
30908 fi
30909
30910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30911 fi # test -n "$CONFIG_FILES"
30912
30913 # Set up the scripts for CONFIG_HEADERS section.
30914 # No need to generate them if there are no CONFIG_HEADERS.
30915 # This happens for instance with `./config.status Makefile'.
30916 if test -n "$CONFIG_HEADERS"; then
30917 cat >"$tmp/defines.awk" <<\_ACAWK ||
30918 BEGIN {
30919 _ACEOF
30920
30921 # Transform confdefs.h into an awk script `defines.awk', embedded as
30922 # here-document in config.status, that substitutes the proper values into
30923 # config.h.in to produce config.h.
30924
30925 # Create a delimiter string that does not exist in confdefs.h, to ease
30926 # handling of long lines.
30927 ac_delim='%!_!# '
30928 for ac_last_try in false false :; do
30929 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30930 if test -z "$ac_t"; then
30931 break
30932 elif $ac_last_try; then
30933 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30934 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30935 { (exit 1); exit 1; }; }
30936 else
30937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30938 fi
30939 done
30940
30941 # For the awk script, D is an array of macro values keyed by name,
30942 # likewise P contains macro parameters if any. Preserve backslash
30943 # newline sequences.
30944
30945 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30946 sed -n '
30947 s/.\{148\}/&'"$ac_delim"'/g
30948 t rset
30949 :rset
30950 s/^[ ]*#[ ]*define[ ][ ]*/ /
30951 t def
30952 d
30953 :def
30954 s/\\$//
30955 t bsnl
30956 s/["\\]/\\&/g
30957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30958 D["\1"]=" \3"/p
30959 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30960 d
30961 :bsnl
30962 s/["\\]/\\&/g
30963 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30964 D["\1"]=" \3\\\\\\n"\\/p
30965 t cont
30966 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30967 t cont
30968 d
30969 :cont
30970 n
30971 s/.\{148\}/&'"$ac_delim"'/g
30972 t clear
30973 :clear
30974 s/\\$//
30975 t bsnlc
30976 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30977 d
30978 :bsnlc
30979 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30980 b cont
30981 ' <confdefs.h | sed '
30982 s/'"$ac_delim"'/"\\\
30983 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30984
30985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30986 for (key in D) D_is_set[key] = 1
30987 FS = "\a"
30988 }
30989 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30990 line = \$ 0
30991 split(line, arg, " ")
30992 if (arg[1] == "#") {
30993 defundef = arg[2]
30994 mac1 = arg[3]
30995 } else {
30996 defundef = substr(arg[1], 2)
30997 mac1 = arg[2]
30998 }
30999 split(mac1, mac2, "(") #)
31000 macro = mac2[1]
31001 prefix = substr(line, 1, index(line, defundef) - 1)
31002 if (D_is_set[macro]) {
31003 # Preserve the white space surrounding the "#".
31004 print prefix "define", macro P[macro] D[macro]
31005 next
31006 } else {
31007 # Replace #undef with comments. This is necessary, for example,
31008 # in the case of _POSIX_SOURCE, which is predefined and required
31009 # on some systems where configure will not decide to define it.
31010 if (defundef == "undef") {
31011 print "/*", prefix defundef, macro, "*/"
31012 next
31013 }
31014 }
31015 }
31016 { print }
31017 _ACAWK
31018 _ACEOF
31019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31020 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31021 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31022 { (exit 1); exit 1; }; }
31023 fi # test -n "$CONFIG_HEADERS"
31024
31025
31026 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31027 shift
31028 for ac_tag
31029 do
31030 case $ac_tag in
31031 :[FHLC]) ac_mode=$ac_tag; continue;;
31032 esac
31033 case $ac_mode$ac_tag in
31034 :[FHL]*:*);;
31035 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31036 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31037 { (exit 1); exit 1; }; };;
31038 :[FH]-) ac_tag=-:-;;
31039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31040 esac
31041 ac_save_IFS=$IFS
31042 IFS=:
31043 set x $ac_tag
31044 IFS=$ac_save_IFS
31045 shift
31046 ac_file=$1
31047 shift
31048
31049 case $ac_mode in
31050 :L) ac_source=$1;;
31051 :[FH])
31052 ac_file_inputs=
31053 for ac_f
31054 do
31055 case $ac_f in
31056 -) ac_f="$tmp/stdin";;
31057 *) # Look for the file first in the build tree, then in the source tree
31058 # (if the path is not absolute). The absolute path cannot be DOS-style,
31059 # because $ac_f cannot contain `:'.
31060 test -f "$ac_f" ||
31061 case $ac_f in
31062 [\\/$]*) false;;
31063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31064 esac ||
31065 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31066 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31067 { (exit 1); exit 1; }; };;
31068 esac
31069 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31070 ac_file_inputs="$ac_file_inputs '$ac_f'"
31071 done
31072
31073 # Let's still pretend it is `configure' which instantiates (i.e., don't
31074 # use $as_me), people would be surprised to read:
31075 # /* config.h. Generated by config.status. */
31076 configure_input='Generated from '`
31077 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31078 `' by configure.'
31079 if test x"$ac_file" != x-; then
31080 configure_input="$ac_file. $configure_input"
31081 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31082 $as_echo "$as_me: creating $ac_file" >&6;}
31083 fi
31084 # Neutralize special characters interpreted by sed in replacement strings.
31085 case $configure_input in #(
31086 *\&* | *\|* | *\\* )
31087 ac_sed_conf_input=`$as_echo "$configure_input" |
31088 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31089 *) ac_sed_conf_input=$configure_input;;
31090 esac
31091
31092 case $ac_tag in
31093 *:-:* | *:-) cat >"$tmp/stdin" \
31094 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31095 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31096 { (exit 1); exit 1; }; } ;;
31097 esac
31098 ;;
31099 esac
31100
31101 ac_dir=`$as_dirname -- "$ac_file" ||
31102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31103 X"$ac_file" : 'X\(//\)[^/]' \| \
31104 X"$ac_file" : 'X\(//\)$' \| \
31105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31106 $as_echo X"$ac_file" |
31107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31108 s//\1/
31109 q
31110 }
31111 /^X\(\/\/\)[^/].*/{
31112 s//\1/
31113 q
31114 }
31115 /^X\(\/\/\)$/{
31116 s//\1/
31117 q
31118 }
31119 /^X\(\/\).*/{
31120 s//\1/
31121 q
31122 }
31123 s/.*/./; q'`
31124 { as_dir="$ac_dir"
31125 case $as_dir in #(
31126 -*) as_dir=./$as_dir;;
31127 esac
31128 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31129 as_dirs=
31130 while :; do
31131 case $as_dir in #(
31132 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31133 *) as_qdir=$as_dir;;
31134 esac
31135 as_dirs="'$as_qdir' $as_dirs"
31136 as_dir=`$as_dirname -- "$as_dir" ||
31137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31138 X"$as_dir" : 'X\(//\)[^/]' \| \
31139 X"$as_dir" : 'X\(//\)$' \| \
31140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31141 $as_echo X"$as_dir" |
31142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31143 s//\1/
31144 q
31145 }
31146 /^X\(\/\/\)[^/].*/{
31147 s//\1/
31148 q
31149 }
31150 /^X\(\/\/\)$/{
31151 s//\1/
31152 q
31153 }
31154 /^X\(\/\).*/{
31155 s//\1/
31156 q
31157 }
31158 s/.*/./; q'`
31159 test -d "$as_dir" && break
31160 done
31161 test -z "$as_dirs" || eval "mkdir $as_dirs"
31162 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31163 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31164 { (exit 1); exit 1; }; }; }
31165 ac_builddir=.
31166
31167 case "$ac_dir" in
31168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31169 *)
31170 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31171 # A ".." for each directory in $ac_dir_suffix.
31172 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31173 case $ac_top_builddir_sub in
31174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31176 esac ;;
31177 esac
31178 ac_abs_top_builddir=$ac_pwd
31179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31180 # for backward compatibility:
31181 ac_top_builddir=$ac_top_build_prefix
31182
31183 case $srcdir in
31184 .) # We are building in place.
31185 ac_srcdir=.
31186 ac_top_srcdir=$ac_top_builddir_sub
31187 ac_abs_top_srcdir=$ac_pwd ;;
31188 [\\/]* | ?:[\\/]* ) # Absolute name.
31189 ac_srcdir=$srcdir$ac_dir_suffix;
31190 ac_top_srcdir=$srcdir
31191 ac_abs_top_srcdir=$srcdir ;;
31192 *) # Relative name.
31193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31194 ac_top_srcdir=$ac_top_build_prefix$srcdir
31195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31196 esac
31197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31198
31199
31200 case $ac_mode in
31201 :F)
31202 #
31203 # CONFIG_FILE
31204 #
31205
31206 case $INSTALL in
31207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31209 esac
31210 _ACEOF
31211
31212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31213 # If the template does not know about datarootdir, expand it.
31214 # FIXME: This hack should be removed a few years after 2.60.
31215 ac_datarootdir_hack=; ac_datarootdir_seen=
31216
31217 ac_sed_dataroot='
31218 /datarootdir/ {
31219 p
31220 q
31221 }
31222 /@datadir@/p
31223 /@docdir@/p
31224 /@infodir@/p
31225 /@localedir@/p
31226 /@mandir@/p
31227 '
31228 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31229 *datarootdir*) ac_datarootdir_seen=yes;;
31230 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31231 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31232 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31233 _ACEOF
31234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31235 ac_datarootdir_hack='
31236 s&@datadir@&$datadir&g
31237 s&@docdir@&$docdir&g
31238 s&@infodir@&$infodir&g
31239 s&@localedir@&$localedir&g
31240 s&@mandir@&$mandir&g
31241 s&\\\${datarootdir}&$datarootdir&g' ;;
31242 esac
31243 _ACEOF
31244
31245 # Neutralize VPATH when `$srcdir' = `.'.
31246 # Shell code in configure.ac might set extrasub.
31247 # FIXME: do we really want to maintain this feature?
31248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31249 ac_sed_extra="$ac_vpsub
31250 $extrasub
31251 _ACEOF
31252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31253 :t
31254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31255 s|@configure_input@|$ac_sed_conf_input|;t t
31256 s&@top_builddir@&$ac_top_builddir_sub&;t t
31257 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31258 s&@srcdir@&$ac_srcdir&;t t
31259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31260 s&@top_srcdir@&$ac_top_srcdir&;t t
31261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31262 s&@builddir@&$ac_builddir&;t t
31263 s&@abs_builddir@&$ac_abs_builddir&;t t
31264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31265 s&@INSTALL@&$ac_INSTALL&;t t
31266 $ac_datarootdir_hack
31267 "
31268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31269 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31270 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31271 { (exit 1); exit 1; }; }
31272
31273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31276 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31277 which seems to be undefined. Please make sure it is defined." >&5
31278 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31279 which seems to be undefined. Please make sure it is defined." >&2;}
31280
31281 rm -f "$tmp/stdin"
31282 case $ac_file in
31283 -) cat "$tmp/out" && rm -f "$tmp/out";;
31284 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31285 esac \
31286 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31287 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31288 { (exit 1); exit 1; }; }
31289 ;;
31290 :H)
31291 #
31292 # CONFIG_HEADER
31293 #
31294 if test x"$ac_file" != x-; then
31295 {
31296 $as_echo "/* $configure_input */" \
31297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31298 } >"$tmp/config.h" \
31299 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31300 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31301 { (exit 1); exit 1; }; }
31302 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31303 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31304 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31305 else
31306 rm -f "$ac_file"
31307 mv "$tmp/config.h" "$ac_file" \
31308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31310 { (exit 1); exit 1; }; }
31311 fi
31312 else
31313 $as_echo "/* $configure_input */" \
31314 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31315 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31316 $as_echo "$as_me: error: could not create -" >&2;}
31317 { (exit 1); exit 1; }; }
31318 fi
31319 ;;
31320
31321 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31322 $as_echo "$as_me: executing $ac_file commands" >&6;}
31323 ;;
31324 esac
31325
31326
31327 case $ac_file$ac_mode in
31328 "default-1":C)
31329 for ac_file in $CONFIG_FILES; do
31330 # Support "outfile[:infile[:infile...]]"
31331 case "$ac_file" in
31332 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31333 esac
31334 # PO directories have a Makefile.in generated from Makefile.in.in.
31335 case "$ac_file" in */Makefile.in)
31336 # Adjust a relative srcdir.
31337 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31338 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31339 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31340 # In autoconf-2.13 it is called $ac_given_srcdir.
31341 # In autoconf-2.50 it is called $srcdir.
31342 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31343 case "$ac_given_srcdir" in
31344 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31345 /*) top_srcdir="$ac_given_srcdir" ;;
31346 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31347 esac
31348 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31349 rm -f "$ac_dir/POTFILES"
31350 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31351 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31352 POMAKEFILEDEPS="POTFILES.in"
31353 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
31354 # on $ac_dir but don't depend on user-specified configuration
31355 # parameters.
31356 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31357 # The LINGUAS file contains the set of available languages.
31358 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31359 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31360 fi
31361 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31362 # Hide the ALL_LINGUAS assigment from automake.
31363 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31364 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31365 else
31366 # The set of available languages was given in configure.in.
31367 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31368 fi
31369 case "$ac_given_srcdir" in
31370 .) srcdirpre= ;;
31371 *) srcdirpre='$(srcdir)/' ;;
31372 esac
31373 POFILES=
31374 GMOFILES=
31375 UPDATEPOFILES=
31376 DUMMYPOFILES=
31377 for lang in $ALL_LINGUAS; do
31378 POFILES="$POFILES $srcdirpre$lang.po"
31379 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31380 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31381 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31382 done
31383 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31384 # environment variable.
31385 INST_LINGUAS=
31386 if test -n "$ALL_LINGUAS"; then
31387 for presentlang in $ALL_LINGUAS; do
31388 useit=no
31389 if test "%UNSET%" != "$LINGUAS"; then
31390 desiredlanguages="$LINGUAS"
31391 else
31392 desiredlanguages="$ALL_LINGUAS"
31393 fi
31394 for desiredlang in $desiredlanguages; do
31395 # Use the presentlang catalog if desiredlang is
31396 # a. equal to presentlang, or
31397 # b. a variant of presentlang (because in this case,
31398 # presentlang can be used as a fallback for messages
31399 # which are not translated in the desiredlang catalog).
31400 case "$desiredlang" in
31401 "$presentlang"*) useit=yes;;
31402 esac
31403 done
31404 if test $useit = yes; then
31405 INST_LINGUAS="$INST_LINGUAS $presentlang"
31406 fi
31407 done
31408 fi
31409 CATALOGS=
31410 if test -n "$INST_LINGUAS"; then
31411 for lang in $INST_LINGUAS; do
31412 CATALOGS="$CATALOGS $lang.gmo"
31413 done
31414 fi
31415 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31416 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"
31417 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31418 if test -f "$f"; then
31419 case "$f" in
31420 *.orig | *.bak | *~) ;;
31421 *) cat "$f" >> "$ac_dir/Makefile" ;;
31422 esac
31423 fi
31424 done
31425 fi
31426 ;;
31427 esac
31428 done ;;
31429 "default":C)
31430 # Makefile uses this timestamp file to record whether config.h is up to date.
31431 echo timestamp > stamp-h
31432 ;;
31433
31434 esac
31435 done # for ac_tag
31436
31437
31438 { (exit 0); exit 0; }
31439 _ACEOF
31440 chmod +x $CONFIG_STATUS
31441 ac_clean_files=$ac_clean_files_save
31442
31443 test $ac_write_fail = 0 ||
31444 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31445 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31446 { (exit 1); exit 1; }; }
31447
31448
31449 # configure is writing to config.log, and then calls config.status.
31450 # config.status does its own redirection, appending to config.log.
31451 # Unfortunately, on DOS this fails, as config.log is still kept open
31452 # by configure, so config.status won't be able to write to it; its
31453 # output is simply discarded. So we exec the FD to /dev/null,
31454 # effectively closing config.log, so it can be properly (re)opened and
31455 # appended to by config.status. When coming back to configure, we
31456 # need to make the FD available again.
31457 if test "$no_create" != yes; then
31458 ac_cs_success=:
31459 ac_config_status_args=
31460 test "$silent" = yes &&
31461 ac_config_status_args="$ac_config_status_args --quiet"
31462 exec 5>/dev/null
31463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31464 exec 5>>config.log
31465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31466 # would make configure fail if this is the last instruction.
31467 $ac_cs_success || { (exit 1); exit 1; }
31468 fi
31469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31470 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31471 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31472 fi
31473