]> git.ipfire.org Git - thirdparty/bash.git/blob - configure
commit bash-4.1 snapshot
[thirdparty/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 4.1, version 4.019.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.1-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.1-release'
601 PACKAGE_STRING='bash 4.1-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_extended_glob_default
823 enable_help_builtin
824 enable_history
825 enable_job_control
826 enable_multibyte
827 enable_net_redirections
828 enable_process_substitution
829 enable_progcomp
830 enable_prompt_string_decoding
831 enable_readline
832 enable_restricted
833 enable_select
834 enable_separate_helpfiles
835 enable_single_help_strings
836 enable_strict_posix_default
837 enable_usg_echo_default
838 enable_xpg_echo_default
839 enable_mem_scramble
840 enable_profiling
841 enable_static_link
842 enable_largefile
843 enable_nls
844 with_gnu_ld
845 enable_rpath
846 with_libiconv_prefix
847 with_included_gettext
848 with_libintl_prefix
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 DEBUGGER_START_FILE
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 YACC
861 YFLAGS'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *) ac_optarg=yes ;;
926 esac
927
928 # Accept the important Cygnus configure options, so we can diagnose typos.
929
930 case $ac_dashdash$ac_option in
931 --)
932 ac_dashdash=yes ;;
933
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937 bindir=$ac_optarg ;;
938
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
943
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
950
951 --config-cache | -C)
952 cache_file=config.cache ;;
953
954 -datadir | --datadir | --datadi | --datad)
955 ac_prev=datadir ;;
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
958
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
965
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971 { (exit 1); exit 1; }; }
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1214
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1253 ;;
1254
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1283 no) ;;
1284 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1295 do
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures bash 4.1-release to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1468
1469 cat <<\_ACEOF
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of bash 4.1-release:";;
1480 esac
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-minimal-config a minimal sh-like configuration
1488 --enable-alias enable shell aliases
1489 --enable-arith-for-command
1490 enable arithmetic for command
1491 --enable-array-variables
1492 include shell array variables
1493 --enable-bang-history turn on csh-style history substitution
1494 --enable-brace-expansion
1495 include brace expansion
1496 --enable-casemod-attributes
1497 include case-modifying variable attributes
1498 --enable-casemod-expansions
1499 include case-modifying word expansions
1500 --enable-command-timing enable the time reserved word and command timing
1501 --enable-cond-command enable the conditional command
1502 --enable-cond-regexp enable extended regular expression matching in
1503 conditional commands
1504 --enable-coprocesses enable coprocess support and the coproc reserved
1505 word
1506 --enable-debugger enable support for bash debugger
1507 --enable-directory-stack
1508 enable builtins pushd/popd/dirs
1509 --enable-disabled-builtins
1510 allow disabled builtins to still be invoked
1511 --enable-dparen-arithmetic
1512 include ((...)) command
1513 --enable-extended-glob include ksh-style extended pattern matching
1514 --enable-extended-glob-default
1515 force extended pattern matching to be enabled by
1516 default
1517 --enable-help-builtin include the help builtin
1518 --enable-history turn on command history
1519 --enable-job-control enable job control features
1520 --enable-multibyte enable multibyte characters if OS supports them
1521 --enable-net-redirections
1522 enable /dev/tcp/host/port redirection
1523 --enable-process-substitution
1524 enable process substitution
1525 --enable-progcomp enable programmable completion and the complete
1526 builtin
1527 --enable-prompt-string-decoding
1528 turn on escape character decoding in prompts
1529 --enable-readline turn on command line editing
1530 --enable-restricted enable a restricted shell
1531 --enable-select include select command
1532 --enable-separate-helpfiles
1533 use external files for help builtin documentation
1534 --enable-single-help-strings
1535 store help documentation as a single string to ease
1536 translation
1537 --enable-strict-posix-default
1538 configure bash to be posix-conformant by default
1539 --enable-usg-echo-default
1540 a synonym for --enable-xpg-echo-default
1541 --enable-xpg-echo-default
1542 make the echo builtin expand escape sequences by
1543 default
1544 --enable-mem-scramble scramble memory on calls to malloc and free
1545 --enable-profiling allow profiling with gprof
1546 --enable-static-link link bash statically, for use as a root shell
1547 --disable-largefile omit support for large files
1548 --disable-nls do not use Native Language Support
1549 --disable-rpath do not hardcode runtime library paths
1550
1551 Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-lispdir override the default lisp directory
1555 --with-afs if you are running AFS
1556 --with-bash-malloc use the Bash version of malloc
1557 --with-curses use the curses library instead of the termcap
1558 library
1559 --with-gnu-malloc synonym for --with-bash-malloc
1560 --with-installed-readline
1561 use a version of the readline library that is
1562 already installed
1563 --with-purecov configure to postprocess with pure coverage
1564 --with-purify configure to postprocess with purify
1565 --with-gnu-ld assume the C compiler uses GNU ld default=no
1566 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1567 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1568 --with-included-gettext use the GNU gettext library included here
1569 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1570 --without-libintl-prefix don't search for libintl in includedir and libdir
1571
1572 Some influential environment variables:
1573 DEBUGGER_START_FILE
1574 location of bash debugger initialization file
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1584 the first program found out of: `bison -y', `byacc', `yacc'.
1585 YFLAGS The list of arguments that will be passed by default to $YACC.
1586 This script will default YFLAGS to the empty string to avoid a
1587 default value of `-d' given by some make applications.
1588
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1591
1592 Report bugs to <bug-bash@gnu.org>.
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 bash configure 4.1-release
1656 generated by GNU Autoconf 2.63
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1664 fi
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1668
1669 It was created by bash $as_me 4.1-release, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1671
1672 $ $0 $@
1673
1674 _ACEOF
1675 exec 5>>config.log
1676 {
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1681
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698
1699 _ASUNAME
1700
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 $as_echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1709
1710 } >&5
1711
1712 cat >&5 <<_ACEOF
1713
1714
1715 ## ----------- ##
1716 ## Core tests. ##
1717 ## ----------- ##
1718
1719 _ACEOF
1720
1721
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1732 do
1733 for ac_arg
1734 do
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
1740 *\'*)
1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 2)
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1758 ;;
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1761 fi
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1763 ;;
1764 esac
1765 done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1777 {
1778 echo
1779
1780 cat <<\_ASBOX
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1784 _ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
1787 (
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
1803 (set) 2>&1 |
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1806 sed -n \
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
1810 *)
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812 ;;
1813 esac |
1814 sort
1815 )
1816 echo
1817
1818 cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1825 do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1833
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1842 do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 $as_echo "$ac_var='\''$ac_val'\''"
1848 done | sort
1849 echo
1850 fi
1851
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858 echo
1859 cat confdefs.h
1860 echo
1861 fi
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1865 } >&5
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 exit $exit_status
1869 ' 0
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1874
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1877
1878 # Predefined preprocessor variables.
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1903
1904
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1907 ac_site_file1=NONE
1908 ac_site_file2=NONE
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1917 fi
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1919 do
1920 test "x$ac_site_file" = xNONE && continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1926 fi
1927 done
1928
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1939 fi
1940 else
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1944 fi
1945
1946 ac_header_list="$ac_header_list sys/time.h"
1947 ac_header_list="$ac_header_list unistd.h"
1948 ac_func_list="$ac_func_list alarm"
1949 ac_func_list="$ac_func_list fpurge"
1950 ac_func_list="$ac_func_list __fpurge"
1951 ac_func_list="$ac_func_list snprintf"
1952 ac_func_list="$ac_func_list vsnprintf"
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1962 set,)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,set)
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,);;
1971 *)
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w=`echo x $ac_old_val`
1975 ac_new_val_w=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted=:
1980 else
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\$ac_old_val
1984 fi
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1989 fi;;
1990 esac
1991 # Pass precious variables to config.status.
1992 if test "$ac_new_set" = set; then
1993 case $ac_new_val in
1994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 *) ac_arg=$ac_var=$ac_new_val ;;
1996 esac
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1999 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2000 esac
2001 fi
2002 done
2003 if $ac_cache_corrupted; then
2004 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2011 fi
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044
2045
2046
2047
2048 ac_aux_dir=
2049 for ac_dir in ./support "$srcdir"/./support; do
2050 if test -f "$ac_dir/install-sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 break
2054 elif test -f "$ac_dir/install.sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 break
2058 elif test -f "$ac_dir/shtool"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 break
2062 fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2066 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2067 { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
2078
2079 ac_config_headers="$ac_config_headers config.h"
2080
2081
2082 BASHVERS=4.1
2083 RELSTATUS=release
2084
2085 case "$RELSTATUS" in
2086 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2087 *) DEBUG= MALLOC_DEBUG= ;;
2088 esac
2089
2090 # Make sure we can run config.sub.
2091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2092 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2093 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2094 { (exit 1); exit 1; }; }
2095
2096 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2097 $as_echo_n "checking build system type... " >&6; }
2098 if test "${ac_cv_build+set}" = set; then
2099 $as_echo_n "(cached) " >&6
2100 else
2101 ac_build_alias=$build_alias
2102 test "x$ac_build_alias" = x &&
2103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2104 test "x$ac_build_alias" = x &&
2105 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2106 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2107 { (exit 1); exit 1; }; }
2108 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2110 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2112
2113 fi
2114 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2115 $as_echo "$ac_cv_build" >&6; }
2116 case $ac_cv_build in
2117 *-*-*) ;;
2118 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2119 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2120 { (exit 1); exit 1; }; };;
2121 esac
2122 build=$ac_cv_build
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_build
2125 shift
2126 build_cpu=$1
2127 build_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 build_os=$*
2132 IFS=$ac_save_IFS
2133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2137 $as_echo_n "checking host system type... " >&6; }
2138 if test "${ac_cv_host+set}" = set; then
2139 $as_echo_n "(cached) " >&6
2140 else
2141 if test "x$host_alias" = x; then
2142 ac_cv_host=$ac_cv_build
2143 else
2144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2145 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2146 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2148 fi
2149
2150 fi
2151 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2152 $as_echo "$ac_cv_host" >&6; }
2153 case $ac_cv_host in
2154 *-*-*) ;;
2155 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2156 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2157 { (exit 1); exit 1; }; };;
2158 esac
2159 host=$ac_cv_host
2160 ac_save_IFS=$IFS; IFS='-'
2161 set x $ac_cv_host
2162 shift
2163 host_cpu=$1
2164 host_vendor=$2
2165 shift; shift
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2168 host_os=$*
2169 IFS=$ac_save_IFS
2170 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171
2172
2173
2174 opt_bash_malloc=yes
2175 opt_purify=no
2176 opt_purecov=no
2177 opt_afs=no
2178 opt_curses=no
2179 opt_with_installed_readline=no
2180
2181 #htmldir=
2182
2183 case "${host_cpu}-${host_os}" in
2184 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2185 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2186 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2187 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2188 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2189 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2190 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2191 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2192 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2193 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2194 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2195 *-aix*) opt_bash_malloc=no ;; # AIX machines
2196 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2197 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2198 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2199 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2200 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2201 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2202 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2203 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2204 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2205 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2206 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2207 esac
2208
2209 # memory scrambling on free()
2210 case "${host_os}" in
2211 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2212 *) opt_memscramble=yes ;;
2213 esac
2214
2215
2216 # Check whether --with-lispdir was given.
2217 if test "${with_lispdir+set}" = set; then
2218 withval=$with_lispdir; lispdir="$withval"
2219 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2220 $as_echo_n "checking where .elc files should go... " >&6; }
2221 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
2222 $as_echo "$lispdir" >&6; }
2223 else
2224
2225 # If set to t, that means we are running in a shell under Emacs.
2226 # If you have an Emacs named "t", then use the full path.
2227 test x"$EMACS" = xt && EMACS=
2228 for ac_prog in emacs xemacs
2229 do
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if test "${ac_cv_prog_EMACS+set}" = set; then
2235 $as_echo_n "(cached) " >&6
2236 else
2237 if test -n "$EMACS"; then
2238 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_EMACS="$ac_prog"
2248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251 done
2252 done
2253 IFS=$as_save_IFS
2254
2255 fi
2256 fi
2257 EMACS=$ac_cv_prog_EMACS
2258 if test -n "$EMACS"; then
2259 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
2260 $as_echo "$EMACS" >&6; }
2261 else
2262 { $as_echo "$as_me:$LINENO: result: no" >&5
2263 $as_echo "no" >&6; }
2264 fi
2265
2266
2267 test -n "$EMACS" && break
2268 done
2269 test -n "$EMACS" || EMACS="no"
2270
2271 if test $EMACS != "no"; then
2272 if test x${lispdir+set} != xset; then
2273 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2274 $as_echo_n "checking where .elc files should go... " >&6; }
2275 if test "${am_cv_lispdir+set}" = set; then
2276 $as_echo_n "(cached) " >&6
2277 else
2278 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;}'`
2279 if test -z "$am_cv_lispdir"; then
2280 am_cv_lispdir='${datadir}/emacs/site-lisp'
2281 fi
2282
2283 fi
2284 { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2285 $as_echo "$am_cv_lispdir" >&6; }
2286 lispdir="$am_cv_lispdir"
2287 fi
2288 fi
2289
2290 fi
2291
2292
2293
2294
2295
2296
2297 # Check whether --with-afs was given.
2298 if test "${with_afs+set}" = set; then
2299 withval=$with_afs; opt_afs=$withval
2300 fi
2301
2302
2303 # Check whether --with-bash-malloc was given.
2304 if test "${with_bash_malloc+set}" = set; then
2305 withval=$with_bash_malloc; opt_bash_malloc=$withval
2306 fi
2307
2308
2309 # Check whether --with-curses was given.
2310 if test "${with_curses+set}" = set; then
2311 withval=$with_curses; opt_curses=$withval
2312 fi
2313
2314
2315 # Check whether --with-gnu-malloc was given.
2316 if test "${with_gnu_malloc+set}" = set; then
2317 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2318 fi
2319
2320
2321 # Check whether --with-installed-readline was given.
2322 if test "${with_installed_readline+set}" = set; then
2323 withval=$with_installed_readline; opt_with_installed_readline=$withval
2324 fi
2325
2326
2327 # Check whether --with-purecov was given.
2328 if test "${with_purecov+set}" = set; then
2329 withval=$with_purecov; opt_purecov=$withval
2330 fi
2331
2332
2333 # Check whether --with-purify was given.
2334 if test "${with_purify+set}" = set; then
2335 withval=$with_purify; opt_purify=$withval
2336 fi
2337
2338
2339 if test "$opt_bash_malloc" = yes; then
2340 MALLOC_TARGET=malloc
2341 MALLOC_SRC=malloc.c
2342
2343 MALLOC_LIB='-lmalloc'
2344 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2345 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2346 MALLOC_DEP='$(MALLOC_LIBRARY)'
2347
2348 cat >>confdefs.h <<\_ACEOF
2349 #define USING_BASH_MALLOC 1
2350 _ACEOF
2351
2352 else
2353 MALLOC_LIB=
2354 MALLOC_LIBRARY=
2355 MALLOC_LDFLAGS=
2356 MALLOC_DEP=
2357 fi
2358
2359 if test "$opt_purify" = yes; then
2360 PURIFY="purify "
2361 cat >>confdefs.h <<\_ACEOF
2362 #define DISABLE_MALLOC_WRAPPERS 1
2363 _ACEOF
2364
2365 else
2366 PURIFY=
2367 fi
2368
2369 if test "$opt_purecov" = yes; then
2370 PURIFY="${PURIFY}purecov"
2371 fi
2372
2373 if test "$opt_afs" = yes; then
2374 cat >>confdefs.h <<\_ACEOF
2375 #define AFS 1
2376 _ACEOF
2377
2378 fi
2379
2380 if test "$opt_curses" = yes; then
2381 prefer_curses=yes
2382 fi
2383
2384 if test -z "${DEBUGGER_START_FILE}"; then
2385 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2386 fi
2387
2388 opt_minimal_config=no
2389
2390 opt_job_control=yes
2391 opt_alias=yes
2392 opt_readline=yes
2393 opt_history=yes
2394 opt_bang_history=yes
2395 opt_dirstack=yes
2396 opt_restricted=yes
2397 opt_process_subst=yes
2398 opt_prompt_decoding=yes
2399 opt_select=yes
2400 opt_help=yes
2401 opt_array_variables=yes
2402 opt_dparen_arith=yes
2403 opt_extended_glob=yes
2404 opt_brace_expansion=yes
2405 opt_disabled_builtins=no
2406 opt_command_timing=yes
2407 opt_xpg_echo=no
2408 opt_strict_posix=no
2409 opt_cond_command=yes
2410 opt_cond_regexp=yes
2411 opt_coproc=yes
2412 opt_arith_for_command=yes
2413 opt_net_redirs=yes
2414 opt_progcomp=yes
2415 opt_separate_help=no
2416 opt_multibyte=yes
2417 opt_debugger=yes
2418 opt_single_longdoc_strings=yes
2419 opt_casemod_attrs=yes
2420 opt_casemod_expansions=yes
2421 opt_extglob_default=no
2422
2423 opt_static_link=no
2424 opt_profiling=no
2425
2426 # Check whether --enable-minimal-config was given.
2427 if test "${enable_minimal_config+set}" = set; then
2428 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2429 fi
2430
2431
2432 if test $opt_minimal_config = yes; then
2433 opt_job_control=no opt_alias=no opt_readline=no
2434 opt_history=no opt_bang_history=no opt_dirstack=no
2435 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2436 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2437 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2438 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2439 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2440 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2441 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
2442 fi
2443
2444 # Check whether --enable-alias was given.
2445 if test "${enable_alias+set}" = set; then
2446 enableval=$enable_alias; opt_alias=$enableval
2447 fi
2448
2449 # Check whether --enable-arith-for-command was given.
2450 if test "${enable_arith_for_command+set}" = set; then
2451 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2452 fi
2453
2454 # Check whether --enable-array-variables was given.
2455 if test "${enable_array_variables+set}" = set; then
2456 enableval=$enable_array_variables; opt_array_variables=$enableval
2457 fi
2458
2459 # Check whether --enable-bang-history was given.
2460 if test "${enable_bang_history+set}" = set; then
2461 enableval=$enable_bang_history; opt_bang_history=$enableval
2462 fi
2463
2464 # Check whether --enable-brace-expansion was given.
2465 if test "${enable_brace_expansion+set}" = set; then
2466 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2467 fi
2468
2469 # Check whether --enable-casemod-attributes was given.
2470 if test "${enable_casemod_attributes+set}" = set; then
2471 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2472 fi
2473
2474 # Check whether --enable-casemod-expansions was given.
2475 if test "${enable_casemod_expansions+set}" = set; then
2476 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2477 fi
2478
2479 # Check whether --enable-command-timing was given.
2480 if test "${enable_command_timing+set}" = set; then
2481 enableval=$enable_command_timing; opt_command_timing=$enableval
2482 fi
2483
2484 # Check whether --enable-cond-command was given.
2485 if test "${enable_cond_command+set}" = set; then
2486 enableval=$enable_cond_command; opt_cond_command=$enableval
2487 fi
2488
2489 # Check whether --enable-cond-regexp was given.
2490 if test "${enable_cond_regexp+set}" = set; then
2491 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2492 fi
2493
2494 # Check whether --enable-coprocesses was given.
2495 if test "${enable_coprocesses+set}" = set; then
2496 enableval=$enable_coprocesses; opt_coproc=$enableval
2497 fi
2498
2499 # Check whether --enable-debugger was given.
2500 if test "${enable_debugger+set}" = set; then
2501 enableval=$enable_debugger; opt_debugger=$enableval
2502 fi
2503
2504 # Check whether --enable-directory-stack was given.
2505 if test "${enable_directory_stack+set}" = set; then
2506 enableval=$enable_directory_stack; opt_dirstack=$enableval
2507 fi
2508
2509 # Check whether --enable-disabled-builtins was given.
2510 if test "${enable_disabled_builtins+set}" = set; then
2511 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2512 fi
2513
2514 # Check whether --enable-dparen-arithmetic was given.
2515 if test "${enable_dparen_arithmetic+set}" = set; then
2516 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2517 fi
2518
2519 # Check whether --enable-extended-glob was given.
2520 if test "${enable_extended_glob+set}" = set; then
2521 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2522 fi
2523
2524 # Check whether --enable-extended-glob-default was given.
2525 if test "${enable_extended_glob_default+set}" = set; then
2526 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
2527 fi
2528
2529 # Check whether --enable-help-builtin was given.
2530 if test "${enable_help_builtin+set}" = set; then
2531 enableval=$enable_help_builtin; opt_help=$enableval
2532 fi
2533
2534 # Check whether --enable-history was given.
2535 if test "${enable_history+set}" = set; then
2536 enableval=$enable_history; opt_history=$enableval
2537 fi
2538
2539 # Check whether --enable-job-control was given.
2540 if test "${enable_job_control+set}" = set; then
2541 enableval=$enable_job_control; opt_job_control=$enableval
2542 fi
2543
2544 # Check whether --enable-multibyte was given.
2545 if test "${enable_multibyte+set}" = set; then
2546 enableval=$enable_multibyte; opt_multibyte=$enableval
2547 fi
2548
2549 # Check whether --enable-net-redirections was given.
2550 if test "${enable_net_redirections+set}" = set; then
2551 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2552 fi
2553
2554 # Check whether --enable-process-substitution was given.
2555 if test "${enable_process_substitution+set}" = set; then
2556 enableval=$enable_process_substitution; opt_process_subst=$enableval
2557 fi
2558
2559 # Check whether --enable-progcomp was given.
2560 if test "${enable_progcomp+set}" = set; then
2561 enableval=$enable_progcomp; opt_progcomp=$enableval
2562 fi
2563
2564 # Check whether --enable-prompt-string-decoding was given.
2565 if test "${enable_prompt_string_decoding+set}" = set; then
2566 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2567 fi
2568
2569 # Check whether --enable-readline was given.
2570 if test "${enable_readline+set}" = set; then
2571 enableval=$enable_readline; opt_readline=$enableval
2572 fi
2573
2574 # Check whether --enable-restricted was given.
2575 if test "${enable_restricted+set}" = set; then
2576 enableval=$enable_restricted; opt_restricted=$enableval
2577 fi
2578
2579 # Check whether --enable-select was given.
2580 if test "${enable_select+set}" = set; then
2581 enableval=$enable_select; opt_select=$enableval
2582 fi
2583
2584 # Check whether --enable-separate-helpfiles was given.
2585 if test "${enable_separate_helpfiles+set}" = set; then
2586 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2587 fi
2588
2589 # Check whether --enable-single-help-strings was given.
2590 if test "${enable_single_help_strings+set}" = set; then
2591 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2592 fi
2593
2594 # Check whether --enable-strict-posix-default was given.
2595 if test "${enable_strict_posix_default+set}" = set; then
2596 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2597 fi
2598
2599 # Check whether --enable-usg-echo-default was given.
2600 if test "${enable_usg_echo_default+set}" = set; then
2601 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2602 fi
2603
2604 # Check whether --enable-xpg-echo-default was given.
2605 if test "${enable_xpg_echo_default+set}" = set; then
2606 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2607 fi
2608
2609
2610 # Check whether --enable-mem-scramble was given.
2611 if test "${enable_mem_scramble+set}" = set; then
2612 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2613 fi
2614
2615 # Check whether --enable-profiling was given.
2616 if test "${enable_profiling+set}" = set; then
2617 enableval=$enable_profiling; opt_profiling=$enableval
2618 fi
2619
2620 # Check whether --enable-static-link was given.
2621 if test "${enable_static_link+set}" = set; then
2622 enableval=$enable_static_link; opt_static_link=$enableval
2623 fi
2624
2625
2626
2627
2628 if test $opt_alias = yes; then
2629 cat >>confdefs.h <<\_ACEOF
2630 #define ALIAS 1
2631 _ACEOF
2632
2633 fi
2634 if test $opt_dirstack = yes; then
2635 cat >>confdefs.h <<\_ACEOF
2636 #define PUSHD_AND_POPD 1
2637 _ACEOF
2638
2639 fi
2640 if test $opt_restricted = yes; then
2641 cat >>confdefs.h <<\_ACEOF
2642 #define RESTRICTED_SHELL 1
2643 _ACEOF
2644
2645 fi
2646 if test $opt_process_subst = yes; then
2647 cat >>confdefs.h <<\_ACEOF
2648 #define PROCESS_SUBSTITUTION 1
2649 _ACEOF
2650
2651 fi
2652 if test $opt_prompt_decoding = yes; then
2653 cat >>confdefs.h <<\_ACEOF
2654 #define PROMPT_STRING_DECODE 1
2655 _ACEOF
2656
2657 fi
2658 if test $opt_select = yes; then
2659 cat >>confdefs.h <<\_ACEOF
2660 #define SELECT_COMMAND 1
2661 _ACEOF
2662
2663 fi
2664 if test $opt_help = yes; then
2665 cat >>confdefs.h <<\_ACEOF
2666 #define HELP_BUILTIN 1
2667 _ACEOF
2668
2669 fi
2670 if test $opt_array_variables = yes; then
2671 cat >>confdefs.h <<\_ACEOF
2672 #define ARRAY_VARS 1
2673 _ACEOF
2674
2675 fi
2676 if test $opt_dparen_arith = yes; then
2677 cat >>confdefs.h <<\_ACEOF
2678 #define DPAREN_ARITHMETIC 1
2679 _ACEOF
2680
2681 fi
2682 if test $opt_brace_expansion = yes; then
2683 cat >>confdefs.h <<\_ACEOF
2684 #define BRACE_EXPANSION 1
2685 _ACEOF
2686
2687 fi
2688 if test $opt_disabled_builtins = yes; then
2689 cat >>confdefs.h <<\_ACEOF
2690 #define DISABLED_BUILTINS 1
2691 _ACEOF
2692
2693 fi
2694 if test $opt_command_timing = yes; then
2695 cat >>confdefs.h <<\_ACEOF
2696 #define COMMAND_TIMING 1
2697 _ACEOF
2698
2699 fi
2700 if test $opt_xpg_echo = yes ; then
2701 cat >>confdefs.h <<\_ACEOF
2702 #define DEFAULT_ECHO_TO_XPG 1
2703 _ACEOF
2704
2705 fi
2706 if test $opt_strict_posix = yes; then
2707 cat >>confdefs.h <<\_ACEOF
2708 #define STRICT_POSIX 1
2709 _ACEOF
2710
2711 fi
2712 if test $opt_extended_glob = yes ; then
2713 cat >>confdefs.h <<\_ACEOF
2714 #define EXTENDED_GLOB 1
2715 _ACEOF
2716
2717 fi
2718 if test $opt_extglob_default = yes; then
2719 cat >>confdefs.h <<\_ACEOF
2720 #define EXTGLOB_DEFAULT 1
2721 _ACEOF
2722
2723 else
2724 cat >>confdefs.h <<\_ACEOF
2725 #define EXTGLOB_DEFAULT 0
2726 _ACEOF
2727
2728 fi
2729 if test $opt_cond_command = yes ; then
2730 cat >>confdefs.h <<\_ACEOF
2731 #define COND_COMMAND 1
2732 _ACEOF
2733
2734 fi
2735 if test $opt_cond_regexp = yes ; then
2736 cat >>confdefs.h <<\_ACEOF
2737 #define COND_REGEXP 1
2738 _ACEOF
2739
2740 fi
2741 if test $opt_coproc = yes; then
2742 cat >>confdefs.h <<\_ACEOF
2743 #define COPROCESS_SUPPORT 1
2744 _ACEOF
2745
2746 fi
2747 if test $opt_arith_for_command = yes; then
2748 cat >>confdefs.h <<\_ACEOF
2749 #define ARITH_FOR_COMMAND 1
2750 _ACEOF
2751
2752 fi
2753 if test $opt_net_redirs = yes; then
2754 cat >>confdefs.h <<\_ACEOF
2755 #define NETWORK_REDIRECTIONS 1
2756 _ACEOF
2757
2758 fi
2759 if test $opt_progcomp = yes; then
2760 cat >>confdefs.h <<\_ACEOF
2761 #define PROGRAMMABLE_COMPLETION 1
2762 _ACEOF
2763
2764 fi
2765 if test $opt_multibyte = no; then
2766 cat >>confdefs.h <<\_ACEOF
2767 #define NO_MULTIBYTE_SUPPORT 1
2768 _ACEOF
2769
2770 fi
2771 if test $opt_debugger = yes; then
2772 cat >>confdefs.h <<\_ACEOF
2773 #define DEBUGGER 1
2774 _ACEOF
2775
2776 fi
2777 if test $opt_casemod_attrs = yes; then
2778 cat >>confdefs.h <<\_ACEOF
2779 #define CASEMOD_ATTRS 1
2780 _ACEOF
2781
2782 fi
2783 if test $opt_casemod_expansions = yes; then
2784 cat >>confdefs.h <<\_ACEOF
2785 #define CASEMOD_EXPANSIONS 1
2786 _ACEOF
2787
2788 fi
2789
2790 if test $opt_memscramble = yes; then
2791 cat >>confdefs.h <<\_ACEOF
2792 #define MEMSCRAMBLE 1
2793 _ACEOF
2794
2795 fi
2796
2797 if test "$opt_minimal_config" = yes; then
2798 TESTSCRIPT=run-minimal
2799 else
2800 TESTSCRIPT=run-all
2801 fi
2802
2803 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2804 if test "$opt_separate_help" != no; then
2805 if test "$opt_separate_help" = "yes" ; then
2806 HELPDIR='${datadir}/bash'
2807 else
2808 HELPDIR=$opt_separate_help
2809 fi
2810 HELPDIRDEFINE='-H ${HELPDIR}'
2811 HELPINSTALL='install-help'
2812 fi
2813 HELPSTRINGS=
2814 if test "$opt_single_longdoc_strings" != "yes"; then
2815 HELPSTRINGS='-S'
2816 fi
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835 echo ""
2836 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2837 echo ""
2838
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$ac_cv_prog_CC"; then
2884 ac_ct_CC=$CC
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917 { $as_echo "$as_me:$LINENO: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 else
2933 CC="$ac_cv_prog_CC"
2934 fi
2935
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:$LINENO: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 fi
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 ac_prog_rejected=no
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
2998 continue
2999 fi
3000 ac_cv_prog_CC="cc"
3001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3011 shift
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3016 shift
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018 fi
3019 fi
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:$LINENO: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$CC" && break
3075 done
3076 fi
3077 if test -z "$CC"; then
3078 ac_ct_CC=$CC
3079 for ac_prog in cl.exe
3080 do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="$ac_prog"
3099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:$LINENO: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 test -n "$ac_ct_CC" && break
3119 done
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 fi
3133
3134 fi
3135
3136
3137 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." >&5
3141 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3142 See \`config.log' for more details." >&2;}
3143 { (exit 1); exit 1; }; }; }
3144
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3147 set X $ac_compile
3148 ac_compiler=$2
3149 { (ac_try="$ac_compiler --version >&5"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155 $as_echo "$ac_try_echo") >&5
3156 (eval "$ac_compiler --version >&5") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160 { (ac_try="$ac_compiler -v >&5"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167 (eval "$ac_compiler -v >&5") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171 { (ac_try="$ac_compiler -V >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178 (eval "$ac_compiler -V >&5") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }
3182
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 ac_clean_files_save=$ac_clean_files
3199 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3200 # Try to create an executable without -o first, disregard a.out.
3201 # It will help us diagnose broken compilers, and finding out an intuition
3202 # of exeext.
3203 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3204 $as_echo_n "checking for C compiler default output file name... " >&6; }
3205 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3206
3207 # The possible output files:
3208 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3209
3210 ac_rmfiles=
3211 for ac_file in $ac_files
3212 do
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3215 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3216 esac
3217 done
3218 rm -f $ac_rmfiles
3219
3220 if { (ac_try="$ac_link_default"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227 (eval "$ac_link_default") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3232 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3233 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3234 # so that the user can short-circuit this test for compilers unknown to
3235 # Autoconf.
3236 for ac_file in $ac_files ''
3237 do
3238 test -f "$ac_file" || continue
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3241 ;;
3242 [ab].out )
3243 # We found the default executable, but exeext='' is most
3244 # certainly right.
3245 break;;
3246 *.* )
3247 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3248 then :; else
3249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250 fi
3251 # We set ac_cv_exeext here because the later test for it is not
3252 # safe: cross compilers may not add the suffix if given an `-o'
3253 # argument, so we may need to know it at that point already.
3254 # Even if this section looks crufty: it has the advantage of
3255 # actually working.
3256 break;;
3257 * )
3258 break;;
3259 esac
3260 done
3261 test "$ac_cv_exeext" = no && ac_cv_exeext=
3262
3263 else
3264 ac_file=''
3265 fi
3266
3267 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3268 $as_echo "$ac_file" >&6; }
3269 if test -z "$ac_file"; then
3270 $as_echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3276 See \`config.log' for more details." >&5
3277 $as_echo "$as_me: error: C compiler cannot create executables
3278 See \`config.log' for more details." >&2;}
3279 { (exit 77); exit 77; }; }; }
3280 fi
3281
3282 ac_exeext=$ac_cv_exeext
3283
3284 # Check that the compiler produces executables we can run. If not, either
3285 # the compiler is broken, or we cross compile.
3286 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3287 $as_echo_n "checking whether the C compiler works... " >&6; }
3288 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3289 # If not cross compiling, check that we can run a simple program.
3290 if test "$cross_compiling" != yes; then
3291 if { ac_try='./$ac_file'
3292 { (case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297 $as_echo "$ac_try_echo") >&5
3298 (eval "$ac_try") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 cross_compiling=no
3303 else
3304 if test "$cross_compiling" = maybe; then
3305 cross_compiling=yes
3306 else
3307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3310 If you meant to cross compile, use \`--host'.
3311 See \`config.log' for more details." >&5
3312 $as_echo "$as_me: error: cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." >&2;}
3315 { (exit 1); exit 1; }; }; }
3316 fi
3317 fi
3318 fi
3319 { $as_echo "$as_me:$LINENO: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323 ac_clean_files=$ac_clean_files_save
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3329 $as_echo "$cross_compiling" >&6; }
3330
3331 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { (ac_try="$ac_link"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; then
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3347 # `rm'.
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356 done
3357 else
3358 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." >&5
3362 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }; }
3365 fi
3366
3367 rm -f conftest$ac_cv_exeext
3368 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369 $as_echo "$ac_cv_exeext" >&6; }
3370
3371 rm -f conftest.$ac_ext
3372 EXEEXT=$ac_cv_exeext
3373 ac_exeext=$EXEEXT
3374 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375 $as_echo_n "checking for suffix of object files... " >&6; }
3376 if test "${ac_cv_objext+set}" = set; then
3377 $as_echo_n "(cached) " >&6
3378 else
3379 cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h. */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.o conftest.obj
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401 $as_echo "$ac_try_echo") >&5
3402 (eval "$ac_compile") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; then
3406 for ac_file in conftest.o conftest.obj conftest.*; do
3407 test -f "$ac_file" || continue;
3408 case $ac_file in
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3410 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3411 break;;
3412 esac
3413 done
3414 else
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3421 See \`config.log' for more details." >&5
3422 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details." >&2;}
3424 { (exit 1); exit 1; }; }; }
3425 fi
3426
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3428 fi
3429 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3432 ac_objext=$OBJEXT
3433 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444
3445 int
3446 main ()
3447 {
3448 #ifndef __GNUC__
3449 choke me
3450 #endif
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3474 ac_compiler_gnu=yes
3475 else
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 ac_compiler_gnu=no
3480 fi
3481
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3484
3485 fi
3486 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3489 GCC=yes
3490 else
3491 GCC=
3492 fi
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if test "${ac_cv_prog_cc_g+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3499 else
3500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3502 ac_cv_prog_cc_g=no
3503 CFLAGS="-g"
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510
3511 int
3512 main ()
3513 {
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
3537 ac_cv_prog_cc_g=yes
3538 else
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 CFLAGS=""
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 :
3577 else
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 ac_c_werror_flag=$ac_save_c_werror_flag
3582 CFLAGS="-g"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_prog_cc_g=yes
3617 else
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621
3622 fi
3623
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3632 fi
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636 CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638 if test "$GCC" = yes; then
3639 CFLAGS="-g -O2"
3640 else
3641 CFLAGS="-g"
3642 fi
3643 else
3644 if test "$GCC" = yes; then
3645 CFLAGS="-O2"
3646 else
3647 CFLAGS=
3648 fi
3649 fi
3650 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if test "${ac_cv_prog_cc_c89+set}" = set; then
3653 $as_echo_n "(cached) " >&6
3654 else
3655 ac_cv_prog_cc_c89=no
3656 ac_save_CC=$CC
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdio.h>
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668 struct buf { int x; };
3669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3671 char **p;
3672 int i;
3673 {
3674 return p[i];
3675 }
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3677 {
3678 char *s;
3679 va_list v;
3680 va_start (v,p);
3681 s = g (p, va_arg (v,int));
3682 va_end (v);
3683 return s;
3684 }
3685
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697 #define FOO(x) 'x'
3698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 int argc;
3705 char **argv;
3706 int
3707 main ()
3708 {
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 do
3717 CC="$ac_save_CC $ac_arg"
3718 rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725 $as_echo "$ac_try_echo") >&5
3726 (eval "$ac_compile") 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && {
3733 test -z "$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 } && test -s conftest.$ac_objext; then
3736 ac_cv_prog_cc_c89=$ac_arg
3737 else
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741
3742 fi
3743
3744 rm -f core conftest.err conftest.$ac_objext
3745 test "x$ac_cv_prog_cc_c89" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC
3749
3750 fi
3751 # AC_CACHE_VAL
3752 case "x$ac_cv_prog_cc_c89" in
3753 x)
3754 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3756 xno)
3757 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3759 *)
3760 CC="$CC $ac_cv_prog_cc_c89"
3761 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3762 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3763 esac
3764
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773
3774
3775 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3776 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3777 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3779 else
3780 ac_check_lib_save_LIBS=$LIBS
3781 LIBS="-lcposix $LIBS"
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788
3789 /* Override any GCC internal prototype to avoid an error.
3790 Use char because int might match the return type of a GCC
3791 builtin and then its argument prototype would still apply. */
3792 #ifdef __cplusplus
3793 extern "C"
3794 #endif
3795 char strerror ();
3796 int
3797 main ()
3798 {
3799 return strerror ();
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (ac_try="$ac_link"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_link") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest$ac_exeext && {
3822 test "$cross_compiling" = yes ||
3823 $as_test_x conftest$ac_exeext
3824 }; then
3825 ac_cv_lib_cposix_strerror=yes
3826 else
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 ac_cv_lib_cposix_strerror=no
3831 fi
3832
3833 rm -rf conftest.dSYM
3834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3835 conftest$ac_exeext conftest.$ac_ext
3836 LIBS=$ac_check_lib_save_LIBS
3837 fi
3838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3839 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3840 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3841 LIBS="$LIBS -lcposix"
3842 fi
3843
3844
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3852 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3853 # On Suns, sometimes $CPP names a directory.
3854 if test -n "$CPP" && test -d "$CPP"; then
3855 CPP=
3856 fi
3857 if test -z "$CPP"; then
3858 if test "${ac_cv_prog_CPP+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3860 else
3861 # Double quotes because CPP needs to be expanded
3862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3863 do
3864 ac_preproc_ok=false
3865 for ac_c_preproc_warn_flag in '' yes
3866 do
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #ifdef __STDC__
3880 # include <limits.h>
3881 #else
3882 # include <assert.h>
3883 #endif
3884 Syntax error
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null && {
3900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 }; then
3903 :
3904 else
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 # Broken: fails on valid input.
3909 continue
3910 fi
3911
3912 rm -f conftest.err conftest.$ac_ext
3913
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3923 _ACEOF
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3930 $as_echo "$ac_try_echo") >&5
3931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null && {
3938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3940 }; then
3941 # Broken: success on invalid input.
3942 continue
3943 else
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 # Passes both tests.
3948 ac_preproc_ok=:
3949 break
3950 fi
3951
3952 rm -f conftest.err conftest.$ac_ext
3953
3954 done
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then
3958 break
3959 fi
3960
3961 done
3962 ac_cv_prog_CPP=$CPP
3963
3964 fi
3965 CPP=$ac_cv_prog_CPP
3966 else
3967 ac_cv_prog_CPP=$CPP
3968 fi
3969 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3970 $as_echo "$CPP" >&6; }
3971 ac_preproc_ok=false
3972 for ac_c_preproc_warn_flag in '' yes
3973 do
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #ifdef __STDC__
3987 # include <limits.h>
3988 #else
3989 # include <assert.h>
3990 #endif
3991 Syntax error
3992 _ACEOF
3993 if { (ac_try="$ac_cpp conftest.$ac_ext"
3994 case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997 esac
3998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3999 $as_echo "$ac_try_echo") >&5
4000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null && {
4007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4009 }; then
4010 :
4011 else
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015 # Broken: fails on valid input.
4016 continue
4017 fi
4018
4019 rm -f conftest.err conftest.$ac_ext
4020
4021 # OK, works on sane cases. Now check whether nonexistent headers
4022 # can be detected and how.
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 #include <ac_nonexistent.h>
4030 _ACEOF
4031 if { (ac_try="$ac_cpp conftest.$ac_ext"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null && {
4045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 }; then
4048 # Broken: success on invalid input.
4049 continue
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 # Passes both tests.
4055 ac_preproc_ok=:
4056 break
4057 fi
4058
4059 rm -f conftest.err conftest.$ac_ext
4060
4061 done
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then
4065 :
4066 else
4067 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details." >&5
4071 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details." >&2;}
4073 { (exit 1); exit 1; }; }; }
4074 fi
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
4082
4083 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4084 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -z "$GREP"; then
4089 ac_path_GREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in grep ggrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4099 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4100 # Check for GNU ac_path_GREP and select it if it is found.
4101 # Check for GNU $ac_path_GREP
4102 case `"$ac_path_GREP" --version 2>&1` in
4103 *GNU*)
4104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4105 *)
4106 ac_count=0
4107 $as_echo_n 0123456789 >"conftest.in"
4108 while :
4109 do
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 $as_echo 'GREP' >> "conftest.nl"
4114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 ac_count=`expr $ac_count + 1`
4117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_GREP="$ac_path_GREP"
4120 ac_path_GREP_max=$ac_count
4121 fi
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4124 done
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 esac
4127
4128 $ac_path_GREP_found && break 3
4129 done
4130 done
4131 done
4132 IFS=$as_save_IFS
4133 if test -z "$ac_cv_path_GREP"; then
4134 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4135 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4136 { (exit 1); exit 1; }; }
4137 fi
4138 else
4139 ac_cv_path_GREP=$GREP
4140 fi
4141
4142 fi
4143 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4144 $as_echo "$ac_cv_path_GREP" >&6; }
4145 GREP="$ac_cv_path_GREP"
4146
4147
4148 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4149 $as_echo_n "checking for egrep... " >&6; }
4150 if test "${ac_cv_path_EGREP+set}" = set; then
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154 then ac_cv_path_EGREP="$GREP -E"
4155 else
4156 if test -z "$EGREP"; then
4157 ac_path_EGREP_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in egrep; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4167 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4168 # Check for GNU ac_path_EGREP and select it if it is found.
4169 # Check for GNU $ac_path_EGREP
4170 case `"$ac_path_EGREP" --version 2>&1` in
4171 *GNU*)
4172 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4173 *)
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4177 do
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'EGREP' >> "conftest.nl"
4182 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 ac_count=`expr $ac_count + 1`
4185 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_EGREP="$ac_path_EGREP"
4188 ac_path_EGREP_max=$ac_count
4189 fi
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196 $ac_path_EGREP_found && break 3
4197 done
4198 done
4199 done
4200 IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_EGREP"; then
4202 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4203 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4204 { (exit 1); exit 1; }; }
4205 fi
4206 else
4207 ac_cv_path_EGREP=$EGREP
4208 fi
4209
4210 fi
4211 fi
4212 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4213 $as_echo "$ac_cv_path_EGREP" >&6; }
4214 EGREP="$ac_cv_path_EGREP"
4215
4216
4217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4218 $as_echo_n "checking for ANSI C header files... " >&6; }
4219 if test "${ac_cv_header_stdc+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <stdlib.h>
4229 #include <stdarg.h>
4230 #include <string.h>
4231 #include <float.h>
4232
4233 int
4234 main ()
4235 {
4236
4237 ;
4238 return 0;
4239 }
4240 _ACEOF
4241 rm -f conftest.$ac_objext
4242 if { (ac_try="$ac_compile"
4243 case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4248 $as_echo "$ac_try_echo") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && {
4256 test -z "$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 } && test -s conftest.$ac_objext; then
4259 ac_cv_header_stdc=yes
4260 else
4261 $as_echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 ac_cv_header_stdc=no
4265 fi
4266
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268
4269 if test $ac_cv_header_stdc = yes; then
4270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <string.h>
4278
4279 _ACEOF
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "memchr" >/dev/null 2>&1; then
4282 :
4283 else
4284 ac_cv_header_stdc=no
4285 fi
4286 rm -f conftest*
4287
4288 fi
4289
4290 if test $ac_cv_header_stdc = yes; then
4291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <stdlib.h>
4299
4300 _ACEOF
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "free" >/dev/null 2>&1; then
4303 :
4304 else
4305 ac_cv_header_stdc=no
4306 fi
4307 rm -f conftest*
4308
4309 fi
4310
4311 if test $ac_cv_header_stdc = yes; then
4312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4313 if test "$cross_compiling" = yes; then
4314 :
4315 else
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <ctype.h>
4323 #include <stdlib.h>
4324 #if ((' ' & 0x0FF) == 0x020)
4325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4327 #else
4328 # define ISLOWER(c) \
4329 (('a' <= (c) && (c) <= 'i') \
4330 || ('j' <= (c) && (c) <= 'r') \
4331 || ('s' <= (c) && (c) <= 'z'))
4332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4333 #endif
4334
4335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4336 int
4337 main ()
4338 {
4339 int i;
4340 for (i = 0; i < 256; i++)
4341 if (XOR (islower (i), ISLOWER (i))
4342 || toupper (i) != TOUPPER (i))
4343 return 2;
4344 return 0;
4345 }
4346 _ACEOF
4347 rm -f conftest$ac_exeext
4348 if { (ac_try="$ac_link"
4349 case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4354 $as_echo "$ac_try_echo") >&5
4355 (eval "$ac_link") 2>&5
4356 ac_status=$?
4357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4364 $as_echo "$ac_try_echo") >&5
4365 (eval "$ac_try") 2>&5
4366 ac_status=$?
4367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 :
4370 else
4371 $as_echo "$as_me: program exited with status $ac_status" >&5
4372 $as_echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ( exit $ac_status )
4376 ac_cv_header_stdc=no
4377 fi
4378 rm -rf conftest.dSYM
4379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4380 fi
4381
4382
4383 fi
4384 fi
4385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4386 $as_echo "$ac_cv_header_stdc" >&6; }
4387 if test $ac_cv_header_stdc = yes; then
4388
4389 cat >>confdefs.h <<\_ACEOF
4390 #define STDC_HEADERS 1
4391 _ACEOF
4392
4393 fi
4394
4395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4406 inttypes.h stdint.h unistd.h
4407 do
4408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 $as_echo_n "checking for $ac_header... " >&6; }
4411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4412 $as_echo_n "(cached) " >&6
4413 else
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4421
4422 #include <$ac_header>
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (ac_try="$ac_compile"
4426 case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429 esac
4430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4431 $as_echo "$ac_try_echo") >&5
4432 (eval "$ac_compile") 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } && {
4439 test -z "$ac_c_werror_flag" ||
4440 test ! -s conftest.err
4441 } && test -s conftest.$ac_objext; then
4442 eval "$as_ac_Header=yes"
4443 else
4444 $as_echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 eval "$as_ac_Header=no"
4448 fi
4449
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451 fi
4452 ac_res=`eval 'as_val=${'$as_ac_Header'}
4453 $as_echo "$as_val"'`
4454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4455 $as_echo "$ac_res" >&6; }
4456 as_val=`eval 'as_val=${'$as_ac_Header'}
4457 $as_echo "$as_val"'`
4458 if test "x$as_val" = x""yes; then
4459 cat >>confdefs.h <<_ACEOF
4460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461 _ACEOF
4462
4463 fi
4464
4465 done
4466
4467
4468
4469 if test "${ac_cv_header_minix_config_h+set}" = set; then
4470 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4471 $as_echo_n "checking for minix/config.h... " >&6; }
4472 if test "${ac_cv_header_minix_config_h+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4474 fi
4475 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4476 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4477 else
4478 # Is the header compilable?
4479 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4480 $as_echo_n "checking minix/config.h usability... " >&6; }
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4488 #include <minix/config.h>
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (ac_try="$ac_compile"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497 $as_echo "$ac_try_echo") >&5
4498 (eval "$ac_compile") 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest.$ac_objext; then
4508 ac_header_compiler=yes
4509 else
4510 $as_echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 ac_header_compiler=no
4514 fi
4515
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4518 $as_echo "$ac_header_compiler" >&6; }
4519
4520 # Is the header present?
4521 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4522 $as_echo_n "checking minix/config.h presence... " >&6; }
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 #include <minix/config.h>
4530 _ACEOF
4531 if { (ac_try="$ac_cpp conftest.$ac_ext"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4537 $as_echo "$ac_try_echo") >&5
4538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null && {
4545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 }; then
4548 ac_header_preproc=yes
4549 else
4550 $as_echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 ac_header_preproc=no
4554 fi
4555
4556 rm -f conftest.err conftest.$ac_ext
4557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4558 $as_echo "$ac_header_preproc" >&6; }
4559
4560 # So? What about this header?
4561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4562 yes:no: )
4563 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4564 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4565 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4566 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4567 ac_header_preproc=yes
4568 ;;
4569 no:yes:* )
4570 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4571 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4572 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4573 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4574 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4575 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4576 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4577 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4578 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4579 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4580 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4581 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4582 ( cat <<\_ASBOX
4583 ## ------------------------------- ##
4584 ## Report this to bug-bash@gnu.org ##
4585 ## ------------------------------- ##
4586 _ASBOX
4587 ) | sed "s/^/$as_me: WARNING: /" >&2
4588 ;;
4589 esac
4590 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4591 $as_echo_n "checking for minix/config.h... " >&6; }
4592 if test "${ac_cv_header_minix_config_h+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4594 else
4595 ac_cv_header_minix_config_h=$ac_header_preproc
4596 fi
4597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4598 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4599
4600 fi
4601 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4602 MINIX=yes
4603 else
4604 MINIX=
4605 fi
4606
4607
4608 if test "$MINIX" = yes; then
4609
4610 cat >>confdefs.h <<\_ACEOF
4611 #define _POSIX_SOURCE 1
4612 _ACEOF
4613
4614
4615 cat >>confdefs.h <<\_ACEOF
4616 #define _POSIX_1_SOURCE 2
4617 _ACEOF
4618
4619
4620 cat >>confdefs.h <<\_ACEOF
4621 #define _MINIX 1
4622 _ACEOF
4623
4624 fi
4625
4626
4627
4628 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4629 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4630 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639
4640 # define __EXTENSIONS__ 1
4641 $ac_includes_default
4642 int
4643 main ()
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (ac_try="$ac_compile"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658 (eval "$ac_compile") 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && {
4665 test -z "$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 } && test -s conftest.$ac_objext; then
4668 ac_cv_safe_to_define___extensions__=yes
4669 else
4670 $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 ac_cv_safe_to_define___extensions__=no
4674 fi
4675
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4679 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4680 test $ac_cv_safe_to_define___extensions__ = yes &&
4681 cat >>confdefs.h <<\_ACEOF
4682 #define __EXTENSIONS__ 1
4683 _ACEOF
4684
4685 cat >>confdefs.h <<\_ACEOF
4686 #define _ALL_SOURCE 1
4687 _ACEOF
4688
4689 cat >>confdefs.h <<\_ACEOF
4690 #define _GNU_SOURCE 1
4691 _ACEOF
4692
4693 cat >>confdefs.h <<\_ACEOF
4694 #define _POSIX_PTHREAD_SEMANTICS 1
4695 _ACEOF
4696
4697 cat >>confdefs.h <<\_ACEOF
4698 #define _TANDEM_SOURCE 1
4699 _ACEOF
4700
4701
4702
4703 # Check whether --enable-largefile was given.
4704 if test "${enable_largefile+set}" = set; then
4705 enableval=$enable_largefile;
4706 fi
4707
4708 if test "$enable_largefile" != no; then
4709
4710 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4711 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4712 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_cv_sys_largefile_CC=no
4716 if test "$GCC" != yes; then
4717 ac_save_CC=$CC
4718 while :; do
4719 # IRIX 6.2 and later do not support large files by default,
4720 # so use the C compiler's -n32 option if that helps.
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4735 ? 1 : -1];
4736 int
4737 main ()
4738 {
4739
4740 ;
4741 return 0;
4742 }
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (ac_try="$ac_compile"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest.$ac_objext; then
4762 break
4763 else
4764 $as_echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767
4768 fi
4769
4770 rm -f core conftest.err conftest.$ac_objext
4771 CC="$CC -n32"
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compile") 2>conftest.er1
4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && {
4787 test -z "$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 } && test -s conftest.$ac_objext; then
4790 ac_cv_sys_largefile_CC=' -n32'; break
4791 else
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795
4796 fi
4797
4798 rm -f core conftest.err conftest.$ac_objext
4799 break
4800 done
4801 CC=$ac_save_CC
4802 rm -f conftest.$ac_ext
4803 fi
4804 fi
4805 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4806 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4807 if test "$ac_cv_sys_largefile_CC" != no; then
4808 CC=$CC$ac_cv_sys_largefile_CC
4809 fi
4810
4811 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4812 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4813 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4814 $as_echo_n "(cached) " >&6
4815 else
4816 while :; do
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <sys/types.h>
4824 /* Check that off_t can represent 2**63 - 1 correctly.
4825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4826 since some C++ compilers masquerading as C compilers
4827 incorrectly reject 9223372036854775807. */
4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4830 && LARGE_OFF_T % 2147483647 == 1)
4831 ? 1 : -1];
4832 int
4833 main ()
4834 {
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 rm -f conftest.$ac_objext
4841 if { (ac_try="$ac_compile"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
4858 ac_cv_sys_file_offset_bits=no; break
4859 else
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863
4864 fi
4865
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #define _FILE_OFFSET_BITS 64
4874 #include <sys/types.h>
4875 /* Check that off_t can represent 2**63 - 1 correctly.
4876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4877 since some C++ compilers masquerading as C compilers
4878 incorrectly reject 9223372036854775807. */
4879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4881 && LARGE_OFF_T % 2147483647 == 1)
4882 ? 1 : -1];
4883 int
4884 main ()
4885 {
4886
4887 ;
4888 return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4909 ac_cv_sys_file_offset_bits=64; break
4910 else
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914
4915 fi
4916
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_sys_file_offset_bits=unknown
4919 break
4920 done
4921 fi
4922 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4923 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4924 case $ac_cv_sys_file_offset_bits in #(
4925 no | unknown) ;;
4926 *)
4927 cat >>confdefs.h <<_ACEOF
4928 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4929 _ACEOF
4930 ;;
4931 esac
4932 rm -rf conftest*
4933 if test $ac_cv_sys_file_offset_bits = unknown; then
4934 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4935 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4936 if test "${ac_cv_sys_large_files+set}" = set; then
4937 $as_echo_n "(cached) " >&6
4938 else
4939 while :; do
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <sys/types.h>
4947 /* Check that off_t can represent 2**63 - 1 correctly.
4948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4949 since some C++ compilers masquerading as C compilers
4950 incorrectly reject 9223372036854775807. */
4951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4953 && LARGE_OFF_T % 2147483647 == 1)
4954 ? 1 : -1];
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4970 $as_echo "$ac_try_echo") >&5
4971 (eval "$ac_compile") 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } && {
4978 test -z "$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4980 } && test -s conftest.$ac_objext; then
4981 ac_cv_sys_large_files=no; break
4982 else
4983 $as_echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986
4987 fi
4988
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #define _LARGE_FILES 1
4997 #include <sys/types.h>
4998 /* Check that off_t can represent 2**63 - 1 correctly.
4999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5000 since some C++ compilers masquerading as C compilers
5001 incorrectly reject 9223372036854775807. */
5002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5004 && LARGE_OFF_T % 2147483647 == 1)
5005 ? 1 : -1];
5006 int
5007 main ()
5008 {
5009
5010 ;
5011 return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (ac_try="$ac_compile"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022 (eval "$ac_compile") 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest.$ac_objext; then
5032 ac_cv_sys_large_files=1; break
5033 else
5034 $as_echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037
5038 fi
5039
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cv_sys_large_files=unknown
5042 break
5043 done
5044 fi
5045 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5046 $as_echo "$ac_cv_sys_large_files" >&6; }
5047 case $ac_cv_sys_large_files in #(
5048 no | unknown) ;;
5049 *)
5050 cat >>confdefs.h <<_ACEOF
5051 #define _LARGE_FILES $ac_cv_sys_large_files
5052 _ACEOF
5053 ;;
5054 esac
5055 rm -rf conftest*
5056 fi
5057 fi
5058
5059
5060
5061 SIGNAMES_O=
5062 SIGNAMES_H=lsignames.h
5063
5064
5065
5066 CROSS_COMPILE=
5067 if test "x$cross_compiling" = "xyes"; then
5068 case "${host}" in
5069 *-cygwin*)
5070 cross_cache=${srcdir}/cross-build/cygwin32.cache
5071 ;;
5072 *-mingw*)
5073 cross_cache=${srcdir}/cross-build/cygwin32.cache
5074 ;;
5075 i[3456]86-*-beos*)
5076 cross_cache=${srcdir}/cross-build/x86-beos.cache
5077 ;;
5078 *) echo "configure: cross-compiling for $host is not supported" >&2
5079 ;;
5080 esac
5081 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5082 echo "loading cross-build cache file ${cross_cache}"
5083 . ${cross_cache}
5084 fi
5085 unset cross_cache
5086 SIGNAMES_O='signames.o'
5087 CROSS_COMPILE='-DCROSS_COMPILING'
5088
5089 fi
5090
5091
5092
5093 if test -z "$CC_FOR_BUILD"; then
5094 if test "x$cross_compiling" = "xno"; then
5095 CC_FOR_BUILD='$(CC)'
5096 else
5097 CC_FOR_BUILD=gcc
5098 fi
5099 fi
5100
5101
5102
5103 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5104
5105 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5106
5107 if test "$opt_profiling" = "yes"; then
5108 PROFILE_FLAGS=-pg
5109 case "$host_os" in
5110 solaris2*) ;;
5111 *) opt_static_link=yes ;;
5112 esac
5113 DEBUG= MALLOC_DEBUG=
5114 fi
5115
5116 if test "$opt_static_link" = yes; then
5117 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5118 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5119 STATIC_LD="-static"
5120 case "$host_os" in
5121 solaris2*) ;;
5122 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5123 esac
5124 fi
5125 fi
5126
5127 if test "X$cross_compiling" = "Xno"; then
5128 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5129 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5130 else
5131 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5132 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5133 fi
5134
5135 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 if test $ac_cv_c_compiler_gnu = yes; then
5147 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5148 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5151 else
5152 ac_pattern="Autoconf.*'x'"
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 #include <sgtty.h>
5160 Autoconf TIOCGETP
5161 _ACEOF
5162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5164 ac_cv_prog_gcc_traditional=yes
5165 else
5166 ac_cv_prog_gcc_traditional=no
5167 fi
5168 rm -f conftest*
5169
5170
5171 if test $ac_cv_prog_gcc_traditional = no; then
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <termio.h>
5179 Autoconf TCGETA
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5183 ac_cv_prog_gcc_traditional=yes
5184 fi
5185 rm -f conftest*
5186
5187 fi
5188 fi
5189 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5190 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5191 if test $ac_cv_prog_gcc_traditional = yes; then
5192 CC="$CC -traditional"
5193 fi
5194 fi
5195
5196
5197
5198 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5199 then
5200 # If the user specified --with-installed-readline=PREFIX and PREFIX
5201 # is not `yes', set ac_cv_rl_prefix to PREFIX
5202 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5203
5204
5205 if test "X$bash_cv_termcap_lib" = "X"; then
5206 _bash_needmsg=yes
5207 else
5208 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5209 $as_echo_n "checking which library has the termcap functions... " >&6; }
5210 _bash_needmsg=
5211 fi
5212 if test "${bash_cv_termcap_lib+set}" = set; then
5213 $as_echo_n "(cached) " >&6
5214 else
5215 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5216 $as_echo_n "checking for tgetent... " >&6; }
5217 if test "${ac_cv_func_tgetent+set}" = set; then
5218 $as_echo_n "(cached) " >&6
5219 else
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5228 #define tgetent innocuous_tgetent
5229
5230 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char tgetent (); below.
5232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5233 <limits.h> exists even on freestanding compilers. */
5234
5235 #ifdef __STDC__
5236 # include <limits.h>
5237 #else
5238 # include <assert.h>
5239 #endif
5240
5241 #undef tgetent
5242
5243 /* Override any GCC internal prototype to avoid an error.
5244 Use char because int might match the return type of a GCC
5245 builtin and then its argument prototype would still apply. */
5246 #ifdef __cplusplus
5247 extern "C"
5248 #endif
5249 char tgetent ();
5250 /* The GNU C library defines this for functions which it implements
5251 to always fail with ENOSYS. Some functions are actually named
5252 something starting with __ and the normal name is an alias. */
5253 #if defined __stub_tgetent || defined __stub___tgetent
5254 choke me
5255 #endif
5256
5257 int
5258 main ()
5259 {
5260 return tgetent ();
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272 $as_echo "$ac_try_echo") >&5
5273 (eval "$ac_link") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest$ac_exeext && {
5283 test "$cross_compiling" = yes ||
5284 $as_test_x conftest$ac_exeext
5285 }; then
5286 ac_cv_func_tgetent=yes
5287 else
5288 $as_echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 ac_cv_func_tgetent=no
5292 fi
5293
5294 rm -rf conftest.dSYM
5295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5296 conftest$ac_exeext conftest.$ac_ext
5297 fi
5298 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5299 $as_echo "$ac_cv_func_tgetent" >&6; }
5300 if test "x$ac_cv_func_tgetent" = x""yes; then
5301 bash_cv_termcap_lib=libc
5302 else
5303 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5304 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5305 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-ltermcap $LIBS"
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply. */
5320 #ifdef __cplusplus
5321 extern "C"
5322 #endif
5323 char tgetent ();
5324 int
5325 main ()
5326 {
5327 return tgetent ();
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5339 $as_echo "$ac_try_echo") >&5
5340 (eval "$ac_link") 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest$ac_exeext && {
5350 test "$cross_compiling" = yes ||
5351 $as_test_x conftest$ac_exeext
5352 }; then
5353 ac_cv_lib_termcap_tgetent=yes
5354 else
5355 $as_echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ac_cv_lib_termcap_tgetent=no
5359 fi
5360
5361 rm -rf conftest.dSYM
5362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5363 conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5368 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
5369 bash_cv_termcap_lib=libtermcap
5370 else
5371 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5372 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5373 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5374 $as_echo_n "(cached) " >&6
5375 else
5376 ac_check_lib_save_LIBS=$LIBS
5377 LIBS="-ltinfo $LIBS"
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384
5385 /* Override any GCC internal prototype to avoid an error.
5386 Use char because int might match the return type of a GCC
5387 builtin and then its argument prototype would still apply. */
5388 #ifdef __cplusplus
5389 extern "C"
5390 #endif
5391 char tgetent ();
5392 int
5393 main ()
5394 {
5395 return tgetent ();
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (ac_try="$ac_link"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5407 $as_echo "$ac_try_echo") >&5
5408 (eval "$ac_link") 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && {
5415 test -z "$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 } && test -s conftest$ac_exeext && {
5418 test "$cross_compiling" = yes ||
5419 $as_test_x conftest$ac_exeext
5420 }; then
5421 ac_cv_lib_tinfo_tgetent=yes
5422 else
5423 $as_echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_cv_lib_tinfo_tgetent=no
5427 fi
5428
5429 rm -rf conftest.dSYM
5430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5431 conftest$ac_exeext conftest.$ac_ext
5432 LIBS=$ac_check_lib_save_LIBS
5433 fi
5434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5435 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5436 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5437 bash_cv_termcap_lib=libtinfo
5438 else
5439 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5440 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5441 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5442 $as_echo_n "(cached) " >&6
5443 else
5444 ac_check_lib_save_LIBS=$LIBS
5445 LIBS="-lcurses $LIBS"
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452
5453 /* Override any GCC internal prototype to avoid an error.
5454 Use char because int might match the return type of a GCC
5455 builtin and then its argument prototype would still apply. */
5456 #ifdef __cplusplus
5457 extern "C"
5458 #endif
5459 char tgetent ();
5460 int
5461 main ()
5462 {
5463 return tgetent ();
5464 ;
5465 return 0;
5466 }
5467 _ACEOF
5468 rm -f conftest.$ac_objext conftest$ac_exeext
5469 if { (ac_try="$ac_link"
5470 case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473 esac
5474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5475 $as_echo "$ac_try_echo") >&5
5476 (eval "$ac_link") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest$ac_exeext && {
5486 test "$cross_compiling" = yes ||
5487 $as_test_x conftest$ac_exeext
5488 }; then
5489 ac_cv_lib_curses_tgetent=yes
5490 else
5491 $as_echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_cv_lib_curses_tgetent=no
5495 fi
5496
5497 rm -rf conftest.dSYM
5498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5499 conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5501 fi
5502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5503 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5504 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
5505 bash_cv_termcap_lib=libcurses
5506 else
5507 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5508 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5509 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-lncurses $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520
5521 /* Override any GCC internal prototype to avoid an error.
5522 Use char because int might match the return type of a GCC
5523 builtin and then its argument prototype would still apply. */
5524 #ifdef __cplusplus
5525 extern "C"
5526 #endif
5527 char tgetent ();
5528 int
5529 main ()
5530 {
5531 return tgetent ();
5532 ;
5533 return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (ac_try="$ac_link"
5538 case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541 esac
5542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5543 $as_echo "$ac_try_echo") >&5
5544 (eval "$ac_link") 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest$ac_exeext && {
5554 test "$cross_compiling" = yes ||
5555 $as_test_x conftest$ac_exeext
5556 }; then
5557 ac_cv_lib_ncurses_tgetent=yes
5558 else
5559 $as_echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 ac_cv_lib_ncurses_tgetent=no
5563 fi
5564
5565 rm -rf conftest.dSYM
5566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5567 conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5569 fi
5570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5571 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5572 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5573 bash_cv_termcap_lib=libncurses
5574 else
5575 bash_cv_termcap_lib=gnutermcap
5576 fi
5577
5578 fi
5579
5580 fi
5581
5582 fi
5583
5584 fi
5585
5586 fi
5587
5588 if test "X$_bash_needmsg" = "Xyes"; then
5589 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5590 $as_echo_n "checking which library has the termcap functions... " >&6; }
5591 fi
5592 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5593 $as_echo "using $bash_cv_termcap_lib" >&6; }
5594 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5595 LDFLAGS="$LDFLAGS -L./lib/termcap"
5596 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5597 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5598 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5599 TERMCAP_LIB=-ltermcap
5600 TERMCAP_DEP=
5601 elif test $bash_cv_termcap_lib = libtinfo; then
5602 TERMCAP_LIB=-ltinfo
5603 TERMCAP_DEP=
5604 elif test $bash_cv_termcap_lib = libncurses; then
5605 TERMCAP_LIB=-lncurses
5606 TERMCAP_DEP=
5607 elif test $bash_cv_termcap_lib = libc; then
5608 TERMCAP_LIB=
5609 TERMCAP_DEP=
5610 else
5611 TERMCAP_LIB=-lcurses
5612 TERMCAP_DEP=
5613 fi
5614
5615
5616
5617
5618 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5619 $as_echo_n "checking version of installed readline library... " >&6; }
5620
5621 # What a pain in the ass this is.
5622
5623 # save cpp and ld options
5624 _save_CFLAGS="$CFLAGS"
5625 _save_LDFLAGS="$LDFLAGS"
5626 _save_LIBS="$LIBS"
5627
5628 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5629 # allows the caller to do something like $_rl_prefix=$withval if the user
5630 # specifies --with-installed-readline=PREFIX as an argument to configure
5631
5632 if test -z "$ac_cv_rl_prefix"; then
5633 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5634 fi
5635
5636 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5637 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5638
5639 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5640 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5641 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5642
5643 if test "${ac_cv_rl_version+set}" = set; then
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test "$cross_compiling" = yes; then
5647 ac_cv_rl_version='4.2'
5648 else
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655
5656 #include <stdio.h>
5657 #include <readline/readline.h>
5658
5659 extern int rl_gnu_readline_p;
5660
5661 main()
5662 {
5663 FILE *fp;
5664 fp = fopen("conftest.rlv", "w");
5665 if (fp == 0)
5666 exit(1);
5667 if (rl_gnu_readline_p != 1)
5668 fprintf(fp, "0.0\n");
5669 else
5670 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5671 fclose(fp);
5672 exit(0);
5673 }
5674
5675 _ACEOF
5676 rm -f conftest$ac_exeext
5677 if { (ac_try="$ac_link"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5683 $as_echo "$ac_try_echo") >&5
5684 (eval "$ac_link") 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5688 { (case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_try") 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_rl_version=`cat conftest.rlv`
5699 else
5700 $as_echo "$as_me: program exited with status $ac_status" >&5
5701 $as_echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 ( exit $ac_status )
5705 ac_cv_rl_version='0.0'
5706 fi
5707 rm -rf conftest.dSYM
5708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5709 fi
5710
5711
5712 fi
5713
5714
5715 CFLAGS="$_save_CFLAGS"
5716 LDFLAGS="$_save_LDFLAGS"
5717 LIBS="$_save_LIBS"
5718
5719 RL_MAJOR=0
5720 RL_MINOR=0
5721
5722 # (
5723 case "$ac_cv_rl_version" in
5724 2*|3*|4*|5*|6*|7*|8*|9*)
5725 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5726 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5727 ;;
5728 esac
5729
5730 # (((
5731 case $RL_MAJOR in
5732 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5733 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5734 *) _RL_MAJOR=00 ;;
5735 esac
5736
5737 # (((
5738 case $RL_MINOR in
5739 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5740 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5741 *) _RL_MINOR=00 ;;
5742 esac
5743
5744 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5745
5746 # Readline versions greater than 4.2 have these defines in readline.h
5747
5748 if test $ac_cv_rl_version = '0.0' ; then
5749 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5750 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5751 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5752 # set these for use by the caller
5753 RL_PREFIX=$ac_cv_rl_prefix
5754 RL_LIBDIR=$ac_cv_rl_libdir
5755 RL_INCLUDEDIR=$ac_cv_rl_includedir
5756 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5757 $as_echo "$ac_cv_rl_version" >&6; }
5758 else
5759
5760
5761 cat >>confdefs.h <<_ACEOF
5762 #define RL_READLINE_VERSION $RL_VERSION
5763 _ACEOF
5764
5765
5766 cat >>confdefs.h <<_ACEOF
5767 #define RL_VERSION_MAJOR $RL_MAJOR
5768 _ACEOF
5769
5770
5771 cat >>confdefs.h <<_ACEOF
5772 #define RL_VERSION_MINOR $RL_MINOR
5773 _ACEOF
5774
5775
5776
5777
5778
5779
5780 # set these for use by the caller
5781 RL_PREFIX=$ac_cv_rl_prefix
5782 RL_LIBDIR=$ac_cv_rl_libdir
5783 RL_INCLUDEDIR=$ac_cv_rl_includedir
5784
5785 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5786 $as_echo "$ac_cv_rl_version" >&6; }
5787
5788 fi
5789
5790
5791 case "$ac_cv_rl_version" in
5792 5*|6*|7*|8*|9*) ;;
5793 *) opt_with_installed_readline=no
5794 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5795 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5796 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5797 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5798 ;;
5799 esac
5800 fi
5801
5802 TILDE_LIB=-ltilde
5803 if test $opt_readline = yes; then
5804 cat >>confdefs.h <<\_ACEOF
5805 #define READLINE 1
5806 _ACEOF
5807
5808 if test "$opt_with_installed_readline" != "no" ; then
5809 case "$opt_with_installed_readline" in
5810 yes) RL_INCLUDE= ;;
5811 *) case "$RL_INCLUDEDIR" in
5812 /usr/include) ;;
5813 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5814 esac
5815 ;;
5816 esac
5817 READLINE_DEP=
5818 READLINE_LIB=-lreadline
5819 # section for OS versions that don't allow unresolved symbols
5820 # to be compiled into dynamic libraries.
5821 case "$host_os" in
5822 cygwin*) TILDE_LIB= ;;
5823 esac
5824 else
5825 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5826 READLINE_DEP='$(READLINE_LIBRARY)'
5827 # section for OS versions that ship an older/broken version of
5828 # readline as a standard dynamic library and don't allow a
5829 # static version specified as -llibname to override the
5830 # dynamic version
5831 case "${host_os}" in
5832 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5833 *) READLINE_LIB=-lreadline ;;
5834 esac
5835 fi
5836 else
5837 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5838 READLINE_LIB= READLINE_DEP=
5839 fi
5840 if test $opt_history = yes || test $opt_bang_history = yes; then
5841 if test $opt_history = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HISTORY 1
5844 _ACEOF
5845
5846 fi
5847 if test $opt_bang_history = yes; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define BANG_HISTORY 1
5850 _ACEOF
5851
5852 fi
5853 if test "$opt_with_installed_readline" != "no"; then
5854 HIST_LIBDIR=$RL_LIBDIR
5855 HISTORY_DEP=
5856 HISTORY_LIB=-lhistory
5857 case "$opt_with_installed_readline" in
5858 yes) RL_INCLUDE= ;;
5859 *) case "$RL_INCLUDEDIR" in
5860 /usr/include) ;;
5861 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5862 esac
5863 ;;
5864 esac
5865 else
5866 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5867 HISTORY_DEP='$(HISTORY_LIBRARY)'
5868 # section for OS versions that ship an older version of
5869 # readline as a standard dynamic library and don't allow a
5870 # static version specified as -llibname to override the
5871 # dynamic version
5872 case "${host_os}" in
5873 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5874 *) HISTORY_LIB=-lhistory ;;
5875 esac
5876 fi
5877 else
5878 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5879 HISTORY_LIB= HISTORY_DEP=
5880 fi
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 # Find a good install program. We prefer a C program (faster),
5893 # so one script is as good as another. But avoid the broken or
5894 # incompatible versions:
5895 # SysV /etc/install, /usr/sbin/install
5896 # SunOS /usr/etc/install
5897 # IRIX /sbin/install
5898 # AIX /bin/install
5899 # AmigaOS /C/install, which installs bootblocks on floppy discs
5900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5903 # OS/2's system install, which has a completely different semantic
5904 # ./install, which can be erroneously created by make from ./install.sh.
5905 # Reject install programs that cannot install multiple files.
5906 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5907 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5908 if test -z "$INSTALL"; then
5909 if test "${ac_cv_path_install+set}" = set; then
5910 $as_echo_n "(cached) " >&6
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 # Account for people who put trailing slashes in PATH elements.
5918 case $as_dir/ in
5919 ./ | .// | /cC/* | \
5920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5921 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5922 /usr/ucb/* ) ;;
5923 *)
5924 # OSF1 and SCO ODT 3.0 have their own names for install.
5925 # Don't use installbsd from OSF since it installs stuff as root
5926 # by default.
5927 for ac_prog in ginstall scoinst install; do
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5930 if test $ac_prog = install &&
5931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5932 # AIX install. It has an incompatible calling convention.
5933 :
5934 elif test $ac_prog = install &&
5935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5936 # program-specific install script used by HP pwplus--don't use.
5937 :
5938 else
5939 rm -rf conftest.one conftest.two conftest.dir
5940 echo one > conftest.one
5941 echo two > conftest.two
5942 mkdir conftest.dir
5943 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5944 test -s conftest.one && test -s conftest.two &&
5945 test -s conftest.dir/conftest.one &&
5946 test -s conftest.dir/conftest.two
5947 then
5948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5949 break 3
5950 fi
5951 fi
5952 fi
5953 done
5954 done
5955 ;;
5956 esac
5957
5958 done
5959 IFS=$as_save_IFS
5960
5961 rm -rf conftest.one conftest.two conftest.dir
5962
5963 fi
5964 if test "${ac_cv_path_install+set}" = set; then
5965 INSTALL=$ac_cv_path_install
5966 else
5967 # As a last resort, use the slow shell script. Don't cache a
5968 # value for INSTALL within a source directory, because that will
5969 # break other packages using the cache if that directory is
5970 # removed, or if the value is a relative name.
5971 INSTALL=$ac_install_sh
5972 fi
5973 fi
5974 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5975 $as_echo "$INSTALL" >&6; }
5976
5977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5978 # It thinks the first close brace ends the variable substitution.
5979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5980
5981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5982
5983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5984
5985 # Extract the first word of "ar", so it can be a program name with args.
5986 set dummy ar; ac_word=$2
5987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_AR+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5991 else
5992 if test -n "$AR"; then
5993 ac_cv_prog_AR="$AR" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_AR=""
6003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6011 fi
6012 fi
6013 AR=$ac_cv_prog_AR
6014 if test -n "$AR"; then
6015 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6016 $as_echo "$AR" >&6; }
6017 else
6018 { $as_echo "$as_me:$LINENO: result: no" >&5
6019 $as_echo "no" >&6; }
6020 fi
6021
6022
6023 test -n "$ARFLAGS" || ARFLAGS="cr"
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6056 else
6057 { $as_echo "$as_me:$LINENO: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064 ac_ct_RANLIB=$RANLIB
6065 # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_RANLIB="ranlib"
6083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6096 else
6097 { $as_echo "$as_me:$LINENO: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101 if test "x$ac_ct_RANLIB" = x; then
6102 RANLIB=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 RANLIB=$ac_ct_RANLIB
6111 fi
6112 else
6113 RANLIB="$ac_cv_prog_RANLIB"
6114 fi
6115
6116 for ac_prog in 'bison -y' byacc
6117 do
6118 # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_YACC+set}" = set; then
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$YACC"; then
6126 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_YACC="$ac_prog"
6136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 YACC=$ac_cv_prog_YACC
6146 if test -n "$YACC"; then
6147 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6148 $as_echo "$YACC" >&6; }
6149 else
6150 { $as_echo "$as_me:$LINENO: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 test -n "$YACC" && break
6156 done
6157 test -n "$YACC" || YACC="yacc"
6158
6159 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6160 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6161 set x ${MAKE-make}
6162 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6163 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6164 $as_echo_n "(cached) " >&6
6165 else
6166 cat >conftest.make <<\_ACEOF
6167 SHELL = /bin/sh
6168 all:
6169 @echo '@@@%%%=$(MAKE)=@@@%%%'
6170 _ACEOF
6171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6172 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6173 *@@@%%%=?*=@@@%%%*)
6174 eval ac_cv_prog_make_${ac_make}_set=yes;;
6175 *)
6176 eval ac_cv_prog_make_${ac_make}_set=no;;
6177 esac
6178 rm -f conftest.make
6179 fi
6180 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6181 { $as_echo "$as_me:$LINENO: result: yes" >&5
6182 $as_echo "yes" >&6; }
6183 SET_MAKE=
6184 else
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6187 SET_MAKE="MAKE=${MAKE-make}"
6188 fi
6189
6190
6191 case "$host_os" in
6192 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6193 *) MAKE_SHELL=/bin/sh ;;
6194 esac
6195
6196
6197 if test x$SIZE = x; then
6198 if test x$ac_tool_prefix = x; then
6199 SIZE=size
6200 else
6201 SIZE=${ac_tool_prefix}size
6202 save_IFS=$IFS ; IFS=:
6203 size_found=0
6204 for dir in $PATH; do
6205 if test -x $dir/$SIZE ; then
6206 size_found=1
6207 break
6208 fi
6209 done
6210 if test $size_found -eq 0; then
6211 SIZE=:
6212 fi
6213 IFS=$save_IFS
6214 fi
6215 fi
6216
6217
6218 cat >>confdefs.h <<\_ACEOF
6219 #define _GNU_SOURCE 1
6220 _ACEOF
6221
6222
6223 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6224 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6225 if test "${ac_cv_c_const+set}" = set; then
6226 $as_echo_n "(cached) " >&6
6227 else
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234
6235 int
6236 main ()
6237 {
6238 /* FIXME: Include the comments suggested by Paul. */
6239 #ifndef __cplusplus
6240 /* Ultrix mips cc rejects this. */
6241 typedef int charset[2];
6242 const charset cs;
6243 /* SunOS 4.1.1 cc rejects this. */
6244 char const *const *pcpcc;
6245 char **ppc;
6246 /* NEC SVR4.0.2 mips cc rejects this. */
6247 struct point {int x, y;};
6248 static struct point const zero = {0,0};
6249 /* AIX XL C 1.02.0.0 rejects this.
6250 It does not let you subtract one const X* pointer from another in
6251 an arm of an if-expression whose if-part is not a constant
6252 expression */
6253 const char *g = "string";
6254 pcpcc = &g + (g ? g-g : 0);
6255 /* HPUX 7.0 cc rejects these. */
6256 ++pcpcc;
6257 ppc = (char**) pcpcc;
6258 pcpcc = (char const *const *) ppc;
6259 { /* SCO 3.2v4 cc rejects this. */
6260 char *t;
6261 char const *s = 0 ? (char *) 0 : (char const *) 0;
6262
6263 *t++ = 0;
6264 if (s) return 0;
6265 }
6266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6267 int x[] = {25, 17};
6268 const int *foo = &x[0];
6269 ++foo;
6270 }
6271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6272 typedef const int *iptr;
6273 iptr p = 0;
6274 ++p;
6275 }
6276 { /* AIX XL C 1.02.0.0 rejects this saying
6277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6278 struct s { int j; const int *ap[3]; };
6279 struct s *b; b->j = 5;
6280 }
6281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6282 const int foo = 10;
6283 if (!foo) return 0;
6284 }
6285 return !cs[0] && !zero.x;
6286 #endif
6287
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 ac_cv_c_const=yes
6311 else
6312 $as_echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 ac_cv_c_const=no
6316 fi
6317
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6321 $as_echo "$ac_cv_c_const" >&6; }
6322 if test $ac_cv_c_const = no; then
6323
6324 cat >>confdefs.h <<\_ACEOF
6325 #define const /**/
6326 _ACEOF
6327
6328 fi
6329
6330 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6331 $as_echo_n "checking for inline... " >&6; }
6332 if test "${ac_cv_c_inline+set}" = set; then
6333 $as_echo_n "(cached) " >&6
6334 else
6335 ac_cv_c_inline=no
6336 for ac_kw in inline __inline__ __inline; do
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #ifndef __cplusplus
6344 typedef int foo_t;
6345 static $ac_kw foo_t static_foo () {return 0; }
6346 $ac_kw foo_t foo () {return 0; }
6347 #endif
6348
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357 $as_echo "$ac_try_echo") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 ac_cv_c_inline=$ac_kw
6369 else
6370 $as_echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373
6374 fi
6375
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 test "$ac_cv_c_inline" != no && break
6378 done
6379
6380 fi
6381 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6382 $as_echo "$ac_cv_c_inline" >&6; }
6383
6384
6385 case $ac_cv_c_inline in
6386 inline | yes) ;;
6387 *)
6388 case $ac_cv_c_inline in
6389 no) ac_val=;;
6390 *) ac_val=$ac_cv_c_inline;;
6391 esac
6392 cat >>confdefs.h <<_ACEOF
6393 #ifndef __cplusplus
6394 #define inline $ac_val
6395 #endif
6396 _ACEOF
6397 ;;
6398 esac
6399
6400
6401 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6402 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6403 if test "${ac_cv_c_bigendian+set}" = set; then
6404 $as_echo_n "(cached) " >&6
6405 else
6406 ac_cv_c_bigendian=unknown
6407 # See if we're dealing with a universal compiler.
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #ifndef __APPLE_CC__
6415 not a universal capable compiler
6416 #endif
6417 typedef int dummy;
6418
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6422 case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425 esac
6426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6427 $as_echo "$ac_try_echo") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
6438
6439 # Check for potential -arch flags. It is not universal unless
6440 # there are some -arch flags. Note that *ppc* also matches
6441 # ppc64. This check is also rather less than ideal.
6442 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6443 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6444 esac
6445 else
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 if test $ac_cv_c_bigendian = unknown; then
6454 # See if sys/param.h defines the BYTE_ORDER macro.
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 #include <sys/types.h>
6462 #include <sys/param.h>
6463
6464 int
6465 main ()
6466 {
6467 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6468 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6469 && LITTLE_ENDIAN)
6470 bogus endian macros
6471 #endif
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 # It does; now see whether it defined to BIG_ENDIAN or not.
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 #include <sys/param.h>
6504
6505 int
6506 main ()
6507 {
6508 #if BYTE_ORDER != BIG_ENDIAN
6509 not big endian
6510 #endif
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 rm -f conftest.$ac_objext
6517 if { (ac_try="$ac_compile"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.$ac_objext; then
6534 ac_cv_c_bigendian=yes
6535 else
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 ac_cv_c_bigendian=no
6540 fi
6541
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 else
6544 $as_echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547
6548 fi
6549
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 fi
6552 if test $ac_cv_c_bigendian = unknown; then
6553 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <limits.h>
6561
6562 int
6563 main ()
6564 {
6565 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6566 bogus endian macros
6567 #endif
6568
6569 ;
6570 return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6580 $as_echo "$ac_try_echo") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest.$ac_objext; then
6591 # It does; now see whether it defined to _BIG_ENDIAN or not.
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <limits.h>
6599
6600 int
6601 main ()
6602 {
6603 #ifndef _BIG_ENDIAN
6604 not big endian
6605 #endif
6606
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (ac_try="$ac_compile"
6613 case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616 esac
6617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6618 $as_echo "$ac_try_echo") >&5
6619 (eval "$ac_compile") 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && {
6626 test -z "$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.$ac_objext; then
6629 ac_cv_c_bigendian=yes
6630 else
6631 $as_echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634 ac_cv_c_bigendian=no
6635 fi
6636
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 else
6639 $as_echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642
6643 fi
6644
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 fi
6647 if test $ac_cv_c_bigendian = unknown; then
6648 # Compile a test program.
6649 if test "$cross_compiling" = yes; then
6650 # Try to guess by grepping values from an object file.
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 short int ascii_mm[] =
6658 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6659 short int ascii_ii[] =
6660 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6661 int use_ascii (int i) {
6662 return ascii_mm[i] + ascii_ii[i];
6663 }
6664 short int ebcdic_ii[] =
6665 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6666 short int ebcdic_mm[] =
6667 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6668 int use_ebcdic (int i) {
6669 return ebcdic_mm[i] + ebcdic_ii[i];
6670 }
6671 extern int foo;
6672
6673 int
6674 main ()
6675 {
6676 return use_ascii (foo) == use_ebcdic (foo);
6677 ;
6678 return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686 esac
6687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6688 $as_echo "$ac_try_echo") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6699 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6700 ac_cv_c_bigendian=yes
6701 fi
6702 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6703 if test "$ac_cv_c_bigendian" = unknown; then
6704 ac_cv_c_bigendian=no
6705 else
6706 # finding both strings is unlikely to happen, but who knows?
6707 ac_cv_c_bigendian=unknown
6708 fi
6709 fi
6710 else
6711 $as_echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714
6715 fi
6716
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 $ac_includes_default
6726 int
6727 main ()
6728 {
6729
6730 /* Are we little or big endian? From Harbison&Steele. */
6731 union
6732 {
6733 long int l;
6734 char c[sizeof (long int)];
6735 } u;
6736 u.l = 1;
6737 return u.c[sizeof (long int) - 1] == 1;
6738
6739 ;
6740 return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest$ac_exeext
6744 if { (ac_try="$ac_link"
6745 case "(($ac_try" in
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6748 esac
6749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751 (eval "$ac_link") 2>&5
6752 ac_status=$?
6753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6755 { (case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758 esac
6759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760 $as_echo "$ac_try_echo") >&5
6761 (eval "$ac_try") 2>&5
6762 ac_status=$?
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_c_bigendian=no
6766 else
6767 $as_echo "$as_me: program exited with status $ac_status" >&5
6768 $as_echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 ( exit $ac_status )
6772 ac_cv_c_bigendian=yes
6773 fi
6774 rm -rf conftest.dSYM
6775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6776 fi
6777
6778
6779 fi
6780 fi
6781 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6782 $as_echo "$ac_cv_c_bigendian" >&6; }
6783 case $ac_cv_c_bigendian in #(
6784 yes)
6785 cat >>confdefs.h <<\_ACEOF
6786 #define WORDS_BIGENDIAN 1
6787 _ACEOF
6788 ;; #(
6789 no)
6790 ;; #(
6791 universal)
6792
6793 cat >>confdefs.h <<\_ACEOF
6794 #define AC_APPLE_UNIVERSAL_BUILD 1
6795 _ACEOF
6796
6797 ;; #(
6798 *)
6799 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6800 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6801 $as_echo "$as_me: error: unknown endianness
6802 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6803 { (exit 1); exit 1; }; } ;;
6804 esac
6805
6806 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6807 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6808 if test "${ac_cv_c_stringize+set}" = set; then
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #define x(y) #y
6818
6819 char *s = x(teststring);
6820 _ACEOF
6821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6822 $EGREP "#teststring" >/dev/null 2>&1; then
6823 ac_cv_c_stringize=no
6824 else
6825 ac_cv_c_stringize=yes
6826 fi
6827 rm -f conftest*
6828
6829 fi
6830 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6831 $as_echo "$ac_cv_c_stringize" >&6; }
6832 if test $ac_cv_c_stringize = yes; then
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_STRINGIZE 1
6836 _ACEOF
6837
6838 fi
6839
6840
6841
6842 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6843 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6844 if test "${ac_cv_type_long_double_wider+set}" = set; then
6845 $as_echo_n "(cached) " >&6
6846 else
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <float.h>
6854 long double const a[] =
6855 {
6856 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6857 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6858 };
6859 long double
6860 f (long double x)
6861 {
6862 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6863 + (x ? f (x) : 'c'));
6864 }
6865
6866 int
6867 main ()
6868 {
6869 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6870 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6871 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6872 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6873 && (int) LDBL_EPSILON == 0
6874 )];
6875 test_array [0] = 0
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 ac_cv_type_long_double_wider=yes
6900 else
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 ac_cv_type_long_double_wider=no
6905 fi
6906
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 fi
6909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6910 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6911 if test $ac_cv_type_long_double_wider = yes; then
6912
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_LONG_DOUBLE_WIDER 1
6915 _ACEOF
6916
6917 fi
6918
6919 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6920 if test $ac_cv_c_long_double = yes; then
6921
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_LONG_DOUBLE 1
6924 _ACEOF
6925
6926 fi
6927
6928 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6929 $as_echo_n "checking for function prototypes... " >&6; }
6930 if test "$ac_cv_prog_cc_c89" != no; then
6931 { $as_echo "$as_me:$LINENO: result: yes" >&5
6932 $as_echo "yes" >&6; }
6933
6934 cat >>confdefs.h <<\_ACEOF
6935 #define PROTOTYPES 1
6936 _ACEOF
6937
6938
6939 cat >>confdefs.h <<\_ACEOF
6940 #define __PROTOTYPES 1
6941 _ACEOF
6942
6943 else
6944 { $as_echo "$as_me:$LINENO: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948
6949 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6950 $as_echo_n "checking whether char is unsigned... " >&6; }
6951 if test "${ac_cv_c_char_unsigned+set}" = set; then
6952 $as_echo_n "(cached) " >&6
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6961 int
6962 main ()
6963 {
6964 static int test_array [1 - 2 * !(((char) -1) < 0)];
6965 test_array [0] = 0
6966
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6989 ac_cv_c_char_unsigned=no
6990 else
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ac_cv_c_char_unsigned=yes
6995 fi
6996
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 fi
6999 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7000 $as_echo "$ac_cv_c_char_unsigned" >&6; }
7001 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7002 cat >>confdefs.h <<\_ACEOF
7003 #define __CHAR_UNSIGNED__ 1
7004 _ACEOF
7005
7006 fi
7007
7008 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
7009 $as_echo_n "checking for working volatile... " >&6; }
7010 if test "${ac_cv_c_volatile+set}" = set; then
7011 $as_echo_n "(cached) " >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019
7020 int
7021 main ()
7022 {
7023
7024 volatile int x;
7025 int * volatile y = (int *) 0;
7026 return !x && !y;
7027 ;
7028 return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7033 case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036 esac
7037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_compile") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } && {
7046 test -z "$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 } && test -s conftest.$ac_objext; then
7049 ac_cv_c_volatile=yes
7050 else
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054 ac_cv_c_volatile=no
7055 fi
7056
7057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 fi
7059 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7060 $as_echo "$ac_cv_c_volatile" >&6; }
7061 if test $ac_cv_c_volatile = no; then
7062
7063 cat >>confdefs.h <<\_ACEOF
7064 #define volatile /**/
7065 _ACEOF
7066
7067 fi
7068
7069 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7070 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7071 if test "${ac_cv_c_restrict+set}" = set; then
7072 $as_echo_n "(cached) " >&6
7073 else
7074 ac_cv_c_restrict=no
7075 # The order here caters to the fact that C++ does not require restrict.
7076 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 typedef int * int_ptr;
7084 int foo (int_ptr $ac_kw ip) {
7085 return ip[0];
7086 }
7087 int
7088 main ()
7089 {
7090 int s[1];
7091 int * $ac_kw t = s;
7092 t[0] = 0;
7093 return foo(t)
7094 ;
7095 return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7100 case "(($ac_try" in
7101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7103 esac
7104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7105 $as_echo "$ac_try_echo") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.$ac_objext; then
7116 ac_cv_c_restrict=$ac_kw
7117 else
7118 $as_echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121
7122 fi
7123
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 test "$ac_cv_c_restrict" != no && break
7126 done
7127
7128 fi
7129 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7130 $as_echo "$ac_cv_c_restrict" >&6; }
7131
7132
7133 case $ac_cv_c_restrict in
7134 restrict) ;;
7135 no) cat >>confdefs.h <<\_ACEOF
7136 #define restrict /**/
7137 _ACEOF
7138 ;;
7139 *) cat >>confdefs.h <<_ACEOF
7140 #define restrict $ac_cv_c_restrict
7141 _ACEOF
7142 ;;
7143 esac
7144
7145
7146
7147 MKINSTALLDIRS=
7148 if test -n "$ac_aux_dir"; then
7149 case "$ac_aux_dir" in
7150 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7151 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7152 esac
7153 fi
7154 if test -z "$MKINSTALLDIRS"; then
7155 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7156 fi
7157
7158
7159
7160 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7161 $as_echo_n "checking whether NLS is requested... " >&6; }
7162 # Check whether --enable-nls was given.
7163 if test "${enable_nls+set}" = set; then
7164 enableval=$enable_nls; USE_NLS=$enableval
7165 else
7166 USE_NLS=yes
7167 fi
7168
7169 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7170 $as_echo "$USE_NLS" >&6; }
7171
7172
7173
7174
7175
7176
7177 # Prepare PATH_SEPARATOR.
7178 # The user is always right.
7179 if test "${PATH_SEPARATOR+set}" != set; then
7180 echo "#! /bin/sh" >conf$$.sh
7181 echo "exit 0" >>conf$$.sh
7182 chmod +x conf$$.sh
7183 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7184 PATH_SEPARATOR=';'
7185 else
7186 PATH_SEPARATOR=:
7187 fi
7188 rm -f conf$$.sh
7189 fi
7190
7191 # Find out how to test for executable files. Don't use a zero-byte file,
7192 # as systems may use methods other than mode bits to determine executability.
7193 cat >conf$$.file <<_ASEOF
7194 #! /bin/sh
7195 exit 0
7196 _ASEOF
7197 chmod +x conf$$.file
7198 if test -x conf$$.file >/dev/null 2>&1; then
7199 ac_executable_p="test -x"
7200 else
7201 ac_executable_p="test -f"
7202 fi
7203 rm -f conf$$.file
7204
7205 # Extract the first word of "msgfmt", so it can be a program name with args.
7206 set dummy msgfmt; ac_word=$2
7207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_path_MSGFMT+set}" = set; then
7210 $as_echo_n "(cached) " >&6
7211 else
7212 case "$MSGFMT" in
7213 [\\/]* | ?:[\\/]*)
7214 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7215 ;;
7216 *)
7217 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7218 for ac_dir in $PATH; do
7219 IFS="$ac_save_IFS"
7220 test -z "$ac_dir" && ac_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7223 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7224 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7225 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7226 break 2
7227 fi
7228 fi
7229 done
7230 done
7231 IFS="$ac_save_IFS"
7232 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7233 ;;
7234 esac
7235 fi
7236 MSGFMT="$ac_cv_path_MSGFMT"
7237 if test "$MSGFMT" != ":"; then
7238 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7239 $as_echo "$MSGFMT" >&6; }
7240 else
7241 { $as_echo "$as_me:$LINENO: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7246 set dummy gmsgfmt; ac_word=$2
7247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7250 $as_echo_n "(cached) " >&6
7251 else
7252 case $GMSGFMT in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7255 ;;
7256 *)
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7273 ;;
7274 esac
7275 fi
7276 GMSGFMT=$ac_cv_path_GMSGFMT
7277 if test -n "$GMSGFMT"; then
7278 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7279 $as_echo "$GMSGFMT" >&6; }
7280 else
7281 { $as_echo "$as_me:$LINENO: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286
7287
7288 # Prepare PATH_SEPARATOR.
7289 # The user is always right.
7290 if test "${PATH_SEPARATOR+set}" != set; then
7291 echo "#! /bin/sh" >conf$$.sh
7292 echo "exit 0" >>conf$$.sh
7293 chmod +x conf$$.sh
7294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7295 PATH_SEPARATOR=';'
7296 else
7297 PATH_SEPARATOR=:
7298 fi
7299 rm -f conf$$.sh
7300 fi
7301
7302 # Find out how to test for executable files. Don't use a zero-byte file,
7303 # as systems may use methods other than mode bits to determine executability.
7304 cat >conf$$.file <<_ASEOF
7305 #! /bin/sh
7306 exit 0
7307 _ASEOF
7308 chmod +x conf$$.file
7309 if test -x conf$$.file >/dev/null 2>&1; then
7310 ac_executable_p="test -x"
7311 else
7312 ac_executable_p="test -f"
7313 fi
7314 rm -f conf$$.file
7315
7316 # Extract the first word of "xgettext", so it can be a program name with args.
7317 set dummy xgettext; ac_word=$2
7318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7322 else
7323 case "$XGETTEXT" in
7324 [\\/]* | ?:[\\/]*)
7325 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7326 ;;
7327 *)
7328 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7329 for ac_dir in $PATH; do
7330 IFS="$ac_save_IFS"
7331 test -z "$ac_dir" && ac_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7334 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7335 (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
7336 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7337 break 2
7338 fi
7339 fi
7340 done
7341 done
7342 IFS="$ac_save_IFS"
7343 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7344 ;;
7345 esac
7346 fi
7347 XGETTEXT="$ac_cv_path_XGETTEXT"
7348 if test "$XGETTEXT" != ":"; then
7349 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7350 $as_echo "$XGETTEXT" >&6; }
7351 else
7352 { $as_echo "$as_me:$LINENO: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356 rm -f messages.po
7357
7358
7359 # Prepare PATH_SEPARATOR.
7360 # The user is always right.
7361 if test "${PATH_SEPARATOR+set}" != set; then
7362 echo "#! /bin/sh" >conf$$.sh
7363 echo "exit 0" >>conf$$.sh
7364 chmod +x conf$$.sh
7365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7366 PATH_SEPARATOR=';'
7367 else
7368 PATH_SEPARATOR=:
7369 fi
7370 rm -f conf$$.sh
7371 fi
7372
7373 # Find out how to test for executable files. Don't use a zero-byte file,
7374 # as systems may use methods other than mode bits to determine executability.
7375 cat >conf$$.file <<_ASEOF
7376 #! /bin/sh
7377 exit 0
7378 _ASEOF
7379 chmod +x conf$$.file
7380 if test -x conf$$.file >/dev/null 2>&1; then
7381 ac_executable_p="test -x"
7382 else
7383 ac_executable_p="test -f"
7384 fi
7385 rm -f conf$$.file
7386
7387 # Extract the first word of "msgmerge", so it can be a program name with args.
7388 set dummy msgmerge; ac_word=$2
7389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7393 else
7394 case "$MSGMERGE" in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH; do
7401 IFS="$ac_save_IFS"
7402 test -z "$ac_dir" && ac_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7405 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7406 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7407 break 2
7408 fi
7409 fi
7410 done
7411 done
7412 IFS="$ac_save_IFS"
7413 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7414 ;;
7415 esac
7416 fi
7417 MSGMERGE="$ac_cv_path_MSGMERGE"
7418 if test "$MSGMERGE" != ":"; then
7419 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7420 $as_echo "$MSGMERGE" >&6; }
7421 else
7422 { $as_echo "$as_me:$LINENO: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 if test "$GMSGFMT" != ":"; then
7428 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7429 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7430 : ;
7431 else
7432 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7433 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7434 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7435 GMSGFMT=":"
7436 fi
7437 fi
7438
7439 if test "$XGETTEXT" != ":"; then
7440 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7441 (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
7442 : ;
7443 else
7444 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7445 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7446 XGETTEXT=":"
7447 fi
7448 rm -f messages.po
7449 fi
7450
7451 ac_config_commands="$ac_config_commands default-1"
7452
7453
7454 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7455 $as_echo_n "checking for off_t... " >&6; }
7456 if test "${ac_cv_type_off_t+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7458 else
7459 ac_cv_type_off_t=no
7460 cat >conftest.$ac_ext <<_ACEOF
7461 /* confdefs.h. */
7462 _ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 $ac_includes_default
7467 int
7468 main ()
7469 {
7470 if (sizeof (off_t))
7471 return 0;
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (ac_try="$ac_compile"
7478 case "(($ac_try" in
7479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7481 esac
7482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7483 $as_echo "$ac_try_echo") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.$ac_objext; then
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 $ac_includes_default
7501 int
7502 main ()
7503 {
7504 if (sizeof ((off_t)))
7505 return 0;
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515 esac
7516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7517 $as_echo "$ac_try_echo") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
7523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7528 :
7529 else
7530 $as_echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 ac_cv_type_off_t=yes
7534 fi
7535
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 else
7538 $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541
7542 fi
7543
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7547 $as_echo "$ac_cv_type_off_t" >&6; }
7548 if test "x$ac_cv_type_off_t" = x""yes; then
7549 :
7550 else
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define off_t long int
7554 _ACEOF
7555
7556 fi
7557
7558 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7559 $as_echo_n "checking for size_t... " >&6; }
7560 if test "${ac_cv_type_size_t+set}" = set; then
7561 $as_echo_n "(cached) " >&6
7562 else
7563 ac_cv_type_size_t=no
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 int
7572 main ()
7573 {
7574 if (sizeof (size_t))
7575 return 0;
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7582 case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585 esac
7586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7587 $as_echo "$ac_try_echo") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.$ac_objext; then
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7605 int
7606 main ()
7607 {
7608 if (sizeof ((size_t)))
7609 return 0;
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 :
7633 else
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 ac_cv_type_size_t=yes
7638 fi
7639
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 else
7642 $as_echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645
7646 fi
7647
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7651 $as_echo "$ac_cv_type_size_t" >&6; }
7652 if test "x$ac_cv_type_size_t" = x""yes; then
7653 :
7654 else
7655
7656 cat >>confdefs.h <<_ACEOF
7657 #define size_t unsigned int
7658 _ACEOF
7659
7660 fi
7661
7662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7663 # for constant arguments. Useless!
7664 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7665 $as_echo_n "checking for working alloca.h... " >&6; }
7666 if test "${ac_cv_working_alloca_h+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 #include <alloca.h>
7676 int
7677 main ()
7678 {
7679 char *p = (char *) alloca (2 * sizeof (int));
7680 if (p) return 0;
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (ac_try="$ac_link"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7692 $as_echo "$ac_try_echo") >&5
7693 (eval "$ac_link") 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && {
7700 test -z "$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7702 } && test -s conftest$ac_exeext && {
7703 test "$cross_compiling" = yes ||
7704 $as_test_x conftest$ac_exeext
7705 }; then
7706 ac_cv_working_alloca_h=yes
7707 else
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ac_cv_working_alloca_h=no
7712 fi
7713
7714 rm -rf conftest.dSYM
7715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7716 conftest$ac_exeext conftest.$ac_ext
7717 fi
7718 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7719 $as_echo "$ac_cv_working_alloca_h" >&6; }
7720 if test $ac_cv_working_alloca_h = yes; then
7721
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_ALLOCA_H 1
7724 _ACEOF
7725
7726 fi
7727
7728 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7729 $as_echo_n "checking for alloca... " >&6; }
7730 if test "${ac_cv_func_alloca_works+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7732 else
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 #ifdef __GNUC__
7740 # define alloca __builtin_alloca
7741 #else
7742 # ifdef _MSC_VER
7743 # include <malloc.h>
7744 # define alloca _alloca
7745 # else
7746 # ifdef HAVE_ALLOCA_H
7747 # include <alloca.h>
7748 # else
7749 # ifdef _AIX
7750 #pragma alloca
7751 # else
7752 # ifndef alloca /* predefined by HP cc +Olibcalls */
7753 char *alloca ();
7754 # endif
7755 # endif
7756 # endif
7757 # endif
7758 #endif
7759
7760 int
7761 main ()
7762 {
7763 char *p = (char *) alloca (1);
7764 if (p) return 0;
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (ac_try="$ac_link"
7771 case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774 esac
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_link") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest$ac_exeext && {
7787 test "$cross_compiling" = yes ||
7788 $as_test_x conftest$ac_exeext
7789 }; then
7790 ac_cv_func_alloca_works=yes
7791 else
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_cv_func_alloca_works=no
7796 fi
7797
7798 rm -rf conftest.dSYM
7799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800 conftest$ac_exeext conftest.$ac_ext
7801 fi
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7803 $as_echo "$ac_cv_func_alloca_works" >&6; }
7804
7805 if test $ac_cv_func_alloca_works = yes; then
7806
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_ALLOCA 1
7809 _ACEOF
7810
7811 else
7812 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7813 # that cause trouble. Some versions do not even contain alloca or
7814 # contain a buggy version. If you still want to use their alloca,
7815 # use ar to extract alloca.o from them instead of compiling alloca.c.
7816
7817 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define C_ALLOCA 1
7821 _ACEOF
7822
7823
7824 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7825 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7826 if test "${ac_cv_os_cray+set}" = set; then
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #if defined CRAY && ! defined CRAY2
7836 webecray
7837 #else
7838 wenotbecray
7839 #endif
7840
7841 _ACEOF
7842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7843 $EGREP "webecray" >/dev/null 2>&1; then
7844 ac_cv_os_cray=yes
7845 else
7846 ac_cv_os_cray=no
7847 fi
7848 rm -f conftest*
7849
7850 fi
7851 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7852 $as_echo "$ac_cv_os_cray" >&6; }
7853 if test $ac_cv_os_cray = yes; then
7854 for ac_func in _getb67 GETB67 getb67; do
7855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7857 $as_echo_n "checking for $ac_func... " >&6; }
7858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7859 $as_echo_n "(cached) " >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7869 #define $ac_func innocuous_$ac_func
7870
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char $ac_func (); below.
7873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7874 <limits.h> exists even on freestanding compilers. */
7875
7876 #ifdef __STDC__
7877 # include <limits.h>
7878 #else
7879 # include <assert.h>
7880 #endif
7881
7882 #undef $ac_func
7883
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 char $ac_func ();
7891 /* The GNU C library defines this for functions which it implements
7892 to always fail with ENOSYS. Some functions are actually named
7893 something starting with __ and the normal name is an alias. */
7894 #if defined __stub_$ac_func || defined __stub___$ac_func
7895 choke me
7896 #endif
7897
7898 int
7899 main ()
7900 {
7901 return $ac_func ();
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914 (eval "$ac_link") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest$ac_exeext && {
7924 test "$cross_compiling" = yes ||
7925 $as_test_x conftest$ac_exeext
7926 }; then
7927 eval "$as_ac_var=yes"
7928 else
7929 $as_echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 eval "$as_ac_var=no"
7933 fi
7934
7935 rm -rf conftest.dSYM
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937 conftest$ac_exeext conftest.$ac_ext
7938 fi
7939 ac_res=`eval 'as_val=${'$as_ac_var'}
7940 $as_echo "$as_val"'`
7941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7942 $as_echo "$ac_res" >&6; }
7943 as_val=`eval 'as_val=${'$as_ac_var'}
7944 $as_echo "$as_val"'`
7945 if test "x$as_val" = x""yes; then
7946
7947 cat >>confdefs.h <<_ACEOF
7948 #define CRAY_STACKSEG_END $ac_func
7949 _ACEOF
7950
7951 break
7952 fi
7953
7954 done
7955 fi
7956
7957 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7958 $as_echo_n "checking stack direction for C alloca... " >&6; }
7959 if test "${ac_cv_c_stack_direction+set}" = set; then
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test "$cross_compiling" = yes; then
7963 ac_cv_c_stack_direction=0
7964 else
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 $ac_includes_default
7972 int
7973 find_stack_direction ()
7974 {
7975 static char *addr = 0;
7976 auto char dummy;
7977 if (addr == 0)
7978 {
7979 addr = &dummy;
7980 return find_stack_direction ();
7981 }
7982 else
7983 return (&dummy > addr) ? 1 : -1;
7984 }
7985
7986 int
7987 main ()
7988 {
7989 return find_stack_direction () < 0;
7990 }
7991 _ACEOF
7992 rm -f conftest$ac_exeext
7993 if { (ac_try="$ac_link"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7999 $as_echo "$ac_try_echo") >&5
8000 (eval "$ac_link") 2>&5
8001 ac_status=$?
8002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8004 { (case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8007 esac
8008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8009 $as_echo "$ac_try_echo") >&5
8010 (eval "$ac_try") 2>&5
8011 ac_status=$?
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_c_stack_direction=1
8015 else
8016 $as_echo "$as_me: program exited with status $ac_status" >&5
8017 $as_echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 ( exit $ac_status )
8021 ac_cv_c_stack_direction=-1
8022 fi
8023 rm -rf conftest.dSYM
8024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8025 fi
8026
8027
8028 fi
8029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8030 $as_echo "$ac_cv_c_stack_direction" >&6; }
8031
8032 cat >>confdefs.h <<_ACEOF
8033 #define STACK_DIRECTION $ac_cv_c_stack_direction
8034 _ACEOF
8035
8036
8037 fi
8038
8039
8040
8041 for ac_header in stdlib.h unistd.h
8042 do
8043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8045 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8046 $as_echo_n "checking for $ac_header... " >&6; }
8047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8048 $as_echo_n "(cached) " >&6
8049 fi
8050 ac_res=`eval 'as_val=${'$as_ac_Header'}
8051 $as_echo "$as_val"'`
8052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8053 $as_echo "$ac_res" >&6; }
8054 else
8055 # Is the header compilable?
8056 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8057 $as_echo_n "checking $ac_header usability... " >&6; }
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 $ac_includes_default
8065 #include <$ac_header>
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072 esac
8073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_header_compiler=yes
8086 else
8087 $as_echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090 ac_header_compiler=no
8091 fi
8092
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8095 $as_echo "$ac_header_compiler" >&6; }
8096
8097 # Is the header present?
8098 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8099 $as_echo_n "checking $ac_header presence... " >&6; }
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 #include <$ac_header>
8107 _ACEOF
8108 if { (ac_try="$ac_cpp conftest.$ac_ext"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8114 $as_echo "$ac_try_echo") >&5
8115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } >/dev/null && {
8122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 }; then
8125 ac_header_preproc=yes
8126 else
8127 $as_echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 ac_header_preproc=no
8131 fi
8132
8133 rm -f conftest.err conftest.$ac_ext
8134 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8135 $as_echo "$ac_header_preproc" >&6; }
8136
8137 # So? What about this header?
8138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8139 yes:no: )
8140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8141 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8144 ac_header_preproc=yes
8145 ;;
8146 no:yes:* )
8147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8148 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8150 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8152 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8154 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8158 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8159 ( cat <<\_ASBOX
8160 ## ------------------------------- ##
8161 ## Report this to bug-bash@gnu.org ##
8162 ## ------------------------------- ##
8163 _ASBOX
8164 ) | sed "s/^/$as_me: WARNING: /" >&2
8165 ;;
8166 esac
8167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8168 $as_echo_n "checking for $ac_header... " >&6; }
8169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8170 $as_echo_n "(cached) " >&6
8171 else
8172 eval "$as_ac_Header=\$ac_header_preproc"
8173 fi
8174 ac_res=`eval 'as_val=${'$as_ac_Header'}
8175 $as_echo "$as_val"'`
8176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8177 $as_echo "$ac_res" >&6; }
8178
8179 fi
8180 as_val=`eval 'as_val=${'$as_ac_Header'}
8181 $as_echo "$as_val"'`
8182 if test "x$as_val" = x""yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185 _ACEOF
8186
8187 fi
8188
8189 done
8190
8191
8192 for ac_func in getpagesize
8193 do
8194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8196 $as_echo_n "checking for $ac_func... " >&6; }
8197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8198 $as_echo_n "(cached) " >&6
8199 else
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h. */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8208 #define $ac_func innocuous_$ac_func
8209
8210 /* System header to define __stub macros and hopefully few prototypes,
8211 which can conflict with char $ac_func (); below.
8212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8213 <limits.h> exists even on freestanding compilers. */
8214
8215 #ifdef __STDC__
8216 # include <limits.h>
8217 #else
8218 # include <assert.h>
8219 #endif
8220
8221 #undef $ac_func
8222
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 char $ac_func ();
8230 /* The GNU C library defines this for functions which it implements
8231 to always fail with ENOSYS. Some functions are actually named
8232 something starting with __ and the normal name is an alias. */
8233 #if defined __stub_$ac_func || defined __stub___$ac_func
8234 choke me
8235 #endif
8236
8237 int
8238 main ()
8239 {
8240 return $ac_func ();
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8252 $as_echo "$ac_try_echo") >&5
8253 (eval "$ac_link") 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest$ac_exeext && {
8263 test "$cross_compiling" = yes ||
8264 $as_test_x conftest$ac_exeext
8265 }; then
8266 eval "$as_ac_var=yes"
8267 else
8268 $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 eval "$as_ac_var=no"
8272 fi
8273
8274 rm -rf conftest.dSYM
8275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8276 conftest$ac_exeext conftest.$ac_ext
8277 fi
8278 ac_res=`eval 'as_val=${'$as_ac_var'}
8279 $as_echo "$as_val"'`
8280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8281 $as_echo "$ac_res" >&6; }
8282 as_val=`eval 'as_val=${'$as_ac_var'}
8283 $as_echo "$as_val"'`
8284 if test "x$as_val" = x""yes; then
8285 cat >>confdefs.h <<_ACEOF
8286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8287 _ACEOF
8288
8289 fi
8290 done
8291
8292 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8293 $as_echo_n "checking for working mmap... " >&6; }
8294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test "$cross_compiling" = yes; then
8298 ac_cv_func_mmap_fixed_mapped=no
8299 else
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 /* malloc might have been renamed as rpl_malloc. */
8308 #undef malloc
8309
8310 /* Thanks to Mike Haertel and Jim Avera for this test.
8311 Here is a matrix of mmap possibilities:
8312 mmap private not fixed
8313 mmap private fixed at somewhere currently unmapped
8314 mmap private fixed at somewhere already mapped
8315 mmap shared not fixed
8316 mmap shared fixed at somewhere currently unmapped
8317 mmap shared fixed at somewhere already mapped
8318 For private mappings, we should verify that changes cannot be read()
8319 back from the file, nor mmap's back from the file at a different
8320 address. (There have been systems where private was not correctly
8321 implemented like the infamous i386 svr4.0, and systems where the
8322 VM page cache was not coherent with the file system buffer cache
8323 like early versions of FreeBSD and possibly contemporary NetBSD.)
8324 For shared mappings, we should conversely verify that changes get
8325 propagated back to all the places they're supposed to be.
8326
8327 Grep wants private fixed already mapped.
8328 The main things grep needs to know about mmap are:
8329 * does it exist and is it safe to write into the mmap'd area
8330 * how to use it (BSD variants) */
8331
8332 #include <fcntl.h>
8333 #include <sys/mman.h>
8334
8335 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8336 char *malloc ();
8337 #endif
8338
8339 /* This mess was copied from the GNU getpagesize.h. */
8340 #ifndef HAVE_GETPAGESIZE
8341 /* Assume that all systems that can run configure have sys/param.h. */
8342 # ifndef HAVE_SYS_PARAM_H
8343 # define HAVE_SYS_PARAM_H 1
8344 # endif
8345
8346 # ifdef _SC_PAGESIZE
8347 # define getpagesize() sysconf(_SC_PAGESIZE)
8348 # else /* no _SC_PAGESIZE */
8349 # ifdef HAVE_SYS_PARAM_H
8350 # include <sys/param.h>
8351 # ifdef EXEC_PAGESIZE
8352 # define getpagesize() EXEC_PAGESIZE
8353 # else /* no EXEC_PAGESIZE */
8354 # ifdef NBPG
8355 # define getpagesize() NBPG * CLSIZE
8356 # ifndef CLSIZE
8357 # define CLSIZE 1
8358 # endif /* no CLSIZE */
8359 # else /* no NBPG */
8360 # ifdef NBPC
8361 # define getpagesize() NBPC
8362 # else /* no NBPC */
8363 # ifdef PAGESIZE
8364 # define getpagesize() PAGESIZE
8365 # endif /* PAGESIZE */
8366 # endif /* no NBPC */
8367 # endif /* no NBPG */
8368 # endif /* no EXEC_PAGESIZE */
8369 # else /* no HAVE_SYS_PARAM_H */
8370 # define getpagesize() 8192 /* punt totally */
8371 # endif /* no HAVE_SYS_PARAM_H */
8372 # endif /* no _SC_PAGESIZE */
8373
8374 #endif /* no HAVE_GETPAGESIZE */
8375
8376 int
8377 main ()
8378 {
8379 char *data, *data2, *data3;
8380 int i, pagesize;
8381 int fd;
8382
8383 pagesize = getpagesize ();
8384
8385 /* First, make a file with some known garbage in it. */
8386 data = (char *) malloc (pagesize);
8387 if (!data)
8388 return 1;
8389 for (i = 0; i < pagesize; ++i)
8390 *(data + i) = rand ();
8391 umask (0);
8392 fd = creat ("conftest.mmap", 0600);
8393 if (fd < 0)
8394 return 1;
8395 if (write (fd, data, pagesize) != pagesize)
8396 return 1;
8397 close (fd);
8398
8399 /* Next, try to mmap the file at a fixed address which already has
8400 something else allocated at it. If we can, also make sure that
8401 we see the same garbage. */
8402 fd = open ("conftest.mmap", O_RDWR);
8403 if (fd < 0)
8404 return 1;
8405 data2 = (char *) malloc (2 * pagesize);
8406 if (!data2)
8407 return 1;
8408 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8409 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8410 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8411 return 1;
8412 for (i = 0; i < pagesize; ++i)
8413 if (*(data + i) != *(data2 + i))
8414 return 1;
8415
8416 /* Finally, make sure that changes to the mapped area do not
8417 percolate back to the file as seen by read(). (This is a bug on
8418 some variants of i386 svr4.0.) */
8419 for (i = 0; i < pagesize; ++i)
8420 *(data2 + i) = *(data2 + i) + 1;
8421 data3 = (char *) malloc (pagesize);
8422 if (!data3)
8423 return 1;
8424 if (read (fd, data3, pagesize) != pagesize)
8425 return 1;
8426 for (i = 0; i < pagesize; ++i)
8427 if (*(data + i) != *(data3 + i))
8428 return 1;
8429 close (fd);
8430 return 0;
8431 }
8432 _ACEOF
8433 rm -f conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8435 case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438 esac
8439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8440 $as_echo "$ac_try_echo") >&5
8441 (eval "$ac_link") 2>&5
8442 ac_status=$?
8443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8445 { (case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448 esac
8449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8450 $as_echo "$ac_try_echo") >&5
8451 (eval "$ac_try") 2>&5
8452 ac_status=$?
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_func_mmap_fixed_mapped=yes
8456 else
8457 $as_echo "$as_me: program exited with status $ac_status" >&5
8458 $as_echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 ( exit $ac_status )
8462 ac_cv_func_mmap_fixed_mapped=no
8463 fi
8464 rm -rf conftest.dSYM
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8466 fi
8467
8468
8469 fi
8470 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8471 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8472 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_MMAP 1
8476 _ACEOF
8477
8478 fi
8479 rm -f conftest.mmap
8480
8481
8482 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8483 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8484 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8485 $as_echo_n "(cached) " >&6
8486 else
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493
8494 #include <features.h>
8495 #ifdef __GNU_LIBRARY__
8496 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8497 Lucky GNU user
8498 #endif
8499 #endif
8500
8501 _ACEOF
8502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8503 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8504 ac_cv_gnu_library_2_1=yes
8505 else
8506 ac_cv_gnu_library_2_1=no
8507 fi
8508 rm -f conftest*
8509
8510
8511
8512 fi
8513 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8514 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8515
8516 GLIBC21="$ac_cv_gnu_library_2_1"
8517
8518
8519
8520
8521 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8522 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8523 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8525 else
8526
8527 if test "$cross_compiling" = yes; then
8528
8529 # Guess based on the CPU.
8530 case "$host_cpu" in
8531 alpha* | i3456786 | m68k | s390*)
8532 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8533 *)
8534 gt_cv_int_divbyzero_sigfpe="guessing no";;
8535 esac
8536
8537 else
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544
8545 #include <stdlib.h>
8546 #include <signal.h>
8547
8548 static void
8549 #ifdef __cplusplus
8550 sigfpe_handler (int sig)
8551 #else
8552 sigfpe_handler (sig) int sig;
8553 #endif
8554 {
8555 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8556 exit (sig != SIGFPE);
8557 }
8558
8559 int x = 1;
8560 int y = 0;
8561 int z;
8562 int nan;
8563
8564 int main ()
8565 {
8566 signal (SIGFPE, sigfpe_handler);
8567 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8568 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8569 signal (SIGTRAP, sigfpe_handler);
8570 #endif
8571 /* Linux/SPARC yields signal SIGILL. */
8572 #if defined (__sparc__) && defined (__linux__)
8573 signal (SIGILL, sigfpe_handler);
8574 #endif
8575
8576 z = x / y;
8577 nan = y / y;
8578 exit (1);
8579 }
8580
8581 _ACEOF
8582 rm -f conftest$ac_exeext
8583 if { (ac_try="$ac_link"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590 (eval "$ac_link") 2>&5
8591 ac_status=$?
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597 esac
8598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599 $as_echo "$ac_try_echo") >&5
8600 (eval "$ac_try") 2>&5
8601 ac_status=$?
8602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 gt_cv_int_divbyzero_sigfpe=yes
8605 else
8606 $as_echo "$as_me: program exited with status $ac_status" >&5
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ( exit $ac_status )
8611 gt_cv_int_divbyzero_sigfpe=no
8612 fi
8613 rm -rf conftest.dSYM
8614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8615 fi
8616
8617
8618
8619 fi
8620 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8621 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8622 case "$gt_cv_int_divbyzero_sigfpe" in
8623 *yes) value=1;;
8624 *) value=0;;
8625 esac
8626
8627 cat >>confdefs.h <<_ACEOF
8628 #define INTDIV0_RAISES_SIGFPE $value
8629 _ACEOF
8630
8631
8632
8633 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8634 $as_echo_n "checking for inttypes.h... " >&6; }
8635 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8636 $as_echo_n "(cached) " >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 #include <sys/types.h>
8645 #include <inttypes.h>
8646 int
8647 main ()
8648 {
8649 uintmax_t i = (uintmax_t) -1;
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 jm_ac_cv_header_inttypes_h=yes
8673 else
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 jm_ac_cv_header_inttypes_h=no
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8683 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8684 if test $jm_ac_cv_header_inttypes_h = yes; then
8685
8686 cat >>confdefs.h <<_ACEOF
8687 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8688 _ACEOF
8689
8690 fi
8691
8692
8693 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8694 $as_echo_n "checking for stdint.h... " >&6; }
8695 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8696 $as_echo_n "(cached) " >&6
8697 else
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 #include <sys/types.h>
8705 #include <stdint.h>
8706 int
8707 main ()
8708 {
8709 uintmax_t i = (uintmax_t) -1;
8710 ;
8711 return 0;
8712 }
8713 _ACEOF
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8716 case "(($ac_try" in
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8719 esac
8720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8721 $as_echo "$ac_try_echo") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 jm_ac_cv_header_stdint_h=yes
8733 else
8734 $as_echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 jm_ac_cv_header_stdint_h=no
8738 fi
8739
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8743 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8744 if test $jm_ac_cv_header_stdint_h = yes; then
8745
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_STDINT_H_WITH_UINTMAX 1
8748 _ACEOF
8749
8750 fi
8751
8752
8753 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8754 $as_echo_n "checking for unsigned long long... " >&6; }
8755 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 unsigned long long ull = 1; int i = 63;
8765 int
8766 main ()
8767 {
8768 unsigned long long ullmax = (unsigned long long) -1;
8769 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8770 ;
8771 return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779 esac
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_link") 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest$ac_exeext && {
8792 test "$cross_compiling" = yes ||
8793 $as_test_x conftest$ac_exeext
8794 }; then
8795 ac_cv_type_unsigned_long_long=yes
8796 else
8797 $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800 ac_cv_type_unsigned_long_long=no
8801 fi
8802
8803 rm -rf conftest.dSYM
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
8806 fi
8807 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8808 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8809 if test $ac_cv_type_unsigned_long_long = yes; then
8810
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_UNSIGNED_LONG_LONG 1
8813 _ACEOF
8814
8815 fi
8816
8817
8818
8819
8820 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8821
8822 test $ac_cv_type_unsigned_long_long = yes \
8823 && ac_type='unsigned long long' \
8824 || ac_type='unsigned long'
8825
8826 cat >>confdefs.h <<_ACEOF
8827 #define uintmax_t $ac_type
8828 _ACEOF
8829
8830 else
8831
8832 cat >>confdefs.h <<\_ACEOF
8833 #define HAVE_UINTMAX_T 1
8834 _ACEOF
8835
8836 fi
8837
8838
8839 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8840 $as_echo_n "checking for inttypes.h... " >&6; }
8841 if test "${gt_cv_header_inttypes_h+set}" = set; then
8842 $as_echo_n "(cached) " >&6
8843 else
8844
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 #include <sys/types.h>
8852 #include <inttypes.h>
8853 int
8854 main ()
8855 {
8856
8857 ;
8858 return 0;
8859 }
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8868 $as_echo "$ac_try_echo") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 gt_cv_header_inttypes_h=yes
8880 else
8881 $as_echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 gt_cv_header_inttypes_h=no
8885 fi
8886
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888
8889 fi
8890 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8891 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8892 if test $gt_cv_header_inttypes_h = yes; then
8893
8894 cat >>confdefs.h <<_ACEOF
8895 #define HAVE_INTTYPES_H 1
8896 _ACEOF
8897
8898 fi
8899
8900
8901
8902 if test $gt_cv_header_inttypes_h = yes; then
8903 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8904 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8905 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8906 $as_echo_n "(cached) " >&6
8907 else
8908
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 #include <inttypes.h>
8916 #ifdef PRId32
8917 char *p = PRId32;
8918 #endif
8919
8920 int
8921 main ()
8922 {
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext
8929 if { (ac_try="$ac_compile"
8930 case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933 esac
8934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8935 $as_echo "$ac_try_echo") >&5
8936 (eval "$ac_compile") 2>conftest.er1
8937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
8941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && {
8943 test -z "$ac_c_werror_flag" ||
8944 test ! -s conftest.err
8945 } && test -s conftest.$ac_objext; then
8946 gt_cv_inttypes_pri_broken=no
8947 else
8948 $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 gt_cv_inttypes_pri_broken=yes
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955
8956 fi
8957 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8958 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8959 fi
8960 if test "$gt_cv_inttypes_pri_broken" = yes; then
8961
8962 cat >>confdefs.h <<_ACEOF
8963 #define PRI_MACROS_BROKEN 1
8964 _ACEOF
8965
8966 fi
8967
8968
8969 if test "X$prefix" = "XNONE"; then
8970 acl_final_prefix="$ac_default_prefix"
8971 else
8972 acl_final_prefix="$prefix"
8973 fi
8974 if test "X$exec_prefix" = "XNONE"; then
8975 acl_final_exec_prefix='${prefix}'
8976 else
8977 acl_final_exec_prefix="$exec_prefix"
8978 fi
8979 acl_save_prefix="$prefix"
8980 prefix="$acl_final_prefix"
8981 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8982 prefix="$acl_save_prefix"
8983
8984
8985 # Check whether --with-gnu-ld was given.
8986 if test "${with_gnu_ld+set}" = set; then
8987 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8988 else
8989 with_gnu_ld=no
8990 fi
8991
8992 # Prepare PATH_SEPARATOR.
8993 # The user is always right.
8994 if test "${PATH_SEPARATOR+set}" != set; then
8995 echo "#! /bin/sh" >conf$$.sh
8996 echo "exit 0" >>conf$$.sh
8997 chmod +x conf$$.sh
8998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8999 PATH_SEPARATOR=';'
9000 else
9001 PATH_SEPARATOR=:
9002 fi
9003 rm -f conf$$.sh
9004 fi
9005 ac_prog=ld
9006 if test "$GCC" = yes; then
9007 # Check if gcc -print-prog-name=ld gives a path.
9008 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9009 $as_echo_n "checking for ld used by GCC... " >&6; }
9010 case $host in
9011 *-*-mingw*)
9012 # gcc leaves a trailing carriage return which upsets mingw
9013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9014 *)
9015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9016 esac
9017 case $ac_prog in
9018 # Accept absolute paths.
9019 [\\/]* | [A-Za-z]:[\\/]*)
9020 re_direlt='/[^/][^/]*/\.\./'
9021 # Canonicalize the path of ld
9022 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9023 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9024 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9025 done
9026 test -z "$LD" && LD="$ac_prog"
9027 ;;
9028 "")
9029 # If it fails, then pretend we aren't using GCC.
9030 ac_prog=ld
9031 ;;
9032 *)
9033 # If it is relative, then search for the first ld in PATH.
9034 with_gnu_ld=unknown
9035 ;;
9036 esac
9037 elif test "$with_gnu_ld" = yes; then
9038 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9039 $as_echo_n "checking for GNU ld... " >&6; }
9040 else
9041 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9042 $as_echo_n "checking for non-GNU ld... " >&6; }
9043 fi
9044 if test "${acl_cv_path_LD+set}" = set; then
9045 $as_echo_n "(cached) " >&6
9046 else
9047 if test -z "$LD"; then
9048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9049 for ac_dir in $PATH; do
9050 test -z "$ac_dir" && ac_dir=.
9051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9052 acl_cv_path_LD="$ac_dir/$ac_prog"
9053 # Check to see if the program is GNU ld. I'd rather use --version,
9054 # but apparently some GNU ld's only accept -v.
9055 # Break only if it was the GNU/non-GNU ld that we prefer.
9056 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9057 test "$with_gnu_ld" != no && break
9058 else
9059 test "$with_gnu_ld" != yes && break
9060 fi
9061 fi
9062 done
9063 IFS="$ac_save_ifs"
9064 else
9065 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9066 fi
9067 fi
9068
9069 LD="$acl_cv_path_LD"
9070 if test -n "$LD"; then
9071 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9072 $as_echo "$LD" >&6; }
9073 else
9074 { $as_echo "$as_me:$LINENO: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9078 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9079 { (exit 1); exit 1; }; }
9080 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9082 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9083 $as_echo_n "(cached) " >&6
9084 else
9085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9086 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9087 acl_cv_prog_gnu_ld=yes
9088 else
9089 acl_cv_prog_gnu_ld=no
9090 fi
9091 fi
9092 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9093 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9094 with_gnu_ld=$acl_cv_prog_gnu_ld
9095
9096
9097
9098 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9099 $as_echo_n "checking for shared library run path origin... " >&6; }
9100 if test "${acl_cv_rpath+set}" = set; then
9101 $as_echo_n "(cached) " >&6
9102 else
9103
9104 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9105 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9106 . ./conftest.sh
9107 rm -f ./conftest.sh
9108 acl_cv_rpath=done
9109
9110 fi
9111 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9112 $as_echo "$acl_cv_rpath" >&6; }
9113 wl="$acl_cv_wl"
9114 libext="$acl_cv_libext"
9115 shlibext="$acl_cv_shlibext"
9116 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9117 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9118 hardcode_direct="$acl_cv_hardcode_direct"
9119 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9120 # Check whether --enable-rpath was given.
9121 if test "${enable_rpath+set}" = set; then
9122 enableval=$enable_rpath; :
9123 else
9124 enable_rpath=yes
9125 fi
9126
9127
9128
9129
9130
9131
9132
9133
9134 use_additional=yes
9135
9136 acl_save_prefix="$prefix"
9137 prefix="$acl_final_prefix"
9138 acl_save_exec_prefix="$exec_prefix"
9139 exec_prefix="$acl_final_exec_prefix"
9140
9141 eval additional_includedir=\"$includedir\"
9142 eval additional_libdir=\"$libdir\"
9143
9144 exec_prefix="$acl_save_exec_prefix"
9145 prefix="$acl_save_prefix"
9146
9147
9148 # Check whether --with-libiconv-prefix was given.
9149 if test "${with_libiconv_prefix+set}" = set; then
9150 withval=$with_libiconv_prefix;
9151 if test "X$withval" = "Xno"; then
9152 use_additional=no
9153 else
9154 if test "X$withval" = "X"; then
9155
9156 acl_save_prefix="$prefix"
9157 prefix="$acl_final_prefix"
9158 acl_save_exec_prefix="$exec_prefix"
9159 exec_prefix="$acl_final_exec_prefix"
9160
9161 eval additional_includedir=\"$includedir\"
9162 eval additional_libdir=\"$libdir\"
9163
9164 exec_prefix="$acl_save_exec_prefix"
9165 prefix="$acl_save_prefix"
9166
9167 else
9168 additional_includedir="$withval/include"
9169 additional_libdir="$withval/lib"
9170 fi
9171 fi
9172
9173 fi
9174
9175 LIBICONV=
9176 LTLIBICONV=
9177 INCICONV=
9178 rpathdirs=
9179 ltrpathdirs=
9180 names_already_handled=
9181 names_next_round='iconv '
9182 while test -n "$names_next_round"; do
9183 names_this_round="$names_next_round"
9184 names_next_round=
9185 for name in $names_this_round; do
9186 already_handled=
9187 for n in $names_already_handled; do
9188 if test "$n" = "$name"; then
9189 already_handled=yes
9190 break
9191 fi
9192 done
9193 if test -z "$already_handled"; then
9194 names_already_handled="$names_already_handled $name"
9195 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9196 eval value=\"\$HAVE_LIB$uppername\"
9197 if test -n "$value"; then
9198 if test "$value" = yes; then
9199 eval value=\"\$LIB$uppername\"
9200 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9201 eval value=\"\$LTLIB$uppername\"
9202 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9203 else
9204 :
9205 fi
9206 else
9207 found_dir=
9208 found_la=
9209 found_so=
9210 found_a=
9211 if test $use_additional = yes; then
9212 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9213 found_dir="$additional_libdir"
9214 found_so="$additional_libdir/lib$name.$shlibext"
9215 if test -f "$additional_libdir/lib$name.la"; then
9216 found_la="$additional_libdir/lib$name.la"
9217 fi
9218 else
9219 if test -f "$additional_libdir/lib$name.$libext"; then
9220 found_dir="$additional_libdir"
9221 found_a="$additional_libdir/lib$name.$libext"
9222 if test -f "$additional_libdir/lib$name.la"; then
9223 found_la="$additional_libdir/lib$name.la"
9224 fi
9225 fi
9226 fi
9227 fi
9228 if test "X$found_dir" = "X"; then
9229 for x in $LDFLAGS $LTLIBICONV; do
9230
9231 acl_save_prefix="$prefix"
9232 prefix="$acl_final_prefix"
9233 acl_save_exec_prefix="$exec_prefix"
9234 exec_prefix="$acl_final_exec_prefix"
9235 eval x=\"$x\"
9236 exec_prefix="$acl_save_exec_prefix"
9237 prefix="$acl_save_prefix"
9238
9239 case "$x" in
9240 -L*)
9241 dir=`echo "X$x" | sed -e 's/^X-L//'`
9242 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9243 found_dir="$dir"
9244 found_so="$dir/lib$name.$shlibext"
9245 if test -f "$dir/lib$name.la"; then
9246 found_la="$dir/lib$name.la"
9247 fi
9248 else
9249 if test -f "$dir/lib$name.$libext"; then
9250 found_dir="$dir"
9251 found_a="$dir/lib$name.$libext"
9252 if test -f "$dir/lib$name.la"; then
9253 found_la="$dir/lib$name.la"
9254 fi
9255 fi
9256 fi
9257 ;;
9258 esac
9259 if test "X$found_dir" != "X"; then
9260 break
9261 fi
9262 done
9263 fi
9264 if test "X$found_dir" != "X"; then
9265 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9266 if test "X$found_so" != "X"; then
9267 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9269 else
9270 haveit=
9271 for x in $ltrpathdirs; do
9272 if test "X$x" = "X$found_dir"; then
9273 haveit=yes
9274 break
9275 fi
9276 done
9277 if test -z "$haveit"; then
9278 ltrpathdirs="$ltrpathdirs $found_dir"
9279 fi
9280 if test "$hardcode_direct" = yes; then
9281 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9282 else
9283 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9284 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9285 haveit=
9286 for x in $rpathdirs; do
9287 if test "X$x" = "X$found_dir"; then
9288 haveit=yes
9289 break
9290 fi
9291 done
9292 if test -z "$haveit"; then
9293 rpathdirs="$rpathdirs $found_dir"
9294 fi
9295 else
9296 haveit=
9297 for x in $LDFLAGS $LIBICONV; do
9298
9299 acl_save_prefix="$prefix"
9300 prefix="$acl_final_prefix"
9301 acl_save_exec_prefix="$exec_prefix"
9302 exec_prefix="$acl_final_exec_prefix"
9303 eval x=\"$x\"
9304 exec_prefix="$acl_save_exec_prefix"
9305 prefix="$acl_save_prefix"
9306
9307 if test "X$x" = "X-L$found_dir"; then
9308 haveit=yes
9309 break
9310 fi
9311 done
9312 if test -z "$haveit"; then
9313 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9314 fi
9315 if test "$hardcode_minus_L" != no; then
9316 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9317 else
9318 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9319 fi
9320 fi
9321 fi
9322 fi
9323 else
9324 if test "X$found_a" != "X"; then
9325 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9326 else
9327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9328 fi
9329 fi
9330 additional_includedir=
9331 case "$found_dir" in
9332 */lib | */lib/)
9333 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9334 additional_includedir="$basedir/include"
9335 ;;
9336 esac
9337 if test "X$additional_includedir" != "X"; then
9338 if test "X$additional_includedir" != "X/usr/include"; then
9339 haveit=
9340 if test "X$additional_includedir" = "X/usr/local/include"; then
9341 if test -n "$GCC"; then
9342 case $host_os in
9343 linux*) haveit=yes;;
9344 esac
9345 fi
9346 fi
9347 if test -z "$haveit"; then
9348 for x in $CPPFLAGS $INCICONV; do
9349
9350 acl_save_prefix="$prefix"
9351 prefix="$acl_final_prefix"
9352 acl_save_exec_prefix="$exec_prefix"
9353 exec_prefix="$acl_final_exec_prefix"
9354 eval x=\"$x\"
9355 exec_prefix="$acl_save_exec_prefix"
9356 prefix="$acl_save_prefix"
9357
9358 if test "X$x" = "X-I$additional_includedir"; then
9359 haveit=yes
9360 break
9361 fi
9362 done
9363 if test -z "$haveit"; then
9364 if test -d "$additional_includedir"; then
9365 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9366 fi
9367 fi
9368 fi
9369 fi
9370 fi
9371 if test -n "$found_la"; then
9372 save_libdir="$libdir"
9373 case "$found_la" in
9374 */* | *\\*) . "$found_la" ;;
9375 *) . "./$found_la" ;;
9376 esac
9377 libdir="$save_libdir"
9378 for dep in $dependency_libs; do
9379 case "$dep" in
9380 -L*)
9381 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9382 if test "X$additional_libdir" != "X/usr/lib"; then
9383 haveit=
9384 if test "X$additional_libdir" = "X/usr/local/lib"; then
9385 if test -n "$GCC"; then
9386 case $host_os in
9387 linux*) haveit=yes;;
9388 esac
9389 fi
9390 fi
9391 if test -z "$haveit"; then
9392 haveit=
9393 for x in $LDFLAGS $LIBICONV; do
9394
9395 acl_save_prefix="$prefix"
9396 prefix="$acl_final_prefix"
9397 acl_save_exec_prefix="$exec_prefix"
9398 exec_prefix="$acl_final_exec_prefix"
9399 eval x=\"$x\"
9400 exec_prefix="$acl_save_exec_prefix"
9401 prefix="$acl_save_prefix"
9402
9403 if test "X$x" = "X-L$additional_libdir"; then
9404 haveit=yes
9405 break
9406 fi
9407 done
9408 if test -z "$haveit"; then
9409 if test -d "$additional_libdir"; then
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9411 fi
9412 fi
9413 haveit=
9414 for x in $LDFLAGS $LTLIBICONV; do
9415
9416 acl_save_prefix="$prefix"
9417 prefix="$acl_final_prefix"
9418 acl_save_exec_prefix="$exec_prefix"
9419 exec_prefix="$acl_final_exec_prefix"
9420 eval x=\"$x\"
9421 exec_prefix="$acl_save_exec_prefix"
9422 prefix="$acl_save_prefix"
9423
9424 if test "X$x" = "X-L$additional_libdir"; then
9425 haveit=yes
9426 break
9427 fi
9428 done
9429 if test -z "$haveit"; then
9430 if test -d "$additional_libdir"; then
9431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9432 fi
9433 fi
9434 fi
9435 fi
9436 ;;
9437 -R*)
9438 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9439 if test "$enable_rpath" != no; then
9440 haveit=
9441 for x in $rpathdirs; do
9442 if test "X$x" = "X$dir"; then
9443 haveit=yes
9444 break
9445 fi
9446 done
9447 if test -z "$haveit"; then
9448 rpathdirs="$rpathdirs $dir"
9449 fi
9450 haveit=
9451 for x in $ltrpathdirs; do
9452 if test "X$x" = "X$dir"; then
9453 haveit=yes
9454 break
9455 fi
9456 done
9457 if test -z "$haveit"; then
9458 ltrpathdirs="$ltrpathdirs $dir"
9459 fi
9460 fi
9461 ;;
9462 -l*)
9463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9464 ;;
9465 *.la)
9466 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9467 ;;
9468 *)
9469 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9470 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9471 ;;
9472 esac
9473 done
9474 fi
9475 else
9476 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9478 fi
9479 fi
9480 fi
9481 done
9482 done
9483 if test "X$rpathdirs" != "X"; then
9484 if test -n "$hardcode_libdir_separator"; then
9485 alldirs=
9486 for found_dir in $rpathdirs; do
9487 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9488 done
9489 acl_save_libdir="$libdir"
9490 libdir="$alldirs"
9491 eval flag=\"$hardcode_libdir_flag_spec\"
9492 libdir="$acl_save_libdir"
9493 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9494 else
9495 for found_dir in $rpathdirs; do
9496 acl_save_libdir="$libdir"
9497 libdir="$found_dir"
9498 eval flag=\"$hardcode_libdir_flag_spec\"
9499 libdir="$acl_save_libdir"
9500 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9501 done
9502 fi
9503 fi
9504 if test "X$ltrpathdirs" != "X"; then
9505 for found_dir in $ltrpathdirs; do
9506 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9507 done
9508 fi
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9524 stdlib.h string.h unistd.h sys/param.h
9525 do
9526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9528 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9529 $as_echo_n "checking for $ac_header... " >&6; }
9530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9531 $as_echo_n "(cached) " >&6
9532 fi
9533 ac_res=`eval 'as_val=${'$as_ac_Header'}
9534 $as_echo "$as_val"'`
9535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9536 $as_echo "$ac_res" >&6; }
9537 else
9538 # Is the header compilable?
9539 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9540 $as_echo_n "checking $ac_header usability... " >&6; }
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 #include <$ac_header>
9549 _ACEOF
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9552 case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555 esac
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558 (eval "$ac_compile") 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest.$ac_objext; then
9568 ac_header_compiler=yes
9569 else
9570 $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 ac_header_compiler=no
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9578 $as_echo "$ac_header_compiler" >&6; }
9579
9580 # Is the header present?
9581 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9582 $as_echo_n "checking $ac_header presence... " >&6; }
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <$ac_header>
9590 _ACEOF
9591 if { (ac_try="$ac_cpp conftest.$ac_ext"
9592 case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595 esac
9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } >/dev/null && {
9605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 }; then
9608 ac_header_preproc=yes
9609 else
9610 $as_echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9612
9613 ac_header_preproc=no
9614 fi
9615
9616 rm -f conftest.err conftest.$ac_ext
9617 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9618 $as_echo "$ac_header_preproc" >&6; }
9619
9620 # So? What about this header?
9621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9622 yes:no: )
9623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9624 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9627 ac_header_preproc=yes
9628 ;;
9629 no:yes:* )
9630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9631 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9633 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9635 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9637 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9641 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9642 ( cat <<\_ASBOX
9643 ## ------------------------------- ##
9644 ## Report this to bug-bash@gnu.org ##
9645 ## ------------------------------- ##
9646 _ASBOX
9647 ) | sed "s/^/$as_me: WARNING: /" >&2
9648 ;;
9649 esac
9650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9651 $as_echo_n "checking for $ac_header... " >&6; }
9652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9653 $as_echo_n "(cached) " >&6
9654 else
9655 eval "$as_ac_Header=\$ac_header_preproc"
9656 fi
9657 ac_res=`eval 'as_val=${'$as_ac_Header'}
9658 $as_echo "$as_val"'`
9659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9660 $as_echo "$ac_res" >&6; }
9661
9662 fi
9663 as_val=`eval 'as_val=${'$as_ac_Header'}
9664 $as_echo "$as_val"'`
9665 if test "x$as_val" = x""yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9668 _ACEOF
9669
9670 fi
9671
9672 done
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9698 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9699 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9700 __fsetlocking
9701 do
9702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9704 $as_echo_n "checking for $ac_func... " >&6; }
9705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9706 $as_echo_n "(cached) " >&6
9707 else
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define $ac_func innocuous_$ac_func
9717
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char $ac_func (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9722
9723 #ifdef __STDC__
9724 # include <limits.h>
9725 #else
9726 # include <assert.h>
9727 #endif
9728
9729 #undef $ac_func
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char $ac_func ();
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_$ac_func || defined __stub___$ac_func
9742 choke me
9743 #endif
9744
9745 int
9746 main ()
9747 {
9748 return $ac_func ();
9749 ;
9750 return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (ac_try="$ac_link"
9755 case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758 esac
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761 (eval "$ac_link") 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest$ac_exeext && {
9771 test "$cross_compiling" = yes ||
9772 $as_test_x conftest$ac_exeext
9773 }; then
9774 eval "$as_ac_var=yes"
9775 else
9776 $as_echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779 eval "$as_ac_var=no"
9780 fi
9781
9782 rm -rf conftest.dSYM
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784 conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 ac_res=`eval 'as_val=${'$as_ac_var'}
9787 $as_echo "$as_val"'`
9788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9789 $as_echo "$ac_res" >&6; }
9790 as_val=`eval 'as_val=${'$as_ac_var'}
9791 $as_echo "$as_val"'`
9792 if test "x$as_val" = x""yes; then
9793 cat >>confdefs.h <<_ACEOF
9794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9795 _ACEOF
9796
9797 fi
9798 done
9799
9800
9801
9802
9803
9804
9805
9806 am_save_CPPFLAGS="$CPPFLAGS"
9807
9808 for element in $INCICONV; do
9809 haveit=
9810 for x in $CPPFLAGS; do
9811
9812 acl_save_prefix="$prefix"
9813 prefix="$acl_final_prefix"
9814 acl_save_exec_prefix="$exec_prefix"
9815 exec_prefix="$acl_final_exec_prefix"
9816 eval x=\"$x\"
9817 exec_prefix="$acl_save_exec_prefix"
9818 prefix="$acl_save_prefix"
9819
9820 if test "X$x" = "X$element"; then
9821 haveit=yes
9822 break
9823 fi
9824 done
9825 if test -z "$haveit"; then
9826 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9827 fi
9828 done
9829
9830
9831 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9832 $as_echo_n "checking for iconv... " >&6; }
9833 if test "${am_cv_func_iconv+set}" = set; then
9834 $as_echo_n "(cached) " >&6
9835 else
9836
9837 am_cv_func_iconv="no, consider installing GNU libiconv"
9838 am_cv_lib_iconv=no
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <stdlib.h>
9846 #include <iconv.h>
9847 int
9848 main ()
9849 {
9850 iconv_t cd = iconv_open("","");
9851 iconv(cd,NULL,NULL,NULL,NULL);
9852 iconv_close(cd);
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864 $as_echo "$ac_try_echo") >&5
9865 (eval "$ac_link") 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest$ac_exeext && {
9875 test "$cross_compiling" = yes ||
9876 $as_test_x conftest$ac_exeext
9877 }; then
9878 am_cv_func_iconv=yes
9879 else
9880 $as_echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883
9884 fi
9885
9886 rm -rf conftest.dSYM
9887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9888 conftest$ac_exeext conftest.$ac_ext
9889 if test "$am_cv_func_iconv" != yes; then
9890 am_save_LIBS="$LIBS"
9891 LIBS="$LIBS $LIBICONV"
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <stdlib.h>
9899 #include <iconv.h>
9900 int
9901 main ()
9902 {
9903 iconv_t cd = iconv_open("","");
9904 iconv(cd,NULL,NULL,NULL,NULL);
9905 iconv_close(cd);
9906 ;
9907 return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9912 case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915 esac
9916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9917 $as_echo "$ac_try_echo") >&5
9918 (eval "$ac_link") 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest$ac_exeext && {
9928 test "$cross_compiling" = yes ||
9929 $as_test_x conftest$ac_exeext
9930 }; then
9931 am_cv_lib_iconv=yes
9932 am_cv_func_iconv=yes
9933 else
9934 $as_echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937
9938 fi
9939
9940 rm -rf conftest.dSYM
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS="$am_save_LIBS"
9944 fi
9945
9946 fi
9947 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9948 $as_echo "$am_cv_func_iconv" >&6; }
9949 if test "$am_cv_func_iconv" = yes; then
9950
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_ICONV 1
9953 _ACEOF
9954
9955 fi
9956 if test "$am_cv_lib_iconv" = yes; then
9957 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9958 $as_echo_n "checking how to link with libiconv... " >&6; }
9959 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9960 $as_echo "$LIBICONV" >&6; }
9961 else
9962 CPPFLAGS="$am_save_CPPFLAGS"
9963 LIBICONV=
9964 LTLIBICONV=
9965 fi
9966
9967
9968
9969 if test "$am_cv_func_iconv" = yes; then
9970 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9971 $as_echo_n "checking for iconv declaration... " >&6; }
9972 if test "${am_cv_proto_iconv+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9974 else
9975
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982
9983 #include <stdlib.h>
9984 #include <iconv.h>
9985 extern
9986 #ifdef __cplusplus
9987 "C"
9988 #endif
9989 #if defined(__STDC__) || defined(__cplusplus)
9990 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9991 #else
9992 size_t iconv();
9993 #endif
9994
9995 int
9996 main ()
9997 {
9998
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10010 $as_echo "$ac_try_echo") >&5
10011 (eval "$ac_compile") 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && {
10018 test -z "$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 } && test -s conftest.$ac_objext; then
10021 am_cv_proto_iconv_arg1=""
10022 else
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 am_cv_proto_iconv_arg1="const"
10027 fi
10028
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 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);"
10031 fi
10032
10033 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10034 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10035 }$am_cv_proto_iconv" >&5
10036 $as_echo "${ac_t:-
10037 }$am_cv_proto_iconv" >&6; }
10038
10039 cat >>confdefs.h <<_ACEOF
10040 #define ICONV_CONST $am_cv_proto_iconv_arg1
10041 _ACEOF
10042
10043 fi
10044
10045
10046 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10047 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10048 if test "${am_cv_langinfo_codeset+set}" = set; then
10049 $as_echo_n "(cached) " >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 #include <langinfo.h>
10058 int
10059 main ()
10060 {
10061 char* cs = nl_langinfo(CODESET);
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10086 }; then
10087 am_cv_langinfo_codeset=yes
10088 else
10089 $as_echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 am_cv_langinfo_codeset=no
10093 fi
10094
10095 rm -rf conftest.dSYM
10096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10097 conftest$ac_exeext conftest.$ac_ext
10098
10099 fi
10100 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10101 $as_echo "$am_cv_langinfo_codeset" >&6; }
10102 if test $am_cv_langinfo_codeset = yes; then
10103
10104 cat >>confdefs.h <<\_ACEOF
10105 #define HAVE_LANGINFO_CODESET 1
10106 _ACEOF
10107
10108 fi
10109
10110 if test $ac_cv_header_locale_h = yes; then
10111
10112 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10113 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10114 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10115 $as_echo_n "(cached) " >&6
10116 else
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <locale.h>
10124 int
10125 main ()
10126 {
10127 return LC_MESSAGES
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (ac_try="$ac_link"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10139 $as_echo "$ac_try_echo") >&5
10140 (eval "$ac_link") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest$ac_exeext && {
10150 test "$cross_compiling" = yes ||
10151 $as_test_x conftest$ac_exeext
10152 }; then
10153 am_cv_val_LC_MESSAGES=yes
10154 else
10155 $as_echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 am_cv_val_LC_MESSAGES=no
10159 fi
10160
10161 rm -rf conftest.dSYM
10162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10163 conftest$ac_exeext conftest.$ac_ext
10164 fi
10165 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10166 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10167 if test $am_cv_val_LC_MESSAGES = yes; then
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_LC_MESSAGES 1
10171 _ACEOF
10172
10173 fi
10174
10175 fi
10176
10177 for ac_prog in bison
10178 do
10179 # Extract the first word of "$ac_prog", so it can be a program name with args.
10180 set dummy $ac_prog; ac_word=$2
10181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10184 $as_echo_n "(cached) " >&6
10185 else
10186 if test -n "$INTLBISON"; then
10187 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10188 else
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10191 do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10196 ac_cv_prog_INTLBISON="$ac_prog"
10197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200 done
10201 done
10202 IFS=$as_save_IFS
10203
10204 fi
10205 fi
10206 INTLBISON=$ac_cv_prog_INTLBISON
10207 if test -n "$INTLBISON"; then
10208 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10209 $as_echo "$INTLBISON" >&6; }
10210 else
10211 { $as_echo "$as_me:$LINENO: result: no" >&5
10212 $as_echo "no" >&6; }
10213 fi
10214
10215
10216 test -n "$INTLBISON" && break
10217 done
10218
10219 if test -z "$INTLBISON"; then
10220 ac_verc_fail=yes
10221 else
10222 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10223 $as_echo_n "checking version of bison... " >&6; }
10224 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10225 case $ac_prog_version in
10226 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10227 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10228 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10229 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10230 esac
10231 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10232 $as_echo "$ac_prog_version" >&6; }
10233 fi
10234 if test $ac_verc_fail = yes; then
10235 INTLBISON=:
10236 fi
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10254 $as_echo_n "checking whether NLS is requested... " >&6; }
10255 # Check whether --enable-nls was given.
10256 if test "${enable_nls+set}" = set; then
10257 enableval=$enable_nls; USE_NLS=$enableval
10258 else
10259 USE_NLS=yes
10260 fi
10261
10262 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10263 $as_echo "$USE_NLS" >&6; }
10264
10265
10266
10267
10268 BUILD_INCLUDED_LIBINTL=no
10269 USE_INCLUDED_LIBINTL=no
10270
10271 LIBINTL=
10272 LTLIBINTL=
10273 POSUB=
10274
10275 if test "$USE_NLS" = "yes"; then
10276 gt_use_preinstalled_gnugettext=no
10277
10278 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10279 $as_echo_n "checking whether included gettext is requested... " >&6; }
10280
10281 # Check whether --with-included-gettext was given.
10282 if test "${with_included_gettext+set}" = set; then
10283 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10284 else
10285 nls_cv_force_use_gnu_gettext=no
10286 fi
10287
10288 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10289 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10290
10291 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10292 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10293
10294
10295
10296
10297
10298
10299 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10300 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10301 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10302 $as_echo_n "(cached) " >&6
10303 else
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 #include <libintl.h>
10311 extern int _nl_msg_cat_cntr;
10312 extern int *_nl_domain_bindings;
10313 int
10314 main ()
10315 {
10316 bindtextdomain ("", "");
10317 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (ac_try="$ac_link"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329 $as_echo "$ac_try_echo") >&5
10330 (eval "$ac_link") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext && {
10340 test "$cross_compiling" = yes ||
10341 $as_test_x conftest$ac_exeext
10342 }; then
10343 gt_cv_func_gnugettext2_libc=yes
10344 else
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 gt_cv_func_gnugettext2_libc=no
10349 fi
10350
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi
10355 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10356 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10357
10358 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10359
10360
10361
10362 use_additional=yes
10363
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10368
10369 eval additional_includedir=\"$includedir\"
10370 eval additional_libdir=\"$libdir\"
10371
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10374
10375
10376 # Check whether --with-libintl-prefix was given.
10377 if test "${with_libintl_prefix+set}" = set; then
10378 withval=$with_libintl_prefix;
10379 if test "X$withval" = "Xno"; then
10380 use_additional=no
10381 else
10382 if test "X$withval" = "X"; then
10383
10384 acl_save_prefix="$prefix"
10385 prefix="$acl_final_prefix"
10386 acl_save_exec_prefix="$exec_prefix"
10387 exec_prefix="$acl_final_exec_prefix"
10388
10389 eval additional_includedir=\"$includedir\"
10390 eval additional_libdir=\"$libdir\"
10391
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10394
10395 else
10396 additional_includedir="$withval/include"
10397 additional_libdir="$withval/lib"
10398 fi
10399 fi
10400
10401 fi
10402
10403 LIBINTL=
10404 LTLIBINTL=
10405 INCINTL=
10406 rpathdirs=
10407 ltrpathdirs=
10408 names_already_handled=
10409 names_next_round='intl '
10410 while test -n "$names_next_round"; do
10411 names_this_round="$names_next_round"
10412 names_next_round=
10413 for name in $names_this_round; do
10414 already_handled=
10415 for n in $names_already_handled; do
10416 if test "$n" = "$name"; then
10417 already_handled=yes
10418 break
10419 fi
10420 done
10421 if test -z "$already_handled"; then
10422 names_already_handled="$names_already_handled $name"
10423 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10424 eval value=\"\$HAVE_LIB$uppername\"
10425 if test -n "$value"; then
10426 if test "$value" = yes; then
10427 eval value=\"\$LIB$uppername\"
10428 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10429 eval value=\"\$LTLIB$uppername\"
10430 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10431 else
10432 :
10433 fi
10434 else
10435 found_dir=
10436 found_la=
10437 found_so=
10438 found_a=
10439 if test $use_additional = yes; then
10440 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10441 found_dir="$additional_libdir"
10442 found_so="$additional_libdir/lib$name.$shlibext"
10443 if test -f "$additional_libdir/lib$name.la"; then
10444 found_la="$additional_libdir/lib$name.la"
10445 fi
10446 else
10447 if test -f "$additional_libdir/lib$name.$libext"; then
10448 found_dir="$additional_libdir"
10449 found_a="$additional_libdir/lib$name.$libext"
10450 if test -f "$additional_libdir/lib$name.la"; then
10451 found_la="$additional_libdir/lib$name.la"
10452 fi
10453 fi
10454 fi
10455 fi
10456 if test "X$found_dir" = "X"; then
10457 for x in $LDFLAGS $LTLIBINTL; do
10458
10459 acl_save_prefix="$prefix"
10460 prefix="$acl_final_prefix"
10461 acl_save_exec_prefix="$exec_prefix"
10462 exec_prefix="$acl_final_exec_prefix"
10463 eval x=\"$x\"
10464 exec_prefix="$acl_save_exec_prefix"
10465 prefix="$acl_save_prefix"
10466
10467 case "$x" in
10468 -L*)
10469 dir=`echo "X$x" | sed -e 's/^X-L//'`
10470 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10471 found_dir="$dir"
10472 found_so="$dir/lib$name.$shlibext"
10473 if test -f "$dir/lib$name.la"; then
10474 found_la="$dir/lib$name.la"
10475 fi
10476 else
10477 if test -f "$dir/lib$name.$libext"; then
10478 found_dir="$dir"
10479 found_a="$dir/lib$name.$libext"
10480 if test -f "$dir/lib$name.la"; then
10481 found_la="$dir/lib$name.la"
10482 fi
10483 fi
10484 fi
10485 ;;
10486 esac
10487 if test "X$found_dir" != "X"; then
10488 break
10489 fi
10490 done
10491 fi
10492 if test "X$found_dir" != "X"; then
10493 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10494 if test "X$found_so" != "X"; then
10495 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10496 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10497 else
10498 haveit=
10499 for x in $ltrpathdirs; do
10500 if test "X$x" = "X$found_dir"; then
10501 haveit=yes
10502 break
10503 fi
10504 done
10505 if test -z "$haveit"; then
10506 ltrpathdirs="$ltrpathdirs $found_dir"
10507 fi
10508 if test "$hardcode_direct" = yes; then
10509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10510 else
10511 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10512 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10513 haveit=
10514 for x in $rpathdirs; do
10515 if test "X$x" = "X$found_dir"; then
10516 haveit=yes
10517 break
10518 fi
10519 done
10520 if test -z "$haveit"; then
10521 rpathdirs="$rpathdirs $found_dir"
10522 fi
10523 else
10524 haveit=
10525 for x in $LDFLAGS $LIBINTL; do
10526
10527 acl_save_prefix="$prefix"
10528 prefix="$acl_final_prefix"
10529 acl_save_exec_prefix="$exec_prefix"
10530 exec_prefix="$acl_final_exec_prefix"
10531 eval x=\"$x\"
10532 exec_prefix="$acl_save_exec_prefix"
10533 prefix="$acl_save_prefix"
10534
10535 if test "X$x" = "X-L$found_dir"; then
10536 haveit=yes
10537 break
10538 fi
10539 done
10540 if test -z "$haveit"; then
10541 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10542 fi
10543 if test "$hardcode_minus_L" != no; then
10544 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10545 else
10546 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10547 fi
10548 fi
10549 fi
10550 fi
10551 else
10552 if test "X$found_a" != "X"; then
10553 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10554 else
10555 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10556 fi
10557 fi
10558 additional_includedir=
10559 case "$found_dir" in
10560 */lib | */lib/)
10561 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10562 additional_includedir="$basedir/include"
10563 ;;
10564 esac
10565 if test "X$additional_includedir" != "X"; then
10566 if test "X$additional_includedir" != "X/usr/include"; then
10567 haveit=
10568 if test "X$additional_includedir" = "X/usr/local/include"; then
10569 if test -n "$GCC"; then
10570 case $host_os in
10571 linux*) haveit=yes;;
10572 esac
10573 fi
10574 fi
10575 if test -z "$haveit"; then
10576 for x in $CPPFLAGS $INCINTL; do
10577
10578 acl_save_prefix="$prefix"
10579 prefix="$acl_final_prefix"
10580 acl_save_exec_prefix="$exec_prefix"
10581 exec_prefix="$acl_final_exec_prefix"
10582 eval x=\"$x\"
10583 exec_prefix="$acl_save_exec_prefix"
10584 prefix="$acl_save_prefix"
10585
10586 if test "X$x" = "X-I$additional_includedir"; then
10587 haveit=yes
10588 break
10589 fi
10590 done
10591 if test -z "$haveit"; then
10592 if test -d "$additional_includedir"; then
10593 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10594 fi
10595 fi
10596 fi
10597 fi
10598 fi
10599 if test -n "$found_la"; then
10600 save_libdir="$libdir"
10601 case "$found_la" in
10602 */* | *\\*) . "$found_la" ;;
10603 *) . "./$found_la" ;;
10604 esac
10605 libdir="$save_libdir"
10606 for dep in $dependency_libs; do
10607 case "$dep" in
10608 -L*)
10609 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10610 if test "X$additional_libdir" != "X/usr/lib"; then
10611 haveit=
10612 if test "X$additional_libdir" = "X/usr/local/lib"; then
10613 if test -n "$GCC"; then
10614 case $host_os in
10615 linux*) haveit=yes;;
10616 esac
10617 fi
10618 fi
10619 if test -z "$haveit"; then
10620 haveit=
10621 for x in $LDFLAGS $LIBINTL; do
10622
10623 acl_save_prefix="$prefix"
10624 prefix="$acl_final_prefix"
10625 acl_save_exec_prefix="$exec_prefix"
10626 exec_prefix="$acl_final_exec_prefix"
10627 eval x=\"$x\"
10628 exec_prefix="$acl_save_exec_prefix"
10629 prefix="$acl_save_prefix"
10630
10631 if test "X$x" = "X-L$additional_libdir"; then
10632 haveit=yes
10633 break
10634 fi
10635 done
10636 if test -z "$haveit"; then
10637 if test -d "$additional_libdir"; then
10638 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10639 fi
10640 fi
10641 haveit=
10642 for x in $LDFLAGS $LTLIBINTL; do
10643
10644 acl_save_prefix="$prefix"
10645 prefix="$acl_final_prefix"
10646 acl_save_exec_prefix="$exec_prefix"
10647 exec_prefix="$acl_final_exec_prefix"
10648 eval x=\"$x\"
10649 exec_prefix="$acl_save_exec_prefix"
10650 prefix="$acl_save_prefix"
10651
10652 if test "X$x" = "X-L$additional_libdir"; then
10653 haveit=yes
10654 break
10655 fi
10656 done
10657 if test -z "$haveit"; then
10658 if test -d "$additional_libdir"; then
10659 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10660 fi
10661 fi
10662 fi
10663 fi
10664 ;;
10665 -R*)
10666 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10667 if test "$enable_rpath" != no; then
10668 haveit=
10669 for x in $rpathdirs; do
10670 if test "X$x" = "X$dir"; then
10671 haveit=yes
10672 break
10673 fi
10674 done
10675 if test -z "$haveit"; then
10676 rpathdirs="$rpathdirs $dir"
10677 fi
10678 haveit=
10679 for x in $ltrpathdirs; do
10680 if test "X$x" = "X$dir"; then
10681 haveit=yes
10682 break
10683 fi
10684 done
10685 if test -z "$haveit"; then
10686 ltrpathdirs="$ltrpathdirs $dir"
10687 fi
10688 fi
10689 ;;
10690 -l*)
10691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10692 ;;
10693 *.la)
10694 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10695 ;;
10696 *)
10697 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10698 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10699 ;;
10700 esac
10701 done
10702 fi
10703 else
10704 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10705 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10706 fi
10707 fi
10708 fi
10709 done
10710 done
10711 if test "X$rpathdirs" != "X"; then
10712 if test -n "$hardcode_libdir_separator"; then
10713 alldirs=
10714 for found_dir in $rpathdirs; do
10715 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10716 done
10717 acl_save_libdir="$libdir"
10718 libdir="$alldirs"
10719 eval flag=\"$hardcode_libdir_flag_spec\"
10720 libdir="$acl_save_libdir"
10721 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10722 else
10723 for found_dir in $rpathdirs; do
10724 acl_save_libdir="$libdir"
10725 libdir="$found_dir"
10726 eval flag=\"$hardcode_libdir_flag_spec\"
10727 libdir="$acl_save_libdir"
10728 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10729 done
10730 fi
10731 fi
10732 if test "X$ltrpathdirs" != "X"; then
10733 for found_dir in $ltrpathdirs; do
10734 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10735 done
10736 fi
10737
10738 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10739 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10740 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10741 $as_echo_n "(cached) " >&6
10742 else
10743 gt_save_CPPFLAGS="$CPPFLAGS"
10744 CPPFLAGS="$CPPFLAGS $INCINTL"
10745 gt_save_LIBS="$LIBS"
10746 LIBS="$LIBS $LIBINTL"
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <libintl.h>
10754 extern int _nl_msg_cat_cntr;
10755 extern
10756 #ifdef __cplusplus
10757 "C"
10758 #endif
10759 const char *_nl_expand_alias ();
10760 int
10761 main ()
10762 {
10763 bindtextdomain ("", "");
10764 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10765 ;
10766 return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10789 }; then
10790 gt_cv_func_gnugettext2_libintl=yes
10791 else
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 gt_cv_func_gnugettext2_libintl=no
10796 fi
10797
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10802 LIBS="$LIBS $LIBICONV"
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <libintl.h>
10810 extern int _nl_msg_cat_cntr;
10811 extern
10812 #ifdef __cplusplus
10813 "C"
10814 #endif
10815 const char *_nl_expand_alias ();
10816 int
10817 main ()
10818 {
10819 bindtextdomain ("", "");
10820 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10821 ;
10822 return 0;
10823 }
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest$ac_exeext
10845 }; then
10846 LIBINTL="$LIBINTL $LIBICONV"
10847 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10848 gt_cv_func_gnugettext2_libintl=yes
10849
10850 else
10851 $as_echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854
10855 fi
10856
10857 rm -rf conftest.dSYM
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10860 fi
10861 CPPFLAGS="$gt_save_CPPFLAGS"
10862 LIBS="$gt_save_LIBS"
10863 fi
10864 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10865 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10866 fi
10867
10868 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10869 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10870 && test "$PACKAGE" != gettext-runtime \
10871 && test "$PACKAGE" != gettext-tools; }; then
10872 gt_use_preinstalled_gnugettext=yes
10873 else
10874 LIBINTL=
10875 LTLIBINTL=
10876 INCINTL=
10877 fi
10878
10879
10880 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10881 nls_cv_use_gnu_gettext=yes
10882 fi
10883 fi
10884
10885 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10886 BUILD_INCLUDED_LIBINTL=yes
10887 USE_INCLUDED_LIBINTL=yes
10888 LIBINTL="lib/intl/libintl.a $LIBICONV"
10889 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10890 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10891 fi
10892
10893 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10894 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10895 CATOBJEXT=.gmo
10896 fi
10897
10898
10899 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10900 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define ENABLE_NLS 1
10904 _ACEOF
10905
10906 else
10907 USE_NLS=no
10908 fi
10909 fi
10910
10911 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10912 $as_echo_n "checking whether to use NLS... " >&6; }
10913 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10914 $as_echo "$USE_NLS" >&6; }
10915 if test "$USE_NLS" = "yes"; then
10916 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10917 $as_echo_n "checking where the gettext function comes from... " >&6; }
10918 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10919 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10920 gt_source="external libintl"
10921 else
10922 gt_source="libc"
10923 fi
10924 else
10925 gt_source="included intl directory"
10926 fi
10927 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10928 $as_echo "$gt_source" >&6; }
10929 fi
10930
10931 if test "$USE_NLS" = "yes"; then
10932
10933 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10934 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10935 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10936 $as_echo_n "checking how to link with libintl... " >&6; }
10937 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10938 $as_echo "$LIBINTL" >&6; }
10939
10940 for element in $INCINTL; do
10941 haveit=
10942 for x in $CPPFLAGS; do
10943
10944 acl_save_prefix="$prefix"
10945 prefix="$acl_final_prefix"
10946 acl_save_exec_prefix="$exec_prefix"
10947 exec_prefix="$acl_final_exec_prefix"
10948 eval x=\"$x\"
10949 exec_prefix="$acl_save_exec_prefix"
10950 prefix="$acl_save_prefix"
10951
10952 if test "X$x" = "X$element"; then
10953 haveit=yes
10954 break
10955 fi
10956 done
10957 if test -z "$haveit"; then
10958 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10959 fi
10960 done
10961
10962 fi
10963
10964
10965 cat >>confdefs.h <<\_ACEOF
10966 #define HAVE_GETTEXT 1
10967 _ACEOF
10968
10969
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_DCGETTEXT 1
10972 _ACEOF
10973
10974 fi
10975
10976 POSUB=po
10977 fi
10978
10979
10980 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10981 BUILD_INCLUDED_LIBINTL=yes
10982 fi
10983
10984
10985
10986
10987
10988 nls_cv_header_intl=
10989 nls_cv_header_libgt=
10990
10991 DATADIRNAME=share
10992
10993
10994 INSTOBJEXT=.mo
10995
10996
10997 GENCAT=gencat
10998
10999
11000 if test "$USE_INCLUDED_LIBINTL" = yes; then
11001 INTLOBJS="\$(GETTOBJS)"
11002 fi
11003
11004
11005 INTL_LIBTOOL_SUFFIX_PREFIX=
11006
11007
11008
11009 INTLLIBS="$LIBINTL"
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022 ac_header_dirent=no
11023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11024 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11025 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11026 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 $as_echo_n "(cached) " >&6
11029 else
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #include <sys/types.h>
11037 #include <$ac_hdr>
11038
11039 int
11040 main ()
11041 {
11042 if ((DIR *) 0)
11043 return 0;
11044 ;
11045 return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext
11049 if { (ac_try="$ac_compile"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11055 $as_echo "$ac_try_echo") >&5
11056 (eval "$ac_compile") 2>conftest.er1
11057 ac_status=$?
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
11061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && {
11063 test -z "$ac_c_werror_flag" ||
11064 test ! -s conftest.err
11065 } && test -s conftest.$ac_objext; then
11066 eval "$as_ac_Header=yes"
11067 else
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 eval "$as_ac_Header=no"
11072 fi
11073
11074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 fi
11076 ac_res=`eval 'as_val=${'$as_ac_Header'}
11077 $as_echo "$as_val"'`
11078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11079 $as_echo "$ac_res" >&6; }
11080 as_val=`eval 'as_val=${'$as_ac_Header'}
11081 $as_echo "$as_val"'`
11082 if test "x$as_val" = x""yes; then
11083 cat >>confdefs.h <<_ACEOF
11084 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11085 _ACEOF
11086
11087 ac_header_dirent=$ac_hdr; break
11088 fi
11089
11090 done
11091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11092 if test $ac_header_dirent = dirent.h; then
11093 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11094 $as_echo_n "checking for library containing opendir... " >&6; }
11095 if test "${ac_cv_search_opendir+set}" = set; then
11096 $as_echo_n "(cached) " >&6
11097 else
11098 ac_func_search_save_LIBS=$LIBS
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char opendir ();
11113 int
11114 main ()
11115 {
11116 return opendir ();
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 for ac_lib in '' dir; do
11122 if test -z "$ac_lib"; then
11123 ac_res="none required"
11124 else
11125 ac_res=-l$ac_lib
11126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11127 fi
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136 (eval "$ac_link") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext && {
11146 test "$cross_compiling" = yes ||
11147 $as_test_x conftest$ac_exeext
11148 }; then
11149 ac_cv_search_opendir=$ac_res
11150 else
11151 $as_echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154
11155 fi
11156
11157 rm -rf conftest.dSYM
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11159 conftest$ac_exeext
11160 if test "${ac_cv_search_opendir+set}" = set; then
11161 break
11162 fi
11163 done
11164 if test "${ac_cv_search_opendir+set}" = set; then
11165 :
11166 else
11167 ac_cv_search_opendir=no
11168 fi
11169 rm conftest.$ac_ext
11170 LIBS=$ac_func_search_save_LIBS
11171 fi
11172 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11173 $as_echo "$ac_cv_search_opendir" >&6; }
11174 ac_res=$ac_cv_search_opendir
11175 if test "$ac_res" != no; then
11176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11177
11178 fi
11179
11180 else
11181 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11182 $as_echo_n "checking for library containing opendir... " >&6; }
11183 if test "${ac_cv_search_opendir+set}" = set; then
11184 $as_echo_n "(cached) " >&6
11185 else
11186 ac_func_search_save_LIBS=$LIBS
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char opendir ();
11201 int
11202 main ()
11203 {
11204 return opendir ();
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 for ac_lib in '' x; do
11210 if test -z "$ac_lib"; then
11211 ac_res="none required"
11212 else
11213 ac_res=-l$ac_lib
11214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11215 fi
11216 rm -f conftest.$ac_objext conftest$ac_exeext
11217 if { (ac_try="$ac_link"
11218 case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221 esac
11222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11223 $as_echo "$ac_try_echo") >&5
11224 (eval "$ac_link") 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest$ac_exeext && {
11234 test "$cross_compiling" = yes ||
11235 $as_test_x conftest$ac_exeext
11236 }; then
11237 ac_cv_search_opendir=$ac_res
11238 else
11239 $as_echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242
11243 fi
11244
11245 rm -rf conftest.dSYM
11246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11247 conftest$ac_exeext
11248 if test "${ac_cv_search_opendir+set}" = set; then
11249 break
11250 fi
11251 done
11252 if test "${ac_cv_search_opendir+set}" = set; then
11253 :
11254 else
11255 ac_cv_search_opendir=no
11256 fi
11257 rm conftest.$ac_ext
11258 LIBS=$ac_func_search_save_LIBS
11259 fi
11260 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11261 $as_echo "$ac_cv_search_opendir" >&6; }
11262 ac_res=$ac_cv_search_opendir
11263 if test "$ac_res" != no; then
11264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11265
11266 fi
11267
11268 fi
11269
11270 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11271 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11272 if test "${ac_cv_header_time+set}" = set; then
11273 $as_echo_n "(cached) " >&6
11274 else
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <sys/types.h>
11282 #include <sys/time.h>
11283 #include <time.h>
11284
11285 int
11286 main ()
11287 {
11288 if ((struct tm *) 0)
11289 return 0;
11290 ;
11291 return 0;
11292 }
11293 _ACEOF
11294 rm -f conftest.$ac_objext
11295 if { (ac_try="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11301 $as_echo "$ac_try_echo") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 ac_cv_header_time=yes
11313 else
11314 $as_echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_cv_header_time=no
11318 fi
11319
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 fi
11322 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11323 $as_echo "$ac_cv_header_time" >&6; }
11324 if test $ac_cv_header_time = yes; then
11325
11326 cat >>confdefs.h <<\_ACEOF
11327 #define TIME_WITH_SYS_TIME 1
11328 _ACEOF
11329
11330 fi
11331
11332
11333
11334
11335 for ac_header in inttypes.h
11336 do
11337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11340 $as_echo_n "checking for $ac_header... " >&6; }
11341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342 $as_echo_n "(cached) " >&6
11343 fi
11344 ac_res=`eval 'as_val=${'$as_ac_Header'}
11345 $as_echo "$as_val"'`
11346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11347 $as_echo "$ac_res" >&6; }
11348 else
11349 # Is the header compilable?
11350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 $as_echo_n "checking $ac_header usability... " >&6; }
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #include <$ac_header>
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (ac_try="$ac_compile"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11368 $as_echo "$ac_try_echo") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.$ac_objext; then
11379 ac_header_compiler=yes
11380 else
11381 $as_echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 ac_header_compiler=no
11385 fi
11386
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389 $as_echo "$ac_header_compiler" >&6; }
11390
11391 # Is the header present?
11392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393 $as_echo_n "checking $ac_header presence... " >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <$ac_header>
11401 _ACEOF
11402 if { (ac_try="$ac_cpp conftest.$ac_ext"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408 $as_echo "$ac_try_echo") >&5
11409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } >/dev/null && {
11416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 }; then
11419 ac_header_preproc=yes
11420 else
11421 $as_echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424 ac_header_preproc=no
11425 fi
11426
11427 rm -f conftest.err conftest.$ac_ext
11428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11429 $as_echo "$ac_header_preproc" >&6; }
11430
11431 # So? What about this header?
11432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11433 yes:no: )
11434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11438 ac_header_preproc=yes
11439 ;;
11440 no:yes:* )
11441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11444 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11448 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11453 ( cat <<\_ASBOX
11454 ## ------------------------------- ##
11455 ## Report this to bug-bash@gnu.org ##
11456 ## ------------------------------- ##
11457 _ASBOX
11458 ) | sed "s/^/$as_me: WARNING: /" >&2
11459 ;;
11460 esac
11461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11462 $as_echo_n "checking for $ac_header... " >&6; }
11463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 $as_echo_n "(cached) " >&6
11465 else
11466 eval "$as_ac_Header=\$ac_header_preproc"
11467 fi
11468 ac_res=`eval 'as_val=${'$as_ac_Header'}
11469 $as_echo "$as_val"'`
11470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11471 $as_echo "$ac_res" >&6; }
11472
11473 fi
11474 as_val=`eval 'as_val=${'$as_ac_Header'}
11475 $as_echo "$as_val"'`
11476 if test "x$as_val" = x""yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11479 _ACEOF
11480
11481 fi
11482
11483 done
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11508 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11509 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11510 syslog.h
11511 do
11512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 $as_echo_n "checking for $ac_header... " >&6; }
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 $as_echo_n "(cached) " >&6
11518 fi
11519 ac_res=`eval 'as_val=${'$as_ac_Header'}
11520 $as_echo "$as_val"'`
11521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11522 $as_echo "$ac_res" >&6; }
11523 else
11524 # Is the header compilable?
11525 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 $as_echo_n "checking $ac_header usability... " >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11543 $as_echo "$ac_try_echo") >&5
11544 (eval "$ac_compile") 2>conftest.er1
11545 ac_status=$?
11546 grep -v '^ *+' conftest.er1 >conftest.err
11547 rm -f conftest.er1
11548 cat conftest.err >&5
11549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest.$ac_objext; then
11554 ac_header_compiler=yes
11555 else
11556 $as_echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_header_compiler=no
11560 fi
11561
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564 $as_echo "$ac_header_compiler" >&6; }
11565
11566 # Is the header present?
11567 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568 $as_echo_n "checking $ac_header presence... " >&6; }
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <$ac_header>
11576 _ACEOF
11577 if { (ac_try="$ac_cpp conftest.$ac_ext"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11583 $as_echo "$ac_try_echo") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } >/dev/null && {
11591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11593 }; then
11594 ac_header_preproc=yes
11595 else
11596 $as_echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_header_preproc=no
11600 fi
11601
11602 rm -f conftest.err conftest.$ac_ext
11603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604 $as_echo "$ac_header_preproc" >&6; }
11605
11606 # So? What about this header?
11607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608 yes:no: )
11609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613 ac_header_preproc=yes
11614 ;;
11615 no:yes:* )
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628 ( cat <<\_ASBOX
11629 ## ------------------------------- ##
11630 ## Report this to bug-bash@gnu.org ##
11631 ## ------------------------------- ##
11632 _ASBOX
11633 ) | sed "s/^/$as_me: WARNING: /" >&2
11634 ;;
11635 esac
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 $as_echo_n "(cached) " >&6
11640 else
11641 eval "$as_ac_Header=\$ac_header_preproc"
11642 fi
11643 ac_res=`eval 'as_val=${'$as_ac_Header'}
11644 $as_echo "$as_val"'`
11645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11647
11648 fi
11649 as_val=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 if test "x$as_val" = x""yes; then
11652 cat >>confdefs.h <<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654 _ACEOF
11655
11656 fi
11657
11658 done
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11673 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11674 sys/time.h sys/times.h sys/types.h sys/wait.h
11675 do
11676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11679 $as_echo_n "checking for $ac_header... " >&6; }
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 $as_echo_n "(cached) " >&6
11682 fi
11683 ac_res=`eval 'as_val=${'$as_ac_Header'}
11684 $as_echo "$as_val"'`
11685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11686 $as_echo "$ac_res" >&6; }
11687 else
11688 # Is the header compilable?
11689 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11690 $as_echo_n "checking $ac_header usability... " >&6; }
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 $ac_includes_default
11698 #include <$ac_header>
11699 _ACEOF
11700 rm -f conftest.$ac_objext
11701 if { (ac_try="$ac_compile"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
11709 ac_status=$?
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.$ac_objext; then
11718 ac_header_compiler=yes
11719 else
11720 $as_echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723 ac_header_compiler=no
11724 fi
11725
11726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11728 $as_echo "$ac_header_compiler" >&6; }
11729
11730 # Is the header present?
11731 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11732 $as_echo_n "checking $ac_header presence... " >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 #include <$ac_header>
11740 _ACEOF
11741 if { (ac_try="$ac_cpp conftest.$ac_ext"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745 esac
11746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11747 $as_echo "$ac_try_echo") >&5
11748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } >/dev/null && {
11755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 }; then
11758 ac_header_preproc=yes
11759 else
11760 $as_echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 ac_header_preproc=no
11764 fi
11765
11766 rm -f conftest.err conftest.$ac_ext
11767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11768 $as_echo "$ac_header_preproc" >&6; }
11769
11770 # So? What about this header?
11771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11772 yes:no: )
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11777 ac_header_preproc=yes
11778 ;;
11779 no:yes:* )
11780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11781 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11783 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11785 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11787 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11789 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11791 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11792 ( cat <<\_ASBOX
11793 ## ------------------------------- ##
11794 ## Report this to bug-bash@gnu.org ##
11795 ## ------------------------------- ##
11796 _ASBOX
11797 ) | sed "s/^/$as_me: WARNING: /" >&2
11798 ;;
11799 esac
11800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 $as_echo_n "checking for $ac_header... " >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 $as_echo_n "(cached) " >&6
11804 else
11805 eval "$as_ac_Header=\$ac_header_preproc"
11806 fi
11807 ac_res=`eval 'as_val=${'$as_ac_Header'}
11808 $as_echo "$as_val"'`
11809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11810 $as_echo "$ac_res" >&6; }
11811
11812 fi
11813 as_val=`eval 'as_val=${'$as_ac_Header'}
11814 $as_echo "$as_val"'`
11815 if test "x$as_val" = x""yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11818 _ACEOF
11819
11820 fi
11821
11822 done
11823
11824
11825
11826 for ac_header in netinet/in.h arpa/inet.h
11827 do
11828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11831 $as_echo_n "checking for $ac_header... " >&6; }
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 $as_echo_n "(cached) " >&6
11834 fi
11835 ac_res=`eval 'as_val=${'$as_ac_Header'}
11836 $as_echo "$as_val"'`
11837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838 $as_echo "$ac_res" >&6; }
11839 else
11840 # Is the header compilable?
11841 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842 $as_echo_n "checking $ac_header usability... " >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <$ac_header>
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (ac_try="$ac_compile"
11854 case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11857 esac
11858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11859 $as_echo "$ac_try_echo") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && {
11867 test -z "$ac_c_werror_flag" ||
11868 test ! -s conftest.err
11869 } && test -s conftest.$ac_objext; then
11870 ac_header_compiler=yes
11871 else
11872 $as_echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_header_compiler=no
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11880 $as_echo "$ac_header_compiler" >&6; }
11881
11882 # Is the header present?
11883 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11884 $as_echo_n "checking $ac_header presence... " >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <$ac_header>
11892 _ACEOF
11893 if { (ac_try="$ac_cpp conftest.$ac_ext"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null && {
11907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11908 test ! -s conftest.err
11909 }; then
11910 ac_header_preproc=yes
11911 else
11912 $as_echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_header_preproc=no
11916 fi
11917
11918 rm -f conftest.err conftest.$ac_ext
11919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920 $as_echo "$ac_header_preproc" >&6; }
11921
11922 # So? What about this header?
11923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11924 yes:no: )
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11929 ac_header_preproc=yes
11930 ;;
11931 no:yes:* )
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11937 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11939 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11944 ( cat <<\_ASBOX
11945 ## ------------------------------- ##
11946 ## Report this to bug-bash@gnu.org ##
11947 ## ------------------------------- ##
11948 _ASBOX
11949 ) | sed "s/^/$as_me: WARNING: /" >&2
11950 ;;
11951 esac
11952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11953 $as_echo_n "checking for $ac_header... " >&6; }
11954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955 $as_echo_n "(cached) " >&6
11956 else
11957 eval "$as_ac_Header=\$ac_header_preproc"
11958 fi
11959 ac_res=`eval 'as_val=${'$as_ac_Header'}
11960 $as_echo "$as_val"'`
11961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11962 $as_echo "$ac_res" >&6; }
11963
11964 fi
11965 as_val=`eval 'as_val=${'$as_ac_Header'}
11966 $as_echo "$as_val"'`
11967 if test "x$as_val" = x""yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11970 _ACEOF
11971
11972 fi
11973
11974 done
11975
11976
11977 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11978 $as_echo_n "checking for sys/ptem.h... " >&6; }
11979 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988
11989 #if HAVE_SYS_STREAM_H
11990 # include <sys/stream.h>
11991 #endif
11992
11993
11994 #include <sys/ptem.h>
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12014 ac_cv_header_sys_ptem_h=yes
12015 else
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_header_sys_ptem_h=no
12020 fi
12021
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 fi
12024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12025 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
12026
12027
12028
12029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12030 # for constant arguments. Useless!
12031 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12032 $as_echo_n "checking for working alloca.h... " >&6; }
12033 if test "${ac_cv_working_alloca_h+set}" = set; then
12034 $as_echo_n "(cached) " >&6
12035 else
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 #include <alloca.h>
12043 int
12044 main ()
12045 {
12046 char *p = (char *) alloca (2 * sizeof (int));
12047 if (p) return 0;
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059 $as_echo "$ac_try_echo") >&5
12060 (eval "$ac_link") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest$ac_exeext && {
12070 test "$cross_compiling" = yes ||
12071 $as_test_x conftest$ac_exeext
12072 }; then
12073 ac_cv_working_alloca_h=yes
12074 else
12075 $as_echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_cv_working_alloca_h=no
12079 fi
12080
12081 rm -rf conftest.dSYM
12082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12083 conftest$ac_exeext conftest.$ac_ext
12084 fi
12085 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12086 $as_echo "$ac_cv_working_alloca_h" >&6; }
12087 if test $ac_cv_working_alloca_h = yes; then
12088
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_ALLOCA_H 1
12091 _ACEOF
12092
12093 fi
12094
12095 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12096 $as_echo_n "checking for alloca... " >&6; }
12097 if test "${ac_cv_func_alloca_works+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12099 else
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #ifdef __GNUC__
12107 # define alloca __builtin_alloca
12108 #else
12109 # ifdef _MSC_VER
12110 # include <malloc.h>
12111 # define alloca _alloca
12112 # else
12113 # ifdef HAVE_ALLOCA_H
12114 # include <alloca.h>
12115 # else
12116 # ifdef _AIX
12117 #pragma alloca
12118 # else
12119 # ifndef alloca /* predefined by HP cc +Olibcalls */
12120 char *alloca ();
12121 # endif
12122 # endif
12123 # endif
12124 # endif
12125 #endif
12126
12127 int
12128 main ()
12129 {
12130 char *p = (char *) alloca (1);
12131 if (p) return 0;
12132 ;
12133 return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12143 $as_echo "$ac_try_echo") >&5
12144 (eval "$ac_link") 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest$ac_exeext && {
12154 test "$cross_compiling" = yes ||
12155 $as_test_x conftest$ac_exeext
12156 }; then
12157 ac_cv_func_alloca_works=yes
12158 else
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 ac_cv_func_alloca_works=no
12163 fi
12164
12165 rm -rf conftest.dSYM
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167 conftest$ac_exeext conftest.$ac_ext
12168 fi
12169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12170 $as_echo "$ac_cv_func_alloca_works" >&6; }
12171
12172 if test $ac_cv_func_alloca_works = yes; then
12173
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HAVE_ALLOCA 1
12176 _ACEOF
12177
12178 else
12179 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12180 # that cause trouble. Some versions do not even contain alloca or
12181 # contain a buggy version. If you still want to use their alloca,
12182 # use ar to extract alloca.o from them instead of compiling alloca.c.
12183
12184 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define C_ALLOCA 1
12188 _ACEOF
12189
12190
12191 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12192 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12193 if test "${ac_cv_os_cray+set}" = set; then
12194 $as_echo_n "(cached) " >&6
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #if defined CRAY && ! defined CRAY2
12203 webecray
12204 #else
12205 wenotbecray
12206 #endif
12207
12208 _ACEOF
12209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "webecray" >/dev/null 2>&1; then
12211 ac_cv_os_cray=yes
12212 else
12213 ac_cv_os_cray=no
12214 fi
12215 rm -f conftest*
12216
12217 fi
12218 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12219 $as_echo "$ac_cv_os_cray" >&6; }
12220 if test $ac_cv_os_cray = yes; then
12221 for ac_func in _getb67 GETB67 getb67; do
12222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 $as_echo_n "checking for $ac_func... " >&6; }
12225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12227 else
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define $ac_func innocuous_$ac_func
12237
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12242
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12248
12249 #undef $ac_func
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char $ac_func ();
12258 /* The GNU C library defines this for functions which it implements
12259 to always fail with ENOSYS. Some functions are actually named
12260 something starting with __ and the normal name is an alias. */
12261 #if defined __stub_$ac_func || defined __stub___$ac_func
12262 choke me
12263 #endif
12264
12265 int
12266 main ()
12267 {
12268 return $ac_func ();
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278 esac
12279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12280 $as_echo "$ac_try_echo") >&5
12281 (eval "$ac_link") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext && {
12291 test "$cross_compiling" = yes ||
12292 $as_test_x conftest$ac_exeext
12293 }; then
12294 eval "$as_ac_var=yes"
12295 else
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 eval "$as_ac_var=no"
12300 fi
12301
12302 rm -rf conftest.dSYM
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12305 fi
12306 ac_res=`eval 'as_val=${'$as_ac_var'}
12307 $as_echo "$as_val"'`
12308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12309 $as_echo "$ac_res" >&6; }
12310 as_val=`eval 'as_val=${'$as_ac_var'}
12311 $as_echo "$as_val"'`
12312 if test "x$as_val" = x""yes; then
12313
12314 cat >>confdefs.h <<_ACEOF
12315 #define CRAY_STACKSEG_END $ac_func
12316 _ACEOF
12317
12318 break
12319 fi
12320
12321 done
12322 fi
12323
12324 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12325 $as_echo_n "checking stack direction for C alloca... " >&6; }
12326 if test "${ac_cv_c_stack_direction+set}" = set; then
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test "$cross_compiling" = yes; then
12330 ac_cv_c_stack_direction=0
12331 else
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12339 int
12340 find_stack_direction ()
12341 {
12342 static char *addr = 0;
12343 auto char dummy;
12344 if (addr == 0)
12345 {
12346 addr = &dummy;
12347 return find_stack_direction ();
12348 }
12349 else
12350 return (&dummy > addr) ? 1 : -1;
12351 }
12352
12353 int
12354 main ()
12355 {
12356 return find_stack_direction () < 0;
12357 }
12358 _ACEOF
12359 rm -f conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364 esac
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367 (eval "$ac_link") 2>&5
12368 ac_status=$?
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12371 { (case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374 esac
12375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12376 $as_echo "$ac_try_echo") >&5
12377 (eval "$ac_try") 2>&5
12378 ac_status=$?
12379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_c_stack_direction=1
12382 else
12383 $as_echo "$as_me: program exited with status $ac_status" >&5
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ( exit $ac_status )
12388 ac_cv_c_stack_direction=-1
12389 fi
12390 rm -rf conftest.dSYM
12391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12392 fi
12393
12394
12395 fi
12396 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12397 $as_echo "$ac_cv_c_stack_direction" >&6; }
12398
12399 cat >>confdefs.h <<_ACEOF
12400 #define STACK_DIRECTION $ac_cv_c_stack_direction
12401 _ACEOF
12402
12403
12404 fi
12405
12406 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12407 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12408 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12409 $as_echo_n "(cached) " >&6
12410 else
12411 # Use it with a single arg.
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 $ac_includes_default
12419 int
12420 main ()
12421 {
12422 getpgrp (0);
12423 ;
12424 return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext
12428 if { (ac_try="$ac_compile"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432 esac
12433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12434 $as_echo "$ac_try_echo") >&5
12435 (eval "$ac_compile") 2>conftest.er1
12436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } && {
12442 test -z "$ac_c_werror_flag" ||
12443 test ! -s conftest.err
12444 } && test -s conftest.$ac_objext; then
12445 ac_cv_func_getpgrp_void=no
12446 else
12447 $as_echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 ac_cv_func_getpgrp_void=yes
12451 fi
12452
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454
12455 fi
12456 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12457 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12458 if test $ac_cv_func_getpgrp_void = yes; then
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define GETPGRP_VOID 1
12462 _ACEOF
12463
12464 fi
12465
12466 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_cv_func_setvbuf_reversed=no
12470 fi
12471
12472
12473
12474 for ac_func in vprintf
12475 do
12476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12478 $as_echo_n "checking for $ac_func... " >&6; }
12479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12480 $as_echo_n "(cached) " >&6
12481 else
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12490 #define $ac_func innocuous_$ac_func
12491
12492 /* System header to define __stub macros and hopefully few prototypes,
12493 which can conflict with char $ac_func (); below.
12494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 <limits.h> exists even on freestanding compilers. */
12496
12497 #ifdef __STDC__
12498 # include <limits.h>
12499 #else
12500 # include <assert.h>
12501 #endif
12502
12503 #undef $ac_func
12504
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char $ac_func ();
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined __stub_$ac_func || defined __stub___$ac_func
12516 choke me
12517 #endif
12518
12519 int
12520 main ()
12521 {
12522 return $ac_func ();
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532 esac
12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12534 $as_echo "$ac_try_echo") >&5
12535 (eval "$ac_link") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext && {
12545 test "$cross_compiling" = yes ||
12546 $as_test_x conftest$ac_exeext
12547 }; then
12548 eval "$as_ac_var=yes"
12549 else
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 eval "$as_ac_var=no"
12554 fi
12555
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558 conftest$ac_exeext conftest.$ac_ext
12559 fi
12560 ac_res=`eval 'as_val=${'$as_ac_var'}
12561 $as_echo "$as_val"'`
12562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12563 $as_echo "$ac_res" >&6; }
12564 as_val=`eval 'as_val=${'$as_ac_var'}
12565 $as_echo "$as_val"'`
12566 if test "x$as_val" = x""yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569 _ACEOF
12570
12571 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12572 $as_echo_n "checking for _doprnt... " >&6; }
12573 if test "${ac_cv_func__doprnt+set}" = set; then
12574 $as_echo_n "(cached) " >&6
12575 else
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12584 #define _doprnt innocuous__doprnt
12585
12586 /* System header to define __stub macros and hopefully few prototypes,
12587 which can conflict with char _doprnt (); below.
12588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12589 <limits.h> exists even on freestanding compilers. */
12590
12591 #ifdef __STDC__
12592 # include <limits.h>
12593 #else
12594 # include <assert.h>
12595 #endif
12596
12597 #undef _doprnt
12598
12599 /* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 char _doprnt ();
12606 /* The GNU C library defines this for functions which it implements
12607 to always fail with ENOSYS. Some functions are actually named
12608 something starting with __ and the normal name is an alias. */
12609 #if defined __stub__doprnt || defined __stub____doprnt
12610 choke me
12611 #endif
12612
12613 int
12614 main ()
12615 {
12616 return _doprnt ();
12617 ;
12618 return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629 (eval "$ac_link") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest$ac_exeext && {
12639 test "$cross_compiling" = yes ||
12640 $as_test_x conftest$ac_exeext
12641 }; then
12642 ac_cv_func__doprnt=yes
12643 else
12644 $as_echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 ac_cv_func__doprnt=no
12648 fi
12649
12650 rm -rf conftest.dSYM
12651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652 conftest$ac_exeext conftest.$ac_ext
12653 fi
12654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12655 $as_echo "$ac_cv_func__doprnt" >&6; }
12656 if test "x$ac_cv_func__doprnt" = x""yes; then
12657
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_DOPRNT 1
12660 _ACEOF
12661
12662 fi
12663
12664 fi
12665 done
12666
12667
12668 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12669 $as_echo_n "checking for working strcoll... " >&6; }
12670 if test "${ac_cv_func_strcoll_works+set}" = set; then
12671 $as_echo_n "(cached) " >&6
12672 else
12673 if test "$cross_compiling" = yes; then
12674 ac_cv_func_strcoll_works=no
12675 else
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 $ac_includes_default
12683 int
12684 main ()
12685 {
12686 return (strcoll ("abc", "def") >= 0 ||
12687 strcoll ("ABC", "DEF") >= 0 ||
12688 strcoll ("123", "456") >= 0)
12689 ;
12690 return 0;
12691 }
12692 _ACEOF
12693 rm -f conftest$ac_exeext
12694 if { (ac_try="$ac_link"
12695 case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698 esac
12699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12700 $as_echo "$ac_try_echo") >&5
12701 (eval "$ac_link") 2>&5
12702 ac_status=$?
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708 esac
12709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12710 $as_echo "$ac_try_echo") >&5
12711 (eval "$ac_try") 2>&5
12712 ac_status=$?
12713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_func_strcoll_works=yes
12716 else
12717 $as_echo "$as_me: program exited with status $ac_status" >&5
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ( exit $ac_status )
12722 ac_cv_func_strcoll_works=no
12723 fi
12724 rm -rf conftest.dSYM
12725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12726 fi
12727
12728
12729 fi
12730 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12731 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12732 if test $ac_cv_func_strcoll_works = yes; then
12733
12734 cat >>confdefs.h <<\_ACEOF
12735 #define HAVE_STRCOLL 1
12736 _ACEOF
12737
12738 fi
12739
12740
12741
12742 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12743 MALLOC_TARGET=alloca
12744 MALLOC_SRC=alloca.c
12745
12746 MALLOC_LIB='-lmalloc'
12747 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12748 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12749 MALLOC_DEP='$(MALLOC_LIBRARY)'
12750 fi
12751
12752 if test "$ac_cv_func_vprintf" = no; then
12753 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12754 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 #include <stdio.h>
12762
12763 _ACEOF
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12766 ac_cv_func_vprintf=yes
12767 fi
12768 rm -f conftest*
12769
12770 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12771 $as_echo "$ac_cv_func_vprintf" >&6; }
12772 if test $ac_cv_func_vprintf = yes; then
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_VPRINTF 1
12775 _ACEOF
12776
12777 fi
12778 fi
12779
12780 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12781 case " $LIBOBJS " in
12782 *" vprint.$ac_objext "* ) ;;
12783 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12784 ;;
12785 esac
12786
12787 fi
12788
12789 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12790 $as_echo_n "checking return type of signal handlers... " >&6; }
12791 if test "${ac_cv_type_signal+set}" = set; then
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <sys/types.h>
12801 #include <signal.h>
12802
12803 int
12804 main ()
12805 {
12806 return *(signal (0, 0)) (0) == 1;
12807 ;
12808 return 0;
12809 }
12810 _ACEOF
12811 rm -f conftest.$ac_objext
12812 if { (ac_try="$ac_compile"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819 (eval "$ac_compile") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest.$ac_objext; then
12829 ac_cv_type_signal=int
12830 else
12831 $as_echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 ac_cv_type_signal=void
12835 fi
12836
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 fi
12839 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12840 $as_echo "$ac_cv_type_signal" >&6; }
12841
12842 cat >>confdefs.h <<_ACEOF
12843 #define RETSIGTYPE $ac_cv_type_signal
12844 _ACEOF
12845
12846
12847
12848 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12849 $as_echo_n "checking for __setostype... " >&6; }
12850 if test "${ac_cv_func___setostype+set}" = set; then
12851 $as_echo_n "(cached) " >&6
12852 else
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12861 #define __setostype innocuous___setostype
12862
12863 /* System header to define __stub macros and hopefully few prototypes,
12864 which can conflict with char __setostype (); below.
12865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12866 <limits.h> exists even on freestanding compilers. */
12867
12868 #ifdef __STDC__
12869 # include <limits.h>
12870 #else
12871 # include <assert.h>
12872 #endif
12873
12874 #undef __setostype
12875
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 char __setostype ();
12883 /* The GNU C library defines this for functions which it implements
12884 to always fail with ENOSYS. Some functions are actually named
12885 something starting with __ and the normal name is an alias. */
12886 #if defined __stub___setostype || defined __stub_____setostype
12887 choke me
12888 #endif
12889
12890 int
12891 main ()
12892 {
12893 return __setostype ();
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (ac_try="$ac_link"
12900 case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903 esac
12904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12905 $as_echo "$ac_try_echo") >&5
12906 (eval "$ac_link") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest$ac_exeext && {
12916 test "$cross_compiling" = yes ||
12917 $as_test_x conftest$ac_exeext
12918 }; then
12919 ac_cv_func___setostype=yes
12920 else
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 ac_cv_func___setostype=no
12925 fi
12926
12927 rm -rf conftest.dSYM
12928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12929 conftest$ac_exeext conftest.$ac_ext
12930 fi
12931 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12932 $as_echo "$ac_cv_func___setostype" >&6; }
12933 if test "x$ac_cv_func___setostype" = x""yes; then
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_SETOSTYPE 1
12936 _ACEOF
12937
12938 fi
12939
12940 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12941 $as_echo_n "checking for wait3... " >&6; }
12942 if test "${ac_cv_func_wait3+set}" = set; then
12943 $as_echo_n "(cached) " >&6
12944 else
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12953 #define wait3 innocuous_wait3
12954
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char wait3 (); below.
12957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12958 <limits.h> exists even on freestanding compilers. */
12959
12960 #ifdef __STDC__
12961 # include <limits.h>
12962 #else
12963 # include <assert.h>
12964 #endif
12965
12966 #undef wait3
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 char wait3 ();
12975 /* The GNU C library defines this for functions which it implements
12976 to always fail with ENOSYS. Some functions are actually named
12977 something starting with __ and the normal name is an alias. */
12978 #if defined __stub_wait3 || defined __stub___wait3
12979 choke me
12980 #endif
12981
12982 int
12983 main ()
12984 {
12985 return wait3 ();
12986 ;
12987 return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext conftest$ac_exeext
12991 if { (ac_try="$ac_link"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12997 $as_echo "$ac_try_echo") >&5
12998 (eval "$ac_link") 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } && {
13005 test -z "$ac_c_werror_flag" ||
13006 test ! -s conftest.err
13007 } && test -s conftest$ac_exeext && {
13008 test "$cross_compiling" = yes ||
13009 $as_test_x conftest$ac_exeext
13010 }; then
13011 ac_cv_func_wait3=yes
13012 else
13013 $as_echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016 ac_cv_func_wait3=no
13017 fi
13018
13019 rm -rf conftest.dSYM
13020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13021 conftest$ac_exeext conftest.$ac_ext
13022 fi
13023 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
13024 $as_echo "$ac_cv_func_wait3" >&6; }
13025 if test "x$ac_cv_func_wait3" = x""yes; then
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_WAIT3 1
13028 _ACEOF
13029
13030 fi
13031
13032 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
13033 $as_echo_n "checking for isinf... " >&6; }
13034 if test "${ac_cv_func_isinf+set}" = set; then
13035 $as_echo_n "(cached) " >&6
13036 else
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h. */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13045 #define isinf innocuous_isinf
13046
13047 /* System header to define __stub macros and hopefully few prototypes,
13048 which can conflict with char isinf (); below.
13049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13050 <limits.h> exists even on freestanding compilers. */
13051
13052 #ifdef __STDC__
13053 # include <limits.h>
13054 #else
13055 # include <assert.h>
13056 #endif
13057
13058 #undef isinf
13059
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char isinf ();
13067 /* The GNU C library defines this for functions which it implements
13068 to always fail with ENOSYS. Some functions are actually named
13069 something starting with __ and the normal name is an alias. */
13070 #if defined __stub_isinf || defined __stub___isinf
13071 choke me
13072 #endif
13073
13074 int
13075 main ()
13076 {
13077 return isinf ();
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 rm -f conftest.$ac_objext conftest$ac_exeext
13083 if { (ac_try="$ac_link"
13084 case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087 esac
13088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13089 $as_echo "$ac_try_echo") >&5
13090 (eval "$ac_link") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest$ac_exeext && {
13100 test "$cross_compiling" = yes ||
13101 $as_test_x conftest$ac_exeext
13102 }; then
13103 ac_cv_func_isinf=yes
13104 else
13105 $as_echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_cv_func_isinf=no
13109 fi
13110
13111 rm -rf conftest.dSYM
13112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13113 conftest$ac_exeext conftest.$ac_ext
13114 fi
13115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13116 $as_echo "$ac_cv_func_isinf" >&6; }
13117 if test "x$ac_cv_func_isinf" = x""yes; then
13118 cat >>confdefs.h <<\_ACEOF
13119 #define HAVE_ISINF_IN_LIBC 1
13120 _ACEOF
13121
13122 fi
13123
13124 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13125 $as_echo_n "checking for isnan... " >&6; }
13126 if test "${ac_cv_func_isnan+set}" = set; then
13127 $as_echo_n "(cached) " >&6
13128 else
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h. */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13137 #define isnan innocuous_isnan
13138
13139 /* System header to define __stub macros and hopefully few prototypes,
13140 which can conflict with char isnan (); below.
13141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13142 <limits.h> exists even on freestanding compilers. */
13143
13144 #ifdef __STDC__
13145 # include <limits.h>
13146 #else
13147 # include <assert.h>
13148 #endif
13149
13150 #undef isnan
13151
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13155 #ifdef __cplusplus
13156 extern "C"
13157 #endif
13158 char isnan ();
13159 /* The GNU C library defines this for functions which it implements
13160 to always fail with ENOSYS. Some functions are actually named
13161 something starting with __ and the normal name is an alias. */
13162 #if defined __stub_isnan || defined __stub___isnan
13163 choke me
13164 #endif
13165
13166 int
13167 main ()
13168 {
13169 return isnan ();
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182 (eval "$ac_link") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest$ac_exeext && {
13192 test "$cross_compiling" = yes ||
13193 $as_test_x conftest$ac_exeext
13194 }; then
13195 ac_cv_func_isnan=yes
13196 else
13197 $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200 ac_cv_func_isnan=no
13201 fi
13202
13203 rm -rf conftest.dSYM
13204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13205 conftest$ac_exeext conftest.$ac_ext
13206 fi
13207 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13208 $as_echo "$ac_cv_func_isnan" >&6; }
13209 if test "x$ac_cv_func_isnan" = x""yes; then
13210 cat >>confdefs.h <<\_ACEOF
13211 #define HAVE_ISNAN_IN_LIBC 1
13212 _ACEOF
13213
13214 fi
13215
13216
13217 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13218 $as_echo_n "checking for mkfifo... " >&6; }
13219 if test "${ac_cv_func_mkfifo+set}" = set; then
13220 $as_echo_n "(cached) " >&6
13221 else
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h. */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13230 #define mkfifo innocuous_mkfifo
13231
13232 /* System header to define __stub macros and hopefully few prototypes,
13233 which can conflict with char mkfifo (); below.
13234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13235 <limits.h> exists even on freestanding compilers. */
13236
13237 #ifdef __STDC__
13238 # include <limits.h>
13239 #else
13240 # include <assert.h>
13241 #endif
13242
13243 #undef mkfifo
13244
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 char mkfifo ();
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined __stub_mkfifo || defined __stub___mkfifo
13256 choke me
13257 #endif
13258
13259 int
13260 main ()
13261 {
13262 return mkfifo ();
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272 esac
13273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13274 $as_echo "$ac_try_echo") >&5
13275 (eval "$ac_link") 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && {
13282 test -z "$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest$ac_exeext && {
13285 test "$cross_compiling" = yes ||
13286 $as_test_x conftest$ac_exeext
13287 }; then
13288 ac_cv_func_mkfifo=yes
13289 else
13290 $as_echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 ac_cv_func_mkfifo=no
13294 fi
13295
13296 rm -rf conftest.dSYM
13297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13298 conftest$ac_exeext conftest.$ac_ext
13299 fi
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13301 $as_echo "$ac_cv_func_mkfifo" >&6; }
13302 if test "x$ac_cv_func_mkfifo" = x""yes; then
13303 cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_MKFIFO 1
13305 _ACEOF
13306
13307 else
13308 cat >>confdefs.h <<\_ACEOF
13309 #define MKFIFO_MISSING 1
13310 _ACEOF
13311
13312 fi
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13339 getpagesize getpeername getrlimit getrusage gettimeofday \
13340 kill killpg lstat readlink sbrk select setdtablesize \
13341 setitimer tcgetpgrp uname ulimit waitpid
13342 do
13343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13345 $as_echo_n "checking for $ac_func... " >&6; }
13346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13347 $as_echo_n "(cached) " >&6
13348 else
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13357 #define $ac_func innocuous_$ac_func
13358
13359 /* System header to define __stub macros and hopefully few prototypes,
13360 which can conflict with char $ac_func (); below.
13361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13362 <limits.h> exists even on freestanding compilers. */
13363
13364 #ifdef __STDC__
13365 # include <limits.h>
13366 #else
13367 # include <assert.h>
13368 #endif
13369
13370 #undef $ac_func
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char $ac_func ();
13379 /* The GNU C library defines this for functions which it implements
13380 to always fail with ENOSYS. Some functions are actually named
13381 something starting with __ and the normal name is an alias. */
13382 #if defined __stub_$ac_func || defined __stub___$ac_func
13383 choke me
13384 #endif
13385
13386 int
13387 main ()
13388 {
13389 return $ac_func ();
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399 esac
13400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13401 $as_echo "$ac_try_echo") >&5
13402 (eval "$ac_link") 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest$ac_exeext && {
13412 test "$cross_compiling" = yes ||
13413 $as_test_x conftest$ac_exeext
13414 }; then
13415 eval "$as_ac_var=yes"
13416 else
13417 $as_echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 eval "$as_ac_var=no"
13421 fi
13422
13423 rm -rf conftest.dSYM
13424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13425 conftest$ac_exeext conftest.$ac_ext
13426 fi
13427 ac_res=`eval 'as_val=${'$as_ac_var'}
13428 $as_echo "$as_val"'`
13429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13430 $as_echo "$ac_res" >&6; }
13431 as_val=`eval 'as_val=${'$as_ac_var'}
13432 $as_echo "$as_val"'`
13433 if test "x$as_val" = x""yes; then
13434 cat >>confdefs.h <<_ACEOF
13435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13436 _ACEOF
13437
13438 fi
13439 done
13440
13441
13442 for ac_func in rename
13443 do
13444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13445 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13446 $as_echo_n "checking for $ac_func... " >&6; }
13447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13448 $as_echo_n "(cached) " >&6
13449 else
13450 cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h. */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13458 #define $ac_func innocuous_$ac_func
13459
13460 /* System header to define __stub macros and hopefully few prototypes,
13461 which can conflict with char $ac_func (); below.
13462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13463 <limits.h> exists even on freestanding compilers. */
13464
13465 #ifdef __STDC__
13466 # include <limits.h>
13467 #else
13468 # include <assert.h>
13469 #endif
13470
13471 #undef $ac_func
13472
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 char $ac_func ();
13480 /* The GNU C library defines this for functions which it implements
13481 to always fail with ENOSYS. Some functions are actually named
13482 something starting with __ and the normal name is an alias. */
13483 #if defined __stub_$ac_func || defined __stub___$ac_func
13484 choke me
13485 #endif
13486
13487 int
13488 main ()
13489 {
13490 return $ac_func ();
13491 ;
13492 return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500 esac
13501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503 (eval "$ac_link") 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } && {
13510 test -z "$ac_c_werror_flag" ||
13511 test ! -s conftest.err
13512 } && test -s conftest$ac_exeext && {
13513 test "$cross_compiling" = yes ||
13514 $as_test_x conftest$ac_exeext
13515 }; then
13516 eval "$as_ac_var=yes"
13517 else
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 eval "$as_ac_var=no"
13522 fi
13523
13524 rm -rf conftest.dSYM
13525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13526 conftest$ac_exeext conftest.$ac_ext
13527 fi
13528 ac_res=`eval 'as_val=${'$as_ac_var'}
13529 $as_echo "$as_val"'`
13530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13531 $as_echo "$ac_res" >&6; }
13532 as_val=`eval 'as_val=${'$as_ac_var'}
13533 $as_echo "$as_val"'`
13534 if test "x$as_val" = x""yes; then
13535 cat >>confdefs.h <<_ACEOF
13536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13537 _ACEOF
13538
13539 else
13540 case " $LIBOBJS " in
13541 *" $ac_func.$ac_objext "* ) ;;
13542 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13543 ;;
13544 esac
13545
13546 fi
13547 done
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579 for ac_func in bcopy bzero confstr fnmatch \
13580 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13581 memmove pathconf putenv raise regcomp regexec \
13582 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13583 sysconf syslog tcgetattr times ttyname tzset unsetenv
13584 do
13585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13586 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13587 $as_echo_n "checking for $ac_func... " >&6; }
13588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13589 $as_echo_n "(cached) " >&6
13590 else
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13599 #define $ac_func innocuous_$ac_func
13600
13601 /* System header to define __stub macros and hopefully few prototypes,
13602 which can conflict with char $ac_func (); below.
13603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604 <limits.h> exists even on freestanding compilers. */
13605
13606 #ifdef __STDC__
13607 # include <limits.h>
13608 #else
13609 # include <assert.h>
13610 #endif
13611
13612 #undef $ac_func
13613
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 char $ac_func ();
13621 /* The GNU C library defines this for functions which it implements
13622 to always fail with ENOSYS. Some functions are actually named
13623 something starting with __ and the normal name is an alias. */
13624 #if defined __stub_$ac_func || defined __stub___$ac_func
13625 choke me
13626 #endif
13627
13628 int
13629 main ()
13630 {
13631 return $ac_func ();
13632 ;
13633 return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (ac_try="$ac_link"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641 esac
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_link") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest$ac_exeext && {
13654 test "$cross_compiling" = yes ||
13655 $as_test_x conftest$ac_exeext
13656 }; then
13657 eval "$as_ac_var=yes"
13658 else
13659 $as_echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 eval "$as_ac_var=no"
13663 fi
13664
13665 rm -rf conftest.dSYM
13666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13667 conftest$ac_exeext conftest.$ac_ext
13668 fi
13669 ac_res=`eval 'as_val=${'$as_ac_var'}
13670 $as_echo "$as_val"'`
13671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13672 $as_echo "$ac_res" >&6; }
13673 as_val=`eval 'as_val=${'$as_ac_var'}
13674 $as_echo "$as_val"'`
13675 if test "x$as_val" = x""yes; then
13676 cat >>confdefs.h <<_ACEOF
13677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13678 _ACEOF
13679
13680 fi
13681 done
13682
13683
13684
13685
13686 for ac_func in vasprintf asprintf
13687 do
13688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13690 $as_echo_n "checking for $ac_func... " >&6; }
13691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13692 $as_echo_n "(cached) " >&6
13693 else
13694 cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h. */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13702 #define $ac_func innocuous_$ac_func
13703
13704 /* System header to define __stub macros and hopefully few prototypes,
13705 which can conflict with char $ac_func (); below.
13706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13707 <limits.h> exists even on freestanding compilers. */
13708
13709 #ifdef __STDC__
13710 # include <limits.h>
13711 #else
13712 # include <assert.h>
13713 #endif
13714
13715 #undef $ac_func
13716
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char $ac_func ();
13724 /* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727 #if defined __stub_$ac_func || defined __stub___$ac_func
13728 choke me
13729 #endif
13730
13731 int
13732 main ()
13733 {
13734 return $ac_func ();
13735 ;
13736 return 0;
13737 }
13738 _ACEOF
13739 rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (ac_try="$ac_link"
13741 case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13744 esac
13745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13746 $as_echo "$ac_try_echo") >&5
13747 (eval "$ac_link") 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest$ac_exeext && {
13757 test "$cross_compiling" = yes ||
13758 $as_test_x conftest$ac_exeext
13759 }; then
13760 eval "$as_ac_var=yes"
13761 else
13762 $as_echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 eval "$as_ac_var=no"
13766 fi
13767
13768 rm -rf conftest.dSYM
13769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13770 conftest$ac_exeext conftest.$ac_ext
13771 fi
13772 ac_res=`eval 'as_val=${'$as_ac_var'}
13773 $as_echo "$as_val"'`
13774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13775 $as_echo "$ac_res" >&6; }
13776 as_val=`eval 'as_val=${'$as_ac_var'}
13777 $as_echo "$as_val"'`
13778 if test "x$as_val" = x""yes; then
13779 cat >>confdefs.h <<_ACEOF
13780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13781 _ACEOF
13782
13783 fi
13784 done
13785
13786
13787
13788
13789
13790
13791
13792 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13793 do
13794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13796 $as_echo_n "checking for $ac_func... " >&6; }
13797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13798 $as_echo_n "(cached) " >&6
13799 else
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13808 #define $ac_func innocuous_$ac_func
13809
13810 /* System header to define __stub macros and hopefully few prototypes,
13811 which can conflict with char $ac_func (); below.
13812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13813 <limits.h> exists even on freestanding compilers. */
13814
13815 #ifdef __STDC__
13816 # include <limits.h>
13817 #else
13818 # include <assert.h>
13819 #endif
13820
13821 #undef $ac_func
13822
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char $ac_func ();
13830 /* The GNU C library defines this for functions which it implements
13831 to always fail with ENOSYS. Some functions are actually named
13832 something starting with __ and the normal name is an alias. */
13833 #if defined __stub_$ac_func || defined __stub___$ac_func
13834 choke me
13835 #endif
13836
13837 int
13838 main ()
13839 {
13840 return $ac_func ();
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 rm -f conftest.$ac_objext conftest$ac_exeext
13846 if { (ac_try="$ac_link"
13847 case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850 esac
13851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13852 $as_echo "$ac_try_echo") >&5
13853 (eval "$ac_link") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } && {
13860 test -z "$ac_c_werror_flag" ||
13861 test ! -s conftest.err
13862 } && test -s conftest$ac_exeext && {
13863 test "$cross_compiling" = yes ||
13864 $as_test_x conftest$ac_exeext
13865 }; then
13866 eval "$as_ac_var=yes"
13867 else
13868 $as_echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 eval "$as_ac_var=no"
13872 fi
13873
13874 rm -rf conftest.dSYM
13875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13876 conftest$ac_exeext conftest.$ac_ext
13877 fi
13878 ac_res=`eval 'as_val=${'$as_ac_var'}
13879 $as_echo "$as_val"'`
13880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13881 $as_echo "$ac_res" >&6; }
13882 as_val=`eval 'as_val=${'$as_ac_var'}
13883 $as_echo "$as_val"'`
13884 if test "x$as_val" = x""yes; then
13885 cat >>confdefs.h <<_ACEOF
13886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13887 _ACEOF
13888
13889 fi
13890 done
13891
13892
13893
13894
13895 for ac_func in getpwent getpwnam getpwuid
13896 do
13897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13899 $as_echo_n "checking for $ac_func... " >&6; }
13900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13901 $as_echo_n "(cached) " >&6
13902 else
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h. */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13911 #define $ac_func innocuous_$ac_func
13912
13913 /* System header to define __stub macros and hopefully few prototypes,
13914 which can conflict with char $ac_func (); below.
13915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13916 <limits.h> exists even on freestanding compilers. */
13917
13918 #ifdef __STDC__
13919 # include <limits.h>
13920 #else
13921 # include <assert.h>
13922 #endif
13923
13924 #undef $ac_func
13925
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13929 #ifdef __cplusplus
13930 extern "C"
13931 #endif
13932 char $ac_func ();
13933 /* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936 #if defined __stub_$ac_func || defined __stub___$ac_func
13937 choke me
13938 #endif
13939
13940 int
13941 main ()
13942 {
13943 return $ac_func ();
13944 ;
13945 return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext conftest$ac_exeext
13949 if { (ac_try="$ac_link"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13955 $as_echo "$ac_try_echo") >&5
13956 (eval "$ac_link") 2>conftest.er1
13957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest$ac_exeext && {
13966 test "$cross_compiling" = yes ||
13967 $as_test_x conftest$ac_exeext
13968 }; then
13969 eval "$as_ac_var=yes"
13970 else
13971 $as_echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 eval "$as_ac_var=no"
13975 fi
13976
13977 rm -rf conftest.dSYM
13978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13979 conftest$ac_exeext conftest.$ac_ext
13980 fi
13981 ac_res=`eval 'as_val=${'$as_ac_var'}
13982 $as_echo "$as_val"'`
13983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13984 $as_echo "$ac_res" >&6; }
13985 as_val=`eval 'as_val=${'$as_ac_var'}
13986 $as_echo "$as_val"'`
13987 if test "x$as_val" = x""yes; then
13988 cat >>confdefs.h <<_ACEOF
13989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13990 _ACEOF
13991
13992 fi
13993 done
13994
13995
13996
13997 for ac_func in getcwd memset
13998 do
13999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14001 $as_echo_n "checking for $ac_func... " >&6; }
14002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14003 $as_echo_n "(cached) " >&6
14004 else
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14013 #define $ac_func innocuous_$ac_func
14014
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char $ac_func (); below.
14017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14018 <limits.h> exists even on freestanding compilers. */
14019
14020 #ifdef __STDC__
14021 # include <limits.h>
14022 #else
14023 # include <assert.h>
14024 #endif
14025
14026 #undef $ac_func
14027
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14031 #ifdef __cplusplus
14032 extern "C"
14033 #endif
14034 char $ac_func ();
14035 /* The GNU C library defines this for functions which it implements
14036 to always fail with ENOSYS. Some functions are actually named
14037 something starting with __ and the normal name is an alias. */
14038 #if defined __stub_$ac_func || defined __stub___$ac_func
14039 choke me
14040 #endif
14041
14042 int
14043 main ()
14044 {
14045 return $ac_func ();
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055 esac
14056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14057 $as_echo "$ac_try_echo") >&5
14058 (eval "$ac_link") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest$ac_exeext && {
14068 test "$cross_compiling" = yes ||
14069 $as_test_x conftest$ac_exeext
14070 }; then
14071 eval "$as_ac_var=yes"
14072 else
14073 $as_echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076 eval "$as_ac_var=no"
14077 fi
14078
14079 rm -rf conftest.dSYM
14080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14081 conftest$ac_exeext conftest.$ac_ext
14082 fi
14083 ac_res=`eval 'as_val=${'$as_ac_var'}
14084 $as_echo "$as_val"'`
14085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14086 $as_echo "$ac_res" >&6; }
14087 as_val=`eval 'as_val=${'$as_ac_var'}
14088 $as_echo "$as_val"'`
14089 if test "x$as_val" = x""yes; then
14090 cat >>confdefs.h <<_ACEOF
14091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14092 _ACEOF
14093
14094 else
14095 case " $LIBOBJS " in
14096 *" $ac_func.$ac_objext "* ) ;;
14097 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14098 ;;
14099 esac
14100
14101 fi
14102 done
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14113 do
14114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 $as_echo_n "checking for $ac_func... " >&6; }
14117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14118 $as_echo_n "(cached) " >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14129
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14134
14135 #ifdef __STDC__
14136 # include <limits.h>
14137 #else
14138 # include <assert.h>
14139 #endif
14140
14141 #undef $ac_func
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char $ac_func ();
14150 /* The GNU C library defines this for functions which it implements
14151 to always fail with ENOSYS. Some functions are actually named
14152 something starting with __ and the normal name is an alias. */
14153 #if defined __stub_$ac_func || defined __stub___$ac_func
14154 choke me
14155 #endif
14156
14157 int
14158 main ()
14159 {
14160 return $ac_func ();
14161 ;
14162 return 0;
14163 }
14164 _ACEOF
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170 esac
14171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14172 $as_echo "$ac_try_echo") >&5
14173 (eval "$ac_link") 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && {
14180 test -z "$ac_c_werror_flag" ||
14181 test ! -s conftest.err
14182 } && test -s conftest$ac_exeext && {
14183 test "$cross_compiling" = yes ||
14184 $as_test_x conftest$ac_exeext
14185 }; then
14186 eval "$as_ac_var=yes"
14187 else
14188 $as_echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 eval "$as_ac_var=no"
14192 fi
14193
14194 rm -rf conftest.dSYM
14195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14196 conftest$ac_exeext conftest.$ac_ext
14197 fi
14198 ac_res=`eval 'as_val=${'$as_ac_var'}
14199 $as_echo "$as_val"'`
14200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14201 $as_echo "$ac_res" >&6; }
14202 as_val=`eval 'as_val=${'$as_ac_var'}
14203 $as_echo "$as_val"'`
14204 if test "x$as_val" = x""yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14207 _ACEOF
14208
14209 else
14210 case " $LIBOBJS " in
14211 *" $ac_func.$ac_objext "* ) ;;
14212 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14213 ;;
14214 esac
14215
14216 fi
14217 done
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14228 do
14229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14231 $as_echo_n "checking for $ac_func... " >&6; }
14232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14233 $as_echo_n "(cached) " >&6
14234 else
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14243 #define $ac_func innocuous_$ac_func
14244
14245 /* System header to define __stub macros and hopefully few prototypes,
14246 which can conflict with char $ac_func (); below.
14247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14248 <limits.h> exists even on freestanding compilers. */
14249
14250 #ifdef __STDC__
14251 # include <limits.h>
14252 #else
14253 # include <assert.h>
14254 #endif
14255
14256 #undef $ac_func
14257
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14261 #ifdef __cplusplus
14262 extern "C"
14263 #endif
14264 char $ac_func ();
14265 /* The GNU C library defines this for functions which it implements
14266 to always fail with ENOSYS. Some functions are actually named
14267 something starting with __ and the normal name is an alias. */
14268 #if defined __stub_$ac_func || defined __stub___$ac_func
14269 choke me
14270 #endif
14271
14272 int
14273 main ()
14274 {
14275 return $ac_func ();
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285 esac
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_link") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest$ac_exeext && {
14298 test "$cross_compiling" = yes ||
14299 $as_test_x conftest$ac_exeext
14300 }; then
14301 eval "$as_ac_var=yes"
14302 else
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 eval "$as_ac_var=no"
14307 fi
14308
14309 rm -rf conftest.dSYM
14310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14311 conftest$ac_exeext conftest.$ac_ext
14312 fi
14313 ac_res=`eval 'as_val=${'$as_ac_var'}
14314 $as_echo "$as_val"'`
14315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14316 $as_echo "$ac_res" >&6; }
14317 as_val=`eval 'as_val=${'$as_ac_var'}
14318 $as_echo "$as_val"'`
14319 if test "x$as_val" = x""yes; then
14320 cat >>confdefs.h <<_ACEOF
14321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14322 _ACEOF
14323
14324 else
14325 case " $LIBOBJS " in
14326 *" $ac_func.$ac_objext "* ) ;;
14327 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14328 ;;
14329 esac
14330
14331 fi
14332 done
14333
14334
14335
14336 for ac_func in fdprintf
14337 do
14338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14340 $as_echo_n "checking for $ac_func... " >&6; }
14341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14342 $as_echo_n "(cached) " >&6
14343 else
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h. */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14352 #define $ac_func innocuous_$ac_func
14353
14354 /* System header to define __stub macros and hopefully few prototypes,
14355 which can conflict with char $ac_func (); below.
14356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14357 <limits.h> exists even on freestanding compilers. */
14358
14359 #ifdef __STDC__
14360 # include <limits.h>
14361 #else
14362 # include <assert.h>
14363 #endif
14364
14365 #undef $ac_func
14366
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 char $ac_func ();
14374 /* The GNU C library defines this for functions which it implements
14375 to always fail with ENOSYS. Some functions are actually named
14376 something starting with __ and the normal name is an alias. */
14377 #if defined __stub_$ac_func || defined __stub___$ac_func
14378 choke me
14379 #endif
14380
14381 int
14382 main ()
14383 {
14384 return $ac_func ();
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394 esac
14395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14396 $as_echo "$ac_try_echo") >&5
14397 (eval "$ac_link") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest$ac_exeext && {
14407 test "$cross_compiling" = yes ||
14408 $as_test_x conftest$ac_exeext
14409 }; then
14410 eval "$as_ac_var=yes"
14411 else
14412 $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 eval "$as_ac_var=no"
14416 fi
14417
14418 rm -rf conftest.dSYM
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420 conftest$ac_exeext conftest.$ac_ext
14421 fi
14422 ac_res=`eval 'as_val=${'$as_ac_var'}
14423 $as_echo "$as_val"'`
14424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14425 $as_echo "$ac_res" >&6; }
14426 as_val=`eval 'as_val=${'$as_ac_var'}
14427 $as_echo "$as_val"'`
14428 if test "x$as_val" = x""yes; then
14429 cat >>confdefs.h <<_ACEOF
14430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14431 _ACEOF
14432
14433 else
14434 case " $LIBOBJS " in
14435 *" $ac_func.$ac_objext "* ) ;;
14436 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14437 ;;
14438 esac
14439
14440 fi
14441 done
14442
14443
14444
14445 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14446 $as_echo_n "checking whether confstr is declared... " >&6; }
14447 if test "${ac_cv_have_decl_confstr+set}" = set; then
14448 $as_echo_n "(cached) " >&6
14449 else
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14457 int
14458 main ()
14459 {
14460 #ifndef confstr
14461 (void) confstr;
14462 #endif
14463
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (ac_try="$ac_compile"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.$ac_objext; then
14486 ac_cv_have_decl_confstr=yes
14487 else
14488 $as_echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ac_cv_have_decl_confstr=no
14492 fi
14493
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14497 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14498 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14499
14500 cat >>confdefs.h <<_ACEOF
14501 #define HAVE_DECL_CONFSTR 1
14502 _ACEOF
14503
14504
14505 else
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_DECL_CONFSTR 0
14508 _ACEOF
14509
14510
14511 fi
14512
14513
14514 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14515 $as_echo_n "checking whether printf is declared... " >&6; }
14516 if test "${ac_cv_have_decl_printf+set}" = set; then
14517 $as_echo_n "(cached) " >&6
14518 else
14519 cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h. */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 $ac_includes_default
14526 int
14527 main ()
14528 {
14529 #ifndef printf
14530 (void) printf;
14531 #endif
14532
14533 ;
14534 return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext
14538 if { (ac_try="$ac_compile"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542 esac
14543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14544 $as_echo "$ac_try_echo") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.$ac_objext; then
14555 ac_cv_have_decl_printf=yes
14556 else
14557 $as_echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_cv_have_decl_printf=no
14561 fi
14562
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 fi
14565 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14566 $as_echo "$ac_cv_have_decl_printf" >&6; }
14567 if test "x$ac_cv_have_decl_printf" = x""yes; then
14568
14569 cat >>confdefs.h <<_ACEOF
14570 #define HAVE_DECL_PRINTF 1
14571 _ACEOF
14572
14573
14574 else
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_DECL_PRINTF 0
14577 _ACEOF
14578
14579
14580 fi
14581
14582
14583 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14584 $as_echo_n "checking whether sbrk is declared... " >&6; }
14585 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14586 $as_echo_n "(cached) " >&6
14587 else
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h. */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 $ac_includes_default
14595 int
14596 main ()
14597 {
14598 #ifndef sbrk
14599 (void) sbrk;
14600 #endif
14601
14602 ;
14603 return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext
14607 if { (ac_try="$ac_compile"
14608 case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14611 esac
14612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14613 $as_echo "$ac_try_echo") >&5
14614 (eval "$ac_compile") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest.$ac_objext; then
14624 ac_cv_have_decl_sbrk=yes
14625 else
14626 $as_echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14628
14629 ac_cv_have_decl_sbrk=no
14630 fi
14631
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 fi
14634 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14635 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14636 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14637
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_DECL_SBRK 1
14640 _ACEOF
14641
14642
14643 else
14644 cat >>confdefs.h <<_ACEOF
14645 #define HAVE_DECL_SBRK 0
14646 _ACEOF
14647
14648
14649 fi
14650
14651
14652 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14653 $as_echo_n "checking whether setregid is declared... " >&6; }
14654 if test "${ac_cv_have_decl_setregid+set}" = set; then
14655 $as_echo_n "(cached) " >&6
14656 else
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 $ac_includes_default
14664 int
14665 main ()
14666 {
14667 #ifndef setregid
14668 (void) setregid;
14669 #endif
14670
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683 (eval "$ac_compile") 2>conftest.er1
14684 ac_status=$?
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
14688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } && {
14690 test -z "$ac_c_werror_flag" ||
14691 test ! -s conftest.err
14692 } && test -s conftest.$ac_objext; then
14693 ac_cv_have_decl_setregid=yes
14694 else
14695 $as_echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_cv_have_decl_setregid=no
14699 fi
14700
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 fi
14703 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14704 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14705 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14706
14707 cat >>confdefs.h <<_ACEOF
14708 #define HAVE_DECL_SETREGID 1
14709 _ACEOF
14710
14711
14712 else
14713 cat >>confdefs.h <<_ACEOF
14714 #define HAVE_DECL_SETREGID 0
14715 _ACEOF
14716
14717
14718 fi
14719
14720
14721 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14722 $as_echo_n "checking whether strcpy is declared... " >&6; }
14723 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14724 $as_echo_n "(cached) " >&6
14725 else
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h. */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 $ac_includes_default
14733 int
14734 main ()
14735 {
14736 #ifndef strcpy
14737 (void) strcpy;
14738 #endif
14739
14740 ;
14741 return 0;
14742 }
14743 _ACEOF
14744 rm -f conftest.$ac_objext
14745 if { (ac_try="$ac_compile"
14746 case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14749 esac
14750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14751 $as_echo "$ac_try_echo") >&5
14752 (eval "$ac_compile") 2>conftest.er1
14753 ac_status=$?
14754 grep -v '^ *+' conftest.er1 >conftest.err
14755 rm -f conftest.er1
14756 cat conftest.err >&5
14757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } && {
14759 test -z "$ac_c_werror_flag" ||
14760 test ! -s conftest.err
14761 } && test -s conftest.$ac_objext; then
14762 ac_cv_have_decl_strcpy=yes
14763 else
14764 $as_echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 ac_cv_have_decl_strcpy=no
14768 fi
14769
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 fi
14772 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14773 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14774 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14775
14776 cat >>confdefs.h <<_ACEOF
14777 #define HAVE_DECL_STRCPY 1
14778 _ACEOF
14779
14780
14781 else
14782 cat >>confdefs.h <<_ACEOF
14783 #define HAVE_DECL_STRCPY 0
14784 _ACEOF
14785
14786
14787 fi
14788
14789
14790 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14791 $as_echo_n "checking whether strsignal is declared... " >&6; }
14792 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14793 $as_echo_n "(cached) " >&6
14794 else
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14802 int
14803 main ()
14804 {
14805 #ifndef strsignal
14806 (void) strsignal;
14807 #endif
14808
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818 esac
14819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14820 $as_echo "$ac_try_echo") >&5
14821 (eval "$ac_compile") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } && {
14828 test -z "$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14830 } && test -s conftest.$ac_objext; then
14831 ac_cv_have_decl_strsignal=yes
14832 else
14833 $as_echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ac_cv_have_decl_strsignal=no
14837 fi
14838
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 fi
14841 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14842 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14843 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14844
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_DECL_STRSIGNAL 1
14847 _ACEOF
14848
14849
14850 else
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_DECL_STRSIGNAL 0
14853 _ACEOF
14854
14855
14856 fi
14857
14858
14859
14860 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14861 $as_echo_n "checking whether strtold is declared... " >&6; }
14862 if test "${ac_cv_have_decl_strtold+set}" = set; then
14863 $as_echo_n "(cached) " >&6
14864 else
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 $ac_includes_default
14872 int
14873 main ()
14874 {
14875 #ifndef strtold
14876 (void) strtold;
14877 #endif
14878
14879 ;
14880 return 0;
14881 }
14882 _ACEOF
14883 rm -f conftest.$ac_objext
14884 if { (ac_try="$ac_compile"
14885 case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888 esac
14889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14890 $as_echo "$ac_try_echo") >&5
14891 (eval "$ac_compile") 2>conftest.er1
14892 ac_status=$?
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
14896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && {
14898 test -z "$ac_c_werror_flag" ||
14899 test ! -s conftest.err
14900 } && test -s conftest.$ac_objext; then
14901 ac_cv_have_decl_strtold=yes
14902 else
14903 $as_echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14905
14906 ac_cv_have_decl_strtold=no
14907 fi
14908
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 fi
14911 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14912 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14913 if test "x$ac_cv_have_decl_strtold" = x""yes; then
14914
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_DECL_STRTOLD 1
14917 _ACEOF
14918
14919
14920 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14921 $as_echo_n "checking for broken strtold... " >&6; }
14922 if test "${bash_cv_strtold_broken+set}" = set; then
14923 $as_echo_n "(cached) " >&6
14924 else
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <stdlib.h>
14932 int
14933 main ()
14934 {
14935 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14936 ;
14937 return 0;
14938 }
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945 esac
14946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14947 $as_echo "$ac_try_echo") >&5
14948 (eval "$ac_compile") 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest.$ac_objext; then
14958 bash_cv_strtold_broken=no
14959 else
14960 $as_echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963 bash_cv_strtold_broken=yes
14964 fi
14965
14966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967
14968
14969 fi
14970
14971 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14972 $as_echo "$bash_cv_strtold_broken" >&6; }
14973 if test "$bash_cv_strtold_broken" = "yes" ; then
14974 cat >>confdefs.h <<\_ACEOF
14975 #define STRTOLD_BROKEN 1
14976 _ACEOF
14977
14978 fi
14979
14980 else
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_DECL_STRTOLD 0
14983 _ACEOF
14984
14985
14986 fi
14987
14988
14989
14990
14991
14992
14993
14994 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14995 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14996 if test "${bash_cv_decl_strtoimax+set}" = set; then
14997 $as_echo_n "(cached) " >&6
14998 else
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005
15006 #if STDC_HEADERS
15007 # include <stdlib.h>
15008 #endif
15009 #if HAVE_INTTYPES_H
15010 # include <inttypes.h>
15011 #endif
15012
15013 int
15014 main ()
15015 {
15016 return !strtoimax;
15017 ;
15018 return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest.$ac_objext conftest$ac_exeext
15022 if { (ac_try="$ac_link"
15023 case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026 esac
15027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028 $as_echo "$ac_try_echo") >&5
15029 (eval "$ac_link") 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext && {
15039 test "$cross_compiling" = yes ||
15040 $as_test_x conftest$ac_exeext
15041 }; then
15042 bash_cv_decl_strtoimax=yes
15043 else
15044 $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 bash_cv_decl_strtoimax=no
15048 fi
15049
15050 rm -rf conftest.dSYM
15051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15052 conftest$ac_exeext conftest.$ac_ext
15053 fi
15054 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15055 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15056 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15057 if test $bash_cv_decl_strtoimax = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define $bash_tr_func 1
15060 _ACEOF
15061
15062 else
15063 cat >>confdefs.h <<_ACEOF
15064 #define $bash_tr_func 0
15065 _ACEOF
15066
15067 fi
15068
15069
15070
15071
15072 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15073 $as_echo_n "checking for declaration of strtol... " >&6; }
15074 if test "${bash_cv_decl_strtol+set}" = set; then
15075 $as_echo_n "(cached) " >&6
15076 else
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083
15084 #if STDC_HEADERS
15085 # include <stdlib.h>
15086 #endif
15087 #if HAVE_INTTYPES_H
15088 # include <inttypes.h>
15089 #endif
15090
15091 int
15092 main ()
15093 {
15094 return !strtol;
15095 ;
15096 return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (ac_try="$ac_link"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15106 $as_echo "$ac_try_echo") >&5
15107 (eval "$ac_link") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } && {
15114 test -z "$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15116 } && test -s conftest$ac_exeext && {
15117 test "$cross_compiling" = yes ||
15118 $as_test_x conftest$ac_exeext
15119 }; then
15120 bash_cv_decl_strtol=yes
15121 else
15122 $as_echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 bash_cv_decl_strtol=no
15126 fi
15127
15128 rm -rf conftest.dSYM
15129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15130 conftest$ac_exeext conftest.$ac_ext
15131 fi
15132 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15133 $as_echo "$bash_cv_decl_strtol" >&6; }
15134 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15135 if test $bash_cv_decl_strtol = yes; then
15136 cat >>confdefs.h <<_ACEOF
15137 #define $bash_tr_func 1
15138 _ACEOF
15139
15140 else
15141 cat >>confdefs.h <<_ACEOF
15142 #define $bash_tr_func 0
15143 _ACEOF
15144
15145 fi
15146
15147
15148
15149
15150 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15151 $as_echo_n "checking for declaration of strtoll... " >&6; }
15152 if test "${bash_cv_decl_strtoll+set}" = set; then
15153 $as_echo_n "(cached) " >&6
15154 else
15155 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h. */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161
15162 #if STDC_HEADERS
15163 # include <stdlib.h>
15164 #endif
15165 #if HAVE_INTTYPES_H
15166 # include <inttypes.h>
15167 #endif
15168
15169 int
15170 main ()
15171 {
15172 return !strtoll;
15173 ;
15174 return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest.$ac_objext conftest$ac_exeext
15178 if { (ac_try="$ac_link"
15179 case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182 esac
15183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15184 $as_echo "$ac_try_echo") >&5
15185 (eval "$ac_link") 2>conftest.er1
15186 ac_status=$?
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
15190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } && {
15192 test -z "$ac_c_werror_flag" ||
15193 test ! -s conftest.err
15194 } && test -s conftest$ac_exeext && {
15195 test "$cross_compiling" = yes ||
15196 $as_test_x conftest$ac_exeext
15197 }; then
15198 bash_cv_decl_strtoll=yes
15199 else
15200 $as_echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 bash_cv_decl_strtoll=no
15204 fi
15205
15206 rm -rf conftest.dSYM
15207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15208 conftest$ac_exeext conftest.$ac_ext
15209 fi
15210 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15211 $as_echo "$bash_cv_decl_strtoll" >&6; }
15212 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15213 if test $bash_cv_decl_strtoll = yes; then
15214 cat >>confdefs.h <<_ACEOF
15215 #define $bash_tr_func 1
15216 _ACEOF
15217
15218 else
15219 cat >>confdefs.h <<_ACEOF
15220 #define $bash_tr_func 0
15221 _ACEOF
15222
15223 fi
15224
15225
15226
15227
15228 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15229 $as_echo_n "checking for declaration of strtoul... " >&6; }
15230 if test "${bash_cv_decl_strtoul+set}" = set; then
15231 $as_echo_n "(cached) " >&6
15232 else
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239
15240 #if STDC_HEADERS
15241 # include <stdlib.h>
15242 #endif
15243 #if HAVE_INTTYPES_H
15244 # include <inttypes.h>
15245 #endif
15246
15247 int
15248 main ()
15249 {
15250 return !strtoul;
15251 ;
15252 return 0;
15253 }
15254 _ACEOF
15255 rm -f conftest.$ac_objext conftest$ac_exeext
15256 if { (ac_try="$ac_link"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260 esac
15261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15262 $as_echo "$ac_try_echo") >&5
15263 (eval "$ac_link") 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest$ac_exeext && {
15273 test "$cross_compiling" = yes ||
15274 $as_test_x conftest$ac_exeext
15275 }; then
15276 bash_cv_decl_strtoul=yes
15277 else
15278 $as_echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281 bash_cv_decl_strtoul=no
15282 fi
15283
15284 rm -rf conftest.dSYM
15285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15286 conftest$ac_exeext conftest.$ac_ext
15287 fi
15288 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15289 $as_echo "$bash_cv_decl_strtoul" >&6; }
15290 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15291 if test $bash_cv_decl_strtoul = yes; then
15292 cat >>confdefs.h <<_ACEOF
15293 #define $bash_tr_func 1
15294 _ACEOF
15295
15296 else
15297 cat >>confdefs.h <<_ACEOF
15298 #define $bash_tr_func 0
15299 _ACEOF
15300
15301 fi
15302
15303
15304
15305
15306 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15307 $as_echo_n "checking for declaration of strtoull... " >&6; }
15308 if test "${bash_cv_decl_strtoull+set}" = set; then
15309 $as_echo_n "(cached) " >&6
15310 else
15311 cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h. */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317
15318 #if STDC_HEADERS
15319 # include <stdlib.h>
15320 #endif
15321 #if HAVE_INTTYPES_H
15322 # include <inttypes.h>
15323 #endif
15324
15325 int
15326 main ()
15327 {
15328 return !strtoull;
15329 ;
15330 return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (ac_try="$ac_link"
15335 case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15338 esac
15339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15340 $as_echo "$ac_try_echo") >&5
15341 (eval "$ac_link") 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && {
15348 test -z "$ac_c_werror_flag" ||
15349 test ! -s conftest.err
15350 } && test -s conftest$ac_exeext && {
15351 test "$cross_compiling" = yes ||
15352 $as_test_x conftest$ac_exeext
15353 }; then
15354 bash_cv_decl_strtoull=yes
15355 else
15356 $as_echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 bash_cv_decl_strtoull=no
15360 fi
15361
15362 rm -rf conftest.dSYM
15363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15364 conftest$ac_exeext conftest.$ac_ext
15365 fi
15366 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15367 $as_echo "$bash_cv_decl_strtoull" >&6; }
15368 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15369 if test $bash_cv_decl_strtoull = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define $bash_tr_func 1
15372 _ACEOF
15373
15374 else
15375 cat >>confdefs.h <<_ACEOF
15376 #define $bash_tr_func 0
15377 _ACEOF
15378
15379 fi
15380
15381
15382
15383
15384 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15385 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15386 if test "${bash_cv_decl_strtoumax+set}" = set; then
15387 $as_echo_n "(cached) " >&6
15388 else
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h. */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395
15396 #if STDC_HEADERS
15397 # include <stdlib.h>
15398 #endif
15399 #if HAVE_INTTYPES_H
15400 # include <inttypes.h>
15401 #endif
15402
15403 int
15404 main ()
15405 {
15406 return !strtoumax;
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (ac_try="$ac_link"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416 esac
15417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15418 $as_echo "$ac_try_echo") >&5
15419 (eval "$ac_link") 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest$ac_exeext && {
15429 test "$cross_compiling" = yes ||
15430 $as_test_x conftest$ac_exeext
15431 }; then
15432 bash_cv_decl_strtoumax=yes
15433 else
15434 $as_echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15436
15437 bash_cv_decl_strtoumax=no
15438 fi
15439
15440 rm -rf conftest.dSYM
15441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15442 conftest$ac_exeext conftest.$ac_ext
15443 fi
15444 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15445 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15446 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15447 if test $bash_cv_decl_strtoumax = yes; then
15448 cat >>confdefs.h <<_ACEOF
15449 #define $bash_tr_func 1
15450 _ACEOF
15451
15452 else
15453 cat >>confdefs.h <<_ACEOF
15454 #define $bash_tr_func 0
15455 _ACEOF
15456
15457 fi
15458
15459
15460
15461
15462
15463
15464 for ac_header in $ac_header_list
15465 do
15466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 $as_echo_n "checking for $ac_header... " >&6; }
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 $as_echo_n "(cached) " >&6
15472 fi
15473 ac_res=`eval 'as_val=${'$as_ac_Header'}
15474 $as_echo "$as_val"'`
15475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15476 $as_echo "$ac_res" >&6; }
15477 else
15478 # Is the header compilable?
15479 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15480 $as_echo_n "checking $ac_header usability... " >&6; }
15481 cat >conftest.$ac_ext <<_ACEOF
15482 /* confdefs.h. */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15487 $ac_includes_default
15488 #include <$ac_header>
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 ac_header_compiler=yes
15509 else
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_header_compiler=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 $as_echo "$ac_header_compiler" >&6; }
15519
15520 # Is the header present?
15521 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 $as_echo_n "checking $ac_header presence... " >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h. */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535 esac
15536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } >/dev/null && {
15545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 }; then
15548 ac_header_preproc=yes
15549 else
15550 $as_echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_header_preproc=no
15554 fi
15555
15556 rm -f conftest.err conftest.$ac_ext
15557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 $as_echo "$ac_header_preproc" >&6; }
15559
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562 yes:no: )
15563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15568 ;;
15569 no:yes:* )
15570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582 ( cat <<\_ASBOX
15583 ## ------------------------------- ##
15584 ## Report this to bug-bash@gnu.org ##
15585 ## ------------------------------- ##
15586 _ASBOX
15587 ) | sed "s/^/$as_me: WARNING: /" >&2
15588 ;;
15589 esac
15590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15591 $as_echo_n "checking for $ac_header... " >&6; }
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 $as_echo_n "(cached) " >&6
15594 else
15595 eval "$as_ac_Header=\$ac_header_preproc"
15596 fi
15597 ac_res=`eval 'as_val=${'$as_ac_Header'}
15598 $as_echo "$as_val"'`
15599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15600 $as_echo "$ac_res" >&6; }
15601
15602 fi
15603 as_val=`eval 'as_val=${'$as_ac_Header'}
15604 $as_echo "$as_val"'`
15605 if test "x$as_val" = x""yes; then
15606 cat >>confdefs.h <<_ACEOF
15607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608 _ACEOF
15609
15610 fi
15611
15612 done
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622 for ac_func in $ac_func_list
15623 do
15624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15626 $as_echo_n "checking for $ac_func... " >&6; }
15627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15628 $as_echo_n "(cached) " >&6
15629 else
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15638 #define $ac_func innocuous_$ac_func
15639
15640 /* System header to define __stub macros and hopefully few prototypes,
15641 which can conflict with char $ac_func (); below.
15642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15643 <limits.h> exists even on freestanding compilers. */
15644
15645 #ifdef __STDC__
15646 # include <limits.h>
15647 #else
15648 # include <assert.h>
15649 #endif
15650
15651 #undef $ac_func
15652
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 char $ac_func ();
15660 /* The GNU C library defines this for functions which it implements
15661 to always fail with ENOSYS. Some functions are actually named
15662 something starting with __ and the normal name is an alias. */
15663 #if defined __stub_$ac_func || defined __stub___$ac_func
15664 choke me
15665 #endif
15666
15667 int
15668 main ()
15669 {
15670 return $ac_func ();
15671 ;
15672 return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (ac_try="$ac_link"
15677 case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15680 esac
15681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15682 $as_echo "$ac_try_echo") >&5
15683 (eval "$ac_link") 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest$ac_exeext && {
15693 test "$cross_compiling" = yes ||
15694 $as_test_x conftest$ac_exeext
15695 }; then
15696 eval "$as_ac_var=yes"
15697 else
15698 $as_echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15700
15701 eval "$as_ac_var=no"
15702 fi
15703
15704 rm -rf conftest.dSYM
15705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15706 conftest$ac_exeext conftest.$ac_ext
15707 fi
15708 ac_res=`eval 'as_val=${'$as_ac_var'}
15709 $as_echo "$as_val"'`
15710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15711 $as_echo "$ac_res" >&6; }
15712 as_val=`eval 'as_val=${'$as_ac_var'}
15713 $as_echo "$as_val"'`
15714 if test "x$as_val" = x""yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15717 _ACEOF
15718
15719 fi
15720 done
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15739 $as_echo_n "checking for working mktime... " >&6; }
15740 if test "${ac_cv_func_working_mktime+set}" = set; then
15741 $as_echo_n "(cached) " >&6
15742 else
15743 if test "$cross_compiling" = yes; then
15744 ac_cv_func_working_mktime=no
15745 else
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 /* Test program from Paul Eggert and Tony Leneis. */
15753 #ifdef TIME_WITH_SYS_TIME
15754 # include <sys/time.h>
15755 # include <time.h>
15756 #else
15757 # ifdef HAVE_SYS_TIME_H
15758 # include <sys/time.h>
15759 # else
15760 # include <time.h>
15761 # endif
15762 #endif
15763
15764 #include <limits.h>
15765 #include <stdlib.h>
15766
15767 #ifdef HAVE_UNISTD_H
15768 # include <unistd.h>
15769 #endif
15770
15771 #ifndef HAVE_ALARM
15772 # define alarm(X) /* empty */
15773 #endif
15774
15775 /* Work around redefinition to rpl_putenv by other config tests. */
15776 #undef putenv
15777
15778 static time_t time_t_max;
15779 static time_t time_t_min;
15780
15781 /* Values we'll use to set the TZ environment variable. */
15782 static char *tz_strings[] = {
15783 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15784 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15785 };
15786 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15787
15788 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15789 Based on a problem report from Andreas Jaeger. */
15790 static int
15791 spring_forward_gap ()
15792 {
15793 /* glibc (up to about 1998-10-07) failed this test. */
15794 struct tm tm;
15795
15796 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15797 instead of "TZ=America/Vancouver" in order to detect the bug even
15798 on systems that don't support the Olson extension, or don't have the
15799 full zoneinfo tables installed. */
15800 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15801
15802 tm.tm_year = 98;
15803 tm.tm_mon = 3;
15804 tm.tm_mday = 5;
15805 tm.tm_hour = 2;
15806 tm.tm_min = 0;
15807 tm.tm_sec = 0;
15808 tm.tm_isdst = -1;
15809 return mktime (&tm) != (time_t) -1;
15810 }
15811
15812 static int
15813 mktime_test1 (now)
15814 time_t now;
15815 {
15816 struct tm *lt;
15817 return ! (lt = localtime (&now)) || mktime (lt) == now;
15818 }
15819
15820 static int
15821 mktime_test (now)
15822 time_t now;
15823 {
15824 return (mktime_test1 (now)
15825 && mktime_test1 ((time_t) (time_t_max - now))
15826 && mktime_test1 ((time_t) (time_t_min + now)));
15827 }
15828
15829 static int
15830 irix_6_4_bug ()
15831 {
15832 /* Based on code from Ariel Faigon. */
15833 struct tm tm;
15834 tm.tm_year = 96;
15835 tm.tm_mon = 3;
15836 tm.tm_mday = 0;
15837 tm.tm_hour = 0;
15838 tm.tm_min = 0;
15839 tm.tm_sec = 0;
15840 tm.tm_isdst = -1;
15841 mktime (&tm);
15842 return tm.tm_mon == 2 && tm.tm_mday == 31;
15843 }
15844
15845 static int
15846 bigtime_test (j)
15847 int j;
15848 {
15849 struct tm tm;
15850 time_t now;
15851 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15852 now = mktime (&tm);
15853 if (now != (time_t) -1)
15854 {
15855 struct tm *lt = localtime (&now);
15856 if (! (lt
15857 && lt->tm_year == tm.tm_year
15858 && lt->tm_mon == tm.tm_mon
15859 && lt->tm_mday == tm.tm_mday
15860 && lt->tm_hour == tm.tm_hour
15861 && lt->tm_min == tm.tm_min
15862 && lt->tm_sec == tm.tm_sec
15863 && lt->tm_yday == tm.tm_yday
15864 && lt->tm_wday == tm.tm_wday
15865 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15866 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15867 return 0;
15868 }
15869 return 1;
15870 }
15871
15872 static int
15873 year_2050_test ()
15874 {
15875 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15876 ignoring leap seconds. */
15877 unsigned long int answer = 2527315200UL;
15878
15879 struct tm tm;
15880 time_t t;
15881 tm.tm_year = 2050 - 1900;
15882 tm.tm_mon = 2 - 1;
15883 tm.tm_mday = 1;
15884 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15885 tm.tm_isdst = -1;
15886
15887 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15888 instead of "TZ=America/Vancouver" in order to detect the bug even
15889 on systems that don't support the Olson extension, or don't have the
15890 full zoneinfo tables installed. */
15891 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15892
15893 t = mktime (&tm);
15894
15895 /* Check that the result is either a failure, or close enough
15896 to the correct answer that we can assume the discrepancy is
15897 due to leap seconds. */
15898 return (t == (time_t) -1
15899 || (0 < t && answer - 120 <= t && t <= answer + 120));
15900 }
15901
15902 int
15903 main ()
15904 {
15905 time_t t, delta;
15906 int i, j;
15907
15908 /* This test makes some buggy mktime implementations loop.
15909 Give up after 60 seconds; a mktime slower than that
15910 isn't worth using anyway. */
15911 alarm (60);
15912
15913 for (;;)
15914 {
15915 t = (time_t_max << 1) + 1;
15916 if (t <= time_t_max)
15917 break;
15918 time_t_max = t;
15919 }
15920 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15921
15922 delta = time_t_max / 997; /* a suitable prime number */
15923 for (i = 0; i < N_STRINGS; i++)
15924 {
15925 if (tz_strings[i])
15926 putenv (tz_strings[i]);
15927
15928 for (t = 0; t <= time_t_max - delta; t += delta)
15929 if (! mktime_test (t))
15930 return 1;
15931 if (! (mktime_test ((time_t) 1)
15932 && mktime_test ((time_t) (60 * 60))
15933 && mktime_test ((time_t) (60 * 60 * 24))))
15934 return 1;
15935
15936 for (j = 1; ; j <<= 1)
15937 if (! bigtime_test (j))
15938 return 1;
15939 else if (INT_MAX / 2 < j)
15940 break;
15941 if (! bigtime_test (INT_MAX))
15942 return 1;
15943 }
15944 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15945 }
15946 _ACEOF
15947 rm -f conftest$ac_exeext
15948 if { (ac_try="$ac_link"
15949 case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952 esac
15953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15954 $as_echo "$ac_try_echo") >&5
15955 (eval "$ac_link") 2>&5
15956 ac_status=$?
15957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962 esac
15963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15964 $as_echo "$ac_try_echo") >&5
15965 (eval "$ac_try") 2>&5
15966 ac_status=$?
15967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_cv_func_working_mktime=yes
15970 else
15971 $as_echo "$as_me: program exited with status $ac_status" >&5
15972 $as_echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ( exit $ac_status )
15976 ac_cv_func_working_mktime=no
15977 fi
15978 rm -rf conftest.dSYM
15979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15980 fi
15981
15982
15983 fi
15984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15985 $as_echo "$ac_cv_func_working_mktime" >&6; }
15986 if test $ac_cv_func_working_mktime = no; then
15987 case " $LIBOBJS " in
15988 *" mktime.$ac_objext "* ) ;;
15989 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15990 ;;
15991 esac
15992
15993 fi
15994
15995
15996
15997
15998
15999
16000
16001
16002 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16003 do
16004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16007 $as_echo_n "checking for $ac_header... " >&6; }
16008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16009 $as_echo_n "(cached) " >&6
16010 fi
16011 ac_res=`eval 'as_val=${'$as_ac_Header'}
16012 $as_echo "$as_val"'`
16013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16014 $as_echo "$ac_res" >&6; }
16015 else
16016 # Is the header compilable?
16017 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16018 $as_echo_n "checking $ac_header usability... " >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h. */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 $ac_includes_default
16026 #include <$ac_header>
16027 _ACEOF
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033 esac
16034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 ac_header_compiler=yes
16047 else
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 ac_header_compiler=no
16052 fi
16053
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 $as_echo "$ac_header_compiler" >&6; }
16057
16058 # Is the header present?
16059 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16060 $as_echo_n "checking $ac_header presence... " >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <$ac_header>
16068 _ACEOF
16069 if { (ac_try="$ac_cpp conftest.$ac_ext"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073 esac
16074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev/null && {
16083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 }; then
16086 ac_header_preproc=yes
16087 else
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
16092 fi
16093
16094 rm -f conftest.err conftest.$ac_ext
16095 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 $as_echo "$ac_header_preproc" >&6; }
16097
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 yes:no: )
16101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16106 ;;
16107 no:yes:* )
16108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16111 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16115 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120 ( cat <<\_ASBOX
16121 ## ------------------------------- ##
16122 ## Report this to bug-bash@gnu.org ##
16123 ## ------------------------------- ##
16124 _ASBOX
16125 ) | sed "s/^/$as_me: WARNING: /" >&2
16126 ;;
16127 esac
16128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 $as_echo_n "checking for $ac_header... " >&6; }
16130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 $as_echo_n "(cached) " >&6
16132 else
16133 eval "$as_ac_Header=\$ac_header_preproc"
16134 fi
16135 ac_res=`eval 'as_val=${'$as_ac_Header'}
16136 $as_echo "$as_val"'`
16137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16138 $as_echo "$ac_res" >&6; }
16139
16140 fi
16141 as_val=`eval 'as_val=${'$as_ac_Header'}
16142 $as_echo "$as_val"'`
16143 if test "x$as_val" = x""yes; then
16144 cat >>confdefs.h <<_ACEOF
16145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16146 _ACEOF
16147
16148 fi
16149
16150 done
16151
16152
16153
16154
16155 for ac_header in stdlib.h unistd.h
16156 do
16157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 $as_echo_n "checking for $ac_header... " >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 $as_echo_n "(cached) " >&6
16163 fi
16164 ac_res=`eval 'as_val=${'$as_ac_Header'}
16165 $as_echo "$as_val"'`
16166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16167 $as_echo "$ac_res" >&6; }
16168 else
16169 # Is the header compilable?
16170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16171 $as_echo_n "checking $ac_header usability... " >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16179 #include <$ac_header>
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (ac_try="$ac_compile"
16183 case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16186 esac
16187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16188 $as_echo "$ac_try_echo") >&5
16189 (eval "$ac_compile") 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && {
16196 test -z "$ac_c_werror_flag" ||
16197 test ! -s conftest.err
16198 } && test -s conftest.$ac_objext; then
16199 ac_header_compiler=yes
16200 else
16201 $as_echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_header_compiler=no
16205 fi
16206
16207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16209 $as_echo "$ac_header_compiler" >&6; }
16210
16211 # Is the header present?
16212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16213 $as_echo_n "checking $ac_header presence... " >&6; }
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 #include <$ac_header>
16221 _ACEOF
16222 if { (ac_try="$ac_cpp conftest.$ac_ext"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16228 $as_echo "$ac_try_echo") >&5
16229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } >/dev/null && {
16236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16237 test ! -s conftest.err
16238 }; then
16239 ac_header_preproc=yes
16240 else
16241 $as_echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16243
16244 ac_header_preproc=no
16245 fi
16246
16247 rm -f conftest.err conftest.$ac_ext
16248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 $as_echo "$ac_header_preproc" >&6; }
16250
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16253 yes:no: )
16254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16259 ;;
16260 no:yes:* )
16261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16273 ( cat <<\_ASBOX
16274 ## ------------------------------- ##
16275 ## Report this to bug-bash@gnu.org ##
16276 ## ------------------------------- ##
16277 _ASBOX
16278 ) | sed "s/^/$as_me: WARNING: /" >&2
16279 ;;
16280 esac
16281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 $as_echo_n "checking for $ac_header... " >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 $as_echo_n "(cached) " >&6
16285 else
16286 eval "$as_ac_Header=\$ac_header_preproc"
16287 fi
16288 ac_res=`eval 'as_val=${'$as_ac_Header'}
16289 $as_echo "$as_val"'`
16290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16291 $as_echo "$ac_res" >&6; }
16292
16293 fi
16294 as_val=`eval 'as_val=${'$as_ac_Header'}
16295 $as_echo "$as_val"'`
16296 if test "x$as_val" = x""yes; then
16297 cat >>confdefs.h <<_ACEOF
16298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16299 _ACEOF
16300
16301 fi
16302
16303 done
16304
16305
16306 for ac_func in getpagesize
16307 do
16308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16310 $as_echo_n "checking for $ac_func... " >&6; }
16311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16312 $as_echo_n "(cached) " >&6
16313 else
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h. */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16322 #define $ac_func innocuous_$ac_func
16323
16324 /* System header to define __stub macros and hopefully few prototypes,
16325 which can conflict with char $ac_func (); below.
16326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16327 <limits.h> exists even on freestanding compilers. */
16328
16329 #ifdef __STDC__
16330 # include <limits.h>
16331 #else
16332 # include <assert.h>
16333 #endif
16334
16335 #undef $ac_func
16336
16337 /* Override any GCC internal prototype to avoid an error.
16338 Use char because int might match the return type of a GCC
16339 builtin and then its argument prototype would still apply. */
16340 #ifdef __cplusplus
16341 extern "C"
16342 #endif
16343 char $ac_func ();
16344 /* The GNU C library defines this for functions which it implements
16345 to always fail with ENOSYS. Some functions are actually named
16346 something starting with __ and the normal name is an alias. */
16347 #if defined __stub_$ac_func || defined __stub___$ac_func
16348 choke me
16349 #endif
16350
16351 int
16352 main ()
16353 {
16354 return $ac_func ();
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (ac_try="$ac_link"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364 esac
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_link") 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest$ac_exeext && {
16377 test "$cross_compiling" = yes ||
16378 $as_test_x conftest$ac_exeext
16379 }; then
16380 eval "$as_ac_var=yes"
16381 else
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 eval "$as_ac_var=no"
16386 fi
16387
16388 rm -rf conftest.dSYM
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16391 fi
16392 ac_res=`eval 'as_val=${'$as_ac_var'}
16393 $as_echo "$as_val"'`
16394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16395 $as_echo "$ac_res" >&6; }
16396 as_val=`eval 'as_val=${'$as_ac_var'}
16397 $as_echo "$as_val"'`
16398 if test "x$as_val" = x""yes; then
16399 cat >>confdefs.h <<_ACEOF
16400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16401 _ACEOF
16402
16403 fi
16404 done
16405
16406 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16407 $as_echo_n "checking for working mmap... " >&6; }
16408 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16409 $as_echo_n "(cached) " >&6
16410 else
16411 if test "$cross_compiling" = yes; then
16412 ac_cv_func_mmap_fixed_mapped=no
16413 else
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h. */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 $ac_includes_default
16421 /* malloc might have been renamed as rpl_malloc. */
16422 #undef malloc
16423
16424 /* Thanks to Mike Haertel and Jim Avera for this test.
16425 Here is a matrix of mmap possibilities:
16426 mmap private not fixed
16427 mmap private fixed at somewhere currently unmapped
16428 mmap private fixed at somewhere already mapped
16429 mmap shared not fixed
16430 mmap shared fixed at somewhere currently unmapped
16431 mmap shared fixed at somewhere already mapped
16432 For private mappings, we should verify that changes cannot be read()
16433 back from the file, nor mmap's back from the file at a different
16434 address. (There have been systems where private was not correctly
16435 implemented like the infamous i386 svr4.0, and systems where the
16436 VM page cache was not coherent with the file system buffer cache
16437 like early versions of FreeBSD and possibly contemporary NetBSD.)
16438 For shared mappings, we should conversely verify that changes get
16439 propagated back to all the places they're supposed to be.
16440
16441 Grep wants private fixed already mapped.
16442 The main things grep needs to know about mmap are:
16443 * does it exist and is it safe to write into the mmap'd area
16444 * how to use it (BSD variants) */
16445
16446 #include <fcntl.h>
16447 #include <sys/mman.h>
16448
16449 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16450 char *malloc ();
16451 #endif
16452
16453 /* This mess was copied from the GNU getpagesize.h. */
16454 #ifndef HAVE_GETPAGESIZE
16455 /* Assume that all systems that can run configure have sys/param.h. */
16456 # ifndef HAVE_SYS_PARAM_H
16457 # define HAVE_SYS_PARAM_H 1
16458 # endif
16459
16460 # ifdef _SC_PAGESIZE
16461 # define getpagesize() sysconf(_SC_PAGESIZE)
16462 # else /* no _SC_PAGESIZE */
16463 # ifdef HAVE_SYS_PARAM_H
16464 # include <sys/param.h>
16465 # ifdef EXEC_PAGESIZE
16466 # define getpagesize() EXEC_PAGESIZE
16467 # else /* no EXEC_PAGESIZE */
16468 # ifdef NBPG
16469 # define getpagesize() NBPG * CLSIZE
16470 # ifndef CLSIZE
16471 # define CLSIZE 1
16472 # endif /* no CLSIZE */
16473 # else /* no NBPG */
16474 # ifdef NBPC
16475 # define getpagesize() NBPC
16476 # else /* no NBPC */
16477 # ifdef PAGESIZE
16478 # define getpagesize() PAGESIZE
16479 # endif /* PAGESIZE */
16480 # endif /* no NBPC */
16481 # endif /* no NBPG */
16482 # endif /* no EXEC_PAGESIZE */
16483 # else /* no HAVE_SYS_PARAM_H */
16484 # define getpagesize() 8192 /* punt totally */
16485 # endif /* no HAVE_SYS_PARAM_H */
16486 # endif /* no _SC_PAGESIZE */
16487
16488 #endif /* no HAVE_GETPAGESIZE */
16489
16490 int
16491 main ()
16492 {
16493 char *data, *data2, *data3;
16494 int i, pagesize;
16495 int fd;
16496
16497 pagesize = getpagesize ();
16498
16499 /* First, make a file with some known garbage in it. */
16500 data = (char *) malloc (pagesize);
16501 if (!data)
16502 return 1;
16503 for (i = 0; i < pagesize; ++i)
16504 *(data + i) = rand ();
16505 umask (0);
16506 fd = creat ("conftest.mmap", 0600);
16507 if (fd < 0)
16508 return 1;
16509 if (write (fd, data, pagesize) != pagesize)
16510 return 1;
16511 close (fd);
16512
16513 /* Next, try to mmap the file at a fixed address which already has
16514 something else allocated at it. If we can, also make sure that
16515 we see the same garbage. */
16516 fd = open ("conftest.mmap", O_RDWR);
16517 if (fd < 0)
16518 return 1;
16519 data2 = (char *) malloc (2 * pagesize);
16520 if (!data2)
16521 return 1;
16522 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16523 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16524 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16525 return 1;
16526 for (i = 0; i < pagesize; ++i)
16527 if (*(data + i) != *(data2 + i))
16528 return 1;
16529
16530 /* Finally, make sure that changes to the mapped area do not
16531 percolate back to the file as seen by read(). (This is a bug on
16532 some variants of i386 svr4.0.) */
16533 for (i = 0; i < pagesize; ++i)
16534 *(data2 + i) = *(data2 + i) + 1;
16535 data3 = (char *) malloc (pagesize);
16536 if (!data3)
16537 return 1;
16538 if (read (fd, data3, pagesize) != pagesize)
16539 return 1;
16540 for (i = 0; i < pagesize; ++i)
16541 if (*(data + i) != *(data3 + i))
16542 return 1;
16543 close (fd);
16544 return 0;
16545 }
16546 _ACEOF
16547 rm -f conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552 esac
16553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16554 $as_echo "$ac_try_echo") >&5
16555 (eval "$ac_link") 2>&5
16556 ac_status=$?
16557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16564 $as_echo "$ac_try_echo") >&5
16565 (eval "$ac_try") 2>&5
16566 ac_status=$?
16567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_cv_func_mmap_fixed_mapped=yes
16570 else
16571 $as_echo "$as_me: program exited with status $ac_status" >&5
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ( exit $ac_status )
16576 ac_cv_func_mmap_fixed_mapped=no
16577 fi
16578 rm -rf conftest.dSYM
16579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16580 fi
16581
16582
16583 fi
16584 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16585 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16587
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_MMAP 1
16590 _ACEOF
16591
16592 fi
16593 rm -f conftest.mmap
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16605 munmap stpcpy strcspn strdup
16606 do
16607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16608 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16609 $as_echo_n "checking for $ac_func... " >&6; }
16610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16611 $as_echo_n "(cached) " >&6
16612 else
16613 cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h. */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16621 #define $ac_func innocuous_$ac_func
16622
16623 /* System header to define __stub macros and hopefully few prototypes,
16624 which can conflict with char $ac_func (); below.
16625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16626 <limits.h> exists even on freestanding compilers. */
16627
16628 #ifdef __STDC__
16629 # include <limits.h>
16630 #else
16631 # include <assert.h>
16632 #endif
16633
16634 #undef $ac_func
16635
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16639 #ifdef __cplusplus
16640 extern "C"
16641 #endif
16642 char $ac_func ();
16643 /* The GNU C library defines this for functions which it implements
16644 to always fail with ENOSYS. Some functions are actually named
16645 something starting with __ and the normal name is an alias. */
16646 #if defined __stub_$ac_func || defined __stub___$ac_func
16647 choke me
16648 #endif
16649
16650 int
16651 main ()
16652 {
16653 return $ac_func ();
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (ac_try="$ac_link"
16660 case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663 esac
16664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16665 $as_echo "$ac_try_echo") >&5
16666 (eval "$ac_link") 2>conftest.er1
16667 ac_status=$?
16668 grep -v '^ *+' conftest.er1 >conftest.err
16669 rm -f conftest.er1
16670 cat conftest.err >&5
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && {
16673 test -z "$ac_c_werror_flag" ||
16674 test ! -s conftest.err
16675 } && test -s conftest$ac_exeext && {
16676 test "$cross_compiling" = yes ||
16677 $as_test_x conftest$ac_exeext
16678 }; then
16679 eval "$as_ac_var=yes"
16680 else
16681 $as_echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 eval "$as_ac_var=no"
16685 fi
16686
16687 rm -rf conftest.dSYM
16688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16689 conftest$ac_exeext conftest.$ac_ext
16690 fi
16691 ac_res=`eval 'as_val=${'$as_ac_var'}
16692 $as_echo "$as_val"'`
16693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16694 $as_echo "$ac_res" >&6; }
16695 as_val=`eval 'as_val=${'$as_ac_var'}
16696 $as_echo "$as_val"'`
16697 if test "x$as_val" = x""yes; then
16698 cat >>confdefs.h <<_ACEOF
16699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16700 _ACEOF
16701
16702 fi
16703 done
16704
16705
16706 INTL_DEP= INTL_INC= LIBINTL_H=
16707 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16708 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16709 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16710 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16711 fi
16712
16713
16714
16715
16716
16717
16718
16719 for ac_header in wctype.h
16720 do
16721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16724 $as_echo_n "checking for $ac_header... " >&6; }
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 $as_echo_n "(cached) " >&6
16727 fi
16728 ac_res=`eval 'as_val=${'$as_ac_Header'}
16729 $as_echo "$as_val"'`
16730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16731 $as_echo "$ac_res" >&6; }
16732 else
16733 # Is the header compilable?
16734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735 $as_echo_n "checking $ac_header usability... " >&6; }
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h. */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 $ac_includes_default
16743 #include <$ac_header>
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16763 ac_header_compiler=yes
16764 else
16765 $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768 ac_header_compiler=no
16769 fi
16770
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16773 $as_echo "$ac_header_compiler" >&6; }
16774
16775 # Is the header present?
16776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16777 $as_echo_n "checking $ac_header presence... " >&6; }
16778 cat >conftest.$ac_ext <<_ACEOF
16779 /* confdefs.h. */
16780 _ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 #include <$ac_header>
16785 _ACEOF
16786 if { (ac_try="$ac_cpp conftest.$ac_ext"
16787 case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790 esac
16791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16792 $as_echo "$ac_try_echo") >&5
16793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } >/dev/null && {
16800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16802 }; then
16803 ac_header_preproc=yes
16804 else
16805 $as_echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_header_preproc=no
16809 fi
16810
16811 rm -f conftest.err conftest.$ac_ext
16812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16813 $as_echo "$ac_header_preproc" >&6; }
16814
16815 # So? What about this header?
16816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16817 yes:no: )
16818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16822 ac_header_preproc=yes
16823 ;;
16824 no:yes:* )
16825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16837 ( cat <<\_ASBOX
16838 ## ------------------------------- ##
16839 ## Report this to bug-bash@gnu.org ##
16840 ## ------------------------------- ##
16841 _ASBOX
16842 ) | sed "s/^/$as_me: WARNING: /" >&2
16843 ;;
16844 esac
16845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16846 $as_echo_n "checking for $ac_header... " >&6; }
16847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16848 $as_echo_n "(cached) " >&6
16849 else
16850 eval "$as_ac_Header=\$ac_header_preproc"
16851 fi
16852 ac_res=`eval 'as_val=${'$as_ac_Header'}
16853 $as_echo "$as_val"'`
16854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16855 $as_echo "$ac_res" >&6; }
16856
16857 fi
16858 as_val=`eval 'as_val=${'$as_ac_Header'}
16859 $as_echo "$as_val"'`
16860 if test "x$as_val" = x""yes; then
16861 cat >>confdefs.h <<_ACEOF
16862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16863 _ACEOF
16864
16865 fi
16866
16867 done
16868
16869
16870 for ac_header in wchar.h
16871 do
16872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16875 $as_echo_n "checking for $ac_header... " >&6; }
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877 $as_echo_n "(cached) " >&6
16878 fi
16879 ac_res=`eval 'as_val=${'$as_ac_Header'}
16880 $as_echo "$as_val"'`
16881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16882 $as_echo "$ac_res" >&6; }
16883 else
16884 # Is the header compilable?
16885 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16886 $as_echo_n "checking $ac_header usability... " >&6; }
16887 cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h. */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 $ac_includes_default
16894 #include <$ac_header>
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901 esac
16902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16903 $as_echo "$ac_try_echo") >&5
16904 (eval "$ac_compile") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } && {
16911 test -z "$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16913 } && test -s conftest.$ac_objext; then
16914 ac_header_compiler=yes
16915 else
16916 $as_echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919 ac_header_compiler=no
16920 fi
16921
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16924 $as_echo "$ac_header_compiler" >&6; }
16925
16926 # Is the header present?
16927 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16928 $as_echo_n "checking $ac_header presence... " >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 #include <$ac_header>
16936 _ACEOF
16937 if { (ac_try="$ac_cpp conftest.$ac_ext"
16938 case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941 esac
16942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16943 $as_echo "$ac_try_echo") >&5
16944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } >/dev/null && {
16951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16952 test ! -s conftest.err
16953 }; then
16954 ac_header_preproc=yes
16955 else
16956 $as_echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 ac_header_preproc=no
16960 fi
16961
16962 rm -f conftest.err conftest.$ac_ext
16963 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16964 $as_echo "$ac_header_preproc" >&6; }
16965
16966 # So? What about this header?
16967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16968 yes:no: )
16969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16970 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16973 ac_header_preproc=yes
16974 ;;
16975 no:yes:* )
16976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16977 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16979 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16981 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16983 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16987 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16988 ( cat <<\_ASBOX
16989 ## ------------------------------- ##
16990 ## Report this to bug-bash@gnu.org ##
16991 ## ------------------------------- ##
16992 _ASBOX
16993 ) | sed "s/^/$as_me: WARNING: /" >&2
16994 ;;
16995 esac
16996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16997 $as_echo_n "checking for $ac_header... " >&6; }
16998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16999 $as_echo_n "(cached) " >&6
17000 else
17001 eval "$as_ac_Header=\$ac_header_preproc"
17002 fi
17003 ac_res=`eval 'as_val=${'$as_ac_Header'}
17004 $as_echo "$as_val"'`
17005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17006 $as_echo "$ac_res" >&6; }
17007
17008 fi
17009 as_val=`eval 'as_val=${'$as_ac_Header'}
17010 $as_echo "$as_val"'`
17011 if test "x$as_val" = x""yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17014 _ACEOF
17015
17016 fi
17017
17018 done
17019
17020
17021 for ac_header in langinfo.h
17022 do
17023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17026 $as_echo_n "checking for $ac_header... " >&6; }
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028 $as_echo_n "(cached) " >&6
17029 fi
17030 ac_res=`eval 'as_val=${'$as_ac_Header'}
17031 $as_echo "$as_val"'`
17032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17033 $as_echo "$ac_res" >&6; }
17034 else
17035 # Is the header compilable?
17036 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17037 $as_echo_n "checking $ac_header usability... " >&6; }
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h. */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 $ac_includes_default
17045 #include <$ac_header>
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (ac_try="$ac_compile"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052 esac
17053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17054 $as_echo "$ac_try_echo") >&5
17055 (eval "$ac_compile") 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest.$ac_objext; then
17065 ac_header_compiler=yes
17066 else
17067 $as_echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_header_compiler=no
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17075 $as_echo "$ac_header_compiler" >&6; }
17076
17077 # Is the header present?
17078 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17079 $as_echo_n "checking $ac_header presence... " >&6; }
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 #include <$ac_header>
17087 _ACEOF
17088 if { (ac_try="$ac_cpp conftest.$ac_ext"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } >/dev/null && {
17102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 }; then
17105 ac_header_preproc=yes
17106 else
17107 $as_echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110 ac_header_preproc=no
17111 fi
17112
17113 rm -f conftest.err conftest.$ac_ext
17114 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17115 $as_echo "$ac_header_preproc" >&6; }
17116
17117 # So? What about this header?
17118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17119 yes:no: )
17120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17121 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17124 ac_header_preproc=yes
17125 ;;
17126 no:yes:* )
17127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17128 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17130 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17132 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17134 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17136 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17138 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17139 ( cat <<\_ASBOX
17140 ## ------------------------------- ##
17141 ## Report this to bug-bash@gnu.org ##
17142 ## ------------------------------- ##
17143 _ASBOX
17144 ) | sed "s/^/$as_me: WARNING: /" >&2
17145 ;;
17146 esac
17147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17148 $as_echo_n "checking for $ac_header... " >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150 $as_echo_n "(cached) " >&6
17151 else
17152 eval "$as_ac_Header=\$ac_header_preproc"
17153 fi
17154 ac_res=`eval 'as_val=${'$as_ac_Header'}
17155 $as_echo "$as_val"'`
17156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17157 $as_echo "$ac_res" >&6; }
17158
17159 fi
17160 as_val=`eval 'as_val=${'$as_ac_Header'}
17161 $as_echo "$as_val"'`
17162 if test "x$as_val" = x""yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17165 _ACEOF
17166
17167 fi
17168
17169 done
17170
17171
17172 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17173 $as_echo_n "checking for mbrlen... " >&6; }
17174 if test "${ac_cv_func_mbrlen+set}" = set; then
17175 $as_echo_n "(cached) " >&6
17176 else
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h. */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17185 #define mbrlen innocuous_mbrlen
17186
17187 /* System header to define __stub macros and hopefully few prototypes,
17188 which can conflict with char mbrlen (); below.
17189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17190 <limits.h> exists even on freestanding compilers. */
17191
17192 #ifdef __STDC__
17193 # include <limits.h>
17194 #else
17195 # include <assert.h>
17196 #endif
17197
17198 #undef mbrlen
17199
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17203 #ifdef __cplusplus
17204 extern "C"
17205 #endif
17206 char mbrlen ();
17207 /* The GNU C library defines this for functions which it implements
17208 to always fail with ENOSYS. Some functions are actually named
17209 something starting with __ and the normal name is an alias. */
17210 #if defined __stub_mbrlen || defined __stub___mbrlen
17211 choke me
17212 #endif
17213
17214 int
17215 main ()
17216 {
17217 return mbrlen ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227 esac
17228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17229 $as_echo "$ac_try_echo") >&5
17230 (eval "$ac_link") 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_c_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest$ac_exeext && {
17240 test "$cross_compiling" = yes ||
17241 $as_test_x conftest$ac_exeext
17242 }; then
17243 ac_cv_func_mbrlen=yes
17244 else
17245 $as_echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_cv_func_mbrlen=no
17249 fi
17250
17251 rm -rf conftest.dSYM
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17254 fi
17255 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17256 $as_echo "$ac_cv_func_mbrlen" >&6; }
17257 if test "x$ac_cv_func_mbrlen" = x""yes; then
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_MBRLEN 1
17260 _ACEOF
17261
17262 fi
17263
17264 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17265 $as_echo_n "checking for mbscasecmp... " >&6; }
17266 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17267 $as_echo_n "(cached) " >&6
17268 else
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277 #define mbscasecmp innocuous_mbscasecmp
17278
17279 /* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char mbscasecmp (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17283
17284 #ifdef __STDC__
17285 # include <limits.h>
17286 #else
17287 # include <assert.h>
17288 #endif
17289
17290 #undef mbscasecmp
17291
17292 /* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
17295 #ifdef __cplusplus
17296 extern "C"
17297 #endif
17298 char mbscasecmp ();
17299 /* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17303 choke me
17304 #endif
17305
17306 int
17307 main ()
17308 {
17309 return mbscasecmp ();
17310 ;
17311 return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (ac_try="$ac_link"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321 $as_echo "$ac_try_echo") >&5
17322 (eval "$ac_link") 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext && {
17332 test "$cross_compiling" = yes ||
17333 $as_test_x conftest$ac_exeext
17334 }; then
17335 ac_cv_func_mbscasecmp=yes
17336 else
17337 $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 ac_cv_func_mbscasecmp=no
17341 fi
17342
17343 rm -rf conftest.dSYM
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17348 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17349 if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17350 cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_MBSCMP 1
17352 _ACEOF
17353
17354 fi
17355
17356 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17357 $as_echo_n "checking for mbscmp... " >&6; }
17358 if test "${ac_cv_func_mbscmp+set}" = set; then
17359 $as_echo_n "(cached) " >&6
17360 else
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17369 #define mbscmp innocuous_mbscmp
17370
17371 /* System header to define __stub macros and hopefully few prototypes,
17372 which can conflict with char mbscmp (); below.
17373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374 <limits.h> exists even on freestanding compilers. */
17375
17376 #ifdef __STDC__
17377 # include <limits.h>
17378 #else
17379 # include <assert.h>
17380 #endif
17381
17382 #undef mbscmp
17383
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char mbscmp ();
17391 /* The GNU C library defines this for functions which it implements
17392 to always fail with ENOSYS. Some functions are actually named
17393 something starting with __ and the normal name is an alias. */
17394 #if defined __stub_mbscmp || defined __stub___mbscmp
17395 choke me
17396 #endif
17397
17398 int
17399 main ()
17400 {
17401 return mbscmp ();
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411 esac
17412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17413 $as_echo "$ac_try_echo") >&5
17414 (eval "$ac_link") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest$ac_exeext && {
17424 test "$cross_compiling" = yes ||
17425 $as_test_x conftest$ac_exeext
17426 }; then
17427 ac_cv_func_mbscmp=yes
17428 else
17429 $as_echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ac_cv_func_mbscmp=no
17433 fi
17434
17435 rm -rf conftest.dSYM
17436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17437 conftest$ac_exeext conftest.$ac_ext
17438 fi
17439 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17440 $as_echo "$ac_cv_func_mbscmp" >&6; }
17441 if test "x$ac_cv_func_mbscmp" = x""yes; then
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_MBSCMP 1
17444 _ACEOF
17445
17446 fi
17447
17448 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17449 $as_echo_n "checking for mbsrtowcs... " >&6; }
17450 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17451 $as_echo_n "(cached) " >&6
17452 else
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17461 #define mbsrtowcs innocuous_mbsrtowcs
17462
17463 /* System header to define __stub macros and hopefully few prototypes,
17464 which can conflict with char mbsrtowcs (); below.
17465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17466 <limits.h> exists even on freestanding compilers. */
17467
17468 #ifdef __STDC__
17469 # include <limits.h>
17470 #else
17471 # include <assert.h>
17472 #endif
17473
17474 #undef mbsrtowcs
17475
17476 /* Override any GCC internal prototype to avoid an error.
17477 Use char because int might match the return type of a GCC
17478 builtin and then its argument prototype would still apply. */
17479 #ifdef __cplusplus
17480 extern "C"
17481 #endif
17482 char mbsrtowcs ();
17483 /* The GNU C library defines this for functions which it implements
17484 to always fail with ENOSYS. Some functions are actually named
17485 something starting with __ and the normal name is an alias. */
17486 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17487 choke me
17488 #endif
17489
17490 int
17491 main ()
17492 {
17493 return mbsrtowcs ();
17494 ;
17495 return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503 esac
17504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17505 $as_echo "$ac_try_echo") >&5
17506 (eval "$ac_link") 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } && {
17513 test -z "$ac_c_werror_flag" ||
17514 test ! -s conftest.err
17515 } && test -s conftest$ac_exeext && {
17516 test "$cross_compiling" = yes ||
17517 $as_test_x conftest$ac_exeext
17518 }; then
17519 ac_cv_func_mbsrtowcs=yes
17520 else
17521 $as_echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ac_cv_func_mbsrtowcs=no
17525 fi
17526
17527 rm -rf conftest.dSYM
17528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17529 conftest$ac_exeext conftest.$ac_ext
17530 fi
17531 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17532 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17533 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17534 cat >>confdefs.h <<\_ACEOF
17535 #define HAVE_MBSRTOWCS 1
17536 _ACEOF
17537
17538 fi
17539
17540
17541
17542 for ac_func in mbschr
17543 do
17544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17546 $as_echo_n "checking for $ac_func... " >&6; }
17547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17548 $as_echo_n "(cached) " >&6
17549 else
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17558 #define $ac_func innocuous_$ac_func
17559
17560 /* System header to define __stub macros and hopefully few prototypes,
17561 which can conflict with char $ac_func (); below.
17562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17563 <limits.h> exists even on freestanding compilers. */
17564
17565 #ifdef __STDC__
17566 # include <limits.h>
17567 #else
17568 # include <assert.h>
17569 #endif
17570
17571 #undef $ac_func
17572
17573 /* Override any GCC internal prototype to avoid an error.
17574 Use char because int might match the return type of a GCC
17575 builtin and then its argument prototype would still apply. */
17576 #ifdef __cplusplus
17577 extern "C"
17578 #endif
17579 char $ac_func ();
17580 /* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583 #if defined __stub_$ac_func || defined __stub___$ac_func
17584 choke me
17585 #endif
17586
17587 int
17588 main ()
17589 {
17590 return $ac_func ();
17591 ;
17592 return 0;
17593 }
17594 _ACEOF
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17600 esac
17601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17602 $as_echo "$ac_try_echo") >&5
17603 (eval "$ac_link") 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && {
17610 test -z "$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17612 } && test -s conftest$ac_exeext && {
17613 test "$cross_compiling" = yes ||
17614 $as_test_x conftest$ac_exeext
17615 }; then
17616 eval "$as_ac_var=yes"
17617 else
17618 $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 eval "$as_ac_var=no"
17622 fi
17623
17624 rm -rf conftest.dSYM
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17627 fi
17628 ac_res=`eval 'as_val=${'$as_ac_var'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17632 as_val=`eval 'as_val=${'$as_ac_var'}
17633 $as_echo "$as_val"'`
17634 if test "x$as_val" = x""yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17637 _ACEOF
17638
17639 else
17640 case " $LIBOBJS " in
17641 *" $ac_func.$ac_objext "* ) ;;
17642 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17643 ;;
17644 esac
17645
17646 fi
17647 done
17648
17649
17650
17651 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17652 $as_echo_n "checking for wcrtomb... " >&6; }
17653 if test "${ac_cv_func_wcrtomb+set}" = set; then
17654 $as_echo_n "(cached) " >&6
17655 else
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h. */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define wcrtomb innocuous_wcrtomb
17665
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char wcrtomb (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17670
17671 #ifdef __STDC__
17672 # include <limits.h>
17673 #else
17674 # include <assert.h>
17675 #endif
17676
17677 #undef wcrtomb
17678
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17682 #ifdef __cplusplus
17683 extern "C"
17684 #endif
17685 char wcrtomb ();
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17690 choke me
17691 #endif
17692
17693 int
17694 main ()
17695 {
17696 return wcrtomb ();
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_link") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest$ac_exeext && {
17719 test "$cross_compiling" = yes ||
17720 $as_test_x conftest$ac_exeext
17721 }; then
17722 ac_cv_func_wcrtomb=yes
17723 else
17724 $as_echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_cv_func_wcrtomb=no
17728 fi
17729
17730 rm -rf conftest.dSYM
17731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17732 conftest$ac_exeext conftest.$ac_ext
17733 fi
17734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17735 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17736 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_WCRTOMB 1
17739 _ACEOF
17740
17741 fi
17742
17743 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17744 $as_echo_n "checking for wcscoll... " >&6; }
17745 if test "${ac_cv_func_wcscoll+set}" = set; then
17746 $as_echo_n "(cached) " >&6
17747 else
17748 cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h. */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17754 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17756 #define wcscoll innocuous_wcscoll
17757
17758 /* System header to define __stub macros and hopefully few prototypes,
17759 which can conflict with char wcscoll (); below.
17760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17761 <limits.h> exists even on freestanding compilers. */
17762
17763 #ifdef __STDC__
17764 # include <limits.h>
17765 #else
17766 # include <assert.h>
17767 #endif
17768
17769 #undef wcscoll
17770
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 char wcscoll ();
17778 /* The GNU C library defines this for functions which it implements
17779 to always fail with ENOSYS. Some functions are actually named
17780 something starting with __ and the normal name is an alias. */
17781 #if defined __stub_wcscoll || defined __stub___wcscoll
17782 choke me
17783 #endif
17784
17785 int
17786 main ()
17787 {
17788 return wcscoll ();
17789 ;
17790 return 0;
17791 }
17792 _ACEOF
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (ac_try="$ac_link"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798 esac
17799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17800 $as_echo "$ac_try_echo") >&5
17801 (eval "$ac_link") 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest$ac_exeext && {
17811 test "$cross_compiling" = yes ||
17812 $as_test_x conftest$ac_exeext
17813 }; then
17814 ac_cv_func_wcscoll=yes
17815 else
17816 $as_echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819 ac_cv_func_wcscoll=no
17820 fi
17821
17822 rm -rf conftest.dSYM
17823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17824 conftest$ac_exeext conftest.$ac_ext
17825 fi
17826 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17827 $as_echo "$ac_cv_func_wcscoll" >&6; }
17828 if test "x$ac_cv_func_wcscoll" = x""yes; then
17829 cat >>confdefs.h <<\_ACEOF
17830 #define HAVE_WCSCOLL 1
17831 _ACEOF
17832
17833 fi
17834
17835 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17836 $as_echo_n "checking for wcsdup... " >&6; }
17837 if test "${ac_cv_func_wcsdup+set}" = set; then
17838 $as_echo_n "(cached) " >&6
17839 else
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h. */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17848 #define wcsdup innocuous_wcsdup
17849
17850 /* System header to define __stub macros and hopefully few prototypes,
17851 which can conflict with char wcsdup (); below.
17852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17853 <limits.h> exists even on freestanding compilers. */
17854
17855 #ifdef __STDC__
17856 # include <limits.h>
17857 #else
17858 # include <assert.h>
17859 #endif
17860
17861 #undef wcsdup
17862
17863 /* Override any GCC internal prototype to avoid an error.
17864 Use char because int might match the return type of a GCC
17865 builtin and then its argument prototype would still apply. */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 char wcsdup ();
17870 /* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873 #if defined __stub_wcsdup || defined __stub___wcsdup
17874 choke me
17875 #endif
17876
17877 int
17878 main ()
17879 {
17880 return wcsdup ();
17881 ;
17882 return 0;
17883 }
17884 _ACEOF
17885 rm -f conftest.$ac_objext conftest$ac_exeext
17886 if { (ac_try="$ac_link"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17892 $as_echo "$ac_try_echo") >&5
17893 (eval "$ac_link") 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } && {
17900 test -z "$ac_c_werror_flag" ||
17901 test ! -s conftest.err
17902 } && test -s conftest$ac_exeext && {
17903 test "$cross_compiling" = yes ||
17904 $as_test_x conftest$ac_exeext
17905 }; then
17906 ac_cv_func_wcsdup=yes
17907 else
17908 $as_echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 ac_cv_func_wcsdup=no
17912 fi
17913
17914 rm -rf conftest.dSYM
17915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916 conftest$ac_exeext conftest.$ac_ext
17917 fi
17918 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17919 $as_echo "$ac_cv_func_wcsdup" >&6; }
17920 if test "x$ac_cv_func_wcsdup" = x""yes; then
17921 cat >>confdefs.h <<\_ACEOF
17922 #define HAVE_WCSDUP 1
17923 _ACEOF
17924
17925 fi
17926
17927 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17928 $as_echo_n "checking for wcwidth... " >&6; }
17929 if test "${ac_cv_func_wcwidth+set}" = set; then
17930 $as_echo_n "(cached) " >&6
17931 else
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17940 #define wcwidth innocuous_wcwidth
17941
17942 /* System header to define __stub macros and hopefully few prototypes,
17943 which can conflict with char wcwidth (); below.
17944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17945 <limits.h> exists even on freestanding compilers. */
17946
17947 #ifdef __STDC__
17948 # include <limits.h>
17949 #else
17950 # include <assert.h>
17951 #endif
17952
17953 #undef wcwidth
17954
17955 /* Override any GCC internal prototype to avoid an error.
17956 Use char because int might match the return type of a GCC
17957 builtin and then its argument prototype would still apply. */
17958 #ifdef __cplusplus
17959 extern "C"
17960 #endif
17961 char wcwidth ();
17962 /* The GNU C library defines this for functions which it implements
17963 to always fail with ENOSYS. Some functions are actually named
17964 something starting with __ and the normal name is an alias. */
17965 #if defined __stub_wcwidth || defined __stub___wcwidth
17966 choke me
17967 #endif
17968
17969 int
17970 main ()
17971 {
17972 return wcwidth ();
17973 ;
17974 return 0;
17975 }
17976 _ACEOF
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (ac_try="$ac_link"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982 esac
17983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17984 $as_echo "$ac_try_echo") >&5
17985 (eval "$ac_link") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest$ac_exeext && {
17995 test "$cross_compiling" = yes ||
17996 $as_test_x conftest$ac_exeext
17997 }; then
17998 ac_cv_func_wcwidth=yes
17999 else
18000 $as_echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18002
18003 ac_cv_func_wcwidth=no
18004 fi
18005
18006 rm -rf conftest.dSYM
18007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18008 conftest$ac_exeext conftest.$ac_ext
18009 fi
18010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18011 $as_echo "$ac_cv_func_wcwidth" >&6; }
18012 if test "x$ac_cv_func_wcwidth" = x""yes; then
18013 cat >>confdefs.h <<\_ACEOF
18014 #define HAVE_WCWIDTH 1
18015 _ACEOF
18016
18017 fi
18018
18019 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18020 $as_echo_n "checking for wctype... " >&6; }
18021 if test "${ac_cv_func_wctype+set}" = set; then
18022 $as_echo_n "(cached) " >&6
18023 else
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define wctype innocuous_wctype
18033
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char wctype (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18038
18039 #ifdef __STDC__
18040 # include <limits.h>
18041 #else
18042 # include <assert.h>
18043 #endif
18044
18045 #undef wctype
18046
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char wctype ();
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_wctype || defined __stub___wctype
18058 choke me
18059 #endif
18060
18061 int
18062 main ()
18063 {
18064 return wctype ();
18065 ;
18066 return 0;
18067 }
18068 _ACEOF
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18076 $as_echo "$ac_try_echo") >&5
18077 (eval "$ac_link") 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && {
18084 test -z "$ac_c_werror_flag" ||
18085 test ! -s conftest.err
18086 } && test -s conftest$ac_exeext && {
18087 test "$cross_compiling" = yes ||
18088 $as_test_x conftest$ac_exeext
18089 }; then
18090 ac_cv_func_wctype=yes
18091 else
18092 $as_echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 ac_cv_func_wctype=no
18096 fi
18097
18098 rm -rf conftest.dSYM
18099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18100 conftest$ac_exeext conftest.$ac_ext
18101 fi
18102 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18103 $as_echo "$ac_cv_func_wctype" >&6; }
18104 if test "x$ac_cv_func_wctype" = x""yes; then
18105 cat >>confdefs.h <<\_ACEOF
18106 #define HAVE_WCTYPE 1
18107 _ACEOF
18108
18109 fi
18110
18111
18112
18113 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18114 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18115 if test "${ac_cv_func_mbrtowc+set}" = set; then
18116 $as_echo_n "(cached) " >&6
18117 else
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <wchar.h>
18125 int
18126 main ()
18127 {
18128 wchar_t wc;
18129 char const s[] = "";
18130 size_t n = 1;
18131 mbstate_t state;
18132 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18133 ;
18134 return 0;
18135 }
18136 _ACEOF
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (ac_try="$ac_link"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18142 esac
18143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18144 $as_echo "$ac_try_echo") >&5
18145 (eval "$ac_link") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext && {
18155 test "$cross_compiling" = yes ||
18156 $as_test_x conftest$ac_exeext
18157 }; then
18158 ac_cv_func_mbrtowc=yes
18159 else
18160 $as_echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ac_cv_func_mbrtowc=no
18164 fi
18165
18166 rm -rf conftest.dSYM
18167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18168 conftest$ac_exeext conftest.$ac_ext
18169 fi
18170 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18171 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18172 if test $ac_cv_func_mbrtowc = yes; then
18173
18174 cat >>confdefs.h <<\_ACEOF
18175 #define HAVE_MBRTOWC 1
18176 _ACEOF
18177
18178 fi
18179
18180 if test $ac_cv_func_mbrtowc = yes; then
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE_MBSTATE_T 1
18183 _ACEOF
18184
18185 fi
18186
18187
18188
18189
18190
18191
18192 for ac_func in iswlower iswupper towlower towupper iswctype
18193 do
18194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18196 $as_echo_n "checking for $ac_func... " >&6; }
18197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18198 $as_echo_n "(cached) " >&6
18199 else
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define $ac_func innocuous_$ac_func
18209
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18214
18215 #ifdef __STDC__
18216 # include <limits.h>
18217 #else
18218 # include <assert.h>
18219 #endif
18220
18221 #undef $ac_func
18222
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char $ac_func ();
18230 /* The GNU C library defines this for functions which it implements
18231 to always fail with ENOSYS. Some functions are actually named
18232 something starting with __ and the normal name is an alias. */
18233 #if defined __stub_$ac_func || defined __stub___$ac_func
18234 choke me
18235 #endif
18236
18237 int
18238 main ()
18239 {
18240 return $ac_func ();
18241 ;
18242 return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (ac_try="$ac_link"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250 esac
18251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18252 $as_echo "$ac_try_echo") >&5
18253 (eval "$ac_link") 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } && {
18260 test -z "$ac_c_werror_flag" ||
18261 test ! -s conftest.err
18262 } && test -s conftest$ac_exeext && {
18263 test "$cross_compiling" = yes ||
18264 $as_test_x conftest$ac_exeext
18265 }; then
18266 eval "$as_ac_var=yes"
18267 else
18268 $as_echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18270
18271 eval "$as_ac_var=no"
18272 fi
18273
18274 rm -rf conftest.dSYM
18275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18276 conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 ac_res=`eval 'as_val=${'$as_ac_var'}
18279 $as_echo "$as_val"'`
18280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18281 $as_echo "$ac_res" >&6; }
18282 as_val=`eval 'as_val=${'$as_ac_var'}
18283 $as_echo "$as_val"'`
18284 if test "x$as_val" = x""yes; then
18285 cat >>confdefs.h <<_ACEOF
18286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18287 _ACEOF
18288
18289 fi
18290 done
18291
18292
18293 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18294 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18295 if test "${bash_cv_langinfo_codeset+set}" = set; then
18296 $as_echo_n "(cached) " >&6
18297 else
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 #include <langinfo.h>
18305 int
18306 main ()
18307 {
18308 char* cs = nl_langinfo(CODESET);
18309 ;
18310 return 0;
18311 }
18312 _ACEOF
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318 esac
18319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18320 $as_echo "$ac_try_echo") >&5
18321 (eval "$ac_link") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest$ac_exeext && {
18331 test "$cross_compiling" = yes ||
18332 $as_test_x conftest$ac_exeext
18333 }; then
18334 bash_cv_langinfo_codeset=yes
18335 else
18336 $as_echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 bash_cv_langinfo_codeset=no
18340 fi
18341
18342 rm -rf conftest.dSYM
18343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18344 conftest$ac_exeext conftest.$ac_ext
18345 fi
18346 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18347 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18348 if test $bash_cv_langinfo_codeset = yes; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_LANGINFO_CODESET 1
18351 _ACEOF
18352
18353 fi
18354
18355 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18356 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18357 if test "${bash_cv_type_wchar_t+set}" = set; then
18358 $as_echo_n "(cached) " >&6
18359 else
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h. */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 #include <wchar.h>
18367
18368 int
18369 main ()
18370 {
18371
18372 wchar_t foo;
18373 foo = 0;
18374
18375 ;
18376 return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext
18380 if { (ac_try="$ac_compile"
18381 case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18384 esac
18385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18386 $as_echo "$ac_try_echo") >&5
18387 (eval "$ac_compile") 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } && {
18394 test -z "$ac_c_werror_flag" ||
18395 test ! -s conftest.err
18396 } && test -s conftest.$ac_objext; then
18397 bash_cv_type_wchar_t=yes
18398 else
18399 $as_echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 bash_cv_type_wchar_t=no
18403 fi
18404
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 fi
18407 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18408 $as_echo "$bash_cv_type_wchar_t" >&6; }
18409 if test $bash_cv_type_wchar_t = yes; then
18410
18411 cat >>confdefs.h <<\_ACEOF
18412 #define HAVE_WCHAR_T 1
18413 _ACEOF
18414
18415 fi
18416
18417 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18418 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18419 if test "${bash_cv_type_wctype_t+set}" = set; then
18420 $as_echo_n "(cached) " >&6
18421 else
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <wctype.h>
18429 int
18430 main ()
18431 {
18432
18433 wctype_t foo;
18434 foo = 0;
18435
18436 ;
18437 return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext
18441 if { (ac_try="$ac_compile"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18447 $as_echo "$ac_try_echo") >&5
18448 (eval "$ac_compile") 2>conftest.er1
18449 ac_status=$?
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
18453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && {
18455 test -z "$ac_c_werror_flag" ||
18456 test ! -s conftest.err
18457 } && test -s conftest.$ac_objext; then
18458 bash_cv_type_wctype_t=yes
18459 else
18460 $as_echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18462
18463 bash_cv_type_wctype_t=no
18464 fi
18465
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 fi
18468 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18469 $as_echo "$bash_cv_type_wctype_t" >&6; }
18470 if test $bash_cv_type_wctype_t = yes; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE_WCTYPE_T 1
18474 _ACEOF
18475
18476 fi
18477
18478 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18479 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18480 if test "${bash_cv_type_wint_t+set}" = set; then
18481 $as_echo_n "(cached) " >&6
18482 else
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 #include <wctype.h>
18490 int
18491 main ()
18492 {
18493
18494 wint_t foo;
18495 foo = 0;
18496
18497 ;
18498 return 0;
18499 }
18500 _ACEOF
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18508 $as_echo "$ac_try_echo") >&5
18509 (eval "$ac_compile") 2>conftest.er1
18510 ac_status=$?
18511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
18514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest.$ac_objext; then
18519 bash_cv_type_wint_t=yes
18520 else
18521 $as_echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524 bash_cv_type_wint_t=no
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528 fi
18529 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18530 $as_echo "$bash_cv_type_wint_t" >&6; }
18531 if test $bash_cv_type_wint_t = yes; then
18532
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_WINT_T 1
18535 _ACEOF
18536
18537 fi
18538
18539 if test "$am_cv_func_iconv" = yes; then
18540 OLDLIBS="$LIBS"
18541 LIBS="$LIBS $LIBICONV"
18542
18543 for ac_func in locale_charset
18544 do
18545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18547 $as_echo_n "checking for $ac_func... " >&6; }
18548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18549 $as_echo_n "(cached) " >&6
18550 else
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h. */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18559 #define $ac_func innocuous_$ac_func
18560
18561 /* System header to define __stub macros and hopefully few prototypes,
18562 which can conflict with char $ac_func (); below.
18563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18564 <limits.h> exists even on freestanding compilers. */
18565
18566 #ifdef __STDC__
18567 # include <limits.h>
18568 #else
18569 # include <assert.h>
18570 #endif
18571
18572 #undef $ac_func
18573
18574 /* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18577 #ifdef __cplusplus
18578 extern "C"
18579 #endif
18580 char $ac_func ();
18581 /* The GNU C library defines this for functions which it implements
18582 to always fail with ENOSYS. Some functions are actually named
18583 something starting with __ and the normal name is an alias. */
18584 #if defined __stub_$ac_func || defined __stub___$ac_func
18585 choke me
18586 #endif
18587
18588 int
18589 main ()
18590 {
18591 return $ac_func ();
18592 ;
18593 return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601 esac
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604 (eval "$ac_link") 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest$ac_exeext && {
18614 test "$cross_compiling" = yes ||
18615 $as_test_x conftest$ac_exeext
18616 }; then
18617 eval "$as_ac_var=yes"
18618 else
18619 $as_echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 eval "$as_ac_var=no"
18623 fi
18624
18625 rm -rf conftest.dSYM
18626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18627 conftest$ac_exeext conftest.$ac_ext
18628 fi
18629 ac_res=`eval 'as_val=${'$as_ac_var'}
18630 $as_echo "$as_val"'`
18631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18632 $as_echo "$ac_res" >&6; }
18633 as_val=`eval 'as_val=${'$as_ac_var'}
18634 $as_echo "$as_val"'`
18635 if test "x$as_val" = x""yes; then
18636 cat >>confdefs.h <<_ACEOF
18637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18638 _ACEOF
18639
18640 fi
18641 done
18642
18643 LIBS="$OLDLIBS"
18644 fi
18645
18646
18647
18648 if test "$opt_static_link" != yes; then
18649
18650 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18653 $as_echo_n "(cached) " >&6
18654 else
18655 ac_check_lib_save_LIBS=$LIBS
18656 LIBS="-ldl $LIBS"
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663
18664 /* Override any GCC internal prototype to avoid an error.
18665 Use char because int might match the return type of a GCC
18666 builtin and then its argument prototype would still apply. */
18667 #ifdef __cplusplus
18668 extern "C"
18669 #endif
18670 char dlopen ();
18671 int
18672 main ()
18673 {
18674 return dlopen ();
18675 ;
18676 return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684 esac
18685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18686 $as_echo "$ac_try_echo") >&5
18687 (eval "$ac_link") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } && {
18694 test -z "$ac_c_werror_flag" ||
18695 test ! -s conftest.err
18696 } && test -s conftest$ac_exeext && {
18697 test "$cross_compiling" = yes ||
18698 $as_test_x conftest$ac_exeext
18699 }; then
18700 ac_cv_lib_dl_dlopen=yes
18701 else
18702 $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ac_cv_lib_dl_dlopen=no
18706 fi
18707
18708 rm -rf conftest.dSYM
18709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18710 conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18712 fi
18713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18715 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18716 cat >>confdefs.h <<_ACEOF
18717 #define HAVE_LIBDL 1
18718 _ACEOF
18719
18720 LIBS="-ldl $LIBS"
18721
18722 fi
18723
18724
18725
18726
18727 for ac_func in dlopen dlclose dlsym
18728 do
18729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18730 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18731 $as_echo_n "checking for $ac_func... " >&6; }
18732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18733 $as_echo_n "(cached) " >&6
18734 else
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18743 #define $ac_func innocuous_$ac_func
18744
18745 /* System header to define __stub macros and hopefully few prototypes,
18746 which can conflict with char $ac_func (); below.
18747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18748 <limits.h> exists even on freestanding compilers. */
18749
18750 #ifdef __STDC__
18751 # include <limits.h>
18752 #else
18753 # include <assert.h>
18754 #endif
18755
18756 #undef $ac_func
18757
18758 /* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18761 #ifdef __cplusplus
18762 extern "C"
18763 #endif
18764 char $ac_func ();
18765 /* The GNU C library defines this for functions which it implements
18766 to always fail with ENOSYS. Some functions are actually named
18767 something starting with __ and the normal name is an alias. */
18768 #if defined __stub_$ac_func || defined __stub___$ac_func
18769 choke me
18770 #endif
18771
18772 int
18773 main ()
18774 {
18775 return $ac_func ();
18776 ;
18777 return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788 (eval "$ac_link") 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest$ac_exeext && {
18798 test "$cross_compiling" = yes ||
18799 $as_test_x conftest$ac_exeext
18800 }; then
18801 eval "$as_ac_var=yes"
18802 else
18803 $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 eval "$as_ac_var=no"
18807 fi
18808
18809 rm -rf conftest.dSYM
18810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18811 conftest$ac_exeext conftest.$ac_ext
18812 fi
18813 ac_res=`eval 'as_val=${'$as_ac_var'}
18814 $as_echo "$as_val"'`
18815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18816 $as_echo "$ac_res" >&6; }
18817 as_val=`eval 'as_val=${'$as_ac_var'}
18818 $as_echo "$as_val"'`
18819 if test "x$as_val" = x""yes; then
18820 cat >>confdefs.h <<_ACEOF
18821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18822 _ACEOF
18823
18824 fi
18825 done
18826
18827 fi
18828
18829 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18830 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
18831 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18832 $as_echo_n "(cached) " >&6
18833 else
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h. */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <signal.h>
18841 /* NetBSD declares sys_siglist in unistd.h. */
18842 #ifdef HAVE_UNISTD_H
18843 # include <unistd.h>
18844 #endif
18845
18846
18847 int
18848 main ()
18849 {
18850 #ifndef sys_siglist
18851 (void) sys_siglist;
18852 #endif
18853
18854 ;
18855 return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest.$ac_objext
18859 if { (ac_try="$ac_compile"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_compile") 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest.$ac_objext; then
18876 ac_cv_have_decl_sys_siglist=yes
18877 else
18878 $as_echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881 ac_cv_have_decl_sys_siglist=no
18882 fi
18883
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 fi
18886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18887 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
18888 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
18889
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_DECL_SYS_SIGLIST 1
18892 _ACEOF
18893
18894
18895 else
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_DECL_SYS_SIGLIST 0
18898 _ACEOF
18899
18900
18901 fi
18902
18903
18904
18905
18906 if test "$ac_cv_func_inet_aton" != 'yes'; then
18907
18908 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18909 $as_echo_n "checking for inet_aton... " >&6; }
18910 if test "${bash_cv_func_inet_aton+set}" = set; then
18911 $as_echo_n "(cached) " >&6
18912 else
18913 cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h. */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18919
18920 #include <sys/types.h>
18921 #include <netinet/in.h>
18922 #include <arpa/inet.h>
18923 struct in_addr ap;
18924 int
18925 main ()
18926 {
18927 inet_aton("127.0.0.1", &ap);
18928 ;
18929 return 0;
18930 }
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937 esac
18938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18939 $as_echo "$ac_try_echo") >&5
18940 (eval "$ac_link") 2>conftest.er1
18941 ac_status=$?
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
18945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest$ac_exeext && {
18950 test "$cross_compiling" = yes ||
18951 $as_test_x conftest$ac_exeext
18952 }; then
18953 bash_cv_func_inet_aton=yes
18954 else
18955 $as_echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 bash_cv_func_inet_aton=no
18959 fi
18960
18961 rm -rf conftest.dSYM
18962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963 conftest$ac_exeext conftest.$ac_ext
18964 fi
18965 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
18966 $as_echo "$bash_cv_func_inet_aton" >&6; }
18967 if test $bash_cv_func_inet_aton = yes; then
18968 cat >>confdefs.h <<\_ACEOF
18969 #define HAVE_INET_ATON 1
18970 _ACEOF
18971
18972 else
18973 case " $LIBOBJS " in
18974 *" inet_aton.$ac_objext "* ) ;;
18975 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18976 ;;
18977 esac
18978
18979 fi
18980
18981 fi
18982
18983 case "$host_os" in
18984 irix4*)
18985 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
18986 $as_echo_n "checking for getpwent in -lsun... " >&6; }
18987 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
18988 $as_echo_n "(cached) " >&6
18989 else
18990 ac_check_lib_save_LIBS=$LIBS
18991 LIBS="-lsun $LIBS"
18992 cat >conftest.$ac_ext <<_ACEOF
18993 /* confdefs.h. */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18998
18999 /* Override any GCC internal prototype to avoid an error.
19000 Use char because int might match the return type of a GCC
19001 builtin and then its argument prototype would still apply. */
19002 #ifdef __cplusplus
19003 extern "C"
19004 #endif
19005 char getpwent ();
19006 int
19007 main ()
19008 {
19009 return getpwent ();
19010 ;
19011 return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022 (eval "$ac_link") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext && {
19032 test "$cross_compiling" = yes ||
19033 $as_test_x conftest$ac_exeext
19034 }; then
19035 ac_cv_lib_sun_getpwent=yes
19036 else
19037 $as_echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 ac_cv_lib_sun_getpwent=no
19041 fi
19042
19043 rm -rf conftest.dSYM
19044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19045 conftest$ac_exeext conftest.$ac_ext
19046 LIBS=$ac_check_lib_save_LIBS
19047 fi
19048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19049 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19050 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define HAVE_LIBSUN 1
19053 _ACEOF
19054
19055 LIBS="-lsun $LIBS"
19056
19057 fi
19058 ;;
19059 esac
19060
19061 if test "$ac_cv_func_getpeername" = no; then
19062
19063 if test "X$bash_cv_have_socklib" = "X"; then
19064 _bash_needmsg=
19065 else
19066 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19067 $as_echo_n "checking for socket library... " >&6; }
19068 _bash_needmsg=yes
19069 fi
19070 if test "${bash_cv_have_socklib+set}" = set; then
19071 $as_echo_n "(cached) " >&6
19072 else
19073 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19074 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19075 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19076 $as_echo_n "(cached) " >&6
19077 else
19078 ac_check_lib_save_LIBS=$LIBS
19079 LIBS="-lsocket -lnsl $LIBS"
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086
19087 /* Override any GCC internal prototype to avoid an error.
19088 Use char because int might match the return type of a GCC
19089 builtin and then its argument prototype would still apply. */
19090 #ifdef __cplusplus
19091 extern "C"
19092 #endif
19093 char getpeername ();
19094 int
19095 main ()
19096 {
19097 return getpeername ();
19098 ;
19099 return 0;
19100 }
19101 _ACEOF
19102 rm -f conftest.$ac_objext conftest$ac_exeext
19103 if { (ac_try="$ac_link"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107 esac
19108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19109 $as_echo "$ac_try_echo") >&5
19110 (eval "$ac_link") 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest$ac_exeext && {
19120 test "$cross_compiling" = yes ||
19121 $as_test_x conftest$ac_exeext
19122 }; then
19123 ac_cv_lib_socket_getpeername=yes
19124 else
19125 $as_echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_socket_getpeername=no
19129 fi
19130
19131 rm -rf conftest.dSYM
19132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19133 conftest$ac_exeext conftest.$ac_ext
19134 LIBS=$ac_check_lib_save_LIBS
19135 fi
19136 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19137 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19138 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19139 bash_cv_have_socklib=yes
19140 else
19141 bash_cv_have_socklib=no
19142 fi
19143
19144 fi
19145
19146 if test "X$_bash_needmsg" = Xyes; then
19147 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19148 $as_echo "$bash_cv_have_socklib" >&6; }
19149 _bash_needmsg=
19150 fi
19151 if test $bash_cv_have_socklib = yes; then
19152 # check for libnsl, add it to LIBS if present
19153 if test "X$bash_cv_have_libnsl" = "X"; then
19154 _bash_needmsg=
19155 else
19156 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19157 $as_echo_n "checking for libnsl... " >&6; }
19158 _bash_needmsg=yes
19159 fi
19160 if test "${bash_cv_have_libnsl+set}" = set; then
19161 $as_echo_n "(cached) " >&6
19162 else
19163 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19164 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19165 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19166 $as_echo_n "(cached) " >&6
19167 else
19168 ac_check_lib_save_LIBS=$LIBS
19169 LIBS="-lnsl $LIBS"
19170 cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h. */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h. */
19176
19177 /* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 char t_open ();
19184 int
19185 main ()
19186 {
19187 return t_open ();
19188 ;
19189 return 0;
19190 }
19191 _ACEOF
19192 rm -f conftest.$ac_objext conftest$ac_exeext
19193 if { (ac_try="$ac_link"
19194 case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197 esac
19198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19199 $as_echo "$ac_try_echo") >&5
19200 (eval "$ac_link") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest$ac_exeext && {
19210 test "$cross_compiling" = yes ||
19211 $as_test_x conftest$ac_exeext
19212 }; then
19213 ac_cv_lib_nsl_t_open=yes
19214 else
19215 $as_echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_cv_lib_nsl_t_open=no
19219 fi
19220
19221 rm -rf conftest.dSYM
19222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19225 fi
19226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19227 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19228 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19229 bash_cv_have_libnsl=yes
19230 else
19231 bash_cv_have_libnsl=no
19232 fi
19233
19234 fi
19235
19236 if test "X$_bash_needmsg" = Xyes; then
19237 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19238 $as_echo "$bash_cv_have_libnsl" >&6; }
19239 _bash_needmsg=
19240 fi
19241 if test $bash_cv_have_libnsl = yes; then
19242 LIBS="-lsocket -lnsl $LIBS"
19243 else
19244 LIBS="-lsocket $LIBS"
19245 fi
19246 cat >>confdefs.h <<\_ACEOF
19247 #define HAVE_LIBSOCKET 1
19248 _ACEOF
19249
19250 cat >>confdefs.h <<\_ACEOF
19251 #define HAVE_GETPEERNAME 1
19252 _ACEOF
19253
19254 fi
19255
19256 fi
19257 if test "$ac_cv_func_gethostbyname" = no; then
19258 if test "X$bash_cv_have_gethostbyname" = "X"; then
19259 _bash_needmsg=yes
19260 else
19261 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19262 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19263 _bash_needmsg=
19264 fi
19265 if test "${bash_cv_have_gethostbyname+set}" = set; then
19266 $as_echo_n "(cached) " >&6
19267 else
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h. */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 #include <netdb.h>
19275 int
19276 main ()
19277 {
19278 struct hostent *hp;
19279 hp = gethostbyname("localhost");
19280
19281 ;
19282 return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290 esac
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293 (eval "$ac_link") 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest$ac_exeext && {
19303 test "$cross_compiling" = yes ||
19304 $as_test_x conftest$ac_exeext
19305 }; then
19306 bash_cv_have_gethostbyname=yes
19307 else
19308 $as_echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 bash_cv_have_gethostbyname=no
19312 fi
19313
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317
19318 fi
19319
19320 if test "X$_bash_needmsg" = Xyes; then
19321 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19322 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19323 fi
19324 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19325 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19326 if test "$bash_cv_have_gethostbyname" = yes; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_GETHOSTBYNAME 1
19329 _ACEOF
19330
19331 fi
19332
19333 fi
19334
19335 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19336 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19337 if test "${ac_cv_type_uid_t+set}" = set; then
19338 $as_echo_n "(cached) " >&6
19339 else
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 #include <sys/types.h>
19347
19348 _ACEOF
19349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19350 $EGREP "uid_t" >/dev/null 2>&1; then
19351 ac_cv_type_uid_t=yes
19352 else
19353 ac_cv_type_uid_t=no
19354 fi
19355 rm -f conftest*
19356
19357 fi
19358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19359 $as_echo "$ac_cv_type_uid_t" >&6; }
19360 if test $ac_cv_type_uid_t = no; then
19361
19362 cat >>confdefs.h <<\_ACEOF
19363 #define uid_t int
19364 _ACEOF
19365
19366
19367 cat >>confdefs.h <<\_ACEOF
19368 #define gid_t int
19369 _ACEOF
19370
19371 fi
19372
19373 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19374 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19375 if test "${ac_cv_type_getgroups+set}" = set; then
19376 $as_echo_n "(cached) " >&6
19377 else
19378 if test "$cross_compiling" = yes; then
19379 ac_cv_type_getgroups=cross
19380 else
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 /* Thanks to Mike Rendell for this test. */
19388 $ac_includes_default
19389 #define NGID 256
19390 #undef MAX
19391 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19392
19393 int
19394 main ()
19395 {
19396 gid_t gidset[NGID];
19397 int i, n;
19398 union { gid_t gval; long int lval; } val;
19399
19400 val.lval = -1;
19401 for (i = 0; i < NGID; i++)
19402 gidset[i] = val.gval;
19403 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19404 gidset);
19405 /* Exit non-zero if getgroups seems to require an array of ints. This
19406 happens when gid_t is short int but getgroups modifies an array
19407 of ints. */
19408 return n > 0 && gidset[n] != val.gval;
19409 }
19410 _ACEOF
19411 rm -f conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419 (eval "$ac_link") 2>&5
19420 ac_status=$?
19421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428 $as_echo "$ac_try_echo") >&5
19429 (eval "$ac_try") 2>&5
19430 ac_status=$?
19431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_type_getgroups=gid_t
19434 else
19435 $as_echo "$as_me: program exited with status $ac_status" >&5
19436 $as_echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 ( exit $ac_status )
19440 ac_cv_type_getgroups=int
19441 fi
19442 rm -rf conftest.dSYM
19443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19444 fi
19445
19446
19447 if test $ac_cv_type_getgroups = cross; then
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 #include <unistd.h>
19455
19456 _ACEOF
19457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19458 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19459 ac_cv_type_getgroups=gid_t
19460 else
19461 ac_cv_type_getgroups=int
19462 fi
19463 rm -f conftest*
19464
19465 fi
19466 fi
19467 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19468 $as_echo "$ac_cv_type_getgroups" >&6; }
19469
19470 cat >>confdefs.h <<_ACEOF
19471 #define GETGROUPS_T $ac_cv_type_getgroups
19472 _ACEOF
19473
19474
19475 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19476 $as_echo_n "checking for off_t... " >&6; }
19477 if test "${ac_cv_type_off_t+set}" = set; then
19478 $as_echo_n "(cached) " >&6
19479 else
19480 ac_cv_type_off_t=no
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 $ac_includes_default
19488 int
19489 main ()
19490 {
19491 if (sizeof (off_t))
19492 return 0;
19493 ;
19494 return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502 esac
19503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest.$ac_objext; then
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19522 int
19523 main ()
19524 {
19525 if (sizeof ((off_t)))
19526 return 0;
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19536 esac
19537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19538 $as_echo "$ac_try_echo") >&5
19539 (eval "$ac_compile") 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && {
19546 test -z "$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 } && test -s conftest.$ac_objext; then
19549 :
19550 else
19551 $as_echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 ac_cv_type_off_t=yes
19555 fi
19556
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558 else
19559 $as_echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 fi
19567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19568 $as_echo "$ac_cv_type_off_t" >&6; }
19569 if test "x$ac_cv_type_off_t" = x""yes; then
19570 :
19571 else
19572
19573 cat >>confdefs.h <<_ACEOF
19574 #define off_t long int
19575 _ACEOF
19576
19577 fi
19578
19579 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19580 $as_echo_n "checking for mode_t... " >&6; }
19581 if test "${ac_cv_type_mode_t+set}" = set; then
19582 $as_echo_n "(cached) " >&6
19583 else
19584 ac_cv_type_mode_t=no
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19592 int
19593 main ()
19594 {
19595 if (sizeof (mode_t))
19596 return 0;
19597 ;
19598 return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19608 $as_echo "$ac_try_echo") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h. */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625 $ac_includes_default
19626 int
19627 main ()
19628 {
19629 if (sizeof ((mode_t)))
19630 return 0;
19631 ;
19632 return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext
19636 if { (ac_try="$ac_compile"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640 esac
19641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19642 $as_echo "$ac_try_echo") >&5
19643 (eval "$ac_compile") 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest.$ac_objext; then
19653 :
19654 else
19655 $as_echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_cv_type_mode_t=yes
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662 else
19663 $as_echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666
19667 fi
19668
19669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670 fi
19671 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19672 $as_echo "$ac_cv_type_mode_t" >&6; }
19673 if test "x$ac_cv_type_mode_t" = x""yes; then
19674 :
19675 else
19676
19677 cat >>confdefs.h <<_ACEOF
19678 #define mode_t int
19679 _ACEOF
19680
19681 fi
19682
19683 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19684 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19685 if test "${ac_cv_type_uid_t+set}" = set; then
19686 $as_echo_n "(cached) " >&6
19687 else
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <sys/types.h>
19695
19696 _ACEOF
19697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19698 $EGREP "uid_t" >/dev/null 2>&1; then
19699 ac_cv_type_uid_t=yes
19700 else
19701 ac_cv_type_uid_t=no
19702 fi
19703 rm -f conftest*
19704
19705 fi
19706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19707 $as_echo "$ac_cv_type_uid_t" >&6; }
19708 if test $ac_cv_type_uid_t = no; then
19709
19710 cat >>confdefs.h <<\_ACEOF
19711 #define uid_t int
19712 _ACEOF
19713
19714
19715 cat >>confdefs.h <<\_ACEOF
19716 #define gid_t int
19717 _ACEOF
19718
19719 fi
19720
19721 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19722 $as_echo_n "checking for pid_t... " >&6; }
19723 if test "${ac_cv_type_pid_t+set}" = set; then
19724 $as_echo_n "(cached) " >&6
19725 else
19726 ac_cv_type_pid_t=no
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 $ac_includes_default
19734 int
19735 main ()
19736 {
19737 if (sizeof (pid_t))
19738 return 0;
19739 ;
19740 return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19748 esac
19749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19750 $as_echo "$ac_try_echo") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest.$ac_objext; then
19761 cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h. */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767 $ac_includes_default
19768 int
19769 main ()
19770 {
19771 if (sizeof ((pid_t)))
19772 return 0;
19773 ;
19774 return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782 esac
19783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19784 $as_echo "$ac_try_echo") >&5
19785 (eval "$ac_compile") 2>conftest.er1
19786 ac_status=$?
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
19790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest.$ac_objext; then
19795 :
19796 else
19797 $as_echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 ac_cv_type_pid_t=yes
19801 fi
19802
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 else
19805 $as_echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 fi
19813 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19814 $as_echo "$ac_cv_type_pid_t" >&6; }
19815 if test "x$ac_cv_type_pid_t" = x""yes; then
19816 :
19817 else
19818
19819 cat >>confdefs.h <<_ACEOF
19820 #define pid_t int
19821 _ACEOF
19822
19823 fi
19824
19825 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19826 $as_echo_n "checking for size_t... " >&6; }
19827 if test "${ac_cv_type_size_t+set}" = set; then
19828 $as_echo_n "(cached) " >&6
19829 else
19830 ac_cv_type_size_t=no
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h. */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 $ac_includes_default
19838 int
19839 main ()
19840 {
19841 if (sizeof (size_t))
19842 return 0;
19843 ;
19844 return 0;
19845 }
19846 _ACEOF
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852 esac
19853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19854 $as_echo "$ac_try_echo") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19872 int
19873 main ()
19874 {
19875 if (sizeof ((size_t)))
19876 return 0;
19877 ;
19878 return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886 esac
19887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19888 $as_echo "$ac_try_echo") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.$ac_objext; then
19899 :
19900 else
19901 $as_echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 ac_cv_type_size_t=yes
19905 fi
19906
19907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19908 else
19909 $as_echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 fi
19917 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19918 $as_echo "$ac_cv_type_size_t" >&6; }
19919 if test "x$ac_cv_type_size_t" = x""yes; then
19920 :
19921 else
19922
19923 cat >>confdefs.h <<_ACEOF
19924 #define size_t unsigned int
19925 _ACEOF
19926
19927 fi
19928
19929 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
19930 $as_echo_n "checking for ssize_t... " >&6; }
19931 if test "${ac_cv_type_ssize_t+set}" = set; then
19932 $as_echo_n "(cached) " >&6
19933 else
19934 ac_cv_type_ssize_t=no
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h. */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 $ac_includes_default
19942 int
19943 main ()
19944 {
19945 if (sizeof (ssize_t))
19946 return 0;
19947 ;
19948 return 0;
19949 }
19950 _ACEOF
19951 rm -f conftest.$ac_objext
19952 if { (ac_try="$ac_compile"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956 esac
19957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19958 $as_echo "$ac_try_echo") >&5
19959 (eval "$ac_compile") 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } && {
19966 test -z "$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19968 } && test -s conftest.$ac_objext; then
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 int
19977 main ()
19978 {
19979 if (sizeof ((ssize_t)))
19980 return 0;
19981 ;
19982 return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext
19986 if { (ac_try="$ac_compile"
19987 case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19990 esac
19991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19992 $as_echo "$ac_try_echo") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.$ac_objext; then
20003 :
20004 else
20005 $as_echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_cv_type_ssize_t=yes
20009 fi
20010
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 else
20013 $as_echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016
20017 fi
20018
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 fi
20021 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20022 $as_echo "$ac_cv_type_ssize_t" >&6; }
20023 if test "x$ac_cv_type_ssize_t" = x""yes; then
20024 :
20025 else
20026
20027 cat >>confdefs.h <<_ACEOF
20028 #define ssize_t int
20029 _ACEOF
20030
20031 fi
20032
20033 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20034 $as_echo_n "checking for time_t... " >&6; }
20035 if test "${ac_cv_type_time_t+set}" = set; then
20036 $as_echo_n "(cached) " >&6
20037 else
20038 ac_cv_type_time_t=no
20039 cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h. */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20046 int
20047 main ()
20048 {
20049 if (sizeof (time_t))
20050 return 0;
20051 ;
20052 return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (ac_try="$ac_compile"
20057 case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20060 esac
20061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20062 $as_echo "$ac_try_echo") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest.$ac_objext; then
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h. */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 $ac_includes_default
20080 int
20081 main ()
20082 {
20083 if (sizeof ((time_t)))
20084 return 0;
20085 ;
20086 return 0;
20087 }
20088 _ACEOF
20089 rm -f conftest.$ac_objext
20090 if { (ac_try="$ac_compile"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20096 $as_echo "$ac_try_echo") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.$ac_objext; then
20107 :
20108 else
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 ac_cv_type_time_t=yes
20113 fi
20114
20115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20116 else
20117 $as_echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120
20121 fi
20122
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 fi
20125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20126 $as_echo "$ac_cv_type_time_t" >&6; }
20127 if test "x$ac_cv_type_time_t" = x""yes; then
20128 :
20129 else
20130
20131 cat >>confdefs.h <<_ACEOF
20132 #define time_t long
20133 _ACEOF
20134
20135 fi
20136
20137
20138
20139 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20140 $as_echo_n "checking for long long... " >&6; }
20141 if test "${bash_cv_type_long_long+set}" = set; then
20142 $as_echo_n "(cached) " >&6
20143 else
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150
20151 long long ll = 1; int i = 63;
20152 int
20153 main ()
20154 {
20155
20156 long long llm = (long long) -1;
20157 return ll << i | ll >> i | llm / ll | llm % ll;
20158
20159 ;
20160 return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20170 $as_echo "$ac_try_echo") >&5
20171 (eval "$ac_link") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest$ac_exeext && {
20181 test "$cross_compiling" = yes ||
20182 $as_test_x conftest$ac_exeext
20183 }; then
20184 bash_cv_type_long_long='long long'
20185 else
20186 $as_echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 bash_cv_type_long_long='long'
20190 fi
20191
20192 rm -rf conftest.dSYM
20193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20194 conftest$ac_exeext conftest.$ac_ext
20195 fi
20196 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20197 $as_echo "$bash_cv_type_long_long" >&6; }
20198 if test "$bash_cv_type_long_long" = 'long long'; then
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_LONG_LONG 1
20201 _ACEOF
20202
20203 fi
20204
20205
20206 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20207 $as_echo_n "checking for unsigned long long... " >&6; }
20208 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20209 $as_echo_n "(cached) " >&6
20210 else
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h. */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217
20218 unsigned long long ull = 1; int i = 63;
20219 int
20220 main ()
20221 {
20222
20223 unsigned long long ullmax = (unsigned long long) -1;
20224 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20225
20226 ;
20227 return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235 esac
20236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20237 $as_echo "$ac_try_echo") >&5
20238 (eval "$ac_link") 2>conftest.er1
20239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && {
20245 test -z "$ac_c_werror_flag" ||
20246 test ! -s conftest.err
20247 } && test -s conftest$ac_exeext && {
20248 test "$cross_compiling" = yes ||
20249 $as_test_x conftest$ac_exeext
20250 }; then
20251 bash_cv_type_unsigned_long_long='unsigned long long'
20252 else
20253 $as_echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 bash_cv_type_unsigned_long_long='unsigned long'
20257 fi
20258
20259 rm -rf conftest.dSYM
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20262 fi
20263 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20264 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20265 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_UNSIGNED_LONG_LONG 1
20268 _ACEOF
20269
20270 fi
20271
20272
20273 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20274 $as_echo_n "checking return type of signal handlers... " >&6; }
20275 if test "${ac_cv_type_signal+set}" = set; then
20276 $as_echo_n "(cached) " >&6
20277 else
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #include <sys/types.h>
20285 #include <signal.h>
20286
20287 int
20288 main ()
20289 {
20290 return *(signal (0, 0)) (0) == 1;
20291 ;
20292 return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext
20296 if { (ac_try="$ac_compile"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300 esac
20301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302 $as_echo "$ac_try_echo") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 ac_cv_type_signal=int
20314 else
20315 $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 ac_cv_type_signal=void
20319 fi
20320
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322 fi
20323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20324 $as_echo "$ac_cv_type_signal" >&6; }
20325
20326 cat >>confdefs.h <<_ACEOF
20327 #define RETSIGTYPE $ac_cv_type_signal
20328 _ACEOF
20329
20330
20331 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20332 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20333 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20334 $as_echo_n "(cached) " >&6
20335 else
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h. */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342
20343 #include <signal.h>
20344
20345 int
20346 main ()
20347 {
20348 sig_atomic_t x;
20349 ;
20350 return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest.$ac_objext conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358 esac
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_link") 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest$ac_exeext && {
20371 test "$cross_compiling" = yes ||
20372 $as_test_x conftest$ac_exeext
20373 }; then
20374 ac_cv_have_sig_atomic_t=yes
20375 else
20376 $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 ac_cv_have_sig_atomic_t=no
20380 fi
20381
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20385 fi
20386 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20387 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20388 if test "$ac_cv_have_sig_atomic_t" = "no"
20389 then
20390 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20391 $as_echo_n "checking for sig_atomic_t... " >&6; }
20392 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20393 $as_echo_n "(cached) " >&6
20394 else
20395 ac_cv_type_sig_atomic_t=no
20396 cat >conftest.$ac_ext <<_ACEOF
20397 /* confdefs.h. */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 $ac_includes_default
20403 int
20404 main ()
20405 {
20406 if (sizeof (sig_atomic_t))
20407 return 0;
20408 ;
20409 return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest.$ac_objext
20413 if { (ac_try="$ac_compile"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417 esac
20418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419 $as_echo "$ac_try_echo") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 $ac_includes_default
20437 int
20438 main ()
20439 {
20440 if (sizeof ((sig_atomic_t)))
20441 return 0;
20442 ;
20443 return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20451 esac
20452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20453 $as_echo "$ac_try_echo") >&5
20454 (eval "$ac_compile") 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } && {
20461 test -z "$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20463 } && test -s conftest.$ac_objext; then
20464 :
20465 else
20466 $as_echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 ac_cv_type_sig_atomic_t=yes
20470 fi
20471
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473 else
20474 $as_echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477
20478 fi
20479
20480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20481 fi
20482 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20483 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20484 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20485 :
20486 else
20487
20488 cat >>confdefs.h <<_ACEOF
20489 #define sig_atomic_t int
20490 _ACEOF
20491
20492 fi
20493
20494 fi
20495
20496
20497 # The cast to long int works around a bug in the HP C Compiler
20498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20500 # This bug is HP SR number 8606223364.
20501 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20502 $as_echo_n "checking size of char... " >&6; }
20503 if test "${ac_cv_sizeof_char+set}" = set; then
20504 $as_echo_n "(cached) " >&6
20505 else
20506 if test "$cross_compiling" = yes; then
20507 # Depending upon the size, compute the lo and hi bounds.
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 $ac_includes_default
20515 int
20516 main ()
20517 {
20518 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20519 test_array [0] = 0
20520
20521 ;
20522 return 0;
20523 }
20524 _ACEOF
20525 rm -f conftest.$ac_objext
20526 if { (ac_try="$ac_compile"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530 esac
20531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20532 $as_echo "$ac_try_echo") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest.$ac_objext; then
20543 ac_lo=0 ac_mid=0
20544 while :; do
20545 cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h. */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 $ac_includes_default
20552 int
20553 main ()
20554 {
20555 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20556 test_array [0] = 0
20557
20558 ;
20559 return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext
20563 if { (ac_try="$ac_compile"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20569 $as_echo "$ac_try_echo") >&5
20570 (eval "$ac_compile") 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest.$ac_objext; then
20580 ac_hi=$ac_mid; break
20581 else
20582 $as_echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585 ac_lo=`expr $ac_mid + 1`
20586 if test $ac_lo -le $ac_mid; then
20587 ac_lo= ac_hi=
20588 break
20589 fi
20590 ac_mid=`expr 2 '*' $ac_mid + 1`
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 done
20595 else
20596 $as_echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h. */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 int
20607 main ()
20608 {
20609 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20610 test_array [0] = 0
20611
20612 ;
20613 return 0;
20614 }
20615 _ACEOF
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621 esac
20622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20623 $as_echo "$ac_try_echo") >&5
20624 (eval "$ac_compile") 2>conftest.er1
20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } && {
20631 test -z "$ac_c_werror_flag" ||
20632 test ! -s conftest.err
20633 } && test -s conftest.$ac_objext; then
20634 ac_hi=-1 ac_mid=-1
20635 while :; do
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 $ac_includes_default
20643 int
20644 main ()
20645 {
20646 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20647 test_array [0] = 0
20648
20649 ;
20650 return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (ac_try="$ac_compile"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658 esac
20659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20660 $as_echo "$ac_try_echo") >&5
20661 (eval "$ac_compile") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest.$ac_objext; then
20671 ac_lo=$ac_mid; break
20672 else
20673 $as_echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 ac_hi=`expr '(' $ac_mid ')' - 1`
20677 if test $ac_mid -le $ac_hi; then
20678 ac_lo= ac_hi=
20679 break
20680 fi
20681 ac_mid=`expr 2 '*' $ac_mid`
20682 fi
20683
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 done
20686 else
20687 $as_echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_lo= ac_hi=
20691 fi
20692
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 # Binary search between lo and hi bounds.
20698 while test "x$ac_lo" != "x$ac_hi"; do
20699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 int
20708 main ()
20709 {
20710 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20711 test_array [0] = 0
20712
20713 ;
20714 return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext
20718 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest.$ac_objext; then
20735 ac_hi=$ac_mid
20736 else
20737 $as_echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740 ac_lo=`expr '(' $ac_mid ')' + 1`
20741 fi
20742
20743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20744 done
20745 case $ac_lo in
20746 ?*) ac_cv_sizeof_char=$ac_lo;;
20747 '') if test "$ac_cv_type_char" = yes; then
20748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20750 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20751 See \`config.log' for more details." >&5
20752 $as_echo "$as_me: error: cannot compute sizeof (char)
20753 See \`config.log' for more details." >&2;}
20754 { (exit 77); exit 77; }; }; }
20755 else
20756 ac_cv_sizeof_char=0
20757 fi ;;
20758 esac
20759 else
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 $ac_includes_default
20767 static long int longval () { return (long int) (sizeof (char)); }
20768 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
20769 #include <stdio.h>
20770 #include <stdlib.h>
20771 int
20772 main ()
20773 {
20774
20775 FILE *f = fopen ("conftest.val", "w");
20776 if (! f)
20777 return 1;
20778 if (((long int) (sizeof (char))) < 0)
20779 {
20780 long int i = longval ();
20781 if (i != ((long int) (sizeof (char))))
20782 return 1;
20783 fprintf (f, "%ld", i);
20784 }
20785 else
20786 {
20787 unsigned long int i = ulongval ();
20788 if (i != ((long int) (sizeof (char))))
20789 return 1;
20790 fprintf (f, "%lu", i);
20791 }
20792 /* Do not output a trailing newline, as this causes \r\n confusion
20793 on some platforms. */
20794 return ferror (f) || fclose (f) != 0;
20795
20796 ;
20797 return 0;
20798 }
20799 _ACEOF
20800 rm -f conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805 esac
20806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20807 $as_echo "$ac_try_echo") >&5
20808 (eval "$ac_link") 2>&5
20809 ac_status=$?
20810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20812 { (case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20815 esac
20816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20817 $as_echo "$ac_try_echo") >&5
20818 (eval "$ac_try") 2>&5
20819 ac_status=$?
20820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_cv_sizeof_char=`cat conftest.val`
20823 else
20824 $as_echo "$as_me: program exited with status $ac_status" >&5
20825 $as_echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 ( exit $ac_status )
20829 if test "$ac_cv_type_char" = yes; then
20830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20832 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20833 See \`config.log' for more details." >&5
20834 $as_echo "$as_me: error: cannot compute sizeof (char)
20835 See \`config.log' for more details." >&2;}
20836 { (exit 77); exit 77; }; }; }
20837 else
20838 ac_cv_sizeof_char=0
20839 fi
20840 fi
20841 rm -rf conftest.dSYM
20842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20843 fi
20844 rm -f conftest.val
20845 fi
20846 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20847 $as_echo "$ac_cv_sizeof_char" >&6; }
20848
20849
20850
20851 cat >>confdefs.h <<_ACEOF
20852 #define SIZEOF_CHAR $ac_cv_sizeof_char
20853 _ACEOF
20854
20855
20856 # The cast to long int works around a bug in the HP C Compiler
20857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20859 # This bug is HP SR number 8606223364.
20860 { $as_echo "$as_me:$LINENO: checking size of short" >&5
20861 $as_echo_n "checking size of short... " >&6; }
20862 if test "${ac_cv_sizeof_short+set}" = set; then
20863 $as_echo_n "(cached) " >&6
20864 else
20865 if test "$cross_compiling" = yes; then
20866 # Depending upon the size, compute the lo and hi bounds.
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 int
20875 main ()
20876 {
20877 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20878 test_array [0] = 0
20879
20880 ;
20881 return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20891 $as_echo "$ac_try_echo") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20902 ac_lo=0 ac_mid=0
20903 while :; do
20904 cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h. */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 $ac_includes_default
20911 int
20912 main ()
20913 {
20914 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20915 test_array [0] = 0
20916
20917 ;
20918 return 0;
20919 }
20920 _ACEOF
20921 rm -f conftest.$ac_objext
20922 if { (ac_try="$ac_compile"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20926 esac
20927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20928 $as_echo "$ac_try_echo") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_hi=$ac_mid; break
20940 else
20941 $as_echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944 ac_lo=`expr $ac_mid + 1`
20945 if test $ac_lo -le $ac_mid; then
20946 ac_lo= ac_hi=
20947 break
20948 fi
20949 ac_mid=`expr 2 '*' $ac_mid + 1`
20950 fi
20951
20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 done
20954 else
20955 $as_echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 $ac_includes_default
20965 int
20966 main ()
20967 {
20968 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
20969 test_array [0] = 0
20970
20971 ;
20972 return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982 $as_echo "$ac_try_echo") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20993 ac_hi=-1 ac_mid=-1
20994 while :; do
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 $ac_includes_default
21002 int
21003 main ()
21004 {
21005 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
21006 test_array [0] = 0
21007
21008 ;
21009 return 0;
21010 }
21011 _ACEOF
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21017 esac
21018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21019 $as_echo "$ac_try_echo") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_lo=$ac_mid; break
21031 else
21032 $as_echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035 ac_hi=`expr '(' $ac_mid ')' - 1`
21036 if test $ac_mid -le $ac_hi; then
21037 ac_lo= ac_hi=
21038 break
21039 fi
21040 ac_mid=`expr 2 '*' $ac_mid`
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 done
21045 else
21046 $as_echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049 ac_lo= ac_hi=
21050 fi
21051
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 # Binary search between lo and hi bounds.
21057 while test "x$ac_lo" != "x$ac_hi"; do
21058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21059 cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h. */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 $ac_includes_default
21066 int
21067 main ()
21068 {
21069 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21070 test_array [0] = 0
21071
21072 ;
21073 return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest.$ac_objext; then
21094 ac_hi=$ac_mid
21095 else
21096 $as_echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_lo=`expr '(' $ac_mid ')' + 1`
21100 fi
21101
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 done
21104 case $ac_lo in
21105 ?*) ac_cv_sizeof_short=$ac_lo;;
21106 '') if test "$ac_cv_type_short" = yes; then
21107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21110 See \`config.log' for more details." >&5
21111 $as_echo "$as_me: error: cannot compute sizeof (short)
21112 See \`config.log' for more details." >&2;}
21113 { (exit 77); exit 77; }; }; }
21114 else
21115 ac_cv_sizeof_short=0
21116 fi ;;
21117 esac
21118 else
21119 cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h. */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 $ac_includes_default
21126 static long int longval () { return (long int) (sizeof (short)); }
21127 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21128 #include <stdio.h>
21129 #include <stdlib.h>
21130 int
21131 main ()
21132 {
21133
21134 FILE *f = fopen ("conftest.val", "w");
21135 if (! f)
21136 return 1;
21137 if (((long int) (sizeof (short))) < 0)
21138 {
21139 long int i = longval ();
21140 if (i != ((long int) (sizeof (short))))
21141 return 1;
21142 fprintf (f, "%ld", i);
21143 }
21144 else
21145 {
21146 unsigned long int i = ulongval ();
21147 if (i != ((long int) (sizeof (short))))
21148 return 1;
21149 fprintf (f, "%lu", i);
21150 }
21151 /* Do not output a trailing newline, as this causes \r\n confusion
21152 on some platforms. */
21153 return ferror (f) || fclose (f) != 0;
21154
21155 ;
21156 return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest$ac_exeext
21160 if { (ac_try="$ac_link"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21166 $as_echo "$ac_try_echo") >&5
21167 (eval "$ac_link") 2>&5
21168 ac_status=$?
21169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21171 { (case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21174 esac
21175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21176 $as_echo "$ac_try_echo") >&5
21177 (eval "$ac_try") 2>&5
21178 ac_status=$?
21179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 ac_cv_sizeof_short=`cat conftest.val`
21182 else
21183 $as_echo "$as_me: program exited with status $ac_status" >&5
21184 $as_echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ( exit $ac_status )
21188 if test "$ac_cv_type_short" = yes; then
21189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21191 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21192 See \`config.log' for more details." >&5
21193 $as_echo "$as_me: error: cannot compute sizeof (short)
21194 See \`config.log' for more details." >&2;}
21195 { (exit 77); exit 77; }; }; }
21196 else
21197 ac_cv_sizeof_short=0
21198 fi
21199 fi
21200 rm -rf conftest.dSYM
21201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21202 fi
21203 rm -f conftest.val
21204 fi
21205 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21206 $as_echo "$ac_cv_sizeof_short" >&6; }
21207
21208
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define SIZEOF_SHORT $ac_cv_sizeof_short
21212 _ACEOF
21213
21214
21215 # The cast to long int works around a bug in the HP C Compiler
21216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21218 # This bug is HP SR number 8606223364.
21219 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21220 $as_echo_n "checking size of int... " >&6; }
21221 if test "${ac_cv_sizeof_int+set}" = set; then
21222 $as_echo_n "(cached) " >&6
21223 else
21224 if test "$cross_compiling" = yes; then
21225 # Depending upon the size, compute the lo and hi bounds.
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 int
21234 main ()
21235 {
21236 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
21237 test_array [0] = 0
21238
21239 ;
21240 return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21248 esac
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_lo=0 ac_mid=0
21262 while :; do
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 int
21271 main ()
21272 {
21273 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21274 test_array [0] = 0
21275
21276 ;
21277 return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21285 esac
21286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21287 $as_echo "$ac_try_echo") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.$ac_objext; then
21298 ac_hi=$ac_mid; break
21299 else
21300 $as_echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_lo=`expr $ac_mid + 1`
21304 if test $ac_lo -le $ac_mid; then
21305 ac_lo= ac_hi=
21306 break
21307 fi
21308 ac_mid=`expr 2 '*' $ac_mid + 1`
21309 fi
21310
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 done
21313 else
21314 $as_echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h. */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 $ac_includes_default
21324 int
21325 main ()
21326 {
21327 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
21328 test_array [0] = 0
21329
21330 ;
21331 return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21339 esac
21340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21341 $as_echo "$ac_try_echo") >&5
21342 (eval "$ac_compile") 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest.$ac_objext; then
21352 ac_hi=-1 ac_mid=-1
21353 while :; do
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 $ac_includes_default
21361 int
21362 main ()
21363 {
21364 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
21365 test_array [0] = 0
21366
21367 ;
21368 return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (ac_try="$ac_compile"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21376 esac
21377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21378 $as_echo "$ac_try_echo") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.$ac_objext; then
21389 ac_lo=$ac_mid; break
21390 else
21391 $as_echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21393
21394 ac_hi=`expr '(' $ac_mid ')' - 1`
21395 if test $ac_mid -le $ac_hi; then
21396 ac_lo= ac_hi=
21397 break
21398 fi
21399 ac_mid=`expr 2 '*' $ac_mid`
21400 fi
21401
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 done
21404 else
21405 $as_echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 ac_lo= ac_hi=
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 fi
21413
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 # Binary search between lo and hi bounds.
21416 while test "x$ac_lo" != "x$ac_hi"; do
21417 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 int
21426 main ()
21427 {
21428 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21429 test_array [0] = 0
21430
21431 ;
21432 return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21444 ac_status=$?
21445 grep -v '^ *+' conftest.er1 >conftest.err
21446 rm -f conftest.er1
21447 cat conftest.err >&5
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_hi=$ac_mid
21454 else
21455 $as_echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ac_lo=`expr '(' $ac_mid ')' + 1`
21459 fi
21460
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 done
21463 case $ac_lo in
21464 ?*) ac_cv_sizeof_int=$ac_lo;;
21465 '') if test "$ac_cv_type_int" = yes; then
21466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21468 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21469 See \`config.log' for more details." >&5
21470 $as_echo "$as_me: error: cannot compute sizeof (int)
21471 See \`config.log' for more details." >&2;}
21472 { (exit 77); exit 77; }; }; }
21473 else
21474 ac_cv_sizeof_int=0
21475 fi ;;
21476 esac
21477 else
21478 cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h. */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 $ac_includes_default
21485 static long int longval () { return (long int) (sizeof (int)); }
21486 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21487 #include <stdio.h>
21488 #include <stdlib.h>
21489 int
21490 main ()
21491 {
21492
21493 FILE *f = fopen ("conftest.val", "w");
21494 if (! f)
21495 return 1;
21496 if (((long int) (sizeof (int))) < 0)
21497 {
21498 long int i = longval ();
21499 if (i != ((long int) (sizeof (int))))
21500 return 1;
21501 fprintf (f, "%ld", i);
21502 }
21503 else
21504 {
21505 unsigned long int i = ulongval ();
21506 if (i != ((long int) (sizeof (int))))
21507 return 1;
21508 fprintf (f, "%lu", i);
21509 }
21510 /* Do not output a trailing newline, as this causes \r\n confusion
21511 on some platforms. */
21512 return ferror (f) || fclose (f) != 0;
21513
21514 ;
21515 return 0;
21516 }
21517 _ACEOF
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21523 esac
21524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21525 $as_echo "$ac_try_echo") >&5
21526 (eval "$ac_link") 2>&5
21527 ac_status=$?
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21530 { (case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21533 esac
21534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21535 $as_echo "$ac_try_echo") >&5
21536 (eval "$ac_try") 2>&5
21537 ac_status=$?
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_cv_sizeof_int=`cat conftest.val`
21541 else
21542 $as_echo "$as_me: program exited with status $ac_status" >&5
21543 $as_echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546 ( exit $ac_status )
21547 if test "$ac_cv_type_int" = yes; then
21548 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21550 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21551 See \`config.log' for more details." >&5
21552 $as_echo "$as_me: error: cannot compute sizeof (int)
21553 See \`config.log' for more details." >&2;}
21554 { (exit 77); exit 77; }; }; }
21555 else
21556 ac_cv_sizeof_int=0
21557 fi
21558 fi
21559 rm -rf conftest.dSYM
21560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21561 fi
21562 rm -f conftest.val
21563 fi
21564 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21565 $as_echo "$ac_cv_sizeof_int" >&6; }
21566
21567
21568
21569 cat >>confdefs.h <<_ACEOF
21570 #define SIZEOF_INT $ac_cv_sizeof_int
21571 _ACEOF
21572
21573
21574 # The cast to long int works around a bug in the HP C Compiler
21575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21577 # This bug is HP SR number 8606223364.
21578 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21579 $as_echo_n "checking size of long... " >&6; }
21580 if test "${ac_cv_sizeof_long+set}" = set; then
21581 $as_echo_n "(cached) " >&6
21582 else
21583 if test "$cross_compiling" = yes; then
21584 # Depending upon the size, compute the lo and hi bounds.
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h. */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21592 int
21593 main ()
21594 {
21595 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21596 test_array [0] = 0
21597
21598 ;
21599 return 0;
21600 }
21601 _ACEOF
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21609 $as_echo "$ac_try_echo") >&5
21610 (eval "$ac_compile") 2>conftest.er1
21611 ac_status=$?
21612 grep -v '^ *+' conftest.er1 >conftest.err
21613 rm -f conftest.er1
21614 cat conftest.err >&5
21615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest.$ac_objext; then
21620 ac_lo=0 ac_mid=0
21621 while :; do
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 $ac_includes_default
21629 int
21630 main ()
21631 {
21632 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21633 test_array [0] = 0
21634
21635 ;
21636 return 0;
21637 }
21638 _ACEOF
21639 rm -f conftest.$ac_objext
21640 if { (ac_try="$ac_compile"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21644 esac
21645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21646 $as_echo "$ac_try_echo") >&5
21647 (eval "$ac_compile") 2>conftest.er1
21648 ac_status=$?
21649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
21652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } && {
21654 test -z "$ac_c_werror_flag" ||
21655 test ! -s conftest.err
21656 } && test -s conftest.$ac_objext; then
21657 ac_hi=$ac_mid; break
21658 else
21659 $as_echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 ac_lo=`expr $ac_mid + 1`
21663 if test $ac_lo -le $ac_mid; then
21664 ac_lo= ac_hi=
21665 break
21666 fi
21667 ac_mid=`expr 2 '*' $ac_mid + 1`
21668 fi
21669
21670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21671 done
21672 else
21673 $as_echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 int
21684 main ()
21685 {
21686 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21687 test_array [0] = 0
21688
21689 ;
21690 return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21700 $as_echo "$ac_try_echo") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21711 ac_hi=-1 ac_mid=-1
21712 while :; do
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 $ac_includes_default
21720 int
21721 main ()
21722 {
21723 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21724 test_array [0] = 0
21725
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 rm -f conftest.$ac_objext
21731 if { (ac_try="$ac_compile"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735 esac
21736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21737 $as_echo "$ac_try_echo") >&5
21738 (eval "$ac_compile") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest.$ac_objext; then
21748 ac_lo=$ac_mid; break
21749 else
21750 $as_echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753 ac_hi=`expr '(' $ac_mid ')' - 1`
21754 if test $ac_mid -le $ac_hi; then
21755 ac_lo= ac_hi=
21756 break
21757 fi
21758 ac_mid=`expr 2 '*' $ac_mid`
21759 fi
21760
21761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21762 done
21763 else
21764 $as_echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ac_lo= ac_hi=
21768 fi
21769
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 fi
21772
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 # Binary search between lo and hi bounds.
21775 while test "x$ac_lo" != "x$ac_hi"; do
21776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 $ac_includes_default
21784 int
21785 main ()
21786 {
21787 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21788 test_array [0] = 0
21789
21790 ;
21791 return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest.$ac_objext; then
21812 ac_hi=$ac_mid
21813 else
21814 $as_echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817 ac_lo=`expr '(' $ac_mid ')' + 1`
21818 fi
21819
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 done
21822 case $ac_lo in
21823 ?*) ac_cv_sizeof_long=$ac_lo;;
21824 '') if test "$ac_cv_type_long" = yes; then
21825 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21827 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21828 See \`config.log' for more details." >&5
21829 $as_echo "$as_me: error: cannot compute sizeof (long)
21830 See \`config.log' for more details." >&2;}
21831 { (exit 77); exit 77; }; }; }
21832 else
21833 ac_cv_sizeof_long=0
21834 fi ;;
21835 esac
21836 else
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 $ac_includes_default
21844 static long int longval () { return (long int) (sizeof (long)); }
21845 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21846 #include <stdio.h>
21847 #include <stdlib.h>
21848 int
21849 main ()
21850 {
21851
21852 FILE *f = fopen ("conftest.val", "w");
21853 if (! f)
21854 return 1;
21855 if (((long int) (sizeof (long))) < 0)
21856 {
21857 long int i = longval ();
21858 if (i != ((long int) (sizeof (long))))
21859 return 1;
21860 fprintf (f, "%ld", i);
21861 }
21862 else
21863 {
21864 unsigned long int i = ulongval ();
21865 if (i != ((long int) (sizeof (long))))
21866 return 1;
21867 fprintf (f, "%lu", i);
21868 }
21869 /* Do not output a trailing newline, as this causes \r\n confusion
21870 on some platforms. */
21871 return ferror (f) || fclose (f) != 0;
21872
21873 ;
21874 return 0;
21875 }
21876 _ACEOF
21877 rm -f conftest$ac_exeext
21878 if { (ac_try="$ac_link"
21879 case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21882 esac
21883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21884 $as_echo "$ac_try_echo") >&5
21885 (eval "$ac_link") 2>&5
21886 ac_status=$?
21887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21889 { (case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21892 esac
21893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21894 $as_echo "$ac_try_echo") >&5
21895 (eval "$ac_try") 2>&5
21896 ac_status=$?
21897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_sizeof_long=`cat conftest.val`
21900 else
21901 $as_echo "$as_me: program exited with status $ac_status" >&5
21902 $as_echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905 ( exit $ac_status )
21906 if test "$ac_cv_type_long" = yes; then
21907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21909 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21910 See \`config.log' for more details." >&5
21911 $as_echo "$as_me: error: cannot compute sizeof (long)
21912 See \`config.log' for more details." >&2;}
21913 { (exit 77); exit 77; }; }; }
21914 else
21915 ac_cv_sizeof_long=0
21916 fi
21917 fi
21918 rm -rf conftest.dSYM
21919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21920 fi
21921 rm -f conftest.val
21922 fi
21923 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21924 $as_echo "$ac_cv_sizeof_long" >&6; }
21925
21926
21927
21928 cat >>confdefs.h <<_ACEOF
21929 #define SIZEOF_LONG $ac_cv_sizeof_long
21930 _ACEOF
21931
21932
21933 # The cast to long int works around a bug in the HP C Compiler
21934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21936 # This bug is HP SR number 8606223364.
21937 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
21938 $as_echo_n "checking size of char *... " >&6; }
21939 if test "${ac_cv_sizeof_char_p+set}" = set; then
21940 $as_echo_n "(cached) " >&6
21941 else
21942 if test "$cross_compiling" = yes; then
21943 # Depending upon the size, compute the lo and hi bounds.
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h. */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21951 int
21952 main ()
21953 {
21954 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
21955 test_array [0] = 0
21956
21957 ;
21958 return 0;
21959 }
21960 _ACEOF
21961 rm -f conftest.$ac_objext
21962 if { (ac_try="$ac_compile"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21968 $as_echo "$ac_try_echo") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21970 ac_status=$?
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
21974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21979 ac_lo=0 ac_mid=0
21980 while :; do
21981 cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h. */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987 $ac_includes_default
21988 int
21989 main ()
21990 {
21991 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21992 test_array [0] = 0
21993
21994 ;
21995 return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003 esac
22004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22007 ac_status=$?
22008 grep -v '^ *+' conftest.er1 >conftest.err
22009 rm -f conftest.er1
22010 cat conftest.err >&5
22011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.$ac_objext; then
22016 ac_hi=$ac_mid; break
22017 else
22018 $as_echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021 ac_lo=`expr $ac_mid + 1`
22022 if test $ac_lo -le $ac_mid; then
22023 ac_lo= ac_hi=
22024 break
22025 fi
22026 ac_mid=`expr 2 '*' $ac_mid + 1`
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 done
22031 else
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h. */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22042 int
22043 main ()
22044 {
22045 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
22046 test_array [0] = 0
22047
22048 ;
22049 return 0;
22050 }
22051 _ACEOF
22052 rm -f conftest.$ac_objext
22053 if { (ac_try="$ac_compile"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22059 $as_echo "$ac_try_echo") >&5
22060 (eval "$ac_compile") 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest.$ac_objext; then
22070 ac_hi=-1 ac_mid=-1
22071 while :; do
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 $ac_includes_default
22079 int
22080 main ()
22081 {
22082 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
22083 test_array [0] = 0
22084
22085 ;
22086 return 0;
22087 }
22088 _ACEOF
22089 rm -f conftest.$ac_objext
22090 if { (ac_try="$ac_compile"
22091 case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094 esac
22095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22096 $as_echo "$ac_try_echo") >&5
22097 (eval "$ac_compile") 2>conftest.er1
22098 ac_status=$?
22099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
22102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest.$ac_objext; then
22107 ac_lo=$ac_mid; break
22108 else
22109 $as_echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 ac_hi=`expr '(' $ac_mid ')' - 1`
22113 if test $ac_mid -le $ac_hi; then
22114 ac_lo= ac_hi=
22115 break
22116 fi
22117 ac_mid=`expr 2 '*' $ac_mid`
22118 fi
22119
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 done
22122 else
22123 $as_echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 ac_lo= ac_hi=
22127 fi
22128
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 fi
22131
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133 # Binary search between lo and hi bounds.
22134 while test "x$ac_lo" != "x$ac_hi"; do
22135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 $ac_includes_default
22143 int
22144 main ()
22145 {
22146 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22147 test_array [0] = 0
22148
22149 ;
22150 return 0;
22151 }
22152 _ACEOF
22153 rm -f conftest.$ac_objext
22154 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22162 ac_status=$?
22163 grep -v '^ *+' conftest.er1 >conftest.err
22164 rm -f conftest.er1
22165 cat conftest.err >&5
22166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest.$ac_objext; then
22171 ac_hi=$ac_mid
22172 else
22173 $as_echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176 ac_lo=`expr '(' $ac_mid ')' + 1`
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 done
22181 case $ac_lo in
22182 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22183 '') if test "$ac_cv_type_char_p" = yes; then
22184 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22186 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22187 See \`config.log' for more details." >&5
22188 $as_echo "$as_me: error: cannot compute sizeof (char *)
22189 See \`config.log' for more details." >&2;}
22190 { (exit 77); exit 77; }; }; }
22191 else
22192 ac_cv_sizeof_char_p=0
22193 fi ;;
22194 esac
22195 else
22196 cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h. */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 $ac_includes_default
22203 static long int longval () { return (long int) (sizeof (char *)); }
22204 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22205 #include <stdio.h>
22206 #include <stdlib.h>
22207 int
22208 main ()
22209 {
22210
22211 FILE *f = fopen ("conftest.val", "w");
22212 if (! f)
22213 return 1;
22214 if (((long int) (sizeof (char *))) < 0)
22215 {
22216 long int i = longval ();
22217 if (i != ((long int) (sizeof (char *))))
22218 return 1;
22219 fprintf (f, "%ld", i);
22220 }
22221 else
22222 {
22223 unsigned long int i = ulongval ();
22224 if (i != ((long int) (sizeof (char *))))
22225 return 1;
22226 fprintf (f, "%lu", i);
22227 }
22228 /* Do not output a trailing newline, as this causes \r\n confusion
22229 on some platforms. */
22230 return ferror (f) || fclose (f) != 0;
22231
22232 ;
22233 return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22241 esac
22242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22243 $as_echo "$ac_try_echo") >&5
22244 (eval "$ac_link") 2>&5
22245 ac_status=$?
22246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22248 { (case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22251 esac
22252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22253 $as_echo "$ac_try_echo") >&5
22254 (eval "$ac_try") 2>&5
22255 ac_status=$?
22256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_sizeof_char_p=`cat conftest.val`
22259 else
22260 $as_echo "$as_me: program exited with status $ac_status" >&5
22261 $as_echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22263
22264 ( exit $ac_status )
22265 if test "$ac_cv_type_char_p" = yes; then
22266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22268 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22269 See \`config.log' for more details." >&5
22270 $as_echo "$as_me: error: cannot compute sizeof (char *)
22271 See \`config.log' for more details." >&2;}
22272 { (exit 77); exit 77; }; }; }
22273 else
22274 ac_cv_sizeof_char_p=0
22275 fi
22276 fi
22277 rm -rf conftest.dSYM
22278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22279 fi
22280 rm -f conftest.val
22281 fi
22282 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22283 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22284
22285
22286
22287 cat >>confdefs.h <<_ACEOF
22288 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22289 _ACEOF
22290
22291
22292 # The cast to long int works around a bug in the HP C Compiler
22293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22295 # This bug is HP SR number 8606223364.
22296 { $as_echo "$as_me:$LINENO: checking size of double" >&5
22297 $as_echo_n "checking size of double... " >&6; }
22298 if test "${ac_cv_sizeof_double+set}" = set; then
22299 $as_echo_n "(cached) " >&6
22300 else
22301 if test "$cross_compiling" = yes; then
22302 # Depending upon the size, compute the lo and hi bounds.
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h. */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22310 int
22311 main ()
22312 {
22313 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
22314 test_array [0] = 0
22315
22316 ;
22317 return 0;
22318 }
22319 _ACEOF
22320 rm -f conftest.$ac_objext
22321 if { (ac_try="$ac_compile"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327 $as_echo "$ac_try_echo") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_lo=0 ac_mid=0
22339 while :; do
22340 cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h. */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 $ac_includes_default
22347 int
22348 main ()
22349 {
22350 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22351 test_array [0] = 0
22352
22353 ;
22354 return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22362 esac
22363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22364 $as_echo "$ac_try_echo") >&5
22365 (eval "$ac_compile") 2>conftest.er1
22366 ac_status=$?
22367 grep -v '^ *+' conftest.er1 >conftest.err
22368 rm -f conftest.er1
22369 cat conftest.err >&5
22370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } && {
22372 test -z "$ac_c_werror_flag" ||
22373 test ! -s conftest.err
22374 } && test -s conftest.$ac_objext; then
22375 ac_hi=$ac_mid; break
22376 else
22377 $as_echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380 ac_lo=`expr $ac_mid + 1`
22381 if test $ac_lo -le $ac_mid; then
22382 ac_lo= ac_hi=
22383 break
22384 fi
22385 ac_mid=`expr 2 '*' $ac_mid + 1`
22386 fi
22387
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 done
22390 else
22391 $as_echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22401 int
22402 main ()
22403 {
22404 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
22405 test_array [0] = 0
22406
22407 ;
22408 return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416 esac
22417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22418 $as_echo "$ac_try_echo") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22429 ac_hi=-1 ac_mid=-1
22430 while :; do
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22438 int
22439 main ()
22440 {
22441 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22442 test_array [0] = 0
22443
22444 ;
22445 return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22455 $as_echo "$ac_try_echo") >&5
22456 (eval "$ac_compile") 2>conftest.er1
22457 ac_status=$?
22458 grep -v '^ *+' conftest.er1 >conftest.err
22459 rm -f conftest.er1
22460 cat conftest.err >&5
22461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } && {
22463 test -z "$ac_c_werror_flag" ||
22464 test ! -s conftest.err
22465 } && test -s conftest.$ac_objext; then
22466 ac_lo=$ac_mid; break
22467 else
22468 $as_echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_hi=`expr '(' $ac_mid ')' - 1`
22472 if test $ac_mid -le $ac_hi; then
22473 ac_lo= ac_hi=
22474 break
22475 fi
22476 ac_mid=`expr 2 '*' $ac_mid`
22477 fi
22478
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 done
22481 else
22482 $as_echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485 ac_lo= ac_hi=
22486 fi
22487
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 fi
22490
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 # Binary search between lo and hi bounds.
22493 while test "x$ac_lo" != "x$ac_hi"; do
22494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 int
22503 main ()
22504 {
22505 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22506 test_array [0] = 0
22507
22508 ;
22509 return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22521 ac_status=$?
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
22525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest.$ac_objext; then
22530 ac_hi=$ac_mid
22531 else
22532 $as_echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 ac_lo=`expr '(' $ac_mid ')' + 1`
22536 fi
22537
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 done
22540 case $ac_lo in
22541 ?*) ac_cv_sizeof_double=$ac_lo;;
22542 '') if test "$ac_cv_type_double" = yes; then
22543 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22545 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22546 See \`config.log' for more details." >&5
22547 $as_echo "$as_me: error: cannot compute sizeof (double)
22548 See \`config.log' for more details." >&2;}
22549 { (exit 77); exit 77; }; }; }
22550 else
22551 ac_cv_sizeof_double=0
22552 fi ;;
22553 esac
22554 else
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h. */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 $ac_includes_default
22562 static long int longval () { return (long int) (sizeof (double)); }
22563 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22564 #include <stdio.h>
22565 #include <stdlib.h>
22566 int
22567 main ()
22568 {
22569
22570 FILE *f = fopen ("conftest.val", "w");
22571 if (! f)
22572 return 1;
22573 if (((long int) (sizeof (double))) < 0)
22574 {
22575 long int i = longval ();
22576 if (i != ((long int) (sizeof (double))))
22577 return 1;
22578 fprintf (f, "%ld", i);
22579 }
22580 else
22581 {
22582 unsigned long int i = ulongval ();
22583 if (i != ((long int) (sizeof (double))))
22584 return 1;
22585 fprintf (f, "%lu", i);
22586 }
22587 /* Do not output a trailing newline, as this causes \r\n confusion
22588 on some platforms. */
22589 return ferror (f) || fclose (f) != 0;
22590
22591 ;
22592 return 0;
22593 }
22594 _ACEOF
22595 rm -f conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22600 esac
22601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22602 $as_echo "$ac_try_echo") >&5
22603 (eval "$ac_link") 2>&5
22604 ac_status=$?
22605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22607 { (case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610 esac
22611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22612 $as_echo "$ac_try_echo") >&5
22613 (eval "$ac_try") 2>&5
22614 ac_status=$?
22615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22617 ac_cv_sizeof_double=`cat conftest.val`
22618 else
22619 $as_echo "$as_me: program exited with status $ac_status" >&5
22620 $as_echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623 ( exit $ac_status )
22624 if test "$ac_cv_type_double" = yes; then
22625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22627 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22628 See \`config.log' for more details." >&5
22629 $as_echo "$as_me: error: cannot compute sizeof (double)
22630 See \`config.log' for more details." >&2;}
22631 { (exit 77); exit 77; }; }; }
22632 else
22633 ac_cv_sizeof_double=0
22634 fi
22635 fi
22636 rm -rf conftest.dSYM
22637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22638 fi
22639 rm -f conftest.val
22640 fi
22641 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22642 $as_echo "$ac_cv_sizeof_double" >&6; }
22643
22644
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22648 _ACEOF
22649
22650
22651 # The cast to long int works around a bug in the HP C Compiler
22652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22654 # This bug is HP SR number 8606223364.
22655 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22656 $as_echo_n "checking size of long long... " >&6; }
22657 if test "${ac_cv_sizeof_long_long+set}" = set; then
22658 $as_echo_n "(cached) " >&6
22659 else
22660 if test "$cross_compiling" = yes; then
22661 # Depending upon the size, compute the lo and hi bounds.
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h. */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22669 int
22670 main ()
22671 {
22672 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22673 test_array [0] = 0
22674
22675 ;
22676 return 0;
22677 }
22678 _ACEOF
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22684 esac
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_lo=0 ac_mid=0
22698 while :; do
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 $ac_includes_default
22706 int
22707 main ()
22708 {
22709 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22710 test_array [0] = 0
22711
22712 ;
22713 return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext
22717 if { (ac_try="$ac_compile"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22723 $as_echo "$ac_try_echo") >&5
22724 (eval "$ac_compile") 2>conftest.er1
22725 ac_status=$?
22726 grep -v '^ *+' conftest.er1 >conftest.err
22727 rm -f conftest.er1
22728 cat conftest.err >&5
22729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } && {
22731 test -z "$ac_c_werror_flag" ||
22732 test ! -s conftest.err
22733 } && test -s conftest.$ac_objext; then
22734 ac_hi=$ac_mid; break
22735 else
22736 $as_echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739 ac_lo=`expr $ac_mid + 1`
22740 if test $ac_lo -le $ac_mid; then
22741 ac_lo= ac_hi=
22742 break
22743 fi
22744 ac_mid=`expr 2 '*' $ac_mid + 1`
22745 fi
22746
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748 done
22749 else
22750 $as_echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753 cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h. */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 $ac_includes_default
22760 int
22761 main ()
22762 {
22763 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22764 test_array [0] = 0
22765
22766 ;
22767 return 0;
22768 }
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (ac_try="$ac_compile"
22772 case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22775 esac
22776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22777 $as_echo "$ac_try_echo") >&5
22778 (eval "$ac_compile") 2>conftest.er1
22779 ac_status=$?
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
22783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest.$ac_objext; then
22788 ac_hi=-1 ac_mid=-1
22789 while :; do
22790 cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h. */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 $ac_includes_default
22797 int
22798 main ()
22799 {
22800 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22801 test_array [0] = 0
22802
22803 ;
22804 return 0;
22805 }
22806 _ACEOF
22807 rm -f conftest.$ac_objext
22808 if { (ac_try="$ac_compile"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22812 esac
22813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22814 $as_echo "$ac_try_echo") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22816 ac_status=$?
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
22820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_lo=$ac_mid; break
22826 else
22827 $as_echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830 ac_hi=`expr '(' $ac_mid ')' - 1`
22831 if test $ac_mid -le $ac_hi; then
22832 ac_lo= ac_hi=
22833 break
22834 fi
22835 ac_mid=`expr 2 '*' $ac_mid`
22836 fi
22837
22838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 done
22840 else
22841 $as_echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844 ac_lo= ac_hi=
22845 fi
22846
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 fi
22849
22850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 # Binary search between lo and hi bounds.
22852 while test "x$ac_lo" != "x$ac_hi"; do
22853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22854 cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h. */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 $ac_includes_default
22861 int
22862 main ()
22863 {
22864 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22865 test_array [0] = 0
22866
22867 ;
22868 return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876 esac
22877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22878 $as_echo "$ac_try_echo") >&5
22879 (eval "$ac_compile") 2>conftest.er1
22880 ac_status=$?
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
22884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest.$ac_objext; then
22889 ac_hi=$ac_mid
22890 else
22891 $as_echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894 ac_lo=`expr '(' $ac_mid ')' + 1`
22895 fi
22896
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 done
22899 case $ac_lo in
22900 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22901 '') if test "$ac_cv_type_long_long" = yes; then
22902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22904 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22905 See \`config.log' for more details." >&5
22906 $as_echo "$as_me: error: cannot compute sizeof (long long)
22907 See \`config.log' for more details." >&2;}
22908 { (exit 77); exit 77; }; }; }
22909 else
22910 ac_cv_sizeof_long_long=0
22911 fi ;;
22912 esac
22913 else
22914 cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h. */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 $ac_includes_default
22921 static long int longval () { return (long int) (sizeof (long long)); }
22922 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22923 #include <stdio.h>
22924 #include <stdlib.h>
22925 int
22926 main ()
22927 {
22928
22929 FILE *f = fopen ("conftest.val", "w");
22930 if (! f)
22931 return 1;
22932 if (((long int) (sizeof (long long))) < 0)
22933 {
22934 long int i = longval ();
22935 if (i != ((long int) (sizeof (long long))))
22936 return 1;
22937 fprintf (f, "%ld", i);
22938 }
22939 else
22940 {
22941 unsigned long int i = ulongval ();
22942 if (i != ((long int) (sizeof (long long))))
22943 return 1;
22944 fprintf (f, "%lu", i);
22945 }
22946 /* Do not output a trailing newline, as this causes \r\n confusion
22947 on some platforms. */
22948 return ferror (f) || fclose (f) != 0;
22949
22950 ;
22951 return 0;
22952 }
22953 _ACEOF
22954 rm -f conftest$ac_exeext
22955 if { (ac_try="$ac_link"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22959 esac
22960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22961 $as_echo "$ac_try_echo") >&5
22962 (eval "$ac_link") 2>&5
22963 ac_status=$?
22964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22966 { (case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969 esac
22970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22971 $as_echo "$ac_try_echo") >&5
22972 (eval "$ac_try") 2>&5
22973 ac_status=$?
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 ac_cv_sizeof_long_long=`cat conftest.val`
22977 else
22978 $as_echo "$as_me: program exited with status $ac_status" >&5
22979 $as_echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982 ( exit $ac_status )
22983 if test "$ac_cv_type_long_long" = yes; then
22984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22986 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22987 See \`config.log' for more details." >&5
22988 $as_echo "$as_me: error: cannot compute sizeof (long long)
22989 See \`config.log' for more details." >&2;}
22990 { (exit 77); exit 77; }; }; }
22991 else
22992 ac_cv_sizeof_long_long=0
22993 fi
22994 fi
22995 rm -rf conftest.dSYM
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22997 fi
22998 rm -f conftest.val
22999 fi
23000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23001 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23002
23003
23004
23005 cat >>confdefs.h <<_ACEOF
23006 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23007 _ACEOF
23008
23009
23010
23011 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
23012 $as_echo_n "checking for u_int... " >&6; }
23013 if test "${ac_cv_type_u_int+set}" = set; then
23014 $as_echo_n "(cached) " >&6
23015 else
23016 ac_cv_type_u_int=no
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h. */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 $ac_includes_default
23024 int
23025 main ()
23026 {
23027 if (sizeof (u_int))
23028 return 0;
23029 ;
23030 return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041 (eval "$ac_compile") 2>conftest.er1
23042 ac_status=$?
23043 grep -v '^ *+' conftest.er1 >conftest.err
23044 rm -f conftest.er1
23045 cat conftest.err >&5
23046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } && {
23048 test -z "$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 } && test -s conftest.$ac_objext; then
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 $ac_includes_default
23058 int
23059 main ()
23060 {
23061 if (sizeof ((u_int)))
23062 return 0;
23063 ;
23064 return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072 esac
23073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23074 $as_echo "$ac_try_echo") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 :
23086 else
23087 $as_echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090 ac_cv_type_u_int=yes
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094 else
23095 $as_echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098
23099 fi
23100
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 fi
23103 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23104 $as_echo "$ac_cv_type_u_int" >&6; }
23105 if test "x$ac_cv_type_u_int" = x""yes; then
23106 :
23107 else
23108
23109 cat >>confdefs.h <<_ACEOF
23110 #define u_int unsigned int
23111 _ACEOF
23112
23113 fi
23114
23115 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
23116 $as_echo_n "checking for u_long... " >&6; }
23117 if test "${ac_cv_type_u_long+set}" = set; then
23118 $as_echo_n "(cached) " >&6
23119 else
23120 ac_cv_type_u_long=no
23121 cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h. */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 $ac_includes_default
23128 int
23129 main ()
23130 {
23131 if (sizeof (u_long))
23132 return 0;
23133 ;
23134 return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23142 esac
23143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23144 $as_echo "$ac_try_echo") >&5
23145 (eval "$ac_compile") 2>conftest.er1
23146 ac_status=$?
23147 grep -v '^ *+' conftest.er1 >conftest.err
23148 rm -f conftest.er1
23149 cat conftest.err >&5
23150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest.$ac_objext; then
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h. */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 $ac_includes_default
23162 int
23163 main ()
23164 {
23165 if (sizeof ((u_long)))
23166 return 0;
23167 ;
23168 return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext
23172 if { (ac_try="$ac_compile"
23173 case "(($ac_try" in
23174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175 *) ac_try_echo=$ac_try;;
23176 esac
23177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23178 $as_echo "$ac_try_echo") >&5
23179 (eval "$ac_compile") 2>conftest.er1
23180 ac_status=$?
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
23184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } && {
23186 test -z "$ac_c_werror_flag" ||
23187 test ! -s conftest.err
23188 } && test -s conftest.$ac_objext; then
23189 :
23190 else
23191 $as_echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194 ac_cv_type_u_long=yes
23195 fi
23196
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 else
23199 $as_echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202
23203 fi
23204
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 fi
23207 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23208 $as_echo "$ac_cv_type_u_long" >&6; }
23209 if test "x$ac_cv_type_u_long" = x""yes; then
23210 :
23211 else
23212
23213 cat >>confdefs.h <<_ACEOF
23214 #define u_long unsigned long
23215 _ACEOF
23216
23217 fi
23218
23219
23220
23221 if test "$ac_cv_sizeof_short" = 2; then
23222 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23223 $as_echo_n "checking for bits16_t... " >&6; }
23224 if test "${ac_cv_type_bits16_t+set}" = set; then
23225 $as_echo_n "(cached) " >&6
23226 else
23227 ac_cv_type_bits16_t=no
23228 cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h. */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 $ac_includes_default
23235 int
23236 main ()
23237 {
23238 if (sizeof (bits16_t))
23239 return 0;
23240 ;
23241 return 0;
23242 }
23243 _ACEOF
23244 rm -f conftest.$ac_objext
23245 if { (ac_try="$ac_compile"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23249 esac
23250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23251 $as_echo "$ac_try_echo") >&5
23252 (eval "$ac_compile") 2>conftest.er1
23253 ac_status=$?
23254 grep -v '^ *+' conftest.er1 >conftest.err
23255 rm -f conftest.er1
23256 cat conftest.err >&5
23257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && {
23259 test -z "$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 } && test -s conftest.$ac_objext; then
23262 cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h. */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268 $ac_includes_default
23269 int
23270 main ()
23271 {
23272 if (sizeof ((bits16_t)))
23273 return 0;
23274 ;
23275 return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283 esac
23284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23285 $as_echo "$ac_try_echo") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } && {
23293 test -z "$ac_c_werror_flag" ||
23294 test ! -s conftest.err
23295 } && test -s conftest.$ac_objext; then
23296 :
23297 else
23298 $as_echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 ac_cv_type_bits16_t=yes
23302 fi
23303
23304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305 else
23306 $as_echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309
23310 fi
23311
23312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 fi
23314 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23315 $as_echo "$ac_cv_type_bits16_t" >&6; }
23316 if test "x$ac_cv_type_bits16_t" = x""yes; then
23317 :
23318 else
23319
23320 cat >>confdefs.h <<_ACEOF
23321 #define bits16_t short
23322 _ACEOF
23323
23324 fi
23325
23326 elif test "$ac_cv_sizeof_char" = 2; then
23327 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23328 $as_echo_n "checking for bits16_t... " >&6; }
23329 if test "${ac_cv_type_bits16_t+set}" = set; then
23330 $as_echo_n "(cached) " >&6
23331 else
23332 ac_cv_type_bits16_t=no
23333 cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h. */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23340 int
23341 main ()
23342 {
23343 if (sizeof (bits16_t))
23344 return 0;
23345 ;
23346 return 0;
23347 }
23348 _ACEOF
23349 rm -f conftest.$ac_objext
23350 if { (ac_try="$ac_compile"
23351 case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23354 esac
23355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23356 $as_echo "$ac_try_echo") >&5
23357 (eval "$ac_compile") 2>conftest.er1
23358 ac_status=$?
23359 grep -v '^ *+' conftest.er1 >conftest.err
23360 rm -f conftest.er1
23361 cat conftest.err >&5
23362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } && {
23364 test -z "$ac_c_werror_flag" ||
23365 test ! -s conftest.err
23366 } && test -s conftest.$ac_objext; then
23367 cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h. */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 $ac_includes_default
23374 int
23375 main ()
23376 {
23377 if (sizeof ((bits16_t)))
23378 return 0;
23379 ;
23380 return 0;
23381 }
23382 _ACEOF
23383 rm -f conftest.$ac_objext
23384 if { (ac_try="$ac_compile"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23388 esac
23389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23390 $as_echo "$ac_try_echo") >&5
23391 (eval "$ac_compile") 2>conftest.er1
23392 ac_status=$?
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
23396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } && {
23398 test -z "$ac_c_werror_flag" ||
23399 test ! -s conftest.err
23400 } && test -s conftest.$ac_objext; then
23401 :
23402 else
23403 $as_echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 ac_cv_type_bits16_t=yes
23407 fi
23408
23409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23410 else
23411 $as_echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23413
23414
23415 fi
23416
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23418 fi
23419 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23420 $as_echo "$ac_cv_type_bits16_t" >&6; }
23421 if test "x$ac_cv_type_bits16_t" = x""yes; then
23422 :
23423 else
23424
23425 cat >>confdefs.h <<_ACEOF
23426 #define bits16_t char
23427 _ACEOF
23428
23429 fi
23430
23431 else
23432 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23433 $as_echo_n "checking for bits16_t... " >&6; }
23434 if test "${ac_cv_type_bits16_t+set}" = set; then
23435 $as_echo_n "(cached) " >&6
23436 else
23437 ac_cv_type_bits16_t=no
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h. */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23445 int
23446 main ()
23447 {
23448 if (sizeof (bits16_t))
23449 return 0;
23450 ;
23451 return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459 esac
23460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23461 $as_echo "$ac_try_echo") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h. */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 $ac_includes_default
23479 int
23480 main ()
23481 {
23482 if (sizeof ((bits16_t)))
23483 return 0;
23484 ;
23485 return 0;
23486 }
23487 _ACEOF
23488 rm -f conftest.$ac_objext
23489 if { (ac_try="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493 esac
23494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23506 :
23507 else
23508 $as_echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23510
23511 ac_cv_type_bits16_t=yes
23512 fi
23513
23514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515 else
23516 $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519
23520 fi
23521
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 fi
23524 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23525 $as_echo "$ac_cv_type_bits16_t" >&6; }
23526 if test "x$ac_cv_type_bits16_t" = x""yes; then
23527 :
23528 else
23529
23530 cat >>confdefs.h <<_ACEOF
23531 #define bits16_t short
23532 _ACEOF
23533
23534 fi
23535
23536 fi
23537
23538
23539 if test "$ac_cv_sizeof_short" = 2; then
23540 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23541 $as_echo_n "checking for u_bits16_t... " >&6; }
23542 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23543 $as_echo_n "(cached) " >&6
23544 else
23545 ac_cv_type_u_bits16_t=no
23546 cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h. */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 $ac_includes_default
23553 int
23554 main ()
23555 {
23556 if (sizeof (u_bits16_t))
23557 return 0;
23558 ;
23559 return 0;
23560 }
23561 _ACEOF
23562 rm -f conftest.$ac_objext
23563 if { (ac_try="$ac_compile"
23564 case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567 esac
23568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23569 $as_echo "$ac_try_echo") >&5
23570 (eval "$ac_compile") 2>conftest.er1
23571 ac_status=$?
23572 grep -v '^ *+' conftest.er1 >conftest.err
23573 rm -f conftest.er1
23574 cat conftest.err >&5
23575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } && {
23577 test -z "$ac_c_werror_flag" ||
23578 test ! -s conftest.err
23579 } && test -s conftest.$ac_objext; then
23580 cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h. */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 $ac_includes_default
23587 int
23588 main ()
23589 {
23590 if (sizeof ((u_bits16_t)))
23591 return 0;
23592 ;
23593 return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601 esac
23602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23603 $as_echo "$ac_try_echo") >&5
23604 (eval "$ac_compile") 2>conftest.er1
23605 ac_status=$?
23606 grep -v '^ *+' conftest.er1 >conftest.err
23607 rm -f conftest.er1
23608 cat conftest.err >&5
23609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && {
23611 test -z "$ac_c_werror_flag" ||
23612 test ! -s conftest.err
23613 } && test -s conftest.$ac_objext; then
23614 :
23615 else
23616 $as_echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 ac_cv_type_u_bits16_t=yes
23620 fi
23621
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23623 else
23624 $as_echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627
23628 fi
23629
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 fi
23632 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23633 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23634 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23635 :
23636 else
23637
23638 cat >>confdefs.h <<_ACEOF
23639 #define u_bits16_t unsigned short
23640 _ACEOF
23641
23642 fi
23643
23644 elif test "$ac_cv_sizeof_char" = 2; then
23645 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23646 $as_echo_n "checking for u_bits16_t... " >&6; }
23647 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23648 $as_echo_n "(cached) " >&6
23649 else
23650 ac_cv_type_u_bits16_t=no
23651 cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h. */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 $ac_includes_default
23658 int
23659 main ()
23660 {
23661 if (sizeof (u_bits16_t))
23662 return 0;
23663 ;
23664 return 0;
23665 }
23666 _ACEOF
23667 rm -f conftest.$ac_objext
23668 if { (ac_try="$ac_compile"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23672 esac
23673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675 (eval "$ac_compile") 2>conftest.er1
23676 ac_status=$?
23677 grep -v '^ *+' conftest.er1 >conftest.err
23678 rm -f conftest.er1
23679 cat conftest.err >&5
23680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest.$ac_objext; then
23685 cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h. */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 $ac_includes_default
23692 int
23693 main ()
23694 {
23695 if (sizeof ((u_bits16_t)))
23696 return 0;
23697 ;
23698 return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23706 esac
23707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709 (eval "$ac_compile") 2>conftest.er1
23710 ac_status=$?
23711 grep -v '^ *+' conftest.er1 >conftest.err
23712 rm -f conftest.er1
23713 cat conftest.err >&5
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } && {
23716 test -z "$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 } && test -s conftest.$ac_objext; then
23719 :
23720 else
23721 $as_echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23723
23724 ac_cv_type_u_bits16_t=yes
23725 fi
23726
23727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23728 else
23729 $as_echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732
23733 fi
23734
23735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23736 fi
23737 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23738 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23739 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23740 :
23741 else
23742
23743 cat >>confdefs.h <<_ACEOF
23744 #define u_bits16_t unsigned char
23745 _ACEOF
23746
23747 fi
23748
23749 else
23750 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23751 $as_echo_n "checking for u_bits16_t... " >&6; }
23752 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23753 $as_echo_n "(cached) " >&6
23754 else
23755 ac_cv_type_u_bits16_t=no
23756 cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h. */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 $ac_includes_default
23763 int
23764 main ()
23765 {
23766 if (sizeof (u_bits16_t))
23767 return 0;
23768 ;
23769 return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777 esac
23778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23779 $as_echo "$ac_try_echo") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23781 ac_status=$?
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
23785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest.$ac_objext; then
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 $ac_includes_default
23797 int
23798 main ()
23799 {
23800 if (sizeof ((u_bits16_t)))
23801 return 0;
23802 ;
23803 return 0;
23804 }
23805 _ACEOF
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23811 esac
23812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23813 $as_echo "$ac_try_echo") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23815 ac_status=$?
23816 grep -v '^ *+' conftest.er1 >conftest.err
23817 rm -f conftest.er1
23818 cat conftest.err >&5
23819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.$ac_objext; then
23824 :
23825 else
23826 $as_echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23828
23829 ac_cv_type_u_bits16_t=yes
23830 fi
23831
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23833 else
23834 $as_echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837
23838 fi
23839
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841 fi
23842 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23843 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23844 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23845 :
23846 else
23847
23848 cat >>confdefs.h <<_ACEOF
23849 #define u_bits16_t unsigned short
23850 _ACEOF
23851
23852 fi
23853
23854 fi
23855
23856
23857 if test "$ac_cv_sizeof_int" = 4; then
23858 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23859 $as_echo_n "checking for bits32_t... " >&6; }
23860 if test "${ac_cv_type_bits32_t+set}" = set; then
23861 $as_echo_n "(cached) " >&6
23862 else
23863 ac_cv_type_bits32_t=no
23864 cat >conftest.$ac_ext <<_ACEOF
23865 /* confdefs.h. */
23866 _ACEOF
23867 cat confdefs.h >>conftest.$ac_ext
23868 cat >>conftest.$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23870 $ac_includes_default
23871 int
23872 main ()
23873 {
23874 if (sizeof (bits32_t))
23875 return 0;
23876 ;
23877 return 0;
23878 }
23879 _ACEOF
23880 rm -f conftest.$ac_objext
23881 if { (ac_try="$ac_compile"
23882 case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23885 esac
23886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23887 $as_echo "$ac_try_echo") >&5
23888 (eval "$ac_compile") 2>conftest.er1
23889 ac_status=$?
23890 grep -v '^ *+' conftest.er1 >conftest.err
23891 rm -f conftest.er1
23892 cat conftest.err >&5
23893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && {
23895 test -z "$ac_c_werror_flag" ||
23896 test ! -s conftest.err
23897 } && test -s conftest.$ac_objext; then
23898 cat >conftest.$ac_ext <<_ACEOF
23899 /* confdefs.h. */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 $ac_includes_default
23905 int
23906 main ()
23907 {
23908 if (sizeof ((bits32_t)))
23909 return 0;
23910 ;
23911 return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23919 esac
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest.$ac_objext; then
23932 :
23933 else
23934 $as_echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ac_cv_type_bits32_t=yes
23938 fi
23939
23940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23941 else
23942 $as_echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945
23946 fi
23947
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 fi
23950 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23951 $as_echo "$ac_cv_type_bits32_t" >&6; }
23952 if test "x$ac_cv_type_bits32_t" = x""yes; then
23953 :
23954 else
23955
23956 cat >>confdefs.h <<_ACEOF
23957 #define bits32_t int
23958 _ACEOF
23959
23960 fi
23961
23962 elif test "$ac_cv_sizeof_long" = 4; then
23963 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23964 $as_echo_n "checking for bits32_t... " >&6; }
23965 if test "${ac_cv_type_bits32_t+set}" = set; then
23966 $as_echo_n "(cached) " >&6
23967 else
23968 ac_cv_type_bits32_t=no
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h. */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 $ac_includes_default
23976 int
23977 main ()
23978 {
23979 if (sizeof (bits32_t))
23980 return 0;
23981 ;
23982 return 0;
23983 }
23984 _ACEOF
23985 rm -f conftest.$ac_objext
23986 if { (ac_try="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23990 esac
23991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23992 $as_echo "$ac_try_echo") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 cat >conftest.$ac_ext <<_ACEOF
24004 /* confdefs.h. */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 $ac_includes_default
24010 int
24011 main ()
24012 {
24013 if (sizeof ((bits32_t)))
24014 return 0;
24015 ;
24016 return 0;
24017 }
24018 _ACEOF
24019 rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24024 esac
24025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24026 $as_echo "$ac_try_echo") >&5
24027 (eval "$ac_compile") 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } && {
24034 test -z "$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 } && test -s conftest.$ac_objext; then
24037 :
24038 else
24039 $as_echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042 ac_cv_type_bits32_t=yes
24043 fi
24044
24045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24046 else
24047 $as_echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24049
24050
24051 fi
24052
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 fi
24055 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24056 $as_echo "$ac_cv_type_bits32_t" >&6; }
24057 if test "x$ac_cv_type_bits32_t" = x""yes; then
24058 :
24059 else
24060
24061 cat >>confdefs.h <<_ACEOF
24062 #define bits32_t long
24063 _ACEOF
24064
24065 fi
24066
24067 else
24068 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24069 $as_echo_n "checking for bits32_t... " >&6; }
24070 if test "${ac_cv_type_bits32_t+set}" = set; then
24071 $as_echo_n "(cached) " >&6
24072 else
24073 ac_cv_type_bits32_t=no
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h. */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 $ac_includes_default
24081 int
24082 main ()
24083 {
24084 if (sizeof (bits32_t))
24085 return 0;
24086 ;
24087 return 0;
24088 }
24089 _ACEOF
24090 rm -f conftest.$ac_objext
24091 if { (ac_try="$ac_compile"
24092 case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24095 esac
24096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098 (eval "$ac_compile") 2>conftest.er1
24099 ac_status=$?
24100 grep -v '^ *+' conftest.er1 >conftest.err
24101 rm -f conftest.er1
24102 cat conftest.err >&5
24103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } && {
24105 test -z "$ac_c_werror_flag" ||
24106 test ! -s conftest.err
24107 } && test -s conftest.$ac_objext; then
24108 cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h. */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 $ac_includes_default
24115 int
24116 main ()
24117 {
24118 if (sizeof ((bits32_t)))
24119 return 0;
24120 ;
24121 return 0;
24122 }
24123 _ACEOF
24124 rm -f conftest.$ac_objext
24125 if { (ac_try="$ac_compile"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24129 esac
24130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24131 $as_echo "$ac_try_echo") >&5
24132 (eval "$ac_compile") 2>conftest.er1
24133 ac_status=$?
24134 grep -v '^ *+' conftest.er1 >conftest.err
24135 rm -f conftest.er1
24136 cat conftest.err >&5
24137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } && {
24139 test -z "$ac_c_werror_flag" ||
24140 test ! -s conftest.err
24141 } && test -s conftest.$ac_objext; then
24142 :
24143 else
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24146
24147 ac_cv_type_bits32_t=yes
24148 fi
24149
24150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24151 else
24152 $as_echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24154
24155
24156 fi
24157
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 fi
24160 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24161 $as_echo "$ac_cv_type_bits32_t" >&6; }
24162 if test "x$ac_cv_type_bits32_t" = x""yes; then
24163 :
24164 else
24165
24166 cat >>confdefs.h <<_ACEOF
24167 #define bits32_t int
24168 _ACEOF
24169
24170 fi
24171
24172 fi
24173
24174
24175 if test "$ac_cv_sizeof_int" = 4; then
24176 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24177 $as_echo_n "checking for u_bits32_t... " >&6; }
24178 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24179 $as_echo_n "(cached) " >&6
24180 else
24181 ac_cv_type_u_bits32_t=no
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h. */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 $ac_includes_default
24189 int
24190 main ()
24191 {
24192 if (sizeof (u_bits32_t))
24193 return 0;
24194 ;
24195 return 0;
24196 }
24197 _ACEOF
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24205 $as_echo "$ac_try_echo") >&5
24206 (eval "$ac_compile") 2>conftest.er1
24207 ac_status=$?
24208 grep -v '^ *+' conftest.er1 >conftest.err
24209 rm -f conftest.er1
24210 cat conftest.err >&5
24211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } && {
24213 test -z "$ac_c_werror_flag" ||
24214 test ! -s conftest.err
24215 } && test -s conftest.$ac_objext; then
24216 cat >conftest.$ac_ext <<_ACEOF
24217 /* confdefs.h. */
24218 _ACEOF
24219 cat confdefs.h >>conftest.$ac_ext
24220 cat >>conftest.$ac_ext <<_ACEOF
24221 /* end confdefs.h. */
24222 $ac_includes_default
24223 int
24224 main ()
24225 {
24226 if (sizeof ((u_bits32_t)))
24227 return 0;
24228 ;
24229 return 0;
24230 }
24231 _ACEOF
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24237 esac
24238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24239 $as_echo "$ac_try_echo") >&5
24240 (eval "$ac_compile") 2>conftest.er1
24241 ac_status=$?
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
24245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest.$ac_objext; then
24250 :
24251 else
24252 $as_echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255 ac_cv_type_u_bits32_t=yes
24256 fi
24257
24258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24259 else
24260 $as_echo "$as_me: failed program was:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24262
24263
24264 fi
24265
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 fi
24268 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24269 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24270 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24271 :
24272 else
24273
24274 cat >>confdefs.h <<_ACEOF
24275 #define u_bits32_t unsigned int
24276 _ACEOF
24277
24278 fi
24279
24280 elif test "$ac_cv_sizeof_long" = 4; then
24281 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24282 $as_echo_n "checking for u_bits32_t... " >&6; }
24283 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24284 $as_echo_n "(cached) " >&6
24285 else
24286 ac_cv_type_u_bits32_t=no
24287 cat >conftest.$ac_ext <<_ACEOF
24288 /* confdefs.h. */
24289 _ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h. */
24293 $ac_includes_default
24294 int
24295 main ()
24296 {
24297 if (sizeof (u_bits32_t))
24298 return 0;
24299 ;
24300 return 0;
24301 }
24302 _ACEOF
24303 rm -f conftest.$ac_objext
24304 if { (ac_try="$ac_compile"
24305 case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24308 esac
24309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24310 $as_echo "$ac_try_echo") >&5
24311 (eval "$ac_compile") 2>conftest.er1
24312 ac_status=$?
24313 grep -v '^ *+' conftest.er1 >conftest.err
24314 rm -f conftest.er1
24315 cat conftest.err >&5
24316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } && {
24318 test -z "$ac_c_werror_flag" ||
24319 test ! -s conftest.err
24320 } && test -s conftest.$ac_objext; then
24321 cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h. */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327 $ac_includes_default
24328 int
24329 main ()
24330 {
24331 if (sizeof ((u_bits32_t)))
24332 return 0;
24333 ;
24334 return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24342 esac
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24346 ac_status=$?
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24355 :
24356 else
24357 $as_echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360 ac_cv_type_u_bits32_t=yes
24361 fi
24362
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24364 else
24365 $as_echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24367
24368
24369 fi
24370
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372 fi
24373 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24374 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24375 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24376 :
24377 else
24378
24379 cat >>confdefs.h <<_ACEOF
24380 #define u_bits32_t unsigned long
24381 _ACEOF
24382
24383 fi
24384
24385 else
24386 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24387 $as_echo_n "checking for u_bits32_t... " >&6; }
24388 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24389 $as_echo_n "(cached) " >&6
24390 else
24391 ac_cv_type_u_bits32_t=no
24392 cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h. */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 $ac_includes_default
24399 int
24400 main ()
24401 {
24402 if (sizeof (u_bits32_t))
24403 return 0;
24404 ;
24405 return 0;
24406 }
24407 _ACEOF
24408 rm -f conftest.$ac_objext
24409 if { (ac_try="$ac_compile"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24413 esac
24414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24415 $as_echo "$ac_try_echo") >&5
24416 (eval "$ac_compile") 2>conftest.er1
24417 ac_status=$?
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
24421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest.$ac_objext; then
24426 cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h. */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 $ac_includes_default
24433 int
24434 main ()
24435 {
24436 if (sizeof ((u_bits32_t)))
24437 return 0;
24438 ;
24439 return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24447 esac
24448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24449 $as_echo "$ac_try_echo") >&5
24450 (eval "$ac_compile") 2>conftest.er1
24451 ac_status=$?
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
24455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } && {
24457 test -z "$ac_c_werror_flag" ||
24458 test ! -s conftest.err
24459 } && test -s conftest.$ac_objext; then
24460 :
24461 else
24462 $as_echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24464
24465 ac_cv_type_u_bits32_t=yes
24466 fi
24467
24468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24469 else
24470 $as_echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24472
24473
24474 fi
24475
24476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 fi
24478 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24479 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24480 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24481 :
24482 else
24483
24484 cat >>confdefs.h <<_ACEOF
24485 #define u_bits32_t unsigned int
24486 _ACEOF
24487
24488 fi
24489
24490 fi
24491
24492
24493 if test "$ac_cv_sizeof_char_p" = 8; then
24494 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24495 $as_echo_n "checking for bits64_t... " >&6; }
24496 if test "${ac_cv_type_bits64_t+set}" = set; then
24497 $as_echo_n "(cached) " >&6
24498 else
24499 ac_cv_type_bits64_t=no
24500 cat >conftest.$ac_ext <<_ACEOF
24501 /* confdefs.h. */
24502 _ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h. */
24506 $ac_includes_default
24507 int
24508 main ()
24509 {
24510 if (sizeof (bits64_t))
24511 return 0;
24512 ;
24513 return 0;
24514 }
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24521 esac
24522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24523 $as_echo "$ac_try_echo") >&5
24524 (eval "$ac_compile") 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24534 cat >conftest.$ac_ext <<_ACEOF
24535 /* confdefs.h. */
24536 _ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24540 $ac_includes_default
24541 int
24542 main ()
24543 {
24544 if (sizeof ((bits64_t)))
24545 return 0;
24546 ;
24547 return 0;
24548 }
24549 _ACEOF
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555 esac
24556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24559 ac_status=$?
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24568 :
24569 else
24570 $as_echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24572
24573 ac_cv_type_bits64_t=yes
24574 fi
24575
24576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577 else
24578 $as_echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24580
24581
24582 fi
24583
24584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24585 fi
24586 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24587 $as_echo "$ac_cv_type_bits64_t" >&6; }
24588 if test "x$ac_cv_type_bits64_t" = x""yes; then
24589 :
24590 else
24591
24592 cat >>confdefs.h <<_ACEOF
24593 #define bits64_t char *
24594 _ACEOF
24595
24596 fi
24597
24598 elif test "$ac_cv_sizeof_double" = 8; then
24599 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24600 $as_echo_n "checking for bits64_t... " >&6; }
24601 if test "${ac_cv_type_bits64_t+set}" = set; then
24602 $as_echo_n "(cached) " >&6
24603 else
24604 ac_cv_type_bits64_t=no
24605 cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h. */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 $ac_includes_default
24612 int
24613 main ()
24614 {
24615 if (sizeof (bits64_t))
24616 return 0;
24617 ;
24618 return 0;
24619 }
24620 _ACEOF
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626 esac
24627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24628 $as_echo "$ac_try_echo") >&5
24629 (eval "$ac_compile") 2>conftest.er1
24630 ac_status=$?
24631 grep -v '^ *+' conftest.er1 >conftest.err
24632 rm -f conftest.er1
24633 cat conftest.err >&5
24634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest.$ac_objext; then
24639 cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h. */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 $ac_includes_default
24646 int
24647 main ()
24648 {
24649 if (sizeof ((bits64_t)))
24650 return 0;
24651 ;
24652 return 0;
24653 }
24654 _ACEOF
24655 rm -f conftest.$ac_objext
24656 if { (ac_try="$ac_compile"
24657 case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660 esac
24661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24664 ac_status=$?
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
24668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24673 :
24674 else
24675 $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_cv_type_bits64_t=yes
24679 fi
24680
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 else
24683 $as_echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690 fi
24691 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24692 $as_echo "$ac_cv_type_bits64_t" >&6; }
24693 if test "x$ac_cv_type_bits64_t" = x""yes; then
24694 :
24695 else
24696
24697 cat >>confdefs.h <<_ACEOF
24698 #define bits64_t double
24699 _ACEOF
24700
24701 fi
24702
24703 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24704 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24705 $as_echo_n "checking for bits64_t... " >&6; }
24706 if test "${ac_cv_type_bits64_t+set}" = set; then
24707 $as_echo_n "(cached) " >&6
24708 else
24709 ac_cv_type_bits64_t=no
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h. */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 $ac_includes_default
24717 int
24718 main ()
24719 {
24720 if (sizeof (bits64_t))
24721 return 0;
24722 ;
24723 return 0;
24724 }
24725 _ACEOF
24726 rm -f conftest.$ac_objext
24727 if { (ac_try="$ac_compile"
24728 case "(($ac_try" in
24729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730 *) ac_try_echo=$ac_try;;
24731 esac
24732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24733 $as_echo "$ac_try_echo") >&5
24734 (eval "$ac_compile") 2>conftest.er1
24735 ac_status=$?
24736 grep -v '^ *+' conftest.er1 >conftest.err
24737 rm -f conftest.er1
24738 cat conftest.err >&5
24739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } && {
24741 test -z "$ac_c_werror_flag" ||
24742 test ! -s conftest.err
24743 } && test -s conftest.$ac_objext; then
24744 cat >conftest.$ac_ext <<_ACEOF
24745 /* confdefs.h. */
24746 _ACEOF
24747 cat confdefs.h >>conftest.$ac_ext
24748 cat >>conftest.$ac_ext <<_ACEOF
24749 /* end confdefs.h. */
24750 $ac_includes_default
24751 int
24752 main ()
24753 {
24754 if (sizeof ((bits64_t)))
24755 return 0;
24756 ;
24757 return 0;
24758 }
24759 _ACEOF
24760 rm -f conftest.$ac_objext
24761 if { (ac_try="$ac_compile"
24762 case "(($ac_try" in
24763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24765 esac
24766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768 (eval "$ac_compile") 2>conftest.er1
24769 ac_status=$?
24770 grep -v '^ *+' conftest.er1 >conftest.err
24771 rm -f conftest.er1
24772 cat conftest.err >&5
24773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest.$ac_objext; then
24778 :
24779 else
24780 $as_echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783 ac_cv_type_bits64_t=yes
24784 fi
24785
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24787 else
24788 $as_echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24790
24791
24792 fi
24793
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 fi
24796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24797 $as_echo "$ac_cv_type_bits64_t" >&6; }
24798 if test "x$ac_cv_type_bits64_t" = x""yes; then
24799 :
24800 else
24801
24802 cat >>confdefs.h <<_ACEOF
24803 #define bits64_t long long
24804 _ACEOF
24805
24806 fi
24807
24808 elif test "$ac_cv_sizeof_long" = 8; then
24809 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24810 $as_echo_n "checking for bits64_t... " >&6; }
24811 if test "${ac_cv_type_bits64_t+set}" = set; then
24812 $as_echo_n "(cached) " >&6
24813 else
24814 ac_cv_type_bits64_t=no
24815 cat >conftest.$ac_ext <<_ACEOF
24816 /* confdefs.h. */
24817 _ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h. */
24821 $ac_includes_default
24822 int
24823 main ()
24824 {
24825 if (sizeof (bits64_t))
24826 return 0;
24827 ;
24828 return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24836 esac
24837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24838 $as_echo "$ac_try_echo") >&5
24839 (eval "$ac_compile") 2>conftest.er1
24840 ac_status=$?
24841 grep -v '^ *+' conftest.er1 >conftest.err
24842 rm -f conftest.er1
24843 cat conftest.err >&5
24844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } && {
24846 test -z "$ac_c_werror_flag" ||
24847 test ! -s conftest.err
24848 } && test -s conftest.$ac_objext; then
24849 cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h. */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h. */
24855 $ac_includes_default
24856 int
24857 main ()
24858 {
24859 if (sizeof ((bits64_t)))
24860 return 0;
24861 ;
24862 return 0;
24863 }
24864 _ACEOF
24865 rm -f conftest.$ac_objext
24866 if { (ac_try="$ac_compile"
24867 case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24870 esac
24871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24872 $as_echo "$ac_try_echo") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24874 ac_status=$?
24875 grep -v '^ *+' conftest.er1 >conftest.err
24876 rm -f conftest.er1
24877 cat conftest.err >&5
24878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24883 :
24884 else
24885 $as_echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888 ac_cv_type_bits64_t=yes
24889 fi
24890
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 else
24893 $as_echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24895
24896
24897 fi
24898
24899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 fi
24901 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24902 $as_echo "$ac_cv_type_bits64_t" >&6; }
24903 if test "x$ac_cv_type_bits64_t" = x""yes; then
24904 :
24905 else
24906
24907 cat >>confdefs.h <<_ACEOF
24908 #define bits64_t long
24909 _ACEOF
24910
24911 fi
24912
24913 else
24914 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24915 $as_echo_n "checking for bits64_t... " >&6; }
24916 if test "${ac_cv_type_bits64_t+set}" = set; then
24917 $as_echo_n "(cached) " >&6
24918 else
24919 ac_cv_type_bits64_t=no
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h. */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24926 $ac_includes_default
24927 int
24928 main ()
24929 {
24930 if (sizeof (bits64_t))
24931 return 0;
24932 ;
24933 return 0;
24934 }
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940 *) ac_try_echo=$ac_try;;
24941 esac
24942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24943 $as_echo "$ac_try_echo") >&5
24944 (eval "$ac_compile") 2>conftest.er1
24945 ac_status=$?
24946 grep -v '^ *+' conftest.er1 >conftest.err
24947 rm -f conftest.er1
24948 cat conftest.err >&5
24949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } && {
24951 test -z "$ac_c_werror_flag" ||
24952 test ! -s conftest.err
24953 } && test -s conftest.$ac_objext; then
24954 cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h. */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h. */
24960 $ac_includes_default
24961 int
24962 main ()
24963 {
24964 if (sizeof ((bits64_t)))
24965 return 0;
24966 ;
24967 return 0;
24968 }
24969 _ACEOF
24970 rm -f conftest.$ac_objext
24971 if { (ac_try="$ac_compile"
24972 case "(($ac_try" in
24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974 *) ac_try_echo=$ac_try;;
24975 esac
24976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24977 $as_echo "$ac_try_echo") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24988 :
24989 else
24990 $as_echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24992
24993 ac_cv_type_bits64_t=yes
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 else
24998 $as_echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 fi
25006 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25007 $as_echo "$ac_cv_type_bits64_t" >&6; }
25008 if test "x$ac_cv_type_bits64_t" = x""yes; then
25009 :
25010 else
25011
25012 cat >>confdefs.h <<_ACEOF
25013 #define bits64_t double
25014 _ACEOF
25015
25016 fi
25017
25018 fi
25019
25020
25021
25022 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25023 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25024 $as_echo_n "checking for ptrdiff_t... " >&6; }
25025 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25026 $as_echo_n "(cached) " >&6
25027 else
25028 ac_cv_type_ptrdiff_t=no
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h. */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 $ac_includes_default
25036 int
25037 main ()
25038 {
25039 if (sizeof (ptrdiff_t))
25040 return 0;
25041 ;
25042 return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext
25046 if { (ac_try="$ac_compile"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050 esac
25051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25052 $as_echo "$ac_try_echo") >&5
25053 (eval "$ac_compile") 2>conftest.er1
25054 ac_status=$?
25055 grep -v '^ *+' conftest.er1 >conftest.err
25056 rm -f conftest.er1
25057 cat conftest.err >&5
25058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); } && {
25060 test -z "$ac_c_werror_flag" ||
25061 test ! -s conftest.err
25062 } && test -s conftest.$ac_objext; then
25063 cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h. */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 $ac_includes_default
25070 int
25071 main ()
25072 {
25073 if (sizeof ((ptrdiff_t)))
25074 return 0;
25075 ;
25076 return 0;
25077 }
25078 _ACEOF
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087 (eval "$ac_compile") 2>conftest.er1
25088 ac_status=$?
25089 grep -v '^ *+' conftest.er1 >conftest.err
25090 rm -f conftest.er1
25091 cat conftest.err >&5
25092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } && {
25094 test -z "$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25096 } && test -s conftest.$ac_objext; then
25097 :
25098 else
25099 $as_echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25101
25102 ac_cv_type_ptrdiff_t=yes
25103 fi
25104
25105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106 else
25107 $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110
25111 fi
25112
25113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25114 fi
25115 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25116 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25117 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25118 :
25119 else
25120
25121 cat >>confdefs.h <<_ACEOF
25122 #define ptrdiff_t int
25123 _ACEOF
25124
25125 fi
25126
25127 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25128 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25129 $as_echo_n "checking for ptrdiff_t... " >&6; }
25130 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25131 $as_echo_n "(cached) " >&6
25132 else
25133 ac_cv_type_ptrdiff_t=no
25134 cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h. */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25140 $ac_includes_default
25141 int
25142 main ()
25143 {
25144 if (sizeof (ptrdiff_t))
25145 return 0;
25146 ;
25147 return 0;
25148 }
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25155 esac
25156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25157 $as_echo "$ac_try_echo") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25159 ac_status=$?
25160 grep -v '^ *+' conftest.er1 >conftest.err
25161 rm -f conftest.er1
25162 cat conftest.err >&5
25163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h. */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 $ac_includes_default
25175 int
25176 main ()
25177 {
25178 if (sizeof ((ptrdiff_t)))
25179 return 0;
25180 ;
25181 return 0;
25182 }
25183 _ACEOF
25184 rm -f conftest.$ac_objext
25185 if { (ac_try="$ac_compile"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25189 esac
25190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191 $as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25193 ac_status=$?
25194 grep -v '^ *+' conftest.er1 >conftest.err
25195 rm -f conftest.er1
25196 cat conftest.err >&5
25197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.$ac_objext; then
25202 :
25203 else
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207 ac_cv_type_ptrdiff_t=yes
25208 fi
25209
25210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25211 else
25212 $as_echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215
25216 fi
25217
25218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 fi
25220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25221 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25222 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25223 :
25224 else
25225
25226 cat >>confdefs.h <<_ACEOF
25227 #define ptrdiff_t long
25228 _ACEOF
25229
25230 fi
25231
25232 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25233 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25234 $as_echo_n "checking for ptrdiff_t... " >&6; }
25235 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25236 $as_echo_n "(cached) " >&6
25237 else
25238 ac_cv_type_ptrdiff_t=no
25239 cat >conftest.$ac_ext <<_ACEOF
25240 /* confdefs.h. */
25241 _ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h. */
25245 $ac_includes_default
25246 int
25247 main ()
25248 {
25249 if (sizeof (ptrdiff_t))
25250 return 0;
25251 ;
25252 return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25260 esac
25261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25262 $as_echo "$ac_try_echo") >&5
25263 (eval "$ac_compile") 2>conftest.er1
25264 ac_status=$?
25265 grep -v '^ *+' conftest.er1 >conftest.err
25266 rm -f conftest.er1
25267 cat conftest.err >&5
25268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } && {
25270 test -z "$ac_c_werror_flag" ||
25271 test ! -s conftest.err
25272 } && test -s conftest.$ac_objext; then
25273 cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h. */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25279 $ac_includes_default
25280 int
25281 main ()
25282 {
25283 if (sizeof ((ptrdiff_t)))
25284 return 0;
25285 ;
25286 return 0;
25287 }
25288 _ACEOF
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293 *) ac_try_echo=$ac_try;;
25294 esac
25295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25296 $as_echo "$ac_try_echo") >&5
25297 (eval "$ac_compile") 2>conftest.er1
25298 ac_status=$?
25299 grep -v '^ *+' conftest.er1 >conftest.err
25300 rm -f conftest.er1
25301 cat conftest.err >&5
25302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } && {
25304 test -z "$ac_c_werror_flag" ||
25305 test ! -s conftest.err
25306 } && test -s conftest.$ac_objext; then
25307 :
25308 else
25309 $as_echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25311
25312 ac_cv_type_ptrdiff_t=yes
25313 fi
25314
25315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25316 else
25317 $as_echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25319
25320
25321 fi
25322
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324 fi
25325 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25326 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25327 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25328 :
25329 else
25330
25331 cat >>confdefs.h <<_ACEOF
25332 #define ptrdiff_t long long
25333 _ACEOF
25334
25335 fi
25336
25337 else
25338 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25339 $as_echo_n "checking for ptrdiff_t... " >&6; }
25340 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25341 $as_echo_n "(cached) " >&6
25342 else
25343 ac_cv_type_ptrdiff_t=no
25344 cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h. */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 $ac_includes_default
25351 int
25352 main ()
25353 {
25354 if (sizeof (ptrdiff_t))
25355 return 0;
25356 ;
25357 return 0;
25358 }
25359 _ACEOF
25360 rm -f conftest.$ac_objext
25361 if { (ac_try="$ac_compile"
25362 case "(($ac_try" in
25363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364 *) ac_try_echo=$ac_try;;
25365 esac
25366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25367 $as_echo "$ac_try_echo") >&5
25368 (eval "$ac_compile") 2>conftest.er1
25369 ac_status=$?
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
25373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest.$ac_objext; then
25378 cat >conftest.$ac_ext <<_ACEOF
25379 /* confdefs.h. */
25380 _ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25385 int
25386 main ()
25387 {
25388 if (sizeof ((ptrdiff_t)))
25389 return 0;
25390 ;
25391 return 0;
25392 }
25393 _ACEOF
25394 rm -f conftest.$ac_objext
25395 if { (ac_try="$ac_compile"
25396 case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25399 esac
25400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25401 $as_echo "$ac_try_echo") >&5
25402 (eval "$ac_compile") 2>conftest.er1
25403 ac_status=$?
25404 grep -v '^ *+' conftest.er1 >conftest.err
25405 rm -f conftest.er1
25406 cat conftest.err >&5
25407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } && {
25409 test -z "$ac_c_werror_flag" ||
25410 test ! -s conftest.err
25411 } && test -s conftest.$ac_objext; then
25412 :
25413 else
25414 $as_echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25416
25417 ac_cv_type_ptrdiff_t=yes
25418 fi
25419
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25421 else
25422 $as_echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25424
25425
25426 fi
25427
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 fi
25430 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25431 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25432 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25433 :
25434 else
25435
25436 cat >>confdefs.h <<_ACEOF
25437 #define ptrdiff_t int
25438 _ACEOF
25439
25440 fi
25441
25442 fi
25443
25444
25445 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25446 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25447 if test "${ac_cv_header_stat_broken+set}" = set; then
25448 $as_echo_n "(cached) " >&6
25449 else
25450 cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h. */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 #include <sys/types.h>
25457 #include <sys/stat.h>
25458
25459 #if defined S_ISBLK && defined S_IFDIR
25460 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25461 #endif
25462
25463 #if defined S_ISBLK && defined S_IFCHR
25464 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25465 #endif
25466
25467 #if defined S_ISLNK && defined S_IFREG
25468 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25469 #endif
25470
25471 #if defined S_ISSOCK && defined S_IFREG
25472 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25473 #endif
25474
25475 _ACEOF
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25481 esac
25482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484 (eval "$ac_compile") 2>conftest.er1
25485 ac_status=$?
25486 grep -v '^ *+' conftest.er1 >conftest.err
25487 rm -f conftest.er1
25488 cat conftest.err >&5
25489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && {
25491 test -z "$ac_c_werror_flag" ||
25492 test ! -s conftest.err
25493 } && test -s conftest.$ac_objext; then
25494 ac_cv_header_stat_broken=no
25495 else
25496 $as_echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25498
25499 ac_cv_header_stat_broken=yes
25500 fi
25501
25502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25503 fi
25504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25505 $as_echo "$ac_cv_header_stat_broken" >&6; }
25506 if test $ac_cv_header_stat_broken = yes; then
25507
25508 cat >>confdefs.h <<\_ACEOF
25509 #define STAT_MACROS_BROKEN 1
25510 _ACEOF
25511
25512 fi
25513
25514
25515 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
25516 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25517 if test "${ac_cv_sys_interpreter+set}" = set; then
25518 $as_echo_n "(cached) " >&6
25519 else
25520 echo '#! /bin/cat
25521 exit 69
25522 ' >conftest
25523 chmod u+x conftest
25524 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25525 if test $? -ne 69; then
25526 ac_cv_sys_interpreter=yes
25527 else
25528 ac_cv_sys_interpreter=no
25529 fi
25530 rm -f conftest
25531 fi
25532 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25533 $as_echo "$ac_cv_sys_interpreter" >&6; }
25534 interpval=$ac_cv_sys_interpreter
25535
25536 if test $ac_cv_sys_interpreter = yes; then
25537 cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_HASH_BANG_EXEC 1
25539 _ACEOF
25540
25541 fi
25542
25543 if test "$ac_cv_func_lstat" = "no"; then
25544 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25545 $as_echo_n "checking for lstat... " >&6; }
25546 if test "${bash_cv_func_lstat+set}" = set; then
25547 $as_echo_n "(cached) " >&6
25548 else
25549 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h. */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555
25556 #include <sys/types.h>
25557 #include <sys/stat.h>
25558
25559 int
25560 main ()
25561 {
25562 lstat(".",(struct stat *)0);
25563 ;
25564 return 0;
25565 }
25566 _ACEOF
25567 rm -f conftest.$ac_objext conftest$ac_exeext
25568 if { (ac_try="$ac_link"
25569 case "(($ac_try" in
25570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25571 *) ac_try_echo=$ac_try;;
25572 esac
25573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25574 $as_echo "$ac_try_echo") >&5
25575 (eval "$ac_link") 2>conftest.er1
25576 ac_status=$?
25577 grep -v '^ *+' conftest.er1 >conftest.err
25578 rm -f conftest.er1
25579 cat conftest.err >&5
25580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } && {
25582 test -z "$ac_c_werror_flag" ||
25583 test ! -s conftest.err
25584 } && test -s conftest$ac_exeext && {
25585 test "$cross_compiling" = yes ||
25586 $as_test_x conftest$ac_exeext
25587 }; then
25588 bash_cv_func_lstat=yes
25589 else
25590 $as_echo "$as_me: failed program was:" >&5
25591 sed 's/^/| /' conftest.$ac_ext >&5
25592
25593 bash_cv_func_lstat=no
25594 fi
25595
25596 rm -rf conftest.dSYM
25597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25598 conftest$ac_exeext conftest.$ac_ext
25599 fi
25600 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25601 $as_echo "$bash_cv_func_lstat" >&6; }
25602 if test $bash_cv_func_lstat = yes; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define HAVE_LSTAT 1
25605 _ACEOF
25606
25607 fi
25608
25609 fi
25610
25611
25612 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25613 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25614 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25615 $as_echo_n "(cached) " >&6
25616 else
25617 if test "$cross_compiling" = yes; then
25618 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25619 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25620 bash_cv_func_ctype_nonascii=no
25621
25622 else
25623 cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h. */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629
25630 #ifdef HAVE_LOCALE_H
25631 #include <locale.h>
25632 #endif
25633 #include <stdio.h>
25634 #include <ctype.h>
25635
25636 main(c, v)
25637 int c;
25638 char *v[];
25639 {
25640 char *deflocale;
25641 unsigned char x;
25642 int r1, r2;
25643
25644 #ifdef HAVE_SETLOCALE
25645 /* We take a shot here. If that locale is not known, try the
25646 system default. We try this one because '\342' (226) is
25647 known to be a printable character in that locale. */
25648 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25649 if (deflocale == 0)
25650 deflocale = setlocale(LC_ALL, "");
25651 #endif
25652
25653 x = '\342';
25654 r1 = isprint(x);
25655 x -= 128;
25656 r2 = isprint(x);
25657 exit (r1 == 0 || r2 == 0);
25658 }
25659
25660 _ACEOF
25661 rm -f conftest$ac_exeext
25662 if { (ac_try="$ac_link"
25663 case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25666 esac
25667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669 (eval "$ac_link") 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25673 { (case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_try") 2>&5
25680 ac_status=$?
25681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 bash_cv_func_ctype_nonascii=yes
25684 else
25685 $as_echo "$as_me: program exited with status $ac_status" >&5
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 ( exit $ac_status )
25690 bash_cv_func_ctype_nonascii=no
25691 fi
25692 rm -rf conftest.dSYM
25693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25694 fi
25695
25696
25697 fi
25698
25699 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25700 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25701 if test $bash_cv_func_ctype_nonascii = yes; then
25702 cat >>confdefs.h <<\_ACEOF
25703 #define CTYPE_NON_ASCII 1
25704 _ACEOF
25705
25706 fi
25707
25708 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25709 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25710 if test "${bash_cv_dup2_broken+set}" = set; then
25711 $as_echo_n "(cached) " >&6
25712 else
25713 if test "$cross_compiling" = yes; then
25714 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25715 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25716 bash_cv_dup2_broken=no
25717 else
25718 cat >conftest.$ac_ext <<_ACEOF
25719 /* confdefs.h. */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25724
25725 #include <sys/types.h>
25726 #include <fcntl.h>
25727 main()
25728 {
25729 int fd1, fd2, fl;
25730 fd1 = open("/dev/null", 2);
25731 if (fcntl(fd1, 2, 1) < 0)
25732 exit(1);
25733 fd2 = dup2(fd1, 1);
25734 if (fd2 < 0)
25735 exit(2);
25736 fl = fcntl(fd2, 1, 0);
25737 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25738 exit(fl != 1);
25739 }
25740
25741 _ACEOF
25742 rm -f conftest$ac_exeext
25743 if { (ac_try="$ac_link"
25744 case "(($ac_try" in
25745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746 *) ac_try_echo=$ac_try;;
25747 esac
25748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25749 $as_echo "$ac_try_echo") >&5
25750 (eval "$ac_link") 2>&5
25751 ac_status=$?
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25754 { (case "(($ac_try" in
25755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25757 esac
25758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759 $as_echo "$ac_try_echo") >&5
25760 (eval "$ac_try") 2>&5
25761 ac_status=$?
25762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
25764 bash_cv_dup2_broken=yes
25765 else
25766 $as_echo "$as_me: program exited with status $ac_status" >&5
25767 $as_echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770 ( exit $ac_status )
25771 bash_cv_dup2_broken=no
25772 fi
25773 rm -rf conftest.dSYM
25774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25775 fi
25776
25777
25778
25779 fi
25780
25781 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
25782 $as_echo "$bash_cv_dup2_broken" >&6; }
25783 if test $bash_cv_dup2_broken = yes; then
25784 cat >>confdefs.h <<\_ACEOF
25785 #define DUP2_BROKEN 1
25786 _ACEOF
25787
25788 fi
25789
25790
25791 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
25792 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
25793 if test "${bash_cv_pgrp_pipe+set}" = set; then
25794 $as_echo_n "(cached) " >&6
25795 else
25796 if test "$cross_compiling" = yes; then
25797 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
25798 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
25799 bash_cv_pgrp_pipe=no
25800 else
25801 cat >conftest.$ac_ext <<_ACEOF
25802 /* confdefs.h. */
25803 _ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25807
25808 #ifdef HAVE_UNISTD_H
25809 # include <unistd.h>
25810 #endif
25811 main()
25812 {
25813 # ifdef GETPGRP_VOID
25814 # define getpgID() getpgrp()
25815 # else
25816 # define getpgID() getpgrp(0)
25817 # define setpgid(x,y) setpgrp(x,y)
25818 # endif
25819 int pid1, pid2, fds[2];
25820 int status;
25821 char ok;
25822
25823 switch (pid1 = fork()) {
25824 case -1:
25825 exit(1);
25826 case 0:
25827 setpgid(0, getpid());
25828 exit(0);
25829 }
25830 setpgid(pid1, pid1);
25831
25832 sleep(2); /* let first child die */
25833
25834 if (pipe(fds) < 0)
25835 exit(2);
25836
25837 switch (pid2 = fork()) {
25838 case -1:
25839 exit(3);
25840 case 0:
25841 setpgid(0, pid1);
25842 ok = getpgID() == pid1;
25843 write(fds[1], &ok, 1);
25844 exit(0);
25845 }
25846 setpgid(pid2, pid1);
25847
25848 close(fds[1]);
25849 if (read(fds[0], &ok, 1) != 1)
25850 exit(4);
25851 wait(&status);
25852 wait(&status);
25853 exit(ok ? 0 : 5);
25854 }
25855
25856 _ACEOF
25857 rm -f conftest$ac_exeext
25858 if { (ac_try="$ac_link"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25862 esac
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_link") 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25869 { (case "(($ac_try" in
25870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25871 *) ac_try_echo=$ac_try;;
25872 esac
25873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25874 $as_echo "$ac_try_echo") >&5
25875 (eval "$ac_try") 2>&5
25876 ac_status=$?
25877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 bash_cv_pgrp_pipe=no
25880 else
25881 $as_echo "$as_me: program exited with status $ac_status" >&5
25882 $as_echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885 ( exit $ac_status )
25886 bash_cv_pgrp_pipe=yes
25887 fi
25888 rm -rf conftest.dSYM
25889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25890 fi
25891
25892
25893
25894 fi
25895
25896 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
25897 $as_echo "$bash_cv_pgrp_pipe" >&6; }
25898 if test $bash_cv_pgrp_pipe = yes; then
25899 cat >>confdefs.h <<\_ACEOF
25900 #define PGRP_PIPE 1
25901 _ACEOF
25902
25903 fi
25904
25905
25906 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
25907 $as_echo_n "checking for type of signal functions... " >&6; }
25908 if test "${bash_cv_signal_vintage+set}" = set; then
25909 $as_echo_n "(cached) " >&6
25910 else
25911
25912 cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h. */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 #include <signal.h>
25919 int
25920 main ()
25921 {
25922
25923 sigset_t ss;
25924 struct sigaction sa;
25925 sigemptyset(&ss); sigsuspend(&ss);
25926 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25927 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25928
25929 ;
25930 return 0;
25931 }
25932 _ACEOF
25933 rm -f conftest.$ac_objext conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25938 esac
25939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25940 $as_echo "$ac_try_echo") >&5
25941 (eval "$ac_link") 2>conftest.er1
25942 ac_status=$?
25943 grep -v '^ *+' conftest.er1 >conftest.err
25944 rm -f conftest.er1
25945 cat conftest.err >&5
25946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } && {
25948 test -z "$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25950 } && test -s conftest$ac_exeext && {
25951 test "$cross_compiling" = yes ||
25952 $as_test_x conftest$ac_exeext
25953 }; then
25954 bash_cv_signal_vintage=posix
25955 else
25956 $as_echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25958
25959
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h. */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include <signal.h>
25967 int
25968 main ()
25969 {
25970
25971 int mask = sigmask(SIGINT);
25972 sigsetmask(mask); sigblock(mask); sigpause(mask);
25973
25974 ;
25975 return 0;
25976 }
25977 _ACEOF
25978 rm -f conftest.$ac_objext conftest$ac_exeext
25979 if { (ac_try="$ac_link"
25980 case "(($ac_try" in
25981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25983 esac
25984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25985 $as_echo "$ac_try_echo") >&5
25986 (eval "$ac_link") 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest$ac_exeext && {
25996 test "$cross_compiling" = yes ||
25997 $as_test_x conftest$ac_exeext
25998 }; then
25999 bash_cv_signal_vintage=4.2bsd
26000 else
26001 $as_echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h. */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011
26012 #include <signal.h>
26013 RETSIGTYPE foo() { }
26014 int
26015 main ()
26016 {
26017
26018 int mask = sigmask(SIGINT);
26019 sigset(SIGINT, foo); sigrelse(SIGINT);
26020 sighold(SIGINT); sigpause(SIGINT);
26021
26022 ;
26023 return 0;
26024 }
26025 _ACEOF
26026 rm -f conftest.$ac_objext conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26031 esac
26032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034 (eval "$ac_link") 2>conftest.er1
26035 ac_status=$?
26036 grep -v '^ *+' conftest.er1 >conftest.err
26037 rm -f conftest.er1
26038 cat conftest.err >&5
26039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } && {
26041 test -z "$ac_c_werror_flag" ||
26042 test ! -s conftest.err
26043 } && test -s conftest$ac_exeext && {
26044 test "$cross_compiling" = yes ||
26045 $as_test_x conftest$ac_exeext
26046 }; then
26047 bash_cv_signal_vintage=svr3
26048 else
26049 $as_echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052 bash_cv_signal_vintage=v7
26053
26054 fi
26055
26056 rm -rf conftest.dSYM
26057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26058 conftest$ac_exeext conftest.$ac_ext
26059
26060 fi
26061
26062 rm -rf conftest.dSYM
26063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26064 conftest$ac_exeext conftest.$ac_ext
26065
26066 fi
26067
26068 rm -rf conftest.dSYM
26069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26070 conftest$ac_exeext conftest.$ac_ext
26071
26072 fi
26073
26074 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26075 $as_echo "$bash_cv_signal_vintage" >&6; }
26076 if test "$bash_cv_signal_vintage" = posix; then
26077 cat >>confdefs.h <<\_ACEOF
26078 #define HAVE_POSIX_SIGNALS 1
26079 _ACEOF
26080
26081 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26082 cat >>confdefs.h <<\_ACEOF
26083 #define HAVE_BSD_SIGNALS 1
26084 _ACEOF
26085
26086 elif test "$bash_cv_signal_vintage" = svr3; then
26087 cat >>confdefs.h <<\_ACEOF
26088 #define HAVE_USG_SIGHOLD 1
26089 _ACEOF
26090
26091 fi
26092
26093
26094 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26095 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26096 if test "${bash_cv_sys_errlist+set}" = set; then
26097 $as_echo_n "(cached) " >&6
26098 else
26099 cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h. */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 #include <errno.h>
26106 int
26107 main ()
26108 {
26109 extern char *sys_errlist[];
26110 extern int sys_nerr;
26111 char *msg = sys_errlist[sys_nerr - 1];
26112 ;
26113 return 0;
26114 }
26115 _ACEOF
26116 rm -f conftest.$ac_objext conftest$ac_exeext
26117 if { (ac_try="$ac_link"
26118 case "(($ac_try" in
26119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120 *) ac_try_echo=$ac_try;;
26121 esac
26122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26123 $as_echo "$ac_try_echo") >&5
26124 (eval "$ac_link") 2>conftest.er1
26125 ac_status=$?
26126 grep -v '^ *+' conftest.er1 >conftest.err
26127 rm -f conftest.er1
26128 cat conftest.err >&5
26129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } && {
26131 test -z "$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26133 } && test -s conftest$ac_exeext && {
26134 test "$cross_compiling" = yes ||
26135 $as_test_x conftest$ac_exeext
26136 }; then
26137 bash_cv_sys_errlist=yes
26138 else
26139 $as_echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26141
26142 bash_cv_sys_errlist=no
26143 fi
26144
26145 rm -rf conftest.dSYM
26146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26147 conftest$ac_exeext conftest.$ac_ext
26148 fi
26149 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26150 $as_echo "$bash_cv_sys_errlist" >&6; }
26151 if test $bash_cv_sys_errlist = yes; then
26152 cat >>confdefs.h <<\_ACEOF
26153 #define HAVE_SYS_ERRLIST 1
26154 _ACEOF
26155
26156 fi
26157
26158
26159 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26160 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26161 if test "${bash_cv_sys_siglist+set}" = set; then
26162 $as_echo_n "(cached) " >&6
26163 else
26164 if test "$cross_compiling" = yes; then
26165 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26166 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26167 bash_cv_sys_siglist=no
26168 else
26169 cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h. */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26175
26176 #include <sys/types.h>
26177 #include <signal.h>
26178 #ifdef HAVE_UNISTD_H
26179 #include <unistd.h>
26180 #endif
26181 #if !HAVE_DECL_SYS_SIGLIST
26182 extern char *sys_siglist[];
26183 #endif
26184 main()
26185 {
26186 char *msg = sys_siglist[2];
26187 exit(msg == 0);
26188 }
26189 _ACEOF
26190 rm -f conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_link") 2>&5
26199 ac_status=$?
26200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26202 { (case "(($ac_try" in
26203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26205 esac
26206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26207 $as_echo "$ac_try_echo") >&5
26208 (eval "$ac_try") 2>&5
26209 ac_status=$?
26210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 bash_cv_sys_siglist=yes
26213 else
26214 $as_echo "$as_me: program exited with status $ac_status" >&5
26215 $as_echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218 ( exit $ac_status )
26219 bash_cv_sys_siglist=no
26220 fi
26221 rm -rf conftest.dSYM
26222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26223 fi
26224
26225
26226 fi
26227
26228 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26229 $as_echo "$bash_cv_sys_siglist" >&6; }
26230 if test $bash_cv_sys_siglist = yes; then
26231 cat >>confdefs.h <<\_ACEOF
26232 #define HAVE_SYS_SIGLIST 1
26233 _ACEOF
26234
26235 fi
26236
26237 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26238 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26239 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26240 $as_echo_n "(cached) " >&6
26241 else
26242 cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h. */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248
26249 #include <sys/types.h>
26250 #include <signal.h>
26251 #ifdef HAVE_UNISTD_H
26252 #include <unistd.h>
26253 #endif
26254 int
26255 main ()
26256 {
26257 char *msg = _sys_siglist[2];
26258 ;
26259 return 0;
26260 }
26261 _ACEOF
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26267 esac
26268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270 (eval "$ac_compile") 2>conftest.er1
26271 ac_status=$?
26272 grep -v '^ *+' conftest.er1 >conftest.err
26273 rm -f conftest.er1
26274 cat conftest.err >&5
26275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && {
26277 test -z "$ac_c_werror_flag" ||
26278 test ! -s conftest.err
26279 } && test -s conftest.$ac_objext; then
26280 bash_cv_decl_under_sys_siglist=yes
26281 else
26282 $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285 bash_cv_decl_under_sys_siglist=no
26286 fi
26287
26288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26289 fi
26290 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26291 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26292 if test $bash_cv_decl_under_sys_siglist = yes; then
26293 cat >>confdefs.h <<\_ACEOF
26294 #define UNDER_SYS_SIGLIST_DECLARED 1
26295 _ACEOF
26296
26297 fi
26298
26299
26300 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26301 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26302 if test "${bash_cv_under_sys_siglist+set}" = set; then
26303 $as_echo_n "(cached) " >&6
26304 else
26305 if test "$cross_compiling" = yes; then
26306 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26307 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26308 bash_cv_under_sys_siglist=no
26309 else
26310 cat >conftest.$ac_ext <<_ACEOF
26311 /* confdefs.h. */
26312 _ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26316
26317 #include <sys/types.h>
26318 #include <signal.h>
26319 #ifdef HAVE_UNISTD_H
26320 #include <unistd.h>
26321 #endif
26322 #ifndef UNDER_SYS_SIGLIST_DECLARED
26323 extern char *_sys_siglist[];
26324 #endif
26325 main()
26326 {
26327 char *msg = (char *)_sys_siglist[2];
26328 exit(msg == 0);
26329 }
26330 _ACEOF
26331 rm -f conftest$ac_exeext
26332 if { (ac_try="$ac_link"
26333 case "(($ac_try" in
26334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335 *) ac_try_echo=$ac_try;;
26336 esac
26337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26338 $as_echo "$ac_try_echo") >&5
26339 (eval "$ac_link") 2>&5
26340 ac_status=$?
26341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26343 { (case "(($ac_try" in
26344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26346 esac
26347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26348 $as_echo "$ac_try_echo") >&5
26349 (eval "$ac_try") 2>&5
26350 ac_status=$?
26351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; }; then
26353 bash_cv_under_sys_siglist=yes
26354 else
26355 $as_echo "$as_me: program exited with status $ac_status" >&5
26356 $as_echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359 ( exit $ac_status )
26360 bash_cv_under_sys_siglist=no
26361 fi
26362 rm -rf conftest.dSYM
26363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26364 fi
26365
26366
26367 fi
26368
26369 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26370 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26371 if test $bash_cv_under_sys_siglist = yes; then
26372 cat >>confdefs.h <<\_ACEOF
26373 #define HAVE_UNDER_SYS_SIGLIST 1
26374 _ACEOF
26375
26376 fi
26377
26378
26379 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26380 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26381 if test "${bash_cv_void_sighandler+set}" = set; then
26382 $as_echo_n "(cached) " >&6
26383 else
26384 cat >conftest.$ac_ext <<_ACEOF
26385 /* confdefs.h. */
26386 _ACEOF
26387 cat confdefs.h >>conftest.$ac_ext
26388 cat >>conftest.$ac_ext <<_ACEOF
26389 /* end confdefs.h. */
26390 #include <sys/types.h>
26391 #include <signal.h>
26392 #ifdef signal
26393 #undef signal
26394 #endif
26395 #ifdef __cplusplus
26396 extern "C"
26397 #endif
26398 void (*signal ()) ();
26399 int
26400 main ()
26401 {
26402 int i;
26403 ;
26404 return 0;
26405 }
26406 _ACEOF
26407 rm -f conftest.$ac_objext
26408 if { (ac_try="$ac_compile"
26409 case "(($ac_try" in
26410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411 *) ac_try_echo=$ac_try;;
26412 esac
26413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26414 $as_echo "$ac_try_echo") >&5
26415 (eval "$ac_compile") 2>conftest.er1
26416 ac_status=$?
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
26420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest.$ac_objext; then
26425 bash_cv_void_sighandler=yes
26426 else
26427 $as_echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26429
26430 bash_cv_void_sighandler=no
26431 fi
26432
26433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26434 fi
26435 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26436 $as_echo "$bash_cv_void_sighandler" >&6; }
26437 if test $bash_cv_void_sighandler = yes; then
26438 cat >>confdefs.h <<\_ACEOF
26439 #define VOID_SIGHANDLER 1
26440 _ACEOF
26441
26442 fi
26443
26444
26445
26446 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26447 $as_echo_n "checking for clock_t... " >&6; }
26448 if test "${bash_cv_type_clock_t+set}" = set; then
26449 $as_echo_n "(cached) " >&6
26450 else
26451 cat >conftest.$ac_ext <<_ACEOF
26452 /* confdefs.h. */
26453 _ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h. */
26457 #include <sys/types.h>
26458 #if STDC_HEADERS
26459 #include <stdlib.h>
26460 #include <stddef.h>
26461 #endif
26462 #if HAVE_INTTYPES_H
26463 #include <inttypes.h>
26464 #endif
26465 #if HAVE_STDINT_H
26466 #include <stdint.h>
26467 #endif
26468 #include <sys/times.h>
26469
26470 _ACEOF
26471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26472 $EGREP "clock_t" >/dev/null 2>&1; then
26473 bash_cv_type_clock_t=yes
26474 else
26475 bash_cv_type_clock_t=no
26476 fi
26477 rm -f conftest*
26478
26479 fi
26480
26481 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26482 $as_echo "$bash_cv_type_clock_t" >&6; }
26483
26484 if test $bash_cv_type_clock_t = no; then
26485 cat >>confdefs.h <<_ACEOF
26486 #define clock_t long
26487 _ACEOF
26488
26489 fi
26490
26491
26492
26493 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26494 $as_echo_n "checking for sigset_t... " >&6; }
26495 if test "${bash_cv_type_sigset_t+set}" = set; then
26496 $as_echo_n "(cached) " >&6
26497 else
26498 cat >conftest.$ac_ext <<_ACEOF
26499 /* confdefs.h. */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 #include <sys/types.h>
26505 #if STDC_HEADERS
26506 #include <stdlib.h>
26507 #include <stddef.h>
26508 #endif
26509 #if HAVE_INTTYPES_H
26510 #include <inttypes.h>
26511 #endif
26512 #if HAVE_STDINT_H
26513 #include <stdint.h>
26514 #endif
26515 #include <signal.h>
26516
26517 _ACEOF
26518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26519 $EGREP "sigset_t" >/dev/null 2>&1; then
26520 bash_cv_type_sigset_t=yes
26521 else
26522 bash_cv_type_sigset_t=no
26523 fi
26524 rm -f conftest*
26525
26526 fi
26527
26528 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26529 $as_echo "$bash_cv_type_sigset_t" >&6; }
26530
26531 if test $bash_cv_type_sigset_t = no; then
26532 cat >>confdefs.h <<_ACEOF
26533 #define sigset_t int
26534 _ACEOF
26535
26536 fi
26537
26538
26539
26540 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26541 $as_echo_n "checking for quad_t... " >&6; }
26542 if test "${bash_cv_type_quad_t+set}" = set; then
26543 $as_echo_n "(cached) " >&6
26544 else
26545 cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h. */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h. */
26551 #include <sys/types.h>
26552 #if STDC_HEADERS
26553 #include <stdlib.h>
26554 #include <stddef.h>
26555 #endif
26556 #if HAVE_INTTYPES_H
26557 #include <inttypes.h>
26558 #endif
26559 #if HAVE_STDINT_H
26560 #include <stdint.h>
26561 #endif
26562
26563
26564 _ACEOF
26565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26566 $EGREP "quad_t" >/dev/null 2>&1; then
26567 bash_cv_type_quad_t=yes
26568 else
26569 bash_cv_type_quad_t=no
26570 fi
26571 rm -f conftest*
26572
26573 fi
26574
26575 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26576 $as_echo "$bash_cv_type_quad_t" >&6; }
26577 if test $bash_cv_type_quad_t = yes; then
26578 cat >>confdefs.h <<\_ACEOF
26579 #define HAVE_QUAD_T 1
26580 _ACEOF
26581
26582 fi
26583 if test $bash_cv_type_quad_t = no; then
26584 cat >>confdefs.h <<_ACEOF
26585 #define quad_t long
26586 _ACEOF
26587
26588 fi
26589
26590
26591
26592 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26593 $as_echo_n "checking for intmax_t... " >&6; }
26594 if test "${bash_cv_type_intmax_t+set}" = set; then
26595 $as_echo_n "(cached) " >&6
26596 else
26597 cat >conftest.$ac_ext <<_ACEOF
26598 /* confdefs.h. */
26599 _ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h. */
26603 #include <sys/types.h>
26604 #if STDC_HEADERS
26605 #include <stdlib.h>
26606 #include <stddef.h>
26607 #endif
26608 #if HAVE_INTTYPES_H
26609 #include <inttypes.h>
26610 #endif
26611 #if HAVE_STDINT_H
26612 #include <stdint.h>
26613 #endif
26614
26615
26616 _ACEOF
26617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26618 $EGREP "intmax_t" >/dev/null 2>&1; then
26619 bash_cv_type_intmax_t=yes
26620 else
26621 bash_cv_type_intmax_t=no
26622 fi
26623 rm -f conftest*
26624
26625 fi
26626
26627 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26628 $as_echo "$bash_cv_type_intmax_t" >&6; }
26629
26630 if test $bash_cv_type_intmax_t = no; then
26631 cat >>confdefs.h <<_ACEOF
26632 #define intmax_t $bash_cv_type_long_long
26633 _ACEOF
26634
26635 fi
26636
26637
26638
26639 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26640 $as_echo_n "checking for uintmax_t... " >&6; }
26641 if test "${bash_cv_type_uintmax_t+set}" = set; then
26642 $as_echo_n "(cached) " >&6
26643 else
26644 cat >conftest.$ac_ext <<_ACEOF
26645 /* confdefs.h. */
26646 _ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h. */
26650 #include <sys/types.h>
26651 #if STDC_HEADERS
26652 #include <stdlib.h>
26653 #include <stddef.h>
26654 #endif
26655 #if HAVE_INTTYPES_H
26656 #include <inttypes.h>
26657 #endif
26658 #if HAVE_STDINT_H
26659 #include <stdint.h>
26660 #endif
26661
26662
26663 _ACEOF
26664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26665 $EGREP "uintmax_t" >/dev/null 2>&1; then
26666 bash_cv_type_uintmax_t=yes
26667 else
26668 bash_cv_type_uintmax_t=no
26669 fi
26670 rm -f conftest*
26671
26672 fi
26673
26674 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26675 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26676
26677 if test $bash_cv_type_uintmax_t = no; then
26678 cat >>confdefs.h <<_ACEOF
26679 #define uintmax_t $bash_cv_type_unsigned_long_long
26680 _ACEOF
26681
26682 fi
26683
26684 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26685
26686
26687 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26688 $as_echo_n "checking for socklen_t... " >&6; }
26689 if test "${bash_cv_type_socklen_t+set}" = set; then
26690 $as_echo_n "(cached) " >&6
26691 else
26692 cat >conftest.$ac_ext <<_ACEOF
26693 /* confdefs.h. */
26694 _ACEOF
26695 cat confdefs.h >>conftest.$ac_ext
26696 cat >>conftest.$ac_ext <<_ACEOF
26697 /* end confdefs.h. */
26698 #include <sys/types.h>
26699 #if STDC_HEADERS
26700 #include <stdlib.h>
26701 #include <stddef.h>
26702 #endif
26703 #if HAVE_INTTYPES_H
26704 #include <inttypes.h>
26705 #endif
26706 #if HAVE_STDINT_H
26707 #include <stdint.h>
26708 #endif
26709 #include <sys/socket.h>
26710
26711 _ACEOF
26712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26713 $EGREP "socklen_t" >/dev/null 2>&1; then
26714 bash_cv_type_socklen_t=yes
26715 else
26716 bash_cv_type_socklen_t=no
26717 fi
26718 rm -f conftest*
26719
26720 fi
26721
26722 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26723 $as_echo "$bash_cv_type_socklen_t" >&6; }
26724 if test $bash_cv_type_socklen_t = yes; then
26725 cat >>confdefs.h <<\_ACEOF
26726 #define HAVE_SOCKLEN_T 1
26727 _ACEOF
26728
26729 fi
26730 if test $bash_cv_type_socklen_t = no; then
26731 cat >>confdefs.h <<_ACEOF
26732 #define socklen_t int
26733 _ACEOF
26734
26735 fi
26736
26737 fi
26738 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26739 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26740 if test "${bash_cv_type_rlimit+set}" = set; then
26741 $as_echo_n "(cached) " >&6
26742 else
26743 cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h. */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 #include <sys/types.h>
26750 #include <sys/resource.h>
26751 int
26752 main ()
26753 {
26754 rlim_t xxx;
26755 ;
26756 return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26764 esac
26765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26766 $as_echo "$ac_try_echo") >&5
26767 (eval "$ac_compile") 2>conftest.er1
26768 ac_status=$?
26769 grep -v '^ *+' conftest.er1 >conftest.err
26770 rm -f conftest.er1
26771 cat conftest.err >&5
26772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } && {
26774 test -z "$ac_c_werror_flag" ||
26775 test ! -s conftest.err
26776 } && test -s conftest.$ac_objext; then
26777 bash_cv_type_rlimit=rlim_t
26778 else
26779 $as_echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782
26783 if test "$cross_compiling" = yes; then
26784 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
26785 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
26786 bash_cv_type_rlimit=long
26787 else
26788 cat >conftest.$ac_ext <<_ACEOF
26789 /* confdefs.h. */
26790 _ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h. */
26794
26795 #include <sys/types.h>
26796 #include <sys/time.h>
26797 #include <sys/resource.h>
26798 main()
26799 {
26800 #ifdef HAVE_QUAD_T
26801 struct rlimit rl;
26802 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
26803 exit(0);
26804 #endif
26805 exit(1);
26806 }
26807 _ACEOF
26808 rm -f conftest$ac_exeext
26809 if { (ac_try="$ac_link"
26810 case "(($ac_try" in
26811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26813 esac
26814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26815 $as_echo "$ac_try_echo") >&5
26816 (eval "$ac_link") 2>&5
26817 ac_status=$?
26818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26820 { (case "(($ac_try" in
26821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26822 *) ac_try_echo=$ac_try;;
26823 esac
26824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26825 $as_echo "$ac_try_echo") >&5
26826 (eval "$ac_try") 2>&5
26827 ac_status=$?
26828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 bash_cv_type_rlimit=quad_t
26831 else
26832 $as_echo "$as_me: program exited with status $ac_status" >&5
26833 $as_echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26835
26836 ( exit $ac_status )
26837 bash_cv_type_rlimit=long
26838 fi
26839 rm -rf conftest.dSYM
26840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26841 fi
26842
26843
26844 fi
26845
26846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847
26848 fi
26849
26850 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
26851 $as_echo "$bash_cv_type_rlimit" >&6; }
26852 if test $bash_cv_type_rlimit = quad_t; then
26853 cat >>confdefs.h <<\_ACEOF
26854 #define RLIMTYPE quad_t
26855 _ACEOF
26856
26857 elif test $bash_cv_type_rlimit = rlim_t; then
26858 cat >>confdefs.h <<\_ACEOF
26859 #define RLIMTYPE rlim_t
26860 _ACEOF
26861
26862 fi
26863
26864
26865
26866 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
26867 $as_echo_n "checking for struct termios.c_line... " >&6; }
26868 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
26869 $as_echo_n "(cached) " >&6
26870 else
26871 cat >conftest.$ac_ext <<_ACEOF
26872 /* confdefs.h. */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26877
26878 #include <sys/types.h>
26879 #include <termios.h>
26880
26881
26882 int
26883 main ()
26884 {
26885 static struct termios ac_aggr;
26886 if (ac_aggr.c_line)
26887 return 0;
26888 ;
26889 return 0;
26890 }
26891 _ACEOF
26892 rm -f conftest.$ac_objext
26893 if { (ac_try="$ac_compile"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897 esac
26898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26899 $as_echo "$ac_try_echo") >&5
26900 (eval "$ac_compile") 2>conftest.er1
26901 ac_status=$?
26902 grep -v '^ *+' conftest.er1 >conftest.err
26903 rm -f conftest.er1
26904 cat conftest.err >&5
26905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } && {
26907 test -z "$ac_c_werror_flag" ||
26908 test ! -s conftest.err
26909 } && test -s conftest.$ac_objext; then
26910 ac_cv_member_struct_termios_c_line=yes
26911 else
26912 $as_echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915 cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h. */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26921
26922 #include <sys/types.h>
26923 #include <termios.h>
26924
26925
26926 int
26927 main ()
26928 {
26929 static struct termios ac_aggr;
26930 if (sizeof ac_aggr.c_line)
26931 return 0;
26932 ;
26933 return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext
26937 if { (ac_try="$ac_compile"
26938 case "(($ac_try" in
26939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940 *) ac_try_echo=$ac_try;;
26941 esac
26942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26943 $as_echo "$ac_try_echo") >&5
26944 (eval "$ac_compile") 2>conftest.er1
26945 ac_status=$?
26946 grep -v '^ *+' conftest.er1 >conftest.err
26947 rm -f conftest.er1
26948 cat conftest.err >&5
26949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); } && {
26951 test -z "$ac_c_werror_flag" ||
26952 test ! -s conftest.err
26953 } && test -s conftest.$ac_objext; then
26954 ac_cv_member_struct_termios_c_line=yes
26955 else
26956 $as_echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959 ac_cv_member_struct_termios_c_line=no
26960 fi
26961
26962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963 fi
26964
26965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966 fi
26967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
26968 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
26969 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
26970 cat >>confdefs.h <<\_ACEOF
26971 #define TERMIOS_LDISC 1
26972 _ACEOF
26973
26974 fi
26975
26976
26977
26978 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
26979 $as_echo_n "checking for struct termio.c_line... " >&6; }
26980 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
26981 $as_echo_n "(cached) " >&6
26982 else
26983 cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h. */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26989
26990 #include <sys/types.h>
26991 #include <termio.h>
26992
26993
26994 int
26995 main ()
26996 {
26997 static struct termio ac_aggr;
26998 if (ac_aggr.c_line)
26999 return 0;
27000 ;
27001 return 0;
27002 }
27003 _ACEOF
27004 rm -f conftest.$ac_objext
27005 if { (ac_try="$ac_compile"
27006 case "(($ac_try" in
27007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008 *) ac_try_echo=$ac_try;;
27009 esac
27010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27011 $as_echo "$ac_try_echo") >&5
27012 (eval "$ac_compile") 2>conftest.er1
27013 ac_status=$?
27014 grep -v '^ *+' conftest.er1 >conftest.err
27015 rm -f conftest.er1
27016 cat conftest.err >&5
27017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } && {
27019 test -z "$ac_c_werror_flag" ||
27020 test ! -s conftest.err
27021 } && test -s conftest.$ac_objext; then
27022 ac_cv_member_struct_termio_c_line=yes
27023 else
27024 $as_echo "$as_me: failed program was:" >&5
27025 sed 's/^/| /' conftest.$ac_ext >&5
27026
27027 cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h. */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27033
27034 #include <sys/types.h>
27035 #include <termio.h>
27036
27037
27038 int
27039 main ()
27040 {
27041 static struct termio ac_aggr;
27042 if (sizeof ac_aggr.c_line)
27043 return 0;
27044 ;
27045 return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext
27049 if { (ac_try="$ac_compile"
27050 case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27053 esac
27054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27055 $as_echo "$ac_try_echo") >&5
27056 (eval "$ac_compile") 2>conftest.er1
27057 ac_status=$?
27058 grep -v '^ *+' conftest.er1 >conftest.err
27059 rm -f conftest.er1
27060 cat conftest.err >&5
27061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } && {
27063 test -z "$ac_c_werror_flag" ||
27064 test ! -s conftest.err
27065 } && test -s conftest.$ac_objext; then
27066 ac_cv_member_struct_termio_c_line=yes
27067 else
27068 $as_echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27070
27071 ac_cv_member_struct_termio_c_line=no
27072 fi
27073
27074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 fi
27079 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27080 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27081 if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27082 cat >>confdefs.h <<\_ACEOF
27083 #define TERMIO_LDISC 1
27084 _ACEOF
27085
27086 fi
27087
27088
27089
27090 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27091 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
27092 if test "${bash_cv_dirent_has_dino+set}" = set; then
27093 $as_echo_n "(cached) " >&6
27094 else
27095 cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h. */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101
27102 #include <stdio.h>
27103 #include <sys/types.h>
27104 #ifdef HAVE_UNISTD_H
27105 # include <unistd.h>
27106 #endif /* HAVE_UNISTD_H */
27107 #if defined(HAVE_DIRENT_H)
27108 # include <dirent.h>
27109 #else
27110 # define dirent direct
27111 # ifdef HAVE_SYS_NDIR_H
27112 # include <sys/ndir.h>
27113 # endif /* SYSNDIR */
27114 # ifdef HAVE_SYS_DIR_H
27115 # include <sys/dir.h>
27116 # endif /* SYSDIR */
27117 # ifdef HAVE_NDIR_H
27118 # include <ndir.h>
27119 # endif
27120 #endif /* HAVE_DIRENT_H */
27121
27122 int
27123 main ()
27124 {
27125
27126 struct dirent d; int z; z = d.d_ino;
27127
27128 ;
27129 return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (ac_try="$ac_compile"
27134 case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27137 esac
27138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27139 $as_echo "$ac_try_echo") >&5
27140 (eval "$ac_compile") 2>conftest.er1
27141 ac_status=$?
27142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
27145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.$ac_objext; then
27150 bash_cv_dirent_has_dino=yes
27151 else
27152 $as_echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 bash_cv_dirent_has_dino=no
27156 fi
27157
27158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 fi
27160
27161 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27162 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27163 if test $bash_cv_dirent_has_dino = yes; then
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_STRUCT_DIRENT_D_INO 1
27166 _ACEOF
27167
27168 fi
27169
27170
27171 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27172 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
27173 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27174 $as_echo_n "(cached) " >&6
27175 else
27176 cat >conftest.$ac_ext <<_ACEOF
27177 /* confdefs.h. */
27178 _ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h. */
27182
27183 #include <stdio.h>
27184 #include <sys/types.h>
27185 #ifdef HAVE_UNISTD_H
27186 # include <unistd.h>
27187 #endif /* HAVE_UNISTD_H */
27188 #if defined(HAVE_DIRENT_H)
27189 # include <dirent.h>
27190 #else
27191 # define dirent direct
27192 # ifdef HAVE_SYS_NDIR_H
27193 # include <sys/ndir.h>
27194 # endif /* SYSNDIR */
27195 # ifdef HAVE_SYS_DIR_H
27196 # include <sys/dir.h>
27197 # endif /* SYSDIR */
27198 # ifdef HAVE_NDIR_H
27199 # include <ndir.h>
27200 # endif
27201 #endif /* HAVE_DIRENT_H */
27202
27203 int
27204 main ()
27205 {
27206
27207 struct dirent d; int z; z = d.d_fileno;
27208
27209 ;
27210 return 0;
27211 }
27212 _ACEOF
27213 rm -f conftest.$ac_objext
27214 if { (ac_try="$ac_compile"
27215 case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218 esac
27219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27220 $as_echo "$ac_try_echo") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } && {
27228 test -z "$ac_c_werror_flag" ||
27229 test ! -s conftest.err
27230 } && test -s conftest.$ac_objext; then
27231 bash_cv_dirent_has_d_fileno=yes
27232 else
27233 $as_echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.$ac_ext >&5
27235
27236 bash_cv_dirent_has_d_fileno=no
27237 fi
27238
27239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27240 fi
27241
27242 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27243 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27244 if test $bash_cv_dirent_has_d_fileno = yes; then
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_STRUCT_DIRENT_D_FILENO 1
27247 _ACEOF
27248
27249 fi
27250
27251
27252 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27253 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
27254 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27255 $as_echo_n "(cached) " >&6
27256 else
27257 cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h. */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27263
27264 #include <stdio.h>
27265 #include <sys/types.h>
27266 #ifdef HAVE_UNISTD_H
27267 # include <unistd.h>
27268 #endif /* HAVE_UNISTD_H */
27269 #if defined(HAVE_DIRENT_H)
27270 # include <dirent.h>
27271 #else
27272 # define dirent direct
27273 # ifdef HAVE_SYS_NDIR_H
27274 # include <sys/ndir.h>
27275 # endif /* SYSNDIR */
27276 # ifdef HAVE_SYS_DIR_H
27277 # include <sys/dir.h>
27278 # endif /* SYSDIR */
27279 # ifdef HAVE_NDIR_H
27280 # include <ndir.h>
27281 # endif
27282 #endif /* HAVE_DIRENT_H */
27283
27284 int
27285 main ()
27286 {
27287
27288 struct dirent d; int z; z = d.d_namlen;
27289
27290 ;
27291 return 0;
27292 }
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (ac_try="$ac_compile"
27296 case "(($ac_try" in
27297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27299 esac
27300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27301 $as_echo "$ac_try_echo") >&5
27302 (eval "$ac_compile") 2>conftest.er1
27303 ac_status=$?
27304 grep -v '^ *+' conftest.er1 >conftest.err
27305 rm -f conftest.er1
27306 cat conftest.err >&5
27307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } && {
27309 test -z "$ac_c_werror_flag" ||
27310 test ! -s conftest.err
27311 } && test -s conftest.$ac_objext; then
27312 bash_cv_dirent_has_d_namlen=yes
27313 else
27314 $as_echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317 bash_cv_dirent_has_d_namlen=no
27318 fi
27319
27320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27321 fi
27322
27323 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27324 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27325 if test $bash_cv_dirent_has_d_namlen = yes; then
27326 cat >>confdefs.h <<\_ACEOF
27327 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27328 _ACEOF
27329
27330 fi
27331
27332 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
27333 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
27334 if test "${bash_cv_struct_winsize_header+set}" = set; then
27335 $as_echo_n "(cached) " >&6
27336 else
27337 cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h. */
27339 _ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27343 #include <sys/types.h>
27344 #include <sys/ioctl.h>
27345 int
27346 main ()
27347 {
27348 struct winsize x;
27349 ;
27350 return 0;
27351 }
27352 _ACEOF
27353 rm -f conftest.$ac_objext
27354 if { (ac_try="$ac_compile"
27355 case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358 esac
27359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27360 $as_echo "$ac_try_echo") >&5
27361 (eval "$ac_compile") 2>conftest.er1
27362 ac_status=$?
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
27366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } && {
27368 test -z "$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27370 } && test -s conftest.$ac_objext; then
27371 bash_cv_struct_winsize_header=ioctl_h
27372 else
27373 $as_echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376 cat >conftest.$ac_ext <<_ACEOF
27377 /* confdefs.h. */
27378 _ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27382 #include <sys/types.h>
27383 #include <termios.h>
27384 int
27385 main ()
27386 {
27387 struct winsize x;
27388 ;
27389 return 0;
27390 }
27391 _ACEOF
27392 rm -f conftest.$ac_objext
27393 if { (ac_try="$ac_compile"
27394 case "(($ac_try" in
27395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27397 esac
27398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27399 $as_echo "$ac_try_echo") >&5
27400 (eval "$ac_compile") 2>conftest.er1
27401 ac_status=$?
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
27405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } && {
27407 test -z "$ac_c_werror_flag" ||
27408 test ! -s conftest.err
27409 } && test -s conftest.$ac_objext; then
27410 bash_cv_struct_winsize_header=termios_h
27411 else
27412 $as_echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27414
27415 bash_cv_struct_winsize_header=other
27416 fi
27417
27418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27419
27420 fi
27421
27422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27423 fi
27424
27425 if test $bash_cv_struct_winsize_header = ioctl_h; then
27426 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
27427 $as_echo "sys/ioctl.h" >&6; }
27428 cat >>confdefs.h <<\_ACEOF
27429 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
27430 _ACEOF
27431
27432 elif test $bash_cv_struct_winsize_header = termios_h; then
27433 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
27434 $as_echo "termios.h" >&6; }
27435 cat >>confdefs.h <<\_ACEOF
27436 #define STRUCT_WINSIZE_IN_TERMIOS 1
27437 _ACEOF
27438
27439 else
27440 { $as_echo "$as_me:$LINENO: result: not found" >&5
27441 $as_echo "not found" >&6; }
27442 fi
27443
27444 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
27445 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
27446 if test "${bash_cv_struct_timeval+set}" = set; then
27447 $as_echo_n "(cached) " >&6
27448 else
27449
27450 cat >conftest.$ac_ext <<_ACEOF
27451 /* confdefs.h. */
27452 _ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h. */
27456 #include <sys/time.h>
27457
27458 _ACEOF
27459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27460 $EGREP "struct timeval" >/dev/null 2>&1; then
27461 bash_cv_struct_timeval=yes
27462 else
27463 cat >conftest.$ac_ext <<_ACEOF
27464 /* confdefs.h. */
27465 _ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27469 #include <time.h>
27470
27471 _ACEOF
27472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27473 $EGREP "struct timeval" >/dev/null 2>&1; then
27474 bash_cv_struct_timeval=yes
27475 else
27476 bash_cv_struct_timeval=no
27477 fi
27478 rm -f conftest*
27479
27480 fi
27481 rm -f conftest*
27482
27483
27484 fi
27485
27486 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
27487 $as_echo "$bash_cv_struct_timeval" >&6; }
27488 if test $bash_cv_struct_timeval = yes; then
27489 cat >>confdefs.h <<\_ACEOF
27490 #define HAVE_TIMEVAL 1
27491 _ACEOF
27492
27493 fi
27494
27495 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27496 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
27497 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27498 $as_echo_n "(cached) " >&6
27499 else
27500 cat >conftest.$ac_ext <<_ACEOF
27501 /* confdefs.h. */
27502 _ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h. */
27506 $ac_includes_default
27507 int
27508 main ()
27509 {
27510 static struct stat ac_aggr;
27511 if (ac_aggr.st_blocks)
27512 return 0;
27513 ;
27514 return 0;
27515 }
27516 _ACEOF
27517 rm -f conftest.$ac_objext
27518 if { (ac_try="$ac_compile"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27522 esac
27523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27524 $as_echo "$ac_try_echo") >&5
27525 (eval "$ac_compile") 2>conftest.er1
27526 ac_status=$?
27527 grep -v '^ *+' conftest.er1 >conftest.err
27528 rm -f conftest.er1
27529 cat conftest.err >&5
27530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } && {
27532 test -z "$ac_c_werror_flag" ||
27533 test ! -s conftest.err
27534 } && test -s conftest.$ac_objext; then
27535 ac_cv_member_struct_stat_st_blocks=yes
27536 else
27537 $as_echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540 cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h. */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 $ac_includes_default
27547 int
27548 main ()
27549 {
27550 static struct stat ac_aggr;
27551 if (sizeof ac_aggr.st_blocks)
27552 return 0;
27553 ;
27554 return 0;
27555 }
27556 _ACEOF
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27562 esac
27563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27564 $as_echo "$ac_try_echo") >&5
27565 (eval "$ac_compile") 2>conftest.er1
27566 ac_status=$?
27567 grep -v '^ *+' conftest.er1 >conftest.err
27568 rm -f conftest.er1
27569 cat conftest.err >&5
27570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } && {
27572 test -z "$ac_c_werror_flag" ||
27573 test ! -s conftest.err
27574 } && test -s conftest.$ac_objext; then
27575 ac_cv_member_struct_stat_st_blocks=yes
27576 else
27577 $as_echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27579
27580 ac_cv_member_struct_stat_st_blocks=no
27581 fi
27582
27583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27584 fi
27585
27586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27587 fi
27588 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27589 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27590 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27591
27592 cat >>confdefs.h <<_ACEOF
27593 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27594 _ACEOF
27595
27596
27597 fi
27598
27599 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27600 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27601 if test "${ac_cv_struct_tm+set}" = set; then
27602 $as_echo_n "(cached) " >&6
27603 else
27604 cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h. */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27610 #include <sys/types.h>
27611 #include <time.h>
27612
27613 int
27614 main ()
27615 {
27616 struct tm tm;
27617 int *p = &tm.tm_sec;
27618 return !p;
27619 ;
27620 return 0;
27621 }
27622 _ACEOF
27623 rm -f conftest.$ac_objext
27624 if { (ac_try="$ac_compile"
27625 case "(($ac_try" in
27626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27627 *) ac_try_echo=$ac_try;;
27628 esac
27629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27630 $as_echo "$ac_try_echo") >&5
27631 (eval "$ac_compile") 2>conftest.er1
27632 ac_status=$?
27633 grep -v '^ *+' conftest.er1 >conftest.err
27634 rm -f conftest.er1
27635 cat conftest.err >&5
27636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); } && {
27638 test -z "$ac_c_werror_flag" ||
27639 test ! -s conftest.err
27640 } && test -s conftest.$ac_objext; then
27641 ac_cv_struct_tm=time.h
27642 else
27643 $as_echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27645
27646 ac_cv_struct_tm=sys/time.h
27647 fi
27648
27649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27650 fi
27651 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27652 $as_echo "$ac_cv_struct_tm" >&6; }
27653 if test $ac_cv_struct_tm = sys/time.h; then
27654
27655 cat >>confdefs.h <<\_ACEOF
27656 #define TM_IN_SYS_TIME 1
27657 _ACEOF
27658
27659 fi
27660
27661 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
27662 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
27663 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
27664 $as_echo_n "(cached) " >&6
27665 else
27666 cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h. */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27672 #include <sys/types.h>
27673 #include <$ac_cv_struct_tm>
27674
27675
27676 int
27677 main ()
27678 {
27679 static struct tm ac_aggr;
27680 if (ac_aggr.tm_zone)
27681 return 0;
27682 ;
27683 return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest.$ac_objext
27687 if { (ac_try="$ac_compile"
27688 case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27691 esac
27692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27693 $as_echo "$ac_try_echo") >&5
27694 (eval "$ac_compile") 2>conftest.er1
27695 ac_status=$?
27696 grep -v '^ *+' conftest.er1 >conftest.err
27697 rm -f conftest.er1
27698 cat conftest.err >&5
27699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); } && {
27701 test -z "$ac_c_werror_flag" ||
27702 test ! -s conftest.err
27703 } && test -s conftest.$ac_objext; then
27704 ac_cv_member_struct_tm_tm_zone=yes
27705 else
27706 $as_echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27708
27709 cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h. */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 #include <sys/types.h>
27716 #include <$ac_cv_struct_tm>
27717
27718
27719 int
27720 main ()
27721 {
27722 static struct tm ac_aggr;
27723 if (sizeof ac_aggr.tm_zone)
27724 return 0;
27725 ;
27726 return 0;
27727 }
27728 _ACEOF
27729 rm -f conftest.$ac_objext
27730 if { (ac_try="$ac_compile"
27731 case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27734 esac
27735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27736 $as_echo "$ac_try_echo") >&5
27737 (eval "$ac_compile") 2>conftest.er1
27738 ac_status=$?
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
27742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } && {
27744 test -z "$ac_c_werror_flag" ||
27745 test ! -s conftest.err
27746 } && test -s conftest.$ac_objext; then
27747 ac_cv_member_struct_tm_tm_zone=yes
27748 else
27749 $as_echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752 ac_cv_member_struct_tm_tm_zone=no
27753 fi
27754
27755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 fi
27757
27758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27759 fi
27760 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
27761 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
27762 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
27763
27764 cat >>confdefs.h <<_ACEOF
27765 #define HAVE_STRUCT_TM_TM_ZONE 1
27766 _ACEOF
27767
27768
27769 fi
27770
27771 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27772
27773 cat >>confdefs.h <<\_ACEOF
27774 #define HAVE_TM_ZONE 1
27775 _ACEOF
27776
27777 else
27778 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27779 $as_echo_n "checking whether tzname is declared... " >&6; }
27780 if test "${ac_cv_have_decl_tzname+set}" = set; then
27781 $as_echo_n "(cached) " >&6
27782 else
27783 cat >conftest.$ac_ext <<_ACEOF
27784 /* confdefs.h. */
27785 _ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h. */
27789 #include <time.h>
27790
27791 int
27792 main ()
27793 {
27794 #ifndef tzname
27795 (void) tzname;
27796 #endif
27797
27798 ;
27799 return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext
27803 if { (ac_try="$ac_compile"
27804 case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807 esac
27808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27809 $as_echo "$ac_try_echo") >&5
27810 (eval "$ac_compile") 2>conftest.er1
27811 ac_status=$?
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
27815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } && {
27817 test -z "$ac_c_werror_flag" ||
27818 test ! -s conftest.err
27819 } && test -s conftest.$ac_objext; then
27820 ac_cv_have_decl_tzname=yes
27821 else
27822 $as_echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27824
27825 ac_cv_have_decl_tzname=no
27826 fi
27827
27828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27829 fi
27830 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27831 $as_echo "$ac_cv_have_decl_tzname" >&6; }
27832 if test "x$ac_cv_have_decl_tzname" = x""yes; then
27833
27834 cat >>confdefs.h <<_ACEOF
27835 #define HAVE_DECL_TZNAME 1
27836 _ACEOF
27837
27838
27839 else
27840 cat >>confdefs.h <<_ACEOF
27841 #define HAVE_DECL_TZNAME 0
27842 _ACEOF
27843
27844
27845 fi
27846
27847
27848 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
27849 $as_echo_n "checking for tzname... " >&6; }
27850 if test "${ac_cv_var_tzname+set}" = set; then
27851 $as_echo_n "(cached) " >&6
27852 else
27853 cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h. */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27859 #include <time.h>
27860 #if !HAVE_DECL_TZNAME
27861 extern char *tzname[];
27862 #endif
27863
27864 int
27865 main ()
27866 {
27867 return tzname[0][0];
27868 ;
27869 return 0;
27870 }
27871 _ACEOF
27872 rm -f conftest.$ac_objext conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27877 esac
27878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27879 $as_echo "$ac_try_echo") >&5
27880 (eval "$ac_link") 2>conftest.er1
27881 ac_status=$?
27882 grep -v '^ *+' conftest.er1 >conftest.err
27883 rm -f conftest.er1
27884 cat conftest.err >&5
27885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); } && {
27887 test -z "$ac_c_werror_flag" ||
27888 test ! -s conftest.err
27889 } && test -s conftest$ac_exeext && {
27890 test "$cross_compiling" = yes ||
27891 $as_test_x conftest$ac_exeext
27892 }; then
27893 ac_cv_var_tzname=yes
27894 else
27895 $as_echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27897
27898 ac_cv_var_tzname=no
27899 fi
27900
27901 rm -rf conftest.dSYM
27902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27903 conftest$ac_exeext conftest.$ac_ext
27904 fi
27905 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27906 $as_echo "$ac_cv_var_tzname" >&6; }
27907 if test $ac_cv_var_tzname = yes; then
27908
27909 cat >>confdefs.h <<\_ACEOF
27910 #define HAVE_TZNAME 1
27911 _ACEOF
27912
27913 fi
27914 fi
27915
27916 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
27917 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
27918 if test "${bash_cv_struct_timezone+set}" = set; then
27919 $as_echo_n "(cached) " >&6
27920 else
27921
27922 cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h. */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27928 #include <sys/time.h>
27929
27930 _ACEOF
27931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27932 $EGREP "struct timezone" >/dev/null 2>&1; then
27933 bash_cv_struct_timezone=yes
27934 else
27935 cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h. */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27941 #include <time.h>
27942
27943 _ACEOF
27944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27945 $EGREP "struct timezone" >/dev/null 2>&1; then
27946 bash_cv_struct_timezone=yes
27947 else
27948 bash_cv_struct_timezone=no
27949 fi
27950 rm -f conftest*
27951
27952 fi
27953 rm -f conftest*
27954
27955
27956 fi
27957
27958 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
27959 $as_echo "$bash_cv_struct_timezone" >&6; }
27960 if test $bash_cv_struct_timezone = yes; then
27961 cat >>confdefs.h <<\_ACEOF
27962 #define HAVE_STRUCT_TIMEZONE 1
27963 _ACEOF
27964
27965 fi
27966
27967
27968 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
27969 $as_echo_n "checking for the existence of strsignal... " >&6; }
27970 if test "${bash_cv_have_strsignal+set}" = set; then
27971 $as_echo_n "(cached) " >&6
27972 else
27973 cat >conftest.$ac_ext <<_ACEOF
27974 /* confdefs.h. */
27975 _ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h. */
27979 #include <sys/types.h>
27980 #include <signal.h>
27981 int
27982 main ()
27983 {
27984 char *s = (char *)strsignal(2);
27985 ;
27986 return 0;
27987 }
27988 _ACEOF
27989 rm -f conftest.$ac_objext conftest$ac_exeext
27990 if { (ac_try="$ac_link"
27991 case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994 esac
27995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27996 $as_echo "$ac_try_echo") >&5
27997 (eval "$ac_link") 2>conftest.er1
27998 ac_status=$?
27999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
28002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } && {
28004 test -z "$ac_c_werror_flag" ||
28005 test ! -s conftest.err
28006 } && test -s conftest$ac_exeext && {
28007 test "$cross_compiling" = yes ||
28008 $as_test_x conftest$ac_exeext
28009 }; then
28010 bash_cv_have_strsignal=yes
28011 else
28012 $as_echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28014
28015 bash_cv_have_strsignal=no
28016 fi
28017
28018 rm -rf conftest.dSYM
28019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28020 conftest$ac_exeext conftest.$ac_ext
28021 fi
28022
28023 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28024 $as_echo "$bash_cv_have_strsignal" >&6; }
28025 if test $bash_cv_have_strsignal = yes; then
28026 cat >>confdefs.h <<\_ACEOF
28027 #define HAVE_STRSIGNAL 1
28028 _ACEOF
28029
28030 fi
28031
28032 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28033 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
28034 if test "${bash_cv_opendir_not_robust+set}" = set; then
28035 $as_echo_n "(cached) " >&6
28036 else
28037 if test "$cross_compiling" = yes; then
28038 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28039 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
28040 bash_cv_opendir_not_robust=no
28041
28042 else
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h. */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28049
28050 #include <stdio.h>
28051 #include <sys/types.h>
28052 #include <fcntl.h>
28053 #ifdef HAVE_UNISTD_H
28054 # include <unistd.h>
28055 #endif /* HAVE_UNISTD_H */
28056 #if defined(HAVE_DIRENT_H)
28057 # include <dirent.h>
28058 #else
28059 # define dirent direct
28060 # ifdef HAVE_SYS_NDIR_H
28061 # include <sys/ndir.h>
28062 # endif /* SYSNDIR */
28063 # ifdef HAVE_SYS_DIR_H
28064 # include <sys/dir.h>
28065 # endif /* SYSDIR */
28066 # ifdef HAVE_NDIR_H
28067 # include <ndir.h>
28068 # endif
28069 #endif /* HAVE_DIRENT_H */
28070 main()
28071 {
28072 DIR *dir;
28073 int fd, err;
28074 err = mkdir("bash-aclocal", 0700);
28075 if (err < 0) {
28076 perror("mkdir");
28077 exit(1);
28078 }
28079 unlink("bash-aclocal/not_a_directory");
28080 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
28081 write(fd, "\n", 1);
28082 close(fd);
28083 dir = opendir("bash-aclocal/not_a_directory");
28084 unlink("bash-aclocal/not_a_directory");
28085 rmdir("bash-aclocal");
28086 exit (dir == 0);
28087 }
28088 _ACEOF
28089 rm -f conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093 *) ac_try_echo=$ac_try;;
28094 esac
28095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28096 $as_echo "$ac_try_echo") >&5
28097 (eval "$ac_link") 2>&5
28098 ac_status=$?
28099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28101 { (case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28104 esac
28105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28106 $as_echo "$ac_try_echo") >&5
28107 (eval "$ac_try") 2>&5
28108 ac_status=$?
28109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; }; then
28111 bash_cv_opendir_not_robust=yes
28112 else
28113 $as_echo "$as_me: program exited with status $ac_status" >&5
28114 $as_echo "$as_me: failed program was:" >&5
28115 sed 's/^/| /' conftest.$ac_ext >&5
28116
28117 ( exit $ac_status )
28118 bash_cv_opendir_not_robust=no
28119 fi
28120 rm -rf conftest.dSYM
28121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28122 fi
28123
28124
28125 fi
28126
28127 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28128 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28129 if test $bash_cv_opendir_not_robust = yes; then
28130 cat >>confdefs.h <<\_ACEOF
28131 #define OPENDIR_NOT_ROBUST 1
28132 _ACEOF
28133
28134 fi
28135
28136 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28137 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
28138 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28139 $as_echo_n "(cached) " >&6
28140 else
28141 if test "$cross_compiling" = yes; then
28142 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28143 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
28144 bash_cv_ulimit_maxfds=no
28145
28146 else
28147 cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h. */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28153
28154 main()
28155 {
28156 long maxfds = ulimit(4, 0L);
28157 exit (maxfds == -1L);
28158 }
28159
28160 _ACEOF
28161 rm -f conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166 esac
28167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28168 $as_echo "$ac_try_echo") >&5
28169 (eval "$ac_link") 2>&5
28170 ac_status=$?
28171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176 esac
28177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28178 $as_echo "$ac_try_echo") >&5
28179 (eval "$ac_try") 2>&5
28180 ac_status=$?
28181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 bash_cv_ulimit_maxfds=yes
28184 else
28185 $as_echo "$as_me: program exited with status $ac_status" >&5
28186 $as_echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28188
28189 ( exit $ac_status )
28190 bash_cv_ulimit_maxfds=no
28191 fi
28192 rm -rf conftest.dSYM
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28194 fi
28195
28196
28197 fi
28198
28199 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28200 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28201 if test $bash_cv_ulimit_maxfds = yes; then
28202 cat >>confdefs.h <<\_ACEOF
28203 #define ULIMIT_MAXFDS 1
28204 _ACEOF
28205
28206 fi
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28226 $as_echo_n "checking whether fpurge is declared... " >&6; }
28227 if test "${ac_cv_have_decl_fpurge+set}" = set; then
28228 $as_echo_n "(cached) " >&6
28229 else
28230 cat >conftest.$ac_ext <<_ACEOF
28231 /* confdefs.h. */
28232 _ACEOF
28233 cat confdefs.h >>conftest.$ac_ext
28234 cat >>conftest.$ac_ext <<_ACEOF
28235 /* end confdefs.h. */
28236 #include <stdio.h>
28237
28238 int
28239 main ()
28240 {
28241 #ifndef fpurge
28242 (void) fpurge;
28243 #endif
28244
28245 ;
28246 return 0;
28247 }
28248 _ACEOF
28249 rm -f conftest.$ac_objext
28250 if { (ac_try="$ac_compile"
28251 case "(($ac_try" in
28252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253 *) ac_try_echo=$ac_try;;
28254 esac
28255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28256 $as_echo "$ac_try_echo") >&5
28257 (eval "$ac_compile") 2>conftest.er1
28258 ac_status=$?
28259 grep -v '^ *+' conftest.er1 >conftest.err
28260 rm -f conftest.er1
28261 cat conftest.err >&5
28262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } && {
28264 test -z "$ac_c_werror_flag" ||
28265 test ! -s conftest.err
28266 } && test -s conftest.$ac_objext; then
28267 ac_cv_have_decl_fpurge=yes
28268 else
28269 $as_echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.$ac_ext >&5
28271
28272 ac_cv_have_decl_fpurge=no
28273 fi
28274
28275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28276 fi
28277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28278 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
28279 if test "x$ac_cv_have_decl_fpurge" = x""yes; then
28280
28281 cat >>confdefs.h <<_ACEOF
28282 #define HAVE_DECL_FPURGE 1
28283 _ACEOF
28284
28285
28286 else
28287 cat >>confdefs.h <<_ACEOF
28288 #define HAVE_DECL_FPURGE 0
28289 _ACEOF
28290
28291
28292 fi
28293
28294
28295
28296 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
28297 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
28298 if test "${bash_cv_getenv_redef+set}" = set; then
28299 $as_echo_n "(cached) " >&6
28300 else
28301 if test "$cross_compiling" = yes; then
28302 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
28303 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
28304 bash_cv_getenv_redef=yes
28305
28306 else
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h. */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28313
28314 #ifdef HAVE_UNISTD_H
28315 # include <unistd.h>
28316 #endif
28317 #ifndef __STDC__
28318 # ifndef const
28319 # define const
28320 # endif
28321 #endif
28322 char *
28323 getenv (name)
28324 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
28325 const char *name;
28326 #else
28327 char const *name;
28328 #endif /* !__linux__ && !__bsdi__ && !convex */
28329 {
28330 return "42";
28331 }
28332 main()
28333 {
28334 char *s;
28335 /* The next allows this program to run, but does not allow bash to link
28336 when it redefines getenv. I'm not really interested in figuring out
28337 why not. */
28338 #if defined (NeXT)
28339 exit(1);
28340 #endif
28341 s = getenv("ABCDE");
28342 exit(s == 0); /* force optimizer to leave getenv in */
28343 }
28344
28345 _ACEOF
28346 rm -f conftest$ac_exeext
28347 if { (ac_try="$ac_link"
28348 case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28351 esac
28352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28353 $as_echo "$ac_try_echo") >&5
28354 (eval "$ac_link") 2>&5
28355 ac_status=$?
28356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28361 esac
28362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28363 $as_echo "$ac_try_echo") >&5
28364 (eval "$ac_try") 2>&5
28365 ac_status=$?
28366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28368 bash_cv_getenv_redef=yes
28369 else
28370 $as_echo "$as_me: program exited with status $ac_status" >&5
28371 $as_echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 ( exit $ac_status )
28375 bash_cv_getenv_redef=no
28376 fi
28377 rm -rf conftest.dSYM
28378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28379 fi
28380
28381
28382 fi
28383
28384 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
28385 $as_echo "$bash_cv_getenv_redef" >&6; }
28386 if test $bash_cv_getenv_redef = yes; then
28387 cat >>confdefs.h <<\_ACEOF
28388 #define CAN_REDEFINE_GETENV 1
28389 _ACEOF
28390
28391 fi
28392
28393 if test "$ac_cv_func_getcwd" = "yes"; then
28394 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
28395 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
28396 if test "${bash_cv_getcwd_malloc+set}" = set; then
28397 $as_echo_n "(cached) " >&6
28398 else
28399 if test "$cross_compiling" = yes; then
28400 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
28401 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
28402 bash_cv_getcwd_malloc=no
28403
28404 else
28405 cat >conftest.$ac_ext <<_ACEOF
28406 /* confdefs.h. */
28407 _ACEOF
28408 cat confdefs.h >>conftest.$ac_ext
28409 cat >>conftest.$ac_ext <<_ACEOF
28410 /* end confdefs.h. */
28411
28412 #include <stdio.h>
28413 #ifdef HAVE_UNISTD_H
28414 #include <unistd.h>
28415 #endif
28416
28417 main()
28418 {
28419 char *xpwd;
28420 xpwd = getcwd(0, 0);
28421 exit (xpwd == 0);
28422 }
28423
28424 _ACEOF
28425 rm -f conftest$ac_exeext
28426 if { (ac_try="$ac_link"
28427 case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430 esac
28431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28432 $as_echo "$ac_try_echo") >&5
28433 (eval "$ac_link") 2>&5
28434 ac_status=$?
28435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28437 { (case "(($ac_try" in
28438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439 *) ac_try_echo=$ac_try;;
28440 esac
28441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28442 $as_echo "$ac_try_echo") >&5
28443 (eval "$ac_try") 2>&5
28444 ac_status=$?
28445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; }; then
28447 bash_cv_getcwd_malloc=yes
28448 else
28449 $as_echo "$as_me: program exited with status $ac_status" >&5
28450 $as_echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.$ac_ext >&5
28452
28453 ( exit $ac_status )
28454 bash_cv_getcwd_malloc=no
28455 fi
28456 rm -rf conftest.dSYM
28457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28458 fi
28459
28460
28461 fi
28462
28463 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
28464 $as_echo "$bash_cv_getcwd_malloc" >&6; }
28465 if test $bash_cv_getcwd_malloc = no; then
28466 cat >>confdefs.h <<\_ACEOF
28467 #define GETCWD_BROKEN 1
28468 _ACEOF
28469
28470 case " $LIBOBJS " in
28471 *" getcwd.$ac_objext "* ) ;;
28472 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
28473 ;;
28474 esac
28475
28476 fi
28477
28478 fi
28479
28480 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
28481 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
28482 if test "${bash_cv_func_sigsetjmp+set}" = set; then
28483 $as_echo_n "(cached) " >&6
28484 else
28485 if test "$cross_compiling" = yes; then
28486 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
28487 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
28488 bash_cv_func_sigsetjmp=missing
28489
28490 else
28491 cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h. */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28497
28498 #ifdef HAVE_UNISTD_H
28499 #include <unistd.h>
28500 #endif
28501 #include <sys/types.h>
28502 #include <signal.h>
28503 #include <setjmp.h>
28504
28505 main()
28506 {
28507 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
28508 exit (1);
28509 #else
28510
28511 int code;
28512 sigset_t set, oset;
28513 sigjmp_buf xx;
28514
28515 /* get the mask */
28516 sigemptyset(&set);
28517 sigemptyset(&oset);
28518 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
28519 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
28520
28521 /* save it */
28522 code = sigsetjmp(xx, 1);
28523 if (code)
28524 exit(0); /* could get sigmask and compare to oset here. */
28525
28526 /* change it */
28527 sigaddset(&set, SIGINT);
28528 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
28529
28530 /* and siglongjmp */
28531 siglongjmp(xx, 10);
28532 exit(1);
28533 #endif
28534 }
28535 _ACEOF
28536 rm -f conftest$ac_exeext
28537 if { (ac_try="$ac_link"
28538 case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28541 esac
28542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28543 $as_echo "$ac_try_echo") >&5
28544 (eval "$ac_link") 2>&5
28545 ac_status=$?
28546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28548 { (case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28551 esac
28552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28553 $as_echo "$ac_try_echo") >&5
28554 (eval "$ac_try") 2>&5
28555 ac_status=$?
28556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; }; then
28558 bash_cv_func_sigsetjmp=present
28559 else
28560 $as_echo "$as_me: program exited with status $ac_status" >&5
28561 $as_echo "$as_me: failed program was:" >&5
28562 sed 's/^/| /' conftest.$ac_ext >&5
28563
28564 ( exit $ac_status )
28565 bash_cv_func_sigsetjmp=missing
28566 fi
28567 rm -rf conftest.dSYM
28568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28569 fi
28570
28571
28572 fi
28573
28574 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
28575 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
28576 if test $bash_cv_func_sigsetjmp = present; then
28577 cat >>confdefs.h <<\_ACEOF
28578 #define HAVE_POSIX_SIGSETJMP 1
28579 _ACEOF
28580
28581 fi
28582
28583
28584 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
28585 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
28586 if test "${bash_cv_func_strcoll_broken+set}" = set; then
28587 $as_echo_n "(cached) " >&6
28588 else
28589 if test "$cross_compiling" = yes; then
28590 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
28591 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
28592 bash_cv_func_strcoll_broken=no
28593
28594 else
28595 cat >conftest.$ac_ext <<_ACEOF
28596 /* confdefs.h. */
28597 _ACEOF
28598 cat confdefs.h >>conftest.$ac_ext
28599 cat >>conftest.$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28601
28602 #include <stdio.h>
28603 #if defined (HAVE_LOCALE_H)
28604 #include <locale.h>
28605 #endif
28606
28607 main(c, v)
28608 int c;
28609 char *v[];
28610 {
28611 int r1, r2;
28612 char *deflocale, *defcoll;
28613
28614 #ifdef HAVE_SETLOCALE
28615 deflocale = setlocale(LC_ALL, "");
28616 defcoll = setlocale(LC_COLLATE, "");
28617 #endif
28618
28619 #ifdef HAVE_STRCOLL
28620 /* These two values are taken from tests/glob-test. */
28621 r1 = strcoll("abd", "aXd");
28622 #else
28623 r1 = 0;
28624 #endif
28625 r2 = strcmp("abd", "aXd");
28626
28627 /* These two should both be greater than 0. It is permissible for
28628 a system to return different values, as long as the sign is the
28629 same. */
28630
28631 /* Exit with 1 (failure) if these two values are both > 0, since
28632 this tests whether strcoll(3) is broken with respect to strcmp(3)
28633 in the default locale. */
28634 exit (r1 > 0 && r2 > 0);
28635 }
28636
28637 _ACEOF
28638 rm -f conftest$ac_exeext
28639 if { (ac_try="$ac_link"
28640 case "(($ac_try" in
28641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28643 esac
28644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28645 $as_echo "$ac_try_echo") >&5
28646 (eval "$ac_link") 2>&5
28647 ac_status=$?
28648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28650 { (case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28653 esac
28654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28655 $as_echo "$ac_try_echo") >&5
28656 (eval "$ac_try") 2>&5
28657 ac_status=$?
28658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; }; then
28660 bash_cv_func_strcoll_broken=yes
28661 else
28662 $as_echo "$as_me: program exited with status $ac_status" >&5
28663 $as_echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28665
28666 ( exit $ac_status )
28667 bash_cv_func_strcoll_broken=no
28668 fi
28669 rm -rf conftest.dSYM
28670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28671 fi
28672
28673
28674 fi
28675
28676 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
28677 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
28678 if test $bash_cv_func_strcoll_broken = yes; then
28679 cat >>confdefs.h <<\_ACEOF
28680 #define STRCOLL_BROKEN 1
28681 _ACEOF
28682
28683 fi
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694 if test X$ac_cv_func_snprintf = Xyes; then
28695 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
28696 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
28697 if test "${bash_cv_func_snprintf+set}" = set; then
28698 $as_echo_n "(cached) " >&6
28699 else
28700 if test "$cross_compiling" = yes; then
28701 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
28702 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
28703 bash_cv_func_snprintf=yes
28704
28705 else
28706 cat >conftest.$ac_ext <<_ACEOF
28707 /* confdefs.h. */
28708 _ACEOF
28709 cat confdefs.h >>conftest.$ac_ext
28710 cat >>conftest.$ac_ext <<_ACEOF
28711 /* end confdefs.h. */
28712
28713 #include <stdio.h>
28714
28715 main()
28716 {
28717 int n;
28718 n = snprintf (0, 0, "%s", "0123456");
28719 exit(n != 7);
28720 }
28721
28722 _ACEOF
28723 rm -f conftest$ac_exeext
28724 if { (ac_try="$ac_link"
28725 case "(($ac_try" in
28726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28728 esac
28729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28730 $as_echo "$ac_try_echo") >&5
28731 (eval "$ac_link") 2>&5
28732 ac_status=$?
28733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28735 { (case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28738 esac
28739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28740 $as_echo "$ac_try_echo") >&5
28741 (eval "$ac_try") 2>&5
28742 ac_status=$?
28743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; }; then
28745 bash_cv_func_snprintf=yes
28746 else
28747 $as_echo "$as_me: program exited with status $ac_status" >&5
28748 $as_echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28750
28751 ( exit $ac_status )
28752 bash_cv_func_snprintf=no
28753 fi
28754 rm -rf conftest.dSYM
28755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28756 fi
28757
28758
28759 fi
28760 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
28761 $as_echo "$bash_cv_func_snprintf" >&6; }
28762 if test $bash_cv_func_snprintf = no; then
28763 ac_cv_func_snprintf=no
28764 fi
28765 fi
28766 if test $ac_cv_func_snprintf = no; then
28767
28768 cat >>confdefs.h <<\_ACEOF
28769 #define HAVE_SNPRINTF 0
28770 _ACEOF
28771
28772 fi
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783 if test X$ac_cv_func_vsnprintf = Xyes; then
28784 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
28785 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
28786 if test "${bash_cv_func_vsnprintf+set}" = set; then
28787 $as_echo_n "(cached) " >&6
28788 else
28789 if test "$cross_compiling" = yes; then
28790 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
28791 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
28792 bash_cv_func_vsnprintf=yes
28793
28794 else
28795 cat >conftest.$ac_ext <<_ACEOF
28796 /* confdefs.h. */
28797 _ACEOF
28798 cat confdefs.h >>conftest.$ac_ext
28799 cat >>conftest.$ac_ext <<_ACEOF
28800 /* end confdefs.h. */
28801
28802 #if HAVE_STDARG_H
28803 #include <stdarg.h>
28804 #else
28805 #include <varargs.h>
28806 #endif
28807 #include <stdio.h>
28808 #include <stdlib.h>
28809
28810 static int
28811 #if HAVE_STDARG_H
28812 foo(const char *fmt, ...)
28813 #else
28814 foo(format, va_alist)
28815 const char *format;
28816 va_dcl
28817 #endif
28818 {
28819 va_list args;
28820 int n;
28821
28822 #if HAVE_STDARG_H
28823 va_start(args, fmt);
28824 #else
28825 va_start(args);
28826 #endif
28827 n = vsnprintf(0, 0, fmt, args);
28828 va_end (args);
28829 return n;
28830 }
28831
28832 main()
28833 {
28834 int n;
28835 n = foo("%s", "0123456");
28836 exit(n != 7);
28837 }
28838
28839 _ACEOF
28840 rm -f conftest$ac_exeext
28841 if { (ac_try="$ac_link"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28845 esac
28846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28847 $as_echo "$ac_try_echo") >&5
28848 (eval "$ac_link") 2>&5
28849 ac_status=$?
28850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28852 { (case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28855 esac
28856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28857 $as_echo "$ac_try_echo") >&5
28858 (eval "$ac_try") 2>&5
28859 ac_status=$?
28860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28862 bash_cv_func_vsnprintf=yes
28863 else
28864 $as_echo "$as_me: program exited with status $ac_status" >&5
28865 $as_echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28867
28868 ( exit $ac_status )
28869 bash_cv_func_vsnprintf=no
28870 fi
28871 rm -rf conftest.dSYM
28872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28873 fi
28874
28875
28876 fi
28877 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
28878 $as_echo "$bash_cv_func_vsnprintf" >&6; }
28879 if test $bash_cv_func_vsnprintf = no; then
28880 ac_cv_func_vsnprintf=no
28881 fi
28882 fi
28883 if test $ac_cv_func_vsnprintf = no; then
28884
28885 cat >>confdefs.h <<\_ACEOF
28886 #define HAVE_VSNPRINTF 0
28887 _ACEOF
28888
28889 fi
28890
28891
28892
28893 if test "$ac_cv_func_putenv" = "yes"; then
28894
28895
28896
28897 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
28898 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
28899 if test "${bash_cv_std_putenv+set}" = set; then
28900 $as_echo_n "(cached) " >&6
28901 else
28902 cat >conftest.$ac_ext <<_ACEOF
28903 /* confdefs.h. */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h. */
28908
28909 #if STDC_HEADERS
28910 #include <stdlib.h>
28911 #include <stddef.h>
28912 #endif
28913 #ifndef __STDC__
28914 # ifndef const
28915 # define const
28916 # endif
28917 #endif
28918 #ifdef PROTOTYPES
28919 extern int putenv (char *);
28920 #else
28921 extern int putenv ();
28922 #endif
28923
28924 int
28925 main ()
28926 {
28927 return (putenv == 0);
28928 ;
28929 return 0;
28930 }
28931 _ACEOF
28932 rm -f conftest.$ac_objext conftest$ac_exeext
28933 if { (ac_try="$ac_link"
28934 case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937 esac
28938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28939 $as_echo "$ac_try_echo") >&5
28940 (eval "$ac_link") 2>conftest.er1
28941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } && {
28947 test -z "$ac_c_werror_flag" ||
28948 test ! -s conftest.err
28949 } && test -s conftest$ac_exeext && {
28950 test "$cross_compiling" = yes ||
28951 $as_test_x conftest$ac_exeext
28952 }; then
28953 bash_cv_std_putenv=yes
28954 else
28955 $as_echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 bash_cv_std_putenv=no
28959
28960 fi
28961
28962 rm -rf conftest.dSYM
28963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28964 conftest$ac_exeext conftest.$ac_ext
28965 fi
28966 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
28967 $as_echo "$bash_cv_std_putenv" >&6; }
28968 if test $bash_cv_std_putenv = yes; then
28969 cat >>confdefs.h <<\_ACEOF
28970 #define HAVE_STD_PUTENV 1
28971 _ACEOF
28972
28973 fi
28974
28975 else
28976 cat >>confdefs.h <<\_ACEOF
28977 #define HAVE_STD_PUTENV 1
28978 _ACEOF
28979
28980 fi
28981 if test "$ac_cv_func_unsetenv" = "yes"; then
28982
28983
28984
28985 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
28986 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
28987 if test "${bash_cv_std_unsetenv+set}" = set; then
28988 $as_echo_n "(cached) " >&6
28989 else
28990 cat >conftest.$ac_ext <<_ACEOF
28991 /* confdefs.h. */
28992 _ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996
28997 #if STDC_HEADERS
28998 #include <stdlib.h>
28999 #include <stddef.h>
29000 #endif
29001 #ifndef __STDC__
29002 # ifndef const
29003 # define const
29004 # endif
29005 #endif
29006 #ifdef PROTOTYPES
29007 extern int unsetenv (const char *);
29008 #else
29009 extern int unsetenv ();
29010 #endif
29011
29012 int
29013 main ()
29014 {
29015 return (unsetenv == 0);
29016 ;
29017 return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (ac_try="$ac_link"
29022 case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29025 esac
29026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29027 $as_echo "$ac_try_echo") >&5
29028 (eval "$ac_link") 2>conftest.er1
29029 ac_status=$?
29030 grep -v '^ *+' conftest.er1 >conftest.err
29031 rm -f conftest.er1
29032 cat conftest.err >&5
29033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } && {
29035 test -z "$ac_c_werror_flag" ||
29036 test ! -s conftest.err
29037 } && test -s conftest$ac_exeext && {
29038 test "$cross_compiling" = yes ||
29039 $as_test_x conftest$ac_exeext
29040 }; then
29041 bash_cv_std_unsetenv=yes
29042 else
29043 $as_echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29045
29046 bash_cv_std_unsetenv=no
29047
29048 fi
29049
29050 rm -rf conftest.dSYM
29051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29052 conftest$ac_exeext conftest.$ac_ext
29053 fi
29054 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29055 $as_echo "$bash_cv_std_unsetenv" >&6; }
29056 if test $bash_cv_std_unsetenv = yes; then
29057 cat >>confdefs.h <<\_ACEOF
29058 #define HAVE_STD_UNSETENV 1
29059 _ACEOF
29060
29061 fi
29062
29063 else
29064 cat >>confdefs.h <<\_ACEOF
29065 #define HAVE_STD_UNSETENV 1
29066 _ACEOF
29067
29068 fi
29069
29070 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29071 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
29072 if test "${bash_cv_printf_a_format+set}" = set; then
29073 $as_echo_n "(cached) " >&6
29074 else
29075 if test "$cross_compiling" = yes; then
29076 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29077 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
29078 bash_cv_printf_a_format=no
29079
29080 else
29081 cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h. */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29087
29088 #include <stdio.h>
29089 #include <string.h>
29090
29091 int
29092 main()
29093 {
29094 double y = 0.0;
29095 char abuf[1024];
29096
29097 sprintf(abuf, "%A", y);
29098 exit(strchr(abuf, 'P') == (char *)0);
29099 }
29100
29101 _ACEOF
29102 rm -f conftest$ac_exeext
29103 if { (ac_try="$ac_link"
29104 case "(($ac_try" in
29105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29107 esac
29108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29109 $as_echo "$ac_try_echo") >&5
29110 (eval "$ac_link") 2>&5
29111 ac_status=$?
29112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117 esac
29118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29119 $as_echo "$ac_try_echo") >&5
29120 (eval "$ac_try") 2>&5
29121 ac_status=$?
29122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; }; then
29124 bash_cv_printf_a_format=yes
29125 else
29126 $as_echo "$as_me: program exited with status $ac_status" >&5
29127 $as_echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29129
29130 ( exit $ac_status )
29131 bash_cv_printf_a_format=no
29132 fi
29133 rm -rf conftest.dSYM
29134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29135 fi
29136
29137
29138 fi
29139
29140 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29141 $as_echo "$bash_cv_printf_a_format" >&6; }
29142 if test $bash_cv_printf_a_format = yes; then
29143 cat >>confdefs.h <<\_ACEOF
29144 #define HAVE_PRINTF_A_FORMAT 1
29145 _ACEOF
29146
29147 fi
29148
29149
29150
29151
29152 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29153 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
29154 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29155 $as_echo_n "(cached) " >&6
29156 else
29157 if test "$cross_compiling" = yes; then
29158 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29159 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
29160 bash_cv_must_reinstall_sighandlers=no
29161
29162 else
29163 cat >conftest.$ac_ext <<_ACEOF
29164 /* confdefs.h. */
29165 _ACEOF
29166 cat confdefs.h >>conftest.$ac_ext
29167 cat >>conftest.$ac_ext <<_ACEOF
29168 /* end confdefs.h. */
29169
29170 #include <signal.h>
29171 #ifdef HAVE_UNISTD_H
29172 #include <unistd.h>
29173 #endif
29174
29175 typedef RETSIGTYPE sigfunc();
29176
29177 int nsigint;
29178
29179 #ifdef HAVE_POSIX_SIGNALS
29180 sigfunc *
29181 set_signal_handler(sig, handler)
29182 int sig;
29183 sigfunc *handler;
29184 {
29185 struct sigaction act, oact;
29186 act.sa_handler = handler;
29187 act.sa_flags = 0;
29188 sigemptyset (&act.sa_mask);
29189 sigemptyset (&oact.sa_mask);
29190 sigaction (sig, &act, &oact);
29191 return (oact.sa_handler);
29192 }
29193 #else
29194 #define set_signal_handler(s, h) signal(s, h)
29195 #endif
29196
29197 RETSIGTYPE
29198 sigint(s)
29199 int s;
29200 {
29201 nsigint++;
29202 }
29203
29204 main()
29205 {
29206 nsigint = 0;
29207 set_signal_handler(SIGINT, sigint);
29208 kill((int)getpid(), SIGINT);
29209 kill((int)getpid(), SIGINT);
29210 exit(nsigint != 2);
29211 }
29212
29213 _ACEOF
29214 rm -f conftest$ac_exeext
29215 if { (ac_try="$ac_link"
29216 case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29219 esac
29220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29221 $as_echo "$ac_try_echo") >&5
29222 (eval "$ac_link") 2>&5
29223 ac_status=$?
29224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29226 { (case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29229 esac
29230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29231 $as_echo "$ac_try_echo") >&5
29232 (eval "$ac_try") 2>&5
29233 ac_status=$?
29234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; }; then
29236 bash_cv_must_reinstall_sighandlers=no
29237 else
29238 $as_echo "$as_me: program exited with status $ac_status" >&5
29239 $as_echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29241
29242 ( exit $ac_status )
29243 bash_cv_must_reinstall_sighandlers=yes
29244 fi
29245 rm -rf conftest.dSYM
29246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29247 fi
29248
29249
29250 fi
29251
29252 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
29253 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
29254 if test $bash_cv_must_reinstall_sighandlers = yes; then
29255 cat >>confdefs.h <<\_ACEOF
29256 #define MUST_REINSTALL_SIGHANDLERS 1
29257 _ACEOF
29258
29259 fi
29260
29261
29262 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
29263 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
29264 if test "${bash_cv_job_control_missing+set}" = set; then
29265 $as_echo_n "(cached) " >&6
29266 else
29267 if test "$cross_compiling" = yes; then
29268 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
29269 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
29270 bash_cv_job_control_missing=missing
29271
29272 else
29273 cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h. */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279
29280 #include <sys/types.h>
29281 #ifdef HAVE_SYS_WAIT_H
29282 #include <sys/wait.h>
29283 #endif
29284 #ifdef HAVE_UNISTD_H
29285 #include <unistd.h>
29286 #endif
29287 #include <signal.h>
29288
29289 /* Add more tests in here as appropriate. */
29290 main()
29291 {
29292 /* signal type */
29293 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29294 exit(1);
29295 #endif
29296
29297 /* signals and tty control. */
29298 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
29299 exit (1);
29300 #endif
29301
29302 /* process control */
29303 #if !defined (WNOHANG) || !defined (WUNTRACED)
29304 exit(1);
29305 #endif
29306
29307 /* Posix systems have tcgetpgrp and waitpid. */
29308 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
29309 exit(1);
29310 #endif
29311
29312 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
29313 exit(1);
29314 #endif
29315
29316 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
29317 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
29318 exit(1);
29319 #endif
29320
29321 exit(0);
29322 }
29323 _ACEOF
29324 rm -f conftest$ac_exeext
29325 if { (ac_try="$ac_link"
29326 case "(($ac_try" in
29327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328 *) ac_try_echo=$ac_try;;
29329 esac
29330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29331 $as_echo "$ac_try_echo") >&5
29332 (eval "$ac_link") 2>&5
29333 ac_status=$?
29334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29336 { (case "(($ac_try" in
29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29339 esac
29340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29341 $as_echo "$ac_try_echo") >&5
29342 (eval "$ac_try") 2>&5
29343 ac_status=$?
29344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; }; then
29346 bash_cv_job_control_missing=present
29347 else
29348 $as_echo "$as_me: program exited with status $ac_status" >&5
29349 $as_echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29351
29352 ( exit $ac_status )
29353 bash_cv_job_control_missing=missing
29354 fi
29355 rm -rf conftest.dSYM
29356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29357 fi
29358
29359
29360 fi
29361
29362 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
29363 $as_echo "$bash_cv_job_control_missing" >&6; }
29364 if test $bash_cv_job_control_missing = missing; then
29365 cat >>confdefs.h <<\_ACEOF
29366 #define JOB_CONTROL_MISSING 1
29367 _ACEOF
29368
29369 fi
29370
29371 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
29372 $as_echo_n "checking for presence of named pipes... " >&6; }
29373 if test "${bash_cv_sys_named_pipes+set}" = set; then
29374 $as_echo_n "(cached) " >&6
29375 else
29376 if test "$cross_compiling" = yes; then
29377 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
29378 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
29379 bash_cv_sys_named_pipes=missing
29380
29381 else
29382 cat >conftest.$ac_ext <<_ACEOF
29383 /* confdefs.h. */
29384 _ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h. */
29388
29389 #include <sys/types.h>
29390 #include <sys/stat.h>
29391 #ifdef HAVE_UNISTD_H
29392 #include <unistd.h>
29393 #endif
29394
29395 /* Add more tests in here as appropriate. */
29396 main()
29397 {
29398 int fd, err;
29399
29400 #if defined (HAVE_MKFIFO)
29401 exit (0);
29402 #endif
29403
29404 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
29405 exit (1);
29406 #endif
29407
29408 #if defined (NeXT)
29409 exit (1);
29410 #endif
29411 err = mkdir("bash-aclocal", 0700);
29412 if (err < 0) {
29413 perror ("mkdir");
29414 exit(1);
29415 }
29416 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
29417 if (fd == -1) {
29418 rmdir ("bash-aclocal");
29419 exit (1);
29420 }
29421 close(fd);
29422 unlink ("bash-aclocal/sh-np-autoconf");
29423 rmdir ("bash-aclocal");
29424 exit(0);
29425 }
29426 _ACEOF
29427 rm -f conftest$ac_exeext
29428 if { (ac_try="$ac_link"
29429 case "(($ac_try" in
29430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29431 *) ac_try_echo=$ac_try;;
29432 esac
29433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29434 $as_echo "$ac_try_echo") >&5
29435 (eval "$ac_link") 2>&5
29436 ac_status=$?
29437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29439 { (case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29442 esac
29443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29444 $as_echo "$ac_try_echo") >&5
29445 (eval "$ac_try") 2>&5
29446 ac_status=$?
29447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 bash_cv_sys_named_pipes=present
29450 else
29451 $as_echo "$as_me: program exited with status $ac_status" >&5
29452 $as_echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455 ( exit $ac_status )
29456 bash_cv_sys_named_pipes=missing
29457 fi
29458 rm -rf conftest.dSYM
29459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29460 fi
29461
29462
29463 fi
29464
29465 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
29466 $as_echo "$bash_cv_sys_named_pipes" >&6; }
29467 if test $bash_cv_sys_named_pipes = missing; then
29468 cat >>confdefs.h <<\_ACEOF
29469 #define NAMED_PIPES_MISSING 1
29470 _ACEOF
29471
29472 fi
29473
29474
29475 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
29476 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
29477 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
29478 $as_echo_n "(cached) " >&6
29479 else
29480 cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h. */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29486 #include <sys/types.h>
29487 #include <termios.h>
29488 #ifdef TIOCGWINSZ
29489 yes
29490 #endif
29491
29492 _ACEOF
29493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29494 $EGREP "yes" >/dev/null 2>&1; then
29495 ac_cv_sys_tiocgwinsz_in_termios_h=yes
29496 else
29497 ac_cv_sys_tiocgwinsz_in_termios_h=no
29498 fi
29499 rm -f conftest*
29500
29501 fi
29502 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
29503 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
29504
29505 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
29506 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
29507 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
29508 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
29509 $as_echo_n "(cached) " >&6
29510 else
29511 cat >conftest.$ac_ext <<_ACEOF
29512 /* confdefs.h. */
29513 _ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29517 #include <sys/types.h>
29518 #include <sys/ioctl.h>
29519 #ifdef TIOCGWINSZ
29520 yes
29521 #endif
29522
29523 _ACEOF
29524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29525 $EGREP "yes" >/dev/null 2>&1; then
29526 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
29527 else
29528 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
29529 fi
29530 rm -f conftest*
29531
29532 fi
29533 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
29534 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
29535
29536 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
29537
29538 cat >>confdefs.h <<\_ACEOF
29539 #define GWINSZ_IN_SYS_IOCTL 1
29540 _ACEOF
29541
29542 fi
29543 fi
29544
29545 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
29546 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
29547 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
29548 $as_echo_n "(cached) " >&6
29549 else
29550 cat >conftest.$ac_ext <<_ACEOF
29551 /* confdefs.h. */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29556 #include <sys/types.h>
29557 #include <sys/ioctl.h>
29558 int
29559 main ()
29560 {
29561 int x = TIOCSTAT;
29562 ;
29563 return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (ac_try="$ac_compile"
29568 case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571 esac
29572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29573 $as_echo "$ac_try_echo") >&5
29574 (eval "$ac_compile") 2>conftest.er1
29575 ac_status=$?
29576 grep -v '^ *+' conftest.er1 >conftest.err
29577 rm -f conftest.er1
29578 cat conftest.err >&5
29579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } && {
29581 test -z "$ac_c_werror_flag" ||
29582 test ! -s conftest.err
29583 } && test -s conftest.$ac_objext; then
29584 bash_cv_tiocstat_in_ioctl=yes
29585 else
29586 $as_echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29588
29589 bash_cv_tiocstat_in_ioctl=no
29590 fi
29591
29592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29593 fi
29594
29595 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
29596 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
29597 if test $bash_cv_tiocstat_in_ioctl = yes; then
29598 cat >>confdefs.h <<\_ACEOF
29599 #define TIOCSTAT_IN_SYS_IOCTL 1
29600 _ACEOF
29601
29602 fi
29603
29604 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
29605 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
29606 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
29607 $as_echo_n "(cached) " >&6
29608 else
29609 cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h. */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 #include <sys/types.h>
29616 #include <sys/ioctl.h>
29617 int
29618 main ()
29619 {
29620 int x = FIONREAD;
29621 ;
29622 return 0;
29623 }
29624 _ACEOF
29625 rm -f conftest.$ac_objext
29626 if { (ac_try="$ac_compile"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29630 esac
29631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29632 $as_echo "$ac_try_echo") >&5
29633 (eval "$ac_compile") 2>conftest.er1
29634 ac_status=$?
29635 grep -v '^ *+' conftest.er1 >conftest.err
29636 rm -f conftest.er1
29637 cat conftest.err >&5
29638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } && {
29640 test -z "$ac_c_werror_flag" ||
29641 test ! -s conftest.err
29642 } && test -s conftest.$ac_objext; then
29643 bash_cv_fionread_in_ioctl=yes
29644 else
29645 $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 bash_cv_fionread_in_ioctl=no
29649 fi
29650
29651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29652 fi
29653
29654 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
29655 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
29656 if test $bash_cv_fionread_in_ioctl = yes; then
29657 cat >>confdefs.h <<\_ACEOF
29658 #define FIONREAD_IN_SYS_IOCTL 1
29659 _ACEOF
29660
29661 fi
29662
29663
29664
29665 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
29666 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
29667 if test "${bash_cv_wcontinued_broken+set}" = set; then
29668 $as_echo_n "(cached) " >&6
29669 else
29670 if test "$cross_compiling" = yes; then
29671 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
29672 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
29673 bash_cv_wcontinued_broken=no
29674
29675 else
29676 cat >conftest.$ac_ext <<_ACEOF
29677 /* confdefs.h. */
29678 _ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29682
29683 #include <sys/types.h>
29684 #include <sys/wait.h>
29685 #include <unistd.h>
29686 #include <errno.h>
29687
29688 #ifndef errno
29689 extern int errno;
29690 #endif
29691 main()
29692 {
29693 int x;
29694
29695 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
29696 if (x == -1 && errno == EINVAL)
29697 exit (1);
29698 else
29699 exit (0);
29700 }
29701
29702 _ACEOF
29703 rm -f conftest$ac_exeext
29704 if { (ac_try="$ac_link"
29705 case "(($ac_try" in
29706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29708 esac
29709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29710 $as_echo "$ac_try_echo") >&5
29711 (eval "$ac_link") 2>&5
29712 ac_status=$?
29713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29715 { (case "(($ac_try" in
29716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717 *) ac_try_echo=$ac_try;;
29718 esac
29719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29720 $as_echo "$ac_try_echo") >&5
29721 (eval "$ac_try") 2>&5
29722 ac_status=$?
29723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 bash_cv_wcontinued_broken=no
29726 else
29727 $as_echo "$as_me: program exited with status $ac_status" >&5
29728 $as_echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731 ( exit $ac_status )
29732 bash_cv_wcontinued_broken=yes
29733 fi
29734 rm -rf conftest.dSYM
29735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29736 fi
29737
29738
29739 fi
29740
29741 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
29742 $as_echo "$bash_cv_wcontinued_broken" >&6; }
29743 if test $bash_cv_wcontinued_broken = yes; then
29744 cat >>confdefs.h <<\_ACEOF
29745 #define WCONTINUED_BROKEN 1
29746 _ACEOF
29747
29748 fi
29749
29750
29751 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
29752 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
29753 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
29754 $as_echo_n "(cached) " >&6
29755 else
29756 cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h. */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29762 #include <sys/types.h>
29763 int
29764 main ()
29765 {
29766 speed_t x;
29767 ;
29768 return 0;
29769 }
29770 _ACEOF
29771 rm -f conftest.$ac_objext
29772 if { (ac_try="$ac_compile"
29773 case "(($ac_try" in
29774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29776 esac
29777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29778 $as_echo "$ac_try_echo") >&5
29779 (eval "$ac_compile") 2>conftest.er1
29780 ac_status=$?
29781 grep -v '^ *+' conftest.er1 >conftest.err
29782 rm -f conftest.er1
29783 cat conftest.err >&5
29784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } && {
29786 test -z "$ac_c_werror_flag" ||
29787 test ! -s conftest.err
29788 } && test -s conftest.$ac_objext; then
29789 bash_cv_speed_t_in_sys_types=yes
29790 else
29791 $as_echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29793
29794 bash_cv_speed_t_in_sys_types=no
29795 fi
29796
29797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29798 fi
29799
29800 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
29801 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
29802 if test $bash_cv_speed_t_in_sys_types = yes; then
29803 cat >>confdefs.h <<\_ACEOF
29804 #define SPEED_T_IN_SYS_TYPES 1
29805 _ACEOF
29806
29807 fi
29808
29809 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
29810 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
29811 if test "${bash_cv_getpw_declared+set}" = set; then
29812 $as_echo_n "(cached) " >&6
29813 else
29814 cat >conftest.$ac_ext <<_ACEOF
29815 /* confdefs.h. */
29816 _ACEOF
29817 cat confdefs.h >>conftest.$ac_ext
29818 cat >>conftest.$ac_ext <<_ACEOF
29819 /* end confdefs.h. */
29820
29821 #include <sys/types.h>
29822 #ifdef HAVE_UNISTD_H
29823 # include <unistd.h>
29824 #endif
29825 #include <pwd.h>
29826
29827 _ACEOF
29828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29829 $EGREP "getpwuid" >/dev/null 2>&1; then
29830 bash_cv_getpw_declared=yes
29831 else
29832 bash_cv_getpw_declared=no
29833 fi
29834 rm -f conftest*
29835
29836 fi
29837
29838 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
29839 $as_echo "$bash_cv_getpw_declared" >&6; }
29840 if test $bash_cv_getpw_declared = yes; then
29841 cat >>confdefs.h <<\_ACEOF
29842 #define HAVE_GETPW_DECLS 1
29843 _ACEOF
29844
29845 fi
29846
29847 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
29848 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
29849 if test "${bash_cv_unusable_rtsigs+set}" = set; then
29850 $as_echo_n "(cached) " >&6
29851 else
29852 if test "$cross_compiling" = yes; then
29853 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
29854 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
29855 bash_cv_unusable_rtsigs=yes
29856
29857 else
29858 cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h. */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864
29865 #include <sys/types.h>
29866 #include <signal.h>
29867
29868 #ifndef NSIG
29869 # define NSIG 64
29870 #endif
29871
29872 main ()
29873 {
29874 int n_sigs = 2 * NSIG;
29875 #ifdef SIGRTMIN
29876 int rtmin = SIGRTMIN;
29877 #else
29878 int rtmin = 0;
29879 #endif
29880
29881 exit(rtmin < n_sigs);
29882 }
29883 _ACEOF
29884 rm -f conftest$ac_exeext
29885 if { (ac_try="$ac_link"
29886 case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29889 esac
29890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29891 $as_echo "$ac_try_echo") >&5
29892 (eval "$ac_link") 2>&5
29893 ac_status=$?
29894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29896 { (case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29899 esac
29900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29901 $as_echo "$ac_try_echo") >&5
29902 (eval "$ac_try") 2>&5
29903 ac_status=$?
29904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; }; then
29906 bash_cv_unusable_rtsigs=yes
29907 else
29908 $as_echo "$as_me: program exited with status $ac_status" >&5
29909 $as_echo "$as_me: failed program was:" >&5
29910 sed 's/^/| /' conftest.$ac_ext >&5
29911
29912 ( exit $ac_status )
29913 bash_cv_unusable_rtsigs=no
29914 fi
29915 rm -rf conftest.dSYM
29916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29917 fi
29918
29919
29920 fi
29921
29922 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
29923 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
29924 if test $bash_cv_unusable_rtsigs = yes; then
29925 cat >>confdefs.h <<\_ACEOF
29926 #define UNUSABLE_RT_SIGNALS 1
29927 _ACEOF
29928
29929 fi
29930
29931
29932
29933
29934
29935 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
29936 SIGLIST_O=siglist.o
29937 else
29938 SIGLIST_O=
29939 fi
29940
29941
29942
29943 case "$host_os" in
29944 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
29945 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
29946 if test "${bash_cv_kernel_rlimit+set}" = set; then
29947 $as_echo_n "(cached) " >&6
29948 else
29949 cat >conftest.$ac_ext <<_ACEOF
29950 /* confdefs.h. */
29951 _ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29955
29956 #include <sys/types.h>
29957 #include <sys/resource.h>
29958
29959 int
29960 main ()
29961 {
29962
29963 int f;
29964 f = RLIMIT_DATA;
29965
29966 ;
29967 return 0;
29968 }
29969 _ACEOF
29970 rm -f conftest.$ac_objext
29971 if { (ac_try="$ac_compile"
29972 case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975 esac
29976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29977 $as_echo "$ac_try_echo") >&5
29978 (eval "$ac_compile") 2>conftest.er1
29979 ac_status=$?
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
29983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && {
29985 test -z "$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 } && test -s conftest.$ac_objext; then
29988 bash_cv_kernel_rlimit=no
29989 else
29990 $as_echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29992
29993 cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h. */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
29999
30000 #include <sys/types.h>
30001 #define _KERNEL
30002 #include <sys/resource.h>
30003 #undef _KERNEL
30004
30005 int
30006 main ()
30007 {
30008
30009 int f;
30010 f = RLIMIT_DATA;
30011
30012 ;
30013 return 0;
30014 }
30015 _ACEOF
30016 rm -f conftest.$ac_objext
30017 if { (ac_try="$ac_compile"
30018 case "(($ac_try" in
30019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020 *) ac_try_echo=$ac_try;;
30021 esac
30022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30023 $as_echo "$ac_try_echo") >&5
30024 (eval "$ac_compile") 2>conftest.er1
30025 ac_status=$?
30026 grep -v '^ *+' conftest.er1 >conftest.err
30027 rm -f conftest.er1
30028 cat conftest.err >&5
30029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } && {
30031 test -z "$ac_c_werror_flag" ||
30032 test ! -s conftest.err
30033 } && test -s conftest.$ac_objext; then
30034 bash_cv_kernel_rlimit=yes
30035 else
30036 $as_echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30038
30039 bash_cv_kernel_rlimit=no
30040 fi
30041
30042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30043
30044 fi
30045
30046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30047 fi
30048
30049 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30050 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30051 if test $bash_cv_kernel_rlimit = yes; then
30052 cat >>confdefs.h <<\_ACEOF
30053 #define RLIMIT_NEEDS_KERNEL 1
30054 _ACEOF
30055
30056 fi
30057 ;;
30058 esac
30059
30060 if test "$opt_readline" = yes; then
30061 case "$host_os" in
30062 aix*) prefer_curses=yes ;;
30063 esac
30064
30065 if test "X$bash_cv_termcap_lib" = "X"; then
30066 _bash_needmsg=yes
30067 else
30068 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30069 $as_echo_n "checking which library has the termcap functions... " >&6; }
30070 _bash_needmsg=
30071 fi
30072 if test "${bash_cv_termcap_lib+set}" = set; then
30073 $as_echo_n "(cached) " >&6
30074 else
30075 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30076 $as_echo_n "checking for tgetent... " >&6; }
30077 if test "${ac_cv_func_tgetent+set}" = set; then
30078 $as_echo_n "(cached) " >&6
30079 else
30080 cat >conftest.$ac_ext <<_ACEOF
30081 /* confdefs.h. */
30082 _ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30088 #define tgetent innocuous_tgetent
30089
30090 /* System header to define __stub macros and hopefully few prototypes,
30091 which can conflict with char tgetent (); below.
30092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30093 <limits.h> exists even on freestanding compilers. */
30094
30095 #ifdef __STDC__
30096 # include <limits.h>
30097 #else
30098 # include <assert.h>
30099 #endif
30100
30101 #undef tgetent
30102
30103 /* Override any GCC internal prototype to avoid an error.
30104 Use char because int might match the return type of a GCC
30105 builtin and then its argument prototype would still apply. */
30106 #ifdef __cplusplus
30107 extern "C"
30108 #endif
30109 char tgetent ();
30110 /* The GNU C library defines this for functions which it implements
30111 to always fail with ENOSYS. Some functions are actually named
30112 something starting with __ and the normal name is an alias. */
30113 #if defined __stub_tgetent || defined __stub___tgetent
30114 choke me
30115 #endif
30116
30117 int
30118 main ()
30119 {
30120 return tgetent ();
30121 ;
30122 return 0;
30123 }
30124 _ACEOF
30125 rm -f conftest.$ac_objext conftest$ac_exeext
30126 if { (ac_try="$ac_link"
30127 case "(($ac_try" in
30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129 *) ac_try_echo=$ac_try;;
30130 esac
30131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30132 $as_echo "$ac_try_echo") >&5
30133 (eval "$ac_link") 2>conftest.er1
30134 ac_status=$?
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
30138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } && {
30140 test -z "$ac_c_werror_flag" ||
30141 test ! -s conftest.err
30142 } && test -s conftest$ac_exeext && {
30143 test "$cross_compiling" = yes ||
30144 $as_test_x conftest$ac_exeext
30145 }; then
30146 ac_cv_func_tgetent=yes
30147 else
30148 $as_echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30150
30151 ac_cv_func_tgetent=no
30152 fi
30153
30154 rm -rf conftest.dSYM
30155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30156 conftest$ac_exeext conftest.$ac_ext
30157 fi
30158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30159 $as_echo "$ac_cv_func_tgetent" >&6; }
30160 if test "x$ac_cv_func_tgetent" = x""yes; then
30161 bash_cv_termcap_lib=libc
30162 else
30163 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30164 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
30165 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30166 $as_echo_n "(cached) " >&6
30167 else
30168 ac_check_lib_save_LIBS=$LIBS
30169 LIBS="-ltermcap $LIBS"
30170 cat >conftest.$ac_ext <<_ACEOF
30171 /* confdefs.h. */
30172 _ACEOF
30173 cat confdefs.h >>conftest.$ac_ext
30174 cat >>conftest.$ac_ext <<_ACEOF
30175 /* end confdefs.h. */
30176
30177 /* Override any GCC internal prototype to avoid an error.
30178 Use char because int might match the return type of a GCC
30179 builtin and then its argument prototype would still apply. */
30180 #ifdef __cplusplus
30181 extern "C"
30182 #endif
30183 char tgetent ();
30184 int
30185 main ()
30186 {
30187 return tgetent ();
30188 ;
30189 return 0;
30190 }
30191 _ACEOF
30192 rm -f conftest.$ac_objext conftest$ac_exeext
30193 if { (ac_try="$ac_link"
30194 case "(($ac_try" in
30195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196 *) ac_try_echo=$ac_try;;
30197 esac
30198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30199 $as_echo "$ac_try_echo") >&5
30200 (eval "$ac_link") 2>conftest.er1
30201 ac_status=$?
30202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
30205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } && {
30207 test -z "$ac_c_werror_flag" ||
30208 test ! -s conftest.err
30209 } && test -s conftest$ac_exeext && {
30210 test "$cross_compiling" = yes ||
30211 $as_test_x conftest$ac_exeext
30212 }; then
30213 ac_cv_lib_termcap_tgetent=yes
30214 else
30215 $as_echo "$as_me: failed program was:" >&5
30216 sed 's/^/| /' conftest.$ac_ext >&5
30217
30218 ac_cv_lib_termcap_tgetent=no
30219 fi
30220
30221 rm -rf conftest.dSYM
30222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30223 conftest$ac_exeext conftest.$ac_ext
30224 LIBS=$ac_check_lib_save_LIBS
30225 fi
30226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30227 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
30228 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
30229 bash_cv_termcap_lib=libtermcap
30230 else
30231 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30232 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
30233 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30234 $as_echo_n "(cached) " >&6
30235 else
30236 ac_check_lib_save_LIBS=$LIBS
30237 LIBS="-ltinfo $LIBS"
30238 cat >conftest.$ac_ext <<_ACEOF
30239 /* confdefs.h. */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30244
30245 /* Override any GCC internal prototype to avoid an error.
30246 Use char because int might match the return type of a GCC
30247 builtin and then its argument prototype would still apply. */
30248 #ifdef __cplusplus
30249 extern "C"
30250 #endif
30251 char tgetent ();
30252 int
30253 main ()
30254 {
30255 return tgetent ();
30256 ;
30257 return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (ac_try="$ac_link"
30262 case "(($ac_try" in
30263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264 *) ac_try_echo=$ac_try;;
30265 esac
30266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30267 $as_echo "$ac_try_echo") >&5
30268 (eval "$ac_link") 2>conftest.er1
30269 ac_status=$?
30270 grep -v '^ *+' conftest.er1 >conftest.err
30271 rm -f conftest.er1
30272 cat conftest.err >&5
30273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } && {
30275 test -z "$ac_c_werror_flag" ||
30276 test ! -s conftest.err
30277 } && test -s conftest$ac_exeext && {
30278 test "$cross_compiling" = yes ||
30279 $as_test_x conftest$ac_exeext
30280 }; then
30281 ac_cv_lib_tinfo_tgetent=yes
30282 else
30283 $as_echo "$as_me: failed program was:" >&5
30284 sed 's/^/| /' conftest.$ac_ext >&5
30285
30286 ac_cv_lib_tinfo_tgetent=no
30287 fi
30288
30289 rm -rf conftest.dSYM
30290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30291 conftest$ac_exeext conftest.$ac_ext
30292 LIBS=$ac_check_lib_save_LIBS
30293 fi
30294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30295 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
30296 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
30297 bash_cv_termcap_lib=libtinfo
30298 else
30299 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30300 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
30301 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30302 $as_echo_n "(cached) " >&6
30303 else
30304 ac_check_lib_save_LIBS=$LIBS
30305 LIBS="-lcurses $LIBS"
30306 cat >conftest.$ac_ext <<_ACEOF
30307 /* confdefs.h. */
30308 _ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h. */
30312
30313 /* Override any GCC internal prototype to avoid an error.
30314 Use char because int might match the return type of a GCC
30315 builtin and then its argument prototype would still apply. */
30316 #ifdef __cplusplus
30317 extern "C"
30318 #endif
30319 char tgetent ();
30320 int
30321 main ()
30322 {
30323 return tgetent ();
30324 ;
30325 return 0;
30326 }
30327 _ACEOF
30328 rm -f conftest.$ac_objext conftest$ac_exeext
30329 if { (ac_try="$ac_link"
30330 case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30333 esac
30334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30335 $as_echo "$ac_try_echo") >&5
30336 (eval "$ac_link") 2>conftest.er1
30337 ac_status=$?
30338 grep -v '^ *+' conftest.er1 >conftest.err
30339 rm -f conftest.er1
30340 cat conftest.err >&5
30341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); } && {
30343 test -z "$ac_c_werror_flag" ||
30344 test ! -s conftest.err
30345 } && test -s conftest$ac_exeext && {
30346 test "$cross_compiling" = yes ||
30347 $as_test_x conftest$ac_exeext
30348 }; then
30349 ac_cv_lib_curses_tgetent=yes
30350 else
30351 $as_echo "$as_me: failed program was:" >&5
30352 sed 's/^/| /' conftest.$ac_ext >&5
30353
30354 ac_cv_lib_curses_tgetent=no
30355 fi
30356
30357 rm -rf conftest.dSYM
30358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30359 conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30361 fi
30362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
30363 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
30364 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
30365 bash_cv_termcap_lib=libcurses
30366 else
30367 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
30368 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
30369 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
30370 $as_echo_n "(cached) " >&6
30371 else
30372 ac_check_lib_save_LIBS=$LIBS
30373 LIBS="-lncurses $LIBS"
30374 cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h. */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380
30381 /* Override any GCC internal prototype to avoid an error.
30382 Use char because int might match the return type of a GCC
30383 builtin and then its argument prototype would still apply. */
30384 #ifdef __cplusplus
30385 extern "C"
30386 #endif
30387 char tgetent ();
30388 int
30389 main ()
30390 {
30391 return tgetent ();
30392 ;
30393 return 0;
30394 }
30395 _ACEOF
30396 rm -f conftest.$ac_objext conftest$ac_exeext
30397 if { (ac_try="$ac_link"
30398 case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30401 esac
30402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30403 $as_echo "$ac_try_echo") >&5
30404 (eval "$ac_link") 2>conftest.er1
30405 ac_status=$?
30406 grep -v '^ *+' conftest.er1 >conftest.err
30407 rm -f conftest.er1
30408 cat conftest.err >&5
30409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); } && {
30411 test -z "$ac_c_werror_flag" ||
30412 test ! -s conftest.err
30413 } && test -s conftest$ac_exeext && {
30414 test "$cross_compiling" = yes ||
30415 $as_test_x conftest$ac_exeext
30416 }; then
30417 ac_cv_lib_ncurses_tgetent=yes
30418 else
30419 $as_echo "$as_me: failed program was:" >&5
30420 sed 's/^/| /' conftest.$ac_ext >&5
30421
30422 ac_cv_lib_ncurses_tgetent=no
30423 fi
30424
30425 rm -rf conftest.dSYM
30426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30427 conftest$ac_exeext conftest.$ac_ext
30428 LIBS=$ac_check_lib_save_LIBS
30429 fi
30430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
30431 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
30432 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
30433 bash_cv_termcap_lib=libncurses
30434 else
30435 bash_cv_termcap_lib=gnutermcap
30436 fi
30437
30438 fi
30439
30440 fi
30441
30442 fi
30443
30444 fi
30445
30446 fi
30447
30448 if test "X$_bash_needmsg" = "Xyes"; then
30449 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30450 $as_echo_n "checking which library has the termcap functions... " >&6; }
30451 fi
30452 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
30453 $as_echo "using $bash_cv_termcap_lib" >&6; }
30454 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
30455 LDFLAGS="$LDFLAGS -L./lib/termcap"
30456 TERMCAP_LIB="./lib/termcap/libtermcap.a"
30457 TERMCAP_DEP="./lib/termcap/libtermcap.a"
30458 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
30459 TERMCAP_LIB=-ltermcap
30460 TERMCAP_DEP=
30461 elif test $bash_cv_termcap_lib = libtinfo; then
30462 TERMCAP_LIB=-ltinfo
30463 TERMCAP_DEP=
30464 elif test $bash_cv_termcap_lib = libncurses; then
30465 TERMCAP_LIB=-lncurses
30466 TERMCAP_DEP=
30467 elif test $bash_cv_termcap_lib = libc; then
30468 TERMCAP_LIB=
30469 TERMCAP_DEP=
30470 else
30471 TERMCAP_LIB=-lcurses
30472 TERMCAP_DEP=
30473 fi
30474
30475 fi
30476
30477
30478
30479 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
30480 $as_echo_n "checking whether /dev/fd is available... " >&6; }
30481 if test "${bash_cv_dev_fd+set}" = set; then
30482 $as_echo_n "(cached) " >&6
30483 else
30484 bash_cv_dev_fd=""
30485 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
30486 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
30487 if (exec test -r /dev/fd/3 3</dev/null) ; then
30488 bash_cv_dev_fd=standard
30489 else
30490 bash_cv_dev_fd=absent
30491 fi
30492 fi
30493 if test -z "$bash_cv_dev_fd" ; then
30494 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
30495 bash_cv_dev_fd=whacky
30496 else
30497 bash_cv_dev_fd=absent
30498 fi
30499 fi
30500
30501 fi
30502
30503 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
30504 $as_echo "$bash_cv_dev_fd" >&6; }
30505 if test $bash_cv_dev_fd = "standard"; then
30506 cat >>confdefs.h <<\_ACEOF
30507 #define HAVE_DEV_FD 1
30508 _ACEOF
30509
30510 cat >>confdefs.h <<\_ACEOF
30511 #define DEV_FD_PREFIX "/dev/fd/"
30512 _ACEOF
30513
30514 elif test $bash_cv_dev_fd = "whacky"; then
30515 cat >>confdefs.h <<\_ACEOF
30516 #define HAVE_DEV_FD 1
30517 _ACEOF
30518
30519 cat >>confdefs.h <<\_ACEOF
30520 #define DEV_FD_PREFIX "/proc/self/fd/"
30521 _ACEOF
30522
30523 fi
30524
30525 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
30526 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
30527 if test "${bash_cv_dev_stdin+set}" = set; then
30528 $as_echo_n "(cached) " >&6
30529 else
30530 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
30531 bash_cv_dev_stdin=present
30532 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
30533 bash_cv_dev_stdin=present
30534 else
30535 bash_cv_dev_stdin=absent
30536 fi
30537
30538 fi
30539
30540 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
30541 $as_echo "$bash_cv_dev_stdin" >&6; }
30542 if test $bash_cv_dev_stdin = "present"; then
30543 cat >>confdefs.h <<\_ACEOF
30544 #define HAVE_DEV_STDIN 1
30545 _ACEOF
30546
30547 fi
30548
30549 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
30550 $as_echo_n "checking for default mail directory... " >&6; }
30551 if test "${bash_cv_mail_dir+set}" = set; then
30552 $as_echo_n "(cached) " >&6
30553 else
30554 if test -d /var/mail; then
30555 bash_cv_mail_dir=/var/mail
30556 elif test -d /var/spool/mail; then
30557 bash_cv_mail_dir=/var/spool/mail
30558 elif test -d /usr/mail; then
30559 bash_cv_mail_dir=/usr/mail
30560 elif test -d /usr/spool/mail; then
30561 bash_cv_mail_dir=/usr/spool/mail
30562 else
30563 bash_cv_mail_dir=unknown
30564 fi
30565
30566 fi
30567
30568 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
30569 $as_echo "$bash_cv_mail_dir" >&6; }
30570 cat >>confdefs.h <<_ACEOF
30571 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
30572 _ACEOF
30573
30574
30575
30576 if test "$bash_cv_job_control_missing" = missing; then
30577 opt_job_control=no
30578 fi
30579
30580 if test "$opt_job_control" = yes; then
30581 cat >>confdefs.h <<\_ACEOF
30582 #define JOB_CONTROL 1
30583 _ACEOF
30584
30585 JOBS_O=jobs.o
30586 else
30587 JOBS_O=nojobs.o
30588 fi
30589
30590
30591
30592
30593 LOCAL_DEFS=-DSHELL
30594
30595
30596 case "${host_os}" in
30597 sysv4.2*) cat >>confdefs.h <<\_ACEOF
30598 #define SVR4_2 1
30599 _ACEOF
30600
30601 cat >>confdefs.h <<\_ACEOF
30602 #define SVR4 1
30603 _ACEOF
30604 ;;
30605 sysv4*) cat >>confdefs.h <<\_ACEOF
30606 #define SVR4 1
30607 _ACEOF
30608 ;;
30609 sysv5*) cat >>confdefs.h <<\_ACEOF
30610 #define SVR5 1
30611 _ACEOF
30612 ;;
30613 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
30614 hpux*) LOCAL_CFLAGS=-DHPUX ;;
30615 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
30616 isc*) LOCAL_CFLAGS=-Disc386 ;;
30617 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
30618 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
30619 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
30620 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
30621 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
30622 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
30623 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
30624 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
30625 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
30626 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
30627 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
30628 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
30629 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
30630 case "`uname -r`" in
30631 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
30632 #define PGRP_PIPE 1
30633 _ACEOF
30634 ;;
30635 esac ;;
30636 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
30637 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
30638 powerux*) LOCAL_LIBS="-lgen" ;;
30639 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
30640 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
30641 esac
30642
30643 case "${host_os}-${CC}" in
30644 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
30645 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
30646 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
30647 esac
30648
30649 case "${host_os}" in
30650 freebsd[3-9]*)
30651 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
30652 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
30653 fi ;;
30654 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
30655 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
30656 esac
30657
30658 case "$host_cpu" in
30659 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
30660 esac
30661
30662 case "$host_cpu-$host_os" in
30663 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
30664 esac
30665
30666 case "$host_cpu-$host_vendor-$host_os" in
30667 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
30668 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
30669 esac
30670
30671 #
30672 # Shared object configuration section. These values are generated by
30673 # ${srcdir}/support/shobj-conf
30674 #
30675 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
30676 then
30677 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
30678 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
30679 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
30680
30681
30682
30683
30684
30685
30686
30687 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
30688 $as_echo "$SHOBJ_STATUS" >&6; }
30689 fi
30690
30691 # try to create a directory tree if the source is elsewhere
30692 # this should be packaged into a script accessible via ${srcdir}/support
30693 case "$srcdir" in
30694 .) ;;
30695 *) for d in doc tests support lib examples; do # dirs
30696 test -d $d || mkdir $d
30697 done
30698 for ld in readline glob tilde malloc sh termcap; do # libdirs
30699 test -d lib/$ld || mkdir lib/$ld
30700 done
30701 test -d examples/loadables || mkdir examples/loadables # loadable builtins
30702 test -d examples/loadables/perl || mkdir examples/loadables/perl
30703 ;;
30704 esac
30705
30706 BUILD_DIR=`pwd`
30707 case "$BUILD_DIR" in
30708 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
30709 *) ;;
30710 esac
30711
30712 if test -z "$localedir"; then
30713 localedir='${datarootdir}/locale'
30714 fi
30715 if test -z "$datarootdir"; then
30716 datarootdir='${prefix}/share'
30717 fi
30718
30719
30720
30721
30722
30723
30724 # Some versions of autoconf don't substitute these automatically
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746 #AC_SUBST(ALLOCA_SOURCE)
30747 #AC_SUBST(ALLOCA_OBJECT)
30748
30749 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"
30750
30751 ac_config_commands="$ac_config_commands default"
30752
30753 cat >confcache <<\_ACEOF
30754 # This file is a shell script that caches the results of configure
30755 # tests run on this system so they can be shared between configure
30756 # scripts and configure runs, see configure's option --config-cache.
30757 # It is not useful on other systems. If it contains results you don't
30758 # want to keep, you may remove or edit it.
30759 #
30760 # config.status only pays attention to the cache file if you give it
30761 # the --recheck option to rerun configure.
30762 #
30763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30765 # following values.
30766
30767 _ACEOF
30768
30769 # The following way of writing the cache mishandles newlines in values,
30770 # but we know of no workaround that is simple, portable, and efficient.
30771 # So, we kill variables containing newlines.
30772 # Ultrix sh set writes to stderr and can't be redirected directly,
30773 # and sets the high bit in the cache file unless we assign to the vars.
30774 (
30775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30776 eval ac_val=\$$ac_var
30777 case $ac_val in #(
30778 *${as_nl}*)
30779 case $ac_var in #(
30780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30782 esac
30783 case $ac_var in #(
30784 _ | IFS | as_nl) ;; #(
30785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30786 *) $as_unset $ac_var ;;
30787 esac ;;
30788 esac
30789 done
30790
30791 (set) 2>&1 |
30792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30793 *${as_nl}ac_space=\ *)
30794 # `set' does not quote correctly, so add quotes (double-quote
30795 # substitution turns \\\\ into \\, and sed turns \\ into \).
30796 sed -n \
30797 "s/'/'\\\\''/g;
30798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30799 ;; #(
30800 *)
30801 # `set' quotes correctly as required by POSIX, so do not add quotes.
30802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30803 ;;
30804 esac |
30805 sort
30806 ) |
30807 sed '
30808 /^ac_cv_env_/b end
30809 t clear
30810 :clear
30811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30812 t end
30813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30814 :end' >>confcache
30815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30816 if test -w "$cache_file"; then
30817 test "x$cache_file" != "x/dev/null" &&
30818 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30819 $as_echo "$as_me: updating cache $cache_file" >&6;}
30820 cat confcache >$cache_file
30821 else
30822 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30824 fi
30825 fi
30826 rm -f confcache
30827
30828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30829 # Let make expand exec_prefix.
30830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30831
30832 DEFS=-DHAVE_CONFIG_H
30833
30834 ac_libobjs=
30835 ac_ltlibobjs=
30836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30837 # 1. Remove the extension, and $U if already installed.
30838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30841 # will be set to the directory where LIBOBJS objects are built.
30842 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30843 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30844 done
30845 LIBOBJS=$ac_libobjs
30846
30847 LTLIBOBJS=$ac_ltlibobjs
30848
30849
30850
30851
30852 : ${CONFIG_STATUS=./config.status}
30853 ac_write_fail=0
30854 ac_clean_files_save=$ac_clean_files
30855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30856 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30857 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30858 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30859 #! $SHELL
30860 # Generated by $as_me.
30861 # Run this file to recreate the current configuration.
30862 # Compiler output produced by configure, useful for debugging
30863 # configure, is in config.log if it exists.
30864
30865 debug=false
30866 ac_cs_recheck=false
30867 ac_cs_silent=false
30868 SHELL=\${CONFIG_SHELL-$SHELL}
30869 _ACEOF
30870
30871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30872 ## --------------------- ##
30873 ## M4sh Initialization. ##
30874 ## --------------------- ##
30875
30876 # Be more Bourne compatible
30877 DUALCASE=1; export DUALCASE # for MKS sh
30878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30879 emulate sh
30880 NULLCMD=:
30881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30882 # is contrary to our usage. Disable this feature.
30883 alias -g '${1+"$@"}'='"$@"'
30884 setopt NO_GLOB_SUBST
30885 else
30886 case `(set -o) 2>/dev/null` in
30887 *posix*) set -o posix ;;
30888 esac
30889
30890 fi
30891
30892
30893
30894
30895 # PATH needs CR
30896 # Avoid depending upon Character Ranges.
30897 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30898 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30899 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30900 as_cr_digits='0123456789'
30901 as_cr_alnum=$as_cr_Letters$as_cr_digits
30902
30903 as_nl='
30904 '
30905 export as_nl
30906 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30907 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30910 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30911 as_echo='printf %s\n'
30912 as_echo_n='printf %s'
30913 else
30914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30915 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30916 as_echo_n='/usr/ucb/echo -n'
30917 else
30918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30919 as_echo_n_body='eval
30920 arg=$1;
30921 case $arg in
30922 *"$as_nl"*)
30923 expr "X$arg" : "X\\(.*\\)$as_nl";
30924 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30925 esac;
30926 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30927 '
30928 export as_echo_n_body
30929 as_echo_n='sh -c $as_echo_n_body as_echo'
30930 fi
30931 export as_echo_body
30932 as_echo='sh -c $as_echo_body as_echo'
30933 fi
30934
30935 # The user is always right.
30936 if test "${PATH_SEPARATOR+set}" != set; then
30937 PATH_SEPARATOR=:
30938 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30939 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30940 PATH_SEPARATOR=';'
30941 }
30942 fi
30943
30944 # Support unset when possible.
30945 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30946 as_unset=unset
30947 else
30948 as_unset=false
30949 fi
30950
30951
30952 # IFS
30953 # We need space, tab and new line, in precisely that order. Quoting is
30954 # there to prevent editors from complaining about space-tab.
30955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30956 # splitting by setting IFS to empty value.)
30957 IFS=" "" $as_nl"
30958
30959 # Find who we are. Look in the path if we contain no directory separator.
30960 case $0 in
30961 *[\\/]* ) as_myself=$0 ;;
30962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30963 for as_dir in $PATH
30964 do
30965 IFS=$as_save_IFS
30966 test -z "$as_dir" && as_dir=.
30967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30968 done
30969 IFS=$as_save_IFS
30970
30971 ;;
30972 esac
30973 # We did not find ourselves, most probably we were run as `sh COMMAND'
30974 # in which case we are not to be found in the path.
30975 if test "x$as_myself" = x; then
30976 as_myself=$0
30977 fi
30978 if test ! -f "$as_myself"; then
30979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30980 { (exit 1); exit 1; }
30981 fi
30982
30983 # Work around bugs in pre-3.0 UWIN ksh.
30984 for as_var in ENV MAIL MAILPATH
30985 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30986 done
30987 PS1='$ '
30988 PS2='> '
30989 PS4='+ '
30990
30991 # NLS nuisances.
30992 LC_ALL=C
30993 export LC_ALL
30994 LANGUAGE=C
30995 export LANGUAGE
30996
30997 # Required to use basename.
30998 if expr a : '\(a\)' >/dev/null 2>&1 &&
30999 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31000 as_expr=expr
31001 else
31002 as_expr=false
31003 fi
31004
31005 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31006 as_basename=basename
31007 else
31008 as_basename=false
31009 fi
31010
31011
31012 # Name of the executable.
31013 as_me=`$as_basename -- "$0" ||
31014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31015 X"$0" : 'X\(//\)$' \| \
31016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31017 $as_echo X/"$0" |
31018 sed '/^.*\/\([^/][^/]*\)\/*$/{
31019 s//\1/
31020 q
31021 }
31022 /^X\/\(\/\/\)$/{
31023 s//\1/
31024 q
31025 }
31026 /^X\/\(\/\).*/{
31027 s//\1/
31028 q
31029 }
31030 s/.*/./; q'`
31031
31032 # CDPATH.
31033 $as_unset CDPATH
31034
31035
31036
31037 as_lineno_1=$LINENO
31038 as_lineno_2=$LINENO
31039 test "x$as_lineno_1" != "x$as_lineno_2" &&
31040 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31041
31042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31043 # uniformly replaced by the line number. The first 'sed' inserts a
31044 # line-number line after each line using $LINENO; the second 'sed'
31045 # does the real work. The second script uses 'N' to pair each
31046 # line-number line with the line containing $LINENO, and appends
31047 # trailing '-' during substitution so that $LINENO is not a special
31048 # case at line end.
31049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31050 # scripts with optimization help from Paolo Bonzini. Blame Lee
31051 # E. McMahon (1931-1989) for sed's syntax. :-)
31052 sed -n '
31053 p
31054 /[$]LINENO/=
31055 ' <$as_myself |
31056 sed '
31057 s/[$]LINENO.*/&-/
31058 t lineno
31059 b
31060 :lineno
31061 N
31062 :loop
31063 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31064 t loop
31065 s/-\n.*//
31066 ' >$as_me.lineno &&
31067 chmod +x "$as_me.lineno" ||
31068 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31069 { (exit 1); exit 1; }; }
31070
31071 # Don't try to exec as it changes $[0], causing all sort of problems
31072 # (the dirname of $[0] is not the place where we might find the
31073 # original and so on. Autoconf is especially sensitive to this).
31074 . "./$as_me.lineno"
31075 # Exit status is that of the last command.
31076 exit
31077 }
31078
31079
31080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31081 as_dirname=dirname
31082 else
31083 as_dirname=false
31084 fi
31085
31086 ECHO_C= ECHO_N= ECHO_T=
31087 case `echo -n x` in
31088 -n*)
31089 case `echo 'x\c'` in
31090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31091 *) ECHO_C='\c';;
31092 esac;;
31093 *)
31094 ECHO_N='-n';;
31095 esac
31096 if expr a : '\(a\)' >/dev/null 2>&1 &&
31097 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31098 as_expr=expr
31099 else
31100 as_expr=false
31101 fi
31102
31103 rm -f conf$$ conf$$.exe conf$$.file
31104 if test -d conf$$.dir; then
31105 rm -f conf$$.dir/conf$$.file
31106 else
31107 rm -f conf$$.dir
31108 mkdir conf$$.dir 2>/dev/null
31109 fi
31110 if (echo >conf$$.file) 2>/dev/null; then
31111 if ln -s conf$$.file conf$$ 2>/dev/null; then
31112 as_ln_s='ln -s'
31113 # ... but there are two gotchas:
31114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31116 # In both cases, we have to default to `cp -p'.
31117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31118 as_ln_s='cp -p'
31119 elif ln conf$$.file conf$$ 2>/dev/null; then
31120 as_ln_s=ln
31121 else
31122 as_ln_s='cp -p'
31123 fi
31124 else
31125 as_ln_s='cp -p'
31126 fi
31127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31128 rmdir conf$$.dir 2>/dev/null
31129
31130 if mkdir -p . 2>/dev/null; then
31131 as_mkdir_p=:
31132 else
31133 test -d ./-p && rmdir ./-p
31134 as_mkdir_p=false
31135 fi
31136
31137 if test -x / >/dev/null 2>&1; then
31138 as_test_x='test -x'
31139 else
31140 if ls -dL / >/dev/null 2>&1; then
31141 as_ls_L_option=L
31142 else
31143 as_ls_L_option=
31144 fi
31145 as_test_x='
31146 eval sh -c '\''
31147 if test -d "$1"; then
31148 test -d "$1/.";
31149 else
31150 case $1 in
31151 -*)set "./$1";;
31152 esac;
31153 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31154 ???[sx]*):;;*)false;;esac;fi
31155 '\'' sh
31156 '
31157 fi
31158 as_executable_p=$as_test_x
31159
31160 # Sed expression to map a string onto a valid CPP name.
31161 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31162
31163 # Sed expression to map a string onto a valid variable name.
31164 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31165
31166
31167 exec 6>&1
31168
31169 # Save the log message, to keep $[0] and so on meaningful, and to
31170 # report actual input values of CONFIG_FILES etc. instead of their
31171 # values after options handling.
31172 ac_log="
31173 This file was extended by bash $as_me 4.1-release, which was
31174 generated by GNU Autoconf 2.63. Invocation command line was
31175
31176 CONFIG_FILES = $CONFIG_FILES
31177 CONFIG_HEADERS = $CONFIG_HEADERS
31178 CONFIG_LINKS = $CONFIG_LINKS
31179 CONFIG_COMMANDS = $CONFIG_COMMANDS
31180 $ $0 $@
31181
31182 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31183 "
31184
31185 _ACEOF
31186
31187 case $ac_config_files in *"
31188 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31189 esac
31190
31191 case $ac_config_headers in *"
31192 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31193 esac
31194
31195
31196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31197 # Files that config.status was made for.
31198 config_files="$ac_config_files"
31199 config_headers="$ac_config_headers"
31200 config_commands="$ac_config_commands"
31201
31202 _ACEOF
31203
31204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31205 ac_cs_usage="\
31206 \`$as_me' instantiates files from templates according to the
31207 current configuration.
31208
31209 Usage: $0 [OPTION]... [FILE]...
31210
31211 -h, --help print this help, then exit
31212 -V, --version print version number and configuration settings, then exit
31213 -q, --quiet, --silent
31214 do not print progress messages
31215 -d, --debug don't remove temporary files
31216 --recheck update $as_me by reconfiguring in the same conditions
31217 --file=FILE[:TEMPLATE]
31218 instantiate the configuration file FILE
31219 --header=FILE[:TEMPLATE]
31220 instantiate the configuration header FILE
31221
31222 Configuration files:
31223 $config_files
31224
31225 Configuration headers:
31226 $config_headers
31227
31228 Configuration commands:
31229 $config_commands
31230
31231 Report bugs to <bug-autoconf@gnu.org>."
31232
31233 _ACEOF
31234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31235 ac_cs_version="\\
31236 bash config.status 4.1-release
31237 configured by $0, generated by GNU Autoconf 2.63,
31238 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31239
31240 Copyright (C) 2008 Free Software Foundation, Inc.
31241 This config.status script is free software; the Free Software Foundation
31242 gives unlimited permission to copy, distribute and modify it."
31243
31244 ac_pwd='$ac_pwd'
31245 srcdir='$srcdir'
31246 INSTALL='$INSTALL'
31247 test -n "\$AWK" || AWK=awk
31248 _ACEOF
31249
31250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31251 # The default lists apply if the user does not specify any file.
31252 ac_need_defaults=:
31253 while test $# != 0
31254 do
31255 case $1 in
31256 --*=*)
31257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31258 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31259 ac_shift=:
31260 ;;
31261 *)
31262 ac_option=$1
31263 ac_optarg=$2
31264 ac_shift=shift
31265 ;;
31266 esac
31267
31268 case $ac_option in
31269 # Handling of the options.
31270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31271 ac_cs_recheck=: ;;
31272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31273 $as_echo "$ac_cs_version"; exit ;;
31274 --debug | --debu | --deb | --de | --d | -d )
31275 debug=: ;;
31276 --file | --fil | --fi | --f )
31277 $ac_shift
31278 case $ac_optarg in
31279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31280 esac
31281 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31282 ac_need_defaults=false;;
31283 --header | --heade | --head | --hea )
31284 $ac_shift
31285 case $ac_optarg in
31286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31287 esac
31288 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31289 ac_need_defaults=false;;
31290 --he | --h)
31291 # Conflict between --help and --header
31292 { $as_echo "$as_me: error: ambiguous option: $1
31293 Try \`$0 --help' for more information." >&2
31294 { (exit 1); exit 1; }; };;
31295 --help | --hel | -h )
31296 $as_echo "$ac_cs_usage"; exit ;;
31297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31299 ac_cs_silent=: ;;
31300
31301 # This is an error.
31302 -*) { $as_echo "$as_me: error: unrecognized option: $1
31303 Try \`$0 --help' for more information." >&2
31304 { (exit 1); exit 1; }; } ;;
31305
31306 *) ac_config_targets="$ac_config_targets $1"
31307 ac_need_defaults=false ;;
31308
31309 esac
31310 shift
31311 done
31312
31313 ac_configure_extra_args=
31314
31315 if $ac_cs_silent; then
31316 exec 6>/dev/null
31317 ac_configure_extra_args="$ac_configure_extra_args --silent"
31318 fi
31319
31320 _ACEOF
31321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31322 if \$ac_cs_recheck; then
31323 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31324 shift
31325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31326 CONFIG_SHELL='$SHELL'
31327 export CONFIG_SHELL
31328 exec "\$@"
31329 fi
31330
31331 _ACEOF
31332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31333 exec 5>>config.log
31334 {
31335 echo
31336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31337 ## Running $as_me. ##
31338 _ASBOX
31339 $as_echo "$ac_log"
31340 } >&5
31341
31342 _ACEOF
31343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31344 #
31345 # INIT-COMMANDS
31346 #
31347 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31348 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
31349 # from automake.
31350 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31351 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31352 LINGUAS="${LINGUAS-%UNSET%}"
31353
31354
31355 _ACEOF
31356
31357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31358
31359 # Handling of arguments.
31360 for ac_config_target in $ac_config_targets
31361 do
31362 case $ac_config_target in
31363 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31364 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31365 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31366 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
31367 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
31368 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
31369 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
31370 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
31371 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
31372 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
31373 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
31374 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31375 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31376 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31377 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
31378 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
31379 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31380
31381 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31382 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31383 { (exit 1); exit 1; }; };;
31384 esac
31385 done
31386
31387
31388 # If the user did not use the arguments to specify the items to instantiate,
31389 # then the envvar interface is used. Set only those that are not.
31390 # We use the long form for the default assignment because of an extremely
31391 # bizarre bug on SunOS 4.1.3.
31392 if $ac_need_defaults; then
31393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31395 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31396 fi
31397
31398 # Have a temporary directory for convenience. Make it in the build tree
31399 # simply because there is no reason against having it here, and in addition,
31400 # creating and moving files from /tmp can sometimes cause problems.
31401 # Hook for its removal unless debugging.
31402 # Note that there is a small window in which the directory will not be cleaned:
31403 # after its creation but before its name has been assigned to `$tmp'.
31404 $debug ||
31405 {
31406 tmp=
31407 trap 'exit_status=$?
31408 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31409 ' 0
31410 trap '{ (exit 1); exit 1; }' 1 2 13 15
31411 }
31412 # Create a (secure) tmp directory for tmp files.
31413
31414 {
31415 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31416 test -n "$tmp" && test -d "$tmp"
31417 } ||
31418 {
31419 tmp=./conf$$-$RANDOM
31420 (umask 077 && mkdir "$tmp")
31421 } ||
31422 {
31423 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31424 { (exit 1); exit 1; }
31425 }
31426
31427 # Set up the scripts for CONFIG_FILES section.
31428 # No need to generate them if there are no CONFIG_FILES.
31429 # This happens for instance with `./config.status config.h'.
31430 if test -n "$CONFIG_FILES"; then
31431
31432
31433 ac_cr=' '
31434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31436 ac_cs_awk_cr='\\r'
31437 else
31438 ac_cs_awk_cr=$ac_cr
31439 fi
31440
31441 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31442 _ACEOF
31443
31444
31445 {
31446 echo "cat >conf$$subs.awk <<_ACEOF" &&
31447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31448 echo "_ACEOF"
31449 } >conf$$subs.sh ||
31450 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31451 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31452 { (exit 1); exit 1; }; }
31453 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31454 ac_delim='%!_!# '
31455 for ac_last_try in false false false false false :; do
31456 . ./conf$$subs.sh ||
31457 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31458 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31459 { (exit 1); exit 1; }; }
31460
31461 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31462 if test $ac_delim_n = $ac_delim_num; then
31463 break
31464 elif $ac_last_try; then
31465 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31466 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31467 { (exit 1); exit 1; }; }
31468 else
31469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31470 fi
31471 done
31472 rm -f conf$$subs.sh
31473
31474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31475 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31476 _ACEOF
31477 sed -n '
31478 h
31479 s/^/S["/; s/!.*/"]=/
31480 p
31481 g
31482 s/^[^!]*!//
31483 :repl
31484 t repl
31485 s/'"$ac_delim"'$//
31486 t delim
31487 :nl
31488 h
31489 s/\(.\{148\}\).*/\1/
31490 t more1
31491 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31492 p
31493 n
31494 b repl
31495 :more1
31496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31497 p
31498 g
31499 s/.\{148\}//
31500 t nl
31501 :delim
31502 h
31503 s/\(.\{148\}\).*/\1/
31504 t more2
31505 s/["\\]/\\&/g; s/^/"/; s/$/"/
31506 p
31507 b
31508 :more2
31509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31510 p
31511 g
31512 s/.\{148\}//
31513 t delim
31514 ' <conf$$subs.awk | sed '
31515 /^[^""]/{
31516 N
31517 s/\n//
31518 }
31519 ' >>$CONFIG_STATUS || ac_write_fail=1
31520 rm -f conf$$subs.awk
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 _ACAWK
31523 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31524 for (key in S) S_is_set[key] = 1
31525 FS = "\a"
31526
31527 }
31528 {
31529 line = $ 0
31530 nfields = split(line, field, "@")
31531 substed = 0
31532 len = length(field[1])
31533 for (i = 2; i < nfields; i++) {
31534 key = field[i]
31535 keylen = length(key)
31536 if (S_is_set[key]) {
31537 value = S[key]
31538 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31539 len += length(value) + length(field[++i])
31540 substed = 1
31541 } else
31542 len += 1 + keylen
31543 }
31544
31545 print line
31546 }
31547
31548 _ACAWK
31549 _ACEOF
31550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31553 else
31554 cat
31555 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31556 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31557 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31558 { (exit 1); exit 1; }; }
31559 _ACEOF
31560
31561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31563 # trailing colons and then remove the whole line if VPATH becomes empty
31564 # (actually we leave an empty line to preserve line numbers).
31565 if test "x$srcdir" = x.; then
31566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31567 s/:*\$(srcdir):*/:/
31568 s/:*\${srcdir}:*/:/
31569 s/:*@srcdir@:*/:/
31570 s/^\([^=]*=[ ]*\):*/\1/
31571 s/:*$//
31572 s/^[^=]*=[ ]*$//
31573 }'
31574 fi
31575
31576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31577 fi # test -n "$CONFIG_FILES"
31578
31579 # Set up the scripts for CONFIG_HEADERS section.
31580 # No need to generate them if there are no CONFIG_HEADERS.
31581 # This happens for instance with `./config.status Makefile'.
31582 if test -n "$CONFIG_HEADERS"; then
31583 cat >"$tmp/defines.awk" <<\_ACAWK ||
31584 BEGIN {
31585 _ACEOF
31586
31587 # Transform confdefs.h into an awk script `defines.awk', embedded as
31588 # here-document in config.status, that substitutes the proper values into
31589 # config.h.in to produce config.h.
31590
31591 # Create a delimiter string that does not exist in confdefs.h, to ease
31592 # handling of long lines.
31593 ac_delim='%!_!# '
31594 for ac_last_try in false false :; do
31595 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31596 if test -z "$ac_t"; then
31597 break
31598 elif $ac_last_try; then
31599 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31600 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31601 { (exit 1); exit 1; }; }
31602 else
31603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31604 fi
31605 done
31606
31607 # For the awk script, D is an array of macro values keyed by name,
31608 # likewise P contains macro parameters if any. Preserve backslash
31609 # newline sequences.
31610
31611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31612 sed -n '
31613 s/.\{148\}/&'"$ac_delim"'/g
31614 t rset
31615 :rset
31616 s/^[ ]*#[ ]*define[ ][ ]*/ /
31617 t def
31618 d
31619 :def
31620 s/\\$//
31621 t bsnl
31622 s/["\\]/\\&/g
31623 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31624 D["\1"]=" \3"/p
31625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31626 d
31627 :bsnl
31628 s/["\\]/\\&/g
31629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31630 D["\1"]=" \3\\\\\\n"\\/p
31631 t cont
31632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31633 t cont
31634 d
31635 :cont
31636 n
31637 s/.\{148\}/&'"$ac_delim"'/g
31638 t clear
31639 :clear
31640 s/\\$//
31641 t bsnlc
31642 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31643 d
31644 :bsnlc
31645 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31646 b cont
31647 ' <confdefs.h | sed '
31648 s/'"$ac_delim"'/"\\\
31649 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31650
31651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31652 for (key in D) D_is_set[key] = 1
31653 FS = "\a"
31654 }
31655 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31656 line = \$ 0
31657 split(line, arg, " ")
31658 if (arg[1] == "#") {
31659 defundef = arg[2]
31660 mac1 = arg[3]
31661 } else {
31662 defundef = substr(arg[1], 2)
31663 mac1 = arg[2]
31664 }
31665 split(mac1, mac2, "(") #)
31666 macro = mac2[1]
31667 prefix = substr(line, 1, index(line, defundef) - 1)
31668 if (D_is_set[macro]) {
31669 # Preserve the white space surrounding the "#".
31670 print prefix "define", macro P[macro] D[macro]
31671 next
31672 } else {
31673 # Replace #undef with comments. This is necessary, for example,
31674 # in the case of _POSIX_SOURCE, which is predefined and required
31675 # on some systems where configure will not decide to define it.
31676 if (defundef == "undef") {
31677 print "/*", prefix defundef, macro, "*/"
31678 next
31679 }
31680 }
31681 }
31682 { print }
31683 _ACAWK
31684 _ACEOF
31685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31686 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31687 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31688 { (exit 1); exit 1; }; }
31689 fi # test -n "$CONFIG_HEADERS"
31690
31691
31692 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31693 shift
31694 for ac_tag
31695 do
31696 case $ac_tag in
31697 :[FHLC]) ac_mode=$ac_tag; continue;;
31698 esac
31699 case $ac_mode$ac_tag in
31700 :[FHL]*:*);;
31701 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31702 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31703 { (exit 1); exit 1; }; };;
31704 :[FH]-) ac_tag=-:-;;
31705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31706 esac
31707 ac_save_IFS=$IFS
31708 IFS=:
31709 set x $ac_tag
31710 IFS=$ac_save_IFS
31711 shift
31712 ac_file=$1
31713 shift
31714
31715 case $ac_mode in
31716 :L) ac_source=$1;;
31717 :[FH])
31718 ac_file_inputs=
31719 for ac_f
31720 do
31721 case $ac_f in
31722 -) ac_f="$tmp/stdin";;
31723 *) # Look for the file first in the build tree, then in the source tree
31724 # (if the path is not absolute). The absolute path cannot be DOS-style,
31725 # because $ac_f cannot contain `:'.
31726 test -f "$ac_f" ||
31727 case $ac_f in
31728 [\\/$]*) false;;
31729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31730 esac ||
31731 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31732 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31733 { (exit 1); exit 1; }; };;
31734 esac
31735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31736 ac_file_inputs="$ac_file_inputs '$ac_f'"
31737 done
31738
31739 # Let's still pretend it is `configure' which instantiates (i.e., don't
31740 # use $as_me), people would be surprised to read:
31741 # /* config.h. Generated by config.status. */
31742 configure_input='Generated from '`
31743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31744 `' by configure.'
31745 if test x"$ac_file" != x-; then
31746 configure_input="$ac_file. $configure_input"
31747 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31748 $as_echo "$as_me: creating $ac_file" >&6;}
31749 fi
31750 # Neutralize special characters interpreted by sed in replacement strings.
31751 case $configure_input in #(
31752 *\&* | *\|* | *\\* )
31753 ac_sed_conf_input=`$as_echo "$configure_input" |
31754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31755 *) ac_sed_conf_input=$configure_input;;
31756 esac
31757
31758 case $ac_tag in
31759 *:-:* | *:-) cat >"$tmp/stdin" \
31760 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31761 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31762 { (exit 1); exit 1; }; } ;;
31763 esac
31764 ;;
31765 esac
31766
31767 ac_dir=`$as_dirname -- "$ac_file" ||
31768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31769 X"$ac_file" : 'X\(//\)[^/]' \| \
31770 X"$ac_file" : 'X\(//\)$' \| \
31771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31772 $as_echo X"$ac_file" |
31773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31774 s//\1/
31775 q
31776 }
31777 /^X\(\/\/\)[^/].*/{
31778 s//\1/
31779 q
31780 }
31781 /^X\(\/\/\)$/{
31782 s//\1/
31783 q
31784 }
31785 /^X\(\/\).*/{
31786 s//\1/
31787 q
31788 }
31789 s/.*/./; q'`
31790 { as_dir="$ac_dir"
31791 case $as_dir in #(
31792 -*) as_dir=./$as_dir;;
31793 esac
31794 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31795 as_dirs=
31796 while :; do
31797 case $as_dir in #(
31798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31799 *) as_qdir=$as_dir;;
31800 esac
31801 as_dirs="'$as_qdir' $as_dirs"
31802 as_dir=`$as_dirname -- "$as_dir" ||
31803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31804 X"$as_dir" : 'X\(//\)[^/]' \| \
31805 X"$as_dir" : 'X\(//\)$' \| \
31806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31807 $as_echo X"$as_dir" |
31808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31809 s//\1/
31810 q
31811 }
31812 /^X\(\/\/\)[^/].*/{
31813 s//\1/
31814 q
31815 }
31816 /^X\(\/\/\)$/{
31817 s//\1/
31818 q
31819 }
31820 /^X\(\/\).*/{
31821 s//\1/
31822 q
31823 }
31824 s/.*/./; q'`
31825 test -d "$as_dir" && break
31826 done
31827 test -z "$as_dirs" || eval "mkdir $as_dirs"
31828 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31829 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31830 { (exit 1); exit 1; }; }; }
31831 ac_builddir=.
31832
31833 case "$ac_dir" in
31834 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31835 *)
31836 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31837 # A ".." for each directory in $ac_dir_suffix.
31838 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31839 case $ac_top_builddir_sub in
31840 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31841 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31842 esac ;;
31843 esac
31844 ac_abs_top_builddir=$ac_pwd
31845 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31846 # for backward compatibility:
31847 ac_top_builddir=$ac_top_build_prefix
31848
31849 case $srcdir in
31850 .) # We are building in place.
31851 ac_srcdir=.
31852 ac_top_srcdir=$ac_top_builddir_sub
31853 ac_abs_top_srcdir=$ac_pwd ;;
31854 [\\/]* | ?:[\\/]* ) # Absolute name.
31855 ac_srcdir=$srcdir$ac_dir_suffix;
31856 ac_top_srcdir=$srcdir
31857 ac_abs_top_srcdir=$srcdir ;;
31858 *) # Relative name.
31859 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31860 ac_top_srcdir=$ac_top_build_prefix$srcdir
31861 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31862 esac
31863 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31864
31865
31866 case $ac_mode in
31867 :F)
31868 #
31869 # CONFIG_FILE
31870 #
31871
31872 case $INSTALL in
31873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31874 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31875 esac
31876 _ACEOF
31877
31878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31879 # If the template does not know about datarootdir, expand it.
31880 # FIXME: This hack should be removed a few years after 2.60.
31881 ac_datarootdir_hack=; ac_datarootdir_seen=
31882
31883 ac_sed_dataroot='
31884 /datarootdir/ {
31885 p
31886 q
31887 }
31888 /@datadir@/p
31889 /@docdir@/p
31890 /@infodir@/p
31891 /@localedir@/p
31892 /@mandir@/p
31893 '
31894 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31895 *datarootdir*) ac_datarootdir_seen=yes;;
31896 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31897 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31898 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31899 _ACEOF
31900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31901 ac_datarootdir_hack='
31902 s&@datadir@&$datadir&g
31903 s&@docdir@&$docdir&g
31904 s&@infodir@&$infodir&g
31905 s&@localedir@&$localedir&g
31906 s&@mandir@&$mandir&g
31907 s&\\\${datarootdir}&$datarootdir&g' ;;
31908 esac
31909 _ACEOF
31910
31911 # Neutralize VPATH when `$srcdir' = `.'.
31912 # Shell code in configure.ac might set extrasub.
31913 # FIXME: do we really want to maintain this feature?
31914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31915 ac_sed_extra="$ac_vpsub
31916 $extrasub
31917 _ACEOF
31918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31919 :t
31920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31921 s|@configure_input@|$ac_sed_conf_input|;t t
31922 s&@top_builddir@&$ac_top_builddir_sub&;t t
31923 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31924 s&@srcdir@&$ac_srcdir&;t t
31925 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31926 s&@top_srcdir@&$ac_top_srcdir&;t t
31927 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31928 s&@builddir@&$ac_builddir&;t t
31929 s&@abs_builddir@&$ac_abs_builddir&;t t
31930 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31931 s&@INSTALL@&$ac_INSTALL&;t t
31932 $ac_datarootdir_hack
31933 "
31934 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31935 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31936 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31937 { (exit 1); exit 1; }; }
31938
31939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31940 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31942 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31943 which seems to be undefined. Please make sure it is defined." >&5
31944 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31945 which seems to be undefined. Please make sure it is defined." >&2;}
31946
31947 rm -f "$tmp/stdin"
31948 case $ac_file in
31949 -) cat "$tmp/out" && rm -f "$tmp/out";;
31950 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31951 esac \
31952 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31953 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31954 { (exit 1); exit 1; }; }
31955 ;;
31956 :H)
31957 #
31958 # CONFIG_HEADER
31959 #
31960 if test x"$ac_file" != x-; then
31961 {
31962 $as_echo "/* $configure_input */" \
31963 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31964 } >"$tmp/config.h" \
31965 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31966 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31967 { (exit 1); exit 1; }; }
31968 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31969 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31970 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31971 else
31972 rm -f "$ac_file"
31973 mv "$tmp/config.h" "$ac_file" \
31974 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31975 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31976 { (exit 1); exit 1; }; }
31977 fi
31978 else
31979 $as_echo "/* $configure_input */" \
31980 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31981 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31982 $as_echo "$as_me: error: could not create -" >&2;}
31983 { (exit 1); exit 1; }; }
31984 fi
31985 ;;
31986
31987 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31988 $as_echo "$as_me: executing $ac_file commands" >&6;}
31989 ;;
31990 esac
31991
31992
31993 case $ac_file$ac_mode in
31994 "default-1":C)
31995 for ac_file in $CONFIG_FILES; do
31996 # Support "outfile[:infile[:infile...]]"
31997 case "$ac_file" in
31998 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31999 esac
32000 # PO directories have a Makefile.in generated from Makefile.in.in.
32001 case "$ac_file" in */Makefile.in)
32002 # Adjust a relative srcdir.
32003 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32004 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32005 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32006 # In autoconf-2.13 it is called $ac_given_srcdir.
32007 # In autoconf-2.50 it is called $srcdir.
32008 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32009 case "$ac_given_srcdir" in
32010 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32011 /*) top_srcdir="$ac_given_srcdir" ;;
32012 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32013 esac
32014 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32015 rm -f "$ac_dir/POTFILES"
32016 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32017 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32018 POMAKEFILEDEPS="POTFILES.in"
32019 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32020 # on $ac_dir but don't depend on user-specified configuration
32021 # parameters.
32022 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32023 # The LINGUAS file contains the set of available languages.
32024 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32025 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32026 fi
32027 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32028 # Hide the ALL_LINGUAS assigment from automake.
32029 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32030 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32031 else
32032 # The set of available languages was given in configure.in.
32033 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32034 fi
32035 case "$ac_given_srcdir" in
32036 .) srcdirpre= ;;
32037 *) srcdirpre='$(srcdir)/' ;;
32038 esac
32039 POFILES=
32040 GMOFILES=
32041 UPDATEPOFILES=
32042 DUMMYPOFILES=
32043 for lang in $ALL_LINGUAS; do
32044 POFILES="$POFILES $srcdirpre$lang.po"
32045 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32046 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32047 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32048 done
32049 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32050 # environment variable.
32051 INST_LINGUAS=
32052 if test -n "$ALL_LINGUAS"; then
32053 for presentlang in $ALL_LINGUAS; do
32054 useit=no
32055 if test "%UNSET%" != "$LINGUAS"; then
32056 desiredlanguages="$LINGUAS"
32057 else
32058 desiredlanguages="$ALL_LINGUAS"
32059 fi
32060 for desiredlang in $desiredlanguages; do
32061 # Use the presentlang catalog if desiredlang is
32062 # a. equal to presentlang, or
32063 # b. a variant of presentlang (because in this case,
32064 # presentlang can be used as a fallback for messages
32065 # which are not translated in the desiredlang catalog).
32066 case "$desiredlang" in
32067 "$presentlang"*) useit=yes;;
32068 esac
32069 done
32070 if test $useit = yes; then
32071 INST_LINGUAS="$INST_LINGUAS $presentlang"
32072 fi
32073 done
32074 fi
32075 CATALOGS=
32076 if test -n "$INST_LINGUAS"; then
32077 for lang in $INST_LINGUAS; do
32078 CATALOGS="$CATALOGS $lang.gmo"
32079 done
32080 fi
32081 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32082 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"
32083 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32084 if test -f "$f"; then
32085 case "$f" in
32086 *.orig | *.bak | *~) ;;
32087 *) cat "$f" >> "$ac_dir/Makefile" ;;
32088 esac
32089 fi
32090 done
32091 fi
32092 ;;
32093 esac
32094 done ;;
32095 "default":C)
32096 # Makefile uses this timestamp file to record whether config.h is up to date.
32097 echo timestamp > stamp-h
32098 ;;
32099
32100 esac
32101 done # for ac_tag
32102
32103
32104 { (exit 0); exit 0; }
32105 _ACEOF
32106 chmod +x $CONFIG_STATUS
32107 ac_clean_files=$ac_clean_files_save
32108
32109 test $ac_write_fail = 0 ||
32110 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32111 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32112 { (exit 1); exit 1; }; }
32113
32114
32115 # configure is writing to config.log, and then calls config.status.
32116 # config.status does its own redirection, appending to config.log.
32117 # Unfortunately, on DOS this fails, as config.log is still kept open
32118 # by configure, so config.status won't be able to write to it; its
32119 # output is simply discarded. So we exec the FD to /dev/null,
32120 # effectively closing config.log, so it can be properly (re)opened and
32121 # appended to by config.status. When coming back to configure, we
32122 # need to make the FD available again.
32123 if test "$no_create" != yes; then
32124 ac_cs_success=:
32125 ac_config_status_args=
32126 test "$silent" = yes &&
32127 ac_config_status_args="$ac_config_status_args --quiet"
32128 exec 5>/dev/null
32129 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32130 exec 5>>config.log
32131 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32132 # would make configure fail if this is the last instruction.
32133 $ac_cs_success || { (exit 1); exit 1; }
32134 fi
32135 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32136 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32137 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32138 fi
32139